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
Declare 2 double variables for the user to decide the values
public static void main(String[] args) { double num1; double num2; // Define a new variable that holds the character that represents the operator char operator; double answer = 0.0; // Declare a new Scanner object called eval and set it to take in to the console input Scanner eval = new Scanner(System.in); // Prompt the user for the 1st number System.out.println("Enter the 1st number: "); // Set num1 to the next double value the user enters num1 = eval.nextDouble(); // Prompt the user for the operator System.out.println("Enter the operator: "); // Set operator to the character the user wants operator = eval.next().charAt(0); // Prompt the user for the 2nd number System.out.println("Enter the 2nd number: "); // Set num2 to the next double value the user enters num2 = eval.nextDouble(); // Close the eval to prevent memory leakage eval.close(); // Take different actions depending on the operator passed to the function switch(operator) { // If the operator is a + case '+': answer = num1 + num2; break; // If the operator is a - case '-': answer = num1 - num2; break; // If the operator is a * case '*': answer = num1 * num2; break; // If the operator is a / case '/': answer = num1 / num2; break; default: break; } // Output the 2 values, the operator and result to the user System.out.println("Answer: " + num1 + " " + operator + " " + num2 + " = " + answer); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Calculation (double firstVariable, double secondVariable){\r\n\t\tsetFirstVariable(firstVariable);\r\n\t\tsetSecondVariable(secondVariable);\r\n\t}", "double getDoubleValue2();", "double getDoubleValue3();", "double getDoubleValue1();", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n double x = s.nextDouble();\n double y = s.nextDouble();\n double a = s.nextDouble();\n double b = s.nextDouble();\n \n DecimalFormat df = new DecimalFormat(\"#.000000000000\");\n double dp = x*a + y*b;\n double el =Math.sqrt(a*a + b*b);\n //double mel = dp/Double.valueOf(df.format(el*el));\n double mel = dp/(el*el);\n double as = mel*a;\n double bs = mel*b;\n double n = (x-mel*a)/(-1*b);\n //System.out.println(dp + \" \" + el + \" \" + mel + \" \" + as + \" \" + bs + \" \" + n);\n System.out.println(mel);\n System.out.println(n);\n }", "public void get_UserInput(){\r\n\t Scanner s = new Scanner(System.in);\r\n\t // get User inputs \r\n\t System.out.println(\"Please enter a number for Dry (double):\");\r\n\t DRY = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Wet (double):\");\r\n\t WET = s.nextDouble(); \r\n\t System.out.println(\"Please enter a number for ISNOW (double):\");\r\n\t ISNOW = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Wind(double):\");\r\n\t WIND = s.nextDouble(); \r\n\t System.out.println(\"Please enter a number for BUO (double):\");\r\n\t BUO = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Iherb (int):\");\r\n\t IHERB = s.nextInt(); \r\n\t System.out.println(\"****Data for parameters are collected****.\");\r\n\t System.out.println(\"Data for parameters are collected.\");\r\n\t dry=DRY;\r\n\t wet=WET;\r\n}", "public static double getDouble (String ask, double min, double max)\r\n {\r\n // ...\r\n return 0.0;\r\n }", "public static void main(String[] args) {\n\r\n\t\tdouble a, b, c, answer;\r\n\t\t\r\n\t\ta = MyScanner2.getDouble(\"a = \", -10, 10);\r\n\t\tSystem.out.println(\"You enter a = \" + a);\r\n\t\tb = MyScanner2.getDouble(\"b = \", -20, 20);\r\n\t\tSystem.out.println(\"You enter b = \" + b);\r\n\t\tc = MyScanner2.getDouble(\"c = \", -100, 100);\r\n\t\tSystem.out.println(\"You enter c = \" + c);\r\n\t\t\r\n\t\tanswer = b * b - 4 * a * c;\r\n\t\tSystem.out.println(\"\\nDyscriminant = \" + answer);\r\n\t\t\r\n\t}", "public static void main(String[] args)\r\n\t{\ndouble f,G,m1,m2,R;\r\nScanner sc =new Scanner(System.in);\r\nSystem.out.println(\"input m1,m2,R\");\r\nm1=sc.nextDouble();\r\nm2=sc.nextDouble();\r\nR=sc.nextDouble();\r\nG = 6.67e-11;\r\nf=G*m1*m2/(R*R);\r\nSystem.out.println(f);\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter first Value: \");\n\t\tdouble a = scan.nextDouble();\n\t\tSystem.out.println(\"Enter second Value: \");\n\t\tdouble b = scan.nextDouble();\n\t\tSystem.out.println(\"Enter operation you would like to perform (Example +, - , *, /): \");\n\t\tString s = scan.next();\n\t\tscan.close();\n\t\tdouble ans;\n\t\t\n\t\tif(s.equals(\"+\")){\n\t\t\tans = a+b;\n\t\t}\n\t\telse if(s.equals(\"-\")){\n\t\t\tans = a-b;\n\t\t}\n\t\telse if(s.equals(\"*\")){\n\t\t\tans = a*b;\n\t\t}\n\t\telse if(s.equals(\"/\")){\n\t\t\tans = a/b;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Invalid Operation\");\n\t\t\tans = 0;\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tSystem.out.printf(\"%.3f %s %.3f = %.3f\",a,s,b,ans);\n\n\n\n\n\t}", "public double getParameterValue (Assignment input) ;", "public static void getPositiveAndNegativeInput() {\n Double num = getDoubleInput(\"enter the number you would like to change\");\n println(String.valueOf(positiveAndNegative(num)));\n }", "public void get_InputValues(){\r\n\tA[1]=-0.185900;\r\n\tA[2]=-0.85900;\r\n\tA[3]=-0.059660;\r\n\tA[4]=-0.077373;\r\n\tB[1]=30.0;\r\n\tB[2]=19.2;\r\n\tB[3]=13.8;\r\n\tB[4]=22.5;\r\n\tC[1]=4.5;\r\n\tC[2]=12.5;\r\n\tC[3]=27.5;\r\n\tD[1]=16.0;\r\n\tD[2]=10.0;\r\n\tD[3]=7.0;\r\n\tD[4]=5.0;\r\n\tD[5]=4.0;\r\n\tD[6]=3.0;\r\n\t\r\n}", "public void set(double d);", "public static void main(String[] args)\n {\n // 2. System.out.print(Please enter two numbers:)\n System.out.print(\"Please enter two numbers: \");\n Scanner in = new Scanner(System.in);\n // 3. x = in.readDouble;\n double x = in.nextDouble();\n // 4. y = in.readDouble;\n double y = in.nextDouble();\n // 5. System.out.printline(\"The sum is \" + x + y);\n System.out.println(\"The sum is \" + (x + y));\n }", "Double getDoubleValue();", "private double selectDouble(String prompt) {\n System.out.println(\"\\n\" + prompt);\n return input.nextDouble();\n }", "public static void main(String[] args) {\n\t\tString strVar1=\"19.81\", strVar2=\"15.5\";\n\t\t\n\t\tfloat fltVar1 = Float.parseFloat(strVar1);\n\t\tfloat fltVar2 = Float.parseFloat(strVar2);\n\t\t\n\t\tfloat sum = fltVar1 + fltVar2;\n\t\tSystem.out.println(fltVar1+\"+\"+fltVar2+\"=\"+sum);\n\t\t\n\t\tfloat multiply = fltVar1 * fltVar2;\n\t\tSystem.out.println(fltVar1+\"*\"+fltVar2+\"=\"+multiply);\n\t\t\n\t}", "public void getWeightAndHeight(String weightText, String heightText){\n //parse double from user input in JTextField\n height = Double.parseDouble(heightText);\n weight = Double.parseDouble(weightText);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter the value of X1 and Y1\");\n\t\tdouble x1 = sc.nextDouble();\n\t\tdouble y1 =sc.nextDouble();\n\t\t\n\t\tSystem.out.println(\"Enter the value of X2 and Y2\");\n\t\tdouble x2 =sc.nextDouble();\n\t\tdouble y2 = sc.nextDouble();\n\t\t\n\t\tdouble a = Math.pow(x2-x1, 2) + Math.pow(y2-y1, 2);\n\t\t\n\t\tdouble distance = Math.sqrt(a) ;\n\t\tSystem.out.printf(\"%.4f\",distance);\n\n\t}", "public static void main(String[] args) {\nSystem.out.println(\"enter the t and v\");\ndouble t=Util.readdouble();\ndouble v=Util.readdouble();\nUtil.wind(t, v);\n}", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdouble result=1.0;\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tdouble w=scanner.nextDouble();\n\t\t\tdouble t=scanner.nextDouble();\n\t\t\tdouble l=scanner.nextDouble();\n\t\t\tif (w>t&&w>l) {\n\t\t\t\tSystem.out.print(\"W \");\n\t\t\t\tresult*=w;\n\t\t\t}else if (t>w&&t>l) {\n\t\t\t\tSystem.out.print(\"T \");\n\t\t\t\tresult*=t;\n\t\t\t}else {\n\t\t\t\tSystem.out.print(\"L \");\n\t\t\t\tresult*=l;\n\t\t\t}\n\t\t}\n\t\tscanner.close();\n\t\tSystem.out.println(String.format(\"%.2f\", 2*(result*0.65-1)));\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner input=new Scanner(System.in);\n\t\tdouble a;\n\t\tSystem.out.print(\"b=:\");\n\t\ta=input.nextDouble();\n\t\tdouble b;\n\t\tSystem.out.print(\"b=:\");\n\t\tb=input.nextDouble();\n\t\tdouble c;\n\t\tSystem.out.print(\"c=:\");\n\t\tc=input.nextDouble();\n\t double deta=b*b-4*a*c;\n\t\tif(deta>0) {\n\t\t\tdouble x1=(-b+Math.sqrt(deta))/(2*a);\n\t\t\tdouble x2=(-b-Math.sqrt(deta))/(2*a);\n\t\t\tSystem.out.println(\"x1=\"+x1+\" \"+\"x2=\"+x2);\n\t\t}\n\t\telse if(deta==0)\n\t\t\tSystem.out.println(\"x=\"+(-b/(2*a)));\n\t\telse\n\t\t\tSystem.out.println(\"ÎÞʵÊý¸ù\");\n\t\t\n\t\t\n\n\t\t\n\t}", "private double selectDouble(String prompt, double min, double max) {\n System.out.println(\"\\n\" + prompt);\n double value = input.nextDouble();\n if (value > min && value < max) {\n return value;\n } else {\n return selectDouble(prompt, min, max);\n }\n }", "public static void main(String[] args) {\n\t\tint num=10;\n\t\t\n\t\t//2 way\n\t\tint number; //declare\n\t\tnumber=100;\t//initialize or assign the value\n\t\t\n\t\t//declare multiple variables of same type\n\t\t\n\t\tdouble num1, num2, num3;\n\t\tnum1=1.99;\n\t\tnum2=2.99;\n\t\tnum3=4.99;\n\n\t}", "Double getValue();", "public void setResultDoubles(final double first, final double second)\r\n {\r\n resultDoubles[0] = first;\r\n resultDoubles[1] = second;\r\n }", "public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n float x,y;\n x=in.nextFloat();\n y=in.nextFloat();\n if(y==1)\n System.out.printf(\"%.1f\\n\",(x-80)*0.7);\n else\n System.out.printf(\"%.1f\\n\",(x-70)*0.6);\n\n }", "double getBasedOnValue();", "public void set(double val);", "public static void main(String[] args) {\n double a=100;\n double b=200;\n double c=300;\nboolean aIsMedium = (a>b && a<c) || (a>c && a<b);\nboolean bIsMedium = (b<c && b>a) || (b>c && b<a);\nboolean cIsMedium = (c>a && c<b) || (c>b && c<a);\n\n double medium=0;\n\n if(aIsMedium){\n //System.out.println(a);\n medium= a;\n }\n if (bIsMedium){\n // System.out.println(b);\n medium= b;\n }\n if (cIsMedium){\n //System.out.println(c);\n medium=c;\n }\n System.out.println(medium+ \" is medium number\");\n }", "public void convert(){\n\t\t\tJTextField[] textFieldArray = { firstTextField , secondTextField };\n\t\t\tint numberArrayToConverter = ( (firstTextField.isFocusOwner() || chooseUnitSecondBox.isFocusOwner() )) ? 0 : 1 ;\n\t\t\tString s = textFieldArray[numberArrayToConverter].getText().trim();\n\t\t\tif ( s.length() > 0 ){\n\t\t\t\tfirstTextField.setForeground(Color.BLACK);\n\t\t\t\tsecondTextField.setForeground(Color.BLACK);\n\t\t\t\ttry {\n\t\t\t\t\tdouble value = Double.valueOf(s);\n\t\t\t\t\tUnit unitFirstSelected = (Unit) chooseUnitFirstBox.getSelectedItem();\n\t\t\t\t\tUnit unitSecondSelected = (Unit) chooseUnitSecondBox.getSelectedItem();\n\t\t\t\t\tUnit[] unitArray = {unitFirstSelected , unitSecondSelected};\n\t\t\t\t\tint numberSwitch = (numberArrayToConverter == 0) ? 1 : 0 ;\n\t\t\t\t\ttextFieldArray[numberSwitch].setText( String.format(\"%.5g\", unitconverter.convert(value, unitArray[numberArrayToConverter], unitArray[numberSwitch])));\n\t\t\t\t} catch (NumberFormatException e){\n\t\t\t\t\tfirstTextField.setForeground(Color.RED);\n\t\t\t\t\tsecondTextField.setForeground(Color.RED);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\n\t\tdouble a,b,result;\n\t\tchar operation;\n\t\tSystem.out.println(\"PLease enter a first number\");\n\t\ta=input.nextDouble();\n\t\tSystem.out.println(\"Please enter a second number\");\n\t\tb=input.nextDouble();\n\t\tSystem.out.println(\"PLease tell us what kind of operation you want to use (+,-,*,/)\");\n\t\toperation=input.next().charAt(0);\n\t\t\n\t\tswitch(operation) {\n\t\t case '+':\n\t\t \tresult=a+b;\n\t\t \tbreak;\n\t\t case '-':\n\t\t \tresult=a-b;\n\t\t \tbreak;\n\t\t case'*':\n\t\t \tresult=a*b;\n\t\t \tbreak;\n\t\t case '/':\n\t\t \tresult=a/b;\n\t\t \tbreak;\n\t\t \tdefault:\n\t\t \t\tresult=0;\n\t\t \t\tSystem.out.println(\"Invalid input\");\n\t\t}System.out.println(\"The result is \"+ a+ operation+b+\"=\"+ result);\n \n\t\t\n\t\t\n\t\t\n\t}", "public double calculateValue(Map<String, Double> variables) throws InvalidVariableNameException;", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tfloat a, b, c;\r\n\t\tSystem.out.println(\"Fill a, b, c: \");\r\n\t\ta = sc.nextFloat();\r\n\t\tb = sc.nextFloat();\r\n\t\tc = sc.nextFloat();\r\n\t\tfloat delta = (float) (Math.pow(b, 2) - 4 * a * c);\r\n\t\tif (delta < 0) {\r\n\t\t\tSystem.out.println(\"The equation has no solution!\");\r\n\t\t} else {\r\n\t\t\tif (delta == 0) {\r\n\t\t\t\tfloat x = -b / 2 * a;\r\n\t\t\t\tSystem.out.println(\"Solution x = \" + x);\r\n\t\t\t} else {\r\n\t\t\t\tdouble x1 = (-b - Math.sqrt(delta)) / 2 * a;\r\n\t\t\t\tdouble x2 = (-b + Math.sqrt(delta)) / 2 * a;\r\n\t\t\t\tSystem.out.println(\"Solution X1 = \" + x1);\r\n\t\t\t\tSystem.out.println(\"Solution X2 = \" + x2);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void instantiateVarsDouble(IntVar var1, int coeff1, IntVar var2, int coeff2, int constant, Propagator prop) throws ContradictionException {\n this.instantiateSecondVar(var1, coeff1, var2, coeff2, constant, prop);\n this.instantiateSecondVar(var2, coeff2, var1, coeff1, constant, prop);\n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n //Get value of a\n System.out.print(\"Enter the value of a: \");\n double a = scanner.nextDouble();\n\n //Get value of b\n System.out.print(\"Enter the value of b: \");\n double b = scanner.nextDouble();\n\n //Get value of c\n System.out.print(\"Enter the value of c: \");\n double c = scanner.nextDouble();\n\n //solve for the discriminant (b^2 - 4 * a * c)\n double discriminant = Math.pow(b, 2) - (4 * a * c);\n\n //if the discriminant is negative than exit the program\n if (discriminant < 0) {\n System.out.println(\"Discriminant is negative\");\n return;\n }\n\n //solve for the first value of x1\n //(-b + sqrt(discriminant)) / 2 * a\n double x1 = (-b + Math.sqrt(discriminant)) / 2 * a;\n\n //solve for the first value of x2\n //(-b - sqrt(discriminant)) / 2 * a\n double x2 = (-b - Math.sqrt(discriminant)) / 2 * a;\n\n //output the results\n System.out.println(\"The first value of x: \" + x1);\n System.out.println(\"The second value of x \" + x2);\n\n //_________________________________________________________________\n // harmonic series formula\n System.out.print(\"Enter a number n: \");\n double n = scanner.nextInt();\n double sum = 0;\n for (double i = 1; i <= n; i++) {\n sum = sum + (1 / i);\n }\n System.out.println(\"The answer is: \" + sum);\n\n // __________________________________________________________\n //Finding average of int array\n System.out.print(\"Enter the number of values you want to average: \");\n int[] ages = new int[scanner.nextInt()]; //get size of the array & create array of that size\n //add the user's values to the array\n for (int i = 0; i < ages.length; i++) {\n System.out.print(\"Enter the next age: \");\n ages[i] = scanner.nextInt();\n }\n\n double sum2 = 0;\n for (int i = 0; i < ages.length; i++) {\n sum2 += ages[i];\n }\n\n double average = sum2 / ages.length;\n System.out.println(\"The average age of \" + ages.length + \" kids is: \" + average);\n\n\n //__________________________________________________________\n //Printing out the array\n System.out.print(\"Enter array size: \");\n int[] numbers = new int[scanner.nextInt()];\n for (int i = 0; i < numbers.length; i++) {\n System.out.print(\"Enter the next number: \");\n numbers[i] = scanner.nextInt();\n }\n //System.out.println(Arrays.toString(numbers));\n\n // Alternative way\n String numberArray = \"[\"; // Concatenating the values to this string\n for (int i = 0; i < numbers.length; i++) {\n if (i != numbers.length - 1) {\n numberArray += numbers[i] + \", \";\n } else {\n numberArray += numbers[i] + \"]\";\n }\n }\n System.out.println(numberArray);\n\n\n }", "void setValue(double value);", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n scan.useLocale(Locale.ENGLISH);\n System.out.print(\"Enter A: \");\n double A = scan.nextDouble();\n System.out.print(\"Enter B: \");\n double B = scan.nextDouble();\n System.out.print(\"Enter x: \");\n double x = scan.nextDouble();\n System.out.print(\"Enter y: \");\n double y = scan.nextDouble();\n System.out.print(\"Enter z: \");\n double z = scan.nextDouble();\n\n double minSize = Math.min(A,B);\n double maxSize = Math.max(A,B);\n double minBrick = Math.min(Math.min(x,y),z);\n double midBrick = Math.min(Math.max(x,y),z);\n\n if (A*B>=minBrick*midBrick) {\n if (minSize>=minBrick || maxSize>=midBrick) {\n System.out.println(\"True\");\n }\n } else {\n System.out.println(\"False\");\n }\n }", "public static void main(String[] args) \n\t{\n\t\tScanner s=new Scanner(System.in);\n\t\t//Ask user for first point and store x y values\n\t\tSystem.out.print(\"Please enter x1 and y1: \");\n\t\tdouble x1=s.nextDouble();\n\t\tdouble y1=s.nextDouble();\n\t\t//Ask user for second point and store x y values\n\t\tSystem.out.print(\"Please enter x2 and y2: \");\n\t\tdouble x2=s.nextDouble();\n\t\tdouble y2=s.nextDouble();\n\t\t//Compute distance between given points\n\t\tdouble distance=Math.pow(Math.pow((x2-x1), 2)+Math.pow((y2-y1), 2), .5);\n\t\t//Print result\n\t\tSystem.out.println(\"The distance between the two points is \"+distance);\n\t}", "double getValue();", "double getValue();", "double getValue();", "public static void main(String[] args) {\n Scanner entrada=new Scanner(System.in);\n \n double x;\n double y;\n double z;\n double m;\n \n System.out.println(\"Ingrese el valor de la variable X: \");\n x = entrada.nextDouble();\n System.out.println(\"Ingrese el valor de la variable Y: \");\n y = entrada.nextDouble();\n System.out.println(\"Ingreese el valor de la variable Z: \");\n z = entrada.nextDouble();\n \n m = ((x+(y/z))/(x-(y/z)));\n \n System.out.println(\"El valor de m en base a las variables: \");\n System.out.printf(\"x= %f\\n\", x);\n System.out.printf(\"y= %f\\n\", y);\n System.out.printf(\"z= %f\\n\", z);\n System.out.println(\"Da como resultado:\");\n System.out.printf(\"m= %f\", m); \n}", "public void setFlete(double param){\n \n this.localFlete=param;\n \n\n }", "public static void main(String[] args) {\n\t\tdouble usd = 32.73;\n\t\tdouble eur = 37.84;\n\t\tdouble jpy = 28.35;\n\t\tdouble calusd = 0;\n\t\tdouble caleur = 0;\n\t\tdouble caljpy = 0;\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\tString in = JOptionPane.showInputDialog(\"Enter Baht :\");\n\t\tdouble nBaht = Integer.parseInt(in);\n\t\t\n\t\tString intype = JOptionPane.showInputDialog(\"usd = 1,eur = 2 ,jpy = 3 : \");\n\t\tint check = Integer.parseInt(intype);\n\t\tswitch (check) {\n\t\tcase 1:\n\t\t\tcalusd = Double.parseDouble(df.format(nBaht/usd));\n\t\t\tJOptionPane.showMessageDialog(null, calusd,\"USD\",JOptionPane.INFORMATION_MESSAGE);\n\t\t\tbreak;\t\n\t\tcase 2:\n\t\t\tcaleur = Double.parseDouble(df.format(nBaht/eur));\n\t\t\tJOptionPane.showMessageDialog(null, caleur,\"EUR\",JOptionPane.INFORMATION_MESSAGE);\n\t\t\tbreak;\t\t\n\t\tcase 3:\n\t\t\tcaljpy = Double.parseDouble(df.format(nBaht/jpy));\n\t\t\tJOptionPane.showMessageDialog(null, caljpy,\"JPY\",JOptionPane.INFORMATION_MESSAGE);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tJOptionPane.showMessageDialog(null, \"Currency not supported\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\tbreak;\n\t\t}\t\t\t\n\t}", "public void input() {\r\n System.out.print(\"Enter your employee ID number: \");\r\n ID = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your Gross Pay: \");\r\n grosspay = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your State Tax: \");\r\n Statetax = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your Federal Tax: \");\r\n Fedtax = enter.nextDouble(); }", "public void setX(Double x);", "public static void main(String[] args) {\n\t\tScanner p1 = new Scanner(System.in);\n\t\tSystem.out.println(\"a의 값을 입력하시오.\");\n\t\tdouble a = p1.nextDouble();\n\t\tSystem.out.println(\"b의 값을 입력하시오.\");\n\t\tdouble b = p1.nextDouble();\n\t\tSystem.out.println(\"c의 값을 입력하시오.\");\n\t\tdouble c = p1.nextDouble();\n\t\t\n\t\tdouble determinant;\n\t\tdouble x1, x2;\n\t\t\n\t\tSystem.out.println(\"a=\" + a + \" b=\" + b + \" c=\" + c);\n\t\tdeterminant = b*b - 4.0*a*c;\n\t\tx1 = (-b + Math.sqrt(determinant))/(2.0*a);\n\t\tx2 = (-b - Math.sqrt(determinant))/(2.0*a);\n\t\t\n\t\tif (a == 0) \n\t\t{\n\t\t\tSystem.out.println(\"오류: 이차항의 계수가 0이므로, 이차방정식을 풀 수 없습니다.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (determinant < 0)\n\t\t\t{ \n\t\t\t\tSystem.out.println(\"오류: 실근이 존재하지 않으므로, 이차방정식을 풀 수 없습니다.\");\n\t\t\t\t\n\t\t\t}else \n\t\t\t{ \n\t\t\t\tSystem.out.println(\"The solution is either \" + x1 + \" or \" + x2);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"***************Float****************\");\n\t\tSystem.out.println(\"Float default value is :\"+f);\n\t\tSystem.out.println(\"Float Max Value is :\"+fMax);\n\t\tSystem.out.println(\"Float Min Value is :\"+fMin);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"***************Double****************\");\n\t\tSystem.out.println(\"Double default value is :\"+d);\n\t\tSystem.out.println(\"Double Max Value is :\"+dMax);\n\t\tSystem.out.println(\"Double Min Value is :\"+dMin);\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tdouble x= 3.0, y=4.0;\n\t\tnormalize(x,y);\n\t\tSystem.out.printf(\"%.2f, %.2f\\n\",x,y);\n\t\t\n\t\t\n//paso por valor\n\t\t\n\t\t\n\t\t\n\n\t}", "public static double promptUserForDouble(String prompt){\n Scanner scannerln = new Scanner(System.in);\n System.out.print(prompt);\n return scannerln.nextDouble();\n }", "public void userInput() {\r\n System.out.println(\"You want to convert from:\");\r\n this.fromUnit = in.nextLine();\r\n System.out.print(\"to: \");\r\n this.toUnit = in.nextLine();\r\n System.out.print(\"The value is \");\r\n this.value = in.nextDouble();\r\n }", "public double adicao (double numero1, double numero2){\n\t}", "public double getValue(double[] parameters);", "public static void main(String[] args) {\n\t\t\n\t\tdouble num1=18.6, num2=11.5;\n\t\t\n\t\tif(num1>num2) {\n\t\t\tSystem.out.println(\"Double value \"+num1+\" is larger than \"+num2);\n\t\t}else {\n\t\t\tSystem.out.println(\"Double value \"+num1+\" is smaller than \"+num2);\n\t\t}\n\t\t\n\t\t\t\n\t}", "public static void main(String[] args) {\n\t\t\n\n\t\n\t\tString a = \"Input x and y values to begin: \";\n\t\tString b = \"Input your x values\";\n\t\tSystem.out.println(a + b);\n\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tdouble vectorValue = scan.nextDouble();\n\t\t\n\t\tMyVector<Double> vectors = new MyVector<Double>();\n//\t\tdouble x = vectors.plus(vectorValue);\n\n\n\t}", "public static void main(String[] args) {\nScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter first number:\");\n\t\t\n\t\tdouble num1 = scan.nextDouble();\n\t\t \n\t\tSystem.out.println(\"Enter second number:\");\n\t\t\n\t\tdouble num2 = scan.nextDouble();\n\t\t \n\t\tSystem.out.println(\"Select operator: +, -, *, /, %\");\n\t\tString operator = scan.next();\n\t\t \n\t\t switch(operator) {\n\t\t \n\t\t case (\"+\"):\n\t\t\t System.out.println(\"result: \" +(num1+num2));\n\t\t break;\n\t\t case (\"-\"):\n\t\t\t System.out.println(\"result: \" +(num1-num2));\n\t\t break;\n\t\t case (\"*\"):\n\t\t\t System.out.println(\"result: \" +(num1*num2));\n\t\t break;\n\t\t case (\"/\"):\n\t\t\t System.out.println(\"result: \" + (num1/num2));\n\t\t break;\n\t\t case (\"%\"):\n\t\t\t System.out.println(\"result: \" + (num1%num2));\n\t\t break;\n\t\t default:\n\t\t\t System.out.println(\"impossible\");\n\t\t \n\t\t }\n\t\t \n\t\t \n\t}", "public void setVar3(java.lang.Double value) {\n this.var3 = value;\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tdouble a=sc.nextDouble();\n\t\tdouble b=sc.nextDouble();\n\t\tSystem.out.printf(\"%.2f%n\",(a/b));\n \n\t}", "public double calculateValue () {\n return double1 * double2;\n }", "public double getValue() {// modified by JD to issue error dialog\n while (display.getText().equals(\"\")) {\n String UserInput = JOptionPane.showInputDialog\n (\"Please enter the required input value:\");\n display.setText(UserInput);\n }\n return Double.parseDouble(display.getText());\n }", "public static void main(String[] args) {\n \n\t\tScanner s = new Scanner(System.in);\n\t\t\n\t\tSystem.out.print(\"Enter the values for x1 and y1: \");\n\t\tdouble x1 = s.nextDouble();\n\t\tdouble y1 = s.nextDouble();\n\t\t\n\t\tSystem.out.print(\"Enter the values for x2 and y2: \");\n\t\tdouble x2 = s.nextDouble();\n\t\tdouble y2 = s.nextDouble();\n\t\tdouble a = (x2-x1)*(x2-x1);\n\t\tdouble b =(y2-y1)*(y2-y1);\n\t\tdouble distance = Math.pow(a+b, 0.5);\n\t\t\t\t\n\t\t\n\t\tSystem.out.println(\"The distance of the points is \" + distance);\n\t\t\n\t}", "public static void main(String[] args) {\n try{\n //Peticion de datos al usuario\n System.out.println(\"Resolución de la ecuación cuadrática\");\n System.out.println(\"------------------------------------\");\n System.out.println();\n System.out.println(\"Indique el valor de A: \");\n a = input.nextDouble();\n System.out.println(\"Indique el valor de B: \");\n b = input.nextDouble();\n System.out.println(\"Indique el valor de C: \");\n c = input.nextDouble();\n \n //Resolucion de la ecuacion y obtencion de los dos posibles resultados\n resultado1 = (-b + Math.sqrt(Math.pow(b, 2) - (4*a*c))) / (2*a);\n resultado2 = (-b - Math.sqrt(Math.pow(b, 2) - (4*a*c))) / (2*a);\n \n //Se muestra por consola los valores obtenidos de X\n System.out.println(\"Resolución #1: \\n\" + \"X = \" + resultado1);\n System.out.println(\"Resolución #2: \\n\" + \"X = \" + resultado2);\n }catch(InputMismatchException ex){\n System.out.println(\"ERROR. Los valores introducidos han de ser numéricos\");\n }\n \n \n }", "public abstract void setValue(double fltValue);", "double doubleTheValue(double input) {\n\t\treturn input*2;\n\t}", "public static void main(String[] args) {\n\t\n\tScanner scan=new Scanner(System.in);\n\tSystem.out.println(\"2 sayi giriniz\");\n\tdouble sayi1 = scan.nextDouble();\n\tdouble sayi2 = scan.nextDouble();\n\t\n\tdouble sonuc= sayi1 > sayi2 ? sayi1 :sayi2;\n\tSystem.out.println(sonuc);\n\t\n\tscan.close();\n}", "public void setVar111(java.lang.Double value) {\n this.var111 = value;\n }", "public abstract double initialise();", "@Override\n\tpublic double calc(double d1, double d2) {\n\t\treturn 0;\n\t}", "private void askUser(){\n\t\tprintln(\"Enter the values to compute Pythagorean Theorem: \");\n\t\tprint(\"a: \");\n\t\tint a = readInt();\n\t\tprint(\"b: \");\n\t\tint b = readInt();\n\t\tcomputePythagorean(a, b);\n\t}", "public static void main(String[] args) {\r\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\r\n\t\t//welcomes user to the math tutor\r\n\t\tSystem.out.println(\"Hi, I am Pi, your personal math tutor. Today we will be practicing basic arthmetics\");\r\n\t\tSystem.out.println(\"What is your name?\");\r\n\t\tString name = sc.nextLine();\r\n\r\n\t\t//generates the numbers\r\n\t\tint firstDigit = (int)(Math.random()*10)+1;\r\n\t\tint secondDigit = (int)(Math.random()*10)+1;\r\n\t\tint operator = (int)(Math.random()*4)+1;\r\n\t\tdouble answer;\r\n\r\n\t\t//assigns operator\r\n\t\tswitch (operator) \r\n\t\t{ \r\n\t\tcase 1: System.out.println(name + \" What is \" + firstDigit + \"+\" + secondDigit + \"?\");\r\n\t\t\tdouble userAnswerA = sc.nextInt();\r\n\t\t\tdouble correctAnswerA = firstDigit + secondDigit;\r\n\r\n\t\t//checks the user's answer\r\n\t\tif (userAnswerA == correctAnswerA)\r\n\t\t\tSystem.out.println (\"Good job! You got the right answer!\");\r\n\t\telse\t\r\n\t\t\tSystem.out.println(\"Sorry that's the wrong answer. You should have gotten \" + correctAnswerA + \".\");\r\n\t\tbreak;\r\n\r\n\t\tcase 2: System.out.println(name + \" What is \" + firstDigit + \"-\" + secondDigit + \"?\"); \r\n\t\t\tdouble userAnswerS = sc.nextInt();\r\n\t\t\tdouble correctAnswerS = firstDigit - secondDigit;\r\n\r\n\t\t//checks the user's answer\r\n\t\tif (userAnswerS == correctAnswerS)\r\n\t\t\tSystem.out.println (\"Good job! You got the right answer!\");\r\n\t\telse\t\r\n\t\t\tSystem.out.println(\"Sorry that's the wrong answer. You should have gotten \" + correctAnswerS + \".\");\r\n\t\tbreak;\r\n\r\n\t\tcase 3: System.out.println(name + \" What is \" + firstDigit + \"/\" + secondDigit + \"?\"); \r\n\t\t\tdouble userAnswerD = sc.nextInt();\r\n\t\t\tdouble correctAnswerD = firstDigit / secondDigit;\r\n\r\n\t\t//checks the user's answer\r\n\t\tif (userAnswerD == correctAnswerD)\r\n\t\t\tSystem.out.println (\"Good job! You got the right answer!\");\r\n\t\telse\t\r\n\t\t\tSystem.out.println(\"Sorry that's the wrong answer. You should have gotten \" + correctAnswerD + \".\");\r\n\t\tbreak;\r\n\t\tcase 4: System.out.println(name + \" What is \" + firstDigit + \"*\" + secondDigit + \"?\");\r\n\t\t\tdouble userAnswerM = sc.nextInt();\r\n\t\t\tdouble correctAnswerM = firstDigit * secondDigit;\r\n\r\n\t\t//checks the user's answer\r\n\t\tif (userAnswerM == correctAnswerM)\r\n\t\t\tSystem.out.println (\"Good job! You got the right answer!\");\r\n\t\telse\t\r\n\t\t\tSystem.out.println(\"Sorry that's the wrong answer. You should have gotten \" + correctAnswerM + \".\");\r\n\t\tbreak;\r\n\t\t}\r\n\r\n\r\n\r\n\t}", "public void setGivenNum(double input) {\n givenNum = input;\n }", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner (System.in);\n\t\t\n\t\tboolean flag = false;\n\t\t\n\t\tdouble number1 = sc.nextDouble();\n\t\tdouble number2 = sc.nextDouble();\n\t\t\n\t\tdouble change = number1 - number2;\n\t\t\n\t\twhile(!flag) {\n\t\t\t\n\t\t\tif(change>=50){\n\t\t\t\tchange = change-50;\n\t\t\t\tSystem.out.print(\"50, \");\n\t\t\t} else if (change>=20) {\n\t\t\t\tchange = change-20;\n\t\t\t\tSystem.out.print(\"20, \");\n\t\t\t} else if (change>=10) {\n\t\t\t\tchange = change-10;\n\t\t\t\tSystem.out.print(\"10, \");\n\t\t\t} else if (change>=5) {\n\t\t\t\tchange = change-5;\n\t\t\t\tSystem.out.print(\"5, \");\n\t\t\t} else if (change>=2) {\n\t\t\t\tchange = change-2;\n\t\t\t\tSystem.out.print(\"2, \");\n\t\t\t} else if (change>=1) {\n\t\t\t\tchange = change-1;\n\t\t\t\tSystem.out.print(\"1, \");\n\t\t\t} else if (change>=0.5) {\n\t\t\t\tchange = change-0.5;\n\t\t\t\tSystem.out.print(\"0.5, \");\n\t\t\t} else if (change>=0.2) {\n\t\t\t\tchange = change-0.2;\n\t\t\t\tSystem.out.print(\"0.2, \");\n\t\t\t} else if (change>=0.1) {\n\t\t\t\tchange = change-0.1;\n\t\t\t\tSystem.out.print(\"0.1, \");\n\t\t\t}\n\t\t\t\n\t\t\tif(change==0){\n\t\t\t\tflag = true;\n\t\t\t}\n\t\t}\n\t}", "public abstract double getValue();", "public static double promptForDouble(String prompt, double min, double max) {\n double result = -1;\n boolean invalidInput = true;\n String input = null;\n if(min > max) throw new IllegalArgumentException(\"min cannot be greater than max.\");\n if(prompt == null) throw new IllegalArgumentException(\"prompt cannot be null.\");\n\n do{\n input = receiveInput(prompt + String.format(\"(%f-%f)\", min, max));\n if (checkIfIsDouble(input)) {\n result = Double.parseDouble(input);\n invalidInput = result < min || result > max;\n if (invalidInput) {\n System.out.println(\"Please Enter a double value between \" + min + \" and \" + max);\n }\n } else {\n System.out.println(\"Please Enter a valid double value.\");\n }\n }while (invalidInput);\n\n return result;\n }", "@When(\"^we enter latitude as \\\"([^\\\"]*)\\\" and longitude as \\\"([^\\\"]*)\\\"$\")\n\tpublic void we_enter_latitude_as_and_longitude_as(String arg1, String arg2) {\n\ttry {\n\t//\tDouble d1=Double.parseDouble(arg1);\n\t\t//Double d2=Double.parseDouble(arg2);\n\t\t\n\t\t//System.out.println(\"D1 and D2::\"+d1+ \" \"+ d2);\n\t\tList<Product> response=productsApi.productsGet(15.0, 15.0);\n\t\tSystem.out.println(\"RESPONSE:::\"+response.get(0));\n\t} catch(ApiException ape) {\n\t\tSystem.out.println(ape.getCode());\n\t\tSystem.out.println(ape.getMessage());\n\t}\n\t \n\t}", "public static void main(String[] args) {\n\t\tint a = 1+9;\n\t\tSystem.out.println(\"a = \" + a);\n\t\tint e = 12 - 7;\n\t\tSystem.out.println(\"e = \" + e);\n\t\tint i = 2 * 5;\n\t\tSystem.out.println(\"i = \" + i);\n\t\tint m = 12 / 6;\n\t\tSystem.out.println(\"m = \" + m);\n\t\t\n\t\t//Adding two decimal numbers and storing in an int type variable\n\t\t// int b = 5.5 + 7.5; //Adding two decimal numbers i.e. 5.5 and 3.2 and storing the result in the int type variable 'b'\n\t\t//We cant assign decimal values to the int type variables.\n\t\t//by adding type cast to the decimal values, the program will not throw the error, digits after the decimal points will be ignored while adding.\n\t\t\n\t\tint b = (int)5.5 + (int)7.5; //Type casting the flote values to int\n\t\tSystem.out.println(\"b = \" + b);\n\t\tint f = (int)9.5 - (int)7.5;\n\t\tSystem.out.println(\"f = \" + f);\n\t\tint j = (int)9.5 * (int)7.5;\n\t\tSystem.out.println(\"j = \" + j);\n\t\tint n = (int)5.5 / (int)3.2;\n\t\tSystem.out.println(\"n = \" + n);\n\t\t\n\t\tdouble c = 5 + 4;//Adding two integers i.e. 5 and 3 and storing the result in the double type variable 'a'\n\t\tSystem.out.println(\"c = \" + c);\n\t\tdouble g = 9 - 7;\n\t\tSystem.out.println(\"g = \" + g);\n\t\tdouble k = 9 * 7;\n\t\tSystem.out.println(\"k = \" + k);\n\t\tdouble o = 5 / 3;\n\t\tSystem.out.println(\"o = \" + o);\n\t\t\n\t\tdouble d = 4.5 + 5.3;\n\t\tSystem.out.println(\"d = \" + d);\n\t\tdouble h = 8.5 - 5.3;\n\t\tSystem.out.println(\"h = \" + h);\n\t\tdouble l = 8.5 * 5.3;\n\t\tSystem.out.println(\"l = \" + l);\n\t\tdouble p = 5.0 / 3;\n\t\tSystem.out.println(\"p = \" + p);\n\t\t\n\t\t//The Modulus operator '%' returns the reminder of a division operator.\n\t\tint q = 8%3;\n\t\tSystem.out.println(\"q = \" + q);\n\t\tdouble r = 8.568%3;\n\t\tSystem.out.println(\"r = \" + r);\n\t\t\n\t\t//Java provides special operators called Compound Assignment operators which combine an arithmetic operation with an assignment '='\n\t\tint s = 4;\n\t\ts+= 3;//you need to write s+= no space between + and = for compound assignment otherwise it will throw an error\n\t\t//Using Compound assignment operator to increment the variable 's' value by 3 i.e. 4+3\n\t\tSystem.out.println(\"s = \" + s);\n\t\tint t = 4;\n\t\tt-= 3;\n\t\tSystem.out.println(\"t = \" + t);\n\t\tint u = 4;\n\t\tu*= 3;\n\t\tSystem.out.println(\"u = \" + u);\n\t\tint v = 4;\n\t\tv/= 2;\n\t\tSystem.out.println(\"v = \" + v);\n\t\tint w = 5;\n\t\tw%= 3;\n\t\tSystem.out.println(\"w = \" + w);\n\t\t\n\t\tint x = 4;\n\t\tx++;\n\t\tSystem.out.println(\"x = \" + x);\n\t\tint y = 4;\n\t\t++y;\n\t\tSystem.out.println(\"y = \" + y);\n\t\t\n\t\tint pre = 4;\n\t\tSystem.out.println(\"The value of variable 'pre' before incremental using prefix operator = \" + pre);\n\t\tSystem.out.print(\"The value of variable 'pre' while incremental using prefix operator = \" );\n\t\tSystem.out.println(++pre); //(Incremented and printed)\n\t\tSystem.out.println(\"The value of variable 'pre' after incremental using prefix operator = \" + pre);\n\t\t\n\t\tint post = 4;\n\t\tSystem.out.println(\"The value of variable 'post' before incremental using prefix operator = \" + post);\n\t\tSystem.out.print(\"The value of variable 'post' while incremental using prefix operator = \" );\n\t\tSystem.out.println(post++); //(Printed without increment)\n\t\tSystem.out.println(\"The value of variable 'post' after incremental using prefix operator = \" + post); //(Incremented here)\n\t\t\n\t\tint a1 = 1;\n\t\tint b1 = 1;\n\t\tint c1 = ++b1;\n\t\tint d1 = a1++;\n\t\t\n\t\tSystem.out.println(\"a1 = \" + a1);\n\t\tSystem.out.println(\"b1 = \" + b1);\n\t\tSystem.out.println(\"c1 = \" + c1);// Here the value of variable 'b1' will get incremented first and then the incremented value gets assinged to vartiable 'c1'\n\t\tSystem.out.println(\"d1 = \" + d1); // Here the value of variable 'a1' will get assigned to variable 'd' and later the value of variable 'a1' gets incremented\n\t\t\n\t\tint pren = 4;\n\t\tSystem.out.println(\"The value of variable 'pren' before incremental using prefix operator = \" + pren);\n\t\tSystem.out.print(\"The value of variable 'pren' while incremental using prefix operator = \" );\n\t\tSystem.out.println(--pren); //decremented and printed)\n\t\tSystem.out.println(\"The value of variable 'pren' after incremental using prefix operator = \" + pren);\n\t\t\n\t\tint postn = 4;\n\t\tSystem.out.println(\"The value of variable 'postn' before incremental using prefix operator = \" + postn);\n\t\tSystem.out.print(\"The value of variable 'postn' while incremental using prefix operator = \" );\n\t\tSystem.out.println(postn--); //(Printed without decremented)\n\t\tSystem.out.println(\"The value of variable 'postn' after incremental using prefix operator = \" + postn); //(decremented here)\n\t\t\n\t\tint a2 = 1;\n\t\tint b2 = 2;\n\t\tint c2 = --b2;\n\t\tint d2 = a2--;\n\t\t\n\t\tSystem.out.println(\"a2 = \" + a2);\n\t\tSystem.out.println(\"b2 = \" + b2);\n\t\tSystem.out.println(\"c2 = \" + c2);// Here the value of variable 'b1' will get incremented first and then the incremented value gets assinged to vartiable 'c1'\n\t\tSystem.out.println(\"d2 = \" + d2); // Here the value of variable 'a1' will get assigned to variable 'd' and later the value of variable 'a1' gets incremented\n\n\t}", "private Double askDouble(String label){\n try{\n System.out.println(label);\n String input = in.nextLine();\n if (input.isEmpty()){\n return null;\n }\n else{\n return Double.parseDouble(in.nextLine());}\n }\n catch(NumberFormatException e){\n return askDouble(label);\n }\n }", "int main()\n{\n float s1,s2;\n scanf(\"%f%f\",&s1,&s2);\n printf(\"%.2f\",sqrt((s1*s1)+(s2*s2)));\n \n return 0;\n}", "public static void main(String[] args){\n Scanner n = new Scanner(System.in);\r\n System.out.println(\"Escriba dos numeros par saber la suma y la multiplicacion de estos:\");\r\n double num1 = n.nextDouble();\r\n double num2 = n.nextDouble();\r\n double suma = num1+num2;\r\n double multi = num1*num2;\r\n System.out.println(\"La suma de los dos numeros es: \"+suma);\r\n System.out.println(\"La multiplicacion de los dos numeros es: \"+multi);\r\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the value of principle, time and rate respectively:\");\r\n\t\tfloat p =input.nextFloat();\r\n\t\tfloat t =input.nextFloat();\r\n\t\tfloat r=input.nextFloat();\r\n\t\tfloat si;\r\n\t\tsi=(p*t*r)/100;\r\n\t\tSystem.out.println(\"The required simple interest is \"+si);\r\n\r\n\t}", "private static double Optimo(double valor1, double valor2, String metodo) {\n if (metodo.equals(\"Min\")) {\n return Math.min(valor1, valor2);\n } else {\n return Math.max(valor1, valor2);\n }\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t\t//I'm just declaring all the variables I need right now so I don't need to later.\r\n\t\tdouble miles;\r\n\t\t\r\n\t\tdouble feet;\r\n\t\t\r\n\t\tdouble inches;\r\n\t\t\r\n\t\tdouble meters; \r\n\t\t\r\n\t\t//Here I am printing the prompt for the user to input values I will need to convert to meters\r\n\t\tSystem.out.println(\"Enter miles:\");\r\n\t\t\t\t\r\n\t\t\tScanner userInput = new Scanner (System.in);\r\n\t\t\tmiles = userInput.nextDouble();\r\n\t\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"Enter feet:\");\r\n\t\t\r\n\t\t\tScanner userInput2 = new Scanner (System.in);\r\n\t\t\tfeet = userInput2.nextDouble();\r\n\t\t\t\r\n\t\t\t\r\n\t\tSystem.out.println(\"Enter inches:\");\r\n\t\t\r\n\t\t\tScanner userInput3 = new Scanner (System.in);\r\n\t\t\tinches = userInput3.nextDouble();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t/*this is where I am converting all my values to feet, which will then convert to\r\n\t\t\t\t * meters.\r\n\t\t\t\t * \r\n\t\t\t\t * I am declaring new variables to represent converted values and also\r\n\t\t\t\t */\r\n\t\t\t\tdouble convertedMiles;\r\n\t\t\t\tconvertedMiles = miles*5280;\r\n\t\t\t\r\n\t\t\t\tdouble convertedFeet;\r\n\t\t\t\tconvertedFeet = feet*1;\r\n\t\t\t\r\n\t\t\t\tdouble convertedInches;\r\n\t\t\t\tconvertedInches = inches/12;\r\n\t\t\t\t\r\n\t\t//this statement is where I add together all my converted values to reach my total in feet\r\n\t\t//and then I divide by 3.3 to get to my meters, as specified in the directions\r\n\t\tmeters = (convertedMiles + convertedFeet + convertedInches)/3.3;\r\n\t\t\r\n\t\t//This statement declares a new variable that will convert from meters to a rounded version\r\n\t\t//so that I can have a variable that is rounded to the nearest tenth.\r\n\t\tdouble metersRounded = (double)Math.round((meters)*10)/10;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(miles + \" mile(s), \" + feet + \" foot(or feet) \" + inches + \r\n\t\t\t\t\t\t \" inch(es) = \" + metersRounded + \" meter(s).\");\r\n\t\t\r\n\t\tuserInput.close();\r\n\t\tuserInput2.close();\r\n\t\tuserInput3.close();\r\n\t\t\r\n\t\t\r\n\r\n\t}", "protected abstract double doubleOp(double d1, double d2);", "include<math.h>\nint main()\n{\n float x1=2,y1=4,x2=10,y2=15,x3=5,y3=8;\n\n std::cin>>x1>>y1>>x2>>y2>>x3>>y3;\n float x = (x1+x2+x3)/3;\n float y = (y1+y2+y3)/3;\n std::cout<<x<<\"\\n\";\n std::cout<<y;\n}", "public void setVar21(java.lang.Double value) {\n this.var21 = value;\n }", "public static void main(String[] args) {\n\n // DataType variableName = Data;\n\n double HourlyRate= 55;\n double stateTaxRate= 0.04;\n double federalTaxRate= 0.22;\n byte weeklyHours= 40;\n byte totalWeeks=52;\n\n // salary=hourlyRate * weeklyHours * 52\n double salary = HourlyRate * weeklyHours * totalWeeks; //salary before tax\n\n //stateTax=salary * stateTaxRate\n double stateTax=salary * stateTaxRate;\n\n // federalTax= salary * federaltaxRate\n double federalTax= salary * federalTaxRate;\n\n //salaryAfterTax = salary - stateTax - fedaralTax\n double salaryAfterTax = salary - (stateTax + federalTax);\n\n System.out.println(\"Your salary is: $\"+salary); //concatenation\n\n /*\n System.out.println(\"9\" + 3); // 93->concatenation\n System.out.println(9+\"3\"); // 93-> concatenation\n System.out.println(9 + 3); // 12-> addition */\n\n\n System.out.println(\"State Tax is: $\"+stateTax);\n System.out.println(\"Federal Tax is: $\"+ federalTax);\n System.out.println(\"Total Tax is: $\" + (federalTax + stateTax) );\n System.out.println(\"Your salary after tax is: $\"+salaryAfterTax);\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Skriv två tal\");\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tdouble nbr1 = scan.nextDouble();\r\n\t\tdouble nbr2 = scan.nextDouble();\r\n\t\t//*Hej var hamnar du */\r\n\t\tdouble sum = nbr1 + nbr2;\r\n\t\tSystem.out.println(\"Summan av talen är\" + sum);\r\n\t\r\n\t}", "public static void main(String[] args) {\n int myIntValue = 5 / 2;\n float myFloatValue = 5f / 3f;\n //float myFloatValue = 5.4f; //f designates # as a float\n //float myFloatValue = (float) 5.4; ''casting''\n //defining literal values - double pi = 3_000_00.141592d; or double pi = 3.141592d\n double myDoubleValue = 5d / 3d;\n System.out.println(\"myIntValue = \" + myIntValue);\n System.out.println(\"myFloatValue = \" + myFloatValue);\n System.out.println(\"myDoubleValue = \" + myDoubleValue);\n\n /**Challenge - Convert a given # of pounds - lbs to kilograms kg\n * 1. Create a variable to store the # of lbs\n * 2. Calculate the # of kg's for the # above & store in a variable.\n * 3. Print out the results.\n * Notes: 1 lb = 0.45359237 kg\n */\n double myValueLbs = 145.5d; //variable to store lbs\n double myValueKgs = 0.45359237d;\n double myKgsConverted = myValueLbs * myValueKgs;\n System.out.println(\"Weight is myWeightValue \" + myKgsConverted);\n }", "public static void input1()\n {\n n = 500;\n /*System.out.println(\"Enter the distance threshold(epsilon)\");\n Scanner di_th1 = new Scanner(System.in);\n distance_thres = di_th1.nextDouble();*/\n distance_thres = 1;\n /*System.out.println(\"Enter the minPts\");\n Scanner m_pt = new Scanner(System.in);\n minPts = m_pt.nextInt();*/\n minPts = 10;\n /*System.out.println(\"Enter the size_threshold\");\n Scanner s_th = new Scanner(System.in);\n size_threshold = s_th.nextInt();*/\n size_threshold = 10;\n /*System.out.println(\"Enter the duration_threshold\");\n Scanner du_th = new Scanner(System.in);\n duration_threshold = du_th.nextDouble();*/\n duration_threshold = 50;\n /*System.out.println(\"Enter the Buddy radius threshold\");\n Scanner bud_rad = new Scanner(System.in);\n buddy_radius = bud_rad.nextDouble();*/\n buddy_radius = 0.2;\n }", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\n\t\tSystem.out.println(\"Unesite brzinu aviona: \");\n\t\tdouble v = input.nextDouble();\n\n\t\tSystem.out.println(\"Unesite ubrzanje aviona:\");\n\t\tdouble a = input.nextDouble();\n\n\t\tSystem.out.println(\"Minimalna duzina piste potrebna za uzletanje je: \" + v * v / (2 * a));\n\n\t\tinput.close();\n\t}", "public static void main(String[] args) {\n \r\n Scanner sc = new Scanner(System.in);\r\n String choice = \"y\";\r\n while (choice.equalsIgnoreCase (\"y\")) {\r\n //retreive user input\r\n System.out.println(\"Length of side A: \");\r\n double sideA = sc.nextDouble();\r\n System.out.println();\r\n \r\n System.out.println(\"Length of side B: \");\r\n double sideB = sc.nextDouble();\r\n System.out.println();\r\n //calculate results\r\n double sideC;\r\n sideC = Math.sqrt((Math.pow(sideA,2)) + (Math.pow(sideB,2)));\r\n \r\n BigDecimal Hypotenuse = new BigDecimal(sideC).setScale(2,RoundingMode.HALF_UP);\r\n //display results\r\n System.out.println(\"The hypotenuse equals: \" + Hypotenuse + \"\\n\");\r\n \r\n //end loop\r\n System.out.print(\"Continue (y/n)? \");\r\n choice = sc.next();\r\n System.out.println();\r\n }\r\n }", "public static void main (String[] args) {\n\t\tdouble x1 = 0, y1 = 0, x2 = 0, y2 = 0, perimeter = 0, hypotenuse = 0, \n\t\t\t\tside1 = 0, side2 = 0;// Declare all the variables as double and assigning an initial value to them\n\t\t// Declare Scanner input, so that user will be able to assign their own values to x1, x2, y1, and y2\n\t\tScanner inputScanner = new Scanner (System.in);\n\t\tSystem.out.println(\"Enter an integer for x1\");\n\t\tx1 = inputScanner.nextInt();\n\t\tSystem.out.println(\"Enter an integer for y1\");\n\t\ty1 = inputScanner.nextInt();\n\t\tSystem.out.println(\"Enter an integer for x2\");\n\t\tx2 = inputScanner.nextInt();\n\t\tSystem.out.println(\"Enter an integer for y2\");\n\t\ty2 = inputScanner.nextInt(); \n\t\tside1 = x2 - x1;// this statement states that side1 will be equal to the difference of x2 - x1\n\t\tside2 = y2 - y1;// this statement states that side2 will be equal to the difference of y2 - y1\n\t\t// This will compute a value \n\t\thypotenuse = Math.sqrt(Math.pow(side1, 2.0) + Math.pow(side2, 2.0));\n\t\tperimeter = side1 + side2 + hypotenuse; \n\t\t// This statement will output a value for the hypotenuse; then using this to find the perimeter \n\t\tSystem.out.println(\"The perimeter of the right angle triangle with sides\" + Double.toString(side1) + \",\"\n\t\t\t\t+ Double.toString(side2) + \"and hypotenuse\" + Double.toString(hypotenuse) + \"is\" + Double.toString(perimeter));\n\t\t/* The above statement will convert the values of side1, side2, hypotenuse and perimeter from double to string; then it will present\n\t\t * the the value of the hypotenuse and perimeter of the right angle triangle\n\t\t */\n\t\tinputScanner.close(); \t\t\t\n\t}", "public static void main(String[] args) {\n double a, b, c, delta, x1, x2, x0;\n System.out.println(\"Proszę podać współczynnik a\");\n Scanner scanner = new Scanner(System.in);\n a = scanner.nextDouble();\n System.out.println(\"Proszę podać współczynnik b\");\n b = scanner.nextDouble();\n System.out.println(\"Proszę podać współczynnik c\");\n c = scanner.nextDouble();\n delta = b * b - 4 * a * c;\n if (delta > 0) //jeśli delta jest większa od 0 to mamy dwa miejsca zerowe\n {\n x1 = (-b - Math.sqrt(delta)) / (2 * a); //wyznaczamy 1 miejsce zerowe\n x2 = (-b + Math.sqrt(delta)) / (2 * a); //wyznaczamy 2 miejsce zerowe\n System.out.println(\"Delta jest wiesza od zera dlatego funkcja ma dwa miejsca zerowe: x1 = \" + x1 + \" a x2 = \" + x2);\n }\n else if (delta == 0)\n {\n x0 = -b / (2 * a); //wyznaczamy jedno miejsce zerowe\n System.out.println(\"Delta jest równa zero dlatego funkcja ma jedno miejsce zerowe: x0 = \" + x0);\n }\n else\n System.out.println(\"Delta jest mniejsza od zera dlatego funkcja nie ma miejsc zerowych\");\n }", "public static void take_inputs(){\n\t\tScanner in = new Scanner(System.in);\n\t\tSystem.out.println(\"Input the ideal restaurant attributes:\");\n\t\tSystem.out.print(\"Cheap: \"); cheap = in.nextFloat();\n\t\tSystem.out.print(\"Nice: \"); nice = in.nextFloat();\n\t\tSystem.out.print(\"Traditional: \"); traditional = in.nextFloat();\n\t\tSystem.out.print(\"creative: \"); creative = in.nextFloat();\n\t\tSystem.out.print(\"Lively: \"); lively = in.nextFloat();\n\t\tSystem.out.print(\"Quiet: \"); quiet = in.nextFloat();\n\t\t\n\t\tSystem.out.println(\"Input the attributes weights:\");\n\t\tSystem.out.print(\"Weight for Cheap: \"); wt_cheap = in.nextFloat();\n\t\tSystem.out.print(\"Weight for Nice: \"); wt_nice = in.nextFloat();\n\t\tSystem.out.print(\"Weight for Traditional: \"); wt_traditional = in.nextFloat();\n\t\tSystem.out.print(\"Weight for creative: \"); wt_creative = in.nextFloat();\n\t\tSystem.out.print(\"Weight for Lively: \"); wt_lively = in.nextFloat();\n\t\tSystem.out.print(\"Weight for Quiet: \"); wt_quiet = in.nextFloat();\n\t}", "static void add(){\n double a = 5.6;//static variable\n double b = 8.5;//static variable\n double c = a * b;//static variable for formula\n double d = 2*(a+b);//static variable for formula\n System.out.println(\"Area is \" + c);//print statement for area output\n System.out.println(\"Perimeter is \" + d);//print statement for perimeter output\n }", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tdouble anser1;\r\n\t\tdouble anser2;\r\n\t\tint a;\r\n\t\tdouble b;\r\n\t\tString d=null;\r\n\t\tint c;\r\n\t\tdouble s;\r\n\t\tSystem.out.println(\"기간\");\r\n\t\t//year\r\n\t\ta = scanner.nextInt();\r\n\t\tSystem.out.println(\"이율\");\r\n\t\t//r\r\n\t\tb = scanner.nextDouble();\r\n\t\tSystem.out.println(\"원금\");\r\n\t\t//a\r\n\t\tc = scanner.nextInt();\r\n\t\tSystem.out.println(\"All\");\r\n\t\ts = scanner.nextDouble();\r\n\t\tanser1 = pa(a,b,c);\r\n\t\tanser2 = ba(a,b,c);\r\n\t\tSystem.out.println(\"수학적 정답\"+anser1);\r\n\t\tSystem.out.println(\"이율 반올림\"+anser2);\r\n\t\tscanner.close();\r\n\t\tanser1 = (c*(1+b)*(anser2-1))/b;\r\n\t\tSystem.out.println(\"기간 초에 적립\"+anser1);\r\n\t\tanser1 = (c*(anser2-1))/b;\r\n\t\tSystem.out.println(\"기간 말에 적립\"+anser1);\r\n\t\tanser1 = s*b/((b+1)*(anser2-1));\r\n\t\tSystem.out.println(\"매월초 적립할 금액 구하기\"+anser1);\r\n\t\tanser1 = (s*b)/(anser2-1);\r\n\t\tSystem.out.println(\"매월말 적립할 금액 구하기\"+anser1);\r\n\t}", "public static double inputDouble()\n\t{\n\t\treturn(sc.nextDouble());\n\t}", "public boolean isDouble();", "public static void main(String[] args)\n {\n\n double myDouble = 3.14;\n float myFloat = 3.14f; //Removing the f will cause an error due to lossy conversion\n double yourDouble = myFloat; //Widening/lossless conversions won't raise errors\n }" ]
[ "0.66135573", "0.6413683", "0.62946725", "0.62770116", "0.62047833", "0.6083578", "0.58648294", "0.5858192", "0.5843989", "0.5830425", "0.58190405", "0.5813526", "0.58023113", "0.58022195", "0.57972974", "0.57924545", "0.57744217", "0.5765545", "0.572886", "0.5715531", "0.5688501", "0.56858003", "0.5685703", "0.56747144", "0.5673452", "0.5670348", "0.566277", "0.5654073", "0.56461483", "0.5630904", "0.56116956", "0.5609185", "0.5599811", "0.559561", "0.5590948", "0.55894107", "0.5581316", "0.55774844", "0.5551808", "0.5548285", "0.5545586", "0.5545586", "0.5545586", "0.55453503", "0.5542013", "0.5538241", "0.5536571", "0.5536274", "0.5534358", "0.55288154", "0.55270904", "0.55150145", "0.5514927", "0.5508071", "0.5506339", "0.54994774", "0.54986733", "0.5497355", "0.5487814", "0.5469887", "0.5458206", "0.54568774", "0.5455291", "0.5451895", "0.54494786", "0.54452604", "0.544271", "0.54386455", "0.54386103", "0.54241663", "0.5422447", "0.5420815", "0.54187924", "0.5413205", "0.5403478", "0.5403191", "0.54029256", "0.54026186", "0.53979367", "0.53952754", "0.53913397", "0.53913075", "0.5388248", "0.53868395", "0.53838205", "0.537251", "0.53662086", "0.5365651", "0.5365293", "0.53631175", "0.53602505", "0.5349656", "0.5347153", "0.53426284", "0.53399926", "0.53383875", "0.533232", "0.53304106", "0.5328408", "0.5326004", "0.5324929" ]
0.0
-1
Created by JCM on 25.11.2018.
public interface Selectable { boolean isSelected(); void setSelected(boolean selected); void setGroup(SelectionGroup group); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\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}", "public final void mo51373a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\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 }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n void init() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void init() {\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}", "@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 interr() {\n\t}", "private void init() {\n\n\t}", "@Override\n public void init() {}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void memoria() {\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 dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n\tprotected void initialize() {\n\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}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void initialize() {\n \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 void mo55254a() {\n }", "private Rekenhulp()\n\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}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void mo6081a() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t}", "Petunia() {\r\n\t\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "private TMCourse() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "private void init() {\n\n\n\n }", "private void kk12() {\n\n\t}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }" ]
[ "0.58975077", "0.5770173", "0.5662836", "0.565111", "0.55867773", "0.55867773", "0.5575104", "0.5567095", "0.5557265", "0.5557081", "0.55566394", "0.5514806", "0.5514806", "0.5514806", "0.5514806", "0.5514806", "0.5514806", "0.55113053", "0.5510551", "0.5478077", "0.54774606", "0.54609954", "0.54385316", "0.54341644", "0.54159325", "0.54159325", "0.54159325", "0.54159325", "0.54159325", "0.54047877", "0.54029703", "0.53855294", "0.53842044", "0.5380466", "0.53745866", "0.53745866", "0.5362555", "0.5362555", "0.5359491", "0.5354924", "0.5354603", "0.53539133", "0.53539133", "0.5349885", "0.5341064", "0.5338924", "0.5330109", "0.5330109", "0.5330109", "0.53256273", "0.53236943", "0.53182316", "0.53182316", "0.53182316", "0.5317688", "0.531396", "0.53083175", "0.5307532", "0.5306822", "0.52978224", "0.529206", "0.5291584", "0.52857536", "0.528523", "0.5282089", "0.5282089", "0.5282089", "0.5282089", "0.5282089", "0.5282089", "0.5282089", "0.5278664", "0.52773154", "0.52773154", "0.52773154", "0.5272964", "0.5259516", "0.5259516", "0.5259516", "0.52474767", "0.5236833", "0.5232987", "0.5232017", "0.5231611", "0.5222484", "0.522214", "0.5220568", "0.5219701", "0.52009064", "0.5199526", "0.5190712", "0.5190341", "0.5190341", "0.5189709", "0.51846164", "0.51846164", "0.5176313", "0.5171555", "0.5164828", "0.51640636", "0.51640636" ]
0.0
-1
Crops image into a circle that fits within the ImageView.
public static void displayRoundImageFromUrl(final Context context, final String url, final ImageView imageView) { RequestOptions myOptions = new RequestOptions() .centerCrop() .dontAnimate(); Glide.with(context) .asBitmap() .apply(myOptions) .load(url) .into(new BitmapImageViewTarget(imageView) { @Override protected void setResource(Bitmap resource) { RoundedBitmapDrawable circularBitmapDrawable = RoundedBitmapDrawableFactory.create(context.getResources(), resource); circularBitmapDrawable.setCircular(true); imageView.setImageDrawable(circularBitmapDrawable); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void startCropImage() {\n }", "private void cropImage() {\n\t\t// Use existing crop activity.\n\t\tIntent intent = new Intent(\"com.android.camera.action.CROP\");\n\t\tintent.setDataAndType(mImageCaptureUri, IMAGE_UNSPECIFIED);\n\n\t\t// Specify image size\n\t\tintent.putExtra(\"outputX\", 100);\n\t\tintent.putExtra(\"outputY\", 100);\n\n\t\t// Specify aspect ratio, 1:1\n\t\tintent.putExtra(\"aspectX\", 1);\n\t\tintent.putExtra(\"aspectY\", 1);\n\t\tintent.putExtra(\"scale\", true);\n\t\tintent.putExtra(\"return-data\", true);\n\n\t\t// REQUEST_CODE_CROP_PHOTO is an integer tag you defined to\n\t\t// identify the activity in onActivityResult() when it returns\n\t\tstartActivityForResult(intent, REQUEST_CODE_CROP_PHOTO);\n\t}", "protected void cropImage() {\n if (mOptions.noOutputImage) {\n setResult(null, null, 1);\n } else {\n Uri outputUri = getOutputUri();\n mCropImageView.saveCroppedImageAsync(\n outputUri,\n mOptions.outputCompressFormat,\n mOptions.outputCompressQuality,\n mOptions.outputRequestWidth,\n mOptions.outputRequestHeight,\n mOptions.outputRequestSizeOptions);\n }\n }", "@Override\n public void onDraw(Canvas canvas) {\n if (mImage == null) {\n loadBitmap();\n }\n if (mImage != null) {\n float circleCenter = mWidth / 2;\n // draw the coloured circle\n canvas.drawCircle(circleCenter, circleCenter, circleCenter, mPaintBorder);\n // draw bitmap image inside outer circle, leaving a border\n canvas.drawCircle(circleCenter, circleCenter, circleCenter - mBorderWidth, mPaint);\n// canvas.drawRect(circleCenter - mWidth/2, circleCenter-mWidth/2, circleCenter+mWidth/2, circleCenter+mWidth/2, mPaint);\n }\n }", "public native MagickImage cropImage(Rectangle chopInfo)\n\t\t\tthrows MagickException;", "public Bitmap getRoundedShape(Bitmap scaleBitmapImage) {\n int targetWidth = 200;\n int targetHeight = 200;\n Bitmap targetBitmap = Bitmap.createBitmap(targetWidth,\n targetHeight,Bitmap.Config.ARGB_8888);\n\n Canvas canvas = new Canvas(targetBitmap);\n Path path = new Path();\n path.addCircle(((float) targetWidth - 1) / 2,\n ((float) targetHeight - 1) / 2,\n (Math.min(((float) targetWidth),\n ((float) targetHeight)) / 2),\n Path.Direction.CCW);\n\n canvas.clipPath(path);\n Bitmap sourceBitmap = scaleBitmapImage;\n canvas.drawBitmap(sourceBitmap,\n new Rect(0, 0, sourceBitmap.getWidth(),\n sourceBitmap.getHeight()),\n new Rect(0, 0, targetWidth, targetHeight), null);\n return targetBitmap;\n }", "public static void roundPicture(@NotNull ImageView v, @NotNull Context context) {\n Bitmap bitmap = ((BitmapDrawable) v.getDrawable()).getBitmap();\n RoundedBitmapDrawable roundedBitmapDrawable = RoundedBitmapDrawableFactory.create(\n context.getResources(), bitmap);\n roundedBitmapDrawable.setCircular(true);\n roundedBitmapDrawable.setCornerRadius(Math.max(bitmap.getWidth(), bitmap.getHeight()) / 2f);\n v.setImageDrawable(roundedBitmapDrawable);\n }", "public static Bitmap getCroppedBitmap(Bitmap bitmap) {\n Bitmap output = Bitmap.createBitmap(bitmap.getWidth(),\n bitmap.getHeight(), Config.ARGB_8888);\n\n final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());\n\n Canvas canvas = new Canvas(output);\n\n final Paint paint = new Paint();\n paint.setAntiAlias(true);\n\n int halfWidth = bitmap.getWidth() / 2;\n int halfHeight = bitmap.getHeight() / 2;\n\n canvas.drawCircle(halfWidth, halfHeight,\n Math.max(halfWidth, halfHeight), paint);\n paint.setXfermode(new PorterDuffXfermode(Mode.SRC_IN));\n canvas.drawBitmap(bitmap, rect, rect, paint);\n return output;\n }", "private void onSaveClicked() {\n if (mCropView == null) {\n return;\n }\n\n if (mSaving) return;\n mSaving = true;\n\n Bitmap croppedImage;\n\n // If the output is required to a specific size, create an new image\n // with the cropped image in the center and the extra space filled.\n if (outputX != 0 && outputY != 0 && !scale) {\n // Don't scale the image but instead fill it so it's the\n // required dimension\n croppedImage = Bitmap.createBitmap(outputX, outputY, Bitmap.Config.RGB_565);\n Canvas canvas = new Canvas(croppedImage);\n\n Rect srcRect = mCropView.getCropRect();\n Rect dstRect = new Rect(0, 0, outputX, outputY);\n\n int dx = (srcRect.width() - dstRect.width()) / 2;\n int dy = (srcRect.height() - dstRect.height()) / 2;\n\n // If the srcRect is too big, use the center part of it.\n srcRect.inset(Math.max(0, dx), Math.max(0, dy));\n\n // If the dstRect is too big, use the center part of it.\n dstRect.inset(Math.max(0, -dx), Math.max(0, -dy));\n\n // Draw the cropped bitmap in the center\n canvas.drawBitmap(mBitmap, srcRect, dstRect, null);\n\n // Release bitmap memory as soon as possible\n mImageView.clear();\n mBitmap.recycle();\n } else {\n Rect r = mCropView.getCropRect();\n\n int width = r.width();\n int height = r.height();\n\n // If we are circle cropping, we want alpha channel, which is the\n // third param here.\n croppedImage = Bitmap.createBitmap(width, height,\n circleCrop ? Bitmap.Config.ARGB_8888 : Bitmap.Config.RGB_565);\n\n Canvas canvas = new Canvas(croppedImage);\n\n if (circleCrop) {\n final int color = 0xffff0000;\n final Paint paint = new Paint();\n final Rect rect = new Rect(0, 0, croppedImage.getWidth(), croppedImage.getHeight());\n final RectF rectF = new RectF(rect);\n\n paint.setAntiAlias(true);\n paint.setDither(true);\n paint.setFilterBitmap(true);\n canvas.drawARGB(0, 0, 0, 0);\n paint.setColor(color);\n canvas.drawOval(rectF, paint);\n\n paint.setColor(Color.BLUE);\n paint.setStyle(Paint.Style.STROKE);\n paint.setStrokeWidth((float) 4);\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\n canvas.drawBitmap(mBitmap, r, rect, paint);\n }\n else {\n Rect dstRect = new Rect(0, 0, width, height);\n canvas.drawBitmap(mBitmap, r, dstRect, null);\n }\n\n // Release bitmap memory as soon as possible\n mImageView.clear();\n mBitmap.recycle();\n\n // If the required dimension is specified, scale the image.\n if (outputX != 0 && outputY != 0 && scale) {\n croppedImage = BitmapUtils.transform(new Matrix(), croppedImage,\n outputX, outputY, scaleUp, BitmapUtils.RECYCLE_INPUT);\n }\n }\n\n mImageView.setImageBitmapResetBase(croppedImage, true);\n mImageView.center(true, true);\n mImageView.getHighlightViews().clear();\n\n // save it to the specified URI.\n final Bitmap b = croppedImage;\n new AsyncTask<Void, Integer, IImage>() {\n ProgressDialog pd;\n\n @Override\n protected void onPreExecute() {\n pd = ProgressDialog.show(CropPhotoActivity.this, null,\n getResources().getString(R.string.saving_image));\n }\n\n @Override\n protected IImage doInBackground(Void[] params) {\n return saveOutput(b);\n }\n\n @Override\n protected void onPostExecute(IImage image) {\n pd.dismiss();\n mImageView.clear();\n b.recycle();\n\n if (image != null) {\n ArrayList<IImage> images = new ArrayList<>();\n images.add(image);\n\n Intent data = new Intent();\n data.putParcelableArrayListExtra(\"data\", images);\n setResult(Activity.RESULT_OK, data);\n finish();\n }\n }\n }.execute();\n }", "private void performCrop(Uri img) {\n try {\r\n //call the standard crop action intent (the user device may not support it)\r\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\r\n //indicate image type and Uri\r\n cropIntent.setDataAndType(img, \"image/*\");\r\n //set crop properties\r\n cropIntent.putExtra(\"crop\", \"true\");\r\n //indicate aspect of desired crop\r\n // cropIntent.putExtra(\"aspectX\", 1);\r\n //cropIntent.putExtra(\"aspectY\", 1);\r\n //indicate output X and Y\r\n // cropIntent.putExtra(\"outputX\", 256);\r\n // cropIntent.putExtra(\"outputY\", 256);\r\n //retrieve data on return\r\n\r\n cropIntent.putExtra(\"return-data\", true);\r\n //start the activity - we handle returning in onActivityResult\r\n startActivityForResult(cropIntent, 2);\r\n }\r\n //respond to users whose devices do not support the crop action\r\n catch (ActivityNotFoundException anfe) {\r\n //display an error message\r\n String errorMessage = \"Whoops - your device doesn't support the crop action!\";\r\n Toast toast = Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT);\r\n toast.show();\r\n }\r\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\r\n super.onActivityResult(requestCode, resultCode, data);\r\n mImageUri = data.getData();\r\n if (requestCode == GALLERY_REQUEST && resultCode == Activity.RESULT_OK) {\r\n mImageUri = data.getData();\r\n if (data.getData() == null) {\r\n Toast.makeText(this, \"Failed to load Image,try again\", Toast.LENGTH_LONG).show();\r\n return;\r\n }\r\n try {\r\n outputUri =new getFileName(context).getDataFilesThumbnailUriPath(String.valueOf(System.currentTimeMillis()),context);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n CropImage.activity(mImageUri)\r\n .setGuidelines(CropImageView\r\n .Guidelines.ON)\r\n .setAspectRatio(1, 1)\r\n .setBackgroundColor(getApplicationContext().getResources().getColor(R.color.background))\r\n .setActivityMenuIconColor(getApplicationContext().getResources().getColor(R.color.colorPrimary))\r\n .setOutputUri(outputUri)\r\n .start(this);\r\n }\r\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\r\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\r\n if (resultCode == RESULT_OK) {\r\n resultUri =Uri.fromFile(new File(new CompressingImage5kb(String.valueOf(System.currentTimeMillis()),context).compressImage(String.valueOf(result.getUri()),\"\",true)));\r\n mCircleImageView.setImageURI(resultUri);\r\n } else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\r\n Exception error = result.getError();\r\n }\r\n }\r\n }", "public void setCircleClip(int x, int y, int radius);", "private void performCrop() {\n try {\r\n //call the standard crop action intent (the user device may not support it)\r\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\r\n //indicate image type and Uri\r\n cropIntent.setDataAndType(picUri, \"image/*\");\r\n //set crop properties\r\n cropIntent.putExtra(\"crop\", \"true\");\r\n //indicate aspect of desired crop\r\n// cropIntent.putExtra(\"aspectX\", 1);\r\n// cropIntent.putExtra(\"aspectY\", 1);\r\n //indicate output X and Y\r\n// cropIntent.putExtra(\"outputX\", 256);\r\n// cropIntent.putExtra(\"outputY\", 256);\r\n //retrieve data on return\r\n cropIntent.putExtra(\"return-data\", true);\r\n //start the activity - we handle returning li_history onActivityResult\r\n startActivityForResult(cropIntent, 2);\r\n }\r\n //respond to users whose devices do not support the crop action\r\n catch (ActivityNotFoundException anfe) {\r\n //display an error message\r\n String errorMessage = \"Whoops - your device doesn't support the crop action!\";\r\n Toast toast = Toast.makeText(this, errorMessage, Toast.LENGTH_SHORT);\r\n toast.show();\r\n }\r\n }", "public Bitmap roundBitmap(Bitmap inBitmap) {\n\n Bitmap bitmap = Bitmap.createScaledBitmap(inBitmap, 200, 200, false);\n\n Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);\n\n Canvas canvas = new Canvas(output);\n\n final Paint painter = new Paint();\n final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());\n\n canvas.drawCircle(bitmap.getWidth() / 2, bitmap.getHeight() / 2, bitmap.getWidth() / 2, painter);\n painter.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\n canvas.drawBitmap(bitmap, rect, rect, painter);\n\n return output;\n }", "public static void loadCircleImage(Context context, ParseFile image, ImageView slot){\n RequestOptions circleProp = new RequestOptions();\n circleProp = circleProp.transform(new CircleCrop());\n Glide.with(context)\n .load(image != null ? image.getUrl() : R.drawable.profile_image_empty)\n .placeholder(R.drawable.profile_image_empty)\n .apply(circleProp)\n .into(slot);\n }", "public static void ponerImagenConFormatoRedondoEnImageView(Context context, Bitmap bitmap, ImageView imageview) {\n RoundedBitmapDrawable circularBitmapDrawable = RoundedBitmapDrawableFactory.create(context.getResources(), bitmap);\n circularBitmapDrawable.setCircular(true);\n imageview.setImageDrawable(circularBitmapDrawable);\n imageview.setScaleType(ImageView.ScaleType.CENTER_CROP);\n }", "public Bitmap saveBitmap(int sampleSize, int radius, int strokeWidth) {\n\r\n try {\r\n BitmapFactory.Options options = new BitmapFactory.Options();\r\n options.inJustDecodeBounds = true; //Chỉ đọc thông tin ảnh, không đọc dữ liwwuj\r\n BitmapFactory.decodeFile(pathImage, options); //Đọc thông tin ảnh\r\n options.inSampleSize = sampleSize; //Scale bitmap xuống 1 lần\r\n options.inJustDecodeBounds = false; //Cho phép đọc dữ liệu ảnh ảnh\r\n Bitmap originalSizeBitmap = BitmapFactory.decodeFile(pathImage, options);\r\n\r\n Bitmap mutableBitmap = originalSizeBitmap.copy(Bitmap.Config.ARGB_8888, true);\r\n RectF originalRect =\r\n new RectF(0, 0, mutableBitmap.getWidth(), mutableBitmap.getHeight());\r\n\r\n originalSizeBitmap.recycle();\r\n originalSizeBitmap = null;\r\n System.gc();\r\n\r\n Canvas canvas = new Canvas(mutableBitmap);\r\n\r\n float[] originXy = getOriginalPoint(originalRect);\r\n circlePaint.setStrokeWidth(strokeWidth);\r\n canvas.drawCircle(originXy[0], originXy[1], radius, circlePaint);\r\n return mutableBitmap;\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n Toast.makeText(getContext(), \"can not draw original bitmap\", Toast.LENGTH_SHORT)\r\n .show();\r\n return getBitmapScreenShot();\r\n }\r\n }", "public void getCroppedBitmap(final OnResultListener onResultListener) {\n setProgressBarVisibility(VISIBLE);\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n try {\n ContentResolver resolver = getContext().getContentResolver();\n InputStream inputStream = resolver.openInputStream(imageUri);\n Bitmap bitmap = BitmapFactory.decodeStream(inputStream);\n\n //rotate image\n Matrix matrix = new Matrix();\n matrix.postRotate(getOrientation() + getRotation());\n\n bitmap = Bitmap.createBitmap(bitmap, 0, 0,\n bitmap.getWidth(), bitmap.getHeight(), matrix, true);\n\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 90, outputStream);\n byte[] bitmapData = outputStream.toByteArray();\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(bitmapData);\n\n BitmapRegionDecoder decoder = BitmapRegionDecoder.\n newInstance(byteArrayInputStream, false);\n\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inSampleSize = 1;\n options.inJustDecodeBounds = false;\n\n Bitmap croppedBitmap = decoder.decodeRegion(cropRect, options);\n decoder.recycle();\n\n final Result result = new Result(imageUri, croppedBitmap);\n CropImageView.this.post(new Runnable() {\n @Override\n public void run() {\n onResultListener.onResult(result);\n setProgressBarVisibility(GONE);\n }\n });\n } catch (Exception | OutOfMemoryError e) {\n e.printStackTrace();\n CropImageView.this.post(new Runnable() {\n @Override\n public void run() {\n onResultListener.onResult(new Result(getImageUri(), null));\n setProgressBarVisibility(GONE);\n }\n });\n }\n }\n });\n }", "public static Bitmap getCircleBitmap(Bitmap bitmap) {\n Bitmap output;\n\n if (bitmap.getWidth() > bitmap.getHeight()) {\n output = Bitmap.createBitmap(bitmap.getHeight(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);\n } else {\n output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getWidth(), Bitmap.Config.ARGB_8888);\n }\n\n Canvas canvas = new Canvas(output);\n\n final int color = 0xff424242;\n final Paint paint = new Paint();\n final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());\n\n float r = 0;\n\n if (bitmap.getWidth() > bitmap.getHeight()) {\n r = bitmap.getHeight() / 2;\n } else {\n r = bitmap.getWidth() / 2;\n }\n\n paint.setAntiAlias(true);\n canvas.drawARGB(0, 0, 0, 0);\n paint.setColor(color);\n canvas.drawCircle(r, r, r, paint);\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\n canvas.drawBitmap(bitmap, rect, rect, paint);\n return output;\n }", "@Override\n protected void onImageLaidOut() {\n super.onImageLaidOut();\n final Drawable drawable = getDrawable();\n if (drawable == null) {\n return;\n }\n\n float drawableWidth = drawable.getIntrinsicWidth();\n float drawableHeight = drawable.getIntrinsicHeight();\n\n if (mTargetAspectRatio == SOURCE_IMAGE_ASPECT_RATIO) {\n mTargetAspectRatio = drawableWidth / drawableHeight;\n }\n\n int height = (int) (mThisWidth / mTargetAspectRatio);\n if (height > mThisHeight) {\n int width = (int) (mThisHeight * mTargetAspectRatio);\n int halfDiff = (mThisWidth - width) / 2;\n mCropRect.set(halfDiff, 0, width + halfDiff, mThisHeight);\n } else {\n int halfDiff = (mThisHeight - height) / 2;\n mCropRect.set(0, halfDiff, mThisWidth, height + halfDiff);\n }\n\n calculateImageScaleBounds(drawableWidth, drawableHeight);\n setupInitialImagePosition(drawableWidth, drawableHeight);\n\n if (mCropBoundsChangeListener != null) {\n mCropBoundsChangeListener.onCropAspectRatioChanged(mTargetAspectRatio);\n }\n if (mTransformImageListener != null) {\n// mTransformImageListener.onScale(getCurrentScale());\n// mTransformImageListener.onRotate(getCurrentAngle());\n mTransformImageListener.onBrightness(getCurrentBrightness());\n// mTransformImageListener.onContrast(getCurrentContrast());\n }\n }", "private void handleCrop(int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n Uri uri = Crop.getOutput(data);\n try {\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), uri);\n mImageCaptureUri = uri;\n mImageView.setImageBitmap(bitmap);\n } catch (Exception e) {\n Log.d(TAG, e.getMessage());\n }\n\n } else if (resultCode == Crop.RESULT_ERROR) {\n Toast.makeText(this, Crop.getError(data).getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "public void cropImage() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n this.grantUriPermission(\"com.android.camera\", photoUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n Intent intent = new Intent(\"com.android.camera.action.CROP\");\n intent.setDataAndType(photoUri, \"image/*\");\n\n List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, 0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n grantUriPermission(list.get(0).activityInfo.packageName, photoUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n int size = list.size();\n if (size == 0) {\n Toast.makeText(this, \"취소 되었습니다.\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n// Toast.makeText(this, \"용량이 큰 사진의 경우 시간이 오래 걸릴 수 있습니다.\", Toast.LENGTH_SHORT).show();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n intent.putExtra(\"crop\", \"true\");\n// intent.putExtra(\"aspectX\", 3);\n// intent.putExtra(\"aspectY\", 4);\n intent.putExtra(\"scale\", true);\n File croppedFileName = null;\n try {\n croppedFileName = createImageFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n File folder = new File(Environment.getExternalStorageDirectory() + \"/Body_Img/\");\n File tempFile = new File(folder.toString(), croppedFileName.getName());\n\n photoUri = FileProvider.getUriForFile(Body_Img.this,\n \"com.example.a1013c.body_sns.provider\", tempFile);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n\n intent.putExtra(\"return-data\", false);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, photoUri);\n intent.putExtra(\"outputFormat\", Bitmap.CompressFormat.JPEG.toString());\n\n Intent i = new Intent(intent);\n ResolveInfo res = list.get(0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n i.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n grantUriPermission(res.activityInfo.packageName, photoUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n i.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n startActivityForResult(i, CROP_FROM_CAMERA);\n }\n }", "@Override\n public void onCropWindowChanged() {\n Bitmap cropped = imageView.getCroppedImage();\n BitmapHelper.getInstance().setBitmap(cropped);\n bitmap=cropped;\n\n }", "@Override public Bitmap transform(Bitmap source) {\n int width = source.getWidth(); //Width of source\n int height = source.getHeight(); //Height of source\n\n Bitmap result = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n\n Drawable mask = getMaskDrawable(mContext, mMaskId); //Init mask from resources\n\n //Using mask\n Canvas canvas = new Canvas(result);\n mask.setBounds(0, 0, width, height);\n mask.draw(canvas);\n canvas.drawBitmap(source, 0, 0, mMaskingPaint);\n\n source.recycle();\n\n //Return bitmap of cropped image\n return result;\n }", "public native MagickImage spreadImage(int radius) throws MagickException;", "public void setRoundedRectangleClip(int x, int y, int width, int height, int radius);", "@Override\n protected void onDraw(Canvas canvas) {\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN) {\n super.onDraw(canvas);\n return;\n }\n Path clipPath = new Path();\n RectF rect = new RectF(0, 0, this.getWidth(), this.getHeight());\n\n clipPath.addRoundRect(rect, mRadius, mRadius, Path.Direction.CW);\n canvas.clipPath(clipPath);\n super.onDraw(canvas);\n }", "private void beginCrop(Uri source) {\n Uri destination = Uri.fromFile(new File(getCacheDir(), \"cropped\"));\n Crop.of(source, destination).asSquare().start(this);\n }", "public static void performCrop(Activity activity, Uri picUri) {\n try {\n // call the standard crop action intent (the user device may not\n // support it)\n Intent cropIntent = new Intent(\"com.android.camera.action.CROP\");\n // indicate image type and Uri\n cropIntent.setDataAndType(picUri, \"image/*\");\n // set crop properties\n cropIntent.putExtra(\"crop\", \"true\");\n // indicate aspect of desired crop\n cropIntent.putExtra(\"aspectX\", 2);\n cropIntent.putExtra(\"aspectY\", 1);\n // indicate output X and Y\n cropIntent.putExtra(\"outputX\", 256);\n cropIntent.putExtra(\"outputY\", 256);\n // retrieve data on return\n cropIntent.putExtra(\"return-data\", true);\n // start the activity - we handle returning in onActivityResult\n activity.startActivityForResult(cropIntent, CROP_IMAGE);\n }\n // respond to users whose devices do not support the crop action\n catch (ActivityNotFoundException anfe) {\n Toast toast = Toast\n .makeText(activity, \"This device doesn't support the crop action!\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n }", "public native MagickImage chopImage(Rectangle chopInfo)\n\t\t\tthrows MagickException;", "public void cropImage() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { // 마쉬멜로우 이상 버전일 때\n grantUriPermission(\"com.android.camera\", mImageCaptureUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n Intent intent = new Intent(\"com.android.camera.action.CROP\");\n intent.setDataAndType(mImageCaptureUri, \"image/*\");\n\n List<ResolveInfo> list = getPackageManager().queryIntentActivities(intent, 0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n grantUriPermission(list.get(0).activityInfo.packageName, mImageCaptureUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n int size = list.size();\n if (size == 0) {\n Toast.makeText(ManualRegistActivity.this, \"취소 되었습니다.\", Toast.LENGTH_SHORT).show();\n return;\n } else {\n Toast.makeText(ManualRegistActivity.this, \"용량이 큰 사진의 경우 시간이 오래 걸릴 수 있습니다.\", Toast.LENGTH_SHORT).show();\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 1);\n intent.putExtra(\"aspectY\", 1);\n intent.putExtra(\"scale\", true);\n croppedFile = null;\n try {\n croppedFile = createImageFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n File folder = new File(Environment.getExternalStorageDirectory() + \"/BioCube/\");\n File tempFile = new File(folder.toString(), croppedFile.getName());\n\n mCurrentPhotoPath = tempFile.getAbsolutePath();\n mImageCaptureUri = FileProvider.getUriForFile(ManualRegistActivity.this,\n \"com.example.seongjun.biocube.provider\", tempFile);\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n intent.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n }\n\n intent.putExtra(\"return-data\", false);\n intent.putExtra(MediaStore.EXTRA_OUTPUT, mImageCaptureUri);\n intent.putExtra(\"outputFormat\", Bitmap.CompressFormat.JPEG.toString());\n\n Intent i = new Intent(intent);\n ResolveInfo res = list.get(0);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n i.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);\n\n grantUriPermission(res.activityInfo.packageName, mImageCaptureUri,\n Intent.FLAG_GRANT_WRITE_URI_PERMISSION | Intent.FLAG_GRANT_READ_URI_PERMISSION);\n }\n i.setComponent(new ComponentName(res.activityInfo.packageName, res.activityInfo.name));\n startActivityForResult(i, CROP_FROM_CAMERA);\n }\n }", "private void beginCrop(Uri source) {\n // pass URI as intent to the CROP Activity;\n if (mPhotoFile != null) {\n Uri destination = FileProvider.getUriForFile(this,\n BuildConfig.APPLICATION_ID,\n mPhotoFile);\n Log.d(TAG, \"URI: \" + destination.toString());\n Crop.of(source, destination).asSquare().start(this);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == 1 && resultCode == RESULT_OK && data != null && data.getData() != null) {\n\n //Getting the uri from gallery\n\n fileImageUri = data.getData();\n imageUri = fileImageUri;\n CropImage.activity(fileImageUri) //cropping the image\n\n .setGuidelines(CropImageView.Guidelines.ON)\n .setCropShape(CropImageView.CropShape.RECTANGLE)\n .setFixAspectRatio(true)\n .setAspectRatio(1,1)\n .start(this);\n\n\n\n }\n\n\n //After image will crop again taking the image uri\n\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n resultUri = result.getUri();\n\n uploadUserImageView.setImageURI(resultUri);\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n Toast.makeText(this, \"Error While Getting uri\", Toast.LENGTH_SHORT).show();\n }\n }\n\n }", "public static void loadTakenImage(Bitmap takenImage, ImageView imageView, Context context) {\n RequestOptions circleProp = new RequestOptions();\n circleProp = circleProp.transform(new CircleCrop());\n Glide.with(context)\n .load(takenImage)\n .apply(circleProp)\n .into(imageView);\n }", "BufferedImage cropDisplayedImage(double sliderValue,\n BufferedImage myBufferedImageStocked, ImageView myImage) {\n this.cropper.setCoef(sliderValue);\n this.cropper.setDirection(this.getDirection());\n BufferedImage myBufferedImage = this.cropper\n .process(myBufferedImageStocked);\n myImage.setImage(SwingFXUtils.toFXImage(myBufferedImage, null));\n return myBufferedImage;\n\n }", "public void getCircles() {\n\t\tlong startTime = System.nanoTime();\n\t\tif (circleImage != null) {\n\t\t\tcircleFrame.getContentPane().remove(circleImage);\n\t\t}\n//\t\tcircles = ProcessOpenCV.getCircles(cannyMat, cannyImage.getWidth()/5);\n\t\tcircles = ProcessOpenCV.getCircles(zoomImage.getImage(), cannyImage.getWidth()/4);\n\t\tcircleImage = new SignImage(cannyImage.getWidth(), cannyImage.getHeight() );\n\t\tcircleImage.setCircles(circles);\n\t\tcircleFrame.getContentPane().add(circleImage);\n\t\tcircleFrame.setSize(lineImage.getWidth(), lineImage.getHeight());\n//\t\tcircleFrame.setVisible(true);\t\n\t}", "private void handleCrop(int resultCode, Intent result) {\n if (resultCode == RESULT_OK) {\n try {\n Uri uri = Crop.getOutput(result);\n yourSelectedImage = MediaStore.Images.Media.getBitmap(this.getContentResolver(), Crop.getOutput(result));\n ivUserImage.setImageBitmap(yourSelectedImage);\n Uri tempUri = Util.getInstance().getImageUri(SignUp.this, yourSelectedImage);\n // createImageFromBitmap(yourSelectedImage);\n // tempFilePath = FileUtil.getPath(this,tempUri);\n tempFilePath = FileUtil.getPath(SignUp.this, tempUri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if (resultCode == Crop.RESULT_ERROR) {\n // Toast.makeText(this, Crop.getError(result).getMessage(), Toast.LENGTH_SHORT).show();\n }\n }", "private void setPic() {\n int targetW = img_clip.getWidth();\n int targetH = img_clip.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n img_clip.setImageBitmap(bitmap);\n }", "public CircularImageView(Context context) {\n\n super(context);\n setup();\n }", "public static void addCircle(Image image, int x, int y, int radius, int red, int green, int blue){\n\t\tfor(int i = radius-y;i<radius+y;i++)\n\t\t\tfor(int j = radius-x; j < radius+x; j++)\n\t\t\t\tif((i-y)*(i-y)+(j-x)*(j-x)<=radius*radius)\n\t\t\t\t\timage.setPixel(j,i,red,green,blue);\n\t}", "static public Fits do_crop(Fits fits, WorldPt wpt, double radius)\n throws FitsException, IOException, ProjectionException {\n ImageHDU h = (ImageHDU) fits.readHDU();\n Header old_header = h.getHeader();\n ImageHeader temp_hdr = new ImageHeader(old_header);\n CoordinateSys in_coordinate_sys = CoordinateSys.makeCoordinateSys(\n temp_hdr.getJsys(), temp_hdr.file_equinox);\n Projection in_proj = temp_hdr.createProjection(in_coordinate_sys);\n ProjectionPt ipt = in_proj.getImageCoords(wpt.getLon(), wpt.getLat());\n double x = ipt.getFsamp();\n double y = ipt.getFline();\n double x_size = 2 * radius / Math.abs(temp_hdr.cdelt1);\n if (SUTDebug.isDebug()) {\n System.out.println(\"x = \" + x + \" y = \" + y + \" x_size = \" + x_size);\n\n }\n Fits out_fits = common_crop(h, old_header,\n (int) x, (int) y, (int) x_size, (int) x_size);\n return (out_fits);\n }", "public CircularImageView(Context context) {\n super(context);\n }", "@Method(selector = \"crop:imagePath:width:height:x:ycompletionBlock:\")\n\tpublic native void crop(String name, String imagePath, int width, int height, int x, int y, @Block App42ResponseBlock completionBlock);", "public static Bitmap getCircularBitmap(Bitmap bitmap) {\r\n Bitmap output;\r\n\r\n if (bitmap.getWidth() > bitmap.getHeight()) {\r\n output = Bitmap.createBitmap(bitmap.getHeight(), bitmap.getHeight(), Bitmap.Config.ARGB_8888);\r\n } else {\r\n output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getWidth(), Bitmap.Config.ARGB_8888);\r\n }\r\n\r\n Canvas canvas = new Canvas(output);\r\n\r\n final int color = 0xff424242;\r\n final Paint paint = new Paint();\r\n final Rect rect = new Rect(0, 0, bitmap.getWidth(), bitmap.getHeight());\r\n\r\n float r = 0;\r\n\r\n if (bitmap.getWidth() > bitmap.getHeight()) {\r\n r = bitmap.getHeight() / 2;\r\n } else {\r\n r = bitmap.getWidth() / 2;\r\n }\r\n\r\n paint.setAntiAlias(true);\r\n canvas.drawARGB(0, 0, 0, 0);\r\n paint.setColor(color);\r\n canvas.drawCircle(r, r, r, paint);\r\n paint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.SRC_IN));\r\n canvas.drawBitmap(bitmap, rect, rect, paint);\r\n return output;\r\n }", "@SuppressLint(\"DrawAllocation\")\n @Override\n public void onDraw(Canvas canvas) {\n //load the bitmap\n loadBitmap();\n\n // init shader\n if (image != null) {\n shader = new BitmapShader(Bitmap.createScaledBitmap(image, canvas.getWidth(),\n canvas.getHeight(), false), Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);\n paint.setShader(shader);\n int circleCenter = viewWidth / 2;\n\n // circleCenter is the x or y of the view's center\n // radius is the radius in pixels of the circle to be drawn\n // paint contains the shader that will texture the shape\n canvas.drawCircle(circleCenter + borderWidth, circleCenter + borderWidth,\n circleCenter + borderWidth, paintBorder);\n canvas.drawCircle(circleCenter + borderWidth, circleCenter + borderWidth,\n circleCenter, paint);\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t \t\n\t \tclass ToSaveCropped{\n\t \t\t\n\t \t\tfloat x=finalx;\n\t \t\tfloat y=finaly;\n\n\t\t\t\t\tprivate byte[] data = MainActivity.getbitmapData();\n\t\t\t Bitmap mImage = BitmapFactory.decodeByteArray(data, 0, data.length);\n\t\t\t \n\t\t\t Drawable myMask = getResources().getDrawable(R.drawable.mask);\n\t\t\t Bitmap mMask = ((BitmapDrawable) myMask).getBitmap();\n\t\t\t Bitmap mmImage = dv.bitmapRotate(mImage);\n\t\t\t \n\t\t\t Bitmap mmmImage = dv.getResizedBitmap(mmImage,height,width);\n\t\t\t \n\t\t\t Bitmap mmMask = dv.getResizedBitmap(mMask,wMask,wMask);\n\t\t\t\t\t\n\t\t\t\t\tpublic void onDraw(){\n\t\t\t\t\t\tCanvas canvas; \t\t\t\n\t \t\t\tint w = mmMask.getWidth(), h = mmMask.getHeight();\n\t \t\t\tBitmap.Config conf = Bitmap.Config.ARGB_8888; // see other conf types\n\t \t\t\tcroppedBitmap = Bitmap.createBitmap(w, h, conf); // this creates a MUTABLE bitmap\n\t \t\t\tcanvas = new Canvas(croppedBitmap);\n\t \t\t\t\n\t \t\t\tPaint maskPaint = new Paint();\n\t \t\t\tmaskPaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_IN));\n\n\t Paint imagePaint = new Paint();\n\t imagePaint.setXfermode(new PorterDuffXfermode(PorterDuff.Mode.DST_OVER));\n\t \t\t\t//Log.i(\"\"+x,\"\"+y);\n\t \t//canvas.drawBitmap(mMask,x,y,maskPaint);\n\t \tcanvas.drawBitmap(mmmImage,-x,-y,imagePaint);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t \t}\t \t\n\t \tToSaveCropped tsc = new ToSaveCropped();\n\t \ttsc.onDraw();\n\t \tByteArrayOutputStream stream = new ByteArrayOutputStream();\n\t \tcroppedBitmap.compress(Bitmap.CompressFormat.PNG, 100, stream);\n\t \tbitData = stream.toByteArray();\n\t\t\t\t\n\t\t\t\tSaveFile sv = new SaveFile();\n\t\t\t\tsv.save();\n\t\t\t\t\n\t\t\t\tMediaStore.Images.Media.insertImage(getContentResolver(), croppedBitmap, \"\", \"\");\n\t\t\t\t\n\t\t\t}", "private Rect cropRegionForZoom(float ratio) {\n int xCenter = mSensorRect.width() / 2;\n int yCenter = mSensorRect.height() / 2;\n int xDelta = (int) (0.5f * mSensorRect.width() / ratio);\n int yDelta = (int) (0.5f * mSensorRect.height() / ratio);\n return new Rect(xCenter - xDelta, yCenter - yDelta, xCenter + xDelta, yCenter + yDelta);\n }", "@Override\n public void onDraw(Canvas canv) {\n canv.drawColor(Color.argb(255, 255, 0, 255));\n\n // Draw the bitmap leaving small outside border to see background\n canv.drawBitmap(bm, null, new RectF(15, 15, getMeasuredWidth() - 15, getMeasuredHeight() - 15), null);\n\n float w, h;\n w = getMeasuredWidth();\n h = getMeasuredHeight();\n\n // Loop, draws 4 circles per row, in 4 rows on top of bitmap\n // Drawn in the order of pDraw (alphabetical)\n for(int i = 0; i<4; i++) {\n for(int ii = 0; ii<4; ii++) {\n canv.drawCircle((w / 8) * (ii * 2 + 1), (h / 8) * (i * 2 + 1), w / 8 * 0.8f, pDraw[i*4 + ii]);\n }\n }\n }", "@Override\n public Bitmap onPreSetBitmap(ImageView imageView, Bitmap loadedBitmap, String url, boolean loadedFromCache) {\n return ImageUtils.getCircleBitmap(loadedBitmap);\n }", "public void transform(View view) {\n DrawRect.getCoord(1);\n\n // block to get coord os ROI\n ArrayList<Integer> full_x_ROIcoord = new ArrayList<>();\n ArrayList<Integer> full_y_ROIcoord = new ArrayList<>();\n\n if (xRed < 0 || xRed > 750 || yRed < 0 || yRed > 1000 ||\n xOrg < 0 || xOrg > 750 || yOrg < 0 || yOrg > 1000 ||\n xYell < 0 || xYell > 750 || yYell < 0 || yYell > 1000 ||\n xGreen < 0 || xGreen > 750 || yGreen < 0 || yGreen > 1000) {\n return;\n } else {\n // clear situation with x<= xYell\n for (int x = xRed; x < xYell; x++) {\n for (int y = yRed; y < yYell; y++) {\n full_x_ROIcoord.add(x);\n full_y_ROIcoord.add(y);\n }\n }\n }\n // end block\n\n // block get contour via CannyFilter\n Mat sMat = oImage.submat(yRed, yGreen, xRed, xOrg);\n Imgproc.Canny(sMat, sMat, 25, 100 * 2);\n ArrayList<Double> subMatValue = new ArrayList<>();\n\n for (int x = 0; x < sMat.cols(); x++) {\n for (int y = 0; y < sMat.rows(); y++) {\n double[] ft2 = sMat.get(y, x);\n subMatValue.add(ft2[0]);\n }\n }\n int count = 0;\n for (int x = xRed; x < xYell; x++) {\n for (int y = yRed; y < yYell; y++) {\n oImage.put(y, x, subMatValue.get(count));\n count++;\n }\n }\n // end block\n\n displayImage(oImage);\n }", "void drawO(float x,int y,ImageView imageView){\n Bitmap bitmap = Bitmap.createBitmap(getWindowManager().getDefaultDisplay().getWidth(),getWindowManager().getDefaultDisplay().getHeight(),Bitmap.Config.ARGB_8888);\n Canvas canvas = new Canvas(bitmap);\n imageView.setImageBitmap(bitmap);\n\n Paint paint = new Paint();\n paint.setColor(Color.WHITE);\n paint.setStrokeWidth(10);\n paint.setStyle(Paint.Style.STROKE);\n canvas.drawCircle(x,y,100,paint);\n imageView.setVisibility(View.VISIBLE);\n\n //animates the drawing to fade int\n Animation animation = new AlphaAnimation(0.0f,1.0f);\n animation.setDuration(2000);\n imageView.startAnimation(animation);\n }", "public void clearCircle();", "public BufferedImage cropImageSquare( byte[] image ) throws IOException {\n InputStream in = new ByteArrayInputStream( image );\n BufferedImage originalImage = ImageIO.read( in );\n\n // Get image dimensions\n int height = originalImage.getHeight();\n int width = originalImage.getWidth();\n\n // The image is already a square\n if ( height == width ) {\n return originalImage;\n }\n\n // Compute the size of the square\n int squareSize = ( height > width ? width : height );\n\n // Coordinates of the image's middle\n int xc = width / 2;\n int yc = height / 2;\n\n // Crop\n BufferedImage croppedImage = originalImage.getSubimage(\n xc - ( squareSize / 2 ), // x coordinate of the upper-left\n // corner\n yc - ( squareSize / 2 ), // y coordinate of the upper-left\n // corner\n squareSize, // widht\n squareSize // height\n );\n return croppedImage;\n }", "private Bitmap getScaledBitmap(ImageView imageView) {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n\n int scaleFactor = Math.min(\n options.outWidth / imageView.getWidth(),\n options.outHeight / imageView.getHeight()\n );\n options.inJustDecodeBounds = false;\n options.inSampleSize = scaleFactor;\n options.inPurgeable = true;\n return BitmapFactory.decodeFile(currentImagePath, options);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n startCropImageActivity(imageUri);\n }\n\n // handle result of CropImageActivity\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n mCroppedImageUri = result.getUri();\n mImageView.setImageURI(mCroppedImageUri);\n }\n }\n }", "@Method(selector = \"crop:imageData:width:height:x:y:completionBlock:\")\n\tpublic native void crop(String name, NSData imageData, int width, int height, int x, int y, @Block App42ResponseBlock completionBlock);", "public native MagickImage oilPaintImage(double radius)\n\t\t\tthrows MagickException;", "private void getSetCropImage(Uri fileUri) {\n CropImage.activity(fileUri)\n .setGuidelines(CropImageView.Guidelines.ON)\n .setMinCropWindowSize(100, 100)\n .setAspectRatio(1, 1)\n .setFixAspectRatio(true)\n .setCropShape(CropImageView.CropShape.RECTANGLE)\n .start((Activity) mContext);\n }", "@Override\n public void onClick(View v) {\n CropImage.activity()\n .setGuidelines(CropImageView.Guidelines.ON)\n .start(SettingActivityDonor.this);\n\n }", "private Rect checkRectBounds(Rect cropRect, boolean resize) {\n Rect image = getImageRect();\n Rect newCropRect = cropRect;\n //check if inside image\n int width = newCropRect.width();\n int height = newCropRect.height();\n\n if (!image.contains(newCropRect)) {\n if (aspectRatio >= 0.0) {\n if (resize) {\n // new cropRect to big => try and fix size\n // check corners\n if (touchedCorner == TOP_LEFT) {\n if (image.left > newCropRect.left) {\n int delta = (int) ((image.left - newCropRect.left) / aspectRatio);\n newCropRect = new Rect(image.left, newCropRect.top + delta,\n newCropRect.right, newCropRect.bottom);\n }\n if (image.top > newCropRect.top) {\n int delta = (int) ((image.top - newCropRect.top) * aspectRatio);\n newCropRect = new Rect(newCropRect.left + delta, image.top,\n newCropRect.right, newCropRect.bottom);\n }\n } else if (touchedCorner == TOP_RIGHT) {\n if (image.right < newCropRect.right) {\n int delta = (int) ((newCropRect.right - image.right) / aspectRatio);\n newCropRect = new Rect(newCropRect.left, newCropRect.top + delta,\n image.right, newCropRect.bottom);\n }\n if (image.top > newCropRect.top) {\n int delta = (int) ((image.top - newCropRect.top) * aspectRatio);\n newCropRect = new Rect(newCropRect.left, image.top,\n newCropRect.right - delta, newCropRect.bottom);\n }\n } else if (touchedCorner == BOTTOM_RIGHT) {\n if (image.right < newCropRect.right) {\n int delta = (int) ((newCropRect.right - image.right) / aspectRatio);\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n image.right, newCropRect.bottom - delta);\n }\n if (image.bottom < newCropRect.bottom) {\n int delta = (int) ((newCropRect.bottom - image.bottom) * aspectRatio);\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n newCropRect.right - delta, image.bottom);\n }\n } else if (touchedCorner == BOTTOM_LEFT) {\n if (image.left > newCropRect.left) {\n int delta = (int) ((image.left - newCropRect.left) / aspectRatio);\n newCropRect = new Rect(image.left, newCropRect.top,\n newCropRect.right, newCropRect.bottom - delta);\n }\n if (image.bottom < newCropRect.bottom) {\n int delta = (int) ((newCropRect.bottom - image.bottom) * aspectRatio);\n newCropRect = new Rect(newCropRect.left + delta, newCropRect.top,\n newCropRect.right, image.bottom);\n }\n }\n } else {\n // check edges\n // left edges\n if (image.left > newCropRect.left) {\n newCropRect = new Rect(image.left, newCropRect.top,\n image.left + width, newCropRect.bottom);\n }\n // top edge\n if (image.top > newCropRect.top) {\n newCropRect = new Rect(newCropRect.left, image.top,\n newCropRect.right, image.top + height);\n }\n // right edge\n if (image.right < newCropRect.right) {\n newCropRect = new Rect(image.right - width, newCropRect.top,\n image.right, newCropRect.bottom);\n }\n // bottom edge\n if (image.bottom < newCropRect.bottom) {\n newCropRect = new Rect(newCropRect.left, image.bottom - height,\n newCropRect.right, image.bottom);\n }\n }\n } else {\n // cropRect not inside => try to fix it\n if (image.left > newCropRect.left) {\n newCropRect = new Rect(image.left, newCropRect.top,\n resize ? newCropRect.right : image.left + width,\n newCropRect.bottom);\n }\n\n if (image.top > newCropRect.top) {\n newCropRect = new Rect(newCropRect.left, image.top, newCropRect.right,\n resize ? newCropRect.bottom : image.top + height);\n }\n\n if (image.right < newCropRect.right) {\n newCropRect = new Rect(resize ? newCropRect.left : image.right - width,\n newCropRect.top, image.right, newCropRect.bottom);\n }\n\n if (image.bottom < newCropRect.bottom) {\n newCropRect = new Rect(newCropRect.left,\n resize ? newCropRect.top : image.bottom - height,\n newCropRect.right, image.bottom);\n }\n }\n }\n\n Rect minRect = getMinCropRect();\n //check min size\n width = newCropRect.width();\n if (width < minRect.width()) {\n if (touchedCorner == TOP_LEFT) {\n newCropRect = new Rect(newCropRect.right - minRect.width(),\n newCropRect.top, newCropRect.right, newCropRect.bottom);\n } else if (touchedCorner == TOP_RIGHT) {\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n newCropRect.left + minRect.width(),\n newCropRect.bottom);\n } else if (touchedCorner == BOTTOM_RIGHT) {\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n newCropRect.left + minRect.width(),\n newCropRect.bottom);\n } else if (touchedCorner == BOTTOM_LEFT) {\n newCropRect = new Rect(newCropRect.right - minRect.width(),\n newCropRect.top, newCropRect.right, newCropRect.bottom);\n }\n }\n\n height = newCropRect.height();\n if (height < minRect.height()) {\n if (touchedCorner == TOP_LEFT) {\n newCropRect = new Rect(newCropRect.left,\n newCropRect.bottom - minRect.height(),\n newCropRect.right, newCropRect.bottom);\n } else if (touchedCorner == TOP_RIGHT) {\n newCropRect = new Rect(newCropRect.left,\n newCropRect.bottom - minRect.height(),\n newCropRect.right, newCropRect.bottom);\n } else if (touchedCorner == BOTTOM_RIGHT) {\n newCropRect = new Rect(newCropRect.left, newCropRect.top,\n newCropRect.right,\n newCropRect.top + minRect.height());\n } else if (touchedCorner == BOTTOM_LEFT) {\n newCropRect = new Rect(newCropRect.left,\n newCropRect.top, newCropRect.right,\n newCropRect.top + minRect.height());\n }\n }\n\n return newCropRect;\n }", "public void ImageTransform(){\n imageView.clearAnimation();\n Picasso.get()\n .load(url)\n .resize(150, 150)\n .centerCrop()\n .into(imageView);\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n// startCropImageActivity(AsyncBlackBackgrImage.createBackground(context, imageUri));\n startCropImageActivity(imageUri);\n }\n\n if ((requestCode == GALLERY_INTENT || requestCode == CAMERA_INTENT) && resultCode == RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(context, data);\n Log.d(getLocalClassName() + \"pick image\", imageUri.toString());\n\n// startCropImageActivity(AsyncBlackBackgrImage.createBackground(context, imageUri));\n startCropImageActivity(imageUri);\n }\n\n if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n ((ImageView) findViewById(R.id.imageview_myactivity)).setImageURI(result.getUri());\n\n Log.d(\"CropResultUri\", result.getUri().toString());\n\n MyBmpInfo bmpinfo = getThumbnail(result.getUri());\n Bitmap b = bmpinfo.result;\n if (bmpinfo.warnUser) {\n textInfoImage.setText(\"Warning: \" + bmpinfo.warning + \" ( \" + b.getWidth() + \" x \" + b.getHeight() + \" ) \");\n textInfoImage.setTextColor(Color.parseColor(\"#FFFF0000\"));\n } else textInfoImage.setText(\"\");\n\n Toast.makeText(this, \"Cropping successful\", Toast.LENGTH_LONG).show();\n\n b = watermark(b);\n // Save image as .jpg file in phone public \"Picture\" directory\n selectedImageFilePath = saveFile(b);\n selectedImageFilePath = new String[]{selectedImageFilePath[0], selectedImageFilePath[1], result.getUri().toString()};\n Toast.makeText(this, \"Saved successfully\", Toast.LENGTH_LONG).show();\n\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Toast.makeText(this, \"Cropping failed: \" + result.getError(), Toast.LENGTH_LONG).show();\n }\n }\n }", "public static BufferedImage autoCrop(BufferedImage source, float threshold) {\n\n int rgb;\n int backlo;\n int backhi;\n int width = source.getWidth();\n int height = source.getHeight();\n int startx = width;\n int starty = height;\n int destx = 0;\n int desty = 0;\n\n rgb = source.getRGB(source.getWidth() - 1, source.getHeight() - 1);\n backlo = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n backlo = (int) (backlo - (backlo * threshold));\n if (backlo < 0) {\n backlo = 0;\n }\n backhi = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n backhi = (int) (backhi + (backhi * threshold));\n\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n rgb = source.getRGB(x, y);\n int sum = ((rgb >> 16) & 255) + ((rgb >> 8) & 255) + ((rgb) & 255) / 3;\n if (sum < backlo || sum > backhi) {\n if (y < starty) {\n starty = y;\n }\n if (x < startx) {\n startx = x;\n }\n if (y > desty) {\n desty = y;\n }\n if (x > destx) {\n destx = x;\n }\n }\n }\n }\n System.out.println(\"crop: [\"\n + startx + \", \" + starty + \", \"\n + destx + \", \" + desty + \"]\");\n\n BufferedImage result = new BufferedImage(\n destx - startx, desty - starty,\n source.getType());\n result.getGraphics().drawImage(\n Toolkit.getDefaultToolkit().createImage(\n new FilteredImageSource(source.getSource(),\n new CropImageFilter(startx, starty, destx, desty))),\n 0, 0, null);\n return result;\n }", "public interface Listener {\n void onCropImage(Bitmap original, Bitmap croppedBitmap);\n }", "private Rect getNewRect(float x, float y) {\n PointF currentTouchPos = viewToSourceCoord(x, y);\n\n boolean freeAspectRatio = aspectRatio < 0.0;\n\n if (freeAspectRatio) {\n if (touchedCorner == TOP_LEFT) {\n return checkRectBounds(new Rect((int) currentTouchPos.x, (int) currentTouchPos.y,\n cropRect.right, cropRect.bottom), true);\n } else if (touchedCorner == TOP_RIGHT) {\n return checkRectBounds(new Rect(cropRect.left, (int) currentTouchPos.y,\n (int) currentTouchPos.x, cropRect.bottom), true);\n } else if (touchedCorner == BOTTOM_RIGHT) {\n return checkRectBounds(new Rect(cropRect.left, cropRect.top,\n (int) currentTouchPos.x, (int) currentTouchPos.y), true);\n } else if (touchedCorner == BOTTOM_LEFT) {\n return checkRectBounds(new Rect((int) currentTouchPos.x, cropRect.top,\n cropRect.right, (int) currentTouchPos.y), true);\n }\n } else {\n // fixed aspectRatio\n if (touchedCorner == TOP_LEFT) {\n int delta = (int) Math.max(currentTouchPos.x - cropRect.left,\n currentTouchPos.y - cropRect.top);\n return checkRectBounds(new Rect((int) Math.round(cropRect.left\n + delta * aspectRatio), cropRect.top + delta,\n cropRect.right, cropRect.bottom), true);\n } else if (touchedCorner == TOP_RIGHT) {\n int delta = (int) Math.max(cropRect.right - currentTouchPos.x,\n currentTouchPos.y - cropRect.top);\n return checkRectBounds(new Rect(cropRect.left, cropRect.top + delta,\n (int) Math.round(cropRect.right - delta * aspectRatio),\n cropRect.bottom), true);\n } else if (touchedCorner == BOTTOM_RIGHT) {\n int delta = (int) Math.max(cropRect.right - currentTouchPos.x,\n cropRect.bottom - currentTouchPos.y);\n return checkRectBounds(new Rect(cropRect.left, cropRect.top,\n (int) Math.round(cropRect.right - delta * aspectRatio),\n cropRect.bottom - delta), true);\n } else if (touchedCorner == BOTTOM_LEFT) {\n int delta = (int) Math.max(currentTouchPos.x - cropRect.left,\n cropRect.bottom - currentTouchPos.y);\n return checkRectBounds(new Rect((int) Math.round(cropRect.left\n + delta * aspectRatio), cropRect.top,\n cropRect.right, cropRect.bottom - delta), true);\n }\n }\n\n return null;\n }", "public void cropMoleculeRecognition(){\n mOpenCameraView.disableView();\n\n Mat transformMat = Imgproc.getPerspectiveTransform(mCaptureAreaAdjusted,new MatOfPoint2f(new Point(0,0),new Point(0,400),new Point(400,400), new Point(400,0)));\n Mat croppedImage = new Mat();\n Imgproc.warpPerspective(mGray, croppedImage, transformMat, new Size(400, 400));\n\n /* cleanup the AR marker */\n int cropout = 240;\n\n croppedImage.submat(0,cropout,0,cropout).setTo(new Scalar(0));\n Core.MinMaxLocResult mmr;\n\n for(int i = 0; i<cropout; i++){\n mmr = Core.minMaxLoc(croppedImage.row(i).colRange(cropout,400));\n Core.add(croppedImage.row(i).colRange(0,cropout),new Scalar(mmr.maxVal/2),croppedImage.row(i).colRange(0,cropout));\n\n mmr = Core.minMaxLoc(croppedImage.col(i).rowRange(cropout, 400));\n Core.add(croppedImage.col(i).rowRange(0, cropout),new Scalar(mmr.maxVal/2),croppedImage.col(i).rowRange(0, cropout));\n }\n\n /*for now, just save the cropedImage*/\n /* in the live version, will need to sort out the ar marker on the top left */\n Imgcodecs.imwrite(getFilesDir().toString().concat(\"/croppedImg.png\"),croppedImage);\n Intent intent = new Intent(this,viewCapture.class);\n intent.putExtra(\"flagCaptureImage\",true);\n startActivity(intent);\n }", "public boolean isRectangularCrop() {\r\n return isRectangularCrop;\r\n }", "public native MagickImage reduceNoiseImage(double radius)\n\t\t\tthrows MagickException;", "private void startCropImageActivity(Uri imageUri) {\n\n\n CropImage.ActivityBuilder a = CropImage.activity(imageUri);\n a.setFixAspectRatio(true);\n a.setAspectRatio(4, 3);\n a.setGuidelines(CropImageView.Guidelines.ON);\n a.setAllowCounterRotation(true);\n a.setAllowRotation(false);\n a.setMultiTouchEnabled(false);\n a.start(this, ActivityCrop.class);\n\n }", "public void setCropRect(Rect cropRect) {\n this.cropRect = cropRect;\n //invalidate();\n }", "@Override\n public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom from) {\n if(bitmap.getHeight()>bitmap.getWidth()){\n\n progressBar.setVisibility(View.INVISIBLE);\n //load to imageview and set scale type to center crop\n imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);\n imageView.setImageBitmap(bitmap);\n\n }else {\n\n progressBar.setVisibility(View.INVISIBLE);\n //load to imageview and set scale type to fitxy\n imageView.setScaleType(ImageView.ScaleType.FIT_XY);\n imageView.setImageBitmap(bitmap);\n\n }\n\n }", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n\t\t/* Associate the Bitmap to the ImageView */\n mImageView.setImageBitmap(bitmap);\n mTextView.setText(mCurrentPhotoPath);\n\n // SendImage(mCurrentPhotoPath);\n\n // AsyncCallWS task = new AsyncCallWS();\n // Call execute\n // task.execute();\n }", "private int getTouchedCorner(MotionEvent motionEvent) {\n PointF currentTouchPos = new PointF(motionEvent.getX(), motionEvent.getY());\n if (cropRect == null) {\n return NO_CORNER;\n }\n PointF topLeft = sourceToViewCoord(cropRect.left, cropRect.top);\n PointF bottomRight = sourceToViewCoord(cropRect.right, cropRect.bottom);\n Rect cropRect = new Rect((int) topLeft.x, (int) topLeft.y,\n (int) bottomRight.x, (int) bottomRight.y);\n\n if (currentTouchPos.x > cropRect.left - touchDelta\n && currentTouchPos.x < cropRect.left + touchDelta\n && currentTouchPos.y > cropRect.top - touchDelta\n && currentTouchPos.y < cropRect.top + touchDelta) {\n return TOP_LEFT;\n }\n\n if (currentTouchPos.x > cropRect.right - touchDelta\n && currentTouchPos.x < cropRect.right + touchDelta\n && currentTouchPos.y > cropRect.top - touchDelta\n && currentTouchPos.y < cropRect.top + touchDelta) {\n return TOP_RIGHT;\n }\n\n if (currentTouchPos.x > cropRect.right - touchDelta\n && currentTouchPos.x < cropRect.right + touchDelta\n && currentTouchPos.y > cropRect.bottom - touchDelta\n && currentTouchPos.y < cropRect.bottom + touchDelta) {\n return BOTTOM_RIGHT;\n }\n\n if (currentTouchPos.x > cropRect.left - touchDelta\n && currentTouchPos.x < cropRect.left + touchDelta\n && currentTouchPos.y > cropRect.bottom - touchDelta\n && currentTouchPos.y < cropRect.bottom + touchDelta) {\n return BOTTOM_LEFT;\n }\n\n return NO_CORNER;\n }", "public void loadImagefromGallery(View view) {\n Intent intent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n intent.putExtra(\"crop\", \"true\");\n intent.putExtra(\"aspectX\", 50);\n intent.putExtra(\"aspectY\", 50);\n intent.putExtra(\"outputX\", 100);\n intent.putExtra(\"outputY\", 100);\n\n try {\n // Start the Intent\n startActivityForResult(intent, PICK_FROM_GALLERY);\n } catch (ActivityNotFoundException ae) {\n\n } catch (Exception e) {\n\n }\n }", "private void cropEffect(int x, int y, int width, int height) {\n // int que estigui dins la imatge\n EffectFactory factory = effectContext.getFactory();\n effect = factory.createEffect(EffectFactory.EFFECT_CROP);\n effect.setParameter(\"xorigin\", x);\n effect.setParameter(\"yorigin\", y);\n effect.setParameter(\"width\", width);\n effect.setParameter(\"height\", height);\n effect.apply(textures[0], photoWidth, photoHeight, textures[1]);\n }", "@Override\n public boolean isCircle() {\n return mIsCircle;\n }", "public @NotNull Image crop(int x, int y, int width, int height)\n {\n if (this.data != null)\n {\n validateRect(x, y, width, height);\n \n Color.Buffer output = Color.malloc(this.format, width * height);\n \n long srcPtr = this.data.address();\n long dstPtr = output.address();\n \n long bytesPerLine = Integer.toUnsignedLong(width) * this.format.sizeof;\n for (int j = 0; j < height; j++)\n {\n long src = srcPtr + Integer.toUnsignedLong((j + y) * this.width + x) * this.format.sizeof;\n long dst = dstPtr + Integer.toUnsignedLong(j * width) * this.format.sizeof;\n MemoryUtil.memCopy(src, dst, bytesPerLine);\n }\n \n this.data.free();\n \n this.data = output;\n this.width = width;\n this.height = height;\n this.mipmaps = 1;\n }\n return this;\n }", "private Bitmap setPic() {\n int targetH = 0; //mImageView.getHeight();\n int targetW = 0; //mImageView.getWidth();\n\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n if( photoH > photoW ){\n /*Se definen las dimensiones de la imagen que se desea generar*/\n targetH = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.heigh; // 640;\n targetW = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.width; //480;\n }else{\n targetH = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.heigh; //480;\n targetW = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.width; //640;\n }\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 0;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n return bitmap;\n }", "private void setPic() {\n\t\tint targetW = Constant.sRealWidth;\n\t\tint targetH = Constant.sRealHeight;\n\n\t\t/* Get the size of the image */\n\t\tBitmapFactory.Options bmOptions = new BitmapFactory.Options();\n\t\tbmOptions.inJustDecodeBounds = true;\n\t\tBitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\tint photoW = bmOptions.outWidth;\n\t\tint photoH = bmOptions.outHeight;\n\t\t\n\t\t/* Figure out which way needs to be reduced less */\n\t\tint scaleFactor = 1;\n\t\tif ((targetW > 0) || (targetH > 0)) {\n\t\t\tscaleFactor = Math.min(photoW/targetW, photoH/targetH);\t\n\t\t}\n\n\t\t/* Set bitmap options to scale the image decode target */\n\t\tbmOptions.inJustDecodeBounds = false;\n\t\tbmOptions.inSampleSize = scaleFactor;\n\t\tbmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n\t\tBitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\t\n\t\tint rotate = ViewUtils.handleRotateBitmap(mCurrentPhotoPath);\n\t\tif (rotate != 0) {\n\t\t\tbitmap = ViewUtils.rotaingBitmap(\n\t\t\t\t\trotate, bitmap);\n\t\t}\n\t\t/* Associate the Bitmap to the ImageView */\n\t\tmPictureView.setImageBitmap(bitmap);\n\t}", "@Override\n @SuppressLint(\"NewApi\")\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == CropImage.PICK_IMAGE_CHOOSER_REQUEST_CODE && resultCode == Activity.RESULT_OK) {\n Uri imageUri = CropImage.getPickImageResultUri(this, data);\n\n // For API >= 23 we need to check specifically that we have permissions to read external storage.\n if (CropImage.isReadExternalStoragePermissionsRequired(this, imageUri)) {\n // request permissions and handle the result in onRequestPermissionsResult()\n mCropImageUri = imageUri;\n requestPermissions(new String[]{android.Manifest.permission.READ_EXTERNAL_STORAGE}, CropImage.PICK_IMAGE_PERMISSIONS_REQUEST_CODE);\n } else {\n // no permissions required or already grunted, can start crop image activity\n startCropImageActivity(imageUri);\n }\n } else if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) {\n CropImage.ActivityResult result = CropImage.getActivityResult(data);\n if (resultCode == RESULT_OK) {\n mCropImageUri = result.getUri();\n InputStream imageStream = null;\n try {\n imageStream = getContentResolver().openInputStream(mCropImageUri);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n mCropImage = BitmapFactory.decodeStream(imageStream);\n imgRestaurant.setImageBitmap(mCropImage);\n\n } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) {\n Exception error = result.getError();\n Toast.makeText(NewRestaurantActivity.this, error.getMessage(), Toast.LENGTH_LONG).show();\n }\n }\n }", "public static BufferedImage cropImage(BufferedImage img, Rectangle bounds)\n\t{\n\t\tBufferedImage dest = img.getSubimage(bounds.x, bounds.y, bounds.width, bounds.height);\n\t\treturn dest; \n\t}", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n// Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "public static Bitmap cropImageVer2(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n int x=5,y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of bm.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n \n // Check upper-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits top most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n // Check bottom-left section of combineImage.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the left side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n \n int px = bm.getPixel(x, y);\n // Get out of loop once it hits the right side of the template.\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n \n // Get out of loop once it hits bottom most part of the template.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n break;\n } \n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "public Bitmap roundImage(Bitmap bm){\n\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n\n Bitmap bitmap = bm;\n\n Bitmap bitmapRounded = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), bitmap.getConfig());\n Canvas canvas = new Canvas(bitmapRounded);\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n paint.setShader(new BitmapShader(bitmap, Shader.TileMode.CLAMP, Shader.TileMode.CLAMP));\n canvas.drawRoundRect((new RectF(0.0f, 0.0f, bitmap.getWidth(), bitmap.getHeight())), 80, 80, paint);\n\n return bitmapRounded;\n }", "@Source(\"gr/grnet/pithos/resources/editcut.png\")\n ImageResource cut();", "public static Bitmap cropImage(Bitmap img, Bitmap templateImage, int width, int height) {\n // Merge two images together.\n \t int x=5;\n\t\tint y=5;\n Bitmap bm = Bitmap.createBitmap(img.getWidth(), img.getHeight(), Bitmap.Config.ARGB_8888);\n Canvas combineImg = new Canvas(bm);\n combineImg.drawBitmap(img, 0f, 0f, null);\n combineImg.drawBitmap(templateImage, 0f, 0f, null);\n \n // Create new blank ARGB bitmap.\n Bitmap finalBm = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);\n \n // Get the coordinates for the middle of combineImg.\n int hMid = bm.getHeight() / 2;\n int wMid = bm.getWidth() / 2;\n int hfMid = finalBm.getHeight() / 2;\n int wfMid = finalBm.getWidth() / 2;\n\n int y2 = hfMid;\n int x2 = wfMid;\n\n for ( y = hMid; y >= 0; y--) {\n boolean template = false;\n // Check Upper-left section of combineImg.\n for ( x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n // Check upper-right section of combineImage.\n x2 = wfMid;\n template = false;\n for ( x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n\n // Once we reach the top-most part on the template line, set pixel value transparent\n // from that point on.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n for (int y3 = y2; y3 >= 0; y3--) {\n for (int x3 = 0; x3 < finalBm.getWidth(); x3++) {\n finalBm.setPixel(x3, y3, Color.TRANSPARENT);\n }\n }\n break;\n }\n\n x2 = wfMid;\n y2--;\n }\n\n x2 = wfMid;\n y2 = hfMid;\n for (y = hMid; y <= bm.getHeight(); y++) {\n boolean template = false;\n // Check bottom-left section of combineImage.\n for (x = wMid; x >= 0; x--) {\n if (x2 < 0) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2--;\n }\n\n // Check bottom-right section of combineImage.\n x2 = wfMid;\n template = false;\n for (x = wMid; x < bm.getWidth(); x++) {\n if (x2 >= finalBm.getWidth()) {\n break;\n }\n\n int px = bm.getPixel(x, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n template = true;\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else if (template) {\n finalBm.setPixel(x2, y2, Color.TRANSPARENT);\n } else {\n finalBm.setPixel(x2, y2, px);\n }\n x2++;\n }\n\n // Once we reach the bottom-most part on the template line, set pixel value transparent\n // from that point on.\n int px = bm.getPixel(wMid, y);\n if (Color.red(px) == 234 && Color.green(px) == 157 && Color.blue(px) == 33) {\n for (int y3 = y2; y3 < finalBm.getHeight(); y3++) {\n for (int x3 = 0; x3 < finalBm.getWidth(); x3++) {\n finalBm.setPixel(x3, y3, Color.TRANSPARENT);\n }\n }\n break;\n }\n\n x2 = wfMid;\n y2++;\n }\n \n // Get rid of images that we finished with to save memory.\n img.recycle();\n templateImage.recycle();\n bm.recycle();\n return finalBm;\n }", "public void setPreviewBitmapWithCenterCrop(String previewPath)\n {\n if (previewPath != null) {\n // Set the preview image via Glide Library\n Glide.with(ITFImageView.this)\n .load(new File(previewPath)) // Uri of the picture\n .apply(new RequestOptions().transforms(new CropTransformation(300, 200, CropTransformation.CropType.CENTER)))\n .into(ITFImageView.this);\n }\n }", "private void startCropImageActivity(Uri imageUri) {\n CropImage.activity(imageUri)\n .setGuidelines(CropImageView.Guidelines.ON)\n .setMultiTouchEnabled(true)\n .start(this);\n }", "private void zoomImageFromThumb(final View thumbView, int imageResId) {\n if (mCurrentAnimator != null) {\n mCurrentAnimator.cancel();\n }\n\n // Load the high-resolution \"zoomed-in\" image.\n final ImageView expandedImageView = (ImageView) findViewById(\n R.id.expanded_image);\n expandedImageView.setImageResource(imageResId);\n\n // Calculate the starting and ending bounds for the zoomed-in image.\n // This step involves lots of math. Yay, math.\n final Rect startBounds = new Rect();\n final Rect finalBounds = new Rect();\n final Point globalOffset = new Point();\n\n // The start bounds are the global visible rectangle of the thumbnail,\n // and the final bounds are the global visible rectangle of the container\n // view. Also set the container view's offset as the origin for the\n // bounds, since that's the origin for the positioning animation\n // properties (X, Y).\n thumbView.getGlobalVisibleRect(startBounds);\n findViewById(R.id.cxw)\n .getGlobalVisibleRect(finalBounds, globalOffset);\n startBounds.offset(-globalOffset.x, -globalOffset.y);\n finalBounds.offset(-globalOffset.x, -globalOffset.y);\n\n // Adjust the start bounds to be the same aspect ratio as the final\n // bounds using the \"center crop\" technique. This prevents undesirable\n // stretching during the animation. Also calculate the start scaling\n // factor (the end scaling factor is always 1.0).\n float startScale;\n if ((float) finalBounds.width() / finalBounds.height()\n > (float) startBounds.width() / startBounds.height()) {\n // Extend start bounds horizontally\n startScale = (float) startBounds.height() / finalBounds.height();\n float startWidth = startScale * finalBounds.width();\n float deltaWidth = (startWidth - startBounds.width()) / 2;\n startBounds.left -= deltaWidth;\n startBounds.right += deltaWidth;\n } else {\n // Extend start bounds vertically\n startScale = (float) startBounds.width() / finalBounds.width();\n float startHeight = startScale * finalBounds.height();\n float deltaHeight = (startHeight - startBounds.height()) / 2;\n startBounds.top -= deltaHeight;\n startBounds.bottom += deltaHeight;\n }\n\n // Hide the thumbnail and show the zoomed-in view. When the animation\n // begins, it will position the zoomed-in view in the place of the\n // thumbnail.\n thumbView.setAlpha(0f);\n expandedImageView.setVisibility(View.VISIBLE);\n\n // Set the pivot point for SCALE_X and SCALE_Y transformations\n // to the top-left corner of the zoomed-in view (the default\n // is the center of the view).\n expandedImageView.setPivotX(0f);\n expandedImageView.setPivotY(0f);\n\n // Construct and run the parallel animation of the four translation and\n // scale properties (X, Y, SCALE_X, and SCALE_Y).\n AnimatorSet set = new AnimatorSet();\n set\n .play(ObjectAnimator.ofFloat(expandedImageView, View.X,\n startBounds.left, finalBounds.left))\n .with(ObjectAnimator.ofFloat(expandedImageView, View.Y,\n startBounds.top, finalBounds.top))\n .with(ObjectAnimator.ofFloat(expandedImageView, View.SCALE_X,\n startScale, 1f)).with(ObjectAnimator.ofFloat(expandedImageView,\n View.SCALE_Y, startScale, 1f));\n set.setDuration(mShortAnimationDuration);\n set.setInterpolator(new DecelerateInterpolator());\n set.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n mCurrentAnimator = null;\n }\n\n @Override\n public void onAnimationCancel(Animator animation) {\n mCurrentAnimator = null;\n }\n });\n set.start();\n mCurrentAnimator = set;\n\n // Upon clicking the zoomed-in image, it should zoom back down\n // to the original bounds and show the thumbnail instead of\n // the expanded image.\n final float startScaleFinal = startScale;\n expandedImageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (mCurrentAnimator != null) {\n mCurrentAnimator.cancel();\n }\n\n // Animate the four positioning/sizing properties in parallel,\n // back to their original values.\n AnimatorSet set = new AnimatorSet();\n set.play(ObjectAnimator\n .ofFloat(expandedImageView, View.X, startBounds.left))\n .with(ObjectAnimator\n .ofFloat(expandedImageView,\n View.Y,startBounds.top))\n .with(ObjectAnimator\n .ofFloat(expandedImageView,\n View.SCALE_X, startScaleFinal))\n .with(ObjectAnimator\n .ofFloat(expandedImageView,\n View.SCALE_Y, startScaleFinal));\n set.setDuration(mShortAnimationDuration);\n set.setInterpolator(new DecelerateInterpolator());\n set.addListener(new AnimatorListenerAdapter() {\n @Override\n public void onAnimationEnd(Animator animation) {\n thumbView.setAlpha(1f);\n expandedImageView.setVisibility(View.GONE);\n mCurrentAnimator = null;\n }\n\n @Override\n public void onAnimationCancel(Animator animation) {\n thumbView.setAlpha(1f);\n expandedImageView.setVisibility(View.GONE);\n mCurrentAnimator = null;\n }\n });\n set.start();\n mCurrentAnimator = set;\n }\n });\n }", "public ImageView getImage() {\n ImageView and = new ImageView(Image);\n and.setFitWidth(70);\n and.setFitHeight(50);\n return and;\n }", "public void onDraw(Canvas canvas) {\n float min = (float) (Math.min(getWidth(), getHeight()) / 2);\n canvas.drawCircle(min, min, min - RippleBackground.this.b, RippleBackground.this.j);\n }", "public static BufferedImage makeRoundedCorner(BufferedImage image, int cornerRadius) {\n\t int w = image.getWidth();\n\t int h = image.getHeight();\n\t BufferedImage output = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n\n\t Graphics2D g2 = output.createGraphics();\n\t g2.setComposite(AlphaComposite.Src);\n\t g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t g2.fill(new RoundRectangle2D.Float(0, 0, w, h, cornerRadius, cornerRadius));\n\t g2.setComposite(AlphaComposite.SrcIn);\n\t g2.drawImage(image, 0, 0, null);\n\t g2.dispose();\n\n\t return output;\n\t}", "private BufferedImage getClipImage(final Rectangle effectBounds) {\n if (_clipImage == null\n || _clipImage.getWidth() < effectBounds.width\n || _clipImage.getHeight() < effectBounds.height) {\n /* */\n int w = effectBounds.width;\n int h = effectBounds.height;\n if (_clipImage != null) {\n w = Math.max(_clipImage.getWidth(), w);\n h = Math.max(_clipImage.getHeight(), h);\n }\n _clipImage = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n }\n return _clipImage;\n }", "private Rect getMinCropRect() {\n return new Rect(0, 0,\n aspectRatio < 0.0 ? minCropRectSize : (int) (minCropRectSize * aspectRatio),\n minCropRectSize);\n }", "private void setPic() {\n int targetW =20;// mImageView.getWidth();\n int targetH =20;// mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;//设置仅加载位图边界信息(相当于位图的信息,但没有加载位图)\n\n //返回为NULL,即不会返回bitmap,但可以返回bitmap的横像素和纵像素还有图片类型\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "public static BufferedImage cropImage(BufferedImage image, int topX,\r\n\t\t\tint topY, int width, int height) {\r\n\t\t// create cropping rectangle\r\n\t\tBufferedImage dest = image.getSubimage(topX, topY, width, height);\r\n\t\t// return cropped image\r\n\t\treturn dest;\r\n\t}", "public static void setCircle(BufferedImage image, Dimension fieldSize, int x, int y, int radius, int color)\n {\n // Creates a new array of position\n ColoredPoint p_points[] = new ColoredPoint[10000];\n\n // Fills the array with every pixel in the circle around the mouse\n getCircle(image, fieldSize, p_points, x, y, radius, color);\n\n // For every pixel recorded\n for(ColoredPoint p : p_points)\n {\n // If the pixel is null, the end of the list has been reached\n if(p == null)\n {\n break;\n }\n image.setRGB(p.x, p.y, p.c);\n }\n }", "public static BufferedImage cropImage(int x1, int y1, int x2, int y2, BufferedImage src){\n\t\tBufferedImage dest = null;\n\t\t\n\t\tif(x1>x2){\n\t\t\tint tmp = x1;\n\t\t\tx1 = x2;\n\t\t\tx2 = tmp;\n\t\t}\n\t\t\n\t\tif(y1>y2){\n\t\t\tint tmp = y1;\n\t\t\ty1 = y2;\n\t\t\ty2 = tmp;\n\t\t}\n\t\t\n\t\tx1 = Math.max(x1, 0);\n\t\tx2 = Math.min(x2, src.getWidth()-1);\n\t\t\t\t\n\t\ty1 = Math.max(y1, 0);\n\t\ty2 = Math.min(y2, src.getHeight()-1);\n\t\t\n\t\tdest = src.getSubimage(x1, y1, Math.abs(x2 - x1), Math.abs(y2 - y1));\n\n\t\treturn dest;\n\t}", "private void manageCrops() {\r\n// System.out.println(\"\\nThis is manage the crops option\");\r\n CropView.runCropsView();\r\n }", "@Override\n public final void paint(float delta) {\n game.graphics.drawImage(\n image,\n centerX - (width / 2),\n centerY - (height / 2),\n scale, 0);\n }" ]
[ "0.63958323", "0.6354227", "0.63334364", "0.62610507", "0.6253043", "0.6167358", "0.61402315", "0.60984945", "0.60595655", "0.5987448", "0.594691", "0.5934224", "0.5879138", "0.5792218", "0.5790488", "0.5659586", "0.563463", "0.56292605", "0.56088626", "0.55833274", "0.5576013", "0.5572618", "0.5549088", "0.5518222", "0.55031085", "0.54458046", "0.5442677", "0.5435816", "0.5431239", "0.5400234", "0.53781337", "0.5375263", "0.53636193", "0.53576374", "0.533938", "0.5284075", "0.5276191", "0.52720636", "0.52586806", "0.5243691", "0.52430713", "0.52332425", "0.5231049", "0.52243423", "0.520797", "0.5180473", "0.5179246", "0.5178986", "0.51488364", "0.51475346", "0.5122119", "0.5118141", "0.50980973", "0.5090209", "0.5089288", "0.50875145", "0.5082173", "0.5080743", "0.50727063", "0.50618094", "0.5029319", "0.5020566", "0.50172895", "0.5010306", "0.5006294", "0.49842605", "0.49753428", "0.49625525", "0.49589682", "0.4958064", "0.49556497", "0.49547505", "0.49484685", "0.49478287", "0.49453902", "0.49447703", "0.49439573", "0.49336284", "0.49240837", "0.49209967", "0.49080235", "0.4903521", "0.4896431", "0.48959404", "0.48941994", "0.48734194", "0.48722604", "0.4867782", "0.4861357", "0.48581883", "0.4852583", "0.48411497", "0.48281544", "0.48232383", "0.48203853", "0.48163489", "0.481539", "0.4807449", "0.48021582", "0.4791713" ]
0.5550708
22
Displays an image from a URL in an ImageView.
public static void displayImageFromUrl(final Context context, final String url, final ImageView imageView, Drawable placeholderDrawable, RequestListener listener) { RequestOptions myOptions = new RequestOptions() .dontAnimate() .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .placeholder(placeholderDrawable); if (listener != null) { Glide.with(context) .load(url) .apply(myOptions) .listener(listener) .into(imageView); } else { Glide.with(context) .load(url) .apply(myOptions) .listener(listener) .into(imageView); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayImage(String url, ImageView image){\n Ion.with(image)\n .placeholder(R.drawable.fgclogo)\n .error(R.drawable.fgclogo)\n .load(url);\n }", "@Override\n public void loadImage(String url, ImageView imageView) {\n ImageLoader.getInstance().displayImage(url, imageView);\n }", "@Override\n public void loadImage(@Nullable String url) {\n if (view != null) {\n if (url == null) {\n view.exit();\n return;\n }\n view.showImage(url);\n }\n }", "public static void displayImage(String url, ImageView imgView) {\n if (TextUtils.isEmpty(url) || imgView == null) {\n return;\n }\n\n Glide.with(MainApplication.getAppContext())\n .load(url)\n .into(imgView);\n }", "void downloadImage(String imageURL, ImageView imageView);", "public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }", "private void loadAndDisplay(String url, ImageView imageView) {\n LoadDataHolder loadDataHolder = new LoadDataHolder(url, imageView);\n\n // Add placeholder while load image\n imageView.setImageResource(R.color.placeholder);\n\n // Execute loading runnable\n executorService.submit(new ImageLoadRunnable(loadDataHolder));\n }", "@BindingAdapter({\"bind:imageUrlWithPlaceHolder\"})\n public static void loadImage(ImageView view, String imageUrl) {\n Context context = view.getContext();\n Glide.with( context ).load( imageUrl )\n .diskCacheStrategy( DiskCacheStrategy.ALL ).placeholder( R.drawable.ic_launcher_background ).dontAnimate().into( view );\n }", "private void loadImg(final ImageView imageView,String url) {\n OkHttpUtils.get(url)\n .tag(this)\n .execute(new BitmapCallback()\n {\n @Override\n public void onSuccess(Bitmap bitmap, okhttp3.Call call, Response response) {\n imageView.setImageBitmap(bitmap);\n }\n });\n }", "@BindingAdapter(\"bind:imageUrl\")\n public static void setImageUrl(ImageView imageView, String url) {\n Context context = imageView.getContext();\n Glide.with( context ).load( url ).into( imageView );\n }", "public static void getImageFromUrl(String url, final ImageView imageView,\r\n\t\t\tContext contexte) {\r\n\r\n\t\tVolleySingleton volleyInstance = VolleySingleton.getInstance(contexte);\r\n\t\tImageLoader imageLoader = volleyInstance.getImageLoader();\r\n\t\t\r\n\t\timageLoader.get(url, new ImageListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorResponse(VolleyError error) {\r\n\t\t\t\timageView.setImageResource(R.drawable.ic_launcher);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onResponse(ImageContainer response, boolean arg1) {\r\n\r\n\t\t\t\tLog.i(\"Api\",\r\n\t\t\t\t\t\t\"Get image url reponse :\" + response.getRequestUrl());\r\n\t\t\t\tif (response.getBitmap() != null) {\r\n\t\t\t\t\timageView.setImageBitmap(response.getBitmap());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void loadImage(final String url) {\n\t\tnew AsyncTask<Void, Void, Drawable>() {\n\t\t\t@Override\n\t\t\tprotected Drawable doInBackground(Void... none) {\n\t\t\t\treturn NetHelper.getDrawableFromUrl(url);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onPostExecute(Drawable drawable) {\n\t\t\t\tImageView thumbnail = (ImageView) findViewById(R.id.details_image_view_thumbnail);\n\t\t\t\tthumbnail.setImageDrawable(drawable);\n\t\t\t}\n\t\t}.execute();\n\t}", "@BindingAdapter({ \"productimageurl\" })\n public static void loadImage(ImageView imageView, String imageURL) {\n Glide.with(imageView.getContext())\n .load(imageURL)\n .placeholder(R.drawable.bisleri_bottle_img)\n .into(imageView);\n }", "public void displayImage(final ImageView imageView, final String url, int reqWidth, int reqHeight) {\n if (mImageViews.get(imageView) != null && mImageViews.get(imageView).equals(url))\r\n return;\r\n\r\n mImageViews.put(imageView, url);\r\n\r\n Bitmap bitmap = mMemoryCache.get(url);\r\n\r\n if (bitmap != null) {\r\n imageView.setImageBitmap(bitmap);\r\n } else {\r\n // if the image have already put to the queue\r\n if (mSubscribers.get(url) != null) {\r\n mSubscribers.get(url).addImageView(imageView);\r\n } else {\r\n imageView.setImageResource(DEFAULT_IMAGE_ID);\r\n BitmapUseCase bitmapUseCase = mBitmapUseCaseFactory.create(url, reqWidth, reqHeight);\r\n\r\n BitmapSubscriber subscriber = new BitmapSubscriber(imageView, url, bitmapUseCase);\r\n\r\n bitmapUseCase.execute(subscriber);\r\n mSubscribers.put(url, subscriber);\r\n mUseCases.add(bitmapUseCase);\r\n }\r\n\r\n }\r\n\r\n\r\n }", "public void drawImage() {\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n imageView.setVisibility(View.VISIBLE);\n Glide.with(MainActivity.this).load(iURI).fitCenter().into(imageView);\n }", "private void displayImage(Uri uri)\t{\n\t\tLog.d(TAG, \"displayImage\");\n\t\tint width = getWindow().getWindowManager().getDefaultDisplay().getWidth();\n\t\tint height = getWindow().getWindowManager().getDefaultDisplay().getHeight();\n\t\tString imageWidth = \"\\\" width=\\\"\" + width;\n\t\tString imageHeight = \"\\\" height=\\\"\" + height;\n\t\t\n\t\tif (width < height) //use width but not height, so set height to null\n\t\t\timageHeight = \"\";\n\t\telse //use height not width, so set width to null\n\t\t\timageWidth = \"\";\n\t\t\t\t\n\t\tString imageUrl = \"file://\" + uri.getPath();\n\t\tLog.d(TAG, \"Loading image...\");\n\t\tmCropView.loadData(\"<html><head>\" +\n\t\t\t\t\"<meta name=\\\"viewport\\\" content=\\\"width=device-width\\\"/>\" +\n\t\t\t\t\t\t\"</head><body><center><img src=\\\"\"+uri.toString() + imageWidth + imageHeight +\n\t\t\t\t\t\t\"\\\"></center></body></html>\",\n\t\t\t\t\t\t\"text/html\", \"UTF-8\");\n\t\tmCropView.getSettings().setBuiltInZoomControls(true);\n\t\tmCropView.setBackgroundColor(0);\n\t\tmCropView.getSettings().setUseWideViewPort(true);\n\t\tmCropView.setInitialScale(1);\n\t\tmCropView.getSettings().setLoadWithOverviewMode(true);\n\t\tLog.d(TAG, imageUrl);\n\t\tLog.d(TAG, uri.toString());\n\t}", "public void loadTo(String url, ImageView imageView) {\n relationsMap.put(imageView, url);\n\n // If image already cached just show it\n Bitmap bitmap = memoryCache.getData(url);\n if (bitmap != null) {\n Log.d(\"HIHO\", \"bitmap from memory\");\n imageView.setImageBitmap(bitmap);\n } else {\n loadAndDisplay(url, imageView);\n }\n }", "public static void displayImageFromUrlWithPlaceHolder(final Context context, final String url,\n final ImageView imageView,\n int placeholderResId) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n .placeholder(placeholderResId);\n\n Glide.with(context)\n .load(url)\n .apply(myOptions)\n .into(imageView);\n }", "@BindingAdapter({\"bind:urlToImage\", \"bind:articleUrl\"})\n public static void loadImage(ImageView imageView, String url, String articleUrl) {\n Context context = imageView.getContext();\n if (url == null) {\n String iconUrl = \"https://besticon-demo.herokuapp.com/icon?url=%s&size=80..120..200\";\n url = String.format(iconUrl, Uri.parse(articleUrl).getAuthority());\n }\n GlideApp.with(imageView)\n .load(url)\n .apply(NewsGlideModule.roundedCornerImage(new RequestOptions(), imageView.getContext(), 0))\n .placeholder(context.getResources().getDrawable(R.color.cardBackground))\n .into(imageView);\n }", "@BindingAdapter({\"bind:url\", \"bind:articleUrl\"})\n public static void loadThumbnailImage(ImageView imageView, String url, String articleUrl) {\n Context context = imageView.getContext();\n if (url == null) {\n String iconUrl = \"https://besticon-demo.herokuapp.com/icon?url=%s&size=80..120..200\";\n url = String.format(iconUrl, Uri.parse(articleUrl).getAuthority());\n }\n GlideApp.with(imageView)\n .load(url)\n .apply(NewsGlideModule.roundedCornerImage(new RequestOptions(), imageView.getContext(), 4))\n .placeholder(context.getResources().getDrawable(R.color.cardBackground))\n .into(imageView);\n }", "public static void displayRoundImageFromUrl(final Context context, final String url, final ImageView imageView) {\n RequestOptions myOptions = new RequestOptions()\n .centerCrop()\n .dontAnimate();\n\n Glide.with(context)\n .asBitmap()\n .apply(myOptions)\n .load(url)\n .into(new BitmapImageViewTarget(imageView) {\n @Override\n protected void setResource(Bitmap resource) {\n RoundedBitmapDrawable circularBitmapDrawable =\n RoundedBitmapDrawableFactory.create(context.getResources(), resource);\n circularBitmapDrawable.setCircular(true);\n imageView.setImageDrawable(circularBitmapDrawable);\n }\n });\n }", "public void loadImage(String url, ImageView imageView) {\n Bitmap bitmap = null;\n if (mImageCache != null) {\n bitmap = mImageCache.get(url);\n }\n if (bitmap != null) {\n imageView.setImageBitmap(bitmap);\n return;\n } else {\n if (LoadImageUrlTask.cancelPotentialDownload(url, imageView)) {\n LoadImageUrlTask task = new LoadImageUrlTask(imageView, mImageCache);\n final DownLoadedDrawable downLoadedDrawable = new DownLoadedDrawable(mContext.getResources(),\n ImageUtils.decodeSampledBitmapFromResource(mContext.getResources(), loadingBgResId), task);\n imageView.setImageDrawable(downLoadedDrawable);\n task.execute(url);\n }\n }\n }", "@Override\n public void displayImage(String url, String mimeType, String title, String description,\n String iconSrc, final LaunchListener listener) {\n setMediaSource(new MediaInfo.Builder(url, mimeType)\n .setTitle(title)\n .setDescription(description)\n .setIcon(iconSrc)\n .build(), listener);\n }", "public ImageLoadTask(String url, ImageView imageView) {\n this.url = url;\n this.imageView = imageView;\n this.finish = false;\n }", "private void showView() {\n\t\tfinal ImageView image = (ImageView) findViewById(R.id.image); \n\t\t//screen.addView(image);\n\t\t//image.setImageResource(images[0]);\n\n\t\tString fileName = getFilesDir().getPath() + \"/\" + FILE_NAME;\n\t\t//System.out.println(fileName);\n\t\tBitmap bm = BitmapFactory.decodeFile(fileName); \n\t\t\n\t\timage.setImageBitmap(bm); \n\t\t\n\t\t//System.out.println(\"show done!\\n\");\t\t\n\t\t\n\t}", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n int poster_path_index = cursor.getColumnIndex(MovieContract.MovieDetailsEntry.COLUMN_POSTER_PATH);\n String poster_path = cursor.getString(poster_path_index);\n String baseURL = \"http://image.tmdb.org/t/p/w185\" + poster_path;\n ImageView imageView = (ImageView) view.findViewById(R.id.imageView);\n\n\n if (baseURL.contains(\"null\")) {\n Picasso.with(context).load(R.drawable.poster_not_available)\n .resize(185, 200)\n .into(imageView);\n\n } else {\n\n if(isNetworkAvailable()) {\n Picasso.with(context).load(baseURL).into(imageView);\n// Picasso.with(context).load(\"http://i.imgur.com/DvpvklR.png\").into(imageView\n }else{\n Picasso.with(context)\n .load(baseURL)\n .networkPolicy(NetworkPolicy.OFFLINE)\n .placeholder(R.drawable.error_loading)\n .into(imageView);\n\n }\n }\n }", "public static void setPreviewImage(final AppCompatActivity context, String url, ImageView imageView, final ProgressView progressView){\n\n //Show loading view.\n progressView.show(context.getSupportFragmentManager(), \"\");\n\n Picasso.with(context).load(url).resize(1600,1200).centerCrop().into(imageView, new Callback() {\n @Override\n public void onSuccess() {\n progressView.dismiss();\n }\n\n @Override\n public void onError() {\n\n }\n });\n\n }", "public void setImageUrl(String url){\n\n Glide.with(getContext()).load(url)\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(ivImg);\n }", "public static void loadImageLoader(DisplayImageOptions options, String url, final ImageView imageView) {\n ImageLoader.getInstance().displayImage(url, imageView, options, new SimpleImageLoadingListener() {\n final List<String> displayedImages = Collections.synchronizedList(new LinkedList<String>());\n\n @Override\n public void onLoadingStarted(String imageUri, View view) {\n //spinner.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onLoadingFailed(String imageUri, View view, FailReason failReason) {\n String message = null;\n switch (failReason.getType()) {\n case IO_ERROR:\n message = \"Check internet\";\n break;\n case DECODING_ERROR:\n message = \"Image can't be decoded\";\n break;\n case NETWORK_DENIED:\n message = \"Downloads are denied\";\n break;\n case OUT_OF_MEMORY:\n message = \"Out Of Memory error\";\n break;\n case UNKNOWN:\n message = \"Unknown error\";\n break;\n }\n Toast.makeText(view.getContext(), message, Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n if (loadedImage != null) {\n ImageView imageView = (ImageView) view;\n boolean firstDisplay = !displayedImages.contains(imageUri);\n if (firstDisplay) {\n FadeInBitmapDisplayer.animate(imageView, 300);\n displayedImages.add(imageUri);\n }\n }\n imageView.setImageBitmap(loadedImage);\n }\n });\n }", "void mo36482a(ImageView imageView, Uri uri);", "public void ImageCreate(){\n Picasso.get().load(url).into(imageView);\n }", "void setImageFromURL(String imageURL);", "private static void setPicasso(@NonNull Context context, RemoteViews views, int viewId, @NonNull String imageUrl) {\n\n try {\n //java.lang.IllegalArgumentException: Path must not be empty\n if (imageUrl.length() > 0) {\n Bitmap logoBitmap = Picasso.with(context).load(Utils.builtURI(imageUrl)).get();\n views.setImageViewBitmap(viewId, logoBitmap);\n } else {\n views.setImageViewResource(viewId, R.drawable.ic_launcher);\n }\n\n } catch (IOException | IllegalArgumentException e) {\n views.setImageViewResource(viewId, R.drawable.ic_launcher);\n e.printStackTrace();\n }\n\n }", "public ImageView genererImage(String urlImage, String nomImage) {\n File imgEmpty = new File(urlImage);\n Image img = new Image(imgEmpty.toURI().toString());\n ImageView imgE = new ImageView(img);\n imgE.setFitHeight(0.155 * GLOBALS.MAINACTIVITY_HEIGHT);\n imgE.setFitWidth(0.095 * GLOBALS.MAINACTIVITY_WIDTH);\n imgE.setId(nomImage);\n imgE.setOnMouseEntered(new ActionImg(imgE, this));\n imgE.setOnMouseClicked(new MouseImg(imgE, this, this.p4));\n return imgE;\n }", "public interface ImageDownloader {\n\n /**\n * Load the image from the URL into the image view resizing it if necessary.\n * @param imageURL Image URL.\n * @param imageView ImageView reference to load the image into.\n */\n void downloadImage(String imageURL, ImageView imageView);\n\n}", "public void onClick(View view) {\n Picasso.get().load(\"http://image.tmdb.org/t/p/w185/\").into(imageView);\n }", "private void showBitmap() {\n Bitmap bitmap = BitmapFactory.decodeByteArray(mImgData, 0, mImgData.length);\n mImgView.setImageBitmap(bitmap);\n }", "public static void displayGifImageFromUrl(Context context, String url, ImageView imageView, String thumbnailUrl, Drawable placeholderDrawable) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n .placeholder(placeholderDrawable);\n\n if (thumbnailUrl != null) {\n Glide.with(context)\n .asGif()\n .load(url)\n .apply(myOptions)\n .thumbnail(Glide.with(context).asGif().load(thumbnailUrl))\n .into(imageView);\n } else {\n Glide.with(context)\n .asGif()\n .load(url)\n .apply(myOptions)\n .into(imageView);\n }\n }", "@Override\n public void onClick(View v) {\n showImageView.setVisibility(View.VISIBLE);\n String imgUrl = \"http://210.42.121.241/servlet/GenImg\";\n new DownImgAsyncTask().execute(imgUrl);\n }", "public static void displayGifImageFromUrl(Context context, String url, ImageView imageView, Drawable placeholderDrawable, RequestListener listener) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n .placeholder(placeholderDrawable);\n\n if (listener != null) {\n Glide.with(context)\n .asGif()\n .load(url)\n .apply(myOptions)\n .listener(listener)\n .into(imageView);\n } else {\n Glide.with(context)\n .asGif()\n .load(url)\n .apply(myOptions)\n .into(imageView);\n }\n }", "public void setImageUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void displayImage(ImageView imageView, Bitmap loadingImage, ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, null); \n }", "public static void openImageInBrowser(Context context, String url){\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n context.startActivity(browserIntent);\n }", "public synchronized void updateImageView(ImageView imgView, Bitmap img, String url) {\n if(img == null) {\n img = this.noImgBitmap;\n }\n imageCache.put(url, img);\n imgView.setImageBitmap(img);\n }", "public S<T> image(String name){\n\t\tname = name.trim();\n\t\tBoolean b = false;\n\t\t\n\t\tint theid = activity.getResources().getIdentifier(\n\t\t\t\tname, \"drawable\", activity.getApplicationContext().getPackageName());\n\t\t\n\t\ttry {\n\t\t\tif(t instanceof ImageView)\n\t\t\t{\n\t\t\t\tjava.net.URL url = new URL(name);\n\n\t }\n\t\t\t\n\t\t} catch (MalformedURLException e) {\n\t\t\tb = true;\n\t\t}\n\t\t\n\t\tif(b){\n\t\t\t\n\n\t\t\t\n\t\t\tif(t instanceof ImageView){\n\t\t\t\t((ImageView)t).setImageResource(theid);\n\t\t\t}\n\t\t\tif(t instanceof ImageButton){\n\t\t\t\t((ImageButton)t).setImageResource(theid);\n\t\t\t}\n\t\t\tif(t instanceof LinkedList){\n\t\t\t\tLinkedList<View> auxl = (LinkedList<View>)t;\n\t\t\t\tfor (View v : auxl) {\n\t\t\t\t\tt= (T) v;\n\t\t\t\t\timage(name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tt= (T) auxl;\n\t\t\t}\n\t\t}else{\n\t \n\t // Imageview to show\n\t int loader = R.drawable.ic_launcher;\n\t // ImageLoader class instance\n\t ImageLoader imgLoader = new ImageLoader(activity.getApplicationContext(),loader);\n\t // whenever you want to load an image from url\n\t // call DisplayImage function\n\t // url - image url to load\n\t // loader - loader image, will be displayed before getting image\n\t // image - ImageView \n\t imgLoader.DisplayImage(name, loader, (ImageView)t);\n\t\t}\n\t\treturn this;\n\t}", "private void showImage(String thumbnailURL) {\n if ( ! TextUtils.isEmpty(thumbnailURL)) {\n Picasso.with(getContext())\n .load(thumbnailURL)\n .placeholder(R.drawable.ic_image)\n .error(R.drawable.ic_broken_image)\n .into(mStepThumbnailImageView);\n }\n }", "public void displayImage(ImageView imageView, Bitmap loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator) {\n displayImage(imageView, new BitmapDrawable(mContext.getResources(), loadingImage), width, height, imageGenerator, null); \n }", "public static void setThumbnailImage(final Context context, String url, ImageView imageView){\n\n Picasso.with(context).load(url).placeholder(R.drawable.placeholder_thumbnail).fit().into(imageView);\n\n }", "public void setRemoteImage(ImageView imageView, String url, int position) {\r\n\t\tif(imageView == null) {\r\n\t\t\tLog.w(TAG, \"setRemoteImage() imageView == null.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\timageView.setTag(url);\r\n\t\tif(url == null || url.equals(\"\")) {\r\n\t\t\tLog.w(TAG, \"setRemoteImage() url == null or url is empty.\");\r\n\t\t\timageView.setImageBitmap(getLoadingImage());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tBitmap bitmap = mImageCacheHelper.getImage(url);\r\n\t\tif (bitmap != null) {\r\n\t\t\tLog.d(TAG, \"setRemoteImage() found image from cache.\");\r\n\t\t\timageView.setImageBitmap(bitmap);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\timageView.setImageBitmap(getLoadingImage());\r\n\t\tif (isFling()) {\r\n\t\t\t// No need to load image when lazy load is set true and the ListView is fling(not touch scroll).\r\n\t\t\tLog.v(TAG, \"AbsListView is fling, no need to load remote image.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// bitmap is null, that means never download or downloading or bitmap has been GC(no local copy) or download failed.\r\n\t\tDownloadTaskStatus status = mTaskStatus.get(url);\r\n\t\tboolean needNewTask = false;\r\n\t\tif(status != null) {\r\n\t\t\tif(status == DownloadTaskStatus.PENDING || status == DownloadTaskStatus.RUNNING) {\r\n\t\t\t\t// downloading, not need to run another task to download the same image.\r\n\t\t\t\tLog.v(TAG, \"Position \" + position + \" is downloading. No need to load another one.\");\r\n\t\t\t} else if(status == DownloadTaskStatus.SUCCESS) {\r\n\t\t\t\t// download success but image not found, that means bitmap has been GC(no local copy).\r\n\t\t\t\tLog.w(TAG, \"position \" + position + \" has been GC. Reload it.\");\r\n\t\t\t\tneedNewTask = true;\r\n\t\t\t} else if(status == DownloadTaskStatus.FAILED) {\r\n\t\t\t\t// download failed.\r\n\t\t\t\tif(mReloadIfFailed) {\r\n\t\t\t\t\tLog.w(TAG, \"position \" + position + \" download failed. Reload it.\");\r\n\t\t\t\t\tmTaskStatus.remove(url);\r\n\t\t\t\t\tneedNewTask = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tLog.d(TAG, \"position \" + position + \" download failed. ReloadIfFailed false, no need to reload it.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// never download.\r\n\t\t\tLog.w(TAG, \"position \" + position + \" never download. Load it.\");\r\n\t\t\tneedNewTask = true;\r\n\t\t}\r\n\t\tif(needNewTask) {\r\n\t\t\tLog.d(TAG, \"setRemoteImage() for position \" + position + \" with url \" + url);\r\n\t\t\tnew ImageDownloadTask(mViewGroup, url).execute();\r\n\t\t}\r\n\t}", "protected Bitmap getImage(URL url) {\n\n HttpURLConnection iconConn = null;\n try {\n iconConn = (HttpURLConnection) url.openConnection();\n iconConn.connect();\n int response = iconConn.getResponseCode();\n //if the reponse 200 the successfull\n if (response == 200) {\n return BitmapFactory.decodeStream(iconConn.getInputStream());\n } else {\n return null;\n }\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n } finally {\n if (iconConn != null) {\n iconConn.disconnect();\n }\n }\n }", "public String getImageUrl();", "private void loadImage(String imagePath) {\n //Loading image from below url into imageView\n imageFile = new File(imagePath);\n Glide.with(getApplicationContext())\n .load(imagePath)\n .transition(DrawableTransitionOptions.withCrossFade(300))\n .into(imageView);\n }", "public static void menu_viewimageinbrowser(ActionContext actionContext){\n Thing currentThing = actionContext.getObject(\"currentThing\");\n \n String url = XWorkerUtils.getWebUrl() + \"do?sc=xworker.ide.worldexplorer.swt.http.SwtImage\";\n url = url + \"&control=\" + currentThing.getMetadata().getPath();\n \n XWorkerUtils.ideOpenUrl(url); \n }", "public void setImageUrl(String imageUrl) {\n this.imageUrl = imageUrl;\n }", "public void displayImage(ImageView imageView, Drawable loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImage, width, height, imageGenerator, null);\n }", "public static void loadImage(Context context, String url, int defImageId, ImageView imageView) {\n loadImage(context, url, defImageId, imageView, null);\n }", "public void displayImage(ImageView imageView, Drawable loadingImage,\n ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, null);\n }", "private void downloadPoster() {\n\n try {\n // Downloading the image from URL\n URL url = new URL(Constants.MOVIE_MEDIA_URL + cbPosterQuality.getSelectionModel().getSelectedItem().getKey() + movie.getPosterURL());\n Image image = new Image(url.toExternalForm(), true);\n\n // Adding the image to the ImageView\n imgPoster.setImage(image);\n\n // Adding the ImageView to the custom made ImageViewPane\n imageViewPane.setImageView(imgPoster);\n\n // Binding the image download progress to the progress indicator\n imageProgressIndicator.visibleProperty().bind(image.progressProperty().lessThan(1));\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n }", "private void loadImage(Context context,\n String imageUrl,\n ImageView imageView,\n @Nullable Drawable placeholder) {\n if (imageUrl.equals(imageView.getTag())) {\n // We already have the image, no need to load it again.\n return;\n }\n //If we don't clear the tag, Glide will crash as Glide do not want us to have tag on image view\n // Clear the current tag and load the new image, The new tag will be set on success.\n imageView.setTag(null);\n Glide.with(context)\n .load(imageUrl)\n .centerCrop()\n .thumbnail(GlideConfigModule.SIZE_MULTIPLIER)\n .placeholder(placeholder)\n .dontAnimate()\n .listener(new RequestListener<String, GlideDrawable>() {\n @Override\n public boolean onException(Exception e,\n String model,\n Target<GlideDrawable> target,\n boolean isFirstResource) {\n return false;\n }\n\n @Override\n public boolean onResourceReady(GlideDrawable resource,\n String model,\n Target<GlideDrawable> target,\n boolean isFromMemoryCache,\n boolean isFirstResource) {\n // Set the image URL as a tag so we know that the image with this URL has\n // successfully loaded\n imageView.setTag(imageUrl);\n return false;\n }\n })\n .into(imageView);\n }", "@Override\n\t\t\t\t\tpublic void imageLoaded(Drawable imageDrawable,\n\t\t\t\t\t\t\tString imageUrl) {\n\t\t\t\t\t\tBabyImage.setImageDrawable(imageDrawable);\n\t\t\t\t\t}", "@Override\n\t\t\tprotected Drawable doInBackground(ImageView... params) {\n\t\t\t\timageview = params[0];\n\t\t\t\tDrawable drawable = null;\n\t\t\t\tFile downloadPath = createDownloadsPath(activity, url.split(\"/\"));\n\t\t\t\tdo {\n\t\t\t\t\tdrawable = Utils.LoadImageFromWebOperations(url,\n\t\t\t\t\t\t\tdownloadPath);\n\t\t\t\t\tattempts--;\n\t\t\t\t} while (attempts > 0 && drawable == null);\n\t\t\t\treturn drawable;\n\t\t\t}", "@Override\r\n\t\t\tpublic void onImageLoadedSuccess(String url, Bitmap bitmap,ZLMovie movie, int imageType, ImageView imgView) {\n\t\t\t\tif(bitmap==null && movie!=null){\r\n\t\t\t\t\tbitmap = BitmapFactory.decodeByteArray(movie.getMovieData(), 0, movie.getMovieData().length);\r\n\t\t\t\t}\r\n\t\t\t\tif(url == PlazaListImageView.this.url){\r\n\t\t\t\t\timgView.setImageBitmap(bitmap);\r\n\t\t\t\t}\r\n\t\t\t}", "public void Draw() {\n\t\timgIcon = new ImageIcon(imgUrl);\n\t}", "@Override\n public void run() {\n try {\n if (urlString != null && !urlString.equals(\"\")) {\n\n\n if (urlString.endsWith(\".gif\")) {\n\n\n handler.sendEmptyMessage(SHOW_VIEW_GIF);\n\n } else if (!urlString.endsWith(\".gif\")) {\n bitmapDrawable = null;\n bitmapDrawable = ((BitmapDrawable) loadImageFromUrl(urlString)).getBitmap();\n if (bitmapDrawable != null) {\n handler.sendEmptyMessage(SHOW_VIEW);\n }\n\n\n }\n\n\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void loadImage(Context context, String url, int defImageId, ImageView imageView, Callback callback) {\n if (isNullOrEmpty(url)) {\n if (defImageId != 0) {\n imageView.setImageResource(defImageId);\n }\n } else {\n RequestCreator requestCreator = Picasso.with(context).load(url);\n if (defImageId != 0) {\n requestCreator = requestCreator.placeholder(defImageId).error(defImageId);\n }\n requestCreator.into(imageView, callback);\n }\n }", "@Override\n public void onLoaded(ImageView imageView, Bitmap loadedBitmap, String url, boolean loadedFromCache) {\n }", "@Override\r\n\t\t\tpublic void onLoaded(ImageView imageView, Bitmap loadedDrawable, String url, boolean loadedFromCache) {\n\r\n\t\t\t\tif (loadedDrawable == null) // 아이콘을 로드하지 못한 경우\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\timageView.setImageBitmap(loadedDrawable);\r\n\t\t\t}", "@Override\n public void onSuccess(Uri uri) {\n Uri downloadURIofImage = uri;\n\n // Pass the URI and ImageView to Picasso\n Picasso.get().load(downloadURIofImage).into(resultImageView);\n }", "public void displayImage(ImageView imageView, int loadingImageId,\n ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImageId, 0, 0, imageGenerator, null);\n }", "public void setImageUrl(String imageUrl) {\n this.imageUrl = imageUrl;\n }", "public void setImgUrl(String imgUrl) {\r\n this.imgUrl = imgUrl;\r\n }", "public void setImgurl(String imgurl) {\n this.imgurl = imgurl;\n }", "private void showPreview() {\n Glide.with(this)\n .load(imageUri)\n .into(imagePreview);\n imagePreviewLayout.setVisibility(View.VISIBLE);\n imageOriginOptionsLayout.setVisibility(View.GONE);\n }", "public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage);", "@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\twebView.loadUrl(Uri.fromFile(new File(fileImg)).toString());\n\n\t\t\t\t\t\t\t\t\t\t\t}", "private Bitmap loadImageFromNetwork(String url) {\n try {\n InputStream is = new DefaultHttpClient().execute(new HttpGet(url))\n .getEntity().getContent();\n return BitmapFactory.decodeStream(is);\n } catch (Exception e) {\n return null;\n }\n }", "public void displayUrl(String url)\n {\n //Create a new WebView to clear the old data\n createNewWebView();\n\n //Enable JavaScript\n WebSettings webSettings = webView.getSettings();\n webSettings.setJavaScriptEnabled(true);\n\n //Display website to user\n webView.setWebViewClient(new WebViewClient());\n webView.loadUrl(url);\n }", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n imageViewUIL.setImageBitmap(loadedImage);\n imageViewUIL.setAnimation(anim);\n }", "private void setImage(String downloaderUri, String thubo) {\n blogImageView = mView.findViewById(R.id.postView_image_post);\n\n //request optional to assign temporary image appear before while loading the image from db.\n RequestOptions requestOptions = new RequestOptions();\n requestOptions.placeholder(R.drawable.postlist);\n\n //Glide.with(context).applyDefaultRequestOptions(requestOptions).load(thubo).into(blogImageView);\n Glide.with(context).applyDefaultRequestOptions(requestOptions).load(downloaderUri).thumbnail(\n Glide.with(context).load(thubo)\n ).into(blogImageView);\n\n }", "@Override\r\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n \tLog.v(\"catch\",view+\"\");\r\n \ttry{\r\n if (loadedImage != null && view!=null) { \r\n ImageView imageView = (ImageView) view; \r\n // imageView.setImageBitmap(loadedImage);\r\n // 是否第一次显示 \r\n boolean firstDisplay = !displayedImages.contains(imageUri); \r\n if (firstDisplay) { \r\n // 图片淡入效果 \r\n FadeInBitmapDisplayer.animate(imageView, 800); \r\n displayedImages.add(imageUri); \r\n \r\n/* \t ViewGroup.LayoutParams params = imageView.getLayoutParams(); \r\n \t params.height =loadedImage.getHeight(); \r\n \t ((MarginLayoutParams)params).setMargins(10, 10, 10, 10);\r\n \t imageView.setLayoutParams(params);*/ \r\n } \r\n } \r\n \t}catch(Exception e){\r\n \t\tLog.v(\"catch1\",e.getMessage());\r\n \t}\r\n }", "public static void openImage(String photoUrl, Context context, ImageView ivProfileImage) {\n Intent intent = new Intent(context, FullSizeImageActivity.class);\n // Pass data object in the bundle and populate details activity.\n intent.putExtra(\"photoUrl\", photoUrl);\n ActivityOptionsCompat options = ActivityOptionsCompat.\n makeSceneTransitionAnimation((AppCompatActivity) context, (View)ivProfileImage, \"image\");\n context.startActivity(intent, options.toBundle());\n }", "private Bitmap loadImageFromNetwork(String url) {\n Bitmap bm = null;\n try {\n URL urln = new URL(url);\n Log.i(\"load\", url);\n Log.i(\"load\", \"loading Image...\");\n bm = BitmapFactory.decodeStream(urln.openConnection().getInputStream());\n Log.i(\"load\", \"done\");\n } catch (IOException e) {\n Log.e(\"HUE\",\"Error downloading the image from server : \" + e.getMessage().toString());\n } \n return bm;\n }", "public void displayImage(ImageView imageView, Bitmap loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator, Runnable callback) {\n displayImage(imageView, new BitmapDrawable(mContext.getResources(), loadingImage), width, height, imageGenerator, callback); \n }", "Builder addImage(URL value);", "public void displayImage(ImageView imageView, int loadingImageId, int width,\n int height, ImageGenerator<?> imageGenerator) {\n Drawable loadingImage = mContext.getResources().getDrawable(loadingImageId);\n displayImage(imageView, loadingImage, width, height, imageGenerator, null);\n \n }", "public ImageView getImage(String image) {\r\n\r\n Image shippPic = new Image(image);\r\n ImageView shipImage = new ImageView();\r\n shipImage.setImage(shippPic);\r\n shipImage.setFitWidth(blockSize);\r\n shipImage.setFitHeight(blockSize);\r\n return shipImage;\r\n }", "public void getImage(View view)\n {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE);\n\n }", "public void displayImage(ImageView imageView, Drawable loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator, Runnable callback) {\n if (imageView == null) {\n if (callback != null) \n callback.run();\n return;\n }\n \n if (loadingImage != null) {\n// if (imageView.getBackground() == null) {\n// imageView.setBackgroundDrawable(loadingImage);\n// }\n// imageView.setImageDrawable(null);\n \timageView.setImageDrawable(loadingImage);\n }\n \n if (imageGenerator == null || imageGenerator.getTag() == null) {\n if (callback != null) \n callback.run();\n return;\n }\n\n String tag = imageGenerator.getTag();\n imageView.setTag(tag);\n String key = (width != 0 && height != 0) ? tag + width + height : tag;\n Bitmap bitmap = null;\n synchronized (mMemoryCache) {\n bitmap = mMemoryCache.get(key);\n }\n if (bitmap != null) {\n setImageBitmap(imageView, bitmap, false);\n if (callback != null) \n callback.run();\n return;\n }\n \n synchronized (mTaskStack) {\n for (AsyncImageLoadTask asyncImageTask : mTaskStack) {\n if (asyncImageTask != null \n && asyncImageTask.mImageRef != null\n && tag.equals(asyncImageTask.mImageRef.tag)) {\n if (callback != null) \n callback.run();\n return;\n }\n }\n }\n\n ImageRef imageRef = new ImageRef(imageView, tag, width, height,\n imageGenerator, callback);\n AsyncImageLoadTask asyncImageTask = new AsyncImageLoadTask();\n mTaskStack.push(asyncImageTask); \n asyncImageTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, imageRef);\n \n }", "@Override\n\t\t\tprotected void onPostExecute(Drawable result) {\n\t\t\t\turlDrawable.setBounds(0, 0, result.getIntrinsicWidth(), result.getIntrinsicHeight());\n\n\t\t\t\t// change the reference of the current drawable to the result\n\t\t\t\t// from the HTTP call\n\t\t\t\turlDrawable.drawable = result;\n\n\t\t\t\t// redraw the image by invalidating the container\n\t\t\t\tURLImageParser.this.container.invalidate();\n\t\t\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n ImageView image = (ImageView) findViewById(R.id.imageView1);\n \n image.setImageURI((Uri) getIntent().getExtras().get(Intent.EXTRA_STREAM)); \n }", "public void displayImage(ImageView imageView, Bitmap loadingImage, ImageGenerator<?> imageGenerator, Runnable callback) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, callback); \n }", "@Override\n public Bitmap getImage(String url) {\n try {\n if (!taskForUrlAlreadyRunning(url)) {\n imageDownloadTaskMap.put(url, startDownload(url));\n }\n } catch (MalformedURLException e) {\n Log.i(\"ImageDownloadManager\", \"Malformed url\" + url);\n }\n return null;\n }", "@Override\n protected Bitmap doInBackground(String... params) {\n imageUrl = params[0];\n ImageView thumbnail = imageViewReference.get();\n try {\n InputStream is = (InputStream) new URL(imageUrl).getContent();\n Bitmap bitmap = ImageCommons.decodeSampledBitmapFromInputStream(is, thumbnail.getWidth(), thumbnail.getHeight());\n addBitmapToMemoryCache(imageUrl, bitmap);\n return bitmap;\n } catch (IOException e) {\n e.printStackTrace();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n Log.d(\"myLog\", getClass().getSimpleName() + \" Erro ao fazer download de imagem\");\n return ImageCommons.decodeSampledBitmapFromResource(context.getResources(), R.drawable.ic_launcher, 70, 70);\n }", "public static void loadCacheImage(Context context, final ImageView imageView, String imageUrl, String tag) {\n Cache cache = MySingleton.getInstance(context).getRequestQueue().getCache();\n Cache.Entry entry = cache.get(imageUrl);\n if (entry != null) {\n try {\n Bitmap bitmap = BitmapFactory.decodeByteArray(entry.data, 0, entry.data.length);\n imageView.setImageBitmap(bitmap);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"ERROR\", e.getMessage());\n }\n } else {\n cache.invalidate(imageUrl, true);\n cache.clear();\n ImageRequest request = new ImageRequest(imageUrl,\n new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n }\n }, 0, 0, null,\n new Response.ErrorListener() {\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n Log.e(\"ERROR VOLLY 1\", error.getMessage() + \"\");\n imageView.setImageResource(R.drawable.ic_check_black_24dp);\n }\n });\n request.setTag(tag);\n MySingleton.getInstance(context).addToRequestQueue(request);\n }\n }", "Bitmap ObtenerImagen(URL imageUrl){\n HttpURLConnection conn = null;\n Bitmap imagen=null;\n try {\n conn = (HttpURLConnection) imageUrl.openConnection();\n conn.connect();\n imagen = BitmapFactory.decodeStream(conn.getInputStream());\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n return imagen;\n }", "private Bitmap LoadImage(String URL, BitmapFactory.Options options) {\r\n Bitmap bitmap = null;\r\n InputStream in = null;\r\n try {\r\n in = OpenHttpConnection(URL);\r\n bitmap = BitmapFactory.decodeStream(in, null, options);\r\n in.close();\r\n } catch (IOException e1) {\r\n }\r\n return bitmap;\r\n }", "void mo36483b(int i, ImageView imageView, Uri uri);", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.image, container, false);\n ImageView iv = (ImageView)v.findViewById(R.id.imageView);\n\n inter1 = new InterstitialAd(getActivity());\n inter1.setAdUnitId(getString(R.string.inter_show_image));\n inter1.loadAd(new AdRequest.Builder().build());\n\n inter1.setAdListener(new AdListener(){\n @Override\n public void onAdLoaded() {\n if(inter1.isLoaded())\n {\n inter1.show();\n }\n }\n });\n\n String url = getArguments().getString(\"url\");\n Glide.with(this)\n .load(url)\n .into(iv);\n\n return v;\n }", "@Override\n public void loadImage(String path, ImageView imageView) {\n mInteractor.loadImage(path, imageView);\n }", "public Image getImage(URL paramURL) {\n/* 276 */ return getAppletContext().getImage(paramURL);\n/* */ }" ]
[ "0.80266815", "0.8011256", "0.77943903", "0.775331", "0.75960666", "0.74039835", "0.7314059", "0.71683824", "0.7091811", "0.70894986", "0.70161176", "0.6944191", "0.6897772", "0.68692595", "0.68513626", "0.6836417", "0.6818084", "0.6816043", "0.68157786", "0.67128676", "0.6709219", "0.66785115", "0.6561294", "0.6550847", "0.65308774", "0.64994967", "0.64574474", "0.6433589", "0.64311713", "0.64126265", "0.6408377", "0.6396768", "0.6384098", "0.6374156", "0.63530225", "0.6351039", "0.62643933", "0.6244404", "0.6231072", "0.6212335", "0.6208186", "0.6202116", "0.61966795", "0.61791724", "0.61674565", "0.6167204", "0.6158941", "0.61539567", "0.61419386", "0.61389315", "0.6123306", "0.6095414", "0.60836995", "0.6074962", "0.60527664", "0.6051564", "0.6048841", "0.6045592", "0.6038231", "0.60369384", "0.6019261", "0.60111845", "0.60005885", "0.5988185", "0.59768534", "0.59661967", "0.596014", "0.59586126", "0.5950688", "0.59488547", "0.594731", "0.59348875", "0.59281445", "0.5893975", "0.58817494", "0.5877808", "0.5874569", "0.5874059", "0.58709675", "0.58703697", "0.58631444", "0.58550245", "0.58452123", "0.5818204", "0.5816622", "0.5811639", "0.5807516", "0.580253", "0.5802012", "0.5786335", "0.5785897", "0.5773319", "0.57688326", "0.5762159", "0.5752787", "0.573927", "0.5734303", "0.5733412", "0.573218", "0.57308835" ]
0.67968345
19
Displays an image from a URL in an ImageView. If the image is loading or nonexistent, displays the specified placeholder image instead.
public static void displayImageFromUrlWithPlaceHolder(final Context context, final String url, final ImageView imageView, int placeholderResId) { RequestOptions myOptions = new RequestOptions() .dontAnimate() .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .placeholder(placeholderResId); Glide.with(context) .load(url) .apply(myOptions) .into(imageView); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayImage(String url, ImageView image){\n Ion.with(image)\n .placeholder(R.drawable.fgclogo)\n .error(R.drawable.fgclogo)\n .load(url);\n }", "@Override\n public void loadImage(String url, ImageView imageView) {\n ImageLoader.getInstance().displayImage(url, imageView);\n }", "public static void displayImageFromUrl(final Context context, final String url,\n final ImageView imageView, Drawable placeholderDrawable, RequestListener listener) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n .placeholder(placeholderDrawable);\n\n if (listener != null) {\n Glide.with(context)\n .load(url)\n .apply(myOptions)\n .listener(listener)\n .into(imageView);\n } else {\n Glide.with(context)\n .load(url)\n .apply(myOptions)\n .listener(listener)\n .into(imageView);\n }\n }", "@Override\n public void loadImage(@Nullable String url) {\n if (view != null) {\n if (url == null) {\n view.exit();\n return;\n }\n view.showImage(url);\n }\n }", "public static void displayImage(String url, ImageView imgView) {\n if (TextUtils.isEmpty(url) || imgView == null) {\n return;\n }\n\n Glide.with(MainApplication.getAppContext())\n .load(url)\n .into(imgView);\n }", "private void loadImage(Context context,\n String imageUrl,\n ImageView imageView,\n @Nullable Drawable placeholder) {\n if (imageUrl.equals(imageView.getTag())) {\n // We already have the image, no need to load it again.\n return;\n }\n //If we don't clear the tag, Glide will crash as Glide do not want us to have tag on image view\n // Clear the current tag and load the new image, The new tag will be set on success.\n imageView.setTag(null);\n Glide.with(context)\n .load(imageUrl)\n .centerCrop()\n .thumbnail(GlideConfigModule.SIZE_MULTIPLIER)\n .placeholder(placeholder)\n .dontAnimate()\n .listener(new RequestListener<String, GlideDrawable>() {\n @Override\n public boolean onException(Exception e,\n String model,\n Target<GlideDrawable> target,\n boolean isFirstResource) {\n return false;\n }\n\n @Override\n public boolean onResourceReady(GlideDrawable resource,\n String model,\n Target<GlideDrawable> target,\n boolean isFromMemoryCache,\n boolean isFirstResource) {\n // Set the image URL as a tag so we know that the image with this URL has\n // successfully loaded\n imageView.setTag(imageUrl);\n return false;\n }\n })\n .into(imageView);\n }", "public static void displayGifImageFromUrl(Context context, String url, ImageView imageView, String thumbnailUrl, Drawable placeholderDrawable) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n .placeholder(placeholderDrawable);\n\n if (thumbnailUrl != null) {\n Glide.with(context)\n .asGif()\n .load(url)\n .apply(myOptions)\n .thumbnail(Glide.with(context).asGif().load(thumbnailUrl))\n .into(imageView);\n } else {\n Glide.with(context)\n .asGif()\n .load(url)\n .apply(myOptions)\n .into(imageView);\n }\n }", "private void loadAndDisplay(String url, ImageView imageView) {\n LoadDataHolder loadDataHolder = new LoadDataHolder(url, imageView);\n\n // Add placeholder while load image\n imageView.setImageResource(R.color.placeholder);\n\n // Execute loading runnable\n executorService.submit(new ImageLoadRunnable(loadDataHolder));\n }", "@BindingAdapter({\"bind:imageUrlWithPlaceHolder\"})\n public static void loadImage(ImageView view, String imageUrl) {\n Context context = view.getContext();\n Glide.with( context ).load( imageUrl )\n .diskCacheStrategy( DiskCacheStrategy.ALL ).placeholder( R.drawable.ic_launcher_background ).dontAnimate().into( view );\n }", "public static void displayGifImageFromUrl(Context context, String url, ImageView imageView, Drawable placeholderDrawable, RequestListener listener) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n .placeholder(placeholderDrawable);\n\n if (listener != null) {\n Glide.with(context)\n .asGif()\n .load(url)\n .apply(myOptions)\n .listener(listener)\n .into(imageView);\n } else {\n Glide.with(context)\n .asGif()\n .load(url)\n .apply(myOptions)\n .into(imageView);\n }\n }", "public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }", "private void loadImg(final ImageView imageView,String url) {\n OkHttpUtils.get(url)\n .tag(this)\n .execute(new BitmapCallback()\n {\n @Override\n public void onSuccess(Bitmap bitmap, okhttp3.Call call, Response response) {\n imageView.setImageBitmap(bitmap);\n }\n });\n }", "public void loadImage(String url, ImageView imageView) {\n Bitmap bitmap = null;\n if (mImageCache != null) {\n bitmap = mImageCache.get(url);\n }\n if (bitmap != null) {\n imageView.setImageBitmap(bitmap);\n return;\n } else {\n if (LoadImageUrlTask.cancelPotentialDownload(url, imageView)) {\n LoadImageUrlTask task = new LoadImageUrlTask(imageView, mImageCache);\n final DownLoadedDrawable downLoadedDrawable = new DownLoadedDrawable(mContext.getResources(),\n ImageUtils.decodeSampledBitmapFromResource(mContext.getResources(), loadingBgResId), task);\n imageView.setImageDrawable(downLoadedDrawable);\n task.execute(url);\n }\n }\n }", "private void loadImage(final String url) {\n\t\tnew AsyncTask<Void, Void, Drawable>() {\n\t\t\t@Override\n\t\t\tprotected Drawable doInBackground(Void... none) {\n\t\t\t\treturn NetHelper.getDrawableFromUrl(url);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onPostExecute(Drawable drawable) {\n\t\t\t\tImageView thumbnail = (ImageView) findViewById(R.id.details_image_view_thumbnail);\n\t\t\t\tthumbnail.setImageDrawable(drawable);\n\t\t\t}\n\t\t}.execute();\n\t}", "public void displayImage(final ImageView imageView, final String url, int reqWidth, int reqHeight) {\n if (mImageViews.get(imageView) != null && mImageViews.get(imageView).equals(url))\r\n return;\r\n\r\n mImageViews.put(imageView, url);\r\n\r\n Bitmap bitmap = mMemoryCache.get(url);\r\n\r\n if (bitmap != null) {\r\n imageView.setImageBitmap(bitmap);\r\n } else {\r\n // if the image have already put to the queue\r\n if (mSubscribers.get(url) != null) {\r\n mSubscribers.get(url).addImageView(imageView);\r\n } else {\r\n imageView.setImageResource(DEFAULT_IMAGE_ID);\r\n BitmapUseCase bitmapUseCase = mBitmapUseCaseFactory.create(url, reqWidth, reqHeight);\r\n\r\n BitmapSubscriber subscriber = new BitmapSubscriber(imageView, url, bitmapUseCase);\r\n\r\n bitmapUseCase.execute(subscriber);\r\n mSubscribers.put(url, subscriber);\r\n mUseCases.add(bitmapUseCase);\r\n }\r\n\r\n }\r\n\r\n\r\n }", "void downloadImage(String imageURL, ImageView imageView);", "private void showImage(String thumbnailURL) {\n if ( ! TextUtils.isEmpty(thumbnailURL)) {\n Picasso.with(getContext())\n .load(thumbnailURL)\n .placeholder(R.drawable.ic_image)\n .error(R.drawable.ic_broken_image)\n .into(mStepThumbnailImageView);\n }\n }", "@BindingAdapter({ \"productimageurl\" })\n public static void loadImage(ImageView imageView, String imageURL) {\n Glide.with(imageView.getContext())\n .load(imageURL)\n .placeholder(R.drawable.bisleri_bottle_img)\n .into(imageView);\n }", "@BindingAdapter(\"bind:imageUrl\")\n public static void setImageUrl(ImageView imageView, String url) {\n Context context = imageView.getContext();\n Glide.with( context ).load( url ).into( imageView );\n }", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n int poster_path_index = cursor.getColumnIndex(MovieContract.MovieDetailsEntry.COLUMN_POSTER_PATH);\n String poster_path = cursor.getString(poster_path_index);\n String baseURL = \"http://image.tmdb.org/t/p/w185\" + poster_path;\n ImageView imageView = (ImageView) view.findViewById(R.id.imageView);\n\n\n if (baseURL.contains(\"null\")) {\n Picasso.with(context).load(R.drawable.poster_not_available)\n .resize(185, 200)\n .into(imageView);\n\n } else {\n\n if(isNetworkAvailable()) {\n Picasso.with(context).load(baseURL).into(imageView);\n// Picasso.with(context).load(\"http://i.imgur.com/DvpvklR.png\").into(imageView\n }else{\n Picasso.with(context)\n .load(baseURL)\n .networkPolicy(NetworkPolicy.OFFLINE)\n .placeholder(R.drawable.error_loading)\n .into(imageView);\n\n }\n }\n }", "@BindingAdapter({\"bind:urlToImage\", \"bind:articleUrl\"})\n public static void loadImage(ImageView imageView, String url, String articleUrl) {\n Context context = imageView.getContext();\n if (url == null) {\n String iconUrl = \"https://besticon-demo.herokuapp.com/icon?url=%s&size=80..120..200\";\n url = String.format(iconUrl, Uri.parse(articleUrl).getAuthority());\n }\n GlideApp.with(imageView)\n .load(url)\n .apply(NewsGlideModule.roundedCornerImage(new RequestOptions(), imageView.getContext(), 0))\n .placeholder(context.getResources().getDrawable(R.color.cardBackground))\n .into(imageView);\n }", "public void displayImage(ImageView imageView, Bitmap loadingImage, ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, null); \n }", "public void displayImage(ImageView imageView, Drawable loadingImage,\n ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, null);\n }", "public void drawImage() {\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n imageView.setVisibility(View.VISIBLE);\n Glide.with(MainActivity.this).load(iURI).fitCenter().into(imageView);\n }", "public static void getImageFromUrl(String url, final ImageView imageView,\r\n\t\t\tContext contexte) {\r\n\r\n\t\tVolleySingleton volleyInstance = VolleySingleton.getInstance(contexte);\r\n\t\tImageLoader imageLoader = volleyInstance.getImageLoader();\r\n\t\t\r\n\t\timageLoader.get(url, new ImageListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorResponse(VolleyError error) {\r\n\t\t\t\timageView.setImageResource(R.drawable.ic_launcher);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onResponse(ImageContainer response, boolean arg1) {\r\n\r\n\t\t\t\tLog.i(\"Api\",\r\n\t\t\t\t\t\t\"Get image url reponse :\" + response.getRequestUrl());\r\n\t\t\t\tif (response.getBitmap() != null) {\r\n\t\t\t\t\timageView.setImageBitmap(response.getBitmap());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public static void loadImageLoader(DisplayImageOptions options, String url, final ImageView imageView) {\n ImageLoader.getInstance().displayImage(url, imageView, options, new SimpleImageLoadingListener() {\n final List<String> displayedImages = Collections.synchronizedList(new LinkedList<String>());\n\n @Override\n public void onLoadingStarted(String imageUri, View view) {\n //spinner.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onLoadingFailed(String imageUri, View view, FailReason failReason) {\n String message = null;\n switch (failReason.getType()) {\n case IO_ERROR:\n message = \"Check internet\";\n break;\n case DECODING_ERROR:\n message = \"Image can't be decoded\";\n break;\n case NETWORK_DENIED:\n message = \"Downloads are denied\";\n break;\n case OUT_OF_MEMORY:\n message = \"Out Of Memory error\";\n break;\n case UNKNOWN:\n message = \"Unknown error\";\n break;\n }\n Toast.makeText(view.getContext(), message, Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n if (loadedImage != null) {\n ImageView imageView = (ImageView) view;\n boolean firstDisplay = !displayedImages.contains(imageUri);\n if (firstDisplay) {\n FadeInBitmapDisplayer.animate(imageView, 300);\n displayedImages.add(imageUri);\n }\n }\n imageView.setImageBitmap(loadedImage);\n }\n });\n }", "@Override\n\t\t\t\t\tpublic void imageLoaded(Drawable imageDrawable,\n\t\t\t\t\t\t\tString imageUrl) {\n\t\t\t\t\t\tBabyImage.setImageDrawable(imageDrawable);\n\t\t\t\t\t}", "@BindingAdapter({\"bind:url\", \"bind:articleUrl\"})\n public static void loadThumbnailImage(ImageView imageView, String url, String articleUrl) {\n Context context = imageView.getContext();\n if (url == null) {\n String iconUrl = \"https://besticon-demo.herokuapp.com/icon?url=%s&size=80..120..200\";\n url = String.format(iconUrl, Uri.parse(articleUrl).getAuthority());\n }\n GlideApp.with(imageView)\n .load(url)\n .apply(NewsGlideModule.roundedCornerImage(new RequestOptions(), imageView.getContext(), 4))\n .placeholder(context.getResources().getDrawable(R.color.cardBackground))\n .into(imageView);\n }", "private static void setPicasso(@NonNull Context context, RemoteViews views, int viewId, @NonNull String imageUrl) {\n\n try {\n //java.lang.IllegalArgumentException: Path must not be empty\n if (imageUrl.length() > 0) {\n Bitmap logoBitmap = Picasso.with(context).load(Utils.builtURI(imageUrl)).get();\n views.setImageViewBitmap(viewId, logoBitmap);\n } else {\n views.setImageViewResource(viewId, R.drawable.ic_launcher);\n }\n\n } catch (IOException | IllegalArgumentException e) {\n views.setImageViewResource(viewId, R.drawable.ic_launcher);\n e.printStackTrace();\n }\n\n }", "public void setImageUrl(String url){\n\n Glide.with(getContext()).load(url)\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(ivImg);\n }", "public static void displayRoundImageFromUrl(final Context context, final String url, final ImageView imageView) {\n RequestOptions myOptions = new RequestOptions()\n .centerCrop()\n .dontAnimate();\n\n Glide.with(context)\n .asBitmap()\n .apply(myOptions)\n .load(url)\n .into(new BitmapImageViewTarget(imageView) {\n @Override\n protected void setResource(Bitmap resource) {\n RoundedBitmapDrawable circularBitmapDrawable =\n RoundedBitmapDrawableFactory.create(context.getResources(), resource);\n circularBitmapDrawable.setCircular(true);\n imageView.setImageDrawable(circularBitmapDrawable);\n }\n });\n }", "@Override\r\n\t\t\tpublic void onLoaded(ImageView imageView, Bitmap loadedDrawable, String url, boolean loadedFromCache) {\n\r\n\t\t\t\tif (loadedDrawable == null) // 아이콘을 로드하지 못한 경우\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\timageView.setImageBitmap(loadedDrawable);\r\n\t\t\t}", "public static void loadImage(Context context, String url, int defImageId, ImageView imageView, Callback callback) {\n if (isNullOrEmpty(url)) {\n if (defImageId != 0) {\n imageView.setImageResource(defImageId);\n }\n } else {\n RequestCreator requestCreator = Picasso.with(context).load(url);\n if (defImageId != 0) {\n requestCreator = requestCreator.placeholder(defImageId).error(defImageId);\n }\n requestCreator.into(imageView, callback);\n }\n }", "@Override\n public void displayImage(String url, String mimeType, String title, String description,\n String iconSrc, final LaunchListener listener) {\n setMediaSource(new MediaInfo.Builder(url, mimeType)\n .setTitle(title)\n .setDescription(description)\n .setIcon(iconSrc)\n .build(), listener);\n }", "public void displayImage(ImageView imageView, Bitmap loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator) {\n displayImage(imageView, new BitmapDrawable(mContext.getResources(), loadingImage), width, height, imageGenerator, null); \n }", "@Override\n public void loadFullScreenImage(ImageView iv, String imageUrl, int width, LinearLayout bgLinearLayout) {\n if (!TextUtils.isEmpty(imageUrl)) {\n Picasso.with(iv.getContext())\n .load(imageUrl)\n .resize(width, 0)\n .into(iv);\n } else {\n iv.setImageDrawable(null);\n }\n }", "public void displayImage(ImageView imageView, Drawable loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImage, width, height, imageGenerator, null);\n }", "public void setRemoteImage(ImageView imageView, String url, int position) {\r\n\t\tif(imageView == null) {\r\n\t\t\tLog.w(TAG, \"setRemoteImage() imageView == null.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\timageView.setTag(url);\r\n\t\tif(url == null || url.equals(\"\")) {\r\n\t\t\tLog.w(TAG, \"setRemoteImage() url == null or url is empty.\");\r\n\t\t\timageView.setImageBitmap(getLoadingImage());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tBitmap bitmap = mImageCacheHelper.getImage(url);\r\n\t\tif (bitmap != null) {\r\n\t\t\tLog.d(TAG, \"setRemoteImage() found image from cache.\");\r\n\t\t\timageView.setImageBitmap(bitmap);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\timageView.setImageBitmap(getLoadingImage());\r\n\t\tif (isFling()) {\r\n\t\t\t// No need to load image when lazy load is set true and the ListView is fling(not touch scroll).\r\n\t\t\tLog.v(TAG, \"AbsListView is fling, no need to load remote image.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// bitmap is null, that means never download or downloading or bitmap has been GC(no local copy) or download failed.\r\n\t\tDownloadTaskStatus status = mTaskStatus.get(url);\r\n\t\tboolean needNewTask = false;\r\n\t\tif(status != null) {\r\n\t\t\tif(status == DownloadTaskStatus.PENDING || status == DownloadTaskStatus.RUNNING) {\r\n\t\t\t\t// downloading, not need to run another task to download the same image.\r\n\t\t\t\tLog.v(TAG, \"Position \" + position + \" is downloading. No need to load another one.\");\r\n\t\t\t} else if(status == DownloadTaskStatus.SUCCESS) {\r\n\t\t\t\t// download success but image not found, that means bitmap has been GC(no local copy).\r\n\t\t\t\tLog.w(TAG, \"position \" + position + \" has been GC. Reload it.\");\r\n\t\t\t\tneedNewTask = true;\r\n\t\t\t} else if(status == DownloadTaskStatus.FAILED) {\r\n\t\t\t\t// download failed.\r\n\t\t\t\tif(mReloadIfFailed) {\r\n\t\t\t\t\tLog.w(TAG, \"position \" + position + \" download failed. Reload it.\");\r\n\t\t\t\t\tmTaskStatus.remove(url);\r\n\t\t\t\t\tneedNewTask = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tLog.d(TAG, \"position \" + position + \" download failed. ReloadIfFailed false, no need to reload it.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// never download.\r\n\t\t\tLog.w(TAG, \"position \" + position + \" never download. Load it.\");\r\n\t\t\tneedNewTask = true;\r\n\t\t}\r\n\t\tif(needNewTask) {\r\n\t\t\tLog.d(TAG, \"setRemoteImage() for position \" + position + \" with url \" + url);\r\n\t\t\tnew ImageDownloadTask(mViewGroup, url).execute();\r\n\t\t}\r\n\t}", "public void loadTo(String url, ImageView imageView) {\n relationsMap.put(imageView, url);\n\n // If image already cached just show it\n Bitmap bitmap = memoryCache.getData(url);\n if (bitmap != null) {\n Log.d(\"HIHO\", \"bitmap from memory\");\n imageView.setImageBitmap(bitmap);\n } else {\n loadAndDisplay(url, imageView);\n }\n }", "public static void loadImage(Context context, String url, int defImageId, ImageView imageView) {\n loadImage(context, url, defImageId, imageView, null);\n }", "public void displayImage(ImageView imageView, Drawable loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator, Runnable callback) {\n if (imageView == null) {\n if (callback != null) \n callback.run();\n return;\n }\n \n if (loadingImage != null) {\n// if (imageView.getBackground() == null) {\n// imageView.setBackgroundDrawable(loadingImage);\n// }\n// imageView.setImageDrawable(null);\n \timageView.setImageDrawable(loadingImage);\n }\n \n if (imageGenerator == null || imageGenerator.getTag() == null) {\n if (callback != null) \n callback.run();\n return;\n }\n\n String tag = imageGenerator.getTag();\n imageView.setTag(tag);\n String key = (width != 0 && height != 0) ? tag + width + height : tag;\n Bitmap bitmap = null;\n synchronized (mMemoryCache) {\n bitmap = mMemoryCache.get(key);\n }\n if (bitmap != null) {\n setImageBitmap(imageView, bitmap, false);\n if (callback != null) \n callback.run();\n return;\n }\n \n synchronized (mTaskStack) {\n for (AsyncImageLoadTask asyncImageTask : mTaskStack) {\n if (asyncImageTask != null \n && asyncImageTask.mImageRef != null\n && tag.equals(asyncImageTask.mImageRef.tag)) {\n if (callback != null) \n callback.run();\n return;\n }\n }\n }\n\n ImageRef imageRef = new ImageRef(imageView, tag, width, height,\n imageGenerator, callback);\n AsyncImageLoadTask asyncImageTask = new AsyncImageLoadTask();\n mTaskStack.push(asyncImageTask); \n asyncImageTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, imageRef);\n \n }", "private void displayImage(Uri uri)\t{\n\t\tLog.d(TAG, \"displayImage\");\n\t\tint width = getWindow().getWindowManager().getDefaultDisplay().getWidth();\n\t\tint height = getWindow().getWindowManager().getDefaultDisplay().getHeight();\n\t\tString imageWidth = \"\\\" width=\\\"\" + width;\n\t\tString imageHeight = \"\\\" height=\\\"\" + height;\n\t\t\n\t\tif (width < height) //use width but not height, so set height to null\n\t\t\timageHeight = \"\";\n\t\telse //use height not width, so set width to null\n\t\t\timageWidth = \"\";\n\t\t\t\t\n\t\tString imageUrl = \"file://\" + uri.getPath();\n\t\tLog.d(TAG, \"Loading image...\");\n\t\tmCropView.loadData(\"<html><head>\" +\n\t\t\t\t\"<meta name=\\\"viewport\\\" content=\\\"width=device-width\\\"/>\" +\n\t\t\t\t\t\t\"</head><body><center><img src=\\\"\"+uri.toString() + imageWidth + imageHeight +\n\t\t\t\t\t\t\"\\\"></center></body></html>\",\n\t\t\t\t\t\t\"text/html\", \"UTF-8\");\n\t\tmCropView.getSettings().setBuiltInZoomControls(true);\n\t\tmCropView.setBackgroundColor(0);\n\t\tmCropView.getSettings().setUseWideViewPort(true);\n\t\tmCropView.setInitialScale(1);\n\t\tmCropView.getSettings().setLoadWithOverviewMode(true);\n\t\tLog.d(TAG, imageUrl);\n\t\tLog.d(TAG, uri.toString());\n\t}", "public ImageView genererImage(String urlImage, String nomImage) {\n File imgEmpty = new File(urlImage);\n Image img = new Image(imgEmpty.toURI().toString());\n ImageView imgE = new ImageView(img);\n imgE.setFitHeight(0.155 * GLOBALS.MAINACTIVITY_HEIGHT);\n imgE.setFitWidth(0.095 * GLOBALS.MAINACTIVITY_WIDTH);\n imgE.setId(nomImage);\n imgE.setOnMouseEntered(new ActionImg(imgE, this));\n imgE.setOnMouseClicked(new MouseImg(imgE, this, this.p4));\n return imgE;\n }", "public void displayImage(ImageView imageView, int loadingImageId,\n ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImageId, 0, 0, imageGenerator, null);\n }", "public static void setPreviewImage(final AppCompatActivity context, String url, ImageView imageView, final ProgressView progressView){\n\n //Show loading view.\n progressView.show(context.getSupportFragmentManager(), \"\");\n\n Picasso.with(context).load(url).resize(1600,1200).centerCrop().into(imageView, new Callback() {\n @Override\n public void onSuccess() {\n progressView.dismiss();\n }\n\n @Override\n public void onError() {\n\n }\n });\n\n }", "public ImageLoadTask(String url, ImageView imageView) {\n this.url = url;\n this.imageView = imageView;\n this.finish = false;\n }", "public interface ImageDownloader {\n\n /**\n * Load the image from the URL into the image view resizing it if necessary.\n * @param imageURL Image URL.\n * @param imageView ImageView reference to load the image into.\n */\n void downloadImage(String imageURL, ImageView imageView);\n\n}", "public void setImageUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void loadImage(final String imageURL) {\n //ImageUrl seems to contain a link. Load it in a new thread and change the image when loaded.\n if (imageURL != null) {\n Picasso.get().\n load(imageURL).\n into(mTopImage);\n }\n }", "public void displayImage(ImageView imageView, Drawable loadingImage,\n ImageGenerator<?> imageGenerator, Runnable callback) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, callback);\n }", "public static void setThumbnailImage(final Context context, String url, ImageView imageView){\n\n Picasso.with(context).load(url).placeholder(R.drawable.placeholder_thumbnail).fit().into(imageView);\n\n }", "public void displayImage(ImageView imageView, Bitmap loadingImage, ImageGenerator<?> imageGenerator, Runnable callback) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, callback); \n }", "@Override\r\n\t\t\tpublic void onImageLoadedSuccess(String url, Bitmap bitmap,ZLMovie movie, int imageType, ImageView imgView) {\n\t\t\t\tif(bitmap==null && movie!=null){\r\n\t\t\t\t\tbitmap = BitmapFactory.decodeByteArray(movie.getMovieData(), 0, movie.getMovieData().length);\r\n\t\t\t\t}\r\n\t\t\t\tif(url == PlazaListImageView.this.url){\r\n\t\t\t\t\timgView.setImageBitmap(bitmap);\r\n\t\t\t\t}\r\n\t\t\t}", "public void setImageUrl(String imageUrl) {\n this.imageUrl = imageUrl;\n }", "public synchronized void updateImageView(ImageView imgView, Bitmap img, String url) {\n if(img == null) {\n img = this.noImgBitmap;\n }\n imageCache.put(url, img);\n imgView.setImageBitmap(img);\n }", "public void displayImage(ImageView imageView, int loadingImageId, int width,\n int height, ImageGenerator<?> imageGenerator) {\n Drawable loadingImage = mContext.getResources().getDrawable(loadingImageId);\n displayImage(imageView, loadingImage, width, height, imageGenerator, null);\n \n }", "public void displayImage(ImageView imageView, Bitmap loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator, Runnable callback) {\n displayImage(imageView, new BitmapDrawable(mContext.getResources(), loadingImage), width, height, imageGenerator, callback); \n }", "@Override\n\t\t\tprotected Drawable doInBackground(ImageView... params) {\n\t\t\t\timageview = params[0];\n\t\t\t\tDrawable drawable = null;\n\t\t\t\tFile downloadPath = createDownloadsPath(activity, url.split(\"/\"));\n\t\t\t\tdo {\n\t\t\t\t\tdrawable = Utils.LoadImageFromWebOperations(url,\n\t\t\t\t\t\t\tdownloadPath);\n\t\t\t\t\tattempts--;\n\t\t\t\t} while (attempts > 0 && drawable == null);\n\t\t\t\treturn drawable;\n\t\t\t}", "public void loadImageToImageView(MyViewHolder holder, int position) {\n String imageUrl = listOfArticles.get(position).getImage().getImageUrl();\n if (getBitmapFromMemCache(imageUrl) != null) {\n holder.imageView.setImageBitmap(mLruCache.get(imageUrl));\n }\n }", "@Override\n public void onLoaded(ImageView imageView, Bitmap loadedBitmap, String url, boolean loadedFromCache) {\n }", "private void loadImage(String imagePath) {\n //Loading image from below url into imageView\n imageFile = new File(imagePath);\n Glide.with(getApplicationContext())\n .load(imagePath)\n .transition(DrawableTransitionOptions.withCrossFade(300))\n .into(imageView);\n }", "public void setImageUrl(String imageUrl) {\n this.imageUrl = imageUrl;\n }", "private void setImage(String downloaderUri, String thubo) {\n blogImageView = mView.findViewById(R.id.postView_image_post);\n\n //request optional to assign temporary image appear before while loading the image from db.\n RequestOptions requestOptions = new RequestOptions();\n requestOptions.placeholder(R.drawable.postlist);\n\n //Glide.with(context).applyDefaultRequestOptions(requestOptions).load(thubo).into(blogImageView);\n Glide.with(context).applyDefaultRequestOptions(requestOptions).load(downloaderUri).thumbnail(\n Glide.with(context).load(thubo)\n ).into(blogImageView);\n\n }", "@Override\n public void onError() {\n Picasso.with(getActivity())\n .load(f.getItemImage())\n .error(R.drawable.placeholder)\n .into(foodItemHolder.imageView, new Callback() {\n @Override\n public void onSuccess() {\n Log.d(\"IMAGE LOAD\", \"LOADED FROM INTERNET\");\n }\n\n @Override\n public void onError() {\n Log.v(\"Picasso\",\"Could not fetch image\");\n }\n });\n }", "public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage);", "@Override\r\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n \tLog.v(\"catch\",view+\"\");\r\n \ttry{\r\n if (loadedImage != null && view!=null) { \r\n ImageView imageView = (ImageView) view; \r\n // imageView.setImageBitmap(loadedImage);\r\n // 是否第一次显示 \r\n boolean firstDisplay = !displayedImages.contains(imageUri); \r\n if (firstDisplay) { \r\n // 图片淡入效果 \r\n FadeInBitmapDisplayer.animate(imageView, 800); \r\n displayedImages.add(imageUri); \r\n \r\n/* \t ViewGroup.LayoutParams params = imageView.getLayoutParams(); \r\n \t params.height =loadedImage.getHeight(); \r\n \t ((MarginLayoutParams)params).setMargins(10, 10, 10, 10);\r\n \t imageView.setLayoutParams(params);*/ \r\n } \r\n } \r\n \t}catch(Exception e){\r\n \t\tLog.v(\"catch1\",e.getMessage());\r\n \t}\r\n }", "@Override\n public Bitmap getImage(String url) {\n try {\n if (!taskForUrlAlreadyRunning(url)) {\n imageDownloadTaskMap.put(url, startDownload(url));\n }\n } catch (MalformedURLException e) {\n Log.i(\"ImageDownloadManager\", \"Malformed url\" + url);\n }\n return null;\n }", "protected Bitmap getImage(URL url) {\n\n HttpURLConnection iconConn = null;\n try {\n iconConn = (HttpURLConnection) url.openConnection();\n iconConn.connect();\n int response = iconConn.getResponseCode();\n //if the reponse 200 the successfull\n if (response == 200) {\n return BitmapFactory.decodeStream(iconConn.getInputStream());\n } else {\n return null;\n }\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n } finally {\n if (iconConn != null) {\n iconConn.disconnect();\n }\n }\n }", "public String getImageUrl();", "@Override\n public void run() {\n try {\n if (urlString != null && !urlString.equals(\"\")) {\n\n\n if (urlString.endsWith(\".gif\")) {\n\n\n handler.sendEmptyMessage(SHOW_VIEW_GIF);\n\n } else if (!urlString.endsWith(\".gif\")) {\n bitmapDrawable = null;\n bitmapDrawable = ((BitmapDrawable) loadImageFromUrl(urlString)).getBitmap();\n if (bitmapDrawable != null) {\n handler.sendEmptyMessage(SHOW_VIEW);\n }\n\n\n }\n\n\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void loadCacheImage(Context context, final ImageView imageView, String imageUrl, String tag) {\n Cache cache = MySingleton.getInstance(context).getRequestQueue().getCache();\n Cache.Entry entry = cache.get(imageUrl);\n if (entry != null) {\n try {\n Bitmap bitmap = BitmapFactory.decodeByteArray(entry.data, 0, entry.data.length);\n imageView.setImageBitmap(bitmap);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"ERROR\", e.getMessage());\n }\n } else {\n cache.invalidate(imageUrl, true);\n cache.clear();\n ImageRequest request = new ImageRequest(imageUrl,\n new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n }\n }, 0, 0, null,\n new Response.ErrorListener() {\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n Log.e(\"ERROR VOLLY 1\", error.getMessage() + \"\");\n imageView.setImageResource(R.drawable.ic_check_black_24dp);\n }\n });\n request.setTag(tag);\n MySingleton.getInstance(context).addToRequestQueue(request);\n }\n }", "public void displayImage(ImageView imageView, int loadingImageId,\n ImageGenerator<?> imageGenerator, Runnable callback) {\n displayImage(imageView, loadingImageId, 0, 0, imageGenerator, callback);\n }", "public void ImageCreate(){\n Picasso.get().load(url).into(imageView);\n }", "private Bitmap loadImageFromNetwork(String url) {\n try {\n InputStream is = new DefaultHttpClient().execute(new HttpGet(url))\n .getEntity().getContent();\n return BitmapFactory.decodeStream(is);\n } catch (Exception e) {\n return null;\n }\n }", "@Override\n public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception) {\n final String changedUrl = official.getPhotoURL().replace(\"http:\", \"https:\");\n picasso.load(changedUrl)\n .error(R.drawable.brokenimage)\n .placeholder(R.drawable.placeholder)\n .into(imageView);\n }", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n imageViewUIL.setImageBitmap(loadedImage);\n imageViewUIL.setAnimation(anim);\n }", "@Override\n protected void onPostExecute(Bitmap result) {\n progressBar.setVisibility(View.INVISIBLE);\n if(result!=null)\n imageView.setImageBitmap(result);\n else\n Toast.makeText(DisplayItem.this, \"Image Does Not exist or Network Error\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void imageLoaded(Drawable imageDrawable, String imageUrl) {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tImageView imgViewByTag = (ImageView) (listView.findViewWithTag(imageUrl + index));\n\t\t\t\t\t\t\t\t\t\tif(imgViewByTag != null){\n\t\t\t\t\t\t\t\t\t\t\timgViewByTag.setImageDrawable(imageDrawable);\n\t\t\t\t\t\t\t\t\t\t\tlist.get(index).put(\"drawable\", imageDrawable);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\t\tif (holder1.imageView != null && imageDrawable != null) {\n//\t\t\t\t\t\t\t\t\t\t\tif(holder1.imageView.getTag() != null && holder1.imageView.getTag().equals(urlString))\n//\t\t\t\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\t\t\t list.get(index).put(\"drawable\", imageDrawable);\n//\t\t\t\t\t\t\t\t\t\t\t holder1.imageView.setImageDrawable(imageDrawable);\n//\t\t\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\t\t\t// Log.e(\"在回调里面设置好图片\", \"liushuai\");\n//\t\t\t\t\t\t\t\t\t\t} else {\n//\n//\t\t\t\t\t\t\t\t\t\t\t\tholder1.imageView.setImageResource(R.drawable.sync);\n//\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}", "@Override\n public void loadGif(String url) {\n CircularProgressDrawable progressPlaceHolder = ProgressBarUtil.getCircularProgressPlaceholder(getContext());\n if (!TextUtils.isEmpty(url)) {\n Glide.with(getContext())\n .asGif()\n .load(url)\n .apply(new RequestOptions()\n .placeholder(progressPlaceHolder))\n .into(ivGif);\n }\n }", "@Override\n public void onLoadingComplete(String arg0, View arg1, Bitmap arg2) {\n holder.imageView.setVisibility(View.VISIBLE);\n }", "public void onLoadingFailed(String imageUri, View view);", "public void loadCircleImage(String url,int defaultImageRes, ImageView pic) {\n url = resizeUrl(pic, url);\n if (isLoad(pic,url)) {\n ImageLoader.getInstance().displayImage(url, pic, BitmapOptions.getRCircleOpt(0),getCircleImageLoaderListener(defaultImageRes));\n }\n\n }", "public void displayImage(ImageView imageView, int loadingImageId, int width,\n int height, ImageGenerator<?> imageGenerator, Runnable callback) {\n Drawable loadingImage = mContext.getResources().getDrawable(loadingImageId);\n displayImage(imageView, loadingImage, width, height, imageGenerator, callback);\n \n }", "@Override\n public void onError() {\n Picasso.with(context)\n .load(uri).fit().centerCrop()\n .placeholder(R.drawable.ic_menu_gallery)\n .error(R.drawable.ic_menu_gallery)\n .into(imageView);\n }", "private void showPreview() {\n Glide.with(this)\n .load(imageUri)\n .into(imagePreview);\n imagePreviewLayout.setVisibility(View.VISIBLE);\n imageOriginOptionsLayout.setVisibility(View.GONE);\n }", "void setImageFromURL(String imageURL);", "public static void LoadImageBG(final String url, ImageView iv,\n\t\t\tfinal Activity activity) {\n\t\tSystem.gc();\n\t\tRuntime.getRuntime().gc();\n\t\tnew AsyncTask<ImageView, Integer, Drawable>() {\n\t\t\tImageView imageview;\n\t\t\tint attempts = 3;\n\n\t\t\t@Override\n\t\t\tprotected Drawable doInBackground(ImageView... params) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\timageview = params[0];\n\t\t\t\tDrawable drawable = null;\n\t\t\t\tFile downloadPath = createDownloadsPath(activity, url.split(\"/\"));\n\t\t\t\tdo {\n\t\t\t\t\tdrawable = Utils.LoadImageFromWebOperations(url,\n\t\t\t\t\t\t\tdownloadPath);\n\t\t\t\t\tattempts--;\n\t\t\t\t} while (attempts > 0 && drawable == null);\n\t\t\t\treturn drawable;\n\t\t\t}\n\n\t\t\tprotected void onPostExecute(final Drawable result) {\n\t\t\t\tactivity.runOnUiThread(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif (result!=null){\n\t\t\t\t\t\t\timageview.setImageDrawable(result);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\timageview.setImageResource(R.drawable.icono_ranking);\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}.execute(iv);\n\t}", "@Override\n public void onSuccess(Uri uri){\n Glide.with(getActivity()).load(uri.toString()).placeholder(R.drawable.round_account_circle_24).dontAnimate().into(profilepic);\n }", "@Override\n public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception) {\n final String changedUrl = photoUrl.replace(\"http:\", \"https:\");\n picasso.load(changedUrl)\n .error(R.drawable.brokenimage)\n .placeholder(R.drawable.holder)\n .into(imageTV);\n\n }", "public static void loadImage(String url, final IImageLoadListener listener) {\n if (TextUtils.isEmpty(url)) {\n return;\n }\n\n Glide.with(MainApplication.getAppContext())\n .load(url)\n .into(new SimpleTarget<GlideDrawable>() {\n @Override\n public void onResourceReady(GlideDrawable resource, GlideAnimation<? super GlideDrawable> glideAnimation) {\n if (listener != null) {\n listener.onLoadingComplete(resource);\n }\n }\n });\n }", "public void setImgUrl(String imgUrl) {\r\n this.imgUrl = imgUrl;\r\n }", "public S<T> image(String name){\n\t\tname = name.trim();\n\t\tBoolean b = false;\n\t\t\n\t\tint theid = activity.getResources().getIdentifier(\n\t\t\t\tname, \"drawable\", activity.getApplicationContext().getPackageName());\n\t\t\n\t\ttry {\n\t\t\tif(t instanceof ImageView)\n\t\t\t{\n\t\t\t\tjava.net.URL url = new URL(name);\n\n\t }\n\t\t\t\n\t\t} catch (MalformedURLException e) {\n\t\t\tb = true;\n\t\t}\n\t\t\n\t\tif(b){\n\t\t\t\n\n\t\t\t\n\t\t\tif(t instanceof ImageView){\n\t\t\t\t((ImageView)t).setImageResource(theid);\n\t\t\t}\n\t\t\tif(t instanceof ImageButton){\n\t\t\t\t((ImageButton)t).setImageResource(theid);\n\t\t\t}\n\t\t\tif(t instanceof LinkedList){\n\t\t\t\tLinkedList<View> auxl = (LinkedList<View>)t;\n\t\t\t\tfor (View v : auxl) {\n\t\t\t\t\tt= (T) v;\n\t\t\t\t\timage(name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tt= (T) auxl;\n\t\t\t}\n\t\t}else{\n\t \n\t // Imageview to show\n\t int loader = R.drawable.ic_launcher;\n\t // ImageLoader class instance\n\t ImageLoader imgLoader = new ImageLoader(activity.getApplicationContext(),loader);\n\t // whenever you want to load an image from url\n\t // call DisplayImage function\n\t // url - image url to load\n\t // loader - loader image, will be displayed before getting image\n\t // image - ImageView \n\t imgLoader.DisplayImage(name, loader, (ImageView)t);\n\t\t}\n\t\treturn this;\n\t}", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n Log.d(TAG, \"#onLoadingComplete imageUri = \"+imageUri + \" loadedImage = \"+loadedImage + \" width = \"+loadedImage.getWidth() + \" height = \"+loadedImage.getHeight());\n if (mPhotoView != null)\n mPhotoView.setImageBitmap(loadedImage);\n }", "@Override\n public void onHttpResponseReceived(Bitmap response, Params<Bitmap> params) {\n if(null != mBitmapFetcher && !mBitmapFetcher.isCancelled()){\n final String baseUrl = params.getUrl();\n if (baseUrl.equals(mImageObject.getImageThumbnailUrl())) {\n Utils.updateImageWithDrawable(response, mImageView);\n }\n mBitmapFetcher = null;\n }\n }", "@BindingAdapter(\"thumbnailImageUrl\")\n public static void setImages(ImageView imageView, String thumbnailImageUrl) {\n Context context = imageView.getContext();\n\n Glide.with(context).load(thumbnailImageUrl).error(R.drawable.default_user).into(imageView);\n }", "@Override\n public void onLoadingFailed(String arg0, View arg1, FailReason arg2) {\n holder.imageView.setVisibility(View.GONE);\n }", "@Override\n public void onBindViewHolder(@NonNull ViewHolder holder, int position) {\n Glide.with(mContext)\n .applyDefaultRequestOptions(new RequestOptions()\n .placeholder(R.drawable.r2d2_mid)) // image being used is: https://avatars3.githubusercontent.com/u/6271?s=400&v=4\n .asBitmap()\n .load(mData[position])\n .into(holder.myImageView);\n }", "public void setImgurl(String imgurl) {\n this.imgurl = imgurl;\n }", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n\n MemoryCache cache = ImageLoader.getInstance().getMemoryCache();\n cache.put(imageUri, loadedImage);\n holder.img.setImageBitmap(loadedImage);\n }", "public void loadProfilePicIntoImageView(final String user_id, final ImageView imageView, final PicSize size) {\n\n this.getFbProfilePictureURL(user_id, size, new ParseUtilCallback() {\n @Override\n public void onResult(String result, Exception e) {\n if (e == null) {\n if (result.trim().length() == 0) {\n Picasso.with(SpaceAppsApplication.getAppContext()).load(DEFAULT_AVATAR_URL).into(imageView);\n } else {\n Picasso.with(SpaceAppsApplication.getAppContext()).load(result).into(imageView);\n }\n } else {\n Log.d(TAG, e.getMessage());\n }\n }\n });\n }" ]
[ "0.81717783", "0.77624404", "0.77370375", "0.7663787", "0.7552211", "0.7441421", "0.7385476", "0.73642963", "0.73246545", "0.719264", "0.7055943", "0.7032415", "0.69418985", "0.6932695", "0.6912583", "0.6911668", "0.6837071", "0.6758743", "0.6706726", "0.6697798", "0.6634909", "0.6590221", "0.6584987", "0.6574752", "0.6567842", "0.6545209", "0.65264106", "0.65209186", "0.65120256", "0.649857", "0.6496363", "0.64638406", "0.6438887", "0.6412124", "0.6410148", "0.63465905", "0.6346364", "0.633311", "0.63133585", "0.6302683", "0.629168", "0.62855184", "0.6274731", "0.6268904", "0.62620777", "0.6244667", "0.62172997", "0.6214999", "0.6198101", "0.61884695", "0.6155244", "0.6152207", "0.61463", "0.61456084", "0.613425", "0.6121159", "0.61128235", "0.61021316", "0.60851216", "0.60727614", "0.6047653", "0.6044692", "0.6040409", "0.6033026", "0.60231155", "0.6004158", "0.5993937", "0.5985257", "0.59663165", "0.59659666", "0.5953409", "0.5952659", "0.5945123", "0.59419775", "0.59292716", "0.5920916", "0.5891346", "0.58882", "0.5884127", "0.58827955", "0.5882486", "0.5867491", "0.58467853", "0.58375394", "0.58208543", "0.5816896", "0.5814253", "0.5802966", "0.5771177", "0.5738007", "0.57251304", "0.57180667", "0.5705754", "0.5670042", "0.5669635", "0.5630441", "0.56127626", "0.5606756", "0.5604354", "0.5603638" ]
0.79336315
1
Displays an image from a URL in an ImageView.
public static void displayGifImageFromUrl(Context context, String url, ImageView imageView, Drawable placeholderDrawable, RequestListener listener) { RequestOptions myOptions = new RequestOptions() .dontAnimate() .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .placeholder(placeholderDrawable); if (listener != null) { Glide.with(context) .asGif() .load(url) .apply(myOptions) .listener(listener) .into(imageView); } else { Glide.with(context) .asGif() .load(url) .apply(myOptions) .into(imageView); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void displayImage(String url, ImageView image){\n Ion.with(image)\n .placeholder(R.drawable.fgclogo)\n .error(R.drawable.fgclogo)\n .load(url);\n }", "@Override\n public void loadImage(String url, ImageView imageView) {\n ImageLoader.getInstance().displayImage(url, imageView);\n }", "@Override\n public void loadImage(@Nullable String url) {\n if (view != null) {\n if (url == null) {\n view.exit();\n return;\n }\n view.showImage(url);\n }\n }", "public static void displayImage(String url, ImageView imgView) {\n if (TextUtils.isEmpty(url) || imgView == null) {\n return;\n }\n\n Glide.with(MainApplication.getAppContext())\n .load(url)\n .into(imgView);\n }", "void downloadImage(String imageURL, ImageView imageView);", "public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }", "private void loadAndDisplay(String url, ImageView imageView) {\n LoadDataHolder loadDataHolder = new LoadDataHolder(url, imageView);\n\n // Add placeholder while load image\n imageView.setImageResource(R.color.placeholder);\n\n // Execute loading runnable\n executorService.submit(new ImageLoadRunnable(loadDataHolder));\n }", "@BindingAdapter({\"bind:imageUrlWithPlaceHolder\"})\n public static void loadImage(ImageView view, String imageUrl) {\n Context context = view.getContext();\n Glide.with( context ).load( imageUrl )\n .diskCacheStrategy( DiskCacheStrategy.ALL ).placeholder( R.drawable.ic_launcher_background ).dontAnimate().into( view );\n }", "private void loadImg(final ImageView imageView,String url) {\n OkHttpUtils.get(url)\n .tag(this)\n .execute(new BitmapCallback()\n {\n @Override\n public void onSuccess(Bitmap bitmap, okhttp3.Call call, Response response) {\n imageView.setImageBitmap(bitmap);\n }\n });\n }", "@BindingAdapter(\"bind:imageUrl\")\n public static void setImageUrl(ImageView imageView, String url) {\n Context context = imageView.getContext();\n Glide.with( context ).load( url ).into( imageView );\n }", "public static void getImageFromUrl(String url, final ImageView imageView,\r\n\t\t\tContext contexte) {\r\n\r\n\t\tVolleySingleton volleyInstance = VolleySingleton.getInstance(contexte);\r\n\t\tImageLoader imageLoader = volleyInstance.getImageLoader();\r\n\t\t\r\n\t\timageLoader.get(url, new ImageListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorResponse(VolleyError error) {\r\n\t\t\t\timageView.setImageResource(R.drawable.ic_launcher);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onResponse(ImageContainer response, boolean arg1) {\r\n\r\n\t\t\t\tLog.i(\"Api\",\r\n\t\t\t\t\t\t\"Get image url reponse :\" + response.getRequestUrl());\r\n\t\t\t\tif (response.getBitmap() != null) {\r\n\t\t\t\t\timageView.setImageBitmap(response.getBitmap());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void loadImage(final String url) {\n\t\tnew AsyncTask<Void, Void, Drawable>() {\n\t\t\t@Override\n\t\t\tprotected Drawable doInBackground(Void... none) {\n\t\t\t\treturn NetHelper.getDrawableFromUrl(url);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onPostExecute(Drawable drawable) {\n\t\t\t\tImageView thumbnail = (ImageView) findViewById(R.id.details_image_view_thumbnail);\n\t\t\t\tthumbnail.setImageDrawable(drawable);\n\t\t\t}\n\t\t}.execute();\n\t}", "@BindingAdapter({ \"productimageurl\" })\n public static void loadImage(ImageView imageView, String imageURL) {\n Glide.with(imageView.getContext())\n .load(imageURL)\n .placeholder(R.drawable.bisleri_bottle_img)\n .into(imageView);\n }", "public void displayImage(final ImageView imageView, final String url, int reqWidth, int reqHeight) {\n if (mImageViews.get(imageView) != null && mImageViews.get(imageView).equals(url))\r\n return;\r\n\r\n mImageViews.put(imageView, url);\r\n\r\n Bitmap bitmap = mMemoryCache.get(url);\r\n\r\n if (bitmap != null) {\r\n imageView.setImageBitmap(bitmap);\r\n } else {\r\n // if the image have already put to the queue\r\n if (mSubscribers.get(url) != null) {\r\n mSubscribers.get(url).addImageView(imageView);\r\n } else {\r\n imageView.setImageResource(DEFAULT_IMAGE_ID);\r\n BitmapUseCase bitmapUseCase = mBitmapUseCaseFactory.create(url, reqWidth, reqHeight);\r\n\r\n BitmapSubscriber subscriber = new BitmapSubscriber(imageView, url, bitmapUseCase);\r\n\r\n bitmapUseCase.execute(subscriber);\r\n mSubscribers.put(url, subscriber);\r\n mUseCases.add(bitmapUseCase);\r\n }\r\n\r\n }\r\n\r\n\r\n }", "public void drawImage() {\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n imageView.setVisibility(View.VISIBLE);\n Glide.with(MainActivity.this).load(iURI).fitCenter().into(imageView);\n }", "private void displayImage(Uri uri)\t{\n\t\tLog.d(TAG, \"displayImage\");\n\t\tint width = getWindow().getWindowManager().getDefaultDisplay().getWidth();\n\t\tint height = getWindow().getWindowManager().getDefaultDisplay().getHeight();\n\t\tString imageWidth = \"\\\" width=\\\"\" + width;\n\t\tString imageHeight = \"\\\" height=\\\"\" + height;\n\t\t\n\t\tif (width < height) //use width but not height, so set height to null\n\t\t\timageHeight = \"\";\n\t\telse //use height not width, so set width to null\n\t\t\timageWidth = \"\";\n\t\t\t\t\n\t\tString imageUrl = \"file://\" + uri.getPath();\n\t\tLog.d(TAG, \"Loading image...\");\n\t\tmCropView.loadData(\"<html><head>\" +\n\t\t\t\t\"<meta name=\\\"viewport\\\" content=\\\"width=device-width\\\"/>\" +\n\t\t\t\t\t\t\"</head><body><center><img src=\\\"\"+uri.toString() + imageWidth + imageHeight +\n\t\t\t\t\t\t\"\\\"></center></body></html>\",\n\t\t\t\t\t\t\"text/html\", \"UTF-8\");\n\t\tmCropView.getSettings().setBuiltInZoomControls(true);\n\t\tmCropView.setBackgroundColor(0);\n\t\tmCropView.getSettings().setUseWideViewPort(true);\n\t\tmCropView.setInitialScale(1);\n\t\tmCropView.getSettings().setLoadWithOverviewMode(true);\n\t\tLog.d(TAG, imageUrl);\n\t\tLog.d(TAG, uri.toString());\n\t}", "public void loadTo(String url, ImageView imageView) {\n relationsMap.put(imageView, url);\n\n // If image already cached just show it\n Bitmap bitmap = memoryCache.getData(url);\n if (bitmap != null) {\n Log.d(\"HIHO\", \"bitmap from memory\");\n imageView.setImageBitmap(bitmap);\n } else {\n loadAndDisplay(url, imageView);\n }\n }", "public static void displayImageFromUrlWithPlaceHolder(final Context context, final String url,\n final ImageView imageView,\n int placeholderResId) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n .placeholder(placeholderResId);\n\n Glide.with(context)\n .load(url)\n .apply(myOptions)\n .into(imageView);\n }", "@BindingAdapter({\"bind:urlToImage\", \"bind:articleUrl\"})\n public static void loadImage(ImageView imageView, String url, String articleUrl) {\n Context context = imageView.getContext();\n if (url == null) {\n String iconUrl = \"https://besticon-demo.herokuapp.com/icon?url=%s&size=80..120..200\";\n url = String.format(iconUrl, Uri.parse(articleUrl).getAuthority());\n }\n GlideApp.with(imageView)\n .load(url)\n .apply(NewsGlideModule.roundedCornerImage(new RequestOptions(), imageView.getContext(), 0))\n .placeholder(context.getResources().getDrawable(R.color.cardBackground))\n .into(imageView);\n }", "public static void displayImageFromUrl(final Context context, final String url,\n final ImageView imageView, Drawable placeholderDrawable, RequestListener listener) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n .placeholder(placeholderDrawable);\n\n if (listener != null) {\n Glide.with(context)\n .load(url)\n .apply(myOptions)\n .listener(listener)\n .into(imageView);\n } else {\n Glide.with(context)\n .load(url)\n .apply(myOptions)\n .listener(listener)\n .into(imageView);\n }\n }", "@BindingAdapter({\"bind:url\", \"bind:articleUrl\"})\n public static void loadThumbnailImage(ImageView imageView, String url, String articleUrl) {\n Context context = imageView.getContext();\n if (url == null) {\n String iconUrl = \"https://besticon-demo.herokuapp.com/icon?url=%s&size=80..120..200\";\n url = String.format(iconUrl, Uri.parse(articleUrl).getAuthority());\n }\n GlideApp.with(imageView)\n .load(url)\n .apply(NewsGlideModule.roundedCornerImage(new RequestOptions(), imageView.getContext(), 4))\n .placeholder(context.getResources().getDrawable(R.color.cardBackground))\n .into(imageView);\n }", "public static void displayRoundImageFromUrl(final Context context, final String url, final ImageView imageView) {\n RequestOptions myOptions = new RequestOptions()\n .centerCrop()\n .dontAnimate();\n\n Glide.with(context)\n .asBitmap()\n .apply(myOptions)\n .load(url)\n .into(new BitmapImageViewTarget(imageView) {\n @Override\n protected void setResource(Bitmap resource) {\n RoundedBitmapDrawable circularBitmapDrawable =\n RoundedBitmapDrawableFactory.create(context.getResources(), resource);\n circularBitmapDrawable.setCircular(true);\n imageView.setImageDrawable(circularBitmapDrawable);\n }\n });\n }", "public void loadImage(String url, ImageView imageView) {\n Bitmap bitmap = null;\n if (mImageCache != null) {\n bitmap = mImageCache.get(url);\n }\n if (bitmap != null) {\n imageView.setImageBitmap(bitmap);\n return;\n } else {\n if (LoadImageUrlTask.cancelPotentialDownload(url, imageView)) {\n LoadImageUrlTask task = new LoadImageUrlTask(imageView, mImageCache);\n final DownLoadedDrawable downLoadedDrawable = new DownLoadedDrawable(mContext.getResources(),\n ImageUtils.decodeSampledBitmapFromResource(mContext.getResources(), loadingBgResId), task);\n imageView.setImageDrawable(downLoadedDrawable);\n task.execute(url);\n }\n }\n }", "@Override\n public void displayImage(String url, String mimeType, String title, String description,\n String iconSrc, final LaunchListener listener) {\n setMediaSource(new MediaInfo.Builder(url, mimeType)\n .setTitle(title)\n .setDescription(description)\n .setIcon(iconSrc)\n .build(), listener);\n }", "public ImageLoadTask(String url, ImageView imageView) {\n this.url = url;\n this.imageView = imageView;\n this.finish = false;\n }", "private void showView() {\n\t\tfinal ImageView image = (ImageView) findViewById(R.id.image); \n\t\t//screen.addView(image);\n\t\t//image.setImageResource(images[0]);\n\n\t\tString fileName = getFilesDir().getPath() + \"/\" + FILE_NAME;\n\t\t//System.out.println(fileName);\n\t\tBitmap bm = BitmapFactory.decodeFile(fileName); \n\t\t\n\t\timage.setImageBitmap(bm); \n\t\t\n\t\t//System.out.println(\"show done!\\n\");\t\t\n\t\t\n\t}", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n int poster_path_index = cursor.getColumnIndex(MovieContract.MovieDetailsEntry.COLUMN_POSTER_PATH);\n String poster_path = cursor.getString(poster_path_index);\n String baseURL = \"http://image.tmdb.org/t/p/w185\" + poster_path;\n ImageView imageView = (ImageView) view.findViewById(R.id.imageView);\n\n\n if (baseURL.contains(\"null\")) {\n Picasso.with(context).load(R.drawable.poster_not_available)\n .resize(185, 200)\n .into(imageView);\n\n } else {\n\n if(isNetworkAvailable()) {\n Picasso.with(context).load(baseURL).into(imageView);\n// Picasso.with(context).load(\"http://i.imgur.com/DvpvklR.png\").into(imageView\n }else{\n Picasso.with(context)\n .load(baseURL)\n .networkPolicy(NetworkPolicy.OFFLINE)\n .placeholder(R.drawable.error_loading)\n .into(imageView);\n\n }\n }\n }", "public static void setPreviewImage(final AppCompatActivity context, String url, ImageView imageView, final ProgressView progressView){\n\n //Show loading view.\n progressView.show(context.getSupportFragmentManager(), \"\");\n\n Picasso.with(context).load(url).resize(1600,1200).centerCrop().into(imageView, new Callback() {\n @Override\n public void onSuccess() {\n progressView.dismiss();\n }\n\n @Override\n public void onError() {\n\n }\n });\n\n }", "public void setImageUrl(String url){\n\n Glide.with(getContext()).load(url)\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(ivImg);\n }", "public static void loadImageLoader(DisplayImageOptions options, String url, final ImageView imageView) {\n ImageLoader.getInstance().displayImage(url, imageView, options, new SimpleImageLoadingListener() {\n final List<String> displayedImages = Collections.synchronizedList(new LinkedList<String>());\n\n @Override\n public void onLoadingStarted(String imageUri, View view) {\n //spinner.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onLoadingFailed(String imageUri, View view, FailReason failReason) {\n String message = null;\n switch (failReason.getType()) {\n case IO_ERROR:\n message = \"Check internet\";\n break;\n case DECODING_ERROR:\n message = \"Image can't be decoded\";\n break;\n case NETWORK_DENIED:\n message = \"Downloads are denied\";\n break;\n case OUT_OF_MEMORY:\n message = \"Out Of Memory error\";\n break;\n case UNKNOWN:\n message = \"Unknown error\";\n break;\n }\n Toast.makeText(view.getContext(), message, Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n if (loadedImage != null) {\n ImageView imageView = (ImageView) view;\n boolean firstDisplay = !displayedImages.contains(imageUri);\n if (firstDisplay) {\n FadeInBitmapDisplayer.animate(imageView, 300);\n displayedImages.add(imageUri);\n }\n }\n imageView.setImageBitmap(loadedImage);\n }\n });\n }", "void mo36482a(ImageView imageView, Uri uri);", "public void ImageCreate(){\n Picasso.get().load(url).into(imageView);\n }", "void setImageFromURL(String imageURL);", "private static void setPicasso(@NonNull Context context, RemoteViews views, int viewId, @NonNull String imageUrl) {\n\n try {\n //java.lang.IllegalArgumentException: Path must not be empty\n if (imageUrl.length() > 0) {\n Bitmap logoBitmap = Picasso.with(context).load(Utils.builtURI(imageUrl)).get();\n views.setImageViewBitmap(viewId, logoBitmap);\n } else {\n views.setImageViewResource(viewId, R.drawable.ic_launcher);\n }\n\n } catch (IOException | IllegalArgumentException e) {\n views.setImageViewResource(viewId, R.drawable.ic_launcher);\n e.printStackTrace();\n }\n\n }", "public ImageView genererImage(String urlImage, String nomImage) {\n File imgEmpty = new File(urlImage);\n Image img = new Image(imgEmpty.toURI().toString());\n ImageView imgE = new ImageView(img);\n imgE.setFitHeight(0.155 * GLOBALS.MAINACTIVITY_HEIGHT);\n imgE.setFitWidth(0.095 * GLOBALS.MAINACTIVITY_WIDTH);\n imgE.setId(nomImage);\n imgE.setOnMouseEntered(new ActionImg(imgE, this));\n imgE.setOnMouseClicked(new MouseImg(imgE, this, this.p4));\n return imgE;\n }", "public interface ImageDownloader {\n\n /**\n * Load the image from the URL into the image view resizing it if necessary.\n * @param imageURL Image URL.\n * @param imageView ImageView reference to load the image into.\n */\n void downloadImage(String imageURL, ImageView imageView);\n\n}", "public void onClick(View view) {\n Picasso.get().load(\"http://image.tmdb.org/t/p/w185/\").into(imageView);\n }", "private void showBitmap() {\n Bitmap bitmap = BitmapFactory.decodeByteArray(mImgData, 0, mImgData.length);\n mImgView.setImageBitmap(bitmap);\n }", "public static void displayGifImageFromUrl(Context context, String url, ImageView imageView, String thumbnailUrl, Drawable placeholderDrawable) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n .placeholder(placeholderDrawable);\n\n if (thumbnailUrl != null) {\n Glide.with(context)\n .asGif()\n .load(url)\n .apply(myOptions)\n .thumbnail(Glide.with(context).asGif().load(thumbnailUrl))\n .into(imageView);\n } else {\n Glide.with(context)\n .asGif()\n .load(url)\n .apply(myOptions)\n .into(imageView);\n }\n }", "@Override\n public void onClick(View v) {\n showImageView.setVisibility(View.VISIBLE);\n String imgUrl = \"http://210.42.121.241/servlet/GenImg\";\n new DownImgAsyncTask().execute(imgUrl);\n }", "public void setImageUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void displayImage(ImageView imageView, Bitmap loadingImage, ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, null); \n }", "public static void openImageInBrowser(Context context, String url){\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n context.startActivity(browserIntent);\n }", "public synchronized void updateImageView(ImageView imgView, Bitmap img, String url) {\n if(img == null) {\n img = this.noImgBitmap;\n }\n imageCache.put(url, img);\n imgView.setImageBitmap(img);\n }", "public S<T> image(String name){\n\t\tname = name.trim();\n\t\tBoolean b = false;\n\t\t\n\t\tint theid = activity.getResources().getIdentifier(\n\t\t\t\tname, \"drawable\", activity.getApplicationContext().getPackageName());\n\t\t\n\t\ttry {\n\t\t\tif(t instanceof ImageView)\n\t\t\t{\n\t\t\t\tjava.net.URL url = new URL(name);\n\n\t }\n\t\t\t\n\t\t} catch (MalformedURLException e) {\n\t\t\tb = true;\n\t\t}\n\t\t\n\t\tif(b){\n\t\t\t\n\n\t\t\t\n\t\t\tif(t instanceof ImageView){\n\t\t\t\t((ImageView)t).setImageResource(theid);\n\t\t\t}\n\t\t\tif(t instanceof ImageButton){\n\t\t\t\t((ImageButton)t).setImageResource(theid);\n\t\t\t}\n\t\t\tif(t instanceof LinkedList){\n\t\t\t\tLinkedList<View> auxl = (LinkedList<View>)t;\n\t\t\t\tfor (View v : auxl) {\n\t\t\t\t\tt= (T) v;\n\t\t\t\t\timage(name);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tt= (T) auxl;\n\t\t\t}\n\t\t}else{\n\t \n\t // Imageview to show\n\t int loader = R.drawable.ic_launcher;\n\t // ImageLoader class instance\n\t ImageLoader imgLoader = new ImageLoader(activity.getApplicationContext(),loader);\n\t // whenever you want to load an image from url\n\t // call DisplayImage function\n\t // url - image url to load\n\t // loader - loader image, will be displayed before getting image\n\t // image - ImageView \n\t imgLoader.DisplayImage(name, loader, (ImageView)t);\n\t\t}\n\t\treturn this;\n\t}", "private void showImage(String thumbnailURL) {\n if ( ! TextUtils.isEmpty(thumbnailURL)) {\n Picasso.with(getContext())\n .load(thumbnailURL)\n .placeholder(R.drawable.ic_image)\n .error(R.drawable.ic_broken_image)\n .into(mStepThumbnailImageView);\n }\n }", "public void displayImage(ImageView imageView, Bitmap loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator) {\n displayImage(imageView, new BitmapDrawable(mContext.getResources(), loadingImage), width, height, imageGenerator, null); \n }", "public static void setThumbnailImage(final Context context, String url, ImageView imageView){\n\n Picasso.with(context).load(url).placeholder(R.drawable.placeholder_thumbnail).fit().into(imageView);\n\n }", "public void setRemoteImage(ImageView imageView, String url, int position) {\r\n\t\tif(imageView == null) {\r\n\t\t\tLog.w(TAG, \"setRemoteImage() imageView == null.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\timageView.setTag(url);\r\n\t\tif(url == null || url.equals(\"\")) {\r\n\t\t\tLog.w(TAG, \"setRemoteImage() url == null or url is empty.\");\r\n\t\t\timageView.setImageBitmap(getLoadingImage());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tBitmap bitmap = mImageCacheHelper.getImage(url);\r\n\t\tif (bitmap != null) {\r\n\t\t\tLog.d(TAG, \"setRemoteImage() found image from cache.\");\r\n\t\t\timageView.setImageBitmap(bitmap);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\timageView.setImageBitmap(getLoadingImage());\r\n\t\tif (isFling()) {\r\n\t\t\t// No need to load image when lazy load is set true and the ListView is fling(not touch scroll).\r\n\t\t\tLog.v(TAG, \"AbsListView is fling, no need to load remote image.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// bitmap is null, that means never download or downloading or bitmap has been GC(no local copy) or download failed.\r\n\t\tDownloadTaskStatus status = mTaskStatus.get(url);\r\n\t\tboolean needNewTask = false;\r\n\t\tif(status != null) {\r\n\t\t\tif(status == DownloadTaskStatus.PENDING || status == DownloadTaskStatus.RUNNING) {\r\n\t\t\t\t// downloading, not need to run another task to download the same image.\r\n\t\t\t\tLog.v(TAG, \"Position \" + position + \" is downloading. No need to load another one.\");\r\n\t\t\t} else if(status == DownloadTaskStatus.SUCCESS) {\r\n\t\t\t\t// download success but image not found, that means bitmap has been GC(no local copy).\r\n\t\t\t\tLog.w(TAG, \"position \" + position + \" has been GC. Reload it.\");\r\n\t\t\t\tneedNewTask = true;\r\n\t\t\t} else if(status == DownloadTaskStatus.FAILED) {\r\n\t\t\t\t// download failed.\r\n\t\t\t\tif(mReloadIfFailed) {\r\n\t\t\t\t\tLog.w(TAG, \"position \" + position + \" download failed. Reload it.\");\r\n\t\t\t\t\tmTaskStatus.remove(url);\r\n\t\t\t\t\tneedNewTask = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tLog.d(TAG, \"position \" + position + \" download failed. ReloadIfFailed false, no need to reload it.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// never download.\r\n\t\t\tLog.w(TAG, \"position \" + position + \" never download. Load it.\");\r\n\t\t\tneedNewTask = true;\r\n\t\t}\r\n\t\tif(needNewTask) {\r\n\t\t\tLog.d(TAG, \"setRemoteImage() for position \" + position + \" with url \" + url);\r\n\t\t\tnew ImageDownloadTask(mViewGroup, url).execute();\r\n\t\t}\r\n\t}", "protected Bitmap getImage(URL url) {\n\n HttpURLConnection iconConn = null;\n try {\n iconConn = (HttpURLConnection) url.openConnection();\n iconConn.connect();\n int response = iconConn.getResponseCode();\n //if the reponse 200 the successfull\n if (response == 200) {\n return BitmapFactory.decodeStream(iconConn.getInputStream());\n } else {\n return null;\n }\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n } finally {\n if (iconConn != null) {\n iconConn.disconnect();\n }\n }\n }", "public String getImageUrl();", "private void loadImage(String imagePath) {\n //Loading image from below url into imageView\n imageFile = new File(imagePath);\n Glide.with(getApplicationContext())\n .load(imagePath)\n .transition(DrawableTransitionOptions.withCrossFade(300))\n .into(imageView);\n }", "public static void menu_viewimageinbrowser(ActionContext actionContext){\n Thing currentThing = actionContext.getObject(\"currentThing\");\n \n String url = XWorkerUtils.getWebUrl() + \"do?sc=xworker.ide.worldexplorer.swt.http.SwtImage\";\n url = url + \"&control=\" + currentThing.getMetadata().getPath();\n \n XWorkerUtils.ideOpenUrl(url); \n }", "public void setImageUrl(String imageUrl) {\n this.imageUrl = imageUrl;\n }", "public void displayImage(ImageView imageView, Drawable loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImage, width, height, imageGenerator, null);\n }", "public static void loadImage(Context context, String url, int defImageId, ImageView imageView) {\n loadImage(context, url, defImageId, imageView, null);\n }", "public void displayImage(ImageView imageView, Drawable loadingImage,\n ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, null);\n }", "private void downloadPoster() {\n\n try {\n // Downloading the image from URL\n URL url = new URL(Constants.MOVIE_MEDIA_URL + cbPosterQuality.getSelectionModel().getSelectedItem().getKey() + movie.getPosterURL());\n Image image = new Image(url.toExternalForm(), true);\n\n // Adding the image to the ImageView\n imgPoster.setImage(image);\n\n // Adding the ImageView to the custom made ImageViewPane\n imageViewPane.setImageView(imgPoster);\n\n // Binding the image download progress to the progress indicator\n imageProgressIndicator.visibleProperty().bind(image.progressProperty().lessThan(1));\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n }", "private void loadImage(Context context,\n String imageUrl,\n ImageView imageView,\n @Nullable Drawable placeholder) {\n if (imageUrl.equals(imageView.getTag())) {\n // We already have the image, no need to load it again.\n return;\n }\n //If we don't clear the tag, Glide will crash as Glide do not want us to have tag on image view\n // Clear the current tag and load the new image, The new tag will be set on success.\n imageView.setTag(null);\n Glide.with(context)\n .load(imageUrl)\n .centerCrop()\n .thumbnail(GlideConfigModule.SIZE_MULTIPLIER)\n .placeholder(placeholder)\n .dontAnimate()\n .listener(new RequestListener<String, GlideDrawable>() {\n @Override\n public boolean onException(Exception e,\n String model,\n Target<GlideDrawable> target,\n boolean isFirstResource) {\n return false;\n }\n\n @Override\n public boolean onResourceReady(GlideDrawable resource,\n String model,\n Target<GlideDrawable> target,\n boolean isFromMemoryCache,\n boolean isFirstResource) {\n // Set the image URL as a tag so we know that the image with this URL has\n // successfully loaded\n imageView.setTag(imageUrl);\n return false;\n }\n })\n .into(imageView);\n }", "@Override\n\t\t\t\t\tpublic void imageLoaded(Drawable imageDrawable,\n\t\t\t\t\t\t\tString imageUrl) {\n\t\t\t\t\t\tBabyImage.setImageDrawable(imageDrawable);\n\t\t\t\t\t}", "@Override\n\t\t\tprotected Drawable doInBackground(ImageView... params) {\n\t\t\t\timageview = params[0];\n\t\t\t\tDrawable drawable = null;\n\t\t\t\tFile downloadPath = createDownloadsPath(activity, url.split(\"/\"));\n\t\t\t\tdo {\n\t\t\t\t\tdrawable = Utils.LoadImageFromWebOperations(url,\n\t\t\t\t\t\t\tdownloadPath);\n\t\t\t\t\tattempts--;\n\t\t\t\t} while (attempts > 0 && drawable == null);\n\t\t\t\treturn drawable;\n\t\t\t}", "@Override\r\n\t\t\tpublic void onImageLoadedSuccess(String url, Bitmap bitmap,ZLMovie movie, int imageType, ImageView imgView) {\n\t\t\t\tif(bitmap==null && movie!=null){\r\n\t\t\t\t\tbitmap = BitmapFactory.decodeByteArray(movie.getMovieData(), 0, movie.getMovieData().length);\r\n\t\t\t\t}\r\n\t\t\t\tif(url == PlazaListImageView.this.url){\r\n\t\t\t\t\timgView.setImageBitmap(bitmap);\r\n\t\t\t\t}\r\n\t\t\t}", "public void Draw() {\n\t\timgIcon = new ImageIcon(imgUrl);\n\t}", "@Override\n public void run() {\n try {\n if (urlString != null && !urlString.equals(\"\")) {\n\n\n if (urlString.endsWith(\".gif\")) {\n\n\n handler.sendEmptyMessage(SHOW_VIEW_GIF);\n\n } else if (!urlString.endsWith(\".gif\")) {\n bitmapDrawable = null;\n bitmapDrawable = ((BitmapDrawable) loadImageFromUrl(urlString)).getBitmap();\n if (bitmapDrawable != null) {\n handler.sendEmptyMessage(SHOW_VIEW);\n }\n\n\n }\n\n\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void loadImage(Context context, String url, int defImageId, ImageView imageView, Callback callback) {\n if (isNullOrEmpty(url)) {\n if (defImageId != 0) {\n imageView.setImageResource(defImageId);\n }\n } else {\n RequestCreator requestCreator = Picasso.with(context).load(url);\n if (defImageId != 0) {\n requestCreator = requestCreator.placeholder(defImageId).error(defImageId);\n }\n requestCreator.into(imageView, callback);\n }\n }", "@Override\n public void onLoaded(ImageView imageView, Bitmap loadedBitmap, String url, boolean loadedFromCache) {\n }", "@Override\r\n\t\t\tpublic void onLoaded(ImageView imageView, Bitmap loadedDrawable, String url, boolean loadedFromCache) {\n\r\n\t\t\t\tif (loadedDrawable == null) // 아이콘을 로드하지 못한 경우\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\timageView.setImageBitmap(loadedDrawable);\r\n\t\t\t}", "@Override\n public void onSuccess(Uri uri) {\n Uri downloadURIofImage = uri;\n\n // Pass the URI and ImageView to Picasso\n Picasso.get().load(downloadURIofImage).into(resultImageView);\n }", "public void displayImage(ImageView imageView, int loadingImageId,\n ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImageId, 0, 0, imageGenerator, null);\n }", "public void setImageUrl(String imageUrl) {\n this.imageUrl = imageUrl;\n }", "public void setImgUrl(String imgUrl) {\r\n this.imgUrl = imgUrl;\r\n }", "public void setImgurl(String imgurl) {\n this.imgurl = imgurl;\n }", "private void showPreview() {\n Glide.with(this)\n .load(imageUri)\n .into(imagePreview);\n imagePreviewLayout.setVisibility(View.VISIBLE);\n imageOriginOptionsLayout.setVisibility(View.GONE);\n }", "public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage);", "@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\twebView.loadUrl(Uri.fromFile(new File(fileImg)).toString());\n\n\t\t\t\t\t\t\t\t\t\t\t}", "private Bitmap loadImageFromNetwork(String url) {\n try {\n InputStream is = new DefaultHttpClient().execute(new HttpGet(url))\n .getEntity().getContent();\n return BitmapFactory.decodeStream(is);\n } catch (Exception e) {\n return null;\n }\n }", "public void displayUrl(String url)\n {\n //Create a new WebView to clear the old data\n createNewWebView();\n\n //Enable JavaScript\n WebSettings webSettings = webView.getSettings();\n webSettings.setJavaScriptEnabled(true);\n\n //Display website to user\n webView.setWebViewClient(new WebViewClient());\n webView.loadUrl(url);\n }", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n imageViewUIL.setImageBitmap(loadedImage);\n imageViewUIL.setAnimation(anim);\n }", "private void setImage(String downloaderUri, String thubo) {\n blogImageView = mView.findViewById(R.id.postView_image_post);\n\n //request optional to assign temporary image appear before while loading the image from db.\n RequestOptions requestOptions = new RequestOptions();\n requestOptions.placeholder(R.drawable.postlist);\n\n //Glide.with(context).applyDefaultRequestOptions(requestOptions).load(thubo).into(blogImageView);\n Glide.with(context).applyDefaultRequestOptions(requestOptions).load(downloaderUri).thumbnail(\n Glide.with(context).load(thubo)\n ).into(blogImageView);\n\n }", "@Override\r\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n \tLog.v(\"catch\",view+\"\");\r\n \ttry{\r\n if (loadedImage != null && view!=null) { \r\n ImageView imageView = (ImageView) view; \r\n // imageView.setImageBitmap(loadedImage);\r\n // 是否第一次显示 \r\n boolean firstDisplay = !displayedImages.contains(imageUri); \r\n if (firstDisplay) { \r\n // 图片淡入效果 \r\n FadeInBitmapDisplayer.animate(imageView, 800); \r\n displayedImages.add(imageUri); \r\n \r\n/* \t ViewGroup.LayoutParams params = imageView.getLayoutParams(); \r\n \t params.height =loadedImage.getHeight(); \r\n \t ((MarginLayoutParams)params).setMargins(10, 10, 10, 10);\r\n \t imageView.setLayoutParams(params);*/ \r\n } \r\n } \r\n \t}catch(Exception e){\r\n \t\tLog.v(\"catch1\",e.getMessage());\r\n \t}\r\n }", "public static void openImage(String photoUrl, Context context, ImageView ivProfileImage) {\n Intent intent = new Intent(context, FullSizeImageActivity.class);\n // Pass data object in the bundle and populate details activity.\n intent.putExtra(\"photoUrl\", photoUrl);\n ActivityOptionsCompat options = ActivityOptionsCompat.\n makeSceneTransitionAnimation((AppCompatActivity) context, (View)ivProfileImage, \"image\");\n context.startActivity(intent, options.toBundle());\n }", "private Bitmap loadImageFromNetwork(String url) {\n Bitmap bm = null;\n try {\n URL urln = new URL(url);\n Log.i(\"load\", url);\n Log.i(\"load\", \"loading Image...\");\n bm = BitmapFactory.decodeStream(urln.openConnection().getInputStream());\n Log.i(\"load\", \"done\");\n } catch (IOException e) {\n Log.e(\"HUE\",\"Error downloading the image from server : \" + e.getMessage().toString());\n } \n return bm;\n }", "public void displayImage(ImageView imageView, Bitmap loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator, Runnable callback) {\n displayImage(imageView, new BitmapDrawable(mContext.getResources(), loadingImage), width, height, imageGenerator, callback); \n }", "Builder addImage(URL value);", "public void displayImage(ImageView imageView, int loadingImageId, int width,\n int height, ImageGenerator<?> imageGenerator) {\n Drawable loadingImage = mContext.getResources().getDrawable(loadingImageId);\n displayImage(imageView, loadingImage, width, height, imageGenerator, null);\n \n }", "public ImageView getImage(String image) {\r\n\r\n Image shippPic = new Image(image);\r\n ImageView shipImage = new ImageView();\r\n shipImage.setImage(shippPic);\r\n shipImage.setFitWidth(blockSize);\r\n shipImage.setFitHeight(blockSize);\r\n return shipImage;\r\n }", "public void getImage(View view)\n {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE);\n\n }", "public void displayImage(ImageView imageView, Drawable loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator, Runnable callback) {\n if (imageView == null) {\n if (callback != null) \n callback.run();\n return;\n }\n \n if (loadingImage != null) {\n// if (imageView.getBackground() == null) {\n// imageView.setBackgroundDrawable(loadingImage);\n// }\n// imageView.setImageDrawable(null);\n \timageView.setImageDrawable(loadingImage);\n }\n \n if (imageGenerator == null || imageGenerator.getTag() == null) {\n if (callback != null) \n callback.run();\n return;\n }\n\n String tag = imageGenerator.getTag();\n imageView.setTag(tag);\n String key = (width != 0 && height != 0) ? tag + width + height : tag;\n Bitmap bitmap = null;\n synchronized (mMemoryCache) {\n bitmap = mMemoryCache.get(key);\n }\n if (bitmap != null) {\n setImageBitmap(imageView, bitmap, false);\n if (callback != null) \n callback.run();\n return;\n }\n \n synchronized (mTaskStack) {\n for (AsyncImageLoadTask asyncImageTask : mTaskStack) {\n if (asyncImageTask != null \n && asyncImageTask.mImageRef != null\n && tag.equals(asyncImageTask.mImageRef.tag)) {\n if (callback != null) \n callback.run();\n return;\n }\n }\n }\n\n ImageRef imageRef = new ImageRef(imageView, tag, width, height,\n imageGenerator, callback);\n AsyncImageLoadTask asyncImageTask = new AsyncImageLoadTask();\n mTaskStack.push(asyncImageTask); \n asyncImageTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, imageRef);\n \n }", "@Override\n\t\t\tprotected void onPostExecute(Drawable result) {\n\t\t\t\turlDrawable.setBounds(0, 0, result.getIntrinsicWidth(), result.getIntrinsicHeight());\n\n\t\t\t\t// change the reference of the current drawable to the result\n\t\t\t\t// from the HTTP call\n\t\t\t\turlDrawable.drawable = result;\n\n\t\t\t\t// redraw the image by invalidating the container\n\t\t\t\tURLImageParser.this.container.invalidate();\n\t\t\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n ImageView image = (ImageView) findViewById(R.id.imageView1);\n \n image.setImageURI((Uri) getIntent().getExtras().get(Intent.EXTRA_STREAM)); \n }", "public void displayImage(ImageView imageView, Bitmap loadingImage, ImageGenerator<?> imageGenerator, Runnable callback) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, callback); \n }", "@Override\n public Bitmap getImage(String url) {\n try {\n if (!taskForUrlAlreadyRunning(url)) {\n imageDownloadTaskMap.put(url, startDownload(url));\n }\n } catch (MalformedURLException e) {\n Log.i(\"ImageDownloadManager\", \"Malformed url\" + url);\n }\n return null;\n }", "@Override\n protected Bitmap doInBackground(String... params) {\n imageUrl = params[0];\n ImageView thumbnail = imageViewReference.get();\n try {\n InputStream is = (InputStream) new URL(imageUrl).getContent();\n Bitmap bitmap = ImageCommons.decodeSampledBitmapFromInputStream(is, thumbnail.getWidth(), thumbnail.getHeight());\n addBitmapToMemoryCache(imageUrl, bitmap);\n return bitmap;\n } catch (IOException e) {\n e.printStackTrace();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n Log.d(\"myLog\", getClass().getSimpleName() + \" Erro ao fazer download de imagem\");\n return ImageCommons.decodeSampledBitmapFromResource(context.getResources(), R.drawable.ic_launcher, 70, 70);\n }", "public static void loadCacheImage(Context context, final ImageView imageView, String imageUrl, String tag) {\n Cache cache = MySingleton.getInstance(context).getRequestQueue().getCache();\n Cache.Entry entry = cache.get(imageUrl);\n if (entry != null) {\n try {\n Bitmap bitmap = BitmapFactory.decodeByteArray(entry.data, 0, entry.data.length);\n imageView.setImageBitmap(bitmap);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"ERROR\", e.getMessage());\n }\n } else {\n cache.invalidate(imageUrl, true);\n cache.clear();\n ImageRequest request = new ImageRequest(imageUrl,\n new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n }\n }, 0, 0, null,\n new Response.ErrorListener() {\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n Log.e(\"ERROR VOLLY 1\", error.getMessage() + \"\");\n imageView.setImageResource(R.drawable.ic_check_black_24dp);\n }\n });\n request.setTag(tag);\n MySingleton.getInstance(context).addToRequestQueue(request);\n }\n }", "Bitmap ObtenerImagen(URL imageUrl){\n HttpURLConnection conn = null;\n Bitmap imagen=null;\n try {\n conn = (HttpURLConnection) imageUrl.openConnection();\n conn.connect();\n imagen = BitmapFactory.decodeStream(conn.getInputStream());\n\n } catch (IOException e) {\n\n e.printStackTrace();\n\n }\n return imagen;\n }", "private Bitmap LoadImage(String URL, BitmapFactory.Options options) {\r\n Bitmap bitmap = null;\r\n InputStream in = null;\r\n try {\r\n in = OpenHttpConnection(URL);\r\n bitmap = BitmapFactory.decodeStream(in, null, options);\r\n in.close();\r\n } catch (IOException e1) {\r\n }\r\n return bitmap;\r\n }", "void mo36483b(int i, ImageView imageView, Uri uri);", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.image, container, false);\n ImageView iv = (ImageView)v.findViewById(R.id.imageView);\n\n inter1 = new InterstitialAd(getActivity());\n inter1.setAdUnitId(getString(R.string.inter_show_image));\n inter1.loadAd(new AdRequest.Builder().build());\n\n inter1.setAdListener(new AdListener(){\n @Override\n public void onAdLoaded() {\n if(inter1.isLoaded())\n {\n inter1.show();\n }\n }\n });\n\n String url = getArguments().getString(\"url\");\n Glide.with(this)\n .load(url)\n .into(iv);\n\n return v;\n }", "@Override\n public void loadImage(String path, ImageView imageView) {\n mInteractor.loadImage(path, imageView);\n }", "public Image getImage(URL paramURL) {\n/* 276 */ return getAppletContext().getImage(paramURL);\n/* */ }" ]
[ "0.80266815", "0.8011256", "0.77943903", "0.775331", "0.75960666", "0.74039835", "0.7314059", "0.71683824", "0.7091811", "0.70894986", "0.70161176", "0.6944191", "0.6897772", "0.68692595", "0.68513626", "0.6836417", "0.6818084", "0.6816043", "0.68157786", "0.67968345", "0.67128676", "0.6709219", "0.66785115", "0.6561294", "0.6550847", "0.65308774", "0.64994967", "0.64574474", "0.6433589", "0.64311713", "0.64126265", "0.6408377", "0.6396768", "0.6384098", "0.6374156", "0.63530225", "0.6351039", "0.62643933", "0.6244404", "0.6231072", "0.6208186", "0.6202116", "0.61966795", "0.61791724", "0.61674565", "0.6167204", "0.6158941", "0.61539567", "0.61419386", "0.61389315", "0.6123306", "0.6095414", "0.60836995", "0.6074962", "0.60527664", "0.6051564", "0.6048841", "0.6045592", "0.6038231", "0.60369384", "0.6019261", "0.60111845", "0.60005885", "0.5988185", "0.59768534", "0.59661967", "0.596014", "0.59586126", "0.5950688", "0.59488547", "0.594731", "0.59348875", "0.59281445", "0.5893975", "0.58817494", "0.5877808", "0.5874569", "0.5874059", "0.58709675", "0.58703697", "0.58631444", "0.58550245", "0.58452123", "0.5818204", "0.5816622", "0.5811639", "0.5807516", "0.580253", "0.5802012", "0.5786335", "0.5785897", "0.5773319", "0.57688326", "0.5762159", "0.5752787", "0.573927", "0.5734303", "0.5733412", "0.573218", "0.57308835" ]
0.6212335
40
Displays an GIF image from a URL in an ImageView.
public static void displayGifImageFromUrl(Context context, String url, ImageView imageView, String thumbnailUrl, Drawable placeholderDrawable) { RequestOptions myOptions = new RequestOptions() .dontAnimate() .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC) .placeholder(placeholderDrawable); if (thumbnailUrl != null) { Glide.with(context) .asGif() .load(url) .apply(myOptions) .thumbnail(Glide.with(context).asGif().load(thumbnailUrl)) .into(imageView); } else { Glide.with(context) .asGif() .load(url) .apply(myOptions) .into(imageView); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void displayGifImageFromUrl(Context context, String url, ImageView imageView, Drawable placeholderDrawable, RequestListener listener) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n .placeholder(placeholderDrawable);\n\n if (listener != null) {\n Glide.with(context)\n .asGif()\n .load(url)\n .apply(myOptions)\n .listener(listener)\n .into(imageView);\n } else {\n Glide.with(context)\n .asGif()\n .load(url)\n .apply(myOptions)\n .into(imageView);\n }\n }", "@Override\n public void loadGif(String url) {\n CircularProgressDrawable progressPlaceHolder = ProgressBarUtil.getCircularProgressPlaceholder(getContext());\n if (!TextUtils.isEmpty(url)) {\n Glide.with(getContext())\n .asGif()\n .load(url)\n .apply(new RequestOptions()\n .placeholder(progressPlaceHolder))\n .into(ivGif);\n }\n }", "private void displayImage(String url, ImageView image){\n Ion.with(image)\n .placeholder(R.drawable.fgclogo)\n .error(R.drawable.fgclogo)\n .load(url);\n }", "@Override\n public void run() {\n try {\n if (urlString != null && !urlString.equals(\"\")) {\n\n\n if (urlString.endsWith(\".gif\")) {\n\n\n handler.sendEmptyMessage(SHOW_VIEW_GIF);\n\n } else if (!urlString.endsWith(\".gif\")) {\n bitmapDrawable = null;\n bitmapDrawable = ((BitmapDrawable) loadImageFromUrl(urlString)).getBitmap();\n if (bitmapDrawable != null) {\n handler.sendEmptyMessage(SHOW_VIEW);\n }\n\n\n }\n\n\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void loadImage(@Nullable String url) {\n if (view != null) {\n if (url == null) {\n view.exit();\n return;\n }\n view.showImage(url);\n }\n }", "@Override\n public void loadImage(String url, ImageView imageView) {\n ImageLoader.getInstance().displayImage(url, imageView);\n }", "public static void displayImage(String url, ImageView imgView) {\n if (TextUtils.isEmpty(url) || imgView == null) {\n return;\n }\n\n Glide.with(MainApplication.getAppContext())\n .load(url)\n .into(imgView);\n }", "@BindingAdapter({\"bind:imageUrlWithPlaceHolder\"})\n public static void loadImage(ImageView view, String imageUrl) {\n Context context = view.getContext();\n Glide.with( context ).load( imageUrl )\n .diskCacheStrategy( DiskCacheStrategy.ALL ).placeholder( R.drawable.ic_launcher_background ).dontAnimate().into( view );\n }", "private void loadAndDisplay(String url, ImageView imageView) {\n LoadDataHolder loadDataHolder = new LoadDataHolder(url, imageView);\n\n // Add placeholder while load image\n imageView.setImageResource(R.color.placeholder);\n\n // Execute loading runnable\n executorService.submit(new ImageLoadRunnable(loadDataHolder));\n }", "public static void displayImageFromUrlWithPlaceHolder(final Context context, final String url,\n final ImageView imageView,\n int placeholderResId) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n .placeholder(placeholderResId);\n\n Glide.with(context)\n .load(url)\n .apply(myOptions)\n .into(imageView);\n }", "void downloadImage(String imageURL, ImageView imageView);", "public void drawImage() {\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n imageView.setVisibility(View.VISIBLE);\n Glide.with(MainActivity.this).load(iURI).fitCenter().into(imageView);\n }", "private void loadImg(final ImageView imageView,String url) {\n OkHttpUtils.get(url)\n .tag(this)\n .execute(new BitmapCallback()\n {\n @Override\n public void onSuccess(Bitmap bitmap, okhttp3.Call call, Response response) {\n imageView.setImageBitmap(bitmap);\n }\n });\n }", "public static void displayImageFromUrl(final Context context, final String url,\n final ImageView imageView, Drawable placeholderDrawable, RequestListener listener) {\n RequestOptions myOptions = new RequestOptions()\n .dontAnimate()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC)\n .placeholder(placeholderDrawable);\n\n if (listener != null) {\n Glide.with(context)\n .load(url)\n .apply(myOptions)\n .listener(listener)\n .into(imageView);\n } else {\n Glide.with(context)\n .load(url)\n .apply(myOptions)\n .listener(listener)\n .into(imageView);\n }\n }", "public void loadImage(String url, ImageView imageView) {\n Bitmap bitmap = null;\n if (mImageCache != null) {\n bitmap = mImageCache.get(url);\n }\n if (bitmap != null) {\n imageView.setImageBitmap(bitmap);\n return;\n } else {\n if (LoadImageUrlTask.cancelPotentialDownload(url, imageView)) {\n LoadImageUrlTask task = new LoadImageUrlTask(imageView, mImageCache);\n final DownLoadedDrawable downLoadedDrawable = new DownLoadedDrawable(mContext.getResources(),\n ImageUtils.decodeSampledBitmapFromResource(mContext.getResources(), loadingBgResId), task);\n imageView.setImageDrawable(downLoadedDrawable);\n task.execute(url);\n }\n }\n }", "public static void displayRoundImageFromUrl(final Context context, final String url, final ImageView imageView) {\n RequestOptions myOptions = new RequestOptions()\n .centerCrop()\n .dontAnimate();\n\n Glide.with(context)\n .asBitmap()\n .apply(myOptions)\n .load(url)\n .into(new BitmapImageViewTarget(imageView) {\n @Override\n protected void setResource(Bitmap resource) {\n RoundedBitmapDrawable circularBitmapDrawable =\n RoundedBitmapDrawableFactory.create(context.getResources(), resource);\n circularBitmapDrawable.setCircular(true);\n imageView.setImageDrawable(circularBitmapDrawable);\n }\n });\n }", "private void loadImage(final String url) {\n\t\tnew AsyncTask<Void, Void, Drawable>() {\n\t\t\t@Override\n\t\t\tprotected Drawable doInBackground(Void... none) {\n\t\t\t\treturn NetHelper.getDrawableFromUrl(url);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tprotected void onPostExecute(Drawable drawable) {\n\t\t\t\tImageView thumbnail = (ImageView) findViewById(R.id.details_image_view_thumbnail);\n\t\t\t\tthumbnail.setImageDrawable(drawable);\n\t\t\t}\n\t\t}.execute();\n\t}", "public void displayImage() {\n RealImage real = new RealImage(url);\n real.displayImage();\n }", "@BindingAdapter(\"bind:imageUrl\")\n public static void setImageUrl(ImageView imageView, String url) {\n Context context = imageView.getContext();\n Glide.with( context ).load( url ).into( imageView );\n }", "public static void getImageFromUrl(String url, final ImageView imageView,\r\n\t\t\tContext contexte) {\r\n\r\n\t\tVolleySingleton volleyInstance = VolleySingleton.getInstance(contexte);\r\n\t\tImageLoader imageLoader = volleyInstance.getImageLoader();\r\n\t\t\r\n\t\timageLoader.get(url, new ImageListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onErrorResponse(VolleyError error) {\r\n\t\t\t\timageView.setImageResource(R.drawable.ic_launcher);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onResponse(ImageContainer response, boolean arg1) {\r\n\r\n\t\t\t\tLog.i(\"Api\",\r\n\t\t\t\t\t\t\"Get image url reponse :\" + response.getRequestUrl());\r\n\t\t\t\tif (response.getBitmap() != null) {\r\n\t\t\t\t\timageView.setImageBitmap(response.getBitmap());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void setImageUrl(String url){\n\n Glide.with(getContext()).load(url)\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(ivImg);\n }", "public static void LoadImageBG(final String url, ImageView iv,\n\t\t\tfinal Activity activity) {\n\t\tSystem.gc();\n\t\tRuntime.getRuntime().gc();\n\t\tnew AsyncTask<ImageView, Integer, Drawable>() {\n\t\t\tImageView imageview;\n\t\t\tint attempts = 3;\n\n\t\t\t@Override\n\t\t\tprotected Drawable doInBackground(ImageView... params) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\timageview = params[0];\n\t\t\t\tDrawable drawable = null;\n\t\t\t\tFile downloadPath = createDownloadsPath(activity, url.split(\"/\"));\n\t\t\t\tdo {\n\t\t\t\t\tdrawable = Utils.LoadImageFromWebOperations(url,\n\t\t\t\t\t\t\tdownloadPath);\n\t\t\t\t\tattempts--;\n\t\t\t\t} while (attempts > 0 && drawable == null);\n\t\t\t\treturn drawable;\n\t\t\t}\n\n\t\t\tprotected void onPostExecute(final Drawable result) {\n\t\t\t\tactivity.runOnUiThread(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tif (result!=null){\n\t\t\t\t\t\t\timageview.setImageDrawable(result);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\timageview.setImageResource(R.drawable.icono_ranking);\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}.execute(iv);\n\t}", "@Override\n public void onSuccess(Uri uri){\n Glide.with(getActivity()).load(uri.toString()).placeholder(R.drawable.round_account_circle_24).dontAnimate().into(profilepic);\n }", "public void Draw() {\n\t\timgIcon = new ImageIcon(imgUrl);\n\t}", "@Override\n public String toString() {\n return \"GifImage{\" + \"url='\" + url + '\\'' + \", width=\" + width + \", height=\" + height + '}';\n }", "@BindingAdapter({ \"productimageurl\" })\n public static void loadImage(ImageView imageView, String imageURL) {\n Glide.with(imageView.getContext())\n .load(imageURL)\n .placeholder(R.drawable.bisleri_bottle_img)\n .into(imageView);\n }", "protected Bitmap getImage(URL url) {\n\n HttpURLConnection iconConn = null;\n try {\n iconConn = (HttpURLConnection) url.openConnection();\n iconConn.connect();\n int response = iconConn.getResponseCode();\n //if the reponse 200 the successfull\n if (response == 200) {\n return BitmapFactory.decodeStream(iconConn.getInputStream());\n } else {\n return null;\n }\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n } finally {\n if (iconConn != null) {\n iconConn.disconnect();\n }\n }\n }", "public static void loadImageLoader(DisplayImageOptions options, String url, final ImageView imageView) {\n ImageLoader.getInstance().displayImage(url, imageView, options, new SimpleImageLoadingListener() {\n final List<String> displayedImages = Collections.synchronizedList(new LinkedList<String>());\n\n @Override\n public void onLoadingStarted(String imageUri, View view) {\n //spinner.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onLoadingFailed(String imageUri, View view, FailReason failReason) {\n String message = null;\n switch (failReason.getType()) {\n case IO_ERROR:\n message = \"Check internet\";\n break;\n case DECODING_ERROR:\n message = \"Image can't be decoded\";\n break;\n case NETWORK_DENIED:\n message = \"Downloads are denied\";\n break;\n case OUT_OF_MEMORY:\n message = \"Out Of Memory error\";\n break;\n case UNKNOWN:\n message = \"Unknown error\";\n break;\n }\n Toast.makeText(view.getContext(), message, Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n if (loadedImage != null) {\n ImageView imageView = (ImageView) view;\n boolean firstDisplay = !displayedImages.contains(imageUri);\n if (firstDisplay) {\n FadeInBitmapDisplayer.animate(imageView, 300);\n displayedImages.add(imageUri);\n }\n }\n imageView.setImageBitmap(loadedImage);\n }\n });\n }", "@Override\n public void onSuccess(Uri uri) {\n Log.i(\"update\", uri.toString());\n Glide.with(context).load(uri.toString()).circleCrop().into(ivIcon);\n ivIcon.setVisibility(View.VISIBLE);\n }", "public ImageLoadTask(String url, ImageView imageView) {\n this.url = url;\n this.imageView = imageView;\n this.finish = false;\n }", "private void loadImage(String imagePath) {\n //Loading image from below url into imageView\n imageFile = new File(imagePath);\n Glide.with(getApplicationContext())\n .load(imagePath)\n .transition(DrawableTransitionOptions.withCrossFade(300))\n .into(imageView);\n }", "public void loadTo(String url, ImageView imageView) {\n relationsMap.put(imageView, url);\n\n // If image already cached just show it\n Bitmap bitmap = memoryCache.getData(url);\n if (bitmap != null) {\n Log.d(\"HIHO\", \"bitmap from memory\");\n imageView.setImageBitmap(bitmap);\n } else {\n loadAndDisplay(url, imageView);\n }\n }", "AsyncImageView getIconView();", "public void displayImage(final ImageView imageView, final String url, int reqWidth, int reqHeight) {\n if (mImageViews.get(imageView) != null && mImageViews.get(imageView).equals(url))\r\n return;\r\n\r\n mImageViews.put(imageView, url);\r\n\r\n Bitmap bitmap = mMemoryCache.get(url);\r\n\r\n if (bitmap != null) {\r\n imageView.setImageBitmap(bitmap);\r\n } else {\r\n // if the image have already put to the queue\r\n if (mSubscribers.get(url) != null) {\r\n mSubscribers.get(url).addImageView(imageView);\r\n } else {\r\n imageView.setImageResource(DEFAULT_IMAGE_ID);\r\n BitmapUseCase bitmapUseCase = mBitmapUseCaseFactory.create(url, reqWidth, reqHeight);\r\n\r\n BitmapSubscriber subscriber = new BitmapSubscriber(imageView, url, bitmapUseCase);\r\n\r\n bitmapUseCase.execute(subscriber);\r\n mSubscribers.put(url, subscriber);\r\n mUseCases.add(bitmapUseCase);\r\n }\r\n\r\n }\r\n\r\n\r\n }", "public synchronized void updateImageView(ImageView imgView, Bitmap img, String url) {\n if(img == null) {\n img = this.noImgBitmap;\n }\n imageCache.put(url, img);\n imgView.setImageBitmap(img);\n }", "@Override\n public void onClick(View v) {\n showImageView.setVisibility(View.VISIBLE);\n String imgUrl = \"http://210.42.121.241/servlet/GenImg\";\n new DownImgAsyncTask().execute(imgUrl);\n }", "public void setRemoteImage(ImageView imageView, String url, int position) {\r\n\t\tif(imageView == null) {\r\n\t\t\tLog.w(TAG, \"setRemoteImage() imageView == null.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\timageView.setTag(url);\r\n\t\tif(url == null || url.equals(\"\")) {\r\n\t\t\tLog.w(TAG, \"setRemoteImage() url == null or url is empty.\");\r\n\t\t\timageView.setImageBitmap(getLoadingImage());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tBitmap bitmap = mImageCacheHelper.getImage(url);\r\n\t\tif (bitmap != null) {\r\n\t\t\tLog.d(TAG, \"setRemoteImage() found image from cache.\");\r\n\t\t\timageView.setImageBitmap(bitmap);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\timageView.setImageBitmap(getLoadingImage());\r\n\t\tif (isFling()) {\r\n\t\t\t// No need to load image when lazy load is set true and the ListView is fling(not touch scroll).\r\n\t\t\tLog.v(TAG, \"AbsListView is fling, no need to load remote image.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// bitmap is null, that means never download or downloading or bitmap has been GC(no local copy) or download failed.\r\n\t\tDownloadTaskStatus status = mTaskStatus.get(url);\r\n\t\tboolean needNewTask = false;\r\n\t\tif(status != null) {\r\n\t\t\tif(status == DownloadTaskStatus.PENDING || status == DownloadTaskStatus.RUNNING) {\r\n\t\t\t\t// downloading, not need to run another task to download the same image.\r\n\t\t\t\tLog.v(TAG, \"Position \" + position + \" is downloading. No need to load another one.\");\r\n\t\t\t} else if(status == DownloadTaskStatus.SUCCESS) {\r\n\t\t\t\t// download success but image not found, that means bitmap has been GC(no local copy).\r\n\t\t\t\tLog.w(TAG, \"position \" + position + \" has been GC. Reload it.\");\r\n\t\t\t\tneedNewTask = true;\r\n\t\t\t} else if(status == DownloadTaskStatus.FAILED) {\r\n\t\t\t\t// download failed.\r\n\t\t\t\tif(mReloadIfFailed) {\r\n\t\t\t\t\tLog.w(TAG, \"position \" + position + \" download failed. Reload it.\");\r\n\t\t\t\t\tmTaskStatus.remove(url);\r\n\t\t\t\t\tneedNewTask = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tLog.d(TAG, \"position \" + position + \" download failed. ReloadIfFailed false, no need to reload it.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// never download.\r\n\t\t\tLog.w(TAG, \"position \" + position + \" never download. Load it.\");\r\n\t\t\tneedNewTask = true;\r\n\t\t}\r\n\t\tif(needNewTask) {\r\n\t\t\tLog.d(TAG, \"setRemoteImage() for position \" + position + \" with url \" + url);\r\n\t\t\tnew ImageDownloadTask(mViewGroup, url).execute();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tprotected Drawable doInBackground(ImageView... params) {\n\t\t\t\timageview = params[0];\n\t\t\t\tDrawable drawable = null;\n\t\t\t\tFile downloadPath = createDownloadsPath(activity, url.split(\"/\"));\n\t\t\t\tdo {\n\t\t\t\t\tdrawable = Utils.LoadImageFromWebOperations(url,\n\t\t\t\t\t\t\tdownloadPath);\n\t\t\t\t\tattempts--;\n\t\t\t\t} while (attempts > 0 && drawable == null);\n\t\t\t\treturn drawable;\n\t\t\t}", "public boolean isGif(String url){\n if(url==null){\n return false;\n }\n\n // First try to grab the mime from the options\n Options options = new Options();\n options.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(getFullCacheFileName(mContext, url), options);\n if(options.outMimeType!=null && \n options.outMimeType.equals(ImageManager.GIF_MIME)){\n return true;\n }\n\n // Next, try to grab the mime type from the url\n final String extension = MimeTypeMap.getFileExtensionFromUrl(url);\n if(extension!=null){\n String mimeType = \n MimeTypeMap.getSingleton().getMimeTypeFromExtension(extension);\n if(mimeType!=null){\n return mimeType.equals(ImageManager.GIF_MIME);\n }\n }\n\n return false;\n }", "@Override\n public void displayImage(String url, String mimeType, String title, String description,\n String iconSrc, final LaunchListener listener) {\n setMediaSource(new MediaInfo.Builder(url, mimeType)\n .setTitle(title)\n .setDescription(description)\n .setIcon(iconSrc)\n .build(), listener);\n }", "private void loadImage(Context context,\n String imageUrl,\n ImageView imageView,\n @Nullable Drawable placeholder) {\n if (imageUrl.equals(imageView.getTag())) {\n // We already have the image, no need to load it again.\n return;\n }\n //If we don't clear the tag, Glide will crash as Glide do not want us to have tag on image view\n // Clear the current tag and load the new image, The new tag will be set on success.\n imageView.setTag(null);\n Glide.with(context)\n .load(imageUrl)\n .centerCrop()\n .thumbnail(GlideConfigModule.SIZE_MULTIPLIER)\n .placeholder(placeholder)\n .dontAnimate()\n .listener(new RequestListener<String, GlideDrawable>() {\n @Override\n public boolean onException(Exception e,\n String model,\n Target<GlideDrawable> target,\n boolean isFirstResource) {\n return false;\n }\n\n @Override\n public boolean onResourceReady(GlideDrawable resource,\n String model,\n Target<GlideDrawable> target,\n boolean isFromMemoryCache,\n boolean isFirstResource) {\n // Set the image URL as a tag so we know that the image with this URL has\n // successfully loaded\n imageView.setTag(imageUrl);\n return false;\n }\n })\n .into(imageView);\n }", "public void act() {\n setImage(myGif.getCurrentImage());\n }", "public void displayImage(ImageView imageView, Bitmap loadingImage, ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, null); \n }", "@Override\n public void onSuccess(Uri uri) {\n ImageView imgProfile=(ImageView)findViewById(R.id.img_header_bg);\n Glide.with(MainActivity.this).load(uri)\n .crossFade()\n .thumbnail(0.5f)\n .bitmapTransform(new CircleTransform(MainActivity.this))\n .diskCacheStrategy(DiskCacheStrategy.ALL)\n .into(imgProfile);\n\n\n }", "@Override\n public Bitmap getImage(String url) {\n try {\n if (!taskForUrlAlreadyRunning(url)) {\n imageDownloadTaskMap.put(url, startDownload(url));\n }\n } catch (MalformedURLException e) {\n Log.i(\"ImageDownloadManager\", \"Malformed url\" + url);\n }\n return null;\n }", "@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n imageViewUIL.setImageBitmap(loadedImage);\n imageViewUIL.setAnimation(anim);\n }", "public interface MainView {\n\n void setGifs(GifList list);\n void showError(String error);\n\n}", "public static void updateUrlDrawable(Bitmap bitmap, ImageView imageView, int cacheDurationInfinite) {\n \n }", "@Override\n\t\t\t\t\tpublic void imageLoaded(Drawable imageDrawable,\n\t\t\t\t\t\t\tString imageUrl) {\n\t\t\t\t\t\tBabyImage.setImageDrawable(imageDrawable);\n\t\t\t\t\t}", "public void setImageUrl(String url) {\n\t\tthis.url = url;\n\t}", "@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\twebView.loadUrl(Uri.fromFile(new File(fileImg)).toString());\n\n\t\t\t\t\t\t\t\t\t\t\t}", "@Override\n protected void onPostExecute(Bitmap result) {\n progressBar.setVisibility(View.INVISIBLE);\n if(result!=null)\n imageView.setImageBitmap(result);\n else\n Toast.makeText(DisplayItem.this, \"Image Does Not exist or Network Error\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\tprotected void onPostExecute(Drawable result) {\n\t\t\t\turlDrawable.setBounds(0, 0, result.getIntrinsicWidth(), result.getIntrinsicHeight());\n\n\t\t\t\t// change the reference of the current drawable to the result\n\t\t\t\t// from the HTTP call\n\t\t\t\turlDrawable.drawable = result;\n\n\t\t\t\t// redraw the image by invalidating the container\n\t\t\t\tURLImageParser.this.container.invalidate();\n\t\t\t}", "private void showBitmap() {\n Bitmap bitmap = BitmapFactory.decodeByteArray(mImgData, 0, mImgData.length);\n mImgView.setImageBitmap(bitmap);\n }", "private static void setPicasso(@NonNull Context context, RemoteViews views, int viewId, @NonNull String imageUrl) {\n\n try {\n //java.lang.IllegalArgumentException: Path must not be empty\n if (imageUrl.length() > 0) {\n Bitmap logoBitmap = Picasso.with(context).load(Utils.builtURI(imageUrl)).get();\n views.setImageViewBitmap(viewId, logoBitmap);\n } else {\n views.setImageViewResource(viewId, R.drawable.ic_launcher);\n }\n\n } catch (IOException | IllegalArgumentException e) {\n views.setImageViewResource(viewId, R.drawable.ic_launcher);\n e.printStackTrace();\n }\n\n }", "public static void loadCacheImage(Context context, final ImageView imageView, String imageUrl, String tag) {\n Cache cache = MySingleton.getInstance(context).getRequestQueue().getCache();\n Cache.Entry entry = cache.get(imageUrl);\n if (entry != null) {\n try {\n Bitmap bitmap = BitmapFactory.decodeByteArray(entry.data, 0, entry.data.length);\n imageView.setImageBitmap(bitmap);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"ERROR\", e.getMessage());\n }\n } else {\n cache.invalidate(imageUrl, true);\n cache.clear();\n ImageRequest request = new ImageRequest(imageUrl,\n new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n }\n }, 0, 0, null,\n new Response.ErrorListener() {\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n Log.e(\"ERROR VOLLY 1\", error.getMessage() + \"\");\n imageView.setImageResource(R.drawable.ic_check_black_24dp);\n }\n });\n request.setTag(tag);\n MySingleton.getInstance(context).addToRequestQueue(request);\n }\n }", "void setImageFromURL(String imageURL);", "@BindingAdapter({\"bind:urlToImage\", \"bind:articleUrl\"})\n public static void loadImage(ImageView imageView, String url, String articleUrl) {\n Context context = imageView.getContext();\n if (url == null) {\n String iconUrl = \"https://besticon-demo.herokuapp.com/icon?url=%s&size=80..120..200\";\n url = String.format(iconUrl, Uri.parse(articleUrl).getAuthority());\n }\n GlideApp.with(imageView)\n .load(url)\n .apply(NewsGlideModule.roundedCornerImage(new RequestOptions(), imageView.getContext(), 0))\n .placeholder(context.getResources().getDrawable(R.color.cardBackground))\n .into(imageView);\n }", "public static void cacheImage(final File file, ImageRequest imageCallback) {\n\n HttpURLConnection urlConnection = null;\n FileOutputStream fileOutputStream = null;\n InputStream inputStream = null;\n boolean isGif = false;\n\n try{\n // Setup the connection\n urlConnection = (HttpURLConnection) new URL(imageCallback.mUrl).openConnection();\n urlConnection.setConnectTimeout(ImageManager.LONG_CONNECTION_TIMEOUT);\n urlConnection.setReadTimeout(ImageManager.LONG_REQUEST_TIMEOUT);\n urlConnection.setUseCaches(true);\n urlConnection.setInstanceFollowRedirects(true);\n\n // Set the progress to 0\n imageCallback.sendProgressUpdate(imageCallback.mUrl, 0);\n\n // Connect\n inputStream = urlConnection.getInputStream();\n\n // Do not proceed if the file wasn't downloaded\n if(urlConnection.getResponseCode()==404){\n urlConnection.disconnect();\n return;\n }\n\n // Check if the image is a GIF\n String contentType = urlConnection.getHeaderField(\"Content-Type\");\n if(contentType!=null){\n isGif = contentType.equals(GIF_MIME);\n }\n\n // Grab the length of the image\n int length = 0;\n try{\n String fileLength = urlConnection.getHeaderField(\"Content-Length\");\n if(fileLength!=null){\n length = Integer.parseInt(fileLength);\n }\n }catch(NumberFormatException e){\n if(ImageManager.DEBUG){\n e.printStackTrace();\n }\n }\n\n // Write the input stream to disk\n fileOutputStream = new FileOutputStream(file, true);\n int byteRead = 0;\n int totalRead = 0;\n final byte[] buffer = new byte[8192];\n int frameCount = 0;\n\n // Download the image\n while ((byteRead = inputStream.read(buffer)) != -1) {\n\n // If the image is a gif, count the start of frames\n if(isGif){\n for(int i=0;i<byteRead-3;i++){\n if( buffer[i] == 33 && buffer[i+1] == -7 && buffer[i+2] == 4 ){\n frameCount++;\n\n // Once we have at least one frame, stop the download\n if(frameCount>1){\n fileOutputStream.write(buffer, 0, i);\n fileOutputStream.close();\n\n imageCallback.sendProgressUpdate(imageCallback.mUrl, 100);\n imageCallback.sendCachedCallback(imageCallback.mUrl, true);\n\n urlConnection.disconnect();\n return;\n }\n }\n }\n }\n\n // Write the buffer to the file and update the total number of bytes\n // read so far (used for the callback)\n fileOutputStream.write(buffer, 0, byteRead);\n totalRead+=byteRead;\n\n // Update the callback with the current progress\n if(length>0){\n imageCallback.sendProgressUpdate(imageCallback.mUrl, \n (int) (((float)totalRead/(float)length)*100) );\n }\n }\n\n // Tidy up after the download\n if (fileOutputStream != null){\n fileOutputStream.close();\n }\n\n // Sent the callback that the image has been downloaded\n imageCallback.sendCachedCallback(imageCallback.mUrl, true);\n\n if (inputStream != null){\n inputStream.close();\n }\n\n // Disconnect the connection\n urlConnection.disconnect();\n } catch (final MalformedURLException e) {\n if (ImageManager.DEBUG){\n e.printStackTrace();\n }\n\n // If the file exists and an error occurred, delete the file\n if (file != null){\n file.delete();\n }\n\n } catch (final IOException e) {\n if (ImageManager.DEBUG){\n e.printStackTrace();\n }\n\n // If the file exists and an error occurred, delete the file\n if (file != null){\n file.delete();\n }\n\n }\n\n }", "public void displayImage(ImageView imageView, Drawable loadingImage,\n ImageGenerator<?> imageGenerator) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, null);\n }", "public Image getImage(URL paramURL) {\n/* 276 */ return getAppletContext().getImage(paramURL);\n/* */ }", "@Override\n public void onClick(View view) {\n Glide.with(HomeActivity.this).load(\"https://steamcdn-a.akamaihd.net/steam/apps/570840/logo.png?t=1574384831\").into(imageViewNeko);\n }", "public void loadImage(final String path, final ImageView imageView){\r\n imageView.setTag(path);\r\n if (mUIHandler==null){\r\n mUIHandler=new Handler(){\r\n @Override\r\n public void handleMessage(Message msg) {\r\n //Get the image and set its imageView.\r\n ImgBeanHolder holder= (ImgBeanHolder) msg.obj;\r\n Bitmap bitmap = holder.bitmap;\r\n ImageView imageview= holder.imageView;\r\n String path = holder.path;\r\n if (imageview.getTag().toString().equals( path)){\r\n imageview.setImageBitmap(bitmap);\r\n }\r\n }\r\n };\r\n }\r\n //Get the bitmap through the path in the cache.\r\n Bitmap bm=getBitmapFromLruCache(path);\r\n if (bm!=null){\r\n refreshBitmap(bm, path, imageView);\r\n }else{\r\n addTask(() -> {\r\n //Get the size of the image which wants to be displayed.\r\n ImageSize imageSize= getImageViewSize(imageView);\r\n //Compress the image.\r\n Bitmap bm1 =decodeSampledBitmapFromPath(imageSize.width,imageSize.height,path);\r\n //Put the image into the cache.\r\n addBitmapToLruCache(path, bm1);\r\n //Refresh the display of the image.\r\n refreshBitmap(bm1, path, imageView);\r\n mSemaphoreThreadPool.release();\r\n });\r\n }\r\n\r\n }", "public void loadCircleImage(String url,int defaultImageRes, ImageView pic) {\n url = resizeUrl(pic, url);\n if (isLoad(pic,url)) {\n ImageLoader.getInstance().displayImage(url, pic, BitmapOptions.getRCircleOpt(0),getCircleImageLoaderListener(defaultImageRes));\n }\n\n }", "void mo36482a(ImageView imageView, Uri uri);", "public interface ImageDownloader {\n\n /**\n * Load the image from the URL into the image view resizing it if necessary.\n * @param imageURL Image URL.\n * @param imageView ImageView reference to load the image into.\n */\n void downloadImage(String imageURL, ImageView imageView);\n\n}", "public interface GlideLoadInterface {\n void glideLoad(Context context, Object url, ImageView view, int default_image, int radius);\n}", "protected Drawable doInBackground(String... url) {\n try {\n\t\t\tInputStream is = (InputStream) new URL(url[0]).getContent();\n\t\t\tDrawable d = Drawable.createFromStream(is, \"src\");\n\t\t\treturn d;\n\t\t} \n\t\t\t\t\n\t\tcatch (Exception e) {\n\t\t\t//do nothing\n\t\t\treturn null;\n\t\t}\n }", "public void setImgurl(String imgurl) {\n this.imgurl = imgurl;\n }", "private Bitmap loadImageFromNetwork(String url) {\n try {\n InputStream is = new DefaultHttpClient().execute(new HttpGet(url))\n .getEntity().getContent();\n return BitmapFactory.decodeStream(is);\n } catch (Exception e) {\n return null;\n }\n }", "private void displayImage(Uri uri)\t{\n\t\tLog.d(TAG, \"displayImage\");\n\t\tint width = getWindow().getWindowManager().getDefaultDisplay().getWidth();\n\t\tint height = getWindow().getWindowManager().getDefaultDisplay().getHeight();\n\t\tString imageWidth = \"\\\" width=\\\"\" + width;\n\t\tString imageHeight = \"\\\" height=\\\"\" + height;\n\t\t\n\t\tif (width < height) //use width but not height, so set height to null\n\t\t\timageHeight = \"\";\n\t\telse //use height not width, so set width to null\n\t\t\timageWidth = \"\";\n\t\t\t\t\n\t\tString imageUrl = \"file://\" + uri.getPath();\n\t\tLog.d(TAG, \"Loading image...\");\n\t\tmCropView.loadData(\"<html><head>\" +\n\t\t\t\t\"<meta name=\\\"viewport\\\" content=\\\"width=device-width\\\"/>\" +\n\t\t\t\t\t\t\"</head><body><center><img src=\\\"\"+uri.toString() + imageWidth + imageHeight +\n\t\t\t\t\t\t\"\\\"></center></body></html>\",\n\t\t\t\t\t\t\"text/html\", \"UTF-8\");\n\t\tmCropView.getSettings().setBuiltInZoomControls(true);\n\t\tmCropView.setBackgroundColor(0);\n\t\tmCropView.getSettings().setUseWideViewPort(true);\n\t\tmCropView.setInitialScale(1);\n\t\tmCropView.getSettings().setLoadWithOverviewMode(true);\n\t\tLog.d(TAG, imageUrl);\n\t\tLog.d(TAG, uri.toString());\n\t}", "public void displayImage(ImageView imageView, Bitmap loadingImage, ImageGenerator<?> imageGenerator, Runnable callback) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, callback); \n }", "public String getImageUrl();", "private void setImage(String downloaderUri, String thubo) {\n blogImageView = mView.findViewById(R.id.postView_image_post);\n\n //request optional to assign temporary image appear before while loading the image from db.\n RequestOptions requestOptions = new RequestOptions();\n requestOptions.placeholder(R.drawable.postlist);\n\n //Glide.with(context).applyDefaultRequestOptions(requestOptions).load(thubo).into(blogImageView);\n Glide.with(context).applyDefaultRequestOptions(requestOptions).load(downloaderUri).thumbnail(\n Glide.with(context).load(thubo)\n ).into(blogImageView);\n\n }", "private void showView() {\n\t\tfinal ImageView image = (ImageView) findViewById(R.id.image); \n\t\t//screen.addView(image);\n\t\t//image.setImageResource(images[0]);\n\n\t\tString fileName = getFilesDir().getPath() + \"/\" + FILE_NAME;\n\t\t//System.out.println(fileName);\n\t\tBitmap bm = BitmapFactory.decodeFile(fileName); \n\t\t\n\t\timage.setImageBitmap(bm); \n\t\t\n\t\t//System.out.println(\"show done!\\n\");\t\t\n\t\t\n\t}", "private Bitmap loadImageFromNetwork(String url) {\n Bitmap bm = null;\n try {\n URL urln = new URL(url);\n Log.i(\"load\", url);\n Log.i(\"load\", \"loading Image...\");\n bm = BitmapFactory.decodeStream(urln.openConnection().getInputStream());\n Log.i(\"load\", \"done\");\n } catch (IOException e) {\n Log.e(\"HUE\",\"Error downloading the image from server : \" + e.getMessage().toString());\n } \n return bm;\n }", "private void loadProfilePic(final CircleImageView circleImageView, final String url, final boolean sender){\n\n if (url == null)\n {\n circleImageView.setImageResource(R.drawable.ic_profile);\n return;\n }\n\n circleImageView.setTag(url);\n\n VolleyUtils.getImageLoader().get(url, new ImageLoader.ImageListener() {\n @Override\n public void onResponse(final ImageLoader.ImageContainer response, boolean isImmediate) {\n\n // Checking to see that there is no new rewuest on this image.\n if (circleImageView.getTag() != null && !circleImageView.getTag().equals(url))\n return;\n\n if (isImmediate && response.getBitmap() == null)\n {\n circleImageView.setImageResource(R.drawable.ic_profile);\n return;\n }\n\n if (response.getBitmap() != null)\n {\n if (!isScrolling)\n {\n circleImageView.setImageBitmap(response.getBitmap());\n }\n else\n {\n animateSides(circleImageView, !sender, new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {\n circleImageView.setImageBitmap(response.getBitmap());\n }\n\n @Override\n public void onAnimationEnd(Animation animation) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animation animation) {\n\n }\n });\n\n circleImageView.getAnimation().start();\n }\n }\n }\n\n @Override\n public void onErrorResponse(VolleyError error) {\n circleImageView.setImageResource(R.drawable.ic_profile);\n }\n }, circleImageView.getWidth(), circleImageView.getWidth());\n }", "public void ImageCreate(){\n Picasso.get().load(url).into(imageView);\n }", "public interface GIF {\n\n\t/**\n\t * The from method picks up the directory the\n\t * images are for gif creation\n\t * @param path path of the directory image resides in.\n\t * @return GIFMaker\n\t */\n\tpublic GIFMaker from(ImageComposite collection);\n\n\t/**\n\t * The destination directory where the final gif will reside.\n\t * @param path Directory path\n\t * @return GIFMAKER\n\t */\n\tpublic GIFMaker to(String path);\n\n\t/**\n\t * Adds the delay between two images.\n\t * @param delay int\n\t * @return GIFMaker\n\t */\n\tpublic GIFMaker withDelay(int delay);\n\t\n\t/**\n\t * Repeats GIF\n\t * @param repeat\n\t * @return GIFMaker\n\t */\n\tpublic GIFMaker repeat(boolean repeat);\n\t\n\t/**\n\t * Sets the width\n\t * @param width\n\t * @return GIFMaker\n\t */\n\tpublic GIFMaker width(int width);\n\t\n\t/**\n\t * Sets the height\n\t * @param height\n\t * @return GIFMaker\n\t */\n\tpublic GIFMaker height(int height);\n\n\t/**\n\t * Makes the final GIF Image for the the application.\n\t */\n\tpublic void make();\n\t\n}", "private void showImage(String thumbnailURL) {\n if ( ! TextUtils.isEmpty(thumbnailURL)) {\n Picasso.with(getContext())\n .load(thumbnailURL)\n .placeholder(R.drawable.ic_image)\n .error(R.drawable.ic_broken_image)\n .into(mStepThumbnailImageView);\n }\n }", "public void onFinish() {\n\n imageView_gif_confeti.setVisibility(View.INVISIBLE);\n }", "public void handleGifResponse(Response<GifResponse> response) {\n GifResponse gifResponse = (GifResponse) response.body();\n if (gifResponse != null) {\n this.listener.onSuccess(getImagesFromResponse(gifResponse.results()));\n return;\n }\n this.listener.onError();\n }", "@Override\n\t\tprotected void onPostExecute(Bitmap result) {\n\t\t\tloadingView.setVisibility(View.GONE);\n\t\t\t\n\t\t\t// Set the resulting bitmap as the ImageView's source\n\t\t\timageView.setImageBitmap(result);\n\t\t}", "public @Nullable IIconData getIcon(@Nullable URL url);", "public GIFMaker to(String path);", "@Override\n public void onClick(View v) {\n// Intent intent=new Intent();\n// intent.setClass(Main47Activity.this,LibMainActivity.class);\n// startActivity(intent);\n\n ImageView icon=findViewById(R.id.image);\n GlideApp.with(Main47Activity.this).load(\"http://www.10000s.com/servlet/ValidateCodeServlet\").into(icon);\n }", "public static void setPreviewImage(final AppCompatActivity context, String url, ImageView imageView, final ProgressView progressView){\n\n //Show loading view.\n progressView.show(context.getSupportFragmentManager(), \"\");\n\n Picasso.with(context).load(url).resize(1600,1200).centerCrop().into(imageView, new Callback() {\n @Override\n public void onSuccess() {\n progressView.dismiss();\n }\n\n @Override\n public void onError() {\n\n }\n });\n\n }", "public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage);", "public void displayImage(ImageView imageView, Bitmap loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator) {\n displayImage(imageView, new BitmapDrawable(mContext.getResources(), loadingImage), width, height, imageGenerator, null); \n }", "private void showPreview() {\n Glide.with(this)\n .load(imageUri)\n .into(imagePreview);\n imagePreviewLayout.setVisibility(View.VISIBLE);\n imageOriginOptionsLayout.setVisibility(View.GONE);\n }", "@Override\n public void onResponse(final ImageLoader.ImageContainer response, boolean isImmediate) {\n if (circleImageView.getTag() != null && !circleImageView.getTag().equals(url))\n return;\n\n if (isImmediate && response.getBitmap() == null)\n {\n circleImageView.setImageResource(R.drawable.ic_profile);\n return;\n }\n\n if (response.getBitmap() != null)\n {\n if (!isScrolling)\n {\n circleImageView.setImageBitmap(response.getBitmap());\n }\n else\n {\n animateSides(circleImageView, !sender, new Animation.AnimationListener() {\n @Override\n public void onAnimationStart(Animation animation) {\n circleImageView.setImageBitmap(response.getBitmap());\n }\n\n @Override\n public void onAnimationEnd(Animation animation) {\n\n }\n\n @Override\n public void onAnimationRepeat(Animation animation) {\n\n }\n });\n\n circleImageView.getAnimation().start();\n }\n }\n }", "@Override\n public void bindView(View view, Context context, Cursor cursor) {\n int poster_path_index = cursor.getColumnIndex(MovieContract.MovieDetailsEntry.COLUMN_POSTER_PATH);\n String poster_path = cursor.getString(poster_path_index);\n String baseURL = \"http://image.tmdb.org/t/p/w185\" + poster_path;\n ImageView imageView = (ImageView) view.findViewById(R.id.imageView);\n\n\n if (baseURL.contains(\"null\")) {\n Picasso.with(context).load(R.drawable.poster_not_available)\n .resize(185, 200)\n .into(imageView);\n\n } else {\n\n if(isNetworkAvailable()) {\n Picasso.with(context).load(baseURL).into(imageView);\n// Picasso.with(context).load(\"http://i.imgur.com/DvpvklR.png\").into(imageView\n }else{\n Picasso.with(context)\n .load(baseURL)\n .networkPolicy(NetworkPolicy.OFFLINE)\n .placeholder(R.drawable.error_loading)\n .into(imageView);\n\n }\n }\n }", "public void displayImage(ImageView imageView, Drawable loadingImage, int width,\n int height, ImageGenerator<?> imageGenerator, Runnable callback) {\n if (imageView == null) {\n if (callback != null) \n callback.run();\n return;\n }\n \n if (loadingImage != null) {\n// if (imageView.getBackground() == null) {\n// imageView.setBackgroundDrawable(loadingImage);\n// }\n// imageView.setImageDrawable(null);\n \timageView.setImageDrawable(loadingImage);\n }\n \n if (imageGenerator == null || imageGenerator.getTag() == null) {\n if (callback != null) \n callback.run();\n return;\n }\n\n String tag = imageGenerator.getTag();\n imageView.setTag(tag);\n String key = (width != 0 && height != 0) ? tag + width + height : tag;\n Bitmap bitmap = null;\n synchronized (mMemoryCache) {\n bitmap = mMemoryCache.get(key);\n }\n if (bitmap != null) {\n setImageBitmap(imageView, bitmap, false);\n if (callback != null) \n callback.run();\n return;\n }\n \n synchronized (mTaskStack) {\n for (AsyncImageLoadTask asyncImageTask : mTaskStack) {\n if (asyncImageTask != null \n && asyncImageTask.mImageRef != null\n && tag.equals(asyncImageTask.mImageRef.tag)) {\n if (callback != null) \n callback.run();\n return;\n }\n }\n }\n\n ImageRef imageRef = new ImageRef(imageView, tag, width, height,\n imageGenerator, callback);\n AsyncImageLoadTask asyncImageTask = new AsyncImageLoadTask();\n mTaskStack.push(asyncImageTask); \n asyncImageTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, imageRef);\n \n }", "public void displayImage(ImageView imageView, Drawable loadingImage,\n ImageGenerator<?> imageGenerator, Runnable callback) {\n displayImage(imageView, loadingImage, 0, 0, imageGenerator, callback);\n }", "@Override\r\n\t\t\tpublic void onLoaded(ImageView imageView, Bitmap loadedDrawable, String url, boolean loadedFromCache) {\n\r\n\t\t\t\tif (loadedDrawable == null) // 아이콘을 로드하지 못한 경우\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\timageView.setImageBitmap(loadedDrawable);\r\n\t\t\t}", "public static void loadImage(String url, final IImageLoadListener listener) {\n if (TextUtils.isEmpty(url)) {\n return;\n }\n\n Glide.with(MainApplication.getAppContext())\n .load(url)\n .into(new SimpleTarget<GlideDrawable>() {\n @Override\n public void onResourceReady(GlideDrawable resource, GlideAnimation<? super GlideDrawable> glideAnimation) {\n if (listener != null) {\n listener.onLoadingComplete(resource);\n }\n }\n });\n }", "@Override\n public void run() {\n if (imageViewReused(loadDataHolder))\n return;\n // Download image from web url\n Bitmap bitmap = getBitmap(loadDataHolder.getUrl());\n\n // Save to cache\n if (bitmap != null) {\n memoryCache.put(loadDataHolder.getUrl(), bitmap);\n }\n\n if (imageViewReused(loadDataHolder))\n return;\n\n // Get bitmap to display\n BitmapDisplayRunnable displayRunnable =\n new BitmapDisplayRunnable(bitmap, loadDataHolder);\n\n // Post message to handler associated with UI thread\n handler.post(displayRunnable);\n }", "public void ErrorDog(){\n Picasso.get()\n .load(url)\n .into(imageView, new Callback() {\n @Override\n public void onSuccess() {\n anim = new RotateAnimation(0.0f, 360.0f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f);\n anim.setInterpolator(new LinearInterpolator());\n anim.setRepeatCount(Animation.INFINITE);\n anim.setDuration(7000);\n imageView.startAnimation(anim);\n Toast.makeText(MainActivity.this, \"Success Dog\", Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onError(Exception e) {\n Toast.makeText(MainActivity.this, \"Error Dog\", Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\r\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n \tLog.v(\"catch\",view+\"\");\r\n \ttry{\r\n if (loadedImage != null && view!=null) { \r\n ImageView imageView = (ImageView) view; \r\n // imageView.setImageBitmap(loadedImage);\r\n // 是否第一次显示 \r\n boolean firstDisplay = !displayedImages.contains(imageUri); \r\n if (firstDisplay) { \r\n // 图片淡入效果 \r\n FadeInBitmapDisplayer.animate(imageView, 800); \r\n displayedImages.add(imageUri); \r\n \r\n/* \t ViewGroup.LayoutParams params = imageView.getLayoutParams(); \r\n \t params.height =loadedImage.getHeight(); \r\n \t ((MarginLayoutParams)params).setMargins(10, 10, 10, 10);\r\n \t imageView.setLayoutParams(params);*/ \r\n } \r\n } \r\n \t}catch(Exception e){\r\n \t\tLog.v(\"catch1\",e.getMessage());\r\n \t}\r\n }", "@Override\n public void onLoadingComplete(String arg0, View arg1, Bitmap arg2) {\n holder.imageView.setVisibility(View.VISIBLE);\n }" ]
[ "0.74985164", "0.7290124", "0.7193603", "0.6962549", "0.6910593", "0.6859404", "0.6816994", "0.6609791", "0.657764", "0.6449707", "0.6437019", "0.64284736", "0.63996893", "0.63717073", "0.6359767", "0.6312514", "0.627893", "0.6271124", "0.6201309", "0.61542815", "0.61541075", "0.6105426", "0.6033664", "0.60250807", "0.5997544", "0.5984129", "0.5974373", "0.5908549", "0.5864777", "0.5857656", "0.5855793", "0.5826696", "0.582435", "0.5817564", "0.5816886", "0.5814951", "0.5783738", "0.5782631", "0.5732218", "0.5721314", "0.57130206", "0.5704752", "0.5672594", "0.56636566", "0.5657618", "0.56311876", "0.56207997", "0.5599578", "0.5591092", "0.5589053", "0.55873114", "0.5585881", "0.5584968", "0.5583685", "0.55681723", "0.5554107", "0.5541936", "0.5535924", "0.55357945", "0.5534139", "0.5520638", "0.5513914", "0.5509612", "0.55062336", "0.5503091", "0.54885685", "0.5486233", "0.5482823", "0.54781574", "0.5473405", "0.54495585", "0.5443163", "0.5441607", "0.5439885", "0.5439009", "0.5437581", "0.5431732", "0.5428327", "0.54265845", "0.5419909", "0.5415638", "0.54120976", "0.5403187", "0.5396118", "0.5395186", "0.5388205", "0.538662", "0.53840715", "0.5374807", "0.5374518", "0.53743815", "0.5367679", "0.536612", "0.5364875", "0.5351293", "0.53467834", "0.5335665", "0.5325046", "0.5324648", "0.53242403" ]
0.71954
2
Servo servo = new Servo(0);
@Override public void teleopInit() { /* factory default values */ _talonL1.configFactoryDefault(); _talonL2.configFactoryDefault(); _talonR1.configFactoryDefault(); _talonR2.configFactoryDefault(); /* flip values so robot moves forward when stick-forward/LEDs-green */ _talonL1.setInverted(true); // <<<<<< Adjust this _talonL2.setInverted(true); // <<<<<< Adjust this _talonR1.setInverted(true); // <<<<<< Adjust this _talonR2.setInverted(true); // <<<<<< Adjust this /* * WPI drivetrain classes defaultly assume left and right are opposite. call * this so we can apply + to both sides when moving forward. DO NOT CHANGE */ _drive.setRightSideInverted(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static RCServo PhidgetMotorMover() {\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Constructing MotorMover\");\n\t\t\tservo = new RCServo();\n\t\t\t// Start listening for motor interaction\n\t\t\tservo.open(2000);\n\t\t} catch (PhidgetException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn servo;\n\t}", "public Shooter() {\n servo.set(ShooterConstants.Servo_Down);\n \n \n }", "public DashboardServo(Servo servo) {\n this.servo = servo;\n Dashboard.addServo(this);\n id = Dashboard.getServos().indexOf(this);\n }", "public Camera(){\n // servoPan = new Servo(PAN);\n servoTilt = new Servo(TILT);\n }", "public SiLabsC8051F320_USBIO_ServoController() {\r\n interfaceNumber=0;\r\n if(UsbIoUtilities.usbIoIsAvailable){\r\n pnp=new PnPNotify(this);\r\n pnp.enablePnPNotification(GUID);\r\n }\r\n Runtime.getRuntime().addShutdownHook(new Thread(){\r\n @Override\r\n public void run(){\r\n if(isOpen()){\r\n close();\r\n }\r\n }\r\n });\r\n servoQueue=new ArrayBlockingQueue<ServoCommand>(SERVO_QUEUE_LENGTH);\r\n }", "public Servos() {\n\n }", "CameraServoMount(){\r\n\t\tpan_servo = new Servo(PAN_SERVO_PORT);\r\n\t\ttilt_servo = new Servo(TILT_SERVO_PORT);\r\n\t\tsetCameraPos(startupPos);\r\n\t\t\r\n\t}", "private void testServo(){\n\n if (gamepad1.y) {\n servoLeft.setDirection(Servo.Direction.REVERSE);\n servoLeft.setPosition(0.5);\n servoRight.setDirection(Servo.Direction.REVERSE);\n servoRight.setPosition(0.5);\n\n }\n if (gamepad1.x) {\n servoLeft.setDirection(Servo.Direction.FORWARD);\n servoLeft.setPosition(0.1);\n servoRight.setDirection(Servo.Direction.FORWARD);\n servoRight.setPosition(0.1);\n }\n //Should theoretically move the servo back and forth\n\n }", "@Override\r\n public void setServoValue(int servo, float value){\r\n checkServoCommandThread();\r\n // the message consists of\r\n // msg header: the command code (1 byte)\r\n // servo to control, 1 byte\r\n // servo PWM PCA capture-compare register value, 2 bytes, this encodes the LOW time of the PWM output\r\n // \t\t\t\tthis is send MSB, then LSB (big endian)\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[4];\r\n cmd.bytes[0]=CMD_SET_SERVO;\r\n cmd.bytes[1]=(byte)getServo(servo);\r\n byte[] b=pwmValue(value);\r\n cmd.bytes[2]=b[0];\r\n cmd.bytes[3]=b[1];\r\n submitCommand(cmd);\r\n lastServoValues[getServo(servo)]=value;\r\n }", "public void servoOn() throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(svonChannel, 1, 2.0);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to turn servos on\", e);\n \t\t}\n \t}", "public double getServo() {\n\t\treturn servo.getPosition();\n\t}", "public void initServos() throws InterruptedException{\r\n servoKickstandRight.setPosition(posKickstandRight);\r\n servoKickstandLeft.setPosition(posKickstandLeft);\r\n servoBucket.setPosition(posBucket);\r\n }", "public void setServo(int servoNum, float pos) throws ConnectionLostException, InterruptedException {\n\t\t\t\tLOG.debug(\"setServo call: servo: {}, value: {}\", servoNum, pos);\n\t\t\t\tsetPulseWidth(servoNum, pos + 1.0f); //\n\t\t\t}", "public void setServo(double position){\n this.armServo.set(position);\n // Range is from 0.0 (left) to 1.0 (right)\n }", "public byte getServo(int servo){\r\n return (byte)(getNumServos()-servo-1);\r\n }", "protected void initializeServos() {\n servoJewelArm.setPosition(JEWEL_ARM_IN);\n servoJewelFlicker.setPosition(JEWEL_FLICKER_START);\n servoGlyphSingleTop.setPosition(GLYPH_GRIPPER_SINGLE_TOP_OPEN);\n servoGlyphSingleBot.setPosition(GLYPH_GRIPPER_SINGLE_BOT_OPEN);\n servoRelicHand.setPosition(RELIC_HAND_CLOSED);\n servoRelicArm.setPosition(RELIC_ARM_START);\n servoGlyphSpinner.setPosition(SPINNER_SINGLE_TOP);\n servoJewelGate.setPosition(JEWEL_GATE_CLOSED);\n }", "new LED();", "@Override\n public void start() {\n fireServo.setPosition(STANDBY_SERVO);\n runtime.reset();\n }", "public Motors(String com) throws SerialPortException {\r\n controArduino = new ControlArduino(com);\r\n servo_pos = new int[6];\r\n servo_pos[0] = 1500;\r\n servo_pos[1] = 1500;\r\n servo_pos[2] = 1500;\r\n servo_pos[3] = 1500;\r\n servo_pos[4] = 1500;\r\n servo_pos[5] = 1500;\r\n double thetas[] = new double[6];\r\n updateMotors(thetas);\r\n }", "@Override\n public void init() {\n\n try {\n\n // Get wheel motors\n wheelMotor1 = hardwareMap.dcMotor.get(\"Wheel 1\");\n wheelMotor2 = hardwareMap.dcMotor.get(\"Wheel 2\");\n\n // Initialize wheel motors\n wheelMotor1.setMode(DcMotorController.RunMode.RUN_WITHOUT_ENCODERS);\n wheelMotor2.setMode(DcMotorController.RunMode.RUN_WITHOUT_ENCODERS);\n wheelMotor1.setDirection(DcMotor.Direction.FORWARD);\n wheelMotor2.setDirection(DcMotor.Direction.REVERSE);\n robotDirection = DriveMoveDirection.Forward;\n motion = new Motion(wheelMotor1, wheelMotor2);\n\n // Get hook motor\n motorHook = hardwareMap.dcMotor.get(\"Hook\");\n motorHook.setDirection(DcMotor.Direction.REVERSE);\n\n // Get servos\n servoTapeMeasureUpDown = hardwareMap.servo.get(\"Hook Control\");\n servoClimberDumperArm = hardwareMap.servo.get(\"Climber Dumper Arm\");\n servoDebrisPusher = hardwareMap.servo.get(\"Debris Pusher\");\n servoZipLineLeft = hardwareMap.servo.get(\"Zip Line Left\");\n servoZipLineRight = hardwareMap.servo.get(\"Zip Line Right\");\n servoAllClearRight = hardwareMap.servo.get (\"All Clear Right\");\n servoAllClearLeft = hardwareMap.servo.get (\"All Clear Left\");\n\n setServoPositions();\n }\n catch (Exception ex)\n {\n telemetry.addData(\"error\", ex.getMessage());\n }\n }", "@Override\r\n public void disableServo(int servo) {\r\n checkServoCommandThread();\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[2];\r\n cmd.bytes[0]=CMD_DISABLE_SERVO;\r\n cmd.bytes[1]=(byte)getServo(servo);\r\n submitCommand(cmd);\r\n }", "public void servoOff() throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(svonChannel, 0, 2.0);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to turn servos on\", e);\n \t\t}\n \t}", "public SiLabsC8051F320_USBIO_ServoController(int devNumber) {\r\n this();\r\n this.interfaceNumber=devNumber;\r\n }", "public SerialServoController(ControllerConf config) {\n\t\tsuper(config);\n\t\tmyChangeMonitor.addAction(PROP_ERROR_MESSAGES, new PropertyChangeAction() {\n\t\t\t@Override\n\t\t\tprotected void run(PropertyChangeEvent event) {\n\t\t\t\tfirePropertyChange(PROP_ERROR_MESSAGES, null, event.getNewValue());\n\t\t\t}\n\t\t});\n\t\tmyTimeoutLength = 100;\n\t}", "void robotPeriodic();", "void runNovo();", "@Override\npublic void teleopPeriodic() {\nm_robotDrive.arcadeDrive(m_stick.getRawAxis(5)* (-0.5), m_stick.getRawAxis(4)*0.5);\n}", "public void testPeriodic() { \n joystick1X = leftStick.getAxis(Joystick.AxisType.kX);\n joystick1Y = leftStick.getAxis(Joystick.AxisType.kY);\n joystick2X = rightStick.getAxis(Joystick.AxisType.kX);\n joystick2Y = rightStick.getAxis(Joystick.AxisType.kY);\n \n mapped1Y = joystick1Y/2 + 0.5;\n mapped1X = joystick1X/2 + 0.5;\n mapped2X = joystick2X/2 + 0.5;\n mapped2Y = joystick2Y/2 + 0.5;\n \n X1testServo.set(mapped1X);\n Y1testServo.set(mapped1Y);\n X2testServo.set(mapped2X);\n Y2testServo.set(mapped2Y);\n \n \n //System.out.println(\"X Servo Value = \" + XtestServo.get());\n //System.out.println(\"Left Joystick X Value = \" + leftStick.getX());\n //System.out.println(\"Y Servo Value = \" + YtestServo.get());\n //System.out.println(\"Left Joystick Y Value = \" + leftStick.getY());\n \n \n }", "public void setServoValuePWM(int servo, int pwmValue) {\r\n pwmValue=65535-pwmValue;\r\n checkServoCommandThread();\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[4];\r\n cmd.bytes[0]=CMD_SET_SERVO;\r\n cmd.bytes[1]=(byte)getServo(servo);\r\n cmd.bytes[2]=(byte)((pwmValue>>>8)&0xff);\r\n cmd.bytes[3]=(byte)(pwmValue&0xff);\r\n submitCommand(cmd);\r\n \r\n }", "private SpeedSliderListener()\n {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "@Override\n public void robotPeriodic() {\n }", "public TurnoVOClient() {\r\n }", "public void init() {\n delayingTimer = new ElapsedTime();\n\n // Define and Initialize Motors and Servos: //\n tailMover = hwMap.dcMotor.get(\"tail_lift\");\n grabberServo = hwMap.servo.get(\"grabber_servo\");\n openGrabber();\n\n // Set Motor and Servo Directions: //\n tailMover.setDirection(DcMotorSimple.Direction.FORWARD);\n\n tailMover.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n tailMover.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n int prevEncoder = tailMover.getCurrentPosition();\n tailMover.setPower(-0.15);\n mainHW.opMode.sleep (300);\n Log.d(\"catbot\", String.format(\"tail lift power %.2f current position %2d prev %2d\", tailMover.getPower(), tailMover.getCurrentPosition(),prevEncoder));\n runtime.reset();\n while((Math.abs(prevEncoder - tailMover.getCurrentPosition()) > 10)&& (runtime.seconds()<3.0)){\n prevEncoder = tailMover.getCurrentPosition();\n mainHW.opMode.sleep(300);\n Log.d(\"catbot\", String.format(\"tail lift power %.2f current position %2d prev %2d\", tailMover.getPower(), tailMover.getCurrentPosition(),prevEncoder));\n }\n tailMover.setPower(0.0);\n // Set Motor and Servo Modes: //\n tailMover.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n tailMover.setTargetPosition(0);\n tailMover.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n closeGrabber();\n }", "public RegistroSensor() \n {\n\n }", "public void teleopPeriodic() {\n joystick1X = leftStick.getAxis(Joystick.AxisType.kX);\n joystick1Y = leftStick.getAxis(Joystick.AxisType.kY);\n joystick2X = rightStick.getAxis(Joystick.AxisType.kX);\n joystick2Y = rightStick.getAxis(Joystick.AxisType.kY);\n \n mapped1Y = joystick1Y/2 + 0.5;\n mapped1X = joystick1X/2 + 0.5;\n mapped2X = joystick2X/2 + 0.5;\n mapped2Y = joystick2Y/2 + 0.5;\n \n X1testServo.set(mapped1X);\n Y1testServo.set(mapped1Y);\n X2testServo.set(mapped2X);\n Y2testServo.set(mapped2Y);\n }", "public Motor() {\n reInitialize();\n }", "public Servicio(String servicio){\n nombreServicio = servicio;\n }", "public PerforceSensor() {\r\n //nothing yet.\r\n }", "public BasicSensor() {}", "@Override\n\tpublic void robotPeriodic() {\n\t}", "@Override\n\tpublic void robotPeriodic() {\n\t}", "public DriveSubsystem() {\n leftFrontMotor = new TalonSRX(RobotMap.leftFrontMotor);\n rightFrontMotor = new TalonSRX(RobotMap.rightFrontMotor);\n leftBackMotor = new TalonSRX(RobotMap.leftBackMotor);\n rightBackMotor = new TalonSRX(RobotMap.rightBackMotor);\n // rightMotor.setInverted(true); \n direction = 0.75;\n SmartDashboard.putString(\"Direction\", \"Shooter side\");\n }", "public VehmonService() {\n }", "public Robot() {\t\n\t\tthis.step = myclass.STD_STEP ; \n\t\tthis.speed = myclass.STD_SPEED ; \n\t\tthis.rightM = new EV3LargeRegulatedMotor(myclass.rightP) ; \n\t\tthis.leftM = new EV3LargeRegulatedMotor(myclass.leftP) ; \n\t}", "public DriveTrain (int motorChannelL1,int motorChannelL2,int motorChannelR1,int motorChannelR2 ){\n leftMotor1 = new Victor(motorChannelL1);\n leftMotor2 = new Victor(motorChannelL2);\n rightMotor1 = new Victor(motorChannelR1);\n rightMotor2 = new Victor(motorChannelR2);\n highDrive = new RobotDrive(motorChannelL1, motorChannelR1);\n lowDrive = new RobotDrive(motorChannelL2, motorChannelR2);\n \n }", "public void update() {\n Dashboard.sendToDash(\"/update Servo \" + id + \" \" + servo.getPosition());\n }", "@Override\r\n public float getLastServoValue(int servo){\r\n return lastServoValues[getServo(servo)];\r\n }", "public SMPFXController() {\n\n }", "public Atendiendo(Robot robot){\n this.robot = robot;\n }", "public Drivetrain(){\r\n LeftSlave.follow(LeftMaster);\r\n RightSlave.follow(RightMaster);\r\n\r\n RightMaster.setInverted(true);\r\n LeftMaster.setInverted(true);\r\n\r\n gyro.reset();\r\n}", "public ArduinoComm() {\r\n\t\tsetup();\r\n\t}", "public VOCSesame () {\n }", "public Puertos() {\n estaDisponibleServerSocket();\n }", "public void autonomousPeriodic() {\n\n }", "public void autonomousPeriodic() {\n\n }", "public MovimientoControl() {\n }", "public IRSensorSubsystem() {\n\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n // ros_string = workingSerialCom.read();\n // yavuz = workingSerialCom.StringConverter(ros_string, 2);\n // Inverse.Inverse(yavuz);\n\n // JoystickDrive.execute();\n\n\n\n // ros_string = workingSerialCom.read();\n // alt_yurur = workingSerialCom.StringConverter(ros_string, 1);\n // robot_kol = workingSerialCom.StringConverter(ros_string, 2);\n Full.Full(yavuz);\n \n }", "public ControlWorker(Socket socket) {\n \n }", "public void autonomousPeriodic() {\r\n \r\n }", "public interface IMotor\n{\n /**\n * Function that should be called periodically, typically from\n * the using swerve module's `periodic` function.\n */\n default void periodic()\n {\n // no-op\n }\n\n /**\n * Set the RPM goal, in revolutions per minute. The implementing class is\n * expected to cause the motor to maintain this RPM, through the use of PIDs\n * or similar mechanism.\n *\n * @param goalRPM\n * The requested RPM to be maintained\n */\n void setGoalRPM(double goalRPM);\n\n /**\n * Get the current encoder-ascertained velocity of the motor, in RPM\n */\n public double getVelocityRPM();\n}", "public Interfaz() {\n initComponents();\n ArduinoConnection();\n }", "public void autonomousPeriodic() {\n \n }", "public OI(){\n driveStick = new Joystick(RobotMap.DRIVE_STICK);\n armStick = new Joystick(RobotMap.ARM_STICK);\n assoc(); \n }", "public Motor(MotorType type)\n {\n gpio = GpioSingleton.getInstance().get();\n \n // initialise instance variables\n if (type == MotorType.LEFT)\n {\n speedPin = gpio.provisionPwmOutputPin(RaspiPin.GPIO_23, \"SPEED\", 0);\n forwardPin = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_24, \"FORWARD\", PinState.LOW);\n backwardPin = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_25, \"BACKWARD\", PinState.LOW);\n }\n else if (type == MotorType.RIGHT)\n {\n speedPin = gpio.provisionPwmOutputPin(RaspiPin.GPIO_26, \"SPEED\", 0);\n forwardPin = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_27, \"FORWARD\", PinState.LOW);\n backwardPin = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_28, \"BACKWARD\", PinState.LOW);\n }\n // set shutdown state for this input pin\n speedPin.setShutdownOptions(true);\n forwardPin.setShutdownOptions(true);\n backwardPin.setShutdownOptions(true);\n }", "@Override\n public void execute() {\n mShooter.setAngle(mServoAngle);\n }", "public Servidor(Socket s) {\r\n\t\tconexao = s;\r\n\t}", "private void testRelease()\n {\n if(gamepad1.x) {\n // move to 0 degrees.\n servoLeft.setPosition(0);\n //servoRight.setPosition(0);\n }\n telemetry.addData(\"Servo Left Posit++backInc;ion\", servoLeft.getPosition());\n //telemetry.addData(\"Servo Right Position\", servoRight.getPosition());\n }", "public static void init() {\n driveLeft = new VictorSP(1);\r\n LiveWindow.addActuator(\"Drive\", \"Left\", (VictorSP) driveLeft);\r\n \r\n driveRight = new VictorSP(0);\r\n LiveWindow.addActuator(\"Drive\", \"Right\", (VictorSP) driveRight);\r\n \r\n driveMotors = new RobotDrive(driveLeft, driveRight);\r\n \r\n driveMotors.setSafetyEnabled(false);\r\n driveMotors.setExpiration(0.1);\r\n driveMotors.setSensitivity(0.5);\r\n driveMotors.setMaxOutput(1.0);\r\n\r\n driveEncoderLeft = new Encoder(0, 1, true, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderLeft\", driveEncoderLeft);\r\n driveEncoderLeft.setDistancePerPulse(0.053855829);\r\n driveEncoderLeft.setPIDSourceType(PIDSourceType.kRate);\r\n driveEncoderRight = new Encoder(2, 3, false, EncodingType.k1X);\r\n LiveWindow.addSensor(\"Drive\", \"EncoderRight\", driveEncoderRight);\r\n driveEncoderRight.setDistancePerPulse(0.053855829);\r\n driveEncoderRight.setPIDSourceType(PIDSourceType.kRate);\r\n driveFrontSonar = new Ultrasonic(4, 5);\r\n LiveWindow.addSensor(\"Drive\", \"FrontSonar\", driveFrontSonar);\r\n \r\n shooterMotor = new VictorSP(3);\r\n LiveWindow.addActuator(\"Shooter\", \"Motor\", (VictorSP) shooterMotor);\r\n \r\n climberMotor = new Spark(2);\r\n LiveWindow.addActuator(\"Climber\", \"Motor\", (Spark) climberMotor);\r\n \r\n gearGrabReleaseSolonoid = new DoubleSolenoid(0, 0, 1);\r\n LiveWindow.addActuator(\"Gear\", \"GrabReleaseSolonoid\", gearGrabReleaseSolonoid);\r\n \r\n powerPanel = new PowerDistributionPanel(0);\r\n LiveWindow.addSensor(\"Power\", \"Panel\", powerPanel);\r\n \r\n cameraMountpan = new Servo(4);\r\n LiveWindow.addActuator(\"CameraMount\", \"pan\", cameraMountpan);\r\n \r\n cameraMounttilt = new Servo(5);\r\n LiveWindow.addActuator(\"CameraMount\", \"tilt\", cameraMounttilt);\r\n \r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS\r\n\t\tdriveSonarFront = new SonarMB1010(0);\r\n\t\tLiveWindow.addSensor(\"Drive\", \"SonarFront\", driveSonarFront);\r\n\r\n\t\t//driveGyro = new GyroADXRS453();\r\n\t\tdriveGyro = new ADXRS450_Gyro();\r\n\t\tLiveWindow.addSensor(\"Drive\", \"Gyro\", driveGyro);\r\n\t\tdriveGyro.calibrate();\r\n\t}", "public TRIP_Sensor () {\n super();\n }", "public Swiper() {\n\n }", "Port createPort();", "Port createPort();", "public DownChannel()\n {\n\n }", "public SensorStation(){\n\n }", "@Override\n public void robotInit() {\n // Instantiate our RobotContainer. This will perform all our button bindings, and put our\n // autonomous chooser on the dashboard.\n m_robotContainer = new RobotContainer();\n \n left_motor_1= new CANSparkMax(2,MotorType.kBrushless);\n left_motor_2=new CANSparkMax(3,MotorType.kBrushless);\n right_motor_1=new CANSparkMax(5,MotorType.kBrushless);\n right_motor_2=new CANSparkMax(6,MotorType.kBrushless);\n ball_collection_motor=new CANSparkMax(4,MotorType.kBrushless);\n left_high_eject=new CANSparkMax(1, MotorType.kBrushless);\n right_high_eject=new CANSparkMax(7,MotorType.kBrushless);\n left_belt=new TalonSRX(9);\n right_belt=new TalonSRX(11);\n left_low_eject=new TalonSRX(8);\n right_low_eject=new TalonSRX(12);\n double_solenoid_1=new DoubleSolenoid(0,1);\n joystick=new Joystick(1);\n servo=new Servo(0);\n if_correted=false;\n xbox_controller=new XboxController(0);\n servo_angle=1;\n eject_speed=0;\n go_speed=0;\n turn_speed=0;\n high_eject_run=false;\n clockwise=false;\n left_motor_1.restoreFactoryDefaults();\n left_motor_2.restoreFactoryDefaults();\n right_motor_1.restoreFactoryDefaults();\n right_motor_2.restoreFactoryDefaults();\n \n left_motor_2.follow(left_motor_1);\n right_motor_1.follow(right_motor_2);\n servo.set(0);\n currentServoAngle = 0;\n factor = 0.01;\n pushed = false;\n //right_high_eject.follow(left_high_eject);\n //right_low_eject.follow(left_low_eject);\n\n }", "@Override\n public void init() {\n \n \n rightFront = hardwareMap.dcMotor.get(\"frontR\");\n rightBack = hardwareMap.dcMotor.get(\"backR\");\n \n \n \n rightFront.setDirection(DcMotor.Direction.FORWARD); \n rightBack.setDirection(DcMotor.Direction.FORWARD);\n \n \n \n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Say\", \"Hello Driver\"); //\n }", "@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}", "public void victorTest(){\n\n victorTestController.set(0.5);\n }", "public void autonomousPeriodic()\r\n {\r\n \r\n }", "protected abstract boolean setServos();", "public void init(HardwareMap ahwMap) {\n\n// Giving hwMap a value\n hwMap = ahwMap;\n\n// Declaring servos to use in other classes\n claw = hwMap.get(Servo.class, \"servoClaw\");\n clawLeft = hwMap.get(Servo.class, \"servoClawLeft\");\n clawRight = hwMap.get(Servo.class, \"servoClawRight\");\n }", "private void setServoPositions() {\n servoTapeMeasureUpDown.setPosition(HOOK_MAX_POSITION);\n\n double climberDumperPosition = servoClimberDumperArm.getPosition();\n servoClimberDumperArm.setPosition(CLIMBER_DUMPER_ARM_IN);\n\n servoZipLineLeft.setPosition(ZIP_LINE_LEFT_UP_POSITION);\n servoZipLineRight.setPosition(ZIP_LINE_RIGHT_UP_POSITION);\n servoAllClearLeft.setPosition(ALL_CLEAR_LEFT_INIT_POSITION);\n servoAllClearRight.setPosition(ALL_CLEAR_RIGHT_UP_POSITION);\n initializeDebrisPusher();\n }", "public void stop() {\n m_servo.setSpeed(0.0);\n }", "public HangerSubsystem() {\n // WRITE CODE BETWEEN THESE LINES -------------------------------------------------------- //\n // TODO: configure and initialize motor (if necessary)\n\n // TODO: configure and initialize sensor (if necessary)\n\n // ^^-----------------------------------------------------------------------------------^^ //\n }", "public static void moveServoTo(double motorPosition) {\n\t\ttry {\n\t\t\t// Get the servo that is available\n\t\t\tMotorMover.getInstance();\n\t\t\tSystem.out.println(\"Lock opening: Moving to lock position \" + motorPosition);\n\t\t\tservo.setMaxPosition(210.0);\n\t\t\tservo.setTargetPosition(motorPosition);\n\t\t\tservo.setEngaged(true);\n\t\t} catch (PhidgetException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void robotPeriodic() {\n // m_driveTrain.run(gulce);\n\n\n\n // workingSerialCom.StringConverter(ros_string, 2);\n // RoboticArm.run( workingSerialCom.StringConverter(ros_string, 2));\n }", "public void autonomousPeriodic() {\n }", "public void autonomousPeriodic() {\n }", "@Override\n public void init() {\n robot.init(hardwareMap, telemetry, false);\n //robot.resetServo();\n telemetry.addData(\"Status\", \"Initialized\");\n telemetry.addData(\"Status\", \"Initialized\");\n // robot.FL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n // robot.FR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n // robot.BL.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n // robot.BR.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n\n }", "@Override\n public void autonomousPeriodic() {\n \n }", "public Timer() {}", "public ControlCenter(){\n serverConnect = new Sockets();\n serverConnect.startClient(\"127.0.0.1\", 5000);\n port = 5000;\n }", "public static void main(String[] args) throws InterruptedException {\n // Create a gamepad\n JInputJoystick gamepad = new JInputJoystick(Controller.Type.STICK, Controller.Type.GAMEPAD);\n\n // Check if a gamepad was found.\n if (!gamepad.isControllerConnected()){\n Logger.info(\"No gamepad controller found!\");\n System.exit(1);\n }\n\n // Instantiate hardware\n// Servo.Trim trim = new Servo.Trim(1.5f, 1.5f, 1.3f, 1.7f); // For slow parallax 360 rotation servos\n Servo.Trim trim = new Servo.Trim(1.5f, 1.5f, 1.28f, 1.72f);\n try (Servo leftWheelServo = new Servo(leftWheelPin, trim.getMaxPulseWidthMs(), 50, trim);\n Servo rightWheelServo = new Servo(rightWheelPin, trim.getMinPulseWidthMs(), 50, trim)) {\n leftWheelServo.setInverted(true);\n\n // Set up communication with servo feedback encoders\n DigisparkFeedbackEncoder digisparkFeedbackEncoder = new DigisparkFeedbackEncoder();\n ParallaxHallEffectFeedbackSensor leftWheelFeedbackSensor = \n new ParallaxHallEffectFeedbackSensor(digisparkFeedbackEncoder, ParallaxHallEffectFeedbackSensor.WheelSide.LEFT);\n ParallaxHallEffectFeedbackSensor rightWheelFeedbackSensor = \n new ParallaxHallEffectFeedbackSensor(digisparkFeedbackEncoder, ParallaxHallEffectFeedbackSensor.WheelSide.RIGHT);\n\n // Set up the operator interface so we can get joystick feedback\n OperatorInterface operatorInterface = new OperatorInterface(gamepad);\n\n // Start the command scheduler\n SchedulerTask schedulerTask = new SchedulerTask(Scheduler.getInstance());\n schedulerTask.start();\n Logger.info(\"Robot command scheduler started.\");\n\n // Instantiate subsystems\n DriveTrain driveTrain = new DriveTrain(\n trim, \n leftWheelServo, \n rightWheelServo, \n digisparkFeedbackEncoder,\n leftWheelFeedbackSensor, \n rightWheelFeedbackSensor, \n operatorInterface);\n\n while (true) {\n Thread.sleep(100);\n }\n }\n }", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n \n // m_driveTrain.driveBase();\n\n // ros_string = workingSerialCom.read();\n // System.out.println(ros_string);\n // gulce = workingSerialCom.StringConverter(ros_string, 1);\n // m_driveTrain.run(gulce);\n // // System.out.println(Robot.m_driveTrain.driveTrainRightFrontMotor.getSelectedSensorVelocity());\n\n // LeftFront = (Robot.m_driveTrain.driveTrainLeftFrontMotor.getSelectedSensorVelocity()*6)/4096;\n // RightFront = (Robot.m_driveTrain.driveTrainRightFrontMotor.getSelectedSensorVelocity()*6)/4096;\n // LeftFront_ros = workingSerialCom.floattosString(LeftFront);\n // RigthFront_ros = workingSerialCom.floattosString(RightFront);\n\n // workingSerialCom.write(\"S\"+LeftFront_ros+\",\"+RigthFront_ros+\"F\"+\"\\n\");\n\n }" ]
[ "0.73300576", "0.73234475", "0.71903735", "0.7091249", "0.70591193", "0.6987357", "0.6956422", "0.6651335", "0.64846814", "0.647596", "0.6419804", "0.63904285", "0.63226575", "0.63078064", "0.6274902", "0.6171669", "0.6156376", "0.6126489", "0.6112786", "0.61031455", "0.60820377", "0.60720533", "0.59420884", "0.58877957", "0.5842103", "0.5822114", "0.5816374", "0.5802564", "0.5771795", "0.57254314", "0.5724708", "0.5724708", "0.5724708", "0.5724708", "0.5724708", "0.5724708", "0.56917405", "0.5685897", "0.56524855", "0.56420326", "0.5626777", "0.5625673", "0.56191176", "0.561678", "0.5614001", "0.5614001", "0.55721796", "0.5552518", "0.554992", "0.5506375", "0.5503721", "0.5485565", "0.5474993", "0.54357064", "0.5429072", "0.542565", "0.5410403", "0.54020464", "0.5391279", "0.5391279", "0.53779954", "0.53694105", "0.53571", "0.5356586", "0.5349887", "0.5346621", "0.5330856", "0.53273624", "0.53208274", "0.53161335", "0.53073096", "0.53066933", "0.53033733", "0.5290134", "0.52813685", "0.52746105", "0.5270688", "0.5270688", "0.5263186", "0.5251357", "0.5250894", "0.5250242", "0.524397", "0.524397", "0.52355915", "0.52286637", "0.52186215", "0.52181804", "0.5201628", "0.52007115", "0.5199233", "0.5198388", "0.51926845", "0.51847774", "0.51847774", "0.51838523", "0.51791465", "0.5178017", "0.51731026", "0.5170605", "0.5166081" ]
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof ActividadNovedad)) { return false; } ActividadNovedad other = (ActividadNovedad) object; if ((this.idActividadNovedad == null && other.idActividadNovedad != null) || (this.idActividadNovedad != null && !this.idActividadNovedad.equals(other.idActividadNovedad))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.6477893", "0.6426692", "0.6418966", "0.6416817", "0.6401561", "0.63664836", "0.63549376", "0.63515353", "0.6347672", "0.6324549", "0.6319196", "0.6301484", "0.62935394", "0.62935394", "0.62832105", "0.62710917", "0.62661785", "0.6265274", "0.6261401", "0.6259253", "0.62559646", "0.6251244", "0.6247282", "0.6247282", "0.6245526", "0.6238957", "0.6238957", "0.6232451", "0.62247443", "0.6220427", "0.6219304", "0.6211484", "0.620991", "0.62023336", "0.62010616", "0.6192621", "0.61895776", "0.61895776", "0.61893976", "0.61893976", "0.61893976", "0.6184292", "0.618331", "0.61754644", "0.6173718", "0.6168409", "0.6166131", "0.6161708", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.61556244", "0.61556244", "0.61430943", "0.61340135", "0.6128617", "0.6127841", "0.61065215", "0.61043483", "0.61043483", "0.6103568", "0.61028486", "0.61017346", "0.6101399", "0.6098963", "0.6094214", "0.6094", "0.6093529", "0.6093529", "0.6091623", "0.60896", "0.6076881", "0.60723215", "0.6071593", "0.6070138", "0.6069936", "0.6069529" ]
0.0
-1
Check that JBoss is up!
protected boolean isJBossUp() { try { URLConnection connection = new URL(jbossHttpUrl).openConnection(); if (!(connection instanceof HttpURLConnection)) { throw new IllegalStateException("Not an http connection! " + connection); } HttpURLConnection httpConnection = (HttpURLConnection) connection; httpConnection.connect(); if (httpConnection.getResponseCode() != HttpURLConnection.HTTP_OK) { return false; } } catch (Exception e) { return false; } log.info("Successfully connected to JBoss AS at " + jbossHttpUrl); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void doCheckHealthy();", "public void testServiceAvailable() throws Exception {\r\n\t\tServiceReference serviceReference = \r\n\t\t\tgetContext().getServiceReference(\"org.osgi.service.jndi.JNDIProviderAdmin\");\r\n\t\tassertNotNull(\"JNDIProviderAdmin service was not published as expected\", serviceReference);\r\n\t\t\r\n\t\tJNDIProviderAdmin contextAdmin = \r\n\t\t\t(JNDIProviderAdmin) getContext().getService(serviceReference);\r\n\t\tassertNotNull(\"JNDIProviderAdmin service not available via factory\", contextAdmin);\r\n\t}", "public void checkContainer() {\n // http://stackoverflow.com/questions/2976884/detect-if-running-in-servlet-container-or-standalone\n try {\n new InitialContext().lookup(\"java:comp/env\");\n log.info(\"Running inside servlet container. Explicit server creation skipped\");\n return;\n } catch (NamingException ex) {\n // Outside of container\n }\n\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n boolean boolean0 = DBUtil.existsEnvironment(\"alter session\");\n assertFalse(boolean0);\n }", "boolean hasServerHello();", "boolean hasServer();", "private void CheckIfServiceIsRunning() {\n\t\tLog.i(\"Convert\", \"At isRunning?.\");\n\t\tif (eidService.isRunning()) {\n//\t\t\tLog.i(\"Convert\", \"is.\");\n\t\t\tdoBindService();\n\t\t} else {\n\t\t\tLog.i(\"Convert\", \"is not, start it\");\n\t\t\tstartService(new Intent(IDManagement.this, eidService.class));\n\t\t\tdoBindService();\n\t\t}\n\t\tLog.i(\"Convert\", \"Done isRunning.\");\n\t}", "boolean isShutdownGraceful();", "public boolean isDeployed(String deploymentUnitId) {\n\t\treturn false;\n\t}", "boolean hasHost();", "boolean hasHost();", "int getHappiness();", "protected boolean enableDNSAndTestConfigUpdate() throws Throwable {\n if (enableDNS() &&\n rebootAndWait(\"all\") &&\n verifyHivecfg() //&&\n //upgradeChecker()\n ) {\n okToProceed = true;\n return true;\n }\n return false;\n }", "private boolean checkServiceIsRunning(){\r\n if (CurrentLocationUtil.isRunning()){\r\n doBindService();\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "@Test(timeOut = DEFAULT_TEST_TIMEOUT, enabled=true)\n public void testFailedMachineWhileEsmIsDown() throws Exception {\n deployPu();\n // hold reference to agent before restarting the lus \n final GridServiceAgent agent = getAgent(pu);\n final ElasticServiceManager[] esms = admin.getElasticServiceManagers().getManagers();\n assertEquals(\"Expected only 1 ESM instance. instead found \" + esms.length, 1, esms.length);\n killEsm();\n machineFailover(agent);\n assertUndeployAndWait(pu);\n }", "public boolean isServiceReady();", "private boolean checkMachineAvailable ()\n throws Exception\n {\n try {\n log.info(\"Claiming free machine\");\n\n Machine freeMachine = Machine.getFreeMachine(session);\n if (freeMachine == null) {\n Scheduler scheduler = Scheduler.getScheduler();\n log.info(String.format(\n \"No machine available for scheduled sim %s, retry in %s seconds\",\n game.getGameId(), scheduler.getSchedulerInterval() / 1000));\n return false;\n }\n\n game.setMachine(freeMachine);\n freeMachine.setStateRunning();\n session.update(freeMachine);\n log.info(String.format(\"Game: %s running on machine: %s\",\n game.getGameId(), game.getMachine().getMachineName()));\n return true;\n } catch (Exception e) {\n log.warn(\"Error claiming free machine for game \" + game.getGameId());\n throw e;\n }\n }", "boolean hasServiceName();", "boolean hasServiceName();", "public boolean isServiceRunning();", "protected boolean waitForServerUp(String host, int port, long timeout) {\n long start = System.currentTimeMillis();\n while (true) {\n try {\n String result = send4LetterWord(host, port, \"stat\");\n if (result.startsWith(\"Zookeeper version:\")) {\n return true;\n }\n } catch (IOException e) {\n // ignore as this is expected\n LOG.info(\"server \" + host + \":\" + port + \" not up yet\");\n LOG.debug(\"Exception message\", e);\n }\n\n if (System.currentTimeMillis() > start + timeout) {\n break;\n }\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n return false;\n }\n }\n return false;\n }", "boolean hasServerState();", "@Test(groups = { \"Integration\" })\n public void testNonStandardPort() throws Exception {\n redis = app.createAndManageChild(EntitySpec.create(RedisStore.class)\n .configure(RedisStore.REDIS_PORT, PortRanges.fromString(\"10000+\")));\n app.start(ImmutableList.of(loc));\n\n EntityAsserts.assertAttributeEqualsEventually(redis, Startable.SERVICE_UP, true);\n JedisSupport support = new JedisSupport(redis);\n support.redisTest();\n\n // Increase timeout because test was failing on jenkins sometimes. The log shows only one \n // call to `info server` (for obtaining uptime) which took 26 seconds; then 4 seconds later \n // this assert failed (with it checking every 500ms). The response did correctly contain\n // `uptime_in_seconds:27`.\n EntityAsserts.assertPredicateEventuallyTrue(ImmutableMap.of(\"timeout\", Duration.FIVE_MINUTES), redis, new Predicate<RedisStore>() {\n @Override public boolean apply(@Nullable RedisStore input) {\n return input != null &&\n input.getAttribute(RedisStore.UPTIME) > 0 &&\n input.getAttribute(RedisStore.TOTAL_COMMANDS_PROCESSED) >= 0 &&\n input.getAttribute(RedisStore.TOTAL_CONNECTIONS_RECEIVED) >= 0 &&\n input.getAttribute(RedisStore.EXPIRED_KEYS) >= 0 &&\n input.getAttribute(RedisStore.EVICTED_KEYS) >= 0 &&\n input.getAttribute(RedisStore.KEYSPACE_HITS) >= 0 &&\n input.getAttribute(RedisStore.KEYSPACE_MISSES) >= 0;\n }\n });\n }", "private boolean checkBootstrap ()\n {\n if (game.hasBootstrap()) {\n return true;\n } else {\n log.info(\"Game: \" + game.getGameId() + \" reports that boot is not ready!\");\n game.setStateBootPending();\n return false;\n }\n }", "@Test\n public void testConnectToInvalidService()\n throws IOException\n {\n final boolean availability = ConnectionChecker.checkServiceAvailability(\"localhost\", 65534, 3000);\n\n assertFalse(availability);\n }", "boolean getHealthy();", "boolean isInstalled();", "@Test(groups = { \"Integration\" })\n public void canStartupAndShutdown() throws Exception {\n redis = app.createAndManageChild(EntitySpec.create(RedisStore.class));\n app.start(ImmutableList.of(loc));\n\n EntityAsserts.assertAttributeEqualsEventually(redis, Startable.SERVICE_UP, true);\n\n redis.stop();\n\n EntityAsserts.assertAttributeEqualsEventually(redis, Startable.SERVICE_UP, false);\n }", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "boolean isAvailable();", "public void testGetUptime() {\n assertTrue(mb.getUptime() > -1);\n }", "@Override\n\tpublic void checkMaintenanceStatus() {\n\t}", "private void checkState() throws DDEException\n {\n if (nativeDDEServer == 0)\n throw new DDEException(\"Server was not started.\");\n }", "@Test\n public void testDeployedStateNotDeployedService() {\n cleanUp();\n\n State state = makeState(1L, \"State 1\");\n deployedServiceDataService.create(new DeployedService(state, Service.MOBILE_ACADEMY));\n\n assertFalse(propertyService.isServiceDeployedInState(Service.KILKARI, state));\n }", "public boolean setupEnableDNS() throws Throwable {\n okToProceed = false;\n Log.INFO(\" Enables DNS on the cluster and reboots\");\n Log.INFO(\" Verifies hivecfg settings are correct\");\n return enableDNSAndTestConfigUpdate();\n }", "@Test(priority = 2)\n public void verifyAppIsInstalled(){\n Assert.assertTrue(driver.isAppInstalled(bundleId), \"The App is not installed\");\n Log.info(\"App is installed\");\n }", "protected void checkHealth(MonitoredService module) {\n if (!isActive()) {\n return;\n }\n final ModuleOutputDevice moduleLog = ModuleOutputDeviceFarm.getDevice(this, ModuleLoggerMessage.LOG_OUTPUT_TYPE);\n moduleLog.associate(\"Processing heart-beat for '\" + module + \"' module\");\n moduleLog.actionBegin();\n // service is active for the moment, process module's heart-beat\n try {\n moduleLog.out(\"Saving heart-beat of module \", module.toString());\n storage.saveHeartBeat(module);\n moduleLog.out(\"Getting config updates for module \", module.toString());\n final Map<String, ConfiguredVariableItem> updated\n = configurationService.getUpdatedVariables(module, module.getConfiguration());\n if (!updated.isEmpty()) {\n moduleLog.out(\"Updating module configuration.\");\n module.configurationChanged(updated);\n }\n moduleLog.actionEnd();\n } catch (Throwable t) {\n LOG.error(\"Can't process heartbeat for module '{}'\", module, t);\n moduleLog.actionFail();\n }\n }", "public void waitServersReady() {\n }", "public boolean upnpAvailable();", "@Test\n public void registerUpdateQuickLifecycleTest() throws Exception {\n applicationInfoManager.setInstanceStatus(InstanceInfo.InstanceStatus.UP);\n applicationInfoManager.setInstanceStatus(InstanceInfo.InstanceStatus.UNKNOWN);\n applicationInfoManager.setInstanceStatus(InstanceInfo.InstanceStatus.DOWN);\n Thread.sleep(400);\n // this call will be rate limited, but will be transmitted by the automatic update after 10s\n applicationInfoManager.setInstanceStatus(InstanceInfo.InstanceStatus.UP);\n Thread.sleep(2400);\n\n Assert.assertEquals(Arrays.asList(\"DOWN\", \"UP\"), mockLocalEurekaServer.registrationStatuses);\n Assert.assertEquals(2, mockLocalEurekaServer.registerCount.get());\n }", "@Test\r\n\tpublic void smokeTest() throws Exception {\r\n\t\tcheckSite();\r\n\t}", "boolean isCollectorHostLive(String clusterName, MetricsService service) throws SystemException;", "boolean isSetupDone();", "boolean isAlive() throws RemoteException;", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "boolean hasService();", "@Test\n public void testDeployedStateAndDeployedService() {\n cleanUp();\n\n State state = makeState(1L, \"State 1\");\n deployedServiceDataService.create(new DeployedService(state, Service.MOBILE_ACADEMY));\n\n assertTrue(propertyService.isServiceDeployedInState(Service.MOBILE_ACADEMY, state));\n }", "static void deployMockEJB() throws Exception {\r\n if (!mockEJBDeployed) {\r\n // deploy ejb's to MockContainer.\r\n MockContextFactory.setAsInitial();\r\n MockContainer mockContainer = new MockContainer(new InitialContext());\r\n // Instead of LoginRemote mock ejb containere returns MockLoginBean now.\r\n SessionBeanDescriptor beanDescriptor = new SessionBeanDescriptor(LoginRemoteHome.EJB_REF_NAME,\r\n LoginRemoteHome.class, LoginRemote.class, MockLoginBean.class);\r\n mockContainer.deploy(beanDescriptor);\r\n // change deployment status. To avoid unnecessary deployment.\r\n mockEJBDeployed = true;\r\n }\r\n }", "@Test(enabled = true, groups = {\"servicetest.p1\"})\n public void testGetHealthCheck(){\n\n RestResponse<HealthCheck> healthCheckRestResponse = new ServiceWorkflow().getHealthCheck();\n Assert.assertTrue(healthCheckRestResponse.getStatus() == 200, \"Invalid Status\");\n Assert.assertEquals(healthCheckRestResponse.getBody().getService(),serviceName, \"Incorrect Service Name\");\n Assert.assertEquals(healthCheckRestResponse.getBody().getVersion(),version, \"Incorrect version\");\n }", "public boolean isDeployed(){\n return !places.isEmpty();\n }", "public boolean checkEngineStatus(){\r\n return isEngineRunning;\r\n }", "public boolean startupOK()\n {\n if (!checksDone)\n {\n success = true;\n if (clusterNodeProperties.propertyFileExists())\n {\n log.debug(\"Performing Clustering start up checks\");\n success = doStartupChecks();\n checksDone = true;\n }\n }\n return success;\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkInfoPort() {\n\t\tboolean flag = oTest.checkInfoPort();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "boolean hasToForeman();", "public static void checkDBAvailable(Configuration conf)\n throws MasterNotRunningException {\n Configuration copyOfConf = ConfigurationFactory.create(conf);\n copyOfConf.setInt(\"bigdb.client.retries.number\", 1);\n new DBAdmin(copyOfConf);\n }", "Boolean isAvailable();", "public void ondemandSetupIsDone();", "protected void checkIfReady() throws Exception {\r\n checkComponents();\r\n }", "public boolean isSetServersShuttingDown() {\n return this.serversShuttingDown != null;\n }", "boolean isStartup();", "@Test\n public void testNotDeployedStateDeployedService() {\n cleanUp();\n\n State deployed = makeState(1L, \"State 1\");\n deployedServiceDataService.create(new DeployedService(deployed, Service.MOBILE_ACADEMY));\n\n State notDeployed = makeState(2L, \"State 2\");\n\n assertFalse(propertyService.isServiceDeployedInState(Service.MOBILE_ACADEMY, notDeployed));\n }", "@Test\n public void testNotDeployedStateNotDeployedService() {\n cleanUp();\n\n State notDeployed = makeState(2L, \"State 2\");\n\n assertFalse(propertyService.isServiceDeployedInState(Service.MOBILE_ACADEMY, notDeployed));\n }", "@Test\n public void testHealthy() {\n checker.checkHealth();\n\n assertThat(checker.isHealthy(), is(true));\n }", "boolean isEphemeral();", "public boolean isViableSeed(Entity member) {\n boolean managed = Entities.isManaged(member);\n String hostname = member.getAttribute(Attributes.HOSTNAME);\n boolean serviceUp = Boolean.TRUE.equals(member.getAttribute(Attributes.SERVICE_UP));\n Lifecycle serviceState = member.getAttribute(Attributes.SERVICE_STATE);\n boolean hasFailed = !managed || (serviceState == Lifecycle.ON_FIRE) || (serviceState == Lifecycle.RUNNING && !serviceUp) || (serviceState == Lifecycle.STOPPED);\n boolean result = (hostname != null && !hasFailed);\n if (log.isTraceEnabled()) log.trace(\"Node {} in Cluster {}: viableSeed={}; hostname={}; serviceUp={}; serviceState={}; hasFailed={}\", new Object[] {member, this, result, hostname, serviceUp, serviceState, hasFailed});\n return result;\n }", "public boolean isRunning ()\n {\n return server == null ? false : true;\n }", "boolean isMonitoringTerminated();", "protected boolean isAvailable() {\r\n\t\treturn true;\r\n\t}", "boolean hasHasDeployedAirbag();", "private void isSystemReady() {\n\tif ((moStore.getAuthenticationDefinition().getQuery() == null)\n\t\t|| moStore.getJdbcConnectionDetails() == null) {\n\t moSessionStore.setSystemToHaltState();\n\n\t return;\n\t}// if ((moStore.getAuthenticationDefinition().getQuery() == null)\n\n\tmoSessionStore.setSystemToReadyState();\n }", "public void testNotReady() 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 props.setProperty(SqlDbManager.PARAM_DATASOURCE_CLASSNAME, \"java.lang.String\");\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n startService();\n assertEquals(false, sqlDbManager.isReady());\n\n Connection conn = null;\n try {\n conn = sqlDbManager.getConnection();\n } catch (SQLException sqle) {\n }\n assertNull(conn);\n\n }", "boolean hasClientHello();", "public void testTargetAwareDeployment() {\n final java.io.File appArchive = \n new java.io.File(APPLICATION);\n printAllDeployedComponents();\n //deployApplication(appArchive,getTargets());\n printAllDeployedComponents();\n //checkDeploymentPassed(\"stateless-simple\", getTargets());\n //undeployApplication(appArchive, getTargets());\n }", "Boolean isBoss();", "public String checkShouKuanDan(String name) throws RemoteException {\n String url = \"rmi://localhost:1098/\";\n String out=\"\";\n try {\n Context namingContext = new InitialContext();\n PbbService serv = (PbbService) namingContext.lookup(\n url + \"HelloService1\");\n out=serv.checkShouKuanDan(name);\n }\n catch (NamingException e) {\n e.printStackTrace();\n }\n return out;\n }", "boolean hasPort();", "boolean hasPort();", "protected boolean waitForClusterToStart() throws HoneycombTestException {\n\n Log.INFO(\"Waiting for cluster to come Online...\");\n boolean ready = false;\n int i = MAX_ONLINE_ITERATIONS;\n while (i > 0 && !ready) {\n try {\n i--;\n ArrayList lines = readSysstat();\n if (lines.toString().contains(nodesOnlineString)) {\n ready = true;\n } \n if (!ready)\n pause(SLEEP_WAKEUP_TIMEOUT);\n } catch (Throwable e) {\n pause(SLEEP_WAKEUP_TIMEOUT);\n }\n }\n if (i == 0) {\n Log.WARN(\"Cluster is not Online\");\n }\n if (!ready)\n okToProceed = false;\n return ready;\n }", "@Test(timeOut = DEFAULT_TEST_TIMEOUT, enabled=true)\n public void testFailedMachineDetailsAfterEsmRestart() throws Exception {\n deployPu();\n restartEsmAndWait();\n machineFailover(getAgent(pu));\n assertUndeployAndWait(pu);\n }", "@Override\n @Test(groups = {\"java:comp/env access\"})\n public void testJNDI00() throws Exception {\n super.testJNDI00();\n }", "@Test\n\tpublic void checkStatus() {\n\t\tclient.execute(\"1095C-16-111111\");\n\t}", "boolean hasSoftware();", "private void checkStatus() {\n if (switchOff) {\n String msg = \"Locker is switched off - no data source accessible.\";\n log.error(msg);\n throw new IllegalStateException(msg);\n }\n }", "boolean checkAvailable(String userName);", "@Override\r\n protected Result check() throws Exception {\n try {\r\n Response response = webTarget.request().get();\r\n\r\n if (!response.getStatusInfo().getFamily().equals(Response.Status.Family.SUCCESSFUL)) {\r\n\r\n return Result.unhealthy(\"Received status: \" + response.getStatus());\r\n }\r\n\r\n return Result.healthy();\r\n } catch (Exception e) {\r\n\r\n return Result.unhealthy(e.getMessage());\r\n }\r\n }", "boolean isMonitoring();", "boolean isMonitoring();", "public boolean existsHost(String name)\n {\n try\n {\n return (lookup(name)!=null); \n }\n catch (UnknownHostException e)\n {\n return false; \n }\n }", "private static boolean isServerReachable() {\n\t\treturn new PingRpcExample().pingServer();\n\t}", "boolean hasApplicationProcessInstance();", "public boolean doRemoteSetupAndVerification() throws Exception {\n return true;\n }", "Boolean isSuspendOnStart();", "public boolean isAlive() throws RemoteException;", "@Test\n public void testServerFailedToStart() throws Exception {\n var channel = new EmbeddedServerChannel();\n\n server = getServer(channel.newFailedFuture(new ClosedChannelException()), false);\n\n assertTrue(server.getBossGroup().isTerminated());\n assertTrue(server.getWorkerGroup().isTerminated());\n }", "public boolean isSSLEnabled() {\n return agentConfig.isSSLEnabled();\n }" ]
[ "0.57225245", "0.5628808", "0.55225027", "0.5498105", "0.5427401", "0.5407009", "0.538885", "0.5373444", "0.53716743", "0.53352153", "0.53352153", "0.5307318", "0.5296442", "0.5245777", "0.52359295", "0.52357376", "0.523175", "0.52265745", "0.52265745", "0.51934767", "0.51752794", "0.5171985", "0.5156408", "0.5151581", "0.51509553", "0.511366", "0.51111835", "0.5109214", "0.51074326", "0.51074326", "0.51074326", "0.51074326", "0.51042265", "0.50987655", "0.5098447", "0.5074311", "0.5064442", "0.50442886", "0.50215083", "0.50171167", "0.50091743", "0.50051284", "0.5000537", "0.50003487", "0.5000112", "0.49965897", "0.4995145", "0.4995145", "0.4995145", "0.4995145", "0.4995145", "0.4960725", "0.49531454", "0.49332064", "0.49317655", "0.49266142", "0.49248055", "0.4902865", "0.4902513", "0.48965704", "0.48902535", "0.4881673", "0.48751777", "0.4870607", "0.48651475", "0.48453057", "0.48409328", "0.48406446", "0.4833594", "0.48312038", "0.4829781", "0.48245823", "0.48216027", "0.48136258", "0.48132464", "0.4812298", "0.481127", "0.48109695", "0.48088247", "0.4802923", "0.4801683", "0.4801683", "0.4798645", "0.47846216", "0.47807416", "0.47759843", "0.47745234", "0.47722617", "0.4764933", "0.47625634", "0.4759526", "0.4759526", "0.47583175", "0.4758124", "0.47575882", "0.47539625", "0.4753856", "0.47521117", "0.47515568", "0.47459862" ]
0.768248
0
cresc modificatorii de damage pentru fiecare abilitate a jucatorului
@Override public void visit(final Knight knight) { knight.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_KNIGHT); knight.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_KNIGHT); // anunt magicianul de ajutorul ingerului knight.getEvent().anEventHappened(knight, this, "help"); // ofer Xp jucatorului pentru a trece la nivelul urmator knight.gainXp(getNewXp(knight)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeDamage(int damage);", "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "public int giveDamage();", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t}", "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }", "protected void takeDamage(int damage)\n {\n health = health - damage;\n \n }", "public void takeDamage(int damage) {\n Random rand = new Random();\n int game = rand.nextInt(51) + 75;\n double game2 = (double) game;\n double percDamage = game2/100.0;\n double realSomething = (double) damage;\n double actualDamageNotReal = realSomething * percDamage;\n int actualDamage = (int) actualDamageNotReal;\n int actualDmg = actualDamage - this.armour;\n if (actualDmg <= 0){\n actualDmg = 0;\n }\n this.health -= actualDmg;\n slowDisplay(String.format(\"%s takes %s damage, now at %s\\n\",this.name,actualDmg,this.health));\n\n }", "public void takeDamage(int damage) {\n\t\tlife = (life-damage<0)?0:life-damage;\n\t}", "@Override\n\tpublic int calculateDamage() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "private void takeDamage(int damage){ health -= damage;}", "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "public void takeDamage(int damage) {\n this.damageTaken += damage;\n }", "@Override\n public int damage() {\n int newDamage=criticalStrike();\n return newDamage;\n }", "private void subtractEnemySheild(int damage) {\n this.enemyShield -= damage;\n }", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "private float setAttackAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.attackDamageModifier = baseDamageModifier + change;\n//System.out.println(\"attack: \" + this.attackDamageModifier);\n content.put(\"attack_damage_modifier\", \"\" + this.attackDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }", "@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }", "public int takeDamage(int damage) {\n damage -= ARMOR;\r\n // set new hp\r\n return super.takeDamage(damage);\r\n }", "boolean takeDamage(DamageCount damage);", "private void subtractPlayerSheild(int damage) {\n this.playerShield -= damage;\n }", "boolean takeDamage(int dmg);", "public void takeDamage(int amount){\r\n\t\tthis.life = this.life - amount;\r\n\t}", "public void damage(int amount) {\n \tshield = shield - amount;\n }", "public void damageDevice() {\n\t\t\r\n\t}", "@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }", "@Override\n protected int strengthViability(Creature c){\n int baseViability = super.strengthViability(c);\n if (Elements.elementDamageMultiplier(c,bossFormation.getFrontCreature().getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST * 3);\n }\n if (Elements.elementDamageMultiplier(bossFormation.getFrontCreature(),c.getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST / 3);\n }\n return baseViability;\n }", "public void changeCostumeRight(){\n if(costume == 3){\n costume = 0;\n }\n else{\n costume ++;\n }\n Locker.updateCostume(costume);\n PrefLoader.updateFile();\n\n }", "public int getMetadata(int damage) {\n/* 50 */ return damage;\n/* */ }", "@Override\r\n\tpublic String attack(int damage) {\n\t\treturn damage +\"로 공격 합니다.\";\r\n\t}", "public static void damageStep () {\r\n // rough plan:\r\n // #1: flip defending monster, if face down -> see flipMonster(...);\r\n // #2: Ask CPU and player for possible effect negation! (For an attack negation it is too late!) -> see below in this method\r\n // #3: calculate damage, kill monsters, if needed\r\n // (consider also banishing and immunity, also copied passive effect of (Holy) Lance)\r\n // -> see makeDamageCalculation(...);\r\n // #4: decrease life points, if needed -> see isDealingBattleDamageAndContinuingGame(...);\r\n // #5: consider passive (also copied) trap monster effects -> see possibleSuicideEffect(...);\r\n // #6: display Win/Lose dialog and end match, if needed -> see Game.over(...);\r\n // #7: finally end the attack (consider the effects that happen afterwards), thus allowing the next attack -> endDamageStep(...);\r\n \r\n // about #1:\r\n if (Game.ActiveGuardingMonster.isFaceDown) {flipMonster(Game.ActiveGuardingMonster);}\r\n // about #2:\r\n if (Game.ActiveAttackingMonster.canBeNegated() || Game.ActiveGuardingMonster.canBeNegated()) {\r\n AIinterrupts.cpuIsUsingEffectNegateDuringBattlePhase(); // ask CPU to negate effects first\r\n // ask player to negate effect here\r\n boolean isCanceling = false;\r\n boolean hasEffectNegateHandTrap = Hand.lookForEffectNegateOnHand(true);\r\n boolean hasEffectNegateOnField = Hand.lookForEffectNegateOnField(true);\r\n if (hasEffectNegateHandTrap || hasEffectNegateOnField) {\r\n if (hasEffectNegateHandTrap && !hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (!hasEffectNegateHandTrap && hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n else {\r\n int intDialogResult = YuGiOhJi.multipleChoiceDialog(\"Do you want to negate effects on the field?\", \"You can negate passive effects.\", new String[]{\"yes, by discarding Neutraliser\", \"yes, by paying the cost worth 1 card\", \"no (default)\"}, \"no (default)\");\r\n if (intDialogResult==0) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (intDialogResult==1) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n }\r\n }\r\n if (!isCanceling) {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n }\r\n else {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n \r\n }", "public void setDamage(int d) {\r\n this.damage = d;\r\n }", "@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\r\n public void onPlayerDamagedByPlayer(final EntityDamageByEntityEvent event) {\n if (!(event.getEntity() instanceof Player)) {\r\n return;\r\n }\r\n if (!(event.getDamager() instanceof Player)) {\r\n return;\r\n }\r\n \r\n final Player target = (Player)event.getEntity();\r\n final Player attacker = (Player)event.getDamager();\r\n final ItemStack is = attacker.getItemInHand();\r\n \r\n if (is != null){\r\n switch (is.getType()){\r\n case EMERALD:\r\n attacker.setItemInHand(ItemUtil.decrementItem(is, 1));\r\n \r\n // 体力・空腹回復、燃えてたら消化\r\n target.setHealth(target.getMaxHealth());\r\n target.setFoodLevel(20);\r\n target.setFireTicks(0);\r\n \r\n // ポーション効果付与\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 45 * 20, 0)); // 45 secs\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 7 * 60 * 20, 0)); // 7 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 9 * 60 * 20, 1)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 9 * 60 * 20, 0)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 5 * 60 * 20, 1)); // 5 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 3 * 60 * 20, 0)); // 3 mins\r\n \r\n // effect, messaging\r\n target.getWorld().playEffect(target.getLocation(), Effect.ENDER_SIGNAL, 0, 10);\r\n Util.message(target, PlayerManager.getPlayer(attacker).getName() + \" &aから特殊効果を与えられました!\");\r\n Util.message(attacker, PlayerManager.getPlayer(target).getName() + \" &aに特殊効果を与えました!\");\r\n \r\n event.setCancelled(true);\r\n event.setDamage(0);\r\n break;\r\n default: break;\r\n }\r\n }\r\n }", "public void takeAttack(int damage) {\r\n if(this.evasion > 0)\r\n this.evasion--;\r\n else\r\n this.takeDamage(damage);\r\n }", "public void hack(Entity e) {\r\n\t\te.modifyHp(10);\r\n\t}", "void damagePlayer(int i) throws IOException {\n }", "public void suffer(int damage){\r\n\t\thp -= damage;\r\n\t\tinvulnerable = true;\r\n\t}", "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "public void takeDamage(int damage) {\r\n this.health -= damage;\r\n if(this.health < 0)\r\n this.health = 0;\r\n }", "public void damaged() {\n this.damageState = DamageState.DAMAGED;\n }", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "public int getDamage() {\n //TODO\n return 1;\n }", "public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }", "PreventionEffectData preventDamage(GameEvent damageEvent, Ability source, Game game, int amountToPrevent);", "public void hurt(int damage)\n {\n \t hp -= (damage - ( damage * armor / 100 ));\n \t //System.out.println(\"hp: \" + hp);\n }", "@Override\n\tpublic int fight(Enemy e1) {\n\t\tint damage = 0;\n\t\tRandom randomNum = new Random();\n\t\tdamage = 6 + randomNum.nextInt(4);\n\t\ttry {\n\t\t\te1.takeDamage(damage);\n\t\t} catch (InvalidDamageException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn damage;\n\t}", "@Test\n void doEffectlockrifle() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl, false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"lock rifle\");\n Weapon w = new Weapon(\"lock rifle\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.getWeapons().add(w);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n RealPlayer victim1 = new RealPlayer('y', \"ciccia1\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n victim1.setPlayerPosition(Board.getSpawnpoint('b'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim1);\n try{\n p.getPh().getWeaponDeck().getWeapon(w.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPb().getMarkedDamages('b') == 1 && victim1.getPb().countDamages() == 0 && victim1.getPb().getMarkedDamages('b') == 1 );\n }", "public void setDamage(int damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "public void damagePlayer(int damage){\n hero.decreaseHp(damage);\n }", "void takeDamage(int points) {\n this.health -= points;\n }", "@Override\n public void addDamage(Player shooter, int damage) {\n if(!this.equals(shooter) && damage > 0) {\n int num=0;\n boolean isRage = false;\n Kill lastKill = null;\n List<PlayerColor> marksToBeRemoved = marks.stream().filter(m -> m == shooter.getColor()).collect(Collectors.toList());\n damage += marksToBeRemoved.size();\n marks.removeAll(marksToBeRemoved);\n\n if (this.damage.size() < 11) { //11\n for (int i = 0; i < damage; i++)\n this.damage.add(shooter.getColor());\n num = this.damage.size();\n if (num > 10) { //10\n this.deaths++;\n this.isDead = true;\n if (num > 11) {\n isRage = true;\n shooter.addThisTurnMarks(this, 1); //the shooter receive a mark in case of rage\n }\n if (game != null)\n game.addThisTurnKill(shooter, this, isRage);\n\n } else if (num > 5)\n this.adrenaline = AdrenalineLevel.SHOOTLEVEL;\n else if (num > 2)\n this.adrenaline = AdrenalineLevel.GRABLEVEL;\n } else if (this.damage.size() == 11 && damage > 0) { //11\n lastKill = game.getLastKill(this);\n lastKill.setRage(true);\n shooter.addThisTurnMarks(this, 1); //the shooter receive a mark in case of rage\n if(game != null)\n game.notifyRage(lastKill);\n }\n if (game != null)\n game.notifyDamage(this, shooter, damage, marksToBeRemoved.size());\n }\n }", "public void takeDamage()\n {\n if(getWorld()!= null)\n {\n if(this.isTouching(Enemies.class))\n {\n Life = Life - Enemies.damage;\n if(Life <=0)\n {\n getWorld().removeObject(this);\n Store.wealth += Game.credit;\n }\n }\n }\n }", "@Override\n public void visit(final Rogue rogue) {\n rogue.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE);\n rogue.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE);\n // anunt magicianul de ajutorul ingerului\n rogue.getEvent().anEventHappened(rogue, this, \"help\");\n // ofer Xp jucatorului pentru a trece la nivelul urmator\n rogue.gainXp(getNewXp(rogue));\n }", "public void setDamage(double d) {\n damage = d;\n }", "@Override\n public void attackedByPaladin(double attack) {\n this.attack += (2 * attack) / 3;\n damageCounter = Math.max(damageCounter - (2 * attack) / 3, 0);\n }", "private void calculateDamage() {\n this.baseDamage = this.actualBaseDamage;\n this.applyPowers();\n this.baseDamage = Math.max(this.baseDamage - ((this.baseDamage * this.otherCardsPlayed) / this.magicNumber), 0);\n }", "public void setDamageTaken(double damage){\n\t\tlifeForce -= damage;\n\t\tif (! (lifeForce > 0) ) {\n\t\t\tJOptionPane.showMessageDialog(null, \"You Died - GAME OVER\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void OnDamage(AI ai, int aTK, float f) {\n\tif(DamagedTimer < 0.8f)\n\t\treturn;\n\tvel.x = f;\n\tvel.y = 3;\n\tDamagedTimer = 0;\n\tgrounded = false;\n\taTK -= (getDEF()*0.8f);\n\tif(aTK <= 0)\n\t\taTK = 1;\n\tHP -= aTK;\n\tInventory.CurrentInventory.dmgTxts.add(new dmgText(pos.x, pos.y+1, aTK));\n\t\n\tSoundManager.PlaySound(\"playerHurt\",3);\n\t\n\t\n}", "public void damage(int damageTaken) {\n //TODO: Create specific damage methods instead of damage calls everywhere(see damagedByBullet())\n if (!invincible) {\n this.hp -= damageTaken;\n }\n }", "public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}", "public void ability(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage+12;\n lm.player.setDamage(newDamage);\n }", "@Override\r\n\tpublic boolean damageEntity(DamageSource damagesource, float f2) {\n\t\tboolean toReturn = super.damageEntity(damagesource, f2);\r\n\t\tif(f2>=3 && !this.isInvulnerable(damagesource) && damagesource.getEntity()!=null && damagesource.getEntity().getBukkitEntity() instanceof Player) { // prevent things like snowball damage from triggering this ability\r\n\t\t\tif(random.nextInt(100)+1<=20) { //prevent boss from getting combo'd to hard in corner\r\n\t\t\t\tif(!teleportCooldown.isOnCooldown((Player)damagesource.getEntity().getBukkitEntity())) {\r\n\t\t\t\t\tteleportToEnemy();\t\t\r\n\t\t\t\t\tteleportCooldown.addCooldown((Player)damagesource.getEntity().getBukkitEntity());\r\n\t\t\t\t\tLog.info(teleportCooldown.isOnCooldown((Player)damagesource.getEntity().getBukkitEntity()));\r\n\t\t\t\t\tLog.info(((Player)damagesource.getEntity().getBukkitEntity()).getName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t}", "public void setHungerDamage(float hunger);", "public void reduceHealth(int damage){\n health -= damage;\n }", "@Override\n public void attackedByShaman(double attack) {\n damageCounter += (2 * attack) / 3;\n this.attack = Math.max(this.attack - (2 * attack) / 3, 0);\n }", "public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }", "@Test\n\tvoid testDealBackDamage() {\n\t\tthis.miner.shoot();\n\t\tassertEquals(mRUtil.dwarfMiner_hp - (mRUtil.pickaxe_damage/mRUtil.saphir_returnedDamageRatio), this.miner.getHp(), \"Case: Damage taken by the Miner from saphir\");\n\n\t\tthis.saphir.setHp(50); // reset hp to 50\n\t\tthis.soldier.shoot();\n\t\tassertEquals(mRUtil.dwarfSoldier_hp - (mRUtil.rocket_damage/mRUtil.saphir_returnedDamageRatio),this.soldier.getHp(), \"Case: Damage taken by the Soldier from saphir\");\n\n\t\tthis.saphir.setHp(50);\n\t\tthis.demolitionist.shoot();\n\t\tassertEquals(mRUtil.dwarfDemolitionist_hp - (mRUtil.dynamite_damage/mRUtil.saphir_returnedDamageRatio),this.demolitionist.getHp(), \"Case: Damage taken by the Demolitionist from saphir\");\n\n\t\tthis.saphir.setHp(50);\n\t\tthis.scientist.shoot();\n\t\tassertEquals(mRUtil.dwarfScientist_hp - (mRUtil.potion_damage/mRUtil.saphir_returnedDamageRatio),this.scientist.getHp(), \"Case: Damage taken by the Scientist from saphir\");\n\t}", "public void takeDamage(int damage){\n\t\thealth -= damage;\n\t\tif(health<= 0) {\n\t\t\tspawnNew();\n\t\t}\n\t}", "public void damage(int damage, int penetration) {\n int def = defense;\n if (shield != null ) def += shield.getDefense();\n def = defense - penetration;\n if (def < 0) def = 0;\n if (def >= damage) return;\n health -= (damage - def);\n if (health < 0) health = 0;\n decreaseMoral((damage-def)/30);\n if (leader)\n color = new Color(color.getRed(), color.getGreen() + (damage-def)/2, color.getBlue() + (damage-def)/2);\n else\n color = new Color(color.getRed(), color.getGreen() + (damage-def)*2 , color.getBlue() + (damage-def)*2);\n }", "public short getSiegeWeaponDamage();", "public void getDamaged(float dmg) {\n\t\tStagePanel.addValueLabel(parentGP,dmg,Commons.cAttack);\n\t\tif(shield - dmg >= 0) {\n\t\t\tshield-=dmg;\n\t\t\tdmg = 0;\n\t\t}else {\n\t\t\tdmg-=shield;\n\t\t\tshield = 0;\n\t\t}\n\t\tif(health-dmg > 0) {\n\t\t\thealth-=dmg;\n\t\t}else {\n\t\t\thealth = 0;\n\t\t}\n\t\tSoundEffect.play(\"Hurt.wav\");\n\t}", "@Test\n void doEffectheatseeker() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"heatseeker\");\n Weapon w4 = new Weapon(\"heatseeker\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w4);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w4);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w4.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w4.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3);\n }", "public abstract int doDamage(int time, GenericMovableUnit unit, Unit target);", "public int setDamage(int damage) {\n\t\tthis.damage = damage;\n\t\treturn 0;\n\t}", "public void repair(){\n if(health < 9) {\n this.health++;\n }\n }", "public int doDamage(Actor attacker, int damage){\n if( iframes==0 ){\n health -= damage;\n healthbar.setHealth(health);\n iframes = 20;\n MuteControl.playSound(attackSound);\n if (health>0) return damage;\n die();\n return damage;\n }else return 0;\n }", "public void setDamage(double damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "private void addEnemySheild() {\n this.enemyShield += 1;\n }", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "public void takeDamage(int dmg) {\n\t\thealth -= dmg;\n\t}", "protected int recalculateDamage(int baseDamage, Conveyer info, Combatant striker, Combatant victim) {\n return baseDamage;\n }", "@Override\n public void attack(int damage)\n {\n EntityPirate target = this.world.getClosestTarget(this, EntityPirate.class, 50, true);\n //System.out.println(target.toString());\n \n float newtonForce = 1200F; //The amount of force applied to the projectile\n \n if(target != null)\n {\n Vector2 difference = target.getPos().cpy().sub(this.getPos()); //Get the difference vector\n difference.nor().scl(newtonForce); //Normalize it to a unit vector, and scale it\n new EntityWaterBomb(this.world, this.getPos().x, this.getPos().y, difference.x, difference.y, this, damage); \n } // target\n }", "@Override\r\n\t\t\tpublic void damage(CombatObject source, Projectile proj, int dmg) {\n\t\t\t\tif (lockOn != null)\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\t// Distanz prüfen\r\n\t\t\t\tif (!source.isInRange(host, lockPhysicalDetectionRange))\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\tif (source == MainZap.getPlayer() && getHost().isFriend())\r\n\t\t\t\t\treturn; // Friendly-Fire\r\n\r\n\t\t\t\t// Alle Bedingungen erfüllt\r\n\t\t\t\tif (parked) // Park-Bremse aufheben\r\n\t\t\t\t\tparked = false;\r\n\t\t\t\tlockOn = source;\r\n\t\t\t\thost.setShootingAim(source);\r\n\t\t\t}", "private float setFTPAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.ftpDamageModifier = baseDamageModifier + change;\n//System.out.println(\"ftp: \" + this.ftpDamageModifier);\n content.put(\"ftp_damage_modifier\", \"\" + this.ftpDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }", "public int getDamage() {\n return damage;\n }", "public int takeDamage(int damage) \r\n\t{\r\n\t\t//Pre: an int damage\r\n\t\t//Post: reduces health variable by damage\r\n\t\tif(health - damage > 0) \r\n\t\t{\r\n\t\t\thealth -= damage;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\thealth = 0;\r\n\t\t}\r\n\t\treturn health;\r\n\t}", "public interface Damage {\n}", "public void takeDamage(int damage) {\r\n health -= damage;\r\n if(health<=0)setAlive(false);\r\n }", "public void setSiegeWeaponDamage(short siegeWeaponDamage);", "@Test\n public void getDefensiveModifierTest() {\n \n assertEquals(0.2, hawthorn1.getDefenseModifier(), 0.1);\n }", "public int increaseDefense () {\n return 3;\n }", "@Override\n\tprotected void onPlayerDamage(EntityDamageEvent evt, Player p) {\n\t\tsuper.onPlayerDamage(evt, p);\n\t\tif(evt.getCause() == DamageCause.WITHER){\n\t\t\tGUtils.healDamageable(getOwnerPlayer(), evt.getDamage() * 1.5);\n\t\t\tVector v = Utils.CrearVector(getOwnerPlayer().getLocation(), getPlayer().getLocation()).multiply(0.5D);\n\t\t\tdouble max = 7;\n\t\t\tfor (int i = 0; i < max; i++) {\n//\t\t\t\tgetWorld().playEffect(getPlayer().getEyeLocation().add(0, -0.8, 0).add(v.clone().multiply(i/max)),\n//\t\t\t\t\t\tEffect.HEART, 0);\n\t\t\t}\n\t\t}\n\t}", "public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\t// we don't smell anything\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tAgentSpace space = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tBoundedEntry bounded = space.getBounded(Variable.energy);\n\t\tfloat pct = bounded.getValue() / bounded.getMax();\n\t\treturn 1 - (pct*pct);\n\t}", "@Override\n public int viability() {\n int[] newStats = getNewStats();\n return newStats[0] * newStats[1];\n }" ]
[ "0.6886149", "0.68707925", "0.67920995", "0.67229134", "0.671425", "0.6687903", "0.6687697", "0.66160214", "0.65878713", "0.65305877", "0.65142405", "0.64817095", "0.6420939", "0.64077216", "0.6380649", "0.6371063", "0.6346922", "0.6346922", "0.6346922", "0.6346922", "0.6346922", "0.63134956", "0.6309443", "0.6306224", "0.6299378", "0.6299328", "0.6296631", "0.6248891", "0.6238101", "0.622001", "0.6204301", "0.6195836", "0.6183339", "0.6180987", "0.616666", "0.61278486", "0.60850793", "0.6059299", "0.6056286", "0.60513854", "0.60215634", "0.6019013", "0.6013507", "0.60082597", "0.59755456", "0.59746873", "0.59495944", "0.59322804", "0.592912", "0.59199303", "0.59171134", "0.59143597", "0.59126985", "0.59001553", "0.5899988", "0.58997273", "0.5896686", "0.58721215", "0.58655834", "0.5865345", "0.58640087", "0.58572453", "0.5855158", "0.5852988", "0.58484054", "0.5839878", "0.58277535", "0.58159894", "0.5806302", "0.5804641", "0.5803519", "0.5797519", "0.57928544", "0.5780024", "0.5772382", "0.57718164", "0.5769133", "0.5767919", "0.5767049", "0.5766929", "0.57612276", "0.57592124", "0.57591355", "0.57507527", "0.574636", "0.5738987", "0.572368", "0.57123756", "0.57121193", "0.57107824", "0.5708145", "0.5704665", "0.5701968", "0.5692673", "0.5687401", "0.5685852", "0.5685342", "0.5684106", "0.5677022", "0.56737745", "0.56705076" ]
0.0
-1
cresc modificatorii de damage pentru fiecare abilitate a jucatorului
@Override public void visit(final Rogue rogue) { rogue.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE); rogue.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE); // anunt magicianul de ajutorul ingerului rogue.getEvent().anEventHappened(rogue, this, "help"); // ofer Xp jucatorului pentru a trece la nivelul urmator rogue.gainXp(getNewXp(rogue)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeDamage(int damage);", "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "public int giveDamage();", "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t}", "protected void takeDamage(int damage)\n {\n health = health - damage;\n \n }", "public void takeDamage(int damage) {\n Random rand = new Random();\n int game = rand.nextInt(51) + 75;\n double game2 = (double) game;\n double percDamage = game2/100.0;\n double realSomething = (double) damage;\n double actualDamageNotReal = realSomething * percDamage;\n int actualDamage = (int) actualDamageNotReal;\n int actualDmg = actualDamage - this.armour;\n if (actualDmg <= 0){\n actualDmg = 0;\n }\n this.health -= actualDmg;\n slowDisplay(String.format(\"%s takes %s damage, now at %s\\n\",this.name,actualDmg,this.health));\n\n }", "public void takeDamage(int damage) {\n\t\tlife = (life-damage<0)?0:life-damage;\n\t}", "@Override\n\tpublic int calculateDamage() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "private void takeDamage(int damage){ health -= damage;}", "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "public void takeDamage(int damage) {\n this.damageTaken += damage;\n }", "@Override\n public int damage() {\n int newDamage=criticalStrike();\n return newDamage;\n }", "private void subtractEnemySheild(int damage) {\n this.enemyShield -= damage;\n }", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "private float setAttackAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.attackDamageModifier = baseDamageModifier + change;\n//System.out.println(\"attack: \" + this.attackDamageModifier);\n content.put(\"attack_damage_modifier\", \"\" + this.attackDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }", "@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }", "public int takeDamage(int damage) {\n damage -= ARMOR;\r\n // set new hp\r\n return super.takeDamage(damage);\r\n }", "boolean takeDamage(DamageCount damage);", "private void subtractPlayerSheild(int damage) {\n this.playerShield -= damage;\n }", "boolean takeDamage(int dmg);", "public void takeDamage(int amount){\r\n\t\tthis.life = this.life - amount;\r\n\t}", "public void damage(int amount) {\n \tshield = shield - amount;\n }", "public void damageDevice() {\n\t\t\r\n\t}", "@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }", "@Override\n protected int strengthViability(Creature c){\n int baseViability = super.strengthViability(c);\n if (Elements.elementDamageMultiplier(c,bossFormation.getFrontCreature().getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST * 3);\n }\n if (Elements.elementDamageMultiplier(bossFormation.getFrontCreature(),c.getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST / 3);\n }\n return baseViability;\n }", "public void changeCostumeRight(){\n if(costume == 3){\n costume = 0;\n }\n else{\n costume ++;\n }\n Locker.updateCostume(costume);\n PrefLoader.updateFile();\n\n }", "public int getMetadata(int damage) {\n/* 50 */ return damage;\n/* */ }", "@Override\r\n\tpublic String attack(int damage) {\n\t\treturn damage +\"로 공격 합니다.\";\r\n\t}", "public static void damageStep () {\r\n // rough plan:\r\n // #1: flip defending monster, if face down -> see flipMonster(...);\r\n // #2: Ask CPU and player for possible effect negation! (For an attack negation it is too late!) -> see below in this method\r\n // #3: calculate damage, kill monsters, if needed\r\n // (consider also banishing and immunity, also copied passive effect of (Holy) Lance)\r\n // -> see makeDamageCalculation(...);\r\n // #4: decrease life points, if needed -> see isDealingBattleDamageAndContinuingGame(...);\r\n // #5: consider passive (also copied) trap monster effects -> see possibleSuicideEffect(...);\r\n // #6: display Win/Lose dialog and end match, if needed -> see Game.over(...);\r\n // #7: finally end the attack (consider the effects that happen afterwards), thus allowing the next attack -> endDamageStep(...);\r\n \r\n // about #1:\r\n if (Game.ActiveGuardingMonster.isFaceDown) {flipMonster(Game.ActiveGuardingMonster);}\r\n // about #2:\r\n if (Game.ActiveAttackingMonster.canBeNegated() || Game.ActiveGuardingMonster.canBeNegated()) {\r\n AIinterrupts.cpuIsUsingEffectNegateDuringBattlePhase(); // ask CPU to negate effects first\r\n // ask player to negate effect here\r\n boolean isCanceling = false;\r\n boolean hasEffectNegateHandTrap = Hand.lookForEffectNegateOnHand(true);\r\n boolean hasEffectNegateOnField = Hand.lookForEffectNegateOnField(true);\r\n if (hasEffectNegateHandTrap || hasEffectNegateOnField) {\r\n if (hasEffectNegateHandTrap && !hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (!hasEffectNegateHandTrap && hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n else {\r\n int intDialogResult = YuGiOhJi.multipleChoiceDialog(\"Do you want to negate effects on the field?\", \"You can negate passive effects.\", new String[]{\"yes, by discarding Neutraliser\", \"yes, by paying the cost worth 1 card\", \"no (default)\"}, \"no (default)\");\r\n if (intDialogResult==0) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (intDialogResult==1) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n }\r\n }\r\n if (!isCanceling) {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n }\r\n else {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n \r\n }", "public void setDamage(int d) {\r\n this.damage = d;\r\n }", "@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\r\n public void onPlayerDamagedByPlayer(final EntityDamageByEntityEvent event) {\n if (!(event.getEntity() instanceof Player)) {\r\n return;\r\n }\r\n if (!(event.getDamager() instanceof Player)) {\r\n return;\r\n }\r\n \r\n final Player target = (Player)event.getEntity();\r\n final Player attacker = (Player)event.getDamager();\r\n final ItemStack is = attacker.getItemInHand();\r\n \r\n if (is != null){\r\n switch (is.getType()){\r\n case EMERALD:\r\n attacker.setItemInHand(ItemUtil.decrementItem(is, 1));\r\n \r\n // 体力・空腹回復、燃えてたら消化\r\n target.setHealth(target.getMaxHealth());\r\n target.setFoodLevel(20);\r\n target.setFireTicks(0);\r\n \r\n // ポーション効果付与\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 45 * 20, 0)); // 45 secs\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 7 * 60 * 20, 0)); // 7 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 9 * 60 * 20, 1)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 9 * 60 * 20, 0)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 5 * 60 * 20, 1)); // 5 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 3 * 60 * 20, 0)); // 3 mins\r\n \r\n // effect, messaging\r\n target.getWorld().playEffect(target.getLocation(), Effect.ENDER_SIGNAL, 0, 10);\r\n Util.message(target, PlayerManager.getPlayer(attacker).getName() + \" &aから特殊効果を与えられました!\");\r\n Util.message(attacker, PlayerManager.getPlayer(target).getName() + \" &aに特殊効果を与えました!\");\r\n \r\n event.setCancelled(true);\r\n event.setDamage(0);\r\n break;\r\n default: break;\r\n }\r\n }\r\n }", "public void takeAttack(int damage) {\r\n if(this.evasion > 0)\r\n this.evasion--;\r\n else\r\n this.takeDamage(damage);\r\n }", "public void hack(Entity e) {\r\n\t\te.modifyHp(10);\r\n\t}", "void damagePlayer(int i) throws IOException {\n }", "public void suffer(int damage){\r\n\t\thp -= damage;\r\n\t\tinvulnerable = true;\r\n\t}", "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "public void takeDamage(int damage) {\r\n this.health -= damage;\r\n if(this.health < 0)\r\n this.health = 0;\r\n }", "public void damaged() {\n this.damageState = DamageState.DAMAGED;\n }", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "public int getDamage() {\n //TODO\n return 1;\n }", "public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }", "PreventionEffectData preventDamage(GameEvent damageEvent, Ability source, Game game, int amountToPrevent);", "public void hurt(int damage)\n {\n \t hp -= (damage - ( damage * armor / 100 ));\n \t //System.out.println(\"hp: \" + hp);\n }", "@Override\n\tpublic int fight(Enemy e1) {\n\t\tint damage = 0;\n\t\tRandom randomNum = new Random();\n\t\tdamage = 6 + randomNum.nextInt(4);\n\t\ttry {\n\t\t\te1.takeDamage(damage);\n\t\t} catch (InvalidDamageException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn damage;\n\t}", "@Test\n void doEffectlockrifle() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl, false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"lock rifle\");\n Weapon w = new Weapon(\"lock rifle\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.getWeapons().add(w);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n RealPlayer victim1 = new RealPlayer('y', \"ciccia1\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n victim1.setPlayerPosition(Board.getSpawnpoint('b'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim1);\n try{\n p.getPh().getWeaponDeck().getWeapon(w.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPb().getMarkedDamages('b') == 1 && victim1.getPb().countDamages() == 0 && victim1.getPb().getMarkedDamages('b') == 1 );\n }", "public void setDamage(int damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "void takeDamage(int points) {\n this.health -= points;\n }", "@Override\n public void addDamage(Player shooter, int damage) {\n if(!this.equals(shooter) && damage > 0) {\n int num=0;\n boolean isRage = false;\n Kill lastKill = null;\n List<PlayerColor> marksToBeRemoved = marks.stream().filter(m -> m == shooter.getColor()).collect(Collectors.toList());\n damage += marksToBeRemoved.size();\n marks.removeAll(marksToBeRemoved);\n\n if (this.damage.size() < 11) { //11\n for (int i = 0; i < damage; i++)\n this.damage.add(shooter.getColor());\n num = this.damage.size();\n if (num > 10) { //10\n this.deaths++;\n this.isDead = true;\n if (num > 11) {\n isRage = true;\n shooter.addThisTurnMarks(this, 1); //the shooter receive a mark in case of rage\n }\n if (game != null)\n game.addThisTurnKill(shooter, this, isRage);\n\n } else if (num > 5)\n this.adrenaline = AdrenalineLevel.SHOOTLEVEL;\n else if (num > 2)\n this.adrenaline = AdrenalineLevel.GRABLEVEL;\n } else if (this.damage.size() == 11 && damage > 0) { //11\n lastKill = game.getLastKill(this);\n lastKill.setRage(true);\n shooter.addThisTurnMarks(this, 1); //the shooter receive a mark in case of rage\n if(game != null)\n game.notifyRage(lastKill);\n }\n if (game != null)\n game.notifyDamage(this, shooter, damage, marksToBeRemoved.size());\n }\n }", "public void damagePlayer(int damage){\n hero.decreaseHp(damage);\n }", "public void takeDamage()\n {\n if(getWorld()!= null)\n {\n if(this.isTouching(Enemies.class))\n {\n Life = Life - Enemies.damage;\n if(Life <=0)\n {\n getWorld().removeObject(this);\n Store.wealth += Game.credit;\n }\n }\n }\n }", "public void setDamage(double d) {\n damage = d;\n }", "@Override\n public void attackedByPaladin(double attack) {\n this.attack += (2 * attack) / 3;\n damageCounter = Math.max(damageCounter - (2 * attack) / 3, 0);\n }", "private void calculateDamage() {\n this.baseDamage = this.actualBaseDamage;\n this.applyPowers();\n this.baseDamage = Math.max(this.baseDamage - ((this.baseDamage * this.otherCardsPlayed) / this.magicNumber), 0);\n }", "public void setDamageTaken(double damage){\n\t\tlifeForce -= damage;\n\t\tif (! (lifeForce > 0) ) {\n\t\t\tJOptionPane.showMessageDialog(null, \"You Died - GAME OVER\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void OnDamage(AI ai, int aTK, float f) {\n\tif(DamagedTimer < 0.8f)\n\t\treturn;\n\tvel.x = f;\n\tvel.y = 3;\n\tDamagedTimer = 0;\n\tgrounded = false;\n\taTK -= (getDEF()*0.8f);\n\tif(aTK <= 0)\n\t\taTK = 1;\n\tHP -= aTK;\n\tInventory.CurrentInventory.dmgTxts.add(new dmgText(pos.x, pos.y+1, aTK));\n\t\n\tSoundManager.PlaySound(\"playerHurt\",3);\n\t\n\t\n}", "public void damage(int damageTaken) {\n //TODO: Create specific damage methods instead of damage calls everywhere(see damagedByBullet())\n if (!invincible) {\n this.hp -= damageTaken;\n }\n }", "public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}", "public void ability(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage+12;\n lm.player.setDamage(newDamage);\n }", "@Override\r\n\tpublic boolean damageEntity(DamageSource damagesource, float f2) {\n\t\tboolean toReturn = super.damageEntity(damagesource, f2);\r\n\t\tif(f2>=3 && !this.isInvulnerable(damagesource) && damagesource.getEntity()!=null && damagesource.getEntity().getBukkitEntity() instanceof Player) { // prevent things like snowball damage from triggering this ability\r\n\t\t\tif(random.nextInt(100)+1<=20) { //prevent boss from getting combo'd to hard in corner\r\n\t\t\t\tif(!teleportCooldown.isOnCooldown((Player)damagesource.getEntity().getBukkitEntity())) {\r\n\t\t\t\t\tteleportToEnemy();\t\t\r\n\t\t\t\t\tteleportCooldown.addCooldown((Player)damagesource.getEntity().getBukkitEntity());\r\n\t\t\t\t\tLog.info(teleportCooldown.isOnCooldown((Player)damagesource.getEntity().getBukkitEntity()));\r\n\t\t\t\t\tLog.info(((Player)damagesource.getEntity().getBukkitEntity()).getName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t}", "public void setHungerDamage(float hunger);", "public void reduceHealth(int damage){\n health -= damage;\n }", "public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }", "@Override\n public void attackedByShaman(double attack) {\n damageCounter += (2 * attack) / 3;\n this.attack = Math.max(this.attack - (2 * attack) / 3, 0);\n }", "@Test\n\tvoid testDealBackDamage() {\n\t\tthis.miner.shoot();\n\t\tassertEquals(mRUtil.dwarfMiner_hp - (mRUtil.pickaxe_damage/mRUtil.saphir_returnedDamageRatio), this.miner.getHp(), \"Case: Damage taken by the Miner from saphir\");\n\n\t\tthis.saphir.setHp(50); // reset hp to 50\n\t\tthis.soldier.shoot();\n\t\tassertEquals(mRUtil.dwarfSoldier_hp - (mRUtil.rocket_damage/mRUtil.saphir_returnedDamageRatio),this.soldier.getHp(), \"Case: Damage taken by the Soldier from saphir\");\n\n\t\tthis.saphir.setHp(50);\n\t\tthis.demolitionist.shoot();\n\t\tassertEquals(mRUtil.dwarfDemolitionist_hp - (mRUtil.dynamite_damage/mRUtil.saphir_returnedDamageRatio),this.demolitionist.getHp(), \"Case: Damage taken by the Demolitionist from saphir\");\n\n\t\tthis.saphir.setHp(50);\n\t\tthis.scientist.shoot();\n\t\tassertEquals(mRUtil.dwarfScientist_hp - (mRUtil.potion_damage/mRUtil.saphir_returnedDamageRatio),this.scientist.getHp(), \"Case: Damage taken by the Scientist from saphir\");\n\t}", "public void takeDamage(int damage){\n\t\thealth -= damage;\n\t\tif(health<= 0) {\n\t\t\tspawnNew();\n\t\t}\n\t}", "public void damage(int damage, int penetration) {\n int def = defense;\n if (shield != null ) def += shield.getDefense();\n def = defense - penetration;\n if (def < 0) def = 0;\n if (def >= damage) return;\n health -= (damage - def);\n if (health < 0) health = 0;\n decreaseMoral((damage-def)/30);\n if (leader)\n color = new Color(color.getRed(), color.getGreen() + (damage-def)/2, color.getBlue() + (damage-def)/2);\n else\n color = new Color(color.getRed(), color.getGreen() + (damage-def)*2 , color.getBlue() + (damage-def)*2);\n }", "public short getSiegeWeaponDamage();", "public void getDamaged(float dmg) {\n\t\tStagePanel.addValueLabel(parentGP,dmg,Commons.cAttack);\n\t\tif(shield - dmg >= 0) {\n\t\t\tshield-=dmg;\n\t\t\tdmg = 0;\n\t\t}else {\n\t\t\tdmg-=shield;\n\t\t\tshield = 0;\n\t\t}\n\t\tif(health-dmg > 0) {\n\t\t\thealth-=dmg;\n\t\t}else {\n\t\t\thealth = 0;\n\t\t}\n\t\tSoundEffect.play(\"Hurt.wav\");\n\t}", "@Test\n void doEffectheatseeker() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"heatseeker\");\n Weapon w4 = new Weapon(\"heatseeker\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w4);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w4);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w4.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w4.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3);\n }", "public abstract int doDamage(int time, GenericMovableUnit unit, Unit target);", "public void repair(){\n if(health < 9) {\n this.health++;\n }\n }", "public int setDamage(int damage) {\n\t\tthis.damage = damage;\n\t\treturn 0;\n\t}", "private void addEnemySheild() {\n this.enemyShield += 1;\n }", "public int doDamage(Actor attacker, int damage){\n if( iframes==0 ){\n health -= damage;\n healthbar.setHealth(health);\n iframes = 20;\n MuteControl.playSound(attackSound);\n if (health>0) return damage;\n die();\n return damage;\n }else return 0;\n }", "public void setDamage(double damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "public void takeDamage(int dmg) {\n\t\thealth -= dmg;\n\t}", "protected int recalculateDamage(int baseDamage, Conveyer info, Combatant striker, Combatant victim) {\n return baseDamage;\n }", "@Override\n public void attack(int damage)\n {\n EntityPirate target = this.world.getClosestTarget(this, EntityPirate.class, 50, true);\n //System.out.println(target.toString());\n \n float newtonForce = 1200F; //The amount of force applied to the projectile\n \n if(target != null)\n {\n Vector2 difference = target.getPos().cpy().sub(this.getPos()); //Get the difference vector\n difference.nor().scl(newtonForce); //Normalize it to a unit vector, and scale it\n new EntityWaterBomb(this.world, this.getPos().x, this.getPos().y, difference.x, difference.y, this, damage); \n } // target\n }", "private float setFTPAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.ftpDamageModifier = baseDamageModifier + change;\n//System.out.println(\"ftp: \" + this.ftpDamageModifier);\n content.put(\"ftp_damage_modifier\", \"\" + this.ftpDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }", "@Override\r\n\t\t\tpublic void damage(CombatObject source, Projectile proj, int dmg) {\n\t\t\t\tif (lockOn != null)\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\t// Distanz prüfen\r\n\t\t\t\tif (!source.isInRange(host, lockPhysicalDetectionRange))\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\tif (source == MainZap.getPlayer() && getHost().isFriend())\r\n\t\t\t\t\treturn; // Friendly-Fire\r\n\r\n\t\t\t\t// Alle Bedingungen erfüllt\r\n\t\t\t\tif (parked) // Park-Bremse aufheben\r\n\t\t\t\t\tparked = false;\r\n\t\t\t\tlockOn = source;\r\n\t\t\t\thost.setShootingAim(source);\r\n\t\t\t}", "public int getDamage() {\n return damage;\n }", "public int takeDamage(int damage) \r\n\t{\r\n\t\t//Pre: an int damage\r\n\t\t//Post: reduces health variable by damage\r\n\t\tif(health - damage > 0) \r\n\t\t{\r\n\t\t\thealth -= damage;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\thealth = 0;\r\n\t\t}\r\n\t\treturn health;\r\n\t}", "public interface Damage {\n}", "public void takeDamage(int damage) {\r\n health -= damage;\r\n if(health<=0)setAlive(false);\r\n }", "public void setSiegeWeaponDamage(short siegeWeaponDamage);", "@Test\n public void getDefensiveModifierTest() {\n \n assertEquals(0.2, hawthorn1.getDefenseModifier(), 0.1);\n }", "public int increaseDefense () {\n return 3;\n }", "@Override\n\tprotected void onPlayerDamage(EntityDamageEvent evt, Player p) {\n\t\tsuper.onPlayerDamage(evt, p);\n\t\tif(evt.getCause() == DamageCause.WITHER){\n\t\t\tGUtils.healDamageable(getOwnerPlayer(), evt.getDamage() * 1.5);\n\t\t\tVector v = Utils.CrearVector(getOwnerPlayer().getLocation(), getPlayer().getLocation()).multiply(0.5D);\n\t\t\tdouble max = 7;\n\t\t\tfor (int i = 0; i < max; i++) {\n//\t\t\t\tgetWorld().playEffect(getPlayer().getEyeLocation().add(0, -0.8, 0).add(v.clone().multiply(i/max)),\n//\t\t\t\t\t\tEffect.HEART, 0);\n\t\t\t}\n\t\t}\n\t}", "public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\t// we don't smell anything\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tAgentSpace space = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tBoundedEntry bounded = space.getBounded(Variable.energy);\n\t\tfloat pct = bounded.getValue() / bounded.getMax();\n\t\treturn 1 - (pct*pct);\n\t}", "@Override\n public int viability() {\n int[] newStats = getNewStats();\n return newStats[0] * newStats[1];\n }" ]
[ "0.6884923", "0.6870074", "0.6791116", "0.67210233", "0.6713694", "0.6687302", "0.6687144", "0.66149145", "0.658617", "0.6529367", "0.65145177", "0.6480827", "0.64194274", "0.64068115", "0.63803756", "0.6369831", "0.63464266", "0.63464266", "0.63464266", "0.63464266", "0.63464266", "0.63127667", "0.63086915", "0.63046575", "0.62983316", "0.6298257", "0.6295803", "0.6248651", "0.623731", "0.6220025", "0.62035185", "0.6194984", "0.6182892", "0.61813474", "0.61659753", "0.61279714", "0.60847825", "0.60594237", "0.6054744", "0.60519516", "0.6020545", "0.6017493", "0.6012077", "0.60065883", "0.59757376", "0.5973264", "0.59493965", "0.59315455", "0.5928427", "0.5918366", "0.59156775", "0.59138423", "0.5911457", "0.59000534", "0.58995515", "0.58982176", "0.5897111", "0.5865334", "0.5864629", "0.58636886", "0.58563894", "0.5854222", "0.58528554", "0.58474845", "0.5839804", "0.5826256", "0.5814855", "0.5805011", "0.58040535", "0.5803864", "0.5797133", "0.57913405", "0.57786715", "0.57715654", "0.57705134", "0.57684505", "0.57675683", "0.5766761", "0.5765756", "0.5759532", "0.5759056", "0.57581884", "0.5751842", "0.57448536", "0.5738214", "0.572253", "0.57112324", "0.571117", "0.57105196", "0.5706283", "0.5704033", "0.57003284", "0.56916964", "0.5687385", "0.5686474", "0.56850284", "0.56834686", "0.5678502", "0.5673655", "0.56705594" ]
0.5872612
57
cresc modificatorii de damage pentru fiecare abilitate a jucatorului
@Override public void visit(final Wizard wizard) { wizard.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_WIZARD); wizard.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_WIZARD); // anunt magicianul de ajutorul ingerului wizard.getEvent().anEventHappened(wizard, this, "help"); // ofer Xp jucatorului pentru a trece la nivelul urmator wizard.gainXp(getNewXp(wizard)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeDamage(int damage);", "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "public int giveDamage();", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t}", "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }", "protected void takeDamage(int damage)\n {\n health = health - damage;\n \n }", "public void takeDamage(int damage) {\n Random rand = new Random();\n int game = rand.nextInt(51) + 75;\n double game2 = (double) game;\n double percDamage = game2/100.0;\n double realSomething = (double) damage;\n double actualDamageNotReal = realSomething * percDamage;\n int actualDamage = (int) actualDamageNotReal;\n int actualDmg = actualDamage - this.armour;\n if (actualDmg <= 0){\n actualDmg = 0;\n }\n this.health -= actualDmg;\n slowDisplay(String.format(\"%s takes %s damage, now at %s\\n\",this.name,actualDmg,this.health));\n\n }", "public void takeDamage(int damage) {\n\t\tlife = (life-damage<0)?0:life-damage;\n\t}", "@Override\n\tpublic int calculateDamage() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "private void takeDamage(int damage){ health -= damage;}", "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "public void takeDamage(int damage) {\n this.damageTaken += damage;\n }", "@Override\n public int damage() {\n int newDamage=criticalStrike();\n return newDamage;\n }", "private void subtractEnemySheild(int damage) {\n this.enemyShield -= damage;\n }", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "private float setAttackAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.attackDamageModifier = baseDamageModifier + change;\n//System.out.println(\"attack: \" + this.attackDamageModifier);\n content.put(\"attack_damage_modifier\", \"\" + this.attackDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }", "@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }", "public int takeDamage(int damage) {\n damage -= ARMOR;\r\n // set new hp\r\n return super.takeDamage(damage);\r\n }", "boolean takeDamage(DamageCount damage);", "private void subtractPlayerSheild(int damage) {\n this.playerShield -= damage;\n }", "boolean takeDamage(int dmg);", "public void takeDamage(int amount){\r\n\t\tthis.life = this.life - amount;\r\n\t}", "public void damage(int amount) {\n \tshield = shield - amount;\n }", "public void damageDevice() {\n\t\t\r\n\t}", "@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }", "@Override\n protected int strengthViability(Creature c){\n int baseViability = super.strengthViability(c);\n if (Elements.elementDamageMultiplier(c,bossFormation.getFrontCreature().getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST * 3);\n }\n if (Elements.elementDamageMultiplier(bossFormation.getFrontCreature(),c.getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST / 3);\n }\n return baseViability;\n }", "public void changeCostumeRight(){\n if(costume == 3){\n costume = 0;\n }\n else{\n costume ++;\n }\n Locker.updateCostume(costume);\n PrefLoader.updateFile();\n\n }", "public int getMetadata(int damage) {\n/* 50 */ return damage;\n/* */ }", "@Override\r\n\tpublic String attack(int damage) {\n\t\treturn damage +\"로 공격 합니다.\";\r\n\t}", "public static void damageStep () {\r\n // rough plan:\r\n // #1: flip defending monster, if face down -> see flipMonster(...);\r\n // #2: Ask CPU and player for possible effect negation! (For an attack negation it is too late!) -> see below in this method\r\n // #3: calculate damage, kill monsters, if needed\r\n // (consider also banishing and immunity, also copied passive effect of (Holy) Lance)\r\n // -> see makeDamageCalculation(...);\r\n // #4: decrease life points, if needed -> see isDealingBattleDamageAndContinuingGame(...);\r\n // #5: consider passive (also copied) trap monster effects -> see possibleSuicideEffect(...);\r\n // #6: display Win/Lose dialog and end match, if needed -> see Game.over(...);\r\n // #7: finally end the attack (consider the effects that happen afterwards), thus allowing the next attack -> endDamageStep(...);\r\n \r\n // about #1:\r\n if (Game.ActiveGuardingMonster.isFaceDown) {flipMonster(Game.ActiveGuardingMonster);}\r\n // about #2:\r\n if (Game.ActiveAttackingMonster.canBeNegated() || Game.ActiveGuardingMonster.canBeNegated()) {\r\n AIinterrupts.cpuIsUsingEffectNegateDuringBattlePhase(); // ask CPU to negate effects first\r\n // ask player to negate effect here\r\n boolean isCanceling = false;\r\n boolean hasEffectNegateHandTrap = Hand.lookForEffectNegateOnHand(true);\r\n boolean hasEffectNegateOnField = Hand.lookForEffectNegateOnField(true);\r\n if (hasEffectNegateHandTrap || hasEffectNegateOnField) {\r\n if (hasEffectNegateHandTrap && !hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (!hasEffectNegateHandTrap && hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n else {\r\n int intDialogResult = YuGiOhJi.multipleChoiceDialog(\"Do you want to negate effects on the field?\", \"You can negate passive effects.\", new String[]{\"yes, by discarding Neutraliser\", \"yes, by paying the cost worth 1 card\", \"no (default)\"}, \"no (default)\");\r\n if (intDialogResult==0) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (intDialogResult==1) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n }\r\n }\r\n if (!isCanceling) {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n }\r\n else {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n \r\n }", "public void setDamage(int d) {\r\n this.damage = d;\r\n }", "@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\r\n public void onPlayerDamagedByPlayer(final EntityDamageByEntityEvent event) {\n if (!(event.getEntity() instanceof Player)) {\r\n return;\r\n }\r\n if (!(event.getDamager() instanceof Player)) {\r\n return;\r\n }\r\n \r\n final Player target = (Player)event.getEntity();\r\n final Player attacker = (Player)event.getDamager();\r\n final ItemStack is = attacker.getItemInHand();\r\n \r\n if (is != null){\r\n switch (is.getType()){\r\n case EMERALD:\r\n attacker.setItemInHand(ItemUtil.decrementItem(is, 1));\r\n \r\n // 体力・空腹回復、燃えてたら消化\r\n target.setHealth(target.getMaxHealth());\r\n target.setFoodLevel(20);\r\n target.setFireTicks(0);\r\n \r\n // ポーション効果付与\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 45 * 20, 0)); // 45 secs\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 7 * 60 * 20, 0)); // 7 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 9 * 60 * 20, 1)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 9 * 60 * 20, 0)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 5 * 60 * 20, 1)); // 5 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 3 * 60 * 20, 0)); // 3 mins\r\n \r\n // effect, messaging\r\n target.getWorld().playEffect(target.getLocation(), Effect.ENDER_SIGNAL, 0, 10);\r\n Util.message(target, PlayerManager.getPlayer(attacker).getName() + \" &aから特殊効果を与えられました!\");\r\n Util.message(attacker, PlayerManager.getPlayer(target).getName() + \" &aに特殊効果を与えました!\");\r\n \r\n event.setCancelled(true);\r\n event.setDamage(0);\r\n break;\r\n default: break;\r\n }\r\n }\r\n }", "public void takeAttack(int damage) {\r\n if(this.evasion > 0)\r\n this.evasion--;\r\n else\r\n this.takeDamage(damage);\r\n }", "public void hack(Entity e) {\r\n\t\te.modifyHp(10);\r\n\t}", "void damagePlayer(int i) throws IOException {\n }", "public void suffer(int damage){\r\n\t\thp -= damage;\r\n\t\tinvulnerable = true;\r\n\t}", "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "public void takeDamage(int damage) {\r\n this.health -= damage;\r\n if(this.health < 0)\r\n this.health = 0;\r\n }", "public void damaged() {\n this.damageState = DamageState.DAMAGED;\n }", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "public int getDamage() {\n //TODO\n return 1;\n }", "public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }", "PreventionEffectData preventDamage(GameEvent damageEvent, Ability source, Game game, int amountToPrevent);", "public void hurt(int damage)\n {\n \t hp -= (damage - ( damage * armor / 100 ));\n \t //System.out.println(\"hp: \" + hp);\n }", "@Override\n\tpublic int fight(Enemy e1) {\n\t\tint damage = 0;\n\t\tRandom randomNum = new Random();\n\t\tdamage = 6 + randomNum.nextInt(4);\n\t\ttry {\n\t\t\te1.takeDamage(damage);\n\t\t} catch (InvalidDamageException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn damage;\n\t}", "@Test\n void doEffectlockrifle() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl, false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"lock rifle\");\n Weapon w = new Weapon(\"lock rifle\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.getWeapons().add(w);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n RealPlayer victim1 = new RealPlayer('y', \"ciccia1\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n victim1.setPlayerPosition(Board.getSpawnpoint('b'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim1);\n try{\n p.getPh().getWeaponDeck().getWeapon(w.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPb().getMarkedDamages('b') == 1 && victim1.getPb().countDamages() == 0 && victim1.getPb().getMarkedDamages('b') == 1 );\n }", "public void setDamage(int damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "public void damagePlayer(int damage){\n hero.decreaseHp(damage);\n }", "void takeDamage(int points) {\n this.health -= points;\n }", "@Override\n public void addDamage(Player shooter, int damage) {\n if(!this.equals(shooter) && damage > 0) {\n int num=0;\n boolean isRage = false;\n Kill lastKill = null;\n List<PlayerColor> marksToBeRemoved = marks.stream().filter(m -> m == shooter.getColor()).collect(Collectors.toList());\n damage += marksToBeRemoved.size();\n marks.removeAll(marksToBeRemoved);\n\n if (this.damage.size() < 11) { //11\n for (int i = 0; i < damage; i++)\n this.damage.add(shooter.getColor());\n num = this.damage.size();\n if (num > 10) { //10\n this.deaths++;\n this.isDead = true;\n if (num > 11) {\n isRage = true;\n shooter.addThisTurnMarks(this, 1); //the shooter receive a mark in case of rage\n }\n if (game != null)\n game.addThisTurnKill(shooter, this, isRage);\n\n } else if (num > 5)\n this.adrenaline = AdrenalineLevel.SHOOTLEVEL;\n else if (num > 2)\n this.adrenaline = AdrenalineLevel.GRABLEVEL;\n } else if (this.damage.size() == 11 && damage > 0) { //11\n lastKill = game.getLastKill(this);\n lastKill.setRage(true);\n shooter.addThisTurnMarks(this, 1); //the shooter receive a mark in case of rage\n if(game != null)\n game.notifyRage(lastKill);\n }\n if (game != null)\n game.notifyDamage(this, shooter, damage, marksToBeRemoved.size());\n }\n }", "public void takeDamage()\n {\n if(getWorld()!= null)\n {\n if(this.isTouching(Enemies.class))\n {\n Life = Life - Enemies.damage;\n if(Life <=0)\n {\n getWorld().removeObject(this);\n Store.wealth += Game.credit;\n }\n }\n }\n }", "@Override\n public void visit(final Rogue rogue) {\n rogue.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE);\n rogue.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE);\n // anunt magicianul de ajutorul ingerului\n rogue.getEvent().anEventHappened(rogue, this, \"help\");\n // ofer Xp jucatorului pentru a trece la nivelul urmator\n rogue.gainXp(getNewXp(rogue));\n }", "public void setDamage(double d) {\n damage = d;\n }", "@Override\n public void attackedByPaladin(double attack) {\n this.attack += (2 * attack) / 3;\n damageCounter = Math.max(damageCounter - (2 * attack) / 3, 0);\n }", "private void calculateDamage() {\n this.baseDamage = this.actualBaseDamage;\n this.applyPowers();\n this.baseDamage = Math.max(this.baseDamage - ((this.baseDamage * this.otherCardsPlayed) / this.magicNumber), 0);\n }", "public void setDamageTaken(double damage){\n\t\tlifeForce -= damage;\n\t\tif (! (lifeForce > 0) ) {\n\t\t\tJOptionPane.showMessageDialog(null, \"You Died - GAME OVER\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void OnDamage(AI ai, int aTK, float f) {\n\tif(DamagedTimer < 0.8f)\n\t\treturn;\n\tvel.x = f;\n\tvel.y = 3;\n\tDamagedTimer = 0;\n\tgrounded = false;\n\taTK -= (getDEF()*0.8f);\n\tif(aTK <= 0)\n\t\taTK = 1;\n\tHP -= aTK;\n\tInventory.CurrentInventory.dmgTxts.add(new dmgText(pos.x, pos.y+1, aTK));\n\t\n\tSoundManager.PlaySound(\"playerHurt\",3);\n\t\n\t\n}", "public void damage(int damageTaken) {\n //TODO: Create specific damage methods instead of damage calls everywhere(see damagedByBullet())\n if (!invincible) {\n this.hp -= damageTaken;\n }\n }", "public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}", "public void ability(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage+12;\n lm.player.setDamage(newDamage);\n }", "@Override\r\n\tpublic boolean damageEntity(DamageSource damagesource, float f2) {\n\t\tboolean toReturn = super.damageEntity(damagesource, f2);\r\n\t\tif(f2>=3 && !this.isInvulnerable(damagesource) && damagesource.getEntity()!=null && damagesource.getEntity().getBukkitEntity() instanceof Player) { // prevent things like snowball damage from triggering this ability\r\n\t\t\tif(random.nextInt(100)+1<=20) { //prevent boss from getting combo'd to hard in corner\r\n\t\t\t\tif(!teleportCooldown.isOnCooldown((Player)damagesource.getEntity().getBukkitEntity())) {\r\n\t\t\t\t\tteleportToEnemy();\t\t\r\n\t\t\t\t\tteleportCooldown.addCooldown((Player)damagesource.getEntity().getBukkitEntity());\r\n\t\t\t\t\tLog.info(teleportCooldown.isOnCooldown((Player)damagesource.getEntity().getBukkitEntity()));\r\n\t\t\t\t\tLog.info(((Player)damagesource.getEntity().getBukkitEntity()).getName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t}", "public void setHungerDamage(float hunger);", "public void reduceHealth(int damage){\n health -= damage;\n }", "@Override\n public void attackedByShaman(double attack) {\n damageCounter += (2 * attack) / 3;\n this.attack = Math.max(this.attack - (2 * attack) / 3, 0);\n }", "public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }", "@Test\n\tvoid testDealBackDamage() {\n\t\tthis.miner.shoot();\n\t\tassertEquals(mRUtil.dwarfMiner_hp - (mRUtil.pickaxe_damage/mRUtil.saphir_returnedDamageRatio), this.miner.getHp(), \"Case: Damage taken by the Miner from saphir\");\n\n\t\tthis.saphir.setHp(50); // reset hp to 50\n\t\tthis.soldier.shoot();\n\t\tassertEquals(mRUtil.dwarfSoldier_hp - (mRUtil.rocket_damage/mRUtil.saphir_returnedDamageRatio),this.soldier.getHp(), \"Case: Damage taken by the Soldier from saphir\");\n\n\t\tthis.saphir.setHp(50);\n\t\tthis.demolitionist.shoot();\n\t\tassertEquals(mRUtil.dwarfDemolitionist_hp - (mRUtil.dynamite_damage/mRUtil.saphir_returnedDamageRatio),this.demolitionist.getHp(), \"Case: Damage taken by the Demolitionist from saphir\");\n\n\t\tthis.saphir.setHp(50);\n\t\tthis.scientist.shoot();\n\t\tassertEquals(mRUtil.dwarfScientist_hp - (mRUtil.potion_damage/mRUtil.saphir_returnedDamageRatio),this.scientist.getHp(), \"Case: Damage taken by the Scientist from saphir\");\n\t}", "public void takeDamage(int damage){\n\t\thealth -= damage;\n\t\tif(health<= 0) {\n\t\t\tspawnNew();\n\t\t}\n\t}", "public void damage(int damage, int penetration) {\n int def = defense;\n if (shield != null ) def += shield.getDefense();\n def = defense - penetration;\n if (def < 0) def = 0;\n if (def >= damage) return;\n health -= (damage - def);\n if (health < 0) health = 0;\n decreaseMoral((damage-def)/30);\n if (leader)\n color = new Color(color.getRed(), color.getGreen() + (damage-def)/2, color.getBlue() + (damage-def)/2);\n else\n color = new Color(color.getRed(), color.getGreen() + (damage-def)*2 , color.getBlue() + (damage-def)*2);\n }", "public short getSiegeWeaponDamage();", "public void getDamaged(float dmg) {\n\t\tStagePanel.addValueLabel(parentGP,dmg,Commons.cAttack);\n\t\tif(shield - dmg >= 0) {\n\t\t\tshield-=dmg;\n\t\t\tdmg = 0;\n\t\t}else {\n\t\t\tdmg-=shield;\n\t\t\tshield = 0;\n\t\t}\n\t\tif(health-dmg > 0) {\n\t\t\thealth-=dmg;\n\t\t}else {\n\t\t\thealth = 0;\n\t\t}\n\t\tSoundEffect.play(\"Hurt.wav\");\n\t}", "@Test\n void doEffectheatseeker() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"heatseeker\");\n Weapon w4 = new Weapon(\"heatseeker\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w4);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w4);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w4.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w4.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3);\n }", "public abstract int doDamage(int time, GenericMovableUnit unit, Unit target);", "public int setDamage(int damage) {\n\t\tthis.damage = damage;\n\t\treturn 0;\n\t}", "public void repair(){\n if(health < 9) {\n this.health++;\n }\n }", "public int doDamage(Actor attacker, int damage){\n if( iframes==0 ){\n health -= damage;\n healthbar.setHealth(health);\n iframes = 20;\n MuteControl.playSound(attackSound);\n if (health>0) return damage;\n die();\n return damage;\n }else return 0;\n }", "public void setDamage(double damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "private void addEnemySheild() {\n this.enemyShield += 1;\n }", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "public void takeDamage(int dmg) {\n\t\thealth -= dmg;\n\t}", "protected int recalculateDamage(int baseDamage, Conveyer info, Combatant striker, Combatant victim) {\n return baseDamage;\n }", "@Override\n public void attack(int damage)\n {\n EntityPirate target = this.world.getClosestTarget(this, EntityPirate.class, 50, true);\n //System.out.println(target.toString());\n \n float newtonForce = 1200F; //The amount of force applied to the projectile\n \n if(target != null)\n {\n Vector2 difference = target.getPos().cpy().sub(this.getPos()); //Get the difference vector\n difference.nor().scl(newtonForce); //Normalize it to a unit vector, and scale it\n new EntityWaterBomb(this.world, this.getPos().x, this.getPos().y, difference.x, difference.y, this, damage); \n } // target\n }", "@Override\r\n\t\t\tpublic void damage(CombatObject source, Projectile proj, int dmg) {\n\t\t\t\tif (lockOn != null)\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\t// Distanz prüfen\r\n\t\t\t\tif (!source.isInRange(host, lockPhysicalDetectionRange))\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\tif (source == MainZap.getPlayer() && getHost().isFriend())\r\n\t\t\t\t\treturn; // Friendly-Fire\r\n\r\n\t\t\t\t// Alle Bedingungen erfüllt\r\n\t\t\t\tif (parked) // Park-Bremse aufheben\r\n\t\t\t\t\tparked = false;\r\n\t\t\t\tlockOn = source;\r\n\t\t\t\thost.setShootingAim(source);\r\n\t\t\t}", "private float setFTPAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.ftpDamageModifier = baseDamageModifier + change;\n//System.out.println(\"ftp: \" + this.ftpDamageModifier);\n content.put(\"ftp_damage_modifier\", \"\" + this.ftpDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }", "public int getDamage() {\n return damage;\n }", "public int takeDamage(int damage) \r\n\t{\r\n\t\t//Pre: an int damage\r\n\t\t//Post: reduces health variable by damage\r\n\t\tif(health - damage > 0) \r\n\t\t{\r\n\t\t\thealth -= damage;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\thealth = 0;\r\n\t\t}\r\n\t\treturn health;\r\n\t}", "public interface Damage {\n}", "public void takeDamage(int damage) {\r\n health -= damage;\r\n if(health<=0)setAlive(false);\r\n }", "public void setSiegeWeaponDamage(short siegeWeaponDamage);", "@Test\n public void getDefensiveModifierTest() {\n \n assertEquals(0.2, hawthorn1.getDefenseModifier(), 0.1);\n }", "public int increaseDefense () {\n return 3;\n }", "@Override\n\tprotected void onPlayerDamage(EntityDamageEvent evt, Player p) {\n\t\tsuper.onPlayerDamage(evt, p);\n\t\tif(evt.getCause() == DamageCause.WITHER){\n\t\t\tGUtils.healDamageable(getOwnerPlayer(), evt.getDamage() * 1.5);\n\t\t\tVector v = Utils.CrearVector(getOwnerPlayer().getLocation(), getPlayer().getLocation()).multiply(0.5D);\n\t\t\tdouble max = 7;\n\t\t\tfor (int i = 0; i < max; i++) {\n//\t\t\t\tgetWorld().playEffect(getPlayer().getEyeLocation().add(0, -0.8, 0).add(v.clone().multiply(i/max)),\n//\t\t\t\t\t\tEffect.HEART, 0);\n\t\t\t}\n\t\t}\n\t}", "public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\t// we don't smell anything\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tAgentSpace space = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tBoundedEntry bounded = space.getBounded(Variable.energy);\n\t\tfloat pct = bounded.getValue() / bounded.getMax();\n\t\treturn 1 - (pct*pct);\n\t}", "@Override\n public int viability() {\n int[] newStats = getNewStats();\n return newStats[0] * newStats[1];\n }" ]
[ "0.6886149", "0.68707925", "0.67920995", "0.67229134", "0.671425", "0.6687903", "0.6687697", "0.66160214", "0.65878713", "0.65305877", "0.65142405", "0.64817095", "0.6420939", "0.64077216", "0.6380649", "0.6371063", "0.6346922", "0.6346922", "0.6346922", "0.6346922", "0.6346922", "0.63134956", "0.6309443", "0.6306224", "0.6299378", "0.6299328", "0.6296631", "0.6248891", "0.6238101", "0.622001", "0.6204301", "0.6195836", "0.6183339", "0.6180987", "0.616666", "0.61278486", "0.60850793", "0.6059299", "0.6056286", "0.60513854", "0.60215634", "0.6019013", "0.6013507", "0.60082597", "0.59755456", "0.59746873", "0.59495944", "0.59322804", "0.592912", "0.59199303", "0.59171134", "0.59143597", "0.59126985", "0.59001553", "0.5899988", "0.58997273", "0.5896686", "0.58721215", "0.58655834", "0.5865345", "0.58640087", "0.58572453", "0.5855158", "0.5852988", "0.58484054", "0.5839878", "0.58277535", "0.58159894", "0.5806302", "0.5804641", "0.5803519", "0.5797519", "0.57928544", "0.5780024", "0.5772382", "0.57718164", "0.5769133", "0.5767919", "0.5767049", "0.5766929", "0.57612276", "0.57592124", "0.57591355", "0.57507527", "0.574636", "0.5738987", "0.572368", "0.57123756", "0.57121193", "0.57107824", "0.5708145", "0.5704665", "0.5701968", "0.5692673", "0.5687401", "0.5685852", "0.5685342", "0.5684106", "0.5677022", "0.56737745", "0.56705076" ]
0.0
-1
cresc modificatorii de damage pentru fiecare abilitate a jucatorului
@Override public void visit(final Pyromancer pyromancer) { pyromancer.getFirstAbility(). changeAllVictimModifier(DAMAGE_MODIFIER_FOR_PYROMANCER); pyromancer.getSecondAbility(). changeAllVictimModifier(DAMAGE_MODIFIER_FOR_PYROMANCER); // anunt magicianul de ajutorul ingerului pyromancer.getEvent().anEventHappened(pyromancer, this, "help"); // ofer Xp jucatorului pentru a trece la nivelul urmator pyromancer.gainXp(getNewXp(pyromancer)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void takeDamage(int damage);", "@Override\n\tpublic void takeDamage(double damage) {\n\n\t}", "@Override\n\tpublic void damage(float f) {\n\t\t\n\t}", "public void applyDamage(int damage)\r\n\t{\r\n\r\n\t}", "public int giveDamage();", "@Override\r\n\tpublic void damage(float amount) {\n\t\t\r\n\t}", "private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }", "protected void takeDamage(int damage)\n {\n health = health - damage;\n \n }", "public void takeDamage(int damage) {\n Random rand = new Random();\n int game = rand.nextInt(51) + 75;\n double game2 = (double) game;\n double percDamage = game2/100.0;\n double realSomething = (double) damage;\n double actualDamageNotReal = realSomething * percDamage;\n int actualDamage = (int) actualDamageNotReal;\n int actualDmg = actualDamage - this.armour;\n if (actualDmg <= 0){\n actualDmg = 0;\n }\n this.health -= actualDmg;\n slowDisplay(String.format(\"%s takes %s damage, now at %s\\n\",this.name,actualDmg,this.health));\n\n }", "public void takeDamage(int damage) {\n\t\tlife = (life-damage<0)?0:life-damage;\n\t}", "@Override\n\tpublic int calculateDamage() \n\t{\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "private void takeDamage(int damage){ health -= damage;}", "public void takeDamage(double damage){\n damage -= this.armor;\n this.health -= damage;\n }", "public void takeDamage(int damage) {\n this.damageTaken += damage;\n }", "@Override\n public int damage() {\n int newDamage=criticalStrike();\n return newDamage;\n }", "private void subtractEnemySheild(int damage) {\n this.enemyShield -= damage;\n }", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "int getDamage();", "private float setAttackAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.attackDamageModifier = baseDamageModifier + change;\n//System.out.println(\"attack: \" + this.attackDamageModifier);\n content.put(\"attack_damage_modifier\", \"\" + this.attackDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }", "@Override\n public int doDamage() {\n if (difficulty <5)\n return damage;\n else \n return damage*2;\n }", "public int takeDamage(int damage) {\n damage -= ARMOR;\r\n // set new hp\r\n return super.takeDamage(damage);\r\n }", "boolean takeDamage(DamageCount damage);", "private void subtractPlayerSheild(int damage) {\n this.playerShield -= damage;\n }", "boolean takeDamage(int dmg);", "public void takeDamage(int amount){\r\n\t\tthis.life = this.life - amount;\r\n\t}", "public void damage(int amount) {\n \tshield = shield - amount;\n }", "public void damageDevice() {\n\t\t\r\n\t}", "@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }", "@Override\n protected int strengthViability(Creature c){\n int baseViability = super.strengthViability(c);\n if (Elements.elementDamageMultiplier(c,bossFormation.getFrontCreature().getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST * 3);\n }\n if (Elements.elementDamageMultiplier(bossFormation.getFrontCreature(),c.getElement()) > 1){\n baseViability = (int)(baseViability * (double)Elements.DAMAGE_BOOST / 3);\n }\n return baseViability;\n }", "public void changeCostumeRight(){\n if(costume == 3){\n costume = 0;\n }\n else{\n costume ++;\n }\n Locker.updateCostume(costume);\n PrefLoader.updateFile();\n\n }", "public int getMetadata(int damage) {\n/* 50 */ return damage;\n/* */ }", "@Override\r\n\tpublic String attack(int damage) {\n\t\treturn damage +\"로 공격 합니다.\";\r\n\t}", "public static void damageStep () {\r\n // rough plan:\r\n // #1: flip defending monster, if face down -> see flipMonster(...);\r\n // #2: Ask CPU and player for possible effect negation! (For an attack negation it is too late!) -> see below in this method\r\n // #3: calculate damage, kill monsters, if needed\r\n // (consider also banishing and immunity, also copied passive effect of (Holy) Lance)\r\n // -> see makeDamageCalculation(...);\r\n // #4: decrease life points, if needed -> see isDealingBattleDamageAndContinuingGame(...);\r\n // #5: consider passive (also copied) trap monster effects -> see possibleSuicideEffect(...);\r\n // #6: display Win/Lose dialog and end match, if needed -> see Game.over(...);\r\n // #7: finally end the attack (consider the effects that happen afterwards), thus allowing the next attack -> endDamageStep(...);\r\n \r\n // about #1:\r\n if (Game.ActiveGuardingMonster.isFaceDown) {flipMonster(Game.ActiveGuardingMonster);}\r\n // about #2:\r\n if (Game.ActiveAttackingMonster.canBeNegated() || Game.ActiveGuardingMonster.canBeNegated()) {\r\n AIinterrupts.cpuIsUsingEffectNegateDuringBattlePhase(); // ask CPU to negate effects first\r\n // ask player to negate effect here\r\n boolean isCanceling = false;\r\n boolean hasEffectNegateHandTrap = Hand.lookForEffectNegateOnHand(true);\r\n boolean hasEffectNegateOnField = Hand.lookForEffectNegateOnField(true);\r\n if (hasEffectNegateHandTrap || hasEffectNegateOnField) {\r\n if (hasEffectNegateHandTrap && !hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (!hasEffectNegateHandTrap && hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n else {\r\n int intDialogResult = YuGiOhJi.multipleChoiceDialog(\"Do you want to negate effects on the field?\", \"You can negate passive effects.\", new String[]{\"yes, by discarding Neutraliser\", \"yes, by paying the cost worth 1 card\", \"no (default)\"}, \"no (default)\");\r\n if (intDialogResult==0) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (intDialogResult==1) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n }\r\n }\r\n if (!isCanceling) {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n }\r\n else {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n \r\n }", "public void setDamage(int d) {\r\n this.damage = d;\r\n }", "@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\r\n public void onPlayerDamagedByPlayer(final EntityDamageByEntityEvent event) {\n if (!(event.getEntity() instanceof Player)) {\r\n return;\r\n }\r\n if (!(event.getDamager() instanceof Player)) {\r\n return;\r\n }\r\n \r\n final Player target = (Player)event.getEntity();\r\n final Player attacker = (Player)event.getDamager();\r\n final ItemStack is = attacker.getItemInHand();\r\n \r\n if (is != null){\r\n switch (is.getType()){\r\n case EMERALD:\r\n attacker.setItemInHand(ItemUtil.decrementItem(is, 1));\r\n \r\n // 体力・空腹回復、燃えてたら消化\r\n target.setHealth(target.getMaxHealth());\r\n target.setFoodLevel(20);\r\n target.setFireTicks(0);\r\n \r\n // ポーション効果付与\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.REGENERATION, 45 * 20, 0)); // 45 secs\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FIRE_RESISTANCE, 7 * 60 * 20, 0)); // 7 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE, 9 * 60 * 20, 1)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.SPEED, 9 * 60 * 20, 0)); // 9 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.FAST_DIGGING, 5 * 60 * 20, 1)); // 5 mins\r\n target.addPotionEffect(new PotionEffect(PotionEffectType.NIGHT_VISION, 3 * 60 * 20, 0)); // 3 mins\r\n \r\n // effect, messaging\r\n target.getWorld().playEffect(target.getLocation(), Effect.ENDER_SIGNAL, 0, 10);\r\n Util.message(target, PlayerManager.getPlayer(attacker).getName() + \" &aから特殊効果を与えられました!\");\r\n Util.message(attacker, PlayerManager.getPlayer(target).getName() + \" &aに特殊効果を与えました!\");\r\n \r\n event.setCancelled(true);\r\n event.setDamage(0);\r\n break;\r\n default: break;\r\n }\r\n }\r\n }", "public void takeAttack(int damage) {\r\n if(this.evasion > 0)\r\n this.evasion--;\r\n else\r\n this.takeDamage(damage);\r\n }", "public void hack(Entity e) {\r\n\t\te.modifyHp(10);\r\n\t}", "void damagePlayer(int i) throws IOException {\n }", "public void suffer(int damage){\r\n\t\thp -= damage;\r\n\t\tinvulnerable = true;\r\n\t}", "public void takeDamage(int dmg){\r\n this.currHP -= dmg;\r\n }", "public void takeDamage(int damage) {\r\n this.health -= damage;\r\n if(this.health < 0)\r\n this.health = 0;\r\n }", "public void damaged() {\n this.damageState = DamageState.DAMAGED;\n }", "public void takedmg(int dmg){\n curHp -= dmg;\n }", "public int getDamage() {\n //TODO\n return 1;\n }", "public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }", "PreventionEffectData preventDamage(GameEvent damageEvent, Ability source, Game game, int amountToPrevent);", "public void hurt(int damage)\n {\n \t hp -= (damage - ( damage * armor / 100 ));\n \t //System.out.println(\"hp: \" + hp);\n }", "@Override\n\tpublic int fight(Enemy e1) {\n\t\tint damage = 0;\n\t\tRandom randomNum = new Random();\n\t\tdamage = 6 + randomNum.nextInt(4);\n\t\ttry {\n\t\t\te1.takeDamage(damage);\n\t\t} catch (InvalidDamageException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn damage;\n\t}", "@Test\n void doEffectlockrifle() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl, false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"lock rifle\");\n Weapon w = new Weapon(\"lock rifle\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.getWeapons().add(w);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n RealPlayer victim1 = new RealPlayer('y', \"ciccia1\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n victim1.setPlayerPosition(Board.getSpawnpoint('b'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim1);\n try{\n p.getPh().getWeaponDeck().getWeapon(w.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPb().getMarkedDamages('b') == 1 && victim1.getPb().countDamages() == 0 && victim1.getPb().getMarkedDamages('b') == 1 );\n }", "public void setDamage(int damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "public void damagePlayer(int damage){\n hero.decreaseHp(damage);\n }", "void takeDamage(int points) {\n this.health -= points;\n }", "@Override\n public void addDamage(Player shooter, int damage) {\n if(!this.equals(shooter) && damage > 0) {\n int num=0;\n boolean isRage = false;\n Kill lastKill = null;\n List<PlayerColor> marksToBeRemoved = marks.stream().filter(m -> m == shooter.getColor()).collect(Collectors.toList());\n damage += marksToBeRemoved.size();\n marks.removeAll(marksToBeRemoved);\n\n if (this.damage.size() < 11) { //11\n for (int i = 0; i < damage; i++)\n this.damage.add(shooter.getColor());\n num = this.damage.size();\n if (num > 10) { //10\n this.deaths++;\n this.isDead = true;\n if (num > 11) {\n isRage = true;\n shooter.addThisTurnMarks(this, 1); //the shooter receive a mark in case of rage\n }\n if (game != null)\n game.addThisTurnKill(shooter, this, isRage);\n\n } else if (num > 5)\n this.adrenaline = AdrenalineLevel.SHOOTLEVEL;\n else if (num > 2)\n this.adrenaline = AdrenalineLevel.GRABLEVEL;\n } else if (this.damage.size() == 11 && damage > 0) { //11\n lastKill = game.getLastKill(this);\n lastKill.setRage(true);\n shooter.addThisTurnMarks(this, 1); //the shooter receive a mark in case of rage\n if(game != null)\n game.notifyRage(lastKill);\n }\n if (game != null)\n game.notifyDamage(this, shooter, damage, marksToBeRemoved.size());\n }\n }", "public void takeDamage()\n {\n if(getWorld()!= null)\n {\n if(this.isTouching(Enemies.class))\n {\n Life = Life - Enemies.damage;\n if(Life <=0)\n {\n getWorld().removeObject(this);\n Store.wealth += Game.credit;\n }\n }\n }\n }", "@Override\n public void visit(final Rogue rogue) {\n rogue.getFirstAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE);\n rogue.getSecondAbility().changeAllVictimModifier(DAMAGE_MODIFIER_FOR_ROGUE);\n // anunt magicianul de ajutorul ingerului\n rogue.getEvent().anEventHappened(rogue, this, \"help\");\n // ofer Xp jucatorului pentru a trece la nivelul urmator\n rogue.gainXp(getNewXp(rogue));\n }", "public void setDamage(double d) {\n damage = d;\n }", "@Override\n public void attackedByPaladin(double attack) {\n this.attack += (2 * attack) / 3;\n damageCounter = Math.max(damageCounter - (2 * attack) / 3, 0);\n }", "private void calculateDamage() {\n this.baseDamage = this.actualBaseDamage;\n this.applyPowers();\n this.baseDamage = Math.max(this.baseDamage - ((this.baseDamage * this.otherCardsPlayed) / this.magicNumber), 0);\n }", "public void setDamageTaken(double damage){\n\t\tlifeForce -= damage;\n\t\tif (! (lifeForce > 0) ) {\n\t\t\tJOptionPane.showMessageDialog(null, \"You Died - GAME OVER\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void OnDamage(AI ai, int aTK, float f) {\n\tif(DamagedTimer < 0.8f)\n\t\treturn;\n\tvel.x = f;\n\tvel.y = 3;\n\tDamagedTimer = 0;\n\tgrounded = false;\n\taTK -= (getDEF()*0.8f);\n\tif(aTK <= 0)\n\t\taTK = 1;\n\tHP -= aTK;\n\tInventory.CurrentInventory.dmgTxts.add(new dmgText(pos.x, pos.y+1, aTK));\n\t\n\tSoundManager.PlaySound(\"playerHurt\",3);\n\t\n\t\n}", "public void damage(int damageTaken) {\n //TODO: Create specific damage methods instead of damage calls everywhere(see damagedByBullet())\n if (!invincible) {\n this.hp -= damageTaken;\n }\n }", "public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}", "public void ability(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage+12;\n lm.player.setDamage(newDamage);\n }", "@Override\r\n\tpublic boolean damageEntity(DamageSource damagesource, float f2) {\n\t\tboolean toReturn = super.damageEntity(damagesource, f2);\r\n\t\tif(f2>=3 && !this.isInvulnerable(damagesource) && damagesource.getEntity()!=null && damagesource.getEntity().getBukkitEntity() instanceof Player) { // prevent things like snowball damage from triggering this ability\r\n\t\t\tif(random.nextInt(100)+1<=20) { //prevent boss from getting combo'd to hard in corner\r\n\t\t\t\tif(!teleportCooldown.isOnCooldown((Player)damagesource.getEntity().getBukkitEntity())) {\r\n\t\t\t\t\tteleportToEnemy();\t\t\r\n\t\t\t\t\tteleportCooldown.addCooldown((Player)damagesource.getEntity().getBukkitEntity());\r\n\t\t\t\t\tLog.info(teleportCooldown.isOnCooldown((Player)damagesource.getEntity().getBukkitEntity()));\r\n\t\t\t\t\tLog.info(((Player)damagesource.getEntity().getBukkitEntity()).getName());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t}", "public void setHungerDamage(float hunger);", "public void reduceHealth(int damage){\n health -= damage;\n }", "@Override\n public void attackedByShaman(double attack) {\n damageCounter += (2 * attack) / 3;\n this.attack = Math.max(this.attack - (2 * attack) / 3, 0);\n }", "public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }", "@Test\n\tvoid testDealBackDamage() {\n\t\tthis.miner.shoot();\n\t\tassertEquals(mRUtil.dwarfMiner_hp - (mRUtil.pickaxe_damage/mRUtil.saphir_returnedDamageRatio), this.miner.getHp(), \"Case: Damage taken by the Miner from saphir\");\n\n\t\tthis.saphir.setHp(50); // reset hp to 50\n\t\tthis.soldier.shoot();\n\t\tassertEquals(mRUtil.dwarfSoldier_hp - (mRUtil.rocket_damage/mRUtil.saphir_returnedDamageRatio),this.soldier.getHp(), \"Case: Damage taken by the Soldier from saphir\");\n\n\t\tthis.saphir.setHp(50);\n\t\tthis.demolitionist.shoot();\n\t\tassertEquals(mRUtil.dwarfDemolitionist_hp - (mRUtil.dynamite_damage/mRUtil.saphir_returnedDamageRatio),this.demolitionist.getHp(), \"Case: Damage taken by the Demolitionist from saphir\");\n\n\t\tthis.saphir.setHp(50);\n\t\tthis.scientist.shoot();\n\t\tassertEquals(mRUtil.dwarfScientist_hp - (mRUtil.potion_damage/mRUtil.saphir_returnedDamageRatio),this.scientist.getHp(), \"Case: Damage taken by the Scientist from saphir\");\n\t}", "public void takeDamage(int damage){\n\t\thealth -= damage;\n\t\tif(health<= 0) {\n\t\t\tspawnNew();\n\t\t}\n\t}", "public void damage(int damage, int penetration) {\n int def = defense;\n if (shield != null ) def += shield.getDefense();\n def = defense - penetration;\n if (def < 0) def = 0;\n if (def >= damage) return;\n health -= (damage - def);\n if (health < 0) health = 0;\n decreaseMoral((damage-def)/30);\n if (leader)\n color = new Color(color.getRed(), color.getGreen() + (damage-def)/2, color.getBlue() + (damage-def)/2);\n else\n color = new Color(color.getRed(), color.getGreen() + (damage-def)*2 , color.getBlue() + (damage-def)*2);\n }", "public short getSiegeWeaponDamage();", "public void getDamaged(float dmg) {\n\t\tStagePanel.addValueLabel(parentGP,dmg,Commons.cAttack);\n\t\tif(shield - dmg >= 0) {\n\t\t\tshield-=dmg;\n\t\t\tdmg = 0;\n\t\t}else {\n\t\t\tdmg-=shield;\n\t\t\tshield = 0;\n\t\t}\n\t\tif(health-dmg > 0) {\n\t\t\thealth-=dmg;\n\t\t}else {\n\t\t\thealth = 0;\n\t\t}\n\t\tSoundEffect.play(\"Hurt.wav\");\n\t}", "@Test\n void doEffectheatseeker() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"heatseeker\");\n Weapon w4 = new Weapon(\"heatseeker\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w4);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w4);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w4.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w4.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3);\n }", "public abstract int doDamage(int time, GenericMovableUnit unit, Unit target);", "public int setDamage(int damage) {\n\t\tthis.damage = damage;\n\t\treturn 0;\n\t}", "public void repair(){\n if(health < 9) {\n this.health++;\n }\n }", "public int doDamage(Actor attacker, int damage){\n if( iframes==0 ){\n health -= damage;\n healthbar.setHealth(health);\n iframes = 20;\n MuteControl.playSound(attackSound);\n if (health>0) return damage;\n die();\n return damage;\n }else return 0;\n }", "public void setDamage(double damage) {\r\n\t\tthis.damage = damage;\r\n\t}", "private void addEnemySheild() {\n this.enemyShield += 1;\n }", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "public void takeDamage(int dmg) {\n\t\thealth -= dmg;\n\t}", "protected int recalculateDamage(int baseDamage, Conveyer info, Combatant striker, Combatant victim) {\n return baseDamage;\n }", "@Override\n public void attack(int damage)\n {\n EntityPirate target = this.world.getClosestTarget(this, EntityPirate.class, 50, true);\n //System.out.println(target.toString());\n \n float newtonForce = 1200F; //The amount of force applied to the projectile\n \n if(target != null)\n {\n Vector2 difference = target.getPos().cpy().sub(this.getPos()); //Get the difference vector\n difference.nor().scl(newtonForce); //Normalize it to a unit vector, and scale it\n new EntityWaterBomb(this.world, this.getPos().x, this.getPos().y, difference.x, difference.y, this, damage); \n } // target\n }", "@Override\r\n\t\t\tpublic void damage(CombatObject source, Projectile proj, int dmg) {\n\t\t\t\tif (lockOn != null)\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\t// Distanz prüfen\r\n\t\t\t\tif (!source.isInRange(host, lockPhysicalDetectionRange))\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\tif (source == MainZap.getPlayer() && getHost().isFriend())\r\n\t\t\t\t\treturn; // Friendly-Fire\r\n\r\n\t\t\t\t// Alle Bedingungen erfüllt\r\n\t\t\t\tif (parked) // Park-Bremse aufheben\r\n\t\t\t\t\tparked = false;\r\n\t\t\t\tlockOn = source;\r\n\t\t\t\thost.setShootingAim(source);\r\n\t\t\t}", "private float setFTPAbsorption(HashMap content) {\n\t\tfloat change = calculateAbsorption();\n this.ftpDamageModifier = baseDamageModifier + change;\n//System.out.println(\"ftp: \" + this.ftpDamageModifier);\n content.put(\"ftp_damage_modifier\", \"\" + this.ftpDamageModifier);\n\t\treturn change*ABSORPTION_PRICE_MULTIPLIER;\n }", "public int getDamage() {\n return damage;\n }", "public int takeDamage(int damage) \r\n\t{\r\n\t\t//Pre: an int damage\r\n\t\t//Post: reduces health variable by damage\r\n\t\tif(health - damage > 0) \r\n\t\t{\r\n\t\t\thealth -= damage;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\thealth = 0;\r\n\t\t}\r\n\t\treturn health;\r\n\t}", "public interface Damage {\n}", "public void takeDamage(int damage) {\r\n health -= damage;\r\n if(health<=0)setAlive(false);\r\n }", "public void setSiegeWeaponDamage(short siegeWeaponDamage);", "@Test\n public void getDefensiveModifierTest() {\n \n assertEquals(0.2, hawthorn1.getDefenseModifier(), 0.1);\n }", "public int increaseDefense () {\n return 3;\n }", "@Override\n\tprotected void onPlayerDamage(EntityDamageEvent evt, Player p) {\n\t\tsuper.onPlayerDamage(evt, p);\n\t\tif(evt.getCause() == DamageCause.WITHER){\n\t\t\tGUtils.healDamageable(getOwnerPlayer(), evt.getDamage() * 1.5);\n\t\t\tVector v = Utils.CrearVector(getOwnerPlayer().getLocation(), getPlayer().getLocation()).multiply(0.5D);\n\t\t\tdouble max = 7;\n\t\t\tfor (int i = 0; i < max; i++) {\n//\t\t\t\tgetWorld().playEffect(getPlayer().getEyeLocation().add(0, -0.8, 0).add(v.clone().multiply(i/max)),\n//\t\t\t\t\t\tEffect.HEART, 0);\n\t\t\t}\n\t\t}\n\t}", "public int getDamage() {\n \t\treturn damage + ((int) 0.5*level);\n \t}", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "@Override\n\tpublic float desireability() {\n\t\tAgentSpace agentSpace = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tMap<String,FoodEntry> map = agentSpace.getScentMemories().getFirst();\n\t\tif (map == null || map.size() == 0) { \n\t\t\t// we don't smell anything\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tAgentSpace space = Blackboard.inst().getSpace(AgentSpace.class, _obj.getName());\n\t\tBoundedEntry bounded = space.getBounded(Variable.energy);\n\t\tfloat pct = bounded.getValue() / bounded.getMax();\n\t\treturn 1 - (pct*pct);\n\t}", "@Override\n public int viability() {\n int[] newStats = getNewStats();\n return newStats[0] * newStats[1];\n }" ]
[ "0.6886149", "0.68707925", "0.67920995", "0.67229134", "0.671425", "0.6687903", "0.6687697", "0.66160214", "0.65878713", "0.65305877", "0.65142405", "0.64817095", "0.6420939", "0.64077216", "0.6380649", "0.6371063", "0.6346922", "0.6346922", "0.6346922", "0.6346922", "0.6346922", "0.63134956", "0.6309443", "0.6306224", "0.6299378", "0.6299328", "0.6296631", "0.6248891", "0.6238101", "0.622001", "0.6204301", "0.6195836", "0.6183339", "0.6180987", "0.616666", "0.61278486", "0.60850793", "0.6059299", "0.6056286", "0.60513854", "0.60215634", "0.6019013", "0.6013507", "0.60082597", "0.59755456", "0.59746873", "0.59495944", "0.59322804", "0.592912", "0.59199303", "0.59171134", "0.59143597", "0.59126985", "0.59001553", "0.5899988", "0.58997273", "0.5896686", "0.58721215", "0.58655834", "0.5865345", "0.58640087", "0.58572453", "0.5855158", "0.5852988", "0.58484054", "0.5839878", "0.58277535", "0.58159894", "0.5806302", "0.5804641", "0.5803519", "0.5797519", "0.57928544", "0.5780024", "0.5772382", "0.57718164", "0.5769133", "0.5767919", "0.5767049", "0.5766929", "0.57612276", "0.57592124", "0.57591355", "0.57507527", "0.574636", "0.5738987", "0.572368", "0.57123756", "0.57121193", "0.57107824", "0.5708145", "0.5704665", "0.5701968", "0.5692673", "0.5687401", "0.5685852", "0.5685342", "0.5684106", "0.5677022", "0.56737745", "0.56705076" ]
0.0
-1
This method is recursive
private static Set<FieldGroup> findGroupsFromMap(Map<Field, List<Field>> map) { if (map.isEmpty()) { return new HashSet<>(); } Map<Field, List<Field>> copiedMap = new HashMap<>(map); Set<Field> fields = findGroup(SetUtils.firstIteratorElement(copiedMap.keySet()), copiedMap); copiedMap.keySet().removeAll(fields); copiedMap.values().forEach(fieldList -> fieldList.removeAll(fields)); FieldGroup converted = new FieldGroup(new ArrayList<>(fields)); Set<FieldGroup> result = findGroupsFromMap(copiedMap); result.add(converted); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "@Override\n protected void iterChildren(TreeFunction f) {\n }", "public void inOrderTraverseRecursive();", "@Override\n\tpublic void walk() {\n\t\t\n\t}", "protected abstract void traverse();", "static void recursive(SootMethod method){\r\n \tvisited.put(method.getSignature(),true);\r\n \tIterator <MethodOrMethodContext> target_1=new Targets(cg.edgesOutOf(method));\r\n \r\n \tif(target_1!=null){\r\n \t\twhile(target_1.hasNext())\r\n \t\t{\r\n \t\t\tSootMethod target_2=(SootMethod)target_1.next();\r\n \t\t\tSystem.out.println(\"\\t\"+ target_2.getSignature().toString());\r\n \t\t\tif(!visited.containsKey(target_2.getSignature()))\r\n \t\t\t\trecursive(target_2);\r\n \t\t}\r\n \t}\r\n \t}", "@Override\n\tpublic void preorder() {\n\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void walk() {\n\r\n\t}", "@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}", "@Override\n public int getDepth() {\n return 0;\n }", "private static void iterator() {\n\t\t\r\n\t}", "@Test\n public void testRecursion() throws Exception {\n//TODO: Test goes here... \n/* \ntry { \n Method method = Solution.getClass().getMethod(\"recursion\", ArrayList<Integer>.class, TreeNode.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void dfs() {\n\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void bfs() {\n\n }", "@Override\r\n\tpublic Node visitSequence(SequenceContext ctx) {\n\t\treturn super.visitSequence(ctx);\r\n\t}", "private void poetries() {\n\n\t}", "boolean isRecursive();", "public void inOrderTraverseIterative();", "@Override \n public boolean shouldTraverse(Traversal traversal, Exp e, Exp parent) {\n return true; \n }", "public static void main(String[] args){\n LinkedListDeque<String> lld = new LinkedListDeque<>();\n lld.addFirst(\"Hello\");\n lld.addLast(\"Java\");\n lld.addLast(\"!\");\n\n String s0 = lld.getRecursive(0);\n String s1 = lld.getRecursive(1);\n String s2 = lld.getRecursive(2);\n System.out.println(s0 + s1 + s2);\n System.out.println(lld.getRecursive(556));\n //lld.getRecursive(2);\n }", "boolean hasRecursive();", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "public abstract void bepaalGrootte();", "@Override\n\tprotected void interr() {\n\t}", "void calculating(int depth);", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "static void p(){\n System.out.println(\"My recursion example 1\");\n p();\n }", "public void deepList() throws Exception;", "@Override\npublic void setIncrementalChildAddition(boolean newVal) {\n\t\n}", "@Override\r\n\tpublic Node visitSequential(SequentialContext ctx) {\n\t\treturn super.visitSequential(ctx);\r\n\t}", "private static void recursiveFixedSumPairs(/* determine parameters here */){\r\n\t\t// complete this method\r\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public String preorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn preorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "private void kk12() {\n\n\t}", "@Override\n protected void refreshChildren() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void recursiveInitialize(List<JoinPath> joinPaths, Object rootObj) throws OgnlException\n {\n\n Map<String, Object> joinPathMap = new HashMap<String, Object>();\n Map<String, Object> flatIndex = new HashMap<String, Object>();\n HashMap parentMap = new HashMap();\n parentMap.put(\"alias\",\"this\");\n parentMap.put(\"joinType\", JoinType.LEFT_JOIN);\n joinPathMap.put(\"this\", parentMap);\n flatIndex.put(\"this\", parentMap);\n\n for (JoinPath joinPath : joinPaths)\n {\n if(StringUtils.isBlank(joinPath.alias))\n {\n //kalo kosong lewati\n/*\n String[] pathArray = joinPath.path.split(\"[.]\");\n HashMap mapMember = new HashMap();\n mapMember.put(\"joinType\", joinPath.joinType);\n String key = pathArray[pathArray.length - 1];\n if(flatIndex.get(key)!=null)//ada alias kembar tolak !!\n {\n throw new RuntimeException(\"Alias dari Join Path :\"+key+\" terdefinisi lebih dari sekali\");\n }\n flatIndex.put(key, mapMember);\n*/\n }\n else\n {\n HashMap mapMember = new HashMap();\n mapMember.put(\"joinType\", joinPath.joinType);\n String key = joinPath.alias;\n if(flatIndex.get(key)!=null)//ada alias kembar tolak !!\n {\n throw new RuntimeException(\"Alias dari Join Path :\"+key+\" terdefinisi lebih dari sekali\");\n }\n flatIndex.put(key, mapMember);\n }\n }\n for (JoinPath joinPath : joinPaths)\n {\n String[] pathArray = joinPath.path.split(\"[.]\");\n if(pathArray.length>1)\n {\n //gabung alias ke pathnya\n //cari parent\n Map mapParent = (Map) flatIndex.get(pathArray[0]);\n if(mapParent==null)\n continue;\n //cari alias child\n Map mapChild;\n //ambil dari alias dari looping atas\n if(StringUtils.isNotBlank(joinPath.alias))\n {\n mapChild = (Map) flatIndex.get(joinPath.alias);\n }\n else\n {\n mapChild = (Map) flatIndex.get(pathArray[1]);\n }\n mapParent.put(pathArray[1], mapChild);\n }\n else\n {\n //gabung alias ke pathnya\n //cari parent -- this\n Map mapParent = (Map) flatIndex.get(\"this\");\n if(mapParent==null)\n continue;\n //cari alias child\n Map mapChild;\n //ambil dari alias dari looping atas\n if(StringUtils.isNotBlank(joinPath.alias))\n {\n mapChild = (Map) flatIndex.get(joinPath.alias);\n }\n else\n {\n mapChild = (Map) flatIndex.get(pathArray[0]);\n }\n mapParent.put(pathArray[0], mapChild);\n }\n }\n if(cleanUp((Map<String, Object>) joinPathMap.get(\"this\")))\n {\n if (Collection.class.isAssignableFrom(rootObj.getClass()))\n {\n for (Object rootObjIter : ((Collection) rootObj))\n {\n recursiveInitialize((Map<String, Object>) joinPathMap.get(\"this\"), rootObjIter, true);\n }\n }\n else\n {\n recursiveInitialize((Map<String, Object>) joinPathMap.get(\"this\"), rootObj, false);\n }\n }\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "private int parent ( int pos )\n\t{\n\t\treturn -1; // replace this with working code\n\t}", "private static HashSet<String> addElement(Map m, String key,int count) {\n\t\tIterator it = m.entrySet().iterator();\n\t\tHashSet<String> allParents=new HashSet<String>();\n\t\tHashSet<String> newNodeHS=new HashSet<String>();\n\t\tHashSet<String> receive=new HashSet<String>();\n\t\tString parent=\"\";\n\t\tif(readNodes.get(key)==null)\n\t\t{\n\t\t\tif(!(key.equals(root)))\n\t\t\t{\n\t\t\tallParents=(HashSet)m.get(key);\n\t\t\tIterator iter = allParents.iterator();\n\t\t\twhile(iter.hasNext())\n\t\t\t{\n\t\t\t\tparent=(String)iter.next();\n\t\t\t\tcount++;\n\t\t\t\treceive=addElement(m,parent,count);\n\t\t\t\tString str=key+\"-\"+parent;\n\t\t\t\tIterator toRecieve = receive.iterator();\n\t\t\t\twhile(toRecieve.hasNext())\n\t\t\t\t{\n\t\t\t\t\tnewNodeHS.add((String)toRecieve.next());\n\t\t\t\t}\n\t\t\t\tnewNodeHS.add(str);\n\t\t\t\tcount--;\n\t\t\t}\n\t\t\t\tif(count==0)\n\t\t\t\t{\n\t\t\t\t\tIterator<HashSet> iternew = totalDAG.iterator();\n\t\t\t\t\tHashSet<HashSet> inProgressDAG=new HashSet<HashSet>(totalDAG); \n\t\t\t\t\twhile (iternew.hasNext()) {\n\t\t\t\t\t HashSet<String> tillCreatedDAG=iternew.next();\n\t\t\t\t\t HashSet<String> union=new HashSet<String>(newNodeHS);\n\t\t\t\t\t union.addAll(tillCreatedDAG);\n\t\t\t\t\t inProgressDAG.add(union);\n\t\t\t\t\t}\n\t\t\t\t\ttotalDAG.clear();\n\t\t\t\t\ttotalDAG=inProgressDAG;\n\t\t\t\t\ttotalDAG.add(newNodeHS);\n\t\t\t\t\treadNodes.put(key, newNodeHS);\n\t\t\t\t\tSystem.out.println(\"Size: \" +totalDAG.size()+\" Nodes: \"+(++totalCount));\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t\t\tcount--;\n\t\t\t\treturn newNodeHS;\t\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString str=root;\n\t\t\t\t\tnewNodeHS.add(str);\n\t\t\t\t\tcount--;\n\t\t\t\t\treturn newNodeHS;\n\t\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn (HashSet)readNodes.get(key);\n\t\t}\n\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public int getDepth() {\n return 680;\n }", "protected int sumRecursive(int a, int b){\n if (b == 0){\n return a;\n } else {\n if (b > 0){\n return sumRecursive(a + 1, b - 1);\n } else {\n return sumRecursive(a - 1, b + 1);\n }\n }\n }", "abstract void walk();", "@Override\r\n\tpublic void visit() {\n\r\n\t}", "@Override\n\tpublic void levelUp() {\n\n\t}", "StackManipulation cached();", "@Override\n\tpublic void anular() {\n\n\t}", "private void sub() {\n\n\t}", "private int parent(int i){return (i-1)/2;}", "public String postorderTraverse(){\r\n\t\t\r\n\t\t//the recursive call to the private method\r\n\t\t//StringBuffer is used because it is passed by reference\r\n\t\t//StringBuffer can be changed in recursive calls\r\n\t\treturn postorderTraverse(this, new StringBuffer(\"\"));\r\n\t}", "private static void walkTree(Collection<String> children, Collection<String> list, TypeTree tree) {\n\t if (children != null) {\n\t\tlist.addAll(children);\n\t String[] kids = children.toArray(new String[children.size()]);\n\t\tfor (int i = 0; i< kids.length; i++) {\n\t\t walkTree(tree.classSet(kids[i]), list, tree);\n\t\t}\n\t }\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "void walk() {\n\t\t\n\t}", "private void findNext() {\n \tthis.find(true);\n }", "void printpopulateInorderSucc(Node t){\n\t\n\n}", "protected abstract Set method_1559();", "private void process(TreeNode root){\n while(root!=null){\n dq.push(root);\n root= root.left;\n }\n }", "@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 static void builtTree\n ( ArrayList<DefaultMutableTreeNode> treeArray , \n int recursion , DefaultMutableTreeNode selected , \n boolean enableDirs , boolean enableFiles )\n {\n int m;\n if (recursion<0) { m = DEFAULT_RECURSION_LIMIT; }\n else { m = recursion; }\n for ( int k=0; k<m; k++ )\n {\n boolean request = false;\n // Start cycle for entries\n int n = treeArray.size();\n for ( int i=0; i<n; i++ )\n {\n DefaultMutableTreeNode x1 = treeArray.get(i);\n // Support selective mode, skip if not selected\n if ( (selected != null) & ( selected != x1 ) ) continue;\n // Analyse current entry, skip if already handled\n ListEntry x2 = (ListEntry)x1.getUserObject();\n if ( x2.handled == true ) continue;\n request = true;\n x2.failed = false;\n // Start handling current entry\n String x3 = x2.path;\n File file1 = new File( x3 );\n boolean exists1 = file1.exists();\n boolean directory1=false;\n if (exists1) { directory1 = file1.isDirectory(); }\n // Handling directory: make list of childs directories/files\n if ( exists1 & directory1 )\n {\n String[] list = file1.list();\n int count=0;\n if ( list != null ) count = list.length;\n for ( int j=0; j<count; j++ )\n {\n String s1 = list[j];\n String s2 = x3+\"/\"+s1;\n File file2 = new File(s2);\n boolean dir = file2.isDirectory();\n if ( ( enableDirs & dir ) | ( enableFiles & !dir ) )\n {\n ListEntry y1 = \n new ListEntry ( s1, \"\", s2, false, false );\n DefaultMutableTreeNode y2 = \n new DefaultMutableTreeNode( y1 );\n treeArray.add( y2 );\n x1.add( y2 );\n x1.setAllowsChildren( true ); // this entry is DIRECTORY\n }\n }\n }\n // Handling file: read content\n if ( exists1 & !directory1 )\n {\n int readSize = 0;\n //\n StringBuilder data = new StringBuilder(\"\");\n FileInputStream fis;\n byte[] array = new byte[BUFFER_SIZE];\n try \n { \n fis = new FileInputStream(file1);\n readSize = fis.read(array); \n fis.close();\n }\n catch ( Exception e ) \n // { data = \"N/A : \" + e; x2.failed=true; }\n { data.append( \"N/A : \" + e ); x2.failed = true; }\n char c1;\n for (int j=0; j<readSize; j++)\n { \n c1 = (char)array[j];\n // if ( (c1=='\\n') | (c1=='\\r') ) { data = data + \" \"; }\n if ( ( c1 == '\\n' ) | (c1 == '\\r' ) ) { data.append( \" \" ); }\n else \n { \n if ( ( c1 < ' ' )|( c1 > 'z' ) ) { c1 = '_'; }\n // data = data + c1;\n data.append( c1 );\n }\n }\n x2.name2 = data.toString();\n x2.leaf = true;\n x1.setAllowsChildren( false ); // this entry is FILE\n }\n // End cycle for entries\n x2.handled = true;\n }\n // End cycle for recursion\n if (request==false) break;\n }\n }", "void dumpTree(Map<Object, String> tree, List<Object> e, String name, Value result, String member) throws NotSuspendedException, NoResponseException, NotConnectedException\n\t{\n\t\t// name for this variable\n\t\tif (name == null)\n\t\t\tname = \"\"; //$NON-NLS-1$\n\n\t\t// have we seen it already\n\t\tif (tree.containsKey(result))\n\t\t\treturn;\n\n\t\ttree.put(result, name); // place it\n\n\t\t// first iterate over our members looking for 'member'\n\t\tValue proto = result;\n\t\tboolean done = false;\n\t\twhile(!done && proto != null)\n\t\t{\n\t\t\tVariable[] members = proto.getMembers(m_session);\n\t\t\tproto = null;\n\n\t\t\t// see if we find one called 'member'\n\t\t\tfor(int i=0; i<members.length; i++)\n\t\t\t{\n\t\t\t\tVariable m = members[i];\n\t\t\t\tString memName = m.getName();\n\t\t\t\tif (memName.equals(member) && !tree.containsKey(m))\n\t\t\t\t{\n\t\t\t\t\te.add(name);\n\t\t\t\t\te.add(result);\n\t\t\t\t\te.add(m);\n\t\t\t\t\ttree.put(m, name+\".\"+memName); //$NON-NLS-1$\n\t\t\t\t\tdone = true;\n\t\t\t\t}\n\t\t\t\telse if (memName.equals(\"__proto__\")) //$NON-NLS-1$\n\t\t\t\t\tproto = members[i].getValue();\n\t\t\t}\n\t\t}\n\n\t\t// now traverse other mcs recursively\n\t\tdone = false;\n\t\tproto = result;\n\t\twhile(!done && proto != null)\n\t\t{\n\t\t\tVariable[] members = proto.getMembers(m_session);\n\t\t\tproto = null;\n\n\t\t\t// see if we find an mc\n\t\t\tfor(int i=0; i<members.length; i++)\n\t\t\t{\n\t\t\t\tVariable m = members[i];\n\t\t\t\tString memName = m.getName();\n\n\t\t\t\t// if our type is NOT object or movieclip then we are done\n\t\t\t\tif (m.getValue().getType() != VariableType.OBJECT && m.getValue().getType() != VariableType.MOVIECLIP)\n\t\t\t\t\t;\n\t\t\t\telse if (m.getValue().getId() != Value.UNKNOWN_ID)\n\t\t\t\t\tdumpTree(tree, e, name, m.getValue(), member);\n\t\t\t\telse if (memName.equals(\"__proto__\")) //$NON-NLS-1$\n\t\t\t\t{\n\t\t\t\t\tproto = m.getValue();\n//\t\t\t\t\tname = name + \".__proto__\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void addParents(Member[] result, int offset, int totalCount, int memberCount, Member member) {\r\n int fillCount = totalCount - memberCount;\r\n // fill from right to left because we want the parents to appear left\r\n offset = offset + totalCount - 1;\r\n for (int i = 0; i < fillCount; i++)\r\n result[offset--] = member;\r\n\r\n for (int i = 0; i < memberCount; i++) {\r\n result[offset--] = member;\r\n member = tree.getParent(member);\r\n }\r\n }", "private static void dfsBribe(int n, List<Integer>[] ch, long[] w) {\n if (ch[n].size() == 0){\n In[n] = w[n];\n OutD[n] = Long.MAX_VALUE;\n OutU[n] = 0;\n }\n //recurrance case: non.leaf, do dfs for all subordinates then calculate In, OutUp & OutDown.\n else{\n for (int c:ch[n])\n dfsBribe(c, ch, w); //running once for each child thereby O(N)\n In[n] = w[n];\n for (int c:ch[n]){ //O(N) running time\n In[n] += OutU[c];\n OutU[n] += Math.min(In[c], OutD[c]);\n OutD[n] += Math.min(In[c], OutD[c]);\n }\n OutD[n] += delta(n, ch); //add delta for no in Children\n }\n\n }", "@Override\n\tpublic void inorder() {\n\n\t}", "@Override\n\tpublic void preBacktrack() {\n\t\t\n\t}", "public void work(RootNode root) throws Exception;", "protected void incrementDepthLimit() {\n currDepthLimit++;\n }", "public void RecursiveExpansion() throws TreeTooBigException {\r\n int transIndex; //Index to count transitions\r\n int[] newMarkup; //markup used to create new node\r\n boolean aTransitionIsEnabled = false; //To check for deadlock\r\n //Attribute used for assessing whether a node has occured before\r\n boolean repeatedNode = false; \r\n \r\n boolean allOmegas = false;\r\n \r\n boolean[] enabledTransitions = \r\n tree.dataLayer.getTransitionEnabledStatusArray(markup);\r\n\r\n //For each transition\r\n for (int i = 0; i < enabledTransitions.length; i++) {\r\n if (enabledTransitions[i] == true) {\r\n //Set transArray of to true for this index\r\n transArray[i] = true;\r\n \r\n //System.out.println(\"\\n Transition \" + i + \" Enabled\" );\r\n aTransitionIsEnabled = true;\r\n \r\n //print (\"\\n Old Markup is :\", markup);//debug\r\n \r\n //Fire transition to produce new markup vector\r\n newMarkup = fire(i);\r\n \r\n //print (\"\\n New Markup is :\", newMarkup);//debug\r\n \r\n //Check for safeness. If any of places have > 1 token set variable.\r\n for (int j = 0; j < newMarkup.length; j++) {\r\n if (newMarkup[j] > 1 || newMarkup[j] == -1) {\r\n tree.moreThanOneToken = true;\r\n break;\r\n }\r\n } \r\n \r\n //Create a new node using the new markup vector and attach it to\r\n //the current node as a child.\r\n children[i] = \r\n new myNode(newMarkup, this, tree, depth + 1);\r\n \r\n /* Now need to (a) check if any omegas (represented by -1) need to \r\n * be inserted in the markup vector of the new node, and (b) if the \r\n * resulting markup vector has appeared anywhere else in the tree. \r\n * We must do (a) before (b) as we need to know if the new node \r\n * contains any omegas to be able to compare it with existing nodes. \r\n */ \r\n allOmegas = children[i].InsertOmegas();\r\n \r\n //check if the resulting markup vector has occured anywhere else in the tree\r\n repeatedNode = (tree.root).FindMarkup(children[i]);\r\n \r\n if (tree.nodeCount >= Pipe.MAX_NODES && !tree.tooBig) {\r\n tree.tooBig = true;\r\n throw new TreeTooBigException();\r\n }\r\n \r\n if (!repeatedNode && !allOmegas) {\r\n children[i].RecursiveExpansion();\r\n }\r\n }\r\n }\r\n \r\n if (!aTransitionIsEnabled) {\r\n System.err.println(\"No transition enabled\");\r\n if (!tree.noEnabledTransitions || tree.pathToDeadlock.length < depth-1) {\r\n RecordDeadlockPath();\r\n tree.noEnabledTransitions = true;\r\n } else {\r\n System.err.println(\"Deadlocked node found, but path is not shorter\"\r\n + \" than current path.\");\r\n }\r\n } else {\r\n //System.out.println(\"Transitions enabled.\");\r\n }\r\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "private void remplirFabricantData() {\n\t}", "io.dstore.values.BooleanValue getRecursive();", "private void level7() {\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}", "private int leftChild(int i){return 2*i+1;}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\n\tpublic void accept(TreeVisitor visitor) {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void listChildren(Node current) {\n if(current instanceof Element){ //finds the element tags in the XML document with XOM parser\n Element temp = (Element) current;\n switch(temp.getQualifiedName()) {\n case (\"grapes\"): //grapes tag doesn't do anything in particular except instantiating the file\n break;\n\n case (\"grape\"):\n createGrape(temp);\n break;\n\n case (\"seed\"):\n createSeed(temp);\n break;\n\n default:\n throw new IllegalArgumentException(\"Invalid input in XML \" ); //any other element type is not supported in our XML formatted file\n }\n }\n\n for (int i = 0; i < current.getChildCount(); i++) {\n listChildren(current.getChild(i)); //recursive call traverses the XML document in preorder\n }\n\n }", "private static void cajas() {\n\t\t\n\t}", "private List<Path> expandExecution(Path input) {\n\t\tList<Path> childInputs = new ArrayList<>(); //store the paths generated from given path\n\t\t\n\t\t//search from the top node which have not been searched before\n\t\tfor(int j = input.bound; j < input.path.size() - 1; j++){\n\t\t\tdouble[] probabilityArray = cfg.getTransition_matrix().getRow(input.path.get(j));\n\t\t\tfor(int i = 0; i < probabilityArray.length; i++){\n\t\t\t\t//the node been visited before only have two situation:1.has been searched,2.the path contains it in the workList \n\t\t\t\tif(probabilityArray[i] > 0 && i != input.path.get(j + 1) && unvisited.contains(i)){\n\t\t\t\t\tList<Integer> tempPath = new ArrayList<>();\n\t\t\t\t\tfor(int index = 0; index < j + 1; index++)\n\t\t\t\t\t\ttempPath.add(input.path.get(index));\n\t\t\t\t\ttempPath.add(i);\n\t\t\t\t\t\n\t\t\t\t\tPath newInput = new Path(tempPath, j + 1);\n\t\t\t\t\tchildInputs.add(newInput);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn childInputs;\n\t}", "void nest();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected void generar() {\n generar(1, 1);\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "private static List<Integer> printTree(Tree tree, List values){\n int height = heightOfTree(tree);\n\n for(int i=1;i<=height;i++) {\n System.out.println(\"\");\n printTreeInLevel(tree, i, values);\n }\n return values;\n}", "private int find(int z, int[] parent) {\n if(parent[z] == -1) {\n return z;\n }\n // System.out.println(parent[z]+\" \"+ z);\n parent[z] = find(parent[z], parent);\n\n return parent[z];\n }", "private int findAllPathsUtil(int s, int t, boolean[] isVisited, List<Integer> localPathList,int numOfPath,LinkedList<Integer>[] parent )\n {\n\n if (t==s) {\n numOfPath++;\n return numOfPath;\n }\n isVisited[t] = true;\n\n for (Integer i : parent[t]) {\n if (!isVisited[i]) {\n localPathList.add(i);\n numOfPath =findAllPathsUtil(s,i , isVisited, localPathList,numOfPath,parent);\n localPathList.remove(i);\n }\n }\n isVisited[t] = false;\n return numOfPath;\n }", "public abstract void wrapup();", "void pairwiseCombine(){\n\t\t\n\t\tmin.Left.Right = min.Right;\n\t\tmin.Right.Left = min.Left;\n\t\t/**\n\t\tPairwise combine differentiates itself in operation of depending on the presence of a child node\n\t\t*/\n\t\t\n\t\tif(min.Child==null){\n\t\t/*map acts as the table to store similar degree nodes*/\n\t\t\tHashMap<Integer, Nodefh> map = new HashMap<Integer, Nodefh>();\n\t\t\tcurrent = min.Right;\n\t\t\tmin = null;\n\t\t\tmin = current;\n\t\t\tlast = current.Left;\n\t\t\twhile(current!=last){\n\t\t\t\tNodefh check = new Nodefh();\n\t\t\t\tcheck = current.Right;\n\t\t\t\twhile(map.containsKey(current.degree)){\n\t\t\t\t\tNodefh temp = map.remove(current.degree);\n\t\t\t\t\t\n\t\t\t\t\t/*Since a parent node can have only one child node a condition is checked to update its child node*/\n\t\t\t\t\tif(temp.dist < current.dist){\n\t\t\t\t\t/*If the node stored is less than the incoming node*/\n\t\t\t\t\t\tcurrent.Right.Left = current.Left;\n\t\t\t\t\t\tcurrent.Left.Right = current.Right;\n\t\t\t\t\t\ttemp.ChildCut = false;\n\t\t\t\t\t\tif(temp.isChildEmpty()){\n\t\t\t\t\t\t\ttemp.Child = current;\n\t\t\t\t\t\t\tcurrent.Left = current.Right = current;\n\t\t\t\t\t\t\ttemp.Child.Parent = temp;\n\t\t\t\t\t\t\ttemp.degree = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tcurrent.Right = temp.Child;\n\t\t\t\t\t\t\tcurrent.Left = temp.Child.Left;\n\t\t\t\t\t\t\ttemp.Child.Left.Right = current;\n\t\t\t\t\t\t\ttemp.Child.Left = current;\n\t\t\t\t\t\t\tcurrent.Parent = temp;\n\t\t\t\t\t\t\tif(temp.Child == temp.Child.Right){\n\t\t\t\t\t\t\t\ttemp.Child.Right = current;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttemp.degree +=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcurrent = temp;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t/*If the incoming node is lower*/\n\t\t\t\t\t\ttemp.Right.Left = temp.Left;\n\t\t\t\t\t\ttemp.Left.Right = temp.Right;\n\t\t\t\t\t\tcurrent.ChildCut = false;\t\n\t\t\t\t\t\tif(current.isChildEmpty()){\n\n\t\t\t\t\t\t\tcurrent.Child = temp;\n\t\t\t\t\t\t\ttemp.Left = temp.Right = temp;\n\t\t\t\t\t\t\tcurrent.Child.Parent = current;\n\t\t\t\t\t\t\tcurrent.degree = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\ttemp.Right = current.Child;\n\t\t\t\t\t\t\ttemp.Left = current.Child.Left;\n\t\t\t\t\t\t\tcurrent.Child.Left.Right = temp;\n\t\t\t\t\t\t\tcurrent.Child.Left = temp;\n\t\t\t\t\t\t\ttemp.Parent = current;\n\t\t\t\t\t\t\tcurrent.degree +=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif(min.dist >= current.dist){\n\t\t\t\t\tmin = current;\n\t\t\t\t}\n\t\t\t\tmap.put(current.degree, current);\n\t\t\t\tcurrent = check;\n\n\t\t\t}\n\t\t\tlast = min.Left;\n\t\t\t/*Since our condition is used only till last node and exits during last node the iteration is repeated for the last node*/\n\t\t\twhile(map.containsKey(current.degree)){\n\t\t\t\tNodefh temp = map.remove(current.degree);\n\t\t\t\tif(temp.dist < current.dist){\n\t\t\t\t\ttemp.ChildCut = false;\n\t\t\t\t\tcurrent.Right.Left = current.Left;\n\t\t\t\t\tcurrent.Left.Right = current.Right;\n\t\t\t\t\tif(temp.isChildEmpty()){\n\t\t\t\t\t\ttemp.Child = current;\n\t\t\t\t\t\tcurrent.Left = current.Right = current;\n\t\t\t\t\t\ttemp.Child.Parent = temp;\n\t\t\t\t\t\ttemp.degree = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tcurrent.Right = temp.Child;\n\t\t\t\t\t\tcurrent.Left = temp.Child.Left;\n\t\t\t\t\t\ttemp.Child.Left.Right = current;\n\t\t\t\t\t\ttemp.Child.Left = current;\n\t\t\t\t\t\tcurrent.Parent = temp;\n\t\t\t\t\t\ttemp.degree +=1;\n\t\t\t\t\t}\n\t\t\t\t\tcurrent = temp;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttemp.Right.Left = temp.Left;\n\t\t\t\t\ttemp.Left.Right = temp.Right;\n\t\t\t\t\tcurrent.ChildCut = false;\n\t\t\t\t\tif(current.isChildEmpty()){\n\t\t\t\t\t\tcurrent.Child = temp;\n\t\t\t\t\t\ttemp.Left = temp.Right = temp;\n\t\t\t\t\t\tcurrent.Child.Parent = current;\n\t\t\t\t\t\tcurrent.degree = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\ttemp.Right = current.Child;\n\t\t\t\t\t\ttemp.Left = current.Child.Left;\n\t\t\t\t\t\tcurrent.Child.Left.Right = temp;\n\t\t\t\t\t\tcurrent.Child.Left = temp;\n\t\t\t\t\t\ttemp.Parent = current;\n\t\t\t\t\t\tcurrent.degree +=1;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(min.dist >= current.dist){\n\t\t\t\tmin = current;\n\t\t\t}\n\t\t\tcurrent = min;\n\t\t\tlast = min.Left;\n\n\t\t}\n\t\telse{\n\t\t\tHashMap<Integer, Nodefh> map = new HashMap<Integer, Nodefh>();\n\t\t\tcurrent = min.Child;\n\t\t\tcurrent.Parent = null;\n\t\t\tif(min!=min.Right){\n\t\t\t\tcurrent.Right.Left = min.Left;\n\t\t\t\tmin.Left.Right = current.Right;\n\t\t\t\tcurrent.Right = min.Right;\n\t\t\t\tmin.Right.Left = current;\n\t\t\t\tlast = current.Left;\n\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tlast = current.Left;\n\n\t\t\t}\n\t\t\tmin =null;\n\t\t\tmin = current;\n\t\t\t/*In the presence of a child the child has to be inserted at the top level*/\n\t\t\twhile(current != last){\n\t\t\t\tNodefh check = new Nodefh();\n\t\t\t\tcheck = current.Right;\n\n\t\t\t\twhile(map.containsKey(current.degree)){\n\n\t\t\t\t\tNodefh temp = map.remove(current.degree);\n\t\t\t\t\tif(temp.dist < current.dist){\n\t\t\t\t\t\ttemp.ChildCut = false;\n\t\t\t\t\t\tcurrent.Right.Left = current.Left;\n\t\t\t\t\t\tcurrent.Left.Right = current.Right;\n\t\t\t\t\t\tif(temp.isChildEmpty()){\n\n\t\t\t\t\t\t\ttemp.Child = current;\n\t\t\t\t\t\t\tcurrent.Left = current.Right = current;\n\t\t\t\t\t\t\ttemp.Child.Parent = temp;\n\t\t\t\t\t\t\ttemp.degree = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tcurrent.Right = temp.Child;\n\t\t\t\t\t\t\tcurrent.Left = temp.Child.Left;\n\t\t\t\t\t\t\ttemp.Child.Left.Right = current;\n\t\t\t\t\t\t\ttemp.Child.Left = current;\n\t\t\t\t\t\t\tcurrent.Parent = temp;\n\t\t\t\t\t\t\ttemp.degree +=1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrent = temp;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\ttemp.Right.Left = temp.Left;\n\t\t\t\t\t\ttemp.Left.Right = temp.Right;\n\t\t\t\t\t\tcurrent.ChildCut = false;\n\t\t\t\t\t\tif(current.isChildEmpty()){\n\t\t\t\t\t\t\tcurrent.Child = temp;\n\t\t\t\t\t\t\ttemp.Left = temp.Right = temp;\n\t\t\t\t\t\t\tcurrent.Child.Parent = current;\n\t\t\t\t\t\t\tcurrent.degree = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\ttemp.Right = current.Child;\n\t\t\t\t\t\t\ttemp.Left = current.Child.Left;\n\t\t\t\t\t\t\tcurrent.Child.Left.Right = temp;\n\t\t\t\t\t\t\tcurrent.Child.Left = temp;\n\t\t\t\t\t\t\ttemp.Parent = current;\n\t\t\t\t\t\t\tcurrent.degree +=1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(min.dist >= current.dist){\n\t\t\t\t\tmin = current;\n\n\t\t\t\t}\n\t\t\t\tmap.put(current.degree, current);\n\t\t\t\tcurrent = check;\n\t\t\t}\n\t\t\tlast = min.Left;\n\t\t\twhile(map.containsKey(current.degree)){\n\t\t\t\tNodefh temp = map.remove(current.degree);\n\t\t\t\tif(temp.dist < current.dist && temp.dist!=0){\n\t\t\t\t\tcurrent.Right.Left = current.Left;\n\t\t\t\t\tcurrent.Left.Right = current.Right;\n\t\t\t\t\ttemp.ChildCut = false;\n\t\t\t\t\tif(temp.isChildEmpty()){\n\t\t\t\t\t\ttemp.Child = current;\n\t\t\t\t\t\tcurrent.Left = current.Right = current;\n\t\t\t\t\t\ttemp.Child.Parent = temp;\n\t\t\t\t\t\ttemp.degree = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tcurrent.Right = temp.Child;\n\t\t\t\t\t\tcurrent.Left = temp.Child.Left;\n\t\t\t\t\t\ttemp.Child.Left.Right = current;\n\t\t\t\t\t\ttemp.Child.Left = current;\n\t\t\t\t\t\tcurrent.Parent = temp;\n\t\t\t\t\t\ttemp.degree +=1;\n\t\t\t\t\t}\n\t\t\t\t\tcurrent = temp;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\ttemp.Right.Left = temp.Left;\n\t\t\t\t\ttemp.Left.Right = temp.Right;\n\t\t\t\t\tcurrent.ChildCut = false;\n\t\t\t\t\tif(current.isChildEmpty()){\n\t\t\t\t\t\tcurrent.Child = temp;\n\t\t\t\t\t\ttemp.Left = temp.Right = temp;\n\t\t\t\t\t\tcurrent.Child.Parent = current;\n\t\t\t\t\t\tcurrent.degree = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\ttemp.Right = current.Child;\n\t\t\t\t\t\ttemp.Left = current.Child.Left;\n\t\t\t\t\t\tcurrent.Child.Left.Right = temp;\n\t\t\t\t\t\tcurrent.Child.Left = temp;\n\t\t\t\t\t\ttemp.Parent = current;\n\t\t\t\t\t\tcurrent.degree +=1;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(min.dist >= current.dist){\n\t\t\t\tmin = current;\n\n\t\t\t}\n\t\t\tcurrent = min;\n\t\t\tlast = min.Left;\n\t\t}\n\n\t}", "static int recursiva1(int n)\n\t\t{\n\t\tif (n==0)\n\t\t\treturn 10; \n\t\tif (n==1)\n\t\t\treturn 20; \n\t\treturn recursiva1(n-1) - recursiva1 (n-2);\t\t\n\t\t}" ]
[ "0.5590335", "0.5590335", "0.5590335", "0.5537654", "0.5510293", "0.5509106", "0.5485843", "0.5454725", "0.543996", "0.5436555", "0.5432196", "0.53611434", "0.53568", "0.5333758", "0.53237873", "0.52987325", "0.5285938", "0.52817225", "0.52785695", "0.526342", "0.5261642", "0.52565616", "0.52544945", "0.5244027", "0.52085346", "0.520414", "0.5193387", "0.5190964", "0.51846755", "0.5183748", "0.5174878", "0.51600903", "0.5157582", "0.5154552", "0.51479656", "0.51473624", "0.514408", "0.5141717", "0.514085", "0.5140352", "0.5137339", "0.51236534", "0.51209086", "0.51138943", "0.5109392", "0.5107781", "0.51052946", "0.5098317", "0.5094494", "0.50785184", "0.50746673", "0.5068316", "0.5054567", "0.505091", "0.5050868", "0.50497824", "0.50482523", "0.5043989", "0.5043853", "0.504228", "0.5041022", "0.50359845", "0.5024291", "0.5023502", "0.5023238", "0.50194556", "0.5009492", "0.5009492", "0.5007878", "0.50033313", "0.50010777", "0.49979177", "0.49934754", "0.49914473", "0.49832067", "0.49828592", "0.49807456", "0.4976149", "0.49675667", "0.49635363", "0.49626452", "0.49613762", "0.49613762", "0.496103", "0.49589285", "0.49571887", "0.49537557", "0.4951916", "0.49509984", "0.49507898", "0.49482414", "0.4947999", "0.4947322", "0.49448404", "0.4941486", "0.4940639", "0.49368244", "0.49364057", "0.4934392", "0.4928614", "0.49262977" ]
0.0
-1
String path = PropertiesTools.get(p, "importsource.mr.file.path", null);
public void textFile(String path){ BufferedReader br; try { br = new BufferedReader(new InputStreamReader( new FileInputStream(path),Charset.forName("gbk"))); } catch (FileNotFoundException e) { throw new IllegalArgumentException(e); } LineBufferReader myReader=new LineBufferReader(br); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SourceFilePath getFilePath();", "public String getSourceFileName() { return sourceFileName; }", "java.lang.String getSrcPath();", "public String getSourcePath()\r\n\t{\r\n\t\treturn sourcePath;\r\n\t}", "public abstract String getPropertyFile();", "File getLoadLocation();", "public String getSourcePath() {\n return sourcePath;\n }", "@Override\n\tpublic java.lang.String getSrcPath() {\n\t\treturn _scienceApp.getSrcPath();\n\t}", "java.lang.String getSourceFile();", "private static String getSourceFile() {\n\t\tFileChooser fileChooser = new FileChooser(System.getProperty(\"user.home\"),\n\t\t\t\t\"Chose json file containing satellite data!\", \"json\");\n\t\tFile file = fileChooser.getFile();\n\t\tif (file == null) {\n\t\t\tSystem.exit(-42);\n\t\t}\n\t\treturn file.getAbsolutePath();\n\t}", "public String getFilePath() {\n return getSourceLocation().getFilePath();\n }", "public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }", "public String getPropertyPath();", "public String getPropertyPath();", "MafSource readSource(File sourceFile);", "public abstract String getImportFromFileTemplate( );", "public String getMappingFilePath();", "public String getMainFilePath() {\n return primaryFile.getAbsolutePath();\n //return code[0].file.getAbsolutePath();\n }", "private String getSourceName() {\n return srcFileName;\n }", "String getFilePath();", "File getPropertiesFile();", "java.lang.String getFilePath();", "public PSLocator getSrcFolder()\n {\n return m_srcFolder;\n }", "public String getToolfilepath() {\r\n return toolfilepath;\r\n }", "public String getXslFile() {\n return directory_path2;\n }", "public String getResPath()\n/* */ {\n/* 138 */ return this.resPath;\n/* */ }", "public File getSourceDir()\n {\n\t\treturn srcDir;\n\t}", "public String sourceResourceLocation() {\n return this.sourceResourceLocation;\n }", "String getSingleLinkerScriptFile();", "@Nullable\n public String getSourceFileName() {\n return sourceFileName;\n }", "public void source(String path) throws Exception;", "public java.lang.String getSrcPath() {\n java.lang.Object ref = srcPath_;\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 if (bs.isValidUtf8()) {\n srcPath_ = s;\n }\n return s;\n }\n }", "public Properties propertiesSource() {\n\t\tSystem.out.println(\"code execution is reaching propertiesSource()\");\n\t\tProperties properties = new Properties();\n\t\tproperties.put(\"name of property in property file\", environment.getRequiredProperty(\n\t\t\t\t\"name of property in property file\"));\n\t\treturn properties;\n\t}", "@Override\n\tpublic java.lang.String getSrcFileName() {\n\t\treturn _scienceApp.getSrcFileName();\n\t}", "public String getLocalFilePath() {\n return loadConn.getProperty(\"filePath\");\n }", "@Override\r\n \tpublic File getLoadPath() {\n \t\treturn null;\r\n \t}", "Path getFilePath();", "public String accessLocationPropFile(){\n\t\tProperties prop = new Properties();\n\t\tString loc=\"\";\n\t\ttry {\n\t\t\t//load a properties file\n\t\t\tprop.load(new FileInputStream(\"C:/Users/SARA/Desktop/OpenMRS/de/DeIdentifiedPatientDataExportModule/api/src/main/resources/config1.properties\"));\n\t\t\tInteger a = getRandomBetween(1, 3);\n\t\t\tloc = prop.getProperty(a.toString());\n\n\t\t} catch (IOException ex) {\n\t\t\tlog.error(\"IOException in accessing Location File\", ex);\n\t\t}\n\t\treturn loc;\n\t}", "Source getSrc();", "public java.lang.String getSrcPath() {\n java.lang.Object ref = srcPath_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n srcPath_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getPropertyFile()\n\t{\n\t\treturn propertyFile;\n\t}", "public String getRelPath () throws java.io.IOException, com.linar.jintegra.AutomationException;", "private static File resolveMetaFile(String path) {\n return new File(StringUtils.substringBefore(path, DEF_LOC_ARTIFACT) + DEF_REL_META + File.separator + \"project.tms.json\");\n }", "public File getPropertyFile() { return propertyFile; }", "public Map<String, String> fetchPropertyFromFile()\n {\n Map<String, String> components = new HashMap<>();\n Properties props = new Properties();\n InputStream in = null;\n try {\n in = new FileInputStream(\"/slog/properties/LogAnalyzer.properties\");\n props.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n catch (IOException e) {\n e.printStackTrace();\n }\n// Add component config , logname RegEx pattern to a Map. This map will be used to search matching files and forming logstash command\n for (String key : props .stringPropertyNames())\n {\n System.out.println(key + \" = \" + props .getProperty(key));\n components.put (key, props.getProperty(key));\n }\n\n return components;\n }", "public String getPropertyFile() {\n return propertyFile;\n }", "public String getSample_path() {\n return sample_path;\n }", "public abstract String getFileLocation();", "public static String sourceExtension()\n {\n read_if_needed_();\n \n return _ext; \n }", "public String getSourceName() {\n\t\treturn fileName;\n\t}", "public String getImportTxt() {\n\t\treturn importTxt;\n\t}", "public final String getSourceFile() {\n return this.sourceFile;\n }", "public File getSource() {\n return source;\n }", "@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }", "public String get_source() {\n\t\treturn source;\n\t}", "public String getPath () throws java.io.IOException, com.linar.jintegra.AutomationException;", "Path getModBookFilePath();", "public String getExternalLoadsFileName() { return analyzeTool().getExternalLoadsFileName(); }", "java.lang.String getSrc();", "public static String getPropertyPath(){\n\t\tString path = System.getProperty(\"user.dir\") + FILE_SEP + propertyName;\r\n\t\tLOGGER.info(\"properties path: \" + path);\r\n\t\treturn path;\r\n\t}", "public String getResourcePath();", "String getFilepath();", "@Override\n public java.util.List<Path> getSourcePathList() {\n return sourcePath_;\n }", "public static String getPropertyFile() {\n\t\treturn propertyFileAddress;\n\t}", "final public String getTemplateSource()\n {\n return ComponentUtils.resolveString(getProperty(TEMPLATE_SOURCE_KEY));\n }", "Path getTargetPath()\n {\n return targetPath;\n }", "public String getInputFilePath() {\n return inputFilePath;\n }", "Optional<String> getSource();", "public void setSourcePath(String sourcePath) {\n this.sourcePath = sourcePath;\n }", "private boolean generateSourceProperties(File unzipDestFolder) {\n Properties props = new Properties();\n saveProperties(props);\n mPackage.saveProperties(props);\n FileOutputStream fos = null;\n try {\n File f = new File(unzipDestFolder, SdkConstants.FN_SOURCE_PROP);\n fos = new FileOutputStream(f);\n props.store(fos, \"## Android Tool: Source of this archive.\");\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fos != null) {\n try {\n fos.close();\n } catch (IOException e) {\n }\n }\n }\n return false;\n }", "public String getLocationPath();", "String getExternalPath(String path);", "String getConfigFileName();", "String getSrc();", "public final Artifact getSourceFile() {\n return compileCommandLine.getSourceFile();\n }", "public String getAttributeFileLibPath();", "public ResourcePath() {\n //_externalFolder = \"file:///C:/Program%20Files/ESRI/GPT9/gpt/\";\n //_localFolder = \"gpt/\";\n}", "@Override\n public File getSourceFile() {\n return _file;\n }", "public File referenceSourceYAMLFile() {\n return new File(getDestinationFolder().getAbsolutePath() + File.separator + referenceTomcatInstanceYAML());\n }", "private static String readPropertiesFile() {\n Properties prop = new Properties();\n\n try (InputStream inputStream = MembershipService.class.getClassLoader().getResourceAsStream(\"config.properties\")) {\n\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n throw new FileNotFoundException(\"property file 'config.properties' not found in the classpath\");\n }\n } catch (Exception e) {\n return \"\";\n }\n return prop.getProperty(\"introducer\");\n }", "public String getPOIDataFlowPackageFilePath(){\n return poiDataFlowPackageFilePath;\n }", "private static String loadPropertiesFileByEnvironement(String propertiesPath) {\n\t\t\tSystem.setProperty(\"ENV\", \"dev\");\n\t\tString env = System.getProperty(\"ENV\");\n\t\tString [] ts = propertiesPath.split(\"/\");\n\t\tfor(int i = 0;i<ts.length;i++){\n\t\t\tif(ts[i].contains(\".cfg.\")){\n\t\t\t\tts[i] = env+\"_\"+ts[i];\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tString newPathProperties = \"\";\n\t\tfor(String s : ts)\n\t\t\tnewPathProperties=newPathProperties +\"/\"+s;\n\t\tnewPathProperties = newPathProperties.substring(1,newPathProperties.length());\n\t\treturn newPathProperties;\n\t}", "public Long getInfile_()\n{\nreturn getInputDataItemId(\"infile_\");\n}", "public String getSourceFileName() {\n\t\tStringIdMsType stringIdType =\n\t\t\tpdb.getTypeRecord(getSourceFileNameStringIdRecordNumber(), StringIdMsType.class);\n\t\tif (stringIdType == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn stringIdType.getString();\n\t}", "public java.lang.String getSourceFile() {\n java.lang.Object ref = sourceFile_;\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 if (bs.isValidUtf8()) {\n sourceFile_ = s;\n }\n return s;\n }\n }", "public static String getPropertyFilename() {\n return propfilename;\n }", "public String getLog4jFilePath(){\r\n\t\t return rb.getProperty(\"log4jFilepath\");\r\n\t}", "public Object getEntryFilePath() {\n return this.entryFilePath;\n }", "public static String fetchMyProperties(String req) throws Exception {\n\n String val;\n\n FileReader reader = new FileReader(\"src\\\\test\\\\java\\\\resources\\\\westpac.properties\");\n Properties p = new Properties();\n p.load(reader);\n val = p.getProperty(req);\n\n return val;// returning the requested value.\n }", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 214,\n FQN=\"llvm::Module::getSourceFileName\", NM=\"_ZNK4llvm6Module17getSourceFileNameEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZNK4llvm6Module17getSourceFileNameEv\")\n //</editor-fold>\n public /*const*/std.string/*&*/ getSourceFileName() /*const*/ {\n return SourceFileName;\n }", "private String getAndroidResourcePathFromLocalProperties() {\n File rootDir = resourcePath.resourceBase.getParentFile();\n String localPropertiesFileName = \"local.properties\";\n File localPropertiesFile = new File(rootDir, localPropertiesFileName);\n if (!localPropertiesFile.exists()) {\n localPropertiesFile = new File(localPropertiesFileName);\n }\n if (localPropertiesFile.exists()) {\n Properties localProperties = new Properties();\n try {\n localProperties.load(new FileInputStream(localPropertiesFile));\n PropertiesHelper.doSubstitutions(localProperties);\n String sdkPath = localProperties.getProperty(\"sdk.dir\");\n if (sdkPath != null) {\n return getResourcePathFromSdkPath(sdkPath);\n }\n } catch (IOException e) {\n // fine, we'll try something else\n }\n }\n return null;\n }", "@Test\n void findSourceJar() {\n Class<?> klass = org.apache.commons.io.FileUtils.class;\n var codeSource = klass.getProtectionDomain().getCodeSource();\n if (codeSource != null) {\n System.out.println(codeSource.getLocation());\n }\n }", "public java.lang.String getSourcepath(int index) {\n return sourcepath_.get(index);\n }", "java.util.List<java.lang.String>\n getSourcepathList();", "public java.lang.String getSourceFile() {\n java.lang.Object ref = sourceFile_;\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 if (bs.isValidUtf8()) {\n sourceFile_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n public java.util.List<? extends PathOrBuilder>\n getSourcePathOrBuilderList() {\n return sourcePath_;\n }", "public Optional<String> getSource() {\n\t\treturn Optional.ofNullable(_source);\n\t}", "public File getFileSource() {\n\t\treturn fileSource;\n\t}", "public String getConfigProperties(String key) {\n String value = null;\n try {\n FileReader fileReader=new FileReader(System.getProperty(\"user.dir\")+\"/src/main/resources/config.properties\");\n Properties properties=new Properties();\n properties.load(fileReader);\n value= properties.getProperty(key);\n }catch (Exception e){\n e.printStackTrace();\n }\n return value;\n }", "@ApiModelProperty(required = true, value = \"The program that generated the test results\")\n public String getSource() {\n return source;\n }", "@Bean\n\t\tpublic MessageSource<File> sourceDirectory() {\n\t\t\tFileReadingMessageSource messageSource = new FileReadingMessageSource();\n\t\t\tmessageSource.setDirectory(new File(\"Source\"));\n\t\t\treturn messageSource;\n\t\t}" ]
[ "0.66486263", "0.6382237", "0.63724524", "0.618728", "0.6107207", "0.60611653", "0.6015853", "0.59472966", "0.5880147", "0.5810171", "0.5741412", "0.5735943", "0.5732634", "0.5732634", "0.5731636", "0.5674419", "0.5654362", "0.56493545", "0.5620314", "0.5614406", "0.5593352", "0.5589172", "0.55735654", "0.5572441", "0.55683917", "0.5525975", "0.55137724", "0.5506927", "0.54876554", "0.54871285", "0.5483259", "0.5454195", "0.5453083", "0.5425081", "0.5416356", "0.54042536", "0.53961146", "0.5392646", "0.5375649", "0.53646934", "0.53374195", "0.5335021", "0.53180385", "0.5305561", "0.53005654", "0.5296577", "0.5294544", "0.5288745", "0.5287659", "0.52829033", "0.5275514", "0.52693105", "0.5252685", "0.525121", "0.52448994", "0.5243868", "0.52412146", "0.5240498", "0.52230996", "0.5221464", "0.5217686", "0.52102643", "0.5209359", "0.5205109", "0.52026755", "0.5190225", "0.51829296", "0.5170974", "0.5163702", "0.51633406", "0.5161643", "0.51613015", "0.515404", "0.51506394", "0.51441425", "0.51293385", "0.51282495", "0.51185054", "0.51175773", "0.51150054", "0.5104527", "0.50950766", "0.50905776", "0.5084952", "0.5083666", "0.5081885", "0.5080423", "0.5071971", "0.506808", "0.50637233", "0.5058651", "0.5055059", "0.5054988", "0.5053496", "0.50446165", "0.5039239", "0.5038841", "0.50364715", "0.503494", "0.5031649", "0.50257725" ]
0.0
-1
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static KartaPica createEntity(EntityManager em) { KartaPica kartaPica = new KartaPica() .imeKartePica(DEFAULT_IME_KARTE_PICA); return kartaPica; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "protected abstract EntityBase createEntity() throws Exception;", "TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }", "public static TestEntity createEntity(EntityManager em) {\n TestEntity testEntity = new TestEntity();\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n testEntity.setUserOneToMany(user);\n return testEntity;\n }", "void create(T entity) throws Exception;", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "protected T createSimulatedExistingEntity() {\n final T entity = createNewEntity();\n entity.setId(IDUtil.randomPositiveLong());\n\n when(getDAO().findOne(entity.getId())).thenReturn(entity);\n return entity;\n }", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "public static TranshipTube createEntity(EntityManager em) {\n TranshipTube transhipTube = new TranshipTube()\n .status(DEFAULT_STATUS)\n .memo(DEFAULT_MEMO)\n .columnsInTube(DEFAULT_COLUMNS_IN_TUBE)\n .rowsInTube(DEFAULT_ROWS_IN_TUBE);\n // Add required entity\n TranshipBox transhipBox = TranshipBoxResourceIntTest.createEntity(em);\n em.persist(transhipBox);\n em.flush();\n transhipTube.setTranshipBox(transhipBox);\n // Add required entity\n FrozenTube frozenTube = FrozenTubeResourceIntTest.createEntity(em);\n em.persist(frozenTube);\n em.flush();\n transhipTube.setFrozenTube(frozenTube);\n return transhipTube;\n }", "public static Student createEntity(EntityManager em) {\n Student student = new Student()\n .firstName(DEFAULT_FIRST_NAME)\n .middleName(DEFAULT_MIDDLE_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .studentRegNumber(DEFAULT_STUDENT_REG_NUMBER)\n .dateOfBirth(DEFAULT_DATE_OF_BIRTH)\n .regDocType(DEFAULT_REG_DOC_TYPE)\n .registrationDocumentNumber(DEFAULT_REGISTRATION_DOCUMENT_NUMBER)\n .gender(DEFAULT_GENDER)\n .nationality(DEFAULT_NATIONALITY)\n .dateJoined(DEFAULT_DATE_JOINED)\n .deleted(DEFAULT_DELETED)\n .wxtJwtPq55wd(DEFAULT_WXT_JWT_PQ_55_WD);\n // Add required entity\n NextOfKin nextOfKin;\n if (TestUtil.findAll(em, NextOfKin.class).isEmpty()) {\n nextOfKin = NextOfKinResourceIT.createEntity(em);\n em.persist(nextOfKin);\n em.flush();\n } else {\n nextOfKin = TestUtil.findAll(em, NextOfKin.class).get(0);\n }\n student.getRelatives().add(nextOfKin);\n return student;\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT)\n .dateRetour(DEFAULT_DATE_RETOUR);\n // Add required entity\n Usager usager = UsagerResourceIntTest.createEntity(em);\n em.persist(usager);\n em.flush();\n emprunt.setUsager(usager);\n // Add required entity\n Exemplaire exemplaire = ExemplaireResourceIntTest.createEntity(em);\n em.persist(exemplaire);\n em.flush();\n emprunt.setExemplaire(exemplaire);\n return emprunt;\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }", "public ClientEntity newEntity() {\r\n if (entityType == null) {\r\n entityType = getEntityType(entitySet);\r\n }\r\n return odataClient.getObjectFactory().newEntity(new FullQualifiedName(NAMESPAVE, entityType));\r\n }", "ID create(T entity);", "public static MotherBed createEntity(EntityManager em) {\n MotherBed motherBed = new MotherBed()\n .value(DEFAULT_VALUE)\n .status(DEFAULT_STATUS);\n // Add required entity\n Nursery nursery = NurseryResourceIntTest.createEntity(em);\n em.persist(nursery);\n em.flush();\n motherBed.setNursery(nursery);\n return motherBed;\n }", "private FailingEntity createFailingEntity() {\n FailingEntity entity = app.createAndManageChild(EntitySpec.create(FailingEntity.class)\n .configure(FailingEntity.FAIL_ON_START, true));\n return entity;\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity) {\n return super.createEntity(entitySetName, entityKey, navProp, entity);\n }", "public <T extends Entity> T createEntity(EntitySpec<T> spec) {\n Map<String,Entity> entitiesByEntityId = MutableMap.of();\n Map<String,EntitySpec<?>> specsByEntityId = MutableMap.of();\n \n T entity = createEntityAndDescendantsUninitialized(spec, entitiesByEntityId, specsByEntityId);\n initEntityAndDescendants(entity.getId(), entitiesByEntityId, specsByEntityId);\n return entity;\n }", "public static Prestamo createEntity(EntityManager em) {\n Prestamo prestamo = new Prestamo().observaciones(DEFAULT_OBSERVACIONES).fechaFin(DEFAULT_FECHA_FIN);\n // Add required entity\n Libro libro;\n if (TestUtil.findAll(em, Libro.class).isEmpty()) {\n libro = LibroResourceIT.createEntity(em);\n em.persist(libro);\n em.flush();\n } else {\n libro = TestUtil.findAll(em, Libro.class).get(0);\n }\n prestamo.setLibro(libro);\n // Add required entity\n Persona persona;\n if (TestUtil.findAll(em, Persona.class).isEmpty()) {\n persona = PersonaResourceIT.createEntity(em);\n em.persist(persona);\n em.flush();\n } else {\n persona = TestUtil.findAll(em, Persona.class).get(0);\n }\n prestamo.setPersona(persona);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n prestamo.setUser(user);\n return prestamo;\n }", "default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }", "public static Rentee createEntity(EntityManager em) {\n Rentee rentee = new Rentee();\n rentee = new Rentee()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .email(DEFAULT_EMAIL)\n .phoneNumber(DEFAULT_PHONE_NUMBER)\n .password(DEFAULT_PASSWORD);\n return rentee;\n }", "public static Pocket createEntity(EntityManager em) {\n Pocket pocket = new Pocket()\n .key(DEFAULT_KEY)\n .label(DEFAULT_LABEL)\n .startDateTime(DEFAULT_START_DATE_TIME)\n .endDateTime(DEFAULT_END_DATE_TIME)\n .amount(DEFAULT_AMOUNT)\n .reserved(DEFAULT_RESERVED);\n // Add required entity\n Balance balance = BalanceResourceIntTest.createEntity(em);\n em.persist(balance);\n em.flush();\n pocket.setBalance(balance);\n return pocket;\n }", "public static ItemSubstitution createEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(DEFAULT_TIMESTAMP)\n .type(DEFAULT_TYPE)\n .substituteType(DEFAULT_SUBSTITUTE_TYPE)\n .substituteNo(DEFAULT_SUBSTITUTE_NO)\n .description(DEFAULT_DESCRIPTION)\n .isInterchangeable(DEFAULT_IS_INTERCHANGEABLE)\n .relationsLevel(DEFAULT_RELATIONS_LEVEL)\n .isCheckedToOriginal(DEFAULT_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(DEFAULT_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }", "E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;", "public static A createEntity(EntityManager em) {\n A a = new A();\n return a;\n }", "public static Edge createEntity(EntityManager em) {\n Edge edge = new Edge()\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Stone from = StoneResourceIntTest.createEntity(em);\n em.persist(from);\n em.flush();\n edge.setFrom(from);\n // Add required entity\n Stone to = StoneResourceIntTest.createEntity(em);\n em.persist(to);\n em.flush();\n edge.setTo(to);\n return edge;\n }", "public static QuizQuestion createEntity(EntityManager em) {\n QuizQuestion quizQuestion = new QuizQuestion()\n .text(DEFAULT_TEXT)\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Quiz quiz;\n if (TestUtil.findAll(em, Quiz.class).isEmpty()) {\n quiz = QuizResourceIT.createEntity(em);\n em.persist(quiz);\n em.flush();\n } else {\n quiz = TestUtil.findAll(em, Quiz.class).get(0);\n }\n quizQuestion.setQuiz(quiz);\n return quizQuestion;\n }", "public static Partida createEntity(EntityManager em) {\n Partida partida = new Partida()\n .dataPartida(DEFAULT_DATA_PARTIDA);\n return partida;\n }", "public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }", "public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT);\n return emprunt;\n }", "public static SitAndGo createEntity(EntityManager em) {\n SitAndGo sitAndGo = new SitAndGo()\n .format(DEFAULT_FORMAT)\n .buyIn(DEFAULT_BUY_IN)\n .ranking(DEFAULT_RANKING)\n .profit(DEFAULT_PROFIT)\n .bounty(DEFAULT_BOUNTY);\n return sitAndGo;\n }", "public static Exercise createEntity(EntityManager em) {\n Exercise exercise = new Exercise()\n .minutes(DEFAULT_MINUTES);\n return exercise;\n }", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "public static House createEntity(EntityManager em) {\n House house = new House()\n .houseName(DEFAULT_HOUSE_NAME)\n .houseNo(DEFAULT_HOUSE_NO)\n .address(DEFAULT_ADDRESS)\n .houseToFloorNo(DEFAULT_HOUSE_TO_FLOOR_NO)\n .ownToFloorNo(DEFAULT_OWN_TO_FLOOR_NO)\n .lat(DEFAULT_LAT)\n .lon(DEFAULT_LON)\n .createdate(DEFAULT_CREATEDATE)\n .createBy(DEFAULT_CREATE_BY)\n .updateDate(DEFAULT_UPDATE_DATE)\n .updateBy(DEFAULT_UPDATE_BY)\n .image(DEFAULT_IMAGE)\n .imageContentType(DEFAULT_IMAGE_CONTENT_TYPE);\n // Add required entity\n Country country = CountryResourceIntTest.createEntity(em);\n em.persist(country);\n em.flush();\n house.setCountry(country);\n // Add required entity\n State state = StateResourceIntTest.createEntity(em);\n em.persist(state);\n em.flush();\n house.setState(state);\n // Add required entity\n City city = CityResourceIntTest.createEntity(em);\n em.persist(city);\n em.flush();\n house.setCity(city);\n // Add required entity\n Profile profile = ProfileResourceIntTest.createEntity(em);\n em.persist(profile);\n em.flush();\n house.setProfile(profile);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n house.setUser(user);\n return house;\n }", "public static CourtType createEntity(EntityManager em) {\n CourtType courtType = new CourtType()\n .type(DEFAULT_TYPE);\n return courtType;\n }", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "public static Ailment createEntity(EntityManager em) {\n Ailment ailment = new Ailment()\n .name(DEFAULT_NAME)\n .symptoms(DEFAULT_SYMPTOMS)\n .treatments(DEFAULT_TREATMENTS);\n return ailment;\n }", "public static Articulo createEntity(EntityManager em) {\n Articulo articulo = new Articulo()\n .titulo(DEFAULT_TITULO)\n .contenido(DEFAULT_CONTENIDO)\n .fechaCreacion(DEFAULT_FECHA_CREACION);\n return articulo;\n }", "void create(Student entity);", "public static TipoLocal createEntity(EntityManager em) {\n TipoLocal tipoLocal = new TipoLocal()\n .tipo(DEFAULT_TIPO);\n return tipoLocal;\n }", "public static Testtable2 createEntity(EntityManager em) {\n Testtable2 testtable2 = new Testtable2();\n testtable2.setColumn2(DEFAULT_COLUMN_2);\n return testtable2;\n }", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "public static OrderItem createEntity(EntityManager em) {\n OrderItem orderItem = new OrderItem().quantity(DEFAULT_QUANTITY).totalPrice(DEFAULT_TOTAL_PRICE).status(DEFAULT_STATUS);\n return orderItem;\n }", "public static Arrete createEntity(EntityManager em) {\n Arrete arrete = new Arrete()\n .intituleArrete(DEFAULT_INTITULE_ARRETE)\n .numeroArrete(DEFAULT_NUMERO_ARRETE)\n .dateSignature(DEFAULT_DATE_SIGNATURE)\n .nombreAgrement(DEFAULT_NOMBRE_AGREMENT);\n return arrete;\n }", "public static Tenant createEntity() {\n return new Tenant();\n }", "public static MyOrders createEntity(EntityManager em) {\n MyOrders myOrders = new MyOrders();\n return myOrders;\n }", "public static Enseigner createEntity(EntityManager em) {\n Enseigner enseigner = new Enseigner().dateDebut(DEFAULT_DATE_DEBUT).dateFin(DEFAULT_DATE_FIN);\n return enseigner;\n }", "@Test\n public void eventEntityConstructionTest() {\n\n Event event = new EventEntity();\n\n assertThat(event).isNotNull();\n\n }", "public static EnteteVente createEntity(EntityManager em) {\n EnteteVente enteteVente = new EnteteVente()\n .enteteVenteType(DEFAULT_ENTETE_VENTE_TYPE)\n .enteteVenteTotalHT(DEFAULT_ENTETE_VENTE_TOTAL_HT)\n .enteteVenteTotalTTC(DEFAULT_ENTETE_VENTE_TOTAL_TTC)\n .enteteVenteDateCreation(DEFAULT_ENTETE_VENTE_DATE_CREATION);\n return enteteVente;\n }", "public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}", "public static Note createEntity(EntityManager em) {\n Note note = new Note().content(DEFAULT_CONTENT).title(DEFAULT_TITLE).xpos(DEFAULT_XPOS).ypos(DEFAULT_YPOS);\n return note;\n }", "public static Organizer createEntity(EntityManager em) {\n Organizer organizer = new Organizer()\n .name(DEFAULT_NAME)\n .description(DEFAULT_DESCRIPTION)\n .facebook(DEFAULT_FACEBOOK)\n .twitter(DEFAULT_TWITTER);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n organizer.setUser(user);\n return organizer;\n }", "public static FillingGapsTestItem createEntity(EntityManager em) {\n FillingGapsTestItem fillingGapsTestItem = new FillingGapsTestItem()\n .question(DEFAULT_QUESTION);\n return fillingGapsTestItem;\n }", "public Entity build();", "@Test\n public void createQuejaEntityTest() {\n PodamFactory factory = new PodamFactoryImpl();\n QuejaEntity newEntity = factory.manufacturePojo(QuejaEntity.class);\n QuejaEntity result = quejaPersistence.create(newEntity);\n\n Assert.assertNotNull(result);\n QuejaEntity entity = em.find(QuejaEntity.class, result.getId());\n Assert.assertNotNull(entity);\n Assert.assertEquals(newEntity.getName(), entity.getName());\n}", "public abstract boolean create(T entity) throws ServiceException;", "public static Acheteur createEntity(EntityManager em) {\n Acheteur acheteur = new Acheteur()\n .typeClient(DEFAULT_TYPE_CLIENT)\n .nom(DEFAULT_NOM)\n .prenom(DEFAULT_PRENOM)\n .tel(DEFAULT_TEL)\n .cnib(DEFAULT_CNIB)\n .email(DEFAULT_EMAIL)\n .adresse(DEFAULT_ADRESSE)\n .numroBanquaire(DEFAULT_NUMRO_BANQUAIRE)\n .deleted(DEFAULT_DELETED);\n return acheteur;\n }", "public static RoomGenericProduct createEntity(EntityManager em) {\n RoomGenericProduct roomGenericProduct = new RoomGenericProduct()\n .quantity(DEFAULT_QUANTITY)\n .quantityUnit(DEFAULT_QUANTITY_UNIT);\n return roomGenericProduct;\n }", "public static TypeOeuvre createEntity(EntityManager em) {\n TypeOeuvre typeOeuvre = new TypeOeuvre()\n .intitule(DEFAULT_INTITULE);\n return typeOeuvre;\n }", "public static Reservation createEntity(EntityManager em) {\n Reservation reservation = ReservationTest.buildReservationTest(1L);\n //reservation.setUser(User.builder().email(\"adfad\").name(\"\").build());\n return reservation;\n }", "@Test\n public void testNewEntity() throws Exception {\n\n }", "public static Model createEntity(EntityManager em) {\n\t\tModel model = new Model().name(DEFAULT_NAME).type(DEFAULT_TYPE).algorithm(DEFAULT_ALGORITHM)\n\t\t\t\t.status(DEFAULT_STATUS).owner(DEFAULT_OWNER).performanceMetrics(DEFAULT_PERFORMANCE_METRICS)\n\t\t\t\t.modelLocation(DEFAULT_MODEL_LOCATION).featureSignificance(DEFAULT_FEATURE_SIGNIFICANCE)\n\t\t\t\t.builderConfig(DEFAULT_BUILDER_CONFIG).createdDate(DEFAULT_CREATED_DATE)\n\t\t\t\t.deployedDate(DEFAULT_DEPLOYED_DATE).trainingDataset(DEFAULT_TRAINING_DATASET)\n .library(DEFAULT_LIBRARY).project(DEFAULT_PROJECT).version(DEFAULT_VERSION);\n\t\treturn model;\n\t}", "public static ProcessExecution createEntity(EntityManager em) {\n ProcessExecution processExecution = new ProcessExecution()\n .execution(DEFAULT_EXECUTION);\n return processExecution;\n }", "public static Paiement createEntity(EntityManager em) {\n Paiement paiement = new Paiement()\n .dateTransation(DEFAULT_DATE_TRANSATION)\n .montantTTC(DEFAULT_MONTANT_TTC);\n return paiement;\n }", "public static Article createEntity(EntityManager em) {\n Article article = new Article()\n .name(DEFAULT_NAME)\n .content(DEFAULT_CONTENT)\n .creationDate(DEFAULT_CREATION_DATE)\n .modificationDate(DEFAULT_MODIFICATION_DATE);\n return article;\n }", "T makePersistent(T entity);", "void buildFromEntity(E entity);", "public static XepLoai createEntity(EntityManager em) {\n XepLoai xepLoai = new XepLoai()\n .tenXepLoai(DEFAULT_TEN_XEP_LOAI);\n return xepLoai;\n }", "public static Lot createEntity(EntityManager em) {\n Lot lot = new Lot()\n .createdAt(DEFAULT_CREATED_AT)\n .updatedAt(DEFAULT_UPDATED_AT)\n .qte(DEFAULT_QTE)\n .qtUg(DEFAULT_QT_UG)\n .num(DEFAULT_NUM)\n .dateFabrication(DEFAULT_DATE_FABRICATION)\n .peremption(DEFAULT_PEREMPTION)\n .peremptionstatus(DEFAULT_PEREMPTIONSTATUS);\n return lot;\n }", "private MetaEntityImpl createMetaEntity(Class<?> entityType) {\n String className = entityType.getSimpleName();\n MetaEntityImpl managedEntity = new MetaEntityImpl();\n managedEntity.setEntityType(entityType);\n managedEntity.setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setKeySpace(environment.getConfiguration().getKeySpace());\n return managedEntity;\n }", "public static EmployeeCars createEntity(EntityManager em) {\n EmployeeCars employeeCars = new EmployeeCars()\n .previousReading(DEFAULT_PREVIOUS_READING)\n .currentReading(DEFAULT_CURRENT_READING)\n .workingDays(DEFAULT_WORKING_DAYS)\n .updateDate(DEFAULT_UPDATE_DATE);\n // Add required entity\n Employee employee = EmployeeResourceIT.createEntity(em);\n em.persist(employee);\n em.flush();\n employeeCars.setEmployee(employee);\n // Add required entity\n Car car = CarResourceIT.createEntity(em);\n em.persist(car);\n em.flush();\n employeeCars.setCar(car);\n return employeeCars;\n }", "public TransporteTerrestreEntity createTransporte(TransporteTerrestreEntity transporteEntity) throws BusinessLogicException {\n LOGGER.log(Level.INFO, \"Inicia proceso de creación del transporte\");\n super.createTransporte(transporteEntity);\n\n \n persistence.create(transporteEntity);\n LOGGER.log(Level.INFO, \"Termina proceso de creación del transporte\");\n return transporteEntity;\n }", "public static TaskComment createEntity(EntityManager em) {\n TaskComment taskComment = new TaskComment()\n .value(DEFAULT_VALUE);\n // Add required entity\n Task newTask = TaskResourceIT.createEntity(em);\n Task task = TestUtil.findAll(em, Task.class).stream()\n .filter(x -> x.getId().equals(newTask.getId()))\n .findAny().orElse(null);\n if (task == null) {\n task = newTask;\n em.persist(task);\n em.flush();\n }\n taskComment.setTask(task);\n return taskComment;\n }", "public static Personel createEntity(EntityManager em) {\n Personel personel = new Personel()\n .fistname(DEFAULT_FISTNAME)\n .lastname(DEFAULT_LASTNAME)\n .sexe(DEFAULT_SEXE);\n return personel;\n }", "public static Ordre createEntity(EntityManager em) {\n Ordre ordre = new Ordre()\n .name(DEFAULT_NAME)\n .status(DEFAULT_STATUS)\n .price(DEFAULT_PRICE)\n .creationDate(DEFAULT_CREATION_DATE);\n return ordre;\n }", "public static Territorio createEntity(EntityManager em) {\n Territorio territorio = new Territorio().nome(DEFAULT_NOME);\n return territorio;\n }", "@Override\n @LogMethod\n public T create(T entity) throws InventoryException {\n \tInventoryHelper.checkNull(entity, \"entity\");\n repository.persist(entity);\n return repository.getByKey(entity.getId());\n }", "public static Poen createEntity(EntityManager em) {\n Poen poen = new Poen()\n .tip(DEFAULT_TIP);\n return poen;\n }", "public static Expediente createEntity(EntityManager em) {\n Expediente expediente = new Expediente()\n .horarioEntrada(DEFAULT_HORARIO_ENTRADA)\n .horarioSaida(DEFAULT_HORARIO_SAIDA)\n .diaSemana(DEFAULT_DIA_SEMANA);\n return expediente;\n }", "public static Unidade createEntity(EntityManager em) {\n Unidade unidade = new Unidade()\n .descricao(DEFAULT_DESCRICAO)\n .sigla(DEFAULT_SIGLA)\n .situacao(DEFAULT_SITUACAO)\n .controleDeEstoque(DEFAULT_CONTROLE_DE_ESTOQUE)\n .idAlmoxarifado(DEFAULT_ID_ALMOXARIFADO)\n .andar(DEFAULT_ANDAR)\n .capacidade(DEFAULT_CAPACIDADE)\n .horarioInicio(DEFAULT_HORARIO_INICIO)\n .horarioFim(DEFAULT_HORARIO_FIM)\n .localExame(DEFAULT_LOCAL_EXAME)\n .rotinaDeFuncionamento(DEFAULT_ROTINA_DE_FUNCIONAMENTO)\n .anexoDocumento(DEFAULT_ANEXO_DOCUMENTO)\n .setor(DEFAULT_SETOR)\n .idCentroDeAtividade(DEFAULT_ID_CENTRO_DE_ATIVIDADE)\n .idChefia(DEFAULT_ID_CHEFIA);\n // Add required entity\n TipoUnidade tipoUnidade;\n if (TestUtil.findAll(em, TipoUnidade.class).isEmpty()) {\n tipoUnidade = TipoUnidadeResourceIT.createEntity(em);\n em.persist(tipoUnidade);\n em.flush();\n } else {\n tipoUnidade = TestUtil.findAll(em, TipoUnidade.class).get(0);\n }\n unidade.setTipoUnidade(tipoUnidade);\n return unidade;\n }", "public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.position.y, entity.position.z, (float) -entity.angles.y, (float) entity.angles.x);\r\n\t\tbuilder.entity = entity;\r\n\t\tworld.spawnEntity(builder);\r\n }", "public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }", "private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }", "@Test\n public void testNewEntity_0args() {\n // newEntity() is not implemented!\n }", "public static NoteMaster createEntity(EntityManager em) {\n NoteMaster noteMaster = new NoteMaster()\n .semestre(DEFAULT_SEMESTRE)\n .noteCC1(DEFAULT_NOTE_CC_1)\n .noteCC2(DEFAULT_NOTE_CC_2)\n .noteFinal(DEFAULT_NOTE_FINAL)\n .date(DEFAULT_DATE);\n return noteMaster;\n }", "public Camp newEntity() { return new Camp(); }", "T create() throws PersistException;", "private EntityDef createEntityDef(Class<?> entityClass)\n {\n\t\tif (entityClass.isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass.SingleTableSuperclass(entityClass);\n } else if (entityClass.getSuperclass().isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass(entityClass);\n } else {\n return new EntityDef(entityClass);\n }\n\t}", "public static Restaurant createEntity(EntityManager em) {\n Restaurant restaurant = new Restaurant()\n .restaurantName(DEFAULT_RESTAURANT_NAME)\n .deliveryPrice(DEFAULT_DELIVERY_PRICE)\n .restaurantAddress(DEFAULT_RESTAURANT_ADDRESS)\n .restaurantCity(DEFAULT_RESTAURANT_CITY);\n return restaurant;\n }", "@Override\n\tpublic EmploieType creer(EmploieType entity) throws InvalideTogetException {\n\t\treturn emploieTypeRepository.save(entity);\n\t}", "public static Team createEntity(EntityManager em) {\n Team team = new Team().name(DEFAULT_NAME).description(DEFAULT_DESCRIPTION)\n .level(DEFAULT_LEVEL).totalMember(DEFAULT_TOTAL_MEMBER)\n .extraGroupName(DEFAULT_EXTRA_GROUP_NAME)\n .extraGroupDescription(DEFAULT_EXTRA_GROUP_DESCRIPTION)\n .extraGroupTotalMember(DEFAULT_EXTRA_GROUP_TOTAL_MEMBER);\n return team;\n }", "public static Produit createEntity(EntityManager em) {\n Produit produit = new Produit()\n .designation(DEFAULT_DESIGNATION)\n .soldeInit(DEFAULT_SOLDE_INIT)\n .prixAchat(DEFAULT_PRIX_ACHAT)\n .prixVente(DEFAULT_PRIX_VENTE)\n .quantiteDispo(DEFAULT_QUANTITE_DISPO)\n .quantiteInit(DEFAULT_QUANTITE_INIT)\n .seuilReaprov(DEFAULT_SEUIL_REAPROV)\n .reference(DEFAULT_REFERENCE);\n return produit;\n }", "public void constructEntity (EntityBuilder entityBuilder, Position position){\n entityBuilder.createEntity();\n entityBuilder.buildPosition(position);\n entityBuilder.buildName();\n entityBuilder.buildPosition();\n entityBuilder.buildContComp();\n entityBuilder.buildPhysComp(length, width);\n entityBuilder.buildGraphComp(length, width);\n }" ]
[ "0.77233905", "0.750511", "0.74888015", "0.73621994", "0.7314362", "0.715646", "0.715646", "0.7151727", "0.7150827", "0.7077576", "0.7017114", "0.6803859", "0.6752901", "0.6741009", "0.6741009", "0.67117", "0.66819555", "0.6666774", "0.6641436", "0.6625648", "0.66255546", "0.6606996", "0.6588728", "0.6575519", "0.6574767", "0.65668243", "0.65521395", "0.6532411", "0.6531259", "0.6480915", "0.64209473", "0.63877374", "0.637604", "0.63689023", "0.6314235", "0.62984514", "0.6293477", "0.62600046", "0.62462497", "0.62438315", "0.6239837", "0.6218719", "0.6209037", "0.6182818", "0.6182586", "0.6175559", "0.6170254", "0.61639804", "0.6161307", "0.6160128", "0.6155944", "0.6151906", "0.6143651", "0.6137299", "0.61366785", "0.6129938", "0.6125695", "0.61221594", "0.6107079", "0.6107045", "0.6103561", "0.609319", "0.6091499", "0.60817164", "0.60750455", "0.60700524", "0.6067393", "0.6067372", "0.606463", "0.6059229", "0.6052924", "0.6042195", "0.6038914", "0.6032349", "0.6028383", "0.6023408", "0.60220677", "0.60206175", "0.6015202", "0.6015109", "0.60137945", "0.6004236", "0.6002985", "0.60026217", "0.6000769", "0.59960586", "0.5995536", "0.5982143", "0.5978449", "0.59744585", "0.5974288", "0.5967968", "0.59641993", "0.59637445", "0.59528416", "0.59459466", "0.59449536", "0.59433526", "0.5938536", "0.59310204", "0.59306365" ]
0.0
-1
Created by BKing on 1/15/2018.
public interface NotificationListener { void onReceivedNotification(Notification notification); void onRemovedNotification(Notification notification); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\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}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private TMCourse() {\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo4359a() {\n }", "private void poetries() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\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\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n public int describeContents() { return 0; }", "public Pitonyak_09_02() {\r\n }", "Petunia() {\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n void init() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void jugar() {\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}", "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 initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void init() {}", "@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\r\n\tpublic void init() {}", "private Singletion3() {}", "Consumable() {\n\t}", "private void m50366E() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "private void init() {\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void create() {\n\n\t}", "private UsineJoueur() {}", "private ReportGenerationUtil() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\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 public void initialize() {\n \n }", "public final void mo91715d() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo6081a() {\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\tprotected void initData() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "protected void mo6255a() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public void create() {\n\t\t\n\t}", "public void mo12930a() {\n }" ]
[ "0.59509045", "0.58422214", "0.5742466", "0.5716841", "0.57010734", "0.5648285", "0.5648285", "0.56161165", "0.55819964", "0.55000126", "0.5486072", "0.54759586", "0.54619074", "0.5446089", "0.5429338", "0.54183286", "0.54071295", "0.53816026", "0.5381203", "0.53735256", "0.53691196", "0.5367629", "0.5366372", "0.5366372", "0.5366372", "0.5366372", "0.5366372", "0.5366372", "0.5360799", "0.5358429", "0.5357917", "0.5353471", "0.53473467", "0.53317165", "0.53282183", "0.5324393", "0.53217757", "0.5316893", "0.5306018", "0.52971077", "0.5294176", "0.5283901", "0.5280747", "0.5275794", "0.5273722", "0.52676237", "0.5265963", "0.5264343", "0.5264144", "0.52486074", "0.52439386", "0.52436525", "0.52436525", "0.52436525", "0.52436525", "0.52436525", "0.5242729", "0.5242729", "0.5242729", "0.5242729", "0.5242729", "0.5242729", "0.5242729", "0.52328694", "0.52328694", "0.523173", "0.5229328", "0.5217031", "0.5217031", "0.52054095", "0.51933134", "0.5191713", "0.51912534", "0.51864755", "0.5185822", "0.5184558", "0.5182365", "0.5175936", "0.5169046", "0.5168918", "0.5164123", "0.5160464", "0.5160464", "0.5160464", "0.5159254", "0.51588386", "0.515394", "0.5150418", "0.5147865", "0.5147727", "0.5147727", "0.5147727", "0.5143693", "0.513732", "0.513732", "0.51339334", "0.513065", "0.51280093", "0.5122583", "0.5114188", "0.5107918" ]
0.0
-1
Execute the query in the query box (GUI) and show the results.
protected final void executeQuery() { try { executeQuery(queryBox.getText()); } catch(SQLException e) { e.printStackTrace(); clearTable(); JOptionPane.showMessageDialog( null, e.getMessage(), "Database Error", JOptionPane.ERROR_MESSAGE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void executeQuery()\n {\n ResultSet rs = null;\n try\n { \n String author = (String) authors.getSelectedItem();\n String publisher = (String) publishers.getSelectedItem();\n if (!author.equals(\"Any\") && !publisher.equals(\"Any\"))\n { \n if (authorPublisherQueryStmt == null)\n authorPublisherQueryStmt = conn.prepareStatement(authorPublisherQuery);\n authorPublisherQueryStmt.setString(1, author);\n authorPublisherQueryStmt.setString(2, publisher);\n rs = authorPublisherQueryStmt.executeQuery();\n }\n else if (!author.equals(\"Any\") && publisher.equals(\"Any\"))\n { \n if (authorQueryStmt == null)\n authorQueryStmt = conn.prepareStatement(authorQuery);\n authorQueryStmt.setString(1, author);\n rs = authorQueryStmt.executeQuery();\n }\n else if (author.equals(\"Any\") && !publisher.equals(\"Any\"))\n { \n if (publisherQueryStmt == null)\n publisherQueryStmt = conn.prepareStatement(publisherQuery);\n publisherQueryStmt.setString(1, publisher);\n rs = publisherQueryStmt.executeQuery();\n }\n else\n { \n if (allQueryStmt == null)\n allQueryStmt = conn.prepareStatement(allQuery);\n rs = allQueryStmt.executeQuery();\n }\n\n result.setText(\"\");\n while (rs.next())\n {\n result.append(rs.getString(1));\n result.append(\", \");\n result.append(rs.getString(2));\n result.append(\"\\n\");\n }\n rs.close();\n }\n catch (SQLException e)\n {\n result.setText(\"\");\n while (e != null)\n {\n result.append(\"\" + e);\n e = e.getNextException();\n }\n }\n }", "void runQueries();", "@Override\r\n public void onShowQueryResult() {\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdoQuery();\n\t\t\t}", "private static void runQuery(Statement stmt, String sqlQuery) throws SQLException {\n\t\tResultSet rs;\n\t\tResultSetMetaData rsMetaData;\n\t\tString toShow;\n\t\trs = stmt.executeQuery(sqlQuery);\n\t\trsMetaData = rs.getMetaData();\n\t\tSystem.out.println(sqlQuery);\n\t\ttoShow = \"\";\n\t\twhile (rs.next()) {\n\t\t\tfor (int i = 0; i < rsMetaData.getColumnCount(); i++) {\n\t\t\t\ttoShow += rs.getString(i + 1) + \", \";\n\t\t\t}\n\t\t\ttoShow += \"\\n\";\n\t\t}\n\t\tif (toShow == \"\" ) {\n\t\t\ttoShow = \"No results found matching your criteria.\";\n\t\t}\n\t\tJOptionPane.showMessageDialog(null, toShow);\n\t}", "public void showResults(String query) {\n\t\t//For prototype will replace with db operations\n\t\tString[] str = { \"Artowrk1\", \"Some other piece\", \"This art\", \"Mona Lisa\" };\n\t\tArrayAdapter<String> aa = new ArrayAdapter<String>(this,android.R.layout.simple_dropdown_item_1line, str);\n\t\tmListView.setAdapter(aa);\n\t\t\n\t\tmListView.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\n }\n });\n\t\t\n\t}", "public DisplayQueryResults(){\n super(\"Displaying Query Results\");\n\n //create ResultSetTableModel and display database table\n try {\n //create TableModel for results of query SELECT * FROM authors\n tableModel = new ResultSetTableModel(JDBC_DRIVER, DATABASE_URL, DEFAULT_QUERY);\n //setup JTextArea in which user types queries\n queryArea = new JTextArea(DEFAULT_QUERY, 3, 150);\n queryArea.setWrapStyleWord(true);\n queryArea.setLineWrap(true);\n\n JScrollPane scrollPane = new JScrollPane(queryArea, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants. HORIZONTAL_SCROLLBAR_NEVER);\n //setup JButton for submitting queries\n JButton submitButton = new JButton(\"Submit Query\");\n\n //create Box to manage placement of queryArea and submitButton in GUI\n Box box = Box.createHorizontalBox();\n box.add(scrollPane);\n box.add(submitButton);\n\n //create JTable delegate for tableModel\n JTable resultTable = new JTable(tableModel);\n\n //place GUI components on content pane\n Container c = getContentPane();\n c.add(box, BorderLayout.NORTH);\n c.add(new JScrollPane(resultTable), BorderLayout.CENTER);\n\n //create event listener for submitButton\n submitButton.addActionListener(new ActionListener() {\n //pass query to table model\n @Override\n public void actionPerformed(ActionEvent e) {\n //perform a new query\n try{\n tableModel.setQuery(queryArea.getText());\n }catch (SQLException sqlException){ //catch SQLException when performing a new query\n JOptionPane.showMessageDialog(null, sqlException.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n //try to recover from invalid user query by executing default query\n try{\n tableModel.setQuery(DEFAULT_QUERY);\n queryArea.setText(DEFAULT_QUERY);\n }catch (SQLException sqlException2){ //catch SQLException when performing default query\n JOptionPane.showMessageDialog(null, sqlException2.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n //ensure database connection is closed\n tableModel.disconnectFromDatabase();\n System.exit(1);\n }//end inner catch\n }//end outer catch\n }//end actionPerformed\n });//end call to addActionListener\n\n //set window size and display window\n setSize(500, 250);\n setVisible(true);\n }catch (ClassNotFoundException classNotFound){ //catch ClassNotFoundException thrown by ResultSetTableModel if database driver not found\n JOptionPane.showMessageDialog(null, \"Cloudscape driver not found\", \"Driver not found\", JOptionPane.ERROR_MESSAGE);\n tableModel.disconnectFromDatabase();\n System.exit(1);\n } catch (SQLException sqlException) { //catch SQLException thrown by ResultSetTableModel if problems occur while setting up database connection and querying database\n JOptionPane.showMessageDialog(null, sqlException.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n tableModel.disconnectFromDatabase();\n System.exit(1);\n }\n\n //dispose of window when user quits application (this overrides the default of HIDE_ON_CLOSE)\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\n //ensure database connection is closed when the user quits application\n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosed(WindowEvent e) {\n tableModel.disconnectFromDatabase();\n System.exit(0);\n }\n });\n }", "public void actionPerformed(boolean showSQL) {\n String selection = (String)this.getSelectedItem();\n\n try {\n String cursorId = \"\";\n \n if (selection.equals(\"MTS Dispatchers\")) { \n cursorId = \"dispatchers.sql\";\n }\n \n if (selection.equals(\"MTS Shared Servers\")) {\n cursorId = \"sharedServers.sql\";\n }\n\n Cursor myCursor = new Cursor(cursorId,true);\n Parameters myPars = new Parameters();\n ExecuteDisplay.executeDisplay(myCursor,myPars, scrollP, statusBar, showSQL, resultCache, true);\n }\n catch (Exception e) {\n ConsoleWindow.displayError(e,this);\n }\n }", "private void queryAllMenu()\n\t{\n\t\tclearPanel(getPanel1());\n\t\t\n\t\t//get value from combo boxes into Values\n\t\tsetValue1(getTopics1().getSelectedItem().toString());\t\n\t\tsetValue2(getTopics2().getSelectedItem().toString());\n\t\t\n\t\t//load user values into query1 by calling CrimeQuery and passing the values\n\t\tsetQuery1(new CrimeQuery(getValue1(),getValue2()));\n\t\t\n\t\t//get the table from QueryAll from CrimeQuery class\n\t\tJTable table=getQuery1().QueryAll();\n\t\t\n\t\t//add table with new options\n\t\tJScrollPane scrolltable = new JScrollPane(table);\n\t\tscrolltable.setBounds(500,10,500,500);\n\t\n\t\tgetPanel1().add(scrolltable);\n\t\t\n\t\tgetPanel1().add(getButton2());\n\t\tgetPanel1().add(getButton5());\n\t\tgetPanel1().add(getButton3());\n\t\tgetPanel1().add(getButton6());\n\t\tgetButton3().setBounds(100,10,230,60);\n\t\tgetButton6().setBounds(100,215,230,60);\n\t\tgetButton5().setBounds(100,315,230,60);\n\t\tgetButton2().setBounds(100,410,230,60);\n\t\t\n\t\t\n\t\t\n\t}", "private void view() {\n\n\t\ttry {\n\t\t\tString databaseUser = \"blairuser\";\n\t\t\tString databaseUserPass = \"password!\";\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tConnection connection = null;\n\t\t\tString url = \"jdbc:postgresql://13.210.214.176/test\";\n\t\t\tconnection = DriverManager.getConnection(url, databaseUser, databaseUserPass);\n//\t\t\tStatement s = connection.createStatement();\n\t\t\ts = connection.createStatement();\n\t\t\tResultSet rs = s.executeQuery(\"select * from account;\");\n\t\t\t// while (rs.next()) {\n\t\t\tString someobject = rs.getString(\"name\") + \" \" + rs.getString(\"password\");\n\t\t\tSystem.out.println(someobject);\n\t\t\toutput.setText(someobject);\n\t\t\t// output.setText(rs);\n\t\t\t// System.out.println(rs.getString(\"name\")+\" \"+rs.getString(\"message\"));\n\t\t\t// rs.getStatement();\n\t\t\t// }\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t\tPostgresJDBC();\n\t}", "private void executeQuery() {\n }", "private void executeSearchShow(String query){\n Utils.setLayoutVisible(mRecyclerView);\n Utils.setLayoutInvisible(mNoInternetConnection);\n Utils.setLayoutInvisible(mShowListEmpty);\n //Check the phone connection status.\n if (!Utils.checkAppConnectionStatus(SearchActivity.this)) {\n //Toast.makeText(SearchActivity.this, getString(R.string.error_no_internet_connection), Toast.LENGTH_SHORT).show();\n Snackbar.make(mNoInternetConnection, getString(R.string.error_no_internet_connection), Snackbar.LENGTH_LONG).show();\n Utils.setLayoutInvisible(mRecyclerView);\n Utils.setLayoutVisible(mNoInternetConnection);\n } else if (query.isEmpty()) {\n Snackbar.make(mTVShowSearchLayout, getString(R.string.error_blank_search_field), Snackbar.LENGTH_LONG).show();\n } else {\n // Set loading layout visible\n Utils.setLayoutVisible(mLoadingBarLayout);\n Utils.setLayoutInvisible(mRecyclerView);\n // Create and generate the recycler view for list of results\n mRecyclerView = (RecyclerView) findViewById(R.id.recycler_view_home);\n mRecyclerView.setLayoutManager(new LinearLayoutManager(SearchActivity.this));\n SearchActivity.ProcessTVShows processTVShows = new SearchActivity.ProcessTVShows(query);\n processTVShows.execute();\n }\n }", "public void Query() {\n }", "private void showData(String query) {\n try {\n ResultSet rs = DB.search(query);\n tbl.setRowCount(0);\n while (rs.next()) {\n Vector v = new Vector();\n v.add(rs.getString(1)); //inv id\n v.add(rs.getString(6)); //cus name\n v.add(rs.getString(2)); //date\n v.add(rs.getString(3)); //time\n v.add(rs.getString(10)); //price\n v.add(rs.getString(11)); //discount\n v.add(rs.getString(12)); //total\n v.add(rs.getString(13)); //pay method\n tbl.addRow(v);\n }\n //Calculating the total value of invoices\n double total = 0d;\n for (int row = 0; row < tbl.getRowCount(); row++) {\n total = total + Double.parseDouble(tbl.getValueAt(row, 4).toString());\n }\n lbAllValue.setText(String.valueOf(total));\n lbNoofnvs.setText(String.valueOf(tbl.getRowCount()));\n setCOLORSTB(jTable1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void run() {\n\t\t\t//\t\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tint no = 0;\n\t\t\tdataSql = getSQL();\n\t\t\t//\tRow\n\t\t\tint row = 0;\n\t\t\t//\tDelete Row\n\t\t\tdetail.setRowCount(row);\n\t\t\ttry {\n\t\t\t\tm_pstmt = getStatement(dataSql);\n\t\t\t\tlog.fine(\"Start query - \"\n\t\t\t\t\t\t+ (System.currentTimeMillis() - start) + \"ms\");\n\t\t\t\tm_rs = m_pstmt.executeQuery();\n\t\t\t\tlog.fine(\"End query - \" + (System.currentTimeMillis() - start)\n\t\t\t\t\t\t+ \"ms\");\n\t\t\t\t//\tLoad Table\n\t\t\t\trow = detail.loadTable(m_rs);\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, dataSql, e);\n\t\t\t}\n\t\t\tclose();\n\t\t\t//\n\t\t\t//no = detail.getRowCount();\n\t\t\tlog.fine(\"#\" + no + \" - \" + (System.currentTimeMillis() - start)\n\t\t\t\t\t+ \"ms\");\n\t\t\tdetail.autoSize();\n\t\t\t//\n\t\t\tm_frame.setCursor(Cursor.getDefaultCursor());\n\t\t\tsetStatusLine(\n\t\t\t\t\tInteger.toString(no) + \" \"\n\t\t\t\t\t\t\t+ Msg.getMsg(Env.getCtx(), \"SearchRows_EnterQuery\"),\n\t\t\t\t\tfalse);\n\t\t\tsetStatusDB(Integer.toString(no));\n\t\t\tif (no == 0)\n\t\t\t\tlog.fine(dataSql);\n\t\t\telse {\n\t\t\t\tdetail.getSelectionModel().setSelectionInterval(0, 0);\n\t\t\t\tdetail.requestFocus();\n\t\t\t}\n\t\t\tisAllSelected = isSelectedByDefault();\n\t\t\tselectedRows(detail);\n\t\t\t//\tSet Collapsed\n\t\t\tif(row > 0)\n\t\t\t\tcollapsibleSearch.setCollapsed(isCollapsibleByDefault());\n\t\t}", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public results() {\n initComponents();\n loginlbl.setText(user.username);\n conn=mysqlconnect.ConnectDB();\n String sql=\"select idea_subject from final_results\";\n \n try{\n pat=conn.prepareStatement(sql);\n \n rs=pat.executeQuery();\n while(rs.next()){\n ideacb.addItem(rs.getString(1));\n }\n \n }catch(Exception e){\n JOptionPane.showMessageDialog(null, e);\n \n }\n }", "@SuppressWarnings(\"unchecked\")\n \n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n txtQuery = new javax.swing.JTextField();\n btnRun = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtResult = new javax.swing.JTextArea();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Query\");\n\n btnRun.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n btnRun.setText(\"Run\");\n btnRun.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRunActionPerformed(evt);\n }\n });\n\n txtResult.setEditable(false);\n txtResult.setColumns(20);\n txtResult.setRows(5);\n jScrollPane1.setViewportView(txtResult);\n\n jLabel2.setText(\"Mai Dang Nhat Anh - ITDSIU19031\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtQuery, javax.swing.GroupLayout.PREFERRED_SIZE, 688, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27)\n .addComponent(btnRun, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel2)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 895, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addComponent(btnRun, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtQuery, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 328, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "public abstract ResultList executeQuery(DatabaseQuery query);", "@Override\n\tpublic void execute() {\n\t\thhobj.display();\n\t}", "public void executeDisplaySearch(String indexfile, String queryString) {\n\t\tif (queryString.trim().length() < 1) {\n\t\t\tJOptionPane.showMessageDialog(this, \"No text given to seach!\", \"Search issues\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//System.out.println(\"going to open: \" + indexfile);\n\n\t\t\n\t\t\n\t\t//lets see if it exists at all:\n\t\tFile test = new File(indexfile);\n\t\tif (!test.exists()) {\n\t\t\tJOptionPane.showMessageDialog(this,\n\t\t\t\t\t\"No such index file present\\nAre you sure you have created an index file?\", \"Missing Index\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\tString minDate = new String(\"2020-11-11\");\n\t\tString MaxDate = new String(\"0000-00-00\");\n\t\tBusyWindow bw = new BusyWindow(\"Setup\", \"Adding results\",true);\n\t\ttry {\n\t\t\tSearcher searcher = new IndexSearcher(indexfile);\n\t\t\t//standardanalyser\n\t\t\tQueryParser qp = new QueryParser(\"contents\", analyzer);\n\t\t\tQuery query = qp.parse(queryString);\n\t\t\tSystem.out.println(\"Searching for: \" + query.toString(\"contents\"));\n\t\t\tdatecal.clear();\n\t\t\tresultHits = searcher.search(query);\n\t\t\tSystem.out.println(resultHits.length() + \" total matching documents\");\n\n\t\t\tbw.setMax(resultHits.length());\n\t\t\tbw.setVisible(true);\n\t\t\t// reset the table length\n\n\t\t\tresultTableModel.setRowCount(0);\n\n\t\t\tfor (int i = 0; i < resultHits.length(); i++) {\n\t\t\t\tbw.progress(i);\n\t\t\t\tVector rowvalue = new Vector();\n\t\t\t\tDocument doc = resultHits.doc(i);\n\t\t\t\tfloat score = resultHits.score(i);\n\t\t\t\tString path = doc.get(\"path\");\n\t\t\t\tString curDate = doc.get(\"Date\");\n\t\t\t\tdatecal.addDate(curDate);\n\t\t\t\tif (path != null) {\n\t\t\t\t\trowvalue.add(\"\" + score);\n\n\t\t\t\t\t// we need to get the date and subject from the db\n\t\t\t\t\t// based on the mailref encode in the path with a space\n\t\t\t\t\t// afterwards\n\t\t\t\t\tString mailref = doc.get(\"Mailref\");\n\t\t\t\t\trowvalue.add(curDate);\n\t\t\t\t\tif (compareDatesString(MaxDate, curDate) < 0) {\n\t\t\t\t\t\tMaxDate = curDate;\n\t\t\t\t\t} else if (compareDatesString(minDate, curDate) > 0) {\n\t\t\t\t\t\tminDate = curDate;\n\t\t\t\t\t}\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tString data[][] = DBConnect.getSQLData(\"select subject from email where mailref = '\" + mailref\n\t\t\t\t\t\t\t\t+ \"'\");\n\n\t\t\t\t\t\tif (data.length > 0) {\n\t\t\t\t\t\t\trowvalue.add(data[0][0]);\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\trowvalue.add(\"subject\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (SQLException see) {\n\t\t\t\t\t\tsee.printStackTrace();\n\n\t\t\t\t\t\trowvalue.add(\"subject\");\n\t\t\t\t\t}\n\n\t\t\t\t\trowvalue.add(mailref);\n\t\t\t\t\t// System.out.println(i + \". =\"+score+\"= \" +\n\t\t\t\t\t// doc.get(\"contents\").substring(0,20));//path );\n\t\t\t\t} else {\n\t\t\t\t\tString url = doc.get(\"url\");\n\t\t\t\t\tif (url != null) {\n\t\t\t\t\t\tSystem.out.println(i + \". \" + url);\n\t\t\t\t\t\tSystem.out.println(\" - \" + doc.get(\"title\"));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(i + \". \" + \"No path nor URL for this document\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\trowvalue.add(-1);\n\t\t\t\trowvalue.add(i);\n\t\t\t\tresultTableModel.addRow(rowvalue);\n\t\t\t}\n\n\t\t} catch (ParseException pe) {\n\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"Problem with query \" + queryString);\n\t\t\tpe.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tJOptionPane.showMessageDialog(SearchEMT.this, \"Problem opening \" + indexfile);\n\t\t\tioe.printStackTrace();\n\n\t\t}\n\t\tbw.setVisible(false);\n\t\t// System.out.println(\"Max:\" + MaxDate + \" Min:\"+ minDate);\n\n\t\tm_status.setText(\"Number of results: \" + resultHits.length() + \" From \" + minDate + \" to \" + MaxDate);\n\n\t\tdatecal.setDateRange(minDate, MaxDate);\n\t\tdatecal.paintComponent(datecal.getGraphics());\n\n\t}", "public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "@ActionTrigger(action=\"QUERY\")\n\t\tpublic void spriden_Query()\n\t\t{\n\t\t\t\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tclearBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tclearBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tclearBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tenterQuery();\n//\t\t\t\tif ( SupportClasses.SQLFORMS.FormSuccess().not() )\n//\t\t\t\t{\n//\t\t\t\t\t\n//\t\t\t\t\tthrow new ApplicationException();\n//\t\t\t\t}\n\t\t\t}", "private void querySumMenu()\n\t{\n\t\tclearPanel(getPanel1());\n\t\t\n\t\tJLabel label1=new JLabel(\"This is the total numbers\\nFor:\"+getValue1()+\"and\"+getValue2());\n\t\t\n\t\t//get table from sumQuery and put it in table\n\t\tJTable table=getQuery1().sumQuery(); \n\t\t\n\t\tJScrollPane scrolltable = new JScrollPane(table);\n\t\tlabel1.setBounds(100,10,400,40);\n\t\tscrolltable.setBounds(500,10,500,500);\n\t\tgetPanel1().add(scrolltable);\n\t\tgetPanel1().add(getButton3());\n\t\tgetPanel1().add(getButton4());\n\t\tgetButton3().setBounds(260,10,180,60);\n\t\tgetButton4().setBounds(80,10,180,60);\n\t}", "public void run()\n\t\t\t{\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\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 * Process Query Here\n\t\t\t\t * \n\t\t\t\t **/\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n //perform a new query\n try{\n tableModel.setQuery(queryArea.getText());\n }catch (SQLException sqlException){ //catch SQLException when performing a new query\n JOptionPane.showMessageDialog(null, sqlException.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n //try to recover from invalid user query by executing default query\n try{\n tableModel.setQuery(DEFAULT_QUERY);\n queryArea.setText(DEFAULT_QUERY);\n }catch (SQLException sqlException2){ //catch SQLException when performing default query\n JOptionPane.showMessageDialog(null, sqlException2.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n //ensure database connection is closed\n tableModel.disconnectFromDatabase();\n System.exit(1);\n }//end inner catch\n }//end outer catch\n }", "private QueryResult performMappedQuery() throws VizException {\n\n if (database == null) {\n throw new VizException(\"Database not specified for query\");\n }\n if (query == null) {\n throw new VizException(\"Cannot execute null query\");\n }\n\n QlServerRequest request = new QlServerRequest(query);\n request.setDatabase(database);\n request.setType(QueryType.QUERY);\n request.setParamMap(paramMap);\n\n // set the mode so the handler knows what to do\n if (queryLanguage == null) {\n throw new VizException(\"Query language not specified\");\n } else if (queryLanguage.equals(QueryLanguage.HQL)) {\n request.setLang(QlServerRequest.QueryLanguage.HQL);\n } else {\n request.setLang(QlServerRequest.QueryLanguage.SQL);\n }\n\n // create request object\n QueryResult retVal = null;\n // get result\n AbstractResponseMessage response = (AbstractResponseMessage) ThriftClient\n .sendRequest(request);\n\n if (response instanceof ResponseMessageGeneric) {\n retVal = (QueryResult) ((ResponseMessageGeneric) response)\n .getContents();\n\n } else if (response instanceof ResponseMessageError) {\n ResponseMessageError rme = (ResponseMessageError) response;\n VizServerSideException innerException = new VizServerSideException(\n rme.toString());\n throw new VizServerSideException(rme.getErrorMsg(), innerException);\n }\n\n return retVal;\n }", "public void executeSQlQuery(String query, String message)\n {\n Connection con = DB.getConnection();\n Statement st;\n try{\n st = con.createStatement();\n if((st.executeUpdate(query)) == 1)\n {\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n model.setRowCount(0);\n showTable();\n \n JOptionPane.showMessageDialog(null, \"Data \"+message+\" Succefully\");\n }else{\n JOptionPane.showMessageDialog(null, \"Data Not \"+message);\n }\n }catch(SQLException | HeadlessException ex){\n }\n }", "Query query();", "protected void startQuery() {\n final EditText editSearch = (EditText) findViewById(R.id.editTextSearchWord);\n final String searchWord = editSearch.getText().toString(); //EditText.getText() returns Editable\n //new DDGAsyncQuery(this).execute(searchWord);\n //DDGLoader implementation does not have a\n try {\n this.dialog = new ProgressDialog(this);\n this.dialog.setCancelable(true);\n this.dialog.setIndeterminate(true);\n this.dialog.setTitle(getText(R.string.queryStartedDialogTitle));\n this.dialog.setMessage(getText(R.string.queryStartedDialogText));\n this.dialog.show();\n } catch (Exception e) {\n Log.w(TAG, \"startQuery(): unable to show dialog\");\n }\n\n //Create the actual loader that will perform the query submission to remote server\n Bundle args = new Bundle(1);\n args.putString(DDGLoader.KEY_SEARCH_WORD, searchWord);\n /* Quirk in support library implementation of AsyncTaskLoader which baffled me before\n * requires this .forceLoad() method to actually start the loader. This should not be\n * necessary if using the API11+ framework implementation but I haven't tried it.\n * See http://stackoverflow.com/questions/10524667/android-asynctaskloader-doesnt-start-loadinbackground\n * Also, I found for this application .restartLoader makes sure it fetches new data for every\n * query; with .initLoader on subsequent queries it would return data from the previous query\n * seemingly without even accessing the network */\n getSupportLoaderManager().restartLoader(queryLoaderId, args, this).forceLoad();\n }", "public void show() {\r\n\t\ttry {\r\n\t\t\tdisplayTable();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Show Table SQL Exception: \" + e.getMessage());\r\n\t\t}\r\n\t}", "public QueryFrame( String driver, String databaseURL, \n\t\t\t\t\t String username, String password )\n\t{\n\t\tsuper( \"Database Queries\" ); // call superclass constructor with frame title\n\t\t\n\t\tDRIVER = driver; // set the jdbc driver\n\t\tDATABASE_URL = databaseURL; // set the database URL\n\t\tUSERNAME = username; // set the username for accessing the database\n\t\tPASSWORD = password; // set the password for accessing the database\n\t\t\n\t\t// initialise Instructions label\n\t\tlblInstructions = new JLabel( \"Choose a defined query or create a custom query in the text area below\" );\n\t\t\n\t\t// initialise Defined Queries combo box with element DefinedQueriesEnum\n\t\tcmbDefinedQueries = new JComboBox< DefinedQueriesEnum >( DefinedQueriesEnum.values() );\n\t\t\n\t\ttxtCustomQuery = new JTextArea( 10, 30 ); // initialise Custom Query text area with 10 rows and 30 columns\n\t\ttxtCustomQuery.setLineWrap( true ); // set line wrap true for text area\n\t\ttxtCustomQuery.setWrapStyleWord( true ); // set wrap style word for text area\n\t\t\n\t\ttry // begin try block\n\t\t{\n\t\t\t// initialise JTable data model to the currently selected query in the Defined Queries combo box\n\t\t\t// using five argument constructor as employee type is not relevant for this result model\n\t\t\tqueryResultsModel = new ResultSetTableModel( DRIVER, DATABASE_URL, USERNAME, PASSWORD,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t ( ( DefinedQueriesEnum ) cmbDefinedQueries.getSelectedItem() ).getQuery() );\n\t\t\t\n\t\t\tbtnDefinedQueries = new JButton( \"Execute Defined Query\" ); // initialise Defined Queries button\n\t\t\tbtnDefinedQueries.addActionListener( // add an action listener for the Defined Queries button\n\t\t\t\tnew ActionListener() // begin anonymous inner class\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\t// override method actionPerformed\n\t\t\t\t\tpublic void actionPerformed( ActionEvent event )\n\t\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t\ttry // begin try block\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// set the query of the table model to the currently selected query in the Defined Queries combo box\n\t\t\t\t\t\t\tqueryResultsModel.setQuery( ( ( DefinedQueriesEnum ) cmbDefinedQueries.getSelectedItem() ).getQuery() );\n\t\t\t\t\t\t} // end try block\n\t\t\t\t\t\tcatch( SQLException sqlException ) // catch SQLException\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// display message to user indicating that an error occurred\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\t\t\tnull, // use default parent component\n\t\t\t\t\t\t\t\tsqlException.getMessage(), // message to display\n\t\t\t\t\t\t\t\t\"Table Model Error\", // title of the message dialog\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE ); // message type is error\n\t\t\t\t\t\t\tsqlException.printStackTrace(); // print stack trace\n\t\t\t\t\t\t} // end catch SQLException\n\t\t\t\t\t} // end method actionPerformed\n\t\t\t\t} // end anonymous inner class\n\t\t\t); // end registering of event handler for Defined Queries button\n\t\t\n\t\t\tbtnCustomQuery = new JButton( \"Execute Custom Query\" ); // initialise Custom Query button\n\t\t\tbtnCustomQuery.addActionListener( // add an action listener for the Custom Query button\n\t\t\t\tnew ActionListener() // begin anonymous inner class\n\t\t\t\t{\n\t\t\t\t\t// override method actionPerformed\n\t\t\t\t\tpublic void actionPerformed( ActionEvent event )\n\t\t\t\t\t{\n\t\t\t\t\t\ttry // begin try block\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// set the query of the table model to that entered in the Custom Query text area\n\t\t\t\t\t\t\tqueryResultsModel.setQuery( txtCustomQuery.getText() );\n\t\t\t\t\t\t} // end try block\n\t\t\t\t\t\tcatch( SQLException sqlException ) // catch SQLException\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// display message to user indicating that an error occurred\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\t\t\t\t\tnull, // use default parent component\n\t\t\t\t\t\t\t\tString.format( \"Not a valid SQL query\\n%s\\n%s\",\n\t\t\t\t\t\t\t\t\ttxtCustomQuery.getText(),\n\t\t\t\t\t\t\t\t\tsqlException.getMessage() ), // message to display\n\t\t\t\t\t\t\t\t\"Query Invalid\", // title of the message dialog\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE ); // message type is error\n\t\t\t\t\t\t} // end catch SQLException\n\t\t\t\t\t} // end method actionPerformed\n\t\t\t\t} // end anonymous inner class\n\t\t\t); // end registering of event handler for Custom Query button\n\t\t\n\t\t\ttblQueryResults = new JTable( queryResultsModel ); // initialise data table\n\t\t\ttblQueryResults.setGridColor( Color.BLACK ); // set table gridline colour to black\n\t\t\ttablePanel = new JPanel(); // initialise the table panel\n\t\t\ttablePanel.setLayout( new BorderLayout() ); // set border layout as the layout of the table panel\n\t\t\t\n\t\t\t// add data table to table panel within a scroll pane with center alignment\n\t\t\ttablePanel.add( new JScrollPane( tblQueryResults ), BorderLayout.CENTER );\n\t\t\n\t\t\tgridBagLayout = new GridBagLayout(); // initialise grid bag layout\n\t\t\tgridBagConstraints = new GridBagConstraints(); // initialise grid bag constraints\n\t\t\tsetLayout( gridBagLayout ); // set the layout of this frame to grid bag layout\n\t\t\t\n\t\t\t// add GUI components to the frame with the specified constraints\n\t\t\t// component, gridx, gridy, gridwidth, gridheight, weightx, weighty, insets, anchor, fill\t\t\n\t\t\taddComponent( lblInstructions, 0, 0, 2, 1, 0, 0, new Insets( 5, 5, 5, 5 ), gridBagConstraints.CENTER, gridBagConstraints.NONE );\n\t\t\taddComponent( cmbDefinedQueries, 0, 1, 1, 1, 0, 0, new Insets( 5, 5, 5, 5 ), gridBagConstraints.WEST, gridBagConstraints.NONE );\n\t\t\taddComponent( btnDefinedQueries, 1, 1, 1, 1, 0, 0, new Insets( 5, 5, 5, 5 ), gridBagConstraints.WEST, gridBagConstraints.NONE );\n\t\t\taddComponent( txtCustomQuery, 0, 2, 1, 1, 0, 0, new Insets( 5, 5, 5, 5 ), gridBagConstraints.WEST, gridBagConstraints.HORIZONTAL );\n\t\t\taddComponent( btnCustomQuery, 1, 2, 1, 1, 0, 0, new Insets( 5, 5, 5, 5 ), gridBagConstraints.NORTHWEST, gridBagConstraints.HORIZONTAL );\n\t\t\taddComponent( tablePanel, 0, 3, 3, 1, 1, 1, new Insets( 5, 0, 5, 0 ), gridBagConstraints.CENTER, gridBagConstraints.BOTH );\n\t\t\n\t\t\t// add a window listener to this frame\n\t\t\taddWindowListener(\n\t\t\t\tnew WindowAdapter() // declare anonymous inner class\n\t\t\t\t{\n\t\t\t\t\t// override method windowClosing\n\t\t\t\t\t// when window is closing, disconnect from the database if connected\n\t\t\t\t\tpublic void windowClosing( WindowEvent event )\n\t\t\t\t\t{\n\t\t\t\t\t\tif( queryResultsModel != null ) // if the JTable data model has been initialised\n\t\t\t\t\t\t\tqueryResultsModel.disconnectFromDatabase(); // disconnect the data model from database\n\t\t\t\t\t} // end method windowClosing\n\t\t\t\t} // end anonymous inner class\n\t\t\t); // end registering of event handler for the window\n\t\t\n\t\t\tpack(); // resize the frame to fit the preferred size of its components\n\t\t\tsetVisible( true ); // set the frame to be visible\n\t\t} // end try block\n\t\tcatch ( SQLException sqlException ) // catch SQLException\n\t\t{\n\t\t\t// display message to user indicating that an error occurred\n\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\tnull, // use default parent component\n\t\t\t\tsqlException.getMessage(), // message to display\n\t\t\t\t\"Table Model Error\", // title of the message dialog\n\t\t\t\tJOptionPane.ERROR_MESSAGE ); // message type is error\n\t\t\tsqlException.printStackTrace(); // print stack trace\n\t\t\t\n\t\t\t// if table model cannot be initialised then frame is useless\n\t\t\t// so set the frame invisible and dispose of it\n\t\t\tsetVisible( false ); // set the frame to be invisible\n\t\t\tdispose(); // dispose of this frame\n\t\t} // end catch SQLException\n\t\tcatch ( ClassNotFoundException classNotFoundException )\n\t\t{\n\t\t\t// display message to user indicating that an error occurred\n\t\t\tJOptionPane.showMessageDialog(\n\t\t\t\tnull, // use default parent component\n\t\t\t\tString.format( \"Could not find database driver %s\\n%s\", // message to display\n\t\t\t\t\tDRIVER,\n\t\t\t\t\tclassNotFoundException.getMessage() ),\n\t\t\t\t\"Driver Not Found\", // title of the message dialog\n\t\t\t\tJOptionPane.ERROR_MESSAGE ); // message type is error\n\t\t\tclassNotFoundException.printStackTrace(); // print stack trace\n\t\t\t\n\t\t\t// if table model cannot be initialised then frame is useless\n\t\t\t// so set the frame invisible and dispose of it\n\t\t\tsetVisible( false ); // set the frame to be invisible\n\t\t\tdispose(); // dispose of this frame\n\t\t} // end catch ClassNotFoundException\n\t}", "public void executeQuery_Other(String query) {\n\n \n Connection con = DBconnect.connectdb();\n Statement st;\n\n try {\n st = con.createStatement();\n st.executeUpdate(query);\n\n \n } catch (Exception e) {\n //JOptionPane.showMessageDialog(null, e);\n\n }\n\n }", "public static void display(){\n\n try {\n Connection myConnection = ConnectionFactory.getConnection();\n Statement stat = myConnection.createStatement();\n ResultSet rs = stat.executeQuery(\"SELECT * from product\");\n\n System.out.println(\"PRODUCT\");\n while(rs.next()){\n\n System.out.println(rs.getInt(\"id\") + \", \" + rs.getString(\"quantity\") + \", \" + rs.getString(\"productName\") + \", \" + rs.getDouble(\"price\")+ \", \" + rs.getString(\"deleted\"));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n System.out.println();\n\n }", "public void executeSQlQuery(String query, String message) {\n Connection con = getConnection();\n Statement st;\n try {\n st = con.createStatement();\n if ((st.executeUpdate(query)) == 1) {\n // refresh jtable data\n DefaultTableModel model = (DefaultTableModel) jTable1.getModel();\n model.setRowCount(0);\n GetData();\n\n JOptionPane.showMessageDialog(null, message);\n } else {\n JOptionPane.showMessageDialog(null, \"Wystapił błąd\");\n }\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Zostały wprowadzone niepoprawne dane\");\n\n }\n }", "public void runQuery(String query, String db) throws SQLException {\n if (null == conn) {\n throw new IllegalStateException(\"No connection open\");\n }\n Statement stmt = conn.createStatement();\n\n // Should use a prepared statement\n stmt.execute(\"use \" + db);\n try {\n if (stmt.execute(query)) {\n ResultSet resultSet = stmt.getResultSet();\n ResultSetMetaData metadata = resultSet.getMetaData();\n int cols = metadata.getColumnCount();\n while (resultSet.next()) {\n for (int c = 1; c <= cols; ++c) {\n System.out.print(resultSet.getObject(c).toString());\n if (c != cols) System.out.print(\"\\t\");\n else System.out.println();\n }\n }\n } else {\n System.err.println(\"Query failed\");\n System.err.println(\"Warnings: \" + stmt.getWarnings());\n }\n } finally {\n stmt.close();\n }\n }", "public static void main(String[] args) {\n\t\tSession s2=util.getSession();\r\n\t\tQuery qry=s2.getNamedQuery(\"q2\");\r\n\t\t//Query qry=s2.getNamedQuery(\"q3\");\r\n\t\t//qry.setInteger(0, 50);\r\n\t\tList<Object[]> lust=qry.list();\r\n\t\tfor(Object[] row:lust) {\r\n\t\t\tSystem.out.println(Arrays.toString(row));\r\n\t\t}\r\n\t\tSystem.out.println(\"Completed\");\r\n\t}", "public void displaySearchQueryResult(ResultSet result) {\n try {\n // if there are no result\n if (!result.isBeforeFirst()) {\n displayNotificationMessage(\"No Result Found.\");\n resultPane.setContent(new GridPane());\n return;\n }\n\n // clear the userMessage area\n userMessage.setText(\"\");\n resultPane.setContent(createSearchResultArea(result));\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void show() throws SQLException {\n int done = 0;\n\n show_stmt.registerOutParameter(2, java.sql.Types.INTEGER);\n show_stmt.registerOutParameter(3, java.sql.Types.VARCHAR);\n\n for (;;) {\n show_stmt.setInt(1, 32000);\n show_stmt.executeUpdate();\n System.out.print(show_stmt.getString(3));\n if ((done = show_stmt.getInt(2)) == 1) {\n break;\n }\n }\n }", "public void Refresh()\r\n \t{\r\n\t try{\r\n\t\t rsTution=db.stmt.executeQuery(\"Select * from Tution\");\r\n\t\t rsTution.next();\r\n\t\t Display();\r\n\t }catch(SQLException sqle)\r\n\t {System.out.println(\"Refresh Error:\"+sqle);\r\n\t }\r\n \t}", "private void showSearchResults(String query){\n searchResultGV = (GridView) findViewById(R.id.searchResultGV);\n setTitle(\"Search Result for: \" + query);\n query = query.toLowerCase();\n\n getPhotoList(query);\n\n searchResultGV.setAdapter(adapter);\n }", "public void actionPerformed(ActionEvent e) {\n displayInfoText(\" \");\n // Turn the search string into a Query\n String queryString = queryWindow.getText().toLowerCase().trim();\n query = new Query(queryString);\n // Take relevance feedback from the user into account (assignment 3)\n // Check which documents the user has marked as relevant.\n if (box != null) {\n boolean[] relevant = new boolean[box.length];\n for (int i = 0; i < box.length; i++) {\n if (box[i] != null)\n relevant[i] = box[i].isSelected();\n }\n query.relevanceFeedback(results, relevant, engine);\n }\n // Search and print results. Access to the index is synchronized since\n // we don't want to search at the same time we're indexing new files\n // (this might corrupt the index).\n long startTime = System.currentTimeMillis();\n synchronized (engine.indexLock) {\n results = engine.searcher.search(query, queryType, rankingType);\n }\n long elapsedTime = System.currentTimeMillis() - startTime;\n // Display the first few results + a button to see all results.\n //\n // We don't want to show all results directly since the displaying itself\n // might take a long time, if there are many results.\n if (results != null) {\n displayResults(MAX_RESULTS, elapsedTime / 1000.0);\n } else {\n displayInfoText(\"Found 0 matching document(s)\");\n\n if (engine.speller != null) {\n startTime = System.currentTimeMillis();\n SpellingOptionsDialog dialog = new SpellingOptionsDialog(50);\n String[] corrections = engine.speller.check(query, 10);\n elapsedTime = System.currentTimeMillis() - startTime;\n System.err.println(\"It took \" + elapsedTime / 1000.0 + \"s to check spelling\");\n if (corrections != null && corrections.length > 0) {\n String choice = dialog.show(corrections, corrections[0]);\n if (choice != null) {\n queryWindow.setText(choice);\n queryWindow.grabFocus();\n\n this.actionPerformed(e);\n }\n }\n }\n }\n }", "void showAll();", "private void sampleQuery(final SQLManager sqlManager, final HttpServletResponse resp)\n throws IOException {\n try (Connection sql = sqlManager.getConnection()) {\n\n // Execute the query.\n final String query = \"SELECT 'Hello, world'\";\n try (PreparedStatement statement = sql.prepareStatement(query)) {\n \n // Gather results.\n try (ResultSet result = statement.executeQuery()) {\n if (result.next()) {\n resp.getWriter().println(result.getString(1));\n }\n }\n }\n \n } catch (SQLException e) {\n LOG.log(Level.SEVERE, \"SQLException\", e);\n resp.getWriter().println(\"Failed to execute database query.\");\n }\n }", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "public Query() {\n initComponents();\n }", "public void selectQuery(String query) {\n\t\tQuery q = QueryFactory.create(query);\n\t\tQueryExecution qe = QueryExecutionFactory.create(q, model);\n\t\tResultSet result = qe.execSelect();\n\t\tprintResultSet(result);\n\t\tqe.close();\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(Queries.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(Queries.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(Queries.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Queries.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 Queries().setVisible(true);\n }\n });\n }", "public int executeQueryAndPrintResult (String query) throws SQLException {\n // creates a statement object\n Statement stmt = this._connection.createStatement ();\n\n // issues the query instruction\n ResultSet rs = stmt.executeQuery (query);\n\n /*\n ** obtains the metadata object for the returned result set. The metadata\n ** contains row and column info.\n */\n ResultSetMetaData rsmd = rs.getMetaData ();\n int numCol = rsmd.getColumnCount ();\n int rowCount = 0;\n\n // iterates through the result set and output them to standard out.\n boolean outputHeader = true;\n while (rs.next()){\n\t if(outputHeader){\n\t for(int i = 1; i <= numCol; i++){\n\t\tSystem.out.print(rsmd.getColumnName(i) + \"\\t\");\n\t }\n\t System.out.println();\n\t outputHeader = false;\n\t }\n for (int i=1; i<=numCol; ++i)\n System.out.print (rs.getString (i) + \"\\t\");\n System.out.println ();\n ++rowCount;\n }//end while\n stmt.close ();\n return rowCount;\n }", "private void executeSelect(String query){\n try {\n statement = connection.createStatement();\n rs = statement.executeQuery(query);\n } catch (SQLException e) {\n throw new RuntimeException(e);\n } \n }", "public void consoleDisplay() throws SQLException, ClassNotFoundException {\n ConsoleClass obj = new ConsoleClass();\n \n obj.consoleDisplay(this);\n// if(dbStatus == true) {\n// obj.getData(this);\n// }\n \n }", "public static void operation() {\n try ( QueryExecution qExec = QueryExecutionHTTP.service(dataURL).query(\"ASK{}\").build() ) {\n qExec.execAsk();\n System.out.println(\"Operation succeeded\");\n } catch (QueryException ex) {\n System.out.println(\"Operation failed: \"+ex.getMessage());\n }\n System.out.println();\n }", "public void searchAndDisplay(Connection con) throws SQLException, NumberFormatException {\r\n //Declare and initialize all the variables\r\n //Get all the data from the fields and edit format with helper method\r\n String strCourseName = SearchHelper.searchHelper(getName());\r\n String strCourseTitle = SearchHelper.searchHelper(getTitle());\r\n String strCourseDepartment = SearchHelper.searchHelper(getDepartment());\r\n int intSID = getSID();\r\n String strSchoolName = SearchHelper.searchHelper(getSchoolName());\r\n\r\n ResultSet rsResults;\r\n JTable jtbResult;\r\n int intWidth;\r\n\r\n if (intSID == 0) {\r\n rsResults = Queries.searchCourse(con, strCourseName, strCourseTitle, strCourseDepartment, strSchoolName);\r\n jtbResult = Queries.ResultSetToJTable(rsResults);\r\n jtbResult.getColumnModel().getColumn(0).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(1).setPreferredWidth(75);\r\n jtbResult.getColumnModel().getColumn(2).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(4).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(5).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(6).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(7).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(8).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(9).setPreferredWidth(150);\r\n jtbResult.getColumnModel().getColumn(10).setPreferredWidth(50);\r\n intWidth = 975;\r\n } else {\r\n rsResults = Queries.searchCourseWithSID(con, strCourseName, strCourseTitle, strCourseDepartment, intSID);\r\n jtbResult = Queries.ResultSetToJTable(rsResults);\r\n jtbResult.getColumnModel().getColumn(0).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(1).setPreferredWidth(75);\r\n jtbResult.getColumnModel().getColumn(2).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(4).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(5).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(6).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(7).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(8).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(9).setPreferredWidth(50);\r\n intWidth = 825;\r\n }\r\n new PopUp(new JScrollPane(jtbResult), \"Results\", intWidth, 300);\r\n }", "public static void display(String result){\n\t\tresults.setText(result);\n\t}", "private void executeQuery(QueryDobj queryDobj, Query query,\n DataView dataView)\n throws IOException, ServletException, DataSourceException\n {\n Util.argCheckNull(query);\n Util.argCheckNull(dataView);\n\n // perform the query\n DataViewDataSource dvds = MdnDataManager.getDataViewDS();\n RecordSet rs = dvds.select(query, dataView);\n\n // create a PagedSelectDelegate and set it into the UserState\n PagedSelectDelegate psd = new PagedSelectDelegate(rs, queryDobj.getId());\n getUserState().setPagedQuery(getUserState().getCurrentMenuActionId(), psd);\n\n // delegate to PagedSelectDelegate to display the list\n delegate(psd);\n }", "public String Execute( String command ){\r\n\t\tString Return = \"\";\r\n\t\tString TypeOfReturn = \"Return>\";\r\n\t\ttry{\r\n\t\t\t//Connect();\r\n\t\t\tStatement dbStatement = conn.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n\t\t\t\tResultSet.CONCUR_READ_ONLY );\r\n\t\t\t//DatabaseMetaData m = conn.getMetaData();\r\n\t\t\t//m.getColumns();\r\n\r\n\t\t\tResultSet dbResults = dbStatement.executeQuery( command );\r\n\r\n\t\t\twhile( dbResults.next()){\r\n\t\t\t\tReturn += dbResults.getString( 1 );\t \r\n\t\t\t\t// very simple results processing...\r\n\t\t\t}\r\n\t\t}catch( Exception x ){\r\n\t\t\tReturn = x.toString();\r\n\t\t\tError = x.toString();\r\n\t\t\tTypeOfReturn = \"Error>\";\r\n\t\t}\r\n\t\treturn \"<\" + TypeOfReturn + Return + \"</\" + TypeOfReturn + \"\\0\";\r\n\t\t\t// '\\0' required by Flash\r\n\t}", "@Override\n\tpublic void execute() {\n\t\ttry {\n\t\t\tProperties properties\t = new Properties();\n\t\t\tClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n\t\t\tInputStream propertiesFile = classLoader.getResourceAsStream(\"languages/language_\" + lang + \".properties\");\n\t\t\tproperties.load(propertiesFile);\n\t\t\tResultSearchFrame rsf = new ResultSearchFrame(properties.getProperty(\"view_search_result\") , dto.getRootNode() , dto.getSessionId() , dto.getSearchName() , wordManagerFrame.getTransmitter() , lang);\n\t\t\trsf.showWindows();\n\t\t\tpropertiesFile.close();\n\t\t} catch (Exception e) {\n\t\t\tlogger.fatal(\"Problem to load languages\" , e);\n\t\t}\n\t\t\n\t}", "public void mostrarEvaluaciones(ResultSet resultados) throws SQLException {\n\n while (resultados.next()) {\n cbox3Evaluacion.addItem(resultados.getObject(1));\n\n }\n\n }", "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "@Override\n public void show(ResultComponent results) throws TrecEvalOOException {\n System.out.println(\"************************************************\");\n System.out.println(\"*************** Topic \" + topicId + \" output ****************\");\n System.out.println(\"************************************************\");\n\n if (results.getType() == ResultComponent.Type.GENERAL) {\n\n for (ResultComponent runResult : results.getResults()) {\n\n List<Result> resultList = runResult.getResultsByIdTopic(topicId);\n\n System.out.println(\"\\nResults for run: \" + runResult.getRunName());\n if (resultList.isEmpty()) {\n System.out.println(\"No results for topic \" + topicId);\n }\n\n for (Result result : resultList) {\n System.out.print(result.toString());\n }\n }\n }\n }", "public boolean query(String sql, boolean showResult) {\r\n \t\tStatement st = null;\r\n \t\tResultSet rs = null;\r\n \t\tboolean hasContent = false;\r\n \t\ttry {\r\n \t\t\tst = conn.createStatement();\r\n \t\t\tMsg.debugMsg(DB_REGULAR.class, \"executing query: \" + sql);\r\n \t\t\trs = st.executeQuery(sql);\r\n \t\t\thasContent = !rs.isBeforeFirst();\r\n \t\t\tif (showResult) {\r\n \t\t\t\tshowResultSetContent(rs);\r\n \t\t\t}\r\n \t\t\treturn hasContent;\r\n \t\t} catch (SQLException e) {\r\n \t\t\te.printStackTrace();\r\n \t\t} finally {\r\n \t\t\ttry {\r\n \t\t\t\tst.close();\r\n \t\t\t} catch (SQLException e) {\r\n \t\t\t\te.printStackTrace();\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn showResult;\r\n \r\n \t}", "public String runGUI(){\n ArrayList<ArrayList<Furniture>> all = getSubsets(getFoundFurniture());\n ArrayList<ArrayList<Furniture>> valid = getValid(all);\n ArrayList<ArrayList<Furniture>> ordered = comparePrice(valid);\n ArrayList<ArrayList<Furniture>> orders = produceOrder();\n return checkOrder(orders, true);\n }", "public void showResults(){\n customerCount = simulation.getCustomerCount();\n phoneCount = simulation.getPhoneCount();\n doorCount = simulation.getDoorCount();\n unhelpedCount = simulation.getUnhelped();\n totalCus.setText(\"Total number of Customers: \"+customerCount+\"\\t\\t\");\n doorCus.setText(\"Number of Door Customers: \"+doorCount+\"\\t\\t\");\n phoneCus.setText(\"Number of Phone Customers: \"+phoneCount+\"\\t\\t\");\n unhelped.setText(\"Number of Customers left unhelped at the end: \"+unhelpedCount);\n }", "public void query(String sql) throws SQLException {\r\n Statement st = con.createStatement();\r\n ResultSet rs = st.executeQuery(sql);\r\n\r\n while (rs.next()){\r\n System.out.println(rs.getInt(\"id\")+\" \"+rs.getString(\"name\")+\" \"+rs.getString(\"surname\")+\" \"+rs.getFloat(\"grade\"));\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\tBufferedReader br = null;\n\t\tint querycount = 0;\n\t\tString query = \"\";\n\t\tString select = \"0\";\n\n\t\tJFrame i = new JFrame();\n\t\ti.show();\n\t\t\n\t\t\n\n\t\tselect = JOptionPane.showInputDialog(i, \"Enter Query name to save\",\n\t\t\t\tnull);\n\n\t\ttry {\n\n\t\t\tString sCurrentLine;\n\n\t\t\tbr = new BufferedReader(\n\t\t\t\t\tnew FileReader(\n\t\t\t\t\t\t\t\"C:\\\\Users\\\\rishabh-pc\\\\Documents\\\\Java workspace\\\\StreamEmitters\\\\src\\\\savedQueries.txt\"));\n\n\t\t\tif (select.equalsIgnoreCase(\"0\")) {\n\t\t\t\tQueryBuilder1.main();\n\t\t\t} else {\n\t\t\t\twhile ((sCurrentLine = br.readLine()) != null) {\n\t\t\t\t\tquery = sCurrentLine;\n\t\t\t\t\tif (query.split(\",\")[0].equalsIgnoreCase(select))\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tQueryBuilder1 q1 = new QueryBuilder1();\n\t\t\t\tString spname=query.split(\",\")[1];\n\t\t\t\tint window_size=Integer.parseInt(query.split(\",\")[2]);\n\t\t\t\tString window_type=query.split(\",\")[3]; \n\t\t\t\tint window_speed=Integer.parseInt(query.split(\",\")[4]);\n\t\t\t\tint no_of_streams=Integer.parseInt(query.split(\",\")[5]);\n\t\t\t\tint stream_pos=Integer.parseInt(query.split(\",\")[6]);\n\t\t\t\tint attribute_position=Integer.parseInt(query.split(\",\")[7]);\n\t\t\t\tint function=Integer.parseInt(query.split(\",\")[8]);\n\t\t\t\tint where_stream_pos=Integer.parseInt(query.split(\",\")[9]);\n\t\t\t\tint where_att_pos=Integer.parseInt(query.split(\",\")[10]);\n\t\t\t\tint operation=Integer.parseInt(query.split(\",\")[11]);\n\t\t\t\tString value=query.split(\",\")[12];\n\t\t\t\tq1.main();\n\t\t\t\tExecuter ex = new Executer(q1, spname, window_size,window_type, window_speed, no_of_streams, stream_pos,attribute_position,\n\t\t\t\t\t\tfunction, where_stream_pos,where_att_pos, operation, value);\n\t\t\t\tif (stream_pos == 0 && attribute_position == 0) {\n\t\t\t\t\tq1.updatedResults = new String[0][6];\n\t\t\t\t\tq1.headerFields = new String[6];\n\t\t\t\t} else {\n\t\t\t\t\tq1.updatedResults = new String[0][2];\n\t\t\t\t\tq1.headerFields = new String[2];\n\t\t\t\t}\n\t\t\t\tq1.model = new DefaultTableModel(q1.updatedResults, q1.headerFields);\n\t\t\t\tq1.resultsTable.setModel(q1.model);\n\t\t\t\tThread t = new Thread(ex);\n\t\t\t\tt.start();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (br != null)\n\t\t\t\t\tbr.close();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "public void callQuery(String query) throws SQLException {\n for(int i = 0; i < queryHistory.size(); i++) {\n if(queryHistory.get(i).equalsIgnoreCase(query))\n data.get(i).OUPUTQUERY(data.get(i).getConversionArray(), data.get(i).getResultSet());\n }\n }", "public abstract void displayResult(Result result);", "public void SQLQueryEnhanced(String databaseName) throws SQLException{\n\t\tdatabaseName = databaseName.toLowerCase();\n\t\tString sql = \"SELECT name,tid,value FROM \"+databaseName;\n\t\tthis.visualComponentList = new VisualComponentList();\n\t\tthis.visualComponentList.setVisualComponentList(new ArrayList<VisualComponent>());\n\t\tSystem.out.println(\"Running SQL Query :\"+sql);\n\t\texecuteSQL(sql, databaseName);\n\t}", "public void showResults(String results){\n\t\t\tMessage msg = MainUIHandler.obtainMessage(UI_SHOW_RESULTS);\n\t\t\tmsg.obj=results;\n\t\t\tMainUIHandler.sendMessage(msg);\t\n\t\t}", "private ResultSet executeQuery(String query) {\r\n Statement stmt;\r\n ResultSet result = null;\r\n try {\r\n// System.out.print(\"Connect DB .... \");\r\n conn = openConnect();\r\n// System.out.println(\"successfully \");\r\n stmt = conn.createStatement();\r\n result = stmt.executeQuery(query);\r\n } catch (SQLException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n return result;\r\n }", "public void print() {\n\t\tString sqlList = \"select * from commodity;\";\n\t\tcommodityBuffer = new StringBuffer();\n\t\ttry {\n\t\t\tconnection = SQLConnect.getConnection();\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(sqlList);\n\n\t\t\t// put the commodity messages into a stringbuffer\n\t\t\twhile ( resultSet.next() ) {\n\t\t\t\tcommodityBuffer.append(resultSet.getString(\"number\")+\" - \"+resultSet.getString(\"name\")+\"\\n\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// show the commodity messages on window\n\t\tcommodityArea = new JTextArea(commodityBuffer.toString());\n\t}", "@FXML\r\n private void handleLoginButtonAction(ActionEvent event) throws SQLException {\n\r\n String query = \"SELECT username, password FROM LoginTable WHERE \"\r\n + \"username = '\" + usernameBox.getText() + \"'\"\r\n + \"AND password = '\" + passwordBox.getText() + \"'\";\r\n\r\n try {\r\n ResultSet rs = d.getResultSet(query); //TODO: Fill in this query\r\n if (!rs.next()) {\r\n //TODO: What should happen if there is no result?\r\n prompt.setText(\"Incorrect Username or Password\");\r\n } else {\r\n //TODO: What should happen if there is a result?\r\n prompt.setText(\"Login Success\");\r\n music.setVisible(true);\r\n }\r\n rs.close();\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\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 initialize() {\n\t\tfrmExibindoResultadoDa = new JFrame();\n\t\tfrmExibindoResultadoDa.setTitle(\"Exibindo Resultado da Consulta\");\n\t\tfrmExibindoResultadoDa.setBounds(100, 100, 450, 300);\n\t\tfrmExibindoResultadoDa.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tfrmExibindoResultadoDa.getContentPane().add(panel, BorderLayout.NORTH);\n\t\tpanel.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJTextArea textArea = new JTextArea(DEFAULT_QUERY,3,100);\n\t\tpanel.add(textArea);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Enviar Consulta\");\n\t\tbtnNewButton.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpanel.add(btnNewButton, BorderLayout.EAST);\n\t\t\n\t\ttable = new JTable();\n\t\tfrmExibindoResultadoDa.getContentPane().add(table, BorderLayout.CENTER);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tfrmExibindoResultadoDa.getContentPane().add(panel_1, BorderLayout.SOUTH);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Filtro:\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tpanel_1.add(lblNewLabel);\n\t\t\n\t\ttextField = new JTextField();\n\t\tpanel_1.add(textField);\n\t\ttextField.setColumns(23);\n\t\t\n\t\tJButton btnAplicarFiltro = new JButton(\"Aplicar Filtro\");\n\t\tpanel_1.add(btnAplicarFiltro);\n\t}", "private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }", "public void executeQuery(Statement stmt, String query) throws SQLException {\n //check if it is select\n Boolean ret = stmt.execute(query);\n if (ret) {\n ResultSet result = stmt.executeQuery(query);\n ResultSetMetaData rsmd = result.getMetaData();\n int columnCount = rsmd.getColumnCount();\n // The column count starts from 1\n\n //ArrayList<String> column_names = new ArrayList<String>();\n for (int i = 1; i <= columnCount; i++) {\n String name = rsmd.getColumnName(i);\n //column_names.add(name);\n System.out.format(\"|%-30s \",name);\n // Do stuff with name\n }\n System.out.println();\n\n while (result.next()) {\n for (int i = 0; i < columnCount; i++) {\n System.out.format(\"|%-30s \",result.getString(i+1));\n }\n System.out.println();\n }\n // STEP 5: Clean-up environment\n result.close();\n }\n }", "public static String view() throws SQLException, ClassNotFoundException {\n\t\tClass.forName(\"org.h2.Driver\");\n\t\tConnection conn = DriverManager.getConnection(DB, user, pass);\n\t\tString displayText = Display.run(conn);\n\t\tconn.close();\n\t\treturn displayText;\n\t}", "public void getTestResults(){\n TestResultDAO resultsManager = DAOFactory.getTestResultDAO();\n //populate with values from the database\n if(!resultsManager.readAllTestResults(testResults)){\n //close the window due to read failure\n JOptionPane.showMessageDialog(rootPanel, \"Failed to read test results from database. Please check your internet connection and try again.\");\n System.exit(-3);\n }\n }", "public void openQuery (CPanel panel)\n\t{\n\t\tf_checkout.setVisible(false);\n\t\tf_basicKeys.setVisible(false);\n\t\tf_lines.setVisible(false);\n\t\tf_functionKeys.setVisible(false);\n\t\tpanel.setVisible(true);\n\t}", "@Override\n\t\tpublic void executeQuery(String query) {\n\t\t\t\n\t\t}", "@Override\n public boolean onQueryTextSubmit(String query) {\n\n new Clientes().execute(query);\n Toast.makeText(c, query,\n Toast.LENGTH_SHORT).show();\n\n return false;\n }", "private List<Map<String, PrimitiveTypeProvider>> executeQuery(QueryMessage qm) {\r\n ListenableFuture<QueryResultsMessage> f = this.adampro.standardQuery(qm);\r\n QueryResultsMessage result;\r\n try {\r\n result = f.get();\r\n } catch (InterruptedException | ExecutionException e) {\r\n LOGGER.error(LogHelper.getStackTrace(e));\r\n return new ArrayList<>(0);\r\n }\r\n\r\n if (result.getAck().getCode() != AckMessage.Code.OK) {\r\n LOGGER.error(result.getAck().getMessage());\r\n }\r\n\r\n if (result.getResponsesCount() == 0) {\r\n return new ArrayList<>(0);\r\n }\r\n\r\n QueryResultInfoMessage response = result.getResponses(0); // only head (end-result) is important\r\n\r\n List<QueryResultTupleMessage> resultList = response.getResultsList();\r\n return resultsToMap(resultList);\r\n }", "public static void SearchAction() {\r\n\t\r\n \r\n ActionListener actionListener = new ActionListener() {\r\n public void actionPerformed(ActionEvent event) {\r\n \t try {\r\n\t\t\tConnection con=DriverManager.getConnection( \r\n\t\t\t \t\t\"jdbc:mysql://localhost:3306/Test\",\"root\",\"Tdd&08047728\");\r\n\t\t\tString c = SearchField.getText();\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t String query[] = {\r\n\t\t \"SELECT * FROM capstonedatabase5.employees\", \r\n\t\t \"select EmployeeName from capstonedatabase5.employees where EmployeeName like'\" + c +\"_'\" \r\n\t\t \r\n\t\t };\r\n\t\t \r\n\t\t for(String q : query) {\r\n\t\t ResultSet r = stmt.executeQuery(q);\r\n\t\t System.out.println(\"Names for query \"+q+\" are\");\r\n\t\t \r\n\t\t while (r.next()) {\r\n\t\t String name = r.getString(\"EmployeeName\");\r\n\t\t System.out.print(name+\" \");\r\n\t\t }\r\n\t\t System.out.println();\r\n\t\t }\r\n\t\t} catch (SQLException 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 }\r\n };\r\n\r\n SearchButton2.addActionListener(actionListener);\r\n }", "public static void main(String[] args) {\n Manager m = new Manager();\n Connection con = m.connect(\"localhost\",\"users\",\"postgres\",\"corewars\");\n //String[] elems = {\"login\",\"password\"};\n //DefaultTableModel users = m.getTable(con, \"SELECT * FROM users_info;\");\n List<String[]> response = m.getTableAsList(con, \"SELECT * FROM users_info;\");\n for( String[] row: response ){\n for( String s: row ){\n System.out.print( \" \" + s );\n }\n System.out.println();\n }\n System.out.println(response.get(0)[1]);\n //users.setColumnIdentifiers(new String[] {\"userID\", \"Value\"});\n //System.out.println(users.getColumnName(0));\n //m.ask(con, \"SELECT login,password FROM users_info WHERE user_id=3;\",elems);\n m.closeConnection(con);\n }", "public void getSelect(String query, ArrayList<Object> params) {\r\n\t\tif (null != connection) {\r\n\t\t\tSystem.out.println(QueryProcessor.exec(connection, query, params));\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Hubo algún error con la conexión...\");\r\n\t\t}\r\n\t}", "public void display(String result);", "public void executeQuery(String q) throws HiveQueryExecutionException;", "public void performSearch() {\n OASelect<CorpToStore> sel = getCorpToStoreSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "private void createMainQuery() {\r\n\t\tStringBuilder sb = new StringBuilder(\"SELECT B.*, M.NAME AS MAIN_CATEGORY FROM BUSINESS B, MAIN_CATE M \\nWHERE M.CAT_ID=B.CATEGORIES AND (M.CAT_ID=\");\r\n\t\tboolean first = true;\r\n\t\t\r\n\t\tfor(JCheckBox bo: boxes) {\r\n\t\t\tif(bo.isSelected()) {\r\n\t\t\t\tif(first) {\r\n\t\t\t\t\tsb.append(bo.getActionCommand());\r\n\t\t\t\t\tfirst = false;\r\n\t\t\t\t} else\r\n\t\t\t\t\tsb.append(\" OR M.CAT_ID=\").append(bo.getActionCommand());\r\n\t\t\t}\r\n\t\t}\r\n\t\tsb.append(\")\");\r\n\t\tqueryArea.setText(sb.toString());\r\n\t}", "@Override\n\tpublic void displayTheDatabase() {\n\t\t\n\t}", "@Override\n public boolean onQueryTextSubmit(String query) {\n queryMain = query;\n consultarDb();\n return true;\n }", "public void testQuery() {\n mActivity.runOnUiThread(\n new Runnable() {\n public void run() {\n //TODO: Should compare this against the db results directly.\n assertEquals(sendQuery(\"SFO\"), 7);\n assertEquals(sendQuery(\"RHV\"), 1);\n assertEquals(sendQuery(\"xyzzy\"), 0);\n }\n }\n );\n }", "public void showData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\t\tString sql=\"select *from ComplaintsData\";\n\t\t\t\tps=con.prepareStatement(sql);\n\t\t\t\trs=ps.executeQuery();\n\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "void showResults() throws IOException{\n\t\tCountService cs = CountService.getInstance();\n\t\t\n\t\tout.write(\"/------------------------Resultado Final------------------------/\" + \"\\n\" );\n\t\tout.write(\"O número total de links pesquisados é:\" + cs.getCount() + \"\\n\");\n\t\tout.write(\"O número de links Quebrados é:\" + cs.getCountQueb() + \"\\n\");\n\t\tout.write(\"O número de links ok é:\" + cs.getCountOk() + \"\\n\");\n\t\tout.write(\"O número de links Proibidos é:\" + cs.getCountProibido()+ \"\\n\");\n\t\tout.write(\"O número de métodos impedidos é:\" + cs.getCountImpedido()+ \"\\n\");\n\t\tout.write(\"O número de redirecionados é:\" + cs.getCountRedirecionado()+ \"\\n\");\n\t\tout.write(\"Erro Server:\" + cs.getCountErroServer()+ \"\\n\");\n\t\tout.write(\"Unknown Host Name:\" + cs.getCountUnknownHost()+ \"\\n\");\n\t\tout.write(\"Bad Gatway:\" + cs.getCount502()+ \"\\n\");\n\t\tout.write(\"O número resposta diferente de 4.. e 200 é:\" + cs.getCountPesq() + \"\\n\");\n\t\tout.write(\"/------------------------------------------------------------------/\" + \"\\n\");\n\t\tString dateTime = new SimpleDateFormat(\"dd/MM/yyyy HH:mm\").format(new Date()); \n\t\tout.write(\"Fim dos testes: \" + dateTime + \"\\n\");\n\t\tSystem.out.println(\"Teste finalizado\");\n\t}", "private static List<MapValue> display(NoSQLHandle handle,String query) throws Exception {\n \n \n \n QueryRequest queryRequest = new QueryRequest().setStatement(query);\n queryRequest.setLimit(1000);\n //q=q+String.valueOf(queryRequest.getLimit())+\"\\\\\\\\\\\\\"+String.valueOf(queryRequest.getMaxReadKB());\n String results1=null;\n List<MapValue> results=new ArrayList<>();\n QueryResult queryResult=null;\n do{\n queryResult = handle.query(queryRequest);\n results = queryResult.getResults();\n results1=results1+results.toString();\n }while (!queryRequest.isDone());\n \n return results;\n \n\n }", "public List<String> executeReadyQuery(String query) {\n\t\tQueryExecution qexec = returnQueryExecObject(query);\n\t\tList<String> result = new ArrayList<String>();\n\t\ttry {\n\t\t\tResultSet rs = qexec.execSelect();\n\n\t\t\twhile (rs.hasNext()) {\n\t\t\t\tQuerySolution soln = rs.nextSolution();\n\t\t\t\tresult.add(soln.toString());\n\t\t\t}\n\t\t} finally {\n\t\t\tqexec.close();\n\t\t}\n\t\treturn result;\n\t}", "void showOrdersGui();", "public void showresult(String result, String status, String message) {\r\n\t\tCommonFunctions.queryresult = \"No of Cells not Matching :\" + result;\r\n\t\tCommonFunctions.teststatus = \"Status :\" + status;\r\n\t\tCommonFunctions.message = \"System Message :\" + message;\r\n\t\tresultstextarea.setText(\"No of Cells not Matching : \" + result + \"\\n\\n\" + \"Status : \" + status + \"\\n\\n\"\r\n\t\t\t\t+ \"System Message : \" + message);\r\n\t\t// CommonFunctions.invokeTestResultsDialog(getClass());\r\n\t}", "private static void queryBook(){\n\t\tSystem.out.println(\"===Book Queries Menu===\");\n\t\t\n\t\t/*Display menu options*/\n\t\tSystem.out.println(\"1--> Query Books by Author\");\n\t\tSystem.out.println(\"2--> Query Books by Genre\");\n\t\tSystem.out.println(\"3--> Query Books by Publisher\");\n\t\tSystem.out.println(\"Any other number --> Exit To Main Menu\");\n\t\tSystem.out.println(\"Enter menu option: \");\n\t\tint menu_option = getIntegerInput(); //ensures user input is an integer value\n\t\t\n\t\tswitch(menu_option){\n\t\t\tcase 1:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBooksByAuthor();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBooksByGenre();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println();\n\t\t\t\tqueryBooksByPublisher();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t}", "private void helperDisplayResults ()\r\n\t{\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\t//---- Check if the project is empty or not\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tint indexImage = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t\tif (indexImage >= 0 && indexImage < tableSize)\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tint samplesCount = DataController.getTable().getElement(indexImage).getChannelCount();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < Math.min(samplesCount, FormMainPanelRight.TABLE_SIZE); i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//---- ABSOLUTE --------------------------------------------\r\n\r\n\t\t\t\t\t\t//---- Count\r\n\t\t\t\t\t\tint featureCount = DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getAbsoluteCellCount();\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureCount, 0, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Length\r\n\t\t\t\t\t\tdouble featureLength = (double) Math.round(DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getAbsoluteCellLengthMean() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureLength, 1, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Pixel density\r\n\t\t\t\t\t\tdouble featurePixelDensity = (double) Math.round (DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getAbsolutePixelDensity() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featurePixelDensity, 2, i + 1);\r\n\r\n\t\t\t\t\t\t//---- RELATIVE --------------------------------------------\r\n\r\n\t\t\t\t\t\t//---- Count\r\n\t\t\t\t\t\tdouble featureCountR = (double) Math.round(DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getRelativeCellCount() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureCountR, 3, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Length\r\n\t\t\t\t\t\tdouble featureLengthR = (double) Math.round(DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getRelativeCellLengthMean() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureLengthR, 4, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Pixel density\r\n\t\t\t\t\t\tdouble featurePixelDensityR = (double) Math.round (DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getRelativeCellPixelDensity() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featurePixelDensityR, 5, i + 1);\r\n\r\n\t\t\t\t\t\t//---- SENSETIVITY\r\n\t\t\t\t\t\tSensitivity sampleSensitivity = DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getSensitivity();\r\n\r\n\t\t\t\t\t\tswitch (sampleSensitivity)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase RESISTANT: mainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"R\", 6, i + 1); break;\r\n\t\t\t\t\t\tcase SENSITIVE: mainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"S\", 6, i + 1); break;\r\n\t\t\t\t\t\tcase UNKNOWN: mainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"U\", 6, i + 1); break;\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\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tfor (int i = 0; i < FormMainPanelRight.TABLE_SIZE; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//---- ABSOLUTE\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 0, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 1, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 2, i + 1);\r\n\r\n\t\t\t\t\t//---- RELATIVE\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 3, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 4, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 5, i + 1);\r\n\r\n\t\t\t\t\t//---- SENSETIVITY\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 6, i + 1);\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\t\t\t}\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}" ]
[ "0.71208996", "0.6680936", "0.6600826", "0.65380985", "0.6536803", "0.6509918", "0.64533806", "0.63619626", "0.63521016", "0.62830114", "0.62550247", "0.62500614", "0.6230125", "0.62145525", "0.6095616", "0.6065601", "0.6035081", "0.60021365", "0.60021245", "0.5986141", "0.59839004", "0.5978679", "0.5973978", "0.5970629", "0.59225327", "0.5921858", "0.5910924", "0.58947694", "0.58731747", "0.5871683", "0.586143", "0.5846692", "0.58184016", "0.58075994", "0.5804653", "0.57915884", "0.5771427", "0.5755275", "0.57452136", "0.57412165", "0.5731725", "0.5722586", "0.5718022", "0.5692856", "0.5681279", "0.56794894", "0.5672114", "0.56484205", "0.564509", "0.56417245", "0.56375355", "0.5633949", "0.562654", "0.562202", "0.5611182", "0.5609111", "0.56025016", "0.55978334", "0.55859494", "0.55839133", "0.5583854", "0.5582135", "0.5569424", "0.5563618", "0.5535159", "0.55283034", "0.55270684", "0.5517423", "0.5517269", "0.55076873", "0.55026", "0.54994583", "0.54939294", "0.5480253", "0.54786915", "0.5468544", "0.5464872", "0.54534143", "0.54507726", "0.5450319", "0.54419005", "0.5440699", "0.54328156", "0.54283226", "0.54098326", "0.5407407", "0.5406966", "0.5406101", "0.5401538", "0.5390966", "0.53880197", "0.5384194", "0.53709126", "0.5367976", "0.53626734", "0.53582865", "0.5356154", "0.53560185", "0.53549886", "0.5349067" ]
0.719218
0
Clear out all table data.
protected void clearTable() { table.setModel(new javax.swing.table.AbstractTableModel() { public int getRowCount() { return 0; } public int getColumnCount() { return 0; } public Object getValueAt(int row, int column) { return ""; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void clearAllTable() {\n\t\tint rowCount = dmodel.getRowCount();\n\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\tdmodel.removeRow(i);\n\t\t}\n\t}", "public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t\ttable.get(i).clear();\n\t\t}\n\t}", "public void clearData(){\n\t\t\n\t\tclearTable(conditionTableModel);\n\t\tclearTable(faultTableModel);\n\t}", "public void clearTable(){\n\t\tloaderImage.loadingStart();\n\t\tfullBackup.clear();\n\t\tlist.clear();\n\t\toracle.clear();\n\t\tselectionModel.clear();\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t}", "public void clear() {\n tableCache.invalidateAll();\n }", "private void clearTable() {\n fieldTable.removeAllRows();\n populateTableHeader();\n }", "public void clearTable() {\n reportTable.getColumns().clear();\n }", "public final void clearTable() {\n while (this.getRowCount() > 0) {\n this.removeRow(0);\n }\n\n // Notify observers\n this.fireTableDataChanged();\n }", "void clearAllItemsTable();", "public void clear() {\r\n\t\tfor (int i = 0; i < table.length; i++) {\r\n\t\t\ttable[i] = null;\r\n\t\t}\r\n\r\n\t\tmodificationCount++;\r\n\t\tsize = 0;\r\n\t}", "public void clean() {\r\n\t\t\r\n\t\tlogger.trace(\"Enter clean\");\r\n\t\t\r\n\t\tdata.clear();\r\n\t\tfireTableDataChanged();\r\n\t\t\r\n\t\tlogger.trace(\"Exit clean\");\r\n\t}", "private void clearTableData() {\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n model.setRowCount(0);\n }", "public void clearData(){\r\n data.clear();\r\n this.fireTableDataChanged();\r\n }", "@Override\n\tpublic void emptyTable() {\n\t\tresTable.deleteAll();\n\t}", "public void clearTable() {\n\t\tfor (int i = modelCondTable.getRowCount() - 1; i >= 0; i--) {\n\t\t\tmodelCondTable.removeRow(i);\n\t\t}\n\t}", "public void resetTable() {\n\t\tif (table != null) {\n\t\t\ttable.removeAll();\n\t\t}\n\t}", "public void clearTable() {\n this.lstDaqHware.clear();\n this.mapDevPBar.clear();\n this.mapDevMotion.clear();\n }", "public void clear()\n\t{\n\t\tfor(DBColumn col : _RowData.values())\n\t\t\tcol.clear();\n\t\t\t\n\t\t_MetaData = null;\n\t\t_Parent = null;\n\t\t_Status = DBRowStatus.Unchanged;\n\t}", "public synchronized void clear() {\n Entry tab[] = table;\n for (int index = tab.length; --index >= 0; ) {\n tab[index] = null;\n }\n count = 0;\n }", "@Override\n public void clear() {\n for (LinkedList<Entry<K,V>> list : table) {\n list = null;\n }\n }", "private void clearData() throws SQLException {\n//Lay chi so dong cuoi cung\n int n = tableModel.getRowCount() - 1;\n for (int i = n; i >= 0; i--) {\n tableModel.removeRow(i);//Remove tung dong\n }\n }", "public void clear() {\n table = new Handle[defaultSize];\n logicalSize = 0;\n }", "public void clear()\n {\n if (resultSet != null)\n {\n try\n {\n resultSet.close();\n } catch (SQLException ex)\n {\n edu.ku.brc.af.core.UsageTracker.incrSQLUsageCount();\n edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(ResultSetTableModelDirect.class, ex);\n log.error(ex);\n }\n resultSet = null;\n }\n\n metaData = null;\n classNames.clear();\n\n currentRow = 0;\n numRows = 0;\n }", "public void clearTables() {\n\t _database.delete(XREF_TABLE, null, null);\n\t _database.delete(ORDER_RECORDS_TABLE, null, null); \n\t}", "private void clearTable(DefaultTableModel table){\n\t\t\n\t\tfor(int i = 0; i < table.getRowCount(); i++){\n\t\t\ttable.removeRow(i);\n\t\t}\n\t}", "public void clearAllData() {\n atoms.clear();\n connections.clear();\n lines.clear();\n radical = null;\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 }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic void clear( )\r\n\t{\r\n\t\tfor (int i =0; i< this.tableSize; i++)\r\n\t\t\t{ ((LinkedArrays<T>) table[i]).clear(); }\r\n\t\tthis.size = 0; \r\n\t\t\r\n\t}", "public void clear() {\n\trows.removeAllElements();\n\tfireTableDataChanged();\n}", "public void clearTables()\n\t{\n\t\ttry {\n\t\t\tclearStatement.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\tif (DEBUG) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void clearHashTable()\n {\n int index;\n\n for(index = 0; index < tableSize; index++)\n {\n tableArray[index] = null;\n }\n }", "public void removeAllData() {\n dbHelper.removeAllData(db);\n }", "private void clearTable() {\n\t\tcards.clear();\n\t\ttopCard = new Card();\n\t}", "public void flushAllTables() {\n\t}", "public void clearAll();", "public void clearAll();", "public static void resetTable() {\n tableModel.resetDefault();\n updateSummaryTable();\n }", "public void clear() {\n\n\t\tdata = null;\n\t\tnumRows = 0;\n\t\tnumCols = 0;\n\t\tsize = 0L;\n\n\t}", "public void clearTable() {\n topLeft = new Item(0, \"blank\");\n topCenter = new Item(0, \"blank\");\n topRight = new Item(0, \"blank\");\n left = new Item(0, \"blank\");\n center = new Item(0, \"blank\");\n right = new Item(0, \"blank\");\n bottomLeft = new Item(0, \"blank\");\n bottomCenter = new Item(0, \"blank\");\n bottomRight = new Item(0, \"blank\");\n result = new Item(0, \"blank\");\n index = 0;\n }", "public void removeAllData() {\n DefaultTableModel dm = (DefaultTableModel) table.getModel();\n dm.getDataVector().removeAllElements();\n dm.fireTableDataChanged(); // notifies the JTable that the model has changed\n }", "public void clear() {\n this.setRowCount(0);\n }", "public void wipeTable() {\n SqlStorage.wipeTable(db, TABLE_NAME);\n }", "void clearAll();", "void clearAll();", "public void removeAll() {\r\n\r\n\t\tint size = getRowCount();\r\n\r\n\t\tthis.dataObjects = new Vector(0);\r\n\t\tdataVector = new Vector(0);\r\n\r\n\t\t// Generate notification\r\n\t\tfireTableRowsDeleted(0, size);\r\n\r\n\t}", "public void clear()\r\n {\r\n // Create the tables stack and add the top level\r\n tables.clear();\r\n tables.add( new HashMap<String,T>() );\r\n \r\n // Ditto with the counts\r\n counts.clear();\r\n counts.add( 0 ); \r\n }", "public void emptyTable()\r\n {\r\n final int lastRow = table.getRowCount();\r\n if (lastRow != 0)\r\n {\r\n ((JarModel) table.getModel()).fireTableRowsDeleted(0, lastRow - 1);\r\n }\r\n }", "public void clear (){\n\t\tfor (int i = 0; i < table.length; i++)\n\t\t\ttable[i] = null;\n\n\t\t// we have modified the hash table, and it has\n\t\t// no entries\n\t\tmodCount++;\n\t\thashTableSize = 0;\n\t}", "public void clearData()\r\n {\r\n \r\n }", "void clearData();", "public void clearTable(String tableName) throws Exception {\n DefaultDataSet dataset = new DefaultDataSet();\n dataset.addTable(new DefaultTable(tableName));\n DatabaseOperation.DELETE_ALL.execute(conn, dataset);\n }", "public void clearTables() {\r\n // your code here\r\n\t\ttry {\r\n\t\t\tdeleteReservationStatement.executeUpdate();\r\n\t\t\tdeleteBookingStatement.executeUpdate();\r\n\t\t\tdeleteUserStatement.executeUpdate();\r\n\t\t} catch (SQLException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }", "public void clear()\r\n {\r\n m_alParameters.clear();\r\n fireTableDataChanged();\r\n }", "private void clearTable()\n {\n TableLayout table = (TableLayout) findViewById(R.id.lossesTable);\n table.removeViews(1, table.getChildCount() - 1);\n }", "private void clearData() {}", "@Override\n public final void clearData() {\n synchronized (tableRows) {\n statModel.clearData();\n tableRows.clear();\n tableRows.put(TOTAL_ROW_LABEL, new SamplingStatCalculator(TOTAL_ROW_LABEL));\n statModel.addRow(tableRows.get(TOTAL_ROW_LABEL));\n }\n }", "private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }", "public void clearUserTable() {\n\t\tSQLDelete deleteStatament = new SQLDelete();\n\t\tdeleteStatament.clearUserTable();\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}", "public void doEmptyTableList() {\n tableList.deleteList();\n }", "public void clearAll() {\r\n\t\tfor (EnTablero et : listaElementos) et.setTablero( null ); // Anula tablero de todos los elementos previos\r\n\t\tlistaElementos.clear();\r\n\t\tfor (int f=0; f<numFilas; f++) {\r\n\t\t\tfor (int c=0; c<numColumnas; c++) {\r\n\t\t\t\telementosTablero[f][c] = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void clear() {\n\t\tLog.i(TAG, \"clear table \" + TABLE_USER);\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tdb.delete(TABLE_USER, null, null);\n\t}", "public void removeAllData() {\n\t\tList<T> allData = this.getAllData();\r\n\t\t// clean the map\r\n\t\tthis.dataMap.clear();\r\n\t\t\r\n\t\t// notify the subscribers\r\n\t\tthis.notifyDeleted(allData);\r\n\t}", "public void resetAll() {\n reset(getAll());\n }", "private void clearData() {\r\n em.createQuery(\"delete from MonitoriaEntity\").executeUpdate();\r\n }", "public void deleteAllData() {\n SQLiteDatabase db = getWritableDatabase();\n db.beginTransaction();\n try {\n db.delete(TABLE_HISTORY, null, null);\n db.delete(TABLE_LASTSCAN, null, null);\n db.delete(TABLE_SENSOR, null, null);\n db.delete(TABLE_SCANS, null, null);\n\n db.setTransactionSuccessful();\n } catch (Exception e) {\n\n } finally {\n db.endTransaction();\n }\n }", "public void clear() {\r\n\t\tdata.clear();\r\n\r\n\t}", "public static void clear() \r\n\t{\r\n\t\tEntry\ttab[] = m_table;\r\n\t\tint\t\tindex;\r\n\t\r\n\t\tif (tab != null) {\r\n\t\t\tfor (index = tab.length; --index >= 0; ) {\r\n\t\t\t\ttab[index] = null;\r\n\t\t}\t}\r\n\t\tm_count = 0;\r\n\t\tclearElisionCache();\r\n }", "public void clear() {\n this.data().clear();\n }", "public void deleteAll() {\n try (Connection connection = dataSource.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.DELETE_ALL.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }", "static void emptyTable () {\n Session session = null;\n Transaction transaction = null;\n try {\n session = sessionFactory.openSession();\n transaction = session.beginTransaction();\n Query query = session.createQuery(\"DELETE from ReservationsEntity \");\n query.executeUpdate();\n Query query2 = session.createQuery(\"DELETE from OrdersEntity \");\n query2.executeUpdate();\n\n Query query3 = session.createQuery(\"DELETE from TablesEntity \");\n query3.executeUpdate();\n transaction.commit();\n }\n catch (Exception e)\n {\n if (transaction != null) {\n transaction.rollback();\n }\n throw e;\n } finally {\n if (session != null) {\n session.close();\n }\n }\n }", "public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }", "public void DeleteAllRecordsInTable() {\n\n final List<Address> gndPlan = GetAllRecordsFromTable();\n for (int i = 0; i < gndPlan.size(); i++) {\n\n gndPlan.get(i).delete();\n //delete all item in table House\n }\n\n }", "public void clearData(){\n\r\n\t}", "protected abstract void clearAll();", "public synchronized void clear() {\n ServerDescEntry tab[] = table;\n for (int index = tab.length; --index >= 0; )\n tab[index] = null;\n count = 0;\n }", "public ClearTableResponse clearTable(ClearTableRequest request) throws GPUdbException {\n ClearTableResponse actualResponse_ = new ClearTableResponse();\n submitRequest(\"/clear/table\", request, actualResponse_, false);\n return actualResponse_;\n }", "@Override\n\tpublic void clearAll() {\n\t\t\n\t}", "private void clearLogs() {\n JXTable table = getSelectedTable();\n DefaultTableModel model = (DefaultTableModel) table.getModel();\n while (model.getRowCount() != 0) {\n model.removeRow(0);\n }\n }", "@Override\n public void deleteAll() {\n String deleteAllQuery = \"DELETE FROM \" + getTableName();\n getJdbcTemplate().execute(deleteAllQuery);\n }", "public void clear()\n {\n keys.clear();\n comments.clear();\n data.clear();\n }", "public void clear(){\r\n\t\tthis.countRead \t\t\t= 0;\r\n\t\tthis.countReadData \t\t= 0;\r\n\t\tthis.countRemoved \t\t= 0;\r\n\t\tthis.countRemovedData \t= 0;\r\n\t\tthis.countWrite \t\t= 0;\r\n\t\tthis.countWriteData \t= 0;\r\n\t\tthis.dataList.clear();\r\n\t\tthis.dataMap.clear();\r\n\t}", "public void clearRows()\n\t{\n\t\tif(this.Rows != null)\n\t\t{\n\t\t\tsynchronizeInversesRemoveRows(this.Rows);\n\t\t\tthis.Rows.clear();\n\t\t\tfireChangeEvent();\n\t\t}\n\t}", "public void resetTables() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_LOGIN, null, null);\n db.close();\n }", "@Override\n public void clearDB() throws Exception {\n hBaseOperation.deleteTable(this.dataTableNameString);\n hBaseOperation.createTable(this.dataTableNameString, this.columnFamily, numRegion);\n }", "@AfterEach\n\tvoid clearDatabase() {\n\t\t//Clear the table\n\t\taccountRepository.deleteAll();\n\t}", "public void removeAllDataEmpleado() {\n DefaultTableModel dm = (DefaultTableModel) table.getModel();\n dm.getDataVector().removeAllElements();\n dm.fireTableDataChanged(); // notifies the JTable that the model has changed\n }", "public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }", "public void deleteAll(){\r\n\t\thead = null;\r\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\tdao.deleteAll();\n\n\t}", "public void reset() {\n Log.i(TAG, \"Clearing everything from the notifications table\");\n this.cancelAllNotifications();\n this.ntfcn_items.reset();\n }", "public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}", "@Override\r\n\tpublic void clearALL() {\n\t\tjavaScriptWindow.propertyTable = null;\r\n\r\n\t}", "public void clearDatabase() {\n\t\tstudentRepository.deleteAll();\n\t}", "public void clearData() {\r\n\t\tdata = null;\r\n\t}", "void clearDeletedItemsTable();", "private void clear () {\n id = 0;\n cmbPiece.setSelectedIndex(0);\n cmbProvider.setSelectedIndex(0);\n txtQuantity.setText(\"\");\n lblDate.setText(Utils.formatDate(new Date(), Utils.DATE_UI));\n \n btnSave.setEnabled(true);\n btnUpdate.setEnabled(false);\n btnDelete.setEnabled(false);\n \n DefaultTableModel model = (DefaultTableModel) tblWarehouse.getModel();\n \n while (model.getRowCount() > 0) model.removeRow(0);\n \n for (Warehouse house : new WarehouseController().getAll()) {\n model.addRow(new Object[]{\n house, \n house.getPiece(), \n house.getProvider(),\n house.getQuantity(),\n Utils.formatDate(house.getDate(), Utils.DATE_UI)\n });\n }\n }", "private void clearTable(String tableName) throws SQLException {\n Connection conn = getConnection();\n String setStatement = \"DELETE FROM \" + tableName;\n Statement stm = conn.createStatement();\n stm.execute(setStatement);\n }", "public void clear()\n\t{\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t{\n\t\t\tdata[i] = 0;\n\t\t}\n\t}" ]
[ "0.8540309", "0.8398408", "0.8307101", "0.8281521", "0.8147315", "0.81105226", "0.79520243", "0.7921301", "0.7898391", "0.7848654", "0.7764632", "0.7758162", "0.77532357", "0.7715173", "0.7708119", "0.76716095", "0.7624187", "0.7589148", "0.75795406", "0.74964935", "0.74625945", "0.74488974", "0.7441526", "0.73971504", "0.7391432", "0.7388938", "0.73863405", "0.73644215", "0.73609793", "0.73497385", "0.7314956", "0.730084", "0.72862065", "0.72826517", "0.7281441", "0.7281441", "0.72771025", "0.7270069", "0.7214616", "0.71623504", "0.7161807", "0.715594", "0.7141519", "0.7141519", "0.7140636", "0.7134969", "0.7133802", "0.709936", "0.70954895", "0.70848936", "0.7084221", "0.7068156", "0.70619637", "0.7056884", "0.7050163", "0.704064", "0.7002158", "0.6990513", "0.69810593", "0.69810593", "0.6972218", "0.69567186", "0.6952199", "0.69491285", "0.69402933", "0.693969", "0.6936451", "0.69239026", "0.6898516", "0.68903005", "0.68881214", "0.6867503", "0.6864629", "0.685745", "0.6854157", "0.6850086", "0.68455535", "0.68398875", "0.68246084", "0.68018943", "0.68018854", "0.68010694", "0.67973596", "0.6767046", "0.67477524", "0.67438954", "0.6716433", "0.6716005", "0.6708492", "0.6707046", "0.67048734", "0.6690117", "0.6686568", "0.66796994", "0.667899", "0.6674962", "0.66699064", "0.6647455", "0.66342616", "0.6602372" ]
0.7762026
11
Show the results in the GUI table in the panel.
public int displayResults(ResultSet rs) throws SQLException { return displayResults("", rs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finalDisplay2()\n\t{\n\t\tString s1=null;\n\t\tint sum=0;\n\t\tint j;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tj=rowLabel[i];\t\t\t\n\t\t\tsum+=temp[i][j];\t\n\t\t}\n\t\ts1=\"There are multiple solutions with the cost of \"+sum;\n\t\tJTable t = new JTable();\n testTableMultiple(t,(2*noOfPeople)+2);\n JScrollPane scrollPane = new JScrollPane(t); \n JOptionPane.showMessageDialog(null,scrollPane, s1, JOptionPane.INFORMATION_MESSAGE);\n\t}", "public void showResults(){\n customerCount = simulation.getCustomerCount();\n phoneCount = simulation.getPhoneCount();\n doorCount = simulation.getDoorCount();\n unhelpedCount = simulation.getUnhelped();\n totalCus.setText(\"Total number of Customers: \"+customerCount+\"\\t\\t\");\n doorCus.setText(\"Number of Door Customers: \"+doorCount+\"\\t\\t\");\n phoneCus.setText(\"Number of Phone Customers: \"+phoneCount+\"\\t\\t\");\n unhelped.setText(\"Number of Customers left unhelped at the end: \"+unhelpedCount);\n }", "public void finalDisplay()\n\t{\n\t\tString s1=null;\n\t\tif(!yes)\n\t\t{\n\t\t\tint sum=0;\n\t\t\tint j;\n\t\t\tSystem.out.println(\"Final Display algo1\");\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tj=rowLabel[i];\t\t\t\n\t\t\t\tSystem.out.println(j);\n\t\t\t\tsum+=temp[i][j];\t\n\t\t\t}\n\t\t\ts1=\"Total Cost is: \"+sum;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint sum=0;\n\t\t\tSystem.out.println(\"Final Display algo2\");\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(matrix[i][j]==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum+=temp[i][j];\n\t\t\t\t\t\trowLabel[i]=j;\n\t\t\t\t\t\tSystem.out.println(rowLabel[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ts1=\"Total Cost is: \"+sum;\n\t\t}\n\t\t\n\t\tJTable t = new JTable();\n testTable(t,noOfPeople+1);\n JScrollPane scrollPane = new JScrollPane(t); \n JOptionPane.showMessageDialog(null,scrollPane, s1, JOptionPane.INFORMATION_MESSAGE);\n\t}", "public void showListData() {\n List<Operator> operators = operatorService.queryAll();\n String[][] datas = new String[operators.size()][8];\n for (int i = 0; i < datas.length; i++) {\n datas[i][0] = operators.get(i).getId().toString();\n datas[i][1] = operators.get(i).getName();\n datas[i][2] = operators.get(i).getSex();\n datas[i][3] = operators.get(i).getAge().toString();\n datas[i][4] = operators.get(i).getIdentityCard();\n datas[i][5] = operators.get(i).getWorkDate().toString();\n datas[i][6] = operators.get(i).getTel();\n datas[i][7] = operators.get(i).getAdmin().toString();\n }\n operatorManagetable.setModel(new DefaultTableModel(\n datas, new String[]{\"编号\", \"用户名\", \"性别\", \"年龄\", \"证件号\", \"工作时间\", \"电话号码\", \"是否为管理员\"}\n ));\n scrollPane1.setViewportView(operatorManagetable);\n }", "private void showData(String query) {\n try {\n ResultSet rs = DB.search(query);\n tbl.setRowCount(0);\n while (rs.next()) {\n Vector v = new Vector();\n v.add(rs.getString(1)); //inv id\n v.add(rs.getString(6)); //cus name\n v.add(rs.getString(2)); //date\n v.add(rs.getString(3)); //time\n v.add(rs.getString(10)); //price\n v.add(rs.getString(11)); //discount\n v.add(rs.getString(12)); //total\n v.add(rs.getString(13)); //pay method\n tbl.addRow(v);\n }\n //Calculating the total value of invoices\n double total = 0d;\n for (int row = 0; row < tbl.getRowCount(); row++) {\n total = total + Double.parseDouble(tbl.getValueAt(row, 4).toString());\n }\n lbAllValue.setText(String.valueOf(total));\n lbNoofnvs.setText(String.valueOf(tbl.getRowCount()));\n setCOLORSTB(jTable1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void displayAllTable() {\n\n nhacungcap = new NhaCungCap();\n nhacungcap.setVisible(true);\n jDestopTable.add(nhacungcap);\n\n thuoc = new SanPham();\n thuoc.setVisible(true);\n jDestopTable.add(thuoc);\n\n khachHang = new KhachHang();\n khachHang.setVisible(true);\n jDestopTable.add(khachHang);\n\n hoaDon = new HoaDon();\n hoaDon.setVisible(true);\n jDestopTable.add(hoaDon);\n\n }", "public static void show() \r\n\t{\r\n\t\tJPanel panel = Window.getCleanContentPane();\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBackground(SystemColor.inactiveCaption);\r\n\t\tpanel_1.setBounds(-11, 0, 795, 36);\r\n\t\tpanel.add(panel_1);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Over Surgery System\");\r\n\t\tpanel_1.add(lblNewLabel);\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\t\r\n\t\tJTable table = new JTable();\r\n\t\ttable.setBounds(25, 130, 726, 120);\r\n\t\tpanel.add(table);\r\n\t\t\r\n\t\tJLabel lblNewLabel1 = new JLabel(\"General Practictioner ID:\");\r\n\t\tlblNewLabel1.setBounds(25, 73, 145, 34);\r\n\t\tpanel.add(lblNewLabel1);\r\n\t\t\r\n\t\tJTextField textField = new JTextField();\r\n\t\ttextField.setBounds(218, 77, 172, 27);\r\n\t\tpanel.add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Ok\");\r\n\t\tbtnNewButton.setBounds(440, 79, 57, 23);\r\n\t\tpanel.add(btnNewButton);\r\n\t\t\r\n\t\tJLabel lblNurseAvability = new JLabel(\"Nurse ID:\");\r\n\t\tlblNurseAvability.setBounds(25, 326, 112, 14);\r\n\t\tpanel.add(lblNurseAvability);\r\n\t\t\r\n\t\tJTextField textField_1 = new JTextField();\r\n\t\ttextField_1.setColumns(10);\r\n\t\ttextField_1.setBounds(233, 326, 172, 27);\r\n\t\tpanel.add(textField_1);\r\n\t\t\r\n\t\t\r\n\t\tJButton button = new JButton(\"Ok\");\r\n\t\tbutton.setBounds(440, 328, 57, 23);\r\n\t\tpanel.add(button);\r\n\t\t\r\n\t\tJTable table_1 = new JTable();\r\n\t\ttable_1.setBounds(25, 388, 726, 120);\r\n\t\tpanel.add(table_1);\r\n\t}", "private void helperDisplayResults ()\r\n\t{\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\t//---- Check if the project is empty or not\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tint indexImage = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t\tif (indexImage >= 0 && indexImage < tableSize)\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tint samplesCount = DataController.getTable().getElement(indexImage).getChannelCount();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < Math.min(samplesCount, FormMainPanelRight.TABLE_SIZE); i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//---- ABSOLUTE --------------------------------------------\r\n\r\n\t\t\t\t\t\t//---- Count\r\n\t\t\t\t\t\tint featureCount = DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getAbsoluteCellCount();\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureCount, 0, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Length\r\n\t\t\t\t\t\tdouble featureLength = (double) Math.round(DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getAbsoluteCellLengthMean() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureLength, 1, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Pixel density\r\n\t\t\t\t\t\tdouble featurePixelDensity = (double) Math.round (DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getAbsolutePixelDensity() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featurePixelDensity, 2, i + 1);\r\n\r\n\t\t\t\t\t\t//---- RELATIVE --------------------------------------------\r\n\r\n\t\t\t\t\t\t//---- Count\r\n\t\t\t\t\t\tdouble featureCountR = (double) Math.round(DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getRelativeCellCount() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureCountR, 3, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Length\r\n\t\t\t\t\t\tdouble featureLengthR = (double) Math.round(DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getRelativeCellLengthMean() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureLengthR, 4, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Pixel density\r\n\t\t\t\t\t\tdouble featurePixelDensityR = (double) Math.round (DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getRelativeCellPixelDensity() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featurePixelDensityR, 5, i + 1);\r\n\r\n\t\t\t\t\t\t//---- SENSETIVITY\r\n\t\t\t\t\t\tSensitivity sampleSensitivity = DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getSensitivity();\r\n\r\n\t\t\t\t\t\tswitch (sampleSensitivity)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase RESISTANT: mainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"R\", 6, i + 1); break;\r\n\t\t\t\t\t\tcase SENSITIVE: mainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"S\", 6, i + 1); break;\r\n\t\t\t\t\t\tcase UNKNOWN: mainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"U\", 6, i + 1); break;\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\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tfor (int i = 0; i < FormMainPanelRight.TABLE_SIZE; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//---- ABSOLUTE\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 0, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 1, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 2, i + 1);\r\n\r\n\t\t\t\t\t//---- RELATIVE\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 3, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 4, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 5, i + 1);\r\n\r\n\t\t\t\t\t//---- SENSETIVITY\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 6, i + 1);\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\t\t\t}\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}", "private void querySumMenu()\n\t{\n\t\tclearPanel(getPanel1());\n\t\t\n\t\tJLabel label1=new JLabel(\"This is the total numbers\\nFor:\"+getValue1()+\"and\"+getValue2());\n\t\t\n\t\t//get table from sumQuery and put it in table\n\t\tJTable table=getQuery1().sumQuery(); \n\t\t\n\t\tJScrollPane scrolltable = new JScrollPane(table);\n\t\tlabel1.setBounds(100,10,400,40);\n\t\tscrolltable.setBounds(500,10,500,500);\n\t\tgetPanel1().add(scrolltable);\n\t\tgetPanel1().add(getButton3());\n\t\tgetPanel1().add(getButton4());\n\t\tgetButton3().setBounds(260,10,180,60);\n\t\tgetButton4().setBounds(80,10,180,60);\n\t}", "public void show() {\n if(heading.isEmpty()) {\r\n System.out.println(\"Error:Table:show:no data in heading, nothing to show\");\r\n return;\r\n }\r\n if(rows.isEmpty()) {\r\n System.out.println(\"Error:Table:show:no data in rows, nothing to show\");\r\n return;\r\n }\r\n for(String h : heading) {\r\n System.out.print(h + \" | \");\r\n }\r\n System.out.println(\"\");\r\n Set<String> keys = rows.keySet();\r\n for(String k : keys) {\r\n rows.get(k).show();\r\n System.out.println(\"\");\r\n }\r\n System.out.println(\"\");\r\n }", "public InformationResultPanel(GenericResult result) {\n this();\n fieldsNotToDisplay.add(\"id\");\n fieldsNotToDisplay.add(\"the_geom\");\n this.tblResult.removeAll();\n DefaultTableModel tableModel = new DefaultTableModel();\n List<Integer> indexListToShow = new ArrayList<Integer>();\n\n //Add columns\n for (Integer fieldInd = 0; fieldInd < result.getFieldNames().size(); fieldInd++) {\n String fieldName = result.getFieldNames().get(fieldInd);\n if (fieldsNotToDisplay.contains(fieldName)) {\n continue;\n }\n tableModel.addColumn(fieldName);\n indexListToShow.add(fieldInd);\n }\n\n //Add values\n for (Object row : result.getValues()) {\n StringArray rowAsArray = (StringArray) row;\n String[] rowToAdd = new String[indexListToShow.size()];\n for (Integer fieldIndIndex = 0; \n fieldIndIndex < indexListToShow.size(); fieldIndIndex++) {\n rowToAdd[fieldIndIndex] = \n rowAsArray.getItem().get(indexListToShow.get(fieldIndIndex));\n }\n tableModel.addRow(rowToAdd);\n }\n this.tblResult.setModel(tableModel);\n }", "public void finalDisplay1()\n\t{\n\t\tString s1=null;\n\t\tif(!yes)\n\t\t{\n\t\t\tint sum=0;\n\t\t\tint j;\n\t\t\tSystem.out.println(\"Final Display1 algo1\");\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tj=rowLabel[i];\t\t\t\n\t\t\t\tsum+=temp[i][j];\t\n\t\t\t\tSystem.out.println(j);\n\t\t\t}\n\t\t\ts1=\"Total Cost is: \"+sum;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint sum=0;\n\t\t\tSystem.out.println(\"Final Display algo2\");\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(matrix[i][j]==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum+=temp[i][j];\n\t\t\t\t\t\trowLabel[i]=j;\n\t\t\t\t\t\tSystem.out.println(rowLabel[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ts1=\"Total Cost is: \"+sum;\n\t\t}\n\t\t\n\t\tJTable t = new JTable();\n testTable(t,noOfPeople+1);\n JScrollPane scrollPane = new JScrollPane(t); \n JOptionPane.showMessageDialog(null,scrollPane, s1, JOptionPane.INFORMATION_MESSAGE);\n\t}", "private void populateOverallResultsPanel(){\n\t\tmeetingSchedulingService.getBestScheduleTimes(pollId, new AsyncCallback<String>(){\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tMessageBox.alert(\"Error\", \"Server threw an error: \" + caught.getMessage(), null);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\n\t\t\t\tif(result == null){\n\t\t\t\t\tMessageBox.info(\"Results\", \"No responses yet!\", new Listener<MessageBoxEvent>(){\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handleEvent(MessageBoxEvent be) {\n\t\t\t\t\t\t\tif(be.getButtonClicked().getId().equalsIgnoreCase(\"ok\"))\n\t\t\t\t\t\t\t\tInfo.display(\"Hi\", \"Ok button clicked\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tft = new FlexTable();\n\t\t\t\t\n\t\t\t\tpollTrackingInfo = getPollTrackingInfo(result);\n\t\t\t\tint row = ft.getRowCount();\n\t\t\t\t\n\t\t\t\t//set the header of the flextable. \n\t\t\t\tft.setWidget(row, 0, new Label(\"Date-Time\"));\n\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 0, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\tft.setWidget(row, 1, new Label(\"Participants Available\"));\n\t\t\t\tft.getColumnFormatter().setWidth(1, \"100px\");\n\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\tft.setWidget(row, 2, new Label(\"When to schedule?\"));\n\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 2, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\t\n\t\t\t\tfor(int i = 0 ; i < pollTrackingInfo.length() ; i ++){\n\t\t\t\t\tPollTrackingInfo pti = pollTrackingInfo.get(i);\n\t\t\t\t\t\n\t\t\t\t\tRadio rb = new Radio();\n\t\t\t\t\trb.setId(pti.getDate());\n\t\t\t\t\t\n\t\t\t\t\trg.add(rb);\n\t\t\t\t\t\n\t\t\t\t\tft.setWidget(++row, 0, new Label(pti.getDate()));\n\t\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 0, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\t\tft.setWidget(row, 1, new Label(pti.getCount()));\n\t\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\t\tft.setWidget(row, 2, rb);\n\t\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 2, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tft.getRowFormatter().addStyleName(0, \"DateTimeWidgetHeader\");\n\t\t\t\t\n\t\t\t\toverallResultsPanel.add(ft);\n\t\t\t}\n\t\t});\n\t}", "public void showData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\t\tString sql=\"select *from ComplaintsData\";\n\t\t\t\tps=con.prepareStatement(sql);\n\t\t\t\trs=ps.executeQuery();\n\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void showTable() {\n frame = new JFrame(\"Interactive Table\");\n\n //Create and set up the content pane.\n this.setOpaque(true); //content panes must be opaque\n frame.setContentPane(this);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public DisplayQueryResults(){\n super(\"Displaying Query Results\");\n\n //create ResultSetTableModel and display database table\n try {\n //create TableModel for results of query SELECT * FROM authors\n tableModel = new ResultSetTableModel(JDBC_DRIVER, DATABASE_URL, DEFAULT_QUERY);\n //setup JTextArea in which user types queries\n queryArea = new JTextArea(DEFAULT_QUERY, 3, 150);\n queryArea.setWrapStyleWord(true);\n queryArea.setLineWrap(true);\n\n JScrollPane scrollPane = new JScrollPane(queryArea, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants. HORIZONTAL_SCROLLBAR_NEVER);\n //setup JButton for submitting queries\n JButton submitButton = new JButton(\"Submit Query\");\n\n //create Box to manage placement of queryArea and submitButton in GUI\n Box box = Box.createHorizontalBox();\n box.add(scrollPane);\n box.add(submitButton);\n\n //create JTable delegate for tableModel\n JTable resultTable = new JTable(tableModel);\n\n //place GUI components on content pane\n Container c = getContentPane();\n c.add(box, BorderLayout.NORTH);\n c.add(new JScrollPane(resultTable), BorderLayout.CENTER);\n\n //create event listener for submitButton\n submitButton.addActionListener(new ActionListener() {\n //pass query to table model\n @Override\n public void actionPerformed(ActionEvent e) {\n //perform a new query\n try{\n tableModel.setQuery(queryArea.getText());\n }catch (SQLException sqlException){ //catch SQLException when performing a new query\n JOptionPane.showMessageDialog(null, sqlException.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n //try to recover from invalid user query by executing default query\n try{\n tableModel.setQuery(DEFAULT_QUERY);\n queryArea.setText(DEFAULT_QUERY);\n }catch (SQLException sqlException2){ //catch SQLException when performing default query\n JOptionPane.showMessageDialog(null, sqlException2.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n //ensure database connection is closed\n tableModel.disconnectFromDatabase();\n System.exit(1);\n }//end inner catch\n }//end outer catch\n }//end actionPerformed\n });//end call to addActionListener\n\n //set window size and display window\n setSize(500, 250);\n setVisible(true);\n }catch (ClassNotFoundException classNotFound){ //catch ClassNotFoundException thrown by ResultSetTableModel if database driver not found\n JOptionPane.showMessageDialog(null, \"Cloudscape driver not found\", \"Driver not found\", JOptionPane.ERROR_MESSAGE);\n tableModel.disconnectFromDatabase();\n System.exit(1);\n } catch (SQLException sqlException) { //catch SQLException thrown by ResultSetTableModel if problems occur while setting up database connection and querying database\n JOptionPane.showMessageDialog(null, sqlException.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n tableModel.disconnectFromDatabase();\n System.exit(1);\n }\n\n //dispose of window when user quits application (this overrides the default of HIDE_ON_CLOSE)\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\n //ensure database connection is closed when the user quits application\n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosed(WindowEvent e) {\n tableModel.disconnectFromDatabase();\n System.exit(0);\n }\n });\n }", "public DisplayTable() {\n initComponents();\n }", "public void show() {\r\n\t\ttry {\r\n\t\t\tdisplayTable();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Show Table SQL Exception: \" + e.getMessage());\r\n\t\t}\r\n\t}", "public void ShowTable() {\n\t\tupdateTable();\n\t\ttableFrame.setVisible(true);\n\t\t\n\t}", "public static void searchDisplays(){\r\n try {\r\n \r\n singleton.dtm = new DefaultTableModel(); \r\n singleton.dtm.setColumnIdentifiers(displays);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n \r\n Statement stmt = singleton.conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(\"SELECT *,r.tam,r.resolucion FROM articulos a,mon r WHERE a.codigo = r.producto_id\");\r\n \r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n \r\n singleton.dtm.addRow(getArrayDeObjectosMon(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"tam\"),rs.getString(\"resolucion\")));\r\n\r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }", "public void showZonecomm() {\n\t\t\t// sql command to select all records and display them\n\t\t\tparent.removeAll();\n\t\t\tResultSet rs = null;\n\t\t\ttry {\n\t\t\t\t// Register jdbc driver\n\t\t\t\tClass.forName(DRIVER_CLASS);\n\t\t\t\t// open connection\n\t\t\t\tcon = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\t\tString sql = \"select * from `Zone committee` ;\";\n\t\t\t\tstmt = con.prepareStatement(sql);\n\t\t\t\trs = stmt.executeQuery(sql);\n\t\t\t\t// TO DO:Prepare table to fill values\n\t\t\t\tDefaultTableModel tab = new DefaultTableModel();\n\n\t\t\t\t// get metadata\n\t\t\t\tResultSetMetaData rsmt = rs.getMetaData();\n\n\t\t\t\t// create array of column names\n\t\t\t\tint colCount = rsmt.getColumnCount();// number of columns\n\t\t\t\tString colNames[] = { \"Member ID\", \"Baptismal Name\", \"Other Names\", \"Position\", \"Level\", \"Zone\" };\n\t\t\t\ttab.setColumnIdentifiers(colNames);// set column headings\n\n\t\t\t\t// now populate the data\n\t\t\t\trs.beforeFirst();// make sure to move cursor to beginning\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tString[] rowData = new String[colCount];\n\t\t\t\t\tfor (int i = 1; i <= colCount; i++) {\n\t\t\t\t\t\trowData[i - 1] = rs.getString(i);\n\t\t\t\t\t}\n\t\t\t\t\ttab.addRow(rowData);\n\t\t\t\t}\n\t\t\t\tJTable t = new JTable(tab);\n\t\t\t\tt.setBorder(BorderFactory.createRaisedSoftBevelBorder());\n\t\t\t\tsp = new JScrollPane(t);\n\t\t\t\tsp.setBorder(BorderFactory.createTitledBorder(\"Table Of Committee\" + \" members for selected zone\"));\n\t\t\t\tparent.add(sp, BorderLayout.CENTER);\n\t\t\t\tframe.pack();\n\t\t\t\tframe.repaint();\n\n\t\t\t} catch (SQLException | ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}", "public void showData(ActionEvent actionEvent) {\n\n firstNameCol.setCellValueFactory(new PropertyValueFactory<>(\"firstName\"));\n lastNameCol.setCellValueFactory(new PropertyValueFactory<>(\"lastName\"));\n ageCol.setCellValueFactory(new PropertyValueFactory<>(\"age\"));\n\n peopleTable.setItems(returnPeople());\n }", "public results() {\n initComponents();\n loginlbl.setText(user.username);\n conn=mysqlconnect.ConnectDB();\n String sql=\"select idea_subject from final_results\";\n \n try{\n pat=conn.prepareStatement(sql);\n \n rs=pat.executeQuery();\n while(rs.next()){\n ideacb.addItem(rs.getString(1));\n }\n \n }catch(Exception e){\n JOptionPane.showMessageDialog(null, e);\n \n }\n }", "private static void createAndShowGUI() {\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"TableRenderDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n MatchersTablePanel alignTable = new MatchersTablePanel();\r\n \r\n \r\n frame.setContentPane(alignTable);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public void displayProfileData() {\n MimsJTable table = new MimsJTable(ui);\n table.setPlanes(planes);\n table.setStats(stats);\n table.setRois(rois);\n table.setImages(images);\n String[] columnnames = table.getColumnNames();\n //MimsJTable requires multi-dim array, so need to convert dataset\n Object[][] exportedData = FileUtilities.convertXYDatasetToArray(data);\n table.createCustomTable(exportedData, columnnames);\n table.showFrame();\n }", "public void displayTable() {\n System.out.print(\"\\nSpreadsheet Table Details :\\nRows : \" + rowHeaders + \"\\nColumns:\" + colHeaders);\n new SheetParser(tableData).displaySheet();\n }", "public Gui( final Persistence p ){\r\n\r\n\t\tfinal JFrame frame = new JFrame();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t//final Popups pu = new Popups();\r\n\r\n\t\t// Temporarily holds the row results\r\n\t\tObject[] tempRow;\r\n\r\n\t\tIterator<Ordem> ordens = p.getOrdens().iterator();\r\n\r\n\t\twhile(ordens.hasNext()){\r\n\t\t\tOrdem o = ordens.next();\r\n\t\t\ttempRow = new Object[]{o.getIdOrdem(), o.getIdFuncionario(), o.getIdCliente(),\r\n\t\t\t\t\to.getDescOrigem(), o.getDescdestino(), o.getDataPedido(), o.getVolume()};\r\n\r\n\t\t\tdTableModel.addRow(tempRow);\r\n\t\t\tpo.adicionarOrdem(o);\r\n\t\t}\r\n\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t//DEFINING JTABLE PERFS \r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t// Increase the font size for the cells in the table\r\n\t\ttable.setFont(new Font(\"Serif\", Font.PLAIN, 18));\r\n\r\n\t\t// Increase the size of the cells to allow for bigger fonts\r\n\t\ttable.setRowHeight(table.getRowHeight()+12);\r\n\r\n\t\t//set columns width\r\n\t\ttable.getColumnModel().getColumn(0).setMinWidth(60);\r\n\t\ttable.getColumnModel().getColumn(0).setMaxWidth(80);\r\n\t\ttable.getColumnModel().getColumn(1).setMinWidth(100);\r\n\t\ttable.getColumnModel().getColumn(1).setMaxWidth(120);\r\n\t\ttable.getColumnModel().getColumn(2).setMinWidth(100);\r\n\t\ttable.getColumnModel().getColumn(2).setMaxWidth(120);\r\n\t\ttable.getColumnModel().getColumn(5).setMinWidth(100);\r\n\t\ttable.getColumnModel().getColumn(5).setMaxWidth(120);\r\n\t\ttable.getColumnModel().getColumn(6).setMinWidth(30);\r\n\t\ttable.getColumnModel().getColumn(6).setMaxWidth(60);\r\n\r\n\t\ttable.setShowGrid(true);\r\n\t\tColor color = new Color(200,200,200);\r\n\t\ttable.setGridColor(color);\r\n\r\n\t\t// Allows the user to sort the data\r\n\t\ttable.setAutoCreateRowSorter(true);\r\n\r\n\t\t// Adds the table to a scrollpane\r\n\t\tJScrollPane scrollPane = new JScrollPane(table);\r\n\r\n\t\t// Adds the scrollpane to the frame\r\n\t\tframe.add(scrollPane, BorderLayout.CENTER);\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t//END DEFINING JTABLE PERFS\r\n\r\n\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t//ADDING TO ORDER AND PERSISTENCE\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t// Creates a button that when pressed executes the code\r\n\t\t// in the method actionPerformed \t \r\n\t\tJButton addOrdem = new JButton(\"Adicionar Ordem\");\r\n\r\n\t\taddOrdem.addActionListener(new ActionListener(){\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent e){\r\n\r\n\t\t\t\tString sIDOrdem = \"\", sIDFuncionario = \"\", sIDCliente = \"\", sDescOrigem = \"\",\r\n\t\t\t\t\t\tsDescDestino = \"\", sDataPedido = \"\", sVolume = \"\";\r\n\r\n\t\t\t\t// getText returns the value in the text field\t\t\r\n\t\t\t\tboolean ok = true;\r\n\r\n\t\t\t\tsIDOrdem = tfIDOrdem.getText();\r\n\t\t\t\tif(sIDOrdem.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\t\t\t\t\r\n\t\t\t\tsIDFuncionario = tfIDFuncionario.getText();\r\n\t\t\t\tif(sIDFuncionario.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\t\t\t\t\r\n\t\t\t\tsIDCliente = tfIDCliente.getText();\r\n\t\t\t\tif(sIDCliente.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\t\t\t\t\r\n\t\t\t\tsDescOrigem = tfDescOrigem.getText();\r\n\t\t\t\tif(sDescOrigem.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\r\n\t\t\t\tsDescDestino = tfDescDestino.getText();\r\n\t\t\t\tif(sDescDestino.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\r\n\t\t\t\tsVolume = tfVolume.getText();\r\n\t\t\t\tif(sVolume.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\r\n\t\t\t\tsDataPedido = tfDataPedido.getText();\r\n\t\t\t\tif(sDataPedido.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\r\n\t\t\t\tif(ok){\r\n\t\t\t\t\t// Will convert from string to date\r\n\t\t\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdataPedido = dateFormatter.parse(sDataPedido);\r\n\r\n\t\t\t\t\t\t//Adiciona a ordem ao ArrayList\r\n\t\t\t\t\t\tOrdem o = new Ordem(Integer.parseInt(sIDOrdem), Integer.parseInt(sIDFuncionario),\r\n\t\t\t\t\t\t\t\tInteger.parseInt(sIDCliente), sDescOrigem, sDescDestino,\r\n\t\t\t\t\t\t\t\tdataPedido,Integer.parseInt(sVolume) );\r\n\r\n\t\t\t\t\t\tif (po.adicionarOrdem(o)){\r\n\t\t\t\t\t\t\t//adicionar ordem ao ficheiro ordens.cvs\r\n\t\t\t\t\t\t\tp.addOrdem(o.toString());\r\n\r\n\t\t\t\t\t\t\tObject[] ordem = {sIDOrdem, sIDFuncionario, sIDCliente, sDescOrigem,\r\n\t\t\t\t\t\t\t\t\tsDescDestino, dataPedido, sVolume};\r\n\r\n\t\t\t\t\t\t\tdTableModel.addRow(ordem);\r\n\t\t\t\t\t\t\tnew Popups().showPrice(frame.getSize(), o);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tnew Popups().orderAlreadyExists(frame.getSize());\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} catch (ParseException e1) {\r\n\t\t\t\t\t\t//data invalida\r\n\t\t\t\t\t\tnew Popups().invalidDate(frame.getSize());\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t//e1.printStackTrace();\r\n\t\t\t\t\t} catch (NumberFormatException e1){\r\n\t\t\t\t\t\t//campos numericos invalidos\r\n\t\t\t\t\t\tnew Popups().invalidNumber(frame.getSize());\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t//e1.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//campos vazios\r\n\t\t\t\t\tnew Popups().emptyFields(frame.getSize());\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t});\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t//END ADDING TO ORDER AND PERSISTENCE\r\n\r\n\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t//DEFINING LABELS AND BUTTONS AND ADDING TO JTABLE AND JPANEL\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t// Define values for my labels\r\n\t\tlIDOrdem = new JLabel(\"ID Ordem\");\r\n\t\tlIDFuncionario = new JLabel(\"ID Funcionario\");\r\n\t\tlIDCliente = new JLabel(\"ID Cliente\");\r\n\t\tlDescOrigem = new JLabel(\"Morada de Origem\");\r\n\t\tlDescDestino = new JLabel(\"Morada de Destino\");\r\n\t\tlDataPedido = new JLabel(\"Data\");\r\n\t\tlVolume = new JLabel(\"Volume\");\r\n\r\n\t\t// Define the size of text fields\r\n\t\ttfIDOrdem = new JTextField(2);\r\n\t\ttfIDFuncionario = new JTextField(5);\r\n\t\ttfIDCliente = new JTextField(5);\r\n\t\ttfDescOrigem = new JTextField(10);\r\n\t\ttfDescDestino = new JTextField(10);\r\n\t\ttfVolume = new JTextField(2);\r\n\r\n\t\t// Set default text and size for text field\r\n\t\ttfDataPedido = new JTextField(\"dd-MM-yyyy\", 8);\r\n\r\n\t\t// Create a panel to hold editing buttons and fields\r\n\t\tJPanel inputPanel = new JPanel();\r\n\t\tFont font = new Font(\"Serif\", Font.BOLD, 12);\r\n\t\tFont fontIn = new Font(\"Serif\", Font.PLAIN, 12);\r\n\r\n\t\t// Put components in the panel\r\n\t\tinputPanel.add(lIDOrdem).setFont(font);\r\n\t\tinputPanel.add(tfIDOrdem).setFont(fontIn);\r\n\t\tinputPanel.add(lIDFuncionario).setFont(font);\r\n\t\tinputPanel.add(tfIDFuncionario).setFont(fontIn);\r\n\t\tinputPanel.add(lIDCliente).setFont(font);\r\n\t\tinputPanel.add(tfIDCliente).setFont(fontIn);\r\n\t\tinputPanel.add(lDescOrigem).setFont(font);\r\n\t\tinputPanel.add(tfDescOrigem).setFont(fontIn);\r\n\t\tinputPanel.add(lDescDestino).setFont(font);\r\n\t\tinputPanel.add(tfDescDestino).setFont(fontIn);\r\n\t\tinputPanel.add(lDataPedido).setFont(font);\r\n\t\tinputPanel.add(tfDataPedido).setFont(fontIn);\r\n\t\tinputPanel.add(lVolume).setFont(font);\r\n\t\tinputPanel.add(tfVolume).setFont(fontIn);\r\n\r\n\t\t//buttons for add and remove \r\n\t\tinputPanel.add(addOrdem).setFont(font);\r\n\t\t//inputPanel.add(removeOrdem);\r\n\r\n\r\n\t\t// Add the component panel to the frame\r\n\t\tframe.add(inputPanel, BorderLayout.SOUTH);\r\n\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t//END DEFINING LABELS AND BUTTONS AND ADDING TO JTABLE AND JPANEL\r\n\r\n\r\n\t\tframe.setSize(1200, 600);\r\n\t\tframe.setVisible(true);\r\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"SimpleTableDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n EshopTable newContentPane = new EshopTable();\n newContentPane.addColumn(\"name\", \"toto je hlaviska1\", null, 500);\n newContentPane.addColumn(\"vek\", \"toto je hlaviska2\", \"sortHlav2\", 250);\n newContentPane.markAsVisible();\n\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private void displayTable() throws SQLException {\r\n\t\tframe = new JFrame();\r\n\t\tframe.add(prepareTable(), BorderLayout.CENTER);\r\n\t\tframe.setMinimumSize(new Dimension(880, 0));\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "public void showTable() {\n JTable table = new JTable();\n table.setModel(this);\n JFrame frame = new JFrame(name);\n frame.add(new JScrollPane(table), BorderLayout.CENTER);\n frame.pack();\n frame.setVisible(true);\n frame.setSize(800, 500);\n }", "public void show() {\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < columnCount; j++)\n System.out.printf(\"%9.4f \", data[i][j]);\n System.out.println();\n }\n }", "private void showTableControl()\r\n {\r\n debug(\"showTableControl() \");\r\n int index = tabPane.getSelectedIndex();\r\n JTable table = (JTable) tableVector.elementAt(index);\r\n this.setStatusBar(\"Showing table control panel for table[\" + index + \"]\");\r\n HGTableControlPanel.showTableControlsDialog(frame, table, false);\r\n debug(\"showTableControl() - complete\");\r\n }", "public void searchAndDisplay(Connection con) throws SQLException, NumberFormatException {\r\n //Declare and initialize all the variables\r\n //Get all the data from the fields and edit format with helper method\r\n String strCourseName = SearchHelper.searchHelper(getName());\r\n String strCourseTitle = SearchHelper.searchHelper(getTitle());\r\n String strCourseDepartment = SearchHelper.searchHelper(getDepartment());\r\n int intSID = getSID();\r\n String strSchoolName = SearchHelper.searchHelper(getSchoolName());\r\n\r\n ResultSet rsResults;\r\n JTable jtbResult;\r\n int intWidth;\r\n\r\n if (intSID == 0) {\r\n rsResults = Queries.searchCourse(con, strCourseName, strCourseTitle, strCourseDepartment, strSchoolName);\r\n jtbResult = Queries.ResultSetToJTable(rsResults);\r\n jtbResult.getColumnModel().getColumn(0).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(1).setPreferredWidth(75);\r\n jtbResult.getColumnModel().getColumn(2).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(4).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(5).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(6).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(7).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(8).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(9).setPreferredWidth(150);\r\n jtbResult.getColumnModel().getColumn(10).setPreferredWidth(50);\r\n intWidth = 975;\r\n } else {\r\n rsResults = Queries.searchCourseWithSID(con, strCourseName, strCourseTitle, strCourseDepartment, intSID);\r\n jtbResult = Queries.ResultSetToJTable(rsResults);\r\n jtbResult.getColumnModel().getColumn(0).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(1).setPreferredWidth(75);\r\n jtbResult.getColumnModel().getColumn(2).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(4).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(5).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(6).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(7).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(8).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(9).setPreferredWidth(50);\r\n intWidth = 825;\r\n }\r\n new PopUp(new JScrollPane(jtbResult), \"Results\", intWidth, 300);\r\n }", "void displayReport ()\n {\n\tStatFrame statTable;\n String winTitle = new String (\"Statistical Results Window\");\n\n\tif (use_xml) {\n\t try {\n\t\tVector data = new Vector (); data.add (modelReport);\n\t\tString xmlStr = XMLSerializer.serialize (data);\n\t\tstatTable = new StatFrame (winTitle, xmlStr);\n\t } catch (Exception e) {\n\t\ttrc.tell (\"displayReport\", e.getMessage ());\n\t\te.printStackTrace ();\n\t\treturn;\n\t }\n\t} else {\n statTable = new StatFrame (winTitle, modelReport);\n\t}; // if\n\n statTable.showWin ();\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n tblResult = new javax.swing.JTable();\n\n tblResult.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tblResult);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "public void addTableGui() {\n\t\tDefaultTableModel mTableModel = new DefaultTableModel();\r\n\t\tmTable = new JTable(mTableModel);\r\n\r\n\t\tmTableModel.addColumn(\"MSSV\");\r\n\t\tmTableModel.addColumn(\"HoTen\");\r\n\t\tmTableModel.addColumn(\"GioiTinh\");\r\n\t\tmTableModel.addColumn(\"NTNS\");\r\n\t\tJScrollPane mJScrollPane = new JScrollPane(mTable);\r\n\t\tmJScrollPane.setPreferredSize(new Dimension(760, 310));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.ipady = 40; //make this component tall\r\n\t\tc.weightx = 0.0;\r\n\t\tc.gridwidth = 3;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 1;\r\n\t\tpanel.add(mJScrollPane,c);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Result set functions\");\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Id\", \"Name\", \"Location\", \"DOB\"\n }\n ));\n jScrollPane1.setViewportView(jTable1);\n\n jLabel2.setText(\"ID\");\n\n jLabel3.setText(\"Name\");\n\n jLabel4.setText(\"Location\");\n\n jLabel5.setText(\"DOB\");\n\n jButton1.setText(\"Show\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Search\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Insert\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setText(\"Delete\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton5.setText(\"Clear\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addGap(98, 98, 98)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(129, 129, 129))\n .addGroup(layout.createSequentialGroup()\n .addGap(238, 238, 238)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 185, Short.MAX_VALUE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton4))\n .addGap(33, 33, 33))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(391, 391, 391)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(423, 423, 423)\n .addComponent(jButton5)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(43, 43, 43)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jLabel5)\n .addComponent(jLabel4)\n .addComponent(jLabel3))\n .addGap(39, 39, 39)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 76, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton1)\n .addComponent(jButton3)\n .addComponent(jButton4))\n .addGap(42, 42, 42)\n .addComponent(jButton5)\n .addGap(27, 27, 27))\n );\n\n pack();\n }", "public void View()\n\t{\n\t\tDefaultPieDataset pieDataset = new DefaultPieDataset();\n\t\t\n\t\tfor(String key : result.keySet())\n\t\t{\n\t\t\tpieDataset.setValue(key, Double.parseDouble(result.get(key).toString()));\n\t\t}\n\t\t\n\t\tJFreeChart chart = ChartFactory.createPieChart(title, pieDataset, true, true, true);\n\t\t\n\t\tChartFrame frame = new ChartFrame(\"Pie Chart\", chart);\n\t\t\n\t\tframe.setVisible(true);\n\t\tframe.setSize(450,500);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n tbResult = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(153, 255, 153));\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setTitle(\"Estadistica\");\n setToolTipText(\"\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n tbResult.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n jScrollPane1.setViewportView(tbResult);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, 630, 160));\n\n jLabel1.setFont(new java.awt.Font(\"Castellar\", 2, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 0, 153));\n jLabel1.setText(\"SU RESULTADO OBTENIDO EN CADA NIVEL ES EL SIGUIENTE :\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 120, 700, 20));\n\n jButton1.setBackground(new java.awt.Color(0, 102, 51));\n jButton1.setForeground(new java.awt.Color(0, 102, 153));\n jButton1.setText(\"ACTUALIZAR\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 410, 120, 30));\n\n pack();\n }", "public void showInputs() {\n\t\tCIVLTable tbl_inputTable = (CIVLTable) getComponentByName(\"tbl_inputTable\");\n\t\tDefaultTableModel inputModel = (DefaultTableModel) tbl_inputTable\n\t\t\t\t.getModel();\n\n\t\tif (inputModel.getRowCount() != 0) {\n\t\t\tinputModel.setRowCount(0);\n\t\t\ttbl_inputTable.clearSelection();\n\t\t}\n\n\t\t// GMCSection gmcs = currConfig.getGmcConfig().getAnonymousSection();\n\t\tArrayList<CIVL_Input> inputList = currConfig.getInputs();\n\t\tfor (int i = 0; i < inputList.size(); i++) {\n\t\t\tCIVL_Input input = inputList.get(i);\n\t\t\tinputModel.addRow(new Object[] { input.getName(), input.getType(),\n\t\t\t\t\tinput.getValue(), input.getInitializer() });\n\t\t}\n\n\t}", "public resultview() {\n initComponents();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint N = getN();\n\t\t\t\tint T = getT();\n\t\t\t\t\n\t\t\t\tStopwatch stopwatch = new Stopwatch();\n\t\t\t\tPercolationStats ps = new PercolationStats(N, T);\n\t\t\t\t\n\t\t\t\t// results of running PercolationStats object after passing N and T \n\t\t\t\t// N - size of the Table (N * N)\n\t\t\t\t// T - times object runs the simulation\n\t\t\t\tString runTime= \"\" + stopwatch.elapsedTime(); // gets run Time\n\t\t\t\tString mean = \t\"\" + ps.mean(); // gets Mean - look at Statistics\n\t\t\t\tString stddev = \"\" + ps.stddev(); // gets Standard Deviation\n\t\t\t\tString HiLo = \t\"\" + ps.confidenceLo() + \", \" + ps.confidenceHi(); // gets 95% confidence interval:\n\t\t\t\tResultScreenGUI result = new ResultScreenGUI(mean, stddev, HiLo, runTime);\n\t\t\t\tresult.pack();\n\t\t\t\tresult.setVisible(true);\n\t\t\t}", "public PrintAllRecords() {\n initComponents();\n }", "public void displayPatients() {\n DefaultTableModel dm = new DefaultTableModel(0, 0);\n String header[] = new String[]{\"\", \"Nom:\", \"Prénom:\", \"Dg:\", \"Séance:\", \"Date visit\"};\n dm.setColumnIdentifiers(header);\n jTable1.setModel(dm);\n\n \n \n //set the data in the table =>rows\n\n for (int i = 0; i < patients.size(); i++) {\n Patient patient = patients.get(i);\n\n Vector<Object> data = new Vector<Object>();\n data.add(patient.getId());\n data.add(patient.getNom());\n data.add(patient.getPrenom());\n data.add(patient.getDg());\n data.add(patient.getNombre_seance());\n data.add(patient.getDate_visit());\n dm.addRow(data);\n \n }\n }", "private void initComponents() {\r\n\t\tjScrollPane1 = new javax.swing.JScrollPane();\r\n\t\ttableSessionOutcomes = new javax.swing.JTable();\r\n\r\n\t\tgetContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.X_AXIS));\r\n\r\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tsetTitle(\"Negotiation results\");\r\n\t\ttableSessionOutcomes.setModel(new javax.swing.table.DefaultTableModel(\r\n\t\t\t\tnew Object [][] {\r\n\t\t\t\t\t\t{null, null, null, null},\r\n\t\t\t\t\t\t{null, null, null, null},\r\n\t\t\t\t\t\t{null, null, null, null},\r\n\t\t\t\t\t\t{null, null, null, null}\r\n\t\t\t\t},\r\n\t\t\t\tnew String [] {\r\n\t\t\t\t\t\t\"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\r\n\t\t\t\t}\r\n\t\t));\r\n\t\tjScrollPane1.setViewportView(tableSessionOutcomes);\r\n\r\n\t\tgetContentPane().add(jScrollPane1);\r\n\r\n\t\tpack();\r\n\t}", "private void queryAllMenu()\n\t{\n\t\tclearPanel(getPanel1());\n\t\t\n\t\t//get value from combo boxes into Values\n\t\tsetValue1(getTopics1().getSelectedItem().toString());\t\n\t\tsetValue2(getTopics2().getSelectedItem().toString());\n\t\t\n\t\t//load user values into query1 by calling CrimeQuery and passing the values\n\t\tsetQuery1(new CrimeQuery(getValue1(),getValue2()));\n\t\t\n\t\t//get the table from QueryAll from CrimeQuery class\n\t\tJTable table=getQuery1().QueryAll();\n\t\t\n\t\t//add table with new options\n\t\tJScrollPane scrolltable = new JScrollPane(table);\n\t\tscrolltable.setBounds(500,10,500,500);\n\t\n\t\tgetPanel1().add(scrolltable);\n\t\t\n\t\tgetPanel1().add(getButton2());\n\t\tgetPanel1().add(getButton5());\n\t\tgetPanel1().add(getButton3());\n\t\tgetPanel1().add(getButton6());\n\t\tgetButton3().setBounds(100,10,230,60);\n\t\tgetButton6().setBounds(100,215,230,60);\n\t\tgetButton5().setBounds(100,315,230,60);\n\t\tgetButton2().setBounds(100,410,230,60);\n\t\t\n\t\t\n\t\t\n\t}", "private void mostraResultado() {\n int linha = jTableResultados.getSelectedRow();\n if (linha >= 0) {\n int a = new Integer(\"\" + jTableResultados.getValueAt(linha, 0));\n double c0 = Double.parseDouble(\"\" + jTableResultados.getValueAt(linha, 1));\n double c1 = Double.parseDouble(\"\" + jTableResultados.getValueAt(linha, 2));\n telaSemivariograma.getJTextFieldAlcance().setText(\"\" + a);\n telaSemivariograma.getJTextFieldEfeitoPepita().setText(\"\" + c0);\n telaSemivariograma.getJTextFieldContribuicao().setText(\"\" + c1);\n telaSemivariograma.getJSliderAlcance().setValue(a);\n telaSemivariograma.getJSliderEfeitoPepita().setValue((int) (c0 * 10000));\n telaSemivariograma.getJSliderContribuicao().setValue((int) (c1 * 10000));\n if (telaSemivariograma.isVisible()) {\n telaSemivariograma.setVisible(false);\n }\n telaSemivariograma.setVisible(true);\n }\n }", "private void makeTable() {\n String [] cols = new String[] {\"Planets\", \"Weights (in lbs)\", \"Weights (in kgs)\"};\n model = new DefaultTableModel(result,cols) {\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n };\n table = new JTable(model);\n JScrollPane scrollPane = new JScrollPane(table);\n scrollPane.setPreferredSize(new Dimension(310,155));\n middlePanel.add(scrollPane);\n revalidate();\n repaint();\n }", "public void displayAllPatients() {\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients\";\r\n\t\t\tStatement stm= super.getConnection().createStatement();\r\n\t\t\tResultSet results= stm.executeQuery(query);\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\tString[] row= new String[7];\r\n\t\t\t\trow[0]= results.getInt(1)+\"\";\r\n\t\t\t\trow[1]= results.getString(2);\r\n\t\t\t\trow[2]= results.getString(3);\r\n\t\t\t\trow[3]= results.getString(4);\r\n\t\t\t\trow[4]= results.getString(5);\r\n\t\t\t\trow[5]= results.getInt(6)+\"\";\r\n\t\t\t\tmodelHostory.addRow(row);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}", "private void populateResultsUI(){\n\n totalPayTextView.setText(Double.toString(totalPay));\n totalTipTextView.setText(Double.toString(totalTip));\n totalPerPersonTextView.setText(Double.toString(totalPerPerson));\n }", "@SuppressWarnings(\"unchecked\")\n \n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n txtQuery = new javax.swing.JTextField();\n btnRun = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtResult = new javax.swing.JTextArea();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Query\");\n\n btnRun.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n btnRun.setText(\"Run\");\n btnRun.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRunActionPerformed(evt);\n }\n });\n\n txtResult.setEditable(false);\n txtResult.setColumns(20);\n txtResult.setRows(5);\n jScrollPane1.setViewportView(txtResult);\n\n jLabel2.setText(\"Mai Dang Nhat Anh - ITDSIU19031\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtQuery, javax.swing.GroupLayout.PREFERRED_SIZE, 688, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27)\n .addComponent(btnRun, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel2)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 895, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addComponent(btnRun, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtQuery, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 328, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "private void displayGUI()\n {\n SpringLayout springLayout = new SpringLayout();\n setLayout(springLayout);\n\n displayTextAreas(springLayout);\n displayButtons(springLayout);\n displayLabels(springLayout);\n displayTables(springLayout);\n //displaySelectedQuestion();\n }", "private void showResult() {\n int i = 0;\n matchList.forEach(match -> match.proceed());\n for (Match match : matchList) {\n setTextInlabels(match.showTeamWithResult(), i);\n i++;\n }\n }", "public void echantillon_zone(){\n\n JLabel lbl_Echantillon = new JLabel(\"Offre d'\\u00E9chantillons :\");\n lbl_Echantillon.setBounds(340, 170, 119, 16);\n add(lbl_Echantillon);\n\n // MODEL\n final DefaultTableModel model = new DefaultTableModel();\n final DefaultTableCellRenderer rightRenderer = new DefaultTableCellRenderer();\n rightRenderer.setHorizontalAlignment(JLabel.RIGHT);\n Object[][] o = new Object[sizeVector][2];\n for(int i = 0; i < sizeVector; i++){\n o[i][0] = medicaments.get(i)[0];\n o[i][1] = medicaments.get(i)[1];\n }\n // TABLE DATA\n model.setDataVector(o, new Object[]{\"M\\u00E9dicament\",\"Qt\\u00E9\"});\n\n\n // TABLE\n result_table = new JTable(model);\n result_table.setBounds(475, 170, 200, 150);\n result_table.getColumnModel().getColumn(1).setMaxWidth(40);\n result_table.getColumnModel().getColumn(1).setCellRenderer(rightRenderer);\n result_table.setEnabled(false);\n add(result_table);\n\n\n // SCROLLPANE\n JScrollPane apne= new JScrollPane(result_table);\n apne.setBounds(475, 170, 200, 150);\n add(apne);\n\n\n }", "@Override\n\tpublic void updatePanel() {\n\t\tstatTable.setStatTable(getModel().getRowCount(),\n\t\t\t\tgetModel().getRowNames(), getModel().getColumnCount(),\n\t\t\t\tgetModel().getColumnNames());\n\t\tgetModel().updatePanel();\n\t}", "private void initialize() {\n\t\tfrmExibindoResultadoDa = new JFrame();\n\t\tfrmExibindoResultadoDa.setTitle(\"Exibindo Resultado da Consulta\");\n\t\tfrmExibindoResultadoDa.setBounds(100, 100, 450, 300);\n\t\tfrmExibindoResultadoDa.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tfrmExibindoResultadoDa.getContentPane().add(panel, BorderLayout.NORTH);\n\t\tpanel.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJTextArea textArea = new JTextArea(DEFAULT_QUERY,3,100);\n\t\tpanel.add(textArea);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Enviar Consulta\");\n\t\tbtnNewButton.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpanel.add(btnNewButton, BorderLayout.EAST);\n\t\t\n\t\ttable = new JTable();\n\t\tfrmExibindoResultadoDa.getContentPane().add(table, BorderLayout.CENTER);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tfrmExibindoResultadoDa.getContentPane().add(panel_1, BorderLayout.SOUTH);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Filtro:\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tpanel_1.add(lblNewLabel);\n\t\t\n\t\ttextField = new JTextField();\n\t\tpanel_1.add(textField);\n\t\ttextField.setColumns(23);\n\t\t\n\t\tJButton btnAplicarFiltro = new JButton(\"Aplicar Filtro\");\n\t\tpanel_1.add(btnAplicarFiltro);\n\t}", "public TelaResultado() {\n initComponents();\n jTextFieldResultadoAlcance.setBackground(Color.WHITE);\n jTextFieldResultadoContribuicao.setBackground(Color.WHITE);\n jTextFieldResultadoEfeitoPepita.setBackground(Color.WHITE);\n jTextFieldResultadoFitness.setBackground(Color.WHITE);\n\n jTableResultados.getTableHeader().setReorderingAllowed(false);\n jTableResultadosSessao.getTableHeader().setReorderingAllowed(false);\n cellRenderer.setHorizontalAlignment(SwingConstants.CENTER);\n jTableResultados.getColumnModel().getColumn(0).setPreferredWidth(80);\n jTableResultados.getColumnModel().getColumn(1).setPreferredWidth(80);\n jTableResultados.getColumnModel().getColumn(2).setPreferredWidth(80);\n jTableResultados.getColumnModel().getColumn(3).setPreferredWidth(160);\n jTableResultados.getColumnModel().getColumn(0).setCellRenderer(cellRenderer);\n jTableResultados.getColumnModel().getColumn(1).setCellRenderer(cellRenderer);\n jTableResultados.getColumnModel().getColumn(2).setCellRenderer(cellRenderer);\n jTableResultados.getColumnModel().getColumn(3).setCellRenderer(cellRenderer);\n }", "private void buildElements() {\n JPanel mainPanel = new JPanel(new BorderLayout());\n\n String[] columnNames = {\n \"Id\",\n \"Number of transaction\",\n \"Transaction price\",\n \"Paid type\",\n \"Buyer\",\n \"Amazon SKU\",\n \"Action\",\n };\n\n Object[][] emptyData = {};\n\n providerTableModel = new DefaultTableModel(emptyData, columnNames);\n\n providerTable = new JTable(providerTableModel) {\n public TableCellRenderer getCellRenderer(int row, int column) {\n return new ProviderTableCellRenderer();\n }\n };\n\n providerTable.addMouseListener(new ProviderTableMouseListener());\n\n providerTable.getTableHeader().setReorderingAllowed(false);\n\n /*providerTable.getColumnModel().getColumn(6).setMinWidth(100);\n providerTable.getColumnModel().getColumn(6).setMaxWidth(100);\n providerTable.getColumnModel().getColumn(6).setPreferredWidth(100);*/\n\n // Set rows height for providerTable (for all rows).\n providerTable.setRowHeight(40);\n\n // Set 'Actions' column width. All buttons normally see.\n //TableColumnModel columnModel = providerTable.getColumnModel();\n //columnModel.getColumn(5).setPreferredWidth(120);\n\n JScrollPane tableScrollPane = new JScrollPane(providerTable);\n\n mainPanel.add(tableScrollPane, BorderLayout.CENTER);\n\n this.add(mainPanel);\n }", "public Patient_Record_Output(String[] result)\n\t\t{\n\t\t\tsetLayout(new GridLayout(result.length + 1, 1));\n\n\t\t\tadd(new Centered_Text_Panel(\"Results:\"));\n for(int i = 0; i < result.length; i++)\n {\n add(new JLabel(result[i]));\n }\n\t\t\t\n\t\t}", "public void ShowProductInJTable(){\n ArrayList<Product> list = getProductList();\n \n Object[] row = new Object[5];\n for (int i = 0; i < list.size(); i++) {\n row[0] = list.get(i).getPid();\n row[1] = list.get(i).getPname();\n row[2] = \"Rp. \" + list.get(i).getPprice();\n row[3] = list.get(i).getPstock();\n row[4] = list.get(i).getPcatid();\n \n model1.addRow(row);\n }\n }", "public Patient_Record_Output()\n\t\t{\n\t\t\tadd(new Centered_Text_Panel(\"Results:\"));\n\t\t}", "public ResultBoard() {\n initComponents();\n this.setTitle(\"Result Board\");\n this.setLocationRelativeTo(null);\n \n try{\n Connection con;\n Statement stmt;\n ResultSet rs;\n Class.forName(\"org.apache.derby.jdbc.ClientDriver\");\n con=DriverManager.getConnection(\"jdbc:derby://localhost:1527/C:/Users/Mashuk/.netbeans-derby/QUIZ\",\"quiz\",\"123\");\n stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n \n rs=stmt.executeQuery(\"select profile,correctanswer,wronganswer from APP.MARK\");\n int i = 0;\n String name[] = new String[100];\n int cAns[] = new int[100];\n int wAns[] = new int[100];\n \n while(rs.next()){\n name[i] = rs.getString(1);\n cAns[i] = Integer.parseInt(rs.getString(2));\n wAns[i] = Integer.parseInt(rs.getString(3));\n \n i++;\n }\n \n resultBoard.setText(\" Name\\tCorrect\\tWrong\\n\"\n + \" ------------------ ------------------- ----------------------\\n\");\n \n rs=stmt.executeQuery(\"select quizid from APP.QUIZ\");\n rs.last();\n int sum = Integer.parseInt(rs.getString(1));\n int n = 0;\n while(name[n]!=null){\n String total = \" \"+name[n]+\"\\t\"+cAns[n]+\"\\t\"+wAns[n]+\"\\n\";\n resultBoard.setText(resultBoard.getText()+total);\n n++;\n }\n }\n catch(Exception px)\n {\n// JOptionPane.showMessageDialog(null,px.getMessage());\n }\n }", "public Estadisticas() {\n initComponents();\n \n llenar_tabla();\n setCellRender(tbResult);\n }", "private void fillTableWithLinkResult(List<LinkSimulationResult> results, boolean showAsTimeSerie) {\n\n TableView<LinkSimulationResult> table = new TableView<>();\n table.getItems().addAll(results);\n\n TableColumn<LinkSimulationResult,String> idOrTimeCol;\n TableColumn<LinkSimulationResult,String> flowCol = new TableColumn<>(\"Flow\");\n TableColumn<LinkSimulationResult,String> velocityCol = new TableColumn<>(\"Velocity\");\n TableColumn<LinkSimulationResult,String> headlossCol = new TableColumn<>(\"Headloss\");\n TableColumn<LinkSimulationResult,String> statusCol = new TableColumn<>(\"Status\");\n\n if (!showAsTimeSerie){\n idOrTimeCol = new TableColumn<>(\"Node ID\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getId()));\n } else {\n idOrTimeCol = new TableColumn<>(\"Time\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getTimeString()));\n }\n flowCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getFlow())));\n velocityCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getVelocity())));\n headlossCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getHeadloss())));\n statusCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getStatus().getName()));\n\n table.getColumns().clear();\n table.getColumns().addAll(idOrTimeCol, flowCol, velocityCol, headlossCol, statusCol);\n\n this.tablePane.getChildren().clear(); // remove the previus table\n this.tablePane.getChildren().addAll(table);\n }", "private void fillTableWithNodeResult(List<NodeSimulationResult> results, boolean showAsTimeSerie) {\n TableView<NodeSimulationResult> table = new TableView<>();\n table.getItems().clear();\n table.getItems().addAll(results);\n TableColumn<NodeSimulationResult,String> idOrTimeCol;\n TableColumn<NodeSimulationResult,String> demandCol = new TableColumn<>(\"Demand\");\n TableColumn<NodeSimulationResult,String> headCol = new TableColumn<>(\"Head\");\n TableColumn<NodeSimulationResult,String> pressureCol = new TableColumn<>(\"Pressure\");\n TableColumn<NodeSimulationResult,String> qualityCol = new TableColumn<>(\"Quality\");\n\n if (!showAsTimeSerie){\n idOrTimeCol = new TableColumn<>(\"Node ID\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getId()));\n } else {\n idOrTimeCol = new TableColumn<>(\"Time\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getTimeString()));\n }\n demandCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getDemand())));\n headCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getHead())));\n pressureCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getPressure())));\n qualityCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getQuality())));\n\n table.getColumns().clear();\n table.getColumns().addAll(idOrTimeCol, demandCol, headCol, pressureCol, qualityCol);\n this.tablePane.getChildren().clear(); // remove the previus table\n this.tablePane.getChildren().addAll(table);\n }", "void showAll();", "@Override\n public void show(ResultComponent results) throws TrecEvalOOException {\n System.out.println(\"************************************************\");\n System.out.println(\"*************** Topic \" + topicId + \" output ****************\");\n System.out.println(\"************************************************\");\n\n if (results.getType() == ResultComponent.Type.GENERAL) {\n\n for (ResultComponent runResult : results.getResults()) {\n\n List<Result> resultList = runResult.getResultsByIdTopic(topicId);\n\n System.out.println(\"\\nResults for run: \" + runResult.getRunName());\n if (resultList.isEmpty()) {\n System.out.println(\"No results for topic \" + topicId);\n }\n\n for (Result result : resultList) {\n System.out.print(result.toString());\n }\n }\n }\n }", "private void showResultsTableView(String viewName)\n {\n CardLayout cLayout = (CardLayout) resultsRotatePane.getLayout();\n cLayout.show(resultsRotatePane, viewName);\n }", "public void updateSearchResults(){\n\t\t//removeAll();\n\t\tPrinter currentPrinter;\n\t\tPrinterLabel tableHeader;\n\t\t\n\t\t// Create search results' table header\n\t\ttableHeader = new PrinterLabel(1,MenuWindow.FRAME_WIDTH , MenuWindow.FRAME_HEIGHT,\n\t\t\t\t\"PRINTER\",\"VENDOR\",\"TENSION (ksi)\",\"COMPRESSION (ksi)\",\"IMPACT (lb-ft)\",\"MATERIALS\",\"TOLERANCE (in)\",\"FINISH (\\u00B5in)\", false);\n\n\t\t// Add tool tips for long header categories before adding to GUI\n\t tableHeader.getMaterials().setToolTipText(\"Range of Materials\");\n\t \n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tsetBorder(BorderFactory.createLineBorder(Color.gray));\n\t\tadd(tableHeader);\n\t\ttableHeader.setBackground(Color.lightGray);\n\n\t\t// Populate search results with any printer matches\n\t\tfor(int i = outputList.size()-1; i >=0;i--)\n\t\t{\n\t\t\tcurrentPrinter = outputList.get(i);\n\t\t\tPrinterLabel temp = new PrinterLabel(i+1,MenuWindow.FRAME_WIDTH , MenuWindow.FRAME_HEIGHT,\n\t\t\t\t\tcurrentPrinter.getPrinterName() + \"\",\n\t\t\t\t\tcurrentPrinter.getVendor()+ \"\",\n\t\t\t\t\tcurrentPrinter.getTension()+ \"\",\n\t\t\t\t\tcurrentPrinter.getCompression()+ \"\",\n\t\t\t\t\tcurrentPrinter.getImpact()+ \"\",\n\t\t\t\t\tcurrentPrinter.materialsString()+ \"\",\n\t\t\t\t\tcurrentPrinter.getTolerance()+ \"\",\n\t\t\t\t\tcurrentPrinter.getFinish()+ \"\", true);\n\t\t\ttemp = highlightMatch(temp, currentPrinter);\n\t\t\tadd(temp);\n\t\t}\n\t\tthis.revalidate();\n\t}", "public MostrarDatosJTable() {\n\t\t// Configuracion del JFrame\n\t\tthis.setLayout(null);\n\t\tthis.setSize(340, 260);\n\t\tthis.setTitle(\" Ejemplo de JScrollPane \");\n\t\tconfigurarJScrollPane();\n\t}", "public InformationResultPanel() {\n initComponents();\n }", "public final void showInput(final SimulationVersion result) {\r\n // Eingegebene Investitionen werden angezeigt\r\n verticalPanelInput = new VerticalPanel();\r\n lbResults = new Label(\"Ihre Eingabe: \");\r\n lbResults.setStyleName(\"gwt-Panel-Invest-Inputlabel\");\r\n // Ein neues Panel wird angebracht\r\n absolutePanelYear[stackYear - 1].add(lbResults, 10, 10);\r\n absolutePanelYear[stackYear - 1].add(verticalPanelInput, 10, 34);\r\n verticalPanelInput.setSize(\"154px\", \"18px\");\r\n\r\n // Labels mit den Daten befüllen\r\n lbInvestMarketing = new Label(\"Marketing: \" + result.getMarketing());\r\n lbInvestPersonal = new Label(\"Personal: \" + result.getPersonal());\r\n lbInvestPrice = new Label(\"Produktpreis: \" + result.getPrice());\r\n lbInvestMachineValue = new Label(\"Maschinenwert: \"\r\n + result.getMachineValue());\r\n lbInvestMachinesCapacity = new Label(\"Maschinenkapazit\\u00E4t: \"\r\n + result.getMachineCapacity());\r\n lbInvestMachinePersonal = new Label(\"Maschinenpersonal: \"\r\n + result.getMachineStaff());\r\n\r\n // Labels werden auf dem VerticalPanel angebracht\r\n verticalPanelInput.setSize(\"210px\", \"236px\");\r\n verticalPanelInput.add(lbInvestMarketing);\r\n verticalPanelInput.add(lbInvestPersonal);\r\n verticalPanelInput.add(lbInvestPrice);\r\n verticalPanelInput.add(lbInvestMachineValue);\r\n verticalPanelInput.add(lbInvestMachinesCapacity);\r\n verticalPanelInput.add(lbInvestMachinePersonal);\r\n }", "public void Show_Products_in_jTable()\n {\n ArrayList<Patient> list = getPatientList();\n DefaultTableModel model = (DefaultTableModel) jTablePatient.getModel();\n //Clear jTable;\n model.setRowCount(0);\n Object[] row = new Object[5];\n for(int i=0;i<list.size();i++)\n {\n row[0] = list.get(i).getID();\n row[1] = list.get(i).getName();\n row[2] = list.get(i).getAge();\n row[3] = list.get(i).getContactNumber();\n row[4] = list.get(i).getDoctor();\n \n model.addRow(row);\n }\n }", "public void Display(){\r\n window.setWidth(WIDTH);\r\n window.setHeight(HEIGHT);\r\n window.initModality(Modality.APPLICATION_MODAL);\r\n HBox buttons = new HBox(5);\r\n buttons.getChildren().addAll(select,delete,back);\r\n buttons.setPadding(new Insets(25,15,15,15));\r\n ROOT.setBottom(buttons);\r\n ROOT.setPadding(new Insets(25));\r\n back.setOnAction(e->back(e));\r\n select.setOnAction(e->select(e));\r\n delete.setOnAction(e->delete(e));\r\n window.setScene(new Scene(ROOT));\r\n // Populate the table with info from client list\r\n refresh();\r\n table.getColumns().addAll(cName,cAdd1,cAdd2,cCity,cZip,cCountry,cPhone); \r\n // Set data for column\r\n cName.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\r\n cAdd1.setCellValueFactory(new PropertyValueFactory<>(\"address1\"));\r\n cAdd2.setCellValueFactory(new PropertyValueFactory<>(\"address2\"));\r\n cCity.setCellValueFactory(new PropertyValueFactory<>(\"city\"));\r\n cZip.setCellValueFactory(new PropertyValueFactory<>(\"zip\"));\r\n cCountry.setCellValueFactory(new PropertyValueFactory<>(\"country\"));\r\n cPhone.setCellValueFactory(new PropertyValueFactory<>(\"phone\"));\r\n // Set table factory to allow rows to be clickable\r\n table.setRowFactory(tv ->{\r\n TableRow<Client> row = new TableRow<>();\r\n row.setOnMouseClicked(e ->{\r\n if (!row.isEmpty() && e.getButton() == MouseButton.PRIMARY){\r\n client = row.getItem();\r\n }\r\n });\r\n return row;\r\n });\r\n ROOT.setCenter(table);\r\n window.showAndWait(); \r\n }", "public void showTable(View view){\n EditText name = findViewById(R.id.editNumber);\n String input = name.getText().toString().trim();\n if(input.length() == 0){\n Toast.makeText(this, \"Invalid input!\", Toast.LENGTH_SHORT).show();\n return;\n }\n StringBuffer result = getTable(input);\n display(result);\n }", "private void butViewBorrowersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butViewBorrowersActionPerformed\n CallableStatement cstmt = driver.getCallStatement(\"{CALL viewAllBorrowers()}\");\n\n try {\n ResultSet rs = cstmt.executeQuery();\n\n JTable myTable = new JTable(driver.buildTableModel(rs));\n rs.close();\n cstmt.close();\n\n scrollPane.setViewportView(myTable);\n } catch (SQLException se) {\n driver.errorMessageNormal(\"From LoansPanel.butViewBorrowersAP: \" + se);\n se.printStackTrace();\n }\n\n }", "public void actionPerformed(){\n String query = \"select a.aid, a.name, count(distinct em.medid) as maxMedCount from animal a, vet_examination_animal vea, medication_examination em \" +\n \"where a.aid = vea.aid and vea.eid = em.eid \" +\n \"Group by (a.aid, a.name) \" +\n \"having count(distinct em.medid) = \" +\n \"(select max(medCount) from (\" +\n \"select count(distinct em1.medid) as medCount from animal a1, vet_examination_animal vea1, medication_examination em1 \" +\n \"where a1.aid = vea1.aid and vea1.eid = em1.eid \" +\n \"group by vea1.aid))\";\n try {\n ResultSet res = db.runQuery(query);\n ResultSetMetaData metaData = res.getMetaData();\n\n // get column names\n int numColumns = metaData.getColumnCount();\n Vector<Object> columns = getColumns(numColumns, metaData);\n\n // get row data\n Vector<Vector<Object>> rows = getRows(numColumns, res);\n\n JTable table = new JTable(new DefaultTableModel(rows, columns));\n js.getViewport().setView(table);\n\n } catch (SQLException se) {\n System.out.println(se.getMessage());\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n lab1 = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"查询信息界面\");\n\n jLabel1.setFont(new java.awt.Font(\"华文行楷\", 0, 36)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 51, 51));\n jLabel1.setText(\"查询信息界面\");\n\n jButton1.setText(\"查询不及格人数\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n jButton2.setText(\"查询及格人数\");\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2MouseClicked(evt);\n }\n });\n\n jButton3.setText(\"查询优秀成绩人数\");\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton3MouseClicked(evt);\n }\n });\n\n jButton4.setText(\"按班级成绩排行\");\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton4MouseClicked(evt);\n }\n });\n\n jButton6.setText(\"返回\");\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton6MouseClicked(evt);\n }\n });\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n lab1.setColumns(20);\n lab1.setRows(5);\n jScrollPane1.setViewportView(lab1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(35, 35, 35)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(136, 136, 136)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 274, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 45, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton1)\n .addComponent(jButton3))\n .addGap(59, 59, 59)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton6)\n .addComponent(jButton4))\n .addContainerGap(39, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"SimpleTableDemo\");\n frame.setTitle(titulo);\n frame.setLocationRelativeTo(null);\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n //Create and set up the content pane.\n SimpleTableDemo newContentPane = new SimpleTableDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(this);\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n resultTable = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Open payments\");\n\n resultTable.setModel(tableModel);\n resultTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n resultTableMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(resultTable);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 527, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\" \");\n\t\tframe.setBounds(100, 100, 586, 364);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Total Found\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblNewLabel.setBounds(10, 11, 84, 21);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t lblNo = new JLabel(\"\");\n\t\tlblNo.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblNo.setBounds(104, 14, 23, 14);\n\t\tframe.getContentPane().add(lblNo);\n\t\t\n\t\tlblNewLabel_1 = new JLabel(\"Search By\");\n\t\tlblNewLabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblNewLabel_1.setBounds(149, 14, 76, 18);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t comboBox = new JComboBox();\n\t\tcomboBox.setModel(new DefaultComboBoxModel(new String[] {\"Rice\", \"Grilled\", \"Fast Food\", \"Others\", \"Drinks\"}));\n\t\tcomboBox.setBounds(228, 13, 117, 20);\n\t\tframe.getContentPane().add(comboBox);\n\t\t\n\t\tbtnSearch = new JButton(\"Search\");\n\t\tbtnSearch.setBounds(471, 12, 89, 23);\n\t\tframe.getContentPane().add(btnSearch);\n\t\t\n\t\tscrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(20, 43, 540, 269);\n\t\tframe.getContentPane().add(scrollPane);\n\t\t\n\t\ttable = new JTable();\n table.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n table.getTableHeader().setReorderingAllowed(false);\n\t\tscrollPane.setViewportView(table);\n\t\t\n\n\t btnSearch.setText(\"Search\");\n\t btnSearch.addActionListener(new java.awt.event.ActionListener() {\n\t public void actionPerformed(java.awt.event.ActionEvent evt) {\n\t btnSearchActionPerformed(evt);\n\t }\n\t });\n\n\t \n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n tableResult = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Histórico Parcelas a Liberar\");\n\n tableResult.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Valor\", \"Data Vencimento\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(tableResult);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 333, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "private void refreshTable() {\n dataPanel.getModel().setRowCount(0);\n try {\n ResultSet resultSet = reg.get();\n while (resultSet.next()) {\n dataPanel.getModel().addRow(new Object[]{\n resultSet.getInt(\"id\"),\n resultSet.getString(\"first_name\"),\n resultSet.getString(\"last_name\"),\n resultSet.getString(\"username\"),\n resultSet.getString(\"password\"),\n resultSet.getInt(\"age\"),\n resultSet.getString(\"gender\"),\n });\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "private void mostrar() {\n //DefaultTableModel m = new DefaultTableModel();\n m = new DefaultTableModel(){\n @Override\n public boolean isCellEditable(int row, int column) {\n if (column==6) {\n return true;\n }else{\n return false;\n }\n }\n \n };\n tr = new TableRowSorter(m);\n m.setColumnCount(0);\n m.addColumn(\"Id\");\n m.addColumn(\"Nombre\");\n m.addColumn(\"Apellido\");\n m.addColumn(\"Direccion\");\n m.addColumn(\"Correo\");\n m.addColumn(\"Clave\");\n for (ClienteVO cvo : cdao.consultarTabla()) {\n m.addRow(new Object[]{cvo.getId_cliente(),cvo.getNombre_cliente(),cvo.getApellido_cliente(),cvo.getDireccion_cliente(),cvo.getCorreo_cliente(),cvo.getClave_cliente()});\n }\n vista.tblClientes.setModel(m);\n vista.tblClientes.setRowSorter(tr);\n }", "public void showData(){\n listName.setText(this.listName);\n listDescription.setText(this.description);\n Double Total = Lists.getInstance().getLists(this.listName).getTotal();\n listTotal.setText(pending.toString());\n\n this.data = FXCollections.observableArrayList(Lists.getInstance().getLists(this.listName).getItems());\n articleColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"name\")\n );\n quantityColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"quantity\")\n );\n priceColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"price\")\n );\n totalColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"total\")\n );\n stateColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"state\")\n );\n this.itemsTable.setItems(data);\n\n }", "public void afficherLru() {\n\t\tint nbrCols = listEtape.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<Processus> list: listEtape) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\t\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\n\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtape.size();i++) {\n\t\t\tArrayList<Processus> list = listEtape.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\tProcessus p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + p.getValue());\n\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\n\t}", "public void refreshGUI() {\n try {\n // get all clerk theough the DAO to a tempory List\n List<Clerk> clerkList = clerkDAO.getAllClerk();\n\n // create the model and update the \"table\"\n ClerkTableModel model = new ClerkTableModel(clerkList);\n table.setModel(model);\n\n } catch (Exception exc) {\n JOptionPane.showMessageDialog(ClerkViewer.this, \"Error: \" + exc, \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void showFinalResults(){\r\n\r\n System.out.println(\"Player\\t\\t:\\t\\tPoints\");\r\n for(Player player : this.sortedPlayers){\r\n System.out.println(player.toString());\r\n }\r\n System.out.println();\r\n }", "public void showrecode(){\n try {\n stmt = conn.createStatement();\n String sql = \"SELECT * FROM `student`\";\n ResultSet res = stmt.executeQuery(sql);\n jTable1.setModel(DbUtils.resultSetToTableModel(res));\n \n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n } \n }", "private void populateTable() {\n Collections.sort(this.player.arr, new SortByLevel());\n achievementLabel.setText(player.toString() + \" at \" + new SimpleDateFormat(\"dd/MM/yy HH:mm:ss\").format(new Date()));\n for(int i = 0; i < this.player.arr.size(); i++) {\n Achievement temp = this.player.arr.get(i);\n resultsTable.addRow(new Object[] {temp.getDescription(), temp.getLevel(), temp.getOutOfPossible()});\n }\n }", "private void buildTablePanel() {\n \t\tJPanel panel = new JPanel();\n \t\t\n \t\t// settings:\n \t\theader.setReorderingAllowed(false); // no moving.\n \t\ttable.setColumnSelectionAllowed(true);\n \t\ttable.setRowSelectionAllowed(true);\n \t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n \t\t\n \t\theader.addMouseListener(tableModel.new SortColumnAdapter());\n \t\t\t\n \t\tTableCellRenderer renderer = new TableCellRenderer() {\n \n \t\t\tJLabel label = new JLabel();\n \t\t\t\n \t\t\t@Override\n \t public JComponent getTableCellRendererComponent(JTable table,\n \t Object value, boolean isSelected, boolean hasFocus,\n \t int row, int column) {\n \t \n \t\t\t\tif (table.isRowSelected(row)) {\n \t\t\t\t\tlabel.setBackground(Color.RED);\n \t\t\t\t} else {\n \t\t\t\t\tlabel.setBackground(UIManager.getColor(\"Table.background\"));\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tlabel.setOpaque(true);\n \t\t\t\tlabel.setText(\"\" + value);\n \t\t\t\t\n \t return label;\n \t }\n \n \t };\n \t table.setDefaultRenderer(Object.class, renderer);\n \t \n \t JScrollPane scroll = new JScrollPane(table);\n \t\t\n \t\tpanel.setLayout(new BorderLayout(5, 5));\n \t\tpanel.add(scroll, BorderLayout.CENTER);\n \t \n \t add(panel, BorderLayout.CENTER);\n \t}", "private void initGUI() {\r\n this.setLayout(new RiverLayout());\r\n\r\n /**\r\n * Add the following selectively\r\n */\r\n titledSearchResultsPanel = new Cab2bTitledPanel(\"Search Results :- \" + \"Total results ( \"\r\n + allElements.size() + \" )\");\r\n GradientPaint gp = new GradientPaint(new Point2D.Double(.05d, 0), new Color(185, 211, 238),\r\n new Point2D.Double(.95d, 0), Color.WHITE);\r\n titledSearchResultsPanel.setTitlePainter(new BasicGradientPainter(gp));\r\n titledSearchResultsPanel.setBorder(new EmptyBorder(0, 0, 0, 0));\r\n titledSearchResultsPanel.setTitleFont(new Font(\"SansSerif\", Font.BOLD, 11));\r\n titledSearchResultsPanel.setTitleForeground(Color.BLACK);\r\n\r\n pagination = initPagination(allElements);\r\n\r\n searchResultsPanel = new Cab2bPanel(new BorderLayout(0, 5));\r\n\r\n Cab2bComboBox serviceURLCombo = new Cab2bComboBox(serviceURLComboContents);\r\n serviceURLCombo.setPreferredSize(new Dimension(250, 20));\r\n serviceURLCombo.addActionListener(new ServiceURLSelectionListener());\r\n Cab2bPanel comboContainer = new Cab2bPanel(new RiverLayout(5, 5));\r\n \r\n JLabel jLabel = new JLabel(\"Results From\");\r\n jLabel.setForeground(new Cab2bHyperlink().getUnclickedColor());\r\n \r\n \r\n comboContainer.add(\"left\", jLabel);\r\n comboContainer.add(\"tab\", serviceURLCombo);\r\n\r\n searchResultsPanel.add(BorderLayout.NORTH, comboContainer);\r\n\r\n searchResultsPanel.add(BorderLayout.CENTER, pagination);\r\n initDataListSummaryPanel();\r\n initDataListButtons();\r\n\r\n Cab2bPanel buttonPanel = new Cab2bPanel(new RiverLayout(8, 0));\r\n buttonPanel.add(addToDataListButton);\r\n buttonPanel.add(m_applyAllButton);\r\n searchResultsPanel.add(BorderLayout.SOUTH, buttonPanel);\r\n\r\n m_addSummaryParentPanel = new Cab2bPanel(new BorderLayout());\r\n m_addSummaryParentPanel.add(searchResultsPanel, BorderLayout.CENTER);\r\n m_addSummaryParentPanel.add(myDataListParentPanel, BorderLayout.EAST);\r\n titledSearchResultsPanel.setContentContainer(m_addSummaryParentPanel);\r\n this.add(\"p vfill hfill\", titledSearchResultsPanel);\r\n }", "public void showRowCount()\n {\n // Update the status bar to show the number of matches\n final int totalCount = Codes.getSize();\n final int subCount = subset.getCount();\n \n StringBuilder sb = new StringBuilder(30);\n sb.append(\" Showing \").append(Integer.toString(subCount)).append(\" row\");\n if (subset.getCount() != 1)\n {\n sb.append(\"s\");\n }\n \n if (subCount < totalCount)\n {\n sb.append(\" of \").append(Integer.toString(totalCount));\n }\n \n LogViewer.setStatusBarMessage2(sb.toString());\n }", "public userform() throws SQLException {\n initComponents();\n jComboBox1.setVisible(false);\n jLabel5.setVisible(false);\n jButton1.setEnabled(false);\n jTable1.setAutoCreateRowSorter(true);\n GetData();\n\n }", "public QLDSV() {\n initComponents();\n this.setLocationRelativeTo(null);\n cn = ConnectSQL.ketnoi(\"FPL_DAOTAO\");\n model = (DefaultTableModel) tblShow.getModel();\n loadData();\n display(0);\n tblShow.setRowSelectionInterval(0, 0);\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n usrTable = new javax.swing.JTable();\n retBtn = new javax.swing.JButton();\n\n setPreferredSize(new java.awt.Dimension(472, 341));\n\n usrTable.setModel(new MyTableModel());\n jScrollPane1.setViewportView(usrTable);\n\n retBtn.setText(\"Επιστροφή\");\n retBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n retBtnActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addComponent(retBtn, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 290, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(retBtn)\n .addContainerGap())\n );\n }", "public void repaintToShowAllAccount(){\n\t\tIRBS irbs = new IRBS();\n\t\taccountTable.setModel(irbs.viewAllAccount());\n\t\ttry {\n\t\t\tirbs.getCon().close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\r\n\t\tfrmProjectManagment = new JFrame();\r\n\t\tfrmProjectManagment.getContentPane().setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tfrmProjectManagment.getContentPane().setForeground(Color.WHITE);\r\n\t\tfrmProjectManagment.setForeground(Color.WHITE);\r\n\t\tfrmProjectManagment.setBackground(Color.WHITE);\r\n\t\tfrmProjectManagment.setTitle(\"Project Managment\");\r\n\t\tfrmProjectManagment.setBounds(100, 100, 994, 612);\r\n\t\tfrmProjectManagment.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\r\n\t\tJButton ShowData = new JButton(\"Show Data\");\r\n\t\tShowData.setBounds(41, 172, 166, 37);\r\n\t\tShowData.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tString query =\"SELECT * FROM Project_Managment_DB\";\r\n\t\t\t\t\tPreparedStatement pst = conn.prepareStatement(query);\r\n\t\t\t\t\tResultSet rs = pst.executeQuery();\r\n\t\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e)\r\n\t\t\t\t{\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\tfrmProjectManagment.getContentPane().setLayout(null);\r\n\t\tShowData.setForeground(new Color(128, 0, 0));\r\n\t\tShowData.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tfrmProjectManagment.getContentPane().add(ShowData);\r\n\t\t\r\n\t\tscrollPane = new JScrollPane();\r\n\t\tscrollPane.setBounds(43, 220, 914, 319);\r\n\t\tfrmProjectManagment.getContentPane().add(scrollPane);\r\n\t\t\r\n\t\ttable = new JTable();\r\n\t\ttable.setSurrendersFocusOnKeystroke(true);\r\n\t\ttable.setShowVerticalLines(false);\r\n\t\ttable.setShowHorizontalLines(false);\r\n\t\ttable.setForeground(Color.BLACK);\r\n\t\ttable.setFillsViewportHeight(true);\r\n\t\ttable.setColumnSelectionAllowed(true);\r\n\t\ttable.setCellSelectionEnabled(true);\r\n\t\ttable.setBorder(null);\r\n\t\ttable.setBackground(new Color(253, 245, 230));\r\n\t\tscrollPane.setViewportView(table);\r\n\t\t\r\n\t\tJLabel lblProjectName = new JLabel(\"Project Name\");\r\n\t\tlblProjectName.setBounds(46, 16, 116, 37);\r\n\t\tlblProjectName.setForeground(new Color(128, 0, 0));\r\n\t\tlblProjectName.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblProjectName);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(150, 22, 138, 26);\r\n\t\tfrmProjectManagment.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblTaskName = new JLabel(\"Task Name\");\r\n\t\tlblTaskName.setBounds(46, 49, 116, 37);\r\n\t\tlblTaskName.setForeground(new Color(128, 0, 0));\r\n\t\tlblTaskName.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblTaskName);\r\n\t\t\r\n\t\tJLabel lblDuration = new JLabel(\"Duration\");\r\n\t\tlblDuration.setBounds(392, 52, 116, 37);\r\n\t\tlblDuration.setForeground(new Color(128, 0, 0));\r\n\t\tlblDuration.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblDuration);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setBounds(150, 58, 138, 26);\r\n\t\ttextField_1.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_1);\r\n\t\t\r\n\t\ttextField_2 = new JTextField();\r\n\t\ttextField_2.setBounds(483, 60, 123, 26);\r\n\t\ttextField_2.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_2);\r\n\t\t\r\n\t\tlblStartDate = new JLabel(\"Start Date\");\r\n\t\tlblStartDate.setBounds(392, 16, 116, 37);\r\n\t\tlblStartDate.setForeground(new Color(128, 0, 0));\r\n\t\tlblStartDate.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblStartDate);\r\n\t\t\r\n\t\tlblEndDate = new JLabel(\"End Date\");\r\n\t\tlblEndDate.setBounds(392, 89, 116, 37);\r\n\t\tlblEndDate.setForeground(new Color(128, 0, 0));\r\n\t\tlblEndDate.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblEndDate);\r\n\t\t\r\n\t\ttextField_3 = new JTextField();\r\n\t\ttextField_3.setBounds(483, 22, 123, 26);\r\n\t\ttextField_3.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_3);\r\n\t\t\r\n\t\ttextField_4 = new JTextField();\r\n\t\ttextField_4.setBounds(483, 100, 123, 26);\r\n\t\ttextField_4.setEnabled(false);\r\n\t\ttextField_4.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_4);\r\n\t\t\r\n\t\tlblPhaseName = new JLabel(\"Task ID\");\r\n\t\tlblPhaseName.setBounds(46, 91, 116, 37);\r\n\t\tlblPhaseName.setForeground(new Color(128, 0, 0));\r\n\t\tlblPhaseName.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblPhaseName);\r\n\t\t\r\n\t\ttextField_6 = new JTextField();\r\n\t\ttextField_6.setBounds(150, 97, 138, 26);\r\n\t\ttextField_6.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_6);\r\n\t\t\r\n\t\ttextField_5 = new JTextField();\r\n\t\ttextField_5.setBounds(729, 58, 123, 59);\r\n\t\ttextField_5.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_5);\r\n\t\t\r\n\t\tlblPhaseName_1 = new JLabel(\"Description\");\r\n\t\tlblPhaseName_1.setBounds(639, 52, 116, 37);\r\n\t\tlblPhaseName_1.setForeground(new Color(128, 0, 0));\r\n\t\tlblPhaseName_1.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblPhaseName_1);\r\n\t\t\r\n\t\tJButton btnAddProject = new JButton(\"Add/Save \");\r\n\t\tbtnAddProject.setBounds(234, 172, 166, 37);\r\n\t\tbtnAddProject.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tint x;\r\n\t\t\t\t\tString value= null;\r\n\t\t\t\t\tx=SearchTable();\r\n\t\t\t\t\tboolean Result;\r\n\t\t\t\t\tvalue=textField_6.getText();\r\n\t\t\t\t\t//checkers oc = new checkers();\r\n\t\t\t\t\t//Result = oc.check(value);\r\n\t\t\t\t\t\r\n\t\t\t\t\t try{\r\n\t\t\t\t\t Integer.parseInt(value);\r\n\t\t\t\t\t Result =true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t catch (Exception e2){\r\n\t\t\t\t\t Result =false;\r\n\t\t\t\t\t}String value5=textField_2.getText();\r\n\t\t\t\t\tboolean resultA =isDigit(value5);\r\n\t\t\t\t\tif((Result== true)&&(resultA==true)){\r\n\t\t\t\t\tif(x!=1)\r\n\t\t\t\t\t{String query =\"INSERT INTO Project_Managment_DB (ProjectName,TaskName,Duration,StartDate,EndDate,Description,TaskID,PreTask) VALUES (?,?,?,?,?,?,?,?)\";\r\n\t\t\t\t\tPreparedStatement pst = conn.prepareStatement(query);\r\n\t\t\t\t\tString value1=EndDateValue();\r\n\t\t\t\t\tString result =textField_4.getText();\r\n\t\t\t\t\tboolean value2 = isInteger(result);\r\n\t\t\t\t\tif((value1!=\"\"||value1!=\"0\")&& value2==true)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttextField_4.setText(value1);\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(value1==\"\"||value1==\"0\"){textField_4.setText(null); textField_2.setText(null);}\r\n\t\t\t\t\tpst.setString(1, textField.getText());\r\n\t\t\t\t\tpst.setString(2, textField_1.getText());\r\n\t\t\t\t\tpst.setString(3, textField_2.getText());\r\n\t\t\t\t\tpst.setString(4, textField_3.getText());\r\n\t\t\t\t\tpst.setString(5, textField_4.getText());\r\n\t\t\t\t\tpst.setString(6, textField_5.getText());\r\n\t\t\t\t\tpst.setString(7, textField_6.getText());\r\n\t\t\t\t\tpst.setString(8, textField_8.getText());\r\n\t\t\t\t\t//ResultSet rs = pst.executeQuery();\r\n\t\t\t\t\tpst.execute();\r\n\t\t\t\t\tpst.close();\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Data Saved\");\r\n\t\t\t\t\trefreshTable();}\r\n\t\t\t\t\telse \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"This data is entered before.\");\r\n\t\t\t\t\t}\r\n\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\tJOptionPane.showMessageDialog(null,\"There is sth wrong in the values entered pls re-check it.\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\tcatch(Exception e1)\r\n\t\t\t\t{\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\tbtnAddProject.setForeground(new Color(128, 0, 0));\r\n\t\tbtnAddProject.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tfrmProjectManagment.getContentPane().add(btnAddProject);\r\n\t\t\r\n\t\tJButton btnDelete = new JButton(\"Delete\");\r\n\t\tbtnDelete.setBounds(431, 172, 166, 37);\r\n\t\tbtnDelete.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tint x;\r\n\t\t\t\t\tx= SearchTable();\r\n\t\t\t\t\tString value = null;\r\n\t\t\t\t\tboolean Result;\r\n\t\t\t\t\tvalue=textField_6.getText();\r\n\t\t\t\t\t//checkers oc = new checkers();\r\n\t\t\t\t\t//Result = oc.check(value);\r\n\t\t\t\t\t//boolean XA;\r\n\t\t\t\t\t//JOptionPane.showMessageDialog(null,Result);\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t Integer.parseInt(value);\r\n\t\t\t\t\t Result= true;}\r\n\t\t\t\t\tcatch (Exception e2){\r\n\t\t\t\t\t Result =false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(Result==true){\r\n\t\t\t\t\tif(x!=0){String query =\"DELETE FROM Project_Managment_DB WHERE TaskID='\"+textField_6.getText()+\"'\";\r\n\t\t\t\t\tPreparedStatement pst = conn.prepareStatement(query);\r\n\t\t\t\t\t//ResultSet rs = pst.executeQuery();\r\n\t\t\t\t\tpst.execute();\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Data Deleted\");\r\n\t\t\t\t\t//JOptionPane.showMessageDialog(null,value);\r\n\t\t\t\t\t\r\n\t\t\t\t\trefreshTable();\r\n\t\t\t\t\tpst.close();}\r\n\t\t\t\t\telse{JOptionPane.showMessageDialog(null,\"Data is invalied\");}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{JOptionPane.showMessageDialog(null,\" TaskID entered contains characters or Null.\");}\r\n\t\t\t\t\t}\r\n \r\n\t\t\t\tcatch(Exception e1)\r\n\t\t\t\t{\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\tbtnDelete.setForeground(new Color(128, 0, 0));\r\n\t\tbtnDelete.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tfrmProjectManagment.getContentPane().add(btnDelete);\r\n\t\t\r\n\t\tbtnUpdate = new JButton(\"Update\");\r\n\t\tbtnUpdate.setBounds(623, 172, 166, 37);\r\n\t\tbtnUpdate.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tint x;\r\n\t\t\t\t\tx=SearchTable();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(x==1){\r\n\t\t\t\t\tString query=null;\r\n\t\t\t\t\tString query1=null;\r\n\t\t\t\t\tString query2=null;\r\n\t\t\t\t\tString query3=null;\r\n\t\t\t\t\tString query4=null;\r\n\t\t\t\t\tString query5=null;\r\n\t\t\t\t\tString query6=null;\r\n\t\t\t\t\tString query7=null;\r\n\t\t\t\t\tString query8=null;\r\n\t\t\t\t\tif(!textField.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tquery =\" Update Project_Managment_DB set ProjectName='\"+textField.getText()+\"' where TaskID='\"+textField_6.getText()+\"';\";\r\n\t\t\t\t\t\tPreparedStatement pst= conn.prepareStatement(query);\r\n\t\t\t\t\t\tpst.execute();\r\n\t\t\t\t\t\tpst.close();\r\n\t\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\tif(!textField_1.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tquery1 =\" Update Project_Managment_DB set TaskName='\"+textField_1.getText()+\"' where TaskID='\"+textField_6.getText()+\"';\";\r\n\t\t\t\t\t\tPreparedStatement pst1= conn.prepareStatement(query1);\r\n\t\t\t\t\t\tpst1.executeUpdate();\r\n\t\t\t\t\t\tpst1.close();\r\n\t\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\tif(!textField_2.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tquery2 =\" Update Project_Managment_DB set Duration='\"+textField_2.getText()+\"' where TaskID='\"+textField_6.getText()+\"'; \";\r\n\t\t\t\t\t\tPreparedStatement pst2= conn.prepareStatement(query2);\r\n\t\t\t\t\t\tpst2.execute();\r\n\t\t\t\t\t\tpst2.close();\r\n\t\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\tif(!textField_3.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t query3 =\" Update Project_Managment_DB set StartDate='\"+textField_3.getText()+\"' where TaskID='\"+textField_6.getText()+\"' \";\r\n\t\t\t\t\t PreparedStatement pst3= conn.prepareStatement(query3);\r\n\t\t\t\t\t\tpst3.execute();\r\n\t\t\t\t\t\tpst3.close();\r\n\t\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\tif(!textField_4.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t query4 =\" Update Project_Managment_DB set EndDate='\"+textField_4.getText()+\"' where TaskID='\"+textField_6.getText()+\"' \";\r\n\t\t\t\t\t PreparedStatement pst4= conn.prepareStatement(query4);\r\n\t\t\t\t\t\tpst4.execute();\r\n\t\t\t\t\t\tpst4.close();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!textField_5.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tquery5 =\" Update Project_Managment_DB set Description='\"+textField_5.getText()+\"' where TaskID='\"+textField_6.getText()+\"'\";\r\n\t\t\t\t\t\tPreparedStatement pst5= conn.prepareStatement(query5);\r\n\t\t\t\t\t\tpst5.execute();\r\n\t\t\t\t\t\tpst5.close();\r\n\t\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\tif(!textField_6.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t query6 =\" Update Project_Managment_DB set TaskID='\"+textField_6.getText()+\"' where TaskID='\"+textField_6.getText()+\"'\";\r\n\t\t\t\t PreparedStatement pst6= conn.prepareStatement(query6);\r\n\t\t\t\t\t\tpst6.execute();\r\n\t\t\t\t\t\tpst6.close();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!textField_8.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t query8 =\" Update Project_Managment_DB set PreTask='\"+textField_8.getText()+\"' where TaskID='\"+textField_6.getText()+\"' \\n \";\r\n\t\t\t\t\t PreparedStatement pst8= conn.prepareStatement(query8);\r\n\t\t\t\t\t\tpst8.execute();\r\n\t\t\t\t\t\tpst8.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Data Updated\");\r\n\t\t\t\t\trefreshTable();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{JOptionPane.showMessageDialog(null,\"This Task ID is invalied\");}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e1)\r\n\t\t\t\t{\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnUpdate.setForeground(new Color(128, 0, 0));\r\n\t\tbtnUpdate.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tfrmProjectManagment.getContentPane().add(btnUpdate);\r\n\t\t\r\n\t\tlblPrePhase = new JLabel(\"Pre Task\");\r\n\t\tlblPrePhase.setBounds(639, 16, 116, 37);\r\n\t\tlblPrePhase.setForeground(new Color(128, 0, 0));\r\n\t\tlblPrePhase.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblPrePhase);\r\n\t\t\r\n\t\ttextField_8 = new JTextField();\r\n\t\ttextField_8.setBounds(729, 22, 123, 26);\r\n\t\ttextField_8.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_8);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\" *P.S:Only TaskID needed in search or delete the data.\");\r\n\t\tlblNewLabel.setBounds(41, 132, 565, 29);\r\n\t\tlblNewLabel.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tlblNewLabel.setForeground(new Color(128, 0, 0));\r\n\t\tfrmProjectManagment.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\t\r\n\t\tJButton SearchData = new JButton(\"Search on Data\");\r\n\t\tSearchData.setBounds(808, 172, 166, 37);\r\n\t\tSearchData.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tint x;\r\n\t\t\t\t\tx=SearchTable();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(x==1){\r\n\t\t\t\t\tString query =\"SELECT * FROM Project_Managment_DB where TaskID='\"+textField_6.getText()+\"'\";\r\n\t\t\t\t\tPreparedStatement pst = conn.prepareStatement(query);\r\n\t\t\t\t\tResultSet rs = pst.executeQuery();\r\n\t\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{JOptionPane.showMessageDialog(null,\"This Task ID is invalied\");}\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e)\r\n\t\t\t\t{\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\tSearchData.setForeground(new Color(128, 0, 0));\r\n\t\tSearchData.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tfrmProjectManagment.getContentPane().add(SearchData);\r\n\t\t\r\n\t\tJButton btnResources = new JButton(\"Resources\");\r\n\t\tbtnResources.setBounds(623, 128, 166, 33);\r\n\t\tbtnResources.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tResources R=new Resources();\r\n\t\t\t\tR.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnResources.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tbtnResources.setForeground(new Color(128, 0, 0));\r\n\t\tfrmProjectManagment.getContentPane().add(btnResources);\r\n\t}", "public void fillResultsBox(){\n\n //reset the text box and add the header\n resultList.setText(\"\");\n resultList.append(\"Item \\t Win \\t Loss \\t Tie \\n\");\n\n //generate a list of ranked results for the current user\n generateResultsList();\n\n //for each item in the unranked item list, print the highest ranked item and remove it from the ranked item list\n for (TestItem testItem: testItems){\n printAndDeleteHighestItem();\n }\n }", "public void displaySearchQueryResult(ResultSet result) {\n try {\n // if there are no result\n if (!result.isBeforeFirst()) {\n displayNotificationMessage(\"No Result Found.\");\n resultPane.setContent(new GridPane());\n return;\n }\n\n // clear the userMessage area\n userMessage.setText(\"\");\n resultPane.setContent(createSearchResultArea(result));\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"Statistic\");\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 500, 350);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tdmodel = new DefaultTableModel();\n\t\tinitTable(dmodel);\n\n\t\ttable = new JTable();\n\t\ttable.setModel(dmodel);\n\t\ttable.getColumnModel().getColumn(3).setPreferredWidth(200);\n\n\t\tscrollPane = new JScrollPane(table);\n\t\tscrollPane.setBounds(27, 105, 438, 164);\n\t\tframe.getContentPane().add(scrollPane);\n\n\t\tlblStatistic = new JLabel(\"Statistic\");\n\t\tlblStatistic.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 22));\n\t\tlblStatistic.setBounds(207, 6, 88, 42);\n\t\tframe.getContentPane().add(lblStatistic);\n\n\t\tlblRevenueAtDate = new JLabel(\"Revenue at date\");\n\t\tlblRevenueAtDate.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 18));\n\t\tlblRevenueAtDate.setBounds(27, 77, 147, 16);\n\t\tframe.getContentPane().add(lblRevenueAtDate);\n\n\t\ttxtDate = new JTextField();\n\t\ttxtDate.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 18));\n\t\ttxtDate.setBounds(186, 73, 129, 20);\n\t\tframe.getContentPane().add(txtDate);\n\t\ttxtDate.setColumns(20);\n\n\t\tbtnSelectDate = new JButton(\"...\");\n\t\tbtnSelectDate.setBounds(327, 70, 27, 23);\n\t\tbtnSelectDate.addActionListener((e) -> {\n\t\t\tjframe = new JFrame();\n\t\t\ttxtDate.setText(new DatePickerUI(jframe).setPickedDate());\n\t\t\tdisplayStatistic(ProductsSales.getInstance());\n\t\t});\n\t\tframe.getContentPane().add(btnSelectDate);\n\n\t\tlblTotal = new JLabel(\"Total\");\n\t\tlblTotal.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 25));\n\t\tlblTotal.setBounds(51, 281, 71, 34);\n\t\tframe.getContentPane().add(lblTotal);\n\n\t\tlabelShowTotal = new JLabel(\"0.00\");\n\t\tlabelShowTotal.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 25));\n\t\tlabelShowTotal.setBounds(148, 281, 206, 30);\n\t\tlabelShowTotal.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tframe.getContentPane().add(labelShowTotal);\n\n\t\tbtnClose = new JButton(\"Close\");\n\t\tbtnClose.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 25));\n\t\tbtnClose.setBounds(366, 281, 99, 34);\n\t\tbtnClose.addActionListener((e) -> {\n\t\t\tclose();\n\t\t});\n\t\tframe.getContentPane().add(btnClose);\n\t}" ]
[ "0.7071775", "0.7043903", "0.6920581", "0.6908832", "0.6863246", "0.68102896", "0.6796053", "0.6768041", "0.66385806", "0.66379046", "0.6624407", "0.6608986", "0.65936023", "0.65766364", "0.6573942", "0.6559252", "0.65425074", "0.6507295", "0.64986306", "0.6492511", "0.6472293", "0.6454097", "0.6442895", "0.64370024", "0.6435678", "0.63631326", "0.63594043", "0.63562363", "0.6355455", "0.63402325", "0.6328972", "0.63239056", "0.6317295", "0.6311313", "0.6296204", "0.62913513", "0.6289026", "0.62802684", "0.6270977", "0.6266863", "0.6252707", "0.6248495", "0.6244599", "0.62215453", "0.62193125", "0.6216249", "0.6213975", "0.62123364", "0.61998445", "0.6188473", "0.61790854", "0.6177278", "0.6158511", "0.61506313", "0.6148662", "0.6143603", "0.6142657", "0.6140363", "0.6138974", "0.6128157", "0.61272806", "0.6106329", "0.6083249", "0.6080444", "0.60796034", "0.6077845", "0.60751915", "0.60730165", "0.6072824", "0.60615057", "0.6059297", "0.60573137", "0.6041235", "0.602892", "0.60121226", "0.6008165", "0.6003738", "0.5997077", "0.5996567", "0.59943205", "0.5992722", "0.59876895", "0.5984474", "0.59643745", "0.59624135", "0.5960888", "0.5957477", "0.59573984", "0.59530705", "0.5944483", "0.592272", "0.5918814", "0.5916205", "0.59133023", "0.5910799", "0.58921415", "0.5889197", "0.58879846", "0.58859926", "0.5884786", "0.5883391" ]
0.0
-1
Show the results in the GUI table in the panel.
public int displayResults(ResultSet rs, boolean bestLayout) throws SQLException { return displayResults("", rs, bestLayout); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void finalDisplay2()\n\t{\n\t\tString s1=null;\n\t\tint sum=0;\n\t\tint j;\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tj=rowLabel[i];\t\t\t\n\t\t\tsum+=temp[i][j];\t\n\t\t}\n\t\ts1=\"There are multiple solutions with the cost of \"+sum;\n\t\tJTable t = new JTable();\n testTableMultiple(t,(2*noOfPeople)+2);\n JScrollPane scrollPane = new JScrollPane(t); \n JOptionPane.showMessageDialog(null,scrollPane, s1, JOptionPane.INFORMATION_MESSAGE);\n\t}", "public void showResults(){\n customerCount = simulation.getCustomerCount();\n phoneCount = simulation.getPhoneCount();\n doorCount = simulation.getDoorCount();\n unhelpedCount = simulation.getUnhelped();\n totalCus.setText(\"Total number of Customers: \"+customerCount+\"\\t\\t\");\n doorCus.setText(\"Number of Door Customers: \"+doorCount+\"\\t\\t\");\n phoneCus.setText(\"Number of Phone Customers: \"+phoneCount+\"\\t\\t\");\n unhelped.setText(\"Number of Customers left unhelped at the end: \"+unhelpedCount);\n }", "public void finalDisplay()\n\t{\n\t\tString s1=null;\n\t\tif(!yes)\n\t\t{\n\t\t\tint sum=0;\n\t\t\tint j;\n\t\t\tSystem.out.println(\"Final Display algo1\");\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tj=rowLabel[i];\t\t\t\n\t\t\t\tSystem.out.println(j);\n\t\t\t\tsum+=temp[i][j];\t\n\t\t\t}\n\t\t\ts1=\"Total Cost is: \"+sum;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint sum=0;\n\t\t\tSystem.out.println(\"Final Display algo2\");\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(matrix[i][j]==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum+=temp[i][j];\n\t\t\t\t\t\trowLabel[i]=j;\n\t\t\t\t\t\tSystem.out.println(rowLabel[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ts1=\"Total Cost is: \"+sum;\n\t\t}\n\t\t\n\t\tJTable t = new JTable();\n testTable(t,noOfPeople+1);\n JScrollPane scrollPane = new JScrollPane(t); \n JOptionPane.showMessageDialog(null,scrollPane, s1, JOptionPane.INFORMATION_MESSAGE);\n\t}", "public void showListData() {\n List<Operator> operators = operatorService.queryAll();\n String[][] datas = new String[operators.size()][8];\n for (int i = 0; i < datas.length; i++) {\n datas[i][0] = operators.get(i).getId().toString();\n datas[i][1] = operators.get(i).getName();\n datas[i][2] = operators.get(i).getSex();\n datas[i][3] = operators.get(i).getAge().toString();\n datas[i][4] = operators.get(i).getIdentityCard();\n datas[i][5] = operators.get(i).getWorkDate().toString();\n datas[i][6] = operators.get(i).getTel();\n datas[i][7] = operators.get(i).getAdmin().toString();\n }\n operatorManagetable.setModel(new DefaultTableModel(\n datas, new String[]{\"编号\", \"用户名\", \"性别\", \"年龄\", \"证件号\", \"工作时间\", \"电话号码\", \"是否为管理员\"}\n ));\n scrollPane1.setViewportView(operatorManagetable);\n }", "private void showData(String query) {\n try {\n ResultSet rs = DB.search(query);\n tbl.setRowCount(0);\n while (rs.next()) {\n Vector v = new Vector();\n v.add(rs.getString(1)); //inv id\n v.add(rs.getString(6)); //cus name\n v.add(rs.getString(2)); //date\n v.add(rs.getString(3)); //time\n v.add(rs.getString(10)); //price\n v.add(rs.getString(11)); //discount\n v.add(rs.getString(12)); //total\n v.add(rs.getString(13)); //pay method\n tbl.addRow(v);\n }\n //Calculating the total value of invoices\n double total = 0d;\n for (int row = 0; row < tbl.getRowCount(); row++) {\n total = total + Double.parseDouble(tbl.getValueAt(row, 4).toString());\n }\n lbAllValue.setText(String.valueOf(total));\n lbNoofnvs.setText(String.valueOf(tbl.getRowCount()));\n setCOLORSTB(jTable1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void displayAllTable() {\n\n nhacungcap = new NhaCungCap();\n nhacungcap.setVisible(true);\n jDestopTable.add(nhacungcap);\n\n thuoc = new SanPham();\n thuoc.setVisible(true);\n jDestopTable.add(thuoc);\n\n khachHang = new KhachHang();\n khachHang.setVisible(true);\n jDestopTable.add(khachHang);\n\n hoaDon = new HoaDon();\n hoaDon.setVisible(true);\n jDestopTable.add(hoaDon);\n\n }", "public static void show() \r\n\t{\r\n\t\tJPanel panel = Window.getCleanContentPane();\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBackground(SystemColor.inactiveCaption);\r\n\t\tpanel_1.setBounds(-11, 0, 795, 36);\r\n\t\tpanel.add(panel_1);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Over Surgery System\");\r\n\t\tpanel_1.add(lblNewLabel);\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\t\r\n\t\tJTable table = new JTable();\r\n\t\ttable.setBounds(25, 130, 726, 120);\r\n\t\tpanel.add(table);\r\n\t\t\r\n\t\tJLabel lblNewLabel1 = new JLabel(\"General Practictioner ID:\");\r\n\t\tlblNewLabel1.setBounds(25, 73, 145, 34);\r\n\t\tpanel.add(lblNewLabel1);\r\n\t\t\r\n\t\tJTextField textField = new JTextField();\r\n\t\ttextField.setBounds(218, 77, 172, 27);\r\n\t\tpanel.add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Ok\");\r\n\t\tbtnNewButton.setBounds(440, 79, 57, 23);\r\n\t\tpanel.add(btnNewButton);\r\n\t\t\r\n\t\tJLabel lblNurseAvability = new JLabel(\"Nurse ID:\");\r\n\t\tlblNurseAvability.setBounds(25, 326, 112, 14);\r\n\t\tpanel.add(lblNurseAvability);\r\n\t\t\r\n\t\tJTextField textField_1 = new JTextField();\r\n\t\ttextField_1.setColumns(10);\r\n\t\ttextField_1.setBounds(233, 326, 172, 27);\r\n\t\tpanel.add(textField_1);\r\n\t\t\r\n\t\t\r\n\t\tJButton button = new JButton(\"Ok\");\r\n\t\tbutton.setBounds(440, 328, 57, 23);\r\n\t\tpanel.add(button);\r\n\t\t\r\n\t\tJTable table_1 = new JTable();\r\n\t\ttable_1.setBounds(25, 388, 726, 120);\r\n\t\tpanel.add(table_1);\r\n\t}", "private void helperDisplayResults ()\r\n\t{\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\t//---- Check if the project is empty or not\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tint indexImage = mainFormLink.getComponentPanelLeft().getComponentComboboxFileName().getSelectedIndex();\r\n\r\n\t\t\t\tif (indexImage >= 0 && indexImage < tableSize)\r\n\t\t\t\t{\r\n\r\n\t\t\t\t\tint samplesCount = DataController.getTable().getElement(indexImage).getChannelCount();\r\n\r\n\t\t\t\t\tfor (int i = 0; i < Math.min(samplesCount, FormMainPanelRight.TABLE_SIZE); i++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//---- ABSOLUTE --------------------------------------------\r\n\r\n\t\t\t\t\t\t//---- Count\r\n\t\t\t\t\t\tint featureCount = DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getAbsoluteCellCount();\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureCount, 0, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Length\r\n\t\t\t\t\t\tdouble featureLength = (double) Math.round(DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getAbsoluteCellLengthMean() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureLength, 1, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Pixel density\r\n\t\t\t\t\t\tdouble featurePixelDensity = (double) Math.round (DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getAbsolutePixelDensity() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featurePixelDensity, 2, i + 1);\r\n\r\n\t\t\t\t\t\t//---- RELATIVE --------------------------------------------\r\n\r\n\t\t\t\t\t\t//---- Count\r\n\t\t\t\t\t\tdouble featureCountR = (double) Math.round(DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getRelativeCellCount() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureCountR, 3, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Length\r\n\t\t\t\t\t\tdouble featureLengthR = (double) Math.round(DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getRelativeCellLengthMean() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featureLengthR, 4, i + 1);\r\n\r\n\t\t\t\t\t\t//---- Pixel density\r\n\t\t\t\t\t\tdouble featurePixelDensityR = (double) Math.round (DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getFeatureVector().getRelativeCellPixelDensity() * 1000) / 1000;\r\n\t\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(featurePixelDensityR, 5, i + 1);\r\n\r\n\t\t\t\t\t\t//---- SENSETIVITY\r\n\t\t\t\t\t\tSensitivity sampleSensitivity = DataController.getTable().getElement(indexImage).getDataDevice().getChannel(i).getSensitivity();\r\n\r\n\t\t\t\t\t\tswitch (sampleSensitivity)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase RESISTANT: mainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"R\", 6, i + 1); break;\r\n\t\t\t\t\t\tcase SENSITIVE: mainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"S\", 6, i + 1); break;\r\n\t\t\t\t\t\tcase UNKNOWN: mainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"U\", 6, i + 1); break;\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\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tfor (int i = 0; i < FormMainPanelRight.TABLE_SIZE; i++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//---- ABSOLUTE\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 0, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 1, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 2, i + 1);\r\n\r\n\t\t\t\t\t//---- RELATIVE\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 3, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 4, i + 1);\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 5, i + 1);\r\n\r\n\t\t\t\t\t//---- SENSETIVITY\r\n\t\t\t\t\tmainFormLink.getComponentPanelRight().getComponentTableFeatures().setValueAt(\"\", 6, i + 1);\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\t\t\t}\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}", "private void querySumMenu()\n\t{\n\t\tclearPanel(getPanel1());\n\t\t\n\t\tJLabel label1=new JLabel(\"This is the total numbers\\nFor:\"+getValue1()+\"and\"+getValue2());\n\t\t\n\t\t//get table from sumQuery and put it in table\n\t\tJTable table=getQuery1().sumQuery(); \n\t\t\n\t\tJScrollPane scrolltable = new JScrollPane(table);\n\t\tlabel1.setBounds(100,10,400,40);\n\t\tscrolltable.setBounds(500,10,500,500);\n\t\tgetPanel1().add(scrolltable);\n\t\tgetPanel1().add(getButton3());\n\t\tgetPanel1().add(getButton4());\n\t\tgetButton3().setBounds(260,10,180,60);\n\t\tgetButton4().setBounds(80,10,180,60);\n\t}", "public void show() {\n if(heading.isEmpty()) {\r\n System.out.println(\"Error:Table:show:no data in heading, nothing to show\");\r\n return;\r\n }\r\n if(rows.isEmpty()) {\r\n System.out.println(\"Error:Table:show:no data in rows, nothing to show\");\r\n return;\r\n }\r\n for(String h : heading) {\r\n System.out.print(h + \" | \");\r\n }\r\n System.out.println(\"\");\r\n Set<String> keys = rows.keySet();\r\n for(String k : keys) {\r\n rows.get(k).show();\r\n System.out.println(\"\");\r\n }\r\n System.out.println(\"\");\r\n }", "public InformationResultPanel(GenericResult result) {\n this();\n fieldsNotToDisplay.add(\"id\");\n fieldsNotToDisplay.add(\"the_geom\");\n this.tblResult.removeAll();\n DefaultTableModel tableModel = new DefaultTableModel();\n List<Integer> indexListToShow = new ArrayList<Integer>();\n\n //Add columns\n for (Integer fieldInd = 0; fieldInd < result.getFieldNames().size(); fieldInd++) {\n String fieldName = result.getFieldNames().get(fieldInd);\n if (fieldsNotToDisplay.contains(fieldName)) {\n continue;\n }\n tableModel.addColumn(fieldName);\n indexListToShow.add(fieldInd);\n }\n\n //Add values\n for (Object row : result.getValues()) {\n StringArray rowAsArray = (StringArray) row;\n String[] rowToAdd = new String[indexListToShow.size()];\n for (Integer fieldIndIndex = 0; \n fieldIndIndex < indexListToShow.size(); fieldIndIndex++) {\n rowToAdd[fieldIndIndex] = \n rowAsArray.getItem().get(indexListToShow.get(fieldIndIndex));\n }\n tableModel.addRow(rowToAdd);\n }\n this.tblResult.setModel(tableModel);\n }", "public void finalDisplay1()\n\t{\n\t\tString s1=null;\n\t\tif(!yes)\n\t\t{\n\t\t\tint sum=0;\n\t\t\tint j;\n\t\t\tSystem.out.println(\"Final Display1 algo1\");\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tj=rowLabel[i];\t\t\t\n\t\t\t\tsum+=temp[i][j];\t\n\t\t\t\tSystem.out.println(j);\n\t\t\t}\n\t\t\ts1=\"Total Cost is: \"+sum;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint sum=0;\n\t\t\tSystem.out.println(\"Final Display algo2\");\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(matrix[i][j]==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum+=temp[i][j];\n\t\t\t\t\t\trowLabel[i]=j;\n\t\t\t\t\t\tSystem.out.println(rowLabel[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ts1=\"Total Cost is: \"+sum;\n\t\t}\n\t\t\n\t\tJTable t = new JTable();\n testTable(t,noOfPeople+1);\n JScrollPane scrollPane = new JScrollPane(t); \n JOptionPane.showMessageDialog(null,scrollPane, s1, JOptionPane.INFORMATION_MESSAGE);\n\t}", "private void populateOverallResultsPanel(){\n\t\tmeetingSchedulingService.getBestScheduleTimes(pollId, new AsyncCallback<String>(){\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tMessageBox.alert(\"Error\", \"Server threw an error: \" + caught.getMessage(), null);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\n\t\t\t\tif(result == null){\n\t\t\t\t\tMessageBox.info(\"Results\", \"No responses yet!\", new Listener<MessageBoxEvent>(){\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handleEvent(MessageBoxEvent be) {\n\t\t\t\t\t\t\tif(be.getButtonClicked().getId().equalsIgnoreCase(\"ok\"))\n\t\t\t\t\t\t\t\tInfo.display(\"Hi\", \"Ok button clicked\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t});\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tft = new FlexTable();\n\t\t\t\t\n\t\t\t\tpollTrackingInfo = getPollTrackingInfo(result);\n\t\t\t\tint row = ft.getRowCount();\n\t\t\t\t\n\t\t\t\t//set the header of the flextable. \n\t\t\t\tft.setWidget(row, 0, new Label(\"Date-Time\"));\n\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 0, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\tft.setWidget(row, 1, new Label(\"Participants Available\"));\n\t\t\t\tft.getColumnFormatter().setWidth(1, \"100px\");\n\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\tft.setWidget(row, 2, new Label(\"When to schedule?\"));\n\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 2, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\t\n\t\t\t\tfor(int i = 0 ; i < pollTrackingInfo.length() ; i ++){\n\t\t\t\t\tPollTrackingInfo pti = pollTrackingInfo.get(i);\n\t\t\t\t\t\n\t\t\t\t\tRadio rb = new Radio();\n\t\t\t\t\trb.setId(pti.getDate());\n\t\t\t\t\t\n\t\t\t\t\trg.add(rb);\n\t\t\t\t\t\n\t\t\t\t\tft.setWidget(++row, 0, new Label(pti.getDate()));\n\t\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 0, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\t\tft.setWidget(row, 1, new Label(pti.getCount()));\n\t\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 1, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\t\tft.setWidget(row, 2, rb);\n\t\t\t\t\tft.getCellFormatter().setHorizontalAlignment(row, 2, HasHorizontalAlignment.ALIGN_CENTER);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tft.getRowFormatter().addStyleName(0, \"DateTimeWidgetHeader\");\n\t\t\t\t\n\t\t\t\toverallResultsPanel.add(ft);\n\t\t\t}\n\t\t});\n\t}", "public void showData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/MundheElectronics1\",\"root\",\"vishakha\");\n\t\t\t\tString sql=\"select *from ComplaintsData\";\n\t\t\t\tps=con.prepareStatement(sql);\n\t\t\t\trs=ps.executeQuery();\n\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void showTable() {\n frame = new JFrame(\"Interactive Table\");\n\n //Create and set up the content pane.\n this.setOpaque(true); //content panes must be opaque\n frame.setContentPane(this);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "public DisplayQueryResults(){\n super(\"Displaying Query Results\");\n\n //create ResultSetTableModel and display database table\n try {\n //create TableModel for results of query SELECT * FROM authors\n tableModel = new ResultSetTableModel(JDBC_DRIVER, DATABASE_URL, DEFAULT_QUERY);\n //setup JTextArea in which user types queries\n queryArea = new JTextArea(DEFAULT_QUERY, 3, 150);\n queryArea.setWrapStyleWord(true);\n queryArea.setLineWrap(true);\n\n JScrollPane scrollPane = new JScrollPane(queryArea, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants. HORIZONTAL_SCROLLBAR_NEVER);\n //setup JButton for submitting queries\n JButton submitButton = new JButton(\"Submit Query\");\n\n //create Box to manage placement of queryArea and submitButton in GUI\n Box box = Box.createHorizontalBox();\n box.add(scrollPane);\n box.add(submitButton);\n\n //create JTable delegate for tableModel\n JTable resultTable = new JTable(tableModel);\n\n //place GUI components on content pane\n Container c = getContentPane();\n c.add(box, BorderLayout.NORTH);\n c.add(new JScrollPane(resultTable), BorderLayout.CENTER);\n\n //create event listener for submitButton\n submitButton.addActionListener(new ActionListener() {\n //pass query to table model\n @Override\n public void actionPerformed(ActionEvent e) {\n //perform a new query\n try{\n tableModel.setQuery(queryArea.getText());\n }catch (SQLException sqlException){ //catch SQLException when performing a new query\n JOptionPane.showMessageDialog(null, sqlException.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n //try to recover from invalid user query by executing default query\n try{\n tableModel.setQuery(DEFAULT_QUERY);\n queryArea.setText(DEFAULT_QUERY);\n }catch (SQLException sqlException2){ //catch SQLException when performing default query\n JOptionPane.showMessageDialog(null, sqlException2.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n //ensure database connection is closed\n tableModel.disconnectFromDatabase();\n System.exit(1);\n }//end inner catch\n }//end outer catch\n }//end actionPerformed\n });//end call to addActionListener\n\n //set window size and display window\n setSize(500, 250);\n setVisible(true);\n }catch (ClassNotFoundException classNotFound){ //catch ClassNotFoundException thrown by ResultSetTableModel if database driver not found\n JOptionPane.showMessageDialog(null, \"Cloudscape driver not found\", \"Driver not found\", JOptionPane.ERROR_MESSAGE);\n tableModel.disconnectFromDatabase();\n System.exit(1);\n } catch (SQLException sqlException) { //catch SQLException thrown by ResultSetTableModel if problems occur while setting up database connection and querying database\n JOptionPane.showMessageDialog(null, sqlException.getMessage(), \"Database error\", JOptionPane.ERROR_MESSAGE);\n tableModel.disconnectFromDatabase();\n System.exit(1);\n }\n\n //dispose of window when user quits application (this overrides the default of HIDE_ON_CLOSE)\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\n //ensure database connection is closed when the user quits application\n addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosed(WindowEvent e) {\n tableModel.disconnectFromDatabase();\n System.exit(0);\n }\n });\n }", "public DisplayTable() {\n initComponents();\n }", "public void show() {\r\n\t\ttry {\r\n\t\t\tdisplayTable();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Show Table SQL Exception: \" + e.getMessage());\r\n\t\t}\r\n\t}", "public void ShowTable() {\n\t\tupdateTable();\n\t\ttableFrame.setVisible(true);\n\t\t\n\t}", "public static void searchDisplays(){\r\n try {\r\n \r\n singleton.dtm = new DefaultTableModel(); \r\n singleton.dtm.setColumnIdentifiers(displays);\r\n home_RegisterUser.table.setModel(singleton.dtm);\r\n \r\n Statement stmt = singleton.conn.createStatement();\r\n ResultSet rs = stmt.executeQuery(\"SELECT *,r.tam,r.resolucion FROM articulos a,mon r WHERE a.codigo = r.producto_id\");\r\n \r\n while(rs.next()){\r\n int stock = rs.getInt(\"stock\");\r\n String stock2;\r\n if(stock>0){\r\n stock2 = \"Esta en Stock\";\r\n }else{\r\n stock2 = \"No esta en Stock\";\r\n }\r\n \r\n singleton.dtm.addRow(getArrayDeObjectosMon(rs.getInt(\"codigo\"),rs.getString(\"nombre\"),rs.getString(\"fabricante\"),rs.getFloat(\"precio\"),stock2,rs.getInt(\"tam\"),rs.getString(\"resolucion\")));\r\n\r\n }\r\n } catch (SQLException ex) {\r\n System.err.println(\"SQL Error: \"+ex);\r\n }catch(Exception ex){\r\n System.err.println(\"Error: \"+ex);\r\n }\r\n }", "public void showZonecomm() {\n\t\t\t// sql command to select all records and display them\n\t\t\tparent.removeAll();\n\t\t\tResultSet rs = null;\n\t\t\ttry {\n\t\t\t\t// Register jdbc driver\n\t\t\t\tClass.forName(DRIVER_CLASS);\n\t\t\t\t// open connection\n\t\t\t\tcon = DriverManager.getConnection(URL, USER, PASSWORD);\n\t\t\t\tString sql = \"select * from `Zone committee` ;\";\n\t\t\t\tstmt = con.prepareStatement(sql);\n\t\t\t\trs = stmt.executeQuery(sql);\n\t\t\t\t// TO DO:Prepare table to fill values\n\t\t\t\tDefaultTableModel tab = new DefaultTableModel();\n\n\t\t\t\t// get metadata\n\t\t\t\tResultSetMetaData rsmt = rs.getMetaData();\n\n\t\t\t\t// create array of column names\n\t\t\t\tint colCount = rsmt.getColumnCount();// number of columns\n\t\t\t\tString colNames[] = { \"Member ID\", \"Baptismal Name\", \"Other Names\", \"Position\", \"Level\", \"Zone\" };\n\t\t\t\ttab.setColumnIdentifiers(colNames);// set column headings\n\n\t\t\t\t// now populate the data\n\t\t\t\trs.beforeFirst();// make sure to move cursor to beginning\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tString[] rowData = new String[colCount];\n\t\t\t\t\tfor (int i = 1; i <= colCount; i++) {\n\t\t\t\t\t\trowData[i - 1] = rs.getString(i);\n\t\t\t\t\t}\n\t\t\t\t\ttab.addRow(rowData);\n\t\t\t\t}\n\t\t\t\tJTable t = new JTable(tab);\n\t\t\t\tt.setBorder(BorderFactory.createRaisedSoftBevelBorder());\n\t\t\t\tsp = new JScrollPane(t);\n\t\t\t\tsp.setBorder(BorderFactory.createTitledBorder(\"Table Of Committee\" + \" members for selected zone\"));\n\t\t\t\tparent.add(sp, BorderLayout.CENTER);\n\t\t\t\tframe.pack();\n\t\t\t\tframe.repaint();\n\n\t\t\t} catch (SQLException | ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t}", "public void showData(ActionEvent actionEvent) {\n\n firstNameCol.setCellValueFactory(new PropertyValueFactory<>(\"firstName\"));\n lastNameCol.setCellValueFactory(new PropertyValueFactory<>(\"lastName\"));\n ageCol.setCellValueFactory(new PropertyValueFactory<>(\"age\"));\n\n peopleTable.setItems(returnPeople());\n }", "public results() {\n initComponents();\n loginlbl.setText(user.username);\n conn=mysqlconnect.ConnectDB();\n String sql=\"select idea_subject from final_results\";\n \n try{\n pat=conn.prepareStatement(sql);\n \n rs=pat.executeQuery();\n while(rs.next()){\n ideacb.addItem(rs.getString(1));\n }\n \n }catch(Exception e){\n JOptionPane.showMessageDialog(null, e);\n \n }\n }", "private static void createAndShowGUI() {\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"TableRenderDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n MatchersTablePanel alignTable = new MatchersTablePanel();\r\n \r\n \r\n frame.setContentPane(alignTable);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }", "public void displayProfileData() {\n MimsJTable table = new MimsJTable(ui);\n table.setPlanes(planes);\n table.setStats(stats);\n table.setRois(rois);\n table.setImages(images);\n String[] columnnames = table.getColumnNames();\n //MimsJTable requires multi-dim array, so need to convert dataset\n Object[][] exportedData = FileUtilities.convertXYDatasetToArray(data);\n table.createCustomTable(exportedData, columnnames);\n table.showFrame();\n }", "public void displayTable() {\n System.out.print(\"\\nSpreadsheet Table Details :\\nRows : \" + rowHeaders + \"\\nColumns:\" + colHeaders);\n new SheetParser(tableData).displaySheet();\n }", "public Gui( final Persistence p ){\r\n\r\n\t\tfinal JFrame frame = new JFrame();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t//final Popups pu = new Popups();\r\n\r\n\t\t// Temporarily holds the row results\r\n\t\tObject[] tempRow;\r\n\r\n\t\tIterator<Ordem> ordens = p.getOrdens().iterator();\r\n\r\n\t\twhile(ordens.hasNext()){\r\n\t\t\tOrdem o = ordens.next();\r\n\t\t\ttempRow = new Object[]{o.getIdOrdem(), o.getIdFuncionario(), o.getIdCliente(),\r\n\t\t\t\t\to.getDescOrigem(), o.getDescdestino(), o.getDataPedido(), o.getVolume()};\r\n\r\n\t\t\tdTableModel.addRow(tempRow);\r\n\t\t\tpo.adicionarOrdem(o);\r\n\t\t}\r\n\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t//DEFINING JTABLE PERFS \r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t// Increase the font size for the cells in the table\r\n\t\ttable.setFont(new Font(\"Serif\", Font.PLAIN, 18));\r\n\r\n\t\t// Increase the size of the cells to allow for bigger fonts\r\n\t\ttable.setRowHeight(table.getRowHeight()+12);\r\n\r\n\t\t//set columns width\r\n\t\ttable.getColumnModel().getColumn(0).setMinWidth(60);\r\n\t\ttable.getColumnModel().getColumn(0).setMaxWidth(80);\r\n\t\ttable.getColumnModel().getColumn(1).setMinWidth(100);\r\n\t\ttable.getColumnModel().getColumn(1).setMaxWidth(120);\r\n\t\ttable.getColumnModel().getColumn(2).setMinWidth(100);\r\n\t\ttable.getColumnModel().getColumn(2).setMaxWidth(120);\r\n\t\ttable.getColumnModel().getColumn(5).setMinWidth(100);\r\n\t\ttable.getColumnModel().getColumn(5).setMaxWidth(120);\r\n\t\ttable.getColumnModel().getColumn(6).setMinWidth(30);\r\n\t\ttable.getColumnModel().getColumn(6).setMaxWidth(60);\r\n\r\n\t\ttable.setShowGrid(true);\r\n\t\tColor color = new Color(200,200,200);\r\n\t\ttable.setGridColor(color);\r\n\r\n\t\t// Allows the user to sort the data\r\n\t\ttable.setAutoCreateRowSorter(true);\r\n\r\n\t\t// Adds the table to a scrollpane\r\n\t\tJScrollPane scrollPane = new JScrollPane(table);\r\n\r\n\t\t// Adds the scrollpane to the frame\r\n\t\tframe.add(scrollPane, BorderLayout.CENTER);\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t//END DEFINING JTABLE PERFS\r\n\r\n\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t//ADDING TO ORDER AND PERSISTENCE\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t// Creates a button that when pressed executes the code\r\n\t\t// in the method actionPerformed \t \r\n\t\tJButton addOrdem = new JButton(\"Adicionar Ordem\");\r\n\r\n\t\taddOrdem.addActionListener(new ActionListener(){\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent e){\r\n\r\n\t\t\t\tString sIDOrdem = \"\", sIDFuncionario = \"\", sIDCliente = \"\", sDescOrigem = \"\",\r\n\t\t\t\t\t\tsDescDestino = \"\", sDataPedido = \"\", sVolume = \"\";\r\n\r\n\t\t\t\t// getText returns the value in the text field\t\t\r\n\t\t\t\tboolean ok = true;\r\n\r\n\t\t\t\tsIDOrdem = tfIDOrdem.getText();\r\n\t\t\t\tif(sIDOrdem.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\t\t\t\t\r\n\t\t\t\tsIDFuncionario = tfIDFuncionario.getText();\r\n\t\t\t\tif(sIDFuncionario.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\t\t\t\t\r\n\t\t\t\tsIDCliente = tfIDCliente.getText();\r\n\t\t\t\tif(sIDCliente.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\t\t\t\t\r\n\t\t\t\tsDescOrigem = tfDescOrigem.getText();\r\n\t\t\t\tif(sDescOrigem.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\r\n\t\t\t\tsDescDestino = tfDescDestino.getText();\r\n\t\t\t\tif(sDescDestino.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\r\n\t\t\t\tsVolume = tfVolume.getText();\r\n\t\t\t\tif(sVolume.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\r\n\t\t\t\tsDataPedido = tfDataPedido.getText();\r\n\t\t\t\tif(sDataPedido.isEmpty())\r\n\t\t\t\t\tok = false;\r\n\r\n\t\t\t\tif(ok){\r\n\t\t\t\t\t// Will convert from string to date\r\n\t\t\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdataPedido = dateFormatter.parse(sDataPedido);\r\n\r\n\t\t\t\t\t\t//Adiciona a ordem ao ArrayList\r\n\t\t\t\t\t\tOrdem o = new Ordem(Integer.parseInt(sIDOrdem), Integer.parseInt(sIDFuncionario),\r\n\t\t\t\t\t\t\t\tInteger.parseInt(sIDCliente), sDescOrigem, sDescDestino,\r\n\t\t\t\t\t\t\t\tdataPedido,Integer.parseInt(sVolume) );\r\n\r\n\t\t\t\t\t\tif (po.adicionarOrdem(o)){\r\n\t\t\t\t\t\t\t//adicionar ordem ao ficheiro ordens.cvs\r\n\t\t\t\t\t\t\tp.addOrdem(o.toString());\r\n\r\n\t\t\t\t\t\t\tObject[] ordem = {sIDOrdem, sIDFuncionario, sIDCliente, sDescOrigem,\r\n\t\t\t\t\t\t\t\t\tsDescDestino, dataPedido, sVolume};\r\n\r\n\t\t\t\t\t\t\tdTableModel.addRow(ordem);\r\n\t\t\t\t\t\t\tnew Popups().showPrice(frame.getSize(), o);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tnew Popups().orderAlreadyExists(frame.getSize());\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t} catch (ParseException e1) {\r\n\t\t\t\t\t\t//data invalida\r\n\t\t\t\t\t\tnew Popups().invalidDate(frame.getSize());\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t//e1.printStackTrace();\r\n\t\t\t\t\t} catch (NumberFormatException e1){\r\n\t\t\t\t\t\t//campos numericos invalidos\r\n\t\t\t\t\t\tnew Popups().invalidNumber(frame.getSize());\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t//e1.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//campos vazios\r\n\t\t\t\t\tnew Popups().emptyFields(frame.getSize());\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t});\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t//END ADDING TO ORDER AND PERSISTENCE\r\n\r\n\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t//DEFINING LABELS AND BUTTONS AND ADDING TO JTABLE AND JPANEL\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t// Define values for my labels\r\n\t\tlIDOrdem = new JLabel(\"ID Ordem\");\r\n\t\tlIDFuncionario = new JLabel(\"ID Funcionario\");\r\n\t\tlIDCliente = new JLabel(\"ID Cliente\");\r\n\t\tlDescOrigem = new JLabel(\"Morada de Origem\");\r\n\t\tlDescDestino = new JLabel(\"Morada de Destino\");\r\n\t\tlDataPedido = new JLabel(\"Data\");\r\n\t\tlVolume = new JLabel(\"Volume\");\r\n\r\n\t\t// Define the size of text fields\r\n\t\ttfIDOrdem = new JTextField(2);\r\n\t\ttfIDFuncionario = new JTextField(5);\r\n\t\ttfIDCliente = new JTextField(5);\r\n\t\ttfDescOrigem = new JTextField(10);\r\n\t\ttfDescDestino = new JTextField(10);\r\n\t\ttfVolume = new JTextField(2);\r\n\r\n\t\t// Set default text and size for text field\r\n\t\ttfDataPedido = new JTextField(\"dd-MM-yyyy\", 8);\r\n\r\n\t\t// Create a panel to hold editing buttons and fields\r\n\t\tJPanel inputPanel = new JPanel();\r\n\t\tFont font = new Font(\"Serif\", Font.BOLD, 12);\r\n\t\tFont fontIn = new Font(\"Serif\", Font.PLAIN, 12);\r\n\r\n\t\t// Put components in the panel\r\n\t\tinputPanel.add(lIDOrdem).setFont(font);\r\n\t\tinputPanel.add(tfIDOrdem).setFont(fontIn);\r\n\t\tinputPanel.add(lIDFuncionario).setFont(font);\r\n\t\tinputPanel.add(tfIDFuncionario).setFont(fontIn);\r\n\t\tinputPanel.add(lIDCliente).setFont(font);\r\n\t\tinputPanel.add(tfIDCliente).setFont(fontIn);\r\n\t\tinputPanel.add(lDescOrigem).setFont(font);\r\n\t\tinputPanel.add(tfDescOrigem).setFont(fontIn);\r\n\t\tinputPanel.add(lDescDestino).setFont(font);\r\n\t\tinputPanel.add(tfDescDestino).setFont(fontIn);\r\n\t\tinputPanel.add(lDataPedido).setFont(font);\r\n\t\tinputPanel.add(tfDataPedido).setFont(fontIn);\r\n\t\tinputPanel.add(lVolume).setFont(font);\r\n\t\tinputPanel.add(tfVolume).setFont(fontIn);\r\n\r\n\t\t//buttons for add and remove \r\n\t\tinputPanel.add(addOrdem).setFont(font);\r\n\t\t//inputPanel.add(removeOrdem);\r\n\r\n\r\n\t\t// Add the component panel to the frame\r\n\t\tframe.add(inputPanel, BorderLayout.SOUTH);\r\n\r\n\t\t///////////////////////////////////////////////////////////////\r\n\t\t//END DEFINING LABELS AND BUTTONS AND ADDING TO JTABLE AND JPANEL\r\n\r\n\r\n\t\tframe.setSize(1200, 600);\r\n\t\tframe.setVisible(true);\r\n\t}", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"SimpleTableDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n EshopTable newContentPane = new EshopTable();\n newContentPane.addColumn(\"name\", \"toto je hlaviska1\", null, 500);\n newContentPane.addColumn(\"vek\", \"toto je hlaviska2\", \"sortHlav2\", 250);\n newContentPane.markAsVisible();\n\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private void displayTable() throws SQLException {\r\n\t\tframe = new JFrame();\r\n\t\tframe.add(prepareTable(), BorderLayout.CENTER);\r\n\t\tframe.setMinimumSize(new Dimension(880, 0));\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "public void showTable() {\n JTable table = new JTable();\n table.setModel(this);\n JFrame frame = new JFrame(name);\n frame.add(new JScrollPane(table), BorderLayout.CENTER);\n frame.pack();\n frame.setVisible(true);\n frame.setSize(800, 500);\n }", "public void show() {\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < columnCount; j++)\n System.out.printf(\"%9.4f \", data[i][j]);\n System.out.println();\n }\n }", "private void showTableControl()\r\n {\r\n debug(\"showTableControl() \");\r\n int index = tabPane.getSelectedIndex();\r\n JTable table = (JTable) tableVector.elementAt(index);\r\n this.setStatusBar(\"Showing table control panel for table[\" + index + \"]\");\r\n HGTableControlPanel.showTableControlsDialog(frame, table, false);\r\n debug(\"showTableControl() - complete\");\r\n }", "public void searchAndDisplay(Connection con) throws SQLException, NumberFormatException {\r\n //Declare and initialize all the variables\r\n //Get all the data from the fields and edit format with helper method\r\n String strCourseName = SearchHelper.searchHelper(getName());\r\n String strCourseTitle = SearchHelper.searchHelper(getTitle());\r\n String strCourseDepartment = SearchHelper.searchHelper(getDepartment());\r\n int intSID = getSID();\r\n String strSchoolName = SearchHelper.searchHelper(getSchoolName());\r\n\r\n ResultSet rsResults;\r\n JTable jtbResult;\r\n int intWidth;\r\n\r\n if (intSID == 0) {\r\n rsResults = Queries.searchCourse(con, strCourseName, strCourseTitle, strCourseDepartment, strSchoolName);\r\n jtbResult = Queries.ResultSetToJTable(rsResults);\r\n jtbResult.getColumnModel().getColumn(0).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(1).setPreferredWidth(75);\r\n jtbResult.getColumnModel().getColumn(2).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(4).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(5).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(6).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(7).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(8).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(9).setPreferredWidth(150);\r\n jtbResult.getColumnModel().getColumn(10).setPreferredWidth(50);\r\n intWidth = 975;\r\n } else {\r\n rsResults = Queries.searchCourseWithSID(con, strCourseName, strCourseTitle, strCourseDepartment, intSID);\r\n jtbResult = Queries.ResultSetToJTable(rsResults);\r\n jtbResult.getColumnModel().getColumn(0).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(1).setPreferredWidth(75);\r\n jtbResult.getColumnModel().getColumn(2).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(3).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(4).setPreferredWidth(50);\r\n jtbResult.getColumnModel().getColumn(5).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(6).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(7).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(8).setPreferredWidth(100);\r\n jtbResult.getColumnModel().getColumn(9).setPreferredWidth(50);\r\n intWidth = 825;\r\n }\r\n new PopUp(new JScrollPane(jtbResult), \"Results\", intWidth, 300);\r\n }", "void displayReport ()\n {\n\tStatFrame statTable;\n String winTitle = new String (\"Statistical Results Window\");\n\n\tif (use_xml) {\n\t try {\n\t\tVector data = new Vector (); data.add (modelReport);\n\t\tString xmlStr = XMLSerializer.serialize (data);\n\t\tstatTable = new StatFrame (winTitle, xmlStr);\n\t } catch (Exception e) {\n\t\ttrc.tell (\"displayReport\", e.getMessage ());\n\t\te.printStackTrace ();\n\t\treturn;\n\t }\n\t} else {\n statTable = new StatFrame (winTitle, modelReport);\n\t}; // if\n\n statTable.showWin ();\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n tblResult = new javax.swing.JTable();\n\n tblResult.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jScrollPane1.setViewportView(tblResult);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 407, Short.MAX_VALUE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "public void addTableGui() {\n\t\tDefaultTableModel mTableModel = new DefaultTableModel();\r\n\t\tmTable = new JTable(mTableModel);\r\n\r\n\t\tmTableModel.addColumn(\"MSSV\");\r\n\t\tmTableModel.addColumn(\"HoTen\");\r\n\t\tmTableModel.addColumn(\"GioiTinh\");\r\n\t\tmTableModel.addColumn(\"NTNS\");\r\n\t\tJScrollPane mJScrollPane = new JScrollPane(mTable);\r\n\t\tmJScrollPane.setPreferredSize(new Dimension(760, 310));\r\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\r\n\t\tc.ipady = 40; //make this component tall\r\n\t\tc.weightx = 0.0;\r\n\t\tc.gridwidth = 3;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 1;\r\n\t\tpanel.add(mJScrollPane,c);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jLabel6 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Result set functions\");\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Id\", \"Name\", \"Location\", \"DOB\"\n }\n ));\n jScrollPane1.setViewportView(jTable1);\n\n jLabel2.setText(\"ID\");\n\n jLabel3.setText(\"Name\");\n\n jLabel4.setText(\"Location\");\n\n jLabel5.setText(\"DOB\");\n\n jButton1.setText(\"Show\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setText(\"Search\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setText(\"Insert\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n jButton4.setText(\"Delete\");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton5.setText(\"Clear\");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addGroup(layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1))\n .addGap(98, 98, 98)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(129, 129, 129))\n .addGroup(layout.createSequentialGroup()\n .addGap(238, 238, 238)\n .addComponent(jButton3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 185, Short.MAX_VALUE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton4))\n .addGap(33, 33, 33))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(391, 391, 391)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(423, 423, 423)\n .addComponent(jButton5)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(43, 43, 43)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jLabel5)\n .addComponent(jLabel4)\n .addComponent(jLabel3))\n .addGap(39, 39, 39)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 76, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton1)\n .addComponent(jButton3)\n .addComponent(jButton4))\n .addGap(42, 42, 42)\n .addComponent(jButton5)\n .addGap(27, 27, 27))\n );\n\n pack();\n }", "public void View()\n\t{\n\t\tDefaultPieDataset pieDataset = new DefaultPieDataset();\n\t\t\n\t\tfor(String key : result.keySet())\n\t\t{\n\t\t\tpieDataset.setValue(key, Double.parseDouble(result.get(key).toString()));\n\t\t}\n\t\t\n\t\tJFreeChart chart = ChartFactory.createPieChart(title, pieDataset, true, true, true);\n\t\t\n\t\tChartFrame frame = new ChartFrame(\"Pie Chart\", chart);\n\t\t\n\t\tframe.setVisible(true);\n\t\tframe.setSize(450,500);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n tbResult = new javax.swing.JTable();\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(153, 255, 153));\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setTitle(\"Estadistica\");\n setToolTipText(\"\");\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n tbResult.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n\n }\n ));\n jScrollPane1.setViewportView(tbResult);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 200, 630, 160));\n\n jLabel1.setFont(new java.awt.Font(\"Castellar\", 2, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 0, 153));\n jLabel1.setText(\"SU RESULTADO OBTENIDO EN CADA NIVEL ES EL SIGUIENTE :\");\n getContentPane().add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 120, 700, 20));\n\n jButton1.setBackground(new java.awt.Color(0, 102, 51));\n jButton1.setForeground(new java.awt.Color(0, 102, 153));\n jButton1.setText(\"ACTUALIZAR\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(500, 410, 120, 30));\n\n pack();\n }", "public void showInputs() {\n\t\tCIVLTable tbl_inputTable = (CIVLTable) getComponentByName(\"tbl_inputTable\");\n\t\tDefaultTableModel inputModel = (DefaultTableModel) tbl_inputTable\n\t\t\t\t.getModel();\n\n\t\tif (inputModel.getRowCount() != 0) {\n\t\t\tinputModel.setRowCount(0);\n\t\t\ttbl_inputTable.clearSelection();\n\t\t}\n\n\t\t// GMCSection gmcs = currConfig.getGmcConfig().getAnonymousSection();\n\t\tArrayList<CIVL_Input> inputList = currConfig.getInputs();\n\t\tfor (int i = 0; i < inputList.size(); i++) {\n\t\t\tCIVL_Input input = inputList.get(i);\n\t\t\tinputModel.addRow(new Object[] { input.getName(), input.getType(),\n\t\t\t\t\tinput.getValue(), input.getInitializer() });\n\t\t}\n\n\t}", "public resultview() {\n initComponents();\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint N = getN();\n\t\t\t\tint T = getT();\n\t\t\t\t\n\t\t\t\tStopwatch stopwatch = new Stopwatch();\n\t\t\t\tPercolationStats ps = new PercolationStats(N, T);\n\t\t\t\t\n\t\t\t\t// results of running PercolationStats object after passing N and T \n\t\t\t\t// N - size of the Table (N * N)\n\t\t\t\t// T - times object runs the simulation\n\t\t\t\tString runTime= \"\" + stopwatch.elapsedTime(); // gets run Time\n\t\t\t\tString mean = \t\"\" + ps.mean(); // gets Mean - look at Statistics\n\t\t\t\tString stddev = \"\" + ps.stddev(); // gets Standard Deviation\n\t\t\t\tString HiLo = \t\"\" + ps.confidenceLo() + \", \" + ps.confidenceHi(); // gets 95% confidence interval:\n\t\t\t\tResultScreenGUI result = new ResultScreenGUI(mean, stddev, HiLo, runTime);\n\t\t\t\tresult.pack();\n\t\t\t\tresult.setVisible(true);\n\t\t\t}", "public PrintAllRecords() {\n initComponents();\n }", "public void displayPatients() {\n DefaultTableModel dm = new DefaultTableModel(0, 0);\n String header[] = new String[]{\"\", \"Nom:\", \"Prénom:\", \"Dg:\", \"Séance:\", \"Date visit\"};\n dm.setColumnIdentifiers(header);\n jTable1.setModel(dm);\n\n \n \n //set the data in the table =>rows\n\n for (int i = 0; i < patients.size(); i++) {\n Patient patient = patients.get(i);\n\n Vector<Object> data = new Vector<Object>();\n data.add(patient.getId());\n data.add(patient.getNom());\n data.add(patient.getPrenom());\n data.add(patient.getDg());\n data.add(patient.getNombre_seance());\n data.add(patient.getDate_visit());\n dm.addRow(data);\n \n }\n }", "private void initComponents() {\r\n\t\tjScrollPane1 = new javax.swing.JScrollPane();\r\n\t\ttableSessionOutcomes = new javax.swing.JTable();\r\n\r\n\t\tgetContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.X_AXIS));\r\n\r\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tsetTitle(\"Negotiation results\");\r\n\t\ttableSessionOutcomes.setModel(new javax.swing.table.DefaultTableModel(\r\n\t\t\t\tnew Object [][] {\r\n\t\t\t\t\t\t{null, null, null, null},\r\n\t\t\t\t\t\t{null, null, null, null},\r\n\t\t\t\t\t\t{null, null, null, null},\r\n\t\t\t\t\t\t{null, null, null, null}\r\n\t\t\t\t},\r\n\t\t\t\tnew String [] {\r\n\t\t\t\t\t\t\"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\r\n\t\t\t\t}\r\n\t\t));\r\n\t\tjScrollPane1.setViewportView(tableSessionOutcomes);\r\n\r\n\t\tgetContentPane().add(jScrollPane1);\r\n\r\n\t\tpack();\r\n\t}", "private void queryAllMenu()\n\t{\n\t\tclearPanel(getPanel1());\n\t\t\n\t\t//get value from combo boxes into Values\n\t\tsetValue1(getTopics1().getSelectedItem().toString());\t\n\t\tsetValue2(getTopics2().getSelectedItem().toString());\n\t\t\n\t\t//load user values into query1 by calling CrimeQuery and passing the values\n\t\tsetQuery1(new CrimeQuery(getValue1(),getValue2()));\n\t\t\n\t\t//get the table from QueryAll from CrimeQuery class\n\t\tJTable table=getQuery1().QueryAll();\n\t\t\n\t\t//add table with new options\n\t\tJScrollPane scrolltable = new JScrollPane(table);\n\t\tscrolltable.setBounds(500,10,500,500);\n\t\n\t\tgetPanel1().add(scrolltable);\n\t\t\n\t\tgetPanel1().add(getButton2());\n\t\tgetPanel1().add(getButton5());\n\t\tgetPanel1().add(getButton3());\n\t\tgetPanel1().add(getButton6());\n\t\tgetButton3().setBounds(100,10,230,60);\n\t\tgetButton6().setBounds(100,215,230,60);\n\t\tgetButton5().setBounds(100,315,230,60);\n\t\tgetButton2().setBounds(100,410,230,60);\n\t\t\n\t\t\n\t\t\n\t}", "private void mostraResultado() {\n int linha = jTableResultados.getSelectedRow();\n if (linha >= 0) {\n int a = new Integer(\"\" + jTableResultados.getValueAt(linha, 0));\n double c0 = Double.parseDouble(\"\" + jTableResultados.getValueAt(linha, 1));\n double c1 = Double.parseDouble(\"\" + jTableResultados.getValueAt(linha, 2));\n telaSemivariograma.getJTextFieldAlcance().setText(\"\" + a);\n telaSemivariograma.getJTextFieldEfeitoPepita().setText(\"\" + c0);\n telaSemivariograma.getJTextFieldContribuicao().setText(\"\" + c1);\n telaSemivariograma.getJSliderAlcance().setValue(a);\n telaSemivariograma.getJSliderEfeitoPepita().setValue((int) (c0 * 10000));\n telaSemivariograma.getJSliderContribuicao().setValue((int) (c1 * 10000));\n if (telaSemivariograma.isVisible()) {\n telaSemivariograma.setVisible(false);\n }\n telaSemivariograma.setVisible(true);\n }\n }", "private void makeTable() {\n String [] cols = new String[] {\"Planets\", \"Weights (in lbs)\", \"Weights (in kgs)\"};\n model = new DefaultTableModel(result,cols) {\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n };\n table = new JTable(model);\n JScrollPane scrollPane = new JScrollPane(table);\n scrollPane.setPreferredSize(new Dimension(310,155));\n middlePanel.add(scrollPane);\n revalidate();\n repaint();\n }", "public void displayAllPatients() {\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients\";\r\n\t\t\tStatement stm= super.getConnection().createStatement();\r\n\t\t\tResultSet results= stm.executeQuery(query);\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\tString[] row= new String[7];\r\n\t\t\t\trow[0]= results.getInt(1)+\"\";\r\n\t\t\t\trow[1]= results.getString(2);\r\n\t\t\t\trow[2]= results.getString(3);\r\n\t\t\t\trow[3]= results.getString(4);\r\n\t\t\t\trow[4]= results.getString(5);\r\n\t\t\t\trow[5]= results.getInt(6)+\"\";\r\n\t\t\t\tmodelHostory.addRow(row);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t}", "private void populateResultsUI(){\n\n totalPayTextView.setText(Double.toString(totalPay));\n totalTipTextView.setText(Double.toString(totalTip));\n totalPerPersonTextView.setText(Double.toString(totalPerPerson));\n }", "@SuppressWarnings(\"unchecked\")\n \n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n txtQuery = new javax.swing.JTextField();\n btnRun = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n txtResult = new javax.swing.JTextArea();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Query\");\n\n btnRun.setFont(new java.awt.Font(\"Arial\", 0, 18)); // NOI18N\n btnRun.setText(\"Run\");\n btnRun.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnRunActionPerformed(evt);\n }\n });\n\n txtResult.setEditable(false);\n txtResult.setColumns(20);\n txtResult.setRows(5);\n jScrollPane1.setViewportView(txtResult);\n\n jLabel2.setText(\"Mai Dang Nhat Anh - ITDSIU19031\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtQuery, javax.swing.GroupLayout.PREFERRED_SIZE, 688, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27)\n .addComponent(btnRun, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel2)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 895, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(18, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(53, 53, 53)\n .addComponent(btnRun, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtQuery, javax.swing.GroupLayout.PREFERRED_SIZE, 123, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 328, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "private void displayGUI()\n {\n SpringLayout springLayout = new SpringLayout();\n setLayout(springLayout);\n\n displayTextAreas(springLayout);\n displayButtons(springLayout);\n displayLabels(springLayout);\n displayTables(springLayout);\n //displaySelectedQuestion();\n }", "private void showResult() {\n int i = 0;\n matchList.forEach(match -> match.proceed());\n for (Match match : matchList) {\n setTextInlabels(match.showTeamWithResult(), i);\n i++;\n }\n }", "public void echantillon_zone(){\n\n JLabel lbl_Echantillon = new JLabel(\"Offre d'\\u00E9chantillons :\");\n lbl_Echantillon.setBounds(340, 170, 119, 16);\n add(lbl_Echantillon);\n\n // MODEL\n final DefaultTableModel model = new DefaultTableModel();\n final DefaultTableCellRenderer rightRenderer = new DefaultTableCellRenderer();\n rightRenderer.setHorizontalAlignment(JLabel.RIGHT);\n Object[][] o = new Object[sizeVector][2];\n for(int i = 0; i < sizeVector; i++){\n o[i][0] = medicaments.get(i)[0];\n o[i][1] = medicaments.get(i)[1];\n }\n // TABLE DATA\n model.setDataVector(o, new Object[]{\"M\\u00E9dicament\",\"Qt\\u00E9\"});\n\n\n // TABLE\n result_table = new JTable(model);\n result_table.setBounds(475, 170, 200, 150);\n result_table.getColumnModel().getColumn(1).setMaxWidth(40);\n result_table.getColumnModel().getColumn(1).setCellRenderer(rightRenderer);\n result_table.setEnabled(false);\n add(result_table);\n\n\n // SCROLLPANE\n JScrollPane apne= new JScrollPane(result_table);\n apne.setBounds(475, 170, 200, 150);\n add(apne);\n\n\n }", "@Override\n\tpublic void updatePanel() {\n\t\tstatTable.setStatTable(getModel().getRowCount(),\n\t\t\t\tgetModel().getRowNames(), getModel().getColumnCount(),\n\t\t\t\tgetModel().getColumnNames());\n\t\tgetModel().updatePanel();\n\t}", "private void initialize() {\n\t\tfrmExibindoResultadoDa = new JFrame();\n\t\tfrmExibindoResultadoDa.setTitle(\"Exibindo Resultado da Consulta\");\n\t\tfrmExibindoResultadoDa.setBounds(100, 100, 450, 300);\n\t\tfrmExibindoResultadoDa.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tfrmExibindoResultadoDa.getContentPane().add(panel, BorderLayout.NORTH);\n\t\tpanel.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tJTextArea textArea = new JTextArea(DEFAULT_QUERY,3,100);\n\t\tpanel.add(textArea);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Enviar Consulta\");\n\t\tbtnNewButton.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tpanel.add(btnNewButton, BorderLayout.EAST);\n\t\t\n\t\ttable = new JTable();\n\t\tfrmExibindoResultadoDa.getContentPane().add(table, BorderLayout.CENTER);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tfrmExibindoResultadoDa.getContentPane().add(panel_1, BorderLayout.SOUTH);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Filtro:\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tpanel_1.add(lblNewLabel);\n\t\t\n\t\ttextField = new JTextField();\n\t\tpanel_1.add(textField);\n\t\ttextField.setColumns(23);\n\t\t\n\t\tJButton btnAplicarFiltro = new JButton(\"Aplicar Filtro\");\n\t\tpanel_1.add(btnAplicarFiltro);\n\t}", "public TelaResultado() {\n initComponents();\n jTextFieldResultadoAlcance.setBackground(Color.WHITE);\n jTextFieldResultadoContribuicao.setBackground(Color.WHITE);\n jTextFieldResultadoEfeitoPepita.setBackground(Color.WHITE);\n jTextFieldResultadoFitness.setBackground(Color.WHITE);\n\n jTableResultados.getTableHeader().setReorderingAllowed(false);\n jTableResultadosSessao.getTableHeader().setReorderingAllowed(false);\n cellRenderer.setHorizontalAlignment(SwingConstants.CENTER);\n jTableResultados.getColumnModel().getColumn(0).setPreferredWidth(80);\n jTableResultados.getColumnModel().getColumn(1).setPreferredWidth(80);\n jTableResultados.getColumnModel().getColumn(2).setPreferredWidth(80);\n jTableResultados.getColumnModel().getColumn(3).setPreferredWidth(160);\n jTableResultados.getColumnModel().getColumn(0).setCellRenderer(cellRenderer);\n jTableResultados.getColumnModel().getColumn(1).setCellRenderer(cellRenderer);\n jTableResultados.getColumnModel().getColumn(2).setCellRenderer(cellRenderer);\n jTableResultados.getColumnModel().getColumn(3).setCellRenderer(cellRenderer);\n }", "private void buildElements() {\n JPanel mainPanel = new JPanel(new BorderLayout());\n\n String[] columnNames = {\n \"Id\",\n \"Number of transaction\",\n \"Transaction price\",\n \"Paid type\",\n \"Buyer\",\n \"Amazon SKU\",\n \"Action\",\n };\n\n Object[][] emptyData = {};\n\n providerTableModel = new DefaultTableModel(emptyData, columnNames);\n\n providerTable = new JTable(providerTableModel) {\n public TableCellRenderer getCellRenderer(int row, int column) {\n return new ProviderTableCellRenderer();\n }\n };\n\n providerTable.addMouseListener(new ProviderTableMouseListener());\n\n providerTable.getTableHeader().setReorderingAllowed(false);\n\n /*providerTable.getColumnModel().getColumn(6).setMinWidth(100);\n providerTable.getColumnModel().getColumn(6).setMaxWidth(100);\n providerTable.getColumnModel().getColumn(6).setPreferredWidth(100);*/\n\n // Set rows height for providerTable (for all rows).\n providerTable.setRowHeight(40);\n\n // Set 'Actions' column width. All buttons normally see.\n //TableColumnModel columnModel = providerTable.getColumnModel();\n //columnModel.getColumn(5).setPreferredWidth(120);\n\n JScrollPane tableScrollPane = new JScrollPane(providerTable);\n\n mainPanel.add(tableScrollPane, BorderLayout.CENTER);\n\n this.add(mainPanel);\n }", "public Patient_Record_Output(String[] result)\n\t\t{\n\t\t\tsetLayout(new GridLayout(result.length + 1, 1));\n\n\t\t\tadd(new Centered_Text_Panel(\"Results:\"));\n for(int i = 0; i < result.length; i++)\n {\n add(new JLabel(result[i]));\n }\n\t\t\t\n\t\t}", "public void ShowProductInJTable(){\n ArrayList<Product> list = getProductList();\n \n Object[] row = new Object[5];\n for (int i = 0; i < list.size(); i++) {\n row[0] = list.get(i).getPid();\n row[1] = list.get(i).getPname();\n row[2] = \"Rp. \" + list.get(i).getPprice();\n row[3] = list.get(i).getPstock();\n row[4] = list.get(i).getPcatid();\n \n model1.addRow(row);\n }\n }", "public Patient_Record_Output()\n\t\t{\n\t\t\tadd(new Centered_Text_Panel(\"Results:\"));\n\t\t}", "public ResultBoard() {\n initComponents();\n this.setTitle(\"Result Board\");\n this.setLocationRelativeTo(null);\n \n try{\n Connection con;\n Statement stmt;\n ResultSet rs;\n Class.forName(\"org.apache.derby.jdbc.ClientDriver\");\n con=DriverManager.getConnection(\"jdbc:derby://localhost:1527/C:/Users/Mashuk/.netbeans-derby/QUIZ\",\"quiz\",\"123\");\n stmt=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n \n rs=stmt.executeQuery(\"select profile,correctanswer,wronganswer from APP.MARK\");\n int i = 0;\n String name[] = new String[100];\n int cAns[] = new int[100];\n int wAns[] = new int[100];\n \n while(rs.next()){\n name[i] = rs.getString(1);\n cAns[i] = Integer.parseInt(rs.getString(2));\n wAns[i] = Integer.parseInt(rs.getString(3));\n \n i++;\n }\n \n resultBoard.setText(\" Name\\tCorrect\\tWrong\\n\"\n + \" ------------------ ------------------- ----------------------\\n\");\n \n rs=stmt.executeQuery(\"select quizid from APP.QUIZ\");\n rs.last();\n int sum = Integer.parseInt(rs.getString(1));\n int n = 0;\n while(name[n]!=null){\n String total = \" \"+name[n]+\"\\t\"+cAns[n]+\"\\t\"+wAns[n]+\"\\n\";\n resultBoard.setText(resultBoard.getText()+total);\n n++;\n }\n }\n catch(Exception px)\n {\n// JOptionPane.showMessageDialog(null,px.getMessage());\n }\n }", "public Estadisticas() {\n initComponents();\n \n llenar_tabla();\n setCellRender(tbResult);\n }", "private void fillTableWithLinkResult(List<LinkSimulationResult> results, boolean showAsTimeSerie) {\n\n TableView<LinkSimulationResult> table = new TableView<>();\n table.getItems().addAll(results);\n\n TableColumn<LinkSimulationResult,String> idOrTimeCol;\n TableColumn<LinkSimulationResult,String> flowCol = new TableColumn<>(\"Flow\");\n TableColumn<LinkSimulationResult,String> velocityCol = new TableColumn<>(\"Velocity\");\n TableColumn<LinkSimulationResult,String> headlossCol = new TableColumn<>(\"Headloss\");\n TableColumn<LinkSimulationResult,String> statusCol = new TableColumn<>(\"Status\");\n\n if (!showAsTimeSerie){\n idOrTimeCol = new TableColumn<>(\"Node ID\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getId()));\n } else {\n idOrTimeCol = new TableColumn<>(\"Time\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getTimeString()));\n }\n flowCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getFlow())));\n velocityCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getVelocity())));\n headlossCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getHeadloss())));\n statusCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getStatus().getName()));\n\n table.getColumns().clear();\n table.getColumns().addAll(idOrTimeCol, flowCol, velocityCol, headlossCol, statusCol);\n\n this.tablePane.getChildren().clear(); // remove the previus table\n this.tablePane.getChildren().addAll(table);\n }", "private void fillTableWithNodeResult(List<NodeSimulationResult> results, boolean showAsTimeSerie) {\n TableView<NodeSimulationResult> table = new TableView<>();\n table.getItems().clear();\n table.getItems().addAll(results);\n TableColumn<NodeSimulationResult,String> idOrTimeCol;\n TableColumn<NodeSimulationResult,String> demandCol = new TableColumn<>(\"Demand\");\n TableColumn<NodeSimulationResult,String> headCol = new TableColumn<>(\"Head\");\n TableColumn<NodeSimulationResult,String> pressureCol = new TableColumn<>(\"Pressure\");\n TableColumn<NodeSimulationResult,String> qualityCol = new TableColumn<>(\"Quality\");\n\n if (!showAsTimeSerie){\n idOrTimeCol = new TableColumn<>(\"Node ID\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getId()));\n } else {\n idOrTimeCol = new TableColumn<>(\"Time\");\n idOrTimeCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(param.getValue().getTimeString()));\n }\n demandCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getDemand())));\n headCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getHead())));\n pressureCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getPressure())));\n qualityCol.setCellValueFactory(param -> new ReadOnlyObjectWrapper<>(Double.toString(param.getValue().getQuality())));\n\n table.getColumns().clear();\n table.getColumns().addAll(idOrTimeCol, demandCol, headCol, pressureCol, qualityCol);\n this.tablePane.getChildren().clear(); // remove the previus table\n this.tablePane.getChildren().addAll(table);\n }", "void showAll();", "@Override\n public void show(ResultComponent results) throws TrecEvalOOException {\n System.out.println(\"************************************************\");\n System.out.println(\"*************** Topic \" + topicId + \" output ****************\");\n System.out.println(\"************************************************\");\n\n if (results.getType() == ResultComponent.Type.GENERAL) {\n\n for (ResultComponent runResult : results.getResults()) {\n\n List<Result> resultList = runResult.getResultsByIdTopic(topicId);\n\n System.out.println(\"\\nResults for run: \" + runResult.getRunName());\n if (resultList.isEmpty()) {\n System.out.println(\"No results for topic \" + topicId);\n }\n\n for (Result result : resultList) {\n System.out.print(result.toString());\n }\n }\n }\n }", "private void showResultsTableView(String viewName)\n {\n CardLayout cLayout = (CardLayout) resultsRotatePane.getLayout();\n cLayout.show(resultsRotatePane, viewName);\n }", "public void updateSearchResults(){\n\t\t//removeAll();\n\t\tPrinter currentPrinter;\n\t\tPrinterLabel tableHeader;\n\t\t\n\t\t// Create search results' table header\n\t\ttableHeader = new PrinterLabel(1,MenuWindow.FRAME_WIDTH , MenuWindow.FRAME_HEIGHT,\n\t\t\t\t\"PRINTER\",\"VENDOR\",\"TENSION (ksi)\",\"COMPRESSION (ksi)\",\"IMPACT (lb-ft)\",\"MATERIALS\",\"TOLERANCE (in)\",\"FINISH (\\u00B5in)\", false);\n\n\t\t// Add tool tips for long header categories before adding to GUI\n\t tableHeader.getMaterials().setToolTipText(\"Range of Materials\");\n\t \n\t\tsetLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n\t\tsetBorder(BorderFactory.createLineBorder(Color.gray));\n\t\tadd(tableHeader);\n\t\ttableHeader.setBackground(Color.lightGray);\n\n\t\t// Populate search results with any printer matches\n\t\tfor(int i = outputList.size()-1; i >=0;i--)\n\t\t{\n\t\t\tcurrentPrinter = outputList.get(i);\n\t\t\tPrinterLabel temp = new PrinterLabel(i+1,MenuWindow.FRAME_WIDTH , MenuWindow.FRAME_HEIGHT,\n\t\t\t\t\tcurrentPrinter.getPrinterName() + \"\",\n\t\t\t\t\tcurrentPrinter.getVendor()+ \"\",\n\t\t\t\t\tcurrentPrinter.getTension()+ \"\",\n\t\t\t\t\tcurrentPrinter.getCompression()+ \"\",\n\t\t\t\t\tcurrentPrinter.getImpact()+ \"\",\n\t\t\t\t\tcurrentPrinter.materialsString()+ \"\",\n\t\t\t\t\tcurrentPrinter.getTolerance()+ \"\",\n\t\t\t\t\tcurrentPrinter.getFinish()+ \"\", true);\n\t\t\ttemp = highlightMatch(temp, currentPrinter);\n\t\t\tadd(temp);\n\t\t}\n\t\tthis.revalidate();\n\t}", "public MostrarDatosJTable() {\n\t\t// Configuracion del JFrame\n\t\tthis.setLayout(null);\n\t\tthis.setSize(340, 260);\n\t\tthis.setTitle(\" Ejemplo de JScrollPane \");\n\t\tconfigurarJScrollPane();\n\t}", "public InformationResultPanel() {\n initComponents();\n }", "public final void showInput(final SimulationVersion result) {\r\n // Eingegebene Investitionen werden angezeigt\r\n verticalPanelInput = new VerticalPanel();\r\n lbResults = new Label(\"Ihre Eingabe: \");\r\n lbResults.setStyleName(\"gwt-Panel-Invest-Inputlabel\");\r\n // Ein neues Panel wird angebracht\r\n absolutePanelYear[stackYear - 1].add(lbResults, 10, 10);\r\n absolutePanelYear[stackYear - 1].add(verticalPanelInput, 10, 34);\r\n verticalPanelInput.setSize(\"154px\", \"18px\");\r\n\r\n // Labels mit den Daten befüllen\r\n lbInvestMarketing = new Label(\"Marketing: \" + result.getMarketing());\r\n lbInvestPersonal = new Label(\"Personal: \" + result.getPersonal());\r\n lbInvestPrice = new Label(\"Produktpreis: \" + result.getPrice());\r\n lbInvestMachineValue = new Label(\"Maschinenwert: \"\r\n + result.getMachineValue());\r\n lbInvestMachinesCapacity = new Label(\"Maschinenkapazit\\u00E4t: \"\r\n + result.getMachineCapacity());\r\n lbInvestMachinePersonal = new Label(\"Maschinenpersonal: \"\r\n + result.getMachineStaff());\r\n\r\n // Labels werden auf dem VerticalPanel angebracht\r\n verticalPanelInput.setSize(\"210px\", \"236px\");\r\n verticalPanelInput.add(lbInvestMarketing);\r\n verticalPanelInput.add(lbInvestPersonal);\r\n verticalPanelInput.add(lbInvestPrice);\r\n verticalPanelInput.add(lbInvestMachineValue);\r\n verticalPanelInput.add(lbInvestMachinesCapacity);\r\n verticalPanelInput.add(lbInvestMachinePersonal);\r\n }", "public void Show_Products_in_jTable()\n {\n ArrayList<Patient> list = getPatientList();\n DefaultTableModel model = (DefaultTableModel) jTablePatient.getModel();\n //Clear jTable;\n model.setRowCount(0);\n Object[] row = new Object[5];\n for(int i=0;i<list.size();i++)\n {\n row[0] = list.get(i).getID();\n row[1] = list.get(i).getName();\n row[2] = list.get(i).getAge();\n row[3] = list.get(i).getContactNumber();\n row[4] = list.get(i).getDoctor();\n \n model.addRow(row);\n }\n }", "public void Display(){\r\n window.setWidth(WIDTH);\r\n window.setHeight(HEIGHT);\r\n window.initModality(Modality.APPLICATION_MODAL);\r\n HBox buttons = new HBox(5);\r\n buttons.getChildren().addAll(select,delete,back);\r\n buttons.setPadding(new Insets(25,15,15,15));\r\n ROOT.setBottom(buttons);\r\n ROOT.setPadding(new Insets(25));\r\n back.setOnAction(e->back(e));\r\n select.setOnAction(e->select(e));\r\n delete.setOnAction(e->delete(e));\r\n window.setScene(new Scene(ROOT));\r\n // Populate the table with info from client list\r\n refresh();\r\n table.getColumns().addAll(cName,cAdd1,cAdd2,cCity,cZip,cCountry,cPhone); \r\n // Set data for column\r\n cName.setCellValueFactory(new PropertyValueFactory<>(\"name\"));\r\n cAdd1.setCellValueFactory(new PropertyValueFactory<>(\"address1\"));\r\n cAdd2.setCellValueFactory(new PropertyValueFactory<>(\"address2\"));\r\n cCity.setCellValueFactory(new PropertyValueFactory<>(\"city\"));\r\n cZip.setCellValueFactory(new PropertyValueFactory<>(\"zip\"));\r\n cCountry.setCellValueFactory(new PropertyValueFactory<>(\"country\"));\r\n cPhone.setCellValueFactory(new PropertyValueFactory<>(\"phone\"));\r\n // Set table factory to allow rows to be clickable\r\n table.setRowFactory(tv ->{\r\n TableRow<Client> row = new TableRow<>();\r\n row.setOnMouseClicked(e ->{\r\n if (!row.isEmpty() && e.getButton() == MouseButton.PRIMARY){\r\n client = row.getItem();\r\n }\r\n });\r\n return row;\r\n });\r\n ROOT.setCenter(table);\r\n window.showAndWait(); \r\n }", "public void showTable(View view){\n EditText name = findViewById(R.id.editNumber);\n String input = name.getText().toString().trim();\n if(input.length() == 0){\n Toast.makeText(this, \"Invalid input!\", Toast.LENGTH_SHORT).show();\n return;\n }\n StringBuffer result = getTable(input);\n display(result);\n }", "private void butViewBorrowersActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butViewBorrowersActionPerformed\n CallableStatement cstmt = driver.getCallStatement(\"{CALL viewAllBorrowers()}\");\n\n try {\n ResultSet rs = cstmt.executeQuery();\n\n JTable myTable = new JTable(driver.buildTableModel(rs));\n rs.close();\n cstmt.close();\n\n scrollPane.setViewportView(myTable);\n } catch (SQLException se) {\n driver.errorMessageNormal(\"From LoansPanel.butViewBorrowersAP: \" + se);\n se.printStackTrace();\n }\n\n }", "public void actionPerformed(){\n String query = \"select a.aid, a.name, count(distinct em.medid) as maxMedCount from animal a, vet_examination_animal vea, medication_examination em \" +\n \"where a.aid = vea.aid and vea.eid = em.eid \" +\n \"Group by (a.aid, a.name) \" +\n \"having count(distinct em.medid) = \" +\n \"(select max(medCount) from (\" +\n \"select count(distinct em1.medid) as medCount from animal a1, vet_examination_animal vea1, medication_examination em1 \" +\n \"where a1.aid = vea1.aid and vea1.eid = em1.eid \" +\n \"group by vea1.aid))\";\n try {\n ResultSet res = db.runQuery(query);\n ResultSetMetaData metaData = res.getMetaData();\n\n // get column names\n int numColumns = metaData.getColumnCount();\n Vector<Object> columns = getColumns(numColumns, metaData);\n\n // get row data\n Vector<Vector<Object>> rows = getRows(numColumns, res);\n\n JTable table = new JTable(new DefaultTableModel(rows, columns));\n js.getViewport().setView(table);\n\n } catch (SQLException se) {\n System.out.println(se.getMessage());\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n lab1 = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"查询信息界面\");\n\n jLabel1.setFont(new java.awt.Font(\"华文行楷\", 0, 36)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 51, 51));\n jLabel1.setText(\"查询信息界面\");\n\n jButton1.setText(\"查询不及格人数\");\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n jButton2.setText(\"查询及格人数\");\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2MouseClicked(evt);\n }\n });\n\n jButton3.setText(\"查询优秀成绩人数\");\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton3MouseClicked(evt);\n }\n });\n\n jButton4.setText(\"按班级成绩排行\");\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton4MouseClicked(evt);\n }\n });\n\n jButton6.setText(\"返回\");\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton6MouseClicked(evt);\n }\n });\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n lab1.setColumns(20);\n lab1.setRows(5);\n jScrollPane1.setViewportView(lab1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(35, 35, 35)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(layout.createSequentialGroup()\n .addGap(136, 136, 136)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 274, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(0, 45, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton2)\n .addComponent(jButton1)\n .addComponent(jButton3))\n .addGap(59, 59, 59)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton6)\n .addComponent(jButton4))\n .addContainerGap(39, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"SimpleTableDemo\");\n frame.setTitle(titulo);\n frame.setLocationRelativeTo(null);\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n //Create and set up the content pane.\n SimpleTableDemo newContentPane = new SimpleTableDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(this);\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n resultTable = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Open payments\");\n\n resultTable.setModel(tableModel);\n resultTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n resultTableMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(resultTable);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 527, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 309, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\" \");\n\t\tframe.setBounds(100, 100, 586, 364);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Total Found\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblNewLabel.setBounds(10, 11, 84, 21);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t lblNo = new JLabel(\"\");\n\t\tlblNo.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblNo.setBounds(104, 14, 23, 14);\n\t\tframe.getContentPane().add(lblNo);\n\t\t\n\t\tlblNewLabel_1 = new JLabel(\"Search By\");\n\t\tlblNewLabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tlblNewLabel_1.setBounds(149, 14, 76, 18);\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t\t\n\t comboBox = new JComboBox();\n\t\tcomboBox.setModel(new DefaultComboBoxModel(new String[] {\"Rice\", \"Grilled\", \"Fast Food\", \"Others\", \"Drinks\"}));\n\t\tcomboBox.setBounds(228, 13, 117, 20);\n\t\tframe.getContentPane().add(comboBox);\n\t\t\n\t\tbtnSearch = new JButton(\"Search\");\n\t\tbtnSearch.setBounds(471, 12, 89, 23);\n\t\tframe.getContentPane().add(btnSearch);\n\t\t\n\t\tscrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(20, 43, 540, 269);\n\t\tframe.getContentPane().add(scrollPane);\n\t\t\n\t\ttable = new JTable();\n table.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {},\n {},\n {},\n {}\n },\n new String [] {\n\n }\n ));\n table.getTableHeader().setReorderingAllowed(false);\n\t\tscrollPane.setViewportView(table);\n\t\t\n\n\t btnSearch.setText(\"Search\");\n\t btnSearch.addActionListener(new java.awt.event.ActionListener() {\n\t public void actionPerformed(java.awt.event.ActionEvent evt) {\n\t btnSearchActionPerformed(evt);\n\t }\n\t });\n\n\t \n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n tableResult = new javax.swing.JTable();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Histórico Parcelas a Liberar\");\n\n tableResult.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Valor\", \"Data Vencimento\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class\n };\n boolean[] canEdit = new boolean [] {\n false, false\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(tableResult);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 333, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n pack();\n }", "private void refreshTable() {\n dataPanel.getModel().setRowCount(0);\n try {\n ResultSet resultSet = reg.get();\n while (resultSet.next()) {\n dataPanel.getModel().addRow(new Object[]{\n resultSet.getInt(\"id\"),\n resultSet.getString(\"first_name\"),\n resultSet.getString(\"last_name\"),\n resultSet.getString(\"username\"),\n resultSet.getString(\"password\"),\n resultSet.getInt(\"age\"),\n resultSet.getString(\"gender\"),\n });\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "private void mostrar() {\n //DefaultTableModel m = new DefaultTableModel();\n m = new DefaultTableModel(){\n @Override\n public boolean isCellEditable(int row, int column) {\n if (column==6) {\n return true;\n }else{\n return false;\n }\n }\n \n };\n tr = new TableRowSorter(m);\n m.setColumnCount(0);\n m.addColumn(\"Id\");\n m.addColumn(\"Nombre\");\n m.addColumn(\"Apellido\");\n m.addColumn(\"Direccion\");\n m.addColumn(\"Correo\");\n m.addColumn(\"Clave\");\n for (ClienteVO cvo : cdao.consultarTabla()) {\n m.addRow(new Object[]{cvo.getId_cliente(),cvo.getNombre_cliente(),cvo.getApellido_cliente(),cvo.getDireccion_cliente(),cvo.getCorreo_cliente(),cvo.getClave_cliente()});\n }\n vista.tblClientes.setModel(m);\n vista.tblClientes.setRowSorter(tr);\n }", "public void showData(){\n listName.setText(this.listName);\n listDescription.setText(this.description);\n Double Total = Lists.getInstance().getLists(this.listName).getTotal();\n listTotal.setText(pending.toString());\n\n this.data = FXCollections.observableArrayList(Lists.getInstance().getLists(this.listName).getItems());\n articleColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"name\")\n );\n quantityColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"quantity\")\n );\n priceColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"price\")\n );\n totalColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"total\")\n );\n stateColumn.setCellValueFactory(\n new PropertyValueFactory<>(\"state\")\n );\n this.itemsTable.setItems(data);\n\n }", "public void afficherLru() {\n\t\tint nbrCols = listEtape.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<Processus> list: listEtape) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\t\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\n\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtape.size();i++) {\n\t\t\tArrayList<Processus> list = listEtape.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\tProcessus p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + p.getValue());\n\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\n\t}", "public void refreshGUI() {\n try {\n // get all clerk theough the DAO to a tempory List\n List<Clerk> clerkList = clerkDAO.getAllClerk();\n\n // create the model and update the \"table\"\n ClerkTableModel model = new ClerkTableModel(clerkList);\n table.setModel(model);\n\n } catch (Exception exc) {\n JOptionPane.showMessageDialog(ClerkViewer.this, \"Error: \" + exc, \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void showFinalResults(){\r\n\r\n System.out.println(\"Player\\t\\t:\\t\\tPoints\");\r\n for(Player player : this.sortedPlayers){\r\n System.out.println(player.toString());\r\n }\r\n System.out.println();\r\n }", "public void showrecode(){\n try {\n stmt = conn.createStatement();\n String sql = \"SELECT * FROM `student`\";\n ResultSet res = stmt.executeQuery(sql);\n jTable1.setModel(DbUtils.resultSetToTableModel(res));\n \n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n } \n }", "private void populateTable() {\n Collections.sort(this.player.arr, new SortByLevel());\n achievementLabel.setText(player.toString() + \" at \" + new SimpleDateFormat(\"dd/MM/yy HH:mm:ss\").format(new Date()));\n for(int i = 0; i < this.player.arr.size(); i++) {\n Achievement temp = this.player.arr.get(i);\n resultsTable.addRow(new Object[] {temp.getDescription(), temp.getLevel(), temp.getOutOfPossible()});\n }\n }", "private void buildTablePanel() {\n \t\tJPanel panel = new JPanel();\n \t\t\n \t\t// settings:\n \t\theader.setReorderingAllowed(false); // no moving.\n \t\ttable.setColumnSelectionAllowed(true);\n \t\ttable.setRowSelectionAllowed(true);\n \t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n \t\t\n \t\theader.addMouseListener(tableModel.new SortColumnAdapter());\n \t\t\t\n \t\tTableCellRenderer renderer = new TableCellRenderer() {\n \n \t\t\tJLabel label = new JLabel();\n \t\t\t\n \t\t\t@Override\n \t public JComponent getTableCellRendererComponent(JTable table,\n \t Object value, boolean isSelected, boolean hasFocus,\n \t int row, int column) {\n \t \n \t\t\t\tif (table.isRowSelected(row)) {\n \t\t\t\t\tlabel.setBackground(Color.RED);\n \t\t\t\t} else {\n \t\t\t\t\tlabel.setBackground(UIManager.getColor(\"Table.background\"));\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tlabel.setOpaque(true);\n \t\t\t\tlabel.setText(\"\" + value);\n \t\t\t\t\n \t return label;\n \t }\n \n \t };\n \t table.setDefaultRenderer(Object.class, renderer);\n \t \n \t JScrollPane scroll = new JScrollPane(table);\n \t\t\n \t\tpanel.setLayout(new BorderLayout(5, 5));\n \t\tpanel.add(scroll, BorderLayout.CENTER);\n \t \n \t add(panel, BorderLayout.CENTER);\n \t}", "private void initGUI() {\r\n this.setLayout(new RiverLayout());\r\n\r\n /**\r\n * Add the following selectively\r\n */\r\n titledSearchResultsPanel = new Cab2bTitledPanel(\"Search Results :- \" + \"Total results ( \"\r\n + allElements.size() + \" )\");\r\n GradientPaint gp = new GradientPaint(new Point2D.Double(.05d, 0), new Color(185, 211, 238),\r\n new Point2D.Double(.95d, 0), Color.WHITE);\r\n titledSearchResultsPanel.setTitlePainter(new BasicGradientPainter(gp));\r\n titledSearchResultsPanel.setBorder(new EmptyBorder(0, 0, 0, 0));\r\n titledSearchResultsPanel.setTitleFont(new Font(\"SansSerif\", Font.BOLD, 11));\r\n titledSearchResultsPanel.setTitleForeground(Color.BLACK);\r\n\r\n pagination = initPagination(allElements);\r\n\r\n searchResultsPanel = new Cab2bPanel(new BorderLayout(0, 5));\r\n\r\n Cab2bComboBox serviceURLCombo = new Cab2bComboBox(serviceURLComboContents);\r\n serviceURLCombo.setPreferredSize(new Dimension(250, 20));\r\n serviceURLCombo.addActionListener(new ServiceURLSelectionListener());\r\n Cab2bPanel comboContainer = new Cab2bPanel(new RiverLayout(5, 5));\r\n \r\n JLabel jLabel = new JLabel(\"Results From\");\r\n jLabel.setForeground(new Cab2bHyperlink().getUnclickedColor());\r\n \r\n \r\n comboContainer.add(\"left\", jLabel);\r\n comboContainer.add(\"tab\", serviceURLCombo);\r\n\r\n searchResultsPanel.add(BorderLayout.NORTH, comboContainer);\r\n\r\n searchResultsPanel.add(BorderLayout.CENTER, pagination);\r\n initDataListSummaryPanel();\r\n initDataListButtons();\r\n\r\n Cab2bPanel buttonPanel = new Cab2bPanel(new RiverLayout(8, 0));\r\n buttonPanel.add(addToDataListButton);\r\n buttonPanel.add(m_applyAllButton);\r\n searchResultsPanel.add(BorderLayout.SOUTH, buttonPanel);\r\n\r\n m_addSummaryParentPanel = new Cab2bPanel(new BorderLayout());\r\n m_addSummaryParentPanel.add(searchResultsPanel, BorderLayout.CENTER);\r\n m_addSummaryParentPanel.add(myDataListParentPanel, BorderLayout.EAST);\r\n titledSearchResultsPanel.setContentContainer(m_addSummaryParentPanel);\r\n this.add(\"p vfill hfill\", titledSearchResultsPanel);\r\n }", "public void showRowCount()\n {\n // Update the status bar to show the number of matches\n final int totalCount = Codes.getSize();\n final int subCount = subset.getCount();\n \n StringBuilder sb = new StringBuilder(30);\n sb.append(\" Showing \").append(Integer.toString(subCount)).append(\" row\");\n if (subset.getCount() != 1)\n {\n sb.append(\"s\");\n }\n \n if (subCount < totalCount)\n {\n sb.append(\" of \").append(Integer.toString(totalCount));\n }\n \n LogViewer.setStatusBarMessage2(sb.toString());\n }", "public userform() throws SQLException {\n initComponents();\n jComboBox1.setVisible(false);\n jLabel5.setVisible(false);\n jButton1.setEnabled(false);\n jTable1.setAutoCreateRowSorter(true);\n GetData();\n\n }", "public QLDSV() {\n initComponents();\n this.setLocationRelativeTo(null);\n cn = ConnectSQL.ketnoi(\"FPL_DAOTAO\");\n model = (DefaultTableModel) tblShow.getModel();\n loadData();\n display(0);\n tblShow.setRowSelectionInterval(0, 0);\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n usrTable = new javax.swing.JTable();\n retBtn = new javax.swing.JButton();\n\n setPreferredSize(new java.awt.Dimension(472, 341));\n\n usrTable.setModel(new MyTableModel());\n jScrollPane1.setViewportView(usrTable);\n\n retBtn.setText(\"Επιστροφή\");\n retBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n retBtnActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1)\n .addComponent(retBtn, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 290, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(retBtn)\n .addContainerGap())\n );\n }", "public void repaintToShowAllAccount(){\n\t\tIRBS irbs = new IRBS();\n\t\taccountTable.setModel(irbs.viewAllAccount());\n\t\ttry {\n\t\t\tirbs.getCon().close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\r\n\t\tfrmProjectManagment = new JFrame();\r\n\t\tfrmProjectManagment.getContentPane().setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tfrmProjectManagment.getContentPane().setForeground(Color.WHITE);\r\n\t\tfrmProjectManagment.setForeground(Color.WHITE);\r\n\t\tfrmProjectManagment.setBackground(Color.WHITE);\r\n\t\tfrmProjectManagment.setTitle(\"Project Managment\");\r\n\t\tfrmProjectManagment.setBounds(100, 100, 994, 612);\r\n\t\tfrmProjectManagment.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\r\n\t\tJButton ShowData = new JButton(\"Show Data\");\r\n\t\tShowData.setBounds(41, 172, 166, 37);\r\n\t\tShowData.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tString query =\"SELECT * FROM Project_Managment_DB\";\r\n\t\t\t\t\tPreparedStatement pst = conn.prepareStatement(query);\r\n\t\t\t\t\tResultSet rs = pst.executeQuery();\r\n\t\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e)\r\n\t\t\t\t{\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\tfrmProjectManagment.getContentPane().setLayout(null);\r\n\t\tShowData.setForeground(new Color(128, 0, 0));\r\n\t\tShowData.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tfrmProjectManagment.getContentPane().add(ShowData);\r\n\t\t\r\n\t\tscrollPane = new JScrollPane();\r\n\t\tscrollPane.setBounds(43, 220, 914, 319);\r\n\t\tfrmProjectManagment.getContentPane().add(scrollPane);\r\n\t\t\r\n\t\ttable = new JTable();\r\n\t\ttable.setSurrendersFocusOnKeystroke(true);\r\n\t\ttable.setShowVerticalLines(false);\r\n\t\ttable.setShowHorizontalLines(false);\r\n\t\ttable.setForeground(Color.BLACK);\r\n\t\ttable.setFillsViewportHeight(true);\r\n\t\ttable.setColumnSelectionAllowed(true);\r\n\t\ttable.setCellSelectionEnabled(true);\r\n\t\ttable.setBorder(null);\r\n\t\ttable.setBackground(new Color(253, 245, 230));\r\n\t\tscrollPane.setViewportView(table);\r\n\t\t\r\n\t\tJLabel lblProjectName = new JLabel(\"Project Name\");\r\n\t\tlblProjectName.setBounds(46, 16, 116, 37);\r\n\t\tlblProjectName.setForeground(new Color(128, 0, 0));\r\n\t\tlblProjectName.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblProjectName);\r\n\t\t\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setBounds(150, 22, 138, 26);\r\n\t\tfrmProjectManagment.getContentPane().add(textField);\r\n\t\ttextField.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblTaskName = new JLabel(\"Task Name\");\r\n\t\tlblTaskName.setBounds(46, 49, 116, 37);\r\n\t\tlblTaskName.setForeground(new Color(128, 0, 0));\r\n\t\tlblTaskName.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblTaskName);\r\n\t\t\r\n\t\tJLabel lblDuration = new JLabel(\"Duration\");\r\n\t\tlblDuration.setBounds(392, 52, 116, 37);\r\n\t\tlblDuration.setForeground(new Color(128, 0, 0));\r\n\t\tlblDuration.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblDuration);\r\n\t\t\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setBounds(150, 58, 138, 26);\r\n\t\ttextField_1.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_1);\r\n\t\t\r\n\t\ttextField_2 = new JTextField();\r\n\t\ttextField_2.setBounds(483, 60, 123, 26);\r\n\t\ttextField_2.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_2);\r\n\t\t\r\n\t\tlblStartDate = new JLabel(\"Start Date\");\r\n\t\tlblStartDate.setBounds(392, 16, 116, 37);\r\n\t\tlblStartDate.setForeground(new Color(128, 0, 0));\r\n\t\tlblStartDate.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblStartDate);\r\n\t\t\r\n\t\tlblEndDate = new JLabel(\"End Date\");\r\n\t\tlblEndDate.setBounds(392, 89, 116, 37);\r\n\t\tlblEndDate.setForeground(new Color(128, 0, 0));\r\n\t\tlblEndDate.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblEndDate);\r\n\t\t\r\n\t\ttextField_3 = new JTextField();\r\n\t\ttextField_3.setBounds(483, 22, 123, 26);\r\n\t\ttextField_3.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_3);\r\n\t\t\r\n\t\ttextField_4 = new JTextField();\r\n\t\ttextField_4.setBounds(483, 100, 123, 26);\r\n\t\ttextField_4.setEnabled(false);\r\n\t\ttextField_4.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_4);\r\n\t\t\r\n\t\tlblPhaseName = new JLabel(\"Task ID\");\r\n\t\tlblPhaseName.setBounds(46, 91, 116, 37);\r\n\t\tlblPhaseName.setForeground(new Color(128, 0, 0));\r\n\t\tlblPhaseName.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblPhaseName);\r\n\t\t\r\n\t\ttextField_6 = new JTextField();\r\n\t\ttextField_6.setBounds(150, 97, 138, 26);\r\n\t\ttextField_6.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_6);\r\n\t\t\r\n\t\ttextField_5 = new JTextField();\r\n\t\ttextField_5.setBounds(729, 58, 123, 59);\r\n\t\ttextField_5.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_5);\r\n\t\t\r\n\t\tlblPhaseName_1 = new JLabel(\"Description\");\r\n\t\tlblPhaseName_1.setBounds(639, 52, 116, 37);\r\n\t\tlblPhaseName_1.setForeground(new Color(128, 0, 0));\r\n\t\tlblPhaseName_1.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblPhaseName_1);\r\n\t\t\r\n\t\tJButton btnAddProject = new JButton(\"Add/Save \");\r\n\t\tbtnAddProject.setBounds(234, 172, 166, 37);\r\n\t\tbtnAddProject.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tint x;\r\n\t\t\t\t\tString value= null;\r\n\t\t\t\t\tx=SearchTable();\r\n\t\t\t\t\tboolean Result;\r\n\t\t\t\t\tvalue=textField_6.getText();\r\n\t\t\t\t\t//checkers oc = new checkers();\r\n\t\t\t\t\t//Result = oc.check(value);\r\n\t\t\t\t\t\r\n\t\t\t\t\t try{\r\n\t\t\t\t\t Integer.parseInt(value);\r\n\t\t\t\t\t Result =true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t catch (Exception e2){\r\n\t\t\t\t\t Result =false;\r\n\t\t\t\t\t}String value5=textField_2.getText();\r\n\t\t\t\t\tboolean resultA =isDigit(value5);\r\n\t\t\t\t\tif((Result== true)&&(resultA==true)){\r\n\t\t\t\t\tif(x!=1)\r\n\t\t\t\t\t{String query =\"INSERT INTO Project_Managment_DB (ProjectName,TaskName,Duration,StartDate,EndDate,Description,TaskID,PreTask) VALUES (?,?,?,?,?,?,?,?)\";\r\n\t\t\t\t\tPreparedStatement pst = conn.prepareStatement(query);\r\n\t\t\t\t\tString value1=EndDateValue();\r\n\t\t\t\t\tString result =textField_4.getText();\r\n\t\t\t\t\tboolean value2 = isInteger(result);\r\n\t\t\t\t\tif((value1!=\"\"||value1!=\"0\")&& value2==true)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttextField_4.setText(value1);\r\n\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(value1==\"\"||value1==\"0\"){textField_4.setText(null); textField_2.setText(null);}\r\n\t\t\t\t\tpst.setString(1, textField.getText());\r\n\t\t\t\t\tpst.setString(2, textField_1.getText());\r\n\t\t\t\t\tpst.setString(3, textField_2.getText());\r\n\t\t\t\t\tpst.setString(4, textField_3.getText());\r\n\t\t\t\t\tpst.setString(5, textField_4.getText());\r\n\t\t\t\t\tpst.setString(6, textField_5.getText());\r\n\t\t\t\t\tpst.setString(7, textField_6.getText());\r\n\t\t\t\t\tpst.setString(8, textField_8.getText());\r\n\t\t\t\t\t//ResultSet rs = pst.executeQuery();\r\n\t\t\t\t\tpst.execute();\r\n\t\t\t\t\tpst.close();\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Data Saved\");\r\n\t\t\t\t\trefreshTable();}\r\n\t\t\t\t\telse \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"This data is entered before.\");\r\n\t\t\t\t\t}\r\n\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\tJOptionPane.showMessageDialog(null,\"There is sth wrong in the values entered pls re-check it.\");\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\tcatch(Exception e1)\r\n\t\t\t\t{\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\tbtnAddProject.setForeground(new Color(128, 0, 0));\r\n\t\tbtnAddProject.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tfrmProjectManagment.getContentPane().add(btnAddProject);\r\n\t\t\r\n\t\tJButton btnDelete = new JButton(\"Delete\");\r\n\t\tbtnDelete.setBounds(431, 172, 166, 37);\r\n\t\tbtnDelete.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tint x;\r\n\t\t\t\t\tx= SearchTable();\r\n\t\t\t\t\tString value = null;\r\n\t\t\t\t\tboolean Result;\r\n\t\t\t\t\tvalue=textField_6.getText();\r\n\t\t\t\t\t//checkers oc = new checkers();\r\n\t\t\t\t\t//Result = oc.check(value);\r\n\t\t\t\t\t//boolean XA;\r\n\t\t\t\t\t//JOptionPane.showMessageDialog(null,Result);\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t Integer.parseInt(value);\r\n\t\t\t\t\t Result= true;}\r\n\t\t\t\t\tcatch (Exception e2){\r\n\t\t\t\t\t Result =false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(Result==true){\r\n\t\t\t\t\tif(x!=0){String query =\"DELETE FROM Project_Managment_DB WHERE TaskID='\"+textField_6.getText()+\"'\";\r\n\t\t\t\t\tPreparedStatement pst = conn.prepareStatement(query);\r\n\t\t\t\t\t//ResultSet rs = pst.executeQuery();\r\n\t\t\t\t\tpst.execute();\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Data Deleted\");\r\n\t\t\t\t\t//JOptionPane.showMessageDialog(null,value);\r\n\t\t\t\t\t\r\n\t\t\t\t\trefreshTable();\r\n\t\t\t\t\tpst.close();}\r\n\t\t\t\t\telse{JOptionPane.showMessageDialog(null,\"Data is invalied\");}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{JOptionPane.showMessageDialog(null,\" TaskID entered contains characters or Null.\");}\r\n\t\t\t\t\t}\r\n \r\n\t\t\t\tcatch(Exception e1)\r\n\t\t\t\t{\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\tbtnDelete.setForeground(new Color(128, 0, 0));\r\n\t\tbtnDelete.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tfrmProjectManagment.getContentPane().add(btnDelete);\r\n\t\t\r\n\t\tbtnUpdate = new JButton(\"Update\");\r\n\t\tbtnUpdate.setBounds(623, 172, 166, 37);\r\n\t\tbtnUpdate.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tint x;\r\n\t\t\t\t\tx=SearchTable();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(x==1){\r\n\t\t\t\t\tString query=null;\r\n\t\t\t\t\tString query1=null;\r\n\t\t\t\t\tString query2=null;\r\n\t\t\t\t\tString query3=null;\r\n\t\t\t\t\tString query4=null;\r\n\t\t\t\t\tString query5=null;\r\n\t\t\t\t\tString query6=null;\r\n\t\t\t\t\tString query7=null;\r\n\t\t\t\t\tString query8=null;\r\n\t\t\t\t\tif(!textField.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tquery =\" Update Project_Managment_DB set ProjectName='\"+textField.getText()+\"' where TaskID='\"+textField_6.getText()+\"';\";\r\n\t\t\t\t\t\tPreparedStatement pst= conn.prepareStatement(query);\r\n\t\t\t\t\t\tpst.execute();\r\n\t\t\t\t\t\tpst.close();\r\n\t\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\tif(!textField_1.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tquery1 =\" Update Project_Managment_DB set TaskName='\"+textField_1.getText()+\"' where TaskID='\"+textField_6.getText()+\"';\";\r\n\t\t\t\t\t\tPreparedStatement pst1= conn.prepareStatement(query1);\r\n\t\t\t\t\t\tpst1.executeUpdate();\r\n\t\t\t\t\t\tpst1.close();\r\n\t\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\tif(!textField_2.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tquery2 =\" Update Project_Managment_DB set Duration='\"+textField_2.getText()+\"' where TaskID='\"+textField_6.getText()+\"'; \";\r\n\t\t\t\t\t\tPreparedStatement pst2= conn.prepareStatement(query2);\r\n\t\t\t\t\t\tpst2.execute();\r\n\t\t\t\t\t\tpst2.close();\r\n\t\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\tif(!textField_3.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t query3 =\" Update Project_Managment_DB set StartDate='\"+textField_3.getText()+\"' where TaskID='\"+textField_6.getText()+\"' \";\r\n\t\t\t\t\t PreparedStatement pst3= conn.prepareStatement(query3);\r\n\t\t\t\t\t\tpst3.execute();\r\n\t\t\t\t\t\tpst3.close();\r\n\t\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\tif(!textField_4.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t query4 =\" Update Project_Managment_DB set EndDate='\"+textField_4.getText()+\"' where TaskID='\"+textField_6.getText()+\"' \";\r\n\t\t\t\t\t PreparedStatement pst4= conn.prepareStatement(query4);\r\n\t\t\t\t\t\tpst4.execute();\r\n\t\t\t\t\t\tpst4.close();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!textField_5.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tquery5 =\" Update Project_Managment_DB set Description='\"+textField_5.getText()+\"' where TaskID='\"+textField_6.getText()+\"'\";\r\n\t\t\t\t\t\tPreparedStatement pst5= conn.prepareStatement(query5);\r\n\t\t\t\t\t\tpst5.execute();\r\n\t\t\t\t\t\tpst5.close();\r\n\t\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\tif(!textField_6.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t query6 =\" Update Project_Managment_DB set TaskID='\"+textField_6.getText()+\"' where TaskID='\"+textField_6.getText()+\"'\";\r\n\t\t\t\t PreparedStatement pst6= conn.prepareStatement(query6);\r\n\t\t\t\t\t\tpst6.execute();\r\n\t\t\t\t\t\tpst6.close();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(!textField_8.getText().isEmpty())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t query8 =\" Update Project_Managment_DB set PreTask='\"+textField_8.getText()+\"' where TaskID='\"+textField_6.getText()+\"' \\n \";\r\n\t\t\t\t\t PreparedStatement pst8= conn.prepareStatement(query8);\r\n\t\t\t\t\t\tpst8.execute();\r\n\t\t\t\t\t\tpst8.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Data Updated\");\r\n\t\t\t\t\trefreshTable();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{JOptionPane.showMessageDialog(null,\"This Task ID is invalied\");}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e1)\r\n\t\t\t\t{\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnUpdate.setForeground(new Color(128, 0, 0));\r\n\t\tbtnUpdate.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tfrmProjectManagment.getContentPane().add(btnUpdate);\r\n\t\t\r\n\t\tlblPrePhase = new JLabel(\"Pre Task\");\r\n\t\tlblPrePhase.setBounds(639, 16, 116, 37);\r\n\t\tlblPrePhase.setForeground(new Color(128, 0, 0));\r\n\t\tlblPrePhase.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 18));\r\n\t\tfrmProjectManagment.getContentPane().add(lblPrePhase);\r\n\t\t\r\n\t\ttextField_8 = new JTextField();\r\n\t\ttextField_8.setBounds(729, 22, 123, 26);\r\n\t\ttextField_8.setColumns(10);\r\n\t\tfrmProjectManagment.getContentPane().add(textField_8);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\" *P.S:Only TaskID needed in search or delete the data.\");\r\n\t\tlblNewLabel.setBounds(41, 132, 565, 29);\r\n\t\tlblNewLabel.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tlblNewLabel.setForeground(new Color(128, 0, 0));\r\n\t\tfrmProjectManagment.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\t\r\n\t\tJButton SearchData = new JButton(\"Search on Data\");\r\n\t\tSearchData.setBounds(808, 172, 166, 37);\r\n\t\tSearchData.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tint x;\r\n\t\t\t\t\tx=SearchTable();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(x==1){\r\n\t\t\t\t\tString query =\"SELECT * FROM Project_Managment_DB where TaskID='\"+textField_6.getText()+\"'\";\r\n\t\t\t\t\tPreparedStatement pst = conn.prepareStatement(query);\r\n\t\t\t\t\tResultSet rs = pst.executeQuery();\r\n\t\t\t\t\ttable.setModel(DbUtils.resultSetToTableModel(rs));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{JOptionPane.showMessageDialog(null,\"This Task ID is invalied\");}\r\n\t\t\t\t}\r\n\t\t\t\tcatch(Exception e)\r\n\t\t\t\t{\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\tSearchData.setForeground(new Color(128, 0, 0));\r\n\t\tSearchData.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tfrmProjectManagment.getContentPane().add(SearchData);\r\n\t\t\r\n\t\tJButton btnResources = new JButton(\"Resources\");\r\n\t\tbtnResources.setBounds(623, 128, 166, 33);\r\n\t\tbtnResources.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tResources R=new Resources();\r\n\t\t\t\tR.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnResources.setFont(new Font(\"Buxton Sketch\", Font.BOLD, 19));\r\n\t\tbtnResources.setForeground(new Color(128, 0, 0));\r\n\t\tfrmProjectManagment.getContentPane().add(btnResources);\r\n\t}", "public void fillResultsBox(){\n\n //reset the text box and add the header\n resultList.setText(\"\");\n resultList.append(\"Item \\t Win \\t Loss \\t Tie \\n\");\n\n //generate a list of ranked results for the current user\n generateResultsList();\n\n //for each item in the unranked item list, print the highest ranked item and remove it from the ranked item list\n for (TestItem testItem: testItems){\n printAndDeleteHighestItem();\n }\n }", "public void displaySearchQueryResult(ResultSet result) {\n try {\n // if there are no result\n if (!result.isBeforeFirst()) {\n displayNotificationMessage(\"No Result Found.\");\n resultPane.setContent(new GridPane());\n return;\n }\n\n // clear the userMessage area\n userMessage.setText(\"\");\n resultPane.setContent(createSearchResultArea(result));\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"Statistic\");\n\t\tframe.setResizable(false);\n\t\tframe.setBounds(100, 100, 500, 350);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tdmodel = new DefaultTableModel();\n\t\tinitTable(dmodel);\n\n\t\ttable = new JTable();\n\t\ttable.setModel(dmodel);\n\t\ttable.getColumnModel().getColumn(3).setPreferredWidth(200);\n\n\t\tscrollPane = new JScrollPane(table);\n\t\tscrollPane.setBounds(27, 105, 438, 164);\n\t\tframe.getContentPane().add(scrollPane);\n\n\t\tlblStatistic = new JLabel(\"Statistic\");\n\t\tlblStatistic.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 22));\n\t\tlblStatistic.setBounds(207, 6, 88, 42);\n\t\tframe.getContentPane().add(lblStatistic);\n\n\t\tlblRevenueAtDate = new JLabel(\"Revenue at date\");\n\t\tlblRevenueAtDate.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 18));\n\t\tlblRevenueAtDate.setBounds(27, 77, 147, 16);\n\t\tframe.getContentPane().add(lblRevenueAtDate);\n\n\t\ttxtDate = new JTextField();\n\t\ttxtDate.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 18));\n\t\ttxtDate.setBounds(186, 73, 129, 20);\n\t\tframe.getContentPane().add(txtDate);\n\t\ttxtDate.setColumns(20);\n\n\t\tbtnSelectDate = new JButton(\"...\");\n\t\tbtnSelectDate.setBounds(327, 70, 27, 23);\n\t\tbtnSelectDate.addActionListener((e) -> {\n\t\t\tjframe = new JFrame();\n\t\t\ttxtDate.setText(new DatePickerUI(jframe).setPickedDate());\n\t\t\tdisplayStatistic(ProductsSales.getInstance());\n\t\t});\n\t\tframe.getContentPane().add(btnSelectDate);\n\n\t\tlblTotal = new JLabel(\"Total\");\n\t\tlblTotal.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 25));\n\t\tlblTotal.setBounds(51, 281, 71, 34);\n\t\tframe.getContentPane().add(lblTotal);\n\n\t\tlabelShowTotal = new JLabel(\"0.00\");\n\t\tlabelShowTotal.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 25));\n\t\tlabelShowTotal.setBounds(148, 281, 206, 30);\n\t\tlabelShowTotal.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tframe.getContentPane().add(labelShowTotal);\n\n\t\tbtnClose = new JButton(\"Close\");\n\t\tbtnClose.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 25));\n\t\tbtnClose.setBounds(366, 281, 99, 34);\n\t\tbtnClose.addActionListener((e) -> {\n\t\t\tclose();\n\t\t});\n\t\tframe.getContentPane().add(btnClose);\n\t}" ]
[ "0.7071775", "0.7043903", "0.6920581", "0.6908832", "0.6863246", "0.68102896", "0.6796053", "0.6768041", "0.66385806", "0.66379046", "0.6624407", "0.6608986", "0.65936023", "0.65766364", "0.6573942", "0.6559252", "0.65425074", "0.6507295", "0.64986306", "0.6492511", "0.6472293", "0.6454097", "0.6442895", "0.64370024", "0.6435678", "0.63631326", "0.63594043", "0.63562363", "0.6355455", "0.63402325", "0.6328972", "0.63239056", "0.6317295", "0.6311313", "0.6296204", "0.62913513", "0.6289026", "0.62802684", "0.6270977", "0.6266863", "0.6252707", "0.6248495", "0.6244599", "0.62215453", "0.62193125", "0.6216249", "0.6213975", "0.62123364", "0.61998445", "0.6188473", "0.61790854", "0.6177278", "0.6158511", "0.61506313", "0.6148662", "0.6143603", "0.6142657", "0.6140363", "0.6138974", "0.6128157", "0.61272806", "0.6106329", "0.6083249", "0.6080444", "0.60796034", "0.6077845", "0.60751915", "0.60730165", "0.6072824", "0.60615057", "0.6059297", "0.60573137", "0.6041235", "0.602892", "0.60121226", "0.6008165", "0.6003738", "0.5997077", "0.5996567", "0.59943205", "0.5992722", "0.59876895", "0.5984474", "0.59643745", "0.59624135", "0.5960888", "0.5957477", "0.59573984", "0.59530705", "0.5944483", "0.592272", "0.5918814", "0.5916205", "0.59133023", "0.5910799", "0.58921415", "0.5889197", "0.58879846", "0.58859926", "0.5884786", "0.5883391" ]
0.0
-1
Clean up and deallocate DB and GUI resources.
public final void dispose() { try { if (resultSet != null) resultSet.close(); } catch(SQLException e) { e.printStackTrace(); } resultSet = null; try { if (stmt != null) stmt.close(); } catch(SQLException e) { e.printStackTrace(); } stmt = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void destroy() {\n closeSqlDbConnections();\n\n\n }", "@Override\n public void cleanup() {\n // dispose GUI:\n if (this.mainPanel != null) {\n this.mainPanel.dispose();\n }\n }", "public final void cleanUp() {\n\t\tmgdmfunctions = null;\n\t\tmgdmlabels = null;\n\t\theap.finalize();\n\t\theap = null;\n\t\tSystem.gc();\n\t}", "@Override\n public void destroy() {\n // destroy any persistent resources\n // such as thread pools or persistent connections\n }", "@After\n\tpublic void cleanUp() {\n\t\tsuper.unload();\n\n\t\t// shutdown the database\n\t\tif (db != null) {\n\t\t\tdb.shutDownDb();\n\t\t}\n\t\tassertTrue(Files.deleteDir(tmpDir));\n\t}", "@After\n\tpublic void cleanUp() {\n\t\tif (model != null) {\n\t\t\tmodel.release(true);\n\t\t\tloader.unloadAll();\n\t\t}\n\t}", "public void destroy() {\n processeddatasetDataProvider_tier.close();\n filebranchDataProvider_search.close();\n storageelementDataProvider_search.close();\n runsDataProvider_search.close();\n primarydatasetDataProvider_saerch.close();\n datatierDataProvider_search.close();\n algorithmconfigDataProvider_search.close();\n }", "@Override\n\tpublic void destroy() {\n\t\ttry {\n//\t\t\tif(stmt!=null&&!stmt.isClosed()){\n//\t\t\t\tstmt.close();\n//\t\t\t}\n\t\t\tif(conn!=null&&conn.isClosed()){\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tsuper.destroy();\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t//destroy all running hardware/db etc.\n\t}", "public void destroy() {\n\t\ttry {\n\t\t\tdestroy(10000);\n\t\t}\n\t\tcatch(SQLException e) {}\n\t}", "public void destroyAllResource() {\r\n\t\ttry {\r\n\t\t\tif(outrs != null){\r\n\t\t\t\toutrs.close();\r\n\t\t\t\toutrs=null;\r\n\t\t\t}\r\n\t\t\tif(outstmt != null ){\r\n\t\t\t\toutstmt.close();\r\n\t\t\t\toutstmt=null;\r\n\t\t\t} \r\n\t\t\tif (dbConnection != null){\r\n\t\t\t\tdbConnection.close();\r\n\t\t\t\tdbConnection=null;\r\n\t\t\t} \r\n\t\t}catch (SQLException ex) {\r\n\t\t}\r\n\t}", "public void cleanUp();", "public void cleanUp();", "public void cleanup() {\n mParentLayout.removeView(mContainer);\n mControlsVisible.clear();\n }", "@Override\n\tprotected void onDestroy() {\n\t\t\n\t\tsuper.onDestroy();\n\t\t\n\t\tcloseDB();\n\t}", "protected void cleanupOnClose() {\n\t}", "@After\n public void destroyDatabase() {\n dbService.closeCurrentSession();\n dbService.getDdlInitializer()\n .cleanDB();\n }", "public void cleanup() {\n\t\tref.removeEventListener(listener);\n\t\tmodels.clear();\n\t\tmodelNames.clear();\n\t\tmodelNamesMapping.clear();\n\t}", "private void cleanUp() {\n\t\tVisualizerView mVisualizerView = MusicApplication.getInstance()\n\t\t\t\t.getVisualizerView();\n\t\tif (mVisualizerView != null) {\n\t\t\tmVisualizerView.updateVisualizer(new byte[] {});\n\t\t}\n\t\t//\t\tif (mCurrentMediaPlayer != null) {\n\t\t//\t\t\tmCurrentMediaPlayer.reset();\n\t\t//\t\t\t//\t\t\tmCurrentMediaPlayer = null;\n\t\t//\t\t\tsetState(IDLE);\n\t\t//\t\t\tcom.dj.util.Log.i(this.getClass().getSimpleName(),\n\t\t//\t\t\t\t\t\" 歌曲停止,释放资源。mCurrentMediaPlayer: \" + mCurrentMediaPlayer);\n\t\t//\t\t\t//\t\t\tcleanEQ();\n\t\t//\t\t}\n\t}", "public void cleanup(){\n try{\n if (this._connection != null){\n this._connection.close ();\n }//end if\n }catch (SQLException e){\n // ignored.\n }//end try\n }", "public void cleanup();", "public void cleanup() {\r\n }", "public void cleanUp() {\r\n\t\temfactory.close();\r\n\t}", "public void cleanUp() {\r\n if(getFunctionType() != VIEW_HIERARCHY)\r\n panel.dispose();\r\n cvGroupsData = null;\r\n cvHierarchyData = null;\r\n cvSortData = null;\r\n sponsorHierarchyBean = null;\r\n sponsorHierarchyTree = null;\r\n model = null;\r\n selectedNode = null;\r\n selTreePath = null;\r\n groupsController = null;\r\n hierarchyRenderer = null;\r\n hierarchyTreeCellEditor = null;\r\n treeDropTarget = null;\r\n panel = null;\r\n editor = null;\r\n changePassword = null;\r\n backGroundColor = null;\r\n maintainSponsorHierarchyBaseWindow = null;\r\n }", "@Override\n public void onDestroy() {\n super.onDestroy();\n closeDB();\n }", "@Override\n\tpublic void cleanUp() {\n\t\t table = null;\n colFam = null;\n currentEvent = null;\n\t}", "public static void cleanUp() {\n\t\tHashDecay.stopAll();\n\t\tSystem.gc();\n\t}", "public void shutdown() {\n\t\tInput.cleanUp();\n\t\tVAO.cleanUp();\n\t\tTexture2D.cleanUp();\n\t\tResourceLoader.cleanUp();\n\t}", "void cleanUp();", "void cleanUp();", "void cleanUp();", "public void cleanup() {\n\t}", "@Override\n public void destroy() {\n // clean up any resources created by initialize\n }", "private void cleanup() {\n mCategory = null;\n mAccount = null;\n mCal = null;\n\n /* Reset value */\n etAmount.setText(\"\");\n tvCategory.setText(\"\");\n tvPeople.setText(\"\");\n tvDescription.setText(\"\");\n tvAccount.setText(\"\");\n tvEvent.setText(\"\");\n }", "public void cleanup() {\n }", "public void destroy() {\n destroyFingerprintSDK();\n //destroyDB();\n }", "private static void clearDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n clearTable(\"myRooms\");\n clearTable(\"myReservations\");\n }", "public void cleanUp() {\r\n\t\tsuper.cleanUp() ;\r\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 destroy(){\n if(myConnection != null){\n try{\n myConnection.close();\n }\n catch(SQLException e ){\n System.out.println(e);\n }\n }\n }", "@Override\n\tpublic void cleanUp() {\n\t\tofferingStrategy = null;\n\t\tacceptConditions = null;\n\t\topponentModel = null;\n\t\tnegotiationSession = null;\n\t\tutilitySpace = null;\n\t\tdagent = null;\n\t}", "public void destroy() {\n this.bfc.cleanUp();\n }", "private void cleanUp() {\n System.out.println(\"ConnectionHandler: ... cleaning up and exiting ...\");\n try {\n br.close();\n is.close();\n conn.close();\n log.close();\n } catch (IOException ioe) {\n System.err.println(\"ConnectionHandler:cleanup: \" + ioe.getMessage());\n }\n }", "@Override\n\tpublic void closeAndCleanupAllData() throws Exception {\n\t\tclose();\n\t}", "public void dispose() {\n if (systemDbImporter != null && systemDbImporter.isEnabled()) {\n systemDbImporter.shutdown();\n }\n\n if (context instanceof OServerAware) {\n if (((OServerAware) context).getDistributedManager() != null) {\n ((OServerAware) context).getDistributedManager().unregisterLifecycleListener(this);\n }\n }\n\n Orient.instance().removeDbLifecycleListener(this);\n\n if (globalHook != null) {\n globalHook.shutdown(false);\n globalHook = null;\n }\n\n if (retainTask != null) {\n retainTask.cancel();\n }\n\n if (timer != null) {\n timer.cancel();\n }\n }", "public void destroy() {\n analysisdsfilelumiDataProvider.close();\n }", "private void cleanupResources() {\n Log.d(TAG, \"Initiating resource cleanup\");\n if (mWorkerThread != null) {\n mWorkerThread.quitSafely();\n try {\n mWorkerThread.join();\n mWorkerThread = null;\n } catch (InterruptedException e) {\n Log.e(TAG, \"Failed to join on mWorkerThread\");\n }\n }\n //mListener = null;//Release later when being finalized\n mDisplayHandler = null;\n mERDHandler = null;\n mContext = null;\n surface = null;\n mIface = null;\n mLocalWfdDevice = null;\n mPeerWfdDevice = null;\n mActionListener = null;\n Log.d(TAG, \"Done with resource cleanup\");\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tdb.close();\t\r\n\t}", "public void closeDB() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t\tconn = null;\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Failed to close database connection: \" + e);\n\t\t}\n\t}", "public void closeAndDeleteDB() {\n\t\tboolean gotSQLExc = false;\n\t\ttry {\n\t\t\tthis.deleteAllTable();\n\t\t\tconn.close();\n //DriverManager.getConnection(\"jdbc:derby:;shutdown=true\"); \n \n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tif (e.getSQLState().equals(\"XJ015\") ) {\t\t\n\t gotSQLExc = true;\n\t } else e.printStackTrace();\n\t\t}\n//\t\t\n//\t\tif (!gotSQLExc) {\n//\t \t System.out.println(\"Database did not shut down normally\");\n//\t } else {\n//\t System.out.println(\"Database shut down normally\");\t\n//\t }\n\t\t\n\t}", "protected void cleaningUp() {\n\t}", "protected void finalize(){\n \ttry {\n\t\t\tdatabase.doDisconnect();\n\t\t} catch (SQLException e) {\n\t\t}\n }", "public void dispose() {\n\t\tSet<IRI> ids = new HashSet<IRI>(getModelIds());\n\t\tfor (IRI id : ids) {\n\t\t\tunlinkModel(id);\n\t\t}\n\t}", "public static void closeDatabase() {\n if (instance != null) {\n instance.kill();\n instance = null;\n }\n }", "@Override\n public void destroy()\n {\n if(conn != null)\n try {\n conn.close();\n } catch (SQLException ex) {\n\n }\n }", "public void dispose() {\r\n _isdisposed=true;\r\n try {\r\n _tables.dispose(); _tables=null;\r\n finalize();\r\n DataSet _current=this;\r\n _current=null; System.gc();\r\n }\r\n catch (Throwable ex) {\r\n throw new RuntimeException(ex.getMessage());\r\n }\r\n }", "public void destroy() {\n\t\ttermMap = null;\n\t\tdoc = null;\n\t}", "@After\n public void clearup() {\n try {\n pm.close();\n DriverManager.getConnection(\"jdbc:derby:memory:test_db;drop=true\");\n } catch (SQLException se) {\n if (!se.getSQLState().equals(\"08006\")) {\n // SQLState 08006 indicates a success\n se.printStackTrace();\n }\n }\n }", "public void wipeDB() {\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\tdb.delete(EventDataSQLHelper.TABLE, null, null);\n\t\tdb.close();\n }", "@Override\n\tpublic void onDestroy() {\n\t\tquitAllFocus();\n\t\timg.setImageBitmap(null);\n\t\tclearMemory();\n\t\tsuper.onDestroy();\n\t\ttry {\n\t\t\t//GARBAGE COLLECTOR\n\t\t\tSystem.gc();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "private void cleanDB() {\n // the database will contain a maximum of MAX_DB_SIZE wallpapers (default N=50)\n // when the db gets bigger then N, the oldest wallpapers are deleted from the database\n // the user will set if he wants to delete also the wallpaper or the database entry only\n if (maxDbSize != -1 && getOldWallpapersID().size() > maxDbSize) {\n try (ResultSet rs = db.executeQuery(\"SELECT wp FROM WALLPAPERS ORDER BY date FETCH FIRST 20 PERCENT ROWS ONLY\")) {\n while (!keepWallpapers && rs.next()) {\n Wallpaper wp = (Wallpaper) rs.getObject(\"wp\");\n log.log(Level.FINEST, wp::toString);\n log.log(Level.FINE, () -> \"Cleaning of DB, removing \" + wp.getID());\n\n new File(wp.getPath()).delete();\n }\n db.executeUpdate(\"DELETE FROM WALLPAPERS WHERE id IN (SELECT id FROM WALLPAPERS ORDER BY date fetch FIRST 20 PERCENT rows only)\");\n\n } catch (SQLException throwables) {\n log.log(Level.WARNING, \"Query Error in cleanDB()\");\n log.log(Level.FINEST, throwables.getMessage());\n }\n }\n }", "private void cleanUp(){\n\t\tSSHUtil sSHUtil=(SSHUtil) SpringUtil.getBean(\"sSHUtil\");\n\t\ttry {\n\t\t\tsSHUtil.disconnect();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void freeResources() {\n borderPane = null;\n }", "private void releaseResources(LogbookEntry data) {\n\n if (this.database != null && this.database.isOpen()){\n this.database.close();\n }\n if (this.databaseSchemaHelper != null) {\n this.databaseSchemaHelper.close();\n }\n }", "public void destroy()\n {\n if ( cacheManager == null )\n {\n return;\n }\n\n LOG.info( \"clearing all the caches\" );\n\n cacheManager.close();\n cacheManager = null;\n //cacheManager.clearAll();\n //cacheManager.shutdown();\n }", "final void cleanUp() {\r\n\t\t\tfor (Variable var : varRefs.keySet()) {\r\n\t\t\t\tvar.deleteObserver(this);\r\n\t\t\t}\r\n\t\t\tvarRefs.clear();\r\n\t\t}", "@Override\n\t\tprotected void onDestroy() {\n\t\t\tsuper.onDestroy();\n\t\t\tif(dbHelper!=null&&dbHelper.getReadableDatabase().isOpen())\n\t\t\t{\n\t\t\t\tdbHelper.getReadableDatabase().close();\n\t\t\t\tdbHelper.close();\n\t\t\t}\n\t\t}", "public void dispose() {\n\t\tBusinessObject owner = getOwner();\n\t\tif (owner != null) {\n\t\t\t// remove potential owner's pointer to this\n\t\t\towner.removeChild(this);\n\t\t\t// remove pointer to owner\n\t\t\t_ownerProperty().setValue(null);\n\t\t}\n\t\t\n\t\t// free all children {\n\t\tif (children != null) {\n\t\t\tBusinessObject[] array = new BusinessObject[children.size()];\n\t\t\tchildren.values().toArray(array);\n\t\t\tfor (BusinessObject bo : array) {\n\t\t\t\tbo.dispose();\n\t\t\t}\n\t\n\t\t\tchildren.clear();\n\t\t\tchildren = null;\t// not needed anymore\n\t\t}\n\t\t\n\t\t// remove all link records\n\t\tif (childLinks != null) {\n\t\t\tchildLinks.clear();\n\t\t\tchildLinks = null;\t// not needed anymore\n\t\t}\n\t\tif (childLinkedAttributes != null) {\n\t\t\tchildLinkedAttributes.clear();\n\t\t\tchildLinkedAttributes = null;\n\t\t}\n\t\t\n\t\t// stop anyone from listening to this object\n\t\tlisteners.clear();\n\t}", "private void closeDatabase() {\r\n try {\r\n if ( connect != null ) {\r\n connect.close();\r\n }\r\n } catch ( Exception e ) {\r\n System.err.println( \"ERROR: Could not close database connection, \" + e.getMessage() );\r\n } finally {\r\n connect = null;\r\n }\r\n }", "@Override\n public void cleanUp() {\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tdbAdapter.close();\n\t}", "private void cleanup() {\n\t\tif (myListener!=null)\n\t\t\t_prb.removeListener(myListener);\n\t}", "public void destroyDatabase(){\n \n \t\t//Make sure database exist so you don't attempt to delete nothing\n \t\tmyDB = openOrCreateDatabase(dbFinance, MODE_PRIVATE, null);\n \n \t\t//Make sure database is closed before deleting; not sure if necessary\n \t\tif (myDB != null){\n \t\t\tmyDB.close();\n \t\t}\n \n \t\ttry{\n \t\t\tthis.deleteDatabase(dbFinance);\n \t\t}\n \t\tcatch(Exception e){\n \t\t\tToast.makeText(this, \"Error Deleting Database!!!\\n\\n\" + e, Toast.LENGTH_LONG).show();\n \t\t}\n \n \t\t//Navigate User back to dashboard\n \t\tIntent intentDashboard = new Intent(Options.this, Main.class);\n \t\tintentDashboard.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n \t\tstartActivity(intentDashboard);\n \n \t}", "private void closeDB() {\n/* 29 */ Connection conn = null;\n/* 30 */ PreparedStatement pstmt = null;\n/* 31 */ ResultSet rs = null;\n/* */ \n/* */ try {\n/* 34 */ if (rs != null) rs.close(); \n/* 35 */ if (pstmt != null) pstmt.close(); \n/* 36 */ if (conn != null) conn.close(); \n/* 37 */ System.out.println(\"DB 접속 해제\");\n/* 38 */ } catch (Exception e) {\n/* 39 */ e.printStackTrace();\n/* */ } \n/* */ }", "public void dispose() {\n if (mainDocument != null) {\n mainDocument.dispose();\n }\n\n if (docAttachments != null) {\n for (DocumentItem d : docAttachments) {\n d.dispose();\n }\n\n docAttachments.clear();\n }\n\n if (documentLink != null) {\n documentLink.clear();\n }\n\n contextWidget = null;\n mainDocument = null;\n docAttachments = null;\n documentLink = null;\n callback = null;\n window = null;\n linkedData = null;\n }", "@Override\r\n public void destroy() {\n \tdaoMaterial=null;\r\n \tdaoUsuario=null;\r\n \tsuper.destroy();\r\n }", "public void cleanUp(){\n //Clean up the parent class, i.e. close pipes.\n super.cleanUp();\n }", "protected void cleanup() {\n try {\n if (_in != null) {\n _in.close();\n _in = null;\n }\n if (_out != null) {\n _out.close();\n _out = null;\n }\n if (_socket != null) {\n _socket.close();\n _socket = null;\n }\n } catch (java.io.IOException e) {\n }\n }", "public void cleanUp() {\r\n\t\tscalerStore.cleanUp();\r\n\t\tv2Store.cleanUp();\r\n\t\tv3Store.cleanUp();\r\n\t\tv4Store.cleanUp();\r\n\t\tvnStore.cleanUp();\r\n\t\tm22Store.cleanUp();\r\n\t\tm23Store.cleanUp();\r\n\t\tm24Store.cleanUp();\r\n\t\tm32Store.cleanUp();\r\n\t\tm33Store.cleanUp();\r\n\t\tm34Store.cleanUp();\r\n\t\tm42Store.cleanUp();\r\n\t\tm43Store.cleanUp();\r\n\t\tm44Store.cleanUp();\r\n\t\tmnnStore.cleanUp();\r\n\t}", "public void Clean()\n\t{\n\t\tstorage.clear();\n\t}", "public void destroy()\r\n\t{\r\n\t\tsetRoot(null);\r\n\t\tsetCounter(0);\r\n\t}", "protected void cleanup() throws QTException {\n switch(action) {\n case REMOVE_DRAWING_COMPLETE_PROC:\n MoviePlayer player = (MoviePlayer)needsCleaning[0];\n if (player == null) return;\n Movie movie = player.getMovie();\n movie.removeDrawingCompleteProc();\n player.setGWorld(QDGraphics.scratch);\n needsCleaning[0] = null;\n }\n }", "public void destroy() {\n \ttry{\n \t\tconn1.close();\n \t\tSystem.out.println(\"close\");\n \t}catch(Exception e)\n \t{\n \t\tSystem.out.println(e);\n \t}\n }", "private void close() {\n\t\t\tDB.close(m_rs, m_pstmt);\n\t\t\tm_rs = null;\n\t\t\tm_pstmt = null;\n\t\t}", "public void cleanUp(){\n glDeleteTextures(ID);\n }", "public void cleanup() {\n try {\n resManager.stopVirtualNodes();\n } catch (Exception e) {\n logger.error(ITConstants.TS + \": \" + DEL_VM_ERR, e);\n }\n logger.info(\"Cleanup done\");\n }", "public static synchronized void cleanup() {\n if (defaultDataSourceInitialized) {\n // try to deregister bundled H2 driver\n try {\n final Enumeration<Driver> drivers = DriverManager.getDrivers();\n while (drivers.hasMoreElements()) {\n final Driver driver = drivers.nextElement();\n if (\"org.h2.Driver\".equals(driver.getClass().getCanonicalName())) {\n // deregister our bundled H2 driver\n LOG.info(\"Uninstalling bundled H2 driver\");\n DriverManager.deregisterDriver(driver);\n }\n }\n } catch (Exception e) {\n LOG.warn(\"Failed to deregister H2 driver\", e);\n }\n }\n \n dataSourcesByName.clear();\n for (int i = 0; i < dataSources.length; i++) {\n dataSources[i] = null;\n }\n for (int i = 0; i < dataSourcesNoTX.length; i++) {\n dataSourcesNoTX[i] = null;\n }\n globalDataSource = null;\n testDataSource = null;\n testDataSourceNoTX = null;\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tCleanup();\r\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tSystem.gc();\r\n\t}", "public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}", "@Override\r\n\tpublic void cleanup() {\n\t\t\r\n\t}", "public void dispose() {\n\t\tif (table != null) {\n\t\t\ttable.dispose();\n\t\t\ttable = null;\n\t\t}\n\n\t\tif (cursor != null) {\n\t\t\tcursor.dispose();\n\t\t\tcursor = null;\n\t\t}\n\n\t\tif (clipboard != null) {\n\t\t\tclipboard.dispose();\n\t\t}\n\n\t\tdisposeCommands(undolist);\n\t\tdisposeCommands(redolist);\n\n\t\tencodingTypes = null;\n\t}", "public abstract void cleanUp();", "private void deleteDatabase() {\n mOpenHelper.close();\r\n Context context = getContext();\r\n NoteDatabase.deleteDatabase(context);\r\n mOpenHelper = new NoteDatabase(getContext());\r\n }", "public void close() {\r\n closeDatabase();\r\n }", "public void cleanup() {\r\n\t\tsuper.cleanup();\r\n\t\tfor (int i = 0; i < _composites.size(); i++) {\r\n\t\t\t_composites.get(i).cleanup();\t\r\n\t\t}\r\n\t}", "@Override\n\tpublic final void destroy() {\n\t\tsynchronized (this.connectionMonitor) {\n\t\t\tif (connection != null) {\n\t\t\t\tthis.connection.destroy();\n\t\t\t\tthis.connection = null;\n\t\t\t}\n\t\t}\n\t\treset();\n\t}", "public void cleanup()\n {\n CogTool.delayedWorkMgr.doDelayedWork(true);\n }", "public void dispose() {\n story = null;\n backlog = null;\n parent = null;\n }", "private void clearAllDatabases()\n\t{\n\t\tdb.clear();\n\t\tstudent_db.clear();\n\t}" ]
[ "0.76337594", "0.72059864", "0.7158417", "0.71496886", "0.7142998", "0.71359885", "0.71258235", "0.7083167", "0.7078858", "0.7069283", "0.7050683", "0.70259017", "0.70259017", "0.7013312", "0.6973553", "0.6945631", "0.6943393", "0.68997097", "0.6894707", "0.68888474", "0.6883178", "0.6862643", "0.6826903", "0.6809347", "0.6808951", "0.6808873", "0.6805799", "0.67882293", "0.6778509", "0.6778509", "0.6778509", "0.6769702", "0.6764663", "0.67455435", "0.67406523", "0.6722634", "0.6701401", "0.6685211", "0.66724557", "0.66682774", "0.6666957", "0.6666616", "0.6666245", "0.66603404", "0.6658962", "0.66456556", "0.66297907", "0.66250104", "0.66231924", "0.66198844", "0.66055167", "0.6575516", "0.65740514", "0.6573447", "0.6553536", "0.65499836", "0.6543619", "0.6541605", "0.6541214", "0.65389794", "0.6523533", "0.6519375", "0.6512383", "0.6509849", "0.6506626", "0.6489195", "0.6484387", "0.6482139", "0.64773977", "0.64732766", "0.6470645", "0.6468322", "0.6467647", "0.6456773", "0.6454911", "0.64520806", "0.6428155", "0.6411277", "0.63810176", "0.6378937", "0.6374471", "0.6373436", "0.6371246", "0.63616014", "0.636039", "0.6349044", "0.63449544", "0.6342967", "0.633926", "0.6335211", "0.6326638", "0.6325936", "0.6323469", "0.6323457", "0.6321214", "0.63148737", "0.6313362", "0.6312948", "0.63109624", "0.63091445" ]
0.6385575
78
double val = 9801.0 / ( 2206.0 Math.sqrt(2.0) ); return ""+val;
String RamanujanPIFormula() { double mulFactor = 2.0 * Math.sqrt(2.0) / 9801.0; BigDecimal mulFactorBigDecimal = new BigDecimal( mulFactor ); BigDecimal _4 = new BigDecimal(4); BigDecimal _1103 = new BigDecimal(1103); BigDecimal _26390 = new BigDecimal(26390); BigDecimal _396 = new BigDecimal(396); BigDecimal sum = new BigDecimal(0.0); for(int k=0; k<100; k++) { BigDecimal numer = Factorial( 4*k ).multiply( _1103.add( _26390.multiply( new BigDecimal(k) ) ) ) ; BigDecimal denom = Factorial(k).pow(4).multiply( _396.pow( 4*k ) ); sum = sum.add ( numer.divide( denom, 1000, RoundingMode.HALF_UP ) ); } sum = sum.multiply(mulFactorBigDecimal); sum = BigDecimal.ONE.divide( sum, 1000, RoundingMode.HALF_UP ); return ""+sum; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString(){\n return numerator + \"/\" + denominator;\n }", "public String toString(){\r\n String str;\r\n if( this.denominator==1 ){\r\n str = String.valueOf(numerator);\r\n }else{\r\n str = String.valueOf(numerator) + \"/\" + String.valueOf(denominator);\r\n }\r\n return(str);\r\n }", "static String double2String (Double a){\n String s = \"\"+a;\n String[] arr = s.split(\"\\\\.\");\n if (arr[1].length()==1) s+=\"0\";\n return s;\n }", "public String format(double number);", "private double formatDoubleWithTwoDeci(double value) {\r\n \treturn Math.floor(value*1e2)/1e2;\r\n }", "public static String getParryString(double result) {\n/* 2412 */ String toReturn = \"easily\";\n/* 2413 */ if (result < 10.0D) {\n/* 2414 */ toReturn = \"barely\";\n/* 2415 */ } else if (result < 30.0D) {\n/* 2416 */ toReturn = \"skillfully\";\n/* 2417 */ } else if (result < 60.0D) {\n/* 2418 */ toReturn = \"safely\";\n/* 2419 */ } return toReturn;\n/* */ }", "public String run() {\n double n = 100;\n\n // sum of r: n/2(n+1)\n double sumSquared = (1/2.0) * n * (n + 1);\n sumSquared = sumSquared * sumSquared;\n // sum of r^2: n/6(n+1)(2n+1)\n double sumOfSquares = (1/6.0) * n * (n + 1) * (2 * n + 1);\n\n return String.format(\"%.0f\", Math.abs(sumSquared - sumOfSquares));\n }", "private static String toPsString(double d) {\n return \"(\" + d + \")\";\n }", "public String toString()\n\t{\n\t\tString str = \"\";\n\t\tstr += numer + \"/\" + denom;\n\t\treturn str;\n\t}", "@Override\n\tpublic String toString() {\n\t\tdouble value = getValue();\n\t\tint round = (int)(value* 1000);\n\t\tvalue = ((double)round)/1000; \n\t\tif (value >= 0)\n\t\t\treturn \"+\" + value;\n\t\telse\n\t\t\treturn \"\" + value;\n\t}", "public static void main(String[] args) {\n\n\n\n double numberOfgallons = 5;\n\n double gallonstolitter = numberOfgallons*3.785;\n\n\n String result = numberOfgallons + \" gallons equal to: \"+gallonstolitter+ \" liters\";\n System.out.println(result);\n\n //=============================================\n /* 2. write a java program that converts litters to gallons\n 1 gallon = 3.785 liters\n 1 litter = 1/3.785\n*/\n\n /*double litter1 = 1/3.785;\n double l =10;\n double gallon1 = l*litter1;\n\n System.out.println(gallon1);\n //======================================================\n*/\n /*\n 3. manually calculate the following code fragements:\n\t\t\t\t1. int a = 200;\n\t\t\t\t\tint b = -a++ + - --a * a-- % 2\n\t\t\t\t\tb = ?\n\n */\n\n\n double numberOfLiters = 100;\n\n double LiterstoGallons = numberOfLiters/3.785;\n\n String result2 = numberOfLiters+\" liters equal to \"+LiterstoGallons+\" galons\";\n\n System.out.println(result2);\n\n\n\n\n\n\n\n\n\n\n\n\n\n int a = 200;\n int b = -a++ + - --a * a-- % 2;\n // b = -200 + - 200* 200%2 = -200;\n\n int x = 300;\n int y = 400;\n int z = x+y-x*y+x/y;\n // z= 300+400-300*400+300/400=700-120000+0(cunki int kimi qebul edir)= -119300;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "private String compute(String str) {\n String array[];\n array=str.split(\" \");\n Stack<Double> s=new Stack<Double>();\n Double a=Double.parseDouble(array[0]);\n s.push(a);\n for(int i=1;i<array.length;i++) {\n if(i%2==1) {\n if(array[i].compareTo(\"+\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n s.push(b);\n }\n if(array[i].compareTo(\"-\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n s.push(-b);\n }\n if(array[i].compareTo(\"*\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n\n double c=s.pop();\n\n c*=b;\n s.push(c);\n\n\n }\n if(array[i].compareTo(\"/\")==0)\n {\n double b= Double.parseDouble(array[i+1]);\n\n double c=s.peek();\n s.pop();\n c/=b;\n s.push(c);\n\n\n }\n }\n }\n double sum=0;\n while(!s.isEmpty()) {\n sum+=s.pop();\n\n }\n String result=String.valueOf(sum);\n return result;\n }", "public void print(double someDouble) {\r\n print(someDouble + \"\");\r\n }", "float mo106363e();", "public String toString()\n {\n if(denominator==1)\n return numerator+\"\"; //e.g 4/1 =4 5/1 =5 etc\n else if(numerator%denominator==0)\n {\n return \"\"+numerator/denominator; //e.g 4/2 =2\n }\n else if(numerator%denominator!=0) {\n // e.g if you have 8/12 ==2/3 Divide both the top and bottom of the fraction by the Greatest Common Factor\n int tempgcd=gcd(numerator,denominator);\n return numerator/tempgcd +\"/\" + denominator/tempgcd;\n\n }\n return null;\n }", "public String toString()\n {\n String output;\t\n\t\n if (this.undefined == true)\t\n \toutput = \"Undefined\";\n else\t\n \toutput = \"\" + this.getNumerator() + \" / \" + this.getDenominator();\n \t\n return output;\t\n\n }", "int main()\n{\n float s1,s2;\n scanf(\"%f%f\",&s1,&s2);\n printf(\"%.2f\",sqrt((s1*s1)+(s2*s2)));\n \n return 0;\n}", "String doubleWrite();", "String floatWrite();", "String getFloat_lit();", "public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n double x = s.nextDouble();\n double y = s.nextDouble();\n double a = s.nextDouble();\n double b = s.nextDouble();\n \n DecimalFormat df = new DecimalFormat(\"#.000000000000\");\n double dp = x*a + y*b;\n double el =Math.sqrt(a*a + b*b);\n //double mel = dp/Double.valueOf(df.format(el*el));\n double mel = dp/(el*el);\n double as = mel*a;\n double bs = mel*b;\n double n = (x-mel*a)/(-1*b);\n //System.out.println(dp + \" \" + el + \" \" + mel + \" \" + as + \" \" + bs + \" \" + n);\n System.out.println(mel);\n System.out.println(n);\n }", "double getDoubleValue3();", "public static String format(double value) {\n \tif(Double.valueOf(value).equals(Double.NaN)) return \"NaN\";\n \t\n if (value == 0) {\n return basicFormat.format(value);\n } else if (Math.abs(value) < 1E-4 || Math.abs(value) > 1E6)\n return scienceFormat.format(value);\n else\n return basicFormat.format(value);\n }", "public String simplify(){\n\n int simp = gcd(numerator, denominator);\n numerator = (numerator/simp);\n denominator = (denominator/simp);\n if (denominator == 1){\n return (numerator + \"\");\n }\n if (numerator > denominator){\n int first = (numerator/denominator);\n numerator = (numerator%denominator);\n return (first + \"_\" + numerator + \"/\" + denominator);\n }\n else {\n return (numerator + \"/\" + denominator);\n }\n\n }", "public static void main(String[] args) {\n\n System.out.println(\"119.1+(28.2+37.3*(46.4-55.5)-4.6+(3/2)+1) = \" + evaluateExpression(\"119.1 + ( 28.2 + 37.3 * ( 46.4 - 55.5 ) - 4.6 + ( 3 / 2 ) + 1 )\"));\n\n}", "public double utility();", "public static double exercise04(){\n double belarusSquare = 207.595;\n double ukraineSquare = 603.628;\n\n double relation = belarusSquare / ukraineSquare;\n System.out.println(\"Sootnowenie plowadi dvuh stran \\t \" + relation);\n return belarusSquare;\n }", "public String toString(){\n return this.numerator + \" / \" + this.denominator;\n }", "public String stampaSalute()\r\n\t{\r\n\r\n\t\tString s = \"\";\r\n\t\tint numeroAsterischi = (int)(energia*10.0);\r\n\t\tfor (int k = 0; k < numeroAsterischi; k++) s += \"*\";\r\n\t\treturn s;\r\n\r\n\t\t\r\n\t}", "static void chapter1Milestone3(double radius){\n double pi = 3.14;\n double circumfrence = radius * pi * 2;\n double area = pi * radius * radius;\n DecimalFormat df = new DecimalFormat(\"######.##\");\n System.out.println(\"Circumfrence is: \" + df.format(circumfrence));\n System.out.println(\"Area is: \" + df.format(area) + \"\\n\");\n }", "public static void main(String[] args){\n Double a = -1d;\n String as = a.toString();\n String result = \"\";\n if (as.replace(\"-\", \"\").length()>=14){\n result = as.substring(0,14);\n }else {\n while (as.replace(\"-\", \"\").length()<14){\n as+='0';\n }\n result= as;\n }\n System.out.print(result);\n }", "double doubleValue()\n {\n double top = 1.0 * numerator;\n double bottom=1.0*denominator;\n top=top/bottom;\n return top;\n\n }", "public String toStringSpeed(){\r\n String strout = \"\";\r\n strout = String.format(\"%.2f\", this.getSpeed());\r\n return strout;\r\n }", "public String toString() {\n\t\treturn numerator + \"/\" + denominator;\n\t}", "public static void main(String[] args) {\n\t\t double value=12.19823;\r\n\t System.out.printf(\"%.2f\", value);\r\n\r\n\t}", "public static int getX(){\n return \"3.1415\";\n }", "double getRealValue();", "private static String formatDouble(final double value) {\n\t\treturn String.format(\"%.5f\", value);\n\t}", "String format(double balance);", "public String denominatorString() {\n switch (DENOM) {\n case 0: return \"i^2\";\n default: return CONSTANT + \" / log(1 + i)\";\n }\n }", "public static void main(String[] args) {\n\t\t\ndouble basicRent = 1500;\ndouble utility = 45.50;\ndouble parking = 25.44;\ndouble waterBill = 49.68;\n\ndouble totalRent;\n\nint roommates = 4;\n\ntotalRent = basicRent + utility + parking + waterBill;\n double rentshare = totalRent/roommates;\n \nString NM = \"RamanPaul2020\";\n\nSystem.out.println(totalRent);\nSystem.out.println(rentshare);\nSystem.out.println(NM);\n\n\t\t\n\t}", "public static String formatR(double number) {\r\n NumberFormat numberFormatter = NumberFormat.getNumberInstance();\r\n numberFormatter.setMinimumFractionDigits(2);\r\n return numberFormatter.format(Math2.round(number));\r\n //return Math2.round(number); \r\n }", "public String resumenSalario(double salario)\n {\n String str=\"AFP: \"+afp(salario)\n +\"\\nISSS: \"+isss(salario)\n +\"\\nRenta: \"+renta(salario)\n +\"\\nSueldo neto: \" + sueldoNeto(salario);\n return str;\n }", "private String denormTemp()\n {\n final double max = 27.55;\n final double min = 10.55;\n double denormValue = x*(max-min) + min;\n return(String.valueOf(denormValue));\n }", "public String toString() {\n\t\t double Fahrehgeit = this.getFahrenheit();\n\t\t double celcius = this.getCelcius();\n\t\t return Math.round(celcius)+\" celcius = \"+ Math.round(Fahrehgeit)+\" Fahrenheit\";\n\t }", "private String calcMod(double val) {\n double vall = (val - 10) / 2;\n if (vall < 0) {\n val = Math.floor(vall);\n return String.valueOf((int)val);\n }\n else {\n val = Math.ceil(vall);\n return \"+\" + String.valueOf((int)val);\n }\n }", "public static void main(String[] args) {\n\n double i = 47456.23456;\n String r1 = String.format(\"i have %,6.2f\", i);\n System.out.println(r1);\n String r2 = String.format(\"i have %,6.1f\", 4.12);\n System.out.println(r2);\n String r3 = String.format(\"i have %c\", 42);\n System.out.println(r3);\n String r4 = String.format(\"i have %x\", 42);\n System.out.println(r4);\n\n\n }", "private String formatMagnitude(double magnitude) {\n DecimalFormat magnitudeFormat = new DecimalFormat(\"0.0\");\n return magnitudeFormat.format(magnitude);\n }", "public String division()\r\n {if (Second.compareTo(BigDecimal.ZERO)==0){\r\n throw new RuntimeException(\"Error\");\r\n }\r\n return First.divide(Second,5,BigDecimal.ROUND_UP).stripTrailingZeros().toString();\r\n }", "double getDoubleValue2();", "public static void main(String[] args) {\n\t\tdouble dnum = 99.9999; \r\n\t\t\r\n\t\t//convert double to string using valueOf() method\r\n\t\tString str = String.valueOf(dnum); \r\n\t\t\t\r\n\t\t//displaying output string after conversion\r\n\t\tSystem.out.println(\"My String is: \"+str);\r\n\r\n\t}", "private String normalizeDouble(Double value) {\n\n String valueSign = (value < 0) ? \"-\" : \"0\";\n String expSign = \"0\";\n Integer finalExp = 0;\n\n DecimalFormat df = new DecimalFormat(DECIMAL_FORMAT);\n String[] splits = df.format(value).split(\"E\");\n\n // if there's an exponent, complement it\n if(splits.length > 1) {\n\n String exponent = splits[1];\n\n if(exponent.startsWith(\"-\")) {\n\n expSign = \"-\";\n exponent = exponent.replace(\"-\", \"\");\n finalExp = 999 - Integer.parseInt(exponent);\n }\n\n else {\n finalExp = Integer.parseInt(exponent);\n }\n }\n\n return String.format(\"%s%s%03d %s\", valueSign, expSign, finalExp, splits[0]);\n }", "public String toString(){\n\n\t\treturn myNumerator + \"/\" + myDenominator;\n }", "private String calculate (double num1, double num2, String operator){\r\n \r\n double value;\r\n switch(operator){\r\n case \"+\":\r\n value = num1 + num2;\r\n break;\r\n case \"-\":\r\n value = num1 - num2;\r\n break;\r\n case \"*\":\r\n value = num1 * num2;\r\n break;\r\n case \"/\":\r\n value = num1/num2;\r\n break;\r\n default:\r\n throw new IllegalArgumentException();\r\n \r\n }\r\n String result = value + \"\";\r\n return result;\r\n }", "private String literal(Number num) {\n int i = num.intValue();\n double d = num.doubleValue();\n \n if (i == d) {\n return String.valueOf(i);\n } else {\n // TODO: proper number formatting should be used\n return num.toString();\n }\n }", "static double sqrt(double number) {\n\t\tdouble answer = number / 2;\r\n\t\tif (number < 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"no negative square roots\"); \r\n=======\n\tpublic static double sqrt(int number) { //gonna be honest here: idk??\r\n\t\tint div = number*number;\r\n\t\tif(number < 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"no square roots of negative numbers\");\r\n>>>>>>> branch 'master' of https://github.com/henryhoover/APCS4Fall.git\n\t\t}\r\n\t\twhile (((answer * answer) - number) >= .005 || ((answer * answer) - number) <= -.005) {\r\n\t\t\tanswer = 0.5 * (number / answer + answer);\r\n\t\t}\r\n\t\treturn round2(answer);\r\n\t}\r\n\t\r\n\tpublic static String quadForm(int a, int b, int c) { //need round2 so uhhhhh\r\n\t\tif(b == 0) {\r\n\t\t\tSystem.out.println(round2(c));\r\n\t\t}\r\n\r\n\t\tif(discriminant(a, b, c) == 0) {\r\n\t\t\treturn(\"Roots: \" + round2((b * -1) / (2 *a)));\t\r\n\t\t}\r\n\t\t\r\n\t\tif(discriminant(a, b, c) > 0) {\r\n\t\t\treturn(\"Roots: \" + round2(b * -1) + (sqrt(b * b - (4 * a * c))));\r\n\t\t}\r\n\t\t\r\n\t\treturn(\"no real roots\");\r\n\t}\r\n}", "private static String formatCost(double cost) {\n\t\tif (cost <= 1d)\n\t\t\treturn new Double(cost).toString();\n\n\t\treturn \"NaN\";\n\t}", "private String format(double number, NFRuleSet ruleSet)\n/* */ {\n/* 1731 */ StringBuffer result = new StringBuffer();\n/* 1732 */ ruleSet.format(number, result, 0);\n/* 1733 */ postProcess(result, ruleSet);\n/* 1734 */ return result.toString();\n/* */ }", "@Override\r\n public String toString()\r\n {\r\n this.reduce(); \r\n return \"(\" + numerator + \"/\" + denominator + \")\";\r\n }", "public String toString(){\n StringBuilder string = new StringBuilder();\n for(double s : scores)string.append(s + \" \");\n return string.toString();\n }", "include<stdio.h>\nint main()\n{\n int celcius;\n float faren;\n scanf(\"%d\",&celcius);\n faren=(celcius*1.8)+32;\n printf(\"%.2f\",faren);\n \n}", "private void calcularResultado() {\r\n\tdouble dinero=0;\r\n\tdinero=Double.parseDouble(pantalla.getText());\r\n\tresultado=dinero/18.5;\r\n\t\tpantalla.setText(\"\" + resultado);\r\n\t\toperacion = \"\";\r\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\treturn numerator.toString() + \" rdiv \" + denominator.toString();\n\t\t//return new BigDecimal(numerator).divide(new BigDecimal(denominator), mc).toString();\n\t}", "double test(double a){\n System.out.println(\"double a: \"+a);\n return a*a;\n }", "double getValue();", "double getValue();", "double getValue();", "public String fullCellText() {\n\t\tString value = getDoubleValue() + \"\";\n\t\t\tif(getValue().equals(\"0\")) {\t// it equals to 0, we can just return \n\t\t\t\treturn getValue();\n\t\t\t}\n\t\t\telse if (!value.contains(\"%\") && value.contains(\".0\") \t//check if value contains no percent sign or \".0\"\n\t\t\t\t\t&& isDecimalEqualToZero(value)\t\t\t\t\t//make sure it is a whole number\n\t\t\t\t\t&& value.replace(\"-\", \"\").length() > 3) {\t\n\t\t\t\treturn value.substring(0, value.indexOf(\".\"));\n\t\t\t}\n\t\t\telse if (!value.contains(\"%\") && !value.contains(\".\")) {\t//if value contains percent sign and no contain dot\n\t\t\t\tvalue += \".0\";\t\t\t\t\t\t\t\t\t\t\t//just add \".0\" at the end\n\t\t\t}\n\t\treturn value;\n\t}", "public String toString()\n\t{\n\t\treturn myNumerator + \"/\" + myDenominator;\n\t}", "protected static String fastDoubleToString(double val, int precision) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (val < 0) {\n\t\t\tsb.append('-');\n\t\t\tval = -val;\n\t\t}\n\t\tlong exp = POW10[precision];\n\t\tlong lval = (long)(val * exp + 0.5);\n\t\tsb.append(lval / exp).append('.');\n\t\tlong fval = lval % exp;\n\t\tfor (int p = precision - 1; p > 0 && fval < POW10[p] && fval>0; p--) {\n\t\t\tsb.append('0');\n\t\t}\n\t\tsb.append(fval);\n\t\tint i = sb.length()-1;\n\t\twhile(sb.charAt(i)=='0' && sb.charAt(i-1)!='.')\n\t\t{\n\t\t\tsb.deleteCharAt(i);\n\t\t\ti--;\n\t\t}\n\t\treturn sb.toString();\n\t}", "double getDoubleValue1();", "public String toString(){ return \"DIV\";}", "@Override\n public String toString() {\n String strValue = \n (value instanceof Double) ? \n String.format(\"%.4f\", value) : \n value.toString();\n String strWeight = String.format(\"%.4f\", w);\n return \"{value: \" + strValue + \", weight: \" + strWeight + \"}\";\n }", "private String stringRepresentationOfSign(double value) {\n int sign = 0;\n if (value < 0) sign = -1;\n else if (value > 0) sign = 1;\n else if (value == 0.0) sign = 1;\n \n\tint t = signLength() * (sign + 1);\n\treturn signString.substring (t, t + signLength());\n }", "public abstract float mo70722e(String str);", "public static String DoubleToString(double DoubleValue){\n Double doublee = new Double(DoubleValue);\n return doublee.toString(); \n }", "private static String format2(double d) {\n return new DecimalFormat(\"#.00\").format(d);\n }", "public String raiz2 (){\n float det=determinante(); //se asigna al determinante de arriba\r\n String sol=\"raiz 2\"; //la solucion la evuelve como string\r\n if (det<0){\r\n sol=\"Raiz imaginaria\";\r\n }else {\r\n float r2= (float)(-b- Math.sqrt(det) )/(2*a); \r\n //tambien aplicamos casting pata Math, con (float)\r\n sol=\"Raiz 2: \"+r2; //texto + valor agregado\r\n }\r\n return sol;\r\n \r\n }", "public String CurrencyFormatter(double val) {\n\n\n NumberFormat nf = NumberFormat.getCurrencyInstance();\n DecimalFormatSymbols decimalFormatSymbols = ((DecimalFormat) nf).getDecimalFormatSymbols();\n decimalFormatSymbols.setCurrencySymbol(\"\");\n ((DecimalFormat) nf).setDecimalFormatSymbols(decimalFormatSymbols);\n String ft=nf.format(val).trim();\n return ft;\n\n }", "private String BuildNumber(int Value1, int Value2, int Value3)\n {\n String Significant;\n //Los manejo en string para solo concatenarlos obtener el valor\n Significant = Integer.toString(Value1) + Integer.toString(Value2);\n //Convertimos el valor a uno numerico y lo multiplicamos a la potencia de 10\n double Resultado = Integer.parseInt(Significant)*pow(10,Value3);\n //Para regresar el valor en KΩ\n if (Resultado/1000 >= 1 && Resultado/1e3 < 1000 )\n {\n return (String.valueOf(Resultado / 1e3) + \"KΩ\");\n }\n //Para regresar el valor en MΩ\n if (Resultado/1e6 >= 1)\n {\n return (String.valueOf(Resultado / 1e6) + \"MΩ\");\n }else{\n //Regresamos el valor en Ω\n return (String.valueOf(Resultado)+\"Ω\");\n }\n }", "static int valDiv2 (){\n return val/2;\n }", "private StringBuffer formattedStringBuffer( final double value ) {\n\t\t\tStringBuffer strb = new StringBuffer(\" \");\n\t\t\tif (barColumns != null && barColumns.size() > 0) {\n\t\t\t\tint ind = (int) Math.round(value - 1.0);\n\t\t\t\t//System.out.println(\"debug ind=\" + ind);\n\t\t\t\tif (ind >= 0 && ind < barColumns.size()) {\n\t\t\t\t\tstrb.append( barColumns.get( ind ).marker() );\n\t\t\t\t} else {\n\t\t\t\t\tstrb.append(emptyStr);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tstrb.append(emptyStr);\n\t\t\t}\n\n\t\t\t//System.out.println(\"debug strb=\" + strb);\n\n\t\t\tstrb.append(\" \");\n\n\t\t\treturn strb;\n\t\t}", "private static String printBinary(double num){\n\t\tif(num >= 1 || num <= 0)\n\t\t\treturn \"ERROR\";\n\t\t\n\t\tStringBuilder binary = new StringBuilder();\n\t\tbinary.append(\"0.\");\n\t\tdouble r = 0.5;\n\t\twhile(num > 0){\n\t\t\tif(binary.length() >= 32)\n\t\t\t\treturn \"ERROR\";\n\t\t\t\n\t\t\tif(num >= r){\n\t\t\t\tbinary.append(1);\n\t\t\t\tnum -= r;\n\t\t\t}else\n\t\t\t\tbinary.append(0);\n\t\t\t\n\t\t\tr /= 2;\n\t\t}\n\t\treturn binary.toString();\n\t}", "public double result() {return 0;}", "public String toString() {\n\t\tif(scale=='K'||scale=='k'){\r\n\t\t\treturn String.format(\"%.2f %s\"+\"ilograms\", wValue, scale);\r\n\t\t} else {\r\n\t\t\tscale=Character.toUpperCase(scale);\r\n\t\t\treturn String.format(\"%.2f %s\"+\"ounds\", wValue, scale);\r\n\t\t}\r\n\t}", "public String toString()\r\n\t{\r\n\t\tcheckInitialization();\r\n\t\treturn equationString + \" = \" + getResult();\r\n\t}", "@Test\n public void testPrintArea() {\n System.out.println(\"printArea\");\n double r = 2.0;\n String expResult = \"A=12.5664\";\n String result = Main.printArea(r);\n assertEquals(expResult, result);\n }", "public static String quadForm(double a, double b, double c) {\n\t\tdouble root1 = (\t(-1*b)\t+\t(sqrt\t( exponent(b, 2)\t-(4*a*c)\t)))\t/2*a;\r\n\t\tdouble root2 = (\t(-1*b)\t-\t(sqrt\t( exponent(b, 2)\t-(4*a*c)\t)))\t/2*a;\r\n\t\tif (discriminant(a, b, c)<0) return (\"No real roots.\");\r\n\t\tif (discriminant(a, b, c)==0) {\r\n\t\treturn (round2(root1)+\"\");\r\n\t\t}\r\n\t\telse {\r\n\t\treturn (root1 + \" and \" + root2);\r\n\t\t}\r\n\t}", "int mo9691a(String str, String str2, float f);", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "public\t\tString\t\tgetValue()\n\t\t{\n\t\treturn(\"\" + getNormalizedValue());\n\t\t}", "public static String CKambio(Double num){\n\tDecimalFormat dh = new DecimalFormat(\"##0.########\");\n\t//Para menores de E-3\n\tDecimalFormat df = new DecimalFormat(\"0.###E0\");\n \n String cambio=\"\";\n if(num==0){\n cambio = Double.toString(num);\n }else if( (num > 10E-3) || (num < -10E-3) ){\n cambio=dh.format(num);\n }else{\n cambio=df.format(num);\n }\n return cambio;\n }", "private String LightConversion() {\n\n int exponent = ((raw[19] & 0xC0) >> 6) + ((raw[20] & 0x03) << 2);\n int mantissa = ((raw[20] & 0xFC) >> 2) + ((raw[21] & 0x03) << 6);\n double value = (Math.pow(2.0, exponent)) * mantissa * 0.025;\n\n return Double.valueOf(threeDForm.format(value)) + \"\";\n\n }", "private static String DoubleToBinaryString(double data){\n long longData = Double.doubleToLongBits(data);\n //A long is 64-bit\n return String.format(\"%64s\", Long.toBinaryString(longData)).replace(' ', '0');\n }", "public abstract double mo9740e();", "public static void main(String[] args) {\n int myInt = 5;\n float myFloatValue = 5f / 3f;\n double myDoubleValue = 5d / 3f;\n System.out.println(\"my Int \" + myInt);\n System.out.println(\"my Int \" + myFloatValue);\n System.out.println(\"my Int \" + myDoubleValue);\n\n\n double numPounds = 200d;\n double converKil0 = numPounds * 0.45359237d;\n System.out.println(converKil0);\n\n double pi =3.14;\n }", "public String toString() {\n\t\treturn String.format(\"%d / %d : %d\", systolic, diastolic, heartRate);\n\t}", "public String toString() {\n\t\treturn String.valueOf(mDouble);\n\t}", "double d();", "public static String probToString(double prob) {\n return String.format(\"%.2f\", Math.round(prob * 100.0) / 100.0);\n }", "public String toString() {\r\n if(this.getImag() < 0)\r\n return String.format(\"%.1f - %.1fi\", this.getReal(), this.getImag() * -1); // imaginary to positive for output only\r\n return String.format(\"%.1f + %.1fi\", this.getReal(), this.getImag());\r\n }" ]
[ "0.6224495", "0.61968786", "0.6119843", "0.61182994", "0.6111177", "0.6084846", "0.60298765", "0.5972771", "0.59661764", "0.5962723", "0.595525", "0.59160256", "0.58959657", "0.5874433", "0.5841758", "0.58252454", "0.5823981", "0.5798294", "0.5781078", "0.5780555", "0.5776504", "0.57670295", "0.5756997", "0.57532483", "0.57487833", "0.5737785", "0.5735269", "0.57283777", "0.57176167", "0.569752", "0.5697213", "0.5676564", "0.56747854", "0.5672794", "0.56722903", "0.5657295", "0.5656505", "0.5644026", "0.56364673", "0.5630584", "0.5627708", "0.5621223", "0.56132567", "0.5607094", "0.5598202", "0.55969733", "0.55928904", "0.5590493", "0.5587441", "0.55843514", "0.5577925", "0.557433", "0.55723345", "0.55687994", "0.55684584", "0.5554597", "0.5554258", "0.55532086", "0.5545324", "0.553734", "0.5533587", "0.5519856", "0.55193794", "0.5513393", "0.5504204", "0.5504204", "0.5504204", "0.55038655", "0.5503844", "0.5502115", "0.5499796", "0.5491493", "0.5479659", "0.54779565", "0.54769844", "0.5466443", "0.546256", "0.54564136", "0.544842", "0.5445421", "0.5439525", "0.54374844", "0.54358345", "0.54292107", "0.542387", "0.54234016", "0.54203093", "0.54189974", "0.54171747", "0.5416987", "0.54150254", "0.5400276", "0.53999513", "0.5398038", "0.5397684", "0.5394092", "0.53847355", "0.5383965", "0.5370607", "0.53701514", "0.5368394" ]
0.0
-1
Time taken for 1 Million ( 1000,000 ) is 100 secnods. Set increment as 2000 when max value is 100000 increment/10, 10 as parameters for Spigot_Level_3 Time taken ~ 4300 milli secnods Set increment as 20000 when max value is 1000,000 increment/5, 5 as parameters for Spigot_Level_3 Time taken ~ 87000 milli seconds
BigDecimal Spigot() { int increment = 20000; int max = 1000000; BigDecimal totResult = new BigDecimal(0.0); sumPart++; BigDecimal result1 = new BigDecimal(0.0); BigDecimal sixTeenPowStartVal = new BigDecimal(1.0); BigDecimal sixTeenPowIncrement = new BigDecimal(16).pow(increment); long startTime = System.currentTimeMillis(); for(int i=0; i<max; i+=increment) { result1 = result1.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) ); long timeTaken = System.currentTimeMillis() - startTime; System.out.println("Iteration : "+(i+increment)+" time : "+timeTaken); sixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement ); } result1 = result1.multiply( new BigDecimal(4) ); sumPart++; BigDecimal result2 = new BigDecimal(0.0); sixTeenPowStartVal = new BigDecimal(1.0); sixTeenPowIncrement = new BigDecimal(16).pow(increment); for(int i=0; i<max; i+=increment) { result2 = result2.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) ); long timeTaken = System.currentTimeMillis() - startTime; System.out.println("Iteration : "+(i+increment)+" time : "+timeTaken); sixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement ); } result2 = result2.multiply( new BigDecimal(2) ); sumPart++; BigDecimal result3 = new BigDecimal(0.0); sixTeenPowStartVal = new BigDecimal(1.0); sixTeenPowIncrement = new BigDecimal(16).pow(increment); for(int i=0; i<max; i+=increment) { result3 = result3.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) ); long timeTaken = System.currentTimeMillis() - startTime; System.out.println("Iteration : "+(i+increment)+" time : "+timeTaken); sixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement ); } sumPart++; BigDecimal result4 = new BigDecimal(0.0); sixTeenPowStartVal = new BigDecimal(1.0); sixTeenPowIncrement = new BigDecimal(16).pow(increment); for(int i=0; i<max; i+=increment) { result4 = result4.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) ); long timeTaken = System.currentTimeMillis() - startTime; System.out.println("Iteration : "+(i+increment)+" time : "+timeTaken); sixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement ); } totResult = result1.subtract( result2.add( result3 ).add( result4 ) ); return totResult; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }", "NumarAndDenom Spigot_Level_2(int startVal, int increment, int numTimes)\n\t{\n\t\t\t\t\n\t\tBigDecimal totalNumar = new BigDecimal(0.0);\n\t\tBigDecimal totalDenom = new BigDecimal(1.0);\n\n\t\tBigDecimal sixTeen = new BigDecimal(16);\n\t\tBigDecimal sixTeenPow = new BigDecimal(1.0);\n\t\t\n\t\tBigDecimal sixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tint endVal = startVal + increment * numTimes;\n\t\t\n\t\tfor(int k=endVal ; k>startVal; k -= increment)\n\t\t{\n\t\t\tNumarAndDenom nd = Spigot_Level_1(k-increment, k);\n\t\t\t\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\t\n\t\t\ttotalNumar = totalNumar.multiply( nd.denom ).add( totalDenom.multiply( nd.numar ) );\n\t\t\ttotalDenom = totalDenom.multiply( nd.denom );\n\t\t\t\n\t\t\tif(k-increment != startVal)\n\t\t\t\ttotalDenom = totalDenom.multiply( sixTeenPowIncrement );\n\t\t\t\n\t\t\ttotTimeToMultiply += System.currentTimeMillis() - startTime;\n\t\t}\n\t\t\n\t\t//System.out.println(\"totalNumar precision : \"+totalNumar.precision());\n\t\t//System.out.println(\"totalDenom precision : \"+totalDenom.precision());\n\t\t\n\t\tNumarAndDenom numerAndDenom = new NumarAndDenom();\n\t\t\n\t\tnumerAndDenom.numar = totalNumar;\n\t\tnumerAndDenom.denom = totalDenom;\t\t\n\t\t\n\t\treturn numerAndDenom;\t\t\n\t}", "Builder spikesPerChunk(VariableAmount count);", "protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }", "void setSpikesPerChunk(VariableAmount count);", "public void increment() {\n long cnt = this.count.incrementAndGet();\n if (cnt > max) {\n max = cnt;\n // Remove this after refactoring to Timer Impl. This is inefficient\n }\n this.lastSampleTime.set(getSampleTime ());\n }", "public static void Number(){\n for(int c=1000;c<=1000000;c++)\n {\n VampireNumber(c);\n }\n }", "public void increaseSpeed() {\r\n\tupdateTimer.setDelay((int)Math.floor(updateTimer.getDelay()*0.95));\r\n\t\t}", "public void incWalkSpeed(int n)\n{\n walkSpeed = walkSpeed - n;\n}", "@Override\n\t\tpublic int getSpeed() {\n\t\t\treturn i+20;\n\t\t}", "Builder extremeSpikeIncrease(VariableAmount increase);", "public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }", "public <T extends Number> void incrementSpeedPerFrame(T increment){\r\n\t\tspeed += increment.doubleValue();\r\n\t\tif(speed <= 0){\r\n\t\t\tspeed = 1;\r\n\t\t}\r\n\t}", "public void increseHitCount() {\n\r\n\t}", "@Override\n\t\tpublic int getSpeed() {\n\t\t\treturn i+30;\n\t\t}", "private static void task01111(int nUMS, SplayTree<Integer> j, GenerateInt generateInt) {\n\t\t\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Fill in the table...Splay Tree\" );\n\t\t int count=1;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\t \t\t \n\t\t\t\tj.insert(GenerateInt.generateNumber());\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\t\t\t\tcount = i;\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\n\t\t\n\t}", "private void m128168k() {\n C42962b.f111525a.mo104671a(\"upload_page_duration\", C22984d.m75611a().mo59971a(\"first_selection_duration\", System.currentTimeMillis() - this.f104209S).mo59971a(\"page_stay_duration\", System.currentTimeMillis() - this.f104208R).f60753a);\n }", "private static void speedup(String [] args){\n\t\t\n\t\tint warningCnt = 0;\n\t\t\n\t\tString applicationPath = convertApplication(args[2], null);\n\t\tConfMan baseConfigManager;\n\t\t\n\n\n\n\n\t\tbaseConfigManager = new ConfMan(args[1], applicationPath, false);\n\t\tConfMan[] cms;\n\t\t\n\t\tSweepConfig sweepConfig = new SweepConfig(baseConfigManager, \"config/sweep/cacheSpeedupSweep.json\",true);\n//\t\tSweepConfig sweepConfig = new SweepConfig(baseConfigManager, \"config/sweep/speedupSweep.json\",true);\n\n\t\tcms = sweepConfig.getConfManager();\n\t\tString[] configNames = sweepConfig.getSweepConfigurations();\n//\t\tString[] speedupIdentifier = sweepConfig.getSpeedupIdentifier();\n//\t\tboolean[] isShortTest = sweepConfig.getIsShortTest();\n\n\t\tTrace speedupTrace = new Trace(System.out, System.in, \"\", \"\");\n\t\tspeedupTrace.setPrefix(\"basic config\");\n\t\tbaseConfigManager.printConfig(speedupTrace);\n\n\t\tspeedupTrace.setPrefix(\"speedup\");\n\t\t\n//\t\tLinkedHashMap<String, SpeedupMeasurementResult> speedupResults = new LinkedHashMap<>();\n\t\tMeasurementResult[] measurementResults = new MeasurementResult[cms.length];\n\t\tLinkedHashMap<String, BaseLineStorage> baseLineStorage = new LinkedHashMap<String, BaseLineStorage>();\n\t\t\n//\t\tAmidarSimulationResult[] results = parallelRemoteSimulation(sweepConfig, \"trav\", 1099, 8, speedupTrace);\n\t\t\n\t\tdouble overhead = 0;\n\t\tint transmission = 0;\n\t\tint run = 0;\n\t\tdouble overheadCnt = 0;\n\t\t\n\n\t\t////////////////////////// SIMULATE //////////////////////////////////////////////\n\t\tfor(int i = 0; i<cms.length; i++){\n\t\t\t\n\t\t\t/////// FIRST SHORT /////////////////////////////\n\t\t\tConfMan conf = cms[i];\n\t\t\t\n\t\t\tboolean isShort = true;\n\t\t\tString appBaseName = conf.getApplicationPath();\n\t\t\tString [] appBasePath = appBaseName.split(\"/\");\n\t\t\t\n\t\t\t\n\t\t\tconf.setApplication(\"../axt/\" + appBaseName+ \"_short/\" + appBasePath[appBasePath.length-1] + \"_short.axt\");\n\n\t\t\tMeasurementResult speedupRes = measurementResults[i];\n\t\t\tif(speedupRes == null){\n\t\t\t\tspeedupRes = new MeasurementResult();\n\t\t\t\tmeasurementResults[i] = speedupRes;\n\t\t\t}\n\t\t\t\n\t\t\tString app = conf.getApplicationPath();\n\t\t\tint benchmarkScale = conf.getBenchmarkScale();\n\t\t\tapp = app+\"-benchMarkScale-\"+benchmarkScale;\n\t\t\t\n\t\t\tspeedupTrace.printTableHeader(\"Running: \" + configNames[i] + \" SHORT\");\n\t\t\tif(!baseLineStorage.containsKey(app)){\n\t\t\t\tbaseLineStorage.put(app, new BaseLineStorage());\n\t\t\t}\n\t\t\t\n\t\t\tBaseLineStorage baseLine = baseLineStorage.get(app);\n \t\t\t\n\t\t\tif(!baseLine.isBaselineAvailable(isShort)){\n\t\t\t\tspeedupTrace.println(\"Running without synthesis...\");\n\t\t\t\tAmidarSimulationResult currentRes = run(conf, null, false);\n\t\t\t\tspeedupRes.addBaseline(currentRes, isShort);\n\t\t\t\tbaseLine.addBaseLine(isShort, currentRes);\n\t\t\t} else {\n\t\t\t\tspeedupRes.addBaseline(baseLine.getBaseLine(isShort), isShort);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tAmidarSimulationResult currentResult = null;\n\t\t\tconf.setSynthesis(true);\n\t\t\tspeedupTrace.println(\"Running with synthesis...\");\n\t\t\ttry{\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t} catch(AmidarSimulatorException e ){\n\t\t\t\tspeedupTrace.println(\"WARNING: Aliasing speculation failed. Switching of speculation and repeat...\");\n\t\t\t\twarningCnt++;\n\t\t\t\tconf.getSynthesisConfig().put(\"ALIASING_SPECULATION\", AliasingSpeculation.OFF);\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tif(isShort){\n//\t\t\t\tHashMap<String, Integer> stateCNT = currentResult.getCgraStateCount();\n//\t\t\t\tdouble transmissionCnt = stateCNT.get(\"SEND\") + stateCNT.get(\"REC\") +stateCNT.get(\"WAIT\");\n//\t\t\t\tdouble runCnt = stateCNT.get(\"RUN\");\n//\t\t\t\t\n//\t\t\t\tdouble overheadCurrent = transmissionCnt/(transmissionCnt + runCnt);\n//\t\t\t\t\n//\t\t\t\toverhead += overheadCurrent;\n//\t\t\t\ttransmission +=transmissionCnt;\n//\t\t\t\trun += runCnt;\n//\t\t\t\toverheadCnt++;\n//\t\t\t}\n\t\t\t\n\t\t\tspeedupRes.addResults(currentResult, isShort);\n\t\t\t\n\t\t\t/////// THEN LONG /////////////////////////////\n\t\t\t\n\t\t\tisShort = false;\n\t\t\tconf.setApplication(\"../axt/\" + appBaseName+ \"_long/\" + appBasePath[appBasePath.length-1] + \"_long.axt\");\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tspeedupTrace.printTableHeader(\"Running: \" + configNames[i] + \" LONG\");\n\t\t\tif(!baseLine.isBaselineAvailable(isShort)){\n\t\t\t\tconf.setSynthesis(false);\n\t\t\t\tspeedupTrace.println(\"Running without synthesis...\");\n\t\t\t\tAmidarSimulationResult currentRes = run(conf, null, false);\n\t\t\t\tspeedupRes.addBaseline(currentRes, isShort);\n\t\t\t\tbaseLine.addBaseLine(isShort, currentRes);\n\t\t\t} else {\n\t\t\t\tspeedupRes.addBaseline(baseLine.getBaseLine(isShort), isShort);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tconf.setSynthesis(true);\n\t\t\tspeedupTrace.println(\"Running with synthesis...\");\n\t\t\ttry{\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t} catch(AmidarSimulatorException e ){\n\t\t\t\tspeedupTrace.println(\"WARNING: Aliasing speculation failed. Switching of speculation and repeat...\");\n\t\t\t\twarningCnt++;\n\t\t\t\tconf.getSynthesisConfig().put(\"ALIASING_SPECULATION\", AliasingSpeculation.OFF);\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tif(isShort){\n//\t\t\t\tHashMap<String, Integer> stateCNT = currentResult.getCgraStateCount();\n//\t\t\t\tdouble transmissionCnt = stateCNT.get(\"SEND\") + stateCNT.get(\"REC\") +stateCNT.get(\"WAIT\");\n//\t\t\t\tdouble runCnt = stateCNT.get(\"RUN\");\n//\t\t\t\t\n//\t\t\t\tdouble overheadCurrent = transmissionCnt/(transmissionCnt + runCnt);\n//\t\t\t\t\n//\t\t\t\toverhead += overheadCurrent;\n//\t\t\t\ttransmission +=transmissionCnt;\n//\t\t\t\trun += runCnt;\n//\t\t\t\toverheadCnt++;\n//\t\t\t}\n\t\t\t\n\t\t\tspeedupRes.addResults(currentResult, isShort);\n\t\t}\n\t\t////////////////////////SIMULATE END//////////////////////////////////////////////\n\n\t\tspeedupTrace.printTableHeader(\"Speedup\");\n\t\t\n\t\tDecimalFormatSymbols symbols = new DecimalFormatSymbols();\n\t\tsymbols.setGroupingSeparator(',');\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat formater = new DecimalFormat(\"#0.000\", symbols);\n\t\t\n\t\t\n\t\t/// GATHER INFORMATION //////////////////////////////////////////\n\t\t\n\t\tdouble[] speedupList = new double[cms.length];\n\t\tdouble[] communicationOverhead = new double[cms.length];\n\t\tdouble[] dmaOverhead = new double[cms.length];\n\t\tdouble[] l1usage = new double[cms.length];\n\t\tdouble[] l2usage = new double[cms.length];\n\t\tdouble[] averageMemTime = new double[cms.length];\n\t\t\n\t\tdouble[][] blockTimesPrefetch = new double[TaskType.values().length][cms.length];\n\t\tdouble[][] blockTimesRegular = new double[TaskType.values().length][cms.length];\n\t\t\n\t\tint[] nrOfContexts = new int[cms.length];\n\t\tint[] nrOfL1Prefetches = new int[cms.length];\n\t\tint[] nrOfL2Prefetches = new int[cms.length];\n\t\tint[] nrOfUsedL1Prefetches = new int[cms.length];\n\t\tint[] nrOfUsedL2Prefetches = new int[cms.length];\n\t\t\n\t\tint[] nrOfHandledPrefetchRequests = new int[cms.length];\n\t\tint[] nrOfHandledPrefetchRequestsAlreadyAvailable = new int[cms.length];\n\t\t\n\t\tint[] cachelineFills = new int[cms.length];\n\t\tlong[] synthTime = new long[cms.length];\n\t\t\n\t\tfor(int i = 0; i < measurementResults.length; i++){\n\t\t\tString res = \"Speedup of \" + configNames[i] + \"\\t\";\n\t\t\tdouble speedup = measurementResults[i].getSpeedup();\n\t\t\tspeedupList[i] = speedup;\n\t\t\tres = res + \": \" + formater.format(speedup);\n\t\t\tspeedupTrace.println(res);\n\t\t\t\n\t\t\tcommunicationOverhead[i] = measurementResults[i].getCommunicationOverhead();\n\t\t\tdmaOverhead[i] = measurementResults[i].getDMAOverhead();\n\t\t\tl1usage[i]= measurementResults[i].getL1Usage();\n\t\t\tl2usage[i]= measurementResults[i].getL2Usage();\n\t\t\taverageMemTime[i] = measurementResults[i].getAverageMemoryAccessTime();\n\t\t\tfor(TaskType tt: TaskType.values()){\n\t\t\t\tblockTimesPrefetch[tt.ordinal()][i] = measurementResults[i].getBlockTimesInPercent(RequestType.Prefetch, tt);\n//\t\t\t\tSystem.out.println(\"\\tBlocktime Pref\" +tt + \":\\t\" +blockTimesPrefetch[tt.ordinal()][i]);\n\t\t\t\tblockTimesRegular[tt.ordinal()][i] = measurementResults[i].getBlockTimesInPercent(RequestType.Regular, tt);\n//\t\t\t\tSystem.out.println(\"\\tBlocktime Regu\" +tt + \":\\t\" +blockTimesRegular[tt.ordinal()][i]);\n \t\t\t}\n\t\t\tnrOfContexts[i] = measurementResults[i].getNrOfContexts();\n\t\t\tnrOfL1Prefetches[i] = measurementResults[i].getNrOfL1Prefetches();\n\t\t\tnrOfUsedL1Prefetches[i] = measurementResults[i].getNrOfUsedL1Prefetches();\n\t\t\tnrOfHandledPrefetchRequests[i] = measurementResults[i].getNrOfHandledPrefetchRequests();\n\t\t\tnrOfHandledPrefetchRequestsAlreadyAvailable[i] = measurementResults[i].getNrOfHandledPrefetchRequestsAlreadyAvailable();\n\t\t\tcachelineFills[i] = measurementResults[i].getCachelineFills();\n\t\t\tsynthTime[i] = measurementResults[i].getSynthTime();\n\t\t}\n\t\t///// PLOT INFORMATION //////////////////////////////////////////////\n\t\tSweepResultPlotter plotter = new SweepResultPlotter();\n//\t\tplotter.configurePlotter( \"UNROLL\", \"\", true);\n\t\tLinkedHashMap<String, LinkedHashSet<String>> sweepInfo = sweepConfig.getSweepInfo();\n\t\t\n\t\tString path = \"log/sweep\"+new Date().toString();\n\t\tplotter.setPath(path);\n\t\tplotter.saveSweepInfo(sweepInfo);\n\t\t\n\t\tplotter.saveResults(speedupList,\"speedup\");\n\t\tplotter.saveResults(communicationOverhead, \"communicationOverhead\");\n\t\tplotter.saveResults(dmaOverhead, \"dmaOverhead\");\n\t\tplotter.saveResults(l1usage,\"l1usage\");\n\t\tplotter.saveResults(l2usage, \"l2usage\");\n\t\tplotter.saveResults(averageMemTime, \"memTime\");\n\t\tplotter.saveResults(nrOfContexts, \"contexts\");\n\t\tplotter.saveResults(nrOfL1Prefetches, \"l1prefetches\");\n\t\tplotter.saveResults(nrOfUsedL1Prefetches, \"usedL1prefetches\");\n\t\tplotter.saveResults(nrOfHandledPrefetchRequests, \"handledPrefetchRequests\");\n\t\tplotter.saveResults(nrOfHandledPrefetchRequestsAlreadyAvailable, \"handledPrefetchRequestsAvail\");\n\t\tplotter.saveResults(cachelineFills, \"cachelineFills\");\n\t\tplotter.saveResults(synthTime, \"Synthtime\");\n\t\t\n\t\t\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\t\n//\t\t}\n\t\t\n\t\t///// PRINT ON CONSOLE ///////////////////////////////\n\t\tspeedupTrace.printTableHeader(\"Average Speedup\");\n\t\tplotter.plot(sweepInfo, speedupList, speedupTrace,\"log/\", \"\");\n\t\t\n\t\tif(warningCnt > 1){\n\t\t\tspeedupTrace.println(warningCnt + \" Warnings\");\n\t\t} else if(warningCnt == 1){\n\t\t\tspeedupTrace.println(\"1 Warning\");\n\t\t}\n\t\t\n//\t\tspeedupTrace.println(\"CGRA transmission overhead in Percent: \" + formater.format(overhead*100/overheadCnt) + \" Ticks Running: \" + (int)(run/overheadCnt+0.5) + \" Ticks Transmitting: \" + (int)(transmission/overheadCnt+0.5));\n\t\t\n\t\t\n//\t\tspeedupTrace.println(ObjectHistory.indep*100/(ObjectHistory.indep+ObjectHistory.dep)+\"% of all memory accesses are independant\");\n//\n//\t\t\n\t\tspeedupTrace.printTableHeader(\"Average Communication Overhead\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), communicationOverhead, speedupTrace, null, \"\");\n\t\tspeedupTrace.printTableHeader(\"Average DMA Overhead\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), dmaOverhead, speedupTrace, null, \"\");\n\t\tspeedupTrace.printTableHeader(\"Memtime\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), averageMemTime, speedupTrace, null, \"\");\n\t\t\n\t\tdouble[] cffd = new double[cachelineFills.length];\n\t\tfor(int i = 0; i < cffd.length; i++){\n\t\t\tcffd[i] = cachelineFills[i];\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tspeedupTrace.printTableHeader(\"Cacheline fills\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), cffd, speedupTrace, null, \"\");\n\t\t\n\t\tdouble[] stdd = new double[synthTime.length];\n\t\tfor(int i = 0; i < stdd.length; i++){\n\t\t\tstdd[i] = synthTime[i];\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tspeedupTrace.printTableHeader(\"Synth time\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), stdd, speedupTrace, null, \"\");\n\t\t\n//\t\t\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), l1usage, speedupTrace, null, \"\");\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), l2usage, speedupTrace, null, \"\");\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), averageMemTime, speedupTrace, null, \"\");\n\t\t\n//\t\tspeedupTrace.printTableHeader(\"CGRA blocked by Prefetch\");\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\tplotter.plot(sweepConfig.getSweepInfo(), blockTimesPrefetch[tt.ordinal()], speedupTrace,null, tt.toString());\n//\t\t}\n//\t\tspeedupTrace.printTableHeader(\"CGRA blocked by Regular Access\");\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\tplotter.plot(sweepConfig.getSweepInfo(), blockTimesRegular[tt.ordinal()], speedupTrace,null, tt.toString());\n//\t\t}\n\t\n\t}", "public static void speedup(){\n\t\tif(bossair.periodairinit > Framework.nanosecond){\n\t\t\t\tbossair.periodair-=Framework.nanosecond/18; \n\t\t\t\tbossair.xmoving-=0.03; \n\t\t}\n\t\t\t\n\t}", "public void MaxValue10000() {\n Multiset m = new Multiset();\n for(int i = 0; i < 10000; i++) {\n m.add(new Integer(i));\n }\n this.net = new MaxValueNet(m);\n this.sim = new BasicSimulator(this.net);\n long begin = System.currentTimeMillis();\n this.sim.run();\n long end = System.currentTimeMillis();\n System.out.println(\"\\nTest with 10000 took exactly: \" + (end - begin) + \" mills\");\n }", "@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }", "public void performance() {\n\t\tPositionVo s = currentPerformed.getFirst();\n\t\t@SuppressWarnings(\"unused\")\n\t\tPositionVo e = currentPerformed.getLast();\n//\t\tint timeCost = (int) (e.getTime() - s.getTime());\n//\t\tint span = (int) Math.abs(e.getHead().getX() - s.getHead().getX());\n\t\t// TODO according to the moving rate decide how many nodes fill the gap\n\n\t\tint size = currentPerformed.size();\n\n\t\tfor (int i = 1; i < size * 4 - 4; i += 4) {\n\t\t\tPositionVo s1 = currentPerformed.get(i - 1);\n\t\t\tPositionVo s2 = currentPerformed.get(i);\n\n\t\t\tPoint[] delta_Head = sim_dda(s1.getHead(), s2.getHead(), 4);\n\t\t\tPoint[] delta_left_hand = sim_dda(s1.getLeftHand(), s2.getRightHand(), 4);\n\t\t\tPoint[] delta_right_hand = sim_dda(s1.getRightHand(), s2.getRightHand(), 4);\n\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tcurrentPerformed.add(i + j, new PositionVo(delta_Head[j], delta_left_hand[j], delta_right_hand[j]));\n\t\t}\n\n\t\tnCount = currentPerformed.size();\n\t\tcursor = 0;\n\n\t\t/* (*)absolute point = initial point - current point */\n\t\treferX -= s.getHead().getX();\n\t\treferY += s.getHead().getY();\n\t\tcurrReferX = referX;\n\t\tcurrReferY = referY;\n\n\t\t/* update gui */\n\t\tmanager.proceBar.setMinimum(0);\n\t\tmanager.proceBar.setMaximum(nCount);\n\t\t/* end */\n\n\t\tstartTimer((int) (ANIMATE_FPS * speedRate));\n\t}", "public int getComplexity() { return 4 + getSettingValue(\"radius\") * 2 + getSettingValue(\"duration\") / 5; }", "public void nextTextureIndexX() {\n/* 245 */ this.particleTextureIndexX++;\n/* */ }", "private double getPseudoLoadingFactor( int... plus ) {\n if (plus.length > 0 && plus.length < 2) {\n return (double) (int) (((double) (n + nd + plus[0]) / N) * 10000) / 10000; \n }\n return (double) (int) (((double) (n + nd) / N) * 10000) / 10000;\n }", "private static void task11(int nUMS, AVLTree<Integer> h, GenerateInt generateInt) {\n\t\t\n\t\t \tlong start = System.nanoTime();\n\t\t System.out.println( \"Fill in the table...AVL TREE\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\t \t\t \n\t\t\t\th.insert(i);\n\t\t\t\tcount = i;\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t\t\n\t}", "private static void task1111(int nUMS, SplayTree<Integer> j, GenerateInt generateInt) {\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Fill in the table...SPLAY TREE\" );\n\t int count=0;\n\t\tfor( int z = 1; z <= nUMS; z++)\n\t\t{\n\t\t\t \t\t \n\t\t\tj.insert(z);\n\t\t\tcount = z;\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t}", "private static void task1(int nUMS, BinarySearchTree<Integer> t, GenerateInt generateInt) {\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Fill in the table...Binary Tree\" );\n\t\t int count=1;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\t \t\t \n\t\t\t\tt.insert(i);\n//\t\t\t\tSystem.out.println(i);\n\t\t\t\tcount = i;\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t\t \n\t\t }", "void speedUp(int a);", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "void increaseStarsBy(final int amount);", "VariableAmount getSpikesPerChunk();", "public static void main(String[] args) {\n\t\t\n\t\tint A[]= new int[100000000];\n\t\tfor(int i = 0; i < 100000000; i++) {\n\t\t A[i] = (int)(Math.random() * 100) + 1;\n }\n double duration = 0;\n long end = 0;\n long start = 0;\n start = System.currentTimeMillis();\n System.out.println(start);\n MinValueIndex(A, 6);\n end = System.currentTimeMillis();\n\t\tduration = end-start;\n\t\tSystem.out.println(end); \n\t\tduration = duration / 5;\n\t\tSystem.out.println(duration);\n\t}", "protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }", "public void crunch(){\n cpuBurstTime--;\n rem--;\n }", "public static double doThroughPut() {\n double totalProgramRunTime = endProgramTime - startProgramTime;\n return (count / totalProgramRunTime) * 100000.0;\n\n }", "@Override\r\n\tprotected void onIncreaseMp(TYPE type, int value, int skillId, int logId)\r\n\t{\n\t}", "private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }", "private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }", "private void incrementCounters() {\n // update score by 5 every second\n ++scoreTimer;\n if (scoreTimer > scoreInterval) {\n score += 5;\n scoreTimer = 0;\n }\n\n // update speed by 100% every second\n ++speedTimer;\n if (speedTimer > speedInterval) {\n currentSpeed *= speedFactor;\n ++gameLevel;\n speedTimer = 0;\n }\n\n // increment rock timer (we create a new rock every 2 seconds)\n ++rockTimer;\n }", "public void test(int maxLength, double maxVelocity, int maxEpoch) {\n\t\tMAX_LENGTH = maxLength;\n\t\tpso = new ParticleSwarmOptimization(MAX_LENGTH);\t\t//instantiate and define params for PSO here\n\t\tpso.setVMax(maxVelocity);\n\t\tpso.setMaxEpoch(maxEpoch);\n\t\tlong testStart = System.nanoTime();\n\t\tString filepath = \"PSO-N\"+MAX_LENGTH+\"-\"+maxVelocity+\"-\"+maxEpoch+\".txt\";\n\t\tlong startTime = 0;\n long endTime = 0;\n long totalTime = 0;\n int fail = 0;\n int success = 0;\n \n\t\tlogParameters();\n \n for(int i = 0; i < MAX_RUN; ) {\t\t\t\t\t\t\t\t\t\t\t\t//run 50 sucess to pass passing criteria\n \tstartTime = System.nanoTime();\n \tif(pso.algorithm()) {\n \t\tendTime = System.nanoTime();\n \t\ttotalTime = endTime - startTime;\n \t\t\n \t\tSystem.out.println(\"Done\");\n \t\tSystem.out.println(\"run \"+(i+1));\n \tSystem.out.println(\"time in nanoseconds: \"+totalTime);\n \tSystem.out.println(\"Success!\");\n \t\n \truntimes[i] = totalTime;\n \ti++;\n \tsuccess++;\n \t\n \t//write to log\n \tlogWriter.add((String)(\"Run: \"+i));\n \tlogWriter.add((String)(\"Runtime in nanoseconds: \"+totalTime));\n \tlogWriter.add((String)(\"Found at epoch: \"+pso.getEpoch()));\n \tlogWriter.add((String)(\"Population size: \"+pso.getPopSize()));\n \tlogWriter.add(\"\");\n \t\n \tfor(Particle p: pso.getSolutions()) {\t\t\t\t\t\t\t\t//write solutions to log file\n\t\t\t\t\tlogWriter.add(p);\n\t\t\t\t\tlogWriter.add(\"\");\n \t\t\t}\n \t} else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//count failures for failing criteria\n \t\tfail++;\n \t\tSystem.out.println(\"Fail!\");\n \t}\n \t\n \tif(fail >= 100) {\n \t\tSystem.out.println(\"Cannot find solution with these params\");\n \t\tbreak;\n \t}\n \tstartTime = 0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//reset time\n \tendTime = 0;\n \ttotalTime = 0;\n }\n\t\n System.out.println(\"Number of Success: \" +success);\n System.out.println(\"Number of failures: \"+fail);\n logWriter.add(\"Runtime summary\");\n logWriter.add(\"\");\n \n\t\tfor(int x = 0; x < runtimes.length; x++){\t\t\t\t\t\t\t\t\t//print runtime summary\n\t\t\tlogWriter.add(Long.toString(runtimes[x]));\n\t\t}\n\t\t\n\t\tlong testEnd = System.nanoTime();\n\t\tlogWriter.add(Long.toString(testStart));\n\t\tlogWriter.add(Long.toString(testEnd));\n\t\tlogWriter.add(Long.toString(testEnd - testStart));\n\t\t\n \n \tlogWriter.writeFile(filepath);\n \tprintRuntimes();\n\t}", "private double getOEEPerformance(Batch batch) {\n return 1;\n }", "private Route extendSpotStructureSpeedUp_v2(Route route) {\n\t\tDate start = new Date();\n\t\tArrayList<Integer> notMapped = new ArrayList<>();\n\t\tArrayList<Long> spotIDs = new ArrayList<>();\n\t\tcalculationLevel++;\n\t\t// counts the points that are in the range of the same (already\n\t\t// existing) spot\n\t\tint inRangeCounter = 0;\n\t\t// indicates if the last point was in the range of an existing spot\n\t\tboolean lastPointInSpot = false;\n\t\t// ID of the last Spot a trajectory point was in range of\n\t\t// default = 0\n\t\tLong lastInRangeID = -1l;\n\t\t// indicates if trajectory was in the last run in the range of a spot\n\t\t// and now is immediately in the range of another spot\n\t\tboolean changedSpotInRange = false;\n\n\t\t//lastSpot\n\t\tSpot lastSpot = null;\n\n\t\t// iterate through the trajectory\n\t\tfor (int j = 0; j < route.route.length; j++) {\n\t\t\t// search the closest spot\n\t\t\tInfoBundle infobundle;\n\t\t\tGpsPoint gpsPoint = route.route[j];\n\t\t\tdouble distanceToLastSpot = 1000000;\n\t\t\tif(lastSpot !=null){\n\t\t\t\tdistanceToLastSpot = GPSDataProcessor.calcDistance(gpsPoint.getLatitude(),gpsPoint.getLongitude(),lastSpot.getLatitude(),lastSpot.getLongitude());\n\t\t\t}\n\t\t\tif(distanceToLastSpot < Spot.stdRadius){\n\t\t\t\tInfoBundle bundle = new InfoBundle(lastSpot.getSpotID(), lastSpot.getLatitude(), lastSpot.getLongitude(), true, distanceToLastSpot);\n\t\t\t\tbundle.setSpot(lastSpot);\n\t\t\t\tinfobundle = bundle;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tinfobundle = searchClosestSpot(route.route[j]);\n\t\t\t}\n\t\t\troute.route[j].setClosestSpotInfo(infobundle);\n\n\t\t\t// variables\n\t\t\tint tempCounter = inRangeCounter;\n\t\t\tSpot spot = null;\n\n\t\t\t// check if the current point is... in range / outside / able to\n\t\t\t// create a new spot\n\t\t\tif (infobundle == null || infobundle.distance >= (Spot.stdRadius * 2)) {\n\t\t\t\t// update counter\n\t\t\t\tinRangeCounter = 0;\n\t\t\t\tlastPointInSpot = false;\n\t\t\t\t// generate spot\n\t\t\t\tspot = generateSpot(route, j);\n\t\t\t\troute.route[j].setSpot(spot);\n\t\t\t\troute.route[j].setMappedToSpot(true);\n\t\t\t\tspot.spotID = spotQuery.addSpot(spot,session);\n\t\t\t} else if (!infobundle.inRange && infobundle.distance < (Spot.stdRadius * 2)) {\n\t\t\t\t// update counter\n\t\t\t\tinRangeCounter = 0;\n\t\t\t\tlastPointInSpot = false;\n\t\t\t\tnotMapped.add(j);\n\n\t\t\t} else if (infobundle.inRange) {\n\t\t\t\t// point in range\n\t\t\t\tspot = infobundle.getSpot();\n\t\t\t\troute.route[j].setSpot(spot);\n\t\t\t\troute.route[j].setMappedToSpot(true);\n\t\t\t\t// check if the last point was in the same spot\n\t\t\t\tif (lastPointInSpot) {\n\t\t\t\t\tif (!infobundle.minDistance_spotID.equals(lastInRangeID)) {\n\t\t\t\t\t\tinRangeCounter = 0;\n\t\t\t\t\t\tchangedSpotInRange = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tinRangeCounter++;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tinRangeCounter++;\n\t\t\t\t}\n\t\t\t\tlastInRangeID = infobundle.minDistance_spotID;\n\t\t\t\tlastPointInSpot = true;\n\t\t\t}\n\n\t\t\t// Get closest point in range if there was more points in the range\n\t\t\t// of one spot to update the spot\n\t\t\tif (tempCounter > inRangeCounter) {\n\t\t\t\t// default = 100 - no meaning\n\t\t\t\tdouble minDistance = 100;\n\t\t\t\tint minIndex = 0;\n\t\t\t\tfor (int n = 1; n <= tempCounter; n++) {\n\t\t\t\t\tdouble dist = route.route[j-n].getClosestSpotInfo().distance;\n\t\t\t\t\tif (dist < minDistance) {\n\t\t\t\t\t\tminDistance = dist;\n\t\t\t\t\t\tminIndex = (j - n);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tInfoBundle nearestClusterInfo = route.route[minIndex].getClosestSpotInfo();\n\t\t\t\tSpot sp = nearestClusterInfo.getSpot();\n\t\t\t\t// this function will update the spot\n\t\t\t\tsp.updateSpot(route.route[minIndex]);\n\t\t\t\tspotQuery.updateSpot(sp, session);\n\t\t\t}\n\n\t\t\t// if the spot in range was changed related to spot of the point\n\t\t\t// before\n\t\t\tif (changedSpotInRange) {\n\t\t\t\tinRangeCounter = 1;\n\t\t\t\tchangedSpotInRange = false;\n\t\t\t}\n\n\t\t\tif(j==0){\n\t\t\t\tif(spot != null) {\n\t\t\t\t\tspotIDs.add(spot.getSpotID());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (spot != null && lastSpot != null) {\n\t\t\t\tif (!spot.getSpotID().equals(lastSpot.getSpotID())) {\n\t\t\t\t\taddNeighbor(lastSpot,spot);\n\t\t\t\t\tspotIDs.add(spot.getSpotID());\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(spot != null){\n\t\t\t\tlastSpot = spot;\n\t\t\t}\n\t\t}\n\n\t\t// complete spot mapping\n\t\tfor (int k = 0; k < notMapped.size(); k++) {\n\t\t\t// check for the points that wasn't able to build an own spot or\n\t\t\t// wasn't in the range of a spot\n\t\t\tGpsPoint currentPoint = route.route[notMapped.get(k)];\n\n\t\t\tSpot closestSpot = null;\n\t\t\tSpot currentclosestSpot = route.route[notMapped.get(k)].getClosestSpotInfo().getSpot();\n\t\t\tfor (int temp = notMapped.get(k) + 1; temp < route.route.length; temp++) {\n\t\t\t\tif (route.route[temp].isMappedToSpot()) {\n\t\t\t\t\tSpot nextSpot = route.route[temp].getSpot();\n\t\t\t\t\tdouble distance = GPSDataProcessor.calcDistance(nextSpot.getLatitude(), nextSpot.getLongitude(),\n\t\t\t\t\t\t\troute.route[temp].getLatitude(), route.route[temp].getLongitude());\n\t\t\t\t\tif (distance < route.route[notMapped.get(k)].getClosestSpotInfo().minDistance_spotCenterlat) {\n\t\t\t\t\t\tclosestSpot = nextSpot;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclosestSpot = currentclosestSpot;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tclosestSpot = currentclosestSpot;\n\t\t\t\t}\n\t\t\t\tif(temp > notMapped.get(k) + 5){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\troute.route[notMapped.get(k)].setSpot(closestSpot);\n\t\t\troute.route[notMapped.get(k)].setMappedToSpot(true);\n\t\t}\n\n\t\tCollections.sort(spotIDs);\n\n\t\tLong lastValue = null;\n\t\tfor(Iterator<Long> i = spotIDs.iterator(); i.hasNext();) {\n\t\t\tLong currentValue = i.next();\n\t\t\tif(lastValue != null && currentValue.equals(lastValue)) {\n\t\t\t\ti.remove();\n\t\t\t}\n\t\t\tlastValue = currentValue;\n\t\t}\n\n\t\tDate stop = new Date();\n\n\t\tlong overallTime = stop.getTime()-start.getTime();\n\t\t//System.out.println(\"OVERALL TIME: SINGLE ROUTE: \"+ overallTime);\n\n\t\treturn route;\n\t}", "public static void main(String[] args){\n\t\tint increment=1;\n\t\tfor(int m=0;m<=5000;m+=increment){\n\t\t\tif(m==10)\n\t\t\t\tincrement=5;\n\t\t\tif(m==100)\n\t\t\t\tincrement=100;\n\t\t\tif(m==500)\n\t\t\t\tincrement=500;\n\n\t\t\tfor(int l=0;l<30;++l){\n\t\t\t\tdouble[][][] AFFINITY3=new double[Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER];\n\t\t\t\tRandom r=new Random(l);\n\t\t\t\tdouble affinity;\n\t\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\t\taffinity=r.nextDouble();\n\t\t\t\t\t\t\t}while(affinity==0);\n\t\t\t\t\t\t\tAFFINITY3[i][j][k]=AFFINITY3[i][k][j]=AFFINITY3[k][i][j]=AFFINITY3[j][i][k]=AFFINITY3[k][j][i]=AFFINITY3[j][k][i]=affinity;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tList<Node> infrastructure=new ArrayList<>();\n\t\t\t\tfor(int i=0; i<TEST_NUMBER_OF_NODES;++i)\n\t\t\t\t\tinfrastructure.add(new Node(TEST_NUMBER_OF_CORES, TEST_RAM_SIZE));\n\t\t\t\tList<Task> tasks=new ArrayList<>();\n\t\t\t\tTaskType[] types=TaskType.values();\n\t\t\t\tfor(int i=0;i<TEST_NUMBER_OF_PROCESS;++i){\n\t\t\t\t\tTaskType type=types[r.nextInt(Task.TYPES_OF_TASK_NUMBER)];\n\t\t\t\t\tint instanceNumber=r.nextInt(101)+10;//from 10 to 100 instances\n\t\t\t\t\tint coresPerInstance=r.nextInt(12)+1;//from 1 to 12\n\t\t\t\t\tint ramPerinstance=r.nextInt(12*1024+101)+100;//from 100MB to 12GB\n\t\t\t\t\tdouble baseTime=r.nextInt(10001)+1000;//from 100 cycles to 1000\n\t\t\t\t\ttasks.add(new Task(type,instanceNumber,coresPerInstance,ramPerinstance,baseTime));\n\t\t\t\t}\n\t\t\t\tList<Integer> arrivalOrder=new ArrayList<>();\n\t\t\t\tint tasksSoFar=0;\n\t\t\t\tdo{\n\t\t\t\t\ttasksSoFar+=r.nextInt(11);\n\t\t\t\t\tarrivalOrder.add((tasksSoFar<tasks.size())?tasksSoFar:tasks.size());\n\t\t\t\t}while(tasksSoFar<tasks.size());\n\t\t\t\tfinal Scheduler scheduler=new AffinityAwareFifoScheduler(tasks, arrivalOrder, infrastructure,AFFINITY3,AffinityType.NORMAL,m);\n\t\t\t\tThread t=new Thread(new Runnable() {\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tscheduler.runScheduler();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\n\t\t\t\t} catch (InterruptedException 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\tSystem.out.println(\"Finished running.\");\n\t\t\t}\n\t\t}\n\t}", "private static void asymptoticAnalysis() {\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint[] array = getMeRandomArray(100*i);\n\t\t\t// Start timer here\n\t\t\tSystem.out.println(maximumSubarray(array));\n\t\t\t// End timer here\n\t\t\t// Print time here\n\t\t}\n\t\t\n\t}", "public void increment(long delta) {\n long cnt = this.count.addAndGet(delta);\n if(cnt > max) {\n max = cnt;\n }\n this.lastSampleTime.set(getSampleTime());\n }", "synchronized long userUpdate(long value) {\n\n if (value == currValue) {\n currValue += increment;\n\n return value;\n }\n\n if (increment > 0) {\n if (value > currValue) {\n currValue += ((value - currValue + increment) / increment)\n * increment;\n }\n } else {\n if (value < currValue) {\n currValue += ((value - currValue + increment) / increment)\n * increment;\n }\n }\n\n return value;\n }", "public static void main(String[] args) \n {\n int[] numOfPoints = { 1000, 10000, 7000, 10000, 13000 };\n for(int count = 0; count < numOfPoints.length; count++)\n {\n List<Point> pointsTobeUsed = new ArrayList<Point>();\n int current = numOfPoints[count];\n int inc = 0;\n \n //creating list of points to be used\n for(int x = 0; x <= current; x++)\n {\n \n if(x <= current/2)\n {\n pointsTobeUsed.add(new Point(x,x));\n \n }\n else\n {\n pointsTobeUsed.add(new Point(x, x - (1 + 2*(inc)) ) );\n inc++;\n }\n }\n \n //n logn implementation of Pareto optimal\n long timeStart = System.currentTimeMillis();\n \n // n logn quicksort\n pointsTobeUsed = quickSort(pointsTobeUsed, 0, pointsTobeUsed.size() -1 );\n \n \n \n ParetoOptimal(pointsTobeUsed);\n \n \n long timeEnd = System.currentTimeMillis();\n System.out.println(\"final:\" + \" exper: \" + (timeEnd - timeStart) + \" N: \" + current ); \n }\n }", "default void inc(long value) {\n\t\tcount(Math.abs(value));\n\t}", "public void update(long value) {\n\t\tcount.incrementAndGet();\n\t\tsample.update(value);\n\t\tsetMax(value);\n\t\tsetMin(value);\n\t\t_sum.getAndAdd(value);\n\t\tupdateVariance(value);\n\t}", "@Test\n void shouldIncrementCounter100kTimes() throws InterruptedException {\n Collection<Thread> threads = new ArrayList<>();\n for (int threadIdx = 0; threadIdx < 20; threadIdx++) {\n Thread thread = new Thread(() -> {\n for (int i = 0; i < 100_000 / 20; i++) {\n counter.increment();\n }\n });\n thread.start();\n threads.add(thread);\n }\n for (Thread thread : threads) {\n thread.join();\n }\n\n // then: counter value should be 100k\n assertEquals(100_000, counter.total(),\n \"Counter wasn't incremented expected number of times\");\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}", "@Override\n\tpublic void increaseSpeed() {\n\t\tSystem.out.println(\"increaseSpeed\");\n\t\t\n\t}", "void increase();", "void increase();", "public void increaseCounter(UltraSearchSessions.Session session,\n HugeType type, long increment) {\n\n\n JSONObject result = session.get(TABLE, type.name());\n if(null == result){\n putCounter(session, type, increment);\n return;\n }\n\n\n JSONObject obj = new JSONObject();\n\n JSONObject fields = new JSONObject();\n JSONObject id = new JSONObject();\n id.put(\"increment\", increment);\n fields.put(\"ID\", id);\n\n obj.put(\"fields\", fields);\n session.putDoc(TABLE, type.name(), obj.toString());\n\n\n }", "private static void increaseCountedData(CountedData counter, int i, long increaseNum) throws InstantiationException, IllegalAccessException {\n \tField f[] = counter.getClass().getDeclaredFields(); \n \tf[i].setAccessible(true); \n \tlong num = f[i].getLong(counter);\n \tnum = num + increaseNum;\n \tf[i].setLong(counter, num);\n\t\t//System.out.println(\"Here is your \" + f[i].getName() + \" = \" + num );\n }", "public void setWalkSpeed(int n)\n{\n walkSpeed = n;\n}", "void startBenchmark() throws Exception {\n RspList<IncrementResult> responses = null;\n try {\n RequestOptions options = new RequestOptions(ResponseMode.GET_ALL, 0)\n .flags(Message.Flag.OOB, Message.Flag.DONT_BUNDLE, Message.Flag.NO_FC);\n responses = disp.callRemoteMethods(null, new MethodCall(START), options);\n } catch (Throwable t) {\n System.err.println(\"starting the benchmark failed: \" + t);\n return;\n }\n\n long total_incrs = 0;\n long total_time = 0;\n AverageMinMax avg_incrs = null;\n\n System.out.println(\"\\n======================= Results: ===========================\");\n for (Map.Entry<Address, Rsp<IncrementResult>> entry : responses.entrySet()) {\n Address mbr = entry.getKey();\n Rsp<IncrementResult> rsp = entry.getValue();\n IncrementResult result = rsp.getValue();\n if (result != null) {\n total_incrs += result.num_increments;\n total_time += result.total_time;\n if (avg_incrs == null)\n avg_incrs = result.avg_increments;\n else\n avg_incrs.merge(result.avg_increments);\n }\n System.out.println(mbr + \": \" + result);\n }\n double total_reqs_sec = total_incrs / (total_time / 1000.0);\n System.out.println(\"\\n\");\n System.out.println(Util.bold(String.format(\"Throughput: %,.2f increments/sec/node\\n\" +\n \"Time: %s / increment\\n\",\n total_reqs_sec, print(avg_incrs, print_details))));\n System.out.println(\"\\n\\n\");\n }", "private static void task01(int nUMS, BinarySearchTree<Integer> t, GenerateInt generateInt) {\n\t\t\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Fill in the table...Binary Tree\" );\n\t\t int count=1;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\t \t\t \n\t\t\t\tt.insert(GenerateInt.generateNumber());\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\t\t\t\tcount = i;\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t\t \n\t\t }", "private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }", "private void plusTime(){\n\n if(totalTimeCountInMilliseconds < 10000)\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(totalTimeCountInMilliseconds + 3000, 50);// give extra 3000 milliseconds if they get the answer right\n }\n else\n {\n countDownTimer.cancel();\n countDownTimer = new MyCountDown(10000, 50);// set the timer to 10000 millisec if totalTimeCountInMilliseconds + 3000 > 10000\n }\n\n countDownTimer.start();\n\n\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\nfor (double b = 0.5; b < 0.51; b+=0.1) {\n for (double k = 4.40; k < 4.5; k+=0.5) {\n Machine.b = 0.5; //0.2 - ATCnon-delay\n Machine.k = 1.5; //1.4 - ATCnon delay\n int hits = 0;\n engineJob = new cern.jet.random.engine.MersenneTwister(99999);\n noise = new cern.jet.random.Normal(0, 1, engineJob);\n SmallStatistics[] result = new SmallStatistics[5];\n result[0] = new SmallStatistics();\n result[1] = new SmallStatistics();\n for (int ds = 0; ds < 2; ds++) {\n JSPFramework[] jspTesting = new JSPFramework[105];\n for (int i = 0; i < jspTesting.length; i++) {\n jspTesting[i] = new JSPFramework();\n jspTesting[i].getJSPdata(i*2 + 1);\n }\n //DMU - instances (1-80)//la - instances (81-120)\n //mt - instances (121/-123)//orb - instances (124-133)//ta -instances (134-173)\n //////////////////////////////////////////////\n for (int i = 0; i < jspTesting.length; i++) {\n double countEval = 0;\n double tempObj = Double.POSITIVE_INFINITY;\n double globalBest = Double.POSITIVE_INFINITY;\n boolean[] isApplied_Nk = new boolean[2]; //Arrays.fill(isApplied_Nk, Boolean.TRUE);\n int Nk = 0; // index of the Iterative dispatching rule to be used\n jspTesting[i].resetALL();\n boolean firstIteration = true;\n double countLargeStep = 0;\n do{\n countEval++;\n //start evaluate schedule\n jspTesting[i].reset();\n int N = jspTesting[i].getNumberofOperations();\n jspTesting[i].initilizeSchedule();\n int nScheduledOp = 0;\n\n //choose the next machine to be schedule\n while (nScheduledOp<N){\n\n Machine M = jspTesting[i].Machines[jspTesting[i].nextMachine()];\n\n jspTesting[i].setScheduleStrategy(Machine.scheduleStrategy.HYBRID );\n jspTesting[i].setPriorityType(Machine.priorityType.ATC);\n jspTesting[i].setNonDelayFactor(0.3);\n //*\n jspTesting[i].setInitalPriority(M);\n for (Job J:M.getQueue()) {\n double RJ = J.getReadyTime();\n double RO = J.getNumberRemainingOperations();\n double RT = J.getRemainingProcessingTime();\n double PR = J.getCurrentOperationProcessingTime();\n double W = J.getWeight();\n double DD = J.getDuedate();\n double RM = M.getReadyTime();\n double RWT = J.getCurrentOperationWaitingTime();\n double RFT = J.getFinishTime();\n double RNWT = J.getNextOperationWaitingTime();\n int nextMachine = J.getNextMachine();\n\n if (nextMachine==-1){\n RNWT=0;\n } else {\n RNWT = J.getNextOperationWaitingTime();\n if (RNWT == -1){\n RNWT = jspTesting[i].getMachines()[nextMachine].getQueueWorkload()/2.0;\n }\n }\n if (RWT == -1){\n RWT = M.getQueueWorkload()/2.0;\n }\n //J.addPriority((W/PR)*Math.exp(-maxPlus((DD-RM-PR-(RT-PR+J.getRemainingWaitingTime(M)))/(3*M.getQueueWorkload()/M.getNumberofJobInQueue())))); //iATC\n //J.addPriority((PR*PR*0.614577*(-RM-RM/W)-RT*PR*RT/W)\n // -(RT*PR/(W-0.5214191)-RM/W*PR*0.614577+RT*PR/(W-0.5214191)*2*RM/W));\n //J.addPriority(((W/PR)*((W/PR)/(RFT*RFT)))/(max(div((RFT-RT),(RWT/W)),IF(RFT/W-max(RFT-RT,DD),DD,RFT))+DD/RFT+RFT/W-max(RFT-RFT/W,DD))); //best TWT priorityIterative\n if (Nk==0)\n //J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((min(RT,RNWT-RFT)/(RJ-min(RWT,RFT*0.067633785)))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((div(min(RT,RNWT-RFT),(RJ-min(RWT,RFT*0.067633785))))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n else\n J.addPriority(min((((W/PR)/RFT)/(2*RNWT+max(RO,RFT)))/(PR+RNWT+max(RO,RFT)),((W/PR)/RFT)/PR)/RFT);\n }\n //jspTesting[i].calculatePriority(M);\n jspTesting[i].sortJobInQueue(M);\n Job J = M.completeJob();\n if (!J.isCompleted()) jspTesting[i].Machines[J.getCurrentMachine()].joinQueue(J);\n nScheduledOp++;\n }\n double currentObj = -100;\n currentObj = jspTesting[i].getTotalWeightedTardiness();\n if (tempObj > currentObj){\n tempObj = currentObj;\n jspTesting[i].recordSchedule();\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n //System.out.println(\"Improved!!!\");\n }\n else {\n isApplied_Nk[Nk] = true;\n if (!isNextApplied(Nk, isApplied_Nk)) Nk = circleShift(Nk, isApplied_Nk.length);\n else {\n if (globalBest>tempObj) {\n globalBest = tempObj;\n jspTesting[i].storeBestRecordSchedule();\n } jspTesting[i].restoreBestRecordSchedule();\n if (countLargeStep<1) {\n tempObj = Double.POSITIVE_INFINITY;\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n jspTesting[i].shakeRecordSchedule(noise, engineJob, globalBest);\n countLargeStep++;\n }\n else break;\n }\n }\n firstIteration = false;\n \n } while(true);\n result[ds].add(jspTesting[i].getDevREFTotalWeightedTardiness(globalBest));\n if (jspTesting[i].getDevLBCmax()==0) hits++;\n System.out.println(jspTesting[i].instanceName + \" & \"+ globalBest + \" & \" + countEval);\n }\n }\n //jsp.schedule();\n //*\n System.out.println(\"*************************************************************************\");\n System.out.println(\"[ & \" + formatter.format(result[0].getMin()) + \" & \"\n + formatter.format(result[0].getAverage()) + \" & \" + formatter.format(result[0].getMax()) +\n \" & \" + formatter.format(result[1].getMin()) + \" & \"\n + formatter.format(result[1].getAverage()) + \" & \" + formatter.format(result[1].getMax()) + \"]\");\n //*/\n System.out.print(\"\"+formatter.format(result[0].getAverage()) + \" \");\n }\n System.out.println(\"\");\n}\n }", "public int incrementPower(int count);", "public void incLevel(int lvl){this.Level=this.XP/(100);}", "synchronized long systemUpdate(long value) {\n\n if (value == currValue) {\n currValue += increment;\n\n return value;\n }\n\n if (increment > 0) {\n if (value > currValue) {\n currValue = value + increment;\n }\n } else {\n if (value < currValue) {\n currValue = value + increment;\n }\n }\n\n return value;\n }", "public void Increase()\n {\n Increase(1);\n }", "@Override\r\n\tpublic double getSlowness() {\n\t\treturn 10;\r\n\t}", "public static void highlyDivisibleTriangularNumber(){\n\n int position = 1;\n long triangleNumber;\n Long[] factors;\n do{\n position ++;\n triangleNumber = getTriangleNumber(position);\n factors = getFactors(triangleNumber); \n }while(factors.length <= 500);\n\n System.out.println(triangleNumber);\n}", "public void multiThreadCalc(int threadCount, int limit){\n ArrayList<Integer> pids = lcm.getALLProjectID();\n int total = pids.size();\n List<ArrayList<Integer>> pidList = new ArrayList<ArrayList<Integer>>();\n for(int i = 0; i < threadCount; i++) pidList.add(new ArrayList<Integer>());\n for(int i = 0; i < total;){\n for(int j = 0; j < threadCount && i < total; j++, i++)\n pidList.get(j).add(pids.get(i));\n }\n Thread[] threads = new Thread[threadCount];\n for(int i = 0; i < threadCount; i++){\n threads[i] = new Thread(new LangCompetenceMultiThread(i, pidList.get(i), lcm));\n }\n long startTime = System.currentTimeMillis();\n int startCount = Thread.activeCount();\n for(int i = 0; i < threadCount; i++)\n threads[i].start();\n int endCount = Thread.activeCount();\n while(endCount != startCount) endCount = Thread.activeCount();\n long endTime=System.currentTimeMillis();\n System.out.println(\"Used : \" + (endTime - startTime) + \"ms\");\n System.out.println(\"Calculated : \" + commit_count + \" commits\");\n }", "public static void adjustScoreIncrement() {\n\t\tint extraPoints = 0;\n\t\tif (!Snake.warpWallOn) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Block.blocksOn) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Snake.snakeGrowsQuickly) {\n\t\t\textraPoints++;\n\t\t}\n\t\tif (Snake.snakeGrowsReallyQuickly) {\n\t\t\textraPoints+=3;\n\t\t}\n\t\t// increment equals all the bonuses, starting at a minimum of 1. This decreases if user switches to easier modes. Bigness and Fastness are reduced by 1 each here to keep the amount of increase down; it could be pumped up for a really high-scoring game\n\t\tincrement = extraPoints + SnakeGame.getBigness()-1 + SnakeGame.getFastness()-1 + Snake.snakeSize/10 ;\n\t}", "@Test\n\tpublic void testMakeMeterSectionTimes() {\n\t\tScorePiece sp = new ScorePiece(MIDIImport.importMidiFile(midiTestGetMeterKeyInfo));\n\t\tScoreMetricalTimeLine smtl = new ScoreMetricalTimeLine(sp.getMetricalTimeLine());\n\n\t\tList<Long> expected = Arrays.asList(new Long[]{\n\t\t\t(long) 0, \n\t\t\t(long) 1800000, \n\t\t\t(long) 11400000, \n\t\t\t(long) 25800000, \n\t\t\t(long) 30600000, \n\t\t\t(long) 31350000\n\t\t});\n\n\t\tList<Long> actual = smtl.makeMeterSectionTimes();\n\n\t\tassertEquals(expected.size(), actual.size());\n\t\tfor (int i = 0; i < expected.size(); i++) {\n\t\t\tassertEquals(expected.get(i), actual.get(i));\t\t\n\t\t}\n\t\tassertEquals(expected, actual);\n\t}", "@Override\r\n public int paddleSpeed() {\r\n return 5;\r\n }", "private void multiply_shotmap(Node parent, int valueMove, int[] shotmap){\n\t\t//Account for shooting back at the starting position\n\t\tfor(int x = 0; x <= 9; x++){\n\t\t\tfor(int y = 0; y <= 9; y++){\n\t\t\t\tif(shotmap[y*GRID+x] >= 0){ // need 0 because orign point is 0*65536 = 0\n\t\t\t\t\tint move = (((shotmap[y*GRID+x]&0xffff) << 16) | valueMove);\n\t\t\t\t\tif(move != 0) {\n\t\t\t\t\t\tparent.addChild(new Node(move,parent));\n//\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "org.landxml.schema.landXML11.SpeedsDocument.Speeds insertNewSpeeds(int i);", "@Override\n public String run() {\n long sum = 0;\n int limit = 2000000;\n for (int num = 2; num < limit; num++){\n if(isPrime(num)){\n sum += num;\n }\n }\n return Long.toString(sum);\n }", "public static int createnumOfMutationss(){\n\t\tint totalMut = 0;\n\t\t\n\t\tint[] gen0 = new int[(int) Math.pow(2,0)]; //size of numOfMutations is based on exponential growth by generation number\n\t\t\tmutate(gen0); //function to mutate\n\t\t\ttotalMut = totalMut + totalMutations(gen0);\n\t\tint[] gen1 = new int[(int) Math.pow(2,1)];\n\t\t\tcheckMutations(gen0, gen1); //checks for previous generation mutations\n\t\t\tmutate(gen1);\n\t\t\ttotalMut = totalMut + totalMutations(gen1);\n\t\tint[] gen2 = new int[(int) Math.pow(2,2)];\n\t\t\tcheckMutations(gen1, gen2);\n\t\t\tmutate(gen2);\n\t\t\ttotalMut = totalMut + totalMutations(gen2);\n\t\tint[] gen3 = new int[(int) Math.pow(2,3)];\n\t\t\tcheckMutations(gen2, gen3);\n\t\t\tmutate(gen3);\n\t\t\ttotalMut = totalMut + totalMutations(gen3);\n\t\tint[] gen4 = new int[(int) Math.pow(2,4)];\n\t\t\tcheckMutations(gen3, gen4);\n\t\t\tmutate(gen4);\n\t\t\ttotalMut = totalMut + totalMutations(gen4);\n\t\tint[] gen5 = new int[(int) Math.pow(2,5)];\n\t\t\tcheckMutations(gen4, gen5);\n\t\t\tmutate(gen5);\n\t\t\ttotalMut = totalMut + totalMutations(gen5);\n\t\tint[] gen6 = new int[(int) Math.pow(2,6)];\n\t\t\tcheckMutations(gen5, gen6);\n\t\t\tmutate(gen6);\n\t\t\ttotalMut = totalMut + totalMutations(gen6);\n\t\tint[] gen7 = new int[(int) Math.pow(2,7)];\n\t\t\tcheckMutations(gen6, gen7);\n\t\t\tmutate(gen7);\n\t\t\ttotalMut = totalMut + totalMutations(gen7);\n\t\tint[] gen8 = new int[(int) Math.pow(2,8)];\n\t\t\tcheckMutations(gen7, gen8);\n\t\t\tmutate(gen8);\n\t\t\ttotalMut = totalMut + totalMutations(gen8);\n\t\tint[] gen9 = new int[(int) Math.pow(2,9)];\n\t\t\tcheckMutations(gen8, gen9);\n\t\t\tmutate(gen9);\n\t\t\ttotalMut = totalMut + totalMutations(gen9);\n\t\tint[] gen10 = new int[(int) Math.pow(2,10)];\n\t\t\tcheckMutations(gen9, gen10);\n\t\t\tmutate(gen10);\n\t\t\ttotalMut = totalMut + totalMutations(gen10);\n\t\t\t\n\t\t\treturn totalMut;\n\t\n\t}", "double calculateGLBasicMass(int i1, int i2, int i3)\n {\n\n // Array of Glycerolipid's num of Carbon, Hydrogen repeated (for SN1 Dropdown Menu's values)\n int[] arrayGL_sn1 = {\n 5,10, 7,14, 9,18, 11,22, 13,26, 15,30, 16,32, 17,34,\n 17,32, 18,36, 18,34, 19,40, 19,38, 19,38, 19,36, 20,40,\n 20,38, 20,36, 21,44, 21,42, 21,42, 21,40, 21,40, 21,38,\n 21,36, 21,36, 21,34, 22,44, 23,48, 23,46, 23,46, 23,44,\n 23,42, 23,40, 23,38, 23,36, 24,48, 25,50, 25,48, 25,46,\n 25,44, 25,42, 25,40, 25,38, 26,52, 27,54, 27,52, 28,56, 29,58};\n\n // addCarbon array: Amount of increase in Carbon when on certain sn2 & sn3 index position\n int[] addCarbon = {\n 0, 2, 4, 6, 8, 10, 12, 13, 14, 14, 15, 15, 16, 16, 17, 17, 17,\n 18, 18, 18, 18, 18, 18, 18, 19, 20, 20, 20, 20,\t20,\t20, 21, 22,\n 22,\t22,\t22,\t22, 22, 22, 23, 24, 24, 25, 26 };\n\n // addHydrogen array: Amount of increase in Hydrogen when on certain sn2 & sn3 index position\n int[] addHydrogen = {\n 0, 2, 6, 10, 14, 18, 22, 24, 26, 24, 28, 26, 30, 28, 32, 30, 28,\n 34,\t32,\t32,\t30,\t28,\t28,\t26,\t36,\t38,\t36,\t34,\t32,\t30,\t28,\t40,\t42,\n 40,\t38,\t36,\t34,\t32,\t30,\t44,\t46,\t44,\t48,\t50 };\n\n // Get the # of C & H depending on the index position of SN1's dropdown menu\n int numOfC = arrayGL_sn1[i1 * 2], numOfH = arrayGL_sn1[i1 * 2 + 1];\n\n // Add carbon & hydrogen depending on SN2 and SN3 dropdown menu's index position\n numOfC = numOfC + addCarbon[i2] + addCarbon[i3];\n numOfH = numOfH + addHydrogen[i2] + addHydrogen[i3];\n\n /* Set Number of Carbon & Hydrogen */\n setNumC(numOfC); setNumH(numOfH);\n\n /* Set Number of Oxygen */\n\n // If SN1 Dropdown index is not O or P\n if (i1 != 11 && i1 != 12 && i1 != 18 && i1 != 19 && i1 != 28 && i1 != 29) {\n\n if (i2 == 0 && i3 == 0){ setNumO(4); }\n else if (i2 == 0 || i3 == 0) { setNumO(5); }\n else setNumO(6);\n\n // If SN1 Dropdown index is O or P\n } else {\n\n if (i2 == 0 && i3 == 0){ setNumO(3); }\n else if (i2 == 0 || i3 == 0) { setNumO(4); }\n else setNumO(5);\n }\n\n // Sets the basic mass based on the elemental composition of the monoisotopic distribution\n setMass(calculateInitialMass(getNumC(), getNumH(), getNumO(), getNumN(), getNumAg(),\n getNumLi(), getNumNa(), getNumK(), getNumCl(), getNumP(), getNumS(), getNumF()));\n\n // Return basic mass\n return getMass();\n }", "@Test\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }", "default void setSpikesPerChunk(int count) {\n setSpikesPerChunk(VariableAmount.fixed(count));\n }", "public static void main(String[] args) {\n\tint cnt = 4;\n\t\tfor (int i = 4; i <= 30;i++) {\n\t\t\tfor (int k = 0; k < 5; k++) {\n\t\t\t\tif(cnt <= 30) {\n\t\t\t\tfor (int j = 10 * (i - 4) + 11; j < 10 * (i - 3) + 11; j++) {\n\t\t\t\t\tSystem.out.println(String.format(\n\t\t\t\t\t\t\t\"insert into tblTestPercent (seqTestPercent, seqRegCourse, seqBasicTest, writtenPercent, practicalPercent, attendancePercent) \"\n\t\t\t\t\t\t\t\t\t+ \"values (seqTestPercent.nextVal, %d, %d, 40, 40, 20);\",\n\t\t\t\t\t\t\tj,cnt ));\n\t\t\t\t}\n\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\n//\tRandom rand = new Random();\n//\n//\tfor (int i = 31; i < 300; i++) {\n//\t\tint writ = 0;\n//\t\tint prac = 0;\n//\t\tint attend = 0;\n//\t\twhile (writ + prac + attend != 100) {\n//\t\t\twrit = rand.nextInt(70)+31;\n//\t\t\tprac = rand.nextInt(60)+41;\n//\t\t\tattend = rand.nextInt(80)+21;\n//\t\t}\n//\t\tSystem.out.println(String.format(\n//\t\t\t\t\"insert into tblTestScore (seqTestScore, seqTestPercent, writtenScore, practicalScore, attendanceScore) values (seqTestScore.nextVal, %d, %d, %d, %d);\",i,writ,prac,attend));\n//\t}\n\t\n\t\n//\tint writ = 0;\n//\tint prac = 0;\n//\tint attend = 0;\n//\twhile (writ + prac + attend != 100) {\n//\t\t\n//\t\twrit = rand.nextInt(70)+31;\n//\t\tprac = rand.nextInt(60)+41;\n//\t\tattend = rand.nextInt(80)+21;\n//\t\tSystem.out.println(\"필기: \" + writ);\n//\t\tSystem.out.println(\"실기: \" + prac);\n//\t\tSystem.out.println(\"출결: \" +attend);\n//\t}\n//\tSystem.out.println(writ);\n//\tSystem.out.println(prac);\n//\tSystem.out.println(attend);\n//\t\n\t\n}", "public void setMiterLimit(float limit);", "@Override\n\tpublic void limitSpeed() {\n\t\tSystem.out.println(\"120 KMPH\");\n\t}", "public void setSpeed(int value) {\n speed = value;\n if (speed < 40) {\n speedIter = speed == 0 ? 0 : speed / 4 + 1;\n speedWait = (44 - speed) * 3;\n fieldDispRate = 20;\n listDispRate = 20;\n } else if (speed < 100) {\n speedIter = speed * 2 - 70;\n fieldDispRate = (speed - 40) * speed / 50;\n speedWait = 1;\n listDispRate = 1000;\n } else {\n speedIter = 10000;\n fieldDispRate = 2000;\n speedWait = 1;\n listDispRate = 4000;\n }\n }", "@Override\n public double tuition(){\n return 2500;\n }", "@Test\n public void updateIncreasesTimer() {\n BotMemoryRecord record = new BotMemoryRecord();\n record.store(Point.pt(5, 5));\n\n record.update(100);\n\n assertThat(record.getTimeSinceLastSeen(), is(100L));\n }", "private static void findBigramCountsTuring() {\n\n\t\tbigramCountTI= new HashMap<Integer,Double>();\n\t\tdouble value;\n\t\tfor(int i:bucketCountT.keySet()){\n\t\t\tif(i==0)\n\t\t\t\tcontinue;\n\t\t\tvalue= ((i+1)*bucketCountT.getOrDefault(i+1, 0.0))/bucketCountT.get(i);\n\t\t\tbigramCountTI.put(i,value);\n\t\t}\n\t}", "public void accelerate(){\n speed += 5;\n }", "private double genMultiplier() {\n return (random.nextInt(81) + 60)/100.0;\n }", "public int getWalkSpeedInc()\n{\n return walkSpeedInc;\n}", "public void step(long t) {\n\n\t}", "protected void computeIncrement()\r\n\t{\r\n\t\tsuper.increment = this.userDefinedIncrement;\r\n\r\n\t\tdouble powerOfTen = Math.pow( 10, Math.abs( this.getRoundingPowerOfTen() ) );\r\n\r\n\t\t//---round the increment according to user defined power\r\n\t\tsuper.increment = super.round( super.increment, powerOfTen );\r\n\r\n\t\t//---if we round this down to zero, force it to the power of ten.\r\n\t\t//---for example, round to nearest 100, value = 35...would push down to 0 which is illegal.\r\n\t\tif( super.increment == 0 )\r\n\t\t{\r\n\t\t\tsuper.increment = powerOfTen;\r\n\t\t}\r\n\r\n\t\tsuper.setMinValue( super.round( this.userDefinedMinimum, powerOfTen ) );\r\n\t\tsuper.setMaxValue( super.getMinValue() + ( super.increment * super.getNumberOfScaleItems() ) );\r\n\r\n\t}", "public static void pause() {\n int m = 0;\n for (int j = 0; j <= 1000000000; ++j) {\n for (int i = 0; i <= 1000000000; ++i) ++m;\n }\n\n }", "public static void main(String[] args) {\n\t\tRandom rnd = new Random();\n\t\tint[]data = new int[1];\n\t\tint i=0;\n\t\tfor(i=0;i<1;i++){\n\t\t\tdata[i]=rnd.nextInt(1000)+1;\n\t\t\tSystem.out.println(data[i]);\n\t\t\t\tint v1 = data[i]/500;\n\t\t\t\tdata[i] = data[i]%500;\n\t\t\t\tif(v1!=0){\n\t\t\t\t\tSystem.out.println(\"共有\"+v1+\"個500元\");\n\t\t\t\t}\n\t\t\t\tint v2 = data[i]/100;\n\t\t\t\tdata[i] = data[i]%100;\n\t\t\t\tif(v2!=0){\n\t\t\t\t\tSystem.out.println(\"共有\"+v2+\"個100元\");\n\t\t\t\t}\n\t\t\t\tint v3 = data[i]/50;\n\t\t\t\tdata[i] = data[i]%50;\n\t\t\t\tif(v3!=0){\n\t\t\t\t\tSystem.out.println(\"共有\"+v3+\"個50元\"); \n\t\t\t\t}\n\t\t\t\tint v4 = data[i]/10;\n\t\t\t\tdata[i] = data[i]%10;\n\t\t\t\tif(v4!=0){\n\t\t\t\t\tSystem.out.println(\"共有\"+v4+\"個10元\");\n\t\t\t\t}\n\t\t\t\tint v5 = data[i]/5;\n\t\t\t\tdata[i] = data[i]%5;\n\t\t\t\tif(v5!=0){\n\t\t\t\t\tSystem.out.println(\"共有\"+v5+\"個5元\");\n\t\t\t\t}\n\t\t\t\n\t\t\t\tint v6 = data[i]/1;\n\t\t\t\tdata[i] = data[i]%1;\n\t\t\t\tif(v6!=0){\n\t\t\t\t\tSystem.out.println(\"共有\"+v6+\"個1元\");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\t\t \n\t\t\t\t \n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "public void step() {\n \tinternaltime ++;\n \n }", "public static void func(){\n\t\tHashMap<Integer,Integer> map = new HashMap<Integer,Integer>();\n\t\tint limit = 1000;\n\t\tboolean psb[] = generatePrime(limit);\n\t\t\n\t\tint ps[] = MathTool.generatePrime(100000);\n\t\tfor (int i = 1; ps[i]<1000; i++) {\n\t\t\t//System.out.println(ps[i]);\n\t\t}\n\t\tint max=0;\n\t\tfor (int i = 0; ps[i] < limit; i++) {\n\t\t\tint n = ps[i];\n\t\t\tint j=i;\n\t\t\twhile(n<limit){\n\t\t\t\tif(!psb[n]){\n\t\t\t\t\tint num =j-i+1;\n\t\t\t\t\tif(map.containsKey(n)){\n\t\t\t\t\t\tif(map.get(new Integer(n)) < num){\n\t\t\t\t\t\t\tmap.put(n, num);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmap.put(n, num);\n\t\t\t\t\t}\n\t\t\t\t\tif(num > max){\n\t\t\t\t\t\tmax=num;\n\t\t\t\t\t\tSystem.out.println(num+\" \"+n+\" \"+i+\" \"+j);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t\tn+=ps[j];\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void incrementLevels(int levels){\n this.level += levels;\n if (this.level > 10){\n this.level = 10;\n }\n }", "public static void main(String[] args) throws Exception {\n File file = new File(\"out/gSeries\" + Interpolate.prefix + \"/zeros.dat\");\n// DataOutputStream out = Interpolate.outputStream( file);\n ZeroInfo zeroInput = null;\n int N = 1003814;\n double[] nextValues = null;\n double max = 70;\n int run = 0;\n int beginRun = 0;\n for (int i = 0; i < N ; i++) {\n zeroInput = readSingleZero( Interpolate.zeroIn, nextValues);\n nextValues = zeroInput.nextValues;\n// if(i>1003800){\n// if(Math.abs(zeroInput.lastZero[1])>max){\n// run = 0;\n// beginRun = i;\n// } else {\n// run++;\n// }\n// }\n// if(run>40){\n// //run at 1003813\n// System.out.println(\"run at \" + beginRun);\n// break;\n// }\n if(i<3792 ){\n continue;\n }\n final double z0 = zeroInput.lastZero[0];\n final double z1 = zeroInput.nextValues[0];\n final double d0 = zeroInput.lastZero[1];\n final double d1 = zeroInput.nextValues[1];\n final double maxFromInput = d0>0?zeroInput.lastZero[2]:-zeroInput.lastZero[2];\n if(i==3792 || i==1003813){\n //gSeries.begin 476.85026008636953\n Poly4 poly = new Poly4(z0,z1, d0,d1,maxFromInput);\n System.out.println(i + \", \" + Arrays.toString(zeroInput.lastZero) +\n \", \\n\" + \"positionMax \" + poly.positionMax \n + \", \" + poly.eval(poly.positionMax) \n + \", \\n\" + Arrays.toString(nextValues));\n }\n// for (int j = 0; j < zeroInput.lastZero.length; j++) {\n// out.writeDouble(zeroInput.lastZero[j]);\n// }\n// out.writeDouble(poly.positionMax);\n }\n// out.close();\n// DataInputStream in = Interpolate.dataInputStream( file);\n// double[] tmin = new double[4];\n// for (int i = 0; i < N-3792 ; i++) \n// {\n// for (int i1 = 0; i1 < tmin.length; i1++) \n// {\n// tmin[i1] = in.readDouble();\n// }\n// System.out.println(Arrays.toString(tmin));\n// }\n// in.close();\n }", "private static long calc1()\n {\n final int min = 1000;\n final int max = 10000;\n\n // initialize\n List<List<Integer>> m = new ArrayList<>();\n for (int k = 0; k < end; k++) {\n List<Integer> list = new ArrayList<Integer>();\n int n = 1;\n while (k >= start) {\n int p = pkn(k, n);\n if (p >= max) {\n break;\n }\n if (p >= min) {\n list.add(p);\n }\n n++;\n }\n m.add(list);\n }\n\n boolean[] arr = new boolean[end];\n arr[start] = true;\n\n List<Integer> solutions = new ArrayList<>();\n List<Integer> list = m.get(start);\n for (Integer first : list) {\n LinkedList<Integer> values = new LinkedList<>();\n values.add(first);\n f(m, arr, values, 1, solutions);\n // we stop at the first solution found\n if (!solutions.isEmpty()) {\n break;\n }\n }\n\n // solutions.stream().forEach(System.out::println);\n int res = solutions.stream().reduce(0, Integer::sum);\n return res;\n }", "public final void mo23206tL(int i) {\n AppMethodBeat.m2504i(18979);\n C11486d.this.kIr = false;\n C9638aw.m17190ZK();\n C7580z Ry = C18628c.m29072Ry();\n C11486d.this.kIv = System.currentTimeMillis();\n if (i == 0) {\n Ry.setLong(237569, C11486d.this.kIv);\n if (z) {\n C11486d.this.kIw = C11486d.this.kIw + 1;\n } else {\n C11486d.this.kIw = 0;\n }\n Ry.setInt(237570, C11486d.this.kIw);\n } else {\n if (i != 1) {\n Ry.setLong(237569, C11486d.this.kIv);\n if (z) {\n C11486d.this.kIw = 10;\n Ry.setInt(237570, C11486d.this.kIw);\n }\n }\n AppMethodBeat.m2505o(18979);\n }\n Ry.dsb();\n AppMethodBeat.m2505o(18979);\n }" ]
[ "0.61480767", "0.592375", "0.5857498", "0.5595238", "0.5538936", "0.5529638", "0.5410633", "0.53121096", "0.53055465", "0.52726656", "0.5270394", "0.5270173", "0.5264635", "0.5254677", "0.5221277", "0.51820403", "0.51818466", "0.5155666", "0.51541406", "0.51435053", "0.5139141", "0.513638", "0.5117472", "0.51165545", "0.508964", "0.50746876", "0.5073153", "0.50720525", "0.50686795", "0.50643104", "0.50385463", "0.50352615", "0.5034275", "0.5029841", "0.5026681", "0.501982", "0.5018758", "0.5018202", "0.5018202", "0.5006987", "0.5005105", "0.50039405", "0.49863115", "0.49836692", "0.49818593", "0.49815115", "0.49789724", "0.49756938", "0.49684975", "0.49658734", "0.4964184", "0.49586448", "0.49560493", "0.4941195", "0.4941195", "0.4939064", "0.4936555", "0.4935323", "0.49324012", "0.49319118", "0.49196133", "0.49177182", "0.4909169", "0.4905464", "0.49048883", "0.49028412", "0.48993668", "0.48950955", "0.4875845", "0.48755252", "0.4872293", "0.48681876", "0.48672122", "0.48630658", "0.48587483", "0.4850894", "0.48496702", "0.48446104", "0.48435426", "0.4842754", "0.48413968", "0.48369274", "0.4834758", "0.48295605", "0.48290634", "0.48100406", "0.48095557", "0.48031953", "0.48029894", "0.48007137", "0.47912845", "0.47899026", "0.47875872", "0.47853595", "0.4784534", "0.47780982", "0.47743514", "0.47670096", "0.47650185", "0.47634614" ]
0.67418355
0
System.out.println("L2 : "+startVal+" , "+(startVal+incrementnumTimes));
NumarAndDenom Spigot_Level_2(int startVal, int increment, int numTimes) { BigDecimal totalNumar = new BigDecimal(0.0); BigDecimal totalDenom = new BigDecimal(1.0); BigDecimal sixTeen = new BigDecimal(16); BigDecimal sixTeenPow = new BigDecimal(1.0); BigDecimal sixTeenPowIncrement = new BigDecimal(16).pow(increment); int endVal = startVal + increment * numTimes; for(int k=endVal ; k>startVal; k -= increment) { NumarAndDenom nd = Spigot_Level_1(k-increment, k); long startTime = System.currentTimeMillis(); totalNumar = totalNumar.multiply( nd.denom ).add( totalDenom.multiply( nd.numar ) ); totalDenom = totalDenom.multiply( nd.denom ); if(k-increment != startVal) totalDenom = totalDenom.multiply( sixTeenPowIncrement ); totTimeToMultiply += System.currentTimeMillis() - startTime; } //System.out.println("totalNumar precision : "+totalNumar.precision()); //System.out.println("totalDenom precision : "+totalDenom.precision()); NumarAndDenom numerAndDenom = new NumarAndDenom(); numerAndDenom.numar = totalNumar; numerAndDenom.denom = totalDenom; return numerAndDenom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void opration(){ \n System.out.println(\"Final veriable value l:\"+l+\"\\nj:\"+j);\n // l=l+2; erorr it can't change it's value\n \n }", "static void increment() {\r\n\t\tfor (double i =2.4; i<=8.8; i=i+0.2) { \r\n\t\t\tSystem.out.format(\"%.1f %n \",i); //%.1f: to 1 decimal place. %n: print on a new line\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n Runnable run = new Runnable() {\n private int origin = 0;\n @Override\n public void run() {\n for (int i=0;i<2;i++) {\n int value = ++(origin);\n try {\n TimeUnit.SECONDS.sleep(2);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n System.out.print(Thread.currentThread().getId()+\":\"+value+\"\\n\");\n }\n }\n };\n for(int i=0;i<100;i++){\n new Thread(run).start();\n }\n }", "public static void main(String[] args) {\n\n int num1=0,num2=1,sum=0;\n System.out.print(num1+\" \" +num2);\n\n for (int i=1;i<13;i++){\n\n sum=num1+num2;\n\n num1=num2;\n\n num2=sum;\n\n\n System.out.print(\" \" +sum);\n\n\n }\n\n }", "@Override\n\tpublic int add(int val1, int val2) {\n\t\tthis.test++;\n\t\tSystem.out.println(this.test);\n\t\treturn val1+val2;\n\t}", "public static void main(String[] args) {\n\tint result =10;\n\tresult += 1;//result = result +1;\n\tSystem.out.println(result);\n\t}", "public void IncrementCounter()\r\n {\r\n \tsetCurrentValue( currentValue.add(BigInteger.ONE)); \r\n \r\n log.debug(\"counter now: \" + currentValue.intValue() );\r\n \r\n }", "public static void main(String[] args) {\n\n int x = 10;\n int y = x++;\n System.out.println(y++ + \" \"+ x++ + \" \"+y);\n\n }", "public void Series() {\n\t\tint n=2;\n\t\twhile (n<=10) {\n\t\t\tSystem.out.print(n+\" \");\n\t\t\tn=n+2;\n\t\t}\n\t/*\tSystem.out.println(n);\n\t\tn=n+2;\n\t\tSystem.out.println(n);\n\t\tn=n+2;\n\t\tSystem.out.println(n);\n\t\tn=n+2;\n\t\tSystem.out.println(n);\n\t\tn=n+2;\n\t\tSystem.out.println(n);\n\t\tn=n+2;*/\n\t}", "void countUp(int start, int stop) {\n if (start > stop) {\n System.out.println(\"Start value must be less than stop\");\n return;\n }\n //Print the value of start to console\n System.out.println(start); // 1\n\n //add one to value of start on the console\n start++; //start 2\n\n if(start <= stop) {\n countUp(start, stop);\n }\n return;\n }", "public int start() { return _start; }", "manExp15(){ \r\n\r\n\tcount++; \r\n\r\n\tSystem.out.println(count); \r\n\r\n\t}", "@Override\r\n\tpublic int numCurrentsToAdd() {\n\t\treturn 2;\r\n\t}", "void setNextValue() {\n this.value = this.value * 2;\n }", "void increase()\n {\n a++;\n b++ ;\n }", "@Override\npublic String toString() {\nreturn \"\" + counter;\n}", "public static void main(String[] args) {\n\t\tint value = 1;\n\t\t int count = 7;\n\t\t\tint curr = 0;\n\t\t\t int prev = 0;\n\t\t\tint num = 0;\n\t\twhile (value <= count)\n\t\t{\n\t\t\tnum = curr + prev;\n\t\t\tSystem.out.print(num);\t\n\t\t\t\tvalue++;\n\t\t\t\tif (value == 2)\n\t\t\t\t{\n\t\t\t\t\tprev = num;\n\t\t\t\t\tcurr = 1;\n\t\t\t\t}\n\t\t\t\t\t\tprev = curr;\n\t\t\t\t\t\tcurr = num;\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\n\t}", "public static void main(String[] args) {\n int i=12;\n i=i++;\n System.out.println(i);\n }", "public static void main(String[] args) {\n\t\t\n\t\tint i=1;\n\t\tint j=i++; //post increment //first display j=1 and then increment i=2 //\n\t\t\t\tSystem.out.println(i);\n\t\tSystem.out.println(j);\n\n\t\tint p=1;\n\t\tint q=++p;\n\nSystem.out.println(p);\nSystem.out.println(q);\n\nint m=2;\nint n=m--;\nSystem.out.println(m);\nSystem.out.println(n);\n\t}", "public static void main(String[] args) {\n\t\tint start = 100;\r\n\t\tint end = 1;\r\n\t\t//int add = 1;\r\n\t\twhile (start>=end) {\r\n\t\t\tSystem.out.println(start);\r\n\t\t\t//start = start - add;\r\n\t\t\tstart--;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void run() {\n\t\tfor(int i =1; i<=lastNum;i++)\r\n\t\t{\r\n\t\t\tSystem.out.print(\" \"+i);\r\n\t\t}\r\n\t}", "public void step() {\n \tinternaltime ++;\n \n }", "public void increment(){\n value+=1;\n }", "private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }", "public final long getAndIncrement() {\n\t\treturn value++;\n\t}", "public void timeTick()\r\n\t{\r\n\t\tnumberDisplay1.increment();\r\n\t}", "public static void main003(String[] args) {\n\t\t/*\n\t\t * numberStart++ tra ve gia tri cua numberStart, sau đo tang number lan mot đon vi\n\t\t * numberStart-- tra ve gia tri cua numberStart, sau đo giam number xuong mot đon vi\n\t\t * ++numberStart tang numberStart len mot don vi, sau đo tra ve gia tri cua numberStart\n\t\t * --numberStart giam numberStart xuong mot don vi, sau đo tra ve gia tri cua numberStart\n\t\t */\n\t\tint numberStart\t= 20;\n\t\tint numberEnd\t= 0;\n\t\t\n//\t\tnumberEnd\t\t= ++numberStart;\n\t\tnumberEnd\t\t= --numberStart;\n\t\tSystem.out.println(\"Number Start = \" + numberStart);\n\t\tSystem.out.println(\"Number End = \" + numberEnd);\n\t}", "public void add1() {\r\n value++;\r\n }", "public static void main(String[] args) {\nint a1=0;\r\nint a2=1;\r\nint a3=a1+a2;\r\nfor(int row=1;row<=5;row++)\r\n{\r\n\tfor(int col=1;col<row;col++)\r\n\t{\r\n\t\tSystem.out.print(a3+\" \");\r\n\t\ta3=a1+a2;\t//0+1=1\t\t1+1=2 \r\n\t\ta1=a2;\t\t//0=1 1=1\t2=2\r\n\t\ta2=a3;\t\t//1=1 1=1\t1=1\r\n\t}\r\n\tSystem.out.println();\r\n}\r\n\t\r\n}", "public static void main(String[] args) {\nint n1=20;\r\nn1 =50;\r\nSystem.out.println(n1);\r\nn1+=50;\r\nSystem.out.println(n1);\r\nn1-=30;\r\nSystem.out.println(n1);\r\nn1*=2;\r\nSystem.out.println(n1);\r\n\t}", "void increase();", "void increase();", "public static void main(String[] args) {\n\t\tint i = 10;\r\n\t\t// i++;\r\n\t\t i=i+1;\r\n\t\t System.out.println(i);\r\n\t\t i=i+2;\r\n\t\t System.out.println(i);\r\n\t\t \r\n\t\t i+=3;\r\n\t\t System.out.println(i);\r\n\t\t \r\n\t\t i++;\r\n\t\t System.out.println(i);\r\n\t\t \r\n\t\t/* j=j+1;\r\n\t\t System.out.println(j); because we did not declare any variable*/\r\n\r\n\t}", "Myclass(){\n\t\tx+=1; //x=4 burada 4 olarak update edildi. Asagida 4 olarak kullanacagiz\n\t\tSystem.out.print(\"-x\" + x); //-x4\n\t}", "public long timeIncrement(long reps) {\n long result = 0;\n for (; result < reps; result++) {\n }\n return result;\n }", "public void nextIteration() {t++;}", "private static void passoutNum(int start, int end) {\n\t\tlindOfNum(0, start);\n\n\t\tif(start == end) {\n\t\t\t//System.out.println(end);\n\t\t\treturn;\n\t\t}\n\t\t//System.out.print(start);\n\t\tpassoutNum(start + 1, end);\n\t\tlindOfNum(0, start);\n\n\t}", "public void Test1(){//we can change the logic\n\t\tint x = 20;\n\t\tint y = 50;\n\t\tSystem.out.println(\"Addition of 2 values are :\" + (x+y));\n\t}", "public void step(long t) {\n\n\t}", "public static void main(String[] args) {\n\t\tint n1=1,n2=1;\r\n\t\tint n3;\r\n\t\tSystem.out.print(n1+\" \"+n2);\r\n\t\t\r\n\t\tfor(int i=0;i<=20;i++) {\r\n\t\t\tn3=n1+n2;\r\n\t\t\tn1=n2;\r\n\t\t\tn2=n3;\r\n\t\t\t\tSystem.out.print(\" \"+n3);\r\n\t\t}\r\n\t\t\r\n\t}", "private void addTwoNumbers() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t int num1 = 7;\n\t\t System.out.println(++num1); // num의 값 하나 증가후출력 8\n\t\t System.out.println(++num1); // num의 값 하나 증가후출력 9\n\t\t System.out.println(num1); // 9\n\t}", "@Override\n public void run() {\n aia.addAndGet(1,15);\n aia.decrementAndGet(1);\n\n //weakly compare the first args to current value and sets\n aia.compareAndSet(1,14,20);\n System.out.println(aia.get(1));\n }", "public void setStart(long start) { this.start = start; }", "public void timer()\n {\n timer += .1; \n }", "public void increment() {\n\t\tsynchronized (this) {\n\t\t\tCounter.count++;\n\t\t\tSystem.out.print(Counter.count + \" \");\n\t\t}\n\t\n\t}", "public void incValue(){\n\t\tif(this.value < 9){\n\t\t\tthis.value++;\n\t\t}\n\t\telse{\n\t\t\tthis.value = 0;\n\t\t}\n\t}", "public static void main(String[] args) {\n long x1= 0;\r\n long x2= 1;\r\n long x3= 0;\r\n long reihe =2;\r\n \r\n System.out.println(\". Fibonacci zahl ist: \" +x1);\r\n System.out.println(\". Fibonacci zahl ist: \" +x2);\r\n \r\n while(x3<=400){ \r\n \t x3= x1+x2;\r\n \t x1= x2;\r\n \t x2=x3;\r\n \t \r\n \t reihe++;\r\n \t System.out.println(reihe+ \". Fibonacci zahl ist= \" +x3);\r\n }\r\n \r\n \r\n\t\r\n\r\n\t}", "public int getSecondL() {\n/* 54 */ return this.secondL;\n/* */ }", "private static String elapsed(long start) {\r\n\treturn \": elapsed : \" + (System.currentTimeMillis() - start) + \" ms \";\r\n }", "public int getStart ()\n {\n\n return this.start;\n\n }", "int getStart();", "public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}", "private String multipleStartTimes() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (startTimes.size() > 1) {\n\t\t\tsb.append(\"Flera starttider? \");\n\t\t\tfor (int i = 1; i < startTimes.size(); i++) {\n\t\t\t\tsb.append(startTimes.get(i) + \" \");\n\t\t\t}\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tint i=10;\n\t\tint j=++i;\n\t\tint g=2;\n\t\tg *= j;\n\t\t\n\t\tfor(int h=0; h<10;h++) {\n\t\t//System.out.println(i+j);\n\t\tSystem.out.println(g);\n\t\t}\n\t}", "public void run( ) {\n long sum = 0;\n for (int i = 0; i < 1000; i++) {\n sum += i;\n }\n System.out.println(sum);\n }", "synchronized public String get_and_increment_timestamp()\n {\n return String.format(CLOCK_FORMAT_STRING,++counter);\n }", "public static void main(String[] args){\n\n for(int n = 2; n < 102; n+=2)System.out.printf(\"%d\\n\",n);\n \n \n }", "public long stop() {\n long t = System.currentTimeMillis() - lastStart;\n if(count == 0)\n firstTime = t;\n totalTime += t;\n count++;\n updateHist(t);\n if(printIterval > 0 && count % printIterval == 0)\n System.out.println(this);\n return t;\n }", "public int getSecondR() {\n/* 48 */ return this.secondR;\n/* */ }", "private void increment() {\r\n salary = (int) (salary + salary * 0.2);\r\n }", "public void testNext() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n assertTrue(test1.getValue().inRange(0));\n test1.next();\n assertTrue(test1.getValue().inRange(1));\n test1.next();\n assertTrue(test1.getValue().inRange(2));\n for (int i = 0; i < 10; i++) {\n test1.next();\n }\n assertEquals(10, test1.currPos());\n }", "public void prlns(long a) {\n\t\tSystem.out.println(a);\r\n\t}", "public static void main(String[] args) {\n int i=1; \n \n System.out.println(\"i++ : \"+ (i++) + \n \" || ++i :\" + (++i) +\n \" || i \"+ (i) +\n \", i++\"+ (i++) );\n \n \n }", "default void inc(long value) {\n\t\tcount(Math.abs(value));\n\t}", "public static void main(String[] args) {\n\t\tint sum = 0;\n\t\tint i1= 0;\n\t\tint i2 = 1;\n\t\t\n\t\tfor(int i = 0; i<=10; i++) {\n\t\t\tsum = i1 + i2;\n\t\t\ti1= i2;\n\t\t\ti2 =sum;\n\t\t\tSystem.out.print(sum+\" \");\n\t\t}\n\t\t\t\n\t\t\n\t\t\n\t}", "void runTime1() {\n\t\tint[]numList= {45,78,99};\n\t\tSystem.out.println(numList[5]);\n\t}", "public String toString()\n {\n return \"(\" + start + \"->\"+ (start+size-1) + \")\";\n }", "private long increment() {\n\t\tlong ts = latestTimestamp.incrementAndGet();\n\t\treturn ts;\n\t}", "private void incrementDuration(TestResult result) {\n long currentTime = System.currentTimeMillis();\n result.setDuration((float) (currentTime - lastTime) / (float) 1000);\n lastTime = currentTime;\n totalDuration += result.getDuration();\n totalTunitDurations += result.getDuration();\n }", "void show(int step){\n System.out.println(\"Значение фунции в промежутке от \"+ 5 + \" до \"+ 10 +\" с шагом \" + 1);\n for (int i= 0; i < 10; i++) {\n this.calculate(i);\n }\n\n }", "@Override\n\tpublic String genResult() {\n\t\tCollections.sort(meanTimes, new Comparator<Time>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Time a, Time b) {\n\t\t\t\treturn a.toString().compareTo(b.toString());\n\t\t\t}\n\t\t});\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(realLaps()).append(\"; \");\n\t\tsb.append(totalTime()).append(\"; \");\n\t\tLinkedList<Time> times = new LinkedList<>();\n\t\tif(!startTimes.isEmpty()) times.add(startTimes.getFirst());\n\t\tfor(Time t: meanTimes) times.addLast(t);\n\t\tif(!finishTimes.isEmpty()) times.addLast(finishTimes.getFirst());\n\t\tint i = 0;\n\t\tif(startTimes.isEmpty()) {\n\t\t\ti++;\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tfor (; i < maxLaps; i++) {\n\t\t\tif (times.size() > 1) {\n\t\t\t\tTime t = times.removeFirst();\n\t\t\t\tsb.append(Time.diff(times.getFirst(), t).toString());\n\t\t\t}\n\t\t\tsb.append(\"; \");\n\t\t}\n\t\tString out = sb.toString();\n\t\treturn out.substring(0, out.length() - 2);\n\n\t}", "public void increaseEntered() {\n numTimesEntered++;\n }", "@Override\r\n\t\tvoid calculate() {\r\n\t\t\tnum3=num1+num2;\r\n\t\t\t\r\n\t\t}", "public void time(int value) \n{\n runtimes = value;\n}", "public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}", "@Override\n public void onClick(View v) {\n if(flag){\n temp *= 10;\n temp += 2;\n }else {\n step /= 10;\n temp += step * 2;\n }\n tv.setText(numUtil._tv(temp));\n }", "private static void printData(List<Long> runningTimes) {\n\t\tlong min = Collections.min(runningTimes);\n\t\tlong max = Collections.max(runningTimes);\n\t\t\n\t\tlong total = 0;\n\t\tfor(long runTime : runningTimes)\n\t\t\ttotal+=runTime;\n\t\t\n\t\tSystem.out.println(\"******* SEQUENTIAL RESULTS *******\");\n\t\tSystem.out.println(\"MIN RUNNING TIME(ms): \"+min);\n\t\tSystem.out.println(\"MAX RUNNING TIME(ms): \"+max);\n\t\tSystem.out.println(\"AVG RUNNING TIME(ms): \"+(total/runningTimes.size()));\n\t\tSystem.out.println(\"***********************************\");\n\t\tSystem.out.println();\n\t}", "static void exo2(int v1) {\n\t\tint somme = v1 + 5;\n\t\tSystem.out.println(\"la somme\" + (v1 + 5));\n\n\t}", "static void add() {\r\n\t\t\r\n\t\tint a = 500;\r\n\t\tint b = 300;\r\n\t\t\r\n\t\tint s = a +b;\r\n\t\tSystem.out.println(s);\r\n\t}", "public static void main(String[] args) {\n\t\tint n1 = 0, n2 = 1, sum = 0;\n\t\tSystem.out.print(n1 + \" \" + n2); // 0 1\n\t\tfor (int i = 2; i <= 10; i++) {\n\t\t\tsum = n1 + n2; // s= 0+1 = 1 // 1+1 = 2\n\t\t\tSystem.out.print(\" \" + sum); // 1 //2\n\t\t\tn1 = n2; // n1=1 //1\n\t\t\tn2 = sum; // n2 = 1 //2\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Please enter the value\");\r\n\t\tScanner console =new Scanner(System.in);\r\n\t\tint num= console.nextInt();\r\n\t\tint first=0;\r\n\t\tint second=1,value=1,temp=first+second;\r\n\t\tSystem.out.println(\"0\");\r\n\t\tSystem.out.println(\"1\");\r\n\t\tif(num==1)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"1\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\twhile( temp<=num )\r\n\t\t\t{\r\n\t\t\t\t//temp=first+second;\r\n\t\t\t\tfirst=second;\r\n\t\t\t\tsecond=temp;\r\n \t\t\t//value++;\r\n \t\t\tSystem.out.println(temp);\r\n \t\t\ttemp=first+second;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "int main()\n{\n int n,p=0,n2=2;\n cin>>n;\n if(n>0)\n cout<<p<<\" \";\n for(int i=1;i<n;i++)\n {\n p=p+n2;\n cout<<p<<\" \";\n if(i%2==1)\n \tn2=n2+4;\n }\n \n}", "public void IncrementCounter()\r\n {\r\n \tif (startAtUsed==false\r\n \t\t\t|| (!counter.encounteredAlready)) {\r\n \t\t// Defer setting the startValue until the list\r\n \t\t// is actually encountered in the main document part,\r\n \t\t// since otherwise earlier numbering (using the\r\n \t\t// same abstract number) would use this startValue\r\n \tcounter.setCurrentValue(this.startValue); \r\n \tlog.debug(\"not encounteredAlready; set to startValue \" + startValue);\r\n \tcounter.encounteredAlready = true;\r\n \tstartAtUsed = true;\r\n \t}\r\n counter.IncrementCounter();\r\n }", "public static void main(String[] args) {\n\t\tint number1 =0;\r\n\t\tint number2 =1;\r\n\t\tint number3,limit = 10;\r\n\t\t\r\n\t\tSystem.out.print(number1+\" \"+number2);\r\n\t\tint i=2;\r\n\t\tdo \r\n\t\t{\r\n\t\t\tnumber3= number1+number2;\r\n\t\t\tSystem.out.print(\" \"+number3);\r\n\t\t\tnumber1=number2;\r\n\t\t\tnumber2=number3;\r\n\t\t\ti++;\r\n\t\t}while(i<limit);\r\n\t}", "@Override\n public void onClick(View v) {\n if(flag){\n temp *= 10;\n temp += 1;\n }else {\n step /= 10;\n temp += step * 1.0;\n }\n tv.setText(numUtil._tv(temp));\n }", "public void testCurrPos() {\n for (int i = 0; i < 10; i++) {\n test1.append(new Buffer(i, rec));\n }\n for (int i = 0; i < 10; i++) {\n test1.next();\n }\n assertEquals(10, test1.currPos());\n }", "public void inc(){\n this.current += 1;\n }", "public void increment() {\n increment(1);\n }", "public static void main(String[] args) {\n\t\t\r\n\tint a=3;\r\n\tint b=2;\r\n\tint c=0;\r\n\t\r\n\t\tfor(int i=1;i<=10;i++)\r\n\t\t{\r\n\t\t\tc=a+b;\r\n\t\t\ta=b;\r\n\t\t\tb=c;\r\n\t\t\tSystem.out.println(c);\r\n\t\t}\r\n\t}", "public int getStart()\n {\n return start;\n }", "public double getStart();", "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}", "long getAndIncrement();", "public static void main(String[] args) {\n\t\tint a;\r\n\t\tint b;\r\n\t\ta=1;\r\n\t\tb=++a+a++;\r\n\t\tSystem.out.println(a);\r\n\t\tSystem.out.println(b);\r\n\r\n\t}", "public void incrementCount(){\n count+=1;\n }", "public static void main(String[] args) {\n\n long a_i3 = 3;\n long a_i2 = 4;\n long a_i1 = 10;\n\n int MOD = 1000_000_000 + 7;\n\n for (int i = 4; i < 30; i++) {\n long a_i = (a_i1 + 2 * a_i2 + 4 * a_i3) % MOD;\n System.out.println(\"N: \" + i + \" --> \" + a_i);\n\n a_i3 = a_i2;\n a_i2 = a_i1;\n a_i1 = a_i;\n }\n\n old1();\n }", "@Override\n public void onClick(View v) {\n if(flag){\n temp *= 10;\n temp += 4;\n }else {\n step /= 10;\n temp += step * 4;\n }\n tv.setText(numUtil._tv(temp));\n }", "public static void main(String[] args) throws Exception{\n int a = 0;\n for(int i=0;i<3;i++){\n while(true){\n System.out.print(i);\n a = i;\n break;\n }\n }\n System.out.print(a + \"\");\n\n// System.out.print(\"a=====\" +a+\"\"+b+ \"======b\"+ \"====\" +c);\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tint l = 10;\n\t\tint c = 1;\n\t\tint a = 0;\n\t\tint b = 1;\n\t\n\t\t\n\t\t System.out.println(a + b);\n\t\t \n\t\twhile ( c <= l ) {\n\t\t\tc = a + b;\n\t\t\t\n\t\t\t System.out.println(c);\n\t\t\ta = b;\n\t\t\tb = c;\n\t\t\t\n\t\t\tc += 1;\n\t\t}\n\n\t}" ]
[ "0.6075308", "0.60385174", "0.60020864", "0.5826324", "0.57754534", "0.57692546", "0.57141805", "0.5706277", "0.56879735", "0.5677567", "0.56406945", "0.5626243", "0.562616", "0.5619999", "0.5596538", "0.559154", "0.5549818", "0.5548697", "0.55451787", "0.5540072", "0.55279076", "0.552564", "0.551824", "0.55094415", "0.5492721", "0.54867375", "0.5477934", "0.5443111", "0.5440349", "0.5427585", "0.5420649", "0.5420649", "0.54199266", "0.54159564", "0.5402875", "0.5398111", "0.53915066", "0.53855", "0.5383568", "0.53809685", "0.53779525", "0.53545785", "0.5351124", "0.53449374", "0.53379285", "0.5320392", "0.53168356", "0.5311533", "0.53070533", "0.52963996", "0.52915007", "0.52803475", "0.52754265", "0.52748376", "0.52738976", "0.5273674", "0.52718866", "0.5270115", "0.52683806", "0.52652526", "0.52545756", "0.5253157", "0.52453434", "0.52390707", "0.5229965", "0.52298504", "0.52291393", "0.522812", "0.5225491", "0.52169394", "0.5215141", "0.52137494", "0.5213639", "0.52115923", "0.5211253", "0.5203892", "0.52026165", "0.51963764", "0.5186954", "0.5174308", "0.5173385", "0.5167654", "0.51629746", "0.5154059", "0.5151306", "0.5149056", "0.51434195", "0.51395166", "0.51324075", "0.5130149", "0.51291907", "0.51272523", "0.5123831", "0.5114066", "0.51086485", "0.51080674", "0.51063716", "0.5100777", "0.50945044", "0.50930226" ]
0.54206127
32
System.out.println("L1 : "+startVal+" , "+endVal);
NumarAndDenom Spigot_Level_1(int startVal, int endVal) { BigDecimal totalNumar = new BigDecimal(0.0); BigDecimal totalDenom = new BigDecimal(1.0); BigDecimal sixTeen = new BigDecimal(16); for(int k=endVal-1 ; k>=startVal; k--) { NumarAndDenom elementND = Element( k ); totalNumar = totalNumar.multiply( elementND.denom ).add( totalDenom.multiply( elementND.numar ) ); totalDenom = totalDenom.multiply( elementND.denom ); if(k != startVal) totalDenom = totalDenom.multiply( sixTeen ); } NumarAndDenom numerAndDenom = new NumarAndDenom(); numerAndDenom.numar = totalNumar; numerAndDenom.denom = totalDenom; return numerAndDenom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getEndRange();", "String toStringStartValues();", "@Override\r\n public String toString() \r\n {\n return \"[\" + getStart() + \", \" + getEnd() + \"]\";\r\n }", "String getBeginRange();", "String toStringEndValues();", "public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn this.getIndentation() + \"(in-subrange \" + this.getPosition1().getCoordX() + \", \" + this.getPosition1().getCoordY() + \", \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t + this.getPosition2().getCoordX() + \", \" + this.getPosition2().getCoordY() + \")\";\r\n\t}", "public String toString(){\n\t\treturn leftValue + \":\" +rightValue;\t\t\t\r\n\t}", "int getRange();", "private static void passoutNum(int start, int end) {\n\t\tlindOfNum(0, start);\n\n\t\tif(start == end) {\n\t\t\t//System.out.println(end);\n\t\t\treturn;\n\t\t}\n\t\t//System.out.print(start);\n\t\tpassoutNum(start + 1, end);\n\t\tlindOfNum(0, start);\n\n\t}", "public LongRange(long number1, long number2) {\n/* 110 */ if (number2 < number1) {\n/* 111 */ this.min = number2;\n/* 112 */ this.max = number1;\n/* */ } else {\n/* 114 */ this.min = number1;\n/* 115 */ this.max = number2;\n/* */ } \n/* */ }", "public HBox answerIntervalLine(String begin, String end)\n {\n HBox answerIntervalLine = new HBox(5);\n answerIntervalLine.getChildren().addAll(new Label(\"Esteve entre \"), new Text(begin), new Label(\" e \"), new Text(end));\n answerIntervalLine.setAlignment(Pos.BASELINE_LEFT);\n\n return answerIntervalLine; \n }", "@Override\n\tpublic String toString(){\n\t\treturn \"START=\"+startDate+\", END=\"+endDate+\",\"+label+\",\"+notes+\",\"+locationAddress+\",\"+startPlaceAddress+\",\"+actStatus.name();\n\t}", "public static void main(String[] args) {\n\t\tint start = 100;\r\n\t\tint end = 1;\r\n\t\t//int add = 1;\r\n\t\twhile (start>=end) {\r\n\t\t\tSystem.out.println(start);\r\n\t\t\t//start = start - add;\r\n\t\t\tstart--;\r\n\t\t}\r\n\t}", "public Vector2 getEndLoc( ) { return endLoc; }", "@Override\r\n public String toString() {\r\n return \"Range [\" + \"min=\" + min + \", max=\" + max + \"]\";\r\n }", "ButEnd getStart();", "public double getEnd();", "static void opration(){ \n System.out.println(\"Final veriable value l:\"+l+\"\\nj:\"+j);\n // l=l+2; erorr it can't change it's value\n \n }", "public String getRange() {\n return this.range;\n }", "public int getStart ()\n {\n\n return this.start;\n\n }", "private double intersect(double start0, double end0, double start1, double end1)\n {\n double length = Double.min(end0, end1) - Double.max(start0, start1);\n return Double.min(Double.max(0, length), 1.0);\n }", "public double getEndX() {\n\treturn v2.getX();\n }", "public int length() { return _end - _start; }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//int start = Integer.parseInt(args[0]);//larger number\r\n\t\t\t//int end = Integer.parseInt(args[1]);\r\n\t\t\tint start=20,end=10;\r\n\t\t\t\tfor(int j=start;j>=end;j--) {\r\n\t\t\t\t\tSystem.out.println(j+\" \");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error\");\r\n\t\t}\r\n\t}", "public double getRange(){\n\t\treturn range;\n\t}", "public double getStartY() {\n\treturn v1.getY();\n }", "public String toString()\n {\n return \"(\" + start + \"->\"+ (start+size-1) + \")\";\n }", "public Integer oneToThis(int start, int ending){\n\t\tSystem.out.println(\"Print 1-255\");\n\t\twhile(start <= ending){\n\t\t\tSystem.out.println(start);\n\t\t\tstart++;\n\t\t}\n\t\treturn 0;\n\t}", "public String getStart(){\n\t\treturn start;\n\t}", "@Override\r\n\tpublic String getActivity_range() {\n\t\treturn super.getActivity_range();\r\n\t}", "public String getEnd() {\n\t\t\t\t\n\t\t\t\t\tString vS = \"NONE\";\n\t\t\t\t\tSystem.out.println(vS + \" l \" + length);\n\t\t\t\t\tif (length != 0) vS = tail.getPrev().getValue();\n\t\t\t\t\tSystem.out.println(vS + \" l2 \" + length);\n\t\t\t\treturn vS;\n\t\t\t\t}", "public double getEnd() {\n return end;\n }", "private int rangeEndLS(char startingLS) {\n if (startingLS >= 0xdbff) {\n return 0xdbff;\n }\n\n int c;\n int val = getFromU16SingleLead(startingLS);\n for (c = startingLS+1; c <= 0x0dbff; c++) {\n if (getFromU16SingleLead((char)c) != val) {\n break;\n }\n }\n return c-1;\n }", "public long getRangeStart() {\n return mRangeStart;\n }", "String getEnd();", "public double getStart();", "public int getEndx(){\n\t\treturn endx;\n\t}", "public String getEnd(){\n\t\treturn end;\n\t}", "public LongRange(long number) {\n/* 73 */ this.min = number;\n/* 74 */ this.max = number;\n/* */ }", "public static long packRangeInLong(int start, int end) {\r\n\t\treturn (((long) start) << 32) | end;\r\n\t}", "@Override\n\tpublic int getRange() {\n\t\treturn range;\n\t}", "public GeoPoint getEnd(){\n return end;\n }", "public int getRange()\n\t{\n\t\treturn Range;\n\t}", "int getEnd();", "java.lang.String getDestRange();", "public int getStart()\n {\n return start;\n }", "private double getStartY() {\n\t\treturn Math.min(y1, y2);\n\t}", "public double getStartX() {\n\treturn v1.getX();\n }", "public AddressInfo getRange() {\r\n return range;\r\n }", "public String toString() {\n\t\tif (label1 == null) return \"(\" + end + \")\";\n\t\tif (label2 == null) return \"(\" + label1 + \",\" + end + \")\";\n\t\treturn \"(\" + label1 + \",\" + label2 + \",\" + end + \")\";\n\t}", "public String toString() {\n/* 387 */ if (this.toString == null) {\n/* 388 */ StrBuilder buf = new StrBuilder(32);\n/* 389 */ buf.append(\"Range[\");\n/* 390 */ buf.append(this.min);\n/* 391 */ buf.append(',');\n/* 392 */ buf.append(this.max);\n/* 393 */ buf.append(']');\n/* 394 */ this.toString = buf.toString();\n/* */ } \n/* 396 */ return this.toString;\n/* */ }", "void calculateRange() {\n //TODO: See Rules\n }", "double getStaEnd();", "public void setEndLoc( Vector2 end ) { endLoc = end; }", "public double getLethalRange()\n {\n return this.lethal_range;\n }", "@Override\n\t\tpublic String toString() {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tif (existStart)\n\t\t\t\tsb.append(getAbsStart());\n\t\t\tsb.append('-');\n\t\t\tif (existEnd)\n\t\t\t\tsb.append(getAbsEnd());\n\t\t\treturn sb.toString();\n\t\t}", "public int getEnd()\n {\n return end;\n }", "public static void main(String[] args) {\n\t\tint start,end;\r\n\t\tint sum=0;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"enter the start number\");\r\n\t\tstart = scan.nextInt();\r\n\t\t\r\n\t\tSystem.out.println(\"enter the end number\");\r\n\t\tend = scan.nextInt();\r\nfor(int i=start;i<=end;i++)\r\n\t{\r\n\t\tfor(int j=1;j<i;j++)\r\n\t\t{\r\n\t\tsum = sum+j;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\tif (sum==start)\r\n\t\r\n\t\tSystem.out.println(sum);\r\n\t\r\n\t\r\n}", "public double[] getRange() \n{\n\treturn range;\n}", "public java.lang.String getRange() {\n\t\treturn _range;\n\t}", "public static void main(String[] args) {\n\n\t\tSystem.out.println( \"Min value of Byte :\"+ Byte.MIN_VALUE); \n\t\tSystem.out.println( \"Max value of Byte :\"+ Byte.MAX_VALUE); \n\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println( \"Min value of Short :\"+ Short.MIN_VALUE); \n\t\tSystem.out.println( \"Max value of Short :\"+ Short.MAX_VALUE); \n\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println( \"Min value of Integer :\"+ Integer.MIN_VALUE); \n\t\tSystem.out.println( \"Max value of Integer :\"+ Integer.MAX_VALUE); \n\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println( \"Min value of Long :\"+ Long.MIN_VALUE); \n\t\tSystem.out.println( \"Max value of Long :\"+ Long.MAX_VALUE); \n\n\t\t// l should be at the end of value\n\t\tlong number1 = 9223372036854775807l;\n\t\tSystem.out.println( \"After adding l at end of the long number \" + number1);\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t/* *\n\t\t * Decimal Data Types *\n\t\t * \t\t-----------------\t *\n\t\t *\t\t\t\t\t\t\t *\n\t\t*/\n\t\t\n\t\t// 1. float \t\t2. double\n\n\t\tSystem.out.println( \"Min value of float :\"+ Float.MIN_VALUE); \n\t\tSystem.out.println( \"Max value of float :\"+ Float.MAX_VALUE); \n\t\t\n\t\t// f should be at the end of value\n\t\tfloat decimal1 = 32245.12123f;\n\t\t\n\t\tSystem.out.println( \"After adding f at the end of the float\" + decimal1);\n\t\t\n\t\tSystem.out.println();\n\n\t\tSystem.out.println( \"Min value of double :\"+ Double.MIN_VALUE); \n\t\tSystem.out.println( \"Max value of double :\"+ Double.MAX_VALUE); \n\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\t/* *\n\t\t * Character Data Types *\n\t\t * \t --------------------\t *\n\t\t *\t\t\t\t\t\t\t *\n\t\t*/\n\t\t\n\t\t\n\t\t// 1. char \t\t\t2. String( int 2 bytes)\n\n\t\t// can only contain single letter\n\t\tchar ch = 'a'; \n\t\tSystem.out.println( \"Single character :\"+ ch);\n\t\t\n\t\t// can contain unicode values \n\t\tchar unicode = '\\u0000';\n\t\tSystem.out.println( \"Unicodes are stored but not shown :\"+ unicode);\n\t\t\n\t\t// are stored in int\n\t\tint num = 'a';\n\t\tSystem.out.println( \"character stored in int:\"+num);\n\t\t\n\t\tSystem.out.println();\n\t\t\n\n\t\tString str = \"Hello\" + \" World\";\n\t\tSystem.out.println(str);\n\n\t}", "Integer getPortRangeEnd();", "private static void display(Segment[] intervals) {\n\t\tfor(int i=0;i<intervals.length;i++){\n\t\t\tSystem.out.println(intervals[i].getStart()+\" \"+intervals[i].getEnd());\n\t\t}\n\t}", "public void setEnd(int end)\n {\n this.end = end;\n this.endSpecified = true;\n }", "private double getStartX() {\n\t\treturn Math.min(x1, x2);\n\t}", "org.hl7.fhir.Integer getStart();", "public static void main(String[] args) {\n\r\n Line l1 = new Line(1,2,3,4);\r\n System.out.println(l1); // line toString\r\n // line[begin=(1,2),end=(3,4)]\r\n Line l2 = new Line(new Point(5,6), new Point(7,8)); // anypoymous point's intstances\r\n\r\n System.out.println(l2); // line's toString()\r\n // line[begin=(5,6),end=(7,8)]\r\n\r\n // test setters and getters\r\n l1.setBegin(new Point(11,12));\r\n l1.setEnd(new Point(13,14));\r\n System.out.println(l1);\r\n // line [begin =(11,12),end=(13,14)]\r\n System.out.println(\"begin is\"+l1.getBegin()); // point tostring\r\n// begin is:(11,12)\r\n System.out.println(\"end is:\"+ l1.getEnd()); // point's toString()\r\n// end is:(13,14)\r\n\r\n l1.setBeginX(21);\r\n l1.setBeginY(22);\r\n l1.setEndX(23);\r\n l1.setEndY(24);\r\n System.out.println(l1);\r\n // line[begin=(21,22) end=(23,24)]\r\n System.out.println(\"begin's x is\" + l1.getBeginX());\r\n // begin's x is: 21\r\n System.out.println(\"end x is\" + l1.getEndX());\r\n// end x is 23\r\n System.out.println(\"end y is\" + l1.getEndY());\r\n// end y is 24\r\n l1.setBeginXY(31,32);\r\n l1.setEndXY(33,34);\r\n System.out.println(l1); // line toSTRING()\r\n // LINE[begin = (31,32),end= ()33,34]\r\n System.out.println(\"begin x and y are\" + Arrays.toString(l1.getBeginXY()));\r\n// begin is [31,32]\r\n System.out.println(\"end x and y are\" + Arrays.toString(l1.getEndXY()));\r\n// end is [31,32]\r\n\r\n // test getlength()\r\n System.out.printf(\"length is: %.2f%n\", l1.getLength());\r\n// length is:2.83\r\n\r\n\r\n }", "public static void main003(String[] args) {\n\t\t/*\n\t\t * numberStart++ tra ve gia tri cua numberStart, sau đo tang number lan mot đon vi\n\t\t * numberStart-- tra ve gia tri cua numberStart, sau đo giam number xuong mot đon vi\n\t\t * ++numberStart tang numberStart len mot don vi, sau đo tra ve gia tri cua numberStart\n\t\t * --numberStart giam numberStart xuong mot don vi, sau đo tra ve gia tri cua numberStart\n\t\t */\n\t\tint numberStart\t= 20;\n\t\tint numberEnd\t= 0;\n\t\t\n//\t\tnumberEnd\t\t= ++numberStart;\n\t\tnumberEnd\t\t= --numberStart;\n\t\tSystem.out.println(\"Number Start = \" + numberStart);\n\t\tSystem.out.println(\"Number End = \" + numberEnd);\n\t}", "public void setStart(long start) { this.start = start; }", "private void show_text()\n {\n NumberFormat f = NumberFormat.getInstance();\n f.setGroupingUsed( false );\n setText( label + \" \" +\n START + \" \" + f.format(min) + \n SEPARATOR + f.format(max) + \n \" \" + END );\n }", "public Point getStart(){\n\t\treturn bigstart;\n\t}", "public static void main(String[] args) {\n\t\tLL l1 = new LL();\n\t\tLL l2 = new LL();\n\t\tl1.insert(15);\n\t\tl1.insert(25);\n\t\tl1.insert(35);\n\t\tl1.insert(45);\n\t\tl1.insert(55);\n\t\t\n\t\tl2.insert(10);\n\t\tl2.insert(17);\n\t\tl2.insert(35);\n\t\tl2.insert(47);\n\t\tl2.insert(11);\n\t \t\n\t\t\n//\t\tl1.print();\n//\t\tl2.print();\n\t\t\n\t\tSystem.out.println(getIntersection(l1.head,l2.head));\n\t\t\n\t}", "public static void main(String[] args)\r\n\t\t\t{\n\t\t\t\tprintLowerAndUpperBound();\r\n\t\t\t}", "public long getAsLong() {\n\t\treturn end - start;\n\t}", "public double getEndX() {\r\n return endx;\r\n }", "public double getEndX()\n {\n return endxcoord; \n }", "double getEndX();", "protected void set(int start, int end) {\n \t\t\tfStart= start;\n \t\t\tfEnd= end;\n \t\t\tfText= null;\n \t\t\tfPreservedText= null;\n \t\t}", "public double getStart() {\n return start;\n }", "int getEndSegment();", "public int getStop ()\r\n {\r\n return (getStart() + getLength()) - 1;\r\n }", "@Override\n public void onRangeStart(String s, int i, int i1) {\n }", "public String toString()\n {\n return _xstr.subSequence(_start, _end).toString();\n }", "@Test(timeout = 4000)\n public void test005() throws Throwable {\n Range range0 = Range.ofLength(0L);\n long long0 = range0.getEnd();\n assertEquals(4294967294L, long0);\n \n Range.ofLength(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n long long1 = range0.getBegin(range_CoordinateSystem0);\n assertEquals(0L, long1);\n }", "public Label\ngetStartLabel();", "private String select(int start, int end) {\n this.selection = null;\n\n if (start >= end) {\n //return sb.toString();\n return printList();\n }\n if (start < 0 || start > sb.length()) {\n //return sb.toString();\n return printList();\n }\n this.selection = new Selection(start, Math.min(end, sb.length()));\n\n //return sb.toString();\n return printList();\n }", "public int getResultLength() { return i_end; }", "public StringBuffer rangeToString(Key low, Key high)\n {\n \t\n \tStringBuffer str=new StringBuffer();\n \t\n \tint l=(int) low;\n \tint h=(int) high;\n \tfor(int ch=l;ch<=h;ch++)\n \tstr.append(ch);\n \treturn str;\n \t \t\n }", "int getEndPosition();", "public void getLinearLayout(CyVector2d startPt, CyVector2d endPt)\r\n {\r\n startPt.set(p2l.m03, p2l.m13);\r\n endPt.set(p2l.m03 + p2l.m00, p2l.m13 + p2l.m10);\r\n }", "protected static String expectedRangeString(Object minValue, boolean minInclusive, Object maxValue, boolean maxInclusive) {\n // A means for a return value\n String retVal;\n\n // Start with the proper symbol for the lower bound\n if (minInclusive) {\n retVal = \"[\";\n } else {\n retVal = \"(\";\n }\n\n // Add in the minimum and maximum values\n retVal += minValue + \" .. \" + maxValue;\n\n // End with the proper symbol for the upper bound\n if (maxInclusive) {\n retVal += \"]\";\n } else {\n retVal += \")\";\n }\n\n // Return the formatted string\n return retVal;\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n Range range0 = Range.ofLength(212L);\n range0.getEnd();\n Range range1 = Range.ofLength(126L);\n Range range2 = range0.intersection(range1);\n assertFalse(range2.isEmpty());\n \n Object object0 = new Object();\n boolean boolean0 = range1.equals(range0);\n assertFalse(boolean0);\n \n long long0 = range0.getEnd();\n assertEquals(211L, long0);\n assertFalse(range0.equals((Object)range2));\n \n long long1 = range1.getBegin();\n assertSame(range1, range2);\n assertEquals(0L, long1);\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-32768L), 2147484380L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range1 = Range.of(range_CoordinateSystem1, (-32768L), 2147484380L);\n range1.getEnd();\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n long long0 = range1.getEnd();\n assertEquals(2147484379L, long0);\n \n Object object0 = new Object();\n range0.getEnd();\n long long1 = range0.getBegin();\n assertEquals((-32769L), long1);\n }", "@Override\n public String toString(){\n return \"{@\" + vecOne.getSteps() + \"; @\" + vecTwo.getSteps() + \"}\";\n }", "public void setEndX(double val) {\r\n endx = val;\r\n }", "public int getStart() {\r\n return start;\r\n }", "public int start() { return _start; }", "int getStart();", "@Test(timeout = 4000)\n public void test118() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32767L, 9223372036854775554L);\n Object object0 = new Object();\n Range range1 = Range.of(range_CoordinateSystem0, 9977L, 9223372036854775554L);\n range1.getEnd();\n boolean boolean0 = range1.equals(range0);\n assertFalse(boolean0);\n \n range1.getEnd();\n Object object1 = new Object();\n long long0 = range1.getEnd();\n assertEquals(9223372036854775553L, long0);\n \n long long1 = range0.getBegin();\n assertEquals(32767L, long1);\n }", "public String toString() {\n\t\treturn \"SList[start=\"+this.start+\"]\";\n\t}" ]
[ "0.63811255", "0.6127972", "0.61205643", "0.601271", "0.60055786", "0.5872514", "0.5849968", "0.5838288", "0.5743681", "0.5742297", "0.5732592", "0.56468797", "0.5576648", "0.55722487", "0.55523694", "0.55520713", "0.5551422", "0.5533075", "0.5491707", "0.54864705", "0.5475724", "0.5446519", "0.5424255", "0.54074305", "0.53981465", "0.5396957", "0.53791803", "0.5375572", "0.5369733", "0.53653264", "0.53571147", "0.532166", "0.53172827", "0.531609", "0.5307341", "0.53020537", "0.5296143", "0.5294192", "0.5283858", "0.52793074", "0.52708596", "0.5269669", "0.5269634", "0.5262685", "0.52584064", "0.52579546", "0.52531207", "0.5242905", "0.52421075", "0.5239297", "0.5227158", "0.5205632", "0.5199715", "0.51996523", "0.5199077", "0.5197601", "0.51931345", "0.518979", "0.5185495", "0.5184243", "0.51803434", "0.5179187", "0.5178162", "0.51779395", "0.5170049", "0.5166687", "0.5162536", "0.5152608", "0.51472723", "0.51467687", "0.5142971", "0.51422614", "0.51367444", "0.51365453", "0.5135277", "0.5134211", "0.5130358", "0.5126072", "0.51165473", "0.51153", "0.5113802", "0.51129323", "0.5111417", "0.51091945", "0.51084256", "0.5094", "0.5084354", "0.5084345", "0.50831395", "0.5081902", "0.5079747", "0.5079249", "0.507646", "0.50695735", "0.50683045", "0.5065848", "0.50633395", "0.50633067", "0.5061562", "0.50576365", "0.50534165" ]
0.0
-1
Device specific task interface.
public interface DeviceBasedTask { public Device getDevice(); public void setDevice(Device device); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TaskBase {\n\t/**\n\t * @return Returns the name of the task\n\t */\n\tpublic String GetName();\n\n\t/**\n\t * Called upon entering autonomous mode\n\t */\n\tpublic void Initialize();\n\n\t/**\n\t * Called every autonomous update\n\t * \n\t * @return Return task result enum\n\t */\n\tpublic TaskReturnType Run();\n\n}", "public abstract void task();", "public interface ITaskHandler {\n\n\t/**\n\t * It is called in a separate thread to handle the task.\n\t * Parameters are thoes given in the addTask()\n\t * This method should not been called directly.\n\t * \n\t * @param pTaskType\n\t * @param pParam\n\t * @throws IllegalArgumentException\n\t */\n\tvoid handleTask(ITaskType pTaskType, Object pParam) throws IllegalArgumentException;\n}", "public abstract SystemTask getTask(Project project);", "@Override\r\n\tpublic void doTask() {\n\t}", "public TaskProvider getTaskProvider();", "ITaskView getTaskView();", "public interface TaskBase {\n public void executeTask();\n\n}", "public interface ITaskController {\n\n void showTasks();\n Task addTask();\n boolean removeTask();\n boolean performTask(String path);\n Task takeTask(int taskNum);\n}", "abstract void doTaskOnRun();", "public interface Task {\n void execute() ;\n}", "@Override\n public Class<? extends Task> taskClass() {\n return AmpoolSourceTask.class;\n }", "protected void setupTask(Task task) {\n }", "@Override\r\n\tvoid execute(Runnable task);", "void handleTask(ITaskType pTaskType, Object pParam) throws IllegalArgumentException;", "public void startTask() {\n\t}", "void onTaskStart();", "public Task getTask(Integer tid);", "public interface ITask extends PropertyChangeListener{\n\tvoid execute();\n\tvoid interrupt();\n\tboolean toBeRemoved();\n\n\t//Using update tick\n\tboolean updateTick();\n\n\t//Using time\n\t//long getWaittime();\n\t//long getEndtime();\n\n\n}", "TaskFactory getTaskFactory();", "Task createTask();", "Task createTask();", "Task createTask();", "public interface TaskCallback extends RunningTaskCallback {\r\n\r\n\r\n /**\r\n * Calling when the task is preparing to start .\r\n */\r\n void onTaskStart();\r\n\r\n @Override\r\n void onTaskRunning(PreTaskResult preTaskResult, int numerator, int denominator);\r\n\r\n /**\r\n * Calling while the task is completed.\r\n *\r\n * @param taskResult TaskResult bean\r\n */\r\n void onTaskCompleted(TaskResult taskResult);\r\n}", "@Override\n public void taskStarting() {\n\n }", "public interface SocketTask extends Task\n{\n\t/**\n\t * Method sets to object socketWrapper object to allow task to use this socket.\n\t * @param socket socket wrapper object.\n\t */\n\tpublic void setSocket(SocketWrapper socket);\n}", "public abstract void execute(Task t);", "public interface Task extends Runnable {\n\n /**\n * Get the task name\n *\n * @return\n */\n public String getTaskName();\n\n /**\n *\n * @return true if the task is in active, else false\n */\n public boolean isActive();\n\n /**\n * @return priority of the task\n */\n public int getPriority();\n\n /**\n *\n * @return the sequence number of the task. If two tasks has same priority,\n * then the task with less sequence number executes first.\n */\n public int getSequenceNumber();\n}", "public interface Task<T> {\r\n /**\r\n * run the task.\r\n *\r\n * @return T a generic type.\r\n */\r\n T run();\r\n}", "interface ITask {\r\n\tabstract void Init();\r\n\r\n\tabstract void Run();\r\n\r\n\tabstract void Execute();\r\n\r\n\tabstract void Change(boolean value) throws Exception;\r\n\r\n\tabstract void Change(double value) throws Exception;\r\n\r\n\tabstract boolean IsButton();\r\n}", "abstract void run(TaskList tasks, MainWindow ui, Storage storage);", "@Override\n public void execute(final Task<T> task) {\n }", "private static void executeTask02() {\n }", "public interface OnTaskClickedListener {\n\n void taskOpened(int taskId);\n}", "@Override\n\tpublic void task() {\n\t\tst.subTask();\n System.out.println(\"This is UI Task\");\n\t}", "public interface Executor {\n void setTask(Task task);\n Task getTask();\n void startTask();\n}", "@Override\n\t\tpublic void subTask(String arg0) {\n\n\t\t}", "public Task getTask() { return task; }", "public interface TaskInterface { // 효율성을 높이기위해 interface 사용\n public String getUrl(); // interface 라서 public을 쓸 필요가 없음\n public void postExecute(String result);\n}", "public interface Task {\n public void run(Object o);\n}", "@Override\n\t\tpublic void beginTask(String arg0, int arg1) {\n\n\t\t}", "public interface TaskManager {\n\t/**\n\t * @return all the tasks that have to be executed\n\t */\n\tvoid getTasks();\n}", "@Override\n\t\t\tpublic void subTask(String name) {\n\t\t\t\t\n\t\t\t}", "protected abstract void createTasks();", "public abstract void task() throws InterruptedException;", "public interface VendorSubscriptionTask {\n\n /**\n * Subscribe to receive vendor data\n * @param subscriptionId the subscription identifier\n * @param configuration the vendor subscription configuration\n */\n void subscribe(Long subscriptionId, ApplicationProperties.VendorConfiguration configuration);\n\n /**\n * Destroy subscription\n * @param subscriptionId the subscription identifier\n */\n void destroy(Long subscriptionId);\n\n /**\n * Check whether task can process subscription\n * @param type the vendor subscription type\n\n * @return <code>true</code> returns <code>true</code> if task\n * supports the indicated {@link VendorSubscriptionType} object.\n */\n boolean supports(VendorSubscriptionType type);\n}", "public interface Task {\n\t\t/** Insertion tuples */\n\t\tpublic TupleSet insertions();\n\n\t\t/** Deletion tuples. */\n\t\tpublic TupleSet deletions();\n\n\t\t/** The program name that should evaluate the tuples. */\n\t\tpublic String program();\n\n\t\t/** The name of the table to which the tuples belong. */\n\t\tpublic TableName name();\n\t}", "void startTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<java.lang.Boolean> callback );", "public interface SingletonTask extends Task {\n}", "@Override\n public void startTask(TrcRobot.RunMode runMode)\n {\n }", "public interface Task {\n void send(INotificationSideChannel iNotificationSideChannel) throws RemoteException;\n }", "@Override\n public void onTaskSelected(String taskId) {\n }", "public Task(){}", "public interface TaskAction {\n\n /**\n * This method will define an asynchronous action to take.\n * The parameter is a simpler interface of Task that only allows progress reporting, to encapsulate actions and\n * prevent them from seeing or modifying the task hierarchy that triggers and manages them.\n */\n public void action (ProgressListener progressListener) throws Exception;\n\n}", "public void setTask(Task task) {\n this.task = task;\n }", "public interface RunnableTask {\n ProcessResult run();\n}", "void onTaskPrepare();", "@Override\n public String getTaskType() {\n return \"T\";\n }", "@Override\r\n\tpublic void subTask(String name) {\n\t}", "public ITask getTask() {\n \t\treturn task;\n \t}", "public abstract void execute(TaskList taskList, Ui ui, Storage storage) throws DukeException;", "public interface TaskService {\r\n\r\n\r\n TaskResponse createTask(TaskRequest taskRequest);\r\n\r\n /**\r\n * @param username\r\n * @return\r\n */\r\n\r\n List<TaskResponse> getTaskNames(String username);\r\n\r\n\r\n /**\r\n * Updates the existing task\r\n *\r\n * @param taskRequest\r\n * @param taskId\r\n * @return the updated task\r\n */\r\n TaskResponse updateTask(TaskRequest taskRequest, Long taskId);\r\n\r\n /**\r\n * Deletes the task\r\n *\r\n * @param taskId\r\n * @throws Exception\r\n */\r\n void deleteTask(Long taskId) throws Exception;\r\n\r\n\r\n}", "abstract void execute(TaskList tasks, Ui ui, Storage storage) throws IOException;", "public abstract String getTaskName();", "public interface TaskInterface {\n\n public String getUrl();\n public void resultExecute(String result);\n\n}", "@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}", "public void submitMonitorDeviceTrafficTask() {\n\t\tL.i(this.getClass(), \"MonitorDeviceTrafficTask()...\");\n\t\taddTask(new MonitorDeviceTrafficTask());\n\t}", "public interface Task<T> {\n T execute();\n}", "public interface IDeviceManager {\n\n //디바이스 제어시 사용\n ResultMessage deviceExecute(String commandId, String deviceId, String deviceCommand);\n}", "public TaskReturnType Run();", "public interface TaskStartHandler2 {\n\n Object process(OperationContext context);\n}", "public static void launchTask(Task tsk)\n {\n getInstance().doExecute(tsk);\n }", "@Deprecated\n//Will be moved to internal scope\npublic interface TaskView {\n /**\n * Specifies the display value of this task plugin. This value is used in the job UI's task dropdown\n * as well as in the title of the task definition dialog box.\n *\n * @return display value for the task plugin\n */\n String displayValue();\n\n /**\n * The template for the task configuration, written using Angular.js templating language.\n *\n * @return Angular.js template for the task configuration\n */\n String template();\n}", "@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}", "public void updateTask() {}", "WorkingTask getWorkingTask();", "protected abstract Version executeTaskLocal(Version theTask);", "public interface Task {\n\n public void performWork() throws InterruptedException;\n\n}", "public interface AsyncTask {\n\n\n /**\n * 这里判断任务是否需要停止,如是否超时\n */\n Boolean needStop();\n\n /**\n * 任务id\n */\n Long getTaskId();\n\n /**\n * 任务类型\n * @see com.pousheng.middle.task.enums.TaskTypeEnum\n */\n String getTaskType();\n\n ThreadPoolExecutor getTaskExecutor();\n\n Response<Long> init();\n\n void preStart();\n\n void start();\n\n void onStop();\n\n void onError(Exception e);\n\n void manualStop();\n\n AsyncTask getTask(TaskDTO task);\n}", "@Override\n public void run() {\n task.run();\n }", "public interface TaskFactoryInterface<T> {\n T get();\n}", "void onTaskResult(TaskInfo mTaskInfo);", "public interface ITaskService {\n\n List<Task> selectAll();\n\n Task selectByPrimaryKey(Integer id);\n\n int runTest(String host, String data, String comment);\n\n List<ResultWithBLOBs> selectResult(Integer id, String caseIds);\n\n int deleteTask(Integer ruleId);\n\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}", "int getTask() {\n return task;\n }", "public interface Processable<T> {\n /**\n * Return a new instance of a task representing the {@link Processable}.\n * @return new Instance of the Task representing the {@link Processable}\n */\n public abstract Task<T> newTask();\n}", "protected TaskFlow( ) { }", "public void get(final Task task) {\n }", "void executeTask(org.apache.ant.common.antlib.Task task) throws org.apache.ant.common.util.ExecutionException;", "public abstract TaskResult runTask(TaskKey taskKey) throws JobException;", "public interface MapTask extends Task {\n\t\n\tpublic void map(MapRunner mapRunner, String toDo);\n}", "public interface TaskQueue {\n\n /**\n * Adds a task to this dependency queue.\n *\n * @param task the {@code KernelRunnable} to add\n * @param owner the {@code Identity} that owns the task\n */\n void addTask(KernelRunnable task, Identity owner);\n\n}", "void delegateTask(Long taskId, String sourceUserId, String targetUserId);", "public interface ITask {\n\n String getId();\n boolean isComplete();\n\n}", "boolean setTask(UUID uuid, IAnimeTask task);", "public void setTask(Task inTask){\n punchTask = inTask;\n }", "@Override\n\t\t\tpublic void beginTask(String name, int totalWork) {\n\t\t\t\t\n\t\t\t}", "public void setupTask(TaskAttemptContext context) throws IOException {\n }", "@Override\n public void run() {\n runTask();\n\n }", "public interface EventListener {\n\n\t/**\n\t * Called when a task event has occurred.\n\t * \n\t * @param event\n\t * the task event which has occurred\n\t */\n\tvoid eventOccurred(AbstractTaskEvent event);\n}" ]
[ "0.738584", "0.70687765", "0.6937294", "0.69014466", "0.6737567", "0.6692141", "0.66495216", "0.6603828", "0.6588216", "0.65561295", "0.6530214", "0.6469146", "0.6449622", "0.64378417", "0.64159936", "0.64047176", "0.63940436", "0.63803774", "0.6378636", "0.63686085", "0.6357688", "0.6357688", "0.6357688", "0.63518816", "0.6339215", "0.63326955", "0.6319932", "0.6301712", "0.62880194", "0.6259592", "0.6248972", "0.6241796", "0.62349635", "0.62306386", "0.6229279", "0.621777", "0.6189326", "0.61847377", "0.6184465", "0.61801124", "0.616787", "0.6166428", "0.615696", "0.61502033", "0.61464864", "0.61462164", "0.61335266", "0.6122911", "0.61175203", "0.61162126", "0.61136657", "0.6108493", "0.6103827", "0.6103563", "0.6098922", "0.6083762", "0.60733557", "0.6058148", "0.6050941", "0.60429484", "0.60345614", "0.6030989", "0.602789", "0.60254353", "0.6023864", "0.6015194", "0.6014818", "0.60123193", "0.6010123", "0.600631", "0.59932244", "0.5985294", "0.5975446", "0.59743345", "0.5974261", "0.5952828", "0.5949382", "0.5935306", "0.5934139", "0.59312236", "0.59268254", "0.59253037", "0.592378", "0.5920795", "0.59185004", "0.5914939", "0.58936334", "0.5892297", "0.5885038", "0.58835226", "0.5878886", "0.5856449", "0.5853461", "0.5836955", "0.5835932", "0.5829293", "0.5824343", "0.58231515", "0.5822792", "0.58195883" ]
0.8190143
0
Method that return if the direction is horizontal
public Boolean isHorizontal() { return this == EAST || this == WEST; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isHorizontal()\r\n\t{\r\n\t\treturn _position==Position.HORIZONTAL;\r\n\t}", "public boolean isHorizontal() {\n\t\treturn ( getSlope() == 0.0d );\n\t}", "public Boolean isHorizontal() {\n return horizontal;\n }", "protected boolean isHorizontal() {\n\t\treturn true;\n\t}", "public boolean isHorizontal(){\n return head().getY() == tail().getY();\n }", "public boolean isHorizontal(CoordinateImpl coordinate) { return coordinate.rank == rank;}", "public boolean onHorizontalEdge() {\n\t\treturn horizontal != Side.None;\n\t}", "public boolean isHorizontalMode() throws PDFNetException {\n/* 627 */ return IsHorizontalMode(this.a);\n/* */ }", "public RailLogicHanging getLogicHorizontal(BlockFace direction) {\r\n return this.logic_horizontal[FaceUtil.faceToNotch(direction)];\r\n }", "private boolean hayRayaHorizontal() {\n for (Casilla[] casilla : casillas) {\n if (linea(casilla))\n return true;\n }\n\n return false;\n }", "boolean hasDirection();", "public boolean horizontalScroll()\n {\n return horizontalScroll;\n }", "private boolean checkHorizontal(int move)\n\t{\n\t\tPiece moveColor = board[6 - columns[move]][move];\n\t\tint i = move;\n\t\tint idx = 1;\n\t\tint lineCount = 1;\n\t\tboolean left, right;\n\t\tleft = right = true;\n\n\t\tfor (; idx < 4; idx++)\n\t\t{\n\t\t\tif (!left || (i - idx) < 0 || board[6 - columns[move]][i - idx] == null)\n\t\t\t{\n\t\t\t\tleft = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (moveColor.equals(board[6 - columns[move]][i - idx]))\n\t\t\t\t{\n\t\t\t\t\tlineCount++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tleft = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!right || (i + idx) > 6 || board[6 - columns[move]][i + idx] == null)\n\t\t\t{\n\t\t\t\tright = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (moveColor.equals(board[6 - columns[move]][i + idx]))\n\t\t\t\t{\n\t\t\t\t\tlineCount++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tright = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (lineCount > 3)\n\t\t\t{\n\t\t\t\twon = true;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if (!left && !right)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isVertical(){\n return !isHorizontal();\n }", "public boolean getScaleHorizontal() {\r\n return ScaleHorizontal;\r\n }", "public void setHorizontal(boolean horizontal) {\n\t\tthis.horizontal = horizontal;\n\t}", "public boolean getExpandHorizontal() {\n checkWidget();\n return expandHorizontal;\n }", "int defaultHorizontal() {\n int horizontal;\n if (isDate(clazz) || isDateTime(clazz)\n || isLocalDate(clazz) || isLocalDateTime(clazz)\n || isTime(clazz) || isLocalTime(clazz)\n || isChar(clazz) || isBool(clazz)) {\n horizontal = Horizontals.CENTER;\n } else if (isInt(clazz) || isLong(clazz)\n || isFloat(clazz) || isDouble(clazz)\n || isBigDecimal(clazz)) {\n horizontal = Horizontals.RIGHT;\n } else {\n horizontal = Horizontals.LEFT;\n }\n return horizontal;\n }", "public boolean isHorizontalFlingEnabled() {\n return config.horizontalFlingEnabled;\n }", "private boolean movingLeft() {\n return this.velocity.sameDirection(Vector2D.X_UNIT.opposite());\n }", "public boolean isLtr() {\n return mStaticLayout.getParagraphDirection(0) == Layout.DIR_LEFT_TO_RIGHT;\n }", "default boolean isHorizontalLineSegment() {\n return false;\n }", "private boolean collisionWithHorizontalWall() {\n return (xPos + dx > RIGHT_BORDER || xPos + dx < 0);\n }", "public boolean checkLeft()\n\t{\n\t\tif(col-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "public boolean existsCollisionHorizontal(Ficha ficha, Vector2D direction){\n\t\t//System.out.println(\"existsCollisionHorizontal\");\n\t\tboolean result = false;\n\t\t\n\t\t\n\t\tVector2D positionFicha = ficha.position;\n\t\tint medidaLado = GenericGame.getMedidaLado();\n\t\t\n\t\tint [][] matriz = ficha.getFicha();\n\t\n\t\n\n\t\tif(direction.getX() > 0){\n\t\t\t//al mover a la derecha \n\t\t\t\n\t\t\tint minimum = (matrizTablero[0].length - matriz[0].length);\n\t\t\t\n\t\t\tint im = (int) (positionFicha.getX() / medidaLado);\n\t\t\tint jm = (int) (positionFicha.getY() / medidaLado);\n\t\t\t\n\t\t\tif(im+1 <= minimum){\n\t\t\t\tim += 1;\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t \n\t\t\t/*\n\t\t\tfor(int i = jm ; i<jm+matriz.length && !result;i++ ){\n\t\t\t\tSystem.out.println(\"i \"+ i + \" im \"+im + \" posicion X \" + positionFicha.getX() + \" posicion Y \" + positionFicha.getY());\n\t\t\t\t\n\t\t\t\tresult = \tmatrizTablero[i][im] !=0;\n\t\t\t}*/\n\t\t\tfor(int i=0; i< matriz.length&&!result;i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j< matriz[0].length && !result;j++)\n\t\t\t\t{\n\t\t\t\t\ttry{\n\t\t\t\t\t\t//System.out.print(\"i\"+i+\",j\"+j);\n\t\t\t\t\t\n\t\t\t\t\t\tif(matriz[i][j]!= 0 )\n\t\t\t\t\t\tresult =\tmatrizTablero[jm+i][im+j] != 0;\n\t\t\t\t\t\t\n\t\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tSystem.out.println(\"ERROR \"+(jm+i)+\" \"+(im+j));\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t//\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t}else if(direction.getX() < 0){\n\t\t\t// al mover a la izquerda \n\t\t\tint im = (int) (positionFicha.getX() / medidaLado)-1;\n\t\t\tint jm = (int) (positionFicha.getY() / medidaLado);\n\t\t\t\n\t\t\t//System.out.println(\"im \"+ im + \" jm \"+jm + \" posicion X \" + positionFicha.getX() + \" posicion Y \" + positionFicha.getY());\n\t\t\t\n\t\t\n\t\t\tfor(int i=0; i< matriz.length&&!result;i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j< matriz[0].length && !result;j++)\n\t\t\t\t{\n\t\t\t\t\ttry{\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(matriz[i][j]!= 0 )\n\t\t\t\t\tresult =\tmatrizTablero[jm+i][im+j] != 0;\n\t\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tSystem.out.println((jm+i)+\" \"+(im+j));\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\tfor(int i = jm ; i<jm+matriz.length&& !result;i++ ){\n\t\t\t\tSystem.out.println(\"i \"+ i + \" im \"+im + \" posicion X \" + positionFicha.getX() + \" posicion Y \" + positionFicha.getY());\n\t\t\t\t\n\t\t\t\tresult = \tmatrizTablero[i][im] !=0;\n\t\t\t}*/\n\t\t}\n\t\t\n\t\t\n\t\treturn result;\n\t\n\t}", "boolean getLeftToRight();", "boolean horizontalAligned(int i, int j) {\n if (i < 0 || j < 0 || i >= gameBoard.getSize() - 2 || j >= gameBoard.getSize()) return false;\n return gameBoard.getValue(new Coordinates(i, j)) == gameBoard.getValue(new Coordinates(i + 1, j))\n && gameBoard.getValue(new Coordinates(i, j)) == gameBoard.getValue(new Coordinates(i + 2, j));\n }", "public boolean hasHorizontalCut() {\r\n\t\treturn mHorizontalCut;\r\n\t}", "private Direction moveDirLeftThumb(double _direction) {\n if (_direction < 67.5 || _direction > 292.5) {\n // forward\n return Direction.FORWARD;\n } else if (_direction < 112.5) {\n // right - forward or CW\n return Direction.RIGHTFORWARD;\n } else if (_direction < 247.5) {\n // backward\n return Direction.BACKWARD;\n } else if (_direction <= 292.5) {\n // left - forward or CCW\n return Direction.LEFTFORWARD;\n }\n // default\n return null;\n }", "boolean isDirectionLTR() {\n return ltr;\n }", "public boolean isLeftToRight() {\n return leftToRight;\n }", "private boolean needToTurn() {\n\t\tdouble curDir = sens.getDirection();\n\t\tdouble desDirPlusAmount = desiredDirection + TURNSPEED;\n\t\tdouble desDirMinusAmount = desiredDirection - TURNSPEED;\n\n\t\t// if desired direction is <||> +_ x degrees\n\t\tif (curDir < desDirMinusAmount || curDir > desDirPlusAmount) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean left() {\r\n if( col <= 0 ) return false;\r\n --col;\r\n return true;\r\n }", "public static boolean onHorizontalLine(Point p1, Point p2) {\n return (p1.getY() - p2.getY()) == 0;\n }", "public boolean getShowHorizontalLines() {\r\n return calendarTable.getShowHorizontalLines();\r\n }", "boolean horizontalWin(){\n\t\tint match_counter=1;\n\t\tboolean flag=false;\n\t\tfor(int row=0;row<9;row++){\n\t\t\tfor(int column=0;column<25;column++){\n\t\t\t\tif(Board[row][column]!='\\u0000'){\n\t\t\t\t\tif(Board[row][column]!='O'){\n\t\t\t\t\t\tif (Board[row][column]==Board[row][column+1]){\n\t\t\t\t\t\t\tmatch_counter++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tflag = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(match_counter==4){\n\t\t\t\t\tflag=true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (flag == true)\n\t\t\t\tbreak;\n\t\t}\n\t\treturn flag;\n\t}", "public boolean isMoveLeft() {\n return moveLeft;\n }", "public boolean canMoveForward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n if(wall.getY()-locY<=50 && wall.getY()-locY>=0 && degree>=0 && degree<=150)\n {\n ans=false;\n }\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=180 && degree<=360)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n if(wall.getX()-locX<=50 && wall.getX()-locX>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n degree>=90 && degree<=270 )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }", "public boolean isRtl() {\n return this.mLayoutManager.getLayoutDirection() == 1;\n }", "private int attack1Horizontal() { //yatay tekli atak fonksiyonu\r\n int status = -1;\r\n\r\n for (int i = row - 1; i >= 0; --i) {\r\n for (int j = 0; j < column; ++j) {\r\n if (gameCells[i][j].getCell() == 'O') {\r\n if (isLegal(i, j - 1)){\r\n status = j - 1;\r\n return status;\r\n }\r\n else if(isLegal(i,j+1)){\r\n status = j+1;\r\n return status;\r\n } \r\n }\r\n }\r\n }\r\n return status;\r\n }", "private boolean combinacaoHorizontal(){\n\t\t\tfor(int i=0; i<3;i++){\n\t\t\t\tint linha=botoes[i][0].getTipo();\n\t\t\t\tint contagem=1;\n\t\t\t\tfor(int j=1;j<3;j++){\n\t\t\t\t\tint modelo=botoes[i][j].getTipo(); //Pega qual tipo -se X ou O- foi acionado e armazena\n\t\t\t\t\tif(modelo==BotaoJogo.VAZIO){\n\t\t\t\t\t\tcontinue; //Se for vazio, ja vai pra proxima verificacao\n\t\t\t\t\t}\n\t\t\t\t\tif(modelo==linha){ \n\t\t\t\t\t\tcontagem++; //Vai computando os botoes acionados nas linhas\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(contagem==3){ //Se computou que chegou a 3, houve combinacao na horizontal\n\t\t\t\t\tif(linha==1){\n\t\t\t\t\t\tSystem.out.println(\"\\n X EH O GANHADOR!\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"\\n O EH O GANHADOR!\");\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public int[] findHorizontalSeam() {\n isHorizontalCall = true;\n checkTransposed();\n int[] seam = findVerticalSeam();\n isHorizontalCall = false;\n return seam;\n }", "public double getLeftJoystickHorizontal() {\n\t\treturn getRawAxis(LEFT_STICK_HORIZONTAL);\n\t}", "public boolean diagonalLeft(){\n\t\t\r\n\t\tfor (int j = 1; j < Board.length-1; j++){\r\n\t\t\tint k = Board.length-1-j;\r\n\t\t\t\tif (Board[j][k].charAt(2) != Board[j+1][k-1].charAt(2))\r\n\t\t\t\t\tbreak;\r\n\t\t\t\telse if (Board[j][k].charAt(2) == '_')\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tif ((j == Board.length-2) && (k == 1)){\r\n\t\t\t\t\tthis.winner = Board[j][k].charAt(2);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean movingRight() {\n return this.velocity.sameDirection(Vector2D.X_UNIT);\n }", "public boolean leftJustified(){\n return justification.equals(FormatAlignment.LEFT_JUSTIFY);\n }", "private boolean leftDownCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((obj.getY() - this.getY()) < this.getHeight()) && (obj.getY() > this.getY()));\n\t}", "public boolean isleft(){\n\t\tif (x>0 && x<Framework.width && y<Framework.height )//bullet can in the air(no boundary on the top. )\n\t\t\treturn false; \n\t\telse \n\t\t\treturn true; \n\t}", "private boolean horizontalCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n return wallCoordinates.get(0).getXCoordinate() <= coordinates.get(1).getXCoordinate() && coordinates.get(0).getXCoordinate() <= wallCoordinates.get(1).getXCoordinate();\n }", "public boolean isOrthogonal() {\n\t\treturn isHorizontal() || isVertical();\n\t}", "public boolean chkRTL()\n\t{\n\t\treturn (orientation == ORIENT_RTL);\n\t}", "public boolean isLeft(char dirFacing, Location next)\n\t{\n\t\tLocation left = getLeft(dirFacing);\n\t\treturn left.getX() == next.x && left.getY() == next.y;\n\t}", "public boolean moveHori(Direction direction,Car[][]grid){//fonctionne parfaitement\r\n boolean valid=false;\r\n switch(direction){\r\n case LEFT:valid=this.currentPosition.getColumn()-1>=0&&\r\n grid[this.currentPosition.getRow()]\r\n [this.currentPosition.getColumn()-1]==null;break;\r\n case RIGHT:valid=this.currentPosition.getColumn()+this.getSize()<grid[0].length&&\r\n grid[this.currentPosition.getRow()]\r\n [this.currentPosition.getColumn()+this.getSize()]==null;break;\r\n }\r\n return valid;\r\n }", "@Basic @Immutable\n\tpublic double getHorizontalLocation() {\n\t\treturn this.horizontalLocation;\n\t}", "public boolean isHorizontalHighlightIndicatorEnabled() { return this.mDrawHorizontalHighlightIndicator; }", "int getDirection();", "public boolean stepLeft() {\n //it should be wall and maze border check here\n xMaze--;\n printMyPosition();\n return true; // should return true if step was successful\n }", "boolean hasHingeOnRightSide() throws RuntimeException;", "boolean isSetDirection();", "protected int layoutChildHorizontal(View v, int left, LoopLayoutParams lp){\n\t\tint l,t,r,b;\n\t\t\n\t\tswitch(lp.position){\n\t\tcase LoopLayoutParams.TOP:\n\t\t\tl = left + lp.leftMargin;\n\t t = lp.topMargin;\n\t r = l + v.getMeasuredWidth();\n\t b = t + v.getMeasuredHeight();\n\t\t\tbreak;\n\t\tcase LoopLayoutParams.BOTTOM:\n\t\t\tb = getHeight() - lp.bottomMargin;\n\t\t\tt = b - v.getMeasuredHeight();\n\t\t\tl = left + lp.leftMargin; \n\t r = l + v.getMeasuredWidth();\n\t\t\tbreak;\n\t\tcase LoopLayoutParams.CENTER:\n\t\t\tl = left + lp.leftMargin; \n\t r = l + v.getMeasuredWidth();\n\t final int x = (getHeight() - v.getMeasuredHeight())/2;\n\t t = x;\n\t b = t + v.getMeasuredHeight();\n\t\t\tbreak;\n\t\tdefault:\t\t\t\n\t\t\tthrow new RuntimeException(\"Only TOP,BOTTOM,CENTER are alowed in horizontal orientation\");\n\t\t}\n\t\t\n \n v.layout(l, t, r, b);\n return r + lp.rightMargin;\n\t}", "public boolean nEnRaya() {\n return (hayRayaHorizontal() || hayRayaVertical() || hayRayaDiagonal());\n }", "private boolean canMoveLeft()\n {\n // runs through board row first, column second\n for ( int row = 0; row < grid.length ; row++ ) {\n for ( int column = 1; column < grid[row].length; column++ ) {\n\n // looks at tile directly to the left of the current tile\n int compare = column-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[row][compare] == 0 || grid[row][column] ==\n grid[row][compare] ) {\n return true;\n }\n }\n }\n } \n return false;\n }", "public boolean getHorizontalFill() {\n return hfill;\n }", "public boolean isHorizontalScrollingEnabled() {\n return config.horizontalScrollingEnabled;\n }", "public boolean moveLeft() {\n\t\tif (check(col-1, row)) {\n\t\t\tHiVolts.board.squares[row][col] = 0;\n\t\t\tcol = col - 1;\n\t\t\tHiVolts.board.squares[row][col] = 2;\n\t\t\tsuper.moveLeft();\n\t\t}\n\t\treturn true;\n\t}", "public short getHorizontalAlignment()\n {\n return halign;\n }", "public boolean isMove(int dir){\n\t if(0> dir && dir > 3){\n\t\tSystem.out.println(\"direction is failed\");\t \n\t\treturn false;\n\t }\n\t if(dir == 0 ){\n\t\tif(0<= (this.y-1) && (this.y-1)<=5)\n\t\t return true;\n\t }else if(dir == 1){\n\t\tif(0<= (this.y+1) && (this.y+1)<=5)\n\t\t return true;\n\t }else if(dir == 2){\n\t\tif(0<= (this.x+1) && (this.x+1)<=5)\n\t\t return true;\n\t }else if(dir == 3){\n\t\tif(0<= (this.x-1) && (this.x-1)<=5)\n\t\t return true;\n\t }\n\t return false;\n\t}", "public boolean isLeft() {\n\t\treturn state == State.LEFT;\n\t}", "public Coordinate checkDirection(Direction direction){\r\n\t\treturn new Coordinate(x + direction.getX(), y + direction.getY());\r\n\t}", "public Boolean isVertical() {\n return vertical;\n }", "public boolean checkDiagonalWin(){\n\t\treturn true;\n\t}", "public Projector getHorizontalProjector() {\n return (_tile!=null)?_tile.getHorizontalProjector():null;\n }", "public boolean checkHorizontal(int column, int row, Array a){\n\t\tfor(int i = 0; i < word.length; i++){\n\t\t\tif(a.getCharAt(column + i, row) != ' ' && a.getCharAt(column + i, row) != word[i]){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean playerWonGameWithHorizontalLine(Player player) {\n char playerSymbol = player.getType();\n for (int i = 0; i < 3; i++) {\n if (boardState[i][0] == playerSymbol && boardState[i][1] == playerSymbol \n && boardState[i][2] == playerSymbol) {\n return true; \n }\n \n }\n return false; \n }", "private void checkHorizontal() {\n\n for(int i = 0; i < stateArray.length; i++) {\n for (int j = 0; j < 2; j++){ // iterate only twice, because winning row\n \t // can be either 0-1-2-(3) or (0)-1-2-3\n if (check3Horizontal(i, j)){\n maskResultArray[stateArray[i][j]] = 1;\n maskArray[i][j] = 1;\n maskArray[i][j+1] = 1;\n maskArray[i][j+2] = 1;\n }\n\n }\n }\n\n }", "public boolean isLandscape() {\n WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n Display display = wm.getDefaultDisplay();\n return display.getWidth() > display.getHeight();\n }", "boolean checkDir(Directions dir);", "public int getDirection();", "boolean hasPositionX();", "boolean hasPositionX();", "boolean hasPositionX();", "private boolean checkWallLeft(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "private static boolean withinDirRange(double direction) {\r\n\t\treturn direction <=350 && direction >=0;\r\n\t}", "public boolean moveLeft() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenLeft() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.LEFT);\r\n\t\t\tif ( currentCol-1 < 0 || maze [currentRow] [currentCol-1].isOpenRight() )\r\n\t\t\t{\r\n\t\t\t\tcurrentCol--;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentCol >= 0 )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Left: \" + moved );\r\n\t\treturn moved;\r\n\t}", "public boolean lastHitLeft()\n\t{\n\t\treturn lastBorderHit[0];\n\t}", "public boolean isFacingLeft(){\r\n\t\tif(facingLeft == true){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Override\n protected boolean isFinished() {\n //stop once the left side is high enough\n return Robot.myLifter.getLeftEncoder() < pos;\n }", "private boolean hasLeftWall(View v){\n\t\tswitch(this.facingDirection){\n\t\tcase NORTH:\n\t\t\treturn !v.mayMove(Direction.WEST);\n\t\tcase SOUTH:\n\t\t\treturn !v.mayMove(Direction.EAST);\n\t\tcase WEST:\n\t\t\treturn !v.mayMove(Direction.SOUTH);\n\t\tcase EAST:\n\t\t\treturn !v.mayMove(Direction.NORTH);\n\t\tdefault: return false;\n\t\t}\n\t}", "protected static boolean hasMatchHorizontal(final Board board, final int startCol, final int startRow, final int key)\r\n {\r\n //check horizontal match\r\n for (int col = startCol; col < startCol + MATCH_COUNT; col++)\r\n {\r\n //if we are out of bounds we don't meet the match criteria\r\n if (col >= board.getBoardKey()[0].length)\r\n return false;\r\n \r\n //if the key does not match, return false\r\n if (board.getKey(col, startRow) != key)\r\n return false;\r\n }\r\n \r\n //there was nothing from preventing a match return true\r\n return true;\r\n }", "boolean getLandscape();", "public boolean checkHorizontal(int player, int x, int y) {\n\t\tif (x > board.length - INROW) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (int i = 0; i < INROW; i++) {\n\t\t\tif (board[x+i][y] != player) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean moveLeft() {\r\n\t\tif (this.x <= 0 == true) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tthis.x -= 5;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}", "boolean hasHeading();", "boolean hasHeading();", "boolean hasHeading();", "public boolean isValidHorizontal(Square curB, Square preB) {\n \n value = true;\n \n int xdistance = curB.getRow1() - preB.getRow1();\n int ydistance = curB.getCol1() - preB.getCol1();\n int i1;\n \n if ((ydistance < 0) && (xdistance == 0)) {\n for (i1 = curB.getCol1(); i1 < preB.getCol1(); i1 += 1) {\n if (Board.squares[preB.getRow1()][i1].isOccupied()) {\n value = false;\n }\n }\n } else if ((ydistance > 0) && (xdistance == 0)) {\n for (i1 = preB.getCol1(); i1 < curB.getCol1(); i1 += 1) {\n if (Board.squares[preB.getRow1()][i1].isOccupied()) {\n value = false;\n }\n }\n }\n return value;\n }", "public boolean canMove(int direction) {\r\n //right\r\n if (direction == 0) {\r\n if (map[i][j + 1] == '0' && map[i + 1][j] != '0' && map[i + 1][j] != map[i][j])\r\n return true;\r\n else return false;\r\n }\r\n //left\r\n else if (direction == 1) {\r\n if (map[i][j - 1] == '0' && map[i + 1][j] != '0' && map[i + 1][j] != map[i][j])\r\n return true;\r\n else return false;\r\n }\r\n return false;\r\n }", "public boolean isLegalDiag(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\t\n\t\tPlayer toMove;\n\t\tPlayer oppo;\n\n\t\tint col, row;\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\n\t\t\tcol = curPos.getWhitePosition().getTile().getColumn();\n\t\t\trow = curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t\ttoMove = white;\n\t\t\toppo = currentGame.getBlackPlayer();\n\t\t} else {\n\t\t\tcol = curPos.getBlackPosition().getTile().getColumn();\n\t\t\trow = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\toppo = white;\n\t\t\ttoMove = currentGame.getBlackPlayer();\n\t\t}\n\t\t\n\t\tif (dir == MoveDirection.NorthEast) {\n\t\t\tif(col==9 || row ==1) return false;\n\t\t} else if(dir == MoveDirection.NorthWest) {\n\t\t\tif(col==1 || row ==1) return false;\n\t\t} else if(dir == MoveDirection.SouthEast) {\n\t\t\tif(col==9 || row ==9) return false;\n\t\t} else if(dir == MoveDirection.SouthWest) {\n\t\t\tif(col==1 || row ==9) return false;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t\t//Tiles are drawn by row then by column. 0= row1 col1, \n\t\t\n\t\t//Checking the has opponent first\n\t\tboolean correct = false;\n\t\t//Check down\n\t\tif(QuoridorController.hasOpponent(1, 0)) {\n\t\t\tif(QuoridorController.noWallBlock(toMove, 1, 0)) {\n\t\t\t\tif(QuoridorController.noWallBlock(oppo, 1, 0) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, 0, -1)) {\n\t\t\t\t\t\t//Jump diagonal- check left\n\t\t\t\t\t\tif(dir == MoveDirection.SouthWest) return true;\n\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, 0, 1)) {\n\t\t\t\t\t\t//Jump diagonal- check right\n\t\t\t\t\t\tif(dir == MoveDirection.SouthEast) return true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t//Check up\n\t\t} else if(QuoridorController.hasOpponent(-1, 0)) {\n\t\t\tif(QuoridorController.noWallBlock(toMove, -1, 0)) {\n\t\t\t\tif(QuoridorController.noWallBlock(oppo, -1, 0) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, 0, -1)) {\n\t\t\t\t\t\t//Jump diagonal- check left\n\t\t\t\t\t\tif(dir == MoveDirection.NorthWest) return true;\n\t\t\t\t\t\t\n\t\t\t\t\t} \n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, 0, 1)) {\n\t\t\t\t\t\t//Jump diagonal- check right\n\t\t\t\t\t\tif(dir == MoveDirection.NorthEast) return true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\t\t//Check right\n\t\t} else if(QuoridorController.hasOpponent(0, 1)) {\n\t\t\tif(QuoridorController.noWallBlock(toMove, 0, 1)) {\n\t\t\t\tif(QuoridorController.noWallBlock(oppo, 0, 1) ) {\n\t\t\t\t\t//Jump straight allowed\n\t\t\t\t\treturn false;\t\n\t\t\t\t} else {\n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, -1, 0)) {\n\t\t\t\t\t\t//Jump diagonal- check up\n\t\t\t\t\t\tif(dir == MoveDirection.NorthEast) return true;\n\t\t\t\t\t} \n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, 1, 0)) {\n\t\t\t\t\t\t//Jump diagonal- check down\n\t\t\t\t\t\tif(dir == MoveDirection.SouthEast) return true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t//Check left\n\t\t} else if(QuoridorController.hasOpponent(0, -1)) {\n\t\t\tif(QuoridorController.noWallBlock(toMove, 0, -1)) {\n\t\t\t\tif(QuoridorController.noWallBlock(oppo, 0, -1) ) {\n\t\t\t\t\t//Jump straight allowed\n\t\t\t\t\treturn false;\n\t\t\t\t} else {\n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, -1, 0)) {\n\t\t\t\t\t\t//Jump diagonal- check up\n\t\t\t\t\t\tif(dir == MoveDirection.NorthWest) return true;\n\t\t\t\t\t} \n\t\t\t\t\tif(QuoridorController.noWallBlock(oppo, 1, 0)) {\n\t\t\t\t\t\t//Jump diagonal- check down\n\t\t\t\t\t\tif(dir == MoveDirection.SouthWest) return true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\r\n }", "public boolean isLeftDown() {\n return pm.pen.getButtonValue(PButton.Type.LEFT);\n }", "public abstract boolean facingRight();" ]
[ "0.83837104", "0.81960523", "0.80964", "0.7838285", "0.77532846", "0.7371447", "0.7306081", "0.7265765", "0.6954261", "0.67664504", "0.6605062", "0.6581141", "0.65556914", "0.65271056", "0.64963186", "0.635724", "0.62861395", "0.62292737", "0.6204041", "0.6189448", "0.61462164", "0.613821", "0.6128689", "0.60583067", "0.6032091", "0.6025944", "0.59992933", "0.5953648", "0.5943476", "0.59227633", "0.5909877", "0.59074813", "0.59068537", "0.58791596", "0.58415896", "0.5829693", "0.5819457", "0.58167034", "0.5791249", "0.5764944", "0.5761166", "0.5740909", "0.573643", "0.5723524", "0.571519", "0.5708083", "0.5705546", "0.5704047", "0.5691586", "0.5680405", "0.56677336", "0.5665853", "0.56588304", "0.5653866", "0.5648486", "0.56436557", "0.56249845", "0.5623555", "0.5614108", "0.5607937", "0.5604533", "0.5597872", "0.55975246", "0.55888677", "0.55848056", "0.5582852", "0.5573642", "0.5570029", "0.55692494", "0.556834", "0.5562489", "0.55580306", "0.5557641", "0.5554675", "0.55530643", "0.5539117", "0.5535949", "0.55357397", "0.55298716", "0.55298716", "0.55298716", "0.5528421", "0.5526342", "0.55183184", "0.55038035", "0.5501167", "0.5496544", "0.54925793", "0.5491438", "0.5486178", "0.5478515", "0.5477483", "0.5466109", "0.5466109", "0.5466109", "0.5458353", "0.54536164", "0.5452329", "0.54521775", "0.544868" ]
0.7574088
5
Method that return if the direction if vertical
public Boolean isVertical() { return this == NORTH || this == SOUTH; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isVertical(){\n return !isHorizontal();\n }", "public Boolean isVertical() {\n return vertical;\n }", "public Boolean isVertical() {\r\n\t\treturn isVertical;\r\n\t}", "public boolean isVertical() {\r\n\t\treturn isVertical;\r\n\t}", "public boolean isVertical() {\n\t\tfinal Double slope = getSlope();\n\t\treturn slope.equals( NaN );\n\t}", "public boolean onVerticalEdge() {\n\t\treturn vertical != Side.None;\n\t}", "@objid (\"7f09cb65-1dec-11e2-8cad-001ec947c8cc\")\n public boolean isVertical() {\n return this.vertical;\n }", "public boolean isVertical() {\n return(point1.getFirst()==point2.getFirst());\n }", "public boolean isVertical()\n\t{\n\t\treturn CGCWorld.getAnimManager().gHeight(getHighAnim()) > CGCWorld.getAnimManager().gWidth(getHighAnim());\n\t}", "boolean hasDirection();", "private boolean hayRayaVertical() {\n for (int j = 0; j < casillas[0].length; j++) {\n Casilla[] columna = new Casilla[casillas.length];\n for (int i = 0; i < casillas.length; i++) {\n columna[i] = casillas[i][j];\n }\n if (linea(columna))\n return true;\n }\n\n return false;\n }", "public boolean isVertical(CoordinateImpl coordinate) {\n return coordinate.file == file;\n }", "public double direction(){\n return Math.atan2(this.y, this.x);\n }", "public boolean isAlmostVertical() {\n \t\t// estimation heuristic: if world x and y are both small, the vector is almost vertical\n \t\tif (Math.abs(x)<vecPrecision && Math.abs(y)<vecPrecision) return true;\n \t\telse return false;\n \t}", "int getDirection();", "protected boolean isVertical(DefaultRenderer renderer) {\r\n return renderer instanceof XYMultipleSeriesRenderer\r\n && ((XYMultipleSeriesRenderer) renderer).getOrientation() == Orientation.VERTICAL;\r\n }", "public int getDirection();", "default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(), getDirY(), getDirZ());\r\n }", "public double getDirectionView();", "public float getDirection();", "boolean verticalAligned(int i, int j) {\n if (i < 0 || j < 0 || i >= gameBoard.getSize() || j >= gameBoard.getSize() - 2) return false;\n return gameBoard.getValue(new Coordinates(i, j)) == gameBoard.getValue(new Coordinates(i, j + 1))\n && gameBoard.getValue(new Coordinates(i, j)) == gameBoard.getValue(new Coordinates(i, j + 2));\n }", "public abstract boolean facingRight();", "String getDirection();", "public boolean moveVerti(Direction direction,Car[][]grid,int height){//à tester\r\n boolean valid = false;\r\n switch(direction){\r\n case UP:valid=this.currentPosition.getRow()-1>=0&&\r\n grid[this.currentPosition.getRow()-1]\r\n [this.currentPosition.getColumn()]==null;break;\r\n case DOWN:valid=this.currentPosition.getRow()+this.getSize()<height&&\r\n grid[this.currentPosition.getRow()+this.getSize()]\r\n [this.currentPosition.getColumn()]==null;break;\r\n }\r\n return valid;\r\n }", "public Vector getDirection(){\n\t\treturn new Vector(_direction);\n\t}", "public boolean inVerticalBlank();", "public float getDirection()\r\n {\r\n return direction;\r\n }", "public void setVertical(Boolean isVertical) {\r\n\t\tthis.isVertical = isVertical;\r\n\t}", "public boolean isHorizontal(){\n return head().getY() == tail().getY();\n }", "public abstract int getDirection();", "default boolean isVerticalLineSegment() {\n return false;\n }", "public boolean chkRTL()\n\t{\n\t\treturn (orientation == ORIENT_RTL);\n\t}", "boolean vecinoDisponible2 (int x, int y, int dir){\n\t //Cuidamos los límites.\n\t switch (dir){\n\t case 0: if (y-1 < 0) return false;\n\t\treturn !mundo[x][y-1].visitoAgente;\n\t case 1: if (y+1 >= alto) return false;\n\t\treturn !mundo[x][y+1].visitoAgente;\n\t case 2: if (x-1 < 0) return false;\n\t\treturn !mundo[x-1][y].visitoAgente;\n\t case 3: if (x+1 >= ancho) return false;\n\t\treturn !mundo[x+1][y].visitoAgente;\n\t }\n\n\t return false;\n }", "boolean isSetDirection();", "boolean checkDir(Directions dir);", "abstract boolean estValideDirection(Coup c);", "public double getdegVerticalToTarget() {\n NetworkTableEntry ty = m_table.getEntry(\"ty\");\n double y = ty.getDouble(0.0);\n return y;\n }", "private DirectionTestResult getDirection() throws SimplexException {\r\n switch(pointCount) {\r\n case 1:\r\n return new DirectionTestResult(a.negate(new Vector2f()));\r\n case 2:\r\n Vector2f ab = b.sub(a);\r\n Vector2f perpAB = new Vector2f(-ab.y,ab.x);\r\n \r\n // check the perpendicular points opposite to vector A\r\n // i.e. towards the origin\r\n // if not, return the negated perpendicular and swap\r\n // points A and B to maintain clockwise rotation.\r\n if (perpAB.dot(a) < 0) {\r\n return new DirectionTestResult(perpAB);\r\n } else {\r\n Vector2f t = a;\r\n a = b;\r\n b = t;\r\n return new DirectionTestResult(perpAB.negate());\r\n }\r\n case 3:\r\n // first check line AC just like case 2\r\n Vector2f ac = c.sub(a);\r\n Vector2f perpAC = new Vector2f(-ac.y,ac.x);\r\n \r\n if (perpAC.dot(a) < 0) {\r\n b = c;\r\n c = null;\r\n pointCount = 2;\r\n return new DirectionTestResult(perpAC);\r\n }\r\n \r\n // now check line CB just like case 2\r\n Vector2f cb = b.sub(c);\r\n Vector2f perpCB = new Vector2f(-cb.y, cb.x);\r\n \r\n if (perpCB.dot(c) < 0) {\r\n a = c;\r\n c = null;\r\n pointCount = 2;\r\n return new DirectionTestResult(perpCB);\r\n }\r\n \r\n // if both checks failed the origin must be inside the\r\n // simplex which means there is a collision so return\r\n // a true directionTestResult\r\n \r\n return new DirectionTestResult();\r\n default:\r\n throw new SimplexException(\"pointCount outside acceptable range\");\r\n }\r\n }", "public double getDirectionFace();", "public int getDirection()\r\n\t{\r\n\t\treturn direction;\r\n\t}", "public Boolean isHorizontal() {\n return this == EAST || this == WEST;\n }", "@Generated\n @Selector(\"direction\")\n @ByValue\n public native CGVector direction();", "public double getYDirection() {\r\n return Math.sin(Math.toRadians(angle));\r\n }", "@Nullable\n private Direction getFrameDirection() {\n //Cache the chunks we are looking up to check the frames of\n // Note: We can use an array based map, because we check suck a small area, that if we do go across chunks\n // we will be in at most two in general due to the size of our teleporter. But given we need to check multiple\n // directions we might end up checking two different cross chunk directions which would end up at three\n Long2ObjectMap<ChunkAccess> chunkMap = new Long2ObjectArrayMap<>(3);\n Object2BooleanMap<BlockPos> cachedIsFrame = new Object2BooleanOpenHashMap<>();\n for (Direction direction : EnumUtils.DIRECTIONS) {\n if (hasFrame(chunkMap, cachedIsFrame, direction, false)) {\n frameRotated = false;\n return direction;\n } else if (hasFrame(chunkMap, cachedIsFrame, direction, true)) {\n frameRotated = true;\n return direction;\n }\n }\n return null;\n }", "public Direction direction()\n {\n return myDir;\n }", "public int getDirection() {\n return direction;\n }", "public int getDirection() {\n return direction;\n }", "float getDir() {\n return degrees(_rotVector.heading());\n }", "public Vector3d getDirection() { return mDirection; }", "public final Vector3f getDirection() {\r\n return direction;\r\n }", "@Override\n public boolean getInverted()\n {\n final String funcName = \"getInverted\";\n boolean inverted = motor.getInverted();\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", inverted);\n }\n\n return inverted;\n }", "private int orientation(Waypoint w1, Waypoint w3, Waypoint w2){\n\t\tdouble w1x = w1.getX();\n\t\tdouble w1y = w1.getY();\n\t\tdouble w2x = w2.getX();\n\t\tdouble w2y = w2.getY();\n\t\tdouble w3x = w3.getX();\n\t\tdouble w3y = w3.getY();\n\t\tdouble val = (w3y - w1y) * (w2x - w3x) - (w3x - w1x) * (w2y - w3y);\n\t\t\n\tif ( val == 0) //colinear\n\t\treturn 0;\n\t\n\treturn (val > 0) ? 1: 2; //clock or counterclock wise\n\t\n\t}", "public double getDirectionMove();", "private boolean isFlipped(){\n switch(this.orientation){\n case \"0\": case\"1\": case\"2\": case\"3\": return false;\n case \"4\": case\"5\": case\"6\": case\"7\": return true;\n default: return false;\n }\n }", "public void direction()\n {\n if(!goLeft){\n horzVelocity = 1;\n }else{\n horzVelocity = -1;\n }\n }", "public Direction getDirection()\n {\n return dir;\n }", "public int getDirection() {\n return direction;\n }", "public short getVertOrient() throws TextException {\r\n try {\r\n short verticalAlignment = ((Short) getXPropertySet().getPropertyValue(\"VertOrient\"))\r\n .shortValue();\r\n if (verticalAlignment == VertOrientation.CENTER) {\r\n return ALIGN_CENTER;\r\n } else if (verticalAlignment == VertOrientation.BOTTOM) {\r\n return ALIGN_BOTTOM;\r\n } else if (verticalAlignment == VertOrientation.TOP) {\r\n return ALIGN_TOP;\r\n } else {\r\n return ALIGN_UNDEFINED;\r\n }\r\n } catch (Exception exception) {\r\n TextException textException = new TextException(exception.getMessage());\r\n textException.initCause(exception);\r\n throw textException;\r\n }\r\n }", "public byte getDirection() {\n\t\treturn direction;\n\t}", "public void onMirrorVertical() {\n mirror(TransformDesign.MIRROR_VERTICAL, 0.0f);\n }", "public boolean isMove(int dir){\n\t if(0> dir && dir > 3){\n\t\tSystem.out.println(\"direction is failed\");\t \n\t\treturn false;\n\t }\n\t if(dir == 0 ){\n\t\tif(0<= (this.y-1) && (this.y-1)<=5)\n\t\t return true;\n\t }else if(dir == 1){\n\t\tif(0<= (this.y+1) && (this.y+1)<=5)\n\t\t return true;\n\t }else if(dir == 2){\n\t\tif(0<= (this.x+1) && (this.x+1)<=5)\n\t\t return true;\n\t }else if(dir == 3){\n\t\tif(0<= (this.x-1) && (this.x-1)<=5)\n\t\t return true;\n\t }\n\t return false;\n\t}", "public String getDirection(){\n\t\tif(this.toRight)\n\t\t\treturn \"RIGHT\";\n\t\telse\n\t\t\treturn \"LEFT\";\n\t}", "private boolean collisionWithVerticalWall() {\n return (yPos + dy > LOWER_BORDER || yPos + dy < 0);\n }", "private int attack1Vertical() { //dikey tekli atak fonksiyonu\r\n int status = -1;\r\n\r\n for (int i = 0; i < column; ++i) {\r\n for (int j = row - 1; j > 0; --j) {\r\n if (gameCells[j][i].getCell() == 'O') {\r\n if (isLegal(j - 1, i)) {\r\n status = i;\r\n return status;\r\n }\r\n }\r\n }\r\n }\r\n return status;\r\n }", "public int getDirection() {\r\n\t\treturn direction;\r\n\t}", "Enumerator getDirection();", "public double getRightJoystickVertical() {\n\t\treturn getRawAxis(RIGHT_STICK_VERTICAL) * -1;\n\t}", "protected final Direction getDirection() {\n\t\treturn tile.getDirection();\n\t}", "@Schema(description = \"Indicates the threshold crossing direction: up or down.\")\n\n\tpublic String getDirection() {\n\t\treturn direction;\n\t}", "private int getDirection(boolean isFrontCamera) {\n\t\tif (mAccListener != null) {\n\t\t\tint dir = mAccListener.dir;\n\t\t\t// 当且仅当为前置摄像头且画面是上下方向(portrait、portrait-inverse)的颠倒\n\t\t\tif (isFrontCamera && ((dir & 1) == 1)) {\n\t\t\t\tdir = (dir ^ 2);\n\t\t\t}\n\t\t\treturn dir;\n\t\t}\n\t\treturn -1; // default value is -1\n\t}", "public byte getDirection() {\n return this.direction;\n }", "public byte getDirection() {\n return this.direction;\n }", "public int getDirection() {\n return direction_;\n }", "boolean hasPositionY();", "boolean hasPositionY();", "boolean hasPositionY();", "private Vector3f calculateVectorDirectionBetweenEyeAndCenter() {\n\t\tVector3f br = new Vector3f();\n\n\t\tbr.x = player.getPosition().x - camera.getPosition().x;\n\t\tbr.y = player.getPosition().y - camera.getPosition().y;\n\t\tbr.z = player.getPosition().z - camera.getPosition().z;\n\n\t\treturn br;\n\t}", "public boolean getExpandVertical() {\n checkWidget();\n return expandVertical;\n }", "boolean getLeftToRight();", "@Basic @Immutable\n\tpublic double getVerticalLocation() {\n\t\treturn this.verticalLocation;\n\t}", "public ElevatorStatus getCurrentDirection() {\n\t\treturn currentDirection;\n\t}", "public char getDirection(){\n\t\treturn direction;\n\t}", "int orientation(Coord pos) {\n\t\tint val = (to.y - from.y) * (pos.x - to.x) - (to.x - from.x) * (pos.y - to.y);\n\t\treturn (val > 0) ? 1 : ((val < 0) ? -1 : 0);\n\t}", "com.ctrip.ferriswheel.proto.v1.Placement getVerticalAlign();", "public boolean isHorizontal() {\n\t\treturn ( getSlope() == 0.0d );\n\t}", "public MoveDirection getDirection() {\n\t\treturn direction;\n\t}", "public float reverseVerticalDirection(float angle) {\n return (float) (2*Math.PI-angle);\n }", "public boolean isVerticalFlingEnabled() {\n return config.verticalFlingEnabled;\n }", "public int getCurrentDirection() {\r\n return currentDirection;\r\n }", "public Projector getVerticalProjector() {\n return (_tile!=null)?_tile.getVerticalProjector():null;\n }", "private boolean movingRight() {\n return this.velocity.sameDirection(Vector2D.X_UNIT);\n }", "int getVerticalAlignValue();", "public boolean getScaleVertical() {\r\n return ScaleVertical;\r\n }", "public ZeroSides calculateShouldZeroSides() {\r\n if (!(getContext() instanceof Activity)) {\r\n return ZeroSides.NONE;\r\n }\r\n Activity activity = (Activity) getContext();\r\n int i = activity.getResources().getConfiguration().orientation;\r\n int rotation = activity.getWindowManager().getDefaultDisplay().getRotation();\r\n if (i != 2) {\r\n return ZeroSides.NONE;\r\n }\r\n if (rotation == 1) {\r\n return ZeroSides.RIGHT;\r\n }\r\n if (rotation == 3) {\r\n return Build.VERSION.SDK_INT >= 23 ? ZeroSides.LEFT : ZeroSides.RIGHT;\r\n }\r\n if (rotation == 0 || rotation == 2) {\r\n return ZeroSides.BOTH;\r\n }\r\n return ZeroSides.NONE;\r\n }", "public Direction getCorrectRobotDirection();", "public Direction getDirection() {\n return currentDirection;\n }", "public Boolean isHorizontal() {\n return horizontal;\n }", "public Direction getDirect() {\n \tif(xMoving && yMoving){\n \t\tif(right && down)\n \t\t\tdir = Direction.SOUTHEAST;\n \t\telse if(right && !down)\n \t\t\tdir = Direction.NORTHEAST;\n \t\telse if(!right && down)\n \t\t\tdir = Direction.SOUTHWEST;\n \t\telse\n \t\t\tdir = Direction.NORTHWEST;\n \t}\n \telse if(xMoving){\n \t\tdir = right ? Direction.EAST : Direction.WEST;\n \t}\n \telse if(yMoving){\n \t\tdir = down ? Direction.SOUTH : Direction.NORTH;\n \t}\n \treturn dir;\n }", "public boolean getVerticalFill() {\n return vfill;\n }", "public void reverseDirectionY()\n\t{\n\t\t\n\t\tvy = -vy;\n\t}" ]
[ "0.77152395", "0.7606421", "0.7276386", "0.7207508", "0.7114727", "0.70845604", "0.70702744", "0.68667716", "0.6752685", "0.671936", "0.6461429", "0.6385591", "0.63353837", "0.6226041", "0.61723995", "0.6169438", "0.6157038", "0.61555725", "0.60849106", "0.60734075", "0.60602677", "0.6044116", "0.6020037", "0.5987948", "0.5962392", "0.59591377", "0.5935469", "0.59327316", "0.5929685", "0.5919069", "0.5904343", "0.5895685", "0.58942956", "0.58840984", "0.58775336", "0.5871158", "0.586963", "0.58653414", "0.58586675", "0.5837145", "0.58300406", "0.5816052", "0.581548", "0.58013713", "0.57667696", "0.5763153", "0.5763153", "0.5756795", "0.57565165", "0.5756103", "0.57535964", "0.5744615", "0.5737765", "0.57351625", "0.57317376", "0.5718335", "0.5714526", "0.5704825", "0.56831425", "0.56829053", "0.5679016", "0.567886", "0.56758565", "0.5673032", "0.56626356", "0.5653213", "0.5642344", "0.5640025", "0.56252104", "0.5623079", "0.56208104", "0.56208104", "0.5619817", "0.56060284", "0.56060284", "0.56060284", "0.560418", "0.5588576", "0.5586154", "0.55792767", "0.5575664", "0.55616987", "0.55609614", "0.55609286", "0.555839", "0.5549176", "0.55451906", "0.554474", "0.55425453", "0.5541156", "0.5537505", "0.55366", "0.5520372", "0.5519922", "0.5516138", "0.5515278", "0.5513802", "0.5505766", "0.5504282", "0.548994" ]
0.73436177
2
Method that change the direction to String
@Override public String toString() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDirection();", "public String getDirection(){\n\t\tif(this.toRight)\n\t\t\treturn \"RIGHT\";\n\t\telse\n\t\t\treturn \"LEFT\";\n\t}", "public String getDirection() {\r\n return direction;\r\n }", "public String getDirection() {\n return direction;\n }", "public String getDirection() {\n return this.direction;\n }", "void changeDirection();", "public static String stringFromDirection(int dir) {\n return dir == 0 ? \"NORTH\" : dir == 1 ? \"EAST\" : dir == 2 ? \"SOUTH\" : dir == 3 ? \"WEST\" : \"NONSENSE\";\n }", "private static String getXadlDirection(Direction direction) {\n\t\tString strDirection = null;\n\t\tswitch (direction) {\n\t\tcase IN:\n\t\t\tstrDirection = \"in\";\n\t\t\tbreak;\n\t\tcase OUT_MULTI:\n\t\tcase OUT_SINGLE:\n\t\t\tstrDirection = \"out\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tstrDirection = \"none\";\n\n\t\t}\n\n\t\treturn strDirection;\n\t}", "public static String toString(int dir) {\n switch(dir)\n {\n case LEFT_TO_RIGHT :\n return \"Left-to-Right\";\n case RIGHT_TO_LEFT :\n return \"Right-to-Left\";\n case EUROPEAN_NUMBER :\n return \"European Number\";\n case EUROPEAN_NUMBER_SEPARATOR :\n return \"European Number Separator\";\n case EUROPEAN_NUMBER_TERMINATOR :\n return \"European Number Terminator\";\n case ARABIC_NUMBER :\n return \"Arabic Number\";\n case COMMON_NUMBER_SEPARATOR :\n return \"Common Number Separator\";\n case BLOCK_SEPARATOR :\n return \"Paragraph Separator\";\n case SEGMENT_SEPARATOR :\n return \"Segment Separator\";\n case WHITE_SPACE_NEUTRAL :\n return \"Whitespace\";\n case OTHER_NEUTRAL :\n return \"Other Neutrals\";\n case LEFT_TO_RIGHT_EMBEDDING :\n return \"Left-to-Right Embedding\";\n case LEFT_TO_RIGHT_OVERRIDE :\n return \"Left-to-Right Override\";\n case RIGHT_TO_LEFT_ARABIC :\n return \"Right-to-Left Arabic\";\n case RIGHT_TO_LEFT_EMBEDDING :\n return \"Right-to-Left Embedding\";\n case RIGHT_TO_LEFT_OVERRIDE :\n return \"Right-to-Left Override\";\n case POP_DIRECTIONAL_FORMAT :\n return \"Pop Directional Format\";\n case DIR_NON_SPACING_MARK :\n return \"Non-Spacing Mark\";\n case BOUNDARY_NEUTRAL :\n return \"Boundary Neutral\";\n }\n return \"Unassigned\";\n }", "void reverseDirection();", "public String getDirection() {\n\t\treturn this.direction;\n\t}", "public void direction(int dirX, int dirY) {\r\n if (dirX == 1 && dirY == 0) {\r\n this.direction = \"HORI\";\r\n }\r\n else if (dirX == 1 && dirY == -1) {\r\n this.direction = \"RISE\";\r\n }\r\n else if (dirX == 0 && dirY == 1) {\r\n this.direction = \"VERTI\";\r\n }\r\n else {\r\n this.direction = \"FALL\";\r\n }\r\n }", "public void setDirection(String direction) {\r\n this.direction = direction;\r\n }", "public static String directionToString(int aDirection)\n\t{\n\t\tswitch (aDirection)\n\t\t{\n\t\t\tcase NORTH: return \"north\";\n\t\t\tcase NORTHEAST: return \"northeast\";\n\t\t\tcase EAST: return \"east\";\n\t\t\tcase SOUTHEAST: return \"southeast\";\n\t\t\tcase SOUTH: return \"south\";\n\t\t\tcase SOUTHWEST: return \"southwest\";\n\t\t\tcase WEST: return \"west\";\n\t\t\tcase NORTHWEST: return \"northwest\";\n\t\t}\n\t\t\n\t\tthrow new IllegalArgumentException(\"no such direction\");\n\t}", "public void setDirection(String direction) {\n this.direction = direction;\n }", "protected void changeDirection(Direction newDir)\n {\n // Change direction.\n myDir = newDir;\n }", "@JsonSetter(\"direction\")\n public void setDirection (String value) { \n this.direction = value;\n }", "public void reverseDirection() {\n\t\tdirection *= -1;\n\t\ty += 10;\n\t}", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn this.getIndentation() + \"(turn \" + this.getDirection().toString() + \")\";\r\n\t}", "public void setDirectionname(java.lang.String newDirectionname) {\n\tdirectionname = newDirectionname;\n}", "public void setDirection(String nDirection) {\r\n\t\tthis.direction = nDirection;\r\n\t}", "@Override\r\n public String toFile() {\r\n String toReturn = \"straight,\";\r\n toReturn += xCoord + \",\" + yCoord + \",\" + currentDirection;\r\n toReturn += \"\\n\";\r\n return toReturn;\r\n }", "public java.lang.String getDirectionname() {\n\treturn directionname;\n}", "public String toString() {\r\n\t\treturn \"Ogirin=\"+this.getOrigin().toString()+\", Direction=\"+this.getDirection().toString();\r\n\t}", "public void changeDirection()\n {\n if(goLeft){\n goLeft = false;\n }else{\n goLeft = true;\n }\n }", "public java.lang.String getDirection1() {\r\n return direction1;\r\n }", "public char getDirection(){\n\t\treturn direction;\n\t}", "public final String getTextDirectionAttribute() {\n return getAttributeValue(\"dir\");\n }", "public abstract void setDirection(int dir);", "TextDirection textDirection();", "@JsonGetter(\"direction\")\r\n public String getDirection() {\r\n return direction;\r\n }", "public String toString()\n {\n // If the direction is one of the compass points for which we have\n // a name, provide it; otherwise report in degrees. \n int regionWidth = FULL_CIRCLE / dirNames.length;\n if (dirInDegrees % regionWidth == 0)\n return dirNames[dirInDegrees / regionWidth];\n else\n return dirInDegrees + \" degrees\";\n }", "private void convertSetWindDir() {\n if (windDegTmp != null) {\n double windDbl = new Double(windDegTmp);\n setWindDir(headingToString(windDbl)); // convert wind degree to cardinal direction\n }\n }", "private String getUserDirection() {\n System.out.println(\"Which direction do you want to go?\\n>>>\");\n String direction = sc.nextLine().toLowerCase();\n return direction;\n }", "public void setDirection(com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.TextDirectionEnum direction) {\r\n this.direction = direction;\r\n }", "@Override\n\tpublic String getDirection(List<String> path) {\n\n\t\tString nextMove = path.get(path.size() - 1);\n\t\tif (nextMove.equals(\"TOP\")) {\n\t\t\treturn \"DOWN\";\n\t\t} else if (nextMove.equals(\"DOWN\")) {\n\t\t\treturn \"TOP\";\n\t\t} else if (nextMove.equals(\"LEFT\")) {\n\t\t\treturn \"RIGHT\";\n\t\t} else if (nextMove.equals(\"RIGHT\")) {\n\t\t\treturn \"LEFT\";\n\t\t}\n\t\treturn \"\";\n\t}", "@JsonGetter(\"direction\")\n public String getDirection ( ) { \n return this.direction;\n }", "public TextDirection getDir() {\n return dir;\n }", "private String getPossibleDirections() {\n\t\t\n\t\tString directionsToReturn=\"\";\n\t\t\n\t\tif(entity.getFrontCell() != null) {\n\t\t\t\n\t\tHashSet<E_Direction> possibleDirections = entity.getFrontCell().getPossibleDirections();\n\t\tint size=possibleDirections.size();\n\t\t\n\t\tE_Direction[] directions = new E_Direction[size];\n\t\tdirections = possibleDirections.toArray(directions);\n\t\t\n\t\tif(size > 1) directionsToReturn = directions[0].toString()+\",\"+directions[1].toString(); \n\t\n\t\telse\n directionsToReturn = directions[0].toString();\n\t\n\t\t}\n\t\t\n\t\t\n\t\treturn directionsToReturn; // the directons text to string\n\t\t\n\t}", "public com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.TextDirectionEnum getDirection() {\r\n return direction;\r\n }", "private Direction(String s){\n\t\tname = s;\n\t}", "public void setDirection(int value) {\n this.direction = value;\n }", "public void setDirection(int dir)\r\n\t{\r\n\t\tdirection = dir;\r\n\t}", "public java.lang.String getDirection2() {\r\n return direction2;\r\n }", "@Override\n public void setDirection(Direction direction) {\n\n }", "@Override\n\tpublic String calculateRightTurn() {\n\t\t// check the current side with the side of the retrieved value from\n\t\t// properties file.\n\t\tif (side.substring(1).equals(properties.getSideFromProperties().get(1))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(2);\n\n\t\t} else if (side.substring(1).equals(properties.getSideFromProperties().get(2))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(3);\n\n\t\t} else if (side.substring(1).equals(properties.getSideFromProperties().get(3))) {\n\t\t\tthis.side = properties.getSideFromProperties().get(4);\n\n\t\t} else {\n\t\t\tthis.side = properties.getSideFromProperties().get(1);\n\t\t}\n\t\t// return the new side to update the image shown with the starting\n\t\t// letter of the room and the side to be the same as the name of the\n\t\t// image.\n\t\treturn this.room.substring(0, 1).toLowerCase() + this.side;\n\t}", "@JsonSetter(\"direction\")\r\n public void setDirection(String direction) {\r\n this.direction = direction;\r\n }", "public void setDirection(byte value) \n\t{\n\t\tdirection = value;\n\t}", "public IDnaStrand reverse();", "public String move(String direction) {\r\n currentRoom = player.getCurrentRoom();\r\n String res;\r\n int moveTo = 0;\r\n while (!currentRoom.getMonsters().isEmpty()) {\r\n res = \"In your attempt to escape, a \" + currentRoom.getMonster(0).getName() + \" blocks your path\" + System.getProperty(\"line.separator\");\r\n return res;\r\n }\r\n switch (direction) {\r\n case \"north\":\r\n moveTo = currentRoom.getNorth();\r\n break;\r\n case \"south\":\r\n moveTo = currentRoom.getSouth();\r\n break;\r\n case \"east\":\r\n moveTo = currentRoom.getEast();\r\n break;\r\n case \"west\":\r\n moveTo = currentRoom.getWest();\r\n break;\r\n }\r\n if (moveTo > 0) {\r\n for (int i = 0; i < dungeon.size(); i++) {\r\n if (dungeon.getRoom(i).getId() == moveTo) {\r\n player.setCurrentRoom(dungeon.getRoom(i));\r\n res = System.lineSeparator();\r\n res += \"You go towards \" + direction + System.getProperty(\"line.separator\");\r\n res += System.lineSeparator();\r\n res += \"You enter \" + getCurrentRoom().getTitle() + System.getProperty(\"line.separator\");\r\n res += getCurrentRoom().getDescription() + System.getProperty(\"line.separator\");\r\n res += player.getCurrentRoom().getAvailableDirections();\r\n return res;\r\n }\r\n }\r\n\r\n }\r\n res = \"You walk into the wall.. AND IT HURTS!\" + System.getProperty(\"line.separator\");\r\n return res;\r\n }", "public void setDirection1(java.lang.String direction1) {\r\n this.direction1 = direction1;\r\n }", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "public void setDirection(int value) {\n this.direction = value;\n }", "public String toString() {\n\t\tif (justnow.equals(\"east\")){\n\t\t\treturn \">\";\n\t\t}\n\t\tif (justnow.equals(\"south\")){\n\t\t\treturn \"v\";\n\t\t}\n\t\tif (justnow.equals(\"west\")){\n\t\t\treturn \"<\";\n\t\t}\n\t\tif (justnow.equals(\"north\")){\n\t\t\treturn \"^\";\n\t\t}\n\t\telse{\n\t\t\treturn \">\";\n\t\t}\n\t}", "@Override\r\n\tpublic String toString(\r\n\t) {\r\n\t\treturn( \"Ray: \" + mDirection + \", Origin: \" + mOrigin );\r\n\t}", "public int getDirection() {\n return direction;\n }", "public int getDirection() {\n return direction;\n }", "public String toString()\n {\n return id() + location().toString() + direction().toString();\n }", "public void turnRight() { turn(\"RIGHT\"); }", "private void turnToDesiredDirection() {\n\n\t\tdouble dir = sens.getDirection();\n\n\t\tif (dir < desiredDirection) {\n\t\t\tif (Math.abs(dir - desiredDirection) < 180) {\n\t\t\t\tdir += TURNSPEED;\n\t\t\t} else {\n\t\t\t\tdir -= TURNSPEED;\n\t\t\t}\n\t\t} else {\n\t\t\tif (Math.abs(dir - desiredDirection) < 180) {\n\t\t\t\tdir -= TURNSPEED;\n\t\t\t} else {\n\t\t\t\tdir += TURNSPEED;\n\t\t\t}\n\t\t}\n\t\t\n\t\tsens.setDirection(dir);\n\t\t\n\t}", "int getDirection();", "public void switchDirection(String body) {\r\n pcs.firePropertyChange(Constants.PACMAN, null, new SwitchDirectionCmd(body));\r\n }", "public String toString() {\n String lst = \" Liste des directions\";\n if (sisters != null) {\n for (int i = 0; i < sisters.length; i++) {\n lst = lst + \" \" + sisters[i].getDirection();\n }\n }\n return lst;\n }", "public void setDirection() {\n frontLeft.setDirection(DcMotorSimple.Direction.REVERSE);\n backLeft.setDirection(DcMotorSimple.Direction.REVERSE);\n frontRight.setDirection(DcMotorSimple.Direction.FORWARD);\n backRight.setDirection(DcMotorSimple.Direction.FORWARD);\n }", "public int getDirection() {\n return direction;\n }", "@Override\n public String toString(){\n return super.toString().substring(0,1) + super.toString().substring(1).toLowerCase();\n }", "public int getDirection();", "public void changeDirection(){\n\t\tthis.toRight ^= true;\n\t\t\n\t\tif(this.toRight)\n\t\t\tthis.nextElem = (this.currElem + 1) % players.size();\n\t\telse\n\t\t\tthis.nextElem = (this.currElem - 1 + players.size()) % players.size();\n\t}", "public Direction direction()\n {\n return myDir;\n }", "public void setDirection(char dir) throws IllegalArgumentException {\n\t\tif (dir == 'N' || dir == 'n'){\n\t\t\tthis.direction = 'n';\n\t\t} else if (dir == 'E' || dir == 'e'){\n\t\t\tthis.direction = 'e';\n\t\t} else if (dir == 'S' || dir == 's'){\n\t\t\tthis.direction = 's';\n\t\t} else if (dir == 'W' || dir == 'w'){\n\t\t\tthis.direction = 'w';\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t}", "private void fixDirections() {\n\t\tdouble sensDir = sens.getDirection();\n\t\tif (sensDir > 360) {\n\t\t\tsensDir -= 360;\n\t\t} // Rotate back around to keep it tidy\n\t\telse if (sensDir < 1) {\n\t\t\tsensDir += 360;\n\t\t}\n\t\tsens.setDirection(sensDir);\n\n\t\tif (desiredDirection > 360) {\n\t\t\tdesiredDirection -= 360;\n\t\t} // Rotate back around to keep it tidy\n\t\telse if (desiredDirection < 1) {\n\t\t\tdesiredDirection += 360;\n\t\t}\n\t}", "public int getDirection()\r\n\t{\r\n\t\treturn direction;\r\n\t}", "void setDirections(Directions dir){\n this.dir = dir;\n }", "String toStringBackwards();", "public CS getDirectionCode() { return _directionCode; }", "private void setDirection(int index, String s) {\n _directions.get(index).add(s);\n }", "private void setDirection() {\r\n\t\tif (destinationFloor > initialFloor){\r\n\t\t\tdirection = 1;\r\n\t\t} else {\r\n\t\t\tdirection = -1;\r\n\t\t}\r\n\t}", "public void setDirection(int direction) {\r\n\t\tthis.direction = direction;\r\n\t}", "public Direction getDirection()\n {\n return dir;\n }", "public void move(String direction) {\n \n }", "private String convertToString(boolean isUsed) {\n\t\tif (isUsed)\n\t\t\treturn \"1\";\n\t\treturn \"0\";\n\t}", "public String toString(){\n return \"W \";\n }", "public void print() {\n\t\tNetwork.netPrintln(\"`direction ID: \" + this.ID);\n\t\tNetwork.netPrintln(\"DirType: \" + dir);\n\t}", "public String convert()\r\n\t{\r\n\t\treturn str;\r\n\t}", "public String toString() {\n \tString str = this.root.ToString(0);\n \t//return str.substring(0, str.length() - 1)\n return str.substring(0, str.length() - 1).toLowerCase();\n }", "public static void setDirection(String direction) {\n if (direction.equals(\"up\")) {\n pacManDirection = up;\n } else if (direction.equals(\"down\")) {\n pacManDirection = down;\n } else if (direction.equals(\"left\")) {\n pacManDirection = left;\n } else {\n pacManDirection = right;\n }\n }", "public int getDirection() {\r\n\t\treturn direction;\r\n\t}", "public byte getDirection() {\n\t\treturn direction;\n\t}", "public byte getDirection() {\n return this.direction;\n }", "public byte getDirection() {\n return this.direction;\n }", "@Override\n\t\t\t\t\tpublic String call() throws Exception {\n\t\t\t\t\t\treturn reverser.reverseString(target);\n\t\t\t\t\t}", "public void changerDirection(int d)\n {\n directionInput = d;\n }", "public int getDirection() {\n return direction_;\n }", "public void setDirection(Direction direction) {\n this.direction = direction;\n }", "public void setDirection(Direction direction) {\n this.direction = direction;\n }", "public void setDirection(Direction direction) {\n this.direction = direction;\n }", "EChannelDirection direction();", "public abstract int getDirection();", "private SnakeDirection directionValueToSnakeDirection(int val)\r\n\t{\r\n\t\tif(val == SnakeDirection.RIGHT.getValue())\r\n\t\t\treturn SnakeDirection.RIGHT;\r\n\t\telse if(val == SnakeDirection.UP.getValue())\r\n\t\t\treturn SnakeDirection.UP;\r\n\t\telse if(val == SnakeDirection.DOWN.getValue())\r\n\t\t\treturn SnakeDirection.DOWN;\r\n\t\telse if(val == SnakeDirection.LEFT.getValue())\r\n\t\t\treturn SnakeDirection.LEFT;\r\n\t\treturn SnakeDirection.DOWN; \r\n\t}", "String getToText();", "@Override\n\tpublic String reverse() {\n\t\tint len = theString.length();\n\t\tString s1 = \"\";\n\t\tfor (int i = len - 1; i >= 0; i--) {\n\t\t\ts1 = s1 + theString.charAt(i);\n\t\t}\n\t\t// System.out.println(s1);\n\n\t\treturn s1;\n\t}" ]
[ "0.69078946", "0.68623555", "0.650827", "0.64585423", "0.6444731", "0.6435635", "0.63998234", "0.6359018", "0.6314979", "0.6285273", "0.61554307", "0.61212474", "0.6083687", "0.5998476", "0.598224", "0.59634256", "0.59515613", "0.58900326", "0.586901", "0.5868373", "0.58647215", "0.5849507", "0.5846143", "0.5841121", "0.58356816", "0.5818775", "0.5815265", "0.5799814", "0.57833785", "0.57579076", "0.575202", "0.57346284", "0.5727351", "0.57200307", "0.5719541", "0.57038814", "0.5675192", "0.56569636", "0.56533885", "0.5599202", "0.55954224", "0.55918616", "0.5590975", "0.5585801", "0.55829334", "0.55796677", "0.55682075", "0.5567225", "0.55464405", "0.55446476", "0.55363625", "0.5513728", "0.54976153", "0.549492", "0.5482936", "0.5473271", "0.5473271", "0.5470618", "0.54584116", "0.5455218", "0.54549646", "0.544881", "0.54446435", "0.54384106", "0.5426796", "0.5421298", "0.5420936", "0.5417456", "0.54157233", "0.5407562", "0.53979707", "0.53937703", "0.5392981", "0.5388006", "0.5381413", "0.53725415", "0.5370502", "0.5368729", "0.5363263", "0.5358809", "0.53499097", "0.5343343", "0.5343107", "0.5337238", "0.5335804", "0.53357905", "0.5328125", "0.5320828", "0.5318319", "0.5318319", "0.5316218", "0.53142595", "0.53079206", "0.53066874", "0.53066874", "0.53066874", "0.5303509", "0.5298794", "0.52958626", "0.52920496", "0.52833223" ]
0.0
-1
Method that receive a direction like string and return a object Direction
public static Direction fromString(String direction){ if (direction != null){ for (Direction d : Direction.values()){ if (d.toString().equalsIgnoreCase(direction)) return d; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Direction(String str)\n {\n int regionWidth = FULL_CIRCLE / dirNames.length;\n \n\t for ( int k = 0; k < dirNames.length; k++ )\n\t {\n if ( str.equalsIgnoreCase(dirNames[k]) )\n {\n dirInDegrees = k * regionWidth;\n return;\n }\n }\n throw new IllegalArgumentException(\"Illegal direction specified: \\\"\" +\n str + \"\\\"\");\n }", "String getDirection();", "public static ConnectionDirection fromString(String s) {\n if (s != null) {\n for (ConnectionDirection cd : ConnectionDirection.values()) {\n if (s.equals(cd.text)) {\n return cd;\n }\n }\n }\n return ConnectionDirection.INVALID;\n }", "private DominoInKingdom.DirectionKind getDirection(String dir) {\n switch (dir) {\n case \"up\":\n return DominoInKingdom.DirectionKind.Up;\n case \"down\":\n return DominoInKingdom.DirectionKind.Down;\n case \"left\":\n return DominoInKingdom.DirectionKind.Left;\n case \"right\":\n return DominoInKingdom.DirectionKind.Right;\n default:\n throw new java.lang.IllegalArgumentException(\"Invalid direction: \" + dir);\n }\n }", "private Direction(String s){\n\t\tname = s;\n\t}", "public Direction(Scanner s) {\n\n\t\tString[] tokens = CleanLineScanner.getTokens(s);\n\t\t\t\n\t\t//One of required fields not provided.\n\t\tif (tokens.length < 5) { //Skip malformed declarations.\n\t\t\tthis.ID = -1;\n\t\t\tthis.from = null;\n\t\t\tthis.to = null;\n\t\t\tthis.dir = DirType.getEnum(\"NONE\");\n\t\t\tthis.lockPattern = 0;\n\t\t\tthis.locked = false;\n\t\t\treturn;\n\t\t}\n\n\t\tthis.ID = Integer.parseInt(tokens[0]);\n\t\tthis.from = Place.getPlaceByID(Math.abs(Integer.parseInt(tokens[1])));\n\t\tthis.dir = DirType.getEnum(tokens[2].trim());\n\t\t\n\t\tint toID = Integer.parseInt(tokens[3]);\n\t\tif (toID < 0) {\n\t\t\tlocked = true;\n\t\t}\n\t\tthis.to = Place.getPlaceByID(Math.abs(toID));\n\t\tthis.lockPattern = Integer.parseInt(tokens[4]);\n\n\t\t//Add direction object to \"from\" room.\n\t\tfrom.addDirection(this);\n\n\t}", "com.microsoft.schemas.crm._2011.contracts.SearchDirection.Enum getDirection();", "public static Direction getValue(String val) {\n for (Direction e : Direction.values()) {\n if (e.direction.equals(val)) {\n return e;\n }\n }\n return null;// not found\n }", "private static DirType getEnum(String name) {\n\t\t\t//Find provided string in directions map.\n\t\t\tDirType direction = directions.get(name.toUpperCase());\n\t\t\tif (direction == null) {\n\t\t\t\tdirection = DirType.NONE;\n\t\t\t}\n\t\t\treturn direction;\n\t\t}", "public static Direction findByName(String name) {\n Direction result = null;\n for (Direction direction : values()) {\n if (direction.name().equalsIgnoreCase(name)) {\n result = direction;\n break;\n }\n }\n return result;\n }", "Direction(int ID, Place from, Place to, String dir) {\n\t\tthis.ID = ID;\n\t\tthis.from = from;\n\t\tthis.to = to;\n\t\tthis.dir = DirType.valueOf(dir);\t// Use valueOf() to get the enum of it\n\n\t\tlocked = false;\t// All new directions are by default unlocked\n\t}", "private Direction directionFrom(KeyType type) {\n switch (type) {\n case ArrowUp:\n return Direction.UP;\n case ArrowDown:\n return Direction.DOWN;\n case ArrowRight:\n return Direction.RIGHT;\n case ArrowLeft:\n return Direction.LEFT;\n default:\n return null;\n }\n }", "public DirectionResponse direction(DirectionRequest request) {\n InternalRequest internalRequest = createRequest(request, HttpMethodName.POST, DIRECTION_URL_PATH);\n log.info(\"direction request: {}\", JsonUtils.toJsonString(internalRequest));\n return this.invokeHttpClient(internalRequest, DirectionResponse.class);\n }", "com.microsoft.schemas.crm._2011.contracts.SearchDirection xgetDirection();", "public String getDirection() {\r\n return direction;\r\n }", "public String getDirection() {\n return direction;\n }", "public Direction getDirection(float x1, float y1, float x2, float y2){\n double angle = getAngle(x1, y1, x2, y2);\n return Direction.fromAngle(angle);\n }", "Enumerator getDirection();", "public String getDirection() {\n return this.direction;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public typekey.DirectionOfTravelPEL getDirectionOfTravel();", "EChannelDirection direction();", "public DIRECTION getDirection(int index) {\n if (gameData.charAt(index) == 'L') {\n return DIRECTION.LEFT;\n } else if (gameData.charAt(index) == 'R') {\n return DIRECTION.RIGHT;\n } else {\n System.out.println(\"GameData.getDirection: ERROR GETTING DIRECTION!!!!\");\n }\n return null;\n }", "public abstract Vector3 directionFrom(Point3 point);", "Optional<Direction> getDirection();", "int getDirection();", "public interface Direction {\n /**\n * @param pos The position to apply the function to\n * @return A new position that was transformed from the passed in position\n */\n public Position apply(Position pos);\n \n /**\n * @return The opposite direction to the direction instance it was called on\n */\n public Direction getOpposite();\n}", "public int getDirection();", "public static Direction selectDirection() {\n return Direction.values()[randomDirection()];\n }", "public static Direction getDirection(Point start, Point end)\n \t{\n \t\tif( start.x - end.x > 0) //left\n \t\t{\n \t\t\tif (start.y - end.y < 0) //up\n \t\t\t\treturn Board.Direction.topleft;\n \t\t\telse if (start.y - end.y > 0) //down\n \t\t\t\treturn Board.Direction.botleft;\n \t\t\telse //same .y\n \t\t\t\treturn Board.Direction.left;\n \t\t}\n \t\telse if ( start.x - end.x < 0) //right\n \t\t{\n \t\t\tif (start.y - end.y < 0) //up\n \t\t\t\treturn Board.Direction.topright;\n \t\t\telse if (start.y - end.y > 0) //down\n \t\t\t\treturn Board.Direction.botright;\n \t\t\telse //same .y\n \t\t\t\treturn Board.Direction.right;\n \t\t}\n \t\telse // no x movement (only up or down)\n \t\t{\n \t\t\tif(start.y - end.y < 0)\n \t\t\t\treturn Board.Direction.up;\n \t\t\tif(start.y - end.y > 0)\n \t\t\t\treturn Board.Direction.down;\n \t\t\telse\n \t\t\t\treturn Board.Direction.none; //no movement\n \t\t}\n \t}", "Direction (String inputName)\n\t\t{\n\t\t\tthis.name = inputName;\n\t\t}", "public static Direction randomDirection()\n {\n Random randNumGen = RandNumGenerator.getInstance();\n return new Direction(randNumGen.nextInt(FULL_CIRCLE));\n }", "public String getDirection() {\n\t\treturn this.direction;\n\t}", "public abstract int getDirection();", "public Direction direction()\n {\n return myDir;\n }", "public void setDirection(String direction) {\r\n this.direction = direction;\r\n }", "public Player setDirection(String direction) { //<>// //<>//\n switch (direction) {\n case (\"UP\"):\n this.direction = UPKEY;\n break;\n case (\"DOWN\"):\n this.direction = DOWNKEY;\n break;\n case (\"LEFT\"):\n this.direction = LEFTKEY;\n break;\n case (\"RIGHT\"): //<>//\n this.direction = RIGHTKEY; //<>//\n break;\n }\n //<>//\n return this;\n }", "public Orientation parseOrientation(String str) {\n\t\tif (str.equalsIgnoreCase(\"N\")) {\n\t\t\treturn Orientation.NORTH;\n\t\t} else if (str.equalsIgnoreCase(\"E\")) {\n\t\t\treturn Orientation.EAST;\n\t\t} else if (str.equalsIgnoreCase(\"S\")) {\n\t\t\treturn Orientation.SOUTH;\n\t\t} else if (str.equalsIgnoreCase(\"W\")) {\n\t\t\treturn Orientation.WEST;\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"The value \\\"\" + str + \"\\\" is not a valid direction.\");\n\t\t}\n\t}", "public void setDirection(String direction) {\n this.direction = direction;\n }", "private static String getXadlDirection(Direction direction) {\n\t\tString strDirection = null;\n\t\tswitch (direction) {\n\t\tcase IN:\n\t\t\tstrDirection = \"in\";\n\t\t\tbreak;\n\t\tcase OUT_MULTI:\n\t\tcase OUT_SINGLE:\n\t\t\tstrDirection = \"out\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tstrDirection = \"none\";\n\n\t\t}\n\n\t\treturn strDirection;\n\t}", "public DirectionEnum getDirection() {\n return direction;\n }", "public com.cognos.developer.schemas.raas.Returns__by__Order__Method___x002d__Prompted__Chart.TextDirectionEnum getDirection() {\r\n return direction;\r\n }", "default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(), getDirY(), getDirZ());\r\n }", "public Direction getDirection()\n {\n return dir;\n }", "@Override\n\tpublic String getDirection(List<String> path) {\n\n\t\tString nextMove = path.get(path.size() - 1);\n\t\tif (nextMove.equals(\"TOP\")) {\n\t\t\treturn \"DOWN\";\n\t\t} else if (nextMove.equals(\"DOWN\")) {\n\t\t\treturn \"TOP\";\n\t\t} else if (nextMove.equals(\"LEFT\")) {\n\t\t\treturn \"RIGHT\";\n\t\t} else if (nextMove.equals(\"RIGHT\")) {\n\t\t\treturn \"LEFT\";\n\t\t}\n\t\treturn \"\";\n\t}", "public static Offset getOffset(String direction) {\n switch (direction) {\n case Direction.NORTH:\n return new Offset(0, -100);\n case Direction.EAST:\n return new Offset(100, 0);\n case Direction.SOUTH:\n return new Offset(0, 100);\n case Direction.WEST:\n return new Offset(-100, 0);\n default:\n return null;\n }\n }", "public Direction()\n {\n dirInDegrees = 0; // default to North\n }", "private static Direction case2Dir(CasePourDijkstra c1,CasePourDijkstra c2){\n\t\tif (c1.l-c2.l==1){\n\t\t\treturn Direction.NORD;\n\t\t}\n\t\tif (c1.l-c2.l==-1){\n\t\t\treturn Direction.SUD;\n\t\t}\n\t\tif (c1.c-c2.c==1){\n\t\t\treturn Direction.OUEST;\n\t\t}\n\t\tif (c1.c-c2.c==-1){\n\t\t\treturn Direction.EST;\n\t\t}\n\t\t\n\t\treturn null;//only accessible in error case\n\n\t}", "public static Direction fromByte(byte b) {\n\t\tswitch (b) {\n\t\t\tcase 1:\n\t\t\t\treturn LEFT;\n\t\t\tcase 2:\n\t\t\t\treturn UP;\n\t\t\tcase 3:\n\t\t\t\treturn RIGHT;\n\t\t\tcase 4:\n\t\t\t\treturn DOWN;\n\t\t}\n\t\treturn null;\n\t}", "public Direction directionVers(Lutin lutin) {\n return coord.directionsVers(lutin.coord).get(0);\n\n }", "public String switchDirection(MapTile[][] scanMapTiles, String direction) {\n\tswitch (direction) {\n\tcase \"E\":\n\t\treturn south;\n\tcase \"S\":\n\t\treturn west;\n\tcase \"N\":\n\t\treturn east;\n\tcase \"W\":\n\t\treturn north;\n\tdefault:\n\t\treturn null;\n\n\t}\n\n}", "private String getUserDirection() {\n System.out.println(\"Which direction do you want to go?\\n>>>\");\n String direction = sc.nextLine().toLowerCase();\n return direction;\n }", "public Direction getCorrectRobotDirection();", "public static Predicate<Loan> getDirectionPredicate(Direction direction) {\n switch (direction) {\n case IN:\n return loan -> loan.getDirection() == Direction.IN;\n case OUT:\n return loan -> loan.getDirection() == Direction.OUT;\n default:\n throw new EnumConstantNotPresentException(\n Direction.class, \"Direction filter not found for given direction.\");\n }\n }", "static public TmMove from(String represention) throws InvalidMovementRepresentationException {\n\t\tswitch (represention) {\n\t\tcase \"S\":\n\t\t\treturn TmMove.STOP;\n\t\tcase \"L\":\n\t\t\treturn TmMove.LEFT;\n\t\tcase \"R\":\n\t\t\treturn TmMove.RIGHT;\n\n\t\tdefault:\n\t\t\tthrow new InvalidMovementRepresentationException(represention);\n\t\t}\n\t}", "public Call<String> getDirection(LatLng mOriginLatLng, LatLng mDestinationLatLng){\n String base= \"https://maps.googleapis.com\";\n //Esta parte ya es la URL completa tenemos que modificarle varios aspectos como el Origen, Destino y La Api key\n String query= \"/maps/api/directions/json?mode=driving&transit_routing_preferences=less_driving&\"\n + \"origin=\" + mOriginLatLng.latitude + \",\" + mOriginLatLng.longitude + \"&\"\n + \"destination=\" + mDestinationLatLng.latitude + \",\" + mDestinationLatLng.longitude + \"&\"\n + \"key=\" + context.getResources().getString(R.string.google_maps_api);\n //Analizar bien como Funciona esta linea ya que no estoy completamente seguro solo se que al final retorna Call<String>\n //Con los datos que mandamos a llamar del url\n return RetrofitClient.getClient(base).create(IGoogleApi.class).getDirection(base + query);\n }", "public Location getAdjacentLocation(char direction)\n\t{\n\t\tswitch (direction) {\n\t\t\tcase 'l': // location to left of current\n\t\t\t\treturn new Location(x - 1, y, Block.EMPTY);\n\t\t\tcase 'r': // location to the right of current\n\t\t\t\treturn new Location(x + 1, y, Block.EMPTY);\n\t\t\tcase 'u': // location above current\n\t\t\t\treturn new Location(x, y - 1, Block.EMPTY);\n\t\t\tcase 'd': // location below current, only option left\n\t\t\tdefault:\n\t\t\t\treturn new Location(x, y + 1, Block.EMPTY);\n\t\t}\n\t}", "public void setDirection(String nDirection) {\r\n\t\tthis.direction = nDirection;\r\n\t}", "public float getDirection();", "public final flipsParser.direction_return direction() throws RecognitionException {\n flipsParser.direction_return retval = new flipsParser.direction_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token To390=null;\n Token To393=null;\n flipsParser.fixedDirection_return fixedDirection388 = null;\n\n flipsParser.leftRightDirection_return leftRightDirection389 = null;\n\n flipsParser.fixedDirection_return fixedDirection391 = null;\n\n flipsParser.clockDirection_return clockDirection392 = null;\n\n flipsParser.fixedDirection_return fixedDirection394 = null;\n\n flipsParser.relativeDirection_return relativeDirection395 = null;\n\n\n CommonTree To390_tree=null;\n CommonTree To393_tree=null;\n RewriteRuleTokenStream stream_To=new RewriteRuleTokenStream(adaptor,\"token To\");\n RewriteRuleSubtreeStream stream_fixedDirection=new RewriteRuleSubtreeStream(adaptor,\"rule fixedDirection\");\n RewriteRuleSubtreeStream stream_relativeDirection=new RewriteRuleSubtreeStream(adaptor,\"rule relativeDirection\");\n RewriteRuleSubtreeStream stream_leftRightDirection=new RewriteRuleSubtreeStream(adaptor,\"rule leftRightDirection\");\n RewriteRuleSubtreeStream stream_clockDirection=new RewriteRuleSubtreeStream(adaptor,\"rule clockDirection\");\n try {\n // flips.g:576:2: ( fixedDirection -> ^( DIRECTION FIXED fixedDirection ) | leftRightDirection To fixedDirection -> ^( DIRECTION FIXED ^( TURN leftRightDirection ) fixedDirection ) | clockDirection To fixedDirection -> ^( DIRECTION FIXED ^( TURN clockDirection ) fixedDirection ) | relativeDirection -> ^( DIRECTION RELATIVE relativeDirection ) )\n int alt146=4;\n alt146 = dfa146.predict(input);\n switch (alt146) {\n case 1 :\n // flips.g:576:4: fixedDirection\n {\n pushFollow(FOLLOW_fixedDirection_in_direction3326);\n fixedDirection388=fixedDirection();\n\n state._fsp--;\n\n stream_fixedDirection.add(fixedDirection388.getTree());\n\n\n // AST REWRITE\n // elements: fixedDirection\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 577:2: -> ^( DIRECTION FIXED fixedDirection )\n {\n // flips.g:577:5: ^( DIRECTION FIXED fixedDirection )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(DIRECTION, \"DIRECTION\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(FIXED, \"FIXED\"));\n adaptor.addChild(root_1, stream_fixedDirection.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:578:4: leftRightDirection To fixedDirection\n {\n pushFollow(FOLLOW_leftRightDirection_in_direction3342);\n leftRightDirection389=leftRightDirection();\n\n state._fsp--;\n\n stream_leftRightDirection.add(leftRightDirection389.getTree());\n To390=(Token)match(input,To,FOLLOW_To_in_direction3344); \n stream_To.add(To390);\n\n pushFollow(FOLLOW_fixedDirection_in_direction3346);\n fixedDirection391=fixedDirection();\n\n state._fsp--;\n\n stream_fixedDirection.add(fixedDirection391.getTree());\n\n\n // AST REWRITE\n // elements: fixedDirection, leftRightDirection\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 579:2: -> ^( DIRECTION FIXED ^( TURN leftRightDirection ) fixedDirection )\n {\n // flips.g:579:5: ^( DIRECTION FIXED ^( TURN leftRightDirection ) fixedDirection )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(DIRECTION, \"DIRECTION\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(FIXED, \"FIXED\"));\n // flips.g:579:23: ^( TURN leftRightDirection )\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TURN, \"TURN\"), root_2);\n\n adaptor.addChild(root_2, stream_leftRightDirection.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n adaptor.addChild(root_1, stream_fixedDirection.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 3 :\n // flips.g:580:4: clockDirection To fixedDirection\n {\n pushFollow(FOLLOW_clockDirection_in_direction3368);\n clockDirection392=clockDirection();\n\n state._fsp--;\n\n stream_clockDirection.add(clockDirection392.getTree());\n To393=(Token)match(input,To,FOLLOW_To_in_direction3370); \n stream_To.add(To393);\n\n pushFollow(FOLLOW_fixedDirection_in_direction3372);\n fixedDirection394=fixedDirection();\n\n state._fsp--;\n\n stream_fixedDirection.add(fixedDirection394.getTree());\n\n\n // AST REWRITE\n // elements: fixedDirection, clockDirection\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 581:2: -> ^( DIRECTION FIXED ^( TURN clockDirection ) fixedDirection )\n {\n // flips.g:581:5: ^( DIRECTION FIXED ^( TURN clockDirection ) fixedDirection )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(DIRECTION, \"DIRECTION\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(FIXED, \"FIXED\"));\n // flips.g:581:23: ^( TURN clockDirection )\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(TURN, \"TURN\"), root_2);\n\n adaptor.addChild(root_2, stream_clockDirection.nextTree());\n\n adaptor.addChild(root_1, root_2);\n }\n adaptor.addChild(root_1, stream_fixedDirection.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 4 :\n // flips.g:582:4: relativeDirection\n {\n pushFollow(FOLLOW_relativeDirection_in_direction3394);\n relativeDirection395=relativeDirection();\n\n state._fsp--;\n\n stream_relativeDirection.add(relativeDirection395.getTree());\n\n\n // AST REWRITE\n // elements: relativeDirection\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 583:2: -> ^( DIRECTION RELATIVE relativeDirection )\n {\n // flips.g:583:5: ^( DIRECTION RELATIVE relativeDirection )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(DIRECTION, \"DIRECTION\"), root_1);\n\n adaptor.addChild(root_1, (CommonTree)adaptor.create(RELATIVE, \"RELATIVE\"));\n adaptor.addChild(root_1, stream_relativeDirection.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "List<Direction> getValidDirectionsForMovement();", "public Direction getDirection() {\n return direction;\n }", "public Direction getDirection() {\n return direction;\n }", "public Direction getDirection() {\n return direction;\n }", "public void move(String direction);", "private void assignDirection(char d) throws InputMismatchException{\n\t\tif(d == NL) {\n\t\t\tdir = NL;\n\t\t}else if(d == NR) {\n\t\t\tdir = NR;\n\t\t}else if(d == SL) {\n\t\t\tdir = SL;\n\t\t}else if(d == SR){\n\t\t\tdir = SR;\n\t\t}else {\n\t\t\tthrow new InputMismatchException(\"There is no such filling direction.\");\n\t\t}\n\t}", "public static Direction fromAngle(double angle) {\n if (inRange(angle, 45, 135)) {\n return Direction.up;\n } else if (inRange(angle, 0, 45) || inRange(angle, 315, 360)) {\n return Direction.right;\n } else if (inRange(angle, 225, 315)) {\n return Direction.down;\n } else {\n return Direction.left;\n }\n\n }", "public Vector getDirection(){\n\t\treturn new Vector(_direction);\n\t}", "public void setDirection1(java.lang.String direction1) {\r\n this.direction1 = direction1;\r\n }", "public char getDirection(){\n\t\treturn direction;\n\t}", "public static String stringFromDirection(int dir) {\n return dir == 0 ? \"NORTH\" : dir == 1 ? \"EAST\" : dir == 2 ? \"SOUTH\" : dir == 3 ? \"WEST\" : \"NONSENSE\";\n }", "private Direction readDirectionFromKeyboard(Scanner scanner) {\n\t\tSystem.out.print(\"Qual direcao? (8,4,6,2)\");\n\t\t//le direcao como INT\n\t\tint directionInt = scanner.nextInt();\n\t\tswitch (directionInt) {\n\t\tcase 8:\n\t\t\treturn Direction.UP;\n\t\tcase 4:\n\t\t\treturn Direction.LEFT;\n\t\tcase 6:\n\t\t\treturn Direction.RIGHT;\n\t\tcase 2:\n\t\t\treturn Direction.DOWN;\n\t\tdefault:\n\t\t\treturn null;\n\t\t}\n\t}", "public Place followDirection ( String checkDirection)\r\n\t{\t\r\n\t\t for( int i=0; i < directions.size(); i++)\r\n\t\t {\r\n\t\t\t if( directions.get(i).match( checkDirection))\r\n\t\t\t {\r\n\t\t\t\t // If direction matches with direction object's direction, now again check that if the door is unlocked or not. \r\n\t\t\t\t return directions.get(i).follow();\r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t } \r\n\t\t System.out.println (\"There is no direction from this DOOR....OH No, You are stuck at this Current Place:\" + this.name());\r\n\t\t return this;\r\n\t}", "public double getDirectionMove();", "@SuppressWarnings(\"unchecked\")\n\tprivate D getClosestDirection()\n\t{\n\t\tdouble minDistance = Double.MAX_VALUE;\n\t\tIDirection minDir = direction.getClass().getEnumConstants()[0];\n\t\tfor (IDirection dir : direction.getClass().getEnumConstants())\n\t\t{\n\t\t\tdouble temp = calculateNewDistance(dir);\n\t\t\tif (temp < minDistance)\n\t\t\t{\n\t\t\t\tminDir = dir;\n\t\t\t\tminDistance = temp;\n\t\t\t}\n\t\t}\n\t\treturn (D) minDir;\n\t}", "public abstract int getDirection() throws RcsServiceException;", "boolean checkDir(Directions dir);", "private UCharacterDirection()\n {\n }", "@JsonGetter(\"direction\")\r\n public String getDirection() {\r\n return direction;\r\n }", "public static void setDirection(String direction) {\n if (direction.equals(\"up\")) {\n pacManDirection = up;\n } else if (direction.equals(\"down\")) {\n pacManDirection = down;\n } else if (direction.equals(\"left\")) {\n pacManDirection = left;\n } else {\n pacManDirection = right;\n }\n }", "public Direction getMove(){\n\t\tif (diam < 3){\n\t\t\tdiam++;\n\t\t\tjustnow = \"east\";\n\t\t\treturn Direction.EAST;\n\t\t}\n\t\telse if (diam < 6){\n\t\t\tdiam++;\n\t\t\tjustnow = \"south\";\n\t\t\treturn Direction.SOUTH;\n\t\t}\n\t\telse if (diam < 9){\n\t\t\tdiam++;\n\t\t\tjustnow = \"west\";\n\t\t\treturn Direction.WEST;\n\t\t}\n\t\telse if (diam < 12){\n\t\t\tdiam++;\n\t\t\tjustnow = \"north\";\n\t\t\treturn Direction.NORTH;\n\t\t}\n\t\telse {\n\t\t\tdiam = 0;\n\t\t\tdiam++;\n\t\t\tjustnow = \"east\";\n\t\t\treturn Direction.EAST;\n\t\t}\t\n\t}", "public Direction getDirection() {\r\n\t\treturn direction;\r\n\t}", "public void setDirectionOfTravel(typekey.DirectionOfTravelPEL value);", "public Direction reverse()\n {\n return new Direction(dirInDegrees + (FULL_CIRCLE / 2));\n }", "private Direction calcDirection(int rowD, int colD) {\n // Kuninkaan alapuolella\n if (rowD < 0) {\n if (colD < 0) return Direction.SOUTHWEST;\n if (colD > 0) return Direction.SOUTHEAST;\n return Direction.SOUTH;\n }\n // Kuninkaan yläpuolella\n if (rowD > 0) {\n if (colD < 0) return Direction.NORTHWEST;\n if (colD > 0) return Direction.NORTHEAST;\n return Direction.NORTH;\n }\n // Kuninkaan tasossa\n if (colD < 0) return Direction.WEST;\n return Direction.EAST;\n }", "public com.hps.july.persistence.Direction getDirections() throws Exception {\n\tDirectionAccessBean bean = constructDirections();\n\tif (bean != null)\n\t return (Direction)bean.getEJBRef();\n\telse\n\t return null;\n\n}", "public String getDirection(){\n\t\tif(this.toRight)\n\t\t\treturn \"RIGHT\";\n\t\telse\n\t\t\treturn \"LEFT\";\n\t}", "public static Direction getDirection(Tile origin, Tile target) {\n\t\tint x1 = origin.getX();\n\t\tint y1 = origin.getY();\n\t\tint x2 = target.getX();\n\t\tint y2 = target.getY();\n\t\tint dx = x2 - x1;\n\t\tint dy = y2 - y1;\n\n\t\t// cardinal directions\n\t\tif (dx == 0)\n\t\t\tif (y1 < y2)\n\t\t\t\treturn Direction.East;\n\t\t\telse if (y1 > y2)\n\t\t\t\treturn Direction.West;\n\t\tif (dy == 0) {\n\t\t\tif (x1 < x2)\n\t\t\t\treturn Direction.South;\n\t\t\telse if (x1 > x2)\n\t\t\t\treturn Direction.North;\n\t\t}\n\n\t\t// ordinal directions\n\t\tif (dx == dy || dx == -dy) {\n\t\t\tif (x1 < x2)\n\t\t\t\tif (y1 < y2)\n\t\t\t\t\treturn Direction.SouthEast;\n\t\t\t\telse if (y1 > y2)\n\t\t\t\t\treturn Direction.SouthWest;\n\t\t\tif (x1 > x2)\n\t\t\t\tif (y1 < y2)\n\t\t\t\t\treturn Direction.NorthEast;\n\t\t\t\telse if (y1 > y2)\n\t\t\t\t\treturn Direction.NorthWest;\n\t\t}\n\n\t\treturn null;\n\t}", "void setDirections(Directions dir){\n this.dir = dir;\n }", "public Direction getDirection()\n\t{\n\t\treturn this.direction;\n\t}", "public Vector3d getDirection() { return mDirection; }", "private DirectionTestResult getDirection() throws SimplexException {\r\n switch(pointCount) {\r\n case 1:\r\n return new DirectionTestResult(a.negate(new Vector2f()));\r\n case 2:\r\n Vector2f ab = b.sub(a);\r\n Vector2f perpAB = new Vector2f(-ab.y,ab.x);\r\n \r\n // check the perpendicular points opposite to vector A\r\n // i.e. towards the origin\r\n // if not, return the negated perpendicular and swap\r\n // points A and B to maintain clockwise rotation.\r\n if (perpAB.dot(a) < 0) {\r\n return new DirectionTestResult(perpAB);\r\n } else {\r\n Vector2f t = a;\r\n a = b;\r\n b = t;\r\n return new DirectionTestResult(perpAB.negate());\r\n }\r\n case 3:\r\n // first check line AC just like case 2\r\n Vector2f ac = c.sub(a);\r\n Vector2f perpAC = new Vector2f(-ac.y,ac.x);\r\n \r\n if (perpAC.dot(a) < 0) {\r\n b = c;\r\n c = null;\r\n pointCount = 2;\r\n return new DirectionTestResult(perpAC);\r\n }\r\n \r\n // now check line CB just like case 2\r\n Vector2f cb = b.sub(c);\r\n Vector2f perpCB = new Vector2f(-cb.y, cb.x);\r\n \r\n if (perpCB.dot(c) < 0) {\r\n a = c;\r\n c = null;\r\n pointCount = 2;\r\n return new DirectionTestResult(perpCB);\r\n }\r\n \r\n // if both checks failed the origin must be inside the\r\n // simplex which means there is a collision so return\r\n // a true directionTestResult\r\n \r\n return new DirectionTestResult();\r\n default:\r\n throw new SimplexException(\"pointCount outside acceptable range\");\r\n }\r\n }", "public Enums.Direction getDirection() {\n return direction;\n }", "public Direction getDirection() {\n\t\treturn direction;\n\t}", "public static Direction direction(Point p1, Point p2, Point p3)\n {\n Direction result = Direction.COLLINEAR;\n double cp = crossProduct(p2, p3, p1);\n if (cp < 0.0) {\n result = Direction.RIGHT;\n } else if (cp > 0.0) {\n result = Direction.LEFT;\n }\n return result;\n }", "private Direction getNextDirection(int xDiff, int yDiff) {\n \n // figure out the direction the footman needs to move in\n if(xDiff == 1 && yDiff == 1)\n {\n return Direction.SOUTHEAST;\n }\n else if(xDiff == 1 && yDiff == 0)\n {\n return Direction.EAST;\n }\n else if(xDiff == 1 && yDiff == -1)\n {\n return Direction.NORTHEAST;\n }\n else if(xDiff == 0 && yDiff == 1)\n {\n return Direction.SOUTH;\n }\n else if(xDiff == 0 && yDiff == -1)\n {\n return Direction.NORTH;\n }\n else if(xDiff == -1 && yDiff == 1)\n {\n return Direction.SOUTHWEST;\n }\n else if(xDiff == -1 && yDiff == 0)\n {\n return Direction.WEST;\n }\n else if(xDiff == -1 && yDiff == -1)\n {\n return Direction.NORTHWEST;\n }\n \n System.err.println(\"Invalid path. Could not determine direction\");\n return null;\n }", "public void move(String direction) {\n \n }", "public CS getDirectionCode() { return _directionCode; }", "public static Direction getDirection(byte rotation) {\n return ROTATIONS.get(rotation);\n }", "private static Directions getDirection() {\n\t\t\treturn values()[rand.nextInt(4)];\n\t\t}", "public static String findDirection(XYLocation initial, XYLocation goingTo) {\n\t\tfloat goingToX = goingTo.getX();\n\t\tfloat goingToY = goingTo.getY();\n\t\tfloat initialX = initial.getX();\n\t\tfloat inititalY = initial.getY();\n\t\tfloat theta = (float) Math.atan2(goingToY - inititalY, goingToX - initialX);\n\t\t\n\t\tif (Math.abs(theta) <= oneEighthPI && Math.abs(theta) >= negOneEighthPI) {\n\t\t\t\treturn \"East\";\n\t\t\t} else if (theta > oneEighthPI && theta < threeEighthsPI) {\n\t\t\t\treturn \"SouthEast\";\n\t\t\t} else if (theta > negThreeEighthsPI && theta < negOneEighthPI) {\n\t\t\t\treturn \"NorthEast\";\n\t\t\t} else if (theta > threeEighthsPI && theta < fiveEighthsPI) {\n\t\t\t\treturn \"South\";\n\t\t\t} else if (theta > negFiveEighthsPI && theta < negThreeEighthsPI){\n\t\t\t\treturn \"North\";\n\t\t\t} else if (theta > fiveEighthsPI && theta < sevenEighthsPI) {\n\t\t\t\treturn \"SouthWest\";\n\t\t\t} else if (theta > negSevenEighthsPI && theta < negFiveEighthsPI) {\n\t\t\t\treturn \"NorthWest\";\n\t\t\t} else {\n\t\t\t\treturn \"West\";\n\t\t\t}\n\t}" ]
[ "0.71175605", "0.69913375", "0.66837794", "0.6674225", "0.6615907", "0.6322899", "0.61557484", "0.61526793", "0.6139935", "0.608507", "0.6077026", "0.6045219", "0.603415", "0.6026069", "0.6021696", "0.59788877", "0.59775096", "0.59741914", "0.59619737", "0.5886228", "0.58795714", "0.5876228", "0.5857055", "0.5829532", "0.58076096", "0.5807499", "0.5797917", "0.57591957", "0.57585126", "0.57397777", "0.571322", "0.5699465", "0.5688055", "0.56850433", "0.56703657", "0.5667082", "0.5665859", "0.5661456", "0.5648441", "0.5646812", "0.5639262", "0.56351465", "0.56333214", "0.5628352", "0.56196815", "0.5618193", "0.5614539", "0.5608393", "0.5580244", "0.5568473", "0.5567138", "0.5566249", "0.55645454", "0.5556785", "0.5547057", "0.5539472", "0.5537882", "0.55373734", "0.55296934", "0.55258125", "0.55243826", "0.55243826", "0.55243826", "0.54952717", "0.5468569", "0.5462283", "0.5454363", "0.5453135", "0.545127", "0.5444622", "0.54438186", "0.5434819", "0.5417189", "0.5394537", "0.5392043", "0.5383895", "0.5379845", "0.5360764", "0.5360243", "0.5356783", "0.53483355", "0.5341782", "0.5337649", "0.5319329", "0.5309448", "0.52963006", "0.52948123", "0.5283173", "0.5278248", "0.5276092", "0.5274922", "0.5274903", "0.52600735", "0.5245172", "0.52434266", "0.524261", "0.52418184", "0.5237276", "0.52324456", "0.5222208" ]
0.76934254
0
Method that choose a direction randomly
public static Direction randomSideDirection(Direction direction) { Random rand = new Random(); int side = rand.nextInt(2); if (direction.isHorizontal()) return (side == 0)? NORTH:SOUTH; if (direction.isVertical()) return (side == 0)? WEST:EAST; return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void goRandomDirection() {\n\t\tdesiredDirection = Math.random() * 360.0;\n\t}", "public void randomizeDirection() {\n\t\tRandom r = new Random();\n\t\tint randomDir = r.nextInt(8);\n\t\tdirection = Direction.values()[randomDir];\n\t}", "public void randomizeDirection()\n\t{\n\t\txSpeed = (int) (Math.pow(-1, random.nextInt(2)) * speed);\n\t\tySpeed = (int) (Math.pow(-1, random.nextInt(2)) * speed);\n\t}", "private Direction selectRandomDirection(List<Direction> possibleDirections) {\n\t\tint random = (int) (Math.random() * possibleDirections.size());\n\t\treturn possibleDirections.get(random);\n\t}", "private static int randomDirection() {\n return (int) (Math.random() * Direction.values().length);\n }", "static Direction randomDirection() {\n\t\treturn new Direction((float)Math.random() * 2 * (float)Math.PI);\n\t}", "private static Directions getDirection() {\n\t\t\treturn values()[rand.nextInt(4)];\n\t\t}", "private void rngDirection() {\r\n Random direction = new Random();\r\n float rngX = (direction.nextFloat() -0.5f) *2;\r\n float rngY = (direction.nextFloat() -0.5f) *2;\r\n\r\n rngX = Float.parseFloat(String.format(java.util.Locale.US, \"%.1f\", rngX));\r\n rngY = Float.parseFloat(String.format(java.util.Locale.US, \"%.1f\", rngY));\r\n\r\n\r\n while(rngX == 0) {\r\n rngX = (direction.nextFloat() -0.5f) *2;\r\n }\r\n\r\n while(rngY == 0) {\r\n rngY = (direction.nextFloat() -0.5f) *2;\r\n }\r\n\r\n setSpeedX(rngX);\r\n setSpeedY(rngY);\r\n }", "private MoveAction wanderRandomly() {\n\t\tint intDir = rand.nextInt(8) + 1;\n\t\tDirection direction = Direction.fromInt(intDir);\n\t\treturn moveInDirection(direction);\n\t}", "public static Direction randomDirection()\n {\n Random randNumGen = RandNumGenerator.getInstance();\n return new Direction(randNumGen.nextInt(FULL_CIRCLE));\n }", "static void randomMove() {\n int directionNum; // Randomly set to 0, 1, 2, or 3 to choose direction.\n directionNum = ( int )( Math.random() * 4 );\n\n switch ( directionNum ) {\n case 0: // Move up.\n currentRow--;\n if ( currentRow < 0 )\n currentRow = ROWS - 1;\n break;\n case 1 : // Move right.\n currentColumn++;\n if ( currentColumn >= COLUMNS )\n currentColumn = 0;\n break;\n case 2 : // Move down.\n currentRow++;\n if ( currentRow >= ROWS )\n currentRow = 0;\n break;\n case 3 : // Move left.\n currentColumn--;\n if ( currentColumn < 0 )\n currentColumn = COLUMNS - 1;\n break;\n\n }\n }", "public static Direction selectDirection() {\n return Direction.values()[randomDirection()];\n }", "private void randomBehavior() {\n\t\trandom = rand.nextInt(50);\n\t\tif (random == 0) {\n\t\t\trandom = rand.nextInt(4);\n\t\t\tswitch (random) {\n\t\t\t\tcase 0:\n\t\t\t\t\tchangeFacing(ACTION.DOWN);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tchangeFacing(ACTION.RIGHT);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tchangeFacing(ACTION.UP);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tchangeFacing(ACTION.LEFT);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void perturbDirection(\r\n\t) {\r\n\t\tmDirection.x += 1e-5*Math.random();\t\t\t\r\n\t\tmDirection.y += 1e-5*Math.random();\r\n\t\tmDirection.z += 1e-5*Math.random();\r\n\t}", "public void randomWalk() {\n if (getX() % GameUtility.GameUtility.TILE_SIZE < 5 && getY() % GameUtility.GameUtility.TILE_SIZE < 5) {\n if (canChangeDirection) {\n direction = (int) (Math.random() * 3);\n direction += 1;\n direction *= 3;\n canChangeDirection = false;\n }\n }\n move(direction);\n if (timer >= timeTillChanngeDirection) {\n canChangeDirection = true;\n timer = 0;\n }\n\n if (lastLocation.x == this.getLocation().x && lastLocation.y == this.getLocation().y) {\n direction = (direction + 3) % 15;\n canChangeDirection = false;\n\n }\n lastLocation = this.getLocation();\n\n }", "private static String randomDir() {\n int tileNum = random.nextInt(4);\n switch (tileNum) {\n case 0:\n return \"up\";\n case 1:\n return \"down\";\n case 2:\n return \"left\";\n case 3:\n return \"right\";\n default:\n return \"\";\n }\n }", "public void randomTeleport() {\n Random random = new Random(seed);\n seed = random.nextInt(10000);\n int randomY = RandomUtils.uniform(random, 0, worldHeight);\n int randomX = RandomUtils.uniform(random, 0, worldWidth);\n int randomDirection = RandomUtils.uniform(random, 0, 4);\n move(randomX, randomY);\n turn(randomDirection);\n }", "private void randomDirection(ArrayList<ArrayList<Cell>> cells) {\n\t\tfinal int UP = 0;\n\t\tfinal int RIGHT = 1;\n\t\tfinal int DOWN = 2;\n\t\tfinal int LEFT = 3;\n\t\tfinal int MAX_TRAVERSABLE_DIRECTIONS = 4;\n\t\tint direction = -1;\n\t\tboolean[] traversableDirections = new boolean[MAX_TRAVERSABLE_DIRECTIONS];\n\t\tif (checkTraversable(cells, getxPos(), getyPos() - 1)) {\n\t\t\ttraversableDirections[UP] = true;\n\t\t}\n\t\tif (checkTraversable(cells, getxPos() + 1, getyPos())) {\n\t\t\ttraversableDirections[RIGHT] = true;\n\t\t}\n\t\tif (checkTraversable(cells, getxPos(), getyPos() + 1)) {\n\t\t\ttraversableDirections[DOWN] = true;\n\t\t}\n\t\tif (checkTraversable(cells, getxPos() - 1, getyPos())) {\n\t\t\ttraversableDirections[LEFT] = true;\n\t\t}\n\t\twhile (direction == -1) {\n\t\t\tint randomDirection = new Random().nextInt(MAX_TRAVERSABLE_DIRECTIONS);\n\t\t\tif (traversableDirections[randomDirection]) {\n\t\t\t\tdirection = randomDirection;\n\t\t\t} else {\n\t\t\t\tdirection = -1;\n\t\t\t}\n\t\t}\n\t\tif (direction == UP) {\n\t\t\tsetyPos(getyPos() - 1);\n\t\t} else if (direction == RIGHT) {\n\t\t\tsetxPos(getxPos() + 1);\n\t\t} else if (direction == DOWN) {\n\t\t\tsetyPos(getyPos() + 1);\n\t\t} else if (direction == LEFT) {\n\t\t\tsetxPos(getxPos() - 1);\n\t\t}\n\t}", "public void randomizeWalkDir(boolean byChance) {\n\t\tif(!byChance && random.nextInt(randomWalkChance) != 0) return;\r\n\t\t\r\n\t\trandomWalkTime = randomWalkDuration; // set the mob to walk about in a random direction for a time\r\n\t\t\r\n\t\t// set the random direction; randir is from -1 to 1.\r\n\t\txa = (random.nextInt(3) - 1);\r\n\t\tya = (random.nextInt(3) - 1);\r\n\t}", "public int decideRandomMove() {\n return (int) (Math.random() * 4);\n }", "private Direction getRandomDirection(View v) {\n\t\t// The random walker first decides what directions it can move in. The\n\t\t// walker cannot move in a direction which is blocked by a wall.\n\t\tList<Direction> possibleDirections = determinePossibleDirections(v);\n\n\t\t// Second, the walker chooses a random direction from the list of\n\t\t// possible directions\n\t\treturn selectRandomDirection(possibleDirections);\n\t}", "public void openDoorRandom() {\n\t\tList<direction> direct = new ArrayList<>();\n\t\tCollections.addAll(direct, direction.values());\n\t\t\n\t\tfor (int i = 0 ; i < 1000 ; i++) {\n\t\t\tVertex v = g.getEqualVertex(g.randomVertex());\n\t\t\tif (v != null) {\n\t\t\t\tCollections.shuffle(direct);\n\t\t\t\tdirection dir = direct.get(0);\n\t\t\t\tif (g.edgeDoesntExist(v,dir)) {\n\t\t\t\t\tVertex v2 = g.getEqualVertex(g.vertexByDir(v, dir));\n\t\t\t\t\tif (v2 != null) {\n\t\t\t\t\t\tEdge edge = g.getG().getEdge(v, v2);\n\t\t\t\t\t\tif (edge == null) {\n\t\t\t\t\t\t\tg.addEdge(v, v2);\n\t\t\t\t\t\t\t//System.out.println(\"added edge : \"+\"(\"+v.toString()+\",\"+v2.toString()+\")\");\n\t\t\t\t\t\t\treturn;\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}", "public void randomiseBotDirections() {\n\t\tfor (int i = 0; i < bots.size(); i++) {\n\t\t\tbots.get(i).setDirection(Math.random() * 360);\n\t\t}\n\t}", "public void setDirection() {\n\t\tdouble randomDirection = randGen.nextDouble();\n\t\tif (randomDirection < .25) {\n\t\t\tthis.xDirection = 1;\n\t\t\tthis.yDirection = -1;\n\t\t} else if (randomDirection < .5) {\n\t\t\tthis.xDirection = -1;\n\t\t\tthis.yDirection = -1;\n\t\t} else if (randomDirection < .75) {\n\t\t\tthis.xDirection = -1;\n\t\t\tthis.yDirection = 1;\n\t\t} else {\n\t\t\tthis.xDirection = 1;\n\t\t\tthis.yDirection = 1;\n\t\t}\n\t}", "protected Direction selectMove() {\n Map<Integer, Direction> positive, negative;\n // Add the directions that contains negative stations in a negative set\n // And every other direction in a positive set\n positive = new HashMap<Integer,Direction>(16);\n negative = new HashMap<Integer,Direction>(16);\n for (Direction d : Direction.directions) {\n int result = checkMove(d);\n if (result == 1) {\n positive.put(positive.size(), d);\n } else if (result == 0) {\n negative.put(negative.size(), d);\n } else {\n continue;\n }\n }\n // If there is no positive move, choose a RANDOM negative move\n if (positive.isEmpty()) {\n return negative.get(rand.nextInt(negative.size()));\n } else { // Otherwise choose a RANDOM positive move\n return positive.get(rand.nextInt(positive.size()));\n }\n }", "private void randomMove() {\n }", "public void makeRandomMove() {\n\t\ttry{\r\n\t\t\tif (playerId == game.getState().getTurn()){\r\n\t\t\t\tgame.execute(randPlayer.requestAction(game.getState()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IllegalArgumentException e){\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void randomMove(Random choiceGen){\n\tint choice = choiceGen.nextInt(4);\n\tswitch(choice){\n case 0:\n\tif(position[0] < worldEdge[0]){\n\t position[0] += 1;\n\t break;\n\t}\n\t\n\tcase 1:\n\t if(position[0] > 0){\n\t\tposition[0] -= 1;\n\t }\n\t else{\n\t position[0] += 1;\n\t }\n\t break;\n\tcase 2:\n\t if(position[1] < worldEdge[1]){\n\t\tposition[1] += 1;\n\t\tbreak;\n\t}\n\tcase 3:\n\t if(position[1] > 0){\n\t\tposition[1] -= 1;\n\t }\n\t else{\n\t\tposition[1] += 1;\n\t }\n\t break;\n\t}\n }", "protected void randomStep() {\n\t\tint n = curNode.getDegree();\n\t\tint r = 0;\n\n\t\tif (n > 0) {\n\t\t\tr = ctx.random().nextInt(n);\n\n\t\t\tAntCo2Edge curEdge = (AntCo2Edge) curNode.getEdge(r);\n\n\t\t\tassert curEdge != null : \"found no edge\";\n\n\t\t\tcross(curEdge, true);\n\t\t}\n\t}", "static Tour rndTour() {\r\n\t\tTour tr = Tour.sequence();\r\n\t\ttr.randomize();\r\n\t\ttr.distance = tr.distance();\r\n\t\treturn tr;\r\n\t}", "public abstract void randomMoves();", "private void random() {\n\n\t}", "public abstract void randomize();", "private void random() {\n GameState gs = cc.getGameState();\n ArrayList<int[]> moves = cc.getPlayerMoves(player);\n ArrayList<GameState> states = nextStates(moves, gs);\n for (int[] m : moves) {\n GameState next = checkMove(m, cc);\n states.add(next);\n }\n Random rand = new Random(System.nanoTime());\n int i = rand.nextInt(states.size());\n cc.setAIMove(states.get(i));\n }", "private void moveRandomly()\r\n {\r\n if (Greenfoot.getRandomNumber (100) == 50)\r\n turn(Greenfoot.getRandomNumber(360));\r\n else\r\n move(speed);\r\n }", "public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}", "public void randomDestino(){\n\t\tRandom aleatorio = new Random();\n\t\tint numero = aleatorio.nextInt(2);\n\t\tif (numero == 0)\n\t\t\tsetGiro(90);\n\t\telse \n\t\t\tsetGiro(270);\n\t}", "private void spin() {\n\t\t\tArrayList<Integer> sequence = getDna().getSequence();\n\t\t\tint randomDirection = sequence.get(new Random().nextInt(sequence.size()));\n\t\t\tsetDirection((this.direction + randomDirection) % 8);\t\n\t\t}", "Randomizer getRandomizer();", "public void randomMove(){\n ArrayList<Hole> availableHoles = availableMoves(nextToPlay);\n int holeIndex = (int)(Math.random() * (((availableHoles.size()-1) - 0) + 1)) + 0;\n ArrayList<Korgool> korgools = availableHoles.get(holeIndex).getKoorgools();\n while(korgools.size() == 0){\n holeIndex = (int)(Math.random() * (((availableHoles.size()-1) - 0) + 1)) + 0;\n korgools = availableHoles.get(holeIndex).getKoorgools();\n }\n redistribute(availableHoles.get(holeIndex).getHoleIndex());\n }", "@Override\r\n public void move(List<Building> landmark, List<Pair<Integer, Integer>> orderedPath) {\r\n int moveChoice = (new Random()).nextInt(2);\r\n // 50% chance to move or not move\r\n if (moveChoice == 0){\r\n // Does not move, i.e. does nothing\r\n }\r\n else if (moveChoice == 1){\r\n // Move\r\n int directionChoice = (new Random()).nextInt(2);\r\n if (directionChoice == 0) {\r\n moveUpPath();\r\n } else if (directionChoice == 1) {\r\n moveDownPath();\r\n }\r\n }\r\n }", "public Area GetNextAreaRandom(Area area)\n\n {\n\n Random rand = new Random();\n\n int i = 0;\n\n switch(area.paths)\n\n {\n\n case Constants.North:\n\n i = rand.nextInt(2);\n\n if(i==0)\n\n return area.areaMap.get(Constants.North);\n\n if(i==1)\n\n return area;\n\n case Constants.South:\n\n if(i==0)\n\n return area.areaMap.get(Constants.South);\n\n if(i==1)\n\n return area;\n\n \n\n case Constants.East:\n\n if(i==0)\n\n return area.areaMap.get(Constants.East);\n\n if(i==1)\n\n return area;\n\n \n\n case Constants.West:\n\n if(i==0)\n\n return area.areaMap.get(Constants.West);\n\n if(i==1)\n\n return area;\n\n \n\n \n\n case Constants.NorthAndSouth:\n\n i = rand.nextInt(3);\n\n if(i == 0)\n\n return area.areaMap.get(Constants.North);\n\n if(i == 1)\n\n return area.areaMap.get(Constants.South);\n\n if(i == 2)\n\n return area;\n\n case Constants.NorthAndEast:\n\n i = rand.nextInt(3);\n\n if(i == 0)\n\n return area.areaMap.get(Constants.North);\n\n if(i == 1)\n\n return area.areaMap.get(Constants.East);\n\n if(i == 2)\n\n return area;\n\n case Constants.NorthAndWest:\n\n i = rand.nextInt(3);\n\n if(i == 0)\n\n return area.areaMap.get(Constants.North);\n\n if(i == 1)\n\n return area.areaMap.get(Constants.West);\n\n if(i == 2)\n\n return area;\n\n case Constants.SouthAndEast:\n\n i = rand.nextInt(3);\n\n if(i == 0)\n\n return area.areaMap.get(Constants.East);\n\n if(i == 1)\n\n return area.areaMap.get(Constants.South);\n\n if(i == 2)\n\n return area;\n\n case Constants.SouthAndWest:\n\n i = rand.nextInt(3);\n\n if(i == 0)\n\n return area.areaMap.get(Constants.West);\n\n if(i == 1)\n\n return area.areaMap.get(Constants.South);\n\n if(i == 2)\n\n return area;\n\n case Constants.EastAndWest:\n\n i = rand.nextInt(3);\n\n if(i == 0)\n\n return area.areaMap.get(Constants.East);\n\n if(i == 1)\n\n return area.areaMap.get(Constants.West);\n\n if(i == 2)\n\n return area;\n\n case Constants.NorthSouthAndEast:\n\n i = rand.nextInt(4);\n\n if(i == 0)\n\n return area.areaMap.get(Constants.North);\n\n if(i == 1)\n\n return area.areaMap.get(Constants.South);\n\n if(i == 2)\n\n return area.areaMap.get(Constants.East);\n\n if(i == 3)\n\n return area;\n\n case Constants.NorthSouthAndWest:\n\n i = rand.nextInt(4);\n\n if(i == 0)\n\n return area.areaMap.get(Constants.North);\n\n if(i == 1)\n\n return area.areaMap.get(Constants.South);\n\n if(i == 2)\n\n return area.areaMap.get(Constants.West);\n\n if(i == 3)\n\n return area;\n\n case Constants.NorthEastAndWest:\n\n i = rand.nextInt(4);\n\n if(i == 0)\n\n return area.areaMap.get(Constants.North);\n\n if(i == 1)\n\n return area.areaMap.get(Constants.East);\n\n if(i == 2)\n\n return area.areaMap.get(Constants.West);\n\n if(i == 3)\n\n return area;\n\n case Constants.SouthEastAndWest:\n\n i = rand.nextInt(4);\n\n if(i == 0)\n\n return area.areaMap.get(Constants.West);\n\n if(i == 1)\n\n return area.areaMap.get(Constants.South);\n\n if(i == 2)\n\n return area.areaMap.get(Constants.East);\n\n if(i == 3)\n\n return area;\n\n \n\n case Constants.NorthSouthEastAndWest:\n\n i = rand.nextInt(5);\n\n if(i == 0)\n\n return area.areaMap.get(Constants.West);\n\n if(i == 1)\n\n return area.areaMap.get(Constants.South);\n\n if(i == 2)\n\n return area.areaMap.get(Constants.North);\n\n if(i == 3)\n\n return area.areaMap.get(Constants.East);\n\n if(i == 4)\n\n return area;\n\n }\n\n \n\n return area;\n\n \n\n \n\n }", "public void takeStep()\n {\n int direction = random.nextInt(4);\n switch (direction) {\n case 0:\n /* Up */\n y += 1;\n break;\n case 1:\n /* Down */\n y -= 1;\n break;\n case 2:\n /* Right */\n x += 1;\n break;\n case 3:\n /* Left */\n x -= 1;\n break;\n }\n\n stepsTaken++;\n }", "public void randomWalk(){\r\n int newAngle = (int) ( (double) Math.random() * 360) ;\r\n\r\n super.xVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n super.yVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n }", "int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }", "@Override\n\tpublic void randomRoom() {\n\t\tint randSide = random.nextInt(3) + 1;\n\t\tString side = properties.getSideFromProperties().get(randSide);\n\t\tint randRoom = random.nextInt(6) + 1;\n\t\tthis.room = properties.getRoomFromProperties().get(randRoom);\n\t\tthis.side = this.room.substring(0, 1).toLowerCase() + side;\n\t}", "private String RandomGoal() {\n\t\tList<String> list = Arrays.asList(\"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"t\", \"t\");\n\t\tRandom rand = new Random();\n\t\tString randomgoal = list.get(rand.nextInt(list.size()));\n\n\t\treturn randomgoal;\n\t}", "public Position sampleRandomUniformPosition();", "private static int[] decideDirection(boolean[][] maze, int x, int y){\n if (Random.Int(4) == 0 && //1 in 4 chance\n checkValidMove(maze, x, y, new int[]{0, -1})){\n return new int[]{0, -1};\n }\n\n //attempts to move right\n if (Random.Int(3) == 0 && //1 in 3 chance\n checkValidMove(maze, x, y, new int[]{1, 0})){\n return new int[]{1, 0};\n }\n\n //attempts to move down\n if (Random.Int(2) == 0 && //1 in 2 chance\n checkValidMove(maze, x, y, new int[]{0, 1})){\n return new int[]{0, 1};\n }\n\n //attempts to move left\n if (\n checkValidMove(maze, x, y, new int[]{-1, 0})){\n return new int[]{-1, 0};\n }\n\n return null;\n }", "@Override\n\tpublic Direction getMove() {\n\t\t//Equal probability for each of the 8 compass direction, as well as staying stationary\n\t\treturn choices[this.random.nextInt(9)];\n\t}", "public void step()\n {\n\t int rows = grid.length-1;\n\t int cols = grid[0].length-1;\n\t int direction = (int) (Math.random()*3);\n\t direction--;\n\t int row = (int) (Math.random()*rows);\n\t //System.out.println(row);\n\t int col = (int) (Math.random()*cols);\n\t //System.out.println(col);\n\t if(grid[row][col] == SAND && (grid[row+1][col] == EMPTY || grid[row+1][col] == WATER)) {\n\t\t grid[row+1][col] = SAND;\n\t\t grid[row][col] = EMPTY;\n\t }\n\t if(grid[row][col] == WATER && grid[row+1][col] == EMPTY) {\n\t\t if(col != 0) {\n\t\t\t grid[row+1][col+direction] = WATER;\n\t\t\t grid[row][col] = EMPTY;\n\t\t }\n\t\t else {\n\t\t\t grid[row+1][col] = WATER;\n\t\t\t grid[row][col] = EMPTY;\n\t\t }\n\t }\n }", "public void randomMove() {\r\n\t\tRandom rand = new Random();\r\n\t\tint moveNum = rand.nextInt(100)+100;\r\n\t\tcheck++;\r\n\t\tif(check >= moveNum) {\r\n\t\t\tspeed = speed*-1;\r\n\t\t\tcheck =0;\r\n\r\n\t\t}\r\n\r\n\t\tif(speed > 0) {\r\n\t\t\tsetIcon(rightImage);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsetIcon(leftImage);\r\n\t\t}\r\n\t\tx += speed; setLocation(x,y); repaint();\r\n\t}", "public int randomMove()\r\n {\r\n r = new Random();\r\n x = r.nextInt(7);\r\n return x;\r\n }", "Chromosome getRandom();", "static int getRandomDelta() {\n int d = rand.nextInt(100);\n if (d < 50) {\n return -1;\n } else {\n return 1;\n }\n }", "public void rollRandom() {\n\t\tthis.strength = randomWithRange();\r\n\t\tthis.wisdom = randomWithRange();\r\n\t\tthis.dexterity = randomWithRange();\r\n\t\tthis.constitution = randomWithRange();\r\n\t\tthis.intelligence = randomWithRange();\r\n\t\tthis.charisma = randomWithRange();\r\n\t}", "private double getRandom() {\n return 2*Math.random() - 1;\n }", "Boolean getRandomize();", "@Override\r\n\tpublic void doTimeStep() {\n\t\tdir = Critter.getRandomInt(8);\r\n\t\t\r\n\t\tnumSteps = Critter.getRandomInt(maxStep) + 1;\r\n\t\t\r\n\t\t//go a random number of steps in that direction\r\n\t\tfor(int i = 0; i < numSteps; i++) {\r\n\t\t\twalk(dir);\r\n\t\t}\t\t\r\n\t}", "public DirectionPicker(IRandom random, Direction previousDirection, double changeDirectionModifier) {\r\n _random = random;\r\n _directionsPicked = new ArrayList<Direction>();\r\n _previousDirection = previousDirection;\r\n _changeDirectionModifer = changeDirectionModifier;\r\n }", "public Move getRandomMove(MachineState state, Role role) throws MoveDefinitionException, StateMachineException\n {\n List<Move> legals = getLegalMoves(state, role);\n return legals.get(new Random().nextInt(legals.size()));\n }", "public void playCoordinationGameRandomly(int init){\n\t\t\n\t\tint counterInit = BDDWrapper.assign(bdd, 0, counterVariables);\n\t\tint strategyInit = BDDWrapper.and(bdd, init, counterInit);\n\t\t\n\t\tint currentState = UtilityMethods.chooseStateRandomly(bdd, strategyInit, variables);\n\t\t\n//\t\tUtilityMethods.debugBDDMethodsAndWait(bdd, \"current state\", currentState);\n\t\t\n\t\twhile(true){\n\t\t\t\n\t\t\tcleanCoordinationGameStatePrintAndWait(\"current state is\", currentState);\n\t\t\t\n\t\t\tint possibleNextStates = symbolicGameOneStepExecution(currentState);\n\t\t\t\n\t\t\tcurrentState = UtilityMethods.chooseStateRandomly(bdd, possibleNextStates, variables);\n//\t\t\tcleanPrintSetOutWithDontCares(bdd, currentState, densityVars, taskVars, successSignals);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public void generateRandomPosition() {\n\t\tx.set((int)(Math.floor(Math.random()*23+1)));\n\t\ty.set((int)(Math.floor(Math.random()*23+1)));\n\n\t}", "public void move() {\n super.move(DIRECTION.getRandom());\n }", "private int Rand_Move() {\n\t\tRandom r = new Random();\n\t\tint move = NO_MOVE;\n\t\tdo{\n\t\t\tmove = r.nextInt(9);\n\t\t}while(square_empty[move] == false);\n\t\treturn move;\n\t}", "@Override\n\tpublic void navigateSnake(Snake snake) {\n\t\tSystem.out.println(\"Random Navigation!!!\");\n\t\tArrayList<Direction> directions = new ArrayList<Box.Direction>();\n\t\tfor(Direction dir : Direction.values()){\n\t\t\tif(!snake.getBoxes().contains(snake.getHead().box(dir))){\n\t\t\t\tdirections.add(dir);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tif(directions.size() > 0)\n\t\tsnake.setDirection(directions.get((int)(Math.random() * directions.size())));\n\t}", "private void setRand(){\n rand = generator.nextInt(9) + 1;\n }", "public void takeStep() {\n \tRandom rand = new Random();\n\t\tint number = rand.nextInt(4);\n\t if(number == 0) {\n\t \tmoveNorth();\n\t \t}\n\t \telse if(number == 1) {\n\t \t\tmoveSouth();\n\t \t}\n \telse if(number == 2) {\n \t\tmoveWest();\n\t }\n\t \telse if(number == 3) {\n\t \t\tmoveEast();\n\t \t}\n }", "public void setDirection(int dice){\n\t}", "public static Point pos(){\r\n\t\tRandom random = new Random();\r\n\t\tint x = 0;\r\n\t\tint y = 0;\r\n\t\t//acts as a 4 sided coin flip\r\n\t\t//this is to decide which side the asteroid will appear\r\n\t\tint pos = random.nextInt(4);\r\n\t\t//west\r\n\t\tif(pos == 0){\r\n\t\t\tx = 0;\r\n\t\t\ty = random.nextInt(601);\r\n\t\t}\r\n\t\t//north\r\n\t\telse if(pos == 1){\r\n\t\t\tx = random.nextInt(801);\r\n\t\t\ty = 0;\r\n\t\t}\r\n\t\t//east\r\n\t\telse if(pos == 2){\r\n\t\t\tx = 800;\r\n\t\t\ty = random.nextInt(601);\r\n\t\t}\r\n\t\t//\r\n\t\telse if(pos == 3){\r\n\t\t\tx = random.nextInt(801);\r\n\t\t\ty = 600;\r\n\t\t}\r\n\t\tPoint p = new Point(x,y);\r\n\t\treturn p;\r\n\t}", "public S getRandomState();", "public void generateNether(World world, Random random, int x, int y){\n\t}", "public void generateRandomRoom(String fromDirection) {\n this.title = pickRandomTitle();\n this.description = pickRandomDescription();\n this.loot.add(pickRandomItem());\n this.enemy = pickRandomEnemy();\n }", "void move()\n {\n Random rand = new Random();\n int moveOrNot = rand.nextInt(2);//50% chance\n if(moveOrNot == 1)\n super.move();\n }", "public void changeDirection() {\n\t\t// Define the direction we want to change from as our current direction.\n\t\tfinal float oldDirection = this.requiredSwipeDirection;\n\t\t// While our swipe direction is the direction we want to change from,\n\t\twhile (this.requiredSwipeDirection == oldDirection)\n\t\t\t// Set our SwipeTile's direction to a random direction.\n\t\t\tsetDirection(SwipeTile.randomDirection());\n\t}", "public Move randomMove(Stack possibilities) {\r\n\t\tint moveID = rand.nextInt(possibilities.size());\r\n\t\tSystem.out.println(\"Agent randomly selected move : \" + moveID);\r\n\t\tfor (int i = 1; i < (possibilities.size() - (moveID)); i++) {\r\n\t\t\tpossibilities.pop();\r\n\t\t}\r\n\t\tMove selectedMove = (Move) possibilities.pop();\r\n\t\treturn selectedMove;\r\n\t}", "@Override\n\tprotected void pathDestinationReached() {\n\t\tif (Util.rand.nextFloat() < 0.3f)\n\t\t\trestartAnimation(dancingAnim);\n\t\telse\n\t\t\trandomMove();\n\t}", "@Override\n public Action getRandomAction(Agent r, Maze m) {\n ArrayList<Action> actions = m.getValidActions(r);\n Random rand = new Random();\n return actions.get(rand.nextInt(actions.size()));\n }", "private void getRandomNumber() {\n\t\tRandom generator = new Random();\n\t\trandomNumber = generator.nextInt(POSSIBLE_CHOICE.length);\n\t}", "public void moveRandomly(City city) {\n\n // 20 percent chance of turning\n if (Helper.nextDouble() <= .2) {\n this.changeDirection();\n }\n super.move(city, 1);\n\n }", "private static int getRandomNumberOfRooms(){\r\n return r.nextInt(50)+1;\r\n }", "private RandomLocationGen() {}", "private void selectRandom() {\n\n\t\tRandom randomise;\n\n\t\t// Select random char from Spinner only if it is enabled\n\t\tif (solo.getCurrentSpinners().get(0).isEnabled()) {\n\t\t\trandomise = new Random();\n\t\t\trandomCharPos = randomise.nextInt(solo.getCurrentSpinners().get(1)\n\t\t\t\t\t.getCount());\n\n\t\t\tsolo.pressSpinnerItem(0, randomCharPos);\n\t\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\t\trandomChar = solo.getCurrentSpinners().get(0).getSelectedItem()\n\t\t\t\t\t.toString();\n\t\t}\n\n\t\t// Select random act from Spinner\n\t\trandomise = new Random();\n\t\trandomActPos = randomise.nextInt(solo.getCurrentSpinners().get(1)\n\t\t\t\t.getCount());\n\n\t\tsolo.pressSpinnerItem(1, randomActPos);\n\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\trandomAct = solo.getCurrentSpinners().get(1).getSelectedItem()\n\t\t\t\t.toString();\n\n\t\t// Select random page from Spinner\n\t\trandomise = new Random();\n\t\trandomPagePos = randomise.nextInt(solo.getCurrentSpinners().get(2)\n\t\t\t\t.getCount());\n\n\t\tsolo.pressSpinnerItem(2, randomPagePos);\n\t\tsolo.goBackToActivity(\"OptionsActivity\");\n\n\t\trandomPage = solo.getCurrentSpinners().get(2).getSelectedItem()\n\t\t\t\t.toString();\n\t}", "RandomizedRarestFirstSelector(Random random) {\n this.random = random;\n }", "private static String getRandomType(){\r\n int index = r.nextInt(typeOfRooms.length);\r\n return typeOfRooms[index];\r\n }", "public int moveDirection(int index)\n\t{\n\t\tswitch (index)\n\t\t{\n\t\tcase 0:\n\t\t\treturn rng.nextInt(2); // 0, 1\n\t\tcase 19:\n\t\t\treturn rng.nextInt(2)-1; // -1, 0\n\t\tdefault:\n\t\t\treturn rng.nextInt(3)-1; // -1, 0, 1\n\t\t}\t\n\t}", "public Direction[] takeDecision() {\n return this.randomDecision();\n }", "public void randomize() {\n\t\tx = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t\ty = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t}", "@Override\r\n\tprotected void action() {\r\n\t\tdistance = ir.getDistance();\r\n\t\ttimer = getTimer.getTimer();\r\n\t\tcolorID = color.getColorID();\r\n\t\tdirection = random.nextInt(4) + 1;\r\n\t\tDoge.message(6, \"Random: \" + Integer.toString(direction));\r\n\r\n\t\tif (colorID == Color.YELLOW) { // If sensor is on yellow, stop motor\r\n\t\t\tmotor.halt();\r\n\t\t\ttail.wagTail(4,700);\r\n\t\t\twhile (colorID == Color.YELLOW) {\r\n\t\t\t\tcolorID = color.getColorID();\r\n\t\t\t\tDelay.msDelay(500);\r\n\t\t\t}\r\n\t\t} else if (distance > 5 && distance <= 50) { //If something is in front, change direction\r\n\t\t\tif (lastTurn == 0) { \r\n\t\t\t\tmotor.rollRight();\r\n\t\t\t} else if (lastTurn == 1) {\r\n\t\t\t\tmotor.rollLeft();\r\n\t\t\t}\r\n\t\t\twhile (distance > 5 && distance <= 50 && colorID != Color.YELLOW) { // Delay to to\r\n\t\t\t\tDelay.msDelay(1000);\t\t\t\t\t\t\t\t\t\t//give some time\r\n\t\t\t\tdistance = ir.getDistance();\t\t\t\t\t\t\t\t//to turn\r\n\t\t\t\tcolorID = color.getColorID();\r\n\t\t\t}\r\n\t\t} else\r\n\t\t\tswitch (direction) { // Switch for random movement orders\r\n\t\t\tcase 1:\r\n\t\t\t\tmotor.gentleLeft(700);\r\n\t\t\t\tlastTurn = 0;\r\n\t\t\t\tDoge.message(4, \"Gentle left\");\r\n\t\t\t\tDelay(distance, timer, colorID);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 2:\r\n\t\t\t\tmotor.gentleRight(700);\r\n\t\t\t\tlastTurn = 1;\r\n\t\t\t\tDoge.message(4, \"Gentle right\");\r\n\t\t\t\tDelay(distance, timer, colorID);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 3:\r\n\t\t\t\tmotor.sharpLeft(700);\r\n\t\t\t\tlastTurn = 0;\r\n\t\t\t\tDoge.message(4, \"Sharp left\");\r\n\t\t\t\tDelay(distance, timer, colorID);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 4:\r\n\t\t\t\tmotor.sharpRight(700);\r\n\t\t\t\tlastTurn = 1;\r\n\t\t\t\tDoge.message(4, \"Sharp right\");\r\n\t\t\t\tDelay(distance, timer, colorID);\r\n\t\t\t\tbreak;\r\n\r\n\t\t\t}\r\n\t}", "public void SetRandom(boolean random);", "public InputAction makeChoice() {\n int choice = (int) Math.floor(Math.random() * 12);\n if(choice < 6) {\n return new InputAction(player, InputAction.ActionType.WORK, null);\n } else {\n DirectionType direction = directionByNumber.get(choice);\n return new InputAction(player, InputAction.ActionType.EXPLORE, direction);\n }\n }", "private void randMove(Person[] array){\r\n\t\t\tlogger.info(\"randMoving starts\");\r\n\t\t\tArrayList<Integer> remaining = new ArrayList<>();\r\n\t\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\t\tremaining.add(i);\r\n\t\t\t}\r\n\t\t\tint step = 0;\r\n\t\t\tboolean isAgentArray = false;\r\n\t\t\tif(array[0] instanceof Agent) isAgentArray = true;\r\n\r\n\t\t\t//select from remaining index when remaining is not empty\r\n\t\t\twhile (step<array.length) {\r\n\t\t\t\tint index = randInt(0,remaining.size()-1);\r\n\t\t\t\tif(remaining.get(index)>=0){\r\n\t\t\t\t\t//move agents and cops here\r\n\t\t\t\t\tif(isAgentArray){\r\n\t\t\t\t\t\tif(agents[index].getJailTerm() == 0)\r\n\t\t\t\t\t\t\tagents[index].move();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse cops[index].move();\r\n\t\t\t\t\tremaining.set(index,-1);\r\n\t\t\t\t\tstep++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlogger.info(\"randmove finished after \" + step + \"iterations.\");\r\n\t\t}", "@Override\r\n public int positionRandom() {\r\n int random = ((int) (Math.random() * arrayWords.length - 1) + 1);//define a random number with lengt more one for not getout the number zero\r\n return random;\r\n }", "public void chooseDirection(){\n Player player=board.getPlayer();\n if(player==null) return;\n if (getXCentrer()>board.getPlayer().getXCentrer()){\n setDirection(3);\n }\n else{\n setDirection(1);\n }\n }", "public static String generateOri(){\r\n String Orientation[] = {\"DownLeft\",\"Down\",\"DownRight\",\"UpLeft\",\"Up\",\"UpRight\",\"Left\",\"Right\"};\r\n Random r = new Random();\r\n int n = r.nextInt(8);\r\n return Orientation[n];\r\n }", "void rndSwapTwo() {\r\n\t\t// index 0 has the start city and doesn't change\r\n\t\t// hence the random#s are from 1 onwards\r\n\t\trndSwapTwo(1, this.length());\r\n\t}", "public Location getRandomLocation() {\n\t\tint x = rand.nextInt(WORLD_SIZE);\n\t\tint y = 12;\n\t\tint z = rand.nextInt(WORLD_SIZE);\n\t\treturn new Location(x, y, z);\n\t}", "@Override\r\n\tpublic void makeRandonMove() {\r\n\t\tif (randPlayer.getPlayerNumber() == game.getState().getTurn() && !game.getState().isFinished()) game.execute(randPlayer.requestAction(game.getState()));\r\n\t}", "private Position getRandomMove(TicTacToeBoard state) {\r\n\t\tArrayList<Position> availableMoves = new ArrayList<Position>();\r\n\t\tfor( int row = 0; row < TicTacToeBoard.SIZE; row++ ) {\r\n\t\t\tfor( int col = 0; col < TicTacToeBoard.SIZE; col++ ) {\r\n\t\t\t\tif( state.getState(row,col) == TicTacToeBoard.BLANK ) {\r\n\t\t\t\t\tavailableMoves.add(new Position(row,col));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn (Position)availableMoves.get(rand.nextInt(availableMoves.size()));\r\n\t}", "public void shuffle();" ]
[ "0.8297501", "0.816569", "0.80098695", "0.7943898", "0.7940506", "0.7860663", "0.76344335", "0.73907435", "0.7385895", "0.7383216", "0.73012495", "0.72325736", "0.71493226", "0.71193916", "0.7119239", "0.6945765", "0.69038373", "0.68877864", "0.6872759", "0.6849657", "0.6841223", "0.68392026", "0.682323", "0.68198663", "0.68078935", "0.6778804", "0.66681397", "0.6652116", "0.6471038", "0.64658344", "0.64134705", "0.63964164", "0.6384709", "0.63748354", "0.6356543", "0.63496023", "0.63316995", "0.6317476", "0.63151586", "0.6313291", "0.6291018", "0.62674624", "0.6263784", "0.6255641", "0.6255544", "0.62278146", "0.6227182", "0.62103003", "0.620443", "0.6201097", "0.6193421", "0.61931187", "0.6176403", "0.61549485", "0.6154096", "0.6128194", "0.6127558", "0.61151886", "0.61139095", "0.60876477", "0.60855466", "0.6050599", "0.60488516", "0.604473", "0.6043603", "0.60119915", "0.59958637", "0.59869397", "0.59753376", "0.59685344", "0.5950307", "0.59344727", "0.5930074", "0.5925786", "0.58777577", "0.5875875", "0.58662367", "0.58506745", "0.5847266", "0.5829174", "0.5824213", "0.582077", "0.58199656", "0.5814268", "0.58113813", "0.58105737", "0.5809454", "0.5792429", "0.5775761", "0.5775563", "0.5770166", "0.57558626", "0.57546777", "0.57460046", "0.57436806", "0.5736425", "0.5734304", "0.573407", "0.5732405", "0.57225114" ]
0.6706529
26
Method that returns the inverse direction
public static Direction inverse(Direction direction) { if (direction.isHorizontal()) { if (direction.equals(Direction.EAST)) return Direction.WEST; else return Direction.EAST; } else { if (direction.equals(Direction.NORTH)) return Direction.SOUTH; else return Direction.NORTH; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Direction invert() {\n switch (this) {\n case NORTH: return SOUTH;\n case SOUTH: return NORTH;\n case EAST: return WEST;\n case WEST: return EAST;\n case NORTH_EAST: return SOUTH_WEST;\n case NORTH_WEST: return SOUTH_EAST;\n case SOUTH_EAST: return NORTH_WEST;\n case SOUTH_WEST: return NORTH_EAST;\n default: return NULL;\n }\n }", "void reverseDirection();", "public Direction opposite() {\n return opposite;\n }", "public Direction getOppositeDirection() {\n\t\treturn opposite;\n\t}", "public Direction getOpposite() {\n if (equals(Direction.NORTH)) return Direction.SOUTH;\n else if (equals(Direction.EAST)) return Direction.WEST;\n else if (equals(Direction.SOUTH)) return Direction.NORTH;\n else if (equals(Direction.WEST)) return Direction.EAST;\n else return null;\n }", "public HexDirection opposite() {\n return values()[(ordinal() + 3) % 6];\n }", "public Direction invertTurns(){\n switch(this){\n case SPIN_BACK:\n return SPIN_BACK;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "public Direction invertAll(){\n switch(this){\n case STAY:\n return STAY;\n case SPIN_BACK:\n return SPIN_BACK;\n case FORWARD:\n return BACKWARD;\n case BACKWARD:\n return FORWARD;\n case SPIN_LEFT:\n return SPIN_RIGHT; \n case SPIN_RIGHT:\n return SPIN_LEFT;\n case ARC_LEFT:\n return ARC_RIGHT;\n case ARC_RIGHT:\n return ARC_LEFT; \n default:\n return this; \n }\n }", "public void reverseDirection() {\n\t\tdirection *= -1;\n\t\ty += 10;\n\t}", "public Direction reverse()\n {\n return new Direction(dirInDegrees + (FULL_CIRCLE / 2));\n }", "public RMTransform getTransformInverse() { return getTransform().invert(); }", "public static Direction getOppositeDirection ( Direction direction ) \r\n\t{\r\n\t\tswitch ( direction )\r\n\t\t{\r\n\t\t\tcase UP: return Direction.DOWN; \r\n\t\t\tcase DOWN: return Direction.UP; \r\n\t\t\tcase LEFT: return Direction.RIGHT; \r\n\t\t\tcase RIGHT: return Direction.LEFT; \r\n\t\t}\r\n\t\treturn Direction.NONE;\r\n\t}", "public static Direction opposite(Direction other) {\r\n\t\t\tif (other == Direction.UP) return Direction.DOWN;\r\n\t\t\telse if (other == Direction.DOWN) return Direction.UP;\r\n\t\t\telse if (other == Direction.LEFT) return Direction.RIGHT;\r\n\t\t\telse return Direction.LEFT;\t// RIGHT\r\n\t\t}", "private float reverseDirection(float dir) {\n if (dir < Math.PI) return (float) (dir+Math.PI);\n else return (float) (dir-Math.PI);\n }", "Edge inverse() {\n return bond.inverse().edge(u, v);\n }", "public Direction getOppositeDirection(Direction d)\n \t{\n \t\tswitch(d)\n \t\t{\n \t\tcase up:\n \t\t\treturn Direction.down;\n \t\tcase down:\n \t\t\treturn Direction.up;\n \t\tcase left:\n \t\t\treturn Direction.right;\n \t\tcase right:\n \t\t\treturn Direction.left;\n \t\tcase topleft:\n \t\t\treturn Direction.botright;\n \t\tcase topright:\n \t\t\treturn Direction.botleft;\n \t\tcase botleft:\n \t\t\treturn Direction.topright;\n \t\tcase botright:\n \t\t\treturn Direction.topleft;\n \t\tdefault:\n \t\t\treturn Direction.none;\n \t\t}\n \t}", "public void reverseDirection(Position ep) throws InvalidPositionException;", "void reverseTurnOrder() {\n turnOrder *= -1;\n }", "public void invert(boolean direction){\n intake.setInverted(direction);\n }", "public void invertOrientation() {\n\t\tPoint3D temp = getPoint(2);\n\t\tsetPoint(2, getPoint(1));\n\t\tsetPoint(1, temp);\n\n\t\tTriangleElt3D temp2 = getNeighbour(2);\n\t\tsetNeighbour(2, getNeighbour(1));\n\t\tsetNeighbour(1, temp2);\n\t\tif (this.getNetComponent() != null)\n\t\t\tthis.getNetComponent().setOriented(false);\n\t}", "default Vector3 getDirection() {\r\n return Vector3.fromXYZ(getDirX(), getDirY(), getDirZ());\r\n }", "int getDirection();", "public int getDirection();", "public double direction(){\n return Math.atan2(this.y, this.x);\n }", "static void changeDirectionBackwards() {\n\n if(--direction == -1)\n direction = 3;\n }", "public double bearingReverse() {\r\n return this.bearingReverse;\r\n }", "public Bearing reverse() {\n return Bearing.get( (this.bearing + 4) % 8);\n }", "@Override\n public boolean getInverted()\n {\n final String funcName = \"getInverted\";\n boolean inverted = motor.getInverted();\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", inverted);\n }\n\n return inverted;\n }", "public Position opposite(Position vp, Position ep) throws InvalidPositionException;", "@Override\n public void Invert() {\n\t \n }", "public float getDirection();", "String getDirection();", "public Fraction opposite() {\n return new Fraction (-numerator, denominator).reduce();\n }", "public Vector getDirection(){\n\t\treturn new Vector(_direction);\n\t}", "public String getDirection(){\n\t\tif(this.toRight)\n\t\t\treturn \"RIGHT\";\n\t\telse\n\t\t\treturn \"LEFT\";\n\t}", "public Vector2f negateLocal ()\n {\n return negate(this);\n }", "public Node opposite(Node n) {\n\t if (from == n)\n\t\treturn to;\n\t if (to == n)\n\t\treturn from;\n\t return null;\n\t}", "public static int getReverseDir(int dir) {\n return (dir + 2) & 3;\n }", "public void invert() {\n\t\tthis.vector.setXYZ(-this.vector.x(), -this.vector.y(), -this.vector.z());\n\t\tthis.energy = -this.energy;\n\t}", "public Matrix inverse() {\n\t\tMatrix a = copy();\n\t\tif (a.M != a.N) {\n\t\t\tthrow new RuntimeException(\"This matrix is not square!\");\n\t\t}\n\t\tMatrix i = identity(a.N);\n\t\tMatrix ai = a.augment(i);\n\t\tai = ai.specialrref();\n\t\tMatrix[] split = ai.split(a.N);\n\t\tif (split[0].equals(i)) {\n\t\t\treturn split[1];\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"This matrix is not invertible!\");\n\t\t}\n\t}", "void reverse();", "void reverse();", "public Fraction inverse() {\n return new Fraction (denominator, numerator).reduce();\n }", "public String backwards()\n\t{\n\t\tString answer = \"\";\n\t\tDLLNode cursor = tail;\n\t\twhile (cursor != null)\n\t\t{\n\t\t\tanswer = \"<--\" + cursor.data + answer;\n\t\t\tcursor = cursor.prev;\n\t\t}\n\n\t\tanswer = \"(null)\" + answer;\n\t\treturn answer;\n\t}", "public Vector2D neg()\n\t{\n\t\treturn this.mul(-1);\n\t}", "public IDnaStrand reverse();", "public interface Direction {\n /**\n * @param pos The position to apply the function to\n * @return A new position that was transformed from the passed in position\n */\n public Position apply(Position pos);\n \n /**\n * @return The opposite direction to the direction instance it was called on\n */\n public Direction getOpposite();\n}", "public Matrix opposite(){\r\n \tMatrix opp = Matrix.copy(this);\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\topp.matrix[i][j]=-this.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn opp;\r\n \t}", "public void reverseDirectionX()\n\t{\n\t\t\n\t\tvx = -vx;\n\t\t\n\t}", "public Index invert() {\n \t\tint n=length();\n \t\tIndex ni=new Index(n);\n \t\tfor (int i=0; i<n; i++) {\n \t\t\tni.set(this.get(i), i);\n \t\t}\n \t\treturn ni;\n \t}", "public Movement invert(Robot s) {\n return null;\n }", "public boolean getReverse() {\r\n return Reverse;\r\n }", "public boolean getReverse() {\r\n return Reverse;\r\n }", "public final void invert() {\n\tdouble s = determinant();\n\tif (s == 0.0)\n\t return;\n\ts = 1/s;\n\t// alias-safe way.\n\tset(\n\t m11*m22 - m12*m21, m02*m21 - m01*m22, m01*m12 - m02*m11,\n\t m12*m20 - m10*m22, m00*m22 - m02*m20, m02*m10 - m00*m12,\n\t m10*m21 - m11*m20, m01*m20 - m00*m21, m00*m11 - m01*m10\n\t );\n\tmul((float)s);\n }", "public Vector3 negateLocal () {\n return negate(this);\n }", "public ForgeDirection toForgeDirection()\n {\n for (ForgeDirection direction : ForgeDirection.VALID_DIRECTIONS)\n {\n if (this.x == direction.offsetX && this.y == direction.offsetY && this.z == direction.offsetZ)\n {\n return direction;\n }\n }\n\n return ForgeDirection.UNKNOWN;\n }", "Enumerator getDirection();", "public int getDirection()\r\n\t{\r\n\t\treturn direction;\r\n\t}", "public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "protected int mirrorDirection(int direction) {\n\t\tif (direction < 4) {\n\t\t\treturn (direction + 2)%4;\n\t\t} else {\n\t\t\treturn (direction + 2)%4 + 4;\n\t\t}\n\t}", "public double getDirectionView();", "public abstract int getDirection();", "public boolean isInversed() {\n return isinv != null && isinv.booleanValue();\n }", "default void negate()\n {\n getAxis().negate();\n setAngle(-getAngle());\n }", "public float getDirection()\r\n {\r\n return direction;\r\n }", "public boolean isOpposite() {\n return opposite;\n }", "public final void negate() {\n \n \tthis.m00 = -this.m00;\n \tthis.m01 = -this.m01;\n \tthis.m02 = -this.m02;\n this.m10 = -this.m10;\n this.m11 = -this.m11;\n this.m12 = -this.m12;\n this.m20 = -this.m20;\n this.m21 = -this.m21;\n this.m22 = -this.m22;\n }", "public void reverseY()\r\n {\r\n\t if(moveY < 0)\r\n\t\t moveY = moveY * (-1);\r\n\t else if(moveY > 0)\r\n\t\t moveY = moveY * (-1);\r\n }", "public float reverseVerticalDirection(float angle) {\n return (float) (2*Math.PI-angle);\n }", "public void invert()\n {\n assert isComplete;\n \n isInverted = !isInverted;\n }", "public void reverseX()\r\n {\r\n\t if(moveX < 0)\r\n\t\t moveX = moveX * (-1);\r\n\t else if(moveX > 0)\r\n\t\t moveX = moveX * (-1);\r\n }", "@Override\n public synchronized UnitConverter inverse() {\n if (inverse == null) {\n inverse = new ConcatenatedConverter(c2.inverse(), c1.inverse());\n inverse.inverse = this;\n }\n return inverse;\n }", "public int getDirection() {\n return direction;\n }", "public int getDirection() {\n return direction;\n }", "void unsetDirection();", "public void setReverseDirection(boolean reverseDirection)\n {\n mDirection = reverseDirection ? -1 : 1;\n }", "public void reverseDirectionY()\n\t{\n\t\t\n\t\tvy = -vy;\n\t}", "public double getDirectionMove();", "public int getDirection() {\n return direction;\n }", "public static Transform inverse(Transform t) {\n\t\tfloat inv_det = 1.0f / (t.a * t.d - t.c * t.b);\n\t\treturn transpose(t.d * inv_det, -t.c * inv_det, (t.c * t.ty - t.tx * t.d) * inv_det, -t.b * inv_det,\n\t\t\t\t\t\t t.a * inv_det, (t.tx * t.b - t.a * t.ty) * inv_det);\n\t}", "public Squarelotron inverseDiagonalFlip(int ring);", "public void inverse(Projection projection);", "public int getDirection() {\r\n\t\treturn direction;\r\n\t}", "public Direction getDirect() {\n \tif(xMoving && yMoving){\n \t\tif(right && down)\n \t\t\tdir = Direction.SOUTHEAST;\n \t\telse if(right && !down)\n \t\t\tdir = Direction.NORTHEAST;\n \t\telse if(!right && down)\n \t\t\tdir = Direction.SOUTHWEST;\n \t\telse\n \t\t\tdir = Direction.NORTHWEST;\n \t}\n \telse if(xMoving){\n \t\tdir = right ? Direction.EAST : Direction.WEST;\n \t}\n \telse if(yMoving){\n \t\tdir = down ? Direction.SOUTH : Direction.NORTH;\n \t}\n \treturn dir;\n }", "public float reverseHorizontalDirection(float angle) {\n if (angle <= Math.PI) return (float) (Math.PI-angle);\n else return (float) (3*Math.PI-angle);\n }", "public Vector3 invert()\n {\n this.scale(-1);\n return this;\n }", "public Vector3f getDirection() {\r\n\t\treturn new Vector3f(mDirection);\r\n\t}", "public int getDirection() {\n return direction_;\n }", "public void flip() {\r\n\t\tObject[] bak = path.toArray(new Direction[path.size()]);\r\n\t\tpath.clear();\r\n\t\tfor (int i = bak.length-1; i >= 0; i--) {\r\n\t\t\tpath.push((Direction) bak[i]);\r\n\t\t}\r\n\t}", "public boolean isInverted() {\n return this.inverted;\n }", "public Heading negate() {\r\n return new Heading(HeadingType.DEGREES, -this.degreeNum);\r\n }", "@Override\r\n\tpublic boolean reverseAccrualIt() {\n\t\r\n\t\t\r\n\t\treturn false;\r\n\t}", "protected final Direction getDirection() {\n\t\treturn tile.getDirection();\n\t}", "public double getDirectionFace();", "public String getDirection() {\r\n return direction;\r\n }", "@Override\n public Direction getDirection() {\n return null;\n }", "public boolean isInverted() {\n/* 59 */ return ((getData() & 0x8) != 0);\n/* */ }", "public String getDirection() {\n return direction;\n }", "private void flip()\r\n\t{\r\n\t\tif(heading == Direction.WEST)\r\n\t\t{\r\n\t\t\tsetDirection(Direction.EAST);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsetDirection(Direction.WEST);\r\n\t\t}\r\n\t}", "int getReverseEdgeKey();" ]
[ "0.81215703", "0.7949951", "0.78072655", "0.7616104", "0.74628115", "0.7440478", "0.7406472", "0.73841834", "0.73688483", "0.7313164", "0.7125187", "0.71173704", "0.70729595", "0.6939321", "0.69190085", "0.68361694", "0.68255603", "0.6653216", "0.66462237", "0.661609", "0.66084325", "0.66031903", "0.65876126", "0.65644825", "0.65549576", "0.6534703", "0.65332836", "0.6518993", "0.65142596", "0.6509013", "0.6437421", "0.6435032", "0.64282984", "0.64185596", "0.6415159", "0.6401757", "0.63759035", "0.63491464", "0.63450646", "0.63242954", "0.6316064", "0.6316064", "0.63152874", "0.62640613", "0.62608373", "0.62413853", "0.6234721", "0.6232892", "0.623193", "0.6221891", "0.6211448", "0.62076074", "0.62076074", "0.61891365", "0.6188944", "0.61810756", "0.6181065", "0.61723274", "0.61637783", "0.615998", "0.614801", "0.614467", "0.6136423", "0.61353904", "0.61224496", "0.61104506", "0.61101997", "0.61002487", "0.6096421", "0.6092966", "0.6088637", "0.6083702", "0.60706294", "0.60706294", "0.60702765", "0.6058499", "0.6052909", "0.6039907", "0.60350454", "0.60297257", "0.6020716", "0.6013654", "0.5999967", "0.5995509", "0.5989108", "0.5962343", "0.5955304", "0.595365", "0.59530306", "0.5944914", "0.5937474", "0.5934664", "0.59145343", "0.5894806", "0.58837056", "0.58707935", "0.58675104", "0.5864375", "0.586398", "0.585558" ]
0.7712266
3
Assigns values of HashMap to arbitrary class object fields
public static <T> T castMap(Map<String, String> fromMap, String keyPrefix, String separator, Class<T> clazz) { T ret = null; try { ret = clazz.newInstance(); Field[] fields = clazz.getFields(); for(Field f : fields) { Type t = f.getType(); String key = f.getName(); String value = fromMap.get(keyPrefix + separator + key); try { if(t == int.class || t == Integer.class) f.setInt(ret, Integer.parseInt(value != null ? value : "0")); else if(t == double.class || t == Double.class) f.setDouble(ret, Double.parseDouble(value != null ? value : "0.0")); else if(t == boolean.class || t == Boolean.class) f.setBoolean(ret, Boolean.valueOf(value)); else if(t == char.class || t == Character.class) f.setChar(ret, value != null ? value.charAt(0) : '\0'); else if(t == long.class || t == Long.class) f.setLong(ret, Long.parseLong(value != null ? value : "0")); else if(t == float.class || t == Float.class) f.setFloat(ret, Float.parseFloat(value != null ? value : "0.0")); else if(t == short.class || t == Short.class) f.setShort(ret, Short.parseShort(value != null ? value : "0")); else if(Enum.class.isAssignableFrom((Class)t) && value != null) f.set(ret, Enum.valueOf((Class)t, value)); else if(t == Date.class) f.set(ret, value != null ? Main.fmt().parse(value) : new java.util.Date()); else if(t == String.class) f.set(ret, value); else f.set(ret, castMap(fromMap, keyPrefix + separator + key, separator, (Class)t)); } catch(IllegalArgumentException | ParseException e) { log.error(e.toString(), e); } } } catch(InstantiationException | IllegalAccessException e) { log.error(e.toString(), e); } return ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setHashMap();", "public abstract void setData(Map<ID, T> data);", "private void toMap(Class<?> clazz, OptionMap map) {\n if (clazz == Options.class) {\n return;\n }\n\n toMap(clazz.getSuperclass(), map);\n\n for (Field field : clazz.getDeclaredFields()) {\n field.setAccessible(true);\n int modifiers = field.getModifiers();\n\n if (!Modifier.isTransient(modifiers) && !Modifier.isPrivate(modifiers)) {\n try {\n String name = field.getName();\n Object value = field.get(this);\n\n if (value != null && field.isAnnotationPresent(JavaScript.class)) {\n value = ConvertUtil.convertToJS(value.toString());\n }\n\n if (value != null) {\n setValue(name, value, map);\n }\n } catch (Exception e) {}\n }\n }\n }", "void setMap(Map aMap);", "public void set(Map<Prop, Object> map, Object value) {\n if (value != null && !type.isInstance(value)) {\n throw new RuntimeException(\"value for property must have type \" + type);\n }\n map.put(this, value);\n }", "public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}", "@Override\n\tpublic void convertitMap(Map<String, Object> map) {\n\t\t\n\t}", "public Object map(String key, Object input);", "public void setMetaData(HashMap pMetaData) ;", "public synchronized static void setFieldMap(String table, Map<String, String> javaToDbFieldMap) {\n ConcurrentHashMap<String, String> java2DbMap = getJava2DBFieldMap(table);\n ConcurrentHashMap<String, String> db2JavaMap = getDB2JavaFieldMap(table);\n if (javaToDbFieldMap != null && !javaToDbFieldMap.isEmpty()) {\n for (Map.Entry<String, String> entry : javaToDbFieldMap.entrySet()) {\n if (isNotBlank(entry.getKey()) && isNotBlank(entry.getValue())) {\n java2DbMap.put(entry.getKey(), entry.getValue());\n db2JavaMap.put(entry.getValue(), entry.getKey());\n }\n }\n }\n }", "@Test\r\n public void testSetMarks() {\r\n System.out.println(\"setMarks\");\r\n HashMap<String, Integer> marks = null;\r\n Student instance = new Student();\r\n instance.setMarks(marks);\r\n \r\n }", "public void setFields(Map<String,String> fields)\n\t{\n\t\tList<Field> localFields = new ArrayList<Field>();\n\t\tIterator<Map.Entry<String,String>> it = fields.entrySet().iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tMap.Entry<String,String> pairs = it.next();\n\t\t\tlocalFields.add(new Field(pairs.getKey(), pairs.getValue()));\n\t\t}\n\n\t\tsetFields(localFields);\n\t}", "public abstract <T> void update(String id, Map<String, Object> objectMap, Class<T> clazz);", "private void assignFields(HashMap<String, String> map) {\n driver = map.get(\"driver\");\n address = \"jdbc:mysql://\" + map.get(\"address\");\n username = map.get(\"username\");\n password = map.get(\"password\");\n timeOut = map.get(\"timeout\");\n dbName = map.get(\"dbname\");\n }", "public FinalClassExample(int id, String name, HashMap<String, String> testMap) {\n\t\tsuper();\n\t\tSystem.out.println(\"Performing Deep Copy for Object initialization\");\n\t\tthis.id = id;\n\t\tthis.name = name;\n\t\tHashMap<String, String> tempMap = new HashMap<>();\n\t\tIterator<String> keySet = testMap.keySet().iterator();\n\t\twhile(keySet.hasNext()) {\n\t\t\tString key = keySet.next();\n\t\t\ttempMap.put(key, testMap.get(key));\n\t\t}\n\t\tthis.testMap = tempMap;\n\t\t\n\t}", "public Object putTransient(Object key, Object value);", "@Override\n public void init(HashMap<String, Object> map) {\n this.title = (String) map.get(\"title\");\n this.url = (String) map.get(\"url\");\n }", "private BuildsMapping(long hash) {\n\t\tthis.hash = hash;\n\t\tthis.attribute = AttributeMapping.properify(name());\n\t}", "private <T extends Reference> void buildMap(Map<String, T> map, List<T> objects) {\n for (T candidateObject : objects) {\n String rid = candidateObject.getId();\n log.debug(\"...... caching RID: {}\", rid);\n map.put(rid, candidateObject);\n }\n }", "public JbootVoModel set(Map<String, Object> map) {\n super.putAll(map);\n return this;\n }", "public abstract void putAll(AbstractIntHashMap map);", "public void setProperties(HashMap<String, String> map)\n {\n this.properties = map;\n }", "@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}", "protected void assignObjectField(Object jsonResponseInstance, JsonElement jsonElement, String member, Class clazz){\n\n Field memberField;\n try {\n memberField = jsonResponseInstance.getClass().getDeclaredField(member);\n memberField.setAccessible(true);\n if (jsonElement == null){\n memberField.set(jsonResponseInstance, clazz.newInstance());\n }else {\n memberField.set(jsonResponseInstance, gson.fromJson(jsonElement, clazz));\n }\n } catch (NoSuchFieldException | InstantiationException | IllegalAccessException e) {\n e.printStackTrace();\n }\n }", "public static Object fromMap(Class clazz, Map map) {\n try {\n \tObject bean = JSONDeserializer.read(clazz, map);\n \treturn bean;\n } catch (Exception e) {\n throw new RuntimeException(\"Unable to populate \" + clazz.getName() + \" from \" + map, e);\n }\n\t\t\n\t}", "private void updateMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (newMap[i][j] instanceof Player) {\n\t\t\t\t\tmap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof BlankSpace) {\n\t\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Fence) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "public static void getHashMapValues() {\n\t\tMap<Integer, String> map = createHashMap();\n\t\t\n\t\t//Get value from key.\n\t\tSystem.out.println(\"Map value for key 1: \" + map.get(1));\n\n\t\t\n\t\t//2. using custom object as key\n\t\tMap<Account, String> accountMap = createAccountMap();\n\t\t\n\t\tAccount account = new Account(\"John\", 1, 100);\n\t\t\n\t\tSystem.out.println(\"**********Get value from Map:*********** \");\n\t\tSystem.out.println(\"Map Value for key as Account: \"\n\t\t\t\t+ accountMap.get(account));\n\t}", "private static void collectReadableProperties(Map<String, PojoProperty> map,\n Class<?> cls) {\n for (final Method m : cls.getDeclaredMethods()) {\n //if (isStaticOrPrivate(m)) continue;\n if (isStatic(m.getModifiers())) continue;\n if (1 != m.getParameterTypes().length)// get=0,set=1\n continue;\n Class<?> returnType = m.getReturnType();\n if (returnType == Object.class || returnType.getName().equals(\"groovy.lang.MetaClass\")) {\n continue;\n }\n Class<?> propType = m.getParameterTypes()[0];\n if (returnType == Void.TYPE && propType.getName().equals(\"groovy.lang.MetaClass\")) {\n continue;\n }\n\n String name = m.getName();\n String propName = null;\n String originalPropName = null;\n boolean isBool = false;\n if (name.startsWith(\"set\") && name.length() > 3) {\n originalPropName = name.substring(3);\n propName = decapitalize(originalPropName, true);\n if (propType == Boolean.TYPE) {\n isBool = true;\n }\n }\n if (propName == null) continue;\n\n String getMethodName = (isBool ? \"is\" : \"get\") + originalPropName;\n try {\n Field field;\n try {\n field = cls.getDeclaredField(propName);\n } catch (NoSuchFieldException e) {\n propName = decapitalize(originalPropName, false);\n field = cls.getDeclaredField(propName);\n }\n if (map.containsKey(propName))\n continue;\n\n m.setAccessible(true);\n Method getMethod;\n getMethod = cls.getDeclaredMethod(getMethodName);\n getMethod.setAccessible(true);\n\n PojoProperty rp = new PojoProperty(propName, propType);\n rp.setGetMethod(getMethod);\n rp.setSetMethod(m);\n rp.setField(field);\n map.put(propName, rp);\n } catch (NoSuchMethodException | NoSuchFieldException e) {\n //e.printStackTrace();\n logger.warn(String.format(\"实体方法:%s 或 字段:%s 不存在\", getMethodName, propName));\n }\n }\n\n for (final Field m : cls.getDeclaredFields()) {\n //if (isStaticOrPrivate(m)) continue;\n if(isStatic(m.getModifiers())) continue;\n String propName = m.getName();\n if (map.containsKey(propName)) continue;\n Class<?> returnType = m.getType();\n m.setAccessible(true);\n PojoProperty rp = new PojoProperty(propName, returnType);\n rp.setField(m);\n map.put(propName, rp);\n }\n }", "private void copyMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (map[i][j] instanceof Player) {\n\t\t\t\t\tnewMap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof BlankSpace) {\n\t\t\t\t\tnewMap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof Mho) {\n\t\t\t\t\tnewMap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (map[i][j] instanceof Fence) {\n\t\t\t\t\tnewMap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "public void setMapBean(MapBean aMap) {\n theMap = aMap;\n }", "@Override\r\n public void inject(ConcurrentMap<String, Object> singleton, Object bean, Field field) {\n Reflections.setField(bean, field, field.getAnnotation(Value.class).value());\r\n }", "@SuppressWarnings(\"unchecked\")\n protected void setSimpleObjects(Object obj) {\n simpleObjects = (Map<String, Object>) obj;\n }", "public void method_7078(class_29 var1) {\r\n super();\r\n this.field_6898 = new HashMap();\r\n this.field_6899 = new ArrayList();\r\n this.field_6900 = new HashMap();\r\n this.field_6897 = var1;\r\n this.method_7083();\r\n }", "void set(String key, Object value);", "public void setInstanceOfMapForTesting(){\n instanceOfMap = null;\n }", "public MyHashMap() {\n map = new HashMap();\n }", "public void setMappedClass(Class mappedClass) {\n\t\tthis.mappedClass = mappedClass;\n\t\ttry {\n\t\t\tthis.defaultConstruct = mappedClass.getConstructor((Class[]) null);\n\t\t}\n\t\tcatch (NoSuchMethodException ex) {\n\t\t\tthrow new DataAccessResourceFailureException(new StringBuffer().append(\"Failed to access default constructor of \").append(mappedClass.getName()).toString(), ex);\n\t\t}\n\t\tthis.mappedFields = new HashMap();\n\t\tField[] f = mappedClass.getDeclaredFields();\n\t\tfor (int i = 0; i < f.length; i++) {\n\t\t\tPersistentField pf = new PersistentField();\n\t\t\tpf.setFieldName(f[i].getName());\n\t\t\tpf.setColumnName(underscoreName(f[i].getName()));\n\t\t\tpf.setJavaType(f[i].getType());\n\t\t\tthis.mappedFields.put(pf.getColumnName(), pf);\n\t\t}\n\t}", "@Override\r\n protected void setFieldValues (Object ... fields)\r\n {\n \r\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public void loadMap(Map map, Class<?> keyClass, Class<?> valueClass)\n throws Exception {\n int length = readInt();\n\n for (int i = 0; i < length; i++) {\n Object key = keyClass.newInstance();\n Object value = valueClass.newInstance();\n\n if (keyClass.getName()\n .endsWith(\"String\")) {\n key = readString();\n } else {\n load(key);\n }\n\n if (valueClass.getName()\n .endsWith(\"String\")) {\n value = readString();\n } else {\n load(value);\n }\n\n map.put(key, value);\n }\n }", "public void method_6436() {\r\n super();\r\n this.field_6225 = new ArrayList();\r\n this.field_6226 = new HashMap();\r\n }", "void put(String name, Object value);", "public Dict(Obj value) {\n this.value = value;\n }", "public void _copyToEJB(java.util.Hashtable h) {\n java.sql.Timestamp localRecdate = (java.sql.Timestamp) h.get(\"recdate\");\n Short localObjtype = (Short) h.get(\"objtype\");\n java.lang.String localEventtype = (java.lang.String) h.get(\"eventtype\");\n Integer localObjid = (Integer) h.get(\"objid\");\n\n if ( h.containsKey(\"recdate\") )\n setRecdate((localRecdate));\n if ( h.containsKey(\"objtype\") )\n setObjtype((localObjtype).shortValue());\n if ( h.containsKey(\"eventtype\") )\n setEventtype((localEventtype));\n if ( h.containsKey(\"objid\") )\n setObjid((localObjid).intValue());\n\n}", "public Object[] adapt( Map<String, Object> objs, Object arg );", "public void m1253a(Map<C0206k, Object> map) {\n if (map == null) {\n return;\n }\n if (this.f776a == null) {\n this.f776a = map;\n } else {\n this.f776a.putAll(map);\n }\n }", "void setContent(Map<String, Object> content);", "Object put(Object key, Object value);", "private void method_980(ObjectInputStream var1) {\n var1.defaultReadObject();\n this.a = new HashMap();\n this.b = new HashMap();\n Map var2 = (Map)var1.readObject();\n this.putAll(var2);\n }", "void putValue(String key, Object data);", "public final /* bridge */ /* synthetic */ void mo6480a(Object obj) {\n this.f9049c.mo6949a((Map) obj, this.f9047a, this.f9048b);\n }", "public abstract void set(String key, T data);", "public abstract Map<String, Object> toMap(T object);", "private void mapObject(Object obj) {\n if (!objectIdMap.containsKey(obj))\n objectIdMap.put(obj, objectIdMap.size());\n if (obj instanceof Map) {\n Map dict = (Map) obj;\n Set<Map.Entry<String, Object>> de = dict.entrySet();\n for (Map.Entry<String, Object> e : de)\n mapObject(e.getKey());\n for (Map.Entry<String, Object> e : de)\n mapObject(e.getValue());\n } else if (obj instanceof List) {\n List list = (List) obj;\n for (int i = 0; i < list.size(); i++)\n mapObject(list.get(i));\n } else if (obj instanceof String || obj instanceof Float || obj instanceof Double ||\n obj instanceof Integer || obj instanceof Long || obj instanceof byte[] ||\n obj instanceof Date || obj instanceof Boolean) {\n // do nothing.\n } else\n throw new IllegalStateException(\"Incompatible object \" + obj + \" found\");\n }", "void writeObject(Map<Object, Object> map);", "private void setValue(String name, Object value, OptionMap map) {\n if (name.contains(\"_\")) {\n String pcs[] = name.split(\"\\\\_\", 2);\n name = pcs[0];\n OptionMap submap = (OptionMap) map.get(name);\n\n if (submap == null) {\n submap = new OptionMap();\n }\n\n setValue(pcs[1], value, submap);\n map.put(name, submap);\n } else {\n map.put(name, value);\n }\n }", "public void method_1882(Map var1) {\r\n super.method_1449();\r\n this.field_1677 = var1;\r\n }", "protected void fillAdditionalFields(U user, Map<String, Object> map) {\n\t}", "public void setObject(Object object) {\n\t\tif(object==null)\n\t\t\treturn;\n\t\ttry {\n\t\t\t//BeanUtils.copyProperties(this,object);\n\t\t\tMap map=PropertyUtils.describe(object);\n\t\t\tSet set=map.keySet();\n\t\t\tIterator i=set.iterator();\n\t\t\twhile(i.hasNext())\n\t\t\t{\n\t\t\t\tStringBuffer method=new StringBuffer();\n\t\t\t\tmethod.append(\"get\");\n\t\t\t\tObject key=i.next();\n\t\t\t\t\n\t\t\t\tString s=(String)key;\n\t\t\t\tif(s.equals(\"class\"))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tString first=s.substring(0,1);\n\t\t\t\tmethod.append(first.toUpperCase());\n\t\t\t\tmethod.append(s.substring(1));\n\t\t\t\t//System.out.println(method);\n\t\t\t\t//Class clas=PropertyUtils.getPropertyType(dist,s);\n\t\t\t\tObject value=null;\n\t\t\t\tboolean po=false;\n\t\t\t\tClass clas=PropertyUtils.getPropertyType(object,s);\n\t\t\t\t\n\t\t\t\tif(clas==String.class)\n\t\t\t\t{\n\t\t\t\t\tvalue=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas==Long.class)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tvalue=temp.toString();\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas== Date.class)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tDate d=(Date)temp;\n\t\t\t\t\tvalue=TimeUtil.getTheTimeStr(d);\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas== Double.class)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tvalue=temp.toString();\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas== BigDecimal.class)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tvalue=temp.toString();\n\t\t\t\t\tpo=true;\n\t\t\t\t}\n\t\t\t\tif(clas==Set.class)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(clas==List.class)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(clas==Map.class)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(clas.isAssignableFrom(Collection.class))\n\t\t\t\t\tcontinue;\n\t\t\t\tif(!po)\n\t\t\t\t{\n\t\t\t\t\tObject temp=MethodUtils.invokeExactMethod(object,method.toString(),null);\n\t\t\t\t\tif(temp!=null)\n\t\t\t\t\tvalue=MethodUtils.invokeExactMethod(temp,\"getId\",null);\n\t\t\t\t}\n\t\t\t\tif(value!=null)\n\t\t\t\t{\n\t\t\t\t\tthis.set(s,value);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalAccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchMethodException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "default <T> T setAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers()) || Modifier.isTransient(field.getModifiers())) continue;\n\n try {\n set(field.getName(), field.get(object));\n } catch (IllegalAccessException e) {\n //hopefully we will be fine\n e.printStackTrace();\n }\n }\n\n return object;\n }", "public void setItemCollection(HashMap<String, Item> copy ){\n \titemCollection.putAll(copy);\r\n }", "@SuppressWarnings(\"unchecked\")\n\t\t\t@Override\n\t\t\tprotected Object getOrCreateAndSetProperties(final Class<?> entityClass,\n\t\t\t\t\tfinal GQLDynamicAttributeRegistry dynamicAttributeRegistry,\n\t\t\t\t\tfinal Map<String, Object> fieldValueMap) {\n\t\t\t\tfinal String id = (String) fieldValueMap.get(schemaConfig.getAttributeIdName());\n\t\t\t\tfinal Optional<?> existing = StringUtils.isEmpty(id)\n\t\t\t\t\t\t? Optional.empty()\n\t\t\t\t\t\t: dataModel.getById(entityClass, id);\n\t\t\t\tObject entity;\n\t\t\t\ttry {\n\t\t\t\t\tentity = existing.isPresent() ? existing.get() : entityClass.newInstance();\n\t\t\t\t} catch (InstantiationException | IllegalAccessException e) {\n\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t}\n\t\t\t\t// Set properties\n\t\t\t\tfieldValueMap.entrySet().stream().forEach(entry -> {\n\t\t\t\t\tfinal Optional<IGQLDynamicAttributeSetter<Object, Object>> dynamicAttributeSetter = dynamicAttributeRegistry\n\t\t\t\t\t\t\t.getSetter(entityClass, entry.getKey());\n\t\t\t\t\tif (!schemaConfig.getAttributeIdName().equals(entry.getKey())) {\n\t\t\t\t\t\tObject value = entry.getValue();\n\t\t\t\t\t\tif (entry.getValue() instanceof Map) {\n\t\t\t\t\t\t\tfinal Class<?> propertyType = FieldUtils.getField(entity.getClass(), entry.getKey(), true)\n\t\t\t\t\t\t\t\t\t.getType();\n\t\t\t\t\t\t\tvalue = getOrCreateAndSetProperties(propertyType, dynamicAttributeRegistry,\n\t\t\t\t\t\t\t\t\t(Map<String, Object>) entry.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (dynamicAttributeSetter.isPresent()) {\n\t\t\t\t\t\t\tdynamicAttributeSetter.get().setValue(entity, value);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tFieldUtils.writeField(entity, entry.getKey(), value, true);\n\t\t\t\t\t\t\t} catch (final IllegalAccessException 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});\n\t\t\t\treturn entity;\n\t\t\t}", "void copyPropertiesToMetas( Object source, Object target );", "public MagicDictionary() {\n this.map = new HashMap<>();\n }", "public IntObjectHashMap() {\n resetToDefault();\n }", "public static <T> HashMap<String, Object> objectToMap(T x)\n\t{\n\t\tHashMap<String,Object> map = new HashMap<String, Object>();\n\t\tField[] fields = x.getClass().getDeclaredFields();\n\t\tfor(Field field : fields)\n\t\t{\n\t\t\tfield.setAccessible(true);\n\t\t\tif(!field.isAnnotationPresent(Special.class))\n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\tif(field.get(x) != null)\n\t\t\t\t\t\tmap.put(field.getName(), field.get(x));\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IllegalAccessException 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}\n\t\t}\n\t\treturn map;\n\t}", "void copyMetasToProperties( Object source, Object target );", "public static void copyPropertiesFromMapToBean(Object destVO,Map srcMap) {\n\t\tIterator keys = srcMap.keySet().iterator();\n\n\t\ttry {\n\t\t\tString key ;\n\t\t\tString name ;\n\t\t\tClass destType;\n\t\t\tObject value;\n\t\tfor (; keys.hasNext();) {\n\t\t\tkey = (String) keys.next();\n\t\t\tname = StringUtils.firstTwoWordToLowerCase(key);\n\t\t\tdestType = PropertyUtils.getPropertyType(destVO, name);\n\t\t\t\t\t\t\n\t\t\tvalue = srcMap.get(key);\n\t\t\t\tif(destType!=null && srcMap.get(key)!=null && !srcMap.get(key).equals(\"null\")){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tBeanUtils.setProperty(destVO, name, srcMap.get(key));\n\t\t\t\t\t\t//BeanUtils.\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t//logger.error(\"复制属性错误 \" + e.getMessage(), e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t} catch (IllegalAccessException e) {\n\t\t\tlogger.error(\"BeanUtils复制属性异常 \" + e.getMessage(), e);\n\t\t} catch (InvocationTargetException e) {\n\t\t} catch(Exception e){\n\t\t\tlogger.error(\"\" + e.getMessage(), e);\n\t\t}\n\t}", "public static void cloneObjectByFields(final Object source, Map<String, Field> srcFieldMap, \n\t\t\tObject destination, Map<String, Field> destFieldMap) throws Exception {\n\t\t\n\t\tfor (String fieldName : srcFieldMap.keySet()) {\n\t\t\t// Check if the field is able to be copied i.e. exists in both source and destination\n\t\t\tField destField = destFieldMap.get(fieldName);\n\t\t\tif (destField == null) continue;\n\n\t\t\t// Copy field value by Field.get() and Field.set()\n\t\t\tdestField.set(destination, srcFieldMap.get(fieldName).get(source));\n\t\t}\n\t}", "void put(String key, Object value);", "@Override\n public void putValue(String key, Object value) {\n\n }", "public abstract void map(String key, String value) throws Exception;", "public final static void resolve(Class<?> clazz, Map<String, Object> instanceModel, FieldName[] fieldNames) {\n for(FieldName fieldName : fieldNames) {\n Object fieldValue = instanceModel.get(fieldName.getFieldName());\n if (fieldValue == null) {\n Object defaultValue = getDefaultValue(fieldValue);\n instanceModel.put(fieldName.getFieldName(), defaultValue);\n }\n }\n }", "@Override\r\n\tpublic void putObject(Object key, Object value) {\n\t\t\r\n\t}", "private static void fillupmap(Map<String, Object> m) {\n\t\tRectangle r =new Rectangle(\"A\",2,3);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tr =new Rectangle(\"B\",4,1);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tCircle c =new Circle(\"C\",3);\r\n\t\tm.put(c.getCname(),c);\r\n\t\tc =new Circle(\"D\",4);\r\n\t\tm.put(c.getCname(),c);\r\n\t\t\r\n\t}", "void setValue4Po(String poFieldName, Object val);", "public void setHashMap(HashMap<String, String> HashMap) {\n _toAdd = HashMap;\n }", "private MapTransformer(Map map) {\n super();\n iMap = map;\n }", "public abstract void setProteins(Map<String, Protein> proteins);", "public void setFeatureInfoHashMap(LinkedHashMap<String, HashMap<String, String>> featureInfoHashMap) {\n this.featureInfoHashMap = featureInfoHashMap;\n\n }", "public Map instantiateBackingMap(String sName);", "public void mo9224a(HashMap<String, String> hashMap) {\n }", "public void setProperties(Map properties);", "public static synchronized void putAll(Map<? extends Class<?>, ? extends String> map) {\n\t\tfor (Class<?> entry : ClassRegistry.primitives.keySet()){\n\t\t\tif (map.containsKey(entry))\n\t\t\t\tthrow new IllegalArgumentException(\"A primitive type cannot be added to the class dictionary.\");\n\t\t}\n\t\tClassRegistry.dictionary.putAll(map);\n\t}", "public void setFields(Map fields_p) throws Exception\r\n {\r\n m_fields = fields_p;\r\n\r\n m_clonedfields = createCloneFromFields(fields_p);\r\n }", "public static void assign(Object to, Object from) throws InvocationTargetException, IllegalAccessException {\n Class fromClass = from.getClass();\n Class toClass = to.getClass();\n\n ArrayList<Method> getters = getGetters(fromClass.getMethods());\n ArrayList<Method> setters = getSetters(toClass.getMethods());\n for (var f:getters){\n for (var t:setters){\n if (f.getName().substring(3).equals(t.getName().substring(3))\n && f.getReturnType().equals(t.getParameterTypes()[0])){\n Object returnVal = t.invoke(to, f.invoke(from));\n }\n\n }\n }\n\n }", "public static Object fill(Object target, Map<String, Object> source, boolean useProperties)\n\tthrows IntrospectionException, IllegalAccessException, InvocationTargetException\n {\n\tif (useProperties) {\n\t BeanInfo info = Introspector.getBeanInfo(target.getClass());\n\n\t PropertyDescriptor[] props = info.getPropertyDescriptors();\n\t for (int i = 0; i < props.length; ++i) {\n\t\tPropertyDescriptor prop = props[i];\n\t\tString name = prop.getName();\n\t\tMethod setter = prop.getWriteMethod();\n\t\tif (setter != null && !Modifier.isStatic(setter.getModifiers())) {\n\t\t //System.out.println(target + \" \" + name + \" <- \" + source.get(name));\n\t\t setter.invoke(target, new Object[] { source.get(name) });\n\t\t}\n\t }\n\t}\n\n\tField[] ff = target.getClass().getDeclaredFields();\n\tfor (int i = 0; i < ff.length; ++i) {\n\t Field field = ff[i];\n int fieldMod = field.getModifiers();\n\t if (Modifier.isPublic(fieldMod) && !(Modifier.isFinal(fieldMod) ||\n Modifier.isStatic(fieldMod)))\n {\n\t\t//System.out.println(target + \" \" + field.getName() + \" := \" + source.get(field.getName()));\n\t\ttry {\n\t\t field.set(target, source.get(field.getName()));\n\t\t} catch (IllegalArgumentException iae) {\n\t\t // no special error processing required\n }\n\t }\n\t}\n\n\treturn target;\n }", "public StandardValues() {\n super(ForwardingMap.this);\n }", "public void setDatos(HashMap datos) {\r\n this.datos = datos;\r\n }", "protected ForwardingMapEntry() {}", "private static Object mapValueToJava(Object value) {\n if (value instanceof Map) {\n value = ((Map<?, ?>) value).toMap();\n } else if (value instanceof Sequence) {\n value = ((Sequence<?>) value).toMappedList();\n } else if (value instanceof net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) {\n value = ((net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) value).toMappedSet();\n }\n return value;\n }", "public void init(HardwareMap ahwMap) {\n\n// Giving hwMap a value\n hwMap = ahwMap;\n\n// Declaring servos to use in other classes\n claw = hwMap.get(Servo.class, \"servoClaw\");\n clawLeft = hwMap.get(Servo.class, \"servoClawLeft\");\n clawRight = hwMap.get(Servo.class, \"servoClawRight\");\n }", "protected Map createCloneFromFields(Map fields_p) throws Exception\r\n {\r\n Map result = new HashMap();\r\n Set keys = fields_p.keySet();\r\n for (Iterator iterator = keys.iterator(); iterator.hasNext();)\r\n {\r\n String name = (String) iterator.next();\r\n OwEditField value = (OwEditField) fields_p.get(name);\r\n OwEditField clonedValue = new OwEditField(value.getFieldDefinition(), value.getValue());\r\n result.put(name, clonedValue);\r\n }\r\n return result;\r\n }", "public void bind(NameValue that) {\n for( Entry<String, Object> e: that) {\n String key=e.getKey();\n if (this.containsKey(key))\n this.getStringProperty(key).set(that.getString(key));\n else\n put(key, that.getStringProperty(key));\n }\n }", "private DependencyManager(Map<TypedKey<?>, Object> inputs)\n\t{\n\t\tmap.putAll(inputs);\n\t}", "private static void setValue(Object object, String fieldName, Object fieldValue) \n throws NoSuchFieldException, IllegalAccessException {\n \n Class<?> studentClass = object.getClass();\n while(studentClass != null){\n Field field = studentClass.getDeclaredField(fieldName);\n field.setAccessible(true);\n field.set(object, fieldValue);\n //return true;\n } \n //return false;\n }", "@Override\n public void prepare(Map conf) {\n this.idToAssignment = new ConcurrentHashMap<>();\n this.idToName = new ConcurrentHashMap<>();\n this.nameToId = new ConcurrentHashMap<>();\n }", "@Override\n public void invoke(Stack stack) {\n try {\n StackEffect se = (StackEffect) stack.pop().object;\n Symbol fieldName = (Symbol) stack.pop().object;\n Object instance = stack.pop().object;\n Object value = stack.pop().object;\n CheckedType className = se.getOutputTypes().get(0);\n\n Field field = Class.forName(className.toSymbol().symbol).getField(fieldName.symbol);\n field.set(instance,value);\n stack.push( new JavaType(instance.getClass()), instance );\n } catch (NoSuchFieldException e) {\n throw new RuntimeException(\"Unable to set instance field.\",e);\n } catch (ClassNotFoundException e) {\n throw new RuntimeException(\"Unable to set instance field.\",e);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(\"Unable to set instance field.\",e);\n }\n }", "public Player(String name, Map<Integer,Element> moves){\n this.name = name;\n this.moves = moves;\n}", "public abstract void setData(Map attributes, Iterator accessPoints);", "public static void main(String[] args) {\n\t\tHashMap<String, String> h1 = new HashMap<String,String>();\n\t\th1.put(\"1\", \"first\");\n\t\th1.put(\"2\", \"second\");\n\t\t\n\t\tString s = \"original\";\n\t\t\n\t\tint i=10;\n\t\t\n\t\tFinalClassExample ce = new FinalClassExample(i,s,h1);\n\t\t\n\t\t//Lets see whether its copy by field or reference\n\t\tSystem.out.println(s==ce.getName());\n\t\tSystem.out.println(h1 == ce.getTestMap());\n\t\t//print the ce values\n\t\tSystem.out.println(\"ce id:\"+ce.getId());\n\t\tSystem.out.println(\"ce name:\"+ce.getName());\n\t\tSystem.out.println(\"ce testMap:\"+ce.getTestMap());\n\t\t//change the local variable values\n\t\ti=20;\n\t\ts=\"modified\";\n\t\th1.put(\"3\", \"third\");\n\t\t//print the values again\n\t\tSystem.out.println(\"ce id after local variable change:\"+ce.getId());\n\t\tSystem.out.println(\"ce name after local variable change:\"+ce.getName());\n\t\tSystem.out.println(\"ce testMap after local variable change:\"+ce.getTestMap());\n\t\t\n\t\tHashMap<String, String> hmTest = ce.getTestMap();\n\t\thmTest.put(\"4\", \"new\");\n\t\t\n\t\tSystem.out.println(\"ce testMap after changing variable from accessor methods:\"+ce.getTestMap());\n\n\t}", "public Value put(Key key, Value thing) ;" ]
[ "0.6303927", "0.5741376", "0.57010496", "0.5626471", "0.56222653", "0.5616635", "0.5599605", "0.55232644", "0.5438569", "0.5433349", "0.5427123", "0.5409504", "0.5405406", "0.5404408", "0.5342606", "0.5324198", "0.53194624", "0.5317674", "0.53066695", "0.53023016", "0.5300324", "0.5280448", "0.52658176", "0.5259614", "0.52531767", "0.52323353", "0.5227766", "0.5220286", "0.520274", "0.5200973", "0.51998335", "0.5190103", "0.5171954", "0.5168944", "0.5167517", "0.51587343", "0.51523423", "0.5152151", "0.5144716", "0.51437277", "0.5122133", "0.5113285", "0.5104591", "0.5096539", "0.50816727", "0.50753677", "0.50752354", "0.5065854", "0.5045745", "0.50323844", "0.50320995", "0.50308204", "0.5026329", "0.5017631", "0.5016451", "0.5011609", "0.50079274", "0.50047326", "0.5003784", "0.5002484", "0.49965513", "0.4995087", "0.49842674", "0.497871", "0.49711344", "0.49527082", "0.49448287", "0.49427778", "0.49363625", "0.49358034", "0.4934153", "0.49307486", "0.49303418", "0.49284807", "0.49250296", "0.49241948", "0.4920457", "0.49156183", "0.49129725", "0.49061063", "0.49007395", "0.48984262", "0.4889391", "0.48774529", "0.4875473", "0.48741004", "0.48738047", "0.486793", "0.48607168", "0.48594847", "0.48592177", "0.4854119", "0.48482904", "0.4846787", "0.48460943", "0.4841747", "0.4840977", "0.48405147", "0.48384634", "0.48367316", "0.4829714" ]
0.0
-1
genero schermata fxml con le informazioni e le riempio
public void populateUserInformation() { ViewInformationUser viewInformationUser = new ViewFXInformationUser(); viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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() {\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}", "@FXML\r\n\tvoid genererForme(ActionEvent event) {\r\n\t\t// TODO\r\n\t\t// Caller la m�thode qui nous fait une forme\r\n\t\t// Cr�er un data avec infos, formesfact avec data, data fait forme, tout\r\n\t\t// remonte\r\n\t\tDataFactory data = null;\r\n\t\tif (getListView().getSelectionModel().getSelectedItem().equals(\"Triangle\")) {\r\n\t\t\tdata = new DataFactory(Integer.parseInt(getTextFdata().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF1data().getText()), Integer.parseInt(getTextF2data().getText()),\r\n\t\t\t\t\tgetColorPicker().getValue(), Integer.parseInt(getTextF3data().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF4data().getText()), getListView().getSelectionModel().getSelectedItem());\r\n\t\t} else {\r\n\t\t\tdata = new DataFactory(Integer.parseInt(getTextFdata().getText()),\r\n\t\t\t\t\tInteger.parseInt(getTextF1data().getText()), getColorPicker().getValue(),\r\n\t\t\t\t\tInteger.parseInt(getTextF3data().getText()), Integer.parseInt(getTextF4data().getText()),\r\n\t\t\t\t\tgetListView().getSelectionModel().getSelectedItem());\r\n\t\t}\r\n\t\tFormesFactory formesF = new FormesFactory(600, 600);\r\n\t\ttry {\r\n\t\t\tForme formedessin = formesF.getInstance(data);\r\n\t\t\tajouterForme(data);\r\n\t\t} catch (FormeException e) {\r\n\t\t\t// popper fen�tre forme invalide\r\n\t\t\tAlert dialogW = new Alert(AlertType.WARNING);\r\n\t\t\tdialogW.setTitle(\"Error\");\r\n\t\t\tdialogW.setHeaderText(null);\r\n\t\t\tdialogW.setContentText(\"Forme non valide\");\r\n\t\t\tdialogW.showAndWait();\r\n\t\t} catch (ZoneDessinException e) {\r\n\t\t\t// popper fen�tre forme out of bounds\r\n\r\n\t\t\tAlert dialogW = new Alert(AlertType.WARNING);\r\n\t\t\tdialogW.setTitle(\"Error\");\r\n\t\t\tdialogW.setHeaderText(null);\r\n\t\t\tdialogW.setContentText(\"Forme � l'ext�rieur des bordures\");\r\n\t\t\tdialogW.showAndWait();\r\n\t\t}\r\n\t}", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@FXML\n public void newMedico() {\n new MedicoPaneCadastroController().abrirJanela(\"./View/MedicoPaneCadastro.fxml\", \"Novo Médico\", null);\n populaTabela();\n\n }", "@FXML\r\n private void HBSimpan(ActionEvent event) {\n String xml = xstream.toXML(resi);\r\n FileOutputStream xx = null;\r\n try {\r\n // membuat nama file & folder tempat menyimpan jika perlu\r\n xx = new FileOutputStream(\"xoxo.xml\");\r\n \r\n // mengubah karakter penyusun string xml sebagai \r\n // bytes (berbentuk nomor2 kode ASCII\r\n byte[] bytes = xml.getBytes(\"UTF-8\");\r\n // menyimpan file dari bytes\r\n xx.write(bytes);\r\n } \r\n catch (Exception e) {\r\n System.err.println(\"Perhatian: \" + e.getMessage());\r\n } \r\n finally {\r\n if (xx != null) {\r\n try {\r\n xx.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n } \r\n\r\n }", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "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}", "@FXML\n public void init_labels() {\n name_output.setText(\"el que digui domini\");\n\n String quatri;\n int q = 1; // pillar de domini\n if(q == 1) quatri = \"Q1\";\n else if (q == 2) quatri =\"Q2\";\n else quatri = \"Q1 & Q2\";\n quatri_output.setText(quatri);\n\n String nivell;\n int n = 1; // pillar de domini\n if(n == 1) nivell = \"Inicial\";\n else if (n == 2) nivell =\"Troncal\";\n else nivell = \"Especialitat\";\n nivell_output.setText(nivell);\n\n boolean tmp = false; // pillar de domini i pot desapareixer aquest boolean tmp\n if(tmp) teo_output.setText(\"Sí\");\n else teo_output.setText(\"No\");\n\n // suposo que domini em retorna un array de bools\n boolean tmp_array[] = {true, false, true, false, true, false};\n String lab = \"\";\n if (tmp_array[0]) lab += \"Projector\\n\";\n if (tmp_array[1]) lab += \"Ubuntu\\n\";\n if (tmp_array[2]) lab += \"Linux/Windows\\n\";\n if (tmp_array[3]) lab += \"Física\\n\";\n if (tmp_array[4]) lab += \"Embeded\\n\";\n if (tmp_array[5]) lab += \"Xarxes\\n\";\n // lab_output.setWrapText(true);\n lab_output.setText(lab);\n }", "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}", "@FXML\n\tpublic void abrirSobre(){\n\t}", "public void ajouter(){\n Main.showPages(\"pageAjoutMateriel.fxml\");\n\n }", "private void affichagePeuDeQuestions() {\n\t\ttry {\n\t\t\tstage = (Stage)buttonRetour.getScene().getWindow();\n\t\t\tsetDynamicPane(FXMLLoader.load(getClass().getResource(\"FenetrePasAssezDeQuestions.fxml\")));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\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 }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) \r\n {\r\n try \r\n {\r\n VBox box = FXMLLoader.load(getClass().getResource(\"Homepanel.fxml\"));\r\n drawer.setSidePane(box);\r\n } \r\n catch (IOException ex) \r\n {\r\n Logger.getLogger(HomeController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n HamburgerBackArrowBasicTransition burgerTask = new HamburgerBackArrowBasicTransition(Hamburger);\r\n burgerTask.setRate(-1);\r\n \r\n Hamburger.addEventHandler(MouseEvent.MOUSE_PRESSED, e ->\r\n {\r\n burgerTask.setRate(burgerTask.getRate() * -1);\r\n burgerTask.play();\r\n \r\n if(drawer.isShown()) drawer.close();\r\n else drawer.open();\r\n });\r\n \r\n EtablissementService ES = new EtablissementService();\r\n ArrayList<Etablissement> ALE = ES.FindByType(\"Restaurants/Cafés\");\r\n System.out.println(ALE);\r\n ArrayList<Etablissement> ALE1 = ES.FindByType(\"Boutiques\");\r\n ArrayList<Etablissement> ALE2 = ES.FindByType(\"Hotels\");\r\n ArrayList<Etablissement> ALE3 = ES.FindByType(\"Autres\");\r\n for(int i = 0; i < 3; i++)\r\n {\r\n VBox VB = new VBox();\r\n final Etablissement E = ALE.get(i);\r\n System.out.println(ALE.get(i).getId());\r\n VB.setPadding(new Insets(0,10,0,10));\r\n File F = new File(ALE.get(i).getImage());\r\n Image I = new Image(F.toURI().toString());\r\n ImageView IV = new ImageView();\r\n IV.setImage(I);\r\n IV.setFitHeight(130);\r\n IV.setFitWidth(130);\r\n Hyperlink Nom1 = new Hyperlink(ALE.get(i).getNom());\r\n Nom1.setOnAction(new EventHandler<ActionEvent>() \r\n {\r\n @Override\r\n public void handle(ActionEvent e)\r\n {\r\n try \r\n {\r\n int Id = E.getId();\r\n FXMLLoader FL = new FXMLLoader(getClass().getResource(\"EtablissementVBox.fxml\"));\r\n Parent root = (Parent) FL.load();\r\n EtablissementVBoxController EVC = FL.getController();\r\n EVC.ShowEtablissement(Id);\r\n Pane.getChildren().setAll(root);\r\n } \r\n catch (IOException ex) \r\n {\r\n Logger.getLogger(AffichagePaneController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n });\r\n Nom1.setFont(Font.font(\"Verdana\",FontWeight.BOLD,16));\r\n VB.setAlignment(Pos.BASELINE_CENTER);\r\n VB.getChildren().addAll(IV,Nom1);\r\n HBResto.getChildren().add(VB);\r\n }\r\n Hyperlink AfficherTout = new Hyperlink(\"Afficher Tout\");\r\n AfficherTout.setOnAction(new EventHandler<ActionEvent>() \r\n {\r\n @Override\r\n public void handle(ActionEvent e)\r\n {\r\n try \r\n {\r\n FXMLLoader FL = new FXMLLoader(getClass().getResource(\"AffichagePane.fxml\"));\r\n AffichagePaneController APC = FL.getController();\r\n APC.setType(\"Restaurants\");\r\n Parent root = (Parent) FL.load();\r\n Pane.getChildren().setAll(root);\r\n } \r\n catch (IOException ex) \r\n {\r\n Logger.getLogger(AffichagePaneController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }});\r\n \r\n HBResto.getChildren().add(AfficherTout);\r\n AfficherTout.setAlignment(Pos.BASELINE_CENTER);\r\n HBResto.setAlignment(Pos.BASELINE_CENTER);\r\n if (ALE1.size() > 0)\r\n {\r\n for(int i = 0; i < 3; i++)\r\n {\r\n VBox VB = new VBox();\r\n final Etablissement E = ALE1.get(i);\r\n VB.setPadding(new Insets(0,10,0,10));\r\n File F = new File(ALE1.get(i).getImage());\r\n Image I = new Image(F.toURI().toString());\r\n ImageView IV = new ImageView();\r\n IV.setImage(I);\r\n IV.setFitHeight(100);\r\n IV.setFitWidth(100);\r\n Hyperlink Nom1 = new Hyperlink(ALE1.get(i).getNom());\r\n Nom1.setOnAction(new EventHandler<ActionEvent>() \r\n {\r\n @Override\r\n public void handle(ActionEvent e)\r\n {\r\n try \r\n {\r\n int Id = E.getId();\r\n FXMLLoader FL = new FXMLLoader(getClass().getResource(\"EtablissementVBox.fxml\"));\r\n Parent root = (Parent) FL.load();\r\n EtablissementVBoxController EVC = FL.getController();\r\n EVC.ShowEtablissement(Id);\r\n Pane.getChildren().setAll(root);\r\n } \r\n catch (IOException ex) \r\n {\r\n Logger.getLogger(AffichagePaneController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n });\r\n Nom1.setFont(Font.font(\"Verdana\",FontWeight.BOLD,16));\r\n VB.setAlignment(Pos.BASELINE_CENTER);\r\n VB.getChildren().addAll(IV,Nom1);\r\n HBShops.getChildren().add(VB);\r\n }\r\n }\r\n Hyperlink AfficherTout1 = new Hyperlink(\"Afficher Tout\");\r\n AfficherTout.setOnAction(new EventHandler<ActionEvent>() \r\n {\r\n @Override\r\n public void handle(ActionEvent e)\r\n {\r\n try \r\n {\r\n FXMLLoader FL = new FXMLLoader(getClass().getResource(\"AffichagePane.fxml\"));\r\n Parent root = (Parent) FL.load();\r\n Pane.getChildren().setAll(root);\r\n } \r\n catch (IOException ex) \r\n {\r\n Logger.getLogger(AffichagePaneController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }});\r\n \r\n HBShops.getChildren().add(AfficherTout1);\r\n if (ALE2.size() > 0)\r\n {\r\n for(int i = 0; i < 3; i++)\r\n {\r\n VBox VB = new VBox();\r\n final Etablissement E = ALE2.get(i);\r\n VB.setPadding(new Insets(0,10,0,10));\r\n File F = new File(ALE2.get(i).getImage());\r\n Image I = new Image(F.toURI().toString());\r\n ImageView IV = new ImageView();\r\n IV.setImage(I);\r\n IV.setFitHeight(100);\r\n IV.setFitWidth(100);\r\n Hyperlink Nom1 = new Hyperlink(ALE2.get(i).getNom());\r\n Nom1.setOnAction(new EventHandler<ActionEvent>() \r\n {\r\n @Override\r\n public void handle(ActionEvent e)\r\n {\r\n try \r\n {\r\n int Id = E.getId();\r\n FXMLLoader FL = new FXMLLoader(getClass().getResource(\"EtablissementVBox.fxml\"));\r\n Parent root = (Parent) FL.load();\r\n EtablissementVBoxController EVC = FL.getController();\r\n EVC.ShowEtablissement(Id);\r\n Pane.getChildren().setAll(root);\r\n } \r\n catch (IOException ex) \r\n {\r\n Logger.getLogger(AffichagePaneController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n });\r\n Nom1.setFont(Font.font(\"Verdana\",FontWeight.BOLD,16));\r\n VB.setAlignment(Pos.BASELINE_CENTER);\r\n VB.getChildren().addAll(IV,Nom1);\r\n HBHotel.getChildren().add(VB);\r\n }\r\n }\r\n Hyperlink AfficherTout2 = new Hyperlink(\"Afficher Tout\");\r\n AfficherTout.setOnAction(new EventHandler<ActionEvent>() \r\n {\r\n @Override\r\n public void handle(ActionEvent e)\r\n {\r\n try \r\n {\r\n FXMLLoader FL = new FXMLLoader(getClass().getResource(\"AffichagePane.fxml\"));\r\n Parent root = (Parent) FL.load();\r\n Pane.getChildren().setAll(root);\r\n } \r\n catch (IOException ex) \r\n {\r\n Logger.getLogger(AffichagePaneController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }});\r\n \r\n HBHotel.getChildren().add(AfficherTout2);\r\n if (ALE3.size() > 0)\r\n {\r\n for(int i = 0; i < 3; i++)\r\n {\r\n VBox VB = new VBox();\r\n final Etablissement E = ALE2.get(i);\r\n VB.setPadding(new Insets(0,10,0,10));\r\n File F = new File(ALE3.get(i).getImage());\r\n Image I = new Image(F.toURI().toString());\r\n ImageView IV = new ImageView();\r\n IV.setImage(I);\r\n IV.setFitHeight(100);\r\n IV.setFitWidth(100);\r\n Hyperlink Nom1 = new Hyperlink(ALE3.get(i).getNom());\r\n Nom1.setOnAction(new EventHandler<ActionEvent>() \r\n {\r\n @Override\r\n public void handle(ActionEvent e)\r\n {\r\n try \r\n {\r\n int Id = E.getId();\r\n FXMLLoader FL = new FXMLLoader(getClass().getResource(\"EtablissementVBox.fxml\"));\r\n Parent root = (Parent) FL.load();\r\n EtablissementVBoxController EVC = FL.getController();\r\n EVC.ShowEtablissement(Id);\r\n Pane.getChildren().setAll(root);\r\n } \r\n catch (IOException ex) \r\n {\r\n Logger.getLogger(AffichagePaneController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n });\r\n Nom1.setFont(Font.font(\"Verdana\",FontWeight.BOLD,16));\r\n VB.setAlignment(Pos.BASELINE_CENTER);\r\n VB.getChildren().addAll(IV,Nom1);\r\n HBOther.getChildren().add(VB);\r\n }\r\n \r\n }\r\n Hyperlink AfficherTout3 = new Hyperlink(\"Afficher Tout\");\r\n AfficherTout.setOnAction(new EventHandler<ActionEvent>() \r\n {\r\n @Override\r\n public void handle(ActionEvent e)\r\n {\r\n try \r\n {\r\n FXMLLoader FL = new FXMLLoader(getClass().getResource(\"AffichagePane.fxml\"));\r\n Parent root = (Parent) FL.load();\r\n Pane.getChildren().setAll(root);\r\n } \r\n catch (IOException ex) \r\n {\r\n Logger.getLogger(AffichagePaneController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }});\r\n \r\n HBOther.getChildren().add(AfficherTout3);\r\n TPShops.setContent(HBShops);\r\n TPResto.setContent(HBResto);\r\n TPHotel.setContent(HBHotel);\r\n TPOther.setContent(HBOther);\r\n }", "@FXML void ShowOffer(ActionEvent event4) throws IOException, BusinessException {\n\n\tPane annunci[] = { Annuncio1, Annuncio2, Annuncio3};\n\tTextArea embio[] = {EditWorkInfoArea,EditWorkInfoArea1,EditWorkInfoArea11};\n\tLabel Titoli[] = { TitleLabel,TitleLabel1,TitleLabel11};\n\tLabel Posizioni[] = {PositionLabel,PositionLabel1,PositionLabel11};\n\tLabel TipoContratto[] = {ContractTypeLabel,ContractTypeLabel1,ContractTypeLabel11}; \n\tLabel TempoContratto[] = {ContractTimeLabel,ContractTimeLabel1,ContractTimeLabel11};\n\tLabel Retribuzioni[] = {RetributionLabel,RetributionLabel1,RetributionLabel11};\n\tLabel Settori[] = {SectorLabel,SectorLabel1,SectorLabel11};\n\tLabel Regioni[] = {RegionLabel,RegionLabel1,RegionLabel11};\n\tLabel RetxTempo[] = {RetxTLabel,RetxTLabel1,RetxTLabel11};\n\tLabel Bonus [] = {BonusLabel,BonusLabel1,BonusLabel11};\n\tLabel Studi[] = {DegreeLabel,DegreeLabel1,DegreeLabel11};\n\tLabel Esperienze[] = {ExpLabel,ExpLabel1,ExpLabel11};\n\n try {\n\tint i = 0;\n\tList<Offer> offerList = offerService.findMyOffers(eoEmail.getText().toString());\n\t\t if ( offerList.size() < 3 ) {\n\t\t for ( i = offerList.size(); i < 3; i++ ) {\n\t\t annunci[i].setVisible(false); }\n\t\t }\n\t\t i = 0;\n\t\t for (Offer o: offerList) {\n\t\t annunci[i].setVisible(true);\n\t\t Titoli[i].setText(o.getTitle());\n\t\t Posizioni[i].setText(o.getPosition());\n\t\t Settori[i].setText(o.getSector());\n\t\t Regioni[i].setText(o.getRegion());\n\t\t TipoContratto[i].setText(o.getContractType()); \n\t\t TempoContratto[i].setText(o.getContractTime());\n\t\t Retribuzioni[i].setText(o.getWage());\n\t\t RetxTempo[i].setText(o.getWageTime());\n\t\t Studi[i].setText(o.getEducation());\n\t\t Bonus[i].setText(o.getBonus());\n\t\t embio[i].setText(o.getInfo());\n\t\t Esperienze[i].setText(o.getExperience());\n\t\t i++;\n\t\t }\n } catch (BusinessException e) {\n e.printStackTrace();\n throw new BusinessException(e);\n }\n}", "public void setLayout() {\n\t\tpersonenListe.getItems().addAll(deck.getPersonenOrdered());\n\t\tpersonenListe.setValue(\"Täter\");\n\t\twaffenListe.getItems().addAll(deck.getWaffenOrdered());\n\t\twaffenListe.setValue(\"Waffe\");\n\t\t// zimmerListe.getItems().addAll(deck.getZimmerOrdered());\n\t\tzimmerListe.setValue(\"Raum\");\n\n\t\tanklage.setMinSize(80, 120);\n\t\tanklage.setMaxSize(80, 120);\n\t\tanklage.setTextFill(Color.BLACK);\n\t\tanklage.setStyle(\"-fx-background-color: #787878;\");\n\n\t\twurfel.setMinSize(80, 120);\n\t\twurfel.setMaxSize(80, 120);\n\t\twurfel.setTextFill(Color.BLACK);\n\t\twurfel.setStyle(\"-fx-background-color: #787878;\");\n\n\t\tgang.setMinSize(80, 120);\n\t\tgang.setMaxSize(80, 120);\n\t\tgang.setTextFill(Color.BLACK);\n\t\tgang.setStyle(\"-fx-background-color: #787878;\");\n\n\t\ttop = new HBox();\n\t\ttop.setSpacing(1);\n\t\ttop.setAlignment(Pos.CENTER);\n\n\t\tbuttons = new HBox();\n\t\tbuttons.setSpacing(20);\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\tbuttons.getChildren().addAll(anklage, wurfel, gang);\n\n\t\tbottom = new HBox();\n\t\tbottom.setSpacing(150);\n\t\tbottom.setAlignment(Pos.CENTER);\n\t\tbottom.getChildren().addAll(close);\n\n\t\tfenster = new BorderPane();\n\t\tfenster.setStyle(\"-fx-background-image: url('media/ZugFensterResized.png');\");\n\t\tfenster.setTop(top);\n\t\tfenster.setCenter(buttons);\n\t\tfenster.setBottom(bottom);\n\t}", "@FXML\n public void abrirPedidoCompra() {\n \t\n }", "@FXML\r\n private void mostrarSolicitudes() {\r\n try {\r\n //Carga la vista \r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/MostrarRma.fxml\"));\r\n VBox vistaMostrar = (VBox) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitudes enviadas\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaMostrar);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorMostrarRma controlador = loader.getController();\r\n controlador.setDialogs(primerStage, dialogo);\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void afficherLfu() {\n\t\tint nbrCols = listEtapeLfu.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<ProcessusLfu> list: listEtapeLfu) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\t\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtapeLfu.size();i++) {\n\t\t\tArrayList<ProcessusLfu> list = listEtapeLfu.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\tProcessusLfu p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + p.getValue());\n\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\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}", "@AutoGenerated\r\n\tprivate VerticalLayout buildPnlFondo() {\n\t\tpnlFondo = new VerticalLayout();\r\n\t\tpnlFondo.setImmediate(false);\r\n\t\tpnlFondo.setWidth(\"-1px\");\r\n\t\tpnlFondo.setHeight(\"-1px\");\r\n\t\tpnlFondo.setMargin(false);\r\n\t\t\r\n\t\t// imgFondo\r\n\t\timgFondo = new Embedded();\r\n\t\timgFondo.setImmediate(false);\r\n\t\timgFondo.setWidth(\"500px\");\r\n\t\timgFondo.setHeight(\"500px\");\r\n\t\timgFondo.setSource(new ThemeResource(\"img/imagen.jpg\"));\r\n\t\timgFondo.setType(1);\r\n\t\timgFondo.setMimeType(\"image/jpg\");\r\n\t\tpnlFondo.addComponent(imgFondo);\r\n\t\t\r\n\t\treturn pnlFondo;\r\n\t}", "Lista_Simple datos(File tipo1) {\n \n SAXBuilder builder = new SAXBuilder();\n try {\n \n \n \n\n \n //Se obtiene la lista de hijos de la raiz 'tables'\n Document document = builder.build(tipo1);\n Element rootNode = document.getRootElement(); \n // JOptionPane.showMessageDialog(null,\" e1: \"+(rootNode.getChildText(\"dimension\"))); \n tam= Integer.parseInt(rootNode.getChildText(\"dimension\"));\n Element dobles = rootNode.getChild(\"dobles\");\n \n List list = dobles.getChildren(\"casilla\");\n for ( int i = 0; i < list.size(); i++ )\n {\n Element tabla = (Element) list.get(i);\n d1.enlistar(tabla.getChildTextTrim(\"x\"));\n \n d1.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n \n \n Element triples = rootNode.getChild(\"triples\");\n \n List listt = triples.getChildren(\"casilla\");\n for ( int i = 0; i < listt.size(); i++ )\n {\n Element tabla = (Element) listt.get(i);\n d2.enlistar(tabla.getChildTextTrim(\"x\"));\n d2.enlistar(tabla.getChildTextTrim(\"y\"));\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"x\").toString());\n// JOptionPane.showMessageDialog(null,\"\"+tabla.getChildTextTrim(\"y\").toString());\n }\n Element dicc = rootNode.getChild(\"diccionario\");\n List dic = dicc.getChildren();\n\n for ( int i = 0; i < dic.size(); i++ )\n {\n Element tabla = (Element) dic.get(i);\n //JOptionPane.showMessageDialog(null,\"\"+tabla.getText().toString());\n d.enlistar(tabla.getText().toString());\n \n \n \n } \n \n }catch (JDOMException | IOException | NumberFormatException | HeadlessException e){\n JOptionPane.showMessageDialog(null,\" error de archivo\");\n }\n return d;\n \n}", "public void interfaceIHM(){\n VBox contenue;\n ActionBouttonPartieEnCours action = new ActionBouttonPartieEnCours(this.duelSurLaToile, this);\n Label nom = new Label(\"Jeu : \"+this.nom);\n Label joueurs = new Label(\"Vous VS \"+this.adversaire);\n Label resultat = new Label(this.scoreJoueur+\" VS \"+this.scoreAdversaire);\n Button accepter = new Button(\"Rejoindre\");\n accepter.setStyle(\"-fx-background-color: #ffffff ;\");\n accepter.setMinWidth(135);\n accepter.setMaxWidth(135);\n accepter.setUserData(this.id);\n Button refuser = new Button(\"Abandonner\");\n refuser.setStyle(\"-fx-background-color: #ffffff ;\");\n refuser.setMinWidth(135);\n refuser.setMaxWidth(135);\n refuser.setUserData(this.id);\n image.setFitWidth(130);\n image.setFitHeight(130);\n contenue=new VBox();\n contenue.getChildren().addAll(nom,joueurs,resultat,accepter,refuser);\n contenue.setSpacing(5);\n contenue.setAlignment(Pos.CENTER_LEFT);\n contenue.setMaxWidth(refuser.getMaxWidth());\n this.setLeft(contenue);\n this.setRight(image);\n accepter.setOnAction(action);\n refuser.setOnAction(action);\n BorderPane.setAlignment(contenue,Pos.CENTER);\n BorderPane.setMargin(contenue,new Insets(10,10,10,10));\n BorderPane.setMargin(image,new Insets(10,10,10,10));\n this.setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, null, null)));\n }", "@FXML\n void expandElement (Element element) {\n\n// expand request from Menu\n if (messageLabel.isVisible()) {\n\n// if Element is a Timeline, calls edit Timeline function\n if (element instanceof Timeline)\n openEditTimelineWindow((Timeline) element);\n\n// if Element is an Event, calls edit Event function\n else if (element instanceof Event)\n openEditEventWindow((Event) element);\n }\n\n// expand request from Main\n else {\n\n// create a new pop-up window\n Stage popUp = new Stage();\n popUp.setTitle(\"\");\n popUp.getIcons().add(logo);\n\n// create a temporary VerticalBox to place all Nodes\n VBox content = new VBox();\n\n// Label with the name of the Element\n Label name = new Label(element.name);\n name.setStyle(stylesheet.toString());\n name.getStyleClass().add(\"nameLabel\");\n\n content.getChildren().add(name);\n\n\n// if Element is a Timeline, list all Events\n if (element instanceof Timeline) {\n Label label;\n for (Event event : ((Timeline) element).events) {\n label = new Label(event.name);\n label.setStyle(stylesheet.toString());\n label.getStyleClass().add(\"detailsLabel\");\n content.getChildren().add(label);\n }\n }\n\n// if Element is an Event, creates Labels for dates and notes\n else if (element instanceof Event) {\n Label date = new Label(\n ((Event) element).startDate[0] + \" \" + getMonth(((Event) element).startDate[1]) + \" \" + ((Event) element).startDate[2] + \" – \" +\n ((Event) element).endDate[0] + \" \" + getMonth(((Event) element).endDate[1]) + \" \" + ((Event) element).endDate[2]);\n date.setStyle(stylesheet.toString());\n date.getStyleClass().add(\"detailsLabel\");\n\n Label notes = new Label(((Event) element).notes);\n notes.setStyle(stylesheet.toString());\n notes.getStyleClass().add(\"notesLabel\");\n\n content.getChildren().addAll(date, notes);\n }\n\n// creates the pop-up\n Scene scene = new Scene(content);\n scene.getStylesheets().add(getClass().getResource(\"stylesheet.css\").toExternalForm());\n scene.getStylesheets().add(stylesheet.toString());\n\n popUp.setScene(scene);\n popUp.show();\n }\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n col_date.setCellValueFactory(new PropertyValueFactory<>(\"date\"));\n col_id_formation.setCellValueFactory(new PropertyValueFactory<>(\"formarion_id\"));\n col_id.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n try {\n // 5 ttbadel hasb user connect\n tabparticipations.setItems(service.Affichertout_user(5));\n } catch (Exception ex) {\n }\n /*-----------------*/\n \n \n tailleFormation = service_for.nombre();\n System.out.println(\"taa\"+tailleFormation);\n Node[] nodes_formations= new Node[tailleFormation];\n scrollpaneProduit.setVbarPolicy(ScrollPane.ScrollBarPolicy.NEVER);\n \n \n for (indiceFormation = 0; indiceFormation < tailleFormation; indiceFormation++) {\n try {\n\n nodes_formations[indiceFormation] = FXMLLoader.load(getClass().getResource(\"/sample/Item_formation.fxml\"));\n\n hboxProduit.getChildren().add(nodes_formations[indiceFormation]);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n \n col_btnDelet = new TableColumn(\"Supprimer\");\n javafx.util.Callback<TableColumn<particer_formation, String>, TableCell<particer_formation, String>> cellFactory\n = new Callback<TableColumn<particer_formation, String>, TableCell<particer_formation, String>>() {\n public TableCell call(final TableColumn<particer_formation, String> param) {\n final TableCell<particer_formation, String> cell = new TableCell<particer_formation, String>() {\n\n final Button btn = new Button(\"supprimer\");\n\n @Override\n public void updateItem(String item, boolean empty) {\n super.updateItem(item, empty);\n if (empty) {\n setGraphic(null);\n setText(null);\n } else {\n btn.setOnAction(event -> {\n particer_formation u = getTableView().getItems().get(getIndex());\n\n \n \n try {\n service.Supprimer(u.getId());\n } catch (SQLException ex) {\n }\n \n \n col_date.setCellValueFactory(new PropertyValueFactory<>(\"date\"));\n col_id_formation.setCellValueFactory(new PropertyValueFactory<>(\"formarion_id\"));\n col_id.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n try {\n // 5 ttbadel hasb user connect\n \n tabparticipations.setItems(service.Affichertout_user(5));\n } catch (Exception ex) {\n }\n\n });\n setGraphic(btn);\n setText(null);\n }\n }\n };\n return cell;\n }\n };\n col_btnDelet.setCellFactory(cellFactory);\n tabparticipations.getColumns().add(col_btnDelet);\n \n }", "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}", "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}", "private void inicializarFicha(){\n \tTypeface tfBubleGum = Util.fontBubblegum_Regular(this);\n \tTypeface tfBenton = Util.fontBenton_Boo(this);\n \tTypeface tfBentonBold = Util.fontBenton_Bold(this);\n\t\tthis.txtNombre.setTypeface(tfBubleGum);\n\t\tthis.txtDescripcion.setTypeface(tfBenton);\n\t\tthis.lblTitulo.setTypeface(tfBentonBold);\n \tpanelCargando.setVisibility(View.GONE);\n \t\n \t//cargar los datos de las informaciones\n \tif(DataConection.hayConexion(this)){\n \t\tpanelCargando.setVisibility(View.VISIBLE);\n \t\tInfo.infosInterface = this;\n \t\tInfo.cargarInfo(this.app, this.paramIdItem);\n \t}else{\n \t\tUtil.mostrarMensaje(\n\t\t\t\t\tthis, \n\t\t\t\t\tgetResources().getString(R.string.mod_global__sin_conexion_a_internet), \n\t\t\t\t\tgetResources().getString(R.string.mod_global__no_dispones_de_conexion_a_internet) );\n \t}\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}", "@FXML\r\n\tpublic void initSelezionati() {\r\n\t\ttotale.setText(\"0.0\");\r\n\t\tprodottiSelezionati = ac.getSelezionati(); //Dovrei prendere la lista dei selezionati \r\n\t\t\t\t\t\t\t\t\t\t//ma se non ho aggiunto nulla Ŕ vuota\r\n\t\tif(tabellaSelezionati!= null) {\r\n\t\t\tcodiceSelezionatiCol.setCellValueFactory(new PropertyValueFactory<ProdottoSelezionato, Integer>(\"codice\"));\r\n\t prodottoSelezionatiCol.setCellValueFactory(new PropertyValueFactory<ProdottoSelezionato, String>(\"nome\"));\r\n\t quantitaSelezionatiCol.setCellValueFactory(new PropertyValueFactory<ProdottoSelezionato, Integer>(\"quantita\"));\r\n\t prezzoSelezionatiCol.setCellValueFactory(new PropertyValueFactory<ProdottoSelezionato, Float>(\"prezzo\"));\r\n\t\t}\r\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n try {\n VBox box = FXMLLoader.load(getClass().getResource(\"/vista/DrawerPrincipal.fxml\"));\n menuDrawer.setSidePane(box);\n menuDrawer.setDisable(true);\n } catch (IOException ex) {\n Dialogo dialogo = new Dialogo(Alert.AlertType.ERROR,\n \"Servidor no disponible, intente más tarde\", \"Error\", ButtonType.OK);\n dialogo.show();\n ex.printStackTrace();\n }\n \n menuIcon.addEventHandler(MouseEvent.MOUSE_CLICKED, (e) -> {\n menuDrawer.open();\n menuDrawer.setDisable(false);\n menuIcon.setVisible(false);\n });\n \n tfNombre.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, \n String oldValue, String newValue) {\n if(newValue.matches(\"[0-9]\")){\n tfNombre.setText(oldValue);\n }\n }\n });\n \n tfApellidoPaterno.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, \n String newValue) {\n if(tfApellidoPaterno.getText().length() >= 45){\n tfApellidoPaterno.setText(tfApellidoPaterno.getText().substring(0, 45));\n }\n }\n });\n \n tfApellidoMaterno.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, \n String oldValue, String newValue) {\n if(tfApellidoMaterno.getText().length() >= 45){\n tfApellidoMaterno.setText(tfApellidoMaterno.getText().substring(0, 45));\n }\n }\n });\n \n tfCorreoElectronico.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, \n String oldValue, String newValue) {\n if(tfCorreoElectronico.getText().length() >= 45){\n tfCorreoElectronico.setText(tfCorreoElectronico.getText().substring(0, 45));\n }\n }\n });\n \n tfMatricula.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, \n String oldValue, String newValue) {\n if(tfMatricula.getText().length() >= 9){\n tfMatricula.setText(tfMatricula.getText().substring(0, 9));\n }\n }\n \n });\n \n tfBusqueda.textProperty().addListener(new ChangeListener<String>(){\n @Override\n public void changed(ObservableValue<? extends String> observable, \n String oldValue, String newValue) {\n if(tfBusqueda.getText().length() >= 9){\n tfBusqueda.setText(tfBusqueda.getText().substring(0, 9));\n btnBuscar.setDisable(false);\n } else {\n btnBuscar.setDisable(true);\n btnInscribir.setDisable(true);\n }\n }\n });\n \n labelCorreo.textProperty().addListener(new ChangeListener<String>(){\n @Override\n public void changed(ObservableValue<? extends String> observable, \n String oldValue, String newValue) {\n if(!labelCorreo.getText().isEmpty() && !labelNombre.getText().isEmpty()){\n btnInscribir.setDisable(false);\n btnLimpiar.setDisable(false);\n llenarComboCurso();\n } else {\n btnInscribir.setDisable(true);\n btnLimpiar.setDisable(true);\n }\n }\n });\n \n llenarComboPeriodo();\n llenarComboCurso();\n }", "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() {\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}", "@FXML\n public void fecharPedidoCompra() {\n \t\n }", "@FXML \r\n private void handleIrInicio() {\r\n \ttry {\r\n\t\t\tmain.mostrarInicial();\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 }", "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}", "@FXML \r\n private void handleIrDescargas() {\r\n \tmain.mostrarVistaDescargarArchivos();\r\n }", "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}", "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 fabrica_pedidos_detalles() {\n initComponents();\n this.setMinimumSize(new Dimension(1000, 680));\n this.setLocationRelativeTo(null);\n CrearModelo();\n Cargar_Informacion();\n }", "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 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 }", "@FXML\n private void generateData(ActionEvent e) {\n Generator generate = new Generator();\n txfFirstName.setText(generate.firstName());\n txfLastName.setText(generate.lastName());\n txfAddress.setText(generate.address());\n txfZIP.setText(generate.ZIP());\n txfZIPloc.setText(generate.ZIPloc());\n txfEmail.setText(generate.email());\n txfPhone.setText(generate.phone());\n }", "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}", "private void inicialize() {\n\t\t\n\t\t/**\n\t\t * Labels e textField of the page:\n\t\t * Nome\n\t\t * Descrição\n\t\t */\n\n\t\tJLabel lblNome = new JLabel(\"Nome\");\n\t\tlblNome.setBounds(5, 48, 86, 28);\n\t\tlblNome.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\tcontentPanel.add(lblNome);\n\t\t\n\t\tJLabel lblDescricao = new JLabel(\"Descrição\");\n\t\tlblDescricao.setBounds(5, 117, 86, 51);\n\t\tlblDescricao.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\tcontentPanel.add(lblDescricao);\n\t\t\n\t\ttextFieldNome = new JTextField();\n\t\ttextFieldNome.setBounds(103, 45, 290, 35);\n\t\ttextFieldNome.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\ttextFieldNome.setColumns(10);\n\t\tcontentPanel.add(textFieldNome);\n\t\t\n\t\ttextFieldDescricao = new JTextArea();\n\t\ttextFieldDescricao.setBackground(Color.WHITE);\n\t\ttextFieldDescricao.setLineWrap(true);\n\t\ttextFieldDescricao.setBounds(101, 118, 290, 193);\n\t\ttextFieldDescricao.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\ttextFieldDescricao.setColumns(10);\n\t\tcontentPanel.add(textFieldDescricao);\n\n\t\t/**\n\t\t * Confirmation panel\n\t\t * Confirmation button\n\t\t * Cancellation button\n\t\t */\n\n\t\tpainelConfirmacaoSetup();\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}", "public void lancementJeuClassique() {\n\t\ttry {\n\t\t\tstage = (Stage)buttonRetour.getScene().getWindow();\n\t\t\tsetDynamicPane(FXMLLoader.load(getClass().getResource(\"FenetreLancementJeu.fxml\")));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }", "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 setFilaDatosExportarXmlTipoDireccion(TipoDireccion tipodireccion,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(TipoDireccionConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(tipodireccion.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(TipoDireccionConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(tipodireccion.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(TipoDireccionConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(tipodireccion.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementcodigo = document.createElement(TipoDireccionConstantesFunciones.CODIGO);\r\n\t\telementcodigo.appendChild(document.createTextNode(tipodireccion.getcodigo().trim()));\r\n\t\telement.appendChild(elementcodigo);\r\n\r\n\t\tElement elementnombre = document.createElement(TipoDireccionConstantesFunciones.NOMBRE);\r\n\t\telementnombre.appendChild(document.createTextNode(tipodireccion.getnombre().trim()));\r\n\t\telement.appendChild(elementnombre);\r\n\t}", "@FXML \r\n private void handleIrConfiguracion() {\r\n \ttry {\r\n\t\t\tmain.mostrarVistaConfiguracion();\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 }", "private void jButtonCreateInsexActionPerformed(java.awt.event.ActionEvent evt) {\n try {\n lstPerson = new ArrayList();\n Properties prop = new Properties();//почти тоже самое что ini файлы\n content = Files.readAllLines(Paths.get(PATH_FILE_SOURCE), Charset.forName(\"cp1251\"));\n String s = content.get(0);\n for (int i = 0, j = 1; i < s.length(); i += 128, j++) {\n Person p = new Person(\n s.substring(i, i + 30).trim(),\n s.substring(i + 30, i + 50).trim(),\n s.substring(i + 50, i + 70).trim(),\n s.substring(i + 70, i + 78).trim(),\n s.substring(i + 78).trim(), j);\n lstPerson.add(p);\n }\n\n for (Person person : lstPerson) {\n prop.put(person.getSurname().toUpperCase(), Integer.toString(person.getID()));\n }\n prop.storeToXML(new FileOutputStream(FILE_PATH_INDEX_SURNAME), \"LIB\");//можно и без xml\n jLabelStatusBar.setForeground(Color.magenta);\n jLabelStatusBar.setText(\"Индексный файл создан!\");\n jLabelStatusBar.setForeground(Color.BLACK);\n\n } catch (IOException ex) {\n jLabelStatusBar.setForeground(Color.red);\n jLabelStatusBar.setText(\"Индексный файл не создан!\");\n Logger.getLogger(NewJFrame1.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void setFilaDatosExportarXmlPlantillaFactura(PlantillaFactura plantillafactura,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(PlantillaFacturaConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(plantillafactura.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(PlantillaFacturaConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(plantillafactura.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(PlantillaFacturaConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(plantillafactura.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementcodigo = document.createElement(PlantillaFacturaConstantesFunciones.CODIGO);\r\n\t\telementcodigo.appendChild(document.createTextNode(plantillafactura.getcodigo().trim()));\r\n\t\telement.appendChild(elementcodigo);\r\n\r\n\t\tElement elementnombre = document.createElement(PlantillaFacturaConstantesFunciones.NOMBRE);\r\n\t\telementnombre.appendChild(document.createTextNode(plantillafactura.getnombre().trim()));\r\n\t\telement.appendChild(elementnombre);\r\n\r\n\t\tElement elementdescripcion = document.createElement(PlantillaFacturaConstantesFunciones.DESCRIPCION);\r\n\t\telementdescripcion.appendChild(document.createTextNode(plantillafactura.getdescripcion().trim()));\r\n\t\telement.appendChild(elementdescripcion);\r\n\r\n\t\tElement elementes_proveedor = document.createElement(PlantillaFacturaConstantesFunciones.ESPROVEEDOR);\r\n\t\telementes_proveedor.appendChild(document.createTextNode(plantillafactura.getes_proveedor().toString().trim()));\r\n\t\telement.appendChild(elementes_proveedor);\r\n\r\n\t\tElement elementcuentacontableaplicada_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDCUENTACONTABLEAPLICADA);\r\n\t\telementcuentacontableaplicada_descripcion.appendChild(document.createTextNode(plantillafactura.getcuentacontableaplicada_descripcion()));\r\n\t\telement.appendChild(elementcuentacontableaplicada_descripcion);\r\n\r\n\t\tElement elementcuentacontablecreditobien_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDCUENTACONTABLECREDITOBIEN);\r\n\t\telementcuentacontablecreditobien_descripcion.appendChild(document.createTextNode(plantillafactura.getcuentacontablecreditobien_descripcion()));\r\n\t\telement.appendChild(elementcuentacontablecreditobien_descripcion);\r\n\r\n\t\tElement elementcuentacontablecreditoservicio_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDCUENTACONTABLECREDITOSERVICIO);\r\n\t\telementcuentacontablecreditoservicio_descripcion.appendChild(document.createTextNode(plantillafactura.getcuentacontablecreditoservicio_descripcion()));\r\n\t\telement.appendChild(elementcuentacontablecreditoservicio_descripcion);\r\n\r\n\t\tElement elementtiporetencionfuentebien_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDTIPORETENCIONFUENTEBIEN);\r\n\t\telementtiporetencionfuentebien_descripcion.appendChild(document.createTextNode(plantillafactura.gettiporetencionfuentebien_descripcion()));\r\n\t\telement.appendChild(elementtiporetencionfuentebien_descripcion);\r\n\r\n\t\tElement elementtiporetencionfuenteservicio_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDTIPORETENCIONFUENTESERVICIO);\r\n\t\telementtiporetencionfuenteservicio_descripcion.appendChild(document.createTextNode(plantillafactura.gettiporetencionfuenteservicio_descripcion()));\r\n\t\telement.appendChild(elementtiporetencionfuenteservicio_descripcion);\r\n\r\n\t\tElement elementtiporetencionivabien_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDTIPORETENCIONIVABIEN);\r\n\t\telementtiporetencionivabien_descripcion.appendChild(document.createTextNode(plantillafactura.gettiporetencionivabien_descripcion()));\r\n\t\telement.appendChild(elementtiporetencionivabien_descripcion);\r\n\r\n\t\tElement elementtiporetencionivaservicio_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDTIPORETENCIONIVASERVICIO);\r\n\t\telementtiporetencionivaservicio_descripcion.appendChild(document.createTextNode(plantillafactura.gettiporetencionivaservicio_descripcion()));\r\n\t\telement.appendChild(elementtiporetencionivaservicio_descripcion);\r\n\r\n\t\tElement elementcuentacontablegasto_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDCUENTACONTABLEGASTO);\r\n\t\telementcuentacontablegasto_descripcion.appendChild(document.createTextNode(plantillafactura.getcuentacontablegasto_descripcion()));\r\n\t\telement.appendChild(elementcuentacontablegasto_descripcion);\r\n\t}", "public void afficherFifo() {\n\t\tint nbrCols = listEtapeFifo.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<Integer> list: listEtapeFifo) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\t\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\t\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtapeFifo.size();i++) {\n\t\t\tArrayList<Integer> list = listEtapeFifo.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\t//Processus p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + list.get(j));\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\n\t}", "private void crearTree(){\n tree= new Tree(\"PROGRAMAS\");\r\n tree.setImmediate(true);\r\n\r\n // Set tree to show the 'name' property as caption for items\r\n tree.setItemCaptionPropertyId(\"nombre\");\r\n \r\n tree.addValueChangeListener(e -> Notification.show(\"Value changed:\",String.valueOf(e.getProperty().getValue()),Type.TRAY_NOTIFICATION));\r\n\t}", "public PnStrarMateriasDocente() {\n initComponents();\n }", "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}", "public MENU_ADMINISTRADOR() {\n this.setContentPane(fondo);\n initComponents();\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n this.textField1.setText(dateFormat.format(date));\n System.out.println(\"almacenado DPI:\" + datos_solicitud_seguro.getA()[0]);\n }", "@Override\n public String getFXMLFilename() {\n return \"/view/dataview/airportFilterPopUp.fxml\";\n }", "public void abrirVentanaNuevaLista(ActionEvent event){\n Parent root;\n try {\n //Carga ventana\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"nuevaListaSample.fxml\"));\n root =loader.load();\n Stage stage = new Stage();\n stage.setTitle(\"Crear una nueva lista\");\n stage.setScene(new Scene(root,450,450));\n //Conexion con controller de nueva lista\n NuevaListaSample controllerNuevaLista = loader.getController();\n //Se actualiza los datos de listas\n controllerNuevaLista.definirData(this.data);\n\n stage.show();\n }catch (IOException e){\n e.printStackTrace();\n }\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}", "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}", "@Override\n public void start(Stage primaryStage) throws Exception {\n ApplicationContext ctx = SpringApplication.run(MainFx.class);\n\n Font.loadFont(this.getClass().getResource(\"/mw/uifx/fonts/fontawesome-webfont.ttf\").\n toExternalForm(), 12);\n\n\n ctx.getBean(KontekstAplikacji.class).setMainStage(primaryStage);\n FabrykaZasobow pFabrykaZasobow = ctx.getBean(FabrykaZasobow.class);\n pFabrykaZasobow.setKontekstSpringowy(ctx);\n\n KonfiguratorAplikacji pKonf=ctx.getBean(KonfiguratorAplikacji.class);\n System.out.println(\"katAplikacji=====>\"+pKonf.getKatalogAplikacji());\n System.out.println(\"raw=====>\"+pKonf.getPodkatalog().getRaw());\n System.out.println(\"raw=====>\"+pKonf.getGaleria().getCel());\n\n\n Parent root = pFabrykaZasobow.podajObiektParentDlaZasobu(LokalizacjeFXMLEnum.ZASOBY_GLOWNE_WIDOK);\n Scene scene = new Scene(root, 1000, 900);\n pFabrykaZasobow.dodajStyleCSS(scene);\n primaryStage.setTitle(\"4Fotos\");\n primaryStage.setScene(scene);\n\n primaryStage.setAlwaysOnTop(false);\n // primaryStage.toFront();\n primaryStage.show();\n\n }", "@FXML\r\n\tpublic void applicaFiltro(ActionEvent event) {\r\n\t\tprodotti = ac.getProdotti();\r\n\t\t\r\n\t\tint codice = -1; \r\n\t\tfloat pMin = Float.MIN_VALUE;\r\n\t\tfloat pMax = Float.MAX_VALUE;\r\n\t\ttry{\r\n\t\t\tcodice = Integer.parseInt(codiceProdotto.getText());\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tif(!codiceProdotto.getText().equals(\"\"))\r\n\t\t\t\talert(\"Errore di conversione\",\"Attenzione!\",\"Il codice prodotto inserito non risulta essere un valore numerico valido\");\r\n\t\t\tcodiceProdotto.setText(\"\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\tpMin = Float.parseFloat(prezzoMin.getText());\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tif(!prezzoMin.getText().equals(\"\"))\r\n\t\t\t\talert(\"Errore di conversione\",\"Attenzione!\",\"Il prezzo minimo inserito non risulta essere un valore numerico valido\");\r\n\t\t\tprezzoMin.setText(\"\");\r\n\t\t}\r\n\t\ttry{\r\n\t\t\t pMax = Float.parseFloat(prezzoMax.getText());\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tif(!prezzoMax.getText().equals(\"\"))\r\n\t\t\t\talert(\"Errore di conversione\",\"Attenzione!\",\"Il prezzo massimo inserito non risulta essere un valore numerico valido\");\r\n\t\t\tprezzoMax.setText(\"\");\r\n\t\t}\r\n\t\tString prod = nomeProdotto.getText();\t\r\n\t\t\r\n\t\tprodotti = ac.applicaFiltro(prodotti, OptionalInt.of(codice), prod,\r\n\t\t\t\t\t\t\t\t\tOptional.of(pMin), Optional.of(pMax));\r\n\t\t\r\n\t\tcodiceCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"codice\"));\r\n prodottoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"nome\"));\r\n descCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"descrizione\"));\r\n prezzoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Float>(\"prezzo\"));\r\n disponibilitaCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"disponibilita\"));\r\n \r\n Collections.sort(prodotti);\r\n tabellaProdotti.getItems().setAll(prodotti);\r\n}", "private MenuServicios(){\n super(\"Gym Manager Servicios a Socios\");\n setBackground(Color.WHITE);\n\tgetContentPane().setLayout(null);\n setResizable(false);\n\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n pack();\n\tsetSize(942,592);\n\tsetLocationRelativeTo(null);\n image_path = \"jar:\" + getClass().getProtectionDomain().getCodeSource().\n getLocation().toString() + \"!/imagenes/\";\n \n jdpFondo = new JDesktopPane();\n jdpFondo.setBackground(Color.WHITE);\n jtpcContenedor = new JXTaskPaneContainer();\n jtpPanel = new JXTaskPane();\n jtpPanel2 = new JXTaskPane();\n jpnlPanelPrincilal = new JPanel();\n jpnlPanelPrincilal.setBackground(Color.WHITE);\n jtpcContenedor.setBackground(Color.LIGHT_GRAY);\n \n paginaInicio();\n crearComponentes();\n addToPanel();\n accionComponentes();\n \n }", "@FXML\n\tpublic void onAnadirIdioma() {\n\t\tDialog<ButtonType> dialog = new Dialog<>();\n\t\tdialog.setTitle(\"Nuevo Conocimiento\");\n\n\t\t// declaramos los tipo de botones\n\n\t\tButtonType anadirButton = new ButtonType(\"Crear\", ButtonData.OK_DONE);\n\t\tdialog.getDialogPane().getButtonTypes().addAll(anadirButton, ButtonType.CANCEL);\n\t\tStage stage = (Stage) dialog.getDialogPane().getScene().getWindow();\n\t\tstage.getIcons().add(new Image(\"dad/javafx/resources/cv64x64.png\"));\n\n\t\t// creamos los campos\n\t\tGridPane grid = new GridPane();\n\t\tgrid.setHgap(10);\n\t\tgrid.setVgap(10);\n\t\tgrid.setPadding(new Insets(20, 150, 10, 10));\n\n\t\tButton xButton = new Button(\"X\");\n\n\t\tTextField denominacionTextField = new TextField();\n\t\tTextField certificacionTextField = new TextField();\n\t\tLabel certificacionLabel = new Label(\"Certificacion\");\n\t\tLabel denominacionDialogLabel = new Label(\"Denominacion\");\n\t\tLabel nivelDialogLabel = new Label(\"Nivel\");\n\n\t\tComboBox<Nivel> nivelComboBox = new ComboBox<Nivel>();\n\t\tnivelComboBox.getItems().addAll(Nivel.values());\n\t\tHBox box = new HBox(nivelComboBox, xButton);\n\t\tbox.setSpacing(5);\n\n\t\tgrid.add(denominacionDialogLabel, 0, 0);\n\t\tgrid.add(denominacionTextField, 1, 0);\n\t\tgrid.add(nivelDialogLabel, 0, 1);\n\t\tgrid.add(box, 1, 1);\n\t\tgrid.add(certificacionLabel, 0, 2);\n\t\tgrid.add(certificacionTextField, 1, 2);\n\n\t\txButton.setOnAction(e -> nivelComboBox.getSelectionModel().select(-1));\n\n\t\t// activar o desactivar el boton a�adir dependiendo de si se ha a�adido un\n\t\t// numero de telefono o no\n\n\t\t// metemos el grid pane en nuestro dialog\n\t\tdialog.getDialogPane().setContent(grid);\n\n\t\t// accion al apretar a�adir button\n\n\t\tOptional<ButtonType> result = dialog.showAndWait();\n\t\tif (result.get() == anadirButton) {\n\t\t\tIdioma idioma = new Idioma();\n\t\t\tidioma.setCertificacion(certificacionTextField.getText());\n\t\t\tConocimiento conocimiento = new Conocimiento();\n\t\t\tconocimiento.setDenominacion(denominacionTextField.getText());\n\t\t\tconocimiento.setNivel(nivelComboBox.getValue());\n\t\t\tconocimiento.setIdioma(idioma);\n\t\t\tmodel.conocimientoProperty().add(conocimiento);\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n xtsTitulo = new org.jdesktop.swingx.JXTitledSeparator();\n xlblLegajo = new org.jdesktop.swingx.JXLabel();\n xlblTipoDocumento = new org.jdesktop.swingx.JXLabel();\n xlblApellidoRazon = new org.jdesktop.swingx.JXLabel();\n xlblEstado = new org.jdesktop.swingx.JXLabel();\n xlblNumeroDocumento = new org.jdesktop.swingx.JXLabel();\n xlblCui = new org.jdesktop.swingx.JXLabel();\n lblLegajo = new javax.swing.JLabel();\n lblTipoDocumento = new javax.swing.JLabel();\n lblApellidoRazon = new javax.swing.JLabel();\n lblCui = new javax.swing.JLabel();\n lblNumeroDocumento = new javax.swing.JLabel();\n lblEstado = new javax.swing.JLabel();\n btnEliminar = new javax.swing.JButton();\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(ar.gov.cjpmv.prestamos.gui.Principal.class).getContext().getResourceMap(PnlDatosSolicitanteGarante.class);\n setBackground(resourceMap.getColor(\"FondoGris\")); // NOI18N\n setName(\"Form\"); // NOI18N\n\n xtsTitulo.setForeground(resourceMap.getColor(\"ColorTituloBarrita\")); // NOI18N\n xtsTitulo.setFont(resourceMap.getFont(\"xtsTitulo.font\")); // NOI18N\n xtsTitulo.setIcon(resourceMap.getIcon(\"xtsTitulo.icon\")); // NOI18N\n xtsTitulo.setName(\"xtsTitulo\"); // NOI18N\n xtsTitulo.setTitle(resourceMap.getString(\"xtsTitulo.title\")); // NOI18N\n\n xlblLegajo.setForeground(resourceMap.getColor(\"ColorTextoCampo\")); // NOI18N\n xlblLegajo.setText(resourceMap.getString(\"xlblLegajo.text\")); // NOI18N\n xlblLegajo.setFont(resourceMap.getFont(\"Campo\")); // NOI18N\n xlblLegajo.setName(\"xlblLegajo\"); // NOI18N\n\n xlblTipoDocumento.setForeground(resourceMap.getColor(\"ColorTextoCampo\")); // NOI18N\n xlblTipoDocumento.setText(resourceMap.getString(\"xlblTipoDocumento.text\")); // NOI18N\n xlblTipoDocumento.setFont(resourceMap.getFont(\"Campo\")); // NOI18N\n xlblTipoDocumento.setName(\"xlblTipoDocumento\"); // NOI18N\n\n xlblApellidoRazon.setForeground(resourceMap.getColor(\"ColorTextoCampo\")); // NOI18N\n xlblApellidoRazon.setText(resourceMap.getString(\"xlblApellidoRazon.text\")); // NOI18N\n xlblApellidoRazon.setFont(resourceMap.getFont(\"Campo\")); // NOI18N\n xlblApellidoRazon.setName(\"xlblApellidoRazon\"); // NOI18N\n\n xlblEstado.setForeground(resourceMap.getColor(\"ColorTextoCampo\")); // NOI18N\n xlblEstado.setText(resourceMap.getString(\"xlblEstado.text\")); // NOI18N\n xlblEstado.setFont(resourceMap.getFont(\"Campo\")); // NOI18N\n xlblEstado.setName(\"xlblEstado\"); // NOI18N\n\n xlblNumeroDocumento.setForeground(resourceMap.getColor(\"ColorTextoCampo\")); // NOI18N\n xlblNumeroDocumento.setText(resourceMap.getString(\"xlblNumeroDocumento.text\")); // NOI18N\n xlblNumeroDocumento.setFont(resourceMap.getFont(\"Campo\")); // NOI18N\n xlblNumeroDocumento.setName(\"xlblNumeroDocumento\"); // NOI18N\n\n xlblCui.setForeground(resourceMap.getColor(\"ColorTextoCampo\")); // NOI18N\n xlblCui.setText(resourceMap.getString(\"xlblCui.text\")); // NOI18N\n xlblCui.setFont(resourceMap.getFont(\"Campo\")); // NOI18N\n xlblCui.setName(\"xlblCui\"); // NOI18N\n\n lblLegajo.setFont(resourceMap.getFont(\"Campo\")); // NOI18N\n lblLegajo.setForeground(resourceMap.getColor(\"ColorTextoCampo\")); // NOI18N\n lblLegajo.setText(resourceMap.getString(\"lblLegajo.text\")); // NOI18N\n lblLegajo.setName(\"lblLegajo\"); // NOI18N\n\n lblTipoDocumento.setForeground(resourceMap.getColor(\"lblTipoDocumento.foreground\")); // NOI18N\n lblTipoDocumento.setText(resourceMap.getString(\"lblTipoDocumento.text\")); // NOI18N\n lblTipoDocumento.setName(\"lblTipoDocumento\"); // NOI18N\n\n lblApellidoRazon.setForeground(resourceMap.getColor(\"lblApellidoRazon.foreground\")); // NOI18N\n lblApellidoRazon.setText(resourceMap.getString(\"lblApellidoRazon.text\")); // NOI18N\n lblApellidoRazon.setName(\"lblApellidoRazon\"); // NOI18N\n\n lblCui.setForeground(resourceMap.getColor(\"lblCui.foreground\")); // NOI18N\n lblCui.setText(resourceMap.getString(\"lblCui.text\")); // NOI18N\n lblCui.setName(\"lblCui\"); // NOI18N\n\n lblNumeroDocumento.setForeground(resourceMap.getColor(\"lblNumeroDocumento.foreground\")); // NOI18N\n lblNumeroDocumento.setText(resourceMap.getString(\"lblNumeroDocumento.text\")); // NOI18N\n lblNumeroDocumento.setName(\"lblNumeroDocumento\"); // NOI18N\n\n lblEstado.setForeground(resourceMap.getColor(\"lblEstado.foreground\")); // NOI18N\n lblEstado.setText(resourceMap.getString(\"lblEstado.text\")); // NOI18N\n lblEstado.setName(\"lblEstado\"); // NOI18N\n\n btnEliminar.setIcon(resourceMap.getIcon(\"btnEliminar.icon\")); // NOI18N\n btnEliminar.setText(resourceMap.getString(\"btnEliminar.text\")); // NOI18N\n btnEliminar.setName(\"btnEliminar\"); // NOI18N\n btnEliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnEliminarActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(xlblLegajo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 1, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(xlblApellidoRazon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(8, 8, 8))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(xlblTipoDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18))))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblLegajo, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE)\n .addComponent(lblTipoDocumento, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE)\n .addComponent(lblApellidoRazon, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(xlblNumeroDocumento, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)\n .addComponent(xlblCui, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 130, Short.MAX_VALUE)\n .addComponent(xlblEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblEstado, javax.swing.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)\n .addComponent(lblNumeroDocumento, javax.swing.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)\n .addComponent(lblCui, javax.swing.GroupLayout.DEFAULT_SIZE, 164, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(xtsTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(651, Short.MAX_VALUE)\n .addComponent(btnEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(11, 11, 11)\n .addComponent(xtsTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblLegajo, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(xlblLegajo, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)\n .addComponent(lblTipoDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(xlblTipoDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(7, 7, 7)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(xlblApellidoRazon, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lblApellidoRazon, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(layout.createSequentialGroup()\n .addComponent(btnEliminar)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(xlblCui, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(xlblNumeroDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(xlblEstado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(lblCui, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(lblNumeroDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(5, 5, 5)\n .addComponent(lblEstado, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(21, 21, 21))\n );\n }", "@FXML\n\tpublic void filtrFile1() {\n\n\t\ttry {\n\n\t\t\tWord word;\n\n\t\t\tString s = TextFieldLitera.getText().toUpperCase();\n\n\t\t\tfor (int i = 0; i < listaliter.size(); i++) {\n\n\t\t\t\tword = listaliter.get(i);\n\n\t\t\t\tif (opisbox == null && word.getWord().toUpperCase().startsWith(s)) {\n\n\t\t\t\t\tlistaliter1.add(word);\n\n\t\t\t\t\ttableView.setItems(listaliter1);\n\n\t\t\t\t\twordColumn.setCellValueFactory(new PropertyValueFactory<Word, String>(\"word\"));\n\n\t\t\t\t\tdescribeColumn.setCellValueFactory(new PropertyValueFactory<Word, String>(\"describe\"));\n\n\t\t\t\t}\n\n\t\t\t\telse if (opisbox != null && word.getDescribe().toUpperCase().startsWith(s)) {\n\n\t\t\t\t\tlistaliter1.add(word);\n\n\t\t\t\t\ttableView.setItems(listaliter1);\n\n\t\t\t\t\twordColumn.setCellValueFactory(new PropertyValueFactory<Word, String>(\"word\"));\n\n\t\t\t\t\tdescribeColumn.setCellValueFactory(new PropertyValueFactory<Word, String>(\"describe\"));\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\n\t\t\tAlert alert = new Alert(AlertType.INFORMATION, \"wprowadz litere\");\n\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\n\t\t}\n\t}", "public void fillInnerParts() {\n if (this.staff.getCurrentView().isPresent()) {\n Staff currentStaff = this.staff.getCurrentView().get();\n Index index = this.staff.getIndex();\n staffBasicInfoDisplay = new StaffBasicInfoDisplay(currentStaff, index);\n basicInfoPlaceholder.getChildren().add(staffBasicInfoDisplay.getRoot());\n\n commentListPanel = new CommentListPanel(staff.getCommentList());\n commentListPanelPlaceholder.getChildren().add(commentListPanel.getRoot());\n\n leaveInfoDisplay = new LeaveInfoDisplay(staff.getLeaveList(), currentStaff.getLeaveTaken());\n leaveInfoPlaceholder.getChildren().add(leaveInfoDisplay.getRoot());\n }\n }", "private Parent initControls() {\n VBox root = new VBox();\n root.setSpacing(20.0);\n root.setPadding(new Insets(10.0));\n\n buttonBar.setPadding(new Insets(0.0));\n buttonBar.setPrefSize(Control.USE_COMPUTED_SIZE, Control.USE_COMPUTED_SIZE);\n \n Font police = Font.loadFont(getClass().getResourceAsStream(\"Comfortaa-Regular.ttf\"), 12);\n nomMethode.setFont(police);\n typeMethode.setFont(police);\n ajouterParametre.setFont(police);\n parametresLabel.setFont(police);\n supprimerParametre.setFont(police);\n visibiliteMethode.setFont(police);\n annuler.setFont(police);\n confirmer.setFont(police);\n \n annuler.getStyleClass().add(\"annuler\");\n\n comboBoxVisibilite.setItems(FXCollections.observableArrayList(Visibilite.values()));\n comboBoxType.setItems(FXCollections.observableArrayList(Type.values()));\n\n hBoxNom.getChildren().addAll(nomMethode, textFieldNom);\n hBoxNom.setSpacing(10.0);\n hBoxTyoe.getChildren().addAll(typeMethode, comboBoxType);\n hBoxTyoe.setSpacing(10.0);\n hBoxVisibilite.getChildren().addAll(visibiliteMethode, comboBoxVisibilite);\n hBoxVisibilite.setSpacing(10.0);\n vBox.getChildren().addAll(hBoxNom, hBoxTyoe, hBoxVisibilite);\n vBox.setSpacing(10.0);\n\n erreurLabel.setId(\"erreur\");\n annuler.setId(\"annuler\");\n\n vBoxParametres.setSpacing(5.0);\n vBoxParametres.getChildren().addAll(parametresLabel, parametreListView, parametreBar);\n\n parametreBar.getButtons().addAll(ajouterParametre, modifierParametre, supprimerParametre);\n buttonBar.getButtons().addAll(confirmer, annuler);\n\n root.getChildren().addAll(vBox, vBoxParametres, erreurLabel, buttonBar);\n\n modifierParametre.disableProperty().bind(Bindings.isEmpty(parametreListView.getSelectionModel().getSelectedItems()));\n supprimerParametre.disableProperty().bind(Bindings.isEmpty(parametreListView.getSelectionModel().getSelectedItems()));\n\n confirmer.setOnAction(event -> {\n creerMethode();\n });\n\n annuler.setOnAction(event -> {\n close();\n });\n\n ajouterParametre.setOnAction(event -> {\n ajouterParametre();\n });\n\n modifierParametre.setOnAction(event -> {\n modifierParametre();\n });\n\n supprimerParametre.setOnAction(event -> {\n supprimerParametre();\n });\n\n return root;\n }", "public void gotoMyInfo(){\n try {\n FXMLMyInfoController verMyInfo = (FXMLMyInfoController) replaceSceneContent(\"FXMLMyInfo.fxml\");\n verMyInfo.setApp(this);\n } catch (Exception ex) {\n Logger.getLogger(IndieAirwaysClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void setFilaDatosExportarXmlLiquidacionImpuestoImpor(LiquidacionImpuestoImpor liquidacionimpuestoimpor,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(LiquidacionImpuestoImporConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(liquidacionimpuestoimpor.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(LiquidacionImpuestoImporConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(liquidacionimpuestoimpor.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementpedidocompraimpor_descripcion = document.createElement(LiquidacionImpuestoImporConstantesFunciones.IDPEDIDOCOMPRAIMPOR);\r\n\t\telementpedidocompraimpor_descripcion.appendChild(document.createTextNode(liquidacionimpuestoimpor.getpedidocompraimpor_descripcion()));\r\n\t\telement.appendChild(elementpedidocompraimpor_descripcion);\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(LiquidacionImpuestoImporConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(liquidacionimpuestoimpor.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementsucursal_descripcion = document.createElement(LiquidacionImpuestoImporConstantesFunciones.IDSUCURSAL);\r\n\t\telementsucursal_descripcion.appendChild(document.createTextNode(liquidacionimpuestoimpor.getsucursal_descripcion()));\r\n\t\telement.appendChild(elementsucursal_descripcion);\r\n\r\n\t\tElement elementcliente_descripcion = document.createElement(LiquidacionImpuestoImporConstantesFunciones.IDCLIENTE);\r\n\t\telementcliente_descripcion.appendChild(document.createTextNode(liquidacionimpuestoimpor.getcliente_descripcion()));\r\n\t\telement.appendChild(elementcliente_descripcion);\r\n\r\n\t\tElement elementfactura_descripcion = document.createElement(LiquidacionImpuestoImporConstantesFunciones.IDFACTURA);\r\n\t\telementfactura_descripcion.appendChild(document.createTextNode(liquidacionimpuestoimpor.getfactura_descripcion()));\r\n\t\telement.appendChild(elementfactura_descripcion);\r\n\r\n\t\tElement elementnumero_comprobante = document.createElement(LiquidacionImpuestoImporConstantesFunciones.NUMEROCOMPROBANTE);\r\n\t\telementnumero_comprobante.appendChild(document.createTextNode(liquidacionimpuestoimpor.getnumero_comprobante().trim()));\r\n\t\telement.appendChild(elementnumero_comprobante);\r\n\r\n\t\tElement elementnumero_dui = document.createElement(LiquidacionImpuestoImporConstantesFunciones.NUMERODUI);\r\n\t\telementnumero_dui.appendChild(document.createTextNode(liquidacionimpuestoimpor.getnumero_dui().trim()));\r\n\t\telement.appendChild(elementnumero_dui);\r\n\r\n\t\tElement elementfecha = document.createElement(LiquidacionImpuestoImporConstantesFunciones.FECHA);\r\n\t\telementfecha.appendChild(document.createTextNode(liquidacionimpuestoimpor.getfecha().toString().trim()));\r\n\t\telement.appendChild(elementfecha);\r\n\r\n\t\tElement elementfecha_pago = document.createElement(LiquidacionImpuestoImporConstantesFunciones.FECHAPAGO);\r\n\t\telementfecha_pago.appendChild(document.createTextNode(liquidacionimpuestoimpor.getfecha_pago().toString().trim()));\r\n\t\telement.appendChild(elementfecha_pago);\r\n\r\n\t\tElement elementfob = document.createElement(LiquidacionImpuestoImporConstantesFunciones.FOB);\r\n\t\telementfob.appendChild(document.createTextNode(liquidacionimpuestoimpor.getfob().toString().trim()));\r\n\t\telement.appendChild(elementfob);\r\n\r\n\t\tElement elementseguro = document.createElement(LiquidacionImpuestoImporConstantesFunciones.SEGURO);\r\n\t\telementseguro.appendChild(document.createTextNode(liquidacionimpuestoimpor.getseguro().toString().trim()));\r\n\t\telement.appendChild(elementseguro);\r\n\r\n\t\tElement elementflete = document.createElement(LiquidacionImpuestoImporConstantesFunciones.FLETE);\r\n\t\telementflete.appendChild(document.createTextNode(liquidacionimpuestoimpor.getflete().toString().trim()));\r\n\t\telement.appendChild(elementflete);\r\n\r\n\t\tElement elementporcentaje_fodi = document.createElement(LiquidacionImpuestoImporConstantesFunciones.PORCENTAJEFODI);\r\n\t\telementporcentaje_fodi.appendChild(document.createTextNode(liquidacionimpuestoimpor.getporcentaje_fodi().toString().trim()));\r\n\t\telement.appendChild(elementporcentaje_fodi);\r\n\r\n\t\tElement elementporcentaje_iva = document.createElement(LiquidacionImpuestoImporConstantesFunciones.PORCENTAJEIVA);\r\n\t\telementporcentaje_iva.appendChild(document.createTextNode(liquidacionimpuestoimpor.getporcentaje_iva().toString().trim()));\r\n\t\telement.appendChild(elementporcentaje_iva);\r\n\r\n\t\tElement elementtasa_control = document.createElement(LiquidacionImpuestoImporConstantesFunciones.TASACONTROL);\r\n\t\telementtasa_control.appendChild(document.createTextNode(liquidacionimpuestoimpor.gettasa_control().toString().trim()));\r\n\t\telement.appendChild(elementtasa_control);\r\n\r\n\t\tElement elementcfr = document.createElement(LiquidacionImpuestoImporConstantesFunciones.CFR);\r\n\t\telementcfr.appendChild(document.createTextNode(liquidacionimpuestoimpor.getcfr().toString().trim()));\r\n\t\telement.appendChild(elementcfr);\r\n\r\n\t\tElement elementcif = document.createElement(LiquidacionImpuestoImporConstantesFunciones.CIF);\r\n\t\telementcif.appendChild(document.createTextNode(liquidacionimpuestoimpor.getcif().toString().trim()));\r\n\t\telement.appendChild(elementcif);\r\n\r\n\t\tElement elementtotal = document.createElement(LiquidacionImpuestoImporConstantesFunciones.TOTAL);\r\n\t\telementtotal.appendChild(document.createTextNode(liquidacionimpuestoimpor.gettotal().toString().trim()));\r\n\t\telement.appendChild(elementtotal);\r\n\t}", "public VistaCrearEmpleado() {\n\t\tsetClosable(true);\n\t\tsetFrameIcon(new ImageIcon(VistaCrearEmpleado.class.getResource(\"/com/mordor/mordorLloguer/recursos/account_circle24dp.png\")));\n\t\tsetBounds(100, 100, 467, 435);\n\t\tgetContentPane().setLayout(new MigLayout(\"\", \"[152px][235px]\", \"[19px][19px][19px][19px][19px][19px][45px][24px][19px][25px]\"));\n\t\t\n\t\tJLabel lblDni = new JLabel(\"DNI: \");\n\t\tgetContentPane().add(lblDni, \"cell 0 0,growx,aligny center\");\n\t\t\n\t\ttxtDNI = new JTextField();\n\t\tgetContentPane().add(txtDNI, \"cell 1 0,growx,aligny top\");\n\t\ttxtDNI.setColumns(10);\n\t\t\n\t\tJLabel lblNombre = new JLabel(\"Nombre: \");\n\t\tgetContentPane().add(lblNombre, \"cell 0 1,growx,aligny center\");\n\t\t\n\t\ttxtNombre = new JTextField();\n\t\tgetContentPane().add(txtNombre, \"cell 1 1,growx,aligny top\");\n\t\ttxtNombre.setColumns(10);\n\t\t\n\t\tJLabel lblApellidos = new JLabel(\"Apellidos: \");\n\t\tgetContentPane().add(lblApellidos, \"cell 0 2,growx,aligny center\");\n\t\t\n\t\ttxtApellidos = new JTextField();\n\t\tgetContentPane().add(txtApellidos, \"cell 1 2,growx,aligny top\");\n\t\ttxtApellidos.setColumns(10);\n\t\t\n\t\tJLabel lblDomicilio = new JLabel(\"Domicilio:\");\n\t\tgetContentPane().add(lblDomicilio, \"cell 0 3,growx,aligny center\");\n\t\t\n\t\ttxtDomicilio = new JTextField();\n\t\tgetContentPane().add(txtDomicilio, \"cell 1 3,growx,aligny top\");\n\t\ttxtDomicilio.setColumns(10);\n\t\t\n\t\tJLabel lblCp = new JLabel(\"CP:\");\n\t\tgetContentPane().add(lblCp, \"cell 0 4,growx,aligny center\");\n\t\t\n\t\ttxtCp = new JTextField();\n\t\tgetContentPane().add(txtCp, \"cell 1 4,growx,aligny top\");\n\t\ttxtCp.setColumns(10);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"Email:\");\n\t\tgetContentPane().add(lblEmail, \"cell 0 5,growx,aligny center\");\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\tgetContentPane().add(txtEmail, \"cell 1 5,growx,aligny top\");\n\t\ttxtEmail.setColumns(10);\n\t\t\n\t\tJLabel lblFechaDeNacimiento = new JLabel(\"Fecha de Nacimiento:\");\n\t\tgetContentPane().add(lblFechaDeNacimiento, \"cell 0 6,alignx left,aligny center\");\n\t\t\n\t\ttxtDate = new WebDateField();\n\t\tgetContentPane().add(txtDate, \"cell 1 6,growx,aligny top\");\n\t\t\n\t\tJLabel lblCargo = new JLabel(\"Cargo:\");\n\t\tgetContentPane().add(lblCargo, \"cell 0 7,growx,aligny center\");\n\t\t\n\t\tcomboBoxCargo= new JComboBox<String> ();\n\t\tgetContentPane().add(comboBoxCargo, \"cell 1 7,growx,aligny top\");\n\t\t\n\t\tJLabel lblContrasea = new JLabel(\"Contraseña:\");\n\t\tgetContentPane().add(lblContrasea, \"cell 0 8,growx,aligny center\");\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tgetContentPane().add(passwordField, \"cell 1 8,growx,aligny top\");\n\t\t\n\t\tbtnAdd = new JButton(\"Add\");\n\t\tgetContentPane().add(btnAdd, \"cell 0 9,growx,aligny top\");\n\t\t\n\t\tbtnCancel = new JButton(\"Cancel\");\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tgetContentPane().add(btnCancel, \"cell 1 9,growx,aligny top\");\n\n\t}", "@FXML\r\n public void inventario(ActionEvent e) throws IOException {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/Inventario/Inventario.fxml\"));\r\n Parent root1 = (Parent) fxmlLoader.load();\r\n Stage stage = new Stage();\r\n stage.setScene(new Scene(root1));\r\n stage.setTitle(\"MEVECOM <>\");\r\n stage.setResizable(false);\r\n stage.show();\r\n //Cerrar ventana actual\r\n Stage actual = (Stage) btnSalir.getScene().getWindow();\r\n actual.close();\r\n }", "@FXML void expandc1p2(MouseEvent event) { \n\ttry {\n\t\tFXMLLoader loader = new FXMLLoader (getClass().getResource(\"/resources/Fxml/ShowCandidate.fxml\"));\n Parent root = (Parent) loader.load();\n ShowCandidateController SCController=loader.getController();\n SCController.mailFunction(mailc1p2.getText());\n SCController.TitleFunction(TitleLabel1.getText());\n SCController.ExpFunction(ExpLabel1.getText());\n SCController.SectorFunction(SectorLabel1.getText());\n SCController.RegionFunction(RegionLabel1.getText()); \n Stage stage = new Stage();\n stage.setScene(new Scene(root));\n stage.setResizable(false);\n stage.show(); \n\t} catch (IOException e) {\n\t\te.printStackTrace(); }\t\n}", "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}", "private void configPElemGeneralInfoSection_name(final Text nameTextBox)\n {\n\t\tif (notifications != null) {\n\t\t\tif (notifications.getNotification() != null) {\n\t\t\t\tif (notifications.getNotification().size() != 0) {\n\t\t\t\t\tif (notifications.getNotification().get(0) != null) {\n\t\t\t\t\t\tif (notifications.getNotification().get(0)\n\t\t\t\t\t\t\t\t.getPresentationElements() != null) {\n\t\t\t\t\t\t\tif (notifications.getNotification().get(0)\n\t\t\t\t\t\t\t\t\t.getPresentationElements().getName() != null) {\n\t\t\t\t\t\t\t\tif (notifications.getNotification().get(0)\n\t\t\t\t\t\t\t\t\t\t.getPresentationElements().getName()\n\t\t\t\t\t\t\t\t\t\t.size() != 0) {\n\t\t\t\t\t\t\t\t\tif (notifications.getNotification().get(0)\n\t\t\t\t\t\t\t\t\t\t\t.getPresentationElements()\n\t\t\t\t\t\t\t\t\t\t\t.getName().get(0) != null) {\n\t\t\t\t\t\t\t\t\t\tif (notifications.getNotification()\n\t\t\t\t\t\t\t\t\t\t\t\t.get(0)\n\t\t\t\t\t\t\t\t\t\t\t\t.getPresentationElements()\n\t\t\t\t\t\t\t\t\t\t\t\t.getName().get(0).getMixed() != null) {\n\t\t\t\t\t\t\t\t\t\t\tif (notifications.getNotification()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.get(0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getPresentationElements()\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getName().get(0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.getMixed().size() != 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tif (notifications\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getNotification()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getPresentationElements()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getName().get(0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getMixed().get(0) != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (notifications\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getNotification()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getPresentationElements()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getName().get(0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getMixed().get(0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getValue() != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnameTextBox\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setText(notifications\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getNotification()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getPresentationElements()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getName()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getMixed()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getValue()\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} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnameTextBox\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setText(EMFObjectHandleUtil.RESOURCE_NOT_AVAILABLE);\n\n\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} else {\n\t\t\t\t\t\t\t\t\t\t\t\t\tnameTextBox\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setText(EMFObjectHandleUtil.RESOURCE_NOT_AVAILABLE);\n\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tnameTextBox\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setText(EMFObjectHandleUtil.RESOURCE_NOT_AVAILABLE);\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tnameTextBox\n\t\t\t\t\t\t\t\t\t\t\t\t\t.setText(EMFObjectHandleUtil.RESOURCE_NOT_AVAILABLE);\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tnameTextBox\n\t\t\t\t\t\t\t\t\t\t\t\t.setText(EMFObjectHandleUtil.RESOURCE_NOT_AVAILABLE);\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnameTextBox\n\t\t\t\t\t\t\t\t\t\t\t.setText(EMFObjectHandleUtil.RESOURCE_NOT_AVAILABLE);\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tnameTextBox\n\t\t\t\t\t\t\t\t\t\t.setText(EMFObjectHandleUtil.RESOURCE_NOT_AVAILABLE);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnameTextBox\n\t\t\t\t\t\t\t\t\t.setText(EMFObjectHandleUtil.RESOURCE_NOT_AVAILABLE);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tnameTextBox\n\t\t\t\t\t\t\t\t.setText(EMFObjectHandleUtil.RESOURCE_NOT_AVAILABLE);\n\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tnameTextBox\n\t\t\t\t\t\t\t.setText(EMFObjectHandleUtil.RESOURCE_NOT_AVAILABLE);\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tnameTextBox.setText(EMFObjectHandleUtil.RESOURCE_NOT_AVAILABLE);\n\n\t\t\t}\n\t\t} else {\n\t\t\tnameTextBox.setText(EMFObjectHandleUtil.RESOURCE_NOT_AVAILABLE);\n\n\t\t}\n\t\t\n\t\t \t\t\n\t\t nameTextBox.addModifyListener(new ModifyListener() {\n\t\t \t\t\tpublic void modifyText(ModifyEvent e) \n\t\t \t\t\t{\n\t\t \t\t\t// validateInput(); \n\t\t \t\t\t setAttribute_tParameter(htdPackage.eINSTANCE.getTExpression_Mixed(), nameTextBox.getText()); \n\t\t \t\t\t\t\n\t\t \t\t\t}\n\t\t \t\t});\n\t }", "public void setFilaDatosExportarXmlPagosAutorizados(PagosAutorizados pagosautorizados,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(PagosAutorizadosConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(pagosautorizados.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(PagosAutorizadosConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(pagosautorizados.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(PagosAutorizadosConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(pagosautorizados.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementfecha_corte = document.createElement(PagosAutorizadosConstantesFunciones.FECHACORTE0);\r\n\t\telementfecha_corte.appendChild(document.createTextNode(pagosautorizados.getfecha_corte().toString().trim()));\r\n\t\telement.appendChild(elementfecha_corte);\r\n\r\n\t\tElement elementnombre_cliente = document.createElement(PagosAutorizadosConstantesFunciones.NOMBRECLIENTE);\r\n\t\telementnombre_cliente.appendChild(document.createTextNode(pagosautorizados.getnombre_cliente().trim()));\r\n\t\telement.appendChild(elementnombre_cliente);\r\n\r\n\t\tElement elementnumero_factura = document.createElement(PagosAutorizadosConstantesFunciones.NUMEROFACTURA);\r\n\t\telementnumero_factura.appendChild(document.createTextNode(pagosautorizados.getnumero_factura().trim()));\r\n\t\telement.appendChild(elementnumero_factura);\r\n\r\n\t\tElement elementfecha_emision = document.createElement(PagosAutorizadosConstantesFunciones.FECHAEMISION);\r\n\t\telementfecha_emision.appendChild(document.createTextNode(pagosautorizados.getfecha_emision().toString().trim()));\r\n\t\telement.appendChild(elementfecha_emision);\r\n\r\n\t\tElement elementfecha_vencimiento = document.createElement(PagosAutorizadosConstantesFunciones.FECHAVENCIMIENTO);\r\n\t\telementfecha_vencimiento.appendChild(document.createTextNode(pagosautorizados.getfecha_vencimiento().toString().trim()));\r\n\t\telement.appendChild(elementfecha_vencimiento);\r\n\r\n\t\tElement elementnombre_banco = document.createElement(PagosAutorizadosConstantesFunciones.NOMBREBANCO);\r\n\t\telementnombre_banco.appendChild(document.createTextNode(pagosautorizados.getnombre_banco().trim()));\r\n\t\telement.appendChild(elementnombre_banco);\r\n\r\n\t\tElement elementvalor_por_pagar = document.createElement(PagosAutorizadosConstantesFunciones.VALORPORPAGAR);\r\n\t\telementvalor_por_pagar.appendChild(document.createTextNode(pagosautorizados.getvalor_por_pagar().toString().trim()));\r\n\t\telement.appendChild(elementvalor_por_pagar);\r\n\r\n\t\tElement elementvalor_cancelado = document.createElement(PagosAutorizadosConstantesFunciones.VALORCANCELADO);\r\n\t\telementvalor_cancelado.appendChild(document.createTextNode(pagosautorizados.getvalor_cancelado().toString().trim()));\r\n\t\telement.appendChild(elementvalor_cancelado);\r\n\r\n\t\tElement elementnumero_cuenta = document.createElement(PagosAutorizadosConstantesFunciones.NUMEROCUENTA);\r\n\t\telementnumero_cuenta.appendChild(document.createTextNode(pagosautorizados.getnumero_cuenta().trim()));\r\n\t\telement.appendChild(elementnumero_cuenta);\r\n\r\n\t\tElement elementesta_autorizado = document.createElement(PagosAutorizadosConstantesFunciones.ESTAAUTORIZADO);\r\n\t\telementesta_autorizado.appendChild(document.createTextNode(pagosautorizados.getesta_autorizado().toString().trim()));\r\n\t\telement.appendChild(elementesta_autorizado);\r\n\r\n\t\tElement elementdescripcion = document.createElement(PagosAutorizadosConstantesFunciones.DESCRIPCION);\r\n\t\telementdescripcion.appendChild(document.createTextNode(pagosautorizados.getdescripcion().trim()));\r\n\t\telement.appendChild(elementdescripcion);\r\n\r\n\t\tElement elementfecha_corte_dato = document.createElement(PagosAutorizadosConstantesFunciones.FECHACORTE);\r\n\t\telementfecha_corte_dato.appendChild(document.createTextNode(pagosautorizados.getfecha_corte_dato().toString().trim()));\r\n\t\telement.appendChild(elementfecha_corte_dato);\r\n\r\n\t\tElement elementestado = document.createElement(PagosAutorizadosConstantesFunciones.ESTADO);\r\n\t\telementestado.appendChild(document.createTextNode(pagosautorizados.getestado().trim()));\r\n\t\telement.appendChild(elementestado);\r\n\r\n\t\tElement elementcodigo_cuenta_con_cliente = document.createElement(PagosAutorizadosConstantesFunciones.CODIGOCUENTACONCLIENTE);\r\n\t\telementcodigo_cuenta_con_cliente.appendChild(document.createTextNode(pagosautorizados.getcodigo_cuenta_con_cliente().trim()));\r\n\t\telement.appendChild(elementcodigo_cuenta_con_cliente);\r\n\r\n\t\tElement elementcodigo_cuenta_con_banco = document.createElement(PagosAutorizadosConstantesFunciones.CODIGOCUENTACONBANCO);\r\n\t\telementcodigo_cuenta_con_banco.appendChild(document.createTextNode(pagosautorizados.getcodigo_cuenta_con_banco().trim()));\r\n\t\telement.appendChild(elementcodigo_cuenta_con_banco);\r\n\t}", "public Informes() {\n initComponents();\n pnFechas.setBounds(10,10,350,60);\n pnSemana.setBounds(10,10,350,60);\n layer.add(pnFechas, 1, 1);\n layer.add(pnSemana, 1, 0);\n \n \n this.setIconifiable(true);\n this.setResizable(true);\n this.setClosable(true);\n this.setMaximizable(true);\n\n }", "@Override\r\n\tpublic void startElement(String espacio_nombres, String nombre_completo, String nombre_etiqueta,\r\n\t\t\tAttributes atributos) throws SAXException {\r\n\t\tif (nombre_etiqueta.equals(\"cantidad\")) {\r\n\t\t\tSystem.out.println(\"Cantidad: \");\r\n\t\t\tetiqueta_anterior = \"cantidad\";\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"dia-embarque\")) {\r\n\t\t\tSystem.out.println(\"Dia de embarque de la mercancia: \");\r\n\t\t\tetiqueta_anterior = \"\";\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"coche\")) {\r\n\t\t\tSystem.out.println(\"Datos del Coche: \");\r\n\t\t\tif (atributos.getLength() == 1) {\r\n\t\t\t\tSystem.out.println(atributos.getValue(\"segundamano\"));\r\n\t\t\t}\r\n\t\t\tetiqueta_anterior = \"\";\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"marca\")) {\r\n\t\t\tSystem.out.println(\"Marca: \");\r\n\t\t\tetiqueta_anterior = \"marca\";\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"modelo\")) {\r\n\t\t\tSystem.out.println(\"Modelo: \");\r\n\t\t\tetiqueta_anterior = \"\";\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"precio\")) {\r\n\t\t\tSystem.out.println(\"Precio: \");\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"kilometros\")) {\r\n\t\t\tSystem.out.println(\"Kilometros reales: \");\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"fecha-matriculacion\")) {\r\n\t\t\tSystem.out.println(\"Fecha de Matricualcion: \");\r\n\t\t}\r\n\r\n\t}", "@FXML\n private void writeFiles(){\n setProfileUNr();\n PonsFileFactory ponsFileFactory = new PonsFileFactory();\n ponsFileFactory.setKykgat(isKykgat.isSelected());\n for (Profile profile : profiles) {\n createFile(ponsFileFactory,profile);\n }\n moveXBy.setText(\"0\");\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n // TODO\n\n\n GridPane grid = new GridPane();\n\n grid.setPadding(new javafx.geometry.Insets(10,10,10,10));\n \n \n \nProduitService sb=new ProduitService();\nList<Produit>lst=sb.FindAll();\nint elements=sb.counte();\n\n\n grid.setHgap(10);\n grid.setVgap(10);\n int cols=4, colCnt = 0, rowCnt = 0;\n\n for (int i=0; i<elements; i++) {\nFileInputStream input = null;\n try {\n input = new FileInputStream(\"C:\\\\images\\\\\"+lst.get(i).getPhoto());\n \n Image image = new Image(input);\n ImageView imageView = new ImageView(image);\n imageView.setFitHeight(100);\n imageView.setFitWidth(100);\n Label label1 = new Label(lst.get(i).getModel());\n Label label2 = new Label(lst.get(i).getType());\n Label label3 = new Label(lst.get(i).getQuantity());\n Label label4 = new Label(lst.get(i).getPrice()+\" $\");\n int x=lst.get(i).getId();\n \n VBox root = new VBox(label1,imageView,label2,label3,label4);\n grid.add(root,colCnt,rowCnt);\n colCnt+=1;\n if (colCnt>cols) {\n rowCnt++;\n colCnt=0;\n } } catch (FileNotFoundException ex) {\n Logger.getLogger(FXML_ProductController.class.getName()).log(Level.SEVERE, null, ex);\n } \n }\n panell.getChildren().add(grid);\n \n \n\n \n\n \n \n \n \n \n \n }", "protected void createContents() {\n\n\t}", "public Fenetre() {\n super(\"Mahjong\");\n this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n this.addWindowListener(this);\n\n gestionnaireJoueurs = new GestionnaireJoueur();\n gestionnaireJoueurs.chargerJoueurs();\n\n container = new JPanel();\n container.setLayout(new CardLayout());\n\n menu = new MenuPrincipal(this);\n container.add(menu, \"Menu\");\n\n interfaceDeJeu = new InterfaceDeJeu(this);\n container.add(interfaceDeJeu, \"Interface\");\n\n ecranSelectionJoueur = new SelectionJoueur(this);\n container.add(ecranSelectionJoueur, \"EcranSelectionJoueur\");\n\n classement = new ClassementJoueurs(this);\n container.add(classement, \"Classement\");\n\n this.setContentPane(container);\n this.setMinimumSize(new Dimension(AfficheurDePlateau.LARGEUR_TUILE * 15 + 150, AfficheurDePlateau.HAUTEUR_TUILE * 15));\n this.setVisible(true);\n }", "private void setupSpalteFaz() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteFaz.setCellValueFactory(new PropertyValueFactory<>(\"faz\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteFaz.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteFaz.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setFaz(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public Zufallsgenerator(){//der arbeitskonstruktor, der alles setzt\n\t\t\n\t\tfile=\"Zwischenstand.txt\";\n\t\tint x=Gamepanel.Spielfeld.length;//hol die spielfeld-länge\n\n\t\tString ausgabe=\"\";\n\t\tausgabe+=\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"yes\\\"?>\";\n\t\tausgabe+=\"\\n\";\n\t\t\n\t\tausgabe+=\"<level>\";\n\t\tausgabe+=\"\\n\";\n\t\ttry{\n\t\tFile schreiber=new File(file);\n\t\tFileWriter fwriter=new FileWriter(schreiber);\n\t\t\n\t\t/**\n\t\t * Die Methode muss mehrmals verwendet werden, da sonst der String oft schnell zu groß wird\n\t\t */\n\t\tfor(int k=0;k<ausgabe.length();k++){\n\t\t\tchar c=ausgabe.charAt(k);\n\t\t\tif(c=='\\n')\n\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\telse fwriter.write(c);\n\t\t}\n\t\tausgabe=\"\";\n\t\tdouble ran;\n\t\t\n\t\tfor(int i=0;i<x;i++){//methode aus dem schreibe_xml\n\t\t\t\n\t\t\tfor(int j=0;j<x;j++){\t\t\t\t\n\t\t\t\tausgabe+=(\"\\t<Feld>\");\n\t\t\t\tausgabe+=\"\\n\";\n\t\t\t\tausgabe+=(\"\\t\\t<Typ>\");\n\t\t\t\t\n\t\t\t\tif(i == 0 || i == 14 || j == 0 || j == 14){\n\t\t\t\t\tausgabe+=\"unzerstoerbar\";\n\t\t\t\t} else if((i == 1 && j == 1) || (i == 1 && j == 2) || (i == 2 && j == 1) || (i == 13 && j == 13)\n\t\t\t\t\t\t|| (i == 13 && j == 12) || (i == 12 && j == 13)) {\n\t\t\t\t\tausgabe+=\"Weg\";\n\t\t\t\t} else if(i == 7 && j == 7){\n\t\t\t\t\tausgabe +=\"Ausgang\";\n\t\t\t\t} else {\n\t\t\t\t\tran = (int) (Math.random()*3);\n\t\t\t\t\tif(ran == 0) ausgabe += \"Weg\";\n\t\t\t\t\tif(ran == 1) ausgabe += \"zerstoerbar\";\n\t\t\t\t\tif(ran == 2) ausgabe += \"zerstoerbar\";\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tausgabe+=(\"</Typ>\");\n\t\t\t\tausgabe+=\"\\n\";\n\t\t\t\tausgabe+=(\"\\t\\t<Position><X>\"+j+\"</X><Y>\"+i+\"</Y></Position>\\n\");\n\t\t\t\tausgabe+=(\"\\t</Feld>\\n\");\n\t\n\t\t\t}\n\t\t\t\tfor(int k=0;k<ausgabe.length();k++){\n\t\t\t\t\tchar c=ausgabe.charAt(k);\n\t\t\t\t\tif(c=='\\n')\n\t\t\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\t\t\telse fwriter.write(c);\n\t\t\t\t}\n\t\t\t\t\tausgabe=\"\";\n\t\t\t}\n\n\t\t\tausgabe+=\"\\n\\t<Spieler1>\";\t\t\t\n\t\t\tausgabe+=\"\\n\\t\\t<X>\"+40+\"</X>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Y>\"+40+\"</Y>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzBomb>\"+1+\"</AnzBomb>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzLeben>\"+1+\"</AnzLeben>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Handschuh>\"+false+\" </Handschuh>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Kicker>\"+false+ \"</Kicker>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Speed>\"+0.0000275+\"</Speed>\"; \n\t\t\tausgabe+=\"\\n\\t\\t<BombReichweite>\"+2+\"</BombReichweite>\";\n\t\t\tausgabe +=\"\\n\\t</Spieler1>\";\n\t\t\t\n\t\t\tausgabe+=\"\\n\\t<Spieler2>\";\t\t\t\n\t\t\tausgabe+=\"\\n\\t\\t<X>\"+520+\"</X>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Y>\"+520+\"</Y>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzBomb>\"+1+\"</AnzBomb>\";\n\t\t\tausgabe+=\"\\n\\t\\t<AnzLeben>\"+1+\"</AnzLeben>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Handschuh>\"+false+\" </Handschuh>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Kicker>\"+false+ \"</Kicker>\";\n\t\t\tausgabe+=\"\\n\\t\\t<Speed>\"+0.0000275+\"</Speed>\"; \n\t\t\tausgabe+=\"\\n\\t\\t<BombReichweite>\"+2+\"</BombReichweite>\";\n\t\t\tausgabe +=\"\\n\\t</Spieler2>\";\t\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<ausgabe.length();i++){\n\t\t\t\t\tchar c=ausgabe.charAt(i);\n\t\t\t\t\tif(c=='\\n')\n\t\t\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\t\t\telse fwriter.write(c);\n\t\t\t\t}\n\t\t\t\tausgabe+=\"\\n\\n\\n</level>\";\n\t\t\t\tfor(int i=0;i<ausgabe.length();i++){\n\t\t\t\t\tchar c=ausgabe.charAt(i);\n\t\t\t\t\tif(c=='\\n')\n\t\t\t\t\t\tfwriter.append( System.getProperty(\"line.separator\") );\n\t\t\t\t\telse fwriter.write(c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\t\tfwriter.flush();\n\t\t\t\tfwriter.close();\n\t\t} catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t\n\t\t}\n\t\t\n\t}", "void loadFXMLElements () {\n Parent menuRoot = menuScene.getRoot();\n Parent mainRoot = mainScene.getRoot();\n\n// all ScrollPanes\n mainPane = (ScrollPane) mainScene.getRoot().lookup(\"#main_scrollPane\");\n menuPane = (ScrollPane) menuScene.getRoot().lookup(\"#menu_scrollPane\");\n persistentPane = (ScrollPane) mainScene.getRoot().lookup(\"#main_persistentScrollPane\");\n\n// top bar controls\n mainBarClose = (Button) mainRoot.lookup(\"#main_barClose\");\n mainBarMaximise = (Button) mainRoot.lookup(\"#main_barMaximise\");\n mainBarMinimise = (Button) mainRoot.lookup(\"#main_barMinimise\");\n\n menuBarClose = (Button) menuRoot.lookup(\"#menu_barClose\");\n menuBarMaximise = (Button) menuRoot.lookup(\"#menu_barMaximise\");\n menuBarMinimise = (Button) menuRoot.lookup(\"#menu_barMinimise\");\n\n// all Nodes in Menu\n messageLabel = (Label) menuRoot.lookup(\"#menu_messageLabel\");\n exitButton = (Button) menuRoot.lookup(\"#menu_goToMain\");\n addTimelineButton = (Button) menuRoot.lookup(\"#menu_addTimeline\");\n addEventButton = (Button) menuRoot.lookup(\"#menu_addEvent\");\n saveButton = (Button) menuRoot.lookup(\"#menu_save\");\n deleteButton = (Button) menuRoot.lookup(\"#menu_delete\");\n\n cancelTimelineButton = (Button) menuRoot.lookup(\"#menu_exitAddTimeline\");\n cancelEventButton = (Button) menuRoot.lookup(\"#menu_exitAddEvent\");\n confirmDeleteButton = (Button) menuRoot.lookup(\"#menu_confirmDelete\");\n cancelDeleteButton = (Button) menuRoot.lookup(\"#menu_cancelDelete\");\n\n// new Timeline Nodes\n timeline_nameField = (TextField) addTimelineScene.lookup(\"#timeline_nameField\");\n timeline_addButton = (Button) addTimelineScene.lookup(\"#timeline_createButton\");\n timeline_editButton = (Button) addTimelineScene.lookup(\"#timeline_editButton\");\n timeline_addLabel = (Label) addTimelineScene.lookup(\"#timeline_addLabel\");\n timeline_editLabel = (Label) addTimelineScene.lookup(\"#timeline_editLabel\");\n\n// new Event Nodes\n timelineChoice = (ChoiceBox) addEventScene.lookup(\"#event_timelineChoice\");\n event_nameField = (TextField) addEventScene.lookup(\"#event_nameField\");\n event_startDayField = (TextField) addEventScene.lookup(\"#event_startDayField\");\n event_startMonthField = (TextField) addEventScene.lookup(\"#event_startMonthField\");\n event_startYearField = (TextField) addEventScene.lookup(\"#event_startYearField\");\n event_endDayField = (TextField) addEventScene.lookup(\"#event_endDayField\");\n event_endMonthField = (TextField) addEventScene.lookup(\"#event_endMonthField\");\n event_endYearField = (TextField) addEventScene.lookup(\"#event_endYearField\");\n event_notesField = (TextField) addEventScene.lookup(\"#event_notesField\");\n event_addButton = (Button) addEventScene.lookup(\"#event_createButton\");\n event_editButton = (Button) addEventScene.lookup(\"#event_editButton\");\n event_addLabel = (Label) addEventScene.lookup(\"#event_addLabel\");\n event_editLabel = (Label) addEventScene.lookup(\"#event_editLabel\");\n }", "public void afficherLru() {\n\t\tint nbrCols = listEtape.size();\n\t\tint nbrRows = 0;\n\t\tfor(ArrayList<Processus> list: listEtape) {\n\t\t\tif(list.size() > nbrRows) nbrRows = list.size(); \n\t\t}\n\t\t\n\t\taddColsRows(resultPane, nbrCols+1, nbrRows);\n\t\taddPanelForResult(resultPane);\n\t\n\n\t\tresultPane.setStyle(\"-fx-background-color: #23CFDC\");\n\n\t\t// Affichage du résultat\n\t\tfor(int i=0; i< listEtape.size();i++) {\n\t\t\tArrayList<Processus> list = listEtape.get(i); \n\t\t\tfor(int j=0; j<list.size(); j++) {\n\t\t\t\tProcessus p = list.get(j); \n\t\t\t\tLabel label = new Label(\"\" + p.getValue());\n\n\t\t\t\tresultPane.add(label, i+1, j);\n\t\t\t\tGridPane.setHalignment(label, HPos.CENTER);\n\n\t\t\t}\n\t\t}\n\t\tresultPane.setVisible(true);\n\t\tgenere = true;\n\t}", "public void buscarGestor(){\r\n\t\t\r\n\t}", "@FXML\n private void InterfaceAjoutCategorie(ActionEvent event) throws IOException {\n \n \n Stage stage = new Stage();\n Parent root1;\n \n root1 = FXMLLoader.load(getClass().getResource(\"/com/thinklance/pidev/GUI/AjoutCategorie.fxml\"));\n \n stage.setResizable(false);\n stage.centerOnScreen();\n Scene scene = new Scene(root1);\n stage.setScene(scene);\n stage.show();\n }", "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}", "@FXML\n public void menuItemCadastroClienteClick() throws IOException {\n chamaTela(\"Cliente\");\n }", "@FXML\n void initialize() {\n assert codiceFiscale != null : \"fx:id=\\\"codiceFiscale\\\" was not injected: check your FXML file 'AggiungiRicoveroBoundary.fxml'.\";\n\n }", "public void xmlPresentation () {\n System.out.println ( \"****** XML Data Module ******\" );\n ArrayList<Book> bookArrayList = new ArrayList<Book>();\n Books books = new Books();\n books.setBooks(new ArrayList<Book>());\n\n bookArrayList = new Request().postRequestBook();\n\n for (Book aux: bookArrayList) {\n books.getBooks().add(aux);\n }\n\n try {\n javax.xml.bind.JAXBContext jaxbContext = JAXBContext.newInstance(Books.class);\n Marshaller jaxbMarshaller = jaxbContext.createMarshaller();\n\n jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\n jaxbMarshaller.marshal(books, System.out);\n } catch (JAXBException e) {\n System.out.println(\"Error: \"+ e);\n }\n ClientEntry.showMenu ( );\n }", "public Pane buildGuiInDerSchonzeit() {\n\t\tVBox root = new VBox(10); \r\n\t\t// Der Hintergrund des GUI wird mit einem Transparenten Bild erstellt\r\n\t\tImage imageBackground = new Image(getClass().getResource(\"transparent.png\").toExternalForm()); // Ein Image wird erstellt und das Bild übergeben\r\n\t\tBackgroundImage backgroundImage = new BackgroundImage(imageBackground, BackgroundRepeat.NO_REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT, BackgroundSize.DEFAULT);\r\n\t\tBackground background = new Background(backgroundImage); // Ein Background wird ertsellt und das Bild übergeben\r\n\t\troot.setBackground(background); // Der Hintergrund mit dem Bild wird dem root übergeben\r\n\t\t\r\n\t\t//\r\n\t\t// // Allse verschiedenen Boxen werden erstellt\r\n\t\t//\r\n\t\t\r\n\t\t// HBox für die erste Spalte\r\n\t\tHBox hBoxSpalte1 = new HBox(190);\r\n\t\t// 2mal VBox um Button und Text anzuzeigen \r\n\t\tVBox vBox1Spalte1 = new VBox();\r\n\t\tVBox vBox2Spalte1 = new VBox();\r\n\t\t\r\n\t\t// HBox für 2. Spalte\r\n\t\tHBox hBoxSpalte2 = new HBox(190);\r\n\t\t// 2 VBoxen für Bild und Text\r\n\t\tVBox vbox1Spalte2 = new VBox();\r\n\t\tVBox vbox2Spalte2 = new VBox();\r\n\t\t\r\n\t\t// HBox für die 3.Spalte\r\n\t\tHBox hboxSpalte3 = new HBox(190);\r\n\t\t// 2mal VBox für Bild und Text\r\n\t\tVBox vbox1Spalte3 = new VBox();\r\n\t\tVBox vbox2Spalte3 = new VBox();\r\n\t\t\r\n\t\t// HBox für die 4 Spalte\r\n\t\tHBox hboxSpalte4 = new HBox(190);\r\n\t\t// 2mal VBox für Bild und Text\r\n\t\tVBox vbox1Spalte4 = new VBox();\r\n\t\tVBox vbox2Spalte4 = new VBox();\r\n\t\t\r\n\t\t//\r\n\t\t// Button für die Fische\r\n\t\t//\r\n\t\t\r\n\t\t//Label Bild für Hecht\r\n\t\tLabel hechtbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage hechtimage = new Image(getClass().getResource(\"Hecht.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\thechtbildLabel.setGraphic(new ImageView(hechtimage)); // Das Bild wird dem Label übergeben\r\n\t\thechtbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Zander\r\n\t\tLabel zanderbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage zanderImage = new Image(getClass().getResource(\"Zander.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tzanderbildLabel.setGraphic(new ImageView(zanderImage)); // Das Bild wird dem Label übergeben\r\n\t\tzanderbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Aal\r\n\t\tLabel aalbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage aalImage = new Image(getClass().getResource(\"Aal.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\taalbildLabel.setGraphic(new ImageView(aalImage)); // Das Bild wird dem Label übergeben\r\n\t\taalbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Aesche\r\n\t\tLabel aeschebildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage aescheImage = new Image(getClass().getResource(\"Aesche.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\taeschebildLabel.setGraphic(new ImageView(aescheImage)); // Das Bild wird dem Label übergeben\r\n\t\taeschebildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Barsch\r\n\t\tLabel barschbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage barschImage = new Image(getClass().getResource(\"Barsch.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tbarschbildLabel.setGraphic(new ImageView(barschImage)); // Das Bild wird dem Label übergeben\r\n\t\tbarschbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Forelle\r\n\t\tLabel forellebildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage forelleImage = new Image(getClass().getResource(\"Regenbogenforelle.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tforellebildLabel.setGraphic(new ImageView(forelleImage)); // Das Bild wird dem Label übergeben\r\n\t\tforellebildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Schleie\r\n\t\tLabel schleiebildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage schleieImage = new Image(getClass().getResource(\"Schleie.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tschleiebildLabel.setGraphic(new ImageView(schleieImage)); // Das Bild wird dem Label übergeben\r\n\t\tschleiebildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Bild Karpfe\r\n\t\tLabel karpfenbildLabel = new Label(); // Das Label wird erstellt\r\n\t\tImage karpfenImage = new Image(getClass().getResource(\"Schuppenkarpfen.png\").toExternalForm()); // Ein Image mit dem Bild wird erstellt\r\n\t\tkarpfenbildLabel.setGraphic(new ImageView(karpfenImage)); // Das Bild wird dem Label übergeben\r\n\t\tkarpfenbildLabel.setTranslateX(100); // X-Achse des Labels\r\n\t\t\r\n\t\t//\r\n\t\t// Label für die Titel der Fische\r\n\t\t//\r\n\t\t\r\n\t\t// Label Hecht\r\n\t\tLabel hechtlabel = new Label(\"Hecht\"); // Das Label mit dem Namen wird erstellt\r\n\t\thechtlabel.setFont(new Font(30)); // Die Schriftgrösse\r\n\t\thechtlabel.setTranslateX(180); // X-Achse des Labels\r\n\t\t\r\n\t\t//Label Zander\r\n\t\tLabel zanderLabel = new Label(\"Zander\"); // DAs LAabel mit dem Namen wird erstellt\r\n\t\tzanderLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tzanderLabel.setTranslateX(160); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Aal\r\n\t\tLabel aaLabel = new Label(\"Aal\"); // Das Label mit dem Namen wird erstellt\r\n\t\taaLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\taaLabel.setTranslateX(200); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Aesche\r\n\t\tLabel aescheLabel = new Label(\"Äsche\"); // Das Label mit dem Namen wird erstellt\r\n\t\taescheLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\taescheLabel.setTranslateX(180); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Barsch\r\n\t\tLabel barschLabel = new Label(\"Flussbarsch\"); // Das Label mit dem Namen wird erstellt\r\n\t\tbarschLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tbarschLabel.setTranslateX(130); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Forelle\r\n\t\tLabel forelleLabel = new Label(\"Forelle\"); // Das Label mit dem Namen wird erstellt\r\n\t\tforelleLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tforelleLabel.setTranslateX(180); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Schleie\r\n\t\tLabel schleieLabel = new Label(\"Schleie\"); // Das Label mit dem Namen wird erstellt\r\n\t\tschleieLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tschleieLabel.setTranslateX(170); // X-Achse des Labels\r\n\t\t\r\n\t\t// Label Karpfe\r\n\t\tLabel karpfeLabel = new Label(\"Karpfe\"); // Das Label mit dem Namen wird erstellt\r\n\t\tkarpfeLabel.setFont(new Font(30)); // Schriftgrösse\r\n\t\tkarpfeLabel.setTranslateX(170); // X-Achse des Labels\r\n\t\t\r\n\t\t//\r\n\t\t// Label für die Anzeige in der Schonzeit\r\n\t\t//\r\n\t\t\r\n\t\t// Label Schonzeit für Hecht\r\n\t\tLabel schonzeitHechtLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitHechtLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitHechtLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Zander\r\n\t\tLabel schonzeitZanderLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitZanderLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitZanderLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Aal\r\n\t\tLabel schonzeitaaLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitaaLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitaaLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Aesche\r\n\t\tLabel schonzeitaescheLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitaescheLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitaescheLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit Barsch\r\n\t\tLabel schonzeitbarschLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitbarschLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitbarschLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit für Forelle\r\n\t\tLabel schonzeitforelleLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitforelleLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitforelleLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit Schleie\r\n\t\tLabel schonzeitschleieLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitschleieLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitschleieLabel.setTranslateX(140); // X-Achse im root\r\n\t\t\r\n\t\t// Label Schonzeit Karpfe\r\n\t\tLabel schonzeitkarpfeLabel = new Label(); // Das Label wird erstellt\r\n\t\tschonzeitkarpfeLabel.setFont(new Font(25)); // Schriftgrösse\r\n\t\tschonzeitkarpfeLabel.setTranslateX(140); // X-Achse im root\r\n\r\n\t\t\r\n\t\t// Das Label für die überschrift\r\n\t\tLabel fischeAuswahlLabel = new Label(\"Fische und Ihre Schonzeit\"); // Das Label wird mit dem Namen erstellt\r\n\t\tfischeAuswahlLabel.setFont(new Font(40)); // Schriftgrösse\r\n\t\tfischeAuswahlLabel.setTranslateX(10); // X-Achse des Labels\r\n\t\t\r\n\t\t//\r\n\t\t// // Buttons werden erstellt\r\n\t\t//\r\n\t\t\r\n\t\t// Button zurück Hauptmenu\r\n\t\tButton hauptmenuButton = new Button(\"Hauptmenü\"); // Button wird erstellt und Initialisiert\r\n\t\thauptmenuButton.setMinSize(200, 50); // Die Minimumgrösse wird gesetzt\r\n\t\thauptmenuButton.setTranslateX(345); // X- Achse des Buttons im root\r\n\t\thauptmenuButton.setFont(new Font(25)); // Schriftgrösse des Buttons\r\n\t\t// Zoom in und out wird hinzugefügt\r\n\t\tButtonHandling zoomButtonHandling = new ButtonHandling();\r\n\t\tzoomButtonHandling.zoomIn(hauptmenuButton);\r\n\t\tzoomButtonHandling.zoomOut(hauptmenuButton);\r\n\t\t// Funktion zurück ins Hauptmenü\r\n\t\thauptMenuAufrufen(hauptmenuButton);\r\n\t\t\r\n\t\t//\r\n\t\t// // Aktuelles Datum wird eingelesen um die Fische auf Ihre Schonzeit zu prüfen\r\n\t\t//\r\n\t\t\r\n\t\t// Aktueller Monat wird in der Variablen datumAktuell gespeichert.\r\n\t\tCalendar dateNow = Calendar.getInstance(); // Kalender wird erstellt\r\n\t\tint datum = dateNow.get(Calendar.MONTH) +1; // Der aktuelle Monat wird im Int Initialisiert. +1 Da die Monate ab 0 Beginnen\r\n\t\t// Datum Manuell setzten für Test und Debbug \r\n\t\t//int datum = 1;\r\n\t\t\r\n\t\t//\r\n\t\t// // Die einzelnen VBoxen für die Fische werden je nach Schonzeit gefüllt\r\n\t\t//\r\n\t\t\r\n\t\t// 1. Spalte und 1 Box\r\n\t\tvBox1Spalte1.getChildren().addAll(hechtlabel,hechtbildLabel);// Erste Linie und erste Spalte mit Bild und Text wird dem root übergeben\r\n\t\tif (datum >=1 && datum <= 4) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitHechtLabel.setText(\"hat Schonzeit !\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitHechtLabel.setTextFill(Color.RED); // Die Schrifftfarbe wird auf Rot gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitHechtLabel.setText(\"keine Schonzeit\"); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t\tschonzeitHechtLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den entsprecheneden Einstellungen übergeben\r\n\t\tvBox1Spalte1.getChildren().add(schonzeitHechtLabel);\r\n\t\t\r\n\t\t// 1. Spalte und 2. Box\r\n\t\tvBox2Spalte1.getChildren().addAll(zanderLabel,zanderbildLabel); // Erste Linie und zweite Spalte mit Bild und Text wird dem root übergeben\r\n\t\tif (datum >= 1 && datum <= 4) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitZanderLabel.setText(\"hat Schonzeit !\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitZanderLabel.setTextFill(Color.RED); // Die Schrifftfarbe wird auf Rot gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitZanderLabel.setText(\"keine Schonzeit\"); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t\tschonzeitZanderLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den entsprechenden Einstellungen übergeben\r\n\t\tvBox2Spalte1.getChildren().add(schonzeitZanderLabel);\r\n\t\t\r\n\t\t// 2. Spalte und 1. Box\r\n\t\tvbox1Spalte2.getChildren().addAll(aaLabel,aalbildLabel); // Zweite Linie erste Spalte mit Bild und Text\r\n\t\t// Der Aal hat keine Schonzeit\r\n\t\t\tschonzeitaaLabel.setText(\"keine Schonzeit\"); // Text wird gesetzt\r\n\t\t\tschonzeitaaLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den einstellungen übergeben\t\r\n\t\tvbox1Spalte2.getChildren().add(schonzeitaaLabel);\r\n\t\t\r\n\t\t// 2. Spalte und 2. Box\r\n\t\tvbox2Spalte2.getChildren().addAll(aescheLabel,aeschebildLabel); // Zweite Linie zweite Spalte mit Bild und Text\r\n\t\tif (datum >= 2 && datum <= 4) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitaescheLabel.setText(\"hat Schonzeit !\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitaescheLabel.setTextFill(Color.RED); // Die Schrifftfarbe wird auf Rot gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitaescheLabel.setText(\"keine Schonzeit\"); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t\tschonzeitaescheLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\r\n\t\tvbox2Spalte2.getChildren().add(schonzeitaescheLabel);\r\n\t\t\r\n\t\t// 3. Spalte und 1. Box\r\n\t\tvbox1Spalte3.getChildren().addAll(barschLabel,barschbildLabel); // Dritte Linie erste Spalte mit Bild und Text\r\n\t\t// Der Barsch hat keine Schonzeit\r\n\t\t\tschonzeitbarschLabel.setText(\"keine Schonzeit\");\r\n\t\t\tschonzeitbarschLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\t\r\n\t\tvbox1Spalte3.getChildren().add(schonzeitbarschLabel);\r\n\t\t\r\n\t\t// 3. Spalte und 2. Box\r\n\t\tvbox2Spalte3.getChildren().addAll(forelleLabel,forellebildLabel); // Dritte Linie zweite Spalte mit Bild und Text\r\n\t\tif (datum >= 3 && datum <= 9) { // Die Schonzeit wird geprüft\r\n\t\t\tschonzeitforelleLabel.setText(\"keine Schonzeit\"); // Trifft die IF zu wird dieser Text gesetzt\r\n\t\t\tschonzeitforelleLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t}else { // Wen die IF nicht erfüllt ist\r\n\t\t\tschonzeitforelleLabel.setText(\"hat Schonzeit !\"); // Die Schonzeit des Hechtes wird überprüft\r\n\t\t\tschonzeitforelleLabel.setTextFill(Color.RED); // Trift due IF nicht zu wird dieser Text gesetzt\r\n\t\t}\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\r\n\t\tvbox2Spalte3.getChildren().add(schonzeitforelleLabel);\r\n\t\t\r\n\t\t// 4. Spalte und 1. Box\r\n\t\tvbox1Spalte4.getChildren().addAll(schleieLabel,schleiebildLabel); // Vierte Linie erste Spalte mit Bild und Text\r\n\t\t// Die Schleie hat keien Schonzeit\r\n\t\t\tschonzeitschleieLabel.setText(\"keine Schonzeit\"); // Text wird gesetzt\r\n\t\t\tschonzeitschleieLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\t\r\n\t\tvbox1Spalte4.getChildren().add(schonzeitschleieLabel);\r\n\t\t\r\n\t\t// 4. Spalte und 2. Box\r\n\t\tvbox2Spalte4.getChildren().addAll(karpfeLabel,karpfenbildLabel); // Vierte Linie zweite Spalte mit Bild und Text\r\n\t\t// Der Karpfe hat keine Schonzeit\r\n\t\t\tschonzeitkarpfeLabel.setText(\"keine Schonzeit\"); // Text wird gesetzt\r\n\t\t\tschonzeitkarpfeLabel.setTextFill(Color.GREEN); // Die Schriftfarbe wird auf Grün gesetzt\r\n\t\t// Der VBox wird das Label mit den Einstellungen übergeben\t\r\n\t\tvbox2Spalte4.getChildren().add(schonzeitkarpfeLabel);\r\n\t\t\r\n\t\t//\r\n\t\t// // Die einzelnen HBoxen werden gefüllt für die Spalten in der Root\r\n\t\t//\r\n\t\thBoxSpalte1.getChildren().addAll(vBox1Spalte1,vBox2Spalte1); // Die erste Spalte wird mit den zwei Boxen gefüllt\r\n\t\t// HBox Spalte 2\r\n\t\thBoxSpalte2.getChildren().addAll(vbox1Spalte2,vbox2Spalte2); // Die zweite Spalte wird mit den zwei Boxen gefüllt\r\n\t\t// Hbox Spalte 3\r\n\t\thboxSpalte3.getChildren().addAll(vbox1Spalte3,vbox2Spalte3); // Die dritte Spalte wird mit den zwei Boxen gefüllt\r\n\t\t// Hbox Spalte 4\r\n\t\thboxSpalte4.getChildren().addAll(vbox1Spalte4,vbox2Spalte4); // Die vierte Spalte wird mit den zwei Boxen gefüllt\r\n\t\t\r\n\t\t// Elemente werden der HauptVBox root hinzugefügt\r\n\t\troot.getChildren().addAll(fischeAuswahlLabel,hBoxSpalte1,hBoxSpalte2,hboxSpalte3,hboxSpalte4,hauptmenuButton); // Alle gefüllten Boxen werden der Hauptbox übergeben\r\n\t\t\r\n\t\t// Das root wird zurückgegeben um Angezeigt zu werden\r\n\t\treturn root;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n labelTituloNL = new javax.swing.JLabel();\n labelAutorNL = new javax.swing.JLabel();\n labelPublicadoNL = new javax.swing.JLabel();\n jButtonGuardar = new javax.swing.JButton();\n jButtonDOM = new javax.swing.JButton();\n jButtonSAX = new javax.swing.JButton();\n jButtonJAXB = new javax.swing.JButton();\n jTextFieldTituloNL = new javax.swing.JTextField();\n jTextFieldAutorNL = new javax.swing.JTextField();\n jTextFieldPublicadoNL = new javax.swing.JTextField();\n jButtonAnnadir = new javax.swing.JButton();\n jLabelMensajes = new javax.swing.JLabel();\n jTextFieldTituloAntiguo = new javax.swing.JTextField();\n jTextFieldTituloNuevo = new javax.swing.JTextField();\n jLabelTituloAnterior = new javax.swing.JLabel();\n jLabelNuevoTitulo = new javax.swing.JLabel();\n jButtonCambiaTitulo = new javax.swing.JButton();\n jLabelCambiaTitulo = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItemDOM = new javax.swing.JMenuItem();\n jMenuItemJAX = new javax.swing.JMenuItem();\n jMenuItemJAXB = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\n\n labelTituloNL.setText(\"Titulo\");\n\n labelAutorNL.setText(\"Autor\");\n\n labelPublicadoNL.setText(\"Publicado en \");\n\n jButtonGuardar.setText(\"Guardar DOM como salida XML\");\n jButtonGuardar.setEnabled(false);\n jButtonGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonGuardarActionPerformed(evt);\n }\n });\n\n jButtonDOM.setText(\"Mostrar contenido DOM\");\n jButtonDOM.setEnabled(false);\n jButtonDOM.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonDOMActionPerformed(evt);\n }\n });\n\n jButtonSAX.setText(\"Mostrar contenido SAX\");\n jButtonSAX.setEnabled(false);\n jButtonSAX.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSAXActionPerformed(evt);\n }\n });\n\n jButtonJAXB.setText(\"Mostrar contenido JAXB\");\n jButtonJAXB.setEnabled(false);\n jButtonJAXB.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonJAXBActionPerformed(evt);\n }\n });\n\n jButtonAnnadir.setText(\"Ańadir\");\n jButtonAnnadir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAnnadirActionPerformed(evt);\n }\n });\n\n jLabelMensajes.setText(\"<fichero no seleccionado>\");\n\n jLabelTituloAnterior.setText(\"Titulo Anterior\");\n\n jLabelNuevoTitulo.setText(\"Nuevo Titulo\");\n\n jButtonCambiaTitulo.setText(\"Cambiar Titulo\");\n jButtonCambiaTitulo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonCambiaTituloActionPerformed(evt);\n }\n });\n\n jLabelCambiaTitulo.setText(\"Cambiar Titulo\");\n\n jMenu1.setText(\"Ficheros XML\");\n\n jMenuItemDOM.setText(\"DOM\");\n jMenuItemDOM.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemDOMActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItemDOM);\n\n jMenuItemJAX.setText(\"SAX\");\n jMenuItemJAX.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemJAXActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItemJAX);\n\n jMenuItemJAXB.setText(\"JAXB\");\n jMenuItemJAXB.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemJAXBActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItemJAXB);\n\n jMenuBar1.add(jMenu1);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(60, 60, 60)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButtonDOM, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(63, 63, 63)\n .addComponent(jButtonSAX, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 45, Short.MAX_VALUE)\n .addComponent(jButtonJAXB, javax.swing.GroupLayout.PREFERRED_SIZE, 181, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 304, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(labelAutorNL)\n .addComponent(labelTituloNL)\n .addComponent(labelPublicadoNL))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldTituloNL, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldAutorNL, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jTextFieldPublicadoNL, javax.swing.GroupLayout.PREFERRED_SIZE, 119, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(44, 44, 44)\n .addComponent(jButtonAnnadir))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButtonGuardar, javax.swing.GroupLayout.PREFERRED_SIZE, 256, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(40, 40, 40))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButtonCambiaTitulo)\n .addGap(110, 110, 110))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelCambiaTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(91, 91, 91))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabelTituloAnterior, javax.swing.GroupLayout.PREFERRED_SIZE, 78, Short.MAX_VALUE)\n .addComponent(jLabelNuevoTitulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextFieldTituloAntiguo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTextFieldTituloNuevo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 236, javax.swing.GroupLayout.PREFERRED_SIZE))))))\n .addGap(38, 38, 38))\n .addComponent(jLabelMensajes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabelMensajes, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(16, 16, 16)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonDOM)\n .addComponent(jButtonSAX)\n .addComponent(jButtonJAXB))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 54, Short.MAX_VALUE)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 400, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(labelTituloNL)\n .addComponent(jTextFieldTituloNL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(35, 35, 35)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(labelAutorNL)\n .addComponent(jTextFieldAutorNL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(41, 41, 41)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(labelPublicadoNL)\n .addComponent(jTextFieldPublicadoNL, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButtonAnnadir))\n .addGap(32, 32, 32)\n .addComponent(jButtonGuardar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabelCambiaTitulo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldTituloAntiguo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelTituloAnterior))\n .addGap(35, 35, 35)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldTituloNuevo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelNuevoTitulo))\n .addGap(18, 18, 18)\n .addComponent(jButtonCambiaTitulo)))\n .addGap(48, 48, 48))\n );\n\n pack();\n }", "private HBox createDiagnosisInfo( String cosmoId )\r\n {\r\n HBox mainBox = new HBox();\r\n VBox leftVBox = new VBox();\r\n VBox rightVBox = new VBox();\r\n\r\n HBox familyPhysicianHBox = new HBox();\r\n\r\n HBox participantDiagnosisHBox = new HBox();\r\n HBox physicianPhoneNumberHBox = new HBox();\r\n HBox dateCompletedHBox = new HBox();\r\n HBox checkBoxesHBox = new HBox();\r\n\r\n Label familyPhysicianLbl = new Label(\"Family Physician: \");\r\n Label participantDiagnosisLbl = new Label(\"Participant Diagnosis: \");\r\n Label physicianPhoneLbl = new Label(\"Physician Phone Number: \");\r\n Label dateCompletedLbl = new Label(\"Date Completed: \");\r\n\r\n familyPhysicianTxt = new Label();\r\n participantDiagnosisTxt = new TextField();\r\n physicianPhoneTxt = new Label();\r\n dateCompletedTxt = new Label();\r\n\r\n tylenolGiven = new CheckBox();\r\n tylenolGiven.setText(\"Tylenol Given\");\r\n careGiverPermission = new CheckBox();\r\n careGiverPermission.setText(\"Caregivers Permission given\");\r\n\r\n editableItems.add(careGiverPermission);\r\n editableItems.add(tylenolGiven);\r\n editableItems.add(dateCompletedTxt);\r\n editableItems.add(physicianPhoneTxt);\r\n editableItems.add(participantDiagnosisTxt);\r\n editableItems.add(familyPhysicianTxt);\r\n btnSave.setOnAction(event -> {\r\n lblMessage.setText(\"\");\r\n String[] info = new String[4];\r\n info[0] = participantDiagnosisTxt.getText();\r\n info[1] = tylenolGiven.isSelected() + \"\";\r\n info[2] = careGiverPermission.isSelected() + \"\";\r\n info[3] = otherInfoTxt.getText();\r\n\r\n boolean success = helper.saveHealthStatusInfo(info, cosmoID);\r\n\r\n if ( success )\r\n {\r\n\r\n assignDiagnosisInfo(cosmoId);\r\n lblMessage.setTextFill(Color.BLUE);\r\n lblMessage.setText(\"Save successful\");\r\n\r\n }\r\n else\r\n {\r\n lblMessage.setTextFill(Color.RED);\r\n lblMessage.setText(\"The save was unsuccesful.\");\r\n }\r\n\r\n });\r\n // Following is just adding stuff to their boxes and setting some\r\n // spacing and alignment\r\n familyPhysicianHBox.getChildren().addAll(familyPhysicianLbl,\r\n familyPhysicianTxt);\r\n familyPhysicianHBox.setSpacing(125);\r\n familyPhysicianHBox.setAlignment(Pos.CENTER_RIGHT);\r\n\r\n participantDiagnosisHBox.getChildren().addAll(participantDiagnosisLbl,\r\n participantDiagnosisTxt);\r\n participantDiagnosisHBox.setSpacing(SPACING);\r\n participantDiagnosisHBox.setAlignment(Pos.CENTER_RIGHT);\r\n physicianPhoneNumberHBox.getChildren().addAll(physicianPhoneLbl,\r\n physicianPhoneTxt);\r\n\r\n physicianPhoneNumberHBox.setSpacing(SPACING);\r\n physicianPhoneNumberHBox.setAlignment(Pos.CENTER_RIGHT);\r\n dateCompletedHBox.getChildren().addAll(dateCompletedLbl,\r\n dateCompletedTxt);\r\n dateCompletedHBox.setSpacing(SPACING);\r\n dateCompletedHBox.setAlignment(Pos.CENTER_RIGHT);\r\n checkBoxesHBox.getChildren().addAll(tylenolGiven, careGiverPermission);\r\n checkBoxesHBox.setSpacing(SPACING);\r\n\r\n leftVBox.getChildren().addAll(familyPhysicianHBox,\r\n participantDiagnosisHBox, checkBoxesHBox);\r\n leftVBox.setSpacing(SPACING);\r\n rightVBox.getChildren().addAll(physicianPhoneNumberHBox,\r\n dateCompletedHBox);\r\n rightVBox.setSpacing(SPACING);\r\n mainBox.getChildren().addAll(leftVBox, rightVBox);\r\n mainBox.setSpacing(SPACING * 2);\r\n\r\n return mainBox;\r\n }", "@FXML\r\n /****\r\n Metodo encargado de abrir la ventana donde se va ingresar la expresion regular y controla\r\n que solo se entren letras.\r\n ****/\r\n private void IngresarHileraLetras(ActionEvent event) throws IOException {\r\n Parent root = FXMLLoader.load(getClass().getResource(\"IngresoHilera.fxml\"));\r\n j=1;\r\n Scene scene = new Scene(root);\r\n System.out.println(j);\r\n stage.setScene(scene);\r\n stage.show();\r\n stage.setTitle(\"Solo Letras\");\r\n stage.setResizable(false);\r\n Stage stage =(Stage) soloNumeros.getScene().getWindow();\r\n stage.hide();\r\n }", "public void generarCuestionario() {\n setLayout(null);\n \n setTitle(\"Cuestionario de Fin de Curso\"); \n \n //Con el modelo construido debemos representar uestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n \n Opcion op1 = new Opcion();\n op1.setTitulo(\"Londres\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"Roma\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Paris\");\n op3.setCorrecta(true);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Oslo\");\n op4.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Cual es la capital de Francia\");\n p1.setOpciones(opciones);\n \n //Opiciones de la pregumta Numero 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Atlantico\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Indico\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Artico\");\n op23.setCorrecta(false);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Pacifico\");\n op24.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Cual es el oceano más grande del mundo?\");\n p2.setOpciones(opciones2);\n \n //Opiciones de la pregumta Numero 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"Cristobal Colon\");\n op31.setCorrecta(true);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Cristobal Nodal\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Cuahutemoc blanco\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Cuahutemoc\");\n op34.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien descubrio América?\");\n p3.setOpciones(opciones3);\n \n //Opiciones de la pregumta Numero 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"Fernanflo\");\n op41.setCorrecta(false);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Polinesios\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"Eh vegeta\");\n op43.setCorrecta(true);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Willyrex\");\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(\"¿Quien es el mejor youtuber?\");\n p4.setOpciones(opciones4);\n \n //Opiciones de la pregumta Numero 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Amarillo patito\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Verde Sherec\");\n op52.setCorrecta(false);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Rojo me faltas tú\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Azul\");\n op54.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5 = {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿De que color es el cielo?\");\n p5.setOpciones(opciones5);\n \n //Opiciones de la pregumta Numero 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"200\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"100\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"45\");\n op63.setCorrecta(true);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"13\");\n op64.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿De cuantas localidades se compone una memoria de 8x5?\");\n p6.setOpciones(opciones6);\n \n //Opiciones de la pregumta Numero 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Try - Catch\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"IF\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Switch - Case\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"For anidado\");\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 estructura condicional se recomienda usar menos en una interfaz de usuario?\");\n p7.setOpciones(opciones7);\n \n //Opiciones de la pregumta Numero 8\n Opcion op81 = new Opcion();\n op81.setTitulo(\"Access\");\n op81.setCorrecta(false);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Oracle\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"MySQL\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Mongo DB\");\n op84.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Es una base de datos no relacional de uso moderno?\");\n p8.setOpciones(opciones8);\n \n //Opiciones de la pregumta Numero 9\n Opcion op91 = new Opcion();\n op91.setTitulo(\"GitHub\");\n op91.setCorrecta(true);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"MIcrosoft teams\");\n op22.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Zoom\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"Collaborate\");\n op94.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿Es una plataforma para trabajo en línea?\");\n p9.setOpciones(opciones9);\n\n //Opiciones de la pregumta Numero 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Prog. a nivel maquina\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Prog. orientada a objetos\");\n op102.setCorrecta(true);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"MySQL\");\n op103.setCorrecta(false);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"C++\");\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 aprendi en este curso?\");\n p10.setOpciones(opciones10);\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 //Se agrega a este list la unica prgunta 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 //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n c.setPreguntas(preguntas);\n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la preunta\n mostrarPregunta(preguntaActual);\n \n Salir.setVisible(false);\n siguiente.setEnabled(false);\n \n }" ]
[ "0.64382744", "0.6366648", "0.63406736", "0.6260504", "0.6165597", "0.6123848", "0.60867405", "0.6056055", "0.58800155", "0.58501863", "0.5837019", "0.5829868", "0.5815496", "0.58108217", "0.5790777", "0.5790152", "0.57864416", "0.57776594", "0.5763938", "0.57582086", "0.57535094", "0.575088", "0.5685622", "0.5670971", "0.5660766", "0.56569296", "0.56550723", "0.56393355", "0.56371117", "0.56322205", "0.5617404", "0.56165993", "0.5616389", "0.560661", "0.5598994", "0.55847603", "0.5579887", "0.55704033", "0.5565484", "0.5548136", "0.5541594", "0.55161566", "0.55150485", "0.5510174", "0.5509596", "0.54911554", "0.5488056", "0.54866517", "0.54860425", "0.54754966", "0.5461341", "0.54457194", "0.5444087", "0.5443213", "0.54421717", "0.5440337", "0.54268295", "0.5423736", "0.5408129", "0.5407406", "0.54069597", "0.5405758", "0.5403661", "0.5402652", "0.5396231", "0.5394912", "0.5393534", "0.5392773", "0.539271", "0.539059", "0.5386018", "0.53855157", "0.53742945", "0.5371933", "0.5351015", "0.5351009", "0.53507465", "0.5347062", "0.53405", "0.5336383", "0.53332573", "0.53328604", "0.5329153", "0.53288496", "0.5323317", "0.53204894", "0.5316712", "0.53152543", "0.53124255", "0.5311478", "0.5309193", "0.53066677", "0.53031033", "0.5300435", "0.529174", "0.52916926", "0.52902293", "0.5286145", "0.52858543", "0.5285558", "0.528034" ]
0.0
-1
Write EBCDIC 0000...1111....2222....333 in sizes equal to the internal buffer size Thus we have test date without any control codes.
@BeforeClass public static void setupTestData() throws IOException { final FileOutputStream fos = new FileOutputStream(TESTFILE); byte[] testsequence = new byte[BUFFERSIZE]; for (int i=0xF0; i<0xFA; i++) { Arrays.fill(testsequence, (byte)i); fos.write(testsequence); } fos.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer doEbcdicToAscii(CommBufferLogic commBuffer, Integer Data) {\n // Euro -- IBM has new codepages 1140..1149 using 0x9F except for\n // Scandinavian 0x5A. Scandinavian translates 0x5A to 0x9F.\n // Thus CP500 (0x9F) to ASCII (CP858 0xD5) to ANSI (CP1252 0x80)\n // will work.\n Integer temp = Data;\n\n if (commBuffer.getConnectionData().getCodePage() != 37) { // Default US\n \t// Display EBCDIC to ASCII uses CP037\n Integer idx, size;\n switch (commBuffer.getConnectionData().getCodePage()) {\n case 273: // Austria, Germany\n size = CP273_CP500.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP273_CP500[idx]) {\n temp = CP273_CP500[idx + size];\n break;\n }\n }\n break;\n case 277: // Denmark, Norway\n size = CP277_CP500.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP277_CP500[idx]) {\n temp = CP277_CP500[idx + size];\n break;\n }\n }\n break;\n case 278: // Finland, Sweden\n size = CP278_CP500.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP278_CP500[idx]) {\n temp = CP278_CP500[idx + size];\n break;\n }\n }\n break;\n case 280: // Italy\n size = CP280_CP500.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP280_CP500[idx]) {\n temp = CP280_CP500[idx + size];\n break;\n }\n }\n break;\n case 284: // Spain, Latin America\n size = CP284_CP500.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP284_CP500[idx]) {\n temp = CP284_CP500[idx + size];\n break;\n }\n }\n break;\n case 285: // United Kingdom\n size = CP285_CP500.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP285_CP500[idx]) {\n temp = CP285_CP500[idx + size];\n break;\n }\n }\n break;\n case 297: // France\n size = CP297_CP500.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP297_CP500[idx]) {\n temp = CP297_CP500[idx + size];\n break;\n }\n }\n break;\n case 871: // Iceland\n size = CP871_CP500.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP871_CP500[idx]) {\n temp = CP871_CP500[idx + size];\n break;\n }\n }\n break;\n }\n size = CP500_CP037.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP500_CP037[idx]) {\n temp = CP500_CP037[idx + size];\n break;\n }\n }\n }\n\n Integer result = 0;\n if(temp < EBCDICTOASCII.length) {\n \tresult = EBCDICTOASCII[temp];\n }\n else {\n\t\t\tresult = 0;\n\t\t}\n \n return result;\n\t}", "public Integer doAsciiToEbcdic(CommBufferLogic commBuffer, int ascii) {\n Integer temp = ASCIITOEBCDIC[ascii];\n\n Integer codePage = commBuffer.getConnectionData().getCodePage();\n if (codePage != 37) { // Default US\n // ASCII to EBCDIC based on CP037\n Integer idx, size;\n size = CP037_CP500.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP037_CP500[idx]) {\n temp = CP037_CP500[idx + size];\n break;\n }\n }\n switch (codePage) { // Latin_1 CCSID 697 only\n case 273: // Austria, Germany\n size = CP500_CP273.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP500_CP273[idx]) {\n temp = CP500_CP273[idx + size];\n break;\n }\n }\n break;\n case 277: // Denmark, Norway\n size = CP500_CP277.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP500_CP277[idx]) {\n temp = CP500_CP277[idx + size];\n break;\n }\n }\n break;\n case 278: // Finland, Sweden\n size = CP500_CP278.length / 2;\n for (idx = 0; idx < size; idx++)\n {\n if (temp == CP500_CP278[idx]) {\n temp = CP500_CP278[idx + size];\n break;\n }\n }\n break;\n case 280: // Italy\n size = CP500_CP280.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP500_CP280[idx]) {\n temp = CP500_CP280[idx + size];\n break;\n }\n }\n break;\n case 284: // Spain, Latin America\n size = CP500_CP284.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP500_CP284[idx]) {\n temp = CP500_CP284[idx + size];\n break;\n }\n }\n break;\n case 285: // United Kingdom\n size = CP500_CP285.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP500_CP285[idx]) {\n temp = CP500_CP285[idx + size];\n break;\n }\n }\n break;\n case 297: // France\n size = CP500_CP297.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP500_CP297[idx]) {\n temp = CP500_CP297[idx + size];\n break;\n }\n }\n break;\n case 871: // Iceland\n size = CP500_CP871.length / 2;\n for (idx = 0; idx < size; idx++) {\n if (temp == CP500_CP871[idx]) {\n temp = CP500_CP871[idx + size];\n break;\n }\n }\n break;\n }\n }\n return temp;\n }", "public static void dumpEbcdic(String filename) {\r\n dump(filename, ISOLayout.MASTERCARD_EBCDIC);\r\n }", "private void byteOut(){\n if(nrOfWrittenBytes >= 0){\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else if(c < 0x8000000){\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=c>>>19;\n c &= 0x7FFFF;\n cT=8;\n }\n else{\n b++;\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n c &= 0x7FFFFFF;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else{\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=((c>>>19)&0xFF);\n c &= 0x7FFFF;\n cT=8;\n }\n }\n }\n else {\n // NOTE: carry bit can never be set if the byte buffer was empty\n b= (c>>>19);\n c &= 0x7FFFF;\n cT=8;\n nrOfWrittenBytes++;\n }\n }", "@Override\n public void write(byte[] b_array) throws IOException {\n int i;\n int flag = 1;\n int my_decimal1=0;\n for (i = 0; i < 12; i++) {\n out.write(b_array[i]);\n }\n //write to output stream the rest of the bytearray's size - division 8\n int rest = (b_array.length - 12) % 8;\n out.write((byte) rest);\n\n\n while (i < b_array.length) {\n //start to count the number of 0\n if (i < b_array.length - rest) {\n for (int j = 0; j < 8; j++) {\n //check if we not in the rest part of the byte array\n if (i < b_array.length - rest) {\n //my_str = String.valueOf((int)b_array[i]);\n my_decimal1 += (int)b_array[i]*(Math.pow(2, j));\n i++;\n }\n else {\n flag = 0;\n break;\n }\n }\n }\n else{\n flag=0;\n }\n //if the for loop finish without break;\n if (flag == 1) {\n out.write((byte) my_decimal1);\n my_decimal1 = 0;\n }\n else {\n out.write(b_array[i]);\n i++;\n }\n }\n\n //>>\n\n\n }", "public static void bcdToBytes(String bcd, byte[] bytes, int offset) {\n if (bcd.length() % 2 != 0) {\n bcd += \"0\";\n }\n int size = Math.min((bytes.length - offset) * 2, bcd.length());\n for (int i = 0, j = offset; i + 1 < size; i += 2, j++) {\n bytes[j] = (byte) (charToByte(bcd.charAt(i + 1)) << 4 | charToByte(bcd.charAt(i)));\n }\n }", "public final void write(int c) {\r\n if (cbyte == size) {\r\n throw new ArrayIndexOutOfBoundsException(String.format(\"%d\", cbyte));\r\n }\r\n \r\n // Append the input byte to the data element.\r\n elem |= (c & 0xff) << (bytenum << 3);\r\n \r\n bytenum++;\r\n cbyte++;\r\n if (bytenum == BYTES_IN_ELEMENT) {\r\n // Write the data\r\n data[offset] = elem;\r\n // Increase offset\r\n offset++;\r\n // Reset current element\r\n elem = 0;\r\n // Reset bytenum\r\n bytenum = 0;\r\n }\r\n }", "private void writeEOFRecord() throws IOException {\n\t\tfor ( int i = 0 ; i < this.recordBuf.length ; ++i )\n\t\t\tthis.recordBuf[i] = 0;\n\t\tthis.buffer.writeRecord( this.recordBuf );\n\t\t}", "@Test\n public void testWriteByteArray() {\n System.out.println(\"writeByteArray\");\n /** Positive testing. */\n String bytes = \"spam\";\n String expResult = \"4:spam\";\n String result = Bencoder.writeByteArray(bytes.getBytes(BConst.ASCII));\n assertEquals(expResult, result);\n bytes = \"\";\n expResult = \"0:\";\n result = Bencoder.writeByteArray(bytes.getBytes(BConst.ASCII));\n assertEquals(expResult, result);\n }", "@Override\n public void write(char[] cbuf, int off, int len) throws IOException\n {\n builder.append(cbuf, off, len);\n }", "public static String\n cdmaBcdToString(byte[] data, int offset, int length) {\n StringBuilder ret = new StringBuilder(length);\n\n int count = 0;\n for (int i = offset; count < length; i++) {\n int v;\n v = data[i] & 0xf;\n if (v > 9) v = 0;\n ret.append((char)('0' + v));\n\n if (++count == length) break;\n\n v = (data[i] >> 4) & 0xf;\n if (v > 9) v = 0;\n ret.append((char)('0' + v));\n ++count;\n }\n return ret.toString();\n }", "@Test\n public void writeTest() {\n try (ByteArrayOutputStream baos = new ByteArrayOutputStream();\n ByteArrayOutputStream baos2 = new ByteArrayOutputStream()) {\n // correspond to \"ABCDE\"\n // write a single byte\n baos.write(0x41);\n baos.write(0x42);\n baos.write(0x43);\n baos.write(0x44);\n baos.write(0x45);\n log.info(methodLog(0,\n \"Write \" + baos.size() + \" bytes\",\n \"baos\", String.format(\"%3d bytes:%s\", baos.size(), baos)));\n\n // write a specified size bytes\n baos.write(lettersByteArray, 0, SIZE_BLOCK);\n log.info(methodLog(1,\n \"Write a block of \" + SIZE_BLOCK,\n \"baos\", String.format(\"%3d bytes:%s\", baos.size(), baos)));\n\n // convert to a byte array\n byte[] buf = baos.toByteArray();\n log.info(methodLog(2,\n \"To a byte array\",\n \"buf\", String.format(\"%3d bytes:%s\", buf.length, new String(buf))));\n\n // write to another output stream\n baos.writeTo(baos2);\n log.info(methodLog(3,\n \"Write to another stream\",\n \"baos2\", String.format(\"%3d bytes:%s\", baos2.size(), baos2)));\n } catch (IOException e) {\n log.info(exceptionLog(e));\n }\n }", "public void write(char[] cArr) throws XMLStreamException {\n try {\n this.writer.write(cArr);\n } catch (IOException e) {\n throw new XMLStreamException((Throwable) e);\n }\n }", "void writeChars(char[] c, int off, int len) throws IOException;", "public void printBuffer(byte[] buf, int len) {\n byte b;\n Integer myInt = new Integer(0);\n int theInt = 0;\n System.err.println(\"buffer: \");\n edu.hkust.clap.monitor.Monitor.loopBegin(141);\nfor (int i = 0; i < len; i++) { \nedu.hkust.clap.monitor.Monitor.loopInc(141);\n{\n b = buf[i];\n if (!Character.isISOControl((char) b)) {\n Character ch = new Character((char) b);\n System.err.print(\" \" + ch.charValue() + \" \");\n } else {\n theInt = 0xff & b;\n if (theInt < 16) {\n System.err.print(\"0\" + myInt.toHexString(theInt) + \" \");\n } else {\n System.err.print(myInt.toHexString(theInt) + \" \");\n }\n }\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(141);\n\n System.err.print(\"\\n\");\n }", "@Test(timeout = 4000)\n public void test072() throws Throwable {\n int int0 = JavaCharStream.hexval('e');\n assertEquals(14, int0);\n }", "public static String\n bcdToString(byte[] data, int offset, int length) {\n StringBuilder ret = new StringBuilder(length*2);\n\n for (int i = offset ; i < offset + length ; i++) {\n int v;\n\n v = data[i] & 0xf;\n if (v > 9) break;\n ret.append((char)('0' + v));\n\n v = (data[i] >> 4) & 0xf;\n // Some PLMNs have 'f' as high nibble, ignore it\n if (v == 0xf) continue;\n if (v > 9) break;\n ret.append((char)('0' + v));\n }\n\n return ret.toString();\n }", "public static void srs_print_bytes(String tag, ByteBuffer bb, int size) {\n StringBuilder sb = new StringBuilder();\n int i = 0;\n int bytes_in_line = 16;\n int max = bb.remaining();\n for (i = 0; i < size && i < max; i++) {\n sb.append(String.format(\"0x%s \", Integer.toHexString(bb.get(i) & 0xFF)));\n if (((i + 1) % bytes_in_line) == 0) {\n Log.i(tag, String.format(\"%03d-%03d: %s\", i / bytes_in_line * bytes_in_line, i, sb.toString()));\n sb = new StringBuilder();\n }\n }\n if (sb.length() > 0) {\n Log.i(tag, String.format(\"%03d-%03d: %s\", size / bytes_in_line * bytes_in_line, i - 1, sb.toString()));\n }\n }", "public void writeTest() throws IOException {\n comUtils.writeChar('H');\n\n }", "private void OutOfByteSize (int counter) throws IOException {\n while (counter > 0) {\n if (counter >= 255) {\n out.write(255);\n out.write(0);\n } else\n out.write((byte) counter);\n counter -= 255;\n }\n\n }", "int writeTo(byte[] iStream, int pos, ORecordVersion version);", "public void write(byte[] b) throws IOException\n {\n for(int i = 0; i < 12; i++) // write the first 12 bytes to the OutPutStream [row, row, column, column, S(r), S(r), S(c), S(c), G(r), G(r), G(c), G(c), ..]\n {\n this.out.write(b[i]);\n }\n int counter = 0;\n String s = \"\";\n int lastIter = 7;\n for(int i = 12; i < b.length; i++)\n {\n s += b[i];\n counter++;\n if((counter == 7) || (i == b.length - 1))\n {\n if(i == b.length - 1)\n {\n lastIter = counter;\n }\n byte binaryByte = (byte)(int)Integer.valueOf(s, 2);\n this.out.write(binaryByte);\n counter = 0;\n s = \"\";\n }\n }\n this.out.write(lastIter);\n }", "@Override\n public void write (byte[] b) throws IOException {\n byte currByte = b[b[0] + 1];\n int counter = 0;\n for (int i = 0; i < b[0] + 1; i++) {\n out.write(b[i]);\n }\n for (int i = b[0] + 1; i < b.length; i++) {\n if (currByte == 0 && b[i] == 1 || currByte == 1 && b[i] == 0) {\n if (counter <= 255) {\n out.write((byte) counter);\n } else {\n OutOfByteSize(counter);\n }\n counter = 1;\n currByte = b[i];\n } else {\n counter++;\n }\n }\n\n }", "public void write(char[] charArray) throws IOException{\r\n write(charArray, 0, charArray.length);\r\n }", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n int int0 = JavaCharStream.hexval('d');\n assertEquals(13, int0);\n }", "private void writeBlob(ObjectOutput out) throws IOException\n\t{\n try {\n int len = getBlobLength();\n InputStream is = _blobValue.getBinaryStream();\n \n writeLength( out, len );\n \n int bytesRead = 0;\n int numOfBytes = 0;\n byte[] buffer = new byte[Math.min(len, LEN_OF_BUFFER_TO_WRITE_BLOB)];\n \n while(bytesRead < len) {\n numOfBytes = is.read(buffer);\n \n if (numOfBytes == -1) {\n throw new DerbyIOException(\n MessageService.getTextMessage(\n SQLState.SET_STREAM_INEXACT_LENGTH_DATA),\n SQLState.SET_STREAM_INEXACT_LENGTH_DATA);\n }\n \n out.write(buffer, 0, numOfBytes);\n bytesRead += numOfBytes; \n }\n }\n catch (StandardException se) { throw new IOException( se.getMessage() ); }\n catch (SQLException se) { throw new IOException( se.getMessage() ); }\n }", "public void write() {\n/* 1062 */ this.cbSize = size();\n/* 1063 */ super.write();\n/* */ }", "@Test void byteLarge() {\n\t\tbyte[] data = new byte[100];\n\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\tdata[i] = (byte)(100 + i);\n\t\t}\n\t\tAztecCode marker = new AztecEncoder().\n\t\t\t\taddUpper(\"A\").addBytes(data, 1, 99).addLower(\"a\").fixate();\n\n\t\t// clear the old data\n\t\tclearMarker(marker);\n\n\t\tassertTrue(new AztecDecoder().process(marker));\n\n\t\tassertEquals('A', marker.message.charAt(0));\n\t\tfor (int i = 1; i < 100; i++) {\n\t\t\tassertEquals(100 + i, (int)marker.message.charAt(i));\n\t\t}\n\t\tassertEquals('a', marker.message.charAt(100));\n\t}", "@Override\n public void writeCData(char[] cbuf, int start, int len)\n throws XMLStreamException\n {\n /* 02-Dec-2004, TSa: Maybe the writer is to \"re-direct\" these\n * writes as normal text? (sometimes useful to deal with broken\n * XML parsers, for example)\n */\n if (mCfgCDataAsText) {\n writeCharacters(cbuf, start, len);\n return;\n }\n\n mAnyOutput = true;\n // Need to finish an open start element?\n if (mStartElementOpen) {\n closeStartElement(mEmptyElement);\n }\n verifyWriteCData();\n if (mVldContent == XMLValidator.CONTENT_ALLOW_VALIDATABLE_TEXT\n && mValidator != null) {\n /* Last arg is false, since we do not know if more text\n * may be added with additional calls\n */\n mValidator.validateText(cbuf, start, start + len, false);\n }\n int ix;\n try {\n ix = mWriter.writeCData(cbuf, start, len);\n } catch (IOException ioe) {\n throw new WstxIOException(ioe);\n }\n if (ix >= 0) { // problems that could not to be fixed?\n throwOutputError(ErrorConsts.WERR_CDATA_CONTENT, DataUtil.Integer(ix));\n }\n }", "private String m34494b(byte[] bArr) {\n return String.format(\"%032x\", new Object[]{new BigInteger(1, bArr)});\n }", "public static String asciiToEBCDIC(byte[] a) {\n\t\tbyte[] e = new byte[a.length];\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\te[i] = ASCII2EBCDIC[a[i] & 0xFF];\n\t\treturn new String(e);\n\t}", "@Override\r\n\tprotected void writeImpl(L2Client client, L2Player activeChar, MMOBuffer buf) throws RuntimeException\r\n\t{\n\t\tfinal boolean god = client.getVersion().isNewerThanOrEqualTo(ClientProtocolVersion.GODDESS_OF_DESTRUCTION);\r\n\t\tbuf.writeD(0); // Type\r\n\t\tbuf.writeD(0); // Servitor OID\r\n\t\tbuf.writeD(0); // Servitor\r\n\t\tbuf.writeD(0); // Attackable\r\n\t\tbuf.writeD(0); // Location X\r\n\t\tbuf.writeD(0); // Location Y\r\n\t\tbuf.writeD(0); // Location Z\r\n\t\tbuf.writeD(0); // Heading\r\n\t\tbuf.writeD(0); // 0\r\n\t\tbuf.writeD(0); // Casting speed\r\n\t\tbuf.writeD(0); // Attack speed\r\n\t\tbuf.writeD(0); // Running speed (on ground)\r\n\t\tbuf.writeD(0); // Walking speed (on ground)\r\n\t\tbuf.writeD(0); // Running speed (in water)\r\n\t\tbuf.writeD(0); // Walking speed (in water)\r\n\t\tbuf.writeD(0); // Running speed (in air) ???\r\n\t\tbuf.writeD(0); // Walking speed (in air) ???\r\n\t\tbuf.writeD(0); // Running speed (in air) while mounted?\r\n\t\tbuf.writeD(0); // Walking speed (in air) while mounted?\r\n\t\tbuf.writeF(0D); // Movement speed multiplier\r\n\t\tbuf.writeF(0D); // Attack speed multiplier\r\n\t\tbuf.writeF(0D); // Collision radius\r\n\t\tbuf.writeF(0D); // Collision height\r\n\t\tbuf.writeD(0); // Main weapon\r\n\t\tbuf.writeD(0); // Chest armor\r\n\t\tbuf.writeD(0); // Shield/support weapon\r\n\t\tbuf.writeC(0); // Owner online\r\n\t\tbuf.writeC(0); // Moving\r\n\t\tbuf.writeC(0); // In combat\r\n\t\tbuf.writeC(0); // Lying dead\r\n\t\tbuf.writeC(0); // Status\r\n\t\tbuf.writeD(0); // ???\r\n\t\tbuf.writeS(\"\"); // Name\r\n\t\tbuf.writeD(0); // ???\r\n\t\tbuf.writeS(\"\"); // Title\r\n\t\tbuf.writeD(0); // 1\r\n\t\tbuf.writeD(0); // In PvP\r\n\t\tbuf.writeD(0); // Karma\r\n\t\tbuf.writeD(0); // Current satiation\r\n\t\tbuf.writeD(0); // Maximum satiation\r\n\t\tbuf.writeD(0); // Current HP\r\n\t\tbuf.writeD(0); // Maximum HP\r\n\t\tbuf.writeD(0); // Current MP\r\n\t\tbuf.writeD(0); // Maximum MP\r\n\t\tbuf.writeD(0); // SP\r\n\t\tbuf.writeD(0); // Level\r\n\t\tbuf.writeQ(0L); // XP\r\n\t\tbuf.writeQ(0L); // Current level XP\r\n\t\tbuf.writeQ(0L); // Next level XP\r\n\t\tbuf.writeD(0); // Current carried weight\r\n\t\tbuf.writeD(0); // Maximum carried weight\r\n\t\tbuf.writeD(0); // P. Atk.\r\n\t\tbuf.writeD(0); // P. Def.\r\n\t\tif (god)\r\n\t\t{\r\n\t\t\tbuf.writeD(0); // P. Accuracy\r\n\t\t\tbuf.writeD(0); // P. Evasion\r\n\t\t\tbuf.writeD(0); // P. Critical\r\n\t\t}\r\n\t\tbuf.writeD(0); // M. Atk.\r\n\t\tbuf.writeD(0); // M. Def.\r\n\t\tif (god)\r\n\t\t{\r\n\t\t\tbuf.writeD(0); // M. Accuracy\r\n\t\t\tbuf.writeD(0); // M. Evasion\r\n\t\t\tbuf.writeD(0); // M. Critical\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tbuf.writeD(0); // Accuracy\r\n\t\t\tbuf.writeD(0); // Evasion\r\n\t\t\tbuf.writeD(0); // Critical\r\n\t\t}\r\n\t\tbuf.writeD(0); // Actual movement speed\r\n\t\tbuf.writeD(0); // Attack speed\r\n\t\tbuf.writeD(0); // Casting speed\r\n\t\tbuf.writeD(0); // Abnormal effect\r\n\t\tbuf.writeH(0); // Mountable\r\n\t\tbuf.writeC(0); // Weapon enchant glow\r\n\t\tbuf.writeH(0); // ??? 0\r\n\t\tbuf.writeC(0); // Duel team\r\n\t\tbuf.writeD(0); // Soulshot usage\r\n\t\tbuf.writeD(0); // Spiritshot usage\r\n\t\tbuf.writeD(0); // Ability level\r\n\t\tbuf.writeD(0); // Special effect\r\n\t\tif (god)\r\n\t\t{\r\n\t\t\tbuf.writeD(0); // ??? 0\r\n\t\t\tbuf.writeD(0); // ??? 0\r\n\t\t\tbuf.writeD(0); // ??? 0\r\n\t\t}\r\n\t}", "public int writeReCMC(CMCDto dto) throws Exception;", "public static byte[] bcdToBytes(String bcd) {\n byte[] output = new byte[(bcd.length() + 1) / 2];\n bcdToBytes(bcd, output);\n return output;\n }", "public void writeCharactersInternal(char[] cArr, int i, int i2, boolean z) throws XMLStreamException {\n CharsetEncoder charsetEncoder;\n if (i2 != 0) {\n int i3 = 0;\n while (i3 < i2) {\n char c = cArr[i3 + i];\n if (c == '\\\"') {\n if (z) {\n break;\n }\n } else if (c != '&' && c != '<' && c != '>') {\n if (c >= ' ') {\n if (c > 127 && (charsetEncoder = this.encoder) != null && !charsetEncoder.canEncode(c)) {\n break;\n }\n } else if (!z) {\n if (!(c == 9 || c == 10)) {\n break;\n }\n } else {\n break;\n }\n } else {\n break;\n }\n i3++;\n }\n if (i3 < i2) {\n slowWriteCharacters(cArr, i, i2, z);\n } else {\n write(cArr, i, i2);\n }\n }\n }", "public String epcString()\n {\n StringBuilder sb = new StringBuilder(epc.length * 2);\n\n for (int i = 0; i < epc.length; i++)\n {\n sb.append(String.format(\"%02X\", (epc[i] & 0xff)));\n }\n return new String(sb);\n }", "protected void write(CCompatibleOutputStream os) throws Exception {\n java.util.Vector fieldVector = getFieldVector();\n for (int i = 0; i < fieldVector.size(); i++) {\n Field field = (Field) (fieldVector.elementAt(i));\n Class type = field.getType();\n if (type == Byte.TYPE) {\n os.writeByte(field.getByte(this));\n }\n else if (type == Short.TYPE) {\n os.writeShortReverse(field.getShort(this));\n }\n else if (type == Integer.TYPE) {\n os.writeIntReverse(field.getInt(this));\n }\n else if (type == Long.TYPE) {\n os.writeLongReverse(field.getLong(this));\n }\n else if (type == Double.TYPE) {\n os.writeDouble(field.getDouble(this));\n }\n else if (type.getName().equals(\"[B\")) {\n os.write( (byte[]) (field.get(this)));\n }\n }\n }", "public final void zzb(CharSequence charSequence, ByteBuffer byteBuffer) {\n CharSequence charSequence2 = charSequence;\n ByteBuffer byteBuffer2 = byteBuffer;\n long zzb = zzxj.zzb(byteBuffer);\n long position = zzb + ((long) byteBuffer.position());\n long limit = zzb + ((long) byteBuffer.limit());\n int length = charSequence.length();\n int limit2;\n if (((long) length) > limit - position) {\n char charAt = charSequence2.charAt(length - 1);\n limit2 = byteBuffer.limit();\n StringBuilder stringBuilder = new StringBuilder(37);\n stringBuilder.append(\"Failed writing \");\n stringBuilder.append(charAt);\n stringBuilder.append(\" at index \");\n stringBuilder.append(limit2);\n throw new ArrayIndexOutOfBoundsException(stringBuilder.toString());\n }\n char charAt2;\n long j;\n int i = 0;\n while (i < length) {\n charAt2 = charSequence2.charAt(i);\n if (charAt2 >= 128) {\n break;\n }\n j = position + 1;\n zzxj.zza(position, (byte) charAt2);\n i++;\n position = j;\n }\n if (i == length) {\n byteBuffer2.position((int) (position - zzb));\n return;\n }\n while (i < length) {\n long j2;\n charAt2 = charSequence2.charAt(i);\n long j3;\n if (charAt2 < 128 && position < limit) {\n j = position + 1;\n zzxj.zza(position, (byte) charAt2);\n j2 = zzb;\n position = j;\n } else if (charAt2 >= 2048 || position > limit - 2) {\n j2 = zzb;\n if ((charAt2 < 55296 || 57343 < charAt2) && position <= limit - 3) {\n j3 = position + 1;\n zzxj.zza(position, (byte) (480 | (charAt2 >>> 12)));\n position = j3 + 1;\n zzxj.zza(j3, (byte) (((charAt2 >>> 6) & 63) | 128));\n j3 = position + 1;\n zzxj.zza(position, (byte) ((63 & charAt2) | 128));\n position = j3;\n } else if (position <= limit - 4) {\n limit2 = i + 1;\n if (limit2 != length) {\n char charAt3 = charSequence2.charAt(limit2);\n if (Character.isSurrogatePair(charAt2, charAt3)) {\n int toCodePoint = Character.toCodePoint(charAt2, charAt3);\n long j4 = position + 1;\n zzxj.zza(position, (byte) (PsExtractor.VIDEO_STREAM_MASK | (toCodePoint >>> 18)));\n long j5 = j4 + 1;\n zzxj.zza(j4, (byte) (((toCodePoint >>> 12) & 63) | 128));\n j4 = j5 + 1;\n zzxj.zza(j5, (byte) (((toCodePoint >>> 6) & 63) | 128));\n j5 = j4 + 1;\n zzxj.zza(j4, (byte) ((toCodePoint & 63) | 128));\n position = j5;\n i = limit2;\n }\n } else {\n limit2 = i;\n }\n throw new zzxp(limit2 - 1, length);\n } else {\n if (55296 <= charAt2 && charAt2 <= 57343) {\n limit2 = i + 1;\n if (limit2 == length || !Character.isSurrogatePair(charAt2, charSequence2.charAt(limit2))) {\n throw new zzxp(i, length);\n }\n }\n StringBuilder stringBuilder2 = new StringBuilder(46);\n stringBuilder2.append(\"Failed writing \");\n stringBuilder2.append(charAt2);\n stringBuilder2.append(\" at index \");\n stringBuilder2.append(position);\n throw new ArrayIndexOutOfBoundsException(stringBuilder2.toString());\n }\n } else {\n j2 = zzb;\n j3 = position + 1;\n zzxj.zza(position, (byte) (960 | (charAt2 >>> 6)));\n position = j3 + 1;\n zzxj.zza(j3, (byte) ((63 & charAt2) | 128));\n }\n i++;\n zzb = j2;\n byteBuffer2 = byteBuffer;\n }\n byteBuffer.position((int) (position - zzb));\n }", "public void write(int b) throws IOException {\n/* 54 */ this.appendable.append((char)b);\n/* */ }", "private static void writer(String filename, char[] chars) {\n BinaryOut binaryOut = new BinaryOut(filename);\n\n for (char c : chars) {\n binaryOut.write(c);\n }\n\n binaryOut.close();\n }", "private void storeHeaderDataToByte() {\n\t\tString byteNumStr = String.format(\"%24s\",\n\t\t\t\tInteger.toBinaryString(encodedByte.length)).replace(' ',\n\t\t\t\t'0');\n\t\tencodedByte[encodingIndex++] = convert8BitsStrToByte(byteNumStr\n\t\t\t\t.substring(0, 8));\n\t\tencodedByte[encodingIndex++] = convert8BitsStrToByte(byteNumStr\n\t\t\t\t.substring(8, 16));\n\t\tencodedByte[encodingIndex++] = convert8BitsStrToByte(byteNumStr\n\t\t\t\t.substring(16, 24));\n\n\t\t\n\t\tString widthStr = String.format(\"%16s\",\n\t\t\t\tInteger.toBinaryString(width)).replace(' ', '0');\n\t\tencodedByte[encodingIndex++] = convert8BitsStrToByte(widthStr\n\t\t\t\t.substring(0, 8));\n\t\tencodedByte[encodingIndex++] = convert8BitsStrToByte(widthStr\n\t\t\t\t.substring(8, 16));\n\n\t\t\n\t\tString heightStr = String.format(\"%16s\",\n\t\t\t\tInteger.toBinaryString(height)).replace(' ', '0');\n\t\tencodedByte[encodingIndex++] = convert8BitsStrToByte(heightStr\n\t\t\t\t.substring(0, 8));\n\t\tencodedByte[encodingIndex++] = convert8BitsStrToByte(heightStr\n\t\t\t\t.substring(8, 16));\n\n\t\tencodedByte[encodingIndex++] = (byte) numOfTableValue;\n\t\tencodedByte[encodingIndex++] = (byte) byteSizeForCode;\n\t\tencodedByte[encodingIndex++] = (byte) extraBits;\n\t}", "boolean checkLen(int epcbytes)\n {\n return true;\n }", "private void _writeString(char[] text, int offset, int len)\n/* */ throws IOException\n/* */ {\n/* 1049 */ if (this._characterEscapes != null) {\n/* 1050 */ _writeStringCustom(text, offset, len);\n/* 1051 */ return;\n/* */ }\n/* 1053 */ if (this._maximumNonEscapedChar != 0) {\n/* 1054 */ _writeStringASCII(text, offset, len, this._maximumNonEscapedChar);\n/* 1055 */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1062 */ len += offset;\n/* 1063 */ int[] escCodes = this._outputEscapes;\n/* 1064 */ int escLen = escCodes.length;\n/* 1065 */ while (offset < len) {\n/* 1066 */ int start = offset;\n/* */ for (;;)\n/* */ {\n/* 1069 */ char c = text[offset];\n/* 1070 */ if ((c < escLen) && (escCodes[c] != 0)) {\n/* */ break;\n/* */ }\n/* 1073 */ offset++; if (offset >= len) {\n/* */ break;\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* 1079 */ int newAmount = offset - start;\n/* 1080 */ if (newAmount < 32)\n/* */ {\n/* 1082 */ if (this._outputTail + newAmount > this._outputEnd) {\n/* 1083 */ _flushBuffer();\n/* */ }\n/* 1085 */ if (newAmount > 0) {\n/* 1086 */ System.arraycopy(text, start, this._outputBuffer, this._outputTail, newAmount);\n/* 1087 */ this._outputTail += newAmount;\n/* */ }\n/* */ } else {\n/* 1090 */ _flushBuffer();\n/* 1091 */ this._writer.write(text, start, newAmount);\n/* */ }\n/* */ \n/* 1094 */ if (offset >= len) {\n/* */ break;\n/* */ }\n/* */ \n/* 1098 */ char c = text[(offset++)];\n/* 1099 */ _appendCharacterEscape(c, escCodes[c]);\n/* */ }\n/* */ }", "int readMultiByte(int c1, int charBufferPosition) \n \tthrows IOException {\n switch (c1 >> 4) {\n case 12: \n case 13: {\n \t//\n \t// We need at least one byte for the character and one for the null to terminate\n assert charBufferPosition < _charBuffer.length;\n \tensureContinuousBlock(2);\n \t//\n \t// Read next byte and check for correctness\n final int c2 = _random[_o++];\n \n if ((c2 & 0xC0) != 0x80)\n _charBuffer[charBufferPosition++] = '\\uFFFD';\n else \n _charBuffer[charBufferPosition++] = (char)(((c1 & 0x1F) << 6) | (c2 & 0x3F));\n \n break;\n }\n case 14: {\n \t//\n \t// We need at least two bytes for the character and one for the null to terminate\n assert charBufferPosition < _charBuffer.length;\n \tensureContinuousBlock(3);\n \t//\n \t// Read next bytes and check for correctness \t\n \tfinal int c2 = _random[_o++];\n \tfinal int c3 = _random[_o++];\n \t\n \tif (((c2 & 0xC0) != 0x80) || ((c3 & 0xC0) != 0x80)) \n \t _charBuffer[charBufferPosition++] = '\\uFFFD';\n \telse \t\n \t _charBuffer[charBufferPosition++] = (char)(((c1 & 0x0F) << 12) | ((c2 & 0x3F) << 6) | ((c3 & 0x3F) << 0));\n \t\n break;\n }\t\n case 15: {\n //\n // We need at least three bytes for the character and one for the null to terminate\n ensureContinuousBlock(4); \n //\n // Read next bytes and check for correctness \n final int c2 = _random[_o++];\n final int c3 = _random[_o++];\n final int c4 = _random[_o++];\n // Use a surrogate pair to represent it. \n // ch is 0..fffff (20 bits)\n final int ch = ((c1&0x7)<<18) + ((c2&0x3f)<<12) + ((c3&0x3f)<<6) + (c4&0x3f) - 0x10000;\n \n _charBuffer[charBufferPosition++] = (char) (0xd800 + (ch >> 10)); // top 10 bits\n _charBuffer[charBufferPosition++] = (char) (0xdc00 + (ch & 0x3ff)); // bottom 10 bits\n \n break;\n }\n default:\n _charBuffer[charBufferPosition++] = '\\uFFFD';\n }\n \n return charBufferPosition;\n }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n try { \n JavaCharStream.hexval('M');\n fail(\"Expecting exception: IOException\");\n \n } catch(IOException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "public final int zzb(CharSequence charSequence, byte[] bArr, int i, int i2) {\n char c;\n long j;\n long j2;\n long j3;\n CharSequence charSequence2 = charSequence;\n byte[] bArr2 = bArr;\n int i3 = i;\n int i4 = i2;\n long j4 = (long) i3;\n long j5 = ((long) i4) + j4;\n int length = charSequence.length();\n String str = \" at index \";\n String str2 = \"Failed writing \";\n if (length > i4 || bArr2.length - i4 < i3) {\n char charAt = charSequence2.charAt(length - 1);\n int i5 = i3 + i4;\n StringBuilder sb = new StringBuilder(37);\n sb.append(str2);\n sb.append(charAt);\n sb.append(str);\n sb.append(i5);\n throw new ArrayIndexOutOfBoundsException(sb.toString());\n }\n int i6 = 0;\n while (true) {\n c = 128;\n j = 1;\n if (i6 >= length) {\n break;\n }\n char charAt2 = charSequence2.charAt(i6);\n if (charAt2 >= 128) {\n break;\n }\n long j6 = 1 + j4;\n zziv.zza(bArr2, j4, (byte) charAt2);\n i6++;\n j4 = j6;\n }\n if (i6 == length) {\n return (int) j4;\n }\n while (i6 < length) {\n char charAt3 = charSequence2.charAt(i6);\n if (charAt3 < c && j4 < j5) {\n long j7 = j4 + j;\n zziv.zza(bArr2, j4, (byte) charAt3);\n j3 = j;\n j2 = j7;\n } else if (charAt3 < 2048 && j4 <= j5 - 2) {\n long j8 = j4 + j;\n zziv.zza(bArr2, j4, (byte) ((charAt3 >>> 6) | 960));\n long j9 = j8 + j;\n zziv.zza(bArr2, j8, (byte) ((charAt3 & '?') | 128));\n j2 = j9;\n j3 = j;\n } else if ((charAt3 < 55296 || 57343 < charAt3) && j4 <= j5 - 3) {\n long j10 = j4 + j;\n zziv.zza(bArr2, j4, (byte) ((charAt3 >>> 12) | 480));\n long j11 = j10 + j;\n zziv.zza(bArr2, j10, (byte) (((charAt3 >>> 6) & 63) | 128));\n long j12 = j11 + 1;\n zziv.zza(bArr2, j11, (byte) ((charAt3 & '?') | 128));\n j2 = j12;\n j3 = 1;\n } else if (j4 <= j5 - 4) {\n int i7 = i6 + 1;\n if (i7 != length) {\n char charAt4 = charSequence2.charAt(i7);\n if (Character.isSurrogatePair(charAt3, charAt4)) {\n int codePoint = Character.toCodePoint(charAt3, charAt4);\n long j13 = j4 + 1;\n zziv.zza(bArr2, j4, (byte) ((codePoint >>> 18) | 240));\n long j14 = j13 + 1;\n zziv.zza(bArr2, j13, (byte) (((codePoint >>> 12) & 63) | 128));\n long j15 = j14 + 1;\n zziv.zza(bArr2, j14, (byte) (((codePoint >>> 6) & 63) | 128));\n j3 = 1;\n j2 = j15 + 1;\n zziv.zza(bArr2, j15, (byte) ((codePoint & 63) | 128));\n i6 = i7;\n } else {\n i6 = i7;\n }\n }\n throw new zzjb(i6 - 1, length);\n } else {\n if (55296 <= charAt3 && charAt3 <= 57343) {\n int i8 = i6 + 1;\n if (i8 == length || !Character.isSurrogatePair(charAt3, charSequence2.charAt(i8))) {\n throw new zzjb(i6, length);\n }\n }\n StringBuilder sb2 = new StringBuilder(46);\n sb2.append(str2);\n sb2.append(charAt3);\n sb2.append(str);\n sb2.append(j4);\n throw new ArrayIndexOutOfBoundsException(sb2.toString());\n }\n i6++;\n c = 128;\n long j16 = j3;\n j4 = j2;\n j = j16;\n }\n return (int) j4;\n }", "private void saveLicenseFile(long renewalDate, boolean pBogus)\n{\n\n FileOutputStream fileOutputStream = null;\n OutputStreamWriter outputStreamWriter = null;\n BufferedWriter out = null;\n\n try{\n\n fileOutputStream = new FileOutputStream(licenseFilename);\n outputStreamWriter = new OutputStreamWriter(fileOutputStream);\n out = new BufferedWriter(outputStreamWriter);\n\n //if the number is to purposely invalid, add junk to the encoded value\n int bogusModifier = 0;\n if (pBogus) {bogusModifier = 249872349;}\n\n //save the renewal date followed by the same value encoded\n\n out.write(\"\" + renewalDate); out.newLine();\n out.write(\"\" + encodeDecode(renewalDate + bogusModifier));\n out.newLine();\n\n }\n catch(IOException e){\n logSevere(e.getMessage() + \" - Error: 274\");\n }\n finally{\n\n try{if (out != null) {out.close();}}\n catch(IOException e){}\n try{if (outputStreamWriter != null) {outputStreamWriter.close();}}\n catch(IOException e){}\n try{if (fileOutputStream != null) {fileOutputStream.close();}}\n catch(IOException e){}\n }\n\n}", "public ByteBuffer toValue(Date value) throws Exception {\n\t\treturn longTypeConverter.toValue(value.getTime());\n\t}", "@Test(timeout = 4000)\n public void test103() throws Throwable {\n int int0 = JavaCharStream.hexval('E');\n assertEquals(14, int0);\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n try { \n JavaCharStream.hexval('J');\n fail(\"Expecting exception: IOException\");\n \n } catch(IOException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "void write(byte b[]) throws IOException;", "private static String m66046a(byte[] bArr) {\n int i = 0;\n int i2 = 0;\n int i3 = -1;\n int i4 = 0;\n while (i2 < bArr.length) {\n int i5 = i2;\n while (i5 < 16 && bArr[i5] == 0 && bArr[i5 + 1] == 0) {\n i5 += 2;\n }\n int i6 = i5 - i2;\n if (i6 > i4 && i6 >= 4) {\n i3 = i2;\n i4 = i6;\n }\n i2 = i5 + 2;\n }\n C13887c cVar = new C13887c();\n while (i < bArr.length) {\n if (i == i3) {\n cVar.writeByte(58);\n i += i4;\n if (i == 16) {\n cVar.writeByte(58);\n }\n } else {\n if (i > 0) {\n cVar.writeByte(58);\n }\n cVar.m59547e((long) (((bArr[i] & 255) << 8) | (bArr[i + 1] & 255)));\n i += 2;\n }\n }\n return cVar.mo43923w();\n }", "public void write(byte b[]) throws IOException;", "void writeBytes(byte[] value);", "public final boolean writeToFile(byte[] bArr) {\n boolean z;\n VEssayLogUtil bVar;\n StringBuilder sb;\n File downloadTempFile;\n C32569u.m150519b(bArr, C6969H.m41409d(\"G6896D113B0\"));\n VEssayLogUtil bVar2 = VEssayLogUtil.f90847b;\n bVar2.mo110964a(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC16BA70\") + this);\n if (this.outputStream == null) {\n this.outputStream = getOutputStream(this.filePath);\n }\n VEssayLogUtil bVar3 = VEssayLogUtil.f90847b;\n bVar3.mo110964a(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC16BA70\") + this);\n Long l = null;\n try {\n VEssayLogUtil bVar4 = VEssayLogUtil.f90847b;\n bVar4.mo110964a(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC16BA70B83CE50D955BE1A59397\") + this);\n FileOutputStream fileOutputStream = this.outputStream;\n if (fileOutputStream != null) {\n fileOutputStream.write(bArr);\n }\n FileOutputStream fileOutputStream2 = this.outputStream;\n if (fileOutputStream2 != null) {\n fileOutputStream2.flush();\n }\n VEssayLogUtil bVar5 = VEssayLogUtil.f90847b;\n bVar5.mo110964a(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC16BA70B83CE50D955BE1A59297\") + this);\n z = true;\n bVar = VEssayLogUtil.f90847b;\n sb = new StringBuilder();\n sb.append(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC14BE3CA730A643D0\"));\n downloadTempFile = getDownloadTempFile(this.filePath);\n } catch (IOException e) {\n e.printStackTrace();\n VEssayLogUtil bVar6 = VEssayLogUtil.f90847b;\n bVar6.mo110964a(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC16BA70AE31E50B805CFBEACD9722C3\") + e.getMessage());\n z = false;\n bVar = VEssayLogUtil.f90847b;\n sb = new StringBuilder();\n sb.append(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC14BE3CA730A643D0\"));\n downloadTempFile = getDownloadTempFile(this.filePath);\n } catch (Throwable th) {\n VEssayLogUtil bVar7 = VEssayLogUtil.f90847b;\n StringBuilder sb2 = new StringBuilder();\n sb2.append(C6969H.m41409d(\"G6D8CC214B33FAA2DA643D05FE0ECD7D22985DC14BE3CA730A643D0\"));\n File downloadTempFile2 = getDownloadTempFile(this.filePath);\n if (downloadTempFile2 != null) {\n l = Long.valueOf(downloadTempFile2.length());\n }\n sb2.append(l);\n sb2.append(C6969H.m41409d(\"G29CF95\"));\n sb2.append(this);\n bVar7.mo110964a(sb2.toString());\n throw th;\n }\n }", "protected abstract void writeToExternal(byte[] b, int off, int len) throws IOException;", "private void writeBuffer( byte b[], int offset, int length) throws IOException\r\n\t{\r\n\t\t// Write the chunk length as a hex number.\r\n\t\tfinal String size = Integer.toHexString(length);\r\n\t\tthis.out.write(size.getBytes());\r\n\t\t// Write a CRLF.\r\n\t\tthis.out.write( CR );\r\n\t\tthis.out.write( LF );\r\n\t\t// Write the data.\r\n\t\tif (length != 0 )\r\n\t\t\tthis.out.write(b, offset, length);\r\n\t\t// Write a CRLF.\r\n\t\tthis.out.write( CR );\r\n\t\tthis.out.write( LF );\r\n\t\t// And flush the real stream.\r\n\t\tthis.out.flush();\r\n\t}", "@Test(timeout = 4000)\n public void test086() throws Throwable {\n try { \n JavaCharStream.hexval('W');\n fail(\"Expecting exception: IOException\");\n \n } catch(IOException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "public byte[] mo544a(C0164ce ceVar) throws C0172ck {\n this.f583a.reset();\n ceVar.mo258b(this.f585c);\n return this.f583a.toByteArray();\n }", "void write(byte[] buffer, int bufferOffset, int length) throws IOException;", "public void write(char[] charArray, int offset, int length) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append(charArray, offset, length);\r\n }", "private void appendHex( StringBuffer buffer, int chars, String hex) {\n\t\tfor (int i=0; i < chars-hex.length(); i++) {\n\t\t\tbuffer.append(\"0\");\n\t\t}\n\t\tbuffer.append(hex);\n\t}", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n byte[] byteArray0 = new byte[4];\n byteArray0[0] = (byte) (-71);\n byteArray0[1] = (byte)38;\n byteArray0[2] = (byte) (-71);\n byteArray0[3] = (byte) (-28);\n MethodWriter.writeShort(byteArray0, 0, (byte)38);\n assertArrayEquals(new byte[] {(byte)0, (byte)38, (byte) (-71), (byte) (-28)}, byteArray0);\n }", "public final int zzb(CharSequence charSequence, byte[] bArr, int i, int i2) {\n CharSequence charSequence2 = charSequence;\n byte[] bArr2 = bArr;\n int i3 = i;\n int i4 = i2;\n long j = (long) i3;\n long j2 = j + ((long) i4);\n int length = charSequence.length();\n if (length > i4 || bArr2.length - i4 < i3) {\n char charAt = charSequence2.charAt(length - 1);\n i3 += i4;\n StringBuilder stringBuilder = new StringBuilder(37);\n stringBuilder.append(\"Failed writing \");\n stringBuilder.append(charAt);\n stringBuilder.append(\" at index \");\n stringBuilder.append(i3);\n throw new ArrayIndexOutOfBoundsException(stringBuilder.toString());\n }\n char charAt2;\n long j3;\n i3 = 0;\n while (i3 < length) {\n charAt2 = charSequence2.charAt(i3);\n if (charAt2 >= 128) {\n break;\n }\n j3 = j + 1;\n zzxj.zza(bArr2, j, (byte) charAt2);\n i3++;\n j = j3;\n }\n if (i3 == length) {\n return (int) j;\n }\n while (i3 < length) {\n charAt2 = charSequence2.charAt(i3);\n long j4;\n if (charAt2 < 128 && j < j2) {\n j3 = j + 1;\n zzxj.zza(bArr2, j, (byte) charAt2);\n j = j3;\n } else if (charAt2 < 2048 && j <= j2 - 2) {\n j4 = j + 1;\n zzxj.zza(bArr2, j, (byte) (960 | (charAt2 >>> 6)));\n j = j4 + 1;\n zzxj.zza(bArr2, j4, (byte) ((charAt2 & 63) | 128));\n } else if ((charAt2 < 55296 || 57343 < charAt2) && j <= j2 - 3) {\n j4 = j + 1;\n zzxj.zza(bArr2, j, (byte) (480 | (charAt2 >>> 12)));\n j = j4 + 1;\n zzxj.zza(bArr2, j4, (byte) (((charAt2 >>> 6) & 63) | 128));\n j4 = j + 1;\n zzxj.zza(bArr2, j, (byte) ((charAt2 & 63) | 128));\n j = j4;\n } else if (j <= j2 - 4) {\n int i5 = i3 + 1;\n if (i5 != length) {\n char charAt3 = charSequence2.charAt(i5);\n if (Character.isSurrogatePair(charAt2, charAt3)) {\n i3 = Character.toCodePoint(charAt2, charAt3);\n j4 = j + 1;\n zzxj.zza(bArr2, j, (byte) (PsExtractor.VIDEO_STREAM_MASK | (i3 >>> 18)));\n j = j4 + 1;\n zzxj.zza(bArr2, j4, (byte) (((i3 >>> 12) & 63) | 128));\n j4 = j + 1;\n zzxj.zza(bArr2, j, (byte) (((i3 >>> 6) & 63) | 128));\n j = j4 + 1;\n zzxj.zza(bArr2, j4, (byte) ((i3 & 63) | 128));\n i3 = i5;\n }\n } else {\n i5 = i3;\n }\n throw new zzxp(i5 - 1, length);\n } else {\n if (55296 <= charAt2 && charAt2 <= 57343) {\n int i6 = i3 + 1;\n if (i6 == length || !Character.isSurrogatePair(charAt2, charSequence2.charAt(i6))) {\n throw new zzxp(i3, length);\n }\n }\n StringBuilder stringBuilder2 = new StringBuilder(46);\n stringBuilder2.append(\"Failed writing \");\n stringBuilder2.append(charAt2);\n stringBuilder2.append(\" at index \");\n stringBuilder2.append(j);\n throw new ArrayIndexOutOfBoundsException(stringBuilder2.toString());\n }\n i3++;\n }\n return (int) j;\n }", "@Test(timeout = 4000)\n public void test095() throws Throwable {\n try { \n JavaCharStream.hexval('N');\n fail(\"Expecting exception: IOException\");\n \n } catch(IOException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "@Override\n public void write(byte[] buf, int offset, int size) throws IOException;", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n int int0 = JavaCharStream.hexval('b');\n assertEquals(11, int0);\n }", "private static int m1646b(CharSequence charSequence) {\n return new C0510a(charSequence, false).mo4452e();\n }", "private void m152578e(ByteBuffer byteBuffer) {\n if (f113303b) {\n PrintStream printStream = System.out;\n StringBuilder sb = new StringBuilder();\n sb.append(\"write(\");\n sb.append(byteBuffer.remaining());\n sb.append(\"): {\");\n sb.append(byteBuffer.remaining() > 1000 ? \"too big to display\" : new String(byteBuffer.array()));\n sb.append('}');\n printStream.println(sb.toString());\n }\n this.f113305c.add(byteBuffer);\n this.f113309h.onWriteDemand(this);\n }", "public Builder setField1605Bytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n field1605_ = value;\n onChanged();\n return this;\n }", "public void returnByteArray(byte[] buf) {\n num--;\n if(ZenBuildProperties.dbgDataStructures){\n System.out.write('b');\n System.out.write('a');\n System.out.write('_');\n System.out.write('c');\n System.out.write('a');\n System.out.write('c');\n System.out.write('h');\n System.out.write('e');\n edu.uci.ece.zen.utils.Logger.writeln(num);\n }\n byteBuffers.enqueue(buf);\n }", "public void getContent(ByteBuffer byteBuffer) {\n writeVersionAndFlags(byteBuffer);\n if (getVersion() == 1) {\n IsoTypeWriter.writeUInt64(byteBuffer, this.fragmentDuration);\n } else {\n IsoTypeWriter.writeUInt32(byteBuffer, this.fragmentDuration);\n }\n }", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public void write(char[] cArr, int i, int i2) throws XMLStreamException {\n try {\n this.writer.write(cArr, i, i2);\n } catch (IOException e) {\n throw new XMLStreamException((Throwable) e);\n }\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:56:11.282 -0500\", hash_original_method = \"D5825B232A74B71A26A12413148003F7\", hash_generated_method = \"42C4F2A798161F88780A237C678B7BD2\")\n \nprivate void format(int date, int digits, StringBuilder sb) {\n String str = String.valueOf(date);\n if (digits - str.length() > 0) {\n sb.append(PADDING.substring(0, digits - str.length()));\n }\n sb.append(str);\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180321));\n byte[] byteArray0 = new byte[6];\n byteArray0[1] = (byte) (-8);\n byteArray0[2] = (byte)111;\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n byteArray0[3] = (byte)111;\n byteArray0[4] = (byte)114;\n byteArray0[5] = (byte) (-85);\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"\";\n stringArray0[1] = \"\";\n stringArray0[2] = \"\";\n stringArray0[3] = \"\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1983180321), \"\", \"<T'RwU+).UKJX>\", \"\", stringArray0, true, false);\n methodWriter0.visitMethodInsn(183, \"\", \"\", \"<T'RwU+).UKJX>\");\n methodWriter0.visitTypeInsn((byte)0, \"HC\");\n }", "public void setDay(byte value) {\n this.day = value;\n }", "private void _writeSegment(int end)\n/* */ throws IOException\n/* */ {\n/* 1006 */ int[] escCodes = this._outputEscapes;\n/* 1007 */ int escLen = escCodes.length;\n/* */ \n/* 1009 */ int ptr = 0;\n/* 1010 */ int start = ptr;\n/* */ \n/* */ \n/* 1013 */ while (ptr < end)\n/* */ {\n/* */ char c;\n/* */ for (;;) {\n/* 1017 */ c = this._outputBuffer[ptr];\n/* 1018 */ if ((c >= escLen) || (escCodes[c] == 0))\n/* */ {\n/* */ \n/* 1021 */ ptr++; if (ptr >= end) {\n/* */ break;\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1030 */ int flushLen = ptr - start;\n/* 1031 */ if (flushLen > 0) {\n/* 1032 */ this._writer.write(this._outputBuffer, start, flushLen);\n/* 1033 */ if (ptr >= end) {\n/* */ break;\n/* */ }\n/* */ }\n/* 1037 */ ptr++;\n/* */ \n/* 1039 */ start = _prependOrWriteCharacterEscape(this._outputBuffer, ptr, end, c, escCodes[c]);\n/* */ }\n/* */ }", "public void writeBinary(RandomAccessFile stream) {\r\n\t\t\r\n\t\t// Create paddable stringBuffers\r\n\t\tStringBuffer dateSB = new StringBuffer(trmt_date);\r\n\t\tStringBuffer stratumSB = new StringBuffer(stratum);\r\n\t\tStringBuffer raceOtherSB = new StringBuffer(race_other);\r\n\t\tStringBuffer diagOtherSB = new StringBuffer(diag_other);\r\n\t\tStringBuffer narr1SB = new StringBuffer(narr1);\r\n\t\tStringBuffer narr2SB = new StringBuffer(narr2);\r\n\t\t\r\n\t\t// Write to the Binary file\r\n\t\ttry {\r\n\t\t\tstream.writeInt(cpscCase);\r\n\t\t\tdateSB.setLength(dateLength);\r\n\t\t\tstream.writeBytes(dateSB.toString());\r\n\t\t\tstream.writeInt(psu);\r\n\t\t\tstream.writeDouble(weight);\r\n\t\t\tstratumSB.setLength(stratumLength);\r\n\t\t\tstream.writeBytes(stratumSB.toString());\r\n\t\t\tstream.writeInt(age);\r\n\t\t\tstream.writeInt(sex);\r\n\t\t\tstream.writeInt(race);\r\n\t\t\traceOtherSB.setLength(raceOtherLength);\r\n\t\t\tstream.writeBytes(raceOtherSB.toString());\r\n\t\t\tstream.writeInt(diag);\r\n\t\t\tdiagOtherSB.setLength(diagOtherLength);\r\n\t\t\tstream.writeBytes(diagOtherSB.toString());\r\n\t\t\tstream.writeInt(body_part);\r\n\t\t\tstream.writeInt(disposition);\r\n\t\t\tstream.writeInt(location);\r\n\t\t\tstream.writeInt(fmv);\r\n\t\t\tstream.writeInt(prod1);\r\n\t\t\tstream.writeInt(prod2);\r\n\t\t\tnarr1SB.setLength(narr1Length);\r\n\t\t\tstream.writeBytes(narr1SB.toString());\r\n\t\t\tnarr2SB.setLength(narr2Length);\r\n\t\t\tstream.writeBytes(narr2SB.toString());\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n try { \n JavaCharStream.hexval('I');\n fail(\"Expecting exception: IOException\");\n \n } catch(IOException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "@Override // jcifs.smb.SmbComTransactionResponse\n public int writeDataWireFormat(byte[] dst, int dstIndex) {\n return 0;\n }", "public byte[] encode() throws IOException {\n byte[] buffer = new byte[12+193];\n LittleEndianDataOutputStream dos = new LittleEndianDataOutputStream(new ByteArrayOutputStream());\n dos.writeByte((byte)0xFD);\n dos.writeByte(payload_length & 0x00FF);\n dos.writeByte(incompat & 0x00FF);\n dos.writeByte(compat & 0x00FF);\n dos.writeByte(packet & 0x00FF);\n dos.writeByte(sysId & 0x00FF);\n dos.writeByte(componentId & 0x00FF);\n dos.writeByte(messageType & 0x00FF);\n dos.writeByte((messageType >> 8) & 0x00FF);\n dos.writeByte((messageType >> 16) & 0x00FF);\n dos.writeLong(tms);\n for (int i=0; i<40; i++) {\n dos.writeInt((int)(data[i]&0x00FFFFFFFF));\n }\n dos.writeFloat(cx);\n dos.writeFloat(cy);\n dos.writeFloat(cz);\n dos.writeFloat(resolution);\n dos.writeFloat(extension);\n dos.writeInt((int)(count&0x00FFFFFFFF));\n dos.writeByte(status&0x00FF);\n dos.flush();\n byte[] tmp = dos.toByteArray();\n for (int b=0; b<tmp.length; b++) buffer[b]=tmp[b];\n int crc = MAVLinkCRC.crc_calculate_encode(buffer, 193);\n crc = MAVLinkCRC.crc_accumulate((byte) IMAVLinkCRC.MAVLINK_MESSAGE_CRCS[messageType], crc);\n byte crcl = (byte) (crc & 0x00FF);\n byte crch = (byte) ((crc >> 8) & 0x00FF);\n buffer[203] = crcl;\n buffer[204] = crch;\n dos.close();\n return buffer;\n}", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void writeCalendar(int idHospital) throws IOException {\r\n\t\tArrayList<String> calendarData = new ArrayList<String>();\r\n\t\tcalendarData.add(Integer.toString(calendar.getCalendarYear()));\r\n\t\tcalendarData.add(Integer.toString(calendar.getNumberOfVacations()));\t\r\n\t\tif(!calendar.isEmpty()) {\r\n\t\t\tArrayList<GregorianCalendar> vacations = calendar.getALLVacations();\r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"ddMM\");\r\n\t\t\tfor (GregorianCalendar date : vacations) {\r\n\t\t\t\tcalendarData.add(sdf.format(date.getTime()));\r\n\t\t\t\tcalendarData.addAll(getVacationDay(date));\r\n\t\t\t}\r\n\t\t}\r\n\t\t// llamada a datos\r\n\t\tctrlDatosFichero.saveDataCale(calendarData, idHospital);\r\n\t}", "public CArrayFacade<Byte> get_pad() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Byte.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t2\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 14, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 14, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}", "private static void flushInternalBuffer() {\n\n //Strongly set the last byte to \"0A\"(new line)\n if (mPos < LOG_BUFFER_SIZE_MAX) {\n buffer[LOG_BUFFER_SIZE_MAX - 1] = 10;\n }\n\n long t1, t2;\n\n //Save buffer to SD card.\n t1 = System.currentTimeMillis();\n writeToSDCard();\n //calculate write file cost\n t2 = System.currentTimeMillis();\n Log.i(LOG_TAG, \"internalLog():Cost of write file to SD card is \" + (t2 - t1) + \" ms!\");\n\n //flush buffer.\n Arrays.fill(buffer, (byte) 0);\n mPos = 0;\n }", "public void charData(char[] c, int offset, int length) throws Exception {\n\t\t\tString s = new String(c, offset, length);\n\n\t\t\tif (isVerbose()) {\n\t\t\t\tString x;\n\n\t\t\t\tif (s.length() > 40) {\n\t\t\t\t\tx = s.substring(0, 40) + \"...\";\n\t\t\t\t} else {\n\t\t\t\t\tx = s;\n\t\t\t\t}\n\n\t\t\t\tlogInfo(\"cdata\", \"[\" + offset + \",\" + length + \"] \" + x);\n\t\t\t}\n\n\t\t\t_currentElement.appendPCData(s);\n\t\t}", "public void onEncodeSerialData(StreamWriter streamWriter) throws IOException {\n Vector<BlockHeader> vector = this.blockHeaderVector;\n if (vector == null) {\n streamWriter.writeVariableInt(0);\n return;\n }\n Iterator it = vector.iterator();\n while (it.hasNext()) {\n ((BlockHeader) it.next()).mo44659c(streamWriter);\n }\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n int int0 = JavaCharStream.hexval('B');\n assertEquals(11, int0);\n }", "public Builder setDatesEmployedTextBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n datesEmployedText_ = value;\n onChanged();\n return this;\n }", "public static byte[] ECP_to_byte(ECP ecp){\n byte[] temp = new byte[65];\n ecp.toBytes(temp, false);\n return temp;\n }", "public CArrayFacade<Byte> get_pad() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Byte.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t3\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 29, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 21, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}", "public abstract void writeBytes(byte[] b, int offset, int length) throws IOException;", "public void write(char cbuf[], int off, int len) throws IOException {\n ensureOpen();\n if ((off < 0) || (off > cbuf.length) || (len < 0) ||\n ((off + len) > cbuf.length) || ((off + len) < 0)) {\n throw new IndexOutOfBoundsException();\n } else if (len == 0) {\n return;\n }\n out.write(cbuf, off, len);\n }", "void writeByteArray(ByteArray array);", "private String makeHex(byte[] buffer) {\n byte current;\n int length = buffer.length;\n String blank = \"\"; // it's easier to change\n StringBuffer ret = new StringBuffer(2*length);\n\n // do for each half byte\n for(int i=0;i<(2*length);i++)\n {\n\t// mask half byte and move it to the right\n\tcurrent = i%2==1 ? (byte) (buffer[(i/2)] & 0x0F)\n\t : (byte) ((buffer[(i/2)] >> 4) & 0x0F);\n\t\n\t// convert half byte to ASCII char\t\t \n\tret.append((char) (current < 0x0A ? current+0x30 : current+0x37) + (i%2==1 ? blank : \"\"));\n }\n return ret.toString();\n }", "@Test(timeout = 4000)\n public void test080() throws Throwable {\n try { \n JavaCharStream.hexval(']');\n fail(\"Expecting exception: IOException\");\n \n } catch(IOException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaCharStream\", e);\n }\n }", "public void write(byte b[], int off, int len) throws IOException;" ]
[ "0.5415438", "0.5304311", "0.5255787", "0.51874685", "0.5115707", "0.5049703", "0.5033973", "0.49935618", "0.48843265", "0.48753807", "0.4859595", "0.48552343", "0.483516", "0.48249996", "0.48230642", "0.47548455", "0.47196838", "0.47189933", "0.47189552", "0.46772718", "0.4631034", "0.46145445", "0.45912477", "0.4562014", "0.45492247", "0.45437074", "0.45349506", "0.45231268", "0.45123172", "0.4510991", "0.4508888", "0.45038965", "0.4503022", "0.4476389", "0.44723558", "0.44467708", "0.44444036", "0.44421962", "0.44407535", "0.44317698", "0.4416786", "0.44161588", "0.4407791", "0.44069013", "0.4406673", "0.44060466", "0.43999463", "0.43939435", "0.43929484", "0.4387774", "0.4384804", "0.4382138", "0.43765214", "0.43746895", "0.43636468", "0.43584904", "0.43534473", "0.4353358", "0.43348554", "0.43326002", "0.4329564", "0.43266273", "0.43225646", "0.43208924", "0.43177533", "0.4312055", "0.43116093", "0.43114266", "0.43090934", "0.43073642", "0.4304611", "0.4302803", "0.4300697", "0.42965952", "0.4294348", "0.4293372", "0.42926505", "0.4290998", "0.42902878", "0.42898956", "0.42892283", "0.4274194", "0.42718115", "0.4270238", "0.4270238", "0.4270238", "0.426769", "0.42669675", "0.42667657", "0.426392", "0.4263824", "0.42571935", "0.42554334", "0.4254985", "0.42492068", "0.42447615", "0.42435712", "0.4239959", "0.42394382", "0.4238814", "0.42282292" ]
0.0
-1
Created by nbfujx on 2017/10/14.
public interface sysUserService { @DataSource("master") sysUser selectByid(String id); PageInfo selectUserList(String username, String name, String status, String org_id, String is_admin, String orderFiled, String orderSort, int pageindex, int pagenum); int addUser(sysUser sysuser); int modifyUser(sysUser sysuser); int deleteUser(String id); int changeUserStatus(String id,String status); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\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 comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n void init() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void poetries() {\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\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\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 interr() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo38117a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\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 getExras() {\n }", "@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\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 protected void init() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void init() {}", "@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 public void inizializza() {\n\n super.inizializza();\n }", "@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\tprotected void initialize() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "private void m50366E() {\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 void mo55254a() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "public void mo6081a() {\n }", "private void init() {\n\n\n\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private void strin() {\n\n\t}", "@Override\n public void init() {\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "private void init() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}" ]
[ "0.6052209", "0.5909575", "0.5745156", "0.5740311", "0.5740311", "0.5729438", "0.5692833", "0.5683924", "0.56443757", "0.55949837", "0.5594104", "0.55872613", "0.55833626", "0.55772674", "0.5574426", "0.5561709", "0.55481344", "0.55460113", "0.5540616", "0.5528959", "0.5528959", "0.5528959", "0.5528959", "0.5528959", "0.5528959", "0.552568", "0.55164236", "0.5512426", "0.5512426", "0.5512426", "0.5512426", "0.5512426", "0.55116266", "0.5508374", "0.5506999", "0.54999596", "0.54990476", "0.5497294", "0.5459594", "0.5445443", "0.54449385", "0.54438674", "0.54438674", "0.54421556", "0.54421556", "0.54421556", "0.5434528", "0.54261553", "0.542528", "0.54187703", "0.54187703", "0.5416829", "0.5414286", "0.5409494", "0.5409494", "0.5405647", "0.540422", "0.53993595", "0.53993595", "0.53993595", "0.53924936", "0.5384735", "0.5384735", "0.5384735", "0.5371589", "0.53687215", "0.53583735", "0.53521013", "0.5350611", "0.53448755", "0.5338643", "0.5336105", "0.5335099", "0.53142923", "0.53085387", "0.5306688", "0.5306688", "0.5306688", "0.5306688", "0.5306688", "0.5306688", "0.5306688", "0.5304009", "0.5298468", "0.52955514", "0.52928394", "0.5291401", "0.5290229", "0.5283468", "0.5283468", "0.5283468", "0.5275545", "0.5258947", "0.5250197", "0.52491367", "0.524631", "0.5242513", "0.5238186", "0.5238186", "0.52214557", "0.5208786" ]
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static drinkOrder newInstance(String param1, String param2) { drinkOrder fragment = new drinkOrder(); Bundle args = new Bundle(); args.putString(ARG_PARAM1, param1); args.putString(ARG_PARAM2, param2); fragment.setArguments(args); return fragment; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static FragmentTousWanted newInstance() {\n FragmentTousWanted fragment = new FragmentTousWanted();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "protected abstract Fragment createFragment();", "public void createFragment() {\n\n }", "@Override\n protected Fragment createFragment() {\n Intent intent = getIntent();\n\n long id = intent.getLongExtra(MovieDetailFragment.EXTRA_ID, -1);\n return MovieDetailFragment.newInstance(id);\n }", "public CuartoFragment() {\n }", "public StintFragment() {\n }", "public ExploreFragment() {\n\n }", "public RickAndMortyFragment() {\n }", "public FragmentMy() {\n }", "public LogFragment() {\n }", "public FeedFragment() {\n }", "public HistoryFragment() {\n }", "public HistoryFragment() {\n }", "public static MyFeedFragment newInstance() {\n return new MyFeedFragment();\n }", "public WkfFragment() {\n }", "public static ScheduleFragment newInstance() {\n ScheduleFragment fragment = new ScheduleFragment();\n Bundle args = new Bundle();\n //args.putString(ARG_PARAM1, param1);\n //args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment(){}", "public WelcomeFragment() {}", "public static ForumFragment newInstance() {\n ForumFragment fragment = new ForumFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n\n return fragment;\n }", "public static NotificationFragment newInstance() {\n NotificationFragment fragment = new NotificationFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public progFragment() {\n }", "public HeaderFragment() {}", "public static RouteFragment newInstance() {\n RouteFragment fragment = new RouteFragment();\n Bundle args = new Bundle();\n //fragment.setArguments(args);\n return fragment;\n }", "public EmployeeFragment() {\n }", "public Fragment_Tutorial() {}", "public NewShopFragment() {\n }", "public FavoriteFragment() {\n }", "public static MyCourseFragment newInstance() {\n MyCourseFragment fragment = new MyCourseFragment();\r\n// fragment.setArguments(args);\r\n return fragment;\r\n }", "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static ReservationFragment newInstance() {\n\n ReservationFragment _fragment = new ReservationFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return _fragment;\n }", "public CreateEventFragment() {\n // Required empty public constructor\n }", "public static RecipeListFragment newInstance() {\n RecipeListFragment fragment = new RecipeListFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n\t\treturn new ScreenSlidePageFragment();\n\t}", "public NoteActivityFragment() {\n }", "public static WeekViewFragment newInstance(int param1, int param2) {\n WeekViewFragment fragment = new WeekViewFragment();\n //WeekViewFragment 객체 생성\n Bundle args = new Bundle();\n //Bundle 객체 생성\n args.putInt(ARG_PARAM1, param1);\n //ARG_PARAM1에 param1의 정수값 넣어서 args에 저장\n args.putInt(ARG_PARAM2, param2);\n //ARG_PARAM2에 param2의 정수값 넣어서 args에 저장\n fragment.setArguments(args);\n //args를 매개변수로 한 setArguments() 메소드 수행하여 fragment에 저장\n return fragment; //fragment 반환\n }", "public static Fragment0 newInstance(String param1, String param2) {\n Fragment0 fragment = new Fragment0();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static QueenBEmbassyF newInstance() {\n QueenBEmbassyF fragment = new QueenBEmbassyF();\n //the way to pass arguments between fragments\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "public static Fragment newInstance() {\n StatisticsFragment fragment = new StatisticsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public EventHistoryFragment() {\n\t}", "public HomeFragment() {}", "public PeopleFragment() {\n // Required empty public constructor\n }", "public static FeedFragment newInstance() {\n FeedFragment fragment = new FeedFragment();\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public VantaggiFragment() {\n // Required empty public constructor\n }", "public AddressDetailFragment() {\n }", "public ArticleDetailFragment() { }", "public static DropboxMainFrag newInstance() {\n DropboxMainFrag fragment = new DropboxMainFrag();\n // set arguments in Bundle\n return fragment;\n }", "public RegisterFragment() {\n }", "public EmailFragment() {\n }", "public static CommentFragment newInstance() {\n CommentFragment fragment = new CommentFragment();\n\n return fragment;\n }", "public static FragmentComida newInstance(String param1) {\n FragmentComida fragment = new FragmentComida();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static ParqueosFragment newInstance() {\n ParqueosFragment fragment = new ParqueosFragment();\n return fragment;\n }", "public ForecastFragment() {\n }", "public FExDetailFragment() {\n \t}", "public static AddressFragment newInstance(String param1) {\n AddressFragment fragment = new AddressFragment();\n\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n\n return fragment;\n }", "public TripNoteFragment() {\n }", "public ItemFragment() {\n }", "public NoteListFragment() {\n }", "public CreatePatientFragment() {\n\n }", "public DisplayFragment() {\n\n }", "public static frag4_viewcompliment newInstance(String param1, String param2) {\r\n frag4_viewcompliment fragment = new frag4_viewcompliment();\r\n Bundle args = new Bundle();\r\n args.putString(ARG_PARAM1, param1);\r\n args.putString(ARG_PARAM2, param2);\r\n fragment.setArguments(args);\r\n return fragment;\r\n }", "public static fragment_profile newInstance(String param1, String param2) {\n fragment_profile fragment = new fragment_profile();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public static MainFragment newInstance() {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public ProfileFragment() {\n\n }", "public BackEndFragment() {\n }", "public CustomerFragment() {\n }", "public static FriendsFragment newInstance(int sectionNumber) {\n \tFriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public ArticleDetailFragment() {\n }", "public static Fragment newInstance() {\n return new SettingsFragment();\n }", "public SummaryFragment newInstance()\n {\n return new SummaryFragment();\n }", "public PeersFragment() {\n }", "public TagsFragment() {\n }", "public static ProfileFragment newInstance() {\n ProfileFragment fragment = new ProfileFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, \"\");\n args.putString(ARG_PARAM2, \"\");\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance() {\n FriendsFragment fragment = new FriendsFragment();\n\n return fragment;\n }", "public HomeSectionFragment() {\n\t}", "public static FirstFragment newInstance(String text) {\n\n FirstFragment f = new FirstFragment();\n Bundle b = new Bundle();\n b.putString(\"msg\", text);\n\n f.setArguments(b);\n\n return f;\n }", "public PersonDetailFragment() {\r\n }", "public static LogFragment newInstance(Bundle params) {\n LogFragment fragment = new LogFragment();\n fragment.setArguments(params);\n return fragment;\n }", "public RegisterFragment() {\n // Required empty public constructor\n }", "public VehicleFragment() {\r\n }", "public static Fine newInstance(String param1, String param2) {\n Fine fragment = new Fine();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static FriendsFragment newInstance(String param1, String param2) {\n FriendsFragment fragment = new FriendsFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "public static ChangesViewFragment newInstance() {\n\t\tChangesViewFragment fragment = new ChangesViewFragment();\n\t\tBundle args = new Bundle();\n\t\targs.putInt(HomeViewActivity.ARG_SECTION_NUMBER, 2);\n\t\tfragment.setArguments(args);\n\t\treturn fragment;\n\t}", "public static NoteFragment newInstance(String param1, String param2) {\n NoteFragment fragment = new NoteFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(Context context) {\n MainFragment fragment = new MainFragment();\n if(context != null)\n fragment.setVariables(context);\n return fragment;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "public static MoneyLogFragment newInstance() {\n MoneyLogFragment fragment = new MoneyLogFragment();\n return fragment;\n }", "public static ForecastFragment newInstance() {\n\n //Create new fragment\n ForecastFragment frag = new ForecastFragment();\n return(frag);\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MainFragment newInstance(String param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyTaskFragment newInstance(String param1) {\n MyTaskFragment fragment = new MyTaskFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "public static MyProfileFragment newInstance(String param1, String param2) {\n MyProfileFragment fragment = new MyProfileFragment();\n return fragment;\n }", "public static MainFragment newInstance(int param1, String param2) {\n MainFragment fragment = new MainFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }", "public PlaylistFragment() {\n }", "public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }", "public static SurvivorIncidentFormFragment newInstance(String param1, String param2) {\n// SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n// return fragment;\n\n SurvivorIncidentFormFragment fragment = new SurvivorIncidentFormFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n\n\n }", "public static PersonalFragment newInstance(String param1, String param2) {\n PersonalFragment fragment = new PersonalFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n return fragment;\n }" ]
[ "0.7259329", "0.72331375", "0.71140355", "0.69909847", "0.69902235", "0.6834592", "0.683074", "0.68134046", "0.6801526", "0.6801054", "0.67653185", "0.6739714", "0.6739714", "0.6727412", "0.6717231", "0.6705855", "0.6692112", "0.6691661", "0.66869426", "0.66606814", "0.6646188", "0.66410166", "0.6640725", "0.6634425", "0.66188246", "0.66140765", "0.6608169", "0.66045964", "0.65977716", "0.6592119", "0.659137", "0.65910816", "0.65830594", "0.65786606", "0.6562876", "0.65607685", "0.6557126", "0.65513307", "0.65510213", "0.65431285", "0.6540448", "0.65336084", "0.6532555", "0.6528302", "0.6524409", "0.652328", "0.6523149", "0.6516528", "0.65049976", "0.6497274", "0.6497235", "0.64949715", "0.64944136", "0.6484968", "0.6484214", "0.64805835", "0.64784926", "0.64755154", "0.64710265", "0.6466466", "0.6457089", "0.645606", "0.6454554", "0.6452161", "0.64520335", "0.6450325", "0.64488834", "0.6446765", "0.64430225", "0.64430225", "0.64430225", "0.64420956", "0.6441306", "0.64411277", "0.6438451", "0.64345145", "0.64289486", "0.64287597", "0.6423755", "0.64193285", "0.6418699", "0.6414679", "0.6412867", "0.6402168", "0.6400724", "0.6395624", "0.6395109", "0.6391252", "0.63891554", "0.63835025", "0.63788056", "0.63751805", "0.63751805", "0.63751805", "0.6374796", "0.63653135", "0.6364529", "0.6360922", "0.63538784", "0.6351111", "0.635067" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View rootView = inflater.inflate(R.layout.fragment_drink_order, container, false); final RadioGroup drinks = (RadioGroup) rootView.findViewById(R.id.drinks); final ImageView image = (ImageView) rootView.findViewById(R.id.imageView); drinks.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { @Override public void onCheckedChanged(RadioGroup group, int checkedId) { //boolean checked = ((RadioButton) view).isChecked(); Log.v("reached","on click"); // ArrayAdapter<String> myadapter= new ArrayAdapter<String>(getContext(),android.R.layout.simple_list_item_1,WORDS); //Use myadapter as input to list //drinks.setAdapter(myadapter); // Check which radio button was clicked switch(checkedId) { case R.id.coffee: //if (checked) Log.v("coffee image","is set"); image.setImageResource(R.drawable.coffee); word = "Coffee..................................................................$2"; break; case R.id.coke: //if (checked) Log.v("coke image","is set"); image.setImageResource(R.drawable.coke); word = "Coke.....................................................................$3"; break; case R.id.tea: //if (checked) image.setImageResource(R.drawable.tea); word = "Tea.......................................................................$2"; break; case R.id.water: //if (checked) image.setImageResource(R.drawable.water); word = "Water....................................................................$1"; break; } //Toast.makeText(getContext(), word, Toast.LENGTH_SHORT).show(); overviewOrder fragment = (overviewOrder) getFragmentManager().findFragmentById(R.id.frag_main3); if(fragment!=null) { fragment.setText(word); } } }); //ArrayAdapter<String> myadapter= new ArrayAdapter<String>(getContext(),android.R.layout.simple_list_item_1,WORDS); //Use myadapter as input to list //drinks.setAdapter(myadapter); Log.v("reached","on create view"); return rootView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }", "protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }", "@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }" ]
[ "0.6739604", "0.67235583", "0.6721706", "0.6698254", "0.6691869", "0.6687986", "0.66869223", "0.6684548", "0.66766286", "0.6674615", "0.66654444", "0.66654384", "0.6664403", "0.66596216", "0.6653321", "0.6647136", "0.66423255", "0.66388357", "0.6637491", "0.6634193", "0.6625158", "0.66195583", "0.66164845", "0.6608733", "0.6596594", "0.65928894", "0.6585293", "0.65842897", "0.65730995", "0.6571248", "0.6569152", "0.65689117", "0.656853", "0.6566686", "0.65652984", "0.6553419", "0.65525705", "0.65432084", "0.6542382", "0.65411425", "0.6538022", "0.65366334", "0.65355957", "0.6535043", "0.65329415", "0.65311074", "0.65310687", "0.6528645", "0.65277404", "0.6525902", "0.6524516", "0.6524048", "0.65232015", "0.65224624", "0.65185034", "0.65130377", "0.6512968", "0.65122765", "0.65116245", "0.65106046", "0.65103024", "0.6509013", "0.65088093", "0.6508651", "0.6508225", "0.6504662", "0.650149", "0.65011525", "0.6500686", "0.64974767", "0.64935696", "0.6492234", "0.6490034", "0.6487609", "0.6487216", "0.64872116", "0.6486594", "0.64861935", "0.6486018", "0.6484269", "0.648366", "0.6481476", "0.6481086", "0.6480985", "0.6480396", "0.64797544", "0.647696", "0.64758915", "0.6475649", "0.6474114", "0.6474004", "0.6470706", "0.6470275", "0.64702207", "0.6470039", "0.6467449", "0.646602", "0.6462256", "0.64617974", "0.6461681", "0.6461214" ]
0.0
-1
boolean checked = ((RadioButton) view).isChecked();
@Override public void onCheckedChanged(RadioGroup group, int checkedId) { Log.v("reached","on click"); // ArrayAdapter<String> myadapter= new ArrayAdapter<String>(getContext(),android.R.layout.simple_list_item_1,WORDS); //Use myadapter as input to list //drinks.setAdapter(myadapter); // Check which radio button was clicked switch(checkedId) { case R.id.coffee: //if (checked) Log.v("coffee image","is set"); image.setImageResource(R.drawable.coffee); word = "Coffee..................................................................$2"; break; case R.id.coke: //if (checked) Log.v("coke image","is set"); image.setImageResource(R.drawable.coke); word = "Coke.....................................................................$3"; break; case R.id.tea: //if (checked) image.setImageResource(R.drawable.tea); word = "Tea.......................................................................$2"; break; case R.id.water: //if (checked) image.setImageResource(R.drawable.water); word = "Water....................................................................$1"; break; } //Toast.makeText(getContext(), word, Toast.LENGTH_SHORT).show(); overviewOrder fragment = (overviewOrder) getFragmentManager().findFragmentById(R.id.frag_main3); if(fragment!=null) { fragment.setText(word); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_male:\n if (checked)\n break;\n case R.id.radio_female:\n if (checked)\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.exercise:\n if (checked)\n // all of exercise\n break;\n case R.id.repose:\n if (checked)\n // all of repose\n break;\n case R.id.work:\n if (checked)\n // all of work\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.developer:\n if (checked)\n changeSpinnerOptions(\"Developer\");\n break;\n case R.id.tester:\n if (checked)\n changeSpinnerOptions(\"Tester\");\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.decimal1:\n if (checked)\n selected1=\"decimal1\";\n toDecimal();\n Log.i(\"check\",\"checking decimal1\");\n break;\n case R.id.binary1:\n if (checked)\n selected1=\"binary1\";\n toDecimal();\n break;\n case R.id.useless1:\n if (checked)\n selected1=\"none\";\n toDecimal();\n break;\n }\n }", "@Override \r\n public void onCheckedChanged(CompoundButton buttonView, \r\n boolean isChecked) {\n if(isChecked){ \r\n Log.d(TAG, \"Selected\");\r\n }else{ \r\n Log.d(TAG, \"NO Selected\");\r\n } \r\n }", "public void onRadioButtonClick(View view) {\n\n boolean checked = ((RadioButton) view).isChecked();\n\n // hacemos un case con lo que ocurre cada vez que pulsemos un botón\n\n switch(view.getId()) {\n case R.id.rb_Physical:\n if (checked)\n jobMode = \"Physical\";\n rbVirtual.setChecked(false);\n break;\n case R.id.rb_Virtual:\n if (checked)\n jobMode = \"Virtual\";\n rbPhysical.setChecked(false);\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_male:\n if (checked)\n gender=\"male\";\n break;\n case R.id.radio_female:\n if (checked)\n gender=\"female\";\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n\t boolean checked = ((RadioButton) view).isChecked();\n\t \n\t switch(view.getId()) {\n\t case R.id.continous:\n\t if (checked)\n\t \tusecase = 1; \n\t break;\n\t case R.id.segmented:\n\t if (checked)\n\t \tusecase = 0;\n\t break;\n\t }\n\t}", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n TextView textView=(TextView)findViewById(R.id.textView3);\n // Check which radio button was clicked\u000b\n switch(view.getId()) {\n case R.id.radioButton:\n if (checked)\n textView.setText(\"你的性别为男\");\n break;\n case R.id.radioButton1:\n if (checked)\n textView.setText(\"你的性别为女\");\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.coh_RadioButton:\n if (checked)\n paymentmode = \"coh\";\n flage =1;\n break;\n case R.id.netBank_RadioButton:\n if (checked)\n paymentmode = \"netbanking\";\n flage =1;\n break;\n case R.id.card_RadioButton:\n if (checked)\n paymentmode = \"card\";\n flage =1;\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.rb_male:\n if (checked)\n Gender=\"Male\";\n rb_female.setChecked(false);\n break;\n case R.id.rb_female:\n if (checked)\n Gender=\"Female\";\n rb_male.setChecked(false);\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radioButton:\n if (checked) {\n gender=\"male\";\n break;\n }\n case R.id.radioButton2:\n if (checked) {\n gender=\"female\";\n break;\n }\n }\n }", "@Override\n\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\n\t}", "@Override\n\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\n\t}", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_administrative:\n if (checked)\n KeyID=0;\n break;\n case R.id.radio_guest:\n if (checked)\n KeyID=1;\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_facturacion:\n if (checked)\n // Pirates are the best\n esGarantia=false;\n break;\n case R.id.radio_garantias:\n if (checked)\n // Ninjas rule\n esGarantia=true;\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n\t\tboolean checked = ((RadioButton) view).isChecked();\r\n\r\n\t\t// Check which radio button was clicked\r\n\t\tswitch (view.getId()) {\r\n\t\tcase R.id.rBtnF:\r\n\t\t\tif (checked)\r\n\t\t\t\tnewSex = 'F';\r\n\t\t\tbreak;\r\n\t\tcase R.id.rBtnM:\r\n\t\t\tif (checked)\r\n\t\t\t\tnewSex = 'M';\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\n public void onCheckedChanged(CompoundButton buttonView,\n boolean isChecked) {\n\n\n\n }", "@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n\n } else {\n\n }\n }", "@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n }", "boolean getIsChecked();", "public void onRadioButtonClicked1(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button1:\n if (checked)\n\n weeklyInformation.radiobutton1(radioButton1.getText().toString());\n\n break;\n case R.id.R_button2:\n if (checked)\n\n weeklyInformation.radiobutton2(radioButton2.getText().toString());\n\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n // Is the button now checked?\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.radioNeo:\n if (checked)\n crust = \"Neapolitan\";\n break;\n case R.id.radioNY:\n if (checked)\n crust = \"New York Style\";\n break;\n case R.id.radioPan:\n if (checked)\n crust = \"Pan\";\n break;\n case R.id.radioDeep:\n if (checked)\n crust = \"Deep Dish\";\n break;\n }\n }", "@Override\n public void onCheckedChanged(CompoundButton buttonView,\n boolean isChecked) {\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_sat:\n if (checked) {\n LinearLayout time_options;\n time_options = (LinearLayout) findViewById(R.id.choose_time);\n time_options.setVisibility(View.VISIBLE);\n }\n\n break;\n case R.id.radio_fri:\n if (checked)\n // Ninjas rule\n break;\n case R.id.radio_eleven:\n if (checked) {\n Button offerHelp;\n offerHelp = (Button) findViewById(R.id.offer_help);\n offerHelp.setEnabled(true);\n offerHelp.setBackgroundResource(R.drawable.primary_button);\n }\n break;\n case R.id.radio_five:\n if (checked)\n // Ninjas rule\n break;\n }\n }", "public void onRadioButtonClicked2(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button3:\n if (checked)\n\n weeklyInformation.radiobutton3(radioButton3.getText().toString());\n\n break;\n case R.id.R_button4:\n if (checked)\n\n weeklyInformation.radiobutton4(radioButton4.getText().toString());\n\n break;\n }\n }", "public void onCheckedChanged(RadioGroup group, int checkedId) {\n\n if (checkedId == R.id.sport) {\n mychoice = (RadioButton) findViewById(R.id.sport);\n text=\"sport\";\n Toast.makeText(getApplicationContext(), \"choice: sport\",\n\n Toast.LENGTH_SHORT).show();\n\n } else if (checkedId == R.id.school) {\n mychoice = (RadioButton) findViewById(R.id.school);\n text=\"school\";\n Toast.makeText(getApplicationContext(), \"choice: school\",\n\n Toast.LENGTH_SHORT).show();\n\n } else if (checkedId == R.id.work) {\n mychoice = (RadioButton) findViewById(R.id.work);\n text=\"work\";\n Toast.makeText(getApplicationContext(), \"choice: work\",\n\n Toast.LENGTH_SHORT).show();\n\n } else if (checkedId == R.id.other) {\n text=\"other\";\n Toast.makeText(getApplicationContext(), \"choice: other\",\n\n Toast.LENGTH_SHORT).show();\n\n }\n\n\n }", "public void onRadioButtonClicked(View view) {\n // Is the button now checked?\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.radio_male:\n if (checked) {\n gender=0;\n break;\n }\n case R.id.radio_female:\n if (checked) {\n gender = 1;\n break;\n }\n }\n\n Context context = getApplicationContext();\n CharSequence text = \"\"+gender+\"\";\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.radio_male:\n if (checked)\n user.setGender(\"male\");\n break;\n case R.id.radio_female:\n if (checked)\n user.setGender(\"female\");\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.radioButton2:\n if (checked)\n cause = \"struct_fire\";\n break;\n case R.id.radioButton3:\n if (checked)\n\n cause = \"hazmat\";\n break;\n case R.id.radioButton4:\n if (checked)\n // Ninjas rule\n cause = \"grass_fire\";\n break;\n case R.id.radioButton5:\n if (checked)\n // Ninjas rule\n cause = \"trash_fire\";\n break;\n case R.id.radioButton6:\n if (checked)\n // Ninjas rule\n cause = \"false_alarm\";\n break;\n case R.id.radioButton7:\n if (checked)\n // Ninjas rule\n cause = \"other_fire\";\n break;\n\n\n\n\n\n }\n }", "public Boolean isChecked(){\n return aSwitch.isChecked();\n }", "boolean isChecked();", "boolean isChecked();", "@Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.gender_male:\n if (checked) mGenderValue = 0;\n break;\n\n case R.id.gender_female:\n if (checked) mGenderValue = 1;\n break;\n\n case R.id.gender_other:\n if (checked) mGenderValue = 2;\n break;\n }\n\n if (mGenderValue > 0) mGenderLabel.setError(null);\n }", "public void onRadioButtonClicked(View view) {\n\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.morning:\n if (checked)\n hourOfDay = 7;\n break;\n case R.id.afternoon:\n if (checked)\n hourOfDay = 15;\n break;\n case R.id.night:\n if (checked)\n hourOfDay = 23;\n break;\n }\n }", "@Override\n\n // The flow will come here when\n // any of the radio buttons in the radioGroup\n // has been clicked\n\n // Check which radio button has been clicked\n public void onCheckedChanged(RadioGroup group,\n int checkedId) {\n RadioButton\n radioButton\n = (RadioButton) group\n .findViewById(checkedId);\n }", "public void onRadioButtonClicked(View v) {\n boolean checked = ((RadioButton) v).isChecked();\n\n // Check which radio button was clicked\n switch(v.getId()) {\n case R.id.radioSexoF:\n if (checked)\n sexo = Animal.SEXO_FEMEA;\n break;\n case R.id.radioSexoM:\n if (checked)\n sexo = Animal.SEXO_MACHO;\n break;\n }\n }", "public void onRadioButtonClicked2(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.decimal2:\n if (checked)\n selected2=\"decimal2\";\n toDecimal();\n Log.i(\"check\",\"checking decimal2\");\n break;\n case R.id.binary2:\n if (checked)\n selected2=\"binary2\";\n toDecimal();\n break;\n case R.id.useless2:\n if (checked)\n selected2=\"none\";\n toDecimal();\n break;\n }\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n showProgress(true);\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.personal:\n if (checked)\n reporttpye=1;\n break;\n case R.id.firstcntr:\n if (checked)\n reporttpye=2;\n break;\n case R.id.finalcntr:\n if (checked)\n reporttpye=3;\n break;\n }\n mAuthTask = new FilterActivity.FilterInitTask(reporttpye);\n mAuthTask.execute((Matter[]) null);\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n mySharedEditor = myPreferences.edit();\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.easy:\n if (checked) {\n mySharedEditor.putString(\"difficulty\", \"easy\");\n mySharedEditor.apply();\n }\n break;\n case R.id.medium:\n if (checked) {\n mySharedEditor.putString(\"difficulty\", \"medium\");\n mySharedEditor.apply();\n }\n break;\n case R.id.hard:\n if(checked) {\n mySharedEditor.putString(\"difficulty\", \"hard\");\n mySharedEditor.apply();\n }\n break;\n }\n }", "@Override\n public void onCheckedChanged(CompoundButton buttonView,\n boolean isChecked) {\n LoginActivity.this.isChecked=isChecked;\n if(isChecked){\n\n }else{\n\n }\n }", "public void onRadioButtonClicked4(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button7:\n if (checked)\n\n weeklyInformation.radiobutton7(radioButton7.getText().toString());\n\n break;\n case R.id.R_button8:\n if (checked)\n\n weeklyInformation.radiobutton8(radioButton8.getText().toString());\n\n break;\n }\n }", "public void onRadioButtonGenderClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.radioButton_male:\n if (checked)\n genderOfBaby = \"boy\";\n break;\n case R.id.radioButton_female:\n if (checked)\n genderOfBaby = \"girl\";\n break;\n }\n }", "public void onRadioButtonSkinClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch (view.getId()) {\n case R.id.radioButton_light:\n if (checked)\n skinOfBaby = \"light\";\n break;\n case R.id.radioButton_dark:\n if (checked)\n skinOfBaby = \"dark\";\n break;\n }\n }", "public void onRadioButtonClicked7(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button13:\n if (checked)\n\n weeklyInformation.radiobutton13(radioButton13.getText().toString());\n\n break;\n case R.id.R_button14:\n if (checked)\n\n weeklyInformation.radiobutton14(radioButton14.getText().toString());\n\n break;\n }\n }", "public void checkBtn(View v){\n int id = radioGroup.getCheckedRadioButtonId();\n\n radioButton= findViewById(id);\n estatSTR=radioButton.getText().toString();\n //Toast.makeText(this, \"select: \"+ radioButton.getText(),Toast.LENGTH_SHORT).show();\n txtEstat.setText(\"Estat com a \"+estatSTR);\n }", "@Override\n\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\tif (buttonView == rdMale) {\n\t\t\trdMale.setChecked(isChecked);\n\t\t\trdFemale.setChecked(!isChecked);\n\n\t\t} else if (buttonView == rdFemale) {\n\t\t\trdMale.setChecked(!isChecked);\n\t\t\trdFemale.setChecked(isChecked);\n\t\t}\n\t}", "private void onClickRadioButton() {\n radioGroupChoice.setOnCheckedChangeListener(this);\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n RadioButton rEnCours=(RadioButton)findViewById(checkedId);\n\n Toast.makeText(Circonstance_Activity.this,rEnCours.getText(), Toast.LENGTH_SHORT).show();\n }", "@Test\n public void onMaleRBTNClicked(){\n onView(withId(R.id.maleRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.femaleRBTN)).check(matches(isNotChecked()));\n }", "public void onRadioButtonClicked6(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button11:\n if (checked)\n\n weeklyInformation.radiobutton11(radioButton11.getText().toString());\n\n break;\n case R.id.R_button12:\n if (checked)\n\n weeklyInformation.radiobutton12(radioButton12.getText().toString());\n\n break;\n }\n }", "public void genderClick(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.rbtnMale:\n if (checked)\n selectedGen = \"Male\";\n break;\n case R.id.rbtnFemale:\n if (checked)\n selectedGen = \"Female\";\n break;\n }\n }", "@Override\n public void onCheckedChanged(RadioGroup radioGroup, @IdRes int checked) {\n }", "@Override\n\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\t\n\t}", "public interface CheckedListener {\n void onChecked(View v, boolean checked);\n}", "public void onRadioButtonClicked3(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button5:\n if (checked)\n\n weeklyInformation.radiobutton5(radioButton5.getText().toString());\n\n break;\n case R.id.R_button6:\n if (checked)\n\n weeklyInformation.radiobutton6(radioButton6.getText().toString());\n\n break;\n }\n }", "public void questionThreeRadioButtons(View view){\n // Is the button now checked?\n boolean checked = ((RadioButton) view).isChecked();\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.question_3_radio_button_1:\n if (checked)\n break;\n case R.id.question_3_radio_button_2:\n if (checked)\n break;\n case R.id.question_3_radio_button_3:\n if (checked)\n break;\n case R.id.question_3_radio_button_4:\n if (checked)\n break;\n }\n }", "@Override\n\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\tif(isChecked){\n \t\t\tswitch (buttonView.getId()) {\n \t\t\tcase R.id.normalmapradio:\n \t\t\t\tcheckedmap=normalmap;\n \t\t\t\t\n \t\t\t\tbreak;\n \t\t\tcase R.id.satelliteradio:\n \t\t\t\tcheckedmap=satellitemap;\n \t\t\t\t\n \t\t\t\tbreak;\n \t\t\tcase R.id.bdnormalmap:\n \t\t\t\tcheckedmap=bdnormalmap;\n \t\t\t\t\n \t\t\t\tbreak;\n \t\t\tcase R.id.bdsatellitemap:\n \t\t\t\tcheckedmap=bdsatellite;\n \t\t\t\t\n \t\t\t\tbreak;\n \t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\n\t}", "public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n\n // Set the appropriate text for the Checkbox\n cb.setText(\"This checkbox is: checked\");\n\n // Log checked message\n Log.i(TAG, \"onCheckedChanged: This checkbox is: checked\");\n\n } else { // If the Checkbox isn't checked ...\n\n // Set the appropriate text for the Checkbox\n cb.setText(\"This checkbox is: unchecked\");\n\n // Log unchecked message\n Log.i(TAG, \"onCheckedChanged: This checkbox is: unchecked\");\n\n }\n }", "private boolean checkSelected() {\n\t\tRadioButton c1 = (RadioButton)findViewById(R.id.ch_01Setting);\n\t\tRadioButton c2 = (RadioButton)findViewById(R.id.ch_02Setting);\n\t\tRadioButton c3 = (RadioButton)findViewById(R.id.ch_03Setting);\n\t\tRadioButton c4 = (RadioButton)findViewById(R.id.ch_04Setting);\n\t\tRadioButton c5 = (RadioButton)findViewById(R.id.ch_05Setting);\n\t\tRadioButton c6 = (RadioButton)findViewById(R.id.ch_06Setting);\n\t\tRadioButton c061 = (RadioButton)findViewById(R.id.ch_061Setting);\n\t\tRadioButton c7 = (RadioButton)findViewById(R.id.ch_07Setting);\n\t\tRadioButton c8 = (RadioButton)findViewById(R.id.ch_08Setting);\n\t\tRadioButton c9 = (RadioButton)findViewById(R.id.ch_09Setting);\n\t\tRadioButton c10 = (RadioButton)findViewById(R.id.ch_10Setting);\n\t\tRadioButton c11 = (RadioButton)findViewById(R.id.ch_11Setting);\n\t\tRadioButton c111 = (RadioButton)findViewById(R.id.ch_111Setting);\n\t\tRadioButton c12 = (RadioButton)findViewById(R.id.ch_12Setting);\n\t\tRadioButton c13 = (RadioButton)findViewById(R.id.ch_13Setting);\n\t\tRadioButton c131 = (RadioButton)findViewById(R.id.ch_131Setting);\n\t\tRadioButton c14 = (RadioButton)findViewById(R.id.ch_14Setting);\n\t\tRadioButton c15 = (RadioButton)findViewById(R.id.ch_15Setting);\n\t\tRadioButton c16 = (RadioButton)findViewById(R.id.ch_16Setting);\n\t\tRadioButton c17 = (RadioButton)findViewById(R.id.ch_17Setting);\n\t\tRadioButton c18 = (RadioButton)findViewById(R.id.ch_18Setting);\n\t\tRadioButton c19 = (RadioButton)findViewById(R.id.ch_19Setting);\n\t\tRadioButton c20 = (RadioButton)findViewById(R.id.ch_20Setting);\n\t\tRadioButton c21 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c22 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c23 = (RadioButton)findViewById(R.id.ch_23Setting);\n\t\tRadioButton c24 = (RadioButton)findViewById(R.id.ch_24Setting);\n\t\tRadioButton c25 = (RadioButton)findViewById(R.id.ch_25Setting);\n\t\tRadioButton c26 = (RadioButton)findViewById(R.id.ch_26Setting);\n\t\tRadioButton c27 = (RadioButton)findViewById(R.id.ch_27Setting);\n\t\tRadioButton c28 = (RadioButton)findViewById(R.id.ch_28Setting);\n\t\tRadioButton c29 = (RadioButton)findViewById(R.id.ch_29Setting);\n\t\tRadioButton c291 = (RadioButton)findViewById(R.id.ch_291Setting);\n\t\tRadioButton c30 = (RadioButton)findViewById(R.id.ch_30Setting);\n\t\tRadioButton c31 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c32 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c321 = (RadioButton)findViewById(R.id.ch_321Setting);\n\t\tRadioButton c322 = (RadioButton)findViewById(R.id.ch_322Setting);\n\t\t\t\n\t\t\n\t\t\n\t\treturn (c1.isChecked() || c2.isChecked() || c3.isChecked() || \n\t\t\t\tc4.isChecked() || c5.isChecked() || c6.isChecked() || \n\t\t\t\tc061.isChecked() || c7.isChecked() || c8.isChecked() ||\n\t\t\t\tc9.isChecked() || c10.isChecked() || c11.isChecked() ||\t\n\t\t\t\tc111.isChecked() ||\tc12.isChecked() || c13.isChecked() || \n\t\t\t\tc131.isChecked() ||\tc14.isChecked() || c15.isChecked() || \n\t\t\t\tc16.isChecked() || c17.isChecked() || c18.isChecked() || \n\t\t\t\tc19.isChecked() || c20.isChecked() || c21.isChecked() || \n\t\t\t\tc22.isChecked() || c23.isChecked() || c24.isChecked() || \n\t\t\t\tc25.isChecked() || c26.isChecked() || c27.isChecked() || \n\t\t\t\tc28.isChecked() || c29.isChecked() || c291.isChecked() ||\n\t\t\t\tc30.isChecked() || c31.isChecked() || c32.isChecked() || \n\t\t\t\tc321.isChecked() || c322.isChecked());\n\t}", "public void onRadioButtonClicked5(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.R_button9:\n if (checked)\n\n weeklyInformation.radiobutton9(radioButton9.getText().toString());\n\n break;\n case R.id.R_button10:\n if (checked)\n\n weeklyInformation.radiobutton10(radioButton10.getText().toString());\n\n break;\n }\n }", "@Test\n public void onFemaleRBTNClicked(){\n onView(withId(R.id.femaleRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.maleRBTN)).check(matches(isNotChecked()));\n }", "public void onRadioClick(View view)\n {\n boolean checked = ((RadioButton) view).isChecked();\n switch (view.getId())\n {\n case R.id.piscesRadio:\n if(checked) {\n\n body.setText(info.pisBody());\n water.setImageResource(R.mipmap.pisces_sign);\n\n\n\n cancerButton.setChecked(false);\n scorpioButton.setChecked(false);\n\n Toast.makeText(WaterActivity.this,\n \"Erm\", Toast.LENGTH_SHORT).show();\n\n\n\n\n }\n else\n {\n\n body.setEnabled(false);\n\n\n }\n break;\n\n case R.id.cancerRadio:\n if(checked) {\n\n body.setText(info.cancerBody());\n water.setImageResource(R.mipmap.cancer_sign);\n\n\n\n piscesButton.setChecked(false);\n scorpioButton.setChecked(false);\n\n Toast.makeText(WaterActivity.this,\n \"Meh\", Toast.LENGTH_SHORT).show();\n\n }\n else\n {\n\n body.setEnabled(false);\n\n\n }\n break;\n case R.id.scorpioRadio:\n if(checked) {\n\n body.setText(info.scorpioBody());\n water.setImageResource(R.mipmap.scorpio_sign);\n\n\n\n piscesButton.setChecked(false);\n cancerButton.setChecked(false);\n\n Toast.makeText(WaterActivity.this,\n \"Yikes\", Toast.LENGTH_SHORT).show();\n\n }\n else\n {\n\n body.setEnabled(false);\n\n\n }\n break;\n\n\n\n\n }\n\n\n }", "void onCheckedChanged(FloatingActionButton fabView, boolean isChecked);", "public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n answer = isChecked;\n Log.d(\"Notification-debug\", answer+\"\");\n }", "@Override\n\t\tpublic void onCheckedChanged(CompoundButton buttonView,\n\t\t\t\tboolean isChecked) {\n\n\t\t\tmCheckStates.put((Integer) buttonView.getTag(), isChecked);\n\t\t}", "@Override\r\n\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\t\tContainer element = (Container) viewHolder.ckBox.getTag();\n\t\t\t\t\t\telement.setSelected(buttonView.isChecked());\n\t\t\t\t\t}", "public void onRadioButtonClick(View v){\n if (internalBtn.isChecked()){\n field1.setVisibility(View.VISIBLE);\n field2.setVisibility(View.VISIBLE);\n field3.setVisibility(View.GONE);\n }\n else if (externalBtn.isChecked()){\n field1.setVisibility(View.GONE);\n field2.setVisibility(View.VISIBLE);\n field3.setVisibility(View.VISIBLE);\n }\n else if (depositBtn.isChecked()){\n field1.setVisibility(View.VISIBLE);\n field2.setVisibility(View.GONE);\n field3.setVisibility(View.GONE);\n }\n }", "@Override\n public void onClick(View v) {\n RadioGroup rg = (RadioGroup) view.findViewById(R.id.choicesGroup);\n View rb = rg.findViewById(rg.getCheckedRadioButtonId());\n quizActivity.showAnswer(rg.indexOfChild(rb));\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n int childCount = group.getChildCount();\n for (int x = 0; x < childCount; x++) {\n RadioButton btn = (RadioButton) group.getChildAt(x);\n\n if (btn.getId() == checkedId) {\n\n persongender = btn.getText().toString();\n\n }\n\n }\n\n Log.e(\"Gender\", persongender);\n System.out.println(\"gender::\" + persongender);\n }", "@Override\n public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n if (arg1 == true) {\n }\n { //Do something\n li.setChecked(false);\n }\n //do something else\n kgButton = true;\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n if (checkedId == R.id.radio_us) {\n Toast.makeText(getApplicationContext(), \"choice: US\",\n Toast.LENGTH_SHORT).show();\n } else if (checkedId == R.id.radio_canada) {\n Toast.makeText(getApplicationContext(), \"choice: CANADA\",\n Toast.LENGTH_SHORT).show();\n }\n }", "public void onRadioButtonClicked(View view) {\n\n //Layouts containing answer options\n LinearLayout optionAnswersLayout = findViewById(R.id.option_answers_layout);\n LinearLayout userinputAnswerLayout = findViewById(R.id.userinput_answer_layout);\n LinearLayout correctAnswerLayout = findViewById(R.id.correct_answer_layout);\n\n switch (view.getId()) {\n\n case R.id.radio_CheckBox:\n questionType = \"CheckBox\";\n optionAnswersLayout.setVisibility(View.VISIBLE);\n correctAnswerLayout.setVisibility(View.VISIBLE);\n userinputAnswerLayout.setVisibility(View.INVISIBLE);\n break;\n case R.id.radio_RadioButton:\n questionType = \"RadioButton\";\n optionAnswersLayout.setVisibility(View.VISIBLE);\n correctAnswerLayout.setVisibility(View.VISIBLE);\n userinputAnswerLayout.setVisibility(View.INVISIBLE);\n break;\n case R.id.radio_UserInput:\n questionType = \"UserInput\";\n optionAnswersLayout.setVisibility(View.INVISIBLE);\n correctAnswerLayout.setVisibility(View.INVISIBLE);\n userinputAnswerLayout.setVisibility(View.VISIBLE);\n break;\n\n }\n\n }", "public Object getCheckedValue();", "@Test\n public void onKgsRBTNClicked(){\n onView(withId(R.id.kgsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.lbsRBTN)).check(matches(isNotChecked()));\n }", "@Override\n public void onClick(View view) {\n switch (view.getId())\n {\n case R.id.read_once_radiobutton:\n {\n LoggerUtil.info(TAG, \"readonce@isChecked=\" + readOnceRadioButton.isChecked());\n if(readOnceRadioButton.isChecked())\n {\n findViewById(R.id.read_once_layout).setVisibility(View.VISIBLE);\n findViewById(R.id.read_continously_layout).setVisibility(View.GONE);\n readButton.setText(\"Read\");\n }\n break;\n }\n case R.id.read_continously_radiobutton:\n {\n LoggerUtil.info(TAG, \"readcontinous@isChecked=\" + readContinouslyRadioButton.isChecked());\n if(readContinouslyRadioButton.isChecked())\n {\n findViewById(R.id.read_once_layout).setVisibility(View.GONE);\n findViewById(R.id.read_continously_layout).setVisibility(View.VISIBLE);\n readButton.setText(\"Start Reading\");\n }\n break;\n }\n case R.id.antenna_checkbox:\n {\n if(antennaCheckbox.isChecked())\n {\n findViewById(R.id.antenna_layout).setVisibility(View.VISIBLE);\n }\n else\n {\n findViewById(R.id.antenna_layout).setVisibility(View.GONE);\n }\n break;\n }\n case R.id.power_checkbox:\n {\n if(powerCheckbox.isChecked())\n {\n findViewById(R.id.power_layout).setVisibility(View.VISIBLE);\n }\n else\n {\n findViewById(R.id.power_layout).setVisibility(View.GONE);\n }\n break;\n }\n case R.id.gen2_checkbox:\n {\n if(gen2Checkbox.isChecked())\n {\n findViewById(R.id.gen2_layout).setVisibility(View.VISIBLE);\n }\n else\n {\n findViewById(R.id.gen2_layout).setVisibility(View.GONE);\n }\n break;\n }\n case R.id.read_checkbox:\n {\n if(readCheckbox.isChecked())\n {\n findViewById(R.id.read_layout).setVisibility(View.VISIBLE);\n }\n else\n {\n findViewById(R.id.read_layout).setVisibility(View.GONE);\n }\n break;\n }\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tradioOptionGrp = (RadioGroup) findViewById(R.id.radioOpt);\n\t\t\t\t\n\t\t\t\t//Get id of selected radioButton\n\t\t\t\tint selectOptId = radioOptionGrp.getCheckedRadioButtonId();\n\t\t\t\t\n\t\t\t\t//Get Reference to the Selected RadioButton\n\t\t\t\tradioOptBtn = (RadioButton) findViewById(selectOptId);\n\t\t\t\t\n\t\t\t\t//Display value of the selected RadioButton\n\t\t\t\tToast.makeText(getApplicationContext(), radioOptBtn.getText(), Toast.LENGTH_SHORT).show();\n\t\t\t\t\n\t\t\t}", "@Override\n public void onRadioButtonChoice(int choice) {\n mRadioButtonChoice = choice;\n Toast.makeText(this, \"Choice is:\"+\n Integer.toString(choice), Toast.LENGTH_SHORT).show();\n }", "@Override\n\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\tint id=buttonView.getId();\n\t\tRadioButton[] checbox=new RadioButton[3];\n \t\tchecbox[0]=less_thirty_check;\n \t\tchecbox[1]=thirty_fourty_check;\n \t\tchecbox[2]=great_fourty_check;\n \t\t\n \t\t\n \t\tRadioButton[] checkbox1=new RadioButton[3];\n \t\tcheckbox1[0]=health_check;\n \t\tcheckbox1[1]=diabetes_check;\n \t\tcheckbox1[2]=other_check;\n \t\t\n \t\t\n \t\tRadioButton[] checkbox2=new RadioButton[6];\n \t\tcheckbox2[0]=guy_check;\n \t\tcheckbox2[1]=dad_check;\n \t\tcheckbox2[2]=girl_check;\n \t\tcheckbox2[3]=mom_check;\n \t\tcheckbox2[4]=grandad_check;\n \t\tcheckbox2[5]=grand_ma;\n \t\t\n \t\t\n \t\tswitch (id) {\n \t\tcase R.id.less_thirty_check:\n \t\t\tif(isChecked){\n \t\t\t\n \t\t\t\tRadioButton check=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check, checbox);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase R.id.thirty_fourty_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check1=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check1, checbox);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.great_fourty_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check2=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check2, checbox);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.health_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check3=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check3, checkbox1);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.diabetes_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check4=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check4, checkbox1);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.other_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check5=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check5, checkbox1);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.guy_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check6=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check6, checkbox2);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.dad_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check7=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check7, checkbox2);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.girl_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check8=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check8, checkbox2);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.mom_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check9=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check9, checkbox2);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.grandad_check:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check10=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check10, checkbox2);\n \t\t\t}\n \t\t\tbreak;\n\n \t\tcase R.id.grand_ma:\n \t\t\tif(isChecked){\n \t\t\t\tRadioButton check11=(RadioButton) findViewById(id);\n \t\t\tcheckCondition(check11, checkbox2);\n \t\t\t}\n \t\t\tbreak;\n\n\n \t\tdefault:\n// \t\t\tCheckBox check12=(CheckBox) findViewById(id);\n// \t\t\tcheckCondition(check12, this.check);\n \t\t\tbreak;\n \t\t}\n\t}", "@Override\r\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n pos=rg.indexOfChild(findViewById(checkedId));\r\n\r\n\r\n\r\n //Method 2 For Getting Index of RadioButton\r\n pos1=rg.indexOfChild(findViewById(rg.getCheckedRadioButtonId()));\r\n\r\n\r\n\r\n switch (pos)\r\n {\r\n case 0 :\r\n layout_Firm.setVisibility(View.GONE);\r\n layout_Firmno.setVisibility(View.GONE);\r\n type=\"Proprietorship\";\r\n break;\r\n case 1 :\r\n layout_Firm.setVisibility(View.VISIBLE);\r\n layout_Firmno.setVisibility(View.VISIBLE);\r\n type=\"Partnership\";\r\n break;\r\n\r\n\r\n default :\r\n //The default selection is RadioButton 1\r\n layout_Firm.setVisibility(View.GONE);\r\n layout_Firmno.setVisibility(View.GONE);\r\n type=\"Proprietorship\";\r\n break;\r\n }\r\n }", "public void onClick(View arg0) {\n\t\t\t\tint seledtedId = radioSex.getCheckedRadioButtonId();\n\t\t\t\tRadioButton radioMale = (RadioButton) findViewById(seledtedId);\n\t\t\t\tToast.makeText(ExampleRadio.this, radioMale.getText(), Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n\n// UIHelper.toastMessage(getContext(),checkedId+\"\");\n\n if (checkedId == R.id.card_yes) {\n checked = true;\n } else {\n\n checked = false;\n merge(0);\n }\n\n }", "@Override\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n View radioButton = group.findViewById(checkedId);\n int index = group.indexOfChild(radioButton);\n\n switch (index) {\n case 0: // first button\n mText.setVisibility(View.VISIBLE);\n mEdit.setVisibility(View.VISIBLE);\n break;\n case 1: // secondbutton\n info1=\"no\";\n mText.setVisibility(View.INVISIBLE);\n mEdit.setVisibility(View.INVISIBLE);\n break;\n }\n }", "public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n\t\t\t\t\tToast.makeText(getContext(), \"Checked \" + isChecked + \"Position \" + position, Toast.LENGTH_LONG).show();\n\t\t\t\t\tif(isChecked){\n\t\t\t\t\t\tlistItems.get(position).setChecked(true);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlistItems.get(position).setChecked(false);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}", "public void toggleChecker(View view) {\n ((CheckedTextView)view.findViewById(R.id.checkedTextView)).toggle();\n }", "@Override\r\n\tpublic void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\r\n\t\tswitch (buttonView.getId()) {\r\n\t\tcase R.id.Female:\r\n\t\t\tSEX = \"Female\";\r\n\t\t\tbreak;\r\n\t\tcase R.id.Male:\r\n\t\t\tSEX = \"Male\";\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void questionFourRadioButtons(View view){\n // Is the button now checked?\n boolean checked = ((RadioButton) view).isChecked();\n\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.question_4_radio_button_1:\n if (checked)\n // Incorrect answer\n break;\n case R.id.question_4_radio_button_2:\n if (checked)\n // Correct answer, add one point\n break;\n case R.id.question_4_radio_button_3:\n if (checked)\n // Incorrect answer\n break;\n case R.id.question_4_radio_button_4:\n if (checked)\n // Incorrect answer\n break;\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) \n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.true_false);\n t1=(RadioButton)findViewById(R.id.radioButton1);\n f1=(RadioButton)findViewById(R.id.radioButton2);\n \n t1.setOnClickListener(this);\n f1.setOnClickListener(this);\n \n }", "@Override\n public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n if (arg1 == true) {\n }\n { //Do something\n kc.setChecked(false);\n }\n //do something else\n lbButton = true;\n\n }", "public void onRadioButtonClicked(View view) {\n boolean checked = ((RadioButton) view).isChecked();\n TextView reponse = (TextView) findViewById(R.id.text3);\n // Check which radio button was clicked\n switch(view.getId()) {\n case R.id.reponseA:\n if (checked)\n reponse.setText(\"Je vous déclare sans portable !\");\n reponse.setTextColor(Color.parseColor(\"red\"));\n break;\n case R.id.reponseB:\n if (checked) {\n reponse.setText(\"Au moins vous pourrez prendre le dernier modèle !\");\n reponse.setTextColor(Color.parseColor(\"red\"));\n }\n break;\n case R.id.reponseC:\n if (checked)\n reponse.setText(\"Bravo, vous avez une vraie culture publicitaire et un humour développé. Votre appareil est sauvé !\");\n reponse.setTextColor(Color.parseColor(\"green\"));\n //reponse.setTextColor(getResources().getColor(R.color.BLUE));\n // Bravo, vous avez une vraie culture publicitaire et un humour développé. Votre appareil est sauvé.\n break;\n }\n }", "@Override\n\tpublic boolean isChecked() {\n\t\treturn ischecked;\n\t}", "@Test\n public void onLbsRBTNClicked(){\n onView(withId(R.id.lbsRBTN)).perform(click()).check(matches(isChecked()));\n onView(withId(R.id.kgsRBTN)).check(matches(isNotChecked()));\n }", "boolean getestadoRadio(){\n return estadoRadio;\n }", "@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n mSparseBooleanArray.put((Integer) buttonView.getTag(), isChecked);\n }", "@Override\n\tpublic void onCheckedChanged(RadioGroup group, int checkedId) {\n\t\tif(checkedId==R.id.radioBtn_Cricket)\n\t\t{\n\t\t\tToast.makeText(getApplicationContext(), \"Your hobby is Cricket\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t}\n\t\telse if(checkedId==R.id.radioBtn_Reading)\n\t\t{\n\t\t\tToast.makeText(getApplicationContext(),\"Your hobby is Reading\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t}\n\t\telse if(checkedId==R.id.radioBtn_PlayingGames)\n\t\t{\n\t\t\tToast.makeText(getApplicationContext(),\"Your hobby is playing games\", Toast.LENGTH_SHORT)\n\t\t\t.show();\n\t\t}\n\t}", "@Override\n public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) {\n RadioButton rb = (RadioButton)group.findViewById(checkedId);\n Log.d(TAG, \"onCheckedChanged: \"+rb.getText().toString());\n identify = rb.getText().toString();\n variable_quantity.identify = rb.getText().toString();\n// if(rb.getText().toString()==\"学生\"){\n// variable_quantity.identify = \"学生\";\n// identify = \"学生\";\n// variable_quantity.ifStudent = true;\n// Log.d(TAG, \"login: \"+variable_quantity.ifStudent);\n// }\n// else{\n// variable_quantity.identify = \"商家\";\n// identify = \"商家\";\n// variable_quantity.ifStudent = false;\n// }\n }", "@Override\n\t\t\tpublic void onCheckedChanged(CompoundButton buttonView,\n\t\t\t\t\t\t\t\t\t\t boolean isChecked) {\n\t\t\t\tif(isChecked){\n\t\t\t\t\t//editText1.setText(buttonView.getText()+\"选中\");\n\t\t\t\t\tavcom.BwSelfAdaptSwitch = 1;\n\t\t\t\t}else{\n\t\t\t\t\t//editText1.setText(buttonView.getText()+\"取消选中\");\n\t\t\t\t\tavcom.BwSelfAdaptSwitch = 0;\n\t\t\t\t}\n\t\t\t}", "@Override\r\n public void onCheckedChanged(RadioGroup group, int checkedId) {\n dialog.dismiss();\r\n MyLog.i(\"YUY\",\r\n String.valueOf(checkedId) + \" \"\r\n + group.getCheckedRadioButtonId());\r\n mVehicleTypeTV.setText(((RadioButton) layout\r\n .findViewById(checkedId)).getText().toString());\r\n }" ]
[ "0.7575995", "0.74126065", "0.7356589", "0.73386705", "0.73373294", "0.73183393", "0.7269889", "0.7254004", "0.72401875", "0.72191304", "0.71613085", "0.7131788", "0.7128871", "0.7128871", "0.71261793", "0.7109763", "0.70810944", "0.70741177", "0.70361555", "0.7022456", "0.7006604", "0.70026416", "0.6984536", "0.6967615", "0.6958594", "0.6934276", "0.69286615", "0.69108677", "0.690436", "0.6886197", "0.68691105", "0.6865439", "0.6865439", "0.686281", "0.68508023", "0.6821013", "0.6787792", "0.67726046", "0.67014176", "0.66960615", "0.66832346", "0.6680834", "0.6679024", "0.6665729", "0.66582876", "0.66423243", "0.6594983", "0.6592799", "0.6576545", "0.655778", "0.6547696", "0.6532511", "0.6532259", "0.65214473", "0.651124", "0.65001476", "0.6498827", "0.6468367", "0.6462871", "0.64472675", "0.64024776", "0.6401897", "0.63760924", "0.63758713", "0.63733214", "0.63594157", "0.63548744", "0.63447267", "0.6319965", "0.6301622", "0.6299344", "0.62979454", "0.6289877", "0.6287744", "0.6278739", "0.62712735", "0.626807", "0.6264524", "0.62585694", "0.6258274", "0.6253936", "0.62493676", "0.62446076", "0.6242615", "0.62320036", "0.62275887", "0.6210727", "0.6204673", "0.62035424", "0.6196203", "0.61957383", "0.6195284", "0.619496", "0.61917955", "0.6181513", "0.61615944", "0.6150029", "0.6115062", "0.61046827", "0.61018026", "0.6100426" ]
0.0
-1
TODO: Update argument type and name
void onFragmentInteraction(Uri uri);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "@Override\n public int getNumberArguments() {\n return 1;\n }", "java.lang.String getArg();", "@Override\n public int getArgLength() {\n return 4;\n }", "Argument createArgument();", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "@Override\n protected PacketArgs.ArgumentType[] getArgumentTypes() {\n return new PacketArgs.ArgumentType[] { PacketArgs.ArgumentType.String };\n }", "@Override\n\tpublic void traverseArg(UniArg node) {\n\t}", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FArgument src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "Object[] getArguments();", "Object[] getArguments();", "String getArguments();", "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }", "ArgList createArgList();", "public Object[] getArguments() { return args;}", "@Override\n public String getInputArg(String argName) {\n Log.w(TAG, \"Test input args is not supported.\");\n return null;\n }", "@Override\n protected String getName() {return _parms.name;}", "private static AbstractType<?>[] argumentsType(@Nullable StringType algorithmArgumentType)\n {\n return algorithmArgumentType == null\n ? DEFAULT_ARGUMENTS\n : new AbstractType<?>[]{ algorithmArgumentType };\n }", "uicargs createuicargs();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();", "public static void main(String[] args) {\n\t\t\tmeth(args);\r\n\t\t\targument_test:meth(args);\r\n\t}", "@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}", "public getType_args(getType_args other) {\n }", "Object[] args();", "protected void validateArguments( Object[] args ) throws ActionExecutionException {\n\n Annotation[][] annotations = method.getParameterAnnotations();\n for (int i = 0; i < annotations.length; i++) {\n\n Annotation[] paramAnnotations = annotations[i];\n\n for (Annotation paramAnnotation : paramAnnotations) {\n if (paramAnnotation instanceof Parameter) {\n Parameter paramDescriptionAnnotation = (Parameter) paramAnnotation;\n ValidationType validationType = paramDescriptionAnnotation.validation();\n\n String[] validationArgs;\n\n // if we are checking for valid constants, then the\n // args array should contain\n // the name of the array holding the valid constants\n if (validationType == ValidationType.STRING_CONSTANT\n || validationType == ValidationType.NUMBER_CONSTANT) {\n try {\n String arrayName = paramDescriptionAnnotation.args()[0];\n\n // get the field and set access level if\n // necessary\n Field arrayField = method.getDeclaringClass().getDeclaredField(arrayName);\n if (!arrayField.isAccessible()) {\n arrayField.setAccessible(true);\n }\n Object arrayValidConstants = arrayField.get(null);\n\n // convert the object array to string array\n String[] arrayValidConstatnsStr = new String[Array.getLength(arrayValidConstants)];\n for (int j = 0; j < Array.getLength(arrayValidConstants); j++) {\n arrayValidConstatnsStr[j] = Array.get(arrayValidConstants, j).toString();\n }\n\n validationArgs = arrayValidConstatnsStr;\n\n } catch (IndexOutOfBoundsException iobe) {\n // this is a fatal error\n throw new ActionExecutionException(\"You need to specify the name of the array with valid constants in the 'args' field of the Parameter annotation\");\n } catch (Exception e) {\n // this is a fatal error\n throw new ActionExecutionException(\"Could not get array with valid constants - action annotations are incorrect\");\n }\n } else {\n validationArgs = paramDescriptionAnnotation.args();\n }\n\n List<BaseType> typeValidators = createBaseTypes(paramDescriptionAnnotation.validation(),\n paramDescriptionAnnotation.name(),\n args[i], validationArgs);\n //perform validation\n for (BaseType baseType : typeValidators) {\n if (baseType != null) {\n try {\n baseType.validate();\n } catch (TypeException e) {\n throw new InvalidInputArgumentsException(\"Validation failed while validating argument \"\n + paramDescriptionAnnotation.name()\n + e.getMessage());\n }\n } else {\n log.warn(\"Could not perform validation on argument \"\n + paramDescriptionAnnotation.name());\n }\n }\n }\n }\n }\n }", "@Test\n void getArgString() {\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerator src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n }", "int getArgIndex();", "@Override\n\tpublic void addArg(FormulaElement arg){\n\t}", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "@Override\n public Object[] getArguments() {\n return null;\n }", "public login_1_argument() {\n }", "Optional<String[]> arguments();", "private Main(String... arguments) {\n this.operations = new ArrayDeque<>(List.of(arguments));\n }", "@Override\n\tprotected GATKArgumentCollection getArgumentCollection() {\n\t\treturn argCollection;\n\t}", "protected void sequence_Argument(ISerializationContext context, Argument semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, TdlPackage.Literals.ARGUMENT__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, TdlPackage.Literals.ARGUMENT__NAME));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getArgumentAccess().getNameSTRINGTerminalRuleCall_0_0(), semanticObject.getName());\n\t\tfeeder.finish();\n\t}", "void setArguments(String arguments);", "@Override\n\tpublic List<String> getArgumentDesc() {\n\t\treturn desc;\n\t}", "OpFunctionArgAgregate createOpFunctionArgAgregate();", "protected abstract Feature<T,?> convertArgument(Class<?> parameterType, Feature<T,?> originalArgument);", "void visitArgument(Argument argument);", "public Thaw_args(Thaw_args other) {\r\n }", "@Override\r\n\tpublic List<String> getArguments()\r\n\t{\n\t\treturn null;\r\n\t}", "private static String getArgumentString(Object arg) {\n if (arg instanceof String) {\n return \"\\\\\\\"\"+arg+\"\\\\\\\"\";\n }\n else return arg.toString();\n }", "public interface Param {\n\n int[] args();\n String exec(ExecutePack pack);\n String label();\n}", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "public abstract ValidationResults validArguments(String[] arguments);", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\n }", "public String getArgumentString() {\n\t\treturn null;\n\t}", "@Override\n public String kind() {\n return \"@param\";\n }", "@Override\n\t\t\t\t\tpublic Parameter handleParameter(Method parent,\n\t\t\t\t\t\t\tEParamType direction, FEnumerationType src) {\n\t\t\t\t\t\treturn super.handleParameter(parent, direction, src);\n\t\t\t\t\t}", "public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }", "void setArgument(int idx,int v) \t\t{ setArgument(idx,Integer.valueOf(v)); }", "@Override\n\tprotected byte[] getArgByte() {\n\t\treturn paramsJson.getBytes();\n\t}", "void onArgumentsChanged();", "com.google.protobuf.ByteString\n\t\tgetArgBytes();", "@Override public int getNumArguments()\t\t\t{ return arg_list.size(); }", "MyArg(int value){\n this.value = value;\n }", "public ArgList(Object arg1) {\n super(1);\n addElement(arg1);\n }", "public Clear_args(Clear_args other) {\r\n }", "private ParameterInformation processArgumentReference(Argument argument,\n List<NameDescriptionType> argTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation argumentInfo = null;\n\n // Initialize the argument's attributes\n String argName = argument.getName();\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n BigInteger argBitSize = null;\n String enumeration = null;\n String description = null;\n UnitSet unitSet = null;\n String units = null;\n String minimum = null;\n String maximum = null;\n\n // Step through each command argument type\n for (NameDescriptionType argType : argTypeSet)\n {\n // Check if this is the same command argument referenced in the argument list (by\n // matching the command and argument names between the two)\n if (argument.getArgumentTypeRef().equals(argType.getName()))\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Check if this is an array parameter\n if (seqEntry instanceof ArrayParameterRefEntryType)\n {\n arraySize = \"\";\n\n // Store the reference to the array parameter type\n ArrayDataTypeType arrayType = (ArrayDataTypeType) argType;\n argType = null;\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1)\n + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // The array parameter type references a non-array parameter type that\n // describes the individual array members. Step through each data type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : argTypeSet)\n {\n // Check if the array parameter's array type reference matches the data\n // type name\n if (arrayType.getArrayTypeRef().equals(type.getName()))\n {\n // Store the reference to the array parameter's data type and stop\n // searching\n argType = type;\n break;\n }\n }\n }\n\n // Check if a data type entry for the parameter exists in the parameter type set\n // (note that if the parameter is an array the steps above locate the data type\n // entry for the individual array members)\n if (argType != null)\n {\n long dataTypeBitSize = 0;\n\n // Check if the argument is an integer data type\n if (argType instanceof IntegerArgumentType)\n {\n IntegerArgumentType icmd = (IntegerArgumentType) argType;\n\n // Get the number of bits occupied by the argument\n argBitSize = icmd.getSizeInBits();\n\n // Get the argument units reference\n unitSet = icmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (icmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the argument alarm\n IntegerArgumentType.ValidRangeSet alarmType = icmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<IntegerRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Store the minimum alarm value\n minimum = alarmRange.get(0).getMinInclusive();\n\n // Store the maximum alarm value\n maximum = alarmRange.get(0).getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the argument is a floating point data type\n else if (argType instanceof FloatArgumentType)\n {\n // Get the float argument attributes\n FloatArgumentType fcmd = (FloatArgumentType) argType;\n dataTypeBitSize = fcmd.getSizeInBits().longValue();\n unitSet = fcmd.getUnitSet();\n\n // Get the argument alarm\n FloatArgumentType.ValidRangeSet alarmType = fcmd.getValidRangeSet();\n\n // Check if the argument has an alarm\n if (alarmType != null)\n {\n // Get the alarm range\n List<FloatRangeType> alarmRange = alarmType.getValidRange();\n\n // Check if the alarm range exists\n if (alarmRange != null)\n {\n // Get the minimum value\n Double min = alarmRange.get(0).getMinInclusive();\n\n // Check if a minimum value exists\n if (min != null)\n {\n // Get the minimum alarm value\n minimum = String.valueOf(min);\n }\n\n // Get the maximum value\n Double max = alarmRange.get(0).getMaxInclusive();\n\n // Check if a maximum value exists\n if (max != null)\n {\n // Get the maximum alarm value\n maximum = String.valueOf(max);\n }\n }\n }\n\n isFloat = true;\n }\n // Check if the argument is a string data type\n else if (argType instanceof StringDataType)\n {\n // Get the string argument attributes\n StringDataType scmd = (StringDataType) argType;\n dataTypeBitSize = Integer.valueOf(scmd.getStringDataEncoding()\n .getSizeInBits()\n .getFixed()\n .getFixedValue());\n unitSet = scmd.getUnitSet();\n isString = true;\n }\n // Check if the argument is an enumerated data type\n else if (argType instanceof EnumeratedDataType)\n {\n EnumeratedDataType ecmd = (EnumeratedDataType) argType;\n EnumerationList enumList = ecmd.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \", \";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n argBitSize = ecmd.getIntegerDataEncoding().getSizeInBits();\n unitSet = ecmd.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (ecmd.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the argument\n dataTypeBitSize = 8;\n\n while (argBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the data type from the data type table that matches the base\n // type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the description exists\n if (argType.getLongDescription() != null)\n {\n // Store the description\n description = argType.getLongDescription();\n }\n\n // Check if the argument bit size exists\n if (argBitSize != null && argBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = argBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null)\n {\n List<UnitType> unitType = unitSet.getUnit();\n\n // Check if the units is set\n if (!unitType.isEmpty())\n {\n // Store the units\n units = unitType.get(0).getContent();\n }\n }\n\n argumentInfo = new ParameterInformation(argName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n 0,\n seqIndex);\n }\n\n break;\n }\n }\n\n return argumentInfo;\n }", "public abstract interface QueryArgs {\n\n /** Return the catalog associated with this object */\n public Catalog getCatalog();\n\n /** Set the value for the ith parameter */\n public void setParamValue(int i, Object value);\n\n /** Set the value for the parameter with the given label */\n public void setParamValue(String label, Object value);\n\n /** Set the min and max values for the parameter with the given label */\n public void setParamValueRange(String label, Object minValue, Object maxValue);\n\n /** Set the int value for the parameter with the given label */\n public void setParamValue(String label, int value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValue(String label, double value);\n\n /** Set the double value for the parameter with the given label */\n public void setParamValueRange(String label, double minValue, double maxValue);\n\n /** Set the array of parameter values directly. */\n public void setParamValues(Object[] values);\n\n /** Get the value of the ith parameter */\n public Object getParamValue(int i);\n\n /** Get the value of the named parameter\n *\n * @param label the parameter name or id\n * @return the value of the parameter, or null if not specified\n */\n public Object getParamValue(String label);\n\n /**\n * Get the value of the named parameter as an integer.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public int getParamValueAsInt(String label, int defaultValue);\n\n /**\n * Get the value of the named parameter as a double.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public double getParamValueAsDouble(String label, double defaultValue);\n\n /**\n * Get the value of the named parameter as a String.\n *\n * @param label the parameter label\n * @param defaultValue the default value, if the parameter was not specified\n * @return the value of the parameter\n */\n public String getParamValueAsString(String label, String defaultValue);\n\n\n /**\n * Return the object id being searched for, or null if none was defined.\n */\n public String getId();\n\n /**\n * Set the object id to search for.\n */\n public void setId(String id);\n\n\n /**\n * Return an object describing the query region (center position and\n * radius range), or null if none was defined.\n */\n public CoordinateRadius getRegion();\n\n /**\n * Set the query region (center position and radius range) for\n * the search.\n */\n public void setRegion(CoordinateRadius region);\n\n\n /**\n * Return an array of SearchCondition objects indicating the\n * values or range of values to search for.\n */\n public SearchCondition[] getConditions();\n\n /** Returns the max number of rows to be returned from a table query */\n public int getMaxRows();\n\n /** Set the max number of rows to be returned from a table query */\n public void setMaxRows(int maxRows);\n\n\n /** Returns the query type (an optional string, which may be interpreted by some catalogs) */\n public String getQueryType();\n\n /** Set the query type (an optional string, which may be interpreted by some catalogs) */\n public void setQueryType(String queryType);\n\n /**\n * Returns a copy of this object\n */\n public QueryArgs copy();\n\n /**\n * Optional: If not null, use this object for displaying the progress of the background query\n */\n public StatusLogger getStatusLogger();\n}", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }", "@Override\n\tprotected Collection<ArgumentTypeDescriptor> getArgumentTypeDescriptors() {\n\t\treturn Arrays.asList(new VCFWriterArgumentTypeDescriptor(engine, System.out, bisulfiteArgumentSources), new SAMReaderArgumentTypeDescriptor(engine),\n\t\t\t\tnew SAMFileWriterArgumentTypeDescriptor(engine, System.out), new OutputStreamArgumentTypeDescriptor(engine, System.out));\n\t}", "@Override\n public int getArgent() {\n return _argent;\n }", "private static @NonNull String resolveInputName(@NonNull Argument<?> argument) {\n String inputName = argument.getAnnotationMetadata().stringValue(Bindable.NAME).orElse(null);\n if (StringUtils.isEmpty(inputName)) {\n inputName = argument.getName();\n }\n return inputName;\n }", "private Object[] getArguments (String className, Object field)\n\t{\n\t\treturn ((field == null) ? new Object[]{className} : \n\t\t\tnew Object[]{className, field});\n\t}", "PermissionSerializer (GetArg arg) throws IOException, ClassNotFoundException {\n\tthis( \n\t create(\n\t\targ.get(\"targetType\", null, Class.class),\n\t\targ.get(\"type\", null, String.class),\n\t\targ.get(\"targetName\", null, String.class),\n\t\targ.get(\"targetActions\", null, String.class) \n\t )\n\t);\n }", "public Type getArgumentDirection() {\n return direction;\n }", "public String argTypes() {\n return \"I\";//NOI18N\n }", "public static void main(String arg[]) {\n\n }", "godot.wire.Wire.Value getArgs(int index);", "@Override\n protected String[] getArguments() {\n String[] args = new String[1];\n args[0] = _game_file_name;\n return args;\n }", "public void setArgs(java.lang.String value) {\n this.args = value;\n }", "private Argument(Builder builder) {\n super(builder);\n }", "@Override\n public void execute(String[] args) {\n\n }", "@Override\n\tprotected final void setFromArgument(CommandContext<ServerCommandSource> context, String name) {\n\t}", "UUID createArgument(ArgumentCreateRequest request);", "@Override\n public void initialise(String[] arguments) {\n\n }", "public static ParameterExpression parameter(Class type, String name) { throw Extensions.todo(); }", "protected abstract void parseArgs() throws IOException;" ]
[ "0.7164074", "0.6946075", "0.6714363", "0.65115863", "0.63969076", "0.6375468", "0.63481104", "0.63162106", "0.6260299", "0.6208487", "0.6208487", "0.62070644", "0.6197276", "0.61806154", "0.6177103", "0.61530507", "0.61472267", "0.61243707", "0.60771817", "0.6054482", "0.59906125", "0.59906125", "0.5984017", "0.59791875", "0.5977681", "0.59532714", "0.5946838", "0.59457266", "0.59452903", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.59352577", "0.5909717", "0.5889277", "0.588111", "0.5871162", "0.5866624", "0.58613646", "0.58519953", "0.58381283", "0.58083445", "0.58059824", "0.5795826", "0.57816726", "0.57670826", "0.57556796", "0.57471323", "0.57418406", "0.5729463", "0.57291526", "0.5716928", "0.5713024", "0.56974274", "0.56782854", "0.56723106", "0.5664594", "0.5664104", "0.5660337", "0.5652865", "0.5647883", "0.5642134", "0.5635645", "0.5634968", "0.562251", "0.56210977", "0.56167537", "0.56138444", "0.56044126", "0.56044126", "0.5602371", "0.56012225", "0.55986875", "0.55893147", "0.5588273", "0.5583255", "0.5582767", "0.55681497", "0.55626017", "0.55577534", "0.55524325", "0.5549442", "0.55378276", "0.5536797", "0.5527675", "0.5511817", "0.55099154", "0.550257" ]
0.0
-1
creates and returns a parser for the given input.
private PLPParser makeParser(String input) throws LexicalException { show(input); //Display the input PLPScanner scanner = new PLPScanner(input).scan(); //Create a Scanner and initialize it show(scanner); //Display the Scanner PLPParser parser = new PLPParser(scanner); return parser; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Parser makeParser(String input) throws LexicalException {\r\n\t\tshow(input); //Display the input \r\n\t\tScanner scanner = new Scanner(input).scan(); //Create a Scanner and initialize it\r\n\t\tshow(scanner); //Display the Scanner\r\n\t\tParser parser = new Parser(scanner);\r\n\t\treturn parser;\r\n\t}", "public StringParseable getParser(String input) {\n\t\treturn new XMLStringParser(input);\n\t}", "public JsonParser createParser(DataInput in)\n/* */ throws IOException\n/* */ {\n/* 920 */ IOContext ctxt = _createContext(in, false);\n/* 921 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public JsonParser createParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 809 */ IOContext ctxt = _createContext(in, false);\n/* 810 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "Parse createParse();", "protected ASTParser createASTParser() {\n ASTParser parser = ASTParser.newParser(this.testLevel);\n return parser;\n }", "public JsonParser createParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 879 */ int strLen = content.length();\n/* */ \n/* 881 */ if ((this._inputDecorator != null) || (strLen > 32768) || (!canUseCharArrays()))\n/* */ {\n/* */ \n/* 884 */ return createParser(new StringReader(content));\n/* */ }\n/* 886 */ IOContext ctxt = _createContext(content, true);\n/* 887 */ char[] buf = ctxt.allocTokenBuffer(strLen);\n/* 888 */ content.getChars(0, strLen, buf, 0);\n/* 889 */ return _createParser(buf, 0, strLen, ctxt, true);\n/* */ }", "public abstract ArgumentParser makeParser();", "Object create(InputSource is) throws IOException, SAXException, ParserConfigurationException;", "public JsonParser createParser(URL url)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 782 */ IOContext ctxt = _createContext(url, true);\n/* 783 */ InputStream in = _optimizedStreamFromURL(url);\n/* 784 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "public T Create(String input) {\n\t\t\n\t\tArrayList<String> params = ParseInput(input);\n\n\t\tClass<T> cls = classMap.get(params.get(0));\n\n\t\tif(cls == null) {\n\t\t\t//Class is not registered, error.\n\t\t\tMain.error(params.get(0) + \" is not recognized by Factory\");\n\t\t}\n\n\t\ttry{\n\t\t Method make = cls.getDeclaredMethod(\"Make\",new Class[] {ArrayList.class});\n\t\t T ret = cls.cast(make.invoke(null,new Object[]{params}));\n\t\t return ret;\n\t\t} catch(java.lang.NoSuchMethodException e){\n\t\t\tMain.error(params.get(0) + \" does not have required Make method\");\n\t\t} catch(java.lang.IllegalAccessException e){\n\t\t\tMain.error(\"Access problems with constructor for \" +\n\t\t\t\t params.get(0));\n\t\t} catch(java.lang.reflect.InvocationTargetException e){\n\t\t Main.error(\"Make method for \" + params.get(0) +\n\t\t\t \" threw an exception. Check code\");\n\t\t} catch(java.lang.Exception e){\n\t\t Main.error(\"Problems with \"+params.get(0)+\"; check code.\");\n\t\t}\n\n\t\t//We never get here\n\t\tMain.error(\"Reached end of creation method without creating \"\n\t\t\t + params.get(0));\n\t\treturn null;\n\t}", "protected JsonParser _createParser(DataInput input, IOContext ctxt)\n/* */ throws IOException\n/* */ {\n/* 1329 */ String format = getFormatName();\n/* 1330 */ if (format != \"JSON\") {\n/* 1331 */ throw new UnsupportedOperationException(String.format(\"InputData source not (yet?) support for this format (%s)\", new Object[] { format }));\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 1336 */ int firstByte = ByteSourceJsonBootstrapper.skipUTF8BOM(input);\n/* 1337 */ ByteQuadsCanonicalizer can = this._byteSymbolCanonicalizer.makeChild(this._factoryFeatures);\n/* 1338 */ return new UTF8DataInputJsonParser(ctxt, this._parserFeatures, input, this._objectCodec, can, firstByte);\n/* */ }", "public ProgramParser(String prog, String input) {\n ProgramParser.programCode = new java.io.StringReader(prog);\n ProgramParser.stringInput = input;\n //System.out.println(\"Program: \" + prog + \" - input: \" + programInput);\n }", "public JsonParser createParser(char[] content, int offset, int len)\n/* */ throws IOException\n/* */ {\n/* 908 */ if (this._inputDecorator != null) {\n/* 909 */ return createParser(new CharArrayReader(content, offset, len));\n/* */ }\n/* 911 */ return _createParser(content, offset, len, _createContext(content, true), false);\n/* */ }", "public Parser() {}", "public JsonParser createParser(char[] content)\n/* */ throws IOException\n/* */ {\n/* 899 */ return createParser(content, 0, content.length);\n/* */ }", "public static JavaParser getParser(final CharStream stream) {\n final JavaLexer lexer = new JavaLexer(stream);\n final CommonTokenStream in = new CommonTokenStream(lexer);\n return new JavaParser(in);\n }", "public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }", "abstract protected Parser createSACParser();", "@Override\n public ViolationsParser createParser() {\n return new JsLintParser();\n }", "CParser getParser();", "public JsonParser createParser(Reader r)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 829 */ IOContext ctxt = _createContext(r, false);\n/* 830 */ return _createParser(_decorate(r, ctxt), ctxt);\n/* */ }", "public REparser (String input) throws IOException {\n fileIn = new FileReader(input);\n cout.printf(\"%nEchoing File: %s%n\", input);\n echoFile();\n fileIn = new FileReader(input);\n pbIn = new PushbackReader(fileIn);\n temp = new FileReader(input);\n currentLine = new BufferedReader(temp);\n curr_line = \"\";\n curr_line = currentLine.readLine();\n AbstractNode root;\n while(curr_line != null) {\n getToken();\n root = parse_re(0);\n printTree(root);\n curr_line = currentLine.readLine();\n }\n }", "public static Command parse(String input) throws DukeException {\r\n String[] inputArr = input.split(\" \", 2);\r\n String command = inputArr[0];\r\n\r\n switch (command) {\r\n case \"bye\":\r\n return new ExitCommand();\r\n case \"list\":\r\n return new ListCommand();\r\n case \"done\":\r\n try {\r\n return new DoneCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify the task number you wish to\\n mark as done!\");\r\n }\r\n case \"delete\":\r\n try {\r\n return new DeleteCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify the task number you wish to\\n delete!\");\r\n }\r\n case \"todo\":\r\n try {\r\n return new AddCommand(new Todo(inputArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"The description of a todo cannot be empty.\");\r\n }\r\n case \"deadline\":\r\n try {\r\n String[] detailsArr = inputArr[1].split(\" /by \");\r\n return new AddCommand(new Deadline(detailsArr[0], detailsArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\r\n \"Please follow the format:\\n deadline <description> /by <DD/MM/YYYY HHMM>\");\r\n }\r\n case \"event\":\r\n try {\r\n String[] detailsArr = inputArr[1].split(\" /at \");\r\n return new AddCommand(new Event(detailsArr[0], detailsArr[1]));\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\r\n \"Please follow the format:\\n event <description> /at <DD/MM/YYYY HHMM>\");\r\n }\r\n case \"find\":\r\n try {\r\n return new FindCommand(inputArr[1]);\r\n } catch (ArrayIndexOutOfBoundsException e) {\r\n throw new DukeException(\"Please specify what you are searching for!\");\r\n }\r\n default:\r\n throw new DukeException(\"I'm sorry, but I don't know what that means!\");\r\n }\r\n }", "public static String parser(String input) throws IOException{\n\t\tif (input == null)\n\t\t\treturn \"Null input!\";\n\t\t\n\t\telse if (input.startsWith(\"HTTPClient \")){\n\t\t\tinput = input.replace(\"HTTPClient \", \"\"); // Cut HTTPClient of the string so we can handle the command more easily.\n\t\t\t\t\t\t\n\t\t\tif(\"exit\".equals(input))\n\t\t\t\treturn EXIT();\n\t\t\t\n\t\t\telse {\n\t\t\t\t\n\t\t\t\tString[] splitted = input.split(\"\\\\s+\"); // Split around spaces\n\t\t\t\tString command = splitted[0];\n\t\t\t\tString uri = splitted[1];\n\t\t\t\tint port = Integer.parseInt(splitted[2]);\n\t\t\t\tSystem.out.println(uri);\n\t\t\t\tSystem.out.println(port);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (command.startsWith(\"HEAD\")){\n\t\t\t\t\treturn HEAD(uri, port);\n\t\t\t\t}\n\t\t\t\n\t\t\t\telse if (command.startsWith(\"GET\")){\n\t\t\t\t\treturn GET(uri, port);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (command.startsWith(\"PUT\")){\n\t\t\t\t\treturn PUT(uri, port);\n\t\t\t\t}\n\t\t\t\n\t\t\t\telse if (command.startsWith(\"POST\")){ \n\t\t\t\t\treturn POST(uri, port);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn \"\";\n\t}", "Object create(InputStream in) throws IOException, SAXException, ParserConfigurationException;", "private Module parse(InputStream input)\r\n\t\t\t\t\tthrows ModuleParseException\r\n\t{\n\t\treturn null;\r\n\t}", "private Parser () { }", "protected JsonParser _createParser(InputStream in, IOContext ctxt)\n/* */ throws IOException\n/* */ {\n/* 1271 */ return new ByteSourceJsonBootstrapper(ctxt, in).constructParser(this._parserFeatures, this._objectCodec, this._byteSymbolCanonicalizer, this._rootCharSymbols, this._factoryFeatures);\n/* */ }", "public static Command parser(String input) {\r\n\t\tCommand command;\r\n\t\tif (input.equals(\"\")) {\r\n\t\t\treturn new CommandInvalid(\"User input cannot be empty\");\r\n\t\t}\r\n\r\n\t\tif ((command = parserAdd(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserEdit(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserShow(input)) != null) {\r\n\t\t\tcurrent_status = SHOW_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserExit(input)) != null) {\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserDelete(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserSave(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserClear(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserUndo(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserOpen(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserCheck(input)) != null) {\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserSearch(input)) != null) {\r\n\t\t\tcurrent_status = SEARCH_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserRedo(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserHelp(input)) != null) {\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserDisplayAll(input)) != null) {\r\n\t\t\tcurrent_status = NATURAL_STATE;\r\n\t\t\treturn command;\r\n\t\t} else if ((command = parserSort(input)) != null) {\r\n\t\t\tcurrent_status = SORT_STATE;\r\n\t\t\treturn command;\r\n\t\t}\r\n\t\treturn new CommandInvalid(\"Invalid Command. Please check 'Help' for proper input.\");\r\n\t}", "public static final Document parse(final InputSource input) {\r\n if (logB.isDebugEnabled()) {\r\n logB.debug(\"XmlFactory.parse : begin\");\r\n }\r\n\r\n Document document = null;\r\n\r\n try {\r\n input.setEncoding(ENCODING);\r\n document = getFactory().newDocumentBuilder().parse(input);\r\n } catch (final SAXException se) {\r\n logB.error(\"XmlFactory.parse : error\", se);\r\n } catch (final IOException ioe) {\r\n logB.error(\"XmlFactory.parse : error\", ioe);\r\n } catch (final ParserConfigurationException pce) {\r\n logB.error(\"XmlFactory.parse : error\", pce);\r\n }\r\n\r\n if (logB.isInfoEnabled()) {\r\n logB.info(\"XmlFactory.parse : exit : \" + document);\r\n }\r\n\r\n return document;\r\n }", "public JsonParser createParser(byte[] data)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 840 */ IOContext ctxt = _createContext(data, true);\n/* 841 */ if (this._inputDecorator != null) {\n/* 842 */ InputStream in = this._inputDecorator.decorate(ctxt, data, 0, data.length);\n/* 843 */ if (in != null) {\n/* 844 */ return _createParser(in, ctxt);\n/* */ }\n/* */ }\n/* 847 */ return _createParser(data, 0, data.length, ctxt);\n/* */ }", "private static DocumentBuilder instantiateParser()\n throws IOException {\n\n DocumentBuilder parser = null;\n\n try {\n DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();\n fac.setNamespaceAware( true );\n fac.setValidating( false );\n fac.setIgnoringElementContentWhitespace( false );\n parser = fac.newDocumentBuilder();\n return parser;\n } catch ( ParserConfigurationException e ) {\n throw new IOException( \"Unable to initialize DocumentBuilder: \" + e.getMessage() );\n }\n }", "InputDecl createInputDecl();", "public JsonParser createParser(File f)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 755 */ IOContext ctxt = _createContext(f, true);\n/* 756 */ InputStream in = new FileInputStream(f);\n/* 757 */ return _createParser(_decorate(in, ctxt), ctxt);\n/* */ }", "@Deprecated\n/* */ public JsonParser createJsonParser(InputStream in)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 1002 */ return createParser(in);\n/* */ }", "public static Optional<Expression> build(String input) throws IOException {\n ExpressionBuilder eb = new ExpressionBuilder();\n if (Calc.$.parse(Scanner.of(input), eb, true)) {\n return Optional.of(eb.get());\n } else {\n return Optional.empty();\n }\n }", "public parser(Scanner s) {super(s);}", "public static Parser getParser(String url)\n\t{\n\t\ttry\n\t\t{\n\t\t\tjava.net.URLConnection conn = (new java.net.URL(url)).openConnection();\n\t\t\tconn.setRequestProperty(\"User-Agent\", \"Mozilla\");\n\t\t\tParser p = new Parser(conn);\n\t\t\treturn p;\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t\treturn null;\n\t}", "public Lexer getLexer(Object input)\n\t\tthrows IOException\n\t{\n\t\tLexer lexer = getLexer();\n\t\tlexer.setInput(input);\n\t\treturn lexer;\n\t}", "public static Parser getInstance(Context ctx){\n if(instance == null){\n instance = new Parser(ctx);\n }\n return instance;\n }", "private TraceParser genParser() throws ParseException {\n TraceParser parser = new TraceParser();\n parser.addRegex(\"^(?<VTIME>)(?<TYPE>)$\");\n parser.addPartitionsSeparator(\"^--$\");\n return parser;\n }", "private static Parser<Grammar> makeParser(final File grammar) {\n try {\n\n return Parser.compile(grammar, Grammar.ROOT);\n\n // translate these checked exceptions into unchecked\n // RuntimeExceptions,\n // because these failures indicate internal bugs rather than client\n // errors\n } catch (IOException e) {\n throw new RuntimeException(\"can't read the grammar file\", e);\n } catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"the grammar has a syntax error\", e);\n }\n }", "public Command getCommand(String userInput) {\n return this.parser.parse(userInput);\n }", "public Expression makeExpression(String input) {\n\t\tmyInput = input;\n\t\tmyCurrentPosition = 0; // NEW LINE\n\t\tExpression result = parseExpression(new HashMap<String, Expression>());\n\t\tskipWhiteSpace();\n\t\tif (notAtEndOfString()) {\n\t\t\tthrow new ParserException(\n\t\t\t\t\t\"Unexpected characters at end of the string: \"\n\t\t\t\t\t\t\t+ myInput.substring(myCurrentPosition),\n\t\t\t\t\tParserException.Type.EXTRA_CHARACTERS);\n\t\t}\n\t\treturn result;\n\t}", "private SAXParser getSAXParser() {\n\t SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();\n\t if (saxParserFactory == null) {\n\t return null;\n\t }\n\t SAXParser saxParser = null;\n\t try {\n\t saxParser = saxParserFactory.newSAXParser();\n\t } catch (Exception e) {\n\t }\n\t return saxParser;\n\t }", "public Parser() throws IOException {\n\t\tlookahead = System.in.read();\n\t\terrorNum = 0;\n\t\tinput = \"\";\n\t\toutput = \"\";\n\t\terrorPos = \"\";\n\t\terrorList = new ArrayList<String>();\n\t\twrongState = false;\n\t}", "public Parser(String[] userInput) {\n this.command = userInput[0];\n if (userInput.length > 1) {\n this.description = userInput[1];\n }\n }", "public Command parse(String inputCommand) {\n Matcher matcher = BASIC_COMMAND_FORMAT.matcher(inputCommand.trim());\n if (!matcher.matches()) {\n return new IncorrectCommand(\"This is a incorrect format, \"\n + \" you may type the list to see all the commands.\"\n + \" the command should not contain the separator '|'\");\n }\n\n String commandWord = matcher.group(\"commandWord\");\n String arguments = matcher.group(\"arguments\");\n\n switch (commandWord) {\n case AddCommand.COMMAND_WORD:\n return prepareAdd(arguments);\n case ListCommand.COMMAND_WORD:\n return prepareList(arguments);\n\n case DoneCommand.COMMAND_WORD:\n return prepareDone(arguments);\n case DueCommand.COMMAND_WORD:\n return prepareDue(arguments);\n case DeleteCommand.COMMAND_WORD:\n return prepareDelete(arguments);\n\n case SetCommand.COMMAND_WORD:\n return prepareSet(arguments);\n\n case ExitCommand.COMMAND_WORD:\n return new ExitCommand();\n\n case ProjModeCommand.COMMAND_WORD:\n return new ProjModeCommand();\n\n // case HelpCommand.COMMAND_WORD:\n // default:\n // return new HelpCommand();\n\n default:\n return new IncorrectCommand(\"IncorrectCommand\");\n }\n\n }", "private Command parseCommand(String input) {\r\n\r\n String[] splittedInput = input.toUpperCase().split(\" \");\r\n String command = splittedInput[0];\r\n\r\n switch (command) {\r\n case \"PLACE\":\r\n return new PlaceCommand(input);\r\n case \"MOVE\":\r\n return new MoveCommand();\r\n case \"LEFT\":\r\n return new RotateLeftCommand();\r\n case \"RIGHT\":\r\n return new RotateRightCommand();\r\n case \"REPORT\":\r\n return new ReportCommand();\r\n default:\r\n return new IgnoreCommand();\r\n }\r\n }", "protected static IParser getParser(final FhirContext ctx, FHIRMediaType mt) {\n\t\tIParser parser = null;\n\n\t\tfinal ParserType parserType = mt.getParserType();\n\t\tswitch (parserType) {\n\t\tcase JSON:\n\t\t\tparser = ctx.newJsonParser();\n\t\t\tbreak;\n\t\tcase XML:\n\t\tdefault:\n\t\t\tparser = ctx.newXmlParser();\n\t\t\tbreak;\n\t\t}\n\t\treturn parser;\n\t}", "private static String parse(final String input) throws IOException {\n\t\tStringBuilder xml = new StringBuilder(\"<veranstaltung>\\n\");\n\t\taddFields(xml, input);\n\t\taddLecturers(xml, input);\n\t\taddDates(xml, input);\n\t\treturn xml.append(\"</veranstaltung>\").toString();\n\t}", "public interface ClassParserFactory {\n\n ClassParser createParser(Class<?> clazz);\n}", "public SimpleHtmlParser createNewParserFromHereToText(String text) throws ParseException {\n return new SimpleHtmlParser(getStringToTextAndSkip(text));\n }", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public parser(java_cup.runtime.Scanner s) {super(s);}", "public SyntaxParser(final String input, @NotNull final InstructionSet instructionSet) {\n this(input, instructionSet, 0, CharInputStream.END_OF_FILE);\n }", "public Parser()\n {\n //nothing to do\n }", "private static Process createProcessFromInput(String inputLine){\n int resA, resB, resC, neededA, neededB, neededC;\n\n inputLine = inputLine.replaceAll(\"\\\\[|\\\\]\", \"\"); //remove brackets\n String[] resourceInfo = inputLine.split(\" \");\n\n resA = Integer.parseInt(resourceInfo[0]);\n resB = Integer.parseInt(resourceInfo[1]);\n resC = Integer.parseInt(resourceInfo[2]);\n neededA = Integer.parseInt(resourceInfo[3]);\n neededB = Integer.parseInt(resourceInfo[4]);\n neededC = Integer.parseInt(resourceInfo[5]);\n\n int[] processInfo = {resA, resB,resC, neededA,neededB,neededC};\n return new Process(processInfo);\n }", "public CalculatorTokenStream(String input) {\n\t\tscanner = new CalculatorScanner(input);\n\t\t// prime the first token.\n\t\tadvance();\n\t}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "public Parser(java_cup.runtime.Scanner s) {super(s);}", "protected Parser getParser() throws TemplateException {\n try {\n return (Parser) _broker.getValue(\"parser\",\"wm\"); \n } catch (Exception e) {\n Engine.log.exception(e);\n throw new TemplateException(\"Could not load parser type \\\"\" + \n _parserName + \"\\\": \" + e);\n }\n }", "public static PackerFileParser get() {\r\n\t\tif(parser==null) {\r\n\t\t\tIterator<PackerFileParser> packerFileParseIterator = \r\n\t\t\t\t\tServiceLoader.load(PackerFileParser.class).iterator();\r\n\t\t\t\r\n\t\t\tif(packerFileParseIterator.hasNext()) {\r\n\t\t\t\tparser = packerFileParseIterator.next();\r\n\t\t\t} else {\r\n\t\t\t\tparser = new PackerFileParserImpl();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn parser;\r\n\t}", "public DummyCommand parse(String userInput) throws ParseException {\n HashMap<String, String> aliasList = getAliasManager().getAliasList();\n\n if (aliasList.isEmpty()) {\n return new DummyCommand(MESSAGE_EMPTY);\n }\n\n StringBuilder sb = new StringBuilder();\n aliasList.forEach((alias, command) -> sb.append(String.format(\"%s: %s\\n\", alias, command)));\n\n return new DummyCommand(sb.toString());\n }", "public static Document parse(String in) {\n try {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource(new StringReader(in));\n return db.parse(is);\n } catch (ParserConfigurationException | SAXException | IOException e) {\n throw new RuntimeException(e);\n }\n }", "public JsonParser createParser(byte[] data, int offset, int len)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 861 */ IOContext ctxt = _createContext(data, true);\n/* */ \n/* 863 */ if (this._inputDecorator != null) {\n/* 864 */ InputStream in = this._inputDecorator.decorate(ctxt, data, offset, len);\n/* 865 */ if (in != null) {\n/* 866 */ return _createParser(in, ctxt);\n/* */ }\n/* */ }\n/* 869 */ return _createParser(data, offset, len, ctxt);\n/* */ }", "private ParseInterface getParser(String sid) {\n if (parseMap.containsKey(sid)) {\n return parseMap.get(sid);\n } else {\n Log.d(TAG, \"Could not instantiate \" + sid + \"parser\");\n }\n return null;\n }", "public GithubParser getParser(String eventName) {\n GithubParser result = parsers.get(eventName);\n\n if (result == null) {\n LOGGER.info(\"Unhandled event {}\", eventName);\n }\n\n return result;\n }", "private TwigcsResultParser getParser() {\n\t\tif (parser == null) {\n\t\t\tparser = new TwigcsResultParser();\n\t\t}\n\t\treturn parser;\n\t}", "public Document generateDocumentFromString(String xmlInput) throws SCNotifyRequestProcessingException {\n\t\tDocumentBuilderFactory builderFactory = DocumentBuilderFactory.newInstance();\n\t\tDocumentBuilder builder = null;\n\t\tDocument xmlDocument;\n\t\tlogger.debug(\".xmlInput : \"+xmlInput);\n\t\ttry {\n\t\t\tbuilder = builderFactory.newDocumentBuilder();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\tthrow new SCNotifyRequestProcessingException(\"Unable to initiate the document builder..\", e);\n\t\t}\n\t\ttry {\n\t\t\txmlDocument = builder.parse(new ByteArrayInputStream(xmlInput.getBytes(\"UTF-16\")));\n\t\t} catch (SAXException | IOException e) {\n\t\t\tthrow new SCNotifyRequestProcessingException(\"Unable to parse the xmlString into document..\", e);\n\t\t}\n\t\treturn xmlDocument;\n\t}", "public Parser() {\n\t\tpopulateMaps();\n\t}", "INPUT createINPUT();", "private ParserInput parserInput(String topicName) {\r\n \t\t// set dummy values for parser input\r\n \t\tParserInput parserInput = new ParserInput();\r\n \t\tparserInput.setContext(\"/wiki\");\r\n \t\tparserInput.setLocale(LocaleUtils.toLocale(\"en_US\"));\r\n \t\tparserInput.setWikiUser(null);\r\n \t\tparserInput.setTopicName(topicName);\r\n \t\tparserInput.setUserDisplay(\"0.0.0.0\");\r\n \t\tparserInput.setVirtualWiki(\"en\");\r\n \t\tparserInput.setAllowSectionEdit(true);\r\n \t\treturn parserInput;\r\n \t}", "public Parser()\n{\n //nothing to do\n}", "public abstract T parseLine(String inputLine);", "public Program parse() throws SyntaxException {\n\t\tProgram p = program();\n\t\tmatchEOF();\n\t\treturn p;\n\t}", "public SAXParser createSaxParser() {\n \n System.err.println(\"Create new sax parser\");\n\n SAXParser saxParser = null;\n\n SAXParserFactory saxFactory = SAXParserFactory.newInstance();\n\n try {\n saxFactory.setValidating(true);\n saxFactory.setNamespaceAware(true);\n saxFactory.setFeature(SAX_NAMESPACES_PREFIXES, true);\n saxFactory.setFeature(SAX_VALIDATION, true);\n saxFactory.setFeature(SAX_VALIDATION_DYNAMIC, true);\n saxFactory.setFeature(FEATURES_VALIDATION_SCHEMA, true);\n saxFactory.setFeature(PROPERTIES_LOAD_EXT_DTD, true);\n //saxFactory.setFeature(Namespaces.SAX_NAMESPACES_PREFIXES, true);\n\n saxParser = saxFactory.newSAXParser();\n \n setupSaxParser(saxParser);\n\n } catch (Exception e) {\n // ignore: feature only recognized by xerces\n e.printStackTrace();\n }\n\n return saxParser;\n }", "public static Document parse(InputStream in) throws ParserConfigurationException, SAXException, IOException {\n\t DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t DocumentBuilder db = dbf.newDocumentBuilder();\n\t \n\n\t return db.parse(in);\n\t }", "public static Document getDocument(InputSource in){\t\t\n\t\ttry {\n\t\t\tDocumentBuilderFactory docbuilderf = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docb = docbuilderf.newDocumentBuilder();\n\t\t\treturn docb.parse(in);\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Parseprobleem... Invalide bestand.\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (IOException e) {\n\t\t\t// TODO IOException, bestand bestaat niet of doet iets anders.\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// Configuratie zou moeten werken\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "public Parser(URL url) {\n \t\t\ttry {\n \t\t\t\tload(url.openStream());\n \t\t\t} catch (Exception e) {\n \t\t\t\t// continue ... actual parsing will report errors\n \t\t\t}\n \t\t}", "public StringParser getStringParser();", "public interface Parser {\n\n}", "public CLI(String inputCommand)\r\n\t{\r\n\t\t//lvl = new Level();\r\n\t\tthis.inputCommand = inputCommand;\r\n\t\tin = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t}", "public interface IParser {\n\n /**\n * Coco/R generated function. It is used to inform parser about semantic errors.\n */\n void SemErr(String str);\n\n /**\n * Coco/R generated function for parsing input. The signature was changes in parsers' frame files so that it\n * receives source argument.\n *\n * @param source source to be parsed\n */\n void Parse(Source source);\n\n /**\n * Resets the parser but not the {@link NodeFactory} instance it holds. This way it can be used multiple times with\n * storing current state (mainly identifiers table). This is useful for parsing unit files before parsing the actual\n * source.\n */\n void reset();\n\n /**\n * Returns whether there were any errors throughout the parsing of the last source.\n */\n boolean hadErrors();\n\n /**\n * Sets support for extended goto. If this option is turned on, the parser will generate {@link cz.cuni.mff.d3s.trupple.language.nodes.statement.ExtendedBlockNode}s\n * instead of {@link cz.cuni.mff.d3s.trupple.language.nodes.statement.BlockNode}s.\n */\n void setExtendedGoto(boolean extendedGoto);\n\n /**\n * Returns true if the support for Turbo Pascal extensions is turned on.\n */\n boolean isUsingTPExtension();\n\n /**\n * Reutnrs the root node of the last parsed source.\n */\n RootNode getRootNode();\n\n}", "public OnionooParser() {\n\n\t}", "public static SPARQLResult make(InputStream in, Model model)\n {\n return new XMLInputSAX(in, model) ;\n }", "public interface Parseable\n{\n\n /**\n * Returns a new {@link GTIParser}.\n * \n * @param gtiScanner The input {@link GTIScanner}.\n * @return A new {@link GTIParser}.\n * @see Parseable#newParser(GTIScanner)\n */\n public GTIParser newParser ( GTIScanner gtiScanner );\n\n\n /**\n * Returns a new {@link GTIParser}.\n * \n * @param pText The input {@link String}.\n * @return A new {@link GTIParser}.\n * @see Parseable#newParser(String)\n */\n public GTIParser newParser ( String pText );\n\n\n /**\n * Returns a new {@link GTIScanner}.\n * \n * @param text The input {@link String}.\n * @return A new {@link GTIScanner}.\n * @see Parseable#newScanner(String)\n */\n public GTIScanner newScanner ( String text );\n}", "@Deprecated\n/* */ public JsonParser createJsonParser(String content)\n/* */ throws IOException, JsonParseException\n/* */ {\n/* 1057 */ return createParser(content);\n/* */ }", "protected Parser getParser() {\n\t\treturn myParser;\n\t}" ]
[ "0.8099596", "0.76777565", "0.73237854", "0.7163883", "0.67222655", "0.66409624", "0.65570307", "0.6510395", "0.6459982", "0.635931", "0.62885445", "0.62720203", "0.61467546", "0.60857487", "0.6077171", "0.6028884", "0.59805995", "0.59389734", "0.59223336", "0.59162515", "0.59057486", "0.58749527", "0.58578354", "0.58332825", "0.5832818", "0.58038324", "0.5749269", "0.57279575", "0.57276154", "0.5717706", "0.5714633", "0.5704911", "0.5696231", "0.5677682", "0.56575376", "0.564707", "0.5640514", "0.56262183", "0.56256914", "0.5621448", "0.56038713", "0.5603679", "0.55963457", "0.55935115", "0.55931294", "0.55801183", "0.5572343", "0.5543668", "0.55367166", "0.5535556", "0.5528572", "0.55099106", "0.54961723", "0.54840004", "0.54735327", "0.54735327", "0.54735327", "0.54735327", "0.54735327", "0.54735327", "0.54735327", "0.54735327", "0.5472158", "0.5469642", "0.5453844", "0.5449548", "0.54343665", "0.54343665", "0.54343665", "0.54343665", "0.54343665", "0.54343665", "0.54181397", "0.541782", "0.53968114", "0.5386005", "0.53786844", "0.53608066", "0.5353334", "0.5347313", "0.5335588", "0.532939", "0.5329342", "0.53268534", "0.532022", "0.5316276", "0.53049135", "0.52732724", "0.5271921", "0.5263134", "0.52274495", "0.5220615", "0.5214211", "0.52099574", "0.52044296", "0.52012473", "0.5200941", "0.5199044", "0.5179818", "0.5179191" ]
0.7873216
1
Test case with an empty program. This throws an exception because it lacks an identifier and a block
@Test public void testEmpty() throws LexicalException, SyntaxException { String input = ""; //The input is the empty string. thrown.expect(SyntaxException.class); PLPParser parser = makeParser(input); @SuppressWarnings("unused") Program p = parser.parse(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testEmpty() throws LexicalException, SyntaxException {\n\t\tString input = \"\"; // The input is the empty string. This is not legal\n\t\tshow(input); // Display the input\n\t\tScanner scanner = new Scanner(input).scan(); // Create a Scanner and initialize it\n\t\tshow(scanner); // Display the Scanner\n\t\tSimpleParser parser = new SimpleParser(scanner); // Create a parser\n\t\tthrown.expect(SyntaxException.class);\n\t\ttry {\n\t\t\tparser.parse(); // Parse the program\n\t\t} catch (SyntaxException e) {\n\t\t\tshow(e);\n\t\t\tthrow e;\n\t\t}\n\t}", "@Test\r\n\tpublic void testEmpty() throws LexicalException, SyntaxException {\r\n\t\tString input = \"\"; //The input is the empty string. \r\n\t\tParser parser = makeParser(input);\r\n\t\tthrown.expect(SyntaxException.class);\r\n\t\tparser.parse();\r\n\t}", "TestFirstBlock createTestFirstBlock();", "CommandBlock getCaseEmpty();", "@Test\n\tpublic void testMain() {\n\t\t// TODO: test output streams for various IO methods, emulating a user's\n\t\t// input - kinda like Joel did for CSSE2310\n\t\tAssert.fail();\n\t}", "public void testEmptyFileAfterTypingLambdaParam() throws Exception {\n performTest(\"SimpleLambdaExpressionStart\", 1004, \"t.test(s \", \"empty.pass\", \"1.8\");\n }", "@Test\n public void AppNoParams() {\n try{\n App.main(new String[]{});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Insufficient arguments given. Needs [input file] [# processors]\");\n }\n }", "@Test(expected = MissingArgumentException.class)\n\tpublic void testMainEmptyParameters() throws Exception {\n\t\tString[] arguments = new String[0];\n\t\tAutomaticMowerMain.main(arguments);\n\t}", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n String[] stringArray0 = new String[0];\n Evaluation.main(stringArray0);\n assertEquals(0, stringArray0.length);\n }", "void program() {\n\n }", "@Test\n public void testMain() throws Exception {\n //main function cannot be tested as it is dependant on user input\n System.out.println(\"main\");\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = errorPage0.placeholder((String) null);\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Block_1\", block0.getComponentId());\n }", "private Main()\n {{\n System.err.println ( \"Internal error: \"+\n\t \"unexpected call to default constructor for Main.\" );\n System.exit(-127);\n }}", "@Test\r\n\tpublic void mainTest(){\r\n\t\tMain m = new Main();\r\n\t\tm.main(null);\r\n\t}", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n GOL_Main.main(args);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(52);\n simpleNode0.setIdentifier(\"`n\\tw8u)!WbK\");\n JavaParser javaParser0 = new JavaParser(\"0]-8Ixwh1I\\\"\");\n boolean boolean0 = false;\n try { \n javaParser0.ClassOrInterfaceBody(false);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Parse error at line 1, column 0. Encountered: <EOF>\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParser\", e);\n }\n }", "public void testGetBlock_NoBlock() throws Exception {\n try {\n dao.getBlock(1);\n fail(\"EntryNotFoundException expected\");\n } catch (EntryNotFoundException e) {\n // should land here\n }\n }", "@Test\r\n public void testMain() {\r\n System.out.println(\"main\");\r\n String[] args = null;\r\n Prog4.main(args);\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 }", "public static void main()\n\t{\n\t}", "public static void main(String[] ignored) {\n new TestIssue1125().start();\n }", "public boolean blockEmpty()\r\n/* 72: */ {\r\n/* 73: 60 */ return false;\r\n/* 74: */ }", "TeststepBlock createTeststepBlock();", "private ThoseMain()\n {\n // Do nothing\n }", "private static void sample1() {\n\t\tIComputer computer = new Computer();\n\t\tcomputer.setProgram(\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0x71,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xc1,\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xff);\n\t\tTestContext context = new TestContext(\n\t\t (byte) 0xa1, (byte) 0x9b, (byte) 0x3c);\n\t\tcomputer.run(context);\n\t\tSystem.out.println(context.outputToString());\n\t}", "final public void block() throws ParseException {\n jj_consume_token(35);\n jj_consume_token(BLOCK);\n label_3:\n while (true) {\n if (jj_2_35(4)) {\n ;\n } else {\n break label_3;\n }\n jj_consume_token(34);\n }\n if (jj_2_36(4)) {\n command(salidaS);\n } else {\n ;\n }\n basicCommand();\n jj_consume_token(36);\n }", "private Main() {\r\n throw new IllegalStateException();\r\n }", "protected void program() {\n m_errorHandler.startNonT(NonT.PROGRAM);\n match(TokenCode.CLASS);\n match(TokenCode.IDENTIFIER);\n match(TokenCode.LBRACE);\n variableDeclarations();\n if (m_errorHandler.errorFree()) {\n m_generator.generate(TacCode.GOTO, null, null, new SymbolTableEntry(\"main\"));\n }\n methodDeclarations();\n match(TokenCode.RBRACE);\n m_errorHandler.stopNonT();\n if (m_errorHandler.errorFree()) {\n m_generator.print();\n }\n }", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n SServer.main(args);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public static void dummyTest(){}", "public static void dummyTest(){}", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"e}\");\n Frame frame0 = new Frame();\n int[] intArray0 = new int[3];\n frame0.inputStack = intArray0;\n ClassWriter classWriter0 = new ClassWriter(0);\n int[] intArray1 = new int[1];\n intArray1[0] = 2;\n frame0.inputLocals = intArray1;\n classWriter0.newClassItem(\"JSR/RET are not supported with computeFrames option\");\n Item item0 = classWriter0.newLong(0);\n // Undeclared exception!\n try { \n frame0.execute(165, (-4949), classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public T caseProgram(Program object)\n {\n return null;\n }", "public T caseProgram(Program object)\n {\n return null;\n }", "@Test\n public void main() {\n System.out.println(\"main\");\n String[] args = null;\n SaalHelper.main(args);\n }", "@Test public void test_1() throws Exception {\n run.Main v1=new run.Main();\n /**BUG FOUND: RUNTIME EXCEPTION**/ // time:1355223203386\n /**YETI EXCEPTION - START \n java.lang.NullPointerException\n \tat run.Main.printBoard(Main.java:145)\n \tat run.Main.<init>(Main.java:20)\n YETI EXCEPTION - END**/ \n /** original locs: 2 minimal locs: 1**/\n \n }", "@Test\n\tvoid testExitCarForGivenSlotNumberAndSlotIsAreadyEmptySlotThenReturnFalse() {\n\t\tint totalSlots = 1;\n\t\tParkingArea parkingArea = new ParkingArea(totalSlots); \n\t\tint exitSlot = 1;\n\t\t\n\t\t//When: Method parkCar is executed\n\t\tboolean isExit = parkingArea.exitCar(exitSlot);\n\t\t\n\t\t//Then: Verify isExit status as false\n\t\tassertEquals(false, isExit);\n\t}", "public void clickFirstProgram() throws ParseException;", "@Test\n public void testBlock() {\n System.out.println(\"block\");\n //instance.block();\n }", "public void testInvalid() {\n\t\tassertNotNull(\"Should have compiler available (for testing to be available)\", this.compiler);\n\t}", "public static void main(String[] args) {\n\r\n // action\r\n // - nothing\r\n\r\n // check\r\n // - nothing\r\n }", "@Test\n public void main() {\n MainApp.main(new String[] {});\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n SystemInUtil.addInputLine(\"Sc\");\n JSPredicateForm jSPredicateForm0 = new JSPredicateForm((String) null);\n StringReader stringReader0 = new StringReader(\"r<'c)sk5oce,bri\");\n stringReader0.close();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n SystemInUtil.addInputLine(\"Predicateform.print(): 0 elements\");\n // Undeclared exception!\n try { \n jSPredicateForm0.JSPredicateFormInit(streamTokenizer0);\n fail(\"Expecting exception: System.SystemExitException\");\n \n } catch(System.SystemExitException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.System\", e);\n }\n }", "@Test\n public void testgetArgumentsWithNoArguments() {\n interpreterInstance.interpret(\"cd \");\n List<String> testList = interpreterInstance.getArguments();\n assertTrue(testList.isEmpty());\n }", "@Test\r\n public void testMain() {\r\n System.out.println(\"main\");\r\n String[] args = null;\r\n try{\r\n WinnerScreen.main(args);\r\n }catch(Exception e){\r\n //catches error that happens sometimes for unknown reason\r\n }\r\n }", "@Test\n public void test075() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.script();\n }", "@Test(groups = { \"Interactive\" })\n public void troubleCases() {\n String defaultBlocks = \"[[1,1,1,\\\"Green\\\",[\\\"S\\\"]],[1,1,2,\\\"Green\\\",[]],[1,1,3,\\\"Green\\\",[]],[1,1,4,\\\"Green\\\",[]]]\";\n ContextValue context = getContext(defaultBlocks);\n LogInfo.begin_track(\"troubleCases\");\n runFormula(executor, \"(:s (: select *) (: select (or (call veryx top this) (call veryx bot this))))\", context,\n selectedSize(2));\n runFormula(executor, \" (: select (or (call veryx top (color green)) (call veryx bot (color green))))\", context,\n selectedSize(2));\n runFormula(executor, \" (: select (and (call veryx top (color green)) (call veryx bot (color green))))\", context,\n selectedSize(0));\n runFormula(executor, \" (: select (call adj top this))\", context, selectedSize(1));\n LogInfo.end_track();\n }", "public void runProgram()\n\t{\n\t\tintro();\n\t\tfindLength();\n\t\tguessLetter();\n\t\tguessName();\n\t}", "@Test\n public void main() {\n // App.main(null);\n // assertEquals(\"Hello world\", outContent.toString());\n }", "@Test\n public void testMain() {\n String simulatedUserInput = \"100AUD\" + System.getProperty(\"line.separator\")\n + \"1\" + System.getProperty(\"line.separator\");\n\n InputStream savedStandardInputStream = System.in;\n System.setIn(new ByteArrayInputStream(simulatedUserInput.getBytes()));\n\n mainFunction mainfunc = new mainFunction();\n\n try {\n mainfunc.start();\n } catch(Exception e) {\n System.out.println(\"Exception!\");\n }\n\n assertEquals(1,1);\n }", "public void Main(){\n }", "@Test\t\n\tpublic void testMain() {\n\n\t\tSystem.out.println(\"hello\");\n\t}", "public static void main() {\n }", "@Test\n void test() throws IOException {\n Lox.runFile(NIL_TEST_FILE_DIR + \"literal.lox\");\n LoxTestUtil.assertHasNoErrors();\n assertLineEquals(\"nil\");\n }", "@Test\n\tpublic void testStartTestNotValid() throws InterruptedException, IOException {\n\t\twriter.getBuffer().setLength(0);\n\t\tRobotFrameworkDebugContext rootContext = new RobotFrameworkDebugContext();\n\t\trootContext.setContextType(ContextType.KEYWORD);\n\t\tdebugger.getContextStack().push(rootContext);\n\t\tdebugger.startTest(\"test2\",null);\n\t\tassertTrue(writer.toString(), writer.toString().contains(RobotFrameworkDebugger.LOG_EXPECTED_TEST_CASE_OBJECT));\n\t\twriter.getBuffer().setLength(0);\t\t\n\t}", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n CashRegister.main(args);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void emptyAssemblyLineTest() {\n\t\tfor(Workstation ws : assemblyLine.getWorkstations() ) {\n\t\t\tassertTrue(ws.isReady());\n\t\t}\n\t\tassertTrue(assemblyLine.isReadyToAdvance());\n\t}", "@Test\n\tpublic void testMainValidFile() throws Exception {\n\t\tString testPathResource = System.getProperty(\"user.dir\") + \"/src/test/resources/instructions-file\";\n\t\tString[] arguments = { testPathResource };\n\t\tAutomaticMowerMain.main(arguments);\n\t}", "public static void main() {\n \n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"ExplicitConstructorInvocation\");\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"kJE)^_[p5}UU=D\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n SimpleNode simpleNode0 = new SimpleNode(0);\n simpleNode0.identifiers = null;\n // Undeclared exception!\n try { \n simpleNode0.toString();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.SimpleNode\", e);\n }\n }", "@Test(groups = {\"unreachable\"})\n\tpublic void testUnreachableNestedBraceless()\n\t{\n\t\tString[] src = {\n\t\t\t\"(function() {\",\n\t\t \" var x;\",\n\t\t \" if (!x)\",\n\t\t \" return function() {\",\n\t\t \" if (!x) x = 0;\",\n\t\t \" return;\",\n\t\t \" };\",\n\t\t \" return;\",\n\t\t \"}());\"\n\t\t};\n\t\t\n\t th.test(src);\n\t}", "public static void main(String[] args) {\n\t\tnew BlockCheck();\n\t}", "public void main(){\n }", "public static void main(String[] args) {\n\t\tTestProgram et = new TestProgram();\n\t\tet.Slotmachine();\n\t}", "@Test\n public void test042() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.sup();\n }", "@Test(timeout = 4000)\n public void test051() throws Throwable {\n ErrorHandler errorHandler0 = ErrorHandler.getDefault();\n // Undeclared exception!\n try { \n DBUtil.runScript(\"|O\", \"f[]zOYE\", '1', (Connection) null, true, errorHandler0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Resource not found: |O\n //\n verifyException(\"org.databene.commons.IOUtil\", e);\n }\n }", "@Override\n public void run(String... args) throws Exception {\n this.exercise6();\n }", "public static void main(String[] args) {\n\t\tinvalidInput();\n\n\t}", "TestBlock createTestBlock();", "public void testAddBlock_NoGame() throws Exception {\n try {\n dao.addBlock(1, 1);\n fail(\"EntryNotFoundException expected\");\n } catch (EntryNotFoundException e) {\n // should land here\n }\n }", "protected static Block createEmptyBlock(AST ast) {\n\t\treturn ast.newBlock();\n\t}", "@Test\n public void AppProcNumError() {\n try{\n App.main(new String[]{TEST_PATH + \"input.dot\",\"yes\"});\n }catch(RuntimeException re){\n assertEquals(re.getMessage(),\"Invalid number of processors\");\n }\n }", "@Test\r\n public void testMain() {\r\n System.out.println(\"main\");\r\n String[] args = null;\r\n ChessMain.main(args);\r\n // TODO review the generated test code and remove the default call to fail.\r\n \r\n }", "@Ignore\n\t@Test\n\tpublic void test() throws IOException {\n\n\t\tClient.main(new String[] {\"localhost\", \"6700\"});\n\n\t\tSystem.out.println(\"free\");\n\t\tSystem.out.println(\"in\");\n\t\tSystem.out.println(\"in\");\n\t\tSystem.out.println(\"free\");\n\t\tSystem.out.println(\"out\");\n\t\tSystem.out.println(\"free\");\n\n\t}", "public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n SVV01.main(args);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "private static void sample2() {\n\t\tIComputer computer = new Computer();\n\t\tcomputer.setProgram(\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0xff,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xc1,\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xff);\n\t\tTestContext context = new TestContext(\n\t\t (byte) 0xa1, (byte) 0x9b, (byte) 0x3c);\n\t\tcomputer.run(context);\n\t\tSystem.out.println(context.outputToString());\n\t}", "protected void assertNoTESpec() {\n\t\tassertFalse(\"A TE spec was generated, but it shouldn't\", \n\t\t\trecorder.recorded(EC.TLC_TE_SPEC_GENERATION_COMPLETE));\n\t}", "private void assertSyntax(String snippet) {\n try {\n Lexer lexer = new Lexer(new StringReader(snippet));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n assertNotNull(node);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }", "@Test\n\t\tpublic void woeIsMeUnreachabletest() {\n\t\t\tassertTrue(System.currentTimeMillis() > 0);\n\t\t}", "@Test\r\n\tpublic void arenaHasNoFightersAtStart() {\r\n\t\tSystem.out.println(\"+++++arenaIsEmptyAtStart++++++\");\r\n\t\tArena arena = new Arena();\r\n\t\tassertTrue(arena.isEmpty());\r\n\t}", "public static void main(String[] ignored) {\n System.exit(textui.runClasses(make.UnitTest.class));\n }", "Program createProgram();", "Program createProgram();", "Program createProgram();", "@Test public void gracefullyEndsForEmptyInputs() {\n\t\tAssert.assertNotNull(parser.parse(new String[0], new CliOptions()));\n\t}", "Program program() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tToken progName = match(IDENTIFIER);\r\n\t\tBlock block = block();\r\n\t\treturn new Program (first, progName, block);\r\n\t}", "public void quit(String dummy) {\n System.exit(1);\n }", "@Test\n public void test029() throws Throwable {\n Radio radio0 = new Radio((Component) null, \"usePrevSequences\", \"usePrevSequences\");\n // Undeclared exception!\n try {\n Block block0 = radio0.placeholder(\"usePrevSequences\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // No top level component found.\n //\n }\n }", "public static void main(){\n\t}", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n StringReader stringReader0 = new StringReader(\"AssertStatement\");\n JavaParser javaParser0 = new JavaParser(stringReader0);\n int int0 = (-505);\n javaParser0.InclusiveOrExpression();\n try { \n javaParser0.ClassOrInterfaceBody(false);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Parse error at line 1, column 15. Encountered: <EOF>\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParser\", e);\n }\n }", "public void TestMain(){\n SampleStatements();\n TestMyPow();\n }", "@Test\n public void test0() throws Throwable {\n MovementBlockType2__Basic movementBlockType2__Basic0 = new MovementBlockType2__Basic();\n movementBlockType2__Basic0.event_INIT(true);\n movementBlockType2__Basic0.event_CLK(true);\n movementBlockType2__Basic0.event_FAULT();\n }", "@Test\n public void testReportIteration_noIterationSet() throws Throwable {\n ArgumentCaptor<Description> captor = ArgumentCaptor.forClass(Description.class);\n RunNotifier notifier = mock(RunNotifier.class);\n mRunner = spy(new LongevityClassRunner(NoOpTest.class));\n mRunner.run(notifier);\n verify(notifier).fireTestStarted(captor.capture());\n Assert.assertFalse(\n \"Description class name should not contain the iteration number.\",\n captor.getValue()\n .getClassName()\n .matches(\n String.join(\n LongevityClassRunner.ITERATION_SEP_DEFAULT,\n \"^.*\",\n \"[0-9]+$\")));\n }", "@TestProperties(name = \"5.2.4.22 press add test, when no test is selected\")\n\tpublic void testAddTestWithNoTestSelected() throws Exception{\n\t\tjsystem.launch();\n\t\tString scenarioName = jsystem.getCurrentScenario();\n\t\tScenarioUtils.createAndCleanScenario(jsystem, scenarioName);\n\t\tjsystem.addTest(\"testShouldPass\", \"GenericBasic\", true);\n\t\tjsystem.moveCheckedToScenarioTree();\n\t\tjsystem.play();\n\t\tjsystem.waitForRunEnd();\n\t\tjsystem.checkNumberOfTestsPass(1);\n\t\tjsystem.checkNumberOfTestExecuted(1);\n\t}", "@Test\r\n\tpublic void testMakePurchase_empty_slot() {\r\n\t\tassertEquals(false, vendMachine.makePurchase(\"D\"));\r\n\t}", "@Test (expected = Exception.class)\n\tpublic void testEmptySIFChord() throws Exception{\n\t\tnew Chord(1, \"\");\n\t}", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n MainWindow1.main(args);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void test064() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.ins();\n }", "@Test\n public void testBareRun() throws IOException {\n String[] args = new String[]{\"example/runs/test_n2_bare.properties\"};\n MainFromProperties.main(args);\n\n // Fetch log mappings\n Map<Pair<Integer, Integer>, TestLogReader.PortUtilizationTuple> portQueueStateTupleMap = TestLogReader.getPortUtilizationMapping(\"temp/test_n2_bare\");\n Map<Long, TestLogReader.FlowCompletionTuple> flowCompletionTupleMap = TestLogReader.getFlowCompletionMapping(\"temp/test_n2_bare\");\n\n // Flow completion\n TestLogReader.FlowCompletionTuple tuple = flowCompletionTupleMap.get(0L);\n assertEquals(50000, tuple.getEndTime());\n assertFalse(tuple.isCompleted());\n assertEquals(50000, tuple.getDuration());\n assertEquals(55200, tuple.getSentBytes());\n assertEquals(1000000000L, tuple.getTotalSizeBytes());\n\n // Sent one pa\n\n // Port utilization\n\n // 0 -> 1\n assertEquals(100.0, portQueueStateTupleMap.get(new ImmutablePair<>(0, 1)).getUtilizationPercentage(), 1e-6);\n assertEquals(50000, portQueueStateTupleMap.get(new ImmutablePair<>(0, 1)).getUtilizationNs());\n\n // 1 -> 0\n //assertEquals((5*48) / 9479.0 * 100.0, portQueueStateTupleMap.get(new Pair<>(1, 0)).getUtilizationPercentage(), 1e-6);\n //assertEquals((5*48), portQueueStateTupleMap.get(new Pair<>(1, 0)).getUtilizationNs());\n\n }", "@Test\n public void smartIdEmptyCode() throws Exception {\n String errorMessage = authenticateWithSmartIdInvalidInputPollError(\"\", 2000);\n assertEquals(\"Isikukood puuduIntsidendi number:\", errorMessage);\n }", "public Main() {\r\n }" ]
[ "0.6601053", "0.60467184", "0.5977557", "0.59549534", "0.59354067", "0.58828574", "0.5849392", "0.5810136", "0.58007336", "0.57763404", "0.5770832", "0.5763556", "0.5761509", "0.57517534", "0.5726613", "0.56854093", "0.56763315", "0.5638715", "0.56382585", "0.56302965", "0.5620972", "0.5619584", "0.56114036", "0.56015146", "0.5595106", "0.557493", "0.55600494", "0.55168474", "0.55010164", "0.55010164", "0.55002654", "0.5485224", "0.5485224", "0.54828703", "0.5480449", "0.5480034", "0.5478466", "0.5476434", "0.54554117", "0.545155", "0.54493207", "0.5447277", "0.5446149", "0.54401636", "0.5429438", "0.5425624", "0.5421231", "0.5416894", "0.5416004", "0.54140973", "0.5406003", "0.5405483", "0.5404654", "0.54027325", "0.54013216", "0.53892416", "0.538707", "0.5370463", "0.53692496", "0.53659964", "0.53632003", "0.53520095", "0.5340909", "0.53394634", "0.5339183", "0.5339039", "0.53329265", "0.53303623", "0.5327429", "0.53272057", "0.5320746", "0.53187054", "0.53145546", "0.531363", "0.5309776", "0.5306935", "0.5303969", "0.5300993", "0.52958643", "0.5293419", "0.52930105", "0.52930105", "0.52930105", "0.5289752", "0.52885556", "0.528746", "0.52856857", "0.52836496", "0.5281657", "0.5278706", "0.5276123", "0.52757585", "0.5274207", "0.5273607", "0.5272594", "0.5269446", "0.5255209", "0.5252544", "0.52443326", "0.5239407" ]
0.674215
0
Utility method to check if an element of a block at an index is a declaration with a given type and name.
Declaration checkDec(Block block, int index, Kind type, String name) { PLPASTNode node = block.declarationsAndStatements(index); assertEquals(VariableDeclaration.class, node.getClass()); VariableDeclaration dec = (VariableDeclaration) node; assertEquals(type, dec.type); assertEquals(name, dec.name); return dec; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TypeDefinition isType(String name){\n return((TypeDefinition)typeDefs.get(getDefName(name)));\n }", "public static boolean declarationType(FileInputStream f){\n if(observer != null){\n observer.parser.setCurrentRule(\"declarationType\", true);\n }\n CToken t = new CToken();\n\n //DataType\n if(!dataType(f)){\n return false;\n }\n if(observer != null){\n observer.parser.setCurrentRule(\"declarationType\", true);\n }\n t = CScanner.getNextToken(f);\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n //Identifier\n if (!t.type.equals(\"Identifier\")) {\n System.err.format(\"Syntax Error: In rule DeclarationType unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0);\n }\n if(observer != null){\n observer.parser.setCurrentRule(\"declarationType\", false);\n }\n return true;\n }", "@Override\n\tpublic void check(Block curScope, Library lib) {\n\t\tSystem.out.println(\"here typename\"+name+ \" \"+lineNum);\n\t\tPascalDecl d2 = curScope.findDecl(name,this);\n\t\t \n\t\t\n\t\t\n\t\t\n\t\n\n\n\t}", "public boolean hasName() {\n return typeDeclaration.hasName();\n }", "public boolean visit(\n \t\tTypeDeclaration localTypeDeclaration,\n \t\tBlockScope scope) {\n \t\treturn false;\n \t}", "public boolean typeCheck(){\n\treturn myDeclList.typeCheck();\n }", "private static boolean shouldRunTypeCompletionOnly(PsiElement position, JetSimpleNameReference jetReference) {\n JetTypeReference typeReference = PsiTreeUtil.getParentOfType(position, JetTypeReference.class);\n if (typeReference != null) {\n JetSimpleNameExpression firstPartReference = PsiTreeUtil.findChildOfType(typeReference, JetSimpleNameExpression.class);\n return firstPartReference == jetReference.getExpression();\n }\n\n return false;\n }", "public boolean isThisType(String name) {\n // Since we can't always determine it from the name alone (blank\n // extensions), we open the file and call the block verifier.\n long len = new File(name).length();\n int count = len < 16384 ? (int) len : 16384;\n byte[] buf = new byte[count];\n try {\n FileInputStream fin = new FileInputStream(name);\n int read = 0;\n while (read < count) {\n read += fin.read(buf, read, count-read);\n }\n fin.close();\n return isThisType(buf);\n }\n catch (IOException e) {\n return false;\n }\n }", "private boolean isDeclaration() throws IOException\n\t{\t\n\t\treturn isGlobalDeclaration();\n\t}", "boolean isHeader(int position);", "private boolean isTypeExists(Context context, String typeName) throws Exception\r\n {\r\n boolean typeExists = false;\r\n //String command = \"temp query bus '\" + typeName + \"' * *\";\r\n String command = \"temp query bus $1 $2 $3\";\r\n\r\n String result = MqlUtil.mqlCommand(context, command,typeName,\"*\",\"*\");\r\n if (result != null && !result.isEmpty())\r\n {\r\n typeExists = true;\r\n }\r\n return typeExists;\r\n }", "public void testInScriptDeclaringType() throws Exception {\n String contents = \n \"other\\n\";\n int start = contents.lastIndexOf(\"other\");\n int end = start + \"other\".length();\n assertDeclaringType(contents, start, end, \"Search\", false, true);\n }", "public boolean typeCheck(){\n\tboolean result = true;\n\tfor(DeclNode node : myDecls){\n\t if(node instanceof FnDeclNode){\n\t\tif(((FnDeclNode)node).typeCheck() == false){\n\t\t result = false;\n\t\t}\n\t }else{\n\t\tcontinue;\n\t }\n\t}\n\treturn result;\n }", "static boolean declaredIdentifier(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"declaredIdentifier\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = declaredIdentifier_0(b, l + 1);\n r = r && declaredIdentifier_1(b, l + 1);\n r = r && finalConstVarOrTypeAndComponentName(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public boolean isMasonNamedBlock() {\r\n\t\treturn specialTag==SpecialTag.MASON_NAMED_BLOCK;\r\n\t}", "boolean containsHeader(String name);", "public boolean isDocTypeDeclaration() {\r\n\t\treturn name==Tag.DOCTYPE_DECLARATION;\r\n\t}", "public boolean ifPeekIsBlockStmt() {\n\t\tif (ifPeek(\"IF_\")) {\n\t\t\treturn true;\n\t\t}\n\t\tif (ifPeek(\"WHILE_\")) {\n\t\t\treturn true;\n\t\t}\n\t\tif (ifPeek(\"FOR_\")) {\n\t\t\treturn true;\n\t\t}\n\t\t// **************\n\t\t// TODO\n\t\tif (ifPeekIsType()) {\n\t\t\treturn true;\n\t\t}\n\t\t// ***************\n\t\tif (ifPeek(\"RETURN_\")) {\n\t\t\treturn true;\n\t\t}\n\t\tif (ifPeek(\"BREAK_\")) {\n\t\t\treturn true;\n\t\t}\n\t\tif (ifPeek(\"CONT_\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "public boolean isThisType(byte[] block) {\n return block.length >= 8 && block[0] == 0 && block[1] == 0 &&\n block[2] == -1 && block[3] == -1 && block[4] == 105 &&\n block[5] == 109 && block[6] == 112 && block[7] == 114;\n }", "private boolean isParameterDeclaration() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isTypeMark()) \n\t\t{\n\t\t\ttheSymbolTable.CURR_SYMBOL.addParameterTypes(theCurrentToken.TokenType);\n\t\t\tupdateToken();\n\t\t\t\n\t\t\tif(theCurrentToken.TokenType == TokenType.IDENTITY)\n\t\t\t{\n\t\t\t\ttheSymbolTable.CURR_SYMBOL.addParameters(theCurrentToken.TokenValue);\n\t\t\t\n\t\t\t\tif(theNextToken.TokenType == TokenType.LEFT_BRACKET)\n\t\t\t\t{\n\t\t\t\t\tupdateToken();\n\t\t\t\t\tif(isBoundStatement())\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\t\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "private boolean peek(int index, TokenType expectedType) {\n return peekType(index) == expectedType;\n }", "void checkType(int i, DataType.Name name) {\n DataType defined = getType(i);\n if (name != defined.getName())\n throw new InvalidTypeException(String.format(\"Column %s is of type %s\", getName(i), defined));\n }", "boolean contains(String type) {\n for (ASTNode child : children) {\n if (child.getType().equals(type)) return true;\n }\n\n return false;\n }", "public ContainsNamedTypeChecker(String name) {\n myNames.add(name);\n }", "private boolean check(TokenType tokType) {\r\n if(tokens.get(position).returnType() != tokType) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean ifPeekIsStmt() {\n\t\tif (ifPeek(\"IF_\")) {\n\t\t\treturn true;\n\t\t}\n\t\tif (ifPeek(\"WHILE_\")) {\n\t\t\treturn true;\n\t\t}\n\t\tif (ifPeek(\"FOR_\")) {\n\t\t\treturn true;\n\t\t}\n\t\t// **************\n\t\t// TODO\n\t\tif (ifPeek(\"ID_\")) {\n\t\t\treturn true;\n\t\t}\n\t\t// ***************\n\t\tif (ifPeek(\"RETURN_\")) {\n\t\t\treturn true;\n\t\t}\n\t\tif (ifPeek(\"BREAK_\")) {\n\t\t\treturn true;\n\t\t}\n\t\tif (ifPeek(\"CONT_\")) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean has_declaration_list();", "private static boolean incompleteDeclaration_0_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"incompleteDeclaration_0_1\")) return false;\n while (true) {\n int c = current_position_(b);\n if (!incompleteDeclaration_0_1_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"incompleteDeclaration_0_1\", c)) break;\n }\n return true;\n }", "private boolean check(TokenType type) {\n return !isAtEnd() && peek().type == type;\n }", "public boolean visit(VariableDeclarationStatement node) {\n\t\tASTNode parent = node.getParent();\r\n\t\twhile (!(parent instanceof TypeDeclaration)) {\r\n\t\t\tparent = parent.getParent();\r\n\t\t}\r\n\t\tTypeDeclaration td = (TypeDeclaration) parent;\r\n\t\tString target = getTypeFullValid(node.getType().toString());\r\n\t\tString origin = getTypeFullValid(td.getName().toString());\r\n\t\tif (origin != null && target != null && !origin.equals(target)) {\r\n\t\t\tputInMap(origin, target, mapDependency);\r\n\t\t}\r\n\t\treturn false; // do not continue to avoid usage info\r\n\t}", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/include/clang/AST/DeclTemplate.h\", line = 2806,\n FQN=\"clang::VarTemplateDecl::isThisDeclarationADefinition\", NM=\"_ZNK5clang15VarTemplateDecl28isThisDeclarationADefinitionEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclTemplate.cpp -nm=_ZNK5clang15VarTemplateDecl28isThisDeclarationADefinitionEv\")\n //</editor-fold>\n public boolean isThisDeclarationADefinition() /*const*/ {\n return (getTemplatedDecl().isThisDeclarationADefinition().getValue() != 0);\n }", "private boolean isVariableDeclaration(boolean aGlobal) throws IOException\n\t{\n\t\t// Initialize return value to false.\n\t\tboolean isValid = false;\n\t\t\n\t\tif(aGlobal)\n\t\t{\n\t\t\ttheSymbolTable.UpdateScopeForGlobal();\n\t\t}\n\t\t\n\t\tif(isTypeMark())\n\t\t{\n\t\t\ttheSymbolTable.CURR_SYMBOL.setType(theCurrentToken.TokenType);\n\t\t\t\n\t\t\tupdateToken();\n\t\t\tif(theCurrentToken.TokenType == TokenType.IDENTITY)\n\t\t\t{\n\t\t\t\ttheSymbolTable.AddToScopeKey(theCurrentToken.TokenValue);\n\t\t\t\ttheSymbolTable.CURR_SYMBOL.setLineNumber(theCurrentToken.TokenLineNumber);\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif(theNextToken.TokenType == TokenType.LEFT_BRACKET)\n\t\t\t\t\t{\n\t\t\t\t\t\tupdateToken();\n\t\t\t\t\t\tif(isBoundStatement())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString aDeclaration = \n\t\t\t\t\t\t\t\t\ttheTranslator.VariableDeclarationBuilder(theSymbolTable.ReturnScopeKeyForTranslation(),\n\t\t\t\t\t\t\t\t\t\t\ttheSymbolTable.CURR_SYMBOL);\n\t\t\t\t\t\t\ttheSymbolTable.PutSymbolInTable();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(aGlobal)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttheTranslator.theGlobalDeclarationQueue.add(aDeclaration);\n\t\t\t\t\t\t\t\ttheSymbolTable.ReturnScopeForGlobal();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ttheTranslator.theCurrentBody.add(aDeclaration);\n\t\t\t\t\t\t\t\ttheSymbolTable.RemoveFromScopeKey();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tString aDeclaration = \n\t\t\t\t\t\t\t\ttheTranslator.VariableDeclarationBuilder(theSymbolTable.ReturnScopeKeyForTranslation(), \n\t\t\t\t\t\t\t\t\t\ttheSymbolTable.CURR_SYMBOL);\n\t\t\t\t\t\ttheSymbolTable.PutSymbolInTable();\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(aGlobal)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttheTranslator.theGlobalDeclarationQueue.add(aDeclaration);\n\t\t\t\t\t\t\ttheSymbolTable.ReturnScopeForGlobal();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttheTranslator.theCurrentBody.add(aDeclaration);\n\t\t\t\t\t\t\ttheSymbolTable.RemoveFromScopeKey();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\ttheLogger.LogScanError(theCurrentToken);\n\t\t\t\t\tupdateToken();\n\t\t\t\t\twhile(theNextToken != null && theNextToken.TokenType != TokenType.SEMICOLON)\n\t\t\t\t\t\tupdateToken();\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Invalid type provided.\n\t\telse if (theCurrentToken.TokenType == TokenType.IDENTITY && theNextToken.TokenType == TokenType.IDENTITY)\n\t\t{\n\t\t\ttheLogger.LogParseError(theCurrentToken);\n\t\t\twhile(theNextToken.TokenType != TokenType.SEMICOLON)\n\t\t\t\tupdateToken();\n\t\t\tisValid = true;\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "private static boolean VarDecl_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"VarDecl_1\")) return false;\n int c = current_position_(b);\n while (true) {\n if (!VarDecl_1_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"VarDecl_1\", c)) break;\n c = current_position_(b);\n }\n return true;\n }", "public TypeDefinition findInternalType(DefinitionName name){\n \treturn(internalTypeDefs.get(name));\n }", "public static boolean isBlockType(World worldIn, BlockPos pos, Block blockType)\n\t{\n\t\tBlock temp = worldIn.getBlockState(pos).getBlock();\n\t\treturn (temp == blockType);\n\t}", "public boolean isOfType(int index, JSONType type) {\n\t\tif(!has(index)) return false;\n\t\treturn JSONType.isOfType(get(index), type);\n\t}", "public final boolean isDeclared(String id)\n {\n return declarations.containsKey(id);\n }", "public void testInClassDeclaringType1() throws Exception {\n String contents = \n \"class Baz {\\n\" +\n \" def method() {\\n\" +\n \" other\\n\" +\n \" }\\n\" +\n \"}\";\n int start = contents.lastIndexOf(\"other\");\n int end = start + \"other\".length();\n assertDeclaringType(contents, start, end, \"Baz\", false, true);\n }", "public final boolean isSimpleName() {\n return (_names.length == 1);\n }", "public SchemaDefinition isSchema(String name){\n return((SchemaDefinition)schemaDefs.get(getDefName(name)));\n }", "public boolean declAlreadyDeclared(String str) {\r\n Vector vector = this.m_prefixMappings;\r\n int size = vector.size();\r\n for (int peek = this.m_contextIndexes.peek(); peek < size; peek += 2) {\r\n String str2 = (String) vector.elementAt(peek);\r\n if (str2 != null && str2.equals(str)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public abstract boolean isTypeOf(ItemType type);", "private static boolean incompleteDeclaration_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"incompleteDeclaration_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = incompleteDeclaration_0_0(b, l + 1);\n r = r && incompleteDeclaration_0_1(b, l + 1);\n r = r && type(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public void testLocalType() throws JavaModelException {\n\t\tASTNode node = buildAST(\n\t\t\t\"public class X {\\n\" +\n\t\t\t\" void foo() {\\n\" +\n\t\t\t\" /*start*/class Y {\\n\" +\n\t\t\t\" }/*end*/\\n\" +\n\t\t\t\" }\\n\" +\n\t\t\t\"}\"\n\t\t);\n\t\tIBinding binding = ((TypeDeclarationStatement) node).resolveBinding();\n\t\tassertNotNull(\"No binding\", binding);\n\t\tIJavaElement element = binding.getJavaElement();\n\t\tassertElementEquals(\n\t\t\t\"Unexpected Java element\",\n\t\t\t\"Y [in foo() [in X [in [Working copy] X.java [in <default> [in <project root> [in P]]]]]]\",\n\t\t\telement\n\t\t);\n\t\tassertTrue(\"Element should exist\", element.exists());\n\t}", "private boolean restrizione8_1()\r\n\t\t{\r\n\t\tAEIdecl idecl = this.AEIsDeclInput.get(0);\r\n\t\tString string = idecl.getName();\r\n\t\tfor (int i = 1; i < this.AEIsDeclInput.size(); i++)\r\n\t\t\t{\r\n\t\t\tAEIdecl idecl2 = this.AEIsDeclInput.get(i);\r\n\t\t\tString string2 = idecl2.getName();\r\n\t\t\tif (!string.equals(string2))\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\treturn true;\r\n\t\t}", "IIndexFragmentBinding findBinding(IASTName astName) throws CoreException;", "private boolean isTypeMark() throws IOException\n\t{\n\t\t// Initialize return value to false.\n\t\tboolean isValid = false;\n\t\t\n\t\t// Check if current token is of \"type mark\" type.\n\t\tswitch(theCurrentToken.TokenType)\n\t\t{\n\t\t\tcase INTEGER: case BOOL: case FLOAT: case CHAR: case STRING:\n\t\t\t\tisValid = true;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tisValid = false;\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "static boolean AnnotatedDecl(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AnnotatedDecl\")) return false;\n if (!nextTokenIs(b, K_DECLARE)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = VarDecl(b, l + 1);\n if (!r) r = FunctionDecl(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "@Override\n public Boolean visitDeclaration(FormScriptGrammarParser.DeclarationContext ctx) {\n DataType dataType = DataType.valueOf(ctx.type.getText());\n if (declaredVariables.get(ctx.name.getText()) != null) { // if variable already declared\n throw new IllegalArgumentException(\"Error at line: \" + ctx.name.getLine() + \":\" + ctx.name.getCharPositionInLine()\n + \" variable \" + ctx.name.getText() + \" was already previously declared!\");\n// return false; //if we wanted to return the NOTOK/false result recursively, this would be here instead of the throw\n }\n declaredVariables.put(ctx.name.getText(), dataType);\n return true;\n }", "protected void checkIsFunctionType(){\n List<Name> names = new ArrayList<Name>();\n for( Definition definition : definitions ){\n if( !definition.typedef ){\n Field field = definition.getField();\n if( field != null ){\n FieldModelNode node = field.asNode();\n if( node != null && (node.getTags().contains( Tag.USES ) || node.getTags().contains( Tag.PROVIDES ))){\n\n Type type = definition.type();\n if( type == null || type.asFunctionType() == null ){\n names.add( definition.getName() );\n }\n }\n }\n }\n }\n \n if( names.size() > 0 ){\n error( \"'\" + name + \"' must have a function type\", names );\n }\n }", "public boolean visit(SingleVariableDeclaration node) {\n\t\tASTNode parent = node.getParent();\r\n\t\twhile (!(parent instanceof TypeDeclaration)) {\r\n\t\t\tparent = parent.getParent();\r\n\t\t}\r\n\t\tTypeDeclaration td = (TypeDeclaration) parent;\r\n\t\t\r\n\t\tString target = getTypeFullValid(node.getType().toString());\r\n\t\tString origin = getTypeFullValid(td.getName().toString());\r\n\t\tif (origin != null && target != null && !origin.equals(target)) {\r\n\t\t\tputInMap(origin, target, mapDependency);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean isName() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(theNextToken.TokenType == TokenType.LEFT_BRACKET)\n\t\t{\n\t\t\tupdateToken();\n\t\t\tupdateToken();\n\t\t\tif(isExpression())\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tif(theCurrentToken.TokenType == TokenType.RIGHT_BRACKET)\n\t\t\t\t{\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(theCurrentToken.TokenType == TokenType.IDENTITY)\n\t\t{\n\t\t\tisValid = true;\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "private static boolean FunctionDecl_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"FunctionDecl_1\")) return false;\n int c = current_position_(b);\n while (true) {\n if (!FunctionDecl_1_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"FunctionDecl_1\", c)) break;\n c = current_position_(b);\n }\n return true;\n }", "private boolean ifPeekIsType() {\n\t\tif (peekToken.getType() == \"INT_\") {\n\t\t\treturn true;\n\t\t}\n\t\tif (peekToken.getType() == \"VOID_\") {\n\t\t\treturn true;\n\t\t}\n\t\tif (peekToken.getType() == \"BOOLEAN_\") {\n\t\t\treturn true;\n\t\t}\n\t\tif (peekToken.getType() == \"ID_\") {\n\t\t\treturn true;\n\t\t}\n\t\tif (peekToken.getType() == \"TYPE_\") {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isTypeAt(World worldIn, BlockPos pos, TreeOresLogs2.EnumType type)\n {\n IBlockState iblockstate = worldIn.getBlockState(pos);\n return iblockstate.getBlock() == this && iblockstate.getValue(TYPE) == type;\n }", "private static boolean findAssertions(/*@NotNull*/ TreeInfo doc) {\n if (doc.isTyped()) {\n AxisIterator iter = doc.getRootNode().iterateAxis(AxisInfo.DESCENDANT, NodeKindTest.ELEMENT);\n while (true) {\n NodeInfo node = iter.next();\n if (node == null) {\n return false;\n }\n SchemaType type = node.getSchemaType();\n if (type.isComplexType() && ((ComplexType) type).hasAssertions()) {\n return true;\n }\n }\n } else {\n return false;\n }\n }", "static boolean FirstDecl(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"FirstDecl\")) return false;\n if (!nextTokenIs(b, \"\", K_DECLARE, K_IMPORT)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = DefaultNamespaceDecl(b, l + 1);\n if (!r) r = Setter(b, l + 1);\n if (!r) r = NamespaceDecl(b, l + 1);\n if (!r) r = Import(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public static void checkElementDeclsConsistent(XSComplexTypeDecl type, XSParticleDecl particle, SymbolHash elemDeclHash, SubstitutionGroupHandler sgHandler) throws XMLSchemaException {\n/* 543 */ int pType = particle.fType;\n/* */ \n/* 545 */ if (pType == 2) {\n/* */ return;\n/* */ }\n/* 548 */ if (pType == 1) {\n/* 549 */ XSElementDecl elem = (XSElementDecl)particle.fValue;\n/* 550 */ findElemInTable(type, elem, elemDeclHash);\n/* */ \n/* 552 */ if (elem.fScope == 1) {\n/* */ \n/* 554 */ XSElementDecl[] subGroup = sgHandler.getSubstitutionGroup(elem);\n/* 555 */ for (int j = 0; j < subGroup.length; j++) {\n/* 556 */ findElemInTable(type, subGroup[j], elemDeclHash);\n/* */ }\n/* */ } \n/* */ \n/* */ return;\n/* */ } \n/* 562 */ XSModelGroupImpl group = (XSModelGroupImpl)particle.fValue;\n/* 563 */ for (int i = 0; i < group.fParticleCount; i++) {\n/* 564 */ checkElementDeclsConsistent(type, group.fParticles[i], elemDeclHash, sgHandler);\n/* */ }\n/* */ }" ]
[ "0.57778794", "0.5750319", "0.57488143", "0.5698752", "0.56314605", "0.5545878", "0.55049765", "0.550064", "0.5481876", "0.54242486", "0.5346962", "0.5281758", "0.5281536", "0.52618474", "0.5255259", "0.52409977", "0.5224094", "0.52070904", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5202058", "0.5196485", "0.51048464", "0.5074161", "0.5064681", "0.5063492", "0.5054279", "0.50513405", "0.50211644", "0.5008792", "0.49980354", "0.499282", "0.49669355", "0.49612248", "0.49582037", "0.49352077", "0.4931125", "0.49087426", "0.49005505", "0.4894931", "0.48785284", "0.48737484", "0.48736235", "0.48717335", "0.486418", "0.4852852", "0.48427284", "0.48420382", "0.48332822", "0.48178843", "0.48178446", "0.48096", "0.48063818", "0.4790272", "0.47853404", "0.47746846", "0.47604623", "0.47509798", "0.4736521", "0.4730864", "0.47280705" ]
0.6387707
0
Test a specific grammar element by calling a corresponding parser method rather than parse. This requires that the methods are visible (not private).
@Test public void testExpression() throws LexicalException, SyntaxException { String input = "x + 2"; PLPParser parser = makeParser(input); Expression e = parser.expression(); //call expression here instead of parse show(e); assertEquals(ExpressionBinary.class, e.getClass()); ExpressionBinary b = (ExpressionBinary)e; assertEquals(ExpressionIdentifier.class, b.leftExpression.getClass());// ExpressionIdentifier left = (ExpressionIdentifier)b.leftExpression; assertEquals("x", left.name); assertEquals(ExpressionIntegerLiteral.class, b.rightExpression.getClass()); ExpressionIntegerLiteral right = (ExpressionIntegerLiteral)b.rightExpression; assertEquals(2, right.value); assertEquals(OP_PLUS, b.op); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void parseMethodIsWiredToAParser() {\n\t\tassertEquals(KILO(WATT), AbstractUnit.parse(\"kW\"));\n\t}", "static void parse() {\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n varList.add(\"0\");\r\n\r\n // Find the first lexeme\r\n lex();\r\n\r\n // Check if the tokens form a statement\r\n if(checkStatement()) {\r\n System.out.println(\"\\nGRAMMAR IS CORRECT!\");\r\n //System.out.println(grammar);\r\n }\r\n else\r\n System.out.println(\"\\nERROR - UNEXPECTED LEXEME: \\\"\" + lexeme + \"\\\"\");\r\n\r\n i = 0;\r\n j = 0;\r\n k = 0;\r\n index = 0;\r\n lex();\r\n translate();\r\n }", "private ParseTree parse(String testProgram, String parseOption) {\n CharStream input = new ANTLRInputStream(testProgram);\n Lexer lexer = new LanguageLexer(input);\n TokenStream tokens = new CommonTokenStream(lexer);\n LanguageParser parser = new LanguageParser(tokens);\n\n ParseTree result = null;\n if(parseOption.equals(\"program\")) {\n result = parser.program();\n } else if (parseOption.equals(\"stat\")) {\n result = parser.stat();\n } else { // Parse Expression.\n result = parser.expr();\n }\n\n return result;\n }", "public void parse(Lexer lex);", "Butternut(String grammar)\n\t{\n\t\tmain = selectGrammar(grammar);\n\t\ttext = \"123CAN Weldoer\".toCharArray();//new char[0];\n\t\ttree = main.parse(0);\n\t\t//experimentalParser(\"123CAN Weldoer\".toCharArray());\n\t}", "public interface Parser extends ProvidesFeedback {\n\n\t/**\n\t * Parses input provided by a given lexical analyzer\n\t * \n\t * @param lex\n\t * the lexical analyzer\n\t */\n\tpublic void parse(Lexer lex);\n\n}", "IGrammarComp getGrammar();", "@Test\n\tpublic void expression1() throws SyntaxException, LexicalException {\n\t\tString input = \"2\";\n\t\tshow(input);\n\t\tScanner scanner = new Scanner(input).scan();\n\t\tshow(scanner);\n\t\tSimpleParser parser = new SimpleParser(scanner);\n\t\tparser.expression(); // Call expression directly.\n\t}", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "public interface IParser {\n\n /**\n * Coco/R generated function. It is used to inform parser about semantic errors.\n */\n void SemErr(String str);\n\n /**\n * Coco/R generated function for parsing input. The signature was changes in parsers' frame files so that it\n * receives source argument.\n *\n * @param source source to be parsed\n */\n void Parse(Source source);\n\n /**\n * Resets the parser but not the {@link NodeFactory} instance it holds. This way it can be used multiple times with\n * storing current state (mainly identifiers table). This is useful for parsing unit files before parsing the actual\n * source.\n */\n void reset();\n\n /**\n * Returns whether there were any errors throughout the parsing of the last source.\n */\n boolean hadErrors();\n\n /**\n * Sets support for extended goto. If this option is turned on, the parser will generate {@link cz.cuni.mff.d3s.trupple.language.nodes.statement.ExtendedBlockNode}s\n * instead of {@link cz.cuni.mff.d3s.trupple.language.nodes.statement.BlockNode}s.\n */\n void setExtendedGoto(boolean extendedGoto);\n\n /**\n * Returns true if the support for Turbo Pascal extensions is turned on.\n */\n boolean isUsingTPExtension();\n\n /**\n * Reutnrs the root node of the last parsed source.\n */\n RootNode getRootNode();\n\n}", "public interface Expression {\n \n enum ExpressivoGrammar {ROOT, SUM, PRODUCT, TOKEN, PRIMITIVE_1, PRIMITIVE_2, \n NUMBER, INT, DECIMAL, WHITESPACE, VARIABLE};\n \n public static Expression buildAST(ParseTree<ExpressivoGrammar> concreteSymbolTree) {\n \n if (concreteSymbolTree.getName() == ExpressivoGrammar.DECIMAL) {\n /* reached a double terminal */\n return new Num(Double.parseDouble(concreteSymbolTree.getContents())); \n }\n\n else if (concreteSymbolTree.getName() == ExpressivoGrammar.INT) {\n /* reached an int terminal */\n return new Num(Integer.parseInt(concreteSymbolTree.getContents()));\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.VARIABLE) {\n /* reached a terminal */\n return new Var(concreteSymbolTree.getContents());\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.ROOT || \n concreteSymbolTree.getName() == ExpressivoGrammar.TOKEN || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_1 || \n concreteSymbolTree.getName() == ExpressivoGrammar.PRIMITIVE_2 || \n concreteSymbolTree.getName() == ExpressivoGrammar.NUMBER) {\n \n /* non-terminals with only one child */\n for (ParseTree<ExpressivoGrammar> child: concreteSymbolTree.children()) {\n if (child.getName() != ExpressivoGrammar.WHITESPACE) \n return buildAST(child);\n }\n \n // should never reach here\n throw new IllegalArgumentException(\"error in parsing\");\n }\n \n else if (concreteSymbolTree.getName() == ExpressivoGrammar.SUM || concreteSymbolTree.getName() == ExpressivoGrammar.PRODUCT) {\n /* a sum or product node can have one or more children that need to be accumulated together */\n return accumulator(concreteSymbolTree, concreteSymbolTree.getName()); \n }\n \n else {\n throw new IllegalArgumentException(\"error in input: should never reach here\");\n }\n \n }\n \n /**\n * (1) Create parser using lib6005.parser from grammar file\n * (2) Parse string input into CST\n * (3) Build AST from this CST using buildAST()\n * @param input\n * @return Expression (AST)\n */\n public static Expression parse(String input) {\n \n try {\n Parser<ExpressivoGrammar> parser = GrammarCompiler.compile(\n new File(\"src/expressivo/Expression.g\"), ExpressivoGrammar.ROOT);\n ParseTree<ExpressivoGrammar> concreteSymbolTree = parser.parse(input);\n \n// tree.display();\n \n return buildAST(concreteSymbolTree);\n \n }\n \n catch (UnableToParseException e) {\n throw new IllegalArgumentException(\"Can't parse the expression...\");\n }\n catch (IOException e) {\n System.out.println(\"Cannot open file Expression.g\");\n throw new RuntimeException(\"Can't open the file with grammar...\");\n }\n }\n \n // helper methods\n public static Expression accumulator(ParseTree<ExpressivoGrammar> tree, ExpressivoGrammar grammarObj) {\n Expression expr = null;\n boolean first = true;\n List<ParseTree<ExpressivoGrammar>> children = tree.children();\n int len = children.size();\n for (int i = len-1; i >= 0; i--) {\n /* the first child */\n ParseTree<ExpressivoGrammar> child = children.get(i);\n if (first) {\n expr = buildAST(child);\n first = false;\n }\n \n /* accumulate this by creating a new binaryOp object with\n * expr as the leftOp and the result as rightOp\n **/\n \n else if (child.getName() == ExpressivoGrammar.WHITESPACE) continue;\n else {\n if (grammarObj == ExpressivoGrammar.SUM)\n expr = new Sum(buildAST(child), expr);\n else\n expr = new Product(buildAST(child), expr);\n }\n }\n \n return expr;\n \n }\n \n // ----------------- problems 3-4 -----------------\n \n public static Expression create(Expression leftExpr, Expression rightExpr, char op) {\n if (op == '+')\n return Sum.createSum(leftExpr, rightExpr);\n else\n return Product.createProduct(leftExpr, rightExpr);\n }\n\n public Expression differentiate(Var x);\n \n public Expression simplify(Map<String, Double> env);\n\n}", "@Test\n\tpublic void testSymbolToRomanNumericParserInValid1() {\n\t\tList<IRomanNumericalValidator> validatorList = new ArrayList<IRomanNumericalValidator>();\n\t\tvalidatorList.add(new RepeatSymbolValidator());\n\t\tvalidatorList.add(new SubstractionValidator());\n\t\tRomanNumber romanNumerical = new RomanNumber(validatorList);\n\t\tSymbolToRomanNumericParser parser = new SymbolToRomanNumericParser(romanNumerical);\n\t\tparser.addCommandPocessorToParser(TextCommandEnum.IS, new IsTextCommand());\n\t\tparser.addCommandPocessorToParser(TextCommandEnum.CREDIT_TEXT, new CreditTextCommand());\n\t\tparser.addCommandPocessorToParser(TextCommandEnum.HOW_MUCH_IS, new HowMuchIsQuestionCommand());\n\t\tparser.addCommandPocessorToParser(TextCommandEnum.HOW_MUCH_CREDIT, new HowMuchCreditQuestionCommand());\n\t\tparser.decodeSymbol(\"glob is Z\");\n\t\tparser.decodeSymbol(\"glob glob Silver is 34 Credits\");\n\t\tassertEquals(parser.decodeSymbol(\"how manyssCredits is glob Silver ?\"), \"I have no idea what you are talking about\");\n\t}", "@Test\n public void testParse()\n {\n System.out.println(\"parse\");\n System.out.println(\" Test simple case\");\n final File file = new File(\"src/test/data/test.example.txt\");\n final Lexer lexer = new Lexer();\n final Token token = lexer.analyze(file);\n Model model = token.parse();\n assertTrue(model.isCompiled());\n System.out.println(\" Test complex case\");\n final File complexFile = new File(\"src/test/data/balancer.example.txt\");\n final Token complexToken = lexer.analyze(complexFile);\n model = complexToken.parse();\n assertTrue(model.isCompiled());\n }", "@Test \r\n\tpublic void testQParse() throws ParseError, IOException {\n\t\t\r\n\r\n\r\n\t}", "public abstract boolean isParseCorrect();", "@Test\n public void testExploratoryString() throws IOException {\n String simplestProgram = \"x := 1;\" +\n \"y :={0,1,2,33};\" +\n \"if (x>y) then \" +\n \"{x:=1;} \" +\n \"else \" +\n \"{y:=1;}\";\n\n CharStream inputCharStream = new ANTLRInputStream(new StringReader(simplestProgram));\n TokenSource tokenSource = new GrammarLexer(inputCharStream);\n TokenStream inputTokenStream = new CommonTokenStream(tokenSource);\n GrammarParser parser = new GrammarParser(inputTokenStream);\n\n //parser.addErrorListener(new TestErrorListener());\n parser.setErrorHandler(new BailErrorStrategy());\n\n GrammarParser.ProgramContext context = parser.program();\n\n System.out.println(context.getText());\n\n logger.info(context.toString());\n }", "public void testSchemeConstructor(){\n try{\n try{\n StringReader sr = new StringReader(\"\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme = new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"==(A,B,C\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme = new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme = new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme = new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A()\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A('a')\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n\n try{\n StringReader sr = new StringReader(\"A(A B)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,X)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,Y,Y)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,Y,Z,X,Q)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,Y,Z,Q,X)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(Y,X,Z,X,Q)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(Y,X,Z,Q,X)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,X,Z,Y,Q)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(Y,Q,Z,X,X)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n try{\n StringReader sr = new StringReader(\"A(X,X,X,X,X)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme =\n new ExtendedScheme(lex);\n assertTrue(false);\n }catch(ParserException e){\n assertTrue(true);\n };\n\n StringReader sr = new StringReader(\"Apple(Id1)\");\n Lex lex = new Lex(sr);\n ExtendedScheme scheme = new ExtendedScheme(lex);\n ArrayList<Node> nodes = scheme.getNodes();\n assertTrue(nodes.get(0) instanceof Identifier);\n assertTrue(((Token)nodes.get(0)).getValue().equals(\"Id1\"));\n assertTrue(scheme.getName().getValue().equals(\"Apple\"));\n assertTrue(scheme.toString().equals(\"Apple(Id1)\"));\n\n sr = new StringReader(\"M(Id1,\\n Id2)\");\n lex = new Lex(sr);\n scheme = new ExtendedScheme(lex);\n nodes = scheme.getNodes();\n assertTrue(nodes.size() == 2);\n assertTrue(nodes.get(0) instanceof Identifier);\n assertTrue(nodes.get(1) instanceof Identifier);\n assertTrue(((Token)nodes.get(0)).getValue().equals(\"Id1\"));\n assertTrue(((Token)nodes.get(1)).getValue().equals(\"Id2\"));\n assertTrue(scheme.getName().getValue().equals(\"M\"));\n assertTrue(scheme.toString().equals(\"M(Id1,Id2)\"));\n\n sr = new StringReader(\"List(Name1,\\n Name2,\\n Name3)\");\n lex = new Lex(sr);\n scheme = new ExtendedScheme(lex);\n nodes = scheme.getNodes();\n assertTrue(nodes.size() == 3);\n assertTrue(nodes.get(0) instanceof Identifier);\n assertTrue(nodes.get(1) instanceof Identifier);\n assertTrue(nodes.get(2) instanceof Identifier);\n assertTrue(((Token)nodes.get(0)).getValue().equals(\"Name1\"));\n assertTrue(((Token)nodes.get(1)).getValue().equals(\"Name2\"));\n assertTrue(((Token)nodes.get(2)).getValue().equals(\"Name3\"));\n assertTrue(scheme.getName().getValue().equals(\"List\"));\n assertTrue(scheme.toString().equals(\n \"List(Name1,Name2,Name3)\"));\n }catch(ParserException e){\n System.out.println(\n \"ERROR in SchemeTest.testSchemeConstructor\\n\" +\n \" should not get here.\\n\" +\n \" error = \" + e.getMessage());\n };\n }", "abstract boolean parse ();", "@Override\n\tpublic void parse()\n\t{\n\t\tASTEXPRTEST exprTest = ((ASTEXPRTEST) ast.jjtGetChild(0));\n\t\tparseExprTest(exprTest);\n\n\t\t// get inherited symbols States before while, in order to not change original\n\t\t// values.\n\t\t// Changes made inside while mus not be visible outside, because while can not\n\t\t// be executed\n\t\tinheritedSymbols = Utils.copyHashMap(inheritedSymbols);\n\n\t\tASTSTATEMENTS stmtlst = ((ASTSTATEMENTS) ast.jjtGetChild(1));\n\t\tparseStmtLst(stmtlst);\n\n\t\t// symbols created inside while are added to symbol table, but as not\n\t\t// initialized, because while statements can not be executed\n\t\tmySymbols = setAllSymbolsAsNotInitialized(mySymbols);\n\t}", "private interface ParseInterface {\n public void parse(String sentence);\n }", "@Test\n\tpublic void testPhase2() throws SemanticError{\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Simple Test\");\n\t\tParseDriver driver = new ParseDriver(\"resources/pascal_files/simple.pas\");\n\t\tdriver.run();\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Mod Test\");\n\t\tdriver = new ParseDriver(\"resources/pascal_files/mod.pas\");\n\t\tdriver.run();\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Expression Test\");\n\t\tdriver = new ParseDriver(\"resources/pascal_files/expression.pas\");\n\t\tdriver.run();\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Exp Test\");\n\t\tdriver = new ParseDriver(\"resources/pascal_files/exptest.pas\");\n\t\tdriver.run();\n\t}", "@Test\n\tpublic void testSymbolToRomanNumericParserInValid() {\n\t\tList<IRomanNumericalValidator> validatorList = new ArrayList<IRomanNumericalValidator>();\n\t\tvalidatorList.add(new RepeatSymbolValidator());\n\t\tvalidatorList.add(new SubstractionValidator());\n\t\tRomanNumber romanNumerical = new RomanNumber(validatorList);\n\t\tSymbolToRomanNumericParser parser = new SymbolToRomanNumericParser(romanNumerical);\n\t\tparser.addCommandPocessorToParser(TextCommandEnum.IS, new IsTextCommand());\n\t\tparser.addCommandPocessorToParser(TextCommandEnum.CREDIT_TEXT, new CreditTextCommand());\n\t\tparser.addCommandPocessorToParser(TextCommandEnum.HOW_MUCH_IS, new HowMuchIsQuestionCommand());\n\t\tparser.addCommandPocessorToParser(TextCommandEnum.HOW_MUCH_CREDIT, new HowMuchCreditQuestionCommand());\n\t\tparser.decodeSymbol(\"glob is Z\");\n\t\tparser.decodeSymbol(\"glob glob Silver is 34 Credits\");\n\t\tassertEquals(parser.decodeSymbol(\"how many Credits is glob Silver ?\"), \"I have no idea what you are talking about\");\n\t}", "void setGrammar(IGrammarComp aGrammar);", "public void setGrammar(String grammar){\r\n this.grammar = grammar;\r\n }", "public boolean testParser() {\n boolean succeeded = true;\n\n // Test addition expression\n Double resultAddition = this.mockCalculator.x(\"12 + 5\");\n Double expectedAddition = new Double(17);\n \n if (!resultAddition.equals(expectedAddition)) {\n succeeded = false;\n System.out.println(\"[FAIL] Basic parsing fails to add.\");\n } else {\n System.out.println(\"[ OK ] Parser adds correctly.\");\n }\n\n // Test multiplication expression\n Double resultMulti = this.mockCalculator.x(\"12 x 5\");\n Double expectedMulti = new Double(60);\n \n if (!resultMulti.equals(expectedMulti)) {\n succeeded = false;\n System.out.println(\"[FAIL] Basic parsing multiply to add.\");\n } else {\n System.out.println(\"[ OK ] Parser multiplies correctly.\");\n }\n \n // Test invalid expression\n Double resultInvalid = this.mockCalculator.x(\"12 [ 5\");\n \n if (null != resultInvalid) {\n succeeded = false;\n System.out.println(\"[FAIL] Parser does not return null for operators which are not supported.\");\n } else {\n System.out.println(\"[ OK ] Parser returns null for operators which are not supported.\");\n }\n\n return succeeded;\n }", "@Test\n public void test() throws ParseException {\n String test1 = \"klasse Test{ voeruit() { getal number is 1; } }\";\n parse(test1, \"program\");\n }", "public void parse() {\n }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t// Scanner scanner = new Scanner(System.in);\r\n\t\t\t//Grammar grammar = new Grammar(\"(i * i) * (i + i) - i\");\r\n\t\t\tGrammar grammar = new Grammar(\"i + i * i\");\r\n\t\t\tgrammar.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tgrammar.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tgrammar.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tgrammar.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tgrammar.addTerminal(\"DIVIDE\", TokenType.OPERATOR,\r\n\t\t\t\t\tOperatorType.DIVIDE);\r\n\t\t\tgrammar.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tgrammar.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tgrammar.setEpsilonName(\"epsilon\");\r\n\t\t\tString[] nons = new String[] {\r\n\t\t\t\t\t\"E\", \"E1\", \"T\", \"T1\", \"F\", \"A\", \"M\"\r\n\t\t\t};\r\n\t\t\tfor (String non : nons){\r\n\t\t\t\tgrammar.addNonTerminal(non);\r\n\t\t\t}\r\n\t\t\tgrammar.infer(\"E -> T E1\");\r\n\t\t\tgrammar.infer(\"E1 -> A T E1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"T -> F T1\");\r\n\t\t\tgrammar.infer(\"T1 -> M F T1 | @epsilon\");\r\n\t\t\tgrammar.infer(\"F -> @LPA E @RPA | @SYMBOL\");\r\n\t\t\tgrammar.infer(\"A -> @PLUS | @MINUS\");\r\n\t\t\tgrammar.infer(\"M -> @TIMES | @DIVIDE\");\r\n\t\t\tgrammar.initialize(\"E\");\r\n\t\t\tSystem.out.println(grammar.toString());\r\n\t\t\tSystem.out.println(grammar.getPredictionString());\r\n\t\t\tgrammar.run();\r\n\t\t\tSystem.out.println(grammar.getTokenString());\r\n\t\t\t// scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (GrammarException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \"\r\n\t\t\t\t\t+ e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testParse() {\n\t\tSentence s = new Sentence();\n\t\ts.parseSentence(BASE_STRING);\n\t\tassertEquals(19, s.getSentenceComponents().size());\n\n\t\t// verify that a string of whitespace count as one token\n\t\ts = new Sentence();\n\t\ts.parseSentence(WHITESPACE_STRING);\n\t\tassertEquals(1, s.getSentenceComponents().size());\n\n\t\t// verify that leading and trailing space is kept\n\t\ts = new Sentence();\n\t\ts.parseSentence(ENDSPACE_STRING);\n\t\tassertEquals(7, s.getSentenceComponents().size());\n\n\t\t// verify parsing works as expected\n\t\ts = new Sentence();\n\t\ts.parseSentence(PARSE_VALIDATION_STRING);\n\t\tList<SentenceComponent> tokens = s.getSentenceComponents();\n\t\tassertEquals(5, tokens.size());\n\t\tassertEquals(\"hello\", tokens.get(0).getValue());\n\t\tassertEquals(\",\", tokens.get(1).getValue());\n\t\tassertEquals(\" \", tokens.get(2).getValue());\n\t\tassertEquals(\"world\", tokens.get(3).getValue());\n\t\tassertEquals(\"!\", tokens.get(4).getValue());\n\t}", "@Test(expected=ParsingException.class)\n public void testParseFail1() throws ParsingException {\n this.parser.parse(\"parserfaalt\");\n }", "protected abstract boolean startParsing(String message);", "public interface IParserComp extends IPAMOJAComponent {\n\n /**\n * Returns a parser object. \n * This an abstract method to be implemented by the descendants.\n * @return the parser object.\n */\n CParser getParser();\n\n /**\n * Sets the specified parser object to this parser component.\n * This an abstract method to be implemented by the descendants.\n * @param parser @author Jackline Ssanyu ([email protected])\n */\n void setParser(CParser parser);\n\n /**\n * Returns a parser-result object containing boolean value (indicating whether a parse was successful or not) and the parse tree constructed. \n * This an abstract method to be implemented by the descendants.\n * \n * @return the value of the parser-result object.\n */\n CParserResult getParserResult(); \n\n /**\n *\n * @return\n */\n ArrayList<CParseLog> getLogs();\n\n /**\n * Links to <code>GrammarComp</code> component via its interface.\n * Sets the value of <code>Grammar</code> and registers for property change events.\n * \n * @param aGrammar new value of Grammar\n */\n void setGrammar(IGrammarComp aGrammar);\n\n /**\n * Get the grammar object.\n * @return the value of the grammar object\n */ \n IGrammarComp getGrammar();\n \n /**\n * Get the symbolstream object.\n * @return the value of the symbolstream object\n */ \n ISymbolStreamComp getSymbolStream();\n\n /**\n * Links to <code>SymbolStreamComp</code> component via its interface.\n * Sets the value of <code>SymbolStream</code> and registers for property change events.\n * \n * @param aSymbolStream\n */\n void setSymbolStream(ISymbolStreamComp aSymbolStream);\n\n /**\n *\n * @return\n */\n CParseStack getStateStack();\n\n /**\n *\n * @param fStateStack\n */\n void setStateStack(CParseStack fStateStack); \n\n /**\n *\n * @return\n */\n public ArrayList<Symbol> getSymbolsUnmatched();\n\n /**\n *\n * @param symbolsUnmatched\n */\n public void setSymbolsUnmatched(ArrayList<Symbol> symbolsUnmatched);\n\n /**\n *\n */\n public void parseText();\n}", "@Test(timeout = 4000)\n public void test001() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n xPathLexer0.not();\n xPathLexer0.nextToken();\n xPathLexer0.leftParen();\n xPathLexer0.whitespace();\n xPathLexer0.plus();\n Token token0 = xPathLexer0.or();\n assertNull(token0);\n }", "public Program parse() throws SyntaxException {\n\t\tProgram p = program();\n\t\tmatchEOF();\n\t\treturn p;\n\t}", "public interface Parser {\n\n}", "private void parse(Node node) {\r\n if (tracing && ! skipTrace) System.out.println(node.trace());\r\n skipTrace = false;\r\n switch(node.op()) {\r\n case Error: case Temp: case List: case Empty: break;\r\n case Rule: parseRule(node); break;\r\n case Id: parseId(node); break;\r\n case Or: parseOr(node); break;\r\n case And: parseAnd(node); break;\r\n case Opt: parseOpt(node); break;\r\n case Any: parseAny(node); break;\r\n case Some: parseSome(node); break;\r\n case See: parseSee(node); break;\r\n case Has: parseHas(node); break;\r\n case Not: parseNot(node); break;\r\n case Tag: parseTag(node); break;\r\n case Success: parseSuccess(node); break;\r\n case Fail: parseFail(node); break;\r\n case Eot: parseEot(node); break;\r\n case Char: parseChar(node); break;\r\n case Text: parseText(node); break;\r\n case Set: parseSet(node); break;\r\n case Range: parseRange(node); break;\r\n case Split: parseSplit(node); break;\r\n case Point: parsePoint(node); break;\r\n case Cat: parseCat(node); break;\r\n case Mark: parseMark(node); break;\r\n case Drop: parseDrop(node); break;\r\n case Act: parseAct(node); break;\r\n default: assert false : \"Unexpected node type \" + node.op(); break;\r\n }\r\n }", "public void testParser() throws Exception {\n assertEquals(\"http://util.java/HashMap\", parse(HashMap.class));\n assertEquals(\"http://simpleframework.org/xml/Element\", parse(Element.class));\n assertEquals(\"http://simpleframework.org/xml/ElementList\", parse(ElementList.class));\n assertEquals(\"http://w3c.org/dom/Node\", parse(Node.class));\n assertEquals(\"http://simpleframework.org/xml/strategy/PackageParser\", parse(PackageParser.class));\n \n assertEquals(HashMap.class, revert(\"http://util.java/HashMap\"));\n assertEquals(Element.class, revert(\"http://simpleframework.org/xml/Element\"));\n assertEquals(ElementList.class, revert(\"http://simpleframework.org/xml/ElementList\"));\n assertEquals(Node.class, revert(\"http://w3c.org/dom/Node\"));\n assertEquals(PackageParser.class, revert(\"http://simpleframework.org/xml/strategy/PackageParser\"));\n \n long start = System.currentTimeMillis();\n for(int i = 0; i < ITERATIONS; i++) {\n fastParse(ElementList.class);\n }\n long fast = System.currentTimeMillis() - start;\n start = System.currentTimeMillis();\n for(int i = 0; i < ITERATIONS; i++) {\n parse(ElementList.class);\n }\n long normal = System.currentTimeMillis() - start;\n System.out.printf(\"fast=%sms normal=%sms diff=%s%n\", fast, normal, normal / fast);\n }", "public interface LLkGrammarAnalyzer extends GrammarAnalyzer {\n\n\n public boolean deterministic(AlternativeBlock blk);\n\n public boolean deterministic(OneOrMoreBlock blk);\n\n public boolean deterministic(ZeroOrMoreBlock blk);\n\n public Lookahead FOLLOW(int k, RuleEndElement end);\n\n public Lookahead look(int k, ActionElement action);\n\n public Lookahead look(int k, AlternativeBlock blk);\n\n public Lookahead look(int k, BlockEndElement end);\n\n public Lookahead look(int k, CharLiteralElement atom);\n\n public Lookahead look(int k, CharRangeElement end);\n\n public Lookahead look(int k, GrammarAtom atom);\n\n public Lookahead look(int k, OneOrMoreBlock blk);\n\n public Lookahead look(int k, RuleBlock blk);\n\n public Lookahead look(int k, RuleEndElement end);\n\n public Lookahead look(int k, RuleRefElement rr);\n\n public Lookahead look(int k, StringLiteralElement atom);\n\n public Lookahead look(int k, SynPredBlock blk);\n\n public Lookahead look(int k, TokenRangeElement end);\n\n public Lookahead look(int k, TreeElement end);\n\n public Lookahead look(int k, WildcardElement wc);\n\n public Lookahead look(int k, ZeroOrMoreBlock blk);\n\n public Lookahead look(int k, String rule);\n\n public void setGrammar(Grammar g);\n\n public boolean subruleCanBeInverted(AlternativeBlock blk, boolean forLexer);\n}", "void parse();", "public interface IGrammarComp extends IPAMOJAComponent{\n \n /**\n * Returns the internal structure of this grammar.\n * \n * @return the internal structure of this grammar\n */\n public CGrammar getGrammarStructure();\n\n \n /**\n * Sets the value of the internal structure of this grammar, generates its corresponding string representation, performs grammar analysis and notifies observers about <code>GrammarStructure</code> property changes.\n * @param aGrammarStructure\n */\n public void setGrammarStructure(CGrammar aGrammarStructure);\n \n \n /**\n * Returns the string representation of this grammar.\n * \n * @return the string representation of this grammar\n */\n public String getGrammarText();\n\n /* \n * Set the string representation of this grammar.\n * Check well-formedness of the string representation of the grammar.\n * Signal an error if the string representation is invalid else compute the\n * internal representation of the grammar. Also generate analysis\n * information and fire a property change.\n *\n * @param aGrammarText the text representation of the grammar to set.\n * @pre: Grammar is well-formed(See <code>toText(String aGrammarText)</code>)\n *\n */\n\n /**\n *\n * @param aGrammarText\n */\n \n\n public void setGrammarText(String aGrammarText);\n \n /**\n * Returns <code>true</code> if this grammar is annotated with endmarker symbol, <code>false</code>\n * otherwise.\n *\n * @return <code>true</code> if this grammar is annotated with endmarker symbol, <code>false</code>\n * otherwise\n */\n public boolean isAugment();\n /**\n * Set the value of Augment and notify observers about <code>Augment</code> property changes.\n *\n * \n * @param aValue new value of Augment\n */\n public void setAugment(boolean aValue);\n \n /**\n * Returns <code>true</code> if a terminal symbol of this grammar has data, <code>false</code>\n * otherwise.\n * \n * @param aSym the code of this terminal symbol\n * @return <code>true</code> if this terminal symbol has data, <code>false</code>\n * otherwise\n */\n public boolean hasData(int aSym);\n \n /**\n * Returns structure representation of RE text.\n * @param aString\n * @return \n */\n // public CRE RETextToTree(String aString);\n /**\n * Removes all elements from the grammar component\n */\n public void clear();\n\n /**\n *\n * @return\n */\n public boolean ELL1();\n}", "@Test\n\t\tpublic void testEmpty() throws LexicalException, SyntaxException {\n\t\t\tString input = \"\"; //The input is the empty string. \n\t\t\tthrown.expect(SyntaxException.class);\n\t\t\tPLPParser parser = makeParser(input);\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tProgram p = parser.parse();\n\t\t}", "@Test\n\tpublic void testDec1() throws LexicalException, SyntaxException {\n\t\tString input = \"prog int k;\";\n\t\tshow(input);\n\t\tScanner scanner = new Scanner(input).scan(); // Create a Scanner and initialize it\n\t\tshow(scanner); // Display the Scanner\n\t\tSimpleParser parser = new SimpleParser(scanner); //\n\t\tparser.parse();\n\t}", "public static void parse()\r\n {\r\n int initial;\r\n initial=expression();\r\n stateList.get(0).setNext1(initial);\r\n stateList.get(0).setNext2(initial);\r\n if(index<=expression.length()-1)\r\n {\r\n error();\r\n }\r\n else\r\n {\r\n state st=new state(state,\"END\",-1,-1);\r\n stateList.add(st);\r\n }\r\n }", "@Test\n\tpublic void testExpression() throws ParseException {\n\t\tExpression expression = langParser(\"a\").expression();\n\t\tassertEquals(expression.getClass(), Identifier.class);\n\t\texpression = langParser(\"a()\").expression();\n\t\tassertEquals(expression.getClass(), FunctionCall.class);\n\t\texpression = langParser(\"a.b\").expression();\n\t\tassertEquals(expression.getClass(), MemberAccess.class);\n\t\texpression = langParser(\"1\").expression();\n\t\tassertEquals(expression.getClass(), LongLiteral.class);\n\t\texpression = langParser(\"1.1\").expression();\n\t\tassertEquals(expression.getClass(), DoubleLiteral.class);\n\t\texpression = langParser(\"if(a,b,c)\").expression();\n\t\tassertEquals(expression.getClass(), TernaryIf.class);\n\t}", "@Test(timeout = 4000)\n public void test081() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"fEp<jmD0Y<2\");\n Token token0 = xPathLexer0.rightParen();\n assertEquals(\"f\", token0.getTokenText());\n assertEquals(2, token0.getTokenType());\n \n Token token1 = xPathLexer0.notEquals();\n assertEquals(22, token1.getTokenType());\n assertEquals(\"Ep\", token1.getTokenText());\n \n Token token2 = xPathLexer0.nextToken();\n assertEquals(\"<\", token2.getTokenText());\n assertEquals(7, token2.getTokenType());\n \n Token token3 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token3.getTokenType());\n assertEquals(\"jmD0Y\", token3.getTokenText());\n }", "public String parse(String phonemeSequence) throws RuleDoesNotApplyException, UnknownConstantException, UnknownPhonemeStructureException {\n\n\tString result = \"\";\n\tRuleSyntax syntax = language.getRuleSyntax();\n\tString tmpRule;\n\n\ttmpRule = syntax.replaceConstants(getRule());\n\n\ttry {\n\n\t tmpRule = syntax.trimRule(tmpRule, phonemeSequence);\n\t} catch (RuleViolationException ex) {\n\n\t ex.printStackTrace();\n\n\t throw new RuleDoesNotApplyException(\"rule: \" + getRule() + \", sequence: \" + phonemeSequence);\n\t} catch (IllegalStateException ex) {\n\n\t ex.printStackTrace();\n\n\t throw new RuleDoesNotApplyException(\"rule: \" + getRule()\n\t\t + \", sequence: \" + phonemeSequence);\n\t} catch (RuntimeException ex) {\n\n\t System.out.println(\"parse: \" + tmpRule + \"/\" + phonemeSequence);\n\t ex.printStackTrace();\n\t}\n\n\t//String tmpSequence = syntax.replacePhonemeStructures(tmpRule)\n\tList<String[]> sequenceParts = null;\n\ttry {\n\t sequenceParts = syntax.getSequenceParts(phonemeSequence, tmpRule);\n\t} catch (RuntimeException ex) {\n\n\t System.out.println(\"parse: \" + tmpRule + \"/\" + phonemeSequence);\n\t ex.printStackTrace();\n\t throw ex;\n\t}\n\n\tSystem.out.println(\"sequenceParts.size():\" + sequenceParts.size());\n\n\tfor (String[] part : sequenceParts) {\n\n\t String sequence = part[0];\n\t String ruleRegex = part[1];\n\t String ruleTag = part[2];\n\t PhonemeStructure structure;\n\n\t System.out.println(\"tmpRule: \" + tmpRule);\n\t System.out.println(\"phonemeSequence: \" + phonemeSequence);\n\t System.out.println(\"sequence: \" + sequence);\n\t System.out.println(\"ruleRegex: \" + ruleRegex);\n\t System.out.println(\"ruleTag: \" + ruleTag);\n\n\t //if tag has to be parsed\n\t if (!ruleTag.equals(\"\")) {\n\n\t\tSystem.out.println(\"1\");\n\t\tif (syntax.isPhonemeStructureName(ruleRegex)) {\n\t\t System.out.println(\"2\");\n\n\t\t structure = language.getPhonemeStructure(syntax.stripVarName(ruleRegex));\n\t\t} else {\n\n\t\t System.out.println(\"3\");\n\t\t try {\n\n\t\t\tstructure = new PhonemeStructure(syntax\n\t\t\t\t.replacePhonemeStructures(ruleRegex), language);\n\t\t\tSystem.out.println(\"4\");\n\t\t } catch (SyntaxException ex) {\n\n\t\t\t//should not happen\n\t\t\tthrow new IllegalArgumentException(ex);\n\t\t }\n\t\t}\n\n\t\tresult += syntax.parseTag(sequence, structure, ruleTag);\n\t\tSystem.out.println(\"5\");\n\t } else {\n\n\t\t//use unchanged sequence\n\t\tresult += sequence;\n\t\tSystem.out.println(\"6\");\n\t }\n\t}\n\n\tSystem.out.println(\"7\");\n\treturn result;\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.pipe();\n Token token0 = xPathLexer0.mod();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test060() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.relationalOperator();\n assertNull(token0);\n }", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Test\r\n\tpublic void testEmpty() throws LexicalException, SyntaxException {\r\n\t\tString input = \"\"; //The input is the empty string. \r\n\t\tParser parser = makeParser(input);\r\n\t\tthrown.expect(SyntaxException.class);\r\n\t\tparser.parse();\r\n\t}", "public void run()\n {\n yyparse();\n }", "public boolean hasParse();", "public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}", "Boolean parse() {\n // if errors during initial scanning\n // of program, immediately exit.\n if(scanner.hasErrors()) {\n System.out.println(ERRORMESSAGE);\n return false;\n }\n\n Stack<Integer> rStack = new Stack<Integer>(); // keeps track of production rules\n Stack<String> pStack = new Stack<String>(); // parsing stack\n STstack = new Stack<TNode>(); // syntax tree stack\n\n // pushing first production rule onto stack\n pStack.push(\"0\");\n Token token = scanner.next();\n String token_type = tokenToGrammar(token);\n boolean newToken = false;\n\n int row = 0;\n int col = 0;\n\n // push all tokens of program onto\n // parsing stack before parsing\n while(scanner.ongoing() >= 0) {\n // examine top of stack\n String top = pStack.peek();\n// System.out.println(\"top of stack \" + top);\n // retrieve next valid token of program\n if(newToken && scanner.ongoing() > 0) {\n token = scanner.next();\n token_type = tokenToGrammar(token);\n col = parseTableHeader.get(token_type);\n }\n// System.out.print(\"lookahead \" + token +\", \");\n\n try {\n // is the top of the stack a row number?\n row = Integer.parseInt(top);\n // get value of cell in parse table\n String cell = parseTable.get(row).get(col);\n// System.out.println(\"cell value \" + cell);\n String[] cellParts = cell.split(\"\");\n\n // if cell value is 'b', this is\n // an error and program is not\n // syntactically correct\n if(cellParts[0].equals(\"b\")) {\n System.out.println(ERRORMESSAGE);\n return false;\n }\n\n // if the cell entry is a shift\n else if(cellParts[0].equals(\"s\")) {\n\n // push the lookahead on stack\n pStack.push(token_type);\n // push the lookahead's token on STstack\n if(!token.getChVals().equals(\";\") || !token.getChVals().equals(\"$\")) {\n STstack.push(new TNode(\"general\", token));\n }\n\n // set the shift value as current row\n row = Integer.parseInt(\n String.join(\"\", Arrays.copyOfRange(cellParts, 1, cellParts.length))\n );\n// System.out.println(\"new row \" + row);\n\n // push row value to pStack\n pStack.push(Integer.toString(row));\n\n // set newToken param\n newToken = true;\n }\n\n // if cell entry is a reduce\n else if(cellParts[0].equals(\"r\")) {\n // first pop off the current row number\n pStack.pop();\n\n // get the production rule's index from the cell\n int prodIdx = Integer.parseInt(\n String.join(\"\", Arrays.copyOfRange(cellParts, 1, cellParts.length))\n );\n// System.out.println(\"production number \" + prodIdx);\n\n // get the production rule we are reducing by\n ArrayList<String> production = grammar.get(prodIdx);\n // which syntax tree node do we need?\n SNType nodeType;\n if(prodIdx == 2) {\n nodeType = STstack.peek().getType();\n } else {\n nodeType = idNodeType(prodIdx);\n }\n // also need a temporary stack to hold\n // popped tokens from STstack to make\n // a new node\n Stack<TNode> tempNodeHolder = new Stack<TNode>();\n\n // put all elements of the right side of\n // production rule onto a new stack so\n // we can keep track of them while\n // popping off the actual parsing stack\n Stack<String> rules = new Stack<String>();\n for(int i = 1; i < production.size(); i++) {\n rules.push(production.get(i));\n }\n\n // now pop off right side of\n // production from parsing stack\n while(!rules.empty()){\n String t = pStack.pop();\n if(t.equals(rules.peek())) {\n rules.pop();\n // also pop from STstack for syntax tree\n // and add to temporary stack\n if(!t.equals(\";\") || !token.getChVals().equals(\"$\")) {\n TNode tempNode = STstack.pop();\n tempNodeHolder.push(tempNode);\n }\n }\n }\n\n // synthesize new syntax tree node\n // and add back to STstack\n TNode newNode = makeNode(nodeType, tempNodeHolder);\n STstack.push(newNode);\n\n // push production number to rStack\n rStack.push(prodIdx);\n\n// if(prodIdx == 1) {\n// break;\n// }\n\n // check what current top of pStack is\n // to check for next row\n row = Integer.parseInt(pStack.peek());\n\n // push left side of production\n // onto stack\n pStack.push(production.get(0));\n\n // identify column of the left side of production\n col = parseTableHeader.get(pStack.peek());\n\n // set new row number\n row = Integer.parseInt(parseTable.get(row).get(col));\n// System.out.print(\"new row \" + row + \", \");\n\n // set new col number\n col = parseTableHeader.get(token_type);\n// System.out.println(\"new col \" + col);\n\n // push row value to pStack\n pStack.push(Integer.toString(row));\n\n // set newToken param\n newToken = false;\n\n }\n\n // we are done, so accept!\n else if(cellParts[0].equals(\"a\")) {\n break;\n }\n\n } catch (NumberFormatException e) {\n\n }\n\n }\n\n System.out.println(PASSMESSAGE);\n\n // Prints out the production rules used to derive program.\n// while(!rStack.isEmpty()) {\n// int idx = rStack.pop();\n// ArrayList<String> production = grammar.get(idx);\n// System.out.print(production.get(0) + \" -> \");\n// for(int i = 1; i < production.size(); i++) {\n// System.out.print(production.get(i) + \" \");\n// }\n// System.out.println();\n// }\n\n return true;\n\n\n }", "@Override\n public void startElement(String namespaceURI, String lName,\n String qName, Attributes attrs) throws SAXException {\n if (qName.equals(RULE)) {\n translations.clear();\n id = attrs.getValue(\"id\");\n if (!(inRuleGroup && defaultOff)) {\n defaultOff = \"off\".equals(attrs.getValue(\"default\"));\n }\n if (inRuleGroup && id == null) {\n id = ruleGroupId;\n }\n correctExamples = new ArrayList<>();\n incorrectExamples = new ArrayList<>();\n } else if (qName.equals(PATTERN)) {\n inPattern = true;\n String languageStr = attrs.getValue(\"lang\");\n if (Languages.isLanguageSupported(languageStr)) {\n language = Languages.getLanguageForShortCode(languageStr);\n }\n } else if (qName.equals(TOKEN)) {\n setToken(attrs);\n } else if (qName.equals(TRANSLATION)) {\n inTranslation = true;\n String languageStr = attrs.getValue(\"lang\");\n if (Languages.isLanguageSupported(languageStr)) {\n Language tmpLang = Languages.getLanguageForShortCode(languageStr);\n currentTranslationLanguage = tmpLang;\n if (tmpLang.equalsConsiderVariantsIfSpecified(motherTongue)) {\n translationLanguage = tmpLang;\n }\n }\n } else if (qName.equals(EXAMPLE)) {\n correctExample = new StringBuilder();\n incorrectExample = new StringBuilder();\n if (attrs.getValue(TYPE).equals(\"incorrect\")) {\n inIncorrectExample = true;\n } else if (attrs.getValue(TYPE).equals(\"correct\")) {\n inCorrectExample = true;\n } else if (attrs.getValue(TYPE).equals(\"triggers_error\")) {\n throw new RuntimeException(\"'triggers_error' is not supported for false friend XML\");\n }\n } else if (qName.equals(MESSAGE)) {\n inMessage = true;\n message = new StringBuilder();\n } else if (qName.equals(RULEGROUP)) {\n ruleGroupId = attrs.getValue(\"id\");\n inRuleGroup = true;\n defaultOff = \"off\".equals(attrs.getValue(DEFAULT));\n }\n }", "@Test(timeout = 4000)\n public void test079() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.at();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(\")\", token0.getTokenText());\n assertEquals(16, token0.getTokenType());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "public void testParse() throws Exception { \n // DTD parser test \n \n InputSource input = new InputSource(new StringReader(\"<!ELEMENT x ANY>\"));\n input.setSystemId(\"StringReader\");\n \n XMLReader peer = XMLReaderFactory.createXMLReader();\n \n TestDeclHandler dtdHandler = new TestDeclHandler();\n peer.setProperty(\"http://xml.org/sax/properties/declaration-handler\", dtdHandler);\n SAXEntityParser parser = new SAXEntityParser(peer, false);\n parser.parse(input);\n\n // Add your test code below by replacing the default call to fail.\n assertTrue(\"DTD entity parser did not detected 'x' decl!\", dtdHandler.pass);\n\n // Reentrance test\n \n boolean exceptionThrown = false;\n try {\n parser.parse(new InputSource(new StringReader(\"\")));\n } \n catch (IllegalStateException ex) {\n exceptionThrown = true;\n } \n finally {\n assertTrue(\"Parser may not be reused!\", exceptionThrown);\n }\n \n }", "@Test(timeout = 4000)\n public void test019() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\">6_XdrPl\");\n Token token0 = xPathLexer0.relationalOperator();\n assertNotNull(token0);\n assertEquals(\">\", token0.getTokenText());\n assertEquals(9, token0.getTokenType());\n \n Token token1 = xPathLexer0.rightParen();\n assertEquals(2, token1.getTokenType());\n assertEquals(\"6\", token1.getTokenText());\n \n char char0 = xPathLexer0.LA(0);\n assertEquals('6', char0);\n }", "@Test(timeout = 4000)\n public void test059() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<= \");\n Token token0 = xPathLexer0.relationalOperator();\n assertEquals(8, token0.getTokenType());\n assertNotNull(token0);\n assertEquals(\"<=\", token0.getTokenText());\n }", "@Test\n\tpublic void parseCommandTest() {\n\t\tassertFalse(myManager.parseCommand(\"quit\"));\n\t\tassertFalse(myManager.parseCommand(\"Quit\"));\n\t\tassertFalse(myManager.parseCommand(\"q uit\"));\n\t\t\n\t\tassertTrue(myManager.parseCommand(\"new job\"));\n\t\tassertTrue(myManager.parseCommand(\"NEW job\"));\n\t\tassertTrue(myManager.parseCommand(\"new\"));\n\t\tassertFalse(myManager.parseCommand(\"new jobzo\"));\n\t}", "public interface XMLParser {\n\n String parse();\n}", "@Test(timeout = 4000)\n public void test067() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n Token token0 = xPathLexer0.mod();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test085() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n xPathLexer0.setXPath(\"[ (2) (c)\");\n Token token0 = xPathLexer0.notEquals();\n assertEquals(22, token0.getTokenType());\n assertEquals(\"[ \", token0.getTokenText());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"(\", token1.getTokenText());\n \n Token token2 = xPathLexer0.identifierOrOperatorName();\n assertNotNull(token2);\n assertEquals(15, token2.getTokenType());\n assertEquals(\"2\", token2.getTokenText());\n }", "Program parse() throws SyntaxException {\n\t\tProgram p = null;\n\t\tp = program();\n\t\tmatchEOF();\n\t\treturn p;\n\t}", "@Test(timeout = 4000)\n public void test029() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n xPathLexer0.consume(0);\n assertNull(xPathLexer0.getXPath());\n }", "@Test\n @Ignore\n public void testParse() {\n System.out.println(\"parse\");\n byte[] bytes = null;\n SntParser instance = new SntParser();\n Object expResult = null;\n Object result = instance.parse(bytes);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "private void parse() {\n stack.push(documentNode);\n try {\n Token token = lexer.nextToken();\n boolean tagOpened = false;\n\n while (token.getType() != TokenType.EOF) {\n\n if (token.getType() == TokenType.TEXT) {\n TextNode textNode = new TextNode((String) token.getValue());\n ((Node) stack.peek()).addChild(textNode);\n\n } else if (token.getType() == TokenType.TAG_OPEN) {\n if (tagOpened) {\n throw new SmartScriptParserException(\"The tag was previously open but is not yet closed.\");\n }\n tagOpened = true;\n lexer.setState(LexerState.TAG);\n\n } else if (token.getType() == TokenType.TAG_NAME && token.getValue().equals(\"=\")) {\n parseEchoTag(tagOpened);\n tagOpened = false;\n\n } else if (token.getType() == TokenType.TAG_NAME && ((String) token.getValue()).matches(\"[Ff][Oo][Rr]\")) {\n parseForTag(tagOpened);\n tagOpened = false;\n\n } else if (token.getType() == TokenType.TAG_NAME && ((String) token.getValue()).matches(\"[Ee][Nn][Dd]\")) {\n parseEndTag();\n tagOpened = false;\n } else {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n token = lexer.nextToken();\n }\n if (!(stack.peek() instanceof DocumentNode)) {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n } catch (LexerException | EmptyStackException exc) {\n throw new SmartScriptParserException(PARSE_ERROR);\n }\n}", "@Test\n void testParser() {\n VmParsingHelper.DEFAULT.parse(VM_SRC);\n }", "@Test(timeout = 4000)\n public void test076() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"5!\");\n Token token0 = xPathLexer0.star();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(20, token0.getTokenType());\n assertEquals(\"5\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test090() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"9Snv JFf\");\n Token token0 = xPathLexer0.number();\n assertEquals(\"9\", token0.getTokenText());\n assertEquals(30, token0.getTokenType());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(26, token1.getTokenType());\n assertEquals(\"S\", token1.getTokenText());\n \n Token token2 = xPathLexer0.not();\n assertEquals(23, token2.getTokenType());\n assertEquals(\"n\", token2.getTokenText());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(\"v\", token3.getTokenText());\n assertEquals(15, token3.getTokenType());\n }", "public void parse()\n\t{\n\t\ttry\n\t\t{\n\t\t\tstatus = program();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}", "public void setGrammarStructure(CGrammar aGrammarStructure);", "public boolean match( ElementExp p ) { return false; }", "@Test(timeout = 4000)\n public void test084() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"(xA>7o;9b=;e*Y(m\");\n Token token0 = xPathLexer0.rightParen();\n xPathLexer0.setPreviousToken(token0);\n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertNull(token1);\n }", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(52);\n simpleNode0.setIdentifier(\"`n\\tw8u)!WbK\");\n JavaParser javaParser0 = new JavaParser(\"0]-8Ixwh1I\\\"\");\n boolean boolean0 = false;\n try { \n javaParser0.ClassOrInterfaceBody(false);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Parse error at line 1, column 0. Encountered: <EOF>\n //\n verifyException(\"com.soops.CEN4010.JMCA.JParser.JavaParser\", e);\n }\n }", "@Test(timeout = 4000)\n public void test010() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n String string0 = xPathLexer0.getXPath();\n assertNull(string0);\n }", "public abstract void parseStatements(\n\t\tParser parser,\n\t\tCompilationUnitDeclaration unit);", "@Test\r\n\tpublic void typeParserTest() {\n\t\tvalidateTypeParse(\r\n\t\t\t\t\"(function that takes a number and outputs a number)\");\r\n\t\t// validateTypeParse(\r\n\t\t// \"(function that takes a number and a (function that takes a number)\r\n\t\t// and outputs a number)\");\r\n\t\t// validateTypeParse(\r\n\t\t// \"(function that takes a number, a string, and an element_of_type_3\r\n\t\t// and outputs a number)\");\r\n\t\t// validateTypeParse(\"(function that takes a number)\");\r\n\t\t// assertEquals(\"procedure\", cdLoopType(\"function\"));\r\n\t\t// validateTypeParse(\"(function that outputs a number)\");\r\n\t\t// validateTypeParse(\"procedure\");\r\n\t}", "@Test\r\n public void testParse() {\r\n System.out.println(\"parse\");\r\n assertEquals(true,true);\r\n }", "public void clickFirstProgram() throws ParseException;", "protected abstract void analyze(E element) throws EX;", "public TestSaxParserWithGrammarPool() {\n \n try {\n grammarPool = new XMLGrammarPoolImpl();\n resolver = new XMLCatalogResolver(new String[]{new File(\"grammar/catalog.xml\").toURL().toString()} );\n \n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n Token token0 = xPathLexer0.equals();\n xPathLexer0.setPreviousToken(token0);\n assertEquals(21, token0.getTokenType());\n assertEquals(\")\", token0.getTokenText());\n \n Token token1 = xPathLexer0.identifierOrOperatorName();\n assertEquals(15, token1.getTokenType());\n assertEquals(\"\", token1.getTokenText());\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"hN!SM~8ux(wB\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "@Test(timeout = 4000)\n public void test008() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"](\");\n boolean boolean0 = xPathLexer0.hasMoreChars();\n assertTrue(boolean0);\n }", "@Test(timeout = 4000)\n public void test089() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"com.werken.saxpath.XPathLexer\");\n Token token0 = xPathLexer0.pipe();\n assertEquals(\"c\", token0.getTokenText());\n assertEquals(17, token0.getTokenType());\n \n Token token1 = xPathLexer0.comma();\n assertEquals(32, token1.getTokenType());\n assertEquals(\"o\", token1.getTokenText());\n \n Token token2 = xPathLexer0.notEquals();\n assertEquals(\"m.\", token2.getTokenText());\n assertEquals(22, token2.getTokenType());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(15, token3.getTokenType());\n assertEquals(\"werken.saxpath.XPathLexer\", token3.getTokenText());\n }", "@Test\n\tpublic void testEmpty() throws LexicalException, SyntaxException {\n\t\tString input = \"\"; // The input is the empty string. This is not legal\n\t\tshow(input); // Display the input\n\t\tScanner scanner = new Scanner(input).scan(); // Create a Scanner and initialize it\n\t\tshow(scanner); // Display the Scanner\n\t\tSimpleParser parser = new SimpleParser(scanner); // Create a parser\n\t\tthrown.expect(SyntaxException.class);\n\t\ttry {\n\t\t\tparser.parse(); // Parse the program\n\t\t} catch (SyntaxException e) {\n\t\t\tshow(e);\n\t\t\tthrow e;\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"/a\");\n xPathLexer0.dollar();\n Token token0 = xPathLexer0.and();\n assertNull(token0);\n }", "private boolean grammar() {\r\n return skip() && rules() && MARK(END_OF_TEXT) && EOT();\r\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\") (\");\n String string0 = xPathLexer0.getXPath();\n assertEquals(\") (\", string0);\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n StringReader stringReader0 = new StringReader(\"void\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.MoreLexicalActions();\n }", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"<y\");\n Token token0 = xPathLexer0.leftParen();\n assertEquals(\"<\", token0.getTokenText());\n assertEquals(1, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"y\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }", "abstract protected Parser createSACParser();", "private Term parseImpl() throws ParseException {\n final Term expr = parseTerm(false);\n final int tt = _tokenizer.next();\n if (tt != Tokenizer.TT_EOS) {\n reportError(\"Incomplete expression.\"); /*I18N*/\n }\n return expr;\n }", "@Test(timeout = 4000)\n public void test151() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"9M4i+yR.T\");\n Token token0 = xPathLexer0.number();\n assertEquals(\"9\", token0.getTokenText());\n assertEquals(30, token0.getTokenType());\n \n Token token1 = xPathLexer0.dollar();\n assertEquals(26, token1.getTokenType());\n assertEquals(\"M\", token1.getTokenText());\n \n Token token2 = xPathLexer0.at();\n assertEquals(16, token2.getTokenType());\n assertEquals(\"4\", token2.getTokenText());\n \n Token token3 = xPathLexer0.not();\n assertEquals(\"i\", token3.getTokenText());\n assertEquals(23, token3.getTokenType());\n \n Token token4 = xPathLexer0.nextToken();\n assertEquals(\"+\", token4.getTokenText());\n assertEquals(5, token4.getTokenType());\n \n Token token5 = xPathLexer0.nextToken();\n assertEquals(\"yR.T\", token5.getTokenText());\n assertEquals(15, token5.getTokenType());\n }", "@Test\n public void testASTKeySymbolCreation() {\n final Grammar_WithConceptsGlobalScope globalScope = GrammarGlobalScopeTestFactory.create();\n Optional<MCGrammarSymbol> grammarOpt = globalScope.resolveMCGrammar(\"de.monticore.KeyAndNext\");\n assertTrue(grammarOpt.isPresent());\n MCGrammarSymbol grammar = grammarOpt.get();\n assertNotNull(grammar);\n assertTrue(grammar.isPresentAstNode());\n\n // no usage name\n Optional<ProdSymbol> aProd = grammar.getSpannedScope().resolveProd(\"A\");\n assertTrue(aProd.isPresent());\n List<RuleComponentSymbol> comps = aProd.get().getSpannedScope().resolveRuleComponentDownMany(\"b\");\n assertFalse(comps.isEmpty());\n RuleComponentSymbol aBRule= comps.get(0);\n assertFalse(aBRule.isIsList());\n\n // with usage name\n Optional<ProdSymbol> bProd = grammar.getSpannedScope().resolveProd(\"B\");\n assertTrue(bProd.isPresent());\n List<RuleComponentSymbol> bBRules = bProd.get().getSpannedScope().resolveRuleComponentMany(\"b\");\n assertTrue(!bBRules.isEmpty());\n assertTrue(bBRules.get(0).isIsList());\n\n // no usage name\n Optional<ProdSymbol> cProd = grammar.getSpannedScope().resolveProd(\"C\");\n assertTrue(cProd.isPresent());\n List<RuleComponentSymbol> cBRules= cProd.get().getSpannedScope().resolveRuleComponentMany(\"b\");\n assertFalse(cBRules.isEmpty());\n assertFalse(cBRules.get(0).isIsList());\n\n // no usage name\n Optional<ProdSymbol> dProd = grammar.getSpannedScope().resolveProd(\"D\");\n assertTrue(dProd.isPresent());\n List<RuleComponentSymbol> dBRules= dProd.get().getSpannedScope().resolveRuleComponentMany(\"b\");\n assertFalse(dBRules.isEmpty());\n assertFalse(dBRules.get(0).isIsList());\n\n // with usage name\n Optional<ProdSymbol> eProd = grammar.getSpannedScope().resolveProd(\"E\");\n assertTrue(eProd.isPresent());\n List<RuleComponentSymbol> eBRules = eProd.get().getSpannedScope().resolveRuleComponentMany(\"b\");\n assertTrue(!eBRules.isEmpty());\n assertTrue(eBRules.get(0).isIsList());\n\n // no usage name\n Optional<ProdSymbol> fProd = grammar.getSpannedScope().resolveProd(\"F\");\n assertTrue(fProd.isPresent());\n List<RuleComponentSymbol> fBRules = fProd.get().getSpannedScope().resolveRuleComponentMany(\"b\");\n assertTrue(fBRules.isEmpty());\n\n // with usage name\n Optional<ProdSymbol> gProd = grammar.getSpannedScope().resolveProd(\"G\");\n assertTrue(gProd.isPresent());\n List<RuleComponentSymbol> gBRules = gProd.get().getSpannedScope().resolveRuleComponentMany(\"b\");\n assertFalse(gBRules.isEmpty());\n }", "CParser getParser();", "public void testParse() throws Exception\r\n {\r\n System.out.println(\"parse\");\r\n \r\n String context1 = \"package test.testpack;\\n class TestClass\\n{\\n\\tdouble d;\\n}\";\r\n String context2 = \"package test.test.testpack;\\n class TestClass\\n{\\n\\tdouble d;\\n}\";\r\n String context3 = \"\\npack age test.test.testpack ;\\n class TestClass \\n{\\n\\tdouble d;\\n}\";\r\n String context4 = \"package test.test.testpack\\n class TestClass\\n{\\n\\tdouble d;\\n}\";\r\n \r\n String context5 = \"package test.test.testpack;\\n class TestClass {\\n\\tdouble d;\\n}\";\r\n String context6 = \"package test.test.testpack;\\n class Test Class{\\n\\tdouble d;\\n}\";\r\n String context7 = \"package test.test.testpack;\\n class TestClass\\n{\\n\" +\r\n \"\\t//Det här är en double\\n\" +\r\n \"\\tdouble d;\\n\" +\r\n \"\\tdouble[] ds;\\n\" +\r\n \"\\tidltype test.test2.Test2Class idlTestObject;\" +\r\n \"\\n}\";\r\n \r\n \r\n FileParser instance = new FileParser();\r\n \r\n IDLClass expResult = null;\r\n \r\n IDLClass result = instance.parse(context1);\r\n assertEquals(result.getPackageName(), \"test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n \r\n result = instance.parse(context2);\r\n assertEquals(result.getPackageName(), \"test.test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n \r\n try\r\n {\r\n \r\n result = instance.parse(context3);\r\n fail(\"Should through\");\r\n } \r\n catch (ParseException ex)\r\n {\r\n assertEquals(\"At line 2: Invalid package declaration.\", ex.getMessage());\r\n }\r\n \r\n try\r\n {\r\n \r\n result = instance.parse(context4);\r\n fail(\"Should through\");\r\n } \r\n catch (ParseException ex)\r\n {\r\n assertEquals(\"At line 1: Missing ; .\", ex.getMessage());\r\n }\r\n \r\n result = instance.parse(context5);\r\n assertEquals(result.getPackageName(), \"test.test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n \r\n try\r\n {\r\n \r\n result = instance.parse(context6);\r\n fail(\"Should through\");\r\n } \r\n catch (ParseException ex)\r\n {\r\n assertEquals(\"At line 2: Invalid class declaration.\", ex.getMessage());\r\n }\r\n \r\n result = instance.parse(context7);\r\n assertEquals(result.getPackageName(), \"test.test.testpack\");\r\n assertEquals(result.getClassName(), \"TestClass\");\r\n assertEquals(result.getFields().get(0).getComment(), \"//Det här är en double\");\r\n \r\n \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 }", "public static void parseAST(Node astNode) {\n\n int childrenNum = astNode.getChildCount();\n for (int i = 0; i < childrenNum; i++) {\n Node child = astNode.getChild(i);\n String astNodeType = child.getClass().getName();\n\n if (astNodeType.contains(\"Text\")) {\n if (child.getValue().contains(\"\\n\")) {\n lineNum++;\n }\n }\n if (astNodeType.contains(\"Element\")) {\n String localName = ((Element) child).getLocalName();\n if (localName.equals(\"decl_stmt\")) {\n String type = ((Element) child).getChildElements().get(0).getChildElements(\"type\", \"http://www.sdml.info/srcML/src\").get(0).getValue();\n String name = ((Element) child).getChildElements().get(0).getChildElements(\"name\", \"http://www.sdml.info/srcML/src\").get(0).getValue();\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else if (localName.equals(\"function_decl\")) {\n String type = ((Element) child).getChildElements().get(0).getValue();\n String name = ((Element) child).getChildElements().get(1).getValue();\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else if (localName.equals(\"function\")) {\n String type = ((Element) child).getChildElements().get(0).getValue();\n String name = ((Element) child).getChildElements().get(1).getValue();\n candidates.add(new CppNode(name, type, localName, lineNum));\n parseAST(child);\n } else if (localName.equals(\"block\")) {\n parseAST(child);\n } else if (localName.equals(\"expr_stmt\")) {\n Element exprChild = ((Element) ((Element) child).getChildElements().get(0).getChild(0));\n String exprType = exprChild.getLocalName();\n if (exprType.equals(\"name\")) {\n String name = exprChild.getValue();\n String type = \"\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else if (exprType.equals(\"call\")) {\n String name = exprChild.getChild(0).getValue();\n String type = \"call\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n parseAST(exprChild);\n }\n } else if (localName.equals(\"call\")) {\n String name = child.getChild(0).getValue();\n String type = \"call\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n parseAST(child);\n } else if (localName.equals(\"argument\")) {\n Element c = ((Element) ((Element) child).getChildElements().get(0).getChild(0));\n if (c.getLocalName().equals(\"name\")) {\n String name = c.getValue();\n String type = \"\";\n candidates.add(new CppNode(name, type, localName, lineNum));\n } else {\n parseAST(child);\n }\n\n\n } else if (!entity.getTerminal().contains(localName)) {\n parseAST(child);\n }\n\n }\n }\n\n }", "public void setGrammarText(String aGrammarText);", "@Override\n public Object visit(PhraseExpr node) {\n node.setExprType(SemanticTools.PHRASE);\n this.currentPhraseExpr = node;\n if (node.getInstrument() != null) {\n node.getInstrument().accept(this);\n if (!node.getInstrument().getExprType().equals(SemanticTools.STRING)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Instrument must be a String\"\n );\n } else {\n if (!SemanticTools.isValidInstrument(\n ((ConstStringExpr) node.getInstrument()).getConstant())\n ) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Instrument must be of types: \" + SemanticTools.instruments\n );\n }\n }\n } else {\n // default value\n node.setInstrument(new ConstStringExpr(node.getLineNum(), \"piano\"));\n }\n if (node.getOctaveModifier() != null) {\n node.getOctaveModifier().accept(this);\n if (!node.getOctaveModifier().getExprType().equals(SemanticTools.INT)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Octave modifiers must be of type \" + SemanticTools.INT\n );\n } else {\n int octave = Integer.parseInt(\n ((ConstIntExpr) node.getOctaveModifier()).getConstant()\n );\n\n if (octave > SemanticTools.MAX_OCT || octave < SemanticTools.MIN_OCT) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Octave modifiers must be within the range \"\n + SemanticTools.MIN_OCT + \" to \"\n + SemanticTools.MAX_OCT\n );\n }\n }\n } else {\n // default value\n node.setOctaveModifier(new ConstIntExpr(node.getLineNum(), \"0\"));\n }\n if (node.getVolume() != null) {\n node.getVolume().accept(this);\n if (!node.getVolume().getExprType().equals(SemanticTools.INT)) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Volume must be of type \" + SemanticTools.INT\n );\n } else {\n int vol = Integer.parseInt(\n ((ConstIntExpr) node.getVolume()).getConstant()\n );\n\n if (vol > 127 || vol < 0) {\n errorHandler.register(\n errorHandler.SEMANT_ERROR,\n root.getScore().getFilename(),\n node.getLineNum(),\n \"Volume must be in range 0-127\"\n );\n }\n }\n } else {\n //default value\n node.setVolume(new ConstIntExpr(node.getLineNum(), \"127\"));\n }\n node.getMeasureList().accept(this);\n return null;\n }" ]
[ "0.6170775", "0.5701907", "0.563785", "0.56108665", "0.5557193", "0.5500748", "0.54188114", "0.53762007", "0.5359957", "0.534995", "0.53303236", "0.531295", "0.52926975", "0.529057", "0.5277601", "0.5263156", "0.52556986", "0.52541417", "0.52489597", "0.524795", "0.52338374", "0.5227436", "0.52224684", "0.52207094", "0.5218752", "0.51734483", "0.51573175", "0.5098361", "0.50947446", "0.50919485", "0.50704026", "0.5059651", "0.5027982", "0.5023834", "0.5019033", "0.5011386", "0.5005819", "0.50055623", "0.50026137", "0.4992638", "0.49814492", "0.49681184", "0.49671757", "0.49625716", "0.49579987", "0.49564898", "0.49511516", "0.49501517", "0.49490845", "0.49438828", "0.49414378", "0.4938436", "0.49353957", "0.49259886", "0.49192852", "0.49093825", "0.49047792", "0.49038634", "0.4901998", "0.49002406", "0.48981532", "0.4890117", "0.48889133", "0.48838404", "0.48811314", "0.4877682", "0.4876873", "0.48710063", "0.48697466", "0.48636732", "0.4860958", "0.48607153", "0.48483372", "0.48476976", "0.4842429", "0.48420757", "0.4841174", "0.4834747", "0.48346782", "0.48311752", "0.48299375", "0.4829148", "0.48281947", "0.4822585", "0.48206118", "0.4819616", "0.4818153", "0.4818002", "0.48156887", "0.4808882", "0.48051503", "0.48039147", "0.48023376", "0.4801197", "0.47985768", "0.47956705", "0.478602", "0.4779253", "0.47728026", "0.4771683", "0.47686365" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner tec = new Scanner(System.in); System.out.println("-- Veja se o ano é bisexto --"); System.out.print("Digite o ano a ser verificado: "); int ano = tec.nextInt(); boolean bis = false; String mes[] = {"Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", "Ago", "Set", "Out", "Nov", "Dez"}; int tot[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; // Verifica se o ano é bixesto if ((ano % 4 == 0 && ano % 100 != 0) || (ano % 400 == 0)) { bis = true; } String bool; if (bis) { bool = " é "; tot[1] = 29; } else bool = " não é "; System.out.println(""); System.out.println("O ano " + ano + bool + "bissexto."); System.out.println(""); for (int i = 0; i < mes.length; i++) { System.out.println("O mês de " + mes[i] + " tem " + tot[i] + " dias"); } }
{ "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
COMPROBAR QUE EL NOMBRE DEL EQUIPO YA EXISTE EN EL REGISTRO
public int comprobarNombreEqu(String nombre) { int res = 0; String query = "SELECT * FROM EQUIPOS WHERE NOMBRE = ? "; Connection con = null; PreparedStatement pstmt = null; ResultSet rslt = null; try { con = acceso.getConnection(); pstmt = con.prepareStatement(query); pstmt.setString(1, "" + nombre + ""); rslt = pstmt.executeQuery(); if (rslt.next()) { res = 1; } } catch (ClassNotFoundException e) { res = -1; e.printStackTrace(); } catch (SQLException e) { res = -1; e.printStackTrace(); } finally { try { if (pstmt != null) pstmt.close(); if (con != null) con.close(); } catch (SQLException e) { e.printStackTrace(); } } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void afegirEquip(Equip equip, boolean ordenat) throws LlistaPlena, EquipExisteix {\n\t\tif(primer==null){\n\t\t\t//Aqui coloco el primer de tots\n\t\t\tprimer= new Node();\n\t\t\tprimer.info=equip;\n\t\t\tn_equips=n_equips+1;\n\t\t\tanterior=primer;\n\t\t}\n\t\telse{\n\t\t\tif(ordenat){\n\t\t\t\t//Ordenat\n\t\t\t\tNode Nanterior=primer, Nseguent=primer.Nodeseguent;\n\t\t\t\tboolean trobat=false;\n\t\t\t\tif(Nanterior.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t//Comprobo si ha d'anar el primer de tots\n\t\t\t\tif(equip.getNom().compareToIgnoreCase(primer.info.getNom())<0){\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tprimer.Nodeanterior=aux;\n\t\t\t\t\taux.Nodeseguent=primer;\n\t\t\t\t\tprimer=aux;\n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}else{\n\t\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\t\twhile(!trobat && Nseguent!=null){\n\t\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\t\tif(equip.getNom().compareToIgnoreCase(Nseguent.info.getNom()) < 0) trobat=true;\n\t\t\t\t\t\telse{\tNanterior=Nseguent;\n\t\t\t\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tNanterior.Nodeseguent=aux;\n\t\t\t\t\taux.Nodeanterior=Nanterior;\n\t\t\t\t\taux.Nodeseguent=Nseguent;\n\t\t\t\t\tif(Nseguent!=null) Nseguent.Nodeanterior=aux; \n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//Desordenat\n\t\t\t\tNode Nseguent=primer;\n\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\twhile(Nseguent!=null){\n\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t}\n\t\t\t\tNode aux3= new Node();\n\t\t\t\taux3.info=equip;\n\t\t\t\tanterior.Nodeseguent=aux3;\n\t\t\t\taux3.Nodeanterior=anterior;\n\t\t\t\tanterior=aux3;\n\t\t\t\tn_equips=n_equips+1;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t}", "@Override\r\n\tpublic Equipo modificar() {\n\t\tLOG.info(\"Modificar los datos del equipo\");\r\n\t\treturn equipo;\r\n\t}", "public void mostrarEquipos(String nombreEquipo) {\n\n for (Equipo equipo : listaEquipos) {\n\n if (equipo.getNombreEquipo() == nombreEquipo) {\n\n System.out.println(equipo);\n }\n }\n }", "public void comprar() {\n\t\tSystem.out.println(\"Comprar \"+cantidad+\" de \"+itemName);\n\t}", "private String insertarCartaVitalTransfusion() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 3,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 2,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public void comprarProducto(Producto producto) throws Exception{\n try{\n if(this.productosEnVenta.contains(producto)){\n throw new suProducto();\n }\n producto.getVendedor().venderProducto(producto, this);\n producto.setComprador(this);\n this.productosComprados.add(producto);\n \n }catch(Exception e){\n throw e;\n } \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 }", "@Override\r\n\tpublic Equipo modificar() {\n\t\tLOG.info(\"Mostrar los datos del equipo modificado\");\r\n\t\treturn equipo;\r\n\t}", "public static void apagarProduto(){\n if(ListaDProduto.size() == 0){\n SaidaDados(\"Nehum produto cadastrado!!\");\n return;\n }\n \n String pesquisarNome = Entrada(\"Informe o nome do produto que deseja deletar: \");\n for(int i =0; i < ListaDProduto.size(); i++){\n \n Produto produtoProcurado = ListaDProduto.get(i);\n \n if(pesquisarNome.equalsIgnoreCase(produtoProcurado.getNome())){\n ListaDProduto.remove(i);\n SaidaDados(\"Produto deletado com sucesso!!\");\n }\n \n }\n \n }", "public List<MovimentoPorCanalDeVendaVO> validaSelecionaEmissaoPorCanal(String movimento) {\n\n\t\tList<MovimentoPorCanalDeVendaVO> list = new ArrayList<MovimentoPorCanalDeVendaVO>(listaEmissaoPorCanal);\n\n\t\tList<MovimentoPorCanalDeVendaVO> listTotal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tString[] mesesTotaisValor = { \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\", \"0.0\",\n\t\t\t\t\"0.0\" };\n\n\t\tString[] mesesTotaisQuantidade = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\tString anoTotal = null;\n\t\tString produtoTotal = null;\n\n\t\tint qtdQuantidade = 0;\n\t\tint qtdValor = 0;\n\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tif (!(list.get(i).getMovimento().trim().equalsIgnoreCase(movimento.trim()))) {\n\t\t\t\tlist.remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\n\t\tfor (MovimentoPorCanalDeVendaVO objLista : list) {\n\t\t\tif (objLista.getTipo().equalsIgnoreCase(\"Valor\")) {\n\t\t\t\tqtdValor++;\n\t\t\t} else if (objLista.getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\t\t\t\tqtdQuantidade++;\n\t\t\t}\n\t\t}\n\t\tint indiceElementoNaoEncontrado = 0;\n\t\tif (qtdValor != qtdQuantidade) {\n\n\t\t\tif (qtdValor > qtdQuantidade) {// Valor eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"\n\t\t\t\t\t\t\t\t// + list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\n\t\t\t\t\t\t\t\t}\n\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}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Quantidade\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\t\t\t} else {// Qtd eh maior\n\t\t\t\touter: for (int i = 0; i < list.size(); i++) {\n\t\t\t\t\tif (list.get(i).getTipo().equalsIgnoreCase(\"Quantidade\")) {\n\n\t\t\t\t\t\t// System.out.println();\n\t\t\t\t\t\t//\n\t\t\t\t\t\t// System.out.print(\" 1 | \"\n\t\t\t\t\t\t// + list.get(i).getCanalDeVenda());\n\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\t\t\tint achou = -1;\n\t\t\t\t\t\t\tif (list.get(j).getTipo().equalsIgnoreCase(\"Valor\")) {\n\n\t\t\t\t\t\t\t\t// System.out.print(\" 2 | \"+\n\t\t\t\t\t\t\t\t// list.get(j).getCanalDeVenda());\n\t\t\t\t\t\t\t\t// System.out.println();\n\n\t\t\t\t\t\t\t\tif (list.get(i).getCanalDeVenda().equals(list.get(j).getCanalDeVenda())) {\n\t\t\t\t\t\t\t\t\tachou = j;\n\t\t\t\t\t\t\t\t\tcontinue outer;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tif (j == list.size() - 1 && achou == -1) {\n\t\t\t\t\t\t\t\t\tindiceElementoNaoEncontrado = i;\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}\n\t\t\t\t}\n\n\t\t\t\tString[] meses = { \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\", \"0\" };\n\n\t\t\t\tMovimentoPorCanalDeVendaVO canalVendaVazio = new MovimentoPorCanalDeVendaVO();\n\t\t\t\tcanalVendaVazio.setCanalDeVenda(list.get(indiceElementoNaoEncontrado).getCanalDeVenda());\n\t\t\t\tcanalVendaVazio.setProduto(list.get(indiceElementoNaoEncontrado).getProduto());\n\t\t\t\tcanalVendaVazio.setTipo(\"Valor\");\n\t\t\t\tcanalVendaVazio.setMeses(meses);\n\n\t\t\t\tlist.add(((list.size() + 1) / 2 + indiceElementoNaoEncontrado), canalVendaVazio);// aqui\n\t\t\t\t/* estou ordenando tudo que é tipo 'Valor' antes de 'Quantidade' */\n\n\t\t\t}\n\n\t\t}\n\n\t\t/*\n\t\t * ===Primeiro crio os objetos com os totais=========\n\t\t */\n\t\tfor (MovimentoPorCanalDeVendaVO emi : list) {\n\n\t\t\tif (emi.getTipo().equals(\"Valor\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisValor[i] = new BigDecimal(mesesTotaisValor[i]).add(new BigDecimal(emi.getMeses()[i]))\n\t\t\t\t\t\t\t.toString();\n\t\t\t\t}\n\n\t\t\t} else if (emi.getTipo().equals(\"Quantidade\")) {\n\n\t\t\t\tfor (int i = 0; i < emi.getMeses().length; i++) {\n\t\t\t\t\tmesesTotaisQuantidade[i] = Integer.toString(\n\t\t\t\t\t\t\t(Integer.parseInt(mesesTotaisQuantidade[i]) + Integer.parseInt(emi.getMeses()[i])));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tanoTotal = emi.getAno();\n\t\t\tprodutoTotal = emi.getProduto();\n\n\t\t}\n\n\t\tMovimentoPorCanalDeVendaVO totalValor = new MovimentoPorCanalDeVendaVO();\n\t\tMovimentoPorCanalDeVendaVO totalQuantidade = new MovimentoPorCanalDeVendaVO();\n\n\t\ttotalValor.setCanalDeVenda(\"Total\");\n\t\ttotalValor.setProduto(produtoTotal);\n\t\ttotalValor.setTipo(\"Valor\");\n\t\ttotalValor.setAno(anoTotal);\n\t\ttotalValor.setMeses(mesesTotaisValor);\n\t\tlistTotal.add(totalValor);\n\n\t\ttotalQuantidade.setCanalDeVenda(\"Total\");\n\t\ttotalQuantidade.setProduto(produtoTotal);\n\t\ttotalQuantidade.setTipo(\"Quantidade\");\n\t\ttotalQuantidade.setAno(anoTotal);\n\t\ttotalQuantidade.setMeses(mesesTotaisQuantidade);\n\t\tlistTotal.add(totalQuantidade);\n\n\t\t/*\n\t\t * ===Agora calculo os percentuais=========\n\t\t */\n\n\t\tfinal int VALOR = 0;\n\t\tfinal int QUANTIDADE = 1;\n\n\t\tDecimalFormat percentForm = new DecimalFormat(\"0.00%\");\n\t\tDecimalFormat roundForm = new DecimalFormat(\"0.00\");\n\t\tUteis uteis = new Uteis();\n\t\tList<MovimentoPorCanalDeVendaVO> listFinal = new ArrayList<MovimentoPorCanalDeVendaVO>();\n\n\t\tfor (int i = 0; i < list.size() / 2; i++) {\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValor = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===VALOR==== */\n\t\t\temissaoValor.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValor.setTipo(list.get(i).getTipo());\n\t\t\temissaoValor.setMeses(list.get(i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoValorPercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=VALOR==== */\n\t\t\temissaoValorPercent.setCanalDeVenda(list.get(i).getCanalDeVenda());\n\t\t\temissaoValorPercent.setTipo(\"% \" + list.get(i).getTipo());\n\n\t\t\tString[] mesesPercentValor = new String[12];\n\t\t\tfor (int k = 0; k < list.get(i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\t\t\t\t\tdouble total = Double.parseDouble(new BigDecimal(list.get(i).getMeses()[k])\n\t\t\t\t\t\t\t.divide(new BigDecimal(listTotal.get(VALOR).getMeses()[k]), 5, RoundingMode.HALF_DOWN)\n\t\t\t\t\t\t\t.toString());\n\t\t\t\t\tmesesPercentValor[k] = percentForm.format(total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentValor[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoValorPercent.setMeses(mesesPercentValor);\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidade = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===QUANTIDADE==== */\n\t\t\tint j = list.size() / 2;\n\t\t\temissaoQuantidade.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidade.setTipo(list.get(j + i).getTipo());\n\t\t\temissaoQuantidade.setMeses(list.get(j + i).getMeses());\n\n\t\t\tMovimentoPorCanalDeVendaVO emissaoQuantidadePercent = new MovimentoPorCanalDeVendaVO();\n\t\t\t/* ===%=QUANTIDADE==== */\n\t\t\temissaoQuantidadePercent.setCanalDeVenda(list.get(j + i).getCanalDeVenda());\n\t\t\temissaoQuantidadePercent.setTipo(\"% \" + list.get(j + i).getTipo());\n\n\t\t\tString[] mesesPercentQuantidade = new String[12];\n\t\t\tfor (int k = 0; k < list.get(j + i).getMeses().length; k++) {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tdouble total = Double.parseDouble(list.get(j + i).getMeses()[k])\n\t\t\t\t\t\t\t/ Double.parseDouble(listTotal.get(QUANTIDADE).getMeses()[k]);\n\t\t\t\t\tmesesPercentQuantidade[k] = percentForm\n\t\t\t\t\t\t\t.format(Double.toString(total).equalsIgnoreCase(\"NaN\") ? 0.0 : total);\n\n\t\t\t\t} catch (ArithmeticException e) {\n\t\t\t\t\tmesesPercentQuantidade[k] = \"0%\";\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\temissaoQuantidadePercent.setMeses(mesesPercentQuantidade);\n\n\t\t\tString[] valorFormatado = new String[12];\n\t\t\tfor (int k = 0; k < emissaoValor.getMeses().length; k++) {\n\t\t\t\tvalorFormatado[k] = uteis\n\t\t\t\t\t\t.insereSeparadoresMoeda(roundForm.format(Double.parseDouble(emissaoValor.getMeses()[k])));\n\n\t\t\t}\n\t\t\temissaoValor.setMeses(valorFormatado);\n\n\t\t\tString[] valorFormatado2 = new String[12];\n\t\t\tfor (int k = 0; k < emissaoQuantidade.getMeses().length; k++) {\n\t\t\t\tvalorFormatado2[k] = uteis.insereSeparadores(emissaoQuantidade.getMeses()[k]);\n\t\t\t}\n\t\t\temissaoQuantidade.setMeses(valorFormatado2);\n\n\t\t\tlistFinal.add(emissaoValor);\n\t\t\tlistFinal.add(emissaoValorPercent);\n\t\t\tlistFinal.add(emissaoQuantidade);\n\t\t\tlistFinal.add(emissaoQuantidadePercent);\n\n\t\t}\n\n\t\treturn listFinal;\n\n\t}", "@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }", "public void guardarProductosVendidos() {\n try {\n //Si hay datos los guardamos...\n if (!productosVendidos.isEmpty()) {\n /****** Serialización de los objetos ******/\n //Serialización de los productosVendidos\n FileOutputStream archivo = new FileOutputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de personas\n guardar.writeObject(productosVendidos);\n archivo.close();\n } else {\n System.out.println(\"Error: No hay datos...\");\n }\n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }", "public void agregarProductoConCantidad(String producto, Integer cantidad){\n\t\tif (!this.datosCompras.containsKey(producto)) {\n\t\t// Si el producto pasado por parametro no existe aśn lo agrega, junto con su cantidad\n\t\t\tthis.datosCompras.put(producto, cantidad);\n\t\t} else {\n\t\t// Si el producto ya existe, modifico su stock\n\t\t\t// Obtenemos el stock actual y lo guardamos\n\t\t\tInteger productStock = this.datosCompras.get(producto);\n\t\t\t// eliminamos el producto del mapa\n\t\t\tthis.datosCompras.remove(producto);\n\t\t\t// Incrementamos el stock segśn la cantidad pasada por parametro\n\t\t\tcantidad = cantidad + productStock;\n\t\t\t// Agergamos el nuevo producto con su stock actualizado\n\t\t\tthis.datosCompras.put(producto, cantidad);\n\t\t}\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}", "public void estableceEquipoComputo() {\n\tsetDispositivo(JOptionPane.showInputDialog(\"Ingrese el nombre del dispositivo a adquirir\"));\n\tsetComercio(JOptionPane.showInputDialog(\"Ingrese el nombre del comercio donde lo comprara\"));\n}", "private static float adicionarItem(int idCliente, int idCompra) throws Exception {\r\n int idItemComprado;\r\n float gasto = 0;\r\n boolean qtdInvalida;\r\n boolean idInvalido = false;\r\n do {\r\n qtdInvalida = false;\r\n System.out.print(\"Digite o id do produto desejado: \");\r\n int id = read.nextInt();\r\n Produto p = arqProdutos.pesquisar(id - 1);\r\n if (p != null && p.getID() != -1) {\r\n do {\r\n qtdInvalida = false;\r\n System.out.print(\"Qual a quantidade desejada? \");\r\n byte qtdProduto = read.nextByte();\r\n if (qtdProduto > 0 && qtdProduto <= 255) {\r\n ItemComprado ic = new ItemComprado(idCompra, qtdProduto, p);\r\n idItemComprado = arqItemComprado.inserir(ic);\r\n indice_Compra_ItemComprado.inserir(idCompra, idItemComprado);\r\n indice_ItemComprado_Compra.inserir(idItemComprado, idCompra);\r\n indice_Produto_Cliente.inserir(p.getID(), idCliente);\r\n indice_Cliente_Produto.inserir(idCliente, p.getID());\r\n System.out.println(\"Adicionado \" + qtdProduto + \"x '\" + p.nomeProduto + \"'\");\r\n gasto = qtdProduto * p.preco;\r\n p.addQuantVendidos(qtdProduto);\r\n arqProdutos.alterar(p.getID(), p);\r\n } else {\r\n System.out.println(\"Valor invalido!\");\r\n qtdInvalida = true;\r\n }\r\n } while (qtdInvalida);\r\n } else {\r\n System.out.println(\"\\nId invalido!\");\r\n idInvalido = true;\r\n }\r\n } while (idInvalido);\r\n return gasto;\r\n }", "private String insertarCartaHeal() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 4,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public boolean alterarIDItemCardapio(){\n\t\tif(\tid_item_pedido \t\t> 0 && //Verifica se o item do pedido informado é maior que zero, se existe, se não está fechado, verifica se o item do cardapio informado existe e se está disponível\r\n\t\t\tconsultar().size() \t> 0 && \r\n\t\t\tconsultar().get(5)\t.equals(\"Aberto\")/* &&\r\n\t\t\titem_cardapio.consultar().size()>0 &&\r\n\t\t\titem_cardapio.consultar().get(4).equals(\"Disponível\")*/\r\n\t\t\t){\r\n\t\t\t\r\n\t\t\treturn new Item_Pedido_DAO().alterarIDItemCardapio(id_item_pedido, id_item_cardapio);\t\t\t\r\n\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "private void caricaRegistrazione() {\n\t\tfor(MovimentoEP movimentoEP : primaNota.getListaMovimentiEP()){\n\t\t\t\n\t\t\tif(movimentoEP.getRegistrazioneMovFin() == null) { //caso di prime note libere.\n\t\t\t\tthrow new BusinessException(ErroreCore.OPERAZIONE_NON_CONSENTITA.getErrore(\"La prima nota non e' associata ad una registrazione.\"));\n\t\t\t}\n\t\t\t\n\t\t\tthis.registrazioneMovFinDiPartenza = registrazioneMovFinDad.findRegistrazioneMovFinById(movimentoEP.getRegistrazioneMovFin().getUid());\n\t\t\t\n\t\t}\n\t\t\n\t\tif(this.registrazioneMovFinDiPartenza.getMovimento() == null){\n\t\t\tthrow new BusinessException(\"Movimento non caricato.\");\n\t\t}\n\t\t\n\t}", "private String insertarCarta() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public void comprar(Carrito carrito){\n\t\tif(carrito.getEstadoVendido()==false){\n\t\t\tif(this.tarjeta.verificarTarjeta(carrito.getCostoCarrito())==true){\n\t\t\t\tSystem.out.println(\"Felicidades \"+this.getNombre()+\", la compra de su carrito \"+carrito.getNombreCarrito()+\" ha sido realizada con exito!\\nSe han debitado $\"+carrito.getCostoCarrito()+\" de su tarjeta.\\n\\nLos productos seran enviados a \"+this.getDireccionEnvio()+\"\\n-------------------------------------------------------\");\n\t\t\t\tcarrito.setEstadoVendido(true);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"El carrito ya fue comprado!\");\n\t}", "public static void BuscarReserva (Variables var,Menus Menus,BaseDades db,Reserva res, TReserva reserva,sMissatges missatge, bComprobadors comp){\r\n comp.bBuscar = true; \r\n \r\n //Mostra el menu de Buscar Reserva\r\n Menus(Menus.MenuBuscarReserva);\r\n \r\n //Llegeix les dades per buscar reserva\r\n reserva.iTelefon = sLlegirNumero(missatge.nTelefonReserva);\r\n\r\n //Mostra la Reserva\r\n MostrarReserva(var, db, res, reserva, Menus, comp);\r\n //Comprueba si la reserva se ha mostrado, sino muestra mensaje de no encontrada\r\n if(comp.bBuscar == true){\r\n Mostra(missatge.sReservaNoTrobada);\r\n }\r\n }", "private String entraCodProd(boolean isIncluir) {\n String cod = \"\";\n boolean isCadastro = false;\n\n ArrayList<Produto> codProd = (obterTodosProdutos());\n\n // loop enquanto teclar vazio ou not fim\n while (cod.isEmpty() || true) {\n // janela de input do CPF\n cod = JOptionPane.showInputDialog(this, \"Cod do Produto\");\n if (cod == null) {\n return null;\n } else if (cod.isEmpty()) {\n // SE DER <ENTER> JOGA MENSAGEM DE ERRO e VOLTA AO LOOP.\n JOptionPane.showMessageDialog(null, \"Por Favor, Digite Algo!\",\n \"Msg do Servidor\", JOptionPane.INFORMATION_MESSAGE);\n } else {\n\n for (Produto codProd1 : codProd) {\n if (cod.equals(codProd1.getCod())) {\n if (isIncluir) {\n // ENQUANTO NAO ENCONTRA JOGA MENSAGEM DE ERRO e\n // VOLTA AO LOOP.\n JOptionPane.showMessageDialog(null,\n \"Produto Ja Cadastrado!!!\",\n \"Msg do Servidor\",\n JOptionPane.INFORMATION_MESSAGE);\n isCadastro = true;\n break;\n } else {\n return cod;\n }\n }\n isCadastro = false;\n }\n\n if (!isIncluir) {\n // ENQUANTO NAO ENCONTRA JOGA MENSAGEM DE ERRO e VOLTA AO\n // LOOP.\n JOptionPane.showMessageDialog(null,\n \"Produto nao encontrado!!!\", \"Msg do Servidor\",\n JOptionPane.INFORMATION_MESSAGE);\n } else {\n if (!isCadastro) {\n return cod;\n }\n }\n }\n\n }\n return cod;\n }", "public void setEquipo(Equipo Equipo) {\n this.equipo = Equipo;\n }", "public boolean buy() throws Exception {\n\n int jogador = this.jogadorAtual();\n\n String lugar = this.tabuleiro.getPlaceName(posicoes[jogador]);\n // System.out.println(\"lugar[jogador]\" + lugar);\n boolean posicaoCompravel = this.posicaoCompravel(posicoes[jogador]);\n boolean isEstatal = this.isPosicaoEstatal(this.posicoes[jogador]);\n\n if (posicaoCompravel || (isEstatal && this.publicServices == true && verificaSeServicoPublicoFoiComprado(this.posicoes[jogador]))) {\n\n if (posicaoCompravel || (isEstatal && this.publicServices == true)) {\n this.listaJogadores.get(jogadorAtual()).addQuantidadeCompanhias();\n\n }\n int posicaoTabuleiro = posicoes[jogador];\n int preco = this.tabuleiro.getLugarPrecoCompra(posicaoTabuleiro);\n Jogador j = listaJogadores.get(jogador);\n this.terminarAVez();\n if (preco <= j.getDinheiro()) {\n this.print(\"\\tPossui dinheiro para a compra!\");\n j.retirarDinheiro(preco);\n this.Donos.put(posicaoTabuleiro, j.getNome());\n\n String nomeLugar = this.tabuleiro.getPlaceName(posicaoTabuleiro);\n j.addPropriedade(nomeLugar);\n if (nomeLugar.equals(\"Reading Railroad\") || nomeLugar.equals(\"Pennsylvania Railroad\") ||\n nomeLugar.equals(\"B & O Railroad\") || nomeLugar.equals(\"Short Line Railroad\")) {\n DonosFerrovias[jogador]++;\n }\n this.print(\"\\tVocê adquiriu \" + nomeLugar + \" por \" + preco);\n this.print(\"\\tAtual dinheiro: \" + j.getDinheiro());\n if (j.temPropriedades() && hipotecaAtiva) {\n j.adicionarComandoHipotecar();\n }\n if (j.verificaSeTemGrupo(posicaoTabuleiro)) {\n if (this.build == true) {\n j.adicionarComandoBuild();\n }\n\n this.tabuleiro.duplicarAluguelGrupo(posicaoTabuleiro);\n\n }\n } else {\n this.print(\"\\tNão possui dinheiro para realizar a compra!\");\n throw new Exception(\"Not enough money\");\n }\n\n } else {\n\n if (this.jaTemDono(posicoes[jogador])) {\n throw new Exception(\"Deed for this place is not for sale\");\n }\n\n if (isEstatal && this.publicServices == false) {\n throw new Exception(\"Deed for this place is not for sale\");\n }\n if (!posicaoCompravel) {\n throw new Exception(\"Place doesn't have a deed to be bought\");\n }\n }\n\n\n\n return false;\n\n\n\n }", "public void agregarProducto(String producto){\n\t\tif (!this.existeProducto(producto)) {\n\t\t\tthis.compras.add(producto);\n\t\t}\n\t}", "@Override\r\n public String toString() {\r\n return \"Equipamento{\" + \"nome=\" + nome + \", cliente=\" + cliente + '}';\r\n }", "private void comboCarrega() {\n\n try {\n con = BancoDeDados.getConexao();\n //cria a string para inserir no banco\n String query = \"SELECT * FROM servico\";\n\n PreparedStatement cmd;\n cmd = con.prepareStatement(query);\n ResultSet rs;\n\n rs = cmd.executeQuery();\n\n while (rs.next()) {\n JCservico.addItem(rs.getString(\"id\") + \"-\" + rs.getString(\"modalidade\"));\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro de SQL \" + ex.getMessage());\n }\n }", "public void guardarProductosEnVenta() {\n try {\n //Si hay datos los guardamos...\n \n /****** Serialización de los objetos ******/\n //Serialización de las productosEnVenta\n FileOutputStream archivo = new FileOutputStream(\"productosVentaCliente\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de productosEnVenta\n guardar.writeObject(productosEnVenta);\n archivo.close();\n \n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }", "public void guardarProductosComprados() {\n try {\n //Si hay datos los guardamos...\n if (!productosComprados.isEmpty()) {\n /****** Serialización de los objetos ******/\n //Serialización de los productosComprados\n FileOutputStream archivo = new FileOutputStream(\"productosComprados\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de productosComprados\n guardar.writeObject(productosComprados);\n archivo.close();\n } else {\n System.out.println(\"Error: No hay datos...\");\n }\n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }", "public void verificarExistenciaCelpe(Collection imoveisEconomia, Imovel imovel, String numeroCelpe,\r\n\t\t\tDate dataUltimaAlteracao) throws ControladorException {\r\n\r\n\t\t// Cria Filtros\r\n\t\tFiltroImovel filtroImovel = new FiltroImovel();\r\n\r\n\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.NUMERO_CELPE, numeroCelpe));\r\n\r\n\t\tCollection imoveis = getControladorUtil().pesquisar(filtroImovel, Imovel.class.getName());\r\n\r\n\t\tif (!imoveis.isEmpty()) {\r\n\t\t\tString idMatricula = \"\" + ((Imovel) ((List) imoveis).get(0)).getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\r\n\t\tif (dataUltimaAlteracao != null) {\r\n\r\n\t\t\tFiltroImovelEconomia filtroImovelEconomia = new FiltroImovelEconomia();\r\n\r\n\t\t\tfiltroImovelEconomia\r\n\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.IMOVEL_ID, imovel.getId()));\r\n\t\t\tfiltroImovelEconomia\r\n\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.NUMERO_CELPE, numeroCelpe));\r\n\r\n\t\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria.comp_id.imovel\");\r\n\r\n\t\t\tCollection imoveisEconomiaPesquisadas = getControladorUtil().pesquisar(filtroImovelEconomia,\r\n\t\t\t\t\tImovelEconomia.class.getName());\r\n\r\n\t\t\tif (!imoveisEconomiaPesquisadas.isEmpty()) {\r\n\t\t\t\tImovelEconomia imovelEconomia = (ImovelEconomia) ((List) imoveisEconomiaPesquisadas).get(0);\r\n\r\n\t\t\t\tif (imovelEconomia.getUltimaAlteracao().getTime() != dataUltimaAlteracao.getTime()) {\r\n\r\n\t\t\t\t\tString idMatricula = \"\" + imovelEconomia.getImovelSubcategoria().getComp_id().getImovel().getId();\r\n\r\n\t\t\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null, idMatricula);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (imoveisEconomia != null) {\r\n\r\n\t\t\tIterator imovelEconomiaIterator = imoveisEconomia.iterator();\r\n\r\n\t\t\twhile (imovelEconomiaIterator.hasNext()) {\r\n\r\n\t\t\t\tImovelEconomia imovelEconomia = (ImovelEconomia) imovelEconomiaIterator.next();\r\n\r\n\t\t\t\t// caso seja o mesmo imovel economia n�o fa�a a verifica��o\r\n\t\t\t\tif (imovelEconomia.getUltimaAlteracao().getTime() != dataUltimaAlteracao.getTime()) {\r\n\r\n\t\t\t\t\t// verifica se o numero da da celpe que veio do imovel\r\n\t\t\t\t\t// economia\r\n\t\t\t\t\t// � diferente de nulo.\r\n\t\t\t\t\tif (imovelEconomia.getNumeroCelpe() != null && !imovelEconomia.getNumeroCelpe().equals(\"\")) {\r\n\r\n\t\t\t\t\t\tLong numeroCelpeLong = new Long(numeroCelpe);\r\n\r\n\t\t\t\t\t\t// se o numero da iptu do imovel economia for diferente\r\n\t\t\t\t\t\t// de\r\n\t\t\t\t\t\t// nulo ent�o � verificado se o numero da iptu\r\n\t\t\t\t\t\t// que o veio do form � igual ao do objeto imovel\r\n\t\t\t\t\t\t// economia\r\n\t\t\t\t\t\t// cadastrado.\r\n\t\t\t\t\t\tif (imovelEconomia.getNumeroCelpe().equals(numeroCelpeLong)) {\r\n\r\n\t\t\t\t\t\t\tsessionContext.setRollbackOnly();\r\n\r\n\t\t\t\t\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null,\r\n\t\t\t\t\t\t\t\t\t\"\" + imovelEconomia.getImovelSubcategoria().getComp_id().getImovel().getId());\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}", "private void somarQuantidade(Integer id_produto){\n\t for (ItensCompra it : itensCompra){\n\t\t //verifico se o item do meu arraylist é igual ao ID passado no Mapping\n\t\t if(it.getTable_Produtos().getId_produto().equals(id_produto)){\n\t //defino a quantidade atual(pego a quantidade atual e somo um)\n\t it.setQuantidade(it.getQuantidade() + 1);\n\t //a apartir daqui, faço o cálculo. Valor Total(ATUAL) + ((NOVA) quantidade * valor unitário do produto(ATUAL))\n\t it.setValorTotal(0.);\n\t it.setValorTotal(it.getValorTotal() + (it.getQuantidade() * it.getValorUnitario()));\n }\n}\n\t}", "public void ComprarEdificio(int tipo){\n if(edificios[tipo].tipoCompra.equals(\"oro\")){\n if(aldea.oro >= edificios[tipo].precioCompraMejora()){\n if(aldea.constructoresLibres() > 0){\n // Bloquear constructor\n aldea.bloquearConstructor();\n // Obtener tiempo actual\n Date tiempo = new Date();\n // Gastar oro de edificio\n aldea.gastarOro(edificios[tipo].precioCompraMejora());\n // Construir edificio y obtener evento futuro de culminacion\n // Agregar evento a la LEF\n LEF.add(aldea.construirEdificio(tiempo, edificios[tipo]));\n jTextFieldOro.setText(String.valueOf((int)aldea.oro));\n }\n }\n }else{\n if(aldea.elixir >= edificios[tipo].precioCompraMejora()){\n if(aldea.constructoresLibres() > 0){\n // Bloquear constructor\n aldea.bloquearConstructor();\n // Obtener tiempo actual\n Date tiempo = new Date();\n // Gastar elixir de edificio\n aldea.gastarElixir(edificios[tipo].precioCompraMejora());\n // Construir edificio y obtener evento futuro\n // Agregar evento a la LEF\n LEF.add(aldea.construirEdificio(tiempo, edificios[tipo]));\n jTextFieldElixir.setText(String.valueOf((int)aldea.elixir));\n }\n }\n }\n }", "private void ingresarReserva() throws Exception {\r\n\t\tif (mngRes.existeReservaPeriodo(getSitio().getId())) {\r\n\t\t\tif (mayorEdad) {\r\n\t\t\t\tmngRes.crearReserva(getEstudiante(), getSitio(), periodo.getPrdId(), null);\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t} else {\r\n\t\t\t\tmngRes.crearReserva(getEstudiante(), getSitio(), periodo.getPrdId(),\r\n\t\t\t\t\t\tgetDniRepresentante() + \";\" + getNombreRepresentante());\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t}\r\n\t\t\tMensaje.crearMensajeINFO(\"Reserva realizada correctamente, no olvide descargar su contrato.\");\r\n\t\t} else {\r\n\t\t\tMensaje.crearMensajeWARN(\"El sitio seleccionado ya esta copado, favor eliga otro.\");\r\n\t\t}\r\n\t}", "public void regolaOrdineInMenu(int codRiga) {\n\n /** variabili e costanti locali di lavoro */\n Modulo moduloPiatto = null;\n Modulo moduloRighe = null;\n\n Campo campoOrdineRiga = null;\n\n int codPiatto = 0;\n int codiceMenu = 0;\n int codiceCategoria = 0;\n\n Filtro filtro = null;\n\n int ordineMassimo = 0;\n Integer nuovoOrdine = null;\n int valoreOrdine = 0;\n Integer valoreNuovo = null;\n\n Object valore = null;\n int[] chiavi = null;\n int chiave = 0;\n\n try { // prova ad eseguire il codice\n\n /* regolazione variabili di lavoro */\n moduloRighe = this.getModulo();\n moduloPiatto = this.getModuloPiatto();\n campoOrdineRiga = this.getModulo().getCampoOrdine();\n\n /* recupera il codice del piatto dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_PIATTO, codRiga);\n codPiatto = Libreria.objToInt(valore);\n\n /* recupera il codice del menu dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_MENU, codRiga);\n codiceMenu = Libreria.objToInt(valore);\n\n /* recupera il codice categoria dal piatto */\n valore = moduloPiatto.query().valoreCampo(Piatto.CAMPO_CATEGORIA, codPiatto);\n codiceCategoria = Libreria.objToInt(valore);\n\n /* crea un filtro per ottenere tutte le righe comandabili di\n * questa categoria esistenti nel menu */\n filtro = this.filtroRigheCategoriaComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* determina il massimo numero d'ordine tra le righe selezionate dal filtro */\n ordineMassimo = this.getModulo().query().valoreMassimo(campoOrdineRiga, filtro);\n\n /* determina il nuovo numero d'ordine da assegnare alla riga */\n if (ordineMassimo != 0) {\n nuovoOrdine = new Integer(ordineMassimo + 1);\n } else {\n nuovoOrdine = new Integer(1);\n } /* fine del blocco if-else */\n\n /* apre un \"buco\" nella categoria spostando verso il basso di una\n * posizione tutte le righe di questa categoria che hanno un numero\n * d'ordine uguale o superiore al numero d'ordine della nuova riga\n * (sono le righe non comandabili) */\n\n /* crea un filtro per selezionare le righe non comandabili della categoria */\n filtro = filtroRigheCategoriaNonComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* recupera le chiavi dei record selezionati dal filtro */\n chiavi = this.getModulo().query().valoriChiave(filtro);\n\n /* spazzola le chiavi */\n for (int k = 0; k < chiavi.length; k++) {\n chiave = chiavi[k];\n valore = this.getModulo().query().valoreCampo(campoOrdineRiga, chiave);\n valoreOrdine = Libreria.objToInt(valore);\n valoreNuovo = new Integer(valoreOrdine + 1);\n this.getModulo().query().registraRecordValore(chiave, campoOrdineRiga, valoreNuovo);\n } // fine del ciclo for\n\n /* assegna il nuovo ordine alla riga mettendola nel buco */\n this.getModulo().query().registraRecordValore(codRiga, campoOrdineRiga, nuovoOrdine);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "protected ArrayList efetuarCompra(ArrayList<Produto> produtosCtlg){\n for (int i=0; i<itens.size(); i++){\r\n for (int j=0; j<produtosCtlg.size(); j++){\r\n if (itens.get(i).getId() == produtosCtlg.get(j).getId()){\r\n produtosCtlg.get(j).setQuantidade(itens.get(i).getQtdPedida());\r\n }\r\n }\r\n }\r\n return itens;\r\n }", "private String insertarCartaRitual() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 1,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 1,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n\n try {\n\n Object o[] = null;\n List<Producto> listP = CProducto.findProductoEntities();\n boolean resp = false; //ESTO ES LA BANDERA PARA SABER SI EL PRODUCTO EXISTE\n int num = 0;\n String nombreP = txtproducto.getText();\n for (int i = 0; i < listP.size(); i++) {\n\n if (listP.get(i).getNombreProducto().equals(txtproducto.getText())) {\n resp = true;\n num = i;\n }\n }\n if (resp != true) { //VA A VENDER UN PRODUCTO QUE NO EXISTE:\n JOptionPane.showMessageDialog(null, \"Estás intentando vender un articulo que no existe!\\nRevisa tu inventario.\", \"ERROR\", JOptionPane.WARNING_MESSAGE);\n\n } else {\n //Obtenemos el valor total y la cantidad que tenemos hasta ahora en inventarios.\n int cantidadTotal = listP.get(num).getCantidadAlmacenada();\n\n //Obtenemos el valor total de la compra que acabamos de realizar\n int cantidadCompra = Integer.parseInt(txtcantidad.getText());\n\n int resultado = cantidadTotal - cantidadCompra;\n if (resultado < 0) {\n JOptionPane.showMessageDialog(null, \"Lo sentimos, no tenemos esa cantidad.\\nActualmente solo le podemos vender \" + cantidadTotal + \" unidades de ese articulo.\", \"Total excedido\", JOptionPane.INFORMATION_MESSAGE);\n\n int respuesta = JOptionPane.showConfirmDialog(null, \"¿Desea realizar una compra por esta cantidad?\", \"Alerta!\", JOptionPane.YES_NO_OPTION);\n\n if (respuesta == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n this.setVisible(false);\n }\n } else if (resultado == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n float valorTotal = listP.get(num).getValorUnitario() * cantidadTotal;\n\n float valorTotalC = Float.parseFloat(txtvalorU.getText()) * cantidadCompra;\n\n //Actualizamos el valor total y la cntidad de inventario (Producto)\n valorTotal = valorTotal - valorTotalC;\n float valorUnitario = valorTotal / resultado; //Este es el costo unitario\n Producto pEdit = CProducto.findProducto(id);\n pEdit.setCantidadAlmacenada(resultado);\n pEdit.setValorUnitario(valorUnitario);\n\n CProducto.edit(pEdit);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n this.setVisible(false);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage() + e.getCause());\n }\n }", "public clsEquipacion() {\n\t\tString color1P = \"\";\n\t\tString color2P = \"\";\n\t\tString color1S = \"\";\n\t\tString color2S = \"\";\n\t\tString publicidadP = \"\";\n\t\tString publicidadS = \"\";\n\t\tString serigrafiadoP = \"\";\n\t\tString serigrafiadoS = \"\";\n\t\tint dorsal = 0;\n\t}", "static Producto busqueda(int codigo, Vector productos){ \r\n \tboolean band = false;\r\n \t//si return no es igual a null nos regresara el codigo\r\n Producto p,retornP = null; \r\n //For para comparar todos los codigos del vector que digitamos\r\n for(int x = 0; x < productos.size(); x++){ \r\n \tp = (Producto) productos.elementAt(x);\r\n \t//si el codigo es el mismo regresamos el producto que encontramos\r\n if(p.getCodigo() == codigo) \r\n \tretornP = p;\r\n }\r\n return retornP;\r\n }", "@Override\r\n\tpublic void guardar() {\n\t\tLOG.info(\"El equipo \"+equipo.getNombre()+\" y el Estadio \"+equipo.getEstadio().getNombre()+\" fueron guardados con exito\");\r\n\t}", "public boolean existe(Producto producto);", "private Equipo buscarEquipoPorNombre(String buscado) {\n for (int i = 0; i < equipos.size(); i++) {\n if (equipos.get(i).getNombre().equalsIgnoreCase(buscado)) {\n return equipos.get(i);\n }\n }\n return null;\n }", "public void equipoActual(AbstractElectronico equipo) throws Exception;", "public abstract void commitMiembrosDeEquipo();", "private String insertarCartaNightmare() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 15,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "private void cargarProductos() {\r\n\t\tproductos = productoEJB.listarInventariosProductos();\r\n\r\n\t\tif (productos.size() == 0) {\r\n\r\n\t\t\tList<Producto> listaProductos = productoEJB.listarProductos();\r\n\r\n\t\t\tif (listaProductos.size() > 0) {\r\n\r\n\t\t\t\tMessages.addFlashGlobalWarn(\"Para realizar una venta debe agregar los productos a un inventario\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "@Override\n @Test\n public void equipAnimaTest() {\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.equipItem(anima);\n assertFalse(sorcererAnima.getItems().contains(anima));\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.addItem(anima);\n sorcererAnima.equipItem(anima);\n assertEquals(anima,sorcererAnima.getEquippedItem());\n }", "public void ingresarDinero() {\n\t\tString codigo=\"\";\n\t\tint din=1;\n\t\tint saldo=0;\n\t\tint cambio=0;\n\t\t\n\t\tArrayList<Integer> dinero = new ArrayList<Integer>();\n\t\t\n\t\tSystem.out.println(\"digite el codigo del producto\");\n\t\tcodigo=leer.dato();\n\t\t\n\t\tif(cU.buscarProducto(codigo)!=null){\n\t\t\tproducto=cU.buscarProducto(codigo);\n\t\t\tSystem.out.println(\"el producto encontrado fue\"+producto);\n\t\t\n\t\t\n\t\twhile(din!=0){\n\t\t\t\n\t\t\tSystem.out.println(\"digite la denominacion o 0 si ya completo el dinero\");\n\t\t\tdin=leer.datoInt();\n\t\t\t\n\t\t\tif(din!=0){\n\t\t\t\tdinero.add(din);\n\t\t\t\tsaldo=saldo+din;\n\t\t\t}\n\t\t\tSystem.out.println(\"saldo\"+saldo);\n\t\t\t\n\t\t}\n\t\t\n\t\tcambio=cU.ingresarSaldo(dinero, codigo);\n\t\tif(cambio>=0){\n\t\tSystem.out.println(\"el valor del producto es: \"+producto.getValor());\n\t\tSystem.out.println(\"su saldo era de: \"+saldo);\n\t\tSystem.out.println(\"el cambio es: \"+cambio);\n\t\t}else{\n\t\t\tSystem.out.println(\"el valor del producto es: \"+producto.getValor());\n\t\t\tSystem.out.println(\"saldo\"+saldo);\n\t\t\tSystem.out.println(\"fondos insufucientes para comprar el producto\");\n\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"producto no encontrado\");\n\t\t}\n\t\tif(cambio==saldo){\n\t\t\tSystem.out.println(\"denominacion ingresada no valida\");\n\t\t}\n\t}", "@Override\n\tpublic Equipo getByNumeroSerieEquals(String numeroSerie)\n\t{\n\t\treturn equipoRepository.getEquipoByNumeroSerieEquals(numeroSerie);\n\t}", "private String insertarCarta(Carta carta) {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n if(carta.getDañoEnemigo()!=0){\n valoresEnemigo[0]=carta.getDañoEnemigo();\n }\n if(carta.getCuraEnemigo()!=0){\n valoresEnemigo[1]=carta.getCuraEnemigo();\n }\n if(carta.getCartasEnemigo()!=0){\n valoresEnemigo[2]=carta.getCartasEnemigo();\n }\n if(carta.getDescarteEnemigo()!=0){\n valoresEnemigo[3]=carta.getDescarteEnemigo();\n }\n if(carta.getRecursosEnemigo()!=0){\n valoresEnemigo[4]=carta.getRecursosEnemigo();\n }\n if(carta.getMoverMesaAManoEnemigo()!=0){\n valoresEnemigo[5]=carta.getMoverMesaAManoEnemigo();\n }\n if(carta.getMoverDescarteAManoEnemigo()!=0){\n valoresEnemigo[6]=carta.getMoverDescarteAManoEnemigo();\n }\n if(carta.getMoverMesaADeckEnemigo()!=0){\n valoresEnemigo[8]=carta.getMoverMesaADeckEnemigo();\n }\n if(carta.getMoverDescarteADeckEnemigo()!=0){\n valoresEnemigo[9]=carta.getMoverDescarteADeckEnemigo();\n }\n if(carta.getMoverManoADeckEnemigo()!=0){\n valoresEnemigo[10]=carta.getMoverManoADeckEnemigo();\n }\n if(carta.getMoverMesaADescarteEnemigo()!=0){\n valoresEnemigo[11]=carta.getMoverMesaADescarteEnemigo();\n }\n if(carta.getMoverManoADescarteEnemigo()!=0){\n valoresEnemigo[12]=carta.getMoverManoADescarteEnemigo();\n }\n if(carta.getMoverDeckADescarteEnemigo()!=0){\n valoresEnemigo[13]=carta.getMoverDescarteADeckEnemigo();\n }\n\n\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n if(carta.getDañoOwner()!=0){\n valoresOwner[0]=carta.getDañoOwner();\n }\n if(carta.getCuraOwner()!=0){\n valoresOwner[1]=carta.getCuraOwner();\n }\n if(carta.getCartasOwner()!=0){\n valoresOwner[2]=carta.getCartasOwner();\n }\n if(carta.getDescarteOwner()!=0){\n valoresOwner[3]=carta.getDescarteOwner();\n }\n if(carta.getRecursosOwner()!=0){\n valoresOwner[4]=carta.getRecursosOwner();\n }\n if(carta.getMoverMesaAManoOwner()!=0){\n valoresOwner[5]=carta.getMoverMesaAManoOwner();\n }\n if(carta.getMoverDescarteAManoOwner()!=0){\n valoresOwner[6]=carta.getMoverDescarteAManoOwner();\n }\n if(carta.getMoverMesaADeckOwner()!=0){\n valoresOwner[8]=carta.getMoverMesaADeckOwner();\n }\n if(carta.getMoverDescarteADeckOwner()!=0){\n valoresOwner[9]=carta.getMoverDescarteADeckOwner();\n }\n if(carta.getMoverManoADeckOwner()!=0){\n valoresOwner[10]=carta.getMoverManoADeckOwner();\n }\n if(carta.getMoverMesaADescarteOwner()!=0){\n valoresOwner[11]=carta.getMoverMesaADescarteOwner();\n }\n if(carta.getMoverManoADescarteOwner()!=0){\n valoresOwner[12]=carta.getMoverManoADescarteOwner();\n }\n if(carta.getMoverDeckADescarteOwner()!=0){\n valoresOwner[1]=carta.getMoverDescarteADeckOwner();\n }\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n\n\n\n\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public void gerarReceitaLiquidaIndiretaDeEsgoto() \n\t\t\tthrows ErroRepositorioException;", "public void cobrarCuotaDeSocios(Equipo e){\n\t\te.setCapital(e.getCapital()+e.getSocios());\n\t\tem.merge(e);\n\t\tingresarTransaccion(e,e.getPublicidad(), EnumTipoTransaccion.SOCIOS);\n\t\t\n\t}", "public void incluirImovel() {\n\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tScanner insere = new Scanner(System.in);\r\n\r\n\t\tSystem.out.println(\"Insira o endereço:(EX:Rua tal, 49)\");\r\n\t\tsetEndereco(insere.next());\r\n\r\n\t\tSystem.out.println(\"Insira a AREA do Imovel:(EX:M²)\");\r\n\t\tsetTamanhoImovel(insere.next());\r\n\r\n\t\tSystem.out.println(\"Insira o numero de comodos do Imovel:(EX:4)\");\r\n\t\tsetNumeroDeComodos(insere.next());\r\n\r\n\t\tSystem.out.println(\"Insira o valor do Imovel:(EX:10000)\");\r\n\t\tsetValorImovel(insere.nextInt());\r\n\r\n\t\tSystem.out.println(\"Insira o tipo de Imovel:(EX:casa,apartamento..)\");\r\n\t\tsetTipo(insere.next());\r\n\r\n\t\tSystem.out.println(\"Insira o status do Imovel:(EX:vender,alugar)\");\r\n\t\tsetStatus(insere.next());\r\n\r\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++\");\r\n\t\tSystem.out.println(\" Sucesso! Seu cadastro esta completo.\");\r\n\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++\");\r\n\t\t\r\n\t\tLerBanco ler = new LerBanco();\r\n\t\tMap<Integer, Imovel> listaImovel = new HashMap<Integer, Imovel>();\r\n\t\tList<Imovel>lImovel = new ArrayList<Imovel>();\r\n\t\t\r\n\t\tler.leituraImovel(listaImovel);\r\n\t\tsetCod(lImovel.size());\r\n\t\t\r\n\n\r\n\t\tGravaTxt gravaArq = new GravaTxt();\r\n\r\n\t\tgravaArq.grava(\"Imoveis.txt\", toString());\r\n\r\n\t}", "public Collection<OsExecucaoEquipe> obterOsExecucaoEquipePorOS(Integer idOS, Integer idAtividade) throws ErroRepositorioException{\n\n\t\tCollection<Object[]> retornoConsulta = null;\n\t\tCollection<OsExecucaoEquipe> colecaoOsExecucaoEquipe = new ArrayList();\n\n\t\tSession session = HibernateUtil.getSession();\n\t\tString consulta = \"\";\n\t\ttry{\n\t\t\tconsulta = \"SELECT osape.id, \" // 0\n\t\t\t\t\t\t\t+ \" osape.dataInicio, \" // 1\n\t\t\t\t\t\t\t+ \" osape.dataFim, \" // 2\n\t\t\t\t\t\t\t+ \" a.id, \" // 3\n\t\t\t\t\t\t\t+ \" a.descricao, \" // 4\n\t\t\t\t\t\t\t+ \" e.id, \" // 5\n\t\t\t\t\t\t\t+ \" e.nome, \" // 6\n\t\t\t\t\t\t\t+ \" osape.valorAtividadePeriodo \" // 7\n\t\t\t\t\t\t\t+ \"FROM OsExecucaoEquipe osee \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osee.equipe e \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osee.osAtividadePeriodoExecucao osape \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osape.ordemServicoAtividade osa \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osa.atividade a \" + \"INNER JOIN osa.ordemServico os \"\n\t\t\t\t\t\t\t+ \"WHERE os.id = :idOS \"\n\t\t\t\t\t\t\t+ \" and a.id = :idAtividade \" + \"ORDER BY a.descricao \";\n\n\t\t\tretornoConsulta = (Collection<Object[]>) session.createQuery(consulta).setInteger(\"idOS\", idOS)\n\t\t\t\t\t\t\t.setInteger(\"idAtividade\", idAtividade).list();\n\n\t\t\tif(retornoConsulta != null && !retornoConsulta.isEmpty()){\n\t\t\t\tOsExecucaoEquipe osExecucaoEquipe = null;\n\t\t\t\tfor(Object[] periodo : retornoConsulta){\n\t\t\t\t\tosExecucaoEquipe = new OsExecucaoEquipe();\n\t\t\t\t\tEquipe equipe = new Equipe();\n\t\t\t\t\tequipe.setId((Integer) periodo[5]);\n\t\t\t\t\tequipe.setNome((String) periodo[6]);\n\t\t\t\t\tosExecucaoEquipe.setEquipe(equipe);\n\t\t\t\t\tOsAtividadePeriodoExecucao osAtividadePeriodoExecucao = new OsAtividadePeriodoExecucao();\n\t\t\t\t\tosAtividadePeriodoExecucao.setId((Integer) periodo[0]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataInicio((Date) periodo[1]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataFim((Date) periodo[2]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setValorAtividadePeriodo((BigDecimal) periodo[7]);\n\t\t\t\t\tOrdemServicoAtividade ordemServicoAtividade = new OrdemServicoAtividade();\n\t\t\t\t\tAtividade atividade = new Atividade();\n\t\t\t\t\tatividade.setId((Integer) periodo[3]);\n\t\t\t\t\tatividade.setDescricao((String) periodo[4]);\n\t\t\t\t\tordemServicoAtividade.setAtividade(atividade);\n\t\t\t\t\tOrdemServico ordemServico = new OrdemServico();\n\t\t\t\t\tordemServico.setId(idOS);\n\t\t\t\t\tordemServicoAtividade.setOrdemServico(ordemServico);\n\t\t\t\t\tosAtividadePeriodoExecucao.setOrdemServicoAtividade(ordemServicoAtividade);\n\t\t\t\t\tosExecucaoEquipe.setOsAtividadePeriodoExecucao(osAtividadePeriodoExecucao);\n\t\t\t\t\tcolecaoOsExecucaoEquipe.add(osExecucaoEquipe);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\t\treturn colecaoOsExecucaoEquipe;\n\t}", "public static void main(String[] args) \n {\n Equipo Boca = new Equipo(2);\n \n //Crear objeto jugador, pasando por parametro sus atributos\n Jugador j1 = new Jugador(\"Andrada\", 1, 1, 20, 100);\n Jugador j2 = new Jugador(\"Salvio\", 4, 7, 20, 100);\n \n // cargar objeto Equipo\n Boca.agregarJugador(j1);\n Boca.agregarJugador(j2);\n \n //Mostrar objeto Equipo\n System.out.println(Boca.listarJugador());\n \n \n \n //Cantidad de jugadores con menos de 10 partidos jugados.\n System.out.print(\"Cantidad de Jugadores con menos de 10 partidos jugados: \");\n System.out.println(Boca.cantidadJugadores());\n \n \n //Nombre del jugador con mayor cantidad de partidos jugados.\n System.out.print(\"Nombre del jugador con mas partidos jugados: \");\n System.out.println(Boca.jugadorMasPartidos());\n \n \n\n //Promedio de estado físico de todo el equipo.\n \n System.out.print(\"Promedio de estado fisico del equipo:\");\n System.out.println(Boca.promedioEstadoFisicoEquipo() + \"%\");\n \n\n //Estado físico de un jugador particular identificado por número de camiseta. \n \n System.out.print(\"Estado fisico de un juegador dado su numero de camiseta: \");\n System.out.println(Boca.estadoFisicoJugador(7) +\"%\");\n \n //Promedio de partidos jugados de los jugadores de cada posición (4resultados).\n \n System.out.println(\"Promedio de partidos jugados de los jugadores de cada posición:\");\n System.out.println(Boca.promedioPartidosJugadosporPuesto());\n \n \n \n \n }", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "public static void preguntarTipoDeLibroPorRegistrar() {\n\t\tSystem.out.println(\"Ingresa el numero de la opcion deseada y preciona enter\");\n\t\tSystem.out.println(\"1 - Registrar Diccionario\");\n\t\tSystem.out.println(\"2 - Registrar Enciclopedia\");\n\t\tSystem.out.println(\"3 - Registar Novela\");\n\t}", "public static void main (String args[]){\n Produto produto = new Produto(500.00);\n Produto produto1 = new Produto(500.00, \"1.0\", \"50\", \"2\", \"25\", \"0.0\", \"1\", \"N\", \"N\", \"0,00\", \"04510\", \"xml\", false);\n Produto produto2 = new Produto(300.00, \"0.3\", \"30\", \"2\", \"15\", \"0.0\", \"1\", \"N\", \"N\", \"0,00\", \"04510\", \"xml\", true);\n Produto produto3 = new Produto(50.00, \"0.5\", \"15\", \"2\", \"10\", \"0.0\", \"1\", \"N\", \"N\", \"0,00\", \"04510\", \"xml\", false);\n Map<String, Produto> produtoHashMap = new HashMap<>();\n produtoHashMap.put(\"testando imposto/desconto simples\", produto);\n produtoHashMap.put(\"maxsteel\", produto1);\n produtoHashMap.put(\"avengers: o ultimato\", produto2);\n produtoHashMap.put(\"uma coca na tia do lanche\", produto3);\n\n\n //apresentando o hashmap\n for(Map.Entry<String, Produto> entry : produtoHashMap.entrySet()) {\n System.out.println(\"---> \"+entry.getKey()); }\n\n System.out.println(\"--------------------------------------------------------------------------------------\");\n System.out.println(\"Selecione o produto que deseja comprar:\");\n Scanner entrada = new Scanner (System.in);\n String produtoEscolhido;\n produtoEscolhido = entrada.nextLine();\n\n if (produtoHashMap.containsKey( produtoEscolhido )){\n System.out.println(\"Você escolheu: \"+produtoEscolhido+\" = \"+produtoHashMap.get(produtoEscolhido));\n }else {\n System.out.println(\"Produto NÃO ENCONTRADO, por favor digite o nome do produto novamente\");\n }\n\n System.out.println(\"valor é de: \"+produtoHashMap.get(produtoEscolhido).getValor()+\"R$\");\n\n \n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof ExcepcionesCompromiso)) {\n return false;\n }\n ExcepcionesCompromiso other = (ExcepcionesCompromiso) object;\n if ((this.idExcepcionCompromiso == null && other.idExcepcionCompromiso != null) || (this.idExcepcionCompromiso != null && !this.idExcepcionCompromiso.equals(other.idExcepcionCompromiso))) {\n return false;\n }\n return true;\n }", "public void escolherequipa ()\n {\n if (idec != -1 && idev !=-1 && idec != idev)\n {\n ArrayList<String> equipaanotar = new ArrayList<String>();\n equipaanotar.add(nomeequipas.get(idec));\n equipaanotar.add(nomeequipas.get(idev));\n ddes.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_spinner_dropdown_item, equipaanotar));\n }\n }", "public Equipo getEquipo() {\n return equipo;\n }", "@Override\n\tpublic void embaralhar() {\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[0], valoresCartas[i]));\n\t\t}\n\t\t\n\t\t// inserindo cartas para o naipe de ouro\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[1], valoresCartas[i]));\n\t\t}\n\t\t\n\t\t// inserindo cartas para o naipe de espada\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[2], valoresCartas[i]));\n\t\t}\n\t\t\n\t\t// inserindo cartas para o naipe de paus\n\t\tfor (int i = 0; i < nomesCartas.length; i++) {\n\t\t\tsuper.insereCarta(new Carta(nomesCartas[i], naipes[3], valoresCartas[i]));\n\t\t}\n\t\t\n\t\tCollections.shuffle(cartas);\n\t}", "public void verificarExistenciaCELPE(String numeroCelp, Integer idSetorComercial) throws ControladorException {\r\n\r\n\t\tCollection setorComerciais = null;\r\n\t\tif (idSetorComercial != null) {\r\n\t\t\tFiltroSetorComercial filtroSetorComercial = new FiltroSetorComercial();\r\n\t\t\tfiltroSetorComercial\r\n\t\t\t\t\t.adicionarParametro(new ParametroSimples(FiltroSetorComercial.ID, new Integer(idSetorComercial)));\r\n\t\t\tfiltroSetorComercial.adicionarCaminhoParaCarregamentoEntidade(FiltroSetorComercial.MUNICIPIO);\r\n\t\t\tsetorComerciais = getControladorUtil().pesquisar(filtroSetorComercial, SetorComercial.class.getName());\r\n\t\t}\r\n\r\n\t\tFiltroImovel filtroImovel = new FiltroImovel();\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.SETOR_COMERCIAL_MUNICIPIO_ID,\r\n\t\t\t\t\tsetorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovel.adicionarParametro(new ParametroSimples(FiltroImovel.NUMERO_CELPE, numeroCelp));\r\n\r\n\t\tCollection imoveis = getControladorUtil().pesquisar(filtroImovel, Imovel.class.getName());\r\n\r\n\t\tif (imoveis != null && !imoveis.isEmpty()) {\r\n\t\t\tString idMatricula = \"\" + ((Imovel) ((List) imoveis).get(0)).getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\r\n\t\tFiltroImovelEconomia filtroImovelEconomia = new FiltroImovelEconomia();\r\n\t\t// filtroImovelEconomia.adicionarParametro(new\r\n\t\t// ParametroSimples(FiltroImovelEconomia.IMOVEL_ID, imovel.getId()));\r\n\t\tif (setorComerciais != null && !setorComerciais.isEmpty()) {\r\n\t\t\tSetorComercial setorComercial = (SetorComercial) setorComerciais.iterator().next();\r\n\t\t\tfiltroImovelEconomia.adicionarParametro(\r\n\t\t\t\t\tnew ParametroSimples(FiltroImovelEconomia.MUNICIPIO_ID, setorComercial.getMunicipio().getId()));\r\n\t\t}\r\n\t\tfiltroImovelEconomia.adicionarParametro(new ParametroSimples(FiltroImovelEconomia.NUMERO_CELPE, numeroCelp));\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria\");\r\n\t\tfiltroImovelEconomia.adicionarCaminhoParaCarregamentoEntidade(\"imovelSubcategoria.comp_id.imovel\");\r\n\r\n\t\tCollection imoveisEconomiaPesquisadas = getControladorUtil().pesquisar(filtroImovelEconomia,\r\n\t\t\t\tImovelEconomia.class.getName());\r\n\r\n\t\tif (!imoveisEconomiaPesquisadas.isEmpty()) {\r\n\t\t\tImovelEconomia imovelEconomia = (ImovelEconomia) ((List) imoveisEconomiaPesquisadas).get(0);\r\n\r\n\t\t\tString idMatricula = \"\" + imovelEconomia.getImovelSubcategoria().getComp_id().getImovel().getId();\r\n\r\n\t\t\tsessionContext.setRollbackOnly();\r\n\t\t\tthrow new ControladorException(\"atencao.imovel.numero_celpe_jacadastrado\", null, idMatricula);\r\n\t\t}\r\n\t}", "public void agregarCantidad() {\r\n\t\tif (cantidad > 0) {\r\n\t\t\tif (cantidad <= inventarioProductoComprar.getCantidad()) {\r\n\t\t\t\tdetalleAgregar.setCantidad(cantidad);\r\n\t\t\t\tdetalleAgregar.setSubtotal(detalleAgregar.getProducto().getValorProducto() * cantidad);\r\n\t\t\t\tinventarioProductoComprar.setCantidad(inventarioProductoComprar.getCantidad() - cantidad);\r\n\t\t\t\tsumarTotalVenta(cantidad, detalleAgregar.getProducto().getValorProducto());\r\n\t\t\t\tproductosCompra.add(detalleAgregar);\r\n\t\t\t\tinventariosEditar.add(inventarioProductoComprar);\r\n\t\t\t\tdetalleAgregar = null;\r\n\t\t\t\treload();\r\n\r\n\t\t\t} else {\r\n\t\t\t\tMessages.addFlashGlobalError(\"No existe esta cantidad en el inventario\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tMessages.addFlashGlobalError(\"La cantidad debe ser mayor a 0\");\r\n\t\t}\r\n\t}", "private void modificarReserva() throws Exception {\r\n\t\tif (mngRes.existeReservaPeriodo(getSitio().getId())) {\r\n\t\t\tif (mayorEdad) {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(), null);\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t} else {\r\n\t\t\t\tmngRes.modificarReserva(getEstudiante(), periodo.getPrdId(), getSitio(),\r\n\t\t\t\t\t\tgetDniRepresentante() + \";\" + getNombreRepresentante());\r\n\t\t\t\tlibres = mngRes.traerLibres(getSitio().getId().getArtId());\r\n\t\t\t}\r\n\t\t\tMensaje.crearMensajeINFO(\"Reserva realizada correctamente, no olvide descargar su contrato.\");\r\n\t\t} else {\r\n\t\t\tMensaje.crearMensajeWARN(\"El sitio seleccionado ya esta copado, favor eliga otro.\");\r\n\t\t}\r\n\t}", "@Override\r\n\tprotected List<Producto> filtrar(Comercio comercio) {\r\n\t\tList<Producto> resultado= new ArrayList<Producto>();\r\n\t\tfor(Producto pAct:comercio.getProductos()){\r\n\t\t\tif(pAct.presentacionesSuperanStockCritico())\r\n\t\t\t\tresultado.add(pAct);\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}", "public void venderProducto(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString separador = \",\";\n\t\tString producto = \"\";\n\t\tString cantidad = \"\";\n\t\tString cantidadPrevia = \"\";\n\t\tString linea = \"\";\n\t\tString respuesta = \"\";\n\t\tint stock = 0;\n\t\tString[] afirmativos = {\"SI\", \"Si\", \"si\", \"s\"};\n\t\tString [] auxiliar = null;\n\t\tList<String> lines = new ArrayList<String>();\t\n\t\t\n\t\tSystem.out.print(\"Que producto va a vender\\n\");\n\t\tproducto = sc.nextLine();\n\t\t\n\t\tboolean existe = productoExiste(producto); // Se comprueba si el peoducto existe en el stock.dat\n\t\tif(existe) {\n\t\t\tstock = Integer.parseInt(revisarStock(producto)); //Comprobamos el stock que queda del determinado producto\n\t\t\t\n\t\t\tif(stock == 0) {\n\t\t\t\tSystem.out.println(\"No queda stock de este producto, �quiere solicitarle mas al proveedeor ?\");\n\t\t\t\trespuesta = sc.nextLine();\n\t\t\t\tfor(int i = 0; i < afirmativos.length; i++) {\n\t\t\t\t\tif(respuesta.equals(afirmativos[i])) {\n\t\t\t\t\t\tañadirStock(producto);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(stock <= 5) {\n\t\t\t\tSystem.out.println(\"El stock de este producto es bajo, por favor solicite m�s al proveedor\");\n\t\t\t\tSystem.out.println(\"�Quiere solicitar m�s stock al proveedor?\");\n\t\t\t\trespuesta = sc.nextLine();\n\t\t\t\tfor(int i = 0; i< afirmativos.length; i++) {\n\t\t\t\t\tif(respuesta.equals(afirmativos[i])) {\n\t\t\t\t\t\tañadirStock(producto);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Cuantas unidades quiere vender ?\");\n\t\t\t\tcantidad = sc.nextLine();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tSystem.out.println(\"El valor introducido es incorrecto\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tcantidadPrevia = revisarStock(producto); //Obtenemos la cantidad que tenemos en stock en formato String para despues poder modificar el fichero\n\t\t\t\t\tint total = stock - Integer.parseInt(cantidad); //Calculamos el stock que nos quedar� despues de la venta. Para ello casteamos el valor que nos introduce el usuario de String a int para poder operar con el y con el valor que tenemos en el fichero que previamente hemos casteado a int\n\t\t\t\t\tString totalString = Integer.toString(total); // Casteamos el resultado a String para poder escribirlo en el fichero\n\t\t\t\t\t\n\t\t\t\t\tif(Integer.parseInt(totalString) >= 0) {\n\t\t\t File fichero = new File(rutaFichero);\n\t\t\t FileReader fr = new FileReader(fichero);\n\t\t\t BufferedReader br = new BufferedReader(fr);\n\t\t\t while ((linea = br.readLine()) != null) {\n\t\t\t if (linea.contains(producto)) {\n\t\t\t \tauxiliar = linea.split(separador);\n\t\t\t \tauxiliar[4] = totalString;\n\t\t\t \tlinea = (auxiliar[0] + \",\" + auxiliar[1] + \",\" + auxiliar[2]+ \",\" + auxiliar[3] + \",\" + auxiliar[4] + \",\" + auxiliar[5]);\n\t\t\t }\t \n\t\t\t lines.add(linea);\n\t\t\t }\n\n\t\t\t FileWriter fw = new FileWriter(fichero);\n\t\t\t BufferedWriter out = new BufferedWriter(fw);\n\t\t\t for(String s : lines)\n\t\t\t out.write(s + \"\\n\");\n\t\t\t out.flush();\n\t\t\t out.close();\n\t\t\t\t\t}\t\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"No queda stock suficiente como para realizar la venta solicitada, quiere solicitar m�s stock al proveedor ?\");\n\t\t\t\t\t\trespuesta = sc.nextLine();\n\t\t\t\t\t\tfor(int i = 0; i < afirmativos.length; i++) {\n\t\t\t\t\t\t\tif(respuesta.contains(afirmativos[i])) {\n\t\t\t\t\t\t\t\tañadirStock(producto);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Venta no realizada\");\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\tString totalFactura = calcularTotal(cantidad, auxiliar[3]);\n\t\t\t\t\tif(Integer.parseInt(cantidad) > 0) {\n\t\t\t\t\t\tcrearFactura(producto, cantidad, auxiliar[3], totalFactura);\n\t\t\t\t\t}\n\t\t } catch (Exception ex) {\n\t\t ex.printStackTrace();\n\t\t }\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"El producto especificado no existe\\n\");\n\t\t}\n\t}", "public boolean addEquipo(Equipo e) {\n\t\ttry {\n\t\t\tem.getTransaction().begin();\n\t\t\tem.persist(e);\n\t\t\tem.flush();\n\t\t\tem.getTransaction().commit();\n\t\t\treturn true;\n\t\t} catch (Exception ex) {\n\t\t\treturn false;\n\t\t}\n\t}", "public String getNombreEquipo() {\r\n return nombreEquipo;\r\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Equipo)) {\r\n return false;\r\n }\r\n Equipo other = (Equipo) object;\r\n if ((this.idEquipo == null && other.idEquipo != null) || (this.idEquipo != null && !this.idEquipo.equals(other.idEquipo))) {\r\n return false;\r\n }\r\n return true;\r\n }", "public boolean registrarCompra(int cedulaCliente, String nombreCliente, String compraRealizada, float valorCompra) {\n if (posicionActual < 100) { // Verifica que la poscion en la que se esta almacenando sea menor que el tamaño del arraglo \n setCedulaCliente(posicionActual, cedulaCliente); //Agrega los valores pasados por parametro al arreglo correspondiente\n setNombreCliente(posicionActual, nombreCliente); //Agrega los valores pasados por parametro al arreglo correspondiente\n setCompraRealizada(posicionActual, compraRealizada); //Agrega los valores pasados por parametro al arreglo correspondiente\n setValorCompra(posicionActual, valorCompra); //Agrega los valores pasados por parametro al arreglo correspondiente\n posicionActual++; //Aumenta el valor de la posicion actual, para registrar el siguiente dato.\n return true;//Si toda la operacion fue correcta retorna verdadero para informar el resultado\n } else {\n return false; //Retorna falso si ya se alcanzo el tamaño maximo del vector.\n }\n }", "public void ReservaEfetivadas () {\n Date hoje = new Date ();\n for (int z = 0; z < vecReserva.size(); z++) {\n if (((int) ((((entReserva)vecReserva.elementAt(z)).getDatain().getTime() - (hoje.getTime())) / 86400000L)) == 0){// Reserva será relaizada hj\n if (((entReserva)vecReserva.elementAt(z)).getPagamento().getSituacao() == 0){//Cliente fez todo o pagamento e o quarto será\n vecReservaEfetivadas.add(vecReserva.elementAt(z));\n }\n \n }\n }\n }", "public static void criaEleicao() {\n\t\tScanner sc = new Scanner(System.in);\t\t\n\t\tString tipo, id, titulo, descricao, yesno;\n\t\tString dataI, dataF;\n\t\tString dept = \"\";\n\t\tint check = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o tipo de eleicao:\\n(1)Nucleo de Estudantes\\n(2)Conselho Geral\");\n\t\t\ttipo = sc.nextLine();\n\t\t\tif(tipo.equals(\"1\") || tipo.equals(\"2\")) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos de 1 a 2\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tif (tipo.equals(\"1\")) {\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"\\nInsira o nome do departamento:\");\n\t\t\t\tdept = sc.nextLine();\n\t\t\t\tif(verificarLetras(dept) && dept.length()>0) {\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"\\nO departamento apenas pode conter letras\");\n\t\t\t\t}\n\t\t\t}while(check==0);\n\t\t\t\t\n\t\t\tcheck = 0;\n\t\t}\n\n\t\tSystem.out.println(\"\\nInsira o id:\");\n\t\tid = sc.nextLine();\n\n\t\tdo {\n\t\t\tSystem.out.println(\"Insira o titulo da eleicao:\\n\");\n\t\t\ttitulo = sc.nextLine();\n\t\t\tif(verificarLetras(titulo) && titulo.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO titulo apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira a descricao da eleicao:\");\n\t\t\tdescricao = sc.nextLine();\n\t\t\tif(verificarLetras(descricao) && descricao.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nA descricao apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\t\n\t\tcheck = 0;\n\t\t\n\t\tSystem.out.println(\"Insira a data de inicio da eleicao (DD/MM/AAAA HH:MM):\\n\");\n\t\tdataI = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"Insira a data do fim da eleicao (DD/MM/AAAA HH:MM):\\n\");\n\t\tdataF = sc.nextLine();\n\t\t\n\t\tString msgServer = \"\";\n\t\t\n\t\tcheck = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tmsgServer = rmiserver.criaEleicao(Integer.parseInt(tipo), id, titulo, descricao, dataI, dataF, dept);\n\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI alteraFac\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\n\t\tif (msgServer.equals(\"\\nEleicao criada com sucesso\")){\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"\\nDeseja criar uma lista de candidatos para associar a eleicao?\\n(1) Sim (2) Nao\");\n\t\t\t\tyesno = sc.nextLine();\n\t\t\t\tif(verificarNumeros(yesno)) {\n\t\t\t\t\tif (yesno.equals(\"1\")) {\n\t\t\t\t\t\tcriaListaCandidatos();\n\t\t\t\t\t}\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos\");\n\t\t\t\t}\n\t\t\t}while(check==0);\n\t\t\t\n\t\t\tcheck = 0;\n\t\t}\n\t}", "public Collection<OsExecucaoEquipe> obterOsExecucaoEquipePorOS(Integer idOS) throws ErroRepositorioException{\n\n\t\tCollection<Object[]> retornoConsulta = null;\n\t\tCollection<OsExecucaoEquipe> colecaoOsExecucaoEquipe = new ArrayList();\n\n\t\tSession session = HibernateUtil.getSession();\n\t\tString consulta = \"\";\n\t\ttry{\n\t\t\tconsulta = \"SELECT DISTINCT osape.id, \" // 0\n\t\t\t\t\t\t\t+ \" osape.dataInicio, \" // 1\n\t\t\t\t\t\t\t+ \" osape.dataFim, \" // 2\n\t\t\t\t\t\t\t+ \" a.id, \" // 3\n\t\t\t\t\t\t\t+ \" a.descricao, \" // 4\n\t\t\t\t\t\t\t+ \" e.id, \" // 5\n\t\t\t\t\t\t\t+ \" e.nome \" // 6\n\t\t\t\t\t\t\t+ \"FROM OsExecucaoEquipe osee \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osee.equipe e \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osee.osAtividadePeriodoExecucao osape \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osape.ordemServicoAtividade osa \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osa.atividade a \" + \"INNER JOIN osa.ordemServico os \"\n\t\t\t\t\t\t\t+ \"WHERE os.id = :idOS \"\n\t\t\t\t\t\t\t+ \"ORDER BY a.descricao \";\n\n\t\t\tretornoConsulta = (Collection<Object[]>) session.createQuery(consulta).setInteger(\"idOS\", idOS).list();\n\n\t\t\tif(retornoConsulta != null && !retornoConsulta.isEmpty()){\n\t\t\t\tOsExecucaoEquipe osExecucaoEquipe = null;\n\t\t\t\tfor(Object[] periodo : retornoConsulta){\n\t\t\t\t\tosExecucaoEquipe = new OsExecucaoEquipe();\n\t\t\t\t\tEquipe equipe = new Equipe();\n\t\t\t\t\tequipe.setId((Integer) periodo[5]);\n\t\t\t\t\tequipe.setNome((String) periodo[6]);\n\t\t\t\t\tosExecucaoEquipe.setEquipe(equipe);\n\t\t\t\t\tOsAtividadePeriodoExecucao osAtividadePeriodoExecucao = new OsAtividadePeriodoExecucao();\n\t\t\t\t\tosAtividadePeriodoExecucao.setId((Integer) periodo[0]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataInicio((Date) periodo[1]);\n\t\t\t\t\tosAtividadePeriodoExecucao.setDataFim((Date) periodo[2]);\n\t\t\t\t\tOrdemServicoAtividade ordemServicoAtividade = new OrdemServicoAtividade();\n\t\t\t\t\tAtividade atividade = new Atividade();\n\t\t\t\t\tatividade.setId((Integer) periodo[3]);\n\t\t\t\t\tatividade.setDescricao((String) periodo[4]);\n\t\t\t\t\tordemServicoAtividade.setAtividade(atividade);\n\t\t\t\t\tOrdemServico ordemServico = new OrdemServico();\n\t\t\t\t\tordemServico.setId(idOS);\n\t\t\t\t\tordemServicoAtividade.setOrdemServico(ordemServico);\n\t\t\t\t\tosAtividadePeriodoExecucao.setOrdemServicoAtividade(ordemServicoAtividade);\n\t\t\t\t\tosExecucaoEquipe.setOsAtividadePeriodoExecucao(osAtividadePeriodoExecucao);\n\t\t\t\t\tcolecaoOsExecucaoEquipe.add(osExecucaoEquipe);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\t\treturn colecaoOsExecucaoEquipe;\n\t}", "@Override\r\n\tpublic List<EquipoCompetencia> listarEquipos(int codigo) {\n\t\treturn daoEquipoCompetencia.listarEquipoxcompetencia(codigo);\r\n\t}", "@Test\r\n\tpublic void testBonusDestreza() {\r\n\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0, 0, 0, bonusDestreza, 0, null, null);\r\n\r\n\t\t\tAssert.assertEquals(20, itemDes.getBonusDestreza());\r\n\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}\t\t\r\n\t}", "public void registrarCompraIngrediente(String nombre, int cantidad, int precioCompra, int tipo) {\n //Complete\n }", "public static void ComprovarMes(Variables var,TReserva reserva, Menus Menus,bComprobadors comp){\r\n comp.bCancelarRes = false;\r\n\r\n if(reserva.iMesReserva == 13){//Comprova si es 13 per cancel·lar\r\n comp.bReserva = false;\r\n\r\n }else if(reserva.iMesReserva <= 12 && reserva.iMesReserva >= 0){\r\n System.out.println(\"Ha escollit \"+Menus.sMeses[reserva.iMesReserva-1]);\r\n comp.bReserva = false;\r\n\r\n }else{//Mes introduit erroni\r\n sOpcioInvalida();\r\n }\r\n }", "private static void adicionarProduto() throws Exception {\r\n //inserir produto \r\n String nomeProduto, descricao, marca, origem;\r\n int idCategoria = 0;\r\n Integer[] idsValidosC;\r\n float preco;\r\n int id;\r\n boolean erro, valido;\r\n System.out.println(\"\\t** Adicionar produto **\\n\");\r\n System.out.print(\"Nome do produto: \");\r\n nomeProduto = read.nextLine();\r\n nomeProduto = read.nextLine();\r\n System.out.print(\"Descricao do produto: \");\r\n descricao = read.nextLine();\r\n System.out.print(\"Preco do produto: \");\r\n preco = read.nextFloat();\r\n System.out.print(\"Marca do produto: \");\r\n marca = read.nextLine();\r\n marca = read.nextLine();\r\n System.out.print(\"Origem do produto: \");\r\n origem = read.nextLine();\r\n System.out.println();\r\n if ((idsValidosC = listaCategoriasCadastradas()) != null) {\r\n System.out.print(\"\\nEscolha uma categoria para o produto,\\ne digite o ID: \");\r\n do {\r\n valido = false;\r\n idCategoria = 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 }\r\n } while (!valido);\r\n do {\r\n erro = false;\r\n System.out.println(\"\\nAdicionar novo produto?\");\r\n System.out.print(\"1 - SIM\\n2 - NÂO\\nR: \");\r\n switch (read.nextByte()) {\r\n case 1:\r\n id = arqProdutos.inserir(new Produto(nomeProduto, descricao, preco, marca, origem, idCategoria));\r\n System.out.println(\"\\nProduto inserido com o ID: \" + id);\r\n break;\r\n case 2:\r\n System.out.println(\"\\nNovo produto não foi inserido!\");\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 } else {\r\n System.out.println(\"\\nOps..! Aparentemente não existem categorias para associar o novo produto!\");\r\n System.out.println(\"Por favor, crie ao menos uma categoria antes de adicionar um produto!\");\r\n Thread.sleep(1000);\r\n }\r\n }", "public ArrayList<Veiculo> pesquisarCarro(int tipoCarro);", "private void validarTipoAlicuota(RegAlicuota pTipoAlicuota) throws Exception {\n\t\tRubro locRubro = (Rubro) pTipoAlicuota;\n\t\t// Se copian el rubro y el nombre por los requeridos de la base.\n\t\tlocRubro.setCodigo(locRubro.getCodigoCiiu().getCodigo());\n\t\tlocRubro.setNombre(locRubro.getCodigoCiiu().getDescripcion());\n\n\t\tCriterio locCriterio = Criterio.getInstance(this.entityManager, RegAlicuota.class)\n\t\t\t\t.add(Restriccion.LIKE(\"codigo\", pTipoAlicuota.getCodigo(), true, Posicion.EXACTA))\n\t\t\t\t.add(Restriccion.IGUAL(\"estado\", RegAlicuota.Estado.ACTIVO))\n\t\t\t\t.setProyeccion(Proyeccion.COUNT());\n\n\t\tif(pTipoAlicuota.getIdTipoAlicuota() != -1) {\n\t\t\tlocCriterio.add(Restriccion.NOT(Restriccion.IGUAL(\"idTipoAlicuota\", pTipoAlicuota.getIdTipoAlicuota())));\n\t\t}\n\n//\t\tif((Long) locCriterio.uniqueResult() > 0) {\n//\t\t\tthrow new HabilitacionesException(79);\n//\t\t}\n\n\t}", "@Test\n\tpublic void TestEquipeExiste() {\n\t\tclub.creerEquipe();\n\t\tassertNotNull(\"Aucune Equipe n'a été pas créée\", club.getEquipe().get(0));\n\t\t\n\t}", "public void cargarProductosVendidos() {\n try {\n //Lectura de los objetos de tipo productosVendidos\n FileInputStream archivo= new FileInputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosVendidos = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "public void adicionaCompromiso(Compromisso a) {\n\n\t\t// Itera em um compromisso.\n\t\ti++;\n\n\t\t// Verifica se a agenda está vazia e adiciona o primeiro evento.\n\t\tif (this.compromisso.size() == 0) {\n\t\t\tthis.compromisso.add(a);\n\t\t\tSystem.out.println(i + \" - Compromisso \" + a.getTitulo()\n\t\t\t\t\t+ \" inserido na agenda \" + getNome() + \".\");\n\t\t} else {\n\t\t\t// Se já existe pelo menos um evento\n\t\t\t// é possível verificar duplicidade das datas.\n\t\t\tif (verificaDuplicidade(a.getDataInicio())) {\n\t\t\t\tSystem.out.println(i + \" - Já existe a data \"\n\t\t\t\t\t\t+ a.getDataInicio() + \" para a agenda \" + getNome()\n\t\t\t\t\t\t+ \".\");\n\t\t\t} else {\n\t\t\t\tthis.compromisso.add(a);\n\t\t\t\tSystem.out.println(i + \" - Compromisso \" + a.getTitulo()\n\t\t\t\t\t\t+ \" inserido na agenda \" + getNome() + \".\");\n\t\t\t}\n\n\t\t}\n\t}", "public void agregarDatosProductoText() {\n if (cantidadProducto != null && cantidadProducto > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProducto, this.producto.getPrecioVenta(),\n this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProducto))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n //Mensaje de confirmacion de exito de la operacion \n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado correctamente!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n } else {\n cantidadProducto = null;\n //limpiamos la variable\n codigoBarra = \"\";\n //Actualizamos el componente ImputText\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodProducto\");\n }\n\n }", "public static void MostrarReserva(Variables var,BaseDades db,Reserva res,TReserva reserva,Menus Menus, bComprobadors comp){\r\n try {\r\n String sQuery = \"SELECT * FROM reserves where telefon= \"+reserva.iTelefon+\";\";\r\n ConnectarDB(db);\r\n QueryDB(sQuery, db);\r\n\r\n while (db.rs.next()) {\r\n res.dia = db.rs.getInt(\"dia\");\r\n res.mes = db.rs.getInt(\"mes\");\r\n res.comensals = db.rs.getInt(\"comensals\");\r\n res.nom = db.rs.getString(\"nom\");\r\n res.telefon = db.rs.getInt(\"telefon\");\r\n if(reserva.iTelefon == res.telefon){ \r\n System.out.println(\"---------------------\\n DADES DE LA RESERVA \\n---------------------\\n\"\r\n + \"Nom: \"+res.nom+\"\\n\"\r\n + \"Nº Comensals: \"+res.comensals+\"\\n\"\r\n + \"Dia: \"+res.dia+\"\\n\"\r\n + \"Mes: \"+Menus.sMeses[res.mes]+\"\\n\"\r\n + \"Telefon y numero de registre: \"+res.telefon);\r\n\r\n comp.bBuscar = false;\r\n break;\r\n }\r\n }\r\n } catch (Exception e) {\r\n }\r\n DesconnectarDB(db);\r\n }", "public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }", "private String insertarCartaLightning() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 2,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n true,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n false,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n String nombre = \"\";\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }", "public void cargarProductosEnVenta() {\n try {\n //Lectura de los objetos de tipo producto Vendido\n FileInputStream archivo= new FileInputStream(\"productosVentaCliente\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n this.productosEnVenta = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"ERROR: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "@Test\n\tpublic void testJoueurExisteDansEquipe() {\n\t\tclub.creerEquipe();\n\t\tclub.remplissageJoueurJoueur(club.getEquipe().get(0), club.getEquipe().get(1), club);\n\t\tassertNotNull(\"Aucun joueur n'a été pas enregistré\", club.getEquipe().get(0).getJoueur().get(0));\n\t\tassertNotNull(\"Aucun joueur n'a été pas enregistré\", club.getEquipe().get(1).getJoueur().get(1));\n\t}", "protected static void addElec(Electronics toAdd) {\n ProductGUI.Display(\"addElec function\\n\");\n if (toAdd == null) {\n ProductGUI.Display(\"Elec not added\\n\");\n } else {\n try {\n if (!(toAdd.isAvailable(toAdd.getID(), productList))) {\n ProductGUI.Display(\"Sorry. this product already exists\\n\");\n return;\n } else {\n ProductGUI.Display(\"new electronic Product\\n\");\n }\n\n myProduct = new Electronics(toAdd.getID(), toAdd.getName(), toAdd.getYear(), toAdd.getPrice(), toAdd.getMaker());\n productList.add(myProduct);\n\n //itemName = itemName.toLowerCase();\n //System.out.println(itemName);\n addToMap(toAdd.getName()); // adding the product name to the hashmap\n System.out.println(\"elec added to all\");\n ProductGUI.fieldReset();\n } catch (Exception e) {\n ProductGUI.Display(e.getMessage());\n }\n }\n }", "void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }", "public boolean inserir(String nome,String especie, String raca, String genero, int idade, int id) {\n\n //Delcaração de Objetos\n CarteiraDeVacina novaCarteirinha = new CarteiraDeVacina();\n\n //Declaração de Variáveis\n boolean resultadoC;\n\n //Atribuição de Valores\n novaCarteirinha.setNome(nome);\n novaCarteirinha.setEspecie(especie);\n novaCarteirinha.setRaca(raca);\n novaCarteirinha.setGenero(genero);\n novaCarteirinha.setIdade(idade);\n novaCarteirinha.setNumID(id);\n \n //Inserindo no banco\n resultadoC = Cdao.insert(novaCarteirinha);\n\n return resultadoC;\n }", "public Collection<OsAtividadeMaterialExecucao> obterOsAtividadeMaterialExecucaoPorOS(Integer idOS, Integer idAtividade)\n\t\t\t\t\tthrows ErroRepositorioException{\n\n\t\tCollection<Object[]> retornoConsulta = null;\n\t\tCollection<OsAtividadeMaterialExecucao> colecaoOsAtividadeMaterialExecucao = new ArrayList();\n\n\t\tSession session = HibernateUtil.getSession();\n\t\tString consulta = \"\";\n\t\ttry{\n\t\t\tconsulta = \"SELECT osame.id, \" // 0\n\t\t\t\t\t\t\t+ \" osame.quantidadeMaterial, \" // 1\n\t\t\t\t\t\t\t+ \" a.id, \" // 2\n\t\t\t\t\t\t\t+ \" a.descricao, \" // 3\n\t\t\t\t\t\t\t+ \" m.id, \" // 4\n\t\t\t\t\t\t\t+ \" m.descricao, \" // 5\n\t\t\t\t\t\t\t+ \" mu.id, \" // 6\n\t\t\t\t\t\t\t+ \" mu.descricao, \" // 7\n\t\t\t\t\t\t\t+ \" osame.valorMaterial \" // 8\n\t\t\t\t\t\t\t+ \"FROM OsAtividadeMaterialExecucao osame \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osame.material m \"\n\t\t\t\t\t\t\t+ \"INNER JOIN m.materialUnidade mu \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osame.ordemServicoAtividade osa \"\n\t\t\t\t\t\t\t+ \"INNER JOIN osa.atividade a \" + \"INNER JOIN osa.ordemServico os \"\n\t\t\t\t\t\t\t+ \"WHERE os.id = :idOS \"\n\t\t\t\t\t\t\t+ \" and a.id = :idAtividade \" + \"ORDER BY a.descricao \";\n\n\t\t\tretornoConsulta = (Collection<Object[]>) session.createQuery(consulta).setInteger(\"idOS\", idOS)\n\t\t\t\t\t\t\t.setInteger(\"idAtividade\", idAtividade).list();\n\n\t\t\tif(retornoConsulta != null && !retornoConsulta.isEmpty()){\n\t\t\t\tOsAtividadeMaterialExecucao osAtividadeMaterialExecucao = null;\n\t\t\t\tfor(Object[] execucao : retornoConsulta){\n\t\t\t\t\tosAtividadeMaterialExecucao = new OsAtividadeMaterialExecucao();\n\t\t\t\t\tosAtividadeMaterialExecucao.setId((Integer) execucao[0]);\n\t\t\t\t\tosAtividadeMaterialExecucao.setQuantidadeMaterial((BigDecimal) execucao[1]);\n\t\t\t\t\tOrdemServicoAtividade ordemServicoAtividade = new OrdemServicoAtividade();\n\t\t\t\t\tAtividade atividade = new Atividade();\n\t\t\t\t\tatividade.setId((Integer) execucao[2]);\n\t\t\t\t\tatividade.setDescricao((String) execucao[3]);\n\t\t\t\t\tordemServicoAtividade.setAtividade(atividade);\n\t\t\t\t\tOrdemServico ordemServico = new OrdemServico();\n\t\t\t\t\tordemServico.setId(idOS);\n\t\t\t\t\tordemServicoAtividade.setOrdemServico(ordemServico);\n\t\t\t\t\tosAtividadeMaterialExecucao.setOrdemServicoAtividade(ordemServicoAtividade);\n\t\t\t\t\tMaterial material = new Material();\n\t\t\t\t\tmaterial.setId((Integer) execucao[4]);\n\t\t\t\t\tmaterial.setDescricao((String) execucao[5]);\n\t\t\t\t\tosAtividadeMaterialExecucao.setMaterial(material);\n\t\t\t\t\tosAtividadeMaterialExecucao.setValorMaterial((BigDecimal) execucao[8]);\n\t\t\t\t\tMaterialUnidade materialUnidade = new MaterialUnidade();\n\t\t\t\t\tmaterialUnidade.setId((Integer) execucao[6]);\n\t\t\t\t\tmaterialUnidade.setDescricao((String) execucao[7]);\n\t\t\t\t\tmaterial.setMaterialUnidade(materialUnidade);\n\t\t\t\t\tcolecaoOsAtividadeMaterialExecucao.add(osAtividadeMaterialExecucao);\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(HibernateException e){\n\t\t\tthrow new ErroRepositorioException(e, \"Erro no Hibernate\");\n\t\t}finally{\n\t\t\tHibernateUtil.closeSession(session);\n\t\t}\n\t\treturn colecaoOsAtividadeMaterialExecucao;\n\t}", "public void exemplaarToevoegen() {\n\n try {\n Database database = new Database();\n List<Exemplaar> exemplaren_tmp = database.getExemplaren(boek.getBoek_ID());\n Integer exemplaar_aantal = Integer.parseInt(exemplaren_tmp.get(exemplaren_tmp.size() - 1).getExemplaarVolgnummer().toString());\n\n // vang af als er nog geen exemplaren zijn\n if (exemplaar_aantal < 1) {\n database.insertExemplaar(boek.getBoek_ID(), 1);\n } else {\n database.insertExemplaar(boek.getBoek_ID(),\n exemplaar_aantal + 1,\n 1);\n }\n } catch (SQLException | NamingException ex) {\n LOGGER.log(Level.SEVERE, \"Error {0}\", ex);\n System.out.println(ex.getMessage());\n }\n\n //en refresh als niet leeg is\n if (geselecteerdExemplaar != null) {\n geselecteerdExemplaar.refresh();\n }\n this.refresh();\n\n }", "public boolean incluirCarro() {\n String sql = \"INSERT INTO carro \";\n sql += \"(placa, marca, modelo, km, arcondicionado, direcaohidraulica,situacao) \";\n sql += \" VALUES(?,?,?,?,?,?,?) \";\n // conectando no banco de dados\n Connection con = Conexao.conectar();\n // \n try {\n PreparedStatement stm = con.prepareStatement(sql);\n stm.setString(1, this.placa);\n stm.setString(2, this.marca);\n stm.setString(3, this.modelo);\n stm.setInt(4, this.km);\n stm.setBoolean(5, this.arcondicionado);\n stm.setBoolean(6, this.direcaohidraulica);\n stm.setBoolean(7, this.situacao);\n stm.execute();\n } catch (SQLException ex) {\n System.out.println(\"Erro:\" + ex.getMessage());\n return false;\n }\n return true;\n }", "@Override\n\tpublic void entregarProductos(AgenteSaab a, Oferta o) {\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 }" ]
[ "0.6001785", "0.5916126", "0.5912215", "0.5889296", "0.5876634", "0.5851767", "0.58309734", "0.58266586", "0.57826304", "0.57747895", "0.57737345", "0.57413846", "0.5737776", "0.5731342", "0.57273406", "0.57181644", "0.5710392", "0.5690498", "0.56854737", "0.5685303", "0.5684273", "0.5659627", "0.5631689", "0.5621844", "0.56043154", "0.56042725", "0.5590798", "0.5590613", "0.55706704", "0.5568485", "0.5565833", "0.55606323", "0.5557158", "0.5553379", "0.5531508", "0.55217475", "0.5517399", "0.5516379", "0.54694057", "0.5466431", "0.54610735", "0.5448276", "0.54465634", "0.5445052", "0.54442185", "0.54418427", "0.54278725", "0.5423551", "0.54219747", "0.5409966", "0.540872", "0.53942937", "0.5393515", "0.5391048", "0.5390536", "0.53890103", "0.5383824", "0.53747463", "0.5370481", "0.53676075", "0.5367543", "0.5365809", "0.53618145", "0.53596777", "0.5353406", "0.5342769", "0.53397584", "0.53396326", "0.5336714", "0.53282166", "0.5327262", "0.5313341", "0.5311376", "0.5309708", "0.530656", "0.53013635", "0.52909327", "0.5290801", "0.5283815", "0.5283457", "0.528022", "0.52801275", "0.5278583", "0.5275282", "0.52737385", "0.52688515", "0.52619964", "0.52615625", "0.52578", "0.52535903", "0.52499145", "0.5247788", "0.5247155", "0.52440083", "0.5240189", "0.5236927", "0.5235928", "0.5234773", "0.5233682", "0.52335364" ]
0.55757755
28
LISTADO DE CONSULTAR CIUDAD
public String consultaEqCiudad() { String res = ""; String query = "SELECT E.NOMBRE, C.NOMBRE FROM EQUIPOS E, CIUDADES C WHERE E.COD_CIUDAD == C.CODIGO"; Connection con = null; PreparedStatement pstmt = null; ResultSet rslt = null; try { con = acceso.getConnection(); pstmt = con.prepareStatement(query); rslt = pstmt.executeQuery(); while (rslt.next()) { res = res + rslt.getString(1) + " - " + rslt.getString(2) + "\n"; } } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } finally { try { if (rslt != null) rslt.close(); if (pstmt != null) pstmt.close(); if (con != null) con.close(); } catch (SQLException e) { e.printStackTrace(); } } return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "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 }", "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 String listarCursosInscripto(){\n StringBuilder retorno = new StringBuilder();\n \n Iterator<Inscripcion> it = inscripciones.iterator();\n while(it.hasNext())\n {\n Inscripcion i = it.next();\n retorno.append(\"\\n\");\n retorno.append(i.getCursos().toString());\n retorno.append(\" en condición de: \");\n retorno.append(i.getEstadoInscripcion());\n }\n return retorno.toString();\n }", "List<Oficios> buscarActivas();", "List<Curso> obtenerCursos();", "public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}", "List<Vehiculo>listar();", "List<ParqueaderoEntidad> listar();", "public void consultarListaDeContatos() {\n\t\tfor (int i = 0; i < listaDeContatos.size(); i++) {\n\t\t\tSystem.out.printf(\"%d %s \\n\", i, listaDeContatos.get(i));\n\t\t}\n\t}", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "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 static List<Comentario> listar()\n {\n Session sessionRecheio;\n sessionRecheio = HibernateUtil.getSession();\n Transaction tr = sessionRecheio.beginTransaction();\n String hql = \"from Comentario u\";\n List<Comentario> lista = (List)sessionRecheio.createQuery(hql).list();\n tr.commit();\n return lista;\n }", "@Override\n\tpublic List<CursoAsignatura> listar() {\n\t\treturn null;\n\t}", "public List<Vendedor> listarVendedor();", "public ArrayList<DTOcantComentarioxComercio> listaOrdenadaxComentario() {\n ArrayList<DTOcantComentarioxComercio> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"select co.nombre, count (Comentarios.id_comercio) comentarios\\n\"\n + \"from Comentarios join Comercios co on co.id_comercio = Comentarios.id_comercio\\n\"\n + \"group by co.nombre\\n\"\n + \"order by comentarios\");\n\n while (rs.next()) {\n String nombreO = rs.getString(1);\n int cant = rs.getInt(2);\n\n DTOcantComentarioxComercio oc = new DTOcantComentarioxComercio(nombreO, cant);\n\n lista.add(oc);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n }", "@Override\r\n\tpublic List<Famille> listCompetences() {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\t//on crée une requête\r\n \t\tQuery req=session.createQuery(\"select C from FamilleComp C\");\r\n \t\tList<Famille> famillecomp=req.list();\r\n session.getTransaction().commit();\r\n \t\treturn famillecomp;\r\n\t\t\r\n\t}", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}", "private static void mostrarListaDeComandos() {\n System.out.println(\"Lista de comandos:\");\n for (int i = 0; i < comandos.length; i++){\n System.out.println(comandos[i]);\n }\n }", "public List<CatCurso> consultarCatCurso()throws NSJPNegocioException;", "@Override\n\tpublic ArrayList<TransferCompra> listaCompra() {\n\t\t\n\t\t//Creamos la Transaccion\n\t\tTransactionManager.getInstance().nuevaTransaccion();\n\t\tTransactionManager.getInstance().getTransaccion().start();\n\t\tArrayList<TransferCompra> lista = FactoriaDAO.getInstance().createDAOCompra().list();\n\t\t\n\t\t//Hacemos Commit\n\t\tTransactionManager.getInstance().getTransaccion().commit();\n\t\t\n\t\t//Finalmnete cerramos la Transaccion\n\t\tTransactionManager.getInstance().eliminaTransaccion();\n\t\treturn lista;\n\t}", "public static ArrayList<obj_dos_campos> carga_tipo_producto() {\n ArrayList<obj_dos_campos> lista = new ArrayList<obj_dos_campos>();\n Connection c=null;\n try {\n c = conexion_odbc.Connexion_datos();\n Statement s = c.createStatement();\n ResultSet rs = s.executeQuery(\"select tip_prod_idn as data, tip_prod_nombre as label from tipo_producto order by tip_prod_nombre desc\");\n lista.add(new obj_dos_campos(\"0\",\"-- Seleccione --\"));\n while (rs.next()){\n lista.add(new obj_dos_campos(rs.getString(\"data\"),rs.getString(\"label\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n c.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return lista;\n }", "@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Curso.findAll\", null);\n }", "public ArrayList<Comobox> listaTodosBanco()\n {\n @SuppressWarnings(\"MismatchedQueryAndUpdateOfCollection\")\n ArrayList<Comobox> al= new ArrayList<>();\n @SuppressWarnings(\"UnusedAssignment\")\n ResultSet rs = null;\n sql=\"select * FROM VER_BANCO\";\n Conexao conexao = new Conexao();\n if(conexao.getCon()!=null)\n {\n try \n {\n if(conexao.getCon()!=null)\n {\n cs = conexao.getCon().prepareCall(sql);\n cs.execute();\n rs=cs.executeQuery(); \n if (rs!=null) \n { \n while (rs.next())\n { \n al.add(new Comobox(rs.getString(\"ID\"), rs.getString(\"SIGLA\")));\n } \n }\n rs.close();\n }\n else\n {\n al.add(new Comobox(\"djdj\",\"ddj\"));\n al.add(new Comobox(\"1dj\",\"dmsmdj\"));\n }\n } \n catch (SQLException ex)\n {\n Logger.getLogger(CreditoDao.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Erro a obter fontes rendimentos \"+ex.getMessage());\n }\n }\n return al;\n }", "protected List<String> listaVociCorrelate() {\n return null;\n }", "public List getTrabajadores();", "public List<Cliente> getListCliente(){//METODO QUE RETORNA LSITA DE CLIENTES DO BANCO\r\n\t\treturn dao.procurarCliente(atributoPesquisaCli, filtroPesquisaCli);\r\n\t}", "public List listarCategoriasForm() throws Exception {\n PreparedStatement ps = null;\n Connection conn = null;\n ResultSet rs = null;\n\n try {\n conn = this.conn;\n ps = conn.prepareStatement(\"select idRemedio, categoria from Remedios group by categoria order by categoria ASC \");\n rs = ps.executeQuery();\n List<Produto> list = new ArrayList<Produto>();\n while (rs.next()) {\n int idRemedio = rs.getInt(1);\n String categoria = rs.getString(2);\n list.add(new Produto(idRemedio, null, null, null,null, null, null, null, null, null, null, null, null, null, categoria, null));\n\n }\n return list;\n\n } catch (SQLException sqle) {\n throw new Exception(sqle);\n } finally {\n Conexao.closeConnection(conn, ps, rs);\n }\n }", "public List<Ingrediente> verCondimentos(){\n // Implementar\n \tList<Ingrediente> condimentos = new LinkedList<Ingrediente>();\n for (Ingrediente ingrediente : ingredientes) {\n \tif(ingrediente.getTipo().toString().toLowerCase() == \"condimento\")\n\t\t\t\tcondimentos.add(ingrediente);\n\t\t}\n \treturn condimentos;\n }", "@Override\r\n\tpublic List<ComunidadBean> getComunidadList() {\n\t\tList<ComunidadBean> result=new ArrayList<ComunidadBean>();\r\n\t\t\r\n\t\tList<JugComunidad> list= comunidadRepository.getComunidadList();\r\n\t\tfor (JugComunidad entiry : list) \r\n \t\tresult.add(new ComunidadBean(entiry.getId(), entiry.getCodigo(), entiry.getDescripcion()));\t\r\n\t\t\r\n\t\treturn result;\r\n\t}", "public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }", "public List<Consultor> getConsultores()\n\t{\n\t\tList<Consultor> nombres = new ArrayList<Consultor>();\n\t\tLinkedList<Consultor> tb = Consultor.findAll();\n\t\tfor(Consultor c : tb)\n\t\t{\n\t\t\tnombres.add(c);\n\t\t}\n\t\treturn nombres;\t\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Lista de todos los Inmuebles\";\n\t}", "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}", "protected String inicializarCamposComunes() {\r\n\t\tString listCamposFiltro = \"\";\r\n\r\n\t\tif(getId() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Id\").concat(\", \");\r\n\t\t}\r\n\t\tif(getObservaciones() != null && getObservaciones().length() >0){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Observaciones\").concat(\", \");\r\n\t\t}\r\n\t\tif(getActivo() != null && getActivo().length() > 0){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Activo [\").concat(getActivo()).concat(\"], \");\r\n\t\t}\r\n\t\tif(getFechaBajaDesde() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Baja Desde\").concat(\", \");\r\n\t\t}\r\n\t\tif(getFechaBajaHasta() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Baja Hasta\").concat(\", \");\r\n\t\t}\r\n\t\tif(getFechaAltaDesde() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Alta Desde\").concat(\", \");\r\n\t\t}\r\n\t\tif(getFechaAltaHasta() != null){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.concat(\"Fecha Alta Hasta\").concat(\", \");\r\n\t\t}\r\n\r\n\t\treturn listCamposFiltro;\r\n\t}", "public Collection<OrdenCompra> traerTodasLasOrdenesDeCompra() {\n Collection<OrdenCompra> resultado = null;\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n resultado = controlOC.traerTodasLasOrdenesDeCompra();\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n }\n return resultado;\n }", "public List<FacturaCabecera> list(){ \n\t\t\treturn em.createQuery(\"SELECT c from FacturaCabecera c\", FacturaCabecera.class).getResultList();\n\t\t}", "public List<Comentario> listaComentarioPorCodigo(Long codigo);", "public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}", "public List<String> retornaDatasComprasDeClientes () {\n return this.contasClientes\n .values()\n .stream()\n .flatMap((Conta conta) -> conta.retornaDatasDasCompras().stream())\n .collect(Collectors.toList());\n }", "public List<RjEstadoConservacion> getAllRjEstadoConservacion()throws Exception{\n\t\tList<RjEstadoConservacion> lista=new LinkedList<RjEstadoConservacion>();\n\t\ttry{\n\t\t\tStringBuffer SQL=new StringBuffer(\"SELECT conservacion_id,descripcion FROM \").append(Constante.schemadb).append(\".rj_estado_conservacion order by descripcion asc\");\n\t\t\t\n\t\t\tPreparedStatement pst=connect().prepareStatement(SQL.toString());\n\t\t\tResultSet rs=pst.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tRjEstadoConservacion obj=new RjEstadoConservacion(); \n\t\t\t\tobj.setConservacionId(rs.getInt(\"conservacion_id\"));\n\t\t\t\tobj.setDescripcion(rs.getString(\"descripcion\"));\n\t\t\t\tlista.add(obj);\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tthrow(e);\n\t\t}\n\t\treturn lista;\n\t}", "public void listarDadosNaTelaAreaDeConhecimento(ArrayList<AreaDeConhecimento> lista, DefaultTableModel model) {\n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[3];\n AreaDeConhecimento aux = lista.get(pos);\n linha[0] = \"\" + aux.getId();\n linha[1]=aux.getClassificacaoDecimalDireito();\n linha[2] = aux.getDescricao();\n model.addRow(linha);\n }\n }", "public List listarCategorias() throws Exception {\n PreparedStatement ps = null;\n Connection conn = null;\n ResultSet rs = null;\n\n try {\n conn = this.conn;\n ps = conn.prepareStatement(\"select idRemedio,nome,categoria from Remedios order by nome ASC\");\n rs = ps.executeQuery();\n List<Produto> list = new ArrayList<Produto>();\n while (rs.next()) {\n Integer idRemedio = rs.getInt(1);\n String nome = rs.getString(2);\n String categoria = rs.getString(3);\n list.add(new Produto(idRemedio, nome, null, null, null, null,null, null, null, null, null, null, null, null, categoria, null));\n\n }\n return list;\n\n } catch (SQLException sqle) {\n throw new Exception(sqle);\n } finally {\n Conexao.closeConnection(conn, ps, rs);\n }\n }", "public void listarCarros() {\n System.err.println(\"Carros: \\n\");\n if (carrosCadastrados.isEmpty()) {\n System.err.println(\"Nao existem carros cadastrados\");\n } else {\n System.err.println(Arrays.toString(carrosCadastrados.toArray()));\n }\n }", "public void afficherListe(){\n StringBuilder liste = new StringBuilder(\"\\n\");\n logger.info(\"OUTPUT\",\"\\nLes produits en vente sont:\");\n for (Aliment aliment : this.productList) { liste.append(\"\\t\").append(aliment).append(\"\\n\"); }\n logger.info(\"OUTPUT\", liste+\"\\n\");\n }", "public ObservableList<String> AbmCorreos() {\n\t\t// crea un nuevo observable list\n\t\tObservableList<String> items = FXCollections.observableArrayList();\n\t\titems.addAll(\"Cargar Plantilla\", \"Mostrar Plantillas\");\n\t\treturn items;\n\t}", "@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Inscripcion.findAll\", null);\n }", "public void listadoCarreras() {\r\n try {\r\n this.sessionProyecto.getCarreras().clear();\r\n this.sessionProyecto.getFilterCarreras().clear();\r\n this.sessionProyecto.getCarreras().addAll(sessionUsuarioCarrera.getCarreras());\r\n this.sessionProyecto.setFilterCarreras(this.sessionProyecto.getCarreras());\r\n } catch (Exception e) {\r\n }\r\n }", "public void getAllCursos() {\n String query = \"\";\n Conexion db = new Conexion();\n\n try {\n query = \"SELECT * FROM curso;\";\n Statement stm = db.conectar().createStatement();\n ResultSet rs = stm.executeQuery(query);\n\n while (rs.next()) {\n \n int id = rs.getInt(\"id_curso\");\n String nombre = rs.getString(\"nombre_curso\");\n int familia = rs.getInt(\"id_familia\");\n String profesor = rs.getString(\"id_profesor\");\n\n // Imprimir los resultados.\n System.out.format(\"%d,%s,%d,%s\\n\", id, nombre, familia, profesor);\n\n }\n\n stm.close();\n db.conexion.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\n\tpublic ArrayList<ClienteFisico> listar() throws SQLException {\n\t\t\n\t\tArrayList<ClienteFisico> listar = new ArrayList<ClienteFisico>();\n\t\t\n\t\t\n\t\tfor(ClienteFisico c : this.set){\n\t\t\t\n\t\t\tlistar.add(c);\n\t\t}\n\t\n\t\t\n\t\treturn listar;\n\t}", "@Override\n\tpublic List<BeanDistrito> listar() {\n\t\tList<BeanDistrito> lista = new ArrayList<BeanDistrito>();\n\t\tBeanDistrito distrito = null;\n\t\tConnection con = MySQLDaoFactory.obtenerConexion();\n\t\ttry {\n\t\t\n\t\t\tString sql=\"SELECT * FROM t_distrito ORDER BY codDistrito\";\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\t\n\t\t\twhile(rs.next()){\n\t\t\t\tdistrito = new BeanDistrito();\n\t\t\t\tdistrito.setCodDistrito(rs.getInt(1));\n\t\t\t\tdistrito.setNombre(rs.getString(2));\n\t\t\t\t\n\t\t\t\tlista.add(distrito);\n\t\t\t}\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\ttry {\n\t\t\t\tcon.close();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn lista;\n\t}", "void listarDadosNaTelaColaborador(ArrayList<Colaborador> lista,DefaultTableModel model ) {\n model.setNumRows(0);\n //Correr o ArrayList\n for (int pos = 0; pos < lista.size(); pos++) {\n String[] linha = new String[9];\n Colaborador aux = lista.get(pos);\n linha[0] = \"\"+aux.getId();\n linha[1] = \"\"+aux.getMatricula();\n linha[2] = aux.getNome();\n linha[3] = \"\"+aux.getNumeroOAB();\n linha[4] = \"\"+aux.getCpf();\n linha[5] = aux.getEmail();\n linha[6] = \"\"+aux.getTelefone();\n linha[7] = aux.getTipo().toString();\n linha[8] = aux.getStatus().toString();\n model.addRow(linha);\n }\n }", "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 }", "public String listar() {\n DocumentoVinculadoDAO documentoVinculadoDAO = new DocumentoVinculadoDAO();\n lista = documentoVinculadoDAO.listarStatus(1);\n return \"listar\";\n\n }", "@Override\r\n\tpublic List<Turista> conMasPuntos() {\n\t\treturn (List<Turista>) turistaDAO.conMasPuntos();\r\n\t}", "public List<Curso> recuperaTodosCursos(){\r\n Connection conexao = ConexaoComBD.conexao();\r\n //instrução sql\r\n String sql = \"SELECT * FROM curso;\";\r\n try {\r\n //statement de conexão\r\n PreparedStatement ps = conexao.prepareStatement(sql);\r\n //recebe a tabela de retorno do banco de dados em um formato java\r\n ResultSet rs = ps.executeQuery();\r\n //criar lista de retorno\r\n List<Curso> lista = new ArrayList<>();\r\n \r\n //tratar o retorno do banco\r\n \r\n while(rs.next()){\r\n //criar um objeto modelo do tipo do retorno \r\n Curso c = new Curso();\r\n c.setIdCurso(rs.getInt(1));\r\n c.setNome(rs.getString(2));\r\n c.setArea(rs.getString(3));\r\n c.setCargaHoraria(rs.getInt(5));\r\n c.setValorCurso(rs.getDouble(6));\r\n c.setValorMensal(rs.getDouble(7));\r\n c.setCod(rs.getString(8));\r\n lista.add(c);\r\n }\r\n //retornar lista preenchida \r\n return lista;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(CursoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n //retorna null em caso de excessao\r\n return null;\r\n }", "@Override\n\tpublic List<CiclosCarreras> listar() {\n\t\treturn repoCiclos.findAll();\n\t}", "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 } }", "public String ottieniListaCodiceBilancio(){\n\t\tInteger uid = sessionHandler.getParametro(BilSessionParameter.UID_CLASSE);\n\t\tcaricaListaCodiceBilancio(uid);\n\t\treturn SUCCESS;\n\t}", "public ArrayList<String> mostraRegles(){\n ArrayList<String> tauleta = new ArrayList<>();\n String aux = reg.getAssignacions().get(0).getAntecedents().getRangs().get(0).getNom();\n for (int i=1; i<list.getAtribs().size(); i++){\n aux += \"\\t\" + list.getAtribs().get(i).getNom();\n }\n tauleta.add(aux);\n for (int j=0; j<list.getNumCasos(); j++) {\n aux = list.getAtribs().get(0).getCasos().get(j);\n for (int i = 1; i < list.getAtribs().size(); i++) {\n aux += \"\\t\" + list.getAtribs().get(i).getCasos().get(j);\n }\n tauleta.add(aux);\n }\n return tauleta;\n }", "public ListaDuplamenteEncadeada(){\r\n\t\t\r\n\t}", "public Collection<StatusChamado> listarStatusChamado(){\n return statusChamadoDAO.listarStatusChamado();\n }", "private List<PromocionConcursoAgr> listaPromocionConcursoAgr() {\r\n\t\tString select = \" select distinct(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 planificacion.estado_cab \"\r\n\t\t\t\t+ \"on estado_cab.id_estado_cab = estado_det.id_estado_cab \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial cargo \"\r\n\t\t\t\t+ \"on cargo.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \" where puesto_det.id_concurso_puesto_agr is null \"\r\n\t\t\t\t+ \"and lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and lower(estado_cab.descripcion) = 'concurso' \"\r\n\t\t\t\t//+ \"and puesto_det.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t//+ \" and cargo.permanente is true\"\r\n\t\t\t\t;\r\n\r\n\t\tList<PromocionConcursoAgr> lista = new ArrayList<PromocionConcursoAgr>();\r\n\t\tlista = em.createNativeQuery(select, PromocionConcursoAgr.class)\r\n\t\t\t\t.getResultList();\r\n\r\n\t\treturn lista;\r\n\t}", "private static ArrayList<Compra> listComprasDoCliente(int idCliente) throws Exception {//Inicio mostraCompras\r\n ArrayList<Compra> lista = arqCompra.toList();\r\n lista.removeIf(c -> c.idCliente != idCliente);\r\n return lista;\r\n }", "public void getAllCursosAvanzado() {\n String query = \"\";\n Conexion db = new Conexion();\n\n try {\n query = \"SELECT id_curso, nombre_curso, familia.nombre_familia as familia, id_profesor FROM curso \"\n + \"INNER JOIN familia ON curso.id_familia = familia.id_familia;\";\n Statement stm = db.conectar().createStatement();\n ResultSet rs = stm.executeQuery(query);\n \n\n while (rs.next()) {\n \n int id = rs.getInt(\"id_curso\");\n String nombre = rs.getString(\"nombre_curso\");\n String familia = rs.getString(\"familia\");\n String profesor = rs.getString(\"id_profesor\");\n\n // Imprimir los resultados.\n \n System.out.format(\"%d,%s,%s,%s\\n\", id, nombre, familia, profesor);\n\n }\n\n stm.close();\n db.conexion.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public void listar() {\n\t\t\n\t}", "public ArrayList<ComentarioComp> listaComentarioNoRespondido() {\n ArrayList<ComentarioComp> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"select co.nombre, c.nombreUsuario, c.descripcion, c.fecha, c.valoracion\\n\" +\n\"from Comentarios c join Comercios co on c.id_comercio = co.id_comercio\\n\" +\n\"where id_comentario not in (select id_comentario from Respuestas r )\");\n\n while (rs.next()) {\n String nombreC = rs.getString(1);\n String nombre = rs.getString(2);\n String descripcion = rs.getString(3);\n String fecha = rs.getString(4);\n int valoracion = rs.getInt(5);\n\n ComentarioComp c = new ComentarioComp(nombreC, nombre, descripcion, fecha, valoracion);\n\n lista.add(c);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n }", "public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }", "public ArrayList<Comobox> listaUserBancos(String valor)\n {\n @SuppressWarnings(\"MismatchedQueryAndUpdateOfCollection\")\n ArrayList<Comobox> al= new ArrayList<>();\n ResultSet rs = null;\n\n sql=\"select * FROM table(FUNCT_LOAD_BANCO_SIMULACAO(?,?,?))\";\n Conexao conexao = new Conexao();\n if(conexao.getCon()!=null)\n {\n try \n {\n cs = conexao.getCon().prepareCall(sql);\n cs.setInt(1, SessionUtil.getUserlogado().getIdAgencia());\n cs.setString(2, SessionUtil.getUserlogado().getNif());\n cs.setFloat(3, Float.valueOf(valor));\n cs.execute();\n rs=cs.executeQuery(); \n if (rs!=null) \n { \n al.add(new Comobox(\"Selecione\", \"Selecione\"));\n while (rs.next())\n { \n al.add(new Comobox(rs.getString(\"ID\"), rs.getString(\"SIGLA\"), rs.getString(\"QUANTIDADE DE CHEQUES VARIAVEL\")));\n } \n }\n rs.close();\n \n if(al.size() == 1){\n FacesContext context = FacesContext.getCurrentInstance();\n context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR,\"Cheque\", \"Nenhum Cheque disponivel para essa agencia!\") );\n }\n } \n catch (SQLException ex)\n {\n Logger.getLogger(CreditoDao.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Erro a obter bancos \"+ex.getMessage());\n }\n }\n return al;\n }", "public List<Setor> listar() {\n\t\tString sql = \" SELECT s.id, s.descricao FROM setor s \";\n\n\t\tList<Setor> setores = new ArrayList<>();\n\n\t\ttry (PreparedStatement ps = con.prepareStatement(sql); ResultSet rs = ps.executeQuery();) {\n\t\t\twhile (rs.next()) {\n\t\t\t\tSetor setor = new Setor();\n\t\t\t\tsetor.setId(rs.getInt(\"id\"));\n\t\t\t\tsetor.setDescricao(rs.getString(\"descricao\"));\n\t\t\t\tsetores.add(setor);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn setores;\n\t}", "@SuppressWarnings(\"unchecked\")\t\r\n\t@Override\r\n\tpublic List<Distrito> listar() {\n\t\tList<Distrito> lista = new ArrayList<Distrito>();\r\n\t\tQuery q = em.createQuery(\"select m from Distrito m\");\r\n\t\tlista = (List<Distrito>) q.getResultList();\r\n\t\treturn lista;\r\n\t}", "public List<CuentaContableDimensionContable> getListaCuentaContables()\r\n/* 329: */ {\r\n/* 330:391 */ List<CuentaContableDimensionContable> lista = new ArrayList();\r\n/* 331:392 */ for (CuentaContableDimensionContable cuentaContableDimensionContable : getDimensionContable().getListaCuentaContableDimensionContable()) {\r\n/* 332:393 */ if (!cuentaContableDimensionContable.isEliminado()) {\r\n/* 333:394 */ lista.add(cuentaContableDimensionContable);\r\n/* 334: */ }\r\n/* 335: */ }\r\n/* 336:396 */ return lista;\r\n/* 337: */ }", "public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ComPermiso> escuelas() {\n\t\t\r\n\t\treturn em.createQuery(\"select c.dependencia.id,c.dependencia.nombre from ComPermiso c \").getResultList();\r\n\t}", "public static String conocidosToString(List<String> conocidos){\r\n String s = \"\"; \r\n for(int i= 0; i<conocidos.size(); i++){\r\n String c = conocidos.get(i);\r\n s = s + c + \" \";\r\n }\r\n return s;\r\n \r\n}", "private static Integer[] listaCategoriasCadastradas() throws Exception {\r\n int count = 0;\r\n ArrayList<Categoria> lista = arqCategorias.toList();\r\n Integer[] idsValidos = null; //Lista retornando os ids de categorias validos para consulta\r\n if (!lista.isEmpty()) {\r\n idsValidos = new Integer[lista.size()];\r\n System.out.println(\"\\t** Lista de categorias cadastradas **\\n\");\r\n for (Categoria c : lista) {\r\n System.out.println(c);\r\n idsValidos[count] = c.getID();\r\n count++;\r\n }\r\n }\r\n return idsValidos;\r\n }", "private ArrayList<String> getConectorQue(String infoDaPilha){\n\t\tArrayList<String> listaDeConectores = new ArrayList<String>();\n\t\t\n\t\tlistaDeConectores.add(\"que\");\n\t\t\n\t\treturn listaDeConectores;\n\t}", "@Override\n\tpublic List<Seccion> listarSecciones() {\n\t\t\n \tList<Seccion> secciones= entity.createQuery(\"FROM Seccion\", Seccion.class).getResultList();\n \t\n\t\treturn secciones;\n\t}", "public List<ActDetalleActivo> listarDetalleActivoLaboratorio(long codigoSalaLaboratorio,long codigoTipo,String amie, int estado,int anio);", "public void listar() {\r\n Collections.sort(coleccion);\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n String resumen = (coleccion.get(i).toString());\r\n JOptionPane.showMessageDialog(null, resumen);\r\n }\r\n }", "public ArrayList<Cuenta> verClientesConMasDinero() {\n ArrayList<Cuenta> lista = new ArrayList<>();\n try {\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT sum(Credito) as Dinero, c.Codigo_Cliente as Codigo, l.Nombre as Nombre FROM Cuenta c join Cliente l on c.Codigo_Cliente = l.Codigo group by Codigo_Cliente order by sum(Credito) desc limit 10\";\n PrSt = conexion.prepareStatement(Query);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n Cuenta cuenta = new Cuenta();\n cuenta.setCredito(rs.getDouble(\"Dinero\"));\n cuenta.setCodigo_cliente(rs.getString(\"Codigo\"));\n cuenta.setCodigo(rs.getString(\"Nombre\"));\n lista.add(cuenta);\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return lista;\n }", "public ArrayList<Cuenta> obtenerCuentasAsociadas(String codigo_cliente) {\n ArrayList<Cuenta> lista = new ArrayList<>();\n try {\n PreparedStatement PrSt;\n PreparedStatement PrSt2;\n ResultSet rs = null;\n ResultSet rs2 = null;\n String Query = \"SELECT * FROM Solicitud WHERE Codigo_ClienteS = ? AND Estado = 'Aceptada'\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cliente);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n Cuenta cuenta = obtenerCuenta(rs.getString(\"Codigo_Cuenta\"));\n lista.add(cuenta);\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return lista;\n }", "public List<Mobibus> darMobibus();", "public List<ChamadosAtendidos> contaChamadosAtendidos(int servico) throws SQLException {\r\n\r\n List<ChamadosAtendidos> CAList = new ArrayList<>();\r\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? \");\r\n\r\n ps.setInt(1, servico);\r\n ChamadosAtendidos ch = new ChamadosAtendidos();\r\n int contador1 = 0, contador2 = 0, contador3 = 0;\r\n\r\n ResultSet rs = ps.executeQuery();\r\n while (rs.next()) {\r\n contador1++;\r\n }\r\n PreparedStatement ps2 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 4 \");\r\n ps2.setInt(1, servico);\r\n ResultSet rs2 = ps2.executeQuery();\r\n while (rs2.next()) {\r\n contador2++;\r\n }\r\n PreparedStatement ps3 = conn.prepareStatement(\"SELECT Qtde_tentativas FROM `solicitacoes` WHERE servico_id_servico=?\");\r\n ps3.setInt(1, servico);\r\n ResultSet rs3 = ps3.executeQuery();\r\n while (rs3.next()) {\r\n\r\n contador3 = contador3 + rs3.getInt(1);\r\n }\r\n PreparedStatement ps4 = conn.prepareStatement(\"SELECT * FROM `solicitacoes` WHERE servico_id_servico =? and em_chamado= 2 \");\r\n ps4.setInt(1, servico);\r\n\r\n ResultSet rs4 = ps4.executeQuery();\r\n while (rs4.next()) {\r\n\r\n contador3++;\r\n }\r\n ch.setTotalDeChamados(contador1);\r\n ch.setChamadosConcluidos(contador2);\r\n ch.setChamadosRealizados(contador3 + contador2);\r\n CAList.add(ch);\r\n return CAList;\r\n }", "public List listar() {\n Query query = Database.manager.createNamedQuery(\"StatussistemaDTO.findAll\");\n query.setHint(QueryHints.MAINTAIN_CACHE, HintValues.FALSE);// evita consulta em cache\n List lista = query.getResultList();\n return lista;\n }", "public List<String> IndiceOcupacion() throws Exception \n\t{\n\t\tDAOFC dao = new DAOFC( );\n\t\tList<String> ss = new ArrayList<>();\n\t\ttry\n\t\t{\n\t\t\tthis.conn = darConexion();\n\t\t\tdao.setConn(conn);\n\t\t\tss = dao.indiceOcupacion();\n\n\t\t}\n\t\tcatch (SQLException sqlException) {\n\t\t\tSystem.err.println(\"[EXCEPTION] SQLException:\" + sqlException.getMessage());\n\t\t\tsqlException.printStackTrace();\n\t\t\tthrow sqlException;\n\t\t} \n\t\tcatch (Exception exception) {\n\t\t\tSystem.err.println(\"[EXCEPTION] General Exception:\" + exception.getMessage());\n\t\t\texception.printStackTrace();\n\t\t\tthrow exception;\n\t\t} \n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tdao.cerrarRecursos();\n\t\t\t\tif(this.conn!=null){\n\t\t\t\t\tthis.conn.close();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (SQLException exception) {\n\t\t\t\tSystem.err.println(\"[EXCEPTION] SQLException While Closing Resources:\" + exception.getMessage());\n\t\t\t\texception.printStackTrace();\n\t\t\t\tthrow exception;\n\t\t\t}\n\t\t}\t\n\n\t\treturn ss;\n\t}", "private String[] obtenerColores(List<Categoria> listaCategorias) {\n\t\tString[] colores = new String[listaCategorias.size()];\n\t\tRandom obj = new Random();\n\t\tfor (int i = 0; i < listaCategorias.size(); i++) {\n\t\t\tint rand_num = obj.nextInt(0xffffff + 1);\n\t\t\tcolores[i] = String.format(\"#%06x\", rand_num);\n\t\t}\n\t\treturn colores;\n\t}", "public ArrayList<DataCliente> listarClientes();", "@SuppressWarnings(\"unchecked\")\r\n\t\r\n\tpublic List<ParadaUtil> listar() {\n\t\tiniciarTransacao();\r\n\t\tCriteria c = s.createCriteria(ParadaUtil.class);\r\n\t\tc.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY);\r\n\t\treturn c.list();\r\n\t}", "public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }", "public List<Permiso> obtenerTodosActivos();", "List<TipoHuella> listarTipoHuellas();", "private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}", "public ArrayList<DatosNombre> listaNombre(){\n \n ArrayList<DatosNombre> respuesta = new ArrayList<>();\n Connection conexion = null;\n JDBCUtilities conex = new JDBCUtilities();\n \n try{\n conexion= conex.getConnection();\n \n String query = \"SELECT usuario, contrasenia, nombre\"\n + \" FROM empleado\"\n + \" WHERE estado=true\";\n \n PreparedStatement statement = conexion.prepareStatement(query);\n ResultSet resultado = statement.executeQuery();\n \n while(resultado.next()){\n DatosNombre consulta = new DatosNombre();\n consulta.setUsuario(resultado.getString(1));\n consulta.setContrasenia(resultado.getString(2));\n consulta.setNombreAnt(resultado.getString(3));\n \n respuesta.add(consulta);\n }\n }catch(SQLException e){\n JOptionPane.showMessageDialog(null, \"Error en la consulta \" + e);\n }\n return respuesta;\n }", "public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}", "public ArrayList<String> mostraResultats(){\n ArrayList<String> tauleta = new ArrayList<>();\n for (int j=0; j<res.getClients().size(); j++) {\n for (int k=0; k<res.getClients().get(j).getAssigs().size(); k++) {\n String aux = \"\";\n for (int i = 0; i < res.getClients().get(j).getAssigs().get(k).getAntecedents().getRangs().size(); i++) {\n aux += res.getClients().get(j).getAssigs().get(k).getAntecedents().getRangs().get(i).getNom() + \"\\t\";\n }\n aux += \" -> \" + res.getClients().get(j).getAssigs().get(k).getConsequent().getNom();\n tauleta.add(aux);\n }\n }\n return tauleta;\n }", "public static List<Cancion> selectAllLista(int id_lista) {\n\t List<Cancion> result = new ArrayList();\n\n\t try {\n\t \t \n\t \t manager = Connection.connectToMysql();\n\t \t manager.getTransaction().begin();\n\t \t \n\t \t \n\t \t Lista L = manager.find(Lista.class, id_lista);\n\t \t \n\t \t result = L.getCanciones();\t\n\t\t\t\t\n\t \t manager.getTransaction().commit();\n\t \t \n\t } catch (Exception ex) {\n\t System.out.println(ex);\n\t }\n\t \n\t return result;\n\t }", "public ArrayList<rubro> obtenerTodoslosRubros() {\n ArrayList<rubro> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n PreparedStatement pr = conn.prepareStatement(\"select id_rubro , nombre, descripcion, estado, ruta \\n\"\n + \" from rubros \");\n\n ResultSet rs = pr.executeQuery();\n\n while (rs.next()) {\n int id = rs.getInt(1);\n String nombre = rs.getString(2);\n String descripcion = rs.getString(3);\n boolean estado = rs.getBoolean(4);\n String ruta = rs.getString(5);\n\n rubro r = new rubro(id, nombre, estado, descripcion, ruta);\n\n lista.add(r);\n }\n\n rs.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n\n }", "public List<conteoTab> filtro() throws Exception {\n iConteo iC = new iConteo(path, this);\n try {\n fecha = sp.getString(\"date\", \"\");\n iC.nombre = fecha;\n\n List<conteoTab> cl = iC.all();\n\n for (conteoTab c : cl) {\n boolean val = true;\n for (int i = 0; i <= clc.size(); i++) {\n if (c.getIdBloque() == sp.getInt(\"bloque\", 0) || c.getIdVariedad() == sp.getInt(\"idvariedad\", 0)) {\n val = true;\n } else {\n val = false;\n }\n }\n if (val) {\n clc.add(c);\n } else {\n }\n }\n } catch (Exception e) {\n Toast.makeText(this, \"No existen registros actuales que coincidan con la fecha\", Toast.LENGTH_LONG).show();\n clc.clear();\n }\n return clc;\n }", "public static Object getLista(Object obj) {\n\t\tConexionDB db=new TipoComisionDB();\r\n\t\treturn db.getAll(obj);\r\n\t}" ]
[ "0.7306989", "0.7208502", "0.70223165", "0.7003328", "0.6922281", "0.69199806", "0.6873774", "0.6770623", "0.6770364", "0.6746702", "0.6745222", "0.67409796", "0.67334485", "0.6725384", "0.67237014", "0.6711356", "0.6709122", "0.6699671", "0.66920877", "0.66902274", "0.6674806", "0.66535753", "0.6642407", "0.66209924", "0.6620037", "0.6608076", "0.66045654", "0.65806234", "0.6580193", "0.6573234", "0.6571178", "0.65574646", "0.65382373", "0.6529157", "0.65275294", "0.6524665", "0.6510232", "0.65017956", "0.6495648", "0.6491778", "0.64899945", "0.646351", "0.6462354", "0.6447971", "0.64427626", "0.644126", "0.64389247", "0.64370775", "0.64361537", "0.64352375", "0.6434973", "0.6431248", "0.6422064", "0.642192", "0.6408789", "0.64060915", "0.6399521", "0.6394804", "0.6386567", "0.63780826", "0.63774586", "0.63771087", "0.63651294", "0.6364065", "0.6361853", "0.6359678", "0.6359222", "0.63565195", "0.63503826", "0.6348253", "0.6345335", "0.6340749", "0.6337942", "0.63379043", "0.63347125", "0.63217634", "0.63202554", "0.6319511", "0.63160765", "0.63125384", "0.63111776", "0.6308123", "0.63014334", "0.6301286", "0.6292614", "0.629175", "0.62905", "0.6288575", "0.628494", "0.62805223", "0.6279363", "0.62788683", "0.62774724", "0.62758625", "0.62670237", "0.6261762", "0.6257002", "0.6253319", "0.6252861", "0.6252374", "0.62461984" ]
0.0
-1
LISTADO DE CONSULTAR EQUIPO
public ArrayList<Equipo> listaEquiCiudad(String ciudad) { ArrayList<Equipo> listaEquipoCiudad = new ArrayList<Equipo>(); String query = "SELECT * FROM EQUIPOS WHERE COD_CIUDAD = (SELECT CODIGO FROM CIUDADES WHERE NOMBRE = ? COLLATE NOCASE)"; Connection con = null; PreparedStatement pstmt = null; ResultSet rslt = null; Equipo eq = null; try { con = acceso.getConnection(); pstmt = con.prepareStatement(query); pstmt.setString(1, ciudad); rslt = pstmt.executeQuery(); while (rslt.next()) { eq = new Equipo(rslt.getInt(1), rslt.getString(2), rslt.getString(3), rslt.getInt(4), rslt.getInt(5), rslt.getInt(6), rslt.getInt(7)); listaEquipoCiudad.add(eq); } } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } finally { //CERRAR CONEXIÓN try { if (rslt != null) rslt.close(); if (pstmt != null) pstmt.close(); if (con != null) con.close(); } catch (SQLException e) { e.printStackTrace(); } } return listaEquipoCiudad; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void listarEquipo() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor(Alumno i : alumnos) {\n\t\t\tsb.append(i+\"\\n\");\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "@Override\r\n\tpublic List<EquipoCompetencia> listar() {\n\t\treturn null;\r\n\t}", "List<Vehiculo>listar();", "List<ParqueaderoEntidad> listar();", "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 }", "List<Oficios> buscarActivas();", "public void GetVehiculos() {\n String A = \"&LOCATION=POR_ENTREGAR\";\n String Pahtxml = \"\";\n \n try {\n \n DefaultListModel L1 = new DefaultListModel();\n Pahtxml = Aso.SendGetPlacas(A);\n Lsvehiculo = Aso.Leerxmlpapa(Pahtxml);\n Lsvehiculo.forEach((veh) -> {\n System.out.println(\"Placa : \" + veh.Placa);\n L1.addElement(veh.Placa);\n });\n \n Lista.setModel(L1);\n \n } catch (Exception ex) {\n Logger.getLogger(Entrega.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }", "public void listarEquipamentos() {\n \n \n List<Equipamento> formandos =new EquipamentoJpaController().findEquipamentoEntities();\n \n DefaultTableModel tbm=(DefaultTableModel) listadeEquipamento.getModel();\n \n for (int i = tbm.getRowCount()-1; i >= 0; i--) {\n tbm.removeRow(i);\n }\n int i=0;\n for (Equipamento f : formandos) {\n tbm.addRow(new String[1]);\n \n listadeEquipamento.setValueAt(f.getIdequipamento(), i, 0);\n listadeEquipamento.setValueAt(f.getEquipamento(), i, 1);\n \n i++;\n }\n \n \n \n }", "public List<Vendedor> listarVendedor();", "@Override\n public void mostrarListadoEquipos(List<Equipo> equipos) {\n\n }", "@Override\r\n\tpublic List<EquipoCompetencia> listarEquipos(int codigo) {\n\t\treturn daoEquipoCompetencia.listarEquipoxcompetencia(codigo);\r\n\t}", "public List<Produto> buscarProdutos(){\n return new ArrayList<>();\n }", "@Override\r\n\tpublic List<EquipoCompetencia> listarActivos() {\n\t\treturn null;\r\n\t}", "public static List<Comentario> listar()\n {\n Session sessionRecheio;\n sessionRecheio = HibernateUtil.getSession();\n Transaction tr = sessionRecheio.beginTransaction();\n String hql = \"from Comentario u\";\n List<Comentario> lista = (List)sessionRecheio.createQuery(hql).list();\n tr.commit();\n return lista;\n }", "public ArrayList<DTOcantComentarioxComercio> listaOrdenadaxComentario() {\n ArrayList<DTOcantComentarioxComercio> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"select co.nombre, count (Comentarios.id_comercio) comentarios\\n\"\n + \"from Comentarios join Comercios co on co.id_comercio = Comentarios.id_comercio\\n\"\n + \"group by co.nombre\\n\"\n + \"order by comentarios\");\n\n while (rs.next()) {\n String nombreO = rs.getString(1);\n int cant = rs.getInt(2);\n\n DTOcantComentarioxComercio oc = new DTOcantComentarioxComercio(nombreO, cant);\n\n lista.add(oc);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n }", "public void afficherListe(){\n StringBuilder liste = new StringBuilder(\"\\n\");\n logger.info(\"OUTPUT\",\"\\nLes produits en vente sont:\");\n for (Aliment aliment : this.productList) { liste.append(\"\\t\").append(aliment).append(\"\\n\"); }\n logger.info(\"OUTPUT\", liste+\"\\n\");\n }", "List<TipoHuella> listarTipoHuellas();", "public List<Mobibus> darMobibus();", "public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }", "@Override\n\tpublic List<Estadoitem> listar() {\n\t\treturn estaitemdao.listar();\n\t}", "public List<Produto> listar() {\n return manager.createQuery(\"select distinct (p) from Produto p\", Produto.class).getResultList();\n }", "List<Especialidad> getEspecialidades();", "public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }", "public void listarProducto() {\n }", "public static ArrayList<obj_dos_campos> carga_tipo_producto() {\n ArrayList<obj_dos_campos> lista = new ArrayList<obj_dos_campos>();\n Connection c=null;\n try {\n c = conexion_odbc.Connexion_datos();\n Statement s = c.createStatement();\n ResultSet rs = s.executeQuery(\"select tip_prod_idn as data, tip_prod_nombre as label from tipo_producto order by tip_prod_nombre desc\");\n lista.add(new obj_dos_campos(\"0\",\"-- Seleccione --\"));\n while (rs.next()){\n lista.add(new obj_dos_campos(rs.getString(\"data\"),rs.getString(\"label\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n c.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return lista;\n }", "public ArrayList getOrdenCartas();", "public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }", "@Override\n public List<Venda> listar() {\n String sql = \"SELECT v FROM venda v\";\n TypedQuery<Venda> query = em.createQuery(sql, Venda.class);\n List<Venda> resultList = query.getResultList();\n\n return resultList;\n }", "@Override\r\n\tpublic List<Object> consultarVehiculos() {\r\n\t\t\r\n\t\tFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\r\n\t\treturn AdminEstacionamientoImpl.getParqueadero().stream().map(\r\n\t\t\t\t temp -> {HashMap<String, String> lista = new HashMap<String, String>(); \r\n\t\t\t\t lista.put( \"placa\", temp.getVehiculo().getPlaca() );\r\n\t\t\t\t lista.put( \"tipo\", temp.getVehiculo().getTipo() );\r\n\t\t\t\t lista.put( \"fechaInicio\", formato.format( temp.getFechaInicio() ) );\r\n\r\n\t\t\t\t return lista;\r\n\t\t\t\t }\r\n\t\t\t\t).collect(Collectors.toList());\r\n\t}", "public List<Proveedores> listProveedores() {\r\n\t\tString sql = \"select p from Proveedores p\";\r\n\t\tTypedQuery<Proveedores> query = em.createQuery(sql, Proveedores.class);\r\n\t\tSystem.out.println(\"2\");\r\n\t\tList<Proveedores> lpersonas = query.getResultList();\r\n\t\treturn lpersonas;\r\n\t}", "public ArrayList<Veiculo> pesquisarCarro(int tipoCarro);", "public ArrayList<Equipamento> todos() {\n return new ArrayList<>(lista.values());\n }", "public List<SelectItem> getlistEstados() {\n\t\tList<SelectItem> lista = new ArrayList<SelectItem>();\n\t\tlista.add(new SelectItem(Funciones.estadoActivo, Funciones.estadoActivo\n\t\t\t\t+ \" : \" + Funciones.valorEstadoActivo));\n\t\tlista.add(new SelectItem(Funciones.estadoInactivo,\n\t\t\t\tFunciones.estadoInactivo + \" : \"\n\t\t\t\t\t\t+ Funciones.valorEstadoInactivo));\n\t\treturn lista;\n\t}", "public void listar(){\n if (!esVacia()) {\n // Crea una copia de la lista.\n NodoEmpleado aux = inicio;\n // Posicion de los elementos de la lista.\n int i = 0;\n System.out.print(\"-> \");\n // Recorre la lista hasta llegar nuevamente al incio de la lista.\n do{\n // Imprime en pantalla el valor del nodo.\n System.out.print(i + \".[ \" + aux.getEmpleado() + \" ]\" + \" -> \");\n // Avanza al siguiente nodo.\n aux = aux.getSiguiente();\n // Incrementa el contador de la posi�n.\n i++;\n }while(aux != inicio);\n }\n }", "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 ArrayList<oferta> listadoOfertaxComercio(int idComercio) {\n ArrayList<oferta> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n PreparedStatement st = conn.prepareStatement(\"select o.nombre, o.cantidad, o.precio , c.id_comercio, id_oferta, descripcion, fecha, o.ruta, o.estado\\n\"\n + \"from Comercios c \\n\"\n + \"join Ofertas o on c.id_comercio = o.id_comercio \\n\"\n + \"where c.id_comercio = ?\");\n st.setInt(1, idComercio);\n ResultSet rs = st.executeQuery();\n\n while (rs.next()) {\n String nombreO = rs.getString(1);\n int cantidad = rs.getInt(2);\n Float precio = rs.getFloat(3);\n int id = rs.getInt(4);\n int ido = rs.getInt(5);\n String descripcion = rs.getString(6);\n String fecha = rs.getString(7);\n String ruta = rs.getString(8);\n boolean estado = rs.getBoolean(9);\n\n rubro rf = new rubro(0, \"\", true, \"\", \"\");\n comercio c = new comercio(\"\", \"\", \"\", id, true, \"\", \"\", rf, \"\");\n oferta o = new oferta(ido, nombreO, cantidad, precio, c, estado, descripcion, fecha,ruta );\n\n lista.add(o);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n }", "public ArrayList<Producto> ListaProductos() {\n ArrayList<Producto> list = new ArrayList<Producto>();\n \n try {\n conectar();\n ResultSet result = state.executeQuery(\"select * from producto;\");\n while(result.next()) {\n Producto nuevo = new Producto();\n nuevo.setIdProducto((int)result.getObject(1));\n nuevo.setNombreProducto((String)result.getObject(2));\n nuevo.setFabricante((String)result.getObject(3));\n nuevo.setCantidad((int)result.getObject(4));\n nuevo.setPrecio((int)result.getObject(5));\n nuevo.setDescripcion((String)result.getObject(6));\n nuevo.setSucursal((int)result.getObject(7));\n list.add(nuevo);\n }\n con.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n return list;\n }", "@Override\r\n\tpublic List<ComVO> comList() {\n\t\treturn adao.ComList();\r\n\t}", "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 ArrayList<ProductoDTO> mostrartodos() {\r\n\r\n\r\n PreparedStatement ps;\r\n ResultSet res;\r\n ArrayList<ProductoDTO> arr = new ArrayList();\r\n try {\r\n\r\n ps = conn.getConn().prepareStatement(SQL_READALL);\r\n res = ps.executeQuery();\r\n while (res.next()) {\r\n\r\n arr.add(new ProductoDTO(res.getInt(1), res.getString(2), res.getString(3), res.getInt(4), res.getInt(5), res.getString(6), res.getString(7), res.getString(8), res.getString(9)));\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"error vuelva a intentar\");\r\n } finally {\r\n conn.cerrarconexion();\r\n\r\n }\r\n return arr;\r\n\r\n }", "public void listar() {\n\n if (!vacia()) {\n\n NodoEnteroSimple temp = head;\n\n int i = 0;\n\n while (temp != null) {\n\n System.out.print(i + \".[ \" + temp.getValor() + \" ]\" + \" -> \");\n\n temp = temp.getSiguiente();\n\n i++;\n }\n }\n \n }", "@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Inscripcion.findAll\", null);\n }", "public static void mostrarVehiculos() {\n for (Vehiculo elemento : vehiculos) {\n System.out.println(elemento);\n }\n\t}", "@Override\r\n\tpublic List<Famille> listCompetences() {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n \t\tsession.beginTransaction();\r\n \t\t//on crée une requête\r\n \t\tQuery req=session.createQuery(\"select C from FamilleComp C\");\r\n \t\tList<Famille> famillecomp=req.list();\r\n session.getTransaction().commit();\r\n \t\treturn famillecomp;\r\n\t\t\r\n\t}", "public String listarSensores(){\r\n String str = \"\";\r\n for(PacienteNuvem x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }", "@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Curso.findAll\", null);\n }", "@Override\n\tpublic List<Veiculo> listar() {\n\t\treturn null;\n\t}", "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 }", "@Override\n\tpublic String toString() {\n\t\treturn \"Lista de todos los Inmuebles\";\n\t}", "public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }", "public void listar() {\r\n Collections.sort(coleccion);\r\n for (int i = 0; i < coleccion.size(); i++) {\r\n String resumen = (coleccion.get(i).toString());\r\n JOptionPane.showMessageDialog(null, resumen);\r\n }\r\n }", "List<Videogioco> retriveByNome(String nome);", "private void listadoEstados() {\r\n sessionProyecto.getEstados().clear();\r\n sessionProyecto.setEstados(itemService.buscarPorCatalogo(CatalogoEnum.ESTADOPROYECTO.getTipo()));\r\n }", "public List<Fortaleza> listarFortalezas(){\r\n return cVista.listarFortalezas();\r\n }", "public void obtenerLista(){\n listaInformacion = new ArrayList<>();\n for (int i = 0; i < listaPersonales.size(); i++){\n listaInformacion.add(listaPersonales.get(i).getId() + \" - \" + listaPersonales.get(i).getNombre());\n }\n }", "public List<EntradaDeMaterial> buscarEntradasDisponibles();", "@SuppressWarnings(\"unchecked\")\t\r\n\t@Override\r\n\tpublic List<Distrito> listar() {\n\t\tList<Distrito> lista = new ArrayList<Distrito>();\r\n\t\tQuery q = em.createQuery(\"select m from Distrito m\");\r\n\t\tlista = (List<Distrito>) q.getResultList();\r\n\t\treturn lista;\r\n\t}", "@Override\n\tpublic List<Cozinha> listar() { /* Cria uma Lista para buscar elementos da tabela Cozinha no banco */\n\t\treturn manager.createQuery(\"from Cozinha\", Cozinha.class) /*\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * Esta criando uma consulta com todo os elementos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t * que tem dentro de Cozinha\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t */\n\t\t\t\t.getResultList(); /* Está me retornando os Resultados da Lista Cozinha */\n\t}", "@Override\n\tpublic List<CursoAsignatura> listar() {\n\t\treturn null;\n\t}", "private void getinterrogantes(){\n try{\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"ServiceQualificationPU\");\n EntityManager em = emf.createEntityManager();\n\n String jpql = \"SELECT i FROM Interrogante i \"\n + \"WHERE i.estado='a' \";\n\n Query query = em.createQuery(jpql);\n List<Interrogante> listInterrogantes = query.getResultList();\n\n ArrayList<ListQuestion> arrayListQuestions = new ArrayList<>();\n for (Interrogante i : listInterrogantes){\n ListQuestion lq = new ListQuestion();\n lq.setIdinterrogante(i.getIdinterrogante());\n lq.setQuestion(i.getDescripcion());\n lq.setListParametros(getParametros(i.getIdinterrogante()));\n arrayListQuestions.add(lq);\n }\n\n this.ListQuestions = arrayListQuestions;\n em.close();\n emf.close();\n }catch(Exception e){\n System.out.println(\"ERROR: \"+e);\n this.Error = \"ERROR: \"+e;\n } \n \n }", "public ArrayList<String> cartasQueTieneEnLaMano()\n {\n {\n ArrayList<String> coleccionString = new ArrayList<String>();\n for (Carta objetoCarta : cartasDeJugador) {\n coleccionString.add(objetoCarta.getNombre());\n }\n return coleccionString;\n }\n }", "public List<Comentario> buscaPorTopico(Topico t);", "@Override\n\tpublic List<BeanDistrito> listar() {\n\t\tList<BeanDistrito> lista = new ArrayList<BeanDistrito>();\n\t\tBeanDistrito distrito = null;\n\t\tConnection con = MySQLDaoFactory.obtenerConexion();\n\t\ttry {\n\t\t\n\t\t\tString sql=\"SELECT * FROM t_distrito ORDER BY codDistrito\";\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\t\n\t\t\twhile(rs.next()){\n\t\t\t\tdistrito = new BeanDistrito();\n\t\t\t\tdistrito.setCodDistrito(rs.getInt(1));\n\t\t\t\tdistrito.setNombre(rs.getString(2));\n\t\t\t\t\n\t\t\t\tlista.add(distrito);\n\t\t\t}\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\ttry {\n\t\t\t\tcon.close();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn lista;\n\t}", "public List listar() {\n Query query = Database.manager.createNamedQuery(\"StatussistemaDTO.findAll\");\n query.setHint(QueryHints.MAINTAIN_CACHE, HintValues.FALSE);// evita consulta em cache\n List lista = query.getResultList();\n return lista;\n }", "public List<Producto> verProductos(){\n SessionFactory sf = NewHibernateUtil.getSessionFactory();\n Session session = sf.openSession();\n // El siguiente objeto de query se puede hacer de dos formas una delgando a hql (lenguaje de consulta) que es el\n //lenguaje propio de hibernate o ejecutar ancestarmente la colsulta con sql\n Query query = session.createQuery(\"from Producto\");\n // En la consulta hql para saber que consulta agregar se procede a añadirla dandole click izquierdo sobre\n // hibernate.cfg.xml y aquí añadir la correspondiente consulta haciendo referencia a los POJOS\n List<Producto> lista = query.list();\n session.close();\n return lista;\n }", "public void mostrarLista(String tipo, String encabezado){\n System.out.println(\"\\n\" /*+ \"Departamento de \"*/ + tipo.concat(\"s\") + \"\\n\" + encabezado);\n for (Producto i: productos){\n if (tipo.compareToIgnoreCase(i.tipo) == 0)\n System.out.println(i);\n }\n }", "@Override\n\tprotected void doListado() throws Exception {\n\t\tList<Department> deptos = new DepartmentDAO().getAllWithManager();\n//\t\tList<Department> deptos = new DepartmentDAO().getAll();\n\t\tthis.addColumn(\"Codigo\").addColumn(\"Nombre\").addColumn(\"Manager\").newLine();\n\t\t\n\t\tfor(Department d: deptos){\n\t\t\taddColumn(d.getNumber());\n\t\t\taddColumn(d.getName());\n\t\t\taddColumn(d.getManager().getFullName());\n\t\t\tnewLine();\n\t\t}\n\t}", "public void listarHospedes() {\n System.out.println(\"Hospedes: \\n\");\n if (hospedesCadastrados.isEmpty()) {\n// String esta = hospedesCadastrados.toString();\n// System.out.println(esta);\n System.err.println(\"Não existem hospedes cadastrados\");\n } else {\n String esta = hospedesCadastrados.toString();\n System.out.println(esta);\n // System.out.println(Arrays.toString(hospedesCadastrados.toArray()));\n }\n\n }", "public List<Veiculo> listarTodosVeiculos(){\n\t\tList<Veiculo> listar = null;\n\t\t\n\t\ttry{\n\t\t\tlistar = veiculoDAO.listarTodosVeiculos();\n\t\t}catch(Exception e){\n\t\t\te.getMessage();\n\t\t}\n\t\treturn listar;\n\t}", "public ArrayList<DataCliente> listarClientes();", "private void mostradados() {\r\n\t\tint in = 0;\r\n\r\n\t\tfor (Estado e : Estado.values()) {\r\n\t\t\tif (in == 0) {\r\n\t\t\t\tcmbx_estado.addItem(\"\");\r\n\t\t\t\tin = 1;\r\n\t\t\t}\r\n\t\t\tcmbx_estado.addItem(e.getNome());\r\n\t\t}\r\n\r\n\t\tfor (int x = 0; x < listacliente.size(); x++) {\r\n\t\t\tin = 0;\r\n\t\t\tif (x == 0) {\r\n\t\t\t\tcmbx_cidade.addItem(\"\");\r\n\t\t\t}\r\n\r\n\t\t\tfor (int y = 0; y < cmbx_cidade.getItemCount(); y++) {\r\n\t\t\t\tif (listacliente.get(x).getCidade().equals(cmbx_cidade.getItemAt(y).toString()))\r\n\t\t\t\t\tin++;\r\n\t\t\t\tif (in > 1)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (in < 1)\r\n\t\t\t\tcmbx_cidade.addItem(listacliente.get(x).getCidade());\r\n\t\t}\r\n\t}", "public List<Setor> listar() {\n\t\tString sql = \" SELECT s.id, s.descricao FROM setor s \";\n\n\t\tList<Setor> setores = new ArrayList<>();\n\n\t\ttry (PreparedStatement ps = con.prepareStatement(sql); ResultSet rs = ps.executeQuery();) {\n\t\t\twhile (rs.next()) {\n\t\t\t\tSetor setor = new Setor();\n\t\t\t\tsetor.setId(rs.getInt(\"id\"));\n\t\t\t\tsetor.setDescricao(rs.getString(\"descricao\"));\n\t\t\t\tsetores.add(setor);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn setores;\n\t}", "private static void mostrarListaDeComandos() {\n System.out.println(\"Lista de comandos:\");\n for (int i = 0; i < comandos.length; i++){\n System.out.println(comandos[i]);\n }\n }", "List<CatalogoAprobadorDTO> buscarAprobador(int cveADM, String numEmpleado, Integer claveNivel, Integer centroCostoOP) throws SIATException;", "List<Videogioco> retriveByPiattaforma(String piattaforma);", "@Override\n\tpublic List<Produto> listar(Produto entidade) {\n\t\treturn null;\n\t}", "public ArrayList<DatosNombre> listaNombre(){\n \n ArrayList<DatosNombre> respuesta = new ArrayList<>();\n Connection conexion = null;\n JDBCUtilities conex = new JDBCUtilities();\n \n try{\n conexion= conex.getConnection();\n \n String query = \"SELECT usuario, contrasenia, nombre\"\n + \" FROM empleado\"\n + \" WHERE estado=true\";\n \n PreparedStatement statement = conexion.prepareStatement(query);\n ResultSet resultado = statement.executeQuery();\n \n while(resultado.next()){\n DatosNombre consulta = new DatosNombre();\n consulta.setUsuario(resultado.getString(1));\n consulta.setContrasenia(resultado.getString(2));\n consulta.setNombreAnt(resultado.getString(3));\n \n respuesta.add(consulta);\n }\n }catch(SQLException e){\n JOptionPane.showMessageDialog(null, \"Error en la consulta \" + e);\n }\n return respuesta;\n }", "@Override\r\n public String toString() {\r\n return \"Equipamento{\" + \"nome=\" + nome + \", cliente=\" + cliente + '}';\r\n }", "List<Curso> obtenerCursos();", "public ArrayList<Viaje> listar(){\n\t\tArrayList<Viaje> lista=new ArrayList<Viaje>();\n\t\t\n\t\tString sql=\"select * from viaje\";\n\t\t\n\t\ttry(Connection con=DB.getConexion();\n\t\t\tStatement stm=con.createStatement();){\n\t\t\t\tResultSet rs=stm.executeQuery(sql);\n\t\t\t\n\t\t\twhile(rs.next()){\n\t\t\t\tViaje v=new Viaje(rs.getInt(\"id\"),rs.getString(\"destino\"),rs.getInt(\"duracion\"),rs.getFloat(\"precio\"));\n\t\t\t\tlista.add(v);\n\t\t\t}\n\t\t\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tsqle.printStackTrace();\n\t\t}\n\t\treturn lista;\n\t}", "public void mostrarLista(){\n Nodo recorrer = inicio;\n while(recorrer!=null){\n System.out.print(\"[\"+recorrer.edad+\"]-->\");\n recorrer=recorrer.siguiente;\n }\n System.out.println(recorrer);\n }", "public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}", "public List<ActDetalleActivo> listarPorSerial(String serial,String amie, int estado,Integer anio,int estadoActivo);", "public void listarIgrejaComboBox() {\n\n IgrejasDAO dao = new IgrejasDAO();\n List<Igrejas> lista = dao.listarIgrejas();\n cbIgrejas.removeAllItems();\n\n for (Igrejas c : lista) {\n cbIgrejas.addItem(c);\n }\n }", "public List<SelectItem> getEstados() throws ClassNotFoundException, SQLException{\r\n\t\tList<SelectItem> retorno = new LinkedList<SelectItem>();\r\n\t\r\n\t\tfor(TB_UF estado : ufDAO.listarTodos()){\r\n\t\t\tretorno.add(new SelectItem(estado, estado.getNOME_UF()));\r\n\t\t}\r\n\t\treturn retorno;\r\n\t}", "public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}", "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 }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ComPermiso> escuelas() {\n\t\t\r\n\t\treturn em.createQuery(\"select c.dependencia.id,c.dependencia.nombre from ComPermiso c \").getResultList();\r\n\t}", "public List<ActDetalleActivo> listarDetalleActivoLaboratorio(long codigoSalaLaboratorio,long codigoTipo,String amie, int estado,int anio);", "@Override\r\n\tpublic List<Tramite_presentan_info_impacto> lista() {\n\t\treturn tramite.lista();\r\n\t}", "public static List getAllNames() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT naziv FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n String naziv = result.getString(\"naziv\");\n polovniautomobili.add(naziv);\n\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }", "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 List<EntradaDeMaterial> buscarEntradasDisponibles(Almacen a);", "public String listarCursosInscripto(){\n StringBuilder retorno = new StringBuilder();\n \n Iterator<Inscripcion> it = inscripciones.iterator();\n while(it.hasNext())\n {\n Inscripcion i = it.next();\n retorno.append(\"\\n\");\n retorno.append(i.getCursos().toString());\n retorno.append(\" en condición de: \");\n retorno.append(i.getEstadoInscripcion());\n }\n return retorno.toString();\n }", "public void listarCarros() {\n System.err.println(\"Carros: \\n\");\n if (carrosCadastrados.isEmpty()) {\n System.err.println(\"Nao existem carros cadastrados\");\n } else {\n System.err.println(Arrays.toString(carrosCadastrados.toArray()));\n }\n }", "public List<ViewEtudiantInscriptionEcheance> rechercheEtudiantInscripEcheanceParNomEtPrenom(){ \r\n try{ \r\n setListRechercheEtudiantInscripEcheance(viewEtudiantInscripEcheanceFacadeL.findEtudInscripByNonEtPrenomWithJocker(getViewEtudiantInscripEcheance().getNomEtPrenom())); \r\n }catch (Exception ex) {\r\n System.err.println(\"Erreur capturée : \"+ex);\r\n }\r\n return listRechercheEtudiantInscripEcheance;\r\n }", "List<Videogioco> retriveByGenere(String genere);", "public ArrayList<OfertaDisciplina> listar(){\n\t\tArrayList<OfertaDisciplina> lista = new ArrayList<OfertaDisciplina>();\n\t\tString sql = \"SELECT * FROM deinfo.oferta_disciplina\";\n\t\ttry{\n\t\t\tResultSet rs = bancoConnect.comandoSQL(sql);\n\t\t\twhile(rs.next()){\n\t\t\t\tint codigo = rs.getInt(\"ID_OFERTA\");\n\t\t\t\tint ano = rs.getInt(\"ANO\");\n\t\t\t\tint semestre = rs.getInt(\"SEMESTRE\");\n\t\t\t\tString cod_disciplina = rs.getString(\"DISCIPLINA_OFERTA\");\n\t\t\t\tint localizacao = rs.getInt(\"LOCALIZACAO\");\n\t\t\t\tString monitor = rs.getString(\"MONITOR_OFERTA\");\n\t\t\t\tint curso = rs.getInt(\"ID_CURSO_DISPONIVEL\");\n\t\t\t\tOfertaDisciplina off = new OfertaDisciplina(codigo, new Disciplina(cod_disciplina),\n\t\t\t\t\t\tano, semestre, new Localizacao(localizacao), new Aluno(monitor));\n\t\t\t\toff.setCurso(new Curso(curso));\n\t\t\t\tlista.add(off);\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tJOptionPane.showConfirmDialog(null, e.getMessage(), \"Erro\", -1);\n\t\t}\n\t\treturn lista;\n\t}", "@Override\n public ArrayList<Asesor> getListaAsesores() {\n ArrayList<Asesor> listaAsesores = new ArrayList();\n ConexionSQL conexionSql = new ConexionSQL();\n Connection conexion = conexionSql.getConexion();\n try{\n PreparedStatement orden = conexion.prepareStatement(\"select * from asesor\");\n ResultSet resultadoConsulta = orden.executeQuery();\n String numeroPersonal;\n String nombre;\n String idioma;\n String telefono;\n String correo;\n Asesor asesor;\n while(resultadoConsulta.next()){\n numeroPersonal = resultadoConsulta.getString(1);\n nombre = resultadoConsulta.getString(4) +\" \"+ resultadoConsulta.getString(6) +\" \"+ resultadoConsulta.getString(5);\n idioma = resultadoConsulta.getString(2);\n telefono = resultadoConsulta.getString(8);\n correo = resultadoConsulta.getString(7);\n asesor = new Asesor(numeroPersonal, nombre, idioma,telefono,correo);\n listaAsesores.add(asesor);\n }\n }catch(SQLException | NullPointerException excepcion){\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"La conexión podría ser nula | la sentencia SQL esta mal\");\n }\n return listaAsesores;\n }", "public static void generarEmpleados() {\r\n\t\tEmpleado e1 = new Empleado(100,\"34600001\",\"Oscar Ugarte\",new Date(), 20000.00, 2);\r\n\t\tEmpleado e2 = new Empleado(101,\"34600002\",\"Maria Perez\",new Date(), 25000.00, 4);\r\n\t\tEmpleado e3 = new Empleado(102,\"34600003\",\"Marcos Torres\",new Date(), 30000.00, 2);\r\n\t\tEmpleado e4 = new Empleado(1000,\"34600004\",\"Maria Fernandez\",new Date(), 50000.00, 7);\r\n\t\tEmpleado e5 = new Empleado(1001,\"34600005\",\"Augusto Cruz\",new Date(), 28000.00, 3);\r\n\t\tEmpleado e6 = new Empleado(1002,\"34600006\",\"Maria Flores\",new Date(), 35000.00, 2);\r\n\t\tlistaDeEmpleados.add(e1);\r\n\t\tlistaDeEmpleados.add(e2);\r\n\t\tlistaDeEmpleados.add(e3);\r\n\t\tlistaDeEmpleados.add(e4);\r\n\t\tlistaDeEmpleados.add(e5);\r\n\t\tlistaDeEmpleados.add(e6);\r\n\t}" ]
[ "0.74206454", "0.7346779", "0.7282643", "0.7150655", "0.714829", "0.7106304", "0.71027845", "0.7029336", "0.70112634", "0.7006381", "0.6926282", "0.6904499", "0.6885702", "0.68494385", "0.6840605", "0.68362117", "0.6818745", "0.6803147", "0.6798762", "0.67829615", "0.6754451", "0.6752163", "0.67460006", "0.6729215", "0.67266256", "0.67240405", "0.6714241", "0.67093533", "0.66933894", "0.6680738", "0.6679129", "0.6678215", "0.66742164", "0.667266", "0.66674715", "0.66418266", "0.66340077", "0.6600305", "0.65957713", "0.6591797", "0.65847474", "0.6578907", "0.6561002", "0.6552891", "0.6551054", "0.6540012", "0.653", "0.6521294", "0.6515968", "0.65137887", "0.6510941", "0.65046895", "0.64985657", "0.64944226", "0.6490037", "0.64851665", "0.6483165", "0.6476987", "0.6472121", "0.6471244", "0.6469839", "0.646977", "0.6469209", "0.64520866", "0.6447197", "0.6444941", "0.644304", "0.64392644", "0.6436257", "0.6426519", "0.6425966", "0.64247584", "0.6424174", "0.64229214", "0.6422776", "0.64100945", "0.64096934", "0.6407591", "0.6400775", "0.6399659", "0.6398172", "0.63958156", "0.63949823", "0.6394231", "0.63891774", "0.6382536", "0.6376435", "0.63693815", "0.63690734", "0.6363403", "0.63624865", "0.63617355", "0.6359906", "0.635879", "0.63565", "0.6353418", "0.63503426", "0.6348031", "0.6347591", "0.63471484", "0.6346212" ]
0.0
-1
get nodes number iteratively by queue
public static int getNum(TreeNode root) { if (root == null) { return 0; } int count = 0; Queue<TreeNode> queue = new LinkedList<>(); queue.offer(root); while (!queue.isEmpty()) { TreeNode node = queue.poll(); if (node.left != null) queue.offer(node.left); if (node.right != null) queue.offer(node.right); count++; } return count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNodeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return visited.size();\r\n }", "int getNodeCount();", "int getNodeCount();", "int getNodesCount();", "int getNodesCount();", "@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}", "private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}", "public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}", "public int getCount() {\n return queue.size();\n }", "public static int numberOfNodes() { return current_id; }", "@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}", "public int my_node_count();", "public int getNodeCount() {\n return nodeCount;\n }", "public int getNumberOfPaths(){ \r\n HashMap<FlowGraphNode, Integer> number = new HashMap<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n HashMap<FlowGraphNode, Integer> label = new HashMap<>();\r\n \r\n label.put(start,1);\r\n queue.add(start);\r\n do{\r\n FlowGraphNode node = queue.pop();\r\n for(FlowGraphNode child : node.to){\r\n int count = number.getOrDefault(child, child.inDeg()) -1;\r\n if(count == 0){\r\n queue.add(child);\r\n number.remove(child);\r\n //label\r\n int sum = 0;\r\n for(FlowGraphNode anc : child.from){\r\n sum += label.get(anc);\r\n }\r\n label.put(child,sum);\r\n }else{\r\n number.put(child, count);\r\n }\r\n }\r\n }while(!queue.isEmpty());\r\n \r\n if(!number.isEmpty()){\r\n //there has to be a loop in the graph\r\n return -1;\r\n }\r\n \r\n return label.get(end);\r\n }", "long getExcutorTasksInWorkQueueCount();", "public abstract int getNodesQuantity();", "int nodeCount();", "int totalNumberOfNodes();", "public int getNumber() {\n\t\treturn nodeList.size();\n\t}", "public int getNumNodes() {\n\t\treturn nodes.size();\n\t}", "protected int numNodes() {\n\t\treturn nodes.size();\n\t}", "int NoOfNodes() {\r\n return noOfNodes;\r\n }", "@Override\r\n\tpublic int getNumberOfNodes() {\n\t\tint leftNumber=0;\r\n\t\tint rightNumber=0;\r\n\t\tif(left!=null){\r\n\t\t\tleftNumber=left.getNumberOfNodes();\r\n\t\t}\r\n\t\tif(right!=null)\r\n\t\t\trightNumber=right.getNumberOfNodes();\r\n\t\treturn leftNumber+rightNumber+1;\r\n\t}", "public int nodeCount(){\r\n\t\treturn size;\r\n\t}", "public int lockedNodeCount() {\n\treturn lockedNodes;\n }", "public int getEdgeCount(){\r\n HashSet<FlowGraphNode> visited = new HashSet<>();\r\n LinkedList<FlowGraphNode> queue = new LinkedList<>();\r\n queue.add(start);\r\n visited.add(start);\r\n int counter = 0;\r\n while(!queue.isEmpty()){\r\n FlowGraphNode node = queue.pop();\r\n counter += node.outDeg();\r\n for(FlowGraphNode child : node.to){\r\n if(visited.add(child)){\r\n queue.add(child);\r\n }\r\n }\r\n }\r\n return counter;\r\n }", "public int getNodeCount() {\n return node_.size();\n }", "int numNodes() {\n\t\treturn num_nodes;\n\t}", "public int totalNumNodes () { throw new RuntimeException(); }", "private static int nodeDepthsIterativeQueue(Node root) {\n\t\tQueue<Level>q = new LinkedList<>();\n\t\tint result = 0;\n\t\tq.add(new Level(root, 0));\n\t\twhile(!q.isEmpty()) {\n\t\t\tLevel curr = q.poll();\n\t\t\tif(curr.root == null)\n\t\t\t\tcontinue;\n\t\t\tresult += curr.depth;\n\t\t\tSystem.out.println(curr.toString());\n\t\t\tq.add(new Level(curr.root.left, curr.depth + 1));\n\t\t\tq.add(new Level(curr.root.right, curr.depth + 1));\n\t\t}\n\t\treturn result;\n\t}", "public int getNumberOfNodesEvaluated();", "public int getNumQueues() {\n return queues.size();\n }", "public int nodesCount() {\n return nodes.size();\n }", "@Override\n public int nodeCount() {\n return graphNodes.size();\n }", "public int size()\r\n { \r\n return numNodes;\r\n }", "@Override\n\tpublic int size() {\n\t\tif(top == null) {\n\t\t\treturn 0;\n\t\t}\n\t\tNode<T> tempNode = top;\n\t\tint counter = 1;\n\t\twhile(tempNode.getLink() != null) {\n\t\t\tcounter++;\n\t\t\ttempNode = tempNode.getLink();\n\t\t}\n\t\treturn counter;\n\t}", "public int numNodes() {\n\t\treturn numNodes;\n\t}", "public int numNodes() {\n return nodeVector.size();\n }", "public static int countNodes() {\n\t\treturn count_nodes;\n\t}", "public int getQueuePosition();", "int nbNode() {\n switch (type) {\n\n case EDGE:\n case PATH:\n case EVAL:\n if (edge.getEdgeVariable() == null) {\n return edge.nbNode();\n } else {\n return edge.nbNode() + 1;\n }\n\n case OPT_BIND:\n return size();\n }\n\n return 0;\n }", "public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }", "public int getNumNodesSeenByMessage() {\r\n return numNodesSeenByMessage;\r\n }", "public int nodeCount() {\n\treturn nodeList.size();\n }", "public int numVehiclesInQueue() {\r\n\t\treturn vehiclesInQueue.size();\r\n\t}", "@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }", "public int getNextNodeCount() {\n return m_next.size();\n }", "public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }", "int count() {\n\t\tArrayList<Integer> checked = new ArrayList<Integer>();\r\n\t\tint count = 0;\r\n\t\tfor (int x = 0; x < idNode.length; x++) {// Order of N2\r\n\t\t\tint rootX = getRoot(x);\r\n\t\t\tif (!checked.contains(rootX)) {// Order of N Access of Array\r\n\r\n\t\t\t\tSystem.out.println(\"root x is \" + rootX);\r\n\t\t\t\tcount++;\r\n\t\t\t\tchecked.add(rootX);// N Access of Array\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "public int nodeCounter() {\n\n\t\tDLNode n = head;\n\t\tint nodeCounter = 0;\n\t\twhile (n != null) {\n\t\t\tn = n.next;\n\t\t\tnodeCounter++;\n\t\t}\n\t\treturn nodeCounter;\n\t}", "private int Nodes(BTNode n){\r\n if (n == null)\r\n return 0;\r\n else {\r\n return ( (n.left == null? 0 : Nodes(n.left)) + (n.right == null? 0 : Nodes(n.right)) + 1 );\r\n }\r\n }", "public static void main(String args[] ) throws Exception {\n Scanner s = new Scanner(System.in);\n int N = s.nextInt();\n\n int[] arr = new int[N];\n \n int relationNumber = s.nextInt();\n\n for (int i = 0; i < N; i++) {\n arr[i] = s.nextInt();\n }\n \n for(int j = 0; j < relationNumber; j++){\n relation.put(s.nextInt(), s.nextInt()); \n }\n \n queue.add(arr[0]);\n findRelationWithKey(arr[0]);\n System.out.println(counter);\n }", "public abstract int getNeighboursNumber(int index);", "int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}", "int getNrNodes() {\n\t\treturn adjList.size();\n\t}", "public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }", "public int countNodes(){\r\n \treturn count(root);\r\n }", "public int size(){\n return nodes.size();\n }", "public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }", "int getEnqueuedBlockRequestsNumber() {\n int count = 0;\n for (StdPeerMessage pm : sendQueue) {\n if (pm.type == StdPeerMessage.REQUEST) {\n count++;\n }\n }\n return count;\n }", "@Override\n public int size() {\n return this.numNodes;\n }", "int getNodeStatusListCount();", "int getQueueSize();", "public abstract int getNodeRowCount();", "public void incTotalOfQueueEntries() {\n totalOfQueueEntries++;\n }", "@Override\n\tpublic int getNodes() {\n\t\treturn model.getNodes();\n\t}", "@Override\n\tpublic int getNodeCount()\n\t{\n\t\treturn nodeList.size();\n\t}", "public String getNumberOfNodesEvaluated(){return Integer.toString(NumberOfVisitedNodes);}", "public int getNetworkNodesNumber() {\n\t\t\n\t\t//Return nodes size\n\t\treturn nodes.size();\n\t\t\n\t}", "public int size(){\r\n\t\treturn queue.size();\r\n\t}", "public void UpNumberOfVisitedNodes() {\n NumberOfVisitedNodes++;\n }", "int getNumEvents() {\n int cnt = eventCount;\n for (Entry entry : queue) {\n cnt += entry.eventCount;\n }\n return cnt;\n }", "public abstract int getQueueLength();", "private double getRngInQueue() {\n\t\tdouble rngLen = 0;\n\t\tfor(QueueEntry q : queue)\n\t\t\tif(q.getViewer().getUserId().equalsIgnoreCase(ViewerManager.getDystrackUserId()))\n\t\t\t\trngLen += q.getSong().getSongLength();\n\t\treturn rngLen / getQueueLength();\n\t}", "public int countNodes() {\n int leftCount = left == null ? 0 : left.countNodes();\n int rightCount = right == null ? 0 : right.countNodes();\n return 1 + leftCount + rightCount;\n }", "public int size()\n {\n return nodes.size();\n }", "@Override\n\tpublic int size() {\n\t\treturn nodeCount;\n\t}", "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 getRunnableCount() {\n return queue.size();\n }", "public static void showNodeQueue(AYQueue<Node> q)\n {\n for (int i = 0; i < q.size(); i++)\n {\n Node node = q.dequeue();\n System.out.format(\"Element #%d = [%s]%n\", i, node.getNodeID());\n q.enqueue(node);\n } //for\n\n }", "public final int size() {\n return nNodes;\n }", "int getNextCount(int vids);", "int node(final int index) {\r\n\t\tif (index < (size >> 1)) {\r\n\t\t\tint x = first;\r\n\t\t\tfor (long l = 0; l < index; l++) {\r\n\t\t\t\tx = getNextPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t} else {\r\n\t\t\tint x = last;\r\n\t\t\tfor (int i = size - 1; i > index; i--) {\r\n\t\t\t\tx = getPrevPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t}\r\n\t}", "int getNumBufferedBytes() {\n ChannelBuffer buf;\n int IOQueued;\n for (IOQueued = 0, buf = inQueueHead;\n buf != null; buf = buf.next) {\n IOQueued += buf.nextAdded - buf.nextRemoved;\n }\n return IOQueued;\n }", "public Integer getNumQue() {\n return numQue;\n }", "@Override\r\n\tpublic int getNumberOfNodes() {\n\t\treturn 0;\r\n\t}", "public int UnassignedCount() {\n \t\treturn jobqueue.size();\n \t}", "public int nodeSize()\n{\n\treturn getNodes().size();\n}", "public abstract int \t\tgetNodeRowCount(int nodeIndex);", "public Integer getClusterNum(Integer key)\n{\n return NPchains.get(key);\n}", "public int size() {\n return nodes.size();\n }", "static int displayN(Node node)\r\n {\r\n return node.neighbors.size();\r\n }", "int getBlockNumbersCount();", "public int size() {\n return _queue.size();\n }", "public int size() {\n if (first.p == null) return 0;\n int counter = 1;\n Node n = first;\n while (!n.next.equals(first) && counter != 0) {\n counter++;\n n = n.next;\n }\n return counter;\n }", "public int getNodeCount() {\n return dataTree.getNodeCount();\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 static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = null;\n while (!(line = br.readLine()).equals(\"#\")){\n String[] l = line.split(\" \");\n register(Integer.parseInt(l[1]),Integer.parseInt(l[2]));\n }\n\n int K = Integer.parseInt(br.readLine());\n int size = K * s.size();\n pq = new PriorityQueue<pair<Long, Integer>>(size, new Comparator<pair<Long, Integer>>() {\n @Override\n public int compare(pair<Long, Integer> o1, pair<Long, Integer> o2) {\n return (int)(o1.x- o2.x);\n }\n });\n// System.out.println(K);\n List<Long> list = new ArrayList<Long>();\n for(pair<Integer, Integer> p: s){\n long idx = p.y;\n long limit = (K+1)* (p.y);\n// System.out.println(idx+\"-\"+K);\n while(idx < limit){\n// System.out.println(idx+\"--\"+p.x);\n pq.add(new pair<Long, Integer>(idx, p.x));\n idx += p.y;\n }\n }\n for(int ix = K; ix>0; ix--){\n System.out.println(pq.poll().y);\n }\n // print K times. each time may have differenet queue numbers\n\n// for(pair<Integer, Integer> p: pq){\n// System.out.println(p.toString());\n// }\n }", "public int size() {\n return queue.size();\n }", "@Override\n public int getNumberOfNodes() {\n int numNodes = 0;\n\n if (!isEmpty()) {\n numNodes = root.getNumberOfNodes();\n }\n\n return numNodes;\n }", "public int size() {\n\t\treturn nodes.size();\n\t}" ]
[ "0.6707964", "0.6602471", "0.6602471", "0.655875", "0.655875", "0.651929", "0.6504995", "0.6240406", "0.6231309", "0.6186312", "0.6175453", "0.61637706", "0.61476177", "0.6134408", "0.61095405", "0.61044025", "0.6102116", "0.6087748", "0.60821366", "0.60606605", "0.6053187", "0.6046938", "0.6043621", "0.60269547", "0.60123676", "0.5978074", "0.59752756", "0.59566844", "0.5949292", "0.59371465", "0.593387", "0.59103364", "0.59078556", "0.59011674", "0.58877397", "0.58861744", "0.58839715", "0.5874944", "0.5860177", "0.5857961", "0.5842035", "0.5842007", "0.5836014", "0.58291423", "0.58283406", "0.57964385", "0.57877785", "0.5785369", "0.576263", "0.5759601", "0.57462347", "0.5743981", "0.57418925", "0.5741796", "0.57412803", "0.5738284", "0.57248527", "0.57235634", "0.5715154", "0.5700368", "0.57003236", "0.56947273", "0.5684809", "0.5676023", "0.5673648", "0.56629103", "0.5661254", "0.565757", "0.5656325", "0.56562436", "0.56543803", "0.56501526", "0.56415814", "0.5606655", "0.5603386", "0.56029963", "0.5601512", "0.5601509", "0.5599569", "0.55753756", "0.55697554", "0.5557697", "0.5556891", "0.5555527", "0.5555441", "0.555322", "0.5551963", "0.55501646", "0.5549341", "0.55471456", "0.55463773", "0.55404776", "0.5538363", "0.55175924", "0.55138075", "0.5512539", "0.5496567", "0.54861563", "0.54836965", "0.5478762", "0.5476608" ]
0.0
-1
get nodes number in a tree recursive
public static int getNumRec(TreeNode node) { if (node == null) return 0; return getNumRec(node.left) + getNumRec(node.right) + 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int Nodes(BTNode n){\r\n if (n == null)\r\n return 0;\r\n else {\r\n return ( (n.left == null? 0 : Nodes(n.left)) + (n.right == null? 0 : Nodes(n.right)) + 1 );\r\n }\r\n }", "public int nodesInTree() \n { \n return nodesInTree(header.rightChild); \n }", "@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}", "public int my_node_count();", "public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }", "@Override\r\n\tpublic int getNumberOfNodes() {\n\t\tint leftNumber=0;\r\n\t\tint rightNumber=0;\r\n\t\tif(left!=null){\r\n\t\t\tleftNumber=left.getNumberOfNodes();\r\n\t\t}\r\n\t\tif(right!=null)\r\n\t\t\trightNumber=right.getNumberOfNodes();\r\n\t\treturn leftNumber+rightNumber+1;\r\n\t}", "private int getVariablesNumberInTree() {\n\t\tList<Node> l = getFirstLevelSubnodes();\n\n\t\treturn l != null ? l.size() : 0;\n\t}", "int nodeCount();", "int getNodeCount();", "int getNodeCount();", "public int my_leaf_count();", "public int countNodes(){\r\n \treturn count(root);\r\n }", "public int countNodes()\r\n {\r\n return countNodes(root);\r\n }", "public int countNodes()\n {\n return countNodes(root);\n }", "public int countNodes()\n {\n return countNodes(root);\n }", "@Override\n public int getNumberOfNodes() {\n int numNodes = 0;\n\n if (!isEmpty()) {\n numNodes = root.getNumberOfNodes();\n }\n\n return numNodes;\n }", "public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}", "private int numberOfNodes(Node root){\n if(root==null){\n return 0;\n }\n return 1 + numberOfNodes(root.getLeft()) + numberOfNodes(root.getRight());\n }", "public static int getNum(TreeNode root) {\n if (root == null) {\n return 0;\n }\n int count = 0;\n Queue<TreeNode> queue = new LinkedList<>();\n queue.offer(root);\n while (!queue.isEmpty()) {\n TreeNode node = queue.poll();\n if (node.left != null) queue.offer(node.left);\n if (node.right != null) queue.offer(node.right);\n count++;\n }\n return count;\n }", "int getNodesCount();", "int getNodesCount();", "public int totalNodes(Node<T> n)\n\t{\n\t\tif (n == null) \n return 0; \n else \n { \n \t\n int lTotal = totalNodes(n.left); \n int rTotal = totalNodes(n.right); \n \n return (lTotal + rTotal + 1); \n \n \n \n } \n\t}", "public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }", "private int countNodes(Node n) {\n int count = 1;\n if (n==null) return 0;\n\n for (int i = 0; i < n.getSubtreesSize(); i++) {\n count = count + countNodes(n.getSubtree(i));\n }\n\n return count;\n }", "public int numberOfNodes() {\r\n\t\tBinaryNode<AnyType> t = root;\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfNodes(root.left) + numberOfNodes(root.right) + 1;\r\n\t}", "public int numberOfNodes() {\n return numberOfNodes(root);\n }", "public int countNodes() {\n int leftCount = left == null ? 0 : left.countNodes();\n int rightCount = right == null ? 0 : right.countNodes();\n return 1 + leftCount + rightCount;\n }", "private static int countNodes(TreeNode node) {\n if (node == null) {\n // Tree is empty, so it contains no nodes.\n return 0;\n } else {\n // Add up the root node and the nodes in its two subtrees.\n int leftCount = countNodes(node.left);\n int rightCount = countNodes(node.right);\n return 1 + leftCount + rightCount;\n }\n }", "public int countNodes(Node N) {\n if(N != null){\n int left = countNodes(N.getLeft());\n int right = countNodes(N.getRight());\n return left+right+1;\n } else {\n return 0;\n }\n }", "private int countNodes(BTNode r)\r\n {\r\n if (r == null)\r\n return 0;\r\n else\r\n {\r\n int l = 1;\r\n l += countNodes(r.getLeft());\r\n l += countNodes(r.getRight());\r\n return l;\r\n }\r\n }", "public abstract int getNumChildren();", "int totalNumberOfNodes();", "public int getNodeCount() {\n return dataTree.getNodeCount();\n }", "private int nodeCount(BinaryNode<AnyType> t)\r\n\t{\r\n\t\tif(t==null)\r\n\t\t\treturn 0;\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 1+nodeCount(t.left)+nodeCount(t.right);\r\n\t\t}\r\n\t}", "private int jumlahNode(Node node) {\n if (node == null) {\n return 0;\n } else {\n return 1 + jumlahNode(node.pKiri) + jumlahNode(node.pKanan);\n }\n }", "private int countNodes(BSTNode r) {\r\n \r\n // if the node is null, return 0\r\n if (r == null) {\r\n \r\n return 0;\r\n }\r\n \r\n // if node is NOT null, execute\r\n else {\r\n \r\n // initialize count to 1\r\n int countN = 1;\r\n \r\n // increment count for each child node\r\n countN += countNodes(r.getLeft());\r\n countN += countNodes(r.getRight());\r\n \r\n // return the count\r\n return countN;\r\n }\r\n }", "public int numNodes() {\r\n\t\treturn numNodes(root);\r\n\t}", "int NoOfNodes() {\r\n return noOfNodes;\r\n }", "int getChildCount();", "public int getNumNodes() {\n\t\treturn nodes.size();\n\t}", "public int nodeCounter() {\n\n\t\tDLNode n = head;\n\t\tint nodeCounter = 0;\n\t\twhile (n != null) {\n\t\t\tn = n.next;\n\t\t\tnodeCounter++;\n\t\t}\n\t\treturn nodeCounter;\n\t}", "private int countNodes(TreeNode root) {\n int count = 1;\n if (root.left != null) {\n count += countNodes(root.left);\n }\n if (root.right != null) {\n count += countNodes(root.right);\n }\n return count;\n }", "int getNumberOfChildren(int nodeID){\n check(nodeID);\n return nodes_[nodeID].size_;\n }", "public int getNodeCount() {\n return nodeCount;\n }", "int nbNode() {\n switch (type) {\n\n case EDGE:\n case PATH:\n case EVAL:\n if (edge.getEdgeVariable() == null) {\n return edge.nbNode();\n } else {\n return edge.nbNode() + 1;\n }\n\n case OPT_BIND:\n return size();\n }\n\n return 0;\n }", "public int externalNode(MyTreeNode n){\n if (n == null){\r\n return 0;\r\n }\r\n else if(n.leftChild == null & n.rightChild == null){ //no children, external node\r\n return 1;\r\n }\r\n\r\n else{\r\n return externalNode(n.leftChild) + externalNode(n.rightChild);\r\n }\r\n }", "private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}", "public int getChildCount();", "@Override\r\n\tpublic int getNumberOfDescendants(Node<T> node) {\r\n\t\tif (node.getChildren() != null) {// Si tiene hijos\r\n\t\t\treturn (node.getChildren()).size();// El tamaņo de la lista de hijos\r\n\t\t}\r\n\t\treturn 0; // Si no tiene entonces 0\r\n\t}", "public int nodesCount() {\n return nodes.size();\n }", "public static int numTrees(int n) {\n return helper(1,n);\n }", "public static int getNodeDepth(BinaryTreeNode node) {\n int depth = 0;\n while (node != null) {\n node = node.parent;\n depth++;\n }\n return depth;\n }", "int sizeOf(int node){\n\t\tint counter =1;\r\n\t\tfor (int i=0;i<idNode.length;i++){ //Count all node with the same parent\r\n\t\t\tif (idNode[i]==node){\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn counter;\r\n\t}", "public int nodeCount() {\n return this.root.nodeCount();\n }", "public int numTrees () { throw new RuntimeException(); }", "public int numLeaves() {\n return numLeaves(root);//invokes helper method\n }", "public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }", "public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }", "public int LeafNodeNum() {\n\t\t\n\t\tif(left_ptr == null && right_ptr == null) {\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\treturn left_ptr.LeafNodeNum() + right_ptr.LeafNodeNum();\n\t}", "public int getNodeCount() {\n return node_.size();\n }", "int numNodes() {\n\t\treturn num_nodes;\n\t}", "public int countLeaves(){\n return countLeaves(root);\n }", "public static int Count(Node node){\n\t\tif (node==null) \n\t\t\treturn 0;\n\t\t\n return Count(node.left) + 1 + Count(node.right);\n \n\t}", "public int getNodeCount() {\n if (nodeBuilder_ == null) {\n return node_.size();\n } else {\n return nodeBuilder_.getCount();\n }\n }", "static int nodeCount(Node node) {\n\t\tNode current = node;\n\t\tif(current == null) {\n\t\t\treturn 0;\n\t\t} else if(current.next == null) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 1 + nodeCount(current.next);\n\t\t}\n\t}", "private int countLeafs(TreeNode temp) {\n\t\tif (temp == null)\n\t\t\treturn 0;\n\t\tif (temp.left == null && temp.right == null)\n\t\t\treturn 1;\n\t\treturn countLeafs(temp.left) + countLeafs(temp.right);\n\t}", "protected int numNodes() {\n\t\treturn nodes.size();\n\t}", "public int depth(){\n if(root!=null){ // มี node ใน tree\n return height(root);\n }\n else {return -1;}\n }", "public int depth ( BinTree tree){\n\t\tint x = 1; \n\t\twhile( tree.left != null){\n\t\t\ttree= tree.left;\n\t\t\tx++;\n\t\t}\n\t\treturn x;\n\t}", "public int countNodes(TreeNode root) {\n int leftHeight = getLeftHeight(root);\n int rightHeight = getRightHeight(root);\n if (leftHeight == rightHeight) {\n return (1 << leftHeight) - 1;\n }\n return countNodes(root.left) + countNodes(root.right) + 1;\n }", "public int size(){\n if(root!=null){ // มี node ใน tree\n return size(root);\n }\n else{\n return 0; // tree เปล่า size 0\n }\n }", "public static int countNodes() {\n\t\treturn count_nodes;\n\t}", "public abstract int getNodeRowCount();", "public int getSize(){\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE NUMBER OF NODES IN THE TREE AND STORE THE VALUE IN CLASS VARIABLE \"size\"\n * RETURN THE \"size\" VALUE\n *\n * HINT: THE NMBER OF NODES CAN BE UPDATED IN THE \"size\" VARIABLE EVERY TIME A NODE IS INSERTED OR DELETED FROM THE TREE.\n */\n\n return size;\n }", "private int getNumberOfNodesRec(int contador, Node<T> nodo) {\r\n\t\tcontador++;// Si este metodo entra es porque entro a un nodo por lo que\r\n\t\t\t\t\t// se suma 1\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcontador = getNumberOfNodesRec(contador, lista.get(i));// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn contador;\r\n\t}", "public int numNodes() {\n\t\treturn numNodes;\n\t}", "public int countNodes(TreeNode root) {\n if (root == null) return 0;\n TreeNode l = root, r = root;\n int h = 0;\n while (l != null && r != null) {\n l = l.left; r = r.right;\n ++h;\n }\n if (l == null && r == null) return (1 << h) - 1; // # of nodes of a full binary tree is 2^h-1\n else return 1 + countNodes(root.left) + countNodes(root.right);\n }", "public static int size(Node root){\r\n int count = 0;\r\n for(int i=0; i<root.children.size(); i++){\r\n Node child = root.children.get(i);\r\n count += size(child);\r\n }\r\n return count + 1;\r\n }", "@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}", "public int getNodesCount() {\n if (nodesBuilder_ == null) {\n return nodes_.size();\n } else {\n return nodesBuilder_.getCount();\n }\n }", "public int numNodes(String nodeType)\r\n {\r\n\treturn ntMap.get(nodeType).numNodes();\r\n }", "public static int numberOfNodes() { return current_id; }", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "public static int depth(Node root, Node node){\n\n if(node!=root){ // node มีตัวตน\n return 1 + depth (root,node.parent) ; // depth = length(path{node->root})\n\n }\n else {\n return 0;\n }\n\n }", "public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }", "public Integer countBST() {\n\n if (root == null) return 0;\n try {\n Integer x = (Integer)root.element;\n } catch (NumberFormatException e) {\n System.out.println(\"count BST works only with comparable values, AKA Integers.\" + e);\n return 0;\n }\n return countBSTRecur(root);\n }", "int getParentIdCount();", "public int treeHigh(TreeNode node) \n { \n if (node == null) \n return 0; \n else \n { \n /* compute the depth of each subtree */\n int lDepth = treeHigh(node.left); \n int rDepth = treeHigh(node.right); \n \n /* use the larger one */\n if (lDepth > rDepth) \n return (lDepth + 1); \n else \n return (rDepth + 1); \n } \n }", "public static int nodeDepth(PhyloTreeNode node) {\n if(node == null) {\n return -1;\n }\n else if(node.getParent() == null) {\n return 0;\n }\n else{\n return 1 + nodeDepth(node.getParent());\n }\n }", "public abstract int \t\tgetNodeRowCount(int nodeIndex);", "int depth(BTNode node) {\n int d = 0;\n while (node != root) {\n node = node.parent;\n d++;\n }\n return d;\n }", "int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}", "public int countChildren(Nodo t) {\r\n int count = 0;\r\n if(t == null)\r\n return 0;\r\n if(t.getLeft() != null)\r\n count++;\r\n count += countChildren(t.getLeft());\r\n if(t.getRight() != null)\r\n count++;\r\n count += countChildren(t.getRight());\r\n return count;\r\n }", "public static void main(String args[]) \r\n {\n BinaryTree tree = new BinaryTree();\r\n tree.root = new Node(20);\r\n tree.root.left = new Node(8);\r\n tree.root.right = new Node(22);\r\n tree.root.left.left = new Node(4);\r\n tree.root.left.right = new Node(12);\r\n tree.root.left.right.left = new Node(10);\r\n tree.root.left.right.right = new Node(14);\r\n \r\n System.out.println(\"No. of nodes in the tree is : \"+ nodeCount(tree.root));\r\n \r\n }", "private int getLeafCardinal(TreeNode treeNode) {\n if(treeNode.isLeaf())\n return 1;\n int c = 0;\n for(TreeNode t: treeNode.getChildren()){\n c += getLeafCardinal(t);\n }\n return c;\n }", "public int size() {\n return tree.count();\n }", "public int totalNumNodes () { throw new RuntimeException(); }", "public int numTrees(int n) {\n long now = 1;\n for (int i = 0; i < n; i++) {\n now *= 2*n-i;\n now /= i+1;\n }\n return (int)(now/(n+1));\n }", "public static int getNodeInt(Node curr) {\r\n\t\treturn curr.num;\r\n\t}", "int count() {\n\t\tArrayList<Integer> checked = new ArrayList<Integer>();\r\n\t\tint count = 0;\r\n\t\tfor (int x = 0; x < idNode.length; x++) {// Order of N2\r\n\t\t\tint rootX = getRoot(x);\r\n\t\t\tif (!checked.contains(rootX)) {// Order of N Access of Array\r\n\r\n\t\t\t\tSystem.out.println(\"root x is \" + rootX);\r\n\t\t\t\tcount++;\r\n\t\t\t\tchecked.add(rootX);// N Access of Array\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}" ]
[ "0.7743704", "0.76785696", "0.7578225", "0.7535212", "0.75105566", "0.7448661", "0.7425798", "0.73716795", "0.7345905", "0.7345905", "0.73430854", "0.7314081", "0.7270369", "0.7200913", "0.7200913", "0.71916896", "0.7179376", "0.71721584", "0.7157926", "0.71414566", "0.71414566", "0.7130611", "0.71103585", "0.7108003", "0.70942795", "0.7054785", "0.70493954", "0.7038526", "0.7023938", "0.7022071", "0.7020391", "0.6999167", "0.6948785", "0.6894785", "0.68929285", "0.6883805", "0.6869997", "0.68177974", "0.6815226", "0.68036675", "0.6795035", "0.6791089", "0.67848366", "0.67673016", "0.6765614", "0.6764054", "0.6759675", "0.6755461", "0.6750568", "0.6742834", "0.6740021", "0.6738559", "0.6734331", "0.67236876", "0.6721015", "0.6719738", "0.6708361", "0.6703311", "0.66943717", "0.6686399", "0.668071", "0.66698796", "0.6665683", "0.66427267", "0.6632081", "0.6622997", "0.6620643", "0.66103864", "0.65995955", "0.6596273", "0.65857667", "0.65706825", "0.655977", "0.65509224", "0.6547679", "0.651729", "0.6512169", "0.65098906", "0.6486843", "0.6483187", "0.6482476", "0.6480602", "0.6477709", "0.64669263", "0.6459481", "0.64494234", "0.64474505", "0.6444535", "0.64432603", "0.6433728", "0.6433686", "0.6422396", "0.64208215", "0.64179707", "0.6416027", "0.64126825", "0.6401207", "0.6395338", "0.63946795", "0.6391047" ]
0.71438724
19
/ draw a custom feedback figure when dragging the unit
protected void showChangeBoundsFeedback(ChangeBoundsRequest request) { /* * for resize */ if (!(RequestConstants.REQ_DROP.equals(request.getType()) || REQ_MOVE.equals(request .getType()))) { if (feedback == null) { feedback = createDragSourceFeedbackFigure(); } } else { /* * for moving */ if (feedback == null) { GraphicalEditPart host = (GraphicalEditPart) getHost(); DeployDiagramEditPart ddep = GMFUtils.getDeployDiagramEditPart(getHost()); feedback = new DragFeedbackFigure(host, false); addFeedback(feedback); ddep.getMoveFeedbackMap().put(getHost(), feedback); if (ddep.getPrimaryMoveFeedbackFigure() == null) { Point pt = request.getLocation().getCopy(); pt.translate(request.getMoveDelta().getNegated()); host.getFigure().translateToRelative(pt); if (host.getFigure().getBounds().contains(pt)) { ddep.setPrimaryMoveFeedbackFigure((DragFeedbackFigure) feedback); } } } if (feedback instanceof DragFeedbackFigure) { ((DragFeedbackFigure) feedback).setPosition(request.getLocation()); } } // for both PrecisionRectangle rect = new PrecisionRectangle(getInitialFeedbackBounds().getCopy()); getHostFigure().translateToAbsolute(rect); rect.translate(request.getMoveDelta()); rect.resize(request.getSizeDelta()); feedback.translateToRelative(rect); feedback.setBounds(rect); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void drawFeedback(EditorInterface i, GraphicsContext gc) {\n\t\ti.getBoard().draw(gc);\r\n\t\tif (action.contentEquals(\"drag\")) {\r\n\t\t\tgc.strokeOval(ellipse.getLeft(), ellipse.getTop(), ellipse.getRight() - ellipse.getLeft(), ellipse.getBottom() - ellipse.getTop());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "protected void userDrawing(MouseEvent e){\n\t}", "public void mouseDragged(MouseEvent e) \n {\n recordLabel(e.getPoint()); \n }", "private void dragPaint() {\n\n\t\t//buffer die image ooit\n\t\tinvalidate();\n\t\trepaint();\n\t}", "private void showFeedbackFig(ChangeBoundsRequest req) {\r\n\t\tRSEEditPart insertionPart = getInsertionPart(req);\r\n\t\tList<?> epChildren = getChildren();\r\n\t\tint insertionIndex = epChildren.indexOf(insertionPart);\r\n\t\t\r\n\t\t// only show feedback for movable items\r\n\t\tif (!(req.getEditParts().get(0) instanceof TitledArtifactEditPart)) return;\r\n\t\t\r\n\t\t// If the selected part would stay in the same location\r\n\t\t// once the mouse is released, don't show feedback\r\n\t\tif(req.getEditParts().size()==1) {\r\n\t\t\tObject movingPart = req.getEditParts().get(0);\r\n\r\n\t\t\t// part not moved far enough left to reorder with child left of it\r\n\t\t\tif(movingPart.equals(insertionPart)) return; \r\n\r\n\t\t\t// part not moved far enough right to reorder with the child right of it\r\n\t\t\tint indexOfSel = epChildren.indexOf(movingPart);\r\n\t\t\tif(indexOfSel!=-1 && indexOfSel==insertionIndex-1) return;\r\n\r\n\t\t\t// trying to move the part to the last index, but it's already there\r\n\t\t\tif(epChildren.size()>0 &&\r\n\t\t\t\t\tinsertionIndex == -1 &&\r\n\t\t\t\t\tepChildren.get(epChildren.size()-1).equals(movingPart)) return;\r\n\t\t}\r\n\r\n\t\t// clear any feedback figures already in the feedback layer before\r\n\t\t// adding another feedback fig\r\n\t\tList<Object> feedbackFigs = new ArrayList<Object>();\r\n\t\tfor(Object child : getLayer(LayerConstants.SCALED_FEEDBACK_LAYER).getChildren())\r\n\t\t\tif(child instanceof FeedbackFigure) feedbackFigs.add(child);\r\n\t\tfor(Object fig : feedbackFigs)\r\n\t\t\tgetLayer(LayerConstants.SCALED_FEEDBACK_LAYER).remove((IFigure)fig);\r\n\r\n\t\tFeedbackFigure feedbackFig = getLineFeedback();\r\n\t\tif (this instanceof TitledArtifactEditPart\r\n\t\t\t\t&& getLayerChild(req.getLocation(), getChildren()) == null\r\n\t\t\t\t&& !(this instanceof CompositeLayerEditPart) \r\n\t\t\t\t&& ClosedContainerDPolicy.isShowingChildren(this.getArtFrag())\r\n\t\t\t\t&& children!=null && !children.isEmpty()) {\r\n\t\t\t// move will create a new vertical layer, so indicate that\r\n\t\t\r\n\t\t\t// make the feedback fig half as tall as this containing\r\n\t\t\t// part's fig and center it vertically within this\r\n\t\t\tint feedbackHeight = getFigure().getSize().height/2;\r\n\t\t\tfeedbackFig.setSize(10, feedbackHeight);\r\n\t\t\tint feedbackX = -1;\r\n\t\t\tint feedbackY = getFigure().getBounds().getTop().y+feedbackHeight/2;\r\n\t\t\t// if we are root the container figure is too big so we need to calc pos differently\r\n\t\t\tif (this instanceof StrataRootEditPart)\r\n\t\t\t\tfeedbackY = getFigure().getBounds().getTop().y +10;\r\n\t\t\t\r\n\t\t\t// new vertical layer could be a left vertical layer or a right vertical layer\r\n\t\t\tRectangle childBounds = Rectangle.SINGLETON;\r\n\t\t\tLayerEditPart child = (LayerEditPart) children.get(0);\r\n\t\t\tchildBounds.setBounds(((LayerEditPart) child ).getFigure().getBounds());\r\n\t\t\t((LayerEditPart) child).getFigure().translateToAbsolute(childBounds);\r\n\t\t\tPoint dropPoint = req.getLocation();\r\n\t\t\tif (dropPoint.x < childBounds.x && !LayerPositionedDPolicy.containsVertLayer(getArtFrag(), false /*on right*/)) // is on left\r\n\t\t\t\tfeedbackX = getFigure().getBounds().getTopLeft().x;\r\n\t\t\telse if (!LayerPositionedDPolicy.containsVertLayer(getArtFrag(), true /*on right*/) && dropPoint.x > childBounds.x +childBounds.width) {// is on right\r\n\t\t\t\tPoint topRight = getFigure().getBounds().getTopRight();\r\n\t\t\t\t// if we are root the container figure is too big so we need to calc pos differently\r\n\t\t\t\tif (this instanceof StrataRootEditPart) {\r\n\t\t\t\t\ttopRight = ((IFigure) ((AbstractGraphicalEditPart) getChildren().get(0)).getFigure()).getBounds().getTopRight();\r\n\t\t\t\t\tfeedbackX = topRight.x+3;\r\n\t\t\t\t} else\r\n\t\t\t\t\tfeedbackX = topRight.x-feedbackFig.getSize().width-3;\r\n\t\t\t}\r\n\t\t\tif (feedbackX == -1) return;\r\n\t\t\tfeedbackFig.setLocation(new Point(feedbackX, feedbackY));\r\n\r\n\t\t\tfeedbackFig.setBackgroundColor(getFigure().getBackgroundColor());\r\n\t\t\tgetLayer(LayerConstants.SCALED_FEEDBACK_LAYER).add(feedbackFig);\r\n\t\t} else {\r\n\t\t\t// do not show feedback for composite layers since we dont add to them\r\n\t\t\t// unless it's a vertical layout (move will create a new horizontal layer)\r\n\t\t\tif (this instanceof CompositeLayerEditPart &&\r\n\t\t\t\t\tgetFigure().getLayoutManager() instanceof FlowLayout &&\r\n\t\t\t\t\t((FlowLayout)getFigure().getLayoutManager()).isHorizontal()) \r\n\t\t\t\treturn;\r\n\t\t\t// be careful when adding feedback to a figure that may not have the\r\n\t\t\t// right index, just add to end\r\n\t\t\ttry {\r\n\t\t\t\tif (this instanceof TitledArtifactEditPart && getChildren().size() > 0) {\r\n\t\t\t\t\tLayerEditPart lep = getLayerChild(req.getLocation(), getChildren());\r\n\t\t\t\t\tlepFig = lep.getFigure().getParent();\r\n\t\t\t\t\tlepFig.add(feedbackFig, insertionIndex);\r\n\t\t\t\t} else\r\n\t\t\t\t\tgetFigure().add(feedbackFig, insertionIndex);\r\n\t\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\t\tgetFigure().add(feedbackFig);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n public void mouseDragged(MouseEvent e) {\n Rectangle r = c.getBounds();\r\n c.setBounds(e.getX() + (int) r.getX(), e.getY() + (int) r.getY(),\r\n c.getPreferredSize().width, c.getPreferredSize().height);\r\n Component p = c.getParent();\r\n if (p instanceof JComponent) {\r\n ((JComponent) p).paintImmediately(0, 0, c.getWidth(), c.getHeight());\r\n } else {\r\n p.repaint();\r\n }\r\n if (c instanceof ToggleImage) {\r\n if (this.tip == null) {\r\n this.tip = new JWindow();\r\n this.tip.getContentPane().add(this.pos);\r\n this.tip.pack();\r\n }\r\n ((JComponent) c).setToolTipText(Integer.toString((int) c.getBounds().getX()) + \",\"\r\n + Integer.toString((int) c.getBounds().getY()));\r\n this.pos.setText(Integer\r\n .toString((int) (c.getBounds().x + ((ToggleImage) c).getImageOffset().getX())) + \",\"\r\n + Integer\r\n .toString((int) (c.getBounds().getY()\r\n + ((ToggleImage) c).getImageOffset().getY())));\r\n this.tip.pack();\r\n this.tip.setVisible(true);\r\n this.pos.paintImmediately(0, 0, this.tip.getWidth(), this.tip.getHeight());\r\n }\r\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n switch (GlobalVariable.dragState) {\n case init:\n Point abPoint = EventUtil.getAbsolutePointBy(e);\n // the component that the mouse at (as it's not e.getComponent if you move far away.\n Component componentOfMouse = e.getComponent().getParent().getComponentAt(abPoint);\n if (componentOfMouse instanceof BaseUnitUI) {\n if (!(EventUtil.isPointInComponents(e, \"In\"))\n && !(EventUtil.isPointInComponents(e, \"Out\"))) {\n // You are attempt to relocate the Unit\n e.getComponent().setLocation(abPoint);\n GlobalVariable.dragState = GlobalVariable.DragState.forRelocate;\n } else {\n // You drag a In or Out, so it is to Link Unit\n GlobalVariable.dragState = GlobalVariable.DragState.forLink;\n // get the line you create during mousePress and update its endPoint\n Line line = GlobalVariable.lastLine;\n if (line != null) {\n line.updateEndPoint(abPoint);\n GlobalVariable.workPanel.updateUI();\n }\n }\n }\n break;\n case forRelocate:\n // if it is called during dragging label around\n Point newLoc = EventUtil.getAbsolutePointBy(e);\n e.getComponent().setLocation(newLoc);\n // get the unit which this UI belong to.\n int unitIndex = GlobalVariable.componentArray.indexOf(e.getComponent());\n SuperUnit unit = GlobalVariable.unitArray.get(unitIndex);\n // update the line linked with the unit you want to relocate.\n Line[] lines = unit.getOutLine();\n for (int iLine = 0; iLine < lines.length; iLine ++) {\n if (lines[iLine] != null) {\n // get the label center location\n Point origin = unit.unitUI.getComponent(unit.getInLines().length).getLocation();\n origin = EventUtil.transformToSuperLoca(origin, unit.unitUI);\n origin.x += GlobalVariable.actionWidth / 2;\n lines[iLine].updateStartPoint(origin);\n }\n }\n for (int iIn = 0; iIn < unit.getInLines().length; iIn ++) {\n if (unit.getInLines()[iIn] != null) {\n // get the label center location\n Point origin = unit.unitUI.getComponent(iIn).getLocation();\n origin = EventUtil.transformToSuperLoca(origin, unit.unitUI);\n origin.x += GlobalVariable.actionWidth / 2;\n unit.getInLines()[iIn].updateEndPoint(origin);\n }\n }\n break;\n case forLink:\n Point endPoint = EventUtil.getAbsolutePointBy(e);\n Line line = GlobalVariable.lastLine;\n if (line != null) {\n line.updateEndPoint(endPoint);\n GlobalVariable.workPanel.updateUI();\n }\n break;\n }\n }", "public PaintPanel()\r\n {\r\n // handle frame mouse motion event\r\n addMouseMotionListener(\r\n new MouseMotionAdapter()\r\n {\r\n // store drag points and repaint\r\n @Override\r\n public void mouseDragged(MouseEvent event)\r\n {\r\n points.add(event.getPoint());\r\n repaint(); // repaint JFrame\r\n }\r\n }\r\n );\r\n }", "@Override\r\n public void mouseDragged(MouseEvent event)\r\n {\r\n points.add(event.getPoint());\r\n repaint(); // repaint JFrame\r\n }", "protected IFigure createDragSourceFeedbackFigure() {\n\t\tIFigure figure = createFigure((GraphicalEditPart) getHost(), null);\n\n\t\tfigure.setBounds(getInitialFeedbackBounds());\n\t\taddFeedback(figure);\n\t\treturn figure;\n\t}", "protected IFigure getCustomFeedbackFigure(Object modelPart) {\n\t\tIFigure figure;\n\n\t\t// Based on the modelPart, we could create another figure that is shown\n\t\t// during drag\n\t\tfigure = new RectangleFigure();\n\t\t((RectangleFigure) figure).setXOR(true);\n\t\t((RectangleFigure) figure).setFill(true);\n\t\tfigure.setBackgroundColor(background);\n\t\tfigure.setForegroundColor(ColorConstants.white);\n\n\t\treturn figure;\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\tl1.setText(\"You dragged the mouse\");\r\n\t}", "public void mouseDragged (MouseEvent e) {}", "public void mouseDragged(MouseEvent event) {\n painterJPanelMouseDragged(event);\n }", "public void mouseDragged(MouseEvent e) {}", "public void mouseDragged(MouseEvent e){}", "@Override\n \tpublic void mouseDragged(MouseEvent e) {\n \t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n public void mouseDragged(MouseEvent arg0) {\n \n }", "public void mouseDragged(MouseEvent e){\n if(e.getSource() == cmUI) {\n // finish the creation\n cmModel.stopCreating();\n\n // if we are sampling the model\n // move the sample color to pass it to another color\n if (cmModel.sample != null) {\n cmModel.sample.setPos(e.getPoint());\n if (cmModel.sampledItem != null) {\n // when the sample enters/ leave the sampled item\n // set the different display mode\n if (cmModel.sampledItem.isSampling() && !cmModel.sampledItem.contains(cmModel.sample)) {\n cmModel.sampledItem.setSample(false, null);\n repaint(cmModel.sampledItem, cmModel.sample);\n } else if (!cmModel.sampledItem.isSampling() && cmModel.sampledItem.contains(cmModel.sample)) {\n cmModel.sampledItem.setSample(true, null);\n repaint(cmModel.sampledItem, cmModel.sample);\n } else if (cmModel.sampledItem.isSampling()) {\n repaint(cmModel.sampledItem, cmModel.sample);\n } else {\n repaint(cmModel.sample);\n }\n }\n }\n\n // save the trace points\n if(isTracing){\n mouseTrace.lineTo(e.getX(),e.getY());\n }\n }\n \n //click event comes from the color picker\n else if(e.getSource() == cpUI) {\n\t\t\tmouseClickedPoint = mouseDraggedPoint;\n\t\t\tmouseDraggedPoint = e.getPoint();\n\t\t\t\n\t\t\t//if mouse is clicked in the white handle change the hue\n\t\t\tif(mouseClickedInCircle) {\n\t\t\t\t//Hue changes faster with left click\n\t\t\t\tif(SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\tcalculateHue(1);\n\t\t\t\t}\n\t\t\t\t//Hue changes slowly with right click\n\t\t\t\telse if(SwingUtilities.isRightMouseButton(e)){\n\t\t\t\t\tcalculateHue(2);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//if mouse is clicked anywhere except the handle\n\t\t\t//and the circles surrounding the main color picker\n\t\t\t//change saturation and brightness\n\t\t\telse if(mouseClickedInSwipePanel) {\n\t\t\t\t//Saturation and Brightness change faster with left click\n\t\t\t\tif(SwingUtilities.isLeftMouseButton(e)) {\n\t\t\t\t\tcalculateSandB(1);\n\t\t\t\t}\n\t\t\t\t//Saturation and Brightness change slowly with right click\n\t\t\t\telse if(SwingUtilities.isRightMouseButton(e)) {\n\t\t\t\t\tcalculateSandB(2);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Add a trail circle (circles that follow the mosue when you press it)\n\t\t\t\t//every five times this action listener is called\n\t\t\t\tif(count % 5 == 0) {\n\t\t\t\t\tcpUI.getCircleTrail().add(mouseDraggedPoint);\n\t\t\t\t\tif(cpUI.getCircleTrail().size() == 10) {\n\t\t\t\t\t\tcpUI.getCircleTrail().remove(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcount++;\n\t\t\t}\n\n\t\t\tcpUI.repaint();\n\t\t}\n\n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t\t\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\n\tpublic void drawFeedback(EditorInterface i, GraphicsContext gc) {\n\t\ti.getBoard().draw(gc);\n\t\ti.getSelection().drawFeedback(gc);\n\t}", "@Override\n public void mouseDragged(final MouseEvent me){\n\n setSkipped(false);\n \tif(om.equals(\"graphic_associate_interaction\") || om.equals(\"graphic_order_interaction\") || om.equals(\"gap_match_interaction\"))\n \t{\n\t \tif(start != null || mov != null)\n\t \t\tmpos = me.getPoint();\n\t \tfor(int i=hotspots.size()-1; i > -1; --i)\n\t \t\tif(hotspots.elementAt(i).inside(me.getPoint()))\n\t \t\t\thotspots.elementAt(i).setHighlighted(true);\n\t \t\telse\n\t \t\t\thotspots.elementAt(i).setHighlighted(false);\n\t \trepaint();\n \t}\n \tif(om.equals(\"graphic_order_interaction\") || om.equals(\"gap_match_interaction\") || om.equals(\"figure_placement_interaction\"))\n \t{\n \t\tif(mov != null)\n \t\t{\n \t\t\tmov.setPos(me.getPoint());\n \t\t}\n \t\tif (om.equals(\"figure_placement_interaction\")) {\n \t\t repaint();\n \t\t}\n \t}\n \tdrawHSLabel = null;\n }", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "public void mouseDragged(MouseEvent e) {\r\n// if (mouseDraggedEnabled && ((e.getModifiers() & (InputEvent.ALT_DOWN_MASK | InputEvent.ALT_MASK)) == 0))\r\n if (mouseDraggedEnabled && mouseDraggedType == MOUSE_DRAG_ZOOM) {\r\n if (parent.onEvent(e, ChartPanel.MOUSE_DRAGGED)) {\r\n dragged = true;\r\n int _x = Math.min(draggedFromX, e.getX());\r\n int _y = Math.min(draggedFromY, e.getY());\r\n int _w = Math.abs(draggedFromX - e.getX());\r\n int _h = Math.abs(draggedFromY - e.getY());\r\n draggingRectangle = new Rectangle(_x, _y, _w, _h);\r\n repaint();\r\n }\r\n } else if (mouseDraggedEnabled && mouseDraggedType == MOUSE_DRAW_LINE_ON_CHART) {\r\n this.setCursor(crossHairCursor);\r\n if (parent.onEvent(e, ChartPanel.MOUSE_DRAGGED)) {\r\n dragged = true;\r\n int x1 = draggedFromX;\r\n int y1 = draggedFromY;\r\n int x2 = e.getX();\r\n int y2 = e.getY();\r\n lineToDraw = new ArrayList<Point>(2);\r\n lineToDraw.add(new Point(x1, y1));\r\n lineToDraw.add(new Point(x2, y2));\r\n repaint();\r\n }\r\n }\r\n// if ((e.getModifiers() & (InputEvent.ALT_DOWN_MASK | InputEvent.ALT_MASK)) != 0) // Alt + Click: Grab Scroll\r\n if (mouseDraggedEnabled && mouseDraggedType == MOUSE_DRAG_GRAB_SCROLL) {\r\n this.setCursor(closedHandCursor);\r\n int x = this.getVisibleRect().x - (e.getX() - draggedFromX);\r\n int y = this.getVisibleRect().y - (e.getY() - draggedFromY);\r\n this.scrollRectToVisible(new Rectangle(x, y, this.getVisibleRect().width, this.getVisibleRect().height));\r\n// this.setCursor(defaultCursor);\r\n }\r\n // MOUSE_DRAW_ON_CHART\r\n if (mouseDraggedEnabled && mouseDraggedType == MOUSE_DRAW_ON_CHART) {\r\n this.setCursor(drawingCursor);\r\n if (parent.onEvent(e, ChartPanel.MOUSE_DRAGGED)) {\r\n dragged = true;\r\n if (oneDrawing == null) {\r\n oneDrawing = new PointList<GeoPoint>(10);\r\n oneDrawing.setLineColor(drawColor);\r\n }\r\n GeoPoint dpt = getGeoPos(e.getX(), e.getY());\r\n // System.out.println(\"Point \" + dpt.toString());\r\n oneDrawing.add(dpt);\r\n repaint();\r\n }\r\n }\r\n if (parent instanceof ChartPanelParentInterface_II)\r\n ((ChartPanelParentInterface_II) parent).afterEvent(e, ChartPanel.MOUSE_DRAGGED);\r\n }", "@Override\r\n public void mouseDragged(MouseEvent e) {\n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\r\n\t}", "public void mouseMoved(MouseEvent arg0) {\n\t\t\n\t\tif (this.shapeBeingMade){\n\t\t\tShape lastShape = this.model.getLastShape();\n\t\t\tthis.setFeedbackPoint(lastShape, new Point(arg0.getX(),arg0.getY()));\n\t\t}\n\t}", "@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t}", "@Override\r\n\t\t\tprotected void showChangeBoundsFeedback(ChangeBoundsRequest request) {\r\n\t\t\t\t\r\n\t\t\t\tIFigure feedback = getDragSourceFeedbackFigure();\r\n\t\t\t\t\r\n\t\t\t\tPrecisionRectangle rect = new PrecisionRectangle(getInitialFeedbackBounds().getCopy());\r\n\t\t\t\tgetHostFigure().translateToAbsolute(rect);\r\n\t\t\t\trect.translate(request.getMoveDelta());\r\n\t\t\t\trect.resize(request.getSizeDelta());\r\n//\t\t\t\torg.eclipse.swt.graphics.Rectangle viewportBounds = getViewer().getControl().getBounds();\r\n\t\t\t\tif (//!RSE.isExploratorySrvr() && \r\n\t\t\t\t\t\tRootEditPartUtils.isOutOfViewportBounds((FigureCanvas) getViewer().getControl(), rect))\r\n\t\t\t\t\treturn;\r\n\t\t\t\tfeedback.translateToRelative(rect);\r\n\t\t\t\tfeedback.setBounds(rect);\r\n\t\t\t}", "public void display2() { // for drag action -> color change\n stroke (255);\n fill(0,255,255);\n ellipse (location.x, location.y, diameter, diameter);\n }", "@Override\n public void paintComponent(Graphics g)\n {\n m_g = g;\n // Not sure what our parent is doing, but this seems safe\n super.paintComponent(g);\n // Setup, then blank out with white, so we always start fresh\n g.setColor(Color.white);\n g.setFont(null);\n g.clearRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.fillRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.setColor(Color.red);\n //g.drawRect(10,10,0,0);\n //drawPoint(20,20);\n \n // Call spiffy functions for the training presentation\n m_app.drawOnTheCanvas(new ExposedDrawingCanvas(this));\n m_app.drawOnTheCanvasAdvanced(g);\n \n // ADVANCED EXERCISE: YOU CAN DRAW IN HERE\n \n // END ADVANCED EXERCISE SPACE\n \n // Clear the special reference we made - don't want to abuse this\n m_g = null;\n \n \n // Schedule the next repaint\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n m_app.repaint();\n try\n {\n Thread.sleep(100);\n }\n catch (Exception e)\n { \n \n }\n }\n }); \n }", "@Override\n public void paintComponent(Graphics g) \n {\n super.paintComponent(g);\n doDrawing(g);\n }", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t}", "public void mouseDragged(MouseEvent e) {\r\n Graphics g = view.getViewJComponent().getGraphics();\r\n rectangle.setSize(Math.abs(e.getX() - rectangle.x),\r\n Math.abs(e.getY() - rectangle.y));\r\n view.getViewJComponent().repaint();\r\n g.drawRect(rectangle.x, rectangle.y, rectangle.width,\r\n rectangle.height);\r\n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\tif(state.getStatus()==Status.SELECTING_RECT){\n\t\t\t\tif(startDragginPoint == null)\n\t\t\t\t\tdraggingFrom(arg0.getPoint());\n\t\t\t\tcurrentDragPoint = arg0.getPoint();\t\n\t\t\t\trepaint();\n\t\t\t}\n\t\t\tif(state.getStatus()==Status.SELECTING_RECT_LS){\n\t\t\t\tif(startDragginPoint == null)\n\t\t\t\t\tdraggingFrom(arg0.getPoint());\n\t\t\t\tcurrentDragPoint = arg0.getPoint();\t\n\t\t\t\trepaint();\n\t\t\t}\n\t\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t}", "public void draw(){\n\t\tcomponent.draw();\r\n\t}", "@Override\n protected void paint2d(Graphics2D g) {\n \n }", "@Override\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\n\t\tif (startDragginPoint!=null && currentDragPoint != null){\n\t\t\t\n\t\t\tg.setColor(Color.black);\n\t\t\tAuxiliar.sortPoint((p,q) -> {\n\t\t\t\tg.drawRect(p.x, p.y, q.x-p.x, q.y-p.y);\t\n\t\t\t}, startDragginPoint, currentDragPoint);\n\n\t\t}\n\t}", "public void mouseDragged(MouseEvent event) { }", "protected void paintComponent(Graphics g) {\n super.paintComponent(g);\n \n // Are we dragging?\n if(dragging && currentMouseLocation != null && tabImage != null) {\n // Draw the dragged tab\n g.drawImage(tabImage, currentMouseLocation.x, currentMouseLocation.y, this);\n }\n }", "private void paintHand3(Graphics2D gfx)\r\n {\n \r\n }", "public void mouseDragged(MouseEvent e) {\n }", "public void drawNonEssentialComponents(){\n\t\t\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "public void mouseDragged( MouseEvent event ){}", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\n\t\t}", "@Override\r\n \tpublic void paintComponent(Graphics g) {\r\n \t\tsuper.paintComponent(g);\r\n \t\tdrawSnake(g);\r\n \t}", "public void toutDessiner(Graphics g);", "public void addNotify()\n {\n super.addNotify();\n\t\n ib = createImage(width,height);\n ig = ib.getGraphics(); \n }", "public void mouseDragged (MouseEvent e) { if(task!=null) task.mouseDragged(e); }", "public void mouseDragged(MouseEvent e)\n {}", "@Override\r\n\tpublic void paintComponent(Graphics g) {\n\t\tsuper.paintComponent(g);\r\n\t\t\tthis.draw(g);\r\n\t\t\r\n\t\r\n\t}", "@Override\n public void onPaint(Graphics2D g) {\n\n }", "public void mouseDragged(MouseEvent e) {\n\n }", "public synchronized void mouseDragged(MouseEvent event) {\n /*FIXME*/\n /* Not needed if picture does not change. */\n\n _display.repaint();\n }", "public void drawOn(Graphics g);", "@Override\n public void onDragStart(final LienzoPanel parentPanel, final double x, final double y) {\n\n shapeGlyphDragHandler.show(parentPanel, glyph, x, y, new ShapeGlyphDragHandler.Callback<LienzoPanel>() {\n @Override\n public void onMove(final LienzoPanel floatingPanel, final double x, final double y) {\n\n }\n\n @Override\n public void onComplete(final LienzoPanel floatingPanel, final double x, final double y) {\n if ( null != callback ) {\n log(Level.FINE, \"Palette: Adding \" + description + \" at \" + x + \",\" + y);\n callback.onAddShape( definition, factory, x, y );\n }\n }\n });\n\n }", "@Override\r\n\tprotected void paintComponent(Graphics g) \r\n\t{\n\t\tsuper.paintComponent(g);\r\n\t\t\r\n\t\t// passes Graphics g into flappy\r\n\t\tflappy.flappybox.repaint(g); /// passes Graphics g into flappy\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t}", "public abstract void mouseDragged(MouseDraggedEvent mp);", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\n public void paint(Graphics g) {\n g2 = (Graphics2D) g;\n drawBackground();\n drawSquares();\n drawLines();\n gui.hint = new TreeSet<>();\n }", "private void drawHelp(Graphics2D g2d) {\n Composite orig_comp = g2d.getComposite();\n g2d.setColor(RTColorManager.getColor(\"brush\", \"dim\")); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.8f)); g2d.fillRect(0,0,getWidth(),getHeight()); g2d.setComposite(orig_comp);\n int base_x = 5, base_y = Utils.txtH(g2d,\"0\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Key\", \"Normal\", \"Shift\", \"Ctrl\", \"Ctrl-Shift\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"E\", \"Expand Selection\", \"Use Directed Graph\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"1 - 9\", \"Select Degree\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"0\", \"Select Degree > 10\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"R\", \"Select Cut Vertices\", \"Subtract\", \"Add\", \"Intersect\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Q\", \"Invert Selection\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"X\", \"Hide Selection\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"M\", \"Toggle Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"G\", \"Grid Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Y\", \"Line Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"C\", \"Circle Layout Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"T\", \"Group Nodes\", \"Align Horizontally\", \"Align Vertically\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"S\", \"Set/Clear Sticky Labels\", \"Subtract From\", \"Add To\", \"Intersect With\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"V\", \"Toggle Node Size\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"L\", \"Toggle Labels\", \"Toggle Edge Templates\", \"Toggle Node Legend\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"W\", \"Make One Hops Visible\", \"Use Directed Graph\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"N\", \"Add Note\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"A\", \"Pan Mode\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"F\", \"Fit\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Minus (-)\", \"Zoom Out\", \"Fit\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Plus (+)\", \"Zoom In\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"Cursor Keys\", \"Shift Selected Nodes\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"< >\", \"Rotate Selected Nodes\", \"15 Degs\", \"90 Degs\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"{ }\", \"Scale Selected Nodes\", \"More\", \"Even More\", \"\");\n base_y = drawKeyCombo(g2d, base_x, base_y, \"F[2-5]\", \"Save Layout To Fx\", \"Restore\", \"Delete\", \"Restore\");\n }", "public void mouseDragged( MouseEvent e )\n {\n x = e.getX(); y = e.getY();\n \n theShape.ends[0].x = x;\n theShape.ends[0].y = y;\n /*\n if ( mode==0 ) // Line\n {\n theLine.ends[0].x = x; \n theLine.ends[0].y = y; \n }\n else if ( mode==1 ) // Box\n {\n theBox.ends[0].x = x;\n theBox.ends[0].y = y;\n }\n */\n \n System.out.println(\"dragged to x=\"+x+\" y=\"+y);\n repaint();\n }", "void onDragged();", "private void panelMouseDragged(java.awt.event.MouseEvent evt)\n throws Exception{\n \n /*Store the point where the mouse is dragged*/\n Point dragPoint = null;\n\n if (this.selectedShape != null)\n {\n /*Change mouse was dragged to true*/\n mouseIsDragged = true;\n\n /*Store the dragged point*/\n dragPoint = evt.getPoint();\n\n /*Now translate the Shape by calling the method*/\n /*Both ShapeConcept and ShapeLinking use the same method*/\n selectedShape.translateShape(dragPoint.x - offsetX, dragPoint.y - offsetY);\n repaint();\n }//end if\n}", "public void mouseDragged(MouseEvent me) {\n\n\t\t\t}", "public void mouseDragged(MouseEvent e) {\n currX = e.getX();\r\n currY = e.getY();\r\n\r\n if(g2 != null) {\r\n // Draw line if g2 context is not null\r\n g2.drawLine(oldX, oldY, currX, currY);\r\n // Refresh draw area to repaint\r\n repaint();\r\n // Stores current coordinates x,y as old x,y\r\n oldX = currX;\r\n oldY = currY;\r\n }\r\n }", "public DrawCanvas(DrawConsoleUI drawConsole) {\n /*Call the super constructor and set the background colour*/\n super();\n this.setBackground(Color.white);\n\n /*Set the size of this component*/\n this.setPreferredSize(new Dimension(970,800));\n\n /*Enable autoscroll for this panel, when there is a need to\n update component's view*/\n this.setAutoscrolls(true);\n\n /*Construct a list that will hold the shapes*/\n //shapesBuffer = Collections.synchronizedList(new ArrayList());\n labelBuffer = Collections.synchronizedList(new ArrayList());\n\n /*Hold a reference to the DrawConsoleUI class*/\n drawConsoleUI = drawConsole;\n\n \n /***\n * Register Listeners to the canvas\n */\n\n /*Mouse move*/\n this.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n //panelMouseMoved(evt);\n }//end mouse motion moved\n\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n try {\n panelMouseDragged(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end mouse motion Dragged\n });\n\n /*Mouse Clicked*/\n this.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n try {\n panelMouseClicked(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end\n\n /*Mouse Pressed*/\n public void mousePressed(java.awt.event.MouseEvent evt) {\n try {\n panelMousePressed(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end\n\n /*Mouse Released*/\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n try {\n panelMouseReleased(evt);\n } catch (Exception e) {e.getMessage(); }\n }//end\n });\n\n\n }", "public void mouseDragged(MouseEvent evt) {\r\n xDragged = evt.getX(); // store the x coordinate of the mouse\r\n yDragged = evt.getY(); // store the y coordinate of the mouse\r\n System.out.println(\"Mouse dragged at coordinate (\"\r\n + xDragged + \", \" + yDragged + \").\");\r\n System.out.println(\"calling method mouseDragged() of PaintTool.\");\r\n ge.mouseDragged(xDragged, yDragged, gra, getBackground());\r\n // call method mouseDragged() of class PaintTool\r\n System.out.println(\"method mouseDragged() of class PaintTool executed.\");\r\n }" ]
[ "0.6588194", "0.6518192", "0.6467054", "0.6420418", "0.63902915", "0.6388357", "0.63840866", "0.6335067", "0.6244004", "0.6207034", "0.61923146", "0.6180099", "0.6174854", "0.61386824", "0.6101015", "0.60979956", "0.6067968", "0.6066288", "0.6066288", "0.6066288", "0.6061578", "0.60553056", "0.60475147", "0.60416627", "0.6035155", "0.60347176", "0.60347176", "0.60334057", "0.6029", "0.6028444", "0.60249734", "0.60249734", "0.6018958", "0.60153854", "0.6014918", "0.6014918", "0.6014918", "0.6014918", "0.6014918", "0.6007882", "0.6007882", "0.6003352", "0.59948105", "0.5993501", "0.5993501", "0.5987877", "0.5987877", "0.5987877", "0.5987877", "0.5987877", "0.5987877", "0.5987877", "0.59844714", "0.598424", "0.5975953", "0.5974712", "0.5973654", "0.59726465", "0.5968461", "0.5965197", "0.5963829", "0.5959796", "0.59426403", "0.5941326", "0.59089935", "0.58968747", "0.5883481", "0.58767396", "0.5875266", "0.586029", "0.5845061", "0.58412236", "0.5833253", "0.5833253", "0.5826737", "0.5826712", "0.5824414", "0.58226115", "0.58201265", "0.58188176", "0.5816058", "0.5808503", "0.58082116", "0.5801997", "0.57953197", "0.5780331", "0.5780145", "0.5775064", "0.5773814", "0.5772552", "0.5772552", "0.57635546", "0.5760769", "0.57591265", "0.5750413", "0.57464725", "0.5737307", "0.57330036", "0.57314885", "0.5730157" ]
0.5742182
96
/ if feedback figure determines we're moving from groups, add appropriate commands
protected Command getMoveCommand(ChangeBoundsRequest request) { Command cmd = super.getMoveCommand(request); cmd = DragFeedbackFigure.addContainerCommands(cmd, getHost()); return cmd; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createGroupTargetInputs() {\n\n\t\tGridData gridData1 = new GridData();\n\t\tgridData1.grabExcessHorizontalSpace = false;\n\t\tgridData1.horizontalAlignment = GridData.BEGINNING;\n\t\tgridData1.verticalAlignment = GridData.CENTER;\n\t\tgridData1.grabExcessVerticalSpace = false;\n\t\tgridData1.widthHint = GRID_DATA_1_WIDTH_HINT - 5;\n\n\t\tGridData gridData2 = new GridData();\n\t\tgridData2.grabExcessHorizontalSpace = false;\n\t\tgridData2.horizontalAlignment = GridData.BEGINNING;\n\t\tgridData2.verticalAlignment = GridData.CENTER;\n\t\tgridData2.grabExcessVerticalSpace = false;\n\t\tgridData2.widthHint = GRID_DATA_2_WIDTH_HINT;\n\n\t\tGridData gridData3 = new GridData();\n\t\tgridData3.horizontalAlignment = GridData.BEGINNING;\n\t\tgridData3.grabExcessHorizontalSpace = false;\n\t\tgridData3.verticalAlignment = GridData.CENTER;\n\t\tgridData3.widthHint = GRID_DATA_3_WIDTH_HINT;\n\n\t\tGridData gridData4 = new GridData();\n\t\tgridData4.horizontalAlignment = GridData.BEGINNING;\n\t\tgridData4.grabExcessHorizontalSpace = false;\n\t\tgridData4.verticalAlignment = GridData.CENTER;\n\n\t\ttargetLabel = new CLabel(this, SWT.NONE);\n\t\ttargetLabel.setLayoutData(gridData1);\n\t\ttargetLabel.setText(Messages.ResultLayerComposite_target_label + \":\"); //$NON-NLS-1$\n\t\ttargetLabel.setToolTipText(Messages.ResultLayerComposite_target_label_tooltip);\n\n\t\tcomboTargetLayer = new CCombo(this, SWT.BORDER);\n\t\tcomboTargetLayer.setLayoutData(gridData2);\n\t\tcomboTargetLayer.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tselectedTargetLayerActions(comboTargetLayer);\n\t\t\t}\n\n\t\t});\n\n\t\tcomboTargetLayer.addModifyListener(new ModifyListener() {\n\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\n\t\t\t\tmodifyTextActions();\n\t\t\t}\n\t\t});\n\n\t\tresultLegend = new CLabel(this, SWT.NONE);\n\t\tresultLegend.setText(\"\"); //$NON-NLS-1$\n\t\tresultLegend.setLayoutData(gridData4);\n\t\tresultLegend.setImage(this.imagesRegistry.get(DEMO_LEGEND));\n\n\t\tcomboGeometryList = new CCombo(this, SWT.BORDER);\n\t\tcomboGeometryList.setEditable(false);\n\t\tcomboGeometryList.setLayoutData(gridData3);\n\t\tcomboGeometryList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\n\t\t\t\tselectedGeometryClassActions();\n\t\t\t}\n\n\t\t});\n\t\taddGeometryTypes();\n\t}", "private Command createMoveCommand(ChangeBoundsRequest req) {\r\n\t\t// error check\r\n\t\tif (req.getEditParts().isEmpty() || !(req.getEditParts().get(0) instanceof EditPart)) {\r\n\t\t\tlogger.error(\"Request is empty. No item to move\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<EditPart> selectedEPs = req.getEditParts();\r\n\t\tCompoundCommand compoundMoveCmd = new CompoundCommand(\"Move Item\");\r\n\t\t// moving onto a 'closed' TitledEditPart results in an show command being queued. \r\n\t\t// This flag prevents this command from being queued multiple times\r\n\t\tboolean alreadyShowing = false;\r\n\t\t\r\n\t\tfor (EditPart movedEP : selectedEPs) {\r\n\t\t\tContainableEditPart destEP = this;\r\n\t\t\tif (movedEP instanceof CommentEditPart && (destEP instanceof StrataRootEditPart)) {\r\n\t\t\t\tCommentEditPart child = (CommentEditPart)movedEP;\r\n\t\t\t\tRectangle origBounds = ((CommentEditPart)child).getFigure().getBounds();\r\n\t\t\t\tRectangle newBounds = ((ChangeBoundsRequest)req).getTransformedRectangle(origBounds);\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Currently not allowing comments to be dragged out of the viewport bounds. We are centering\r\n\t\t\t\t * the Strata diagram and pulling the comment out of the viewport bounds sometimes caused the \r\n\t\t\t\t * layout to go into infinite loop trying to center the diagram alongwith moving the comment.\r\n\t\t\t\t * Also look at class CommentEditPart method showFeedback() where the same has been done\r\n\t\t\t\t * for the feedback figure\r\n\t\t\t\t * We do same for Strata figures look at showChangeBoundsFeedback()\r\n\t\t\t\t */\r\n\t\t\t\tif (//!RSE.isExploratorySrvr() && \r\n\t\t\t\t\t\tRootEditPartUtils.isOutOfViewportBounds((FigureCanvas) getViewer().getControl(), newBounds)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcompoundMoveCmd.add(new MoveCommentCommand((Comment)child.getModel(), origBounds, newBounds, \r\n\t\t\t\t\t\tthis.getRootController().contentFig.getBounds().getTopLeft()));\r\n\t\t\t}\r\n\t\t\tif (!(movedEP instanceof StrataArtFragEditPart)) continue;\r\n\t\t\t\tStrataArtFragEditPart movedAFEP = (StrataArtFragEditPart) movedEP;\r\n\t\t\t\r\n\t\t\tLayer oldParentLyr = null;\r\n\t\t\tif (movedAFEP.getParent() instanceof LayerEditPart)\r\n\t\t\t\toldParentLyr = ((LayerEditPart)movedAFEP.getParent()).getLayer();\r\n\t\t\t\r\n\t\t\t// if moving onto an editpart check and show children (open package if unopened)\r\n\t\t\t// then move into the proper layer index\r\n\t\t\tif (destEP instanceof TitledArtifactEditPart) {\r\n\t\t\t\t// If we are adding to a user created Fragment make sure to add correctly\r\n\t\t\t\tif (destEP.getArtFrag() instanceof UserCreatedFragment) {\r\n\t\t\t\t\tcompoundMoveCmd.add(StrataArtFragEditPart.getAddUserCreatedFrag(destEP, movedAFEP, getRootModel()));\r\n\t\t\t\t\talreadyShowing = true;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\telse if (!ClosedContainerDPolicy.isShowingChildren(this.getArtFrag()) && !alreadyShowing) {\r\n\r\n\t\t\t\t\t// When moving on top of a closed titled EP we either want\r\n\t\t\t\t\t// people to drop and open thepackage and move the dragged\r\n\t\t\t\t\t// item into it, or just not allow this type of dragging.\r\n\t\t\t\t\t// Here we do the latter \r\n//\t\t\t\t\tCompoundCommand showAFEPChildrenCmd = new CompoundCommand(\"Show Children\");\r\n//\t\t\t\t\tClosedContainerDPolicy.queryAndShowChildren(showAFEPChildrenCmd, this.getArtFrag());\r\n//\t\t\t\t\tcompoundMoveCmd.add(showAFEPChildrenCmd);\r\n//\t\t\t\t\talreadyShowing = true;\r\n//\t\t\t\t\tcompoundMoveCmd.add(createTitledMoveCommand(req, movedAFEP, oldParentLyr));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tcompoundMoveCmd.add(createTitledMoveCommand(req, movedAFEP, oldParentLyr));\r\n\t\t\t} else if (destEP instanceof CompositeLayerEditPart) {\r\n\t\t\t\tcompoundMoveCmd.add(createTitledMoveCommand(req, movedAFEP, oldParentLyr));\r\n\t\t\t}\r\n\t\t\tif (destEP instanceof LayerEditPart && !(destEP instanceof CompositeLayerEditPart)) {\r\n\t\t\t\tcompoundMoveCmd.add(createLayerMoveCommand(req, movedAFEP, oldParentLyr));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn compoundMoveCmd;\r\n\t}", "public void routeCommandGroups(CommandGroup group) {\n if (this.getSwitchSide() == DIRECTION.LEFT) {\n\n } else if (this.getSwitchSide() == DIRECTION.RIGHT) {\n\n }\n }", "private Command createLayerMoveCommand(ChangeBoundsRequest req, StrataArtFragEditPart movedAFEP, Layer oldParentLyr ) {\n\t\tLayer layer = ((LayerEditPart) this).getLayer();\r\n\t\tboolean isHorz = layer.getLayout();\r\n\t\tif ((layer instanceof CompositeLayer) && ((CompositeLayer) layer).getMultiLayer()) {\r\n\t\t\t// edge case:\r\n\t\t\t// if adding to the multiLayer below child layers then add at\r\n\t\t\t// end of the last layer (do not create new layer)\r\n\t\t\tint newLayerChildNdx = -1;\r\n\t\t\tint newLayerNdx = ((LayerEditPart) this).getLayer().getShownChildren().size()-1;\r\n\r\n\t\t\tLayerEditPart child = getLayerChild(req.getLocation(), getChildren());\r\n\t\t\tif (child != null) {\r\n\t\t\t\tnewLayerNdx = getChildren().indexOf(getLayerChild(req.getLocation(), getChildren()))+1;\r\n\t\t\t\tnewLayerChildNdx = child.getChildren().indexOf(getEPChild(req.getLocation(), child, isHorz));\r\n\t\t\t}\r\n\t\t\tlogger.info(\"moving to MultiLayer\" + this.getClass() + newLayerChildNdx);\r\n\t\t\treturn createMoveCommand(\r\n\t\t\t\t\tthis.getParentTAFEP().getArtFrag(), // target AF\r\n\t\t\t\t\t// target Layer (child of multiLayer)\r\n\t\t\t\t\t((Layer) ((LayerEditPart) this).getLayer().getShownChildren().get(newLayerNdx)), \r\n\t\t\t\t\tmovedAFEP.getParentTAFEP().getArtFrag(), // old AF\r\n\t\t\t\t\toldParentLyr, // old layer\r\n\t\t\t\t\tmovedAFEP.getArtFrag(), newLayerChildNdx, -1); // moving AF, index to insert into in Layer, -1 (not new layer)\r\n\t\t}\r\n\t\tint newLayerChildNdx = ((LayerEditPart) this).getLayer().getShownChildren().size();\r\n\t\tif(getEPChild(req.getLocation(), this, isHorz) != null)\r\n\t\t\tnewLayerChildNdx = getChildren().indexOf(getEPChild(req.getLocation(), this, isHorz));\r\n\t\tlogger.info(\"moving to Layer \" + this.getClass() + newLayerChildNdx);\r\n\t\treturn createMoveCommand(\r\n\t\t\t\tthis.getParentTAFEP().getArtFrag(),\r\n\t\t\t\t((LayerEditPart) this).getLayer(),\r\n\t\t\t\tmovedAFEP.getParentTAFEP().getArtFrag(),\r\n\t\t\t\toldParentLyr,\r\n\t\t\t\tmovedAFEP.getArtFrag(), newLayerChildNdx, -1);\r\n\t}", "private void showFeedbackFig(ChangeBoundsRequest req) {\r\n\t\tRSEEditPart insertionPart = getInsertionPart(req);\r\n\t\tList<?> epChildren = getChildren();\r\n\t\tint insertionIndex = epChildren.indexOf(insertionPart);\r\n\t\t\r\n\t\t// only show feedback for movable items\r\n\t\tif (!(req.getEditParts().get(0) instanceof TitledArtifactEditPart)) return;\r\n\t\t\r\n\t\t// If the selected part would stay in the same location\r\n\t\t// once the mouse is released, don't show feedback\r\n\t\tif(req.getEditParts().size()==1) {\r\n\t\t\tObject movingPart = req.getEditParts().get(0);\r\n\r\n\t\t\t// part not moved far enough left to reorder with child left of it\r\n\t\t\tif(movingPart.equals(insertionPart)) return; \r\n\r\n\t\t\t// part not moved far enough right to reorder with the child right of it\r\n\t\t\tint indexOfSel = epChildren.indexOf(movingPart);\r\n\t\t\tif(indexOfSel!=-1 && indexOfSel==insertionIndex-1) return;\r\n\r\n\t\t\t// trying to move the part to the last index, but it's already there\r\n\t\t\tif(epChildren.size()>0 &&\r\n\t\t\t\t\tinsertionIndex == -1 &&\r\n\t\t\t\t\tepChildren.get(epChildren.size()-1).equals(movingPart)) return;\r\n\t\t}\r\n\r\n\t\t// clear any feedback figures already in the feedback layer before\r\n\t\t// adding another feedback fig\r\n\t\tList<Object> feedbackFigs = new ArrayList<Object>();\r\n\t\tfor(Object child : getLayer(LayerConstants.SCALED_FEEDBACK_LAYER).getChildren())\r\n\t\t\tif(child instanceof FeedbackFigure) feedbackFigs.add(child);\r\n\t\tfor(Object fig : feedbackFigs)\r\n\t\t\tgetLayer(LayerConstants.SCALED_FEEDBACK_LAYER).remove((IFigure)fig);\r\n\r\n\t\tFeedbackFigure feedbackFig = getLineFeedback();\r\n\t\tif (this instanceof TitledArtifactEditPart\r\n\t\t\t\t&& getLayerChild(req.getLocation(), getChildren()) == null\r\n\t\t\t\t&& !(this instanceof CompositeLayerEditPart) \r\n\t\t\t\t&& ClosedContainerDPolicy.isShowingChildren(this.getArtFrag())\r\n\t\t\t\t&& children!=null && !children.isEmpty()) {\r\n\t\t\t// move will create a new vertical layer, so indicate that\r\n\t\t\r\n\t\t\t// make the feedback fig half as tall as this containing\r\n\t\t\t// part's fig and center it vertically within this\r\n\t\t\tint feedbackHeight = getFigure().getSize().height/2;\r\n\t\t\tfeedbackFig.setSize(10, feedbackHeight);\r\n\t\t\tint feedbackX = -1;\r\n\t\t\tint feedbackY = getFigure().getBounds().getTop().y+feedbackHeight/2;\r\n\t\t\t// if we are root the container figure is too big so we need to calc pos differently\r\n\t\t\tif (this instanceof StrataRootEditPart)\r\n\t\t\t\tfeedbackY = getFigure().getBounds().getTop().y +10;\r\n\t\t\t\r\n\t\t\t// new vertical layer could be a left vertical layer or a right vertical layer\r\n\t\t\tRectangle childBounds = Rectangle.SINGLETON;\r\n\t\t\tLayerEditPart child = (LayerEditPart) children.get(0);\r\n\t\t\tchildBounds.setBounds(((LayerEditPart) child ).getFigure().getBounds());\r\n\t\t\t((LayerEditPart) child).getFigure().translateToAbsolute(childBounds);\r\n\t\t\tPoint dropPoint = req.getLocation();\r\n\t\t\tif (dropPoint.x < childBounds.x && !LayerPositionedDPolicy.containsVertLayer(getArtFrag(), false /*on right*/)) // is on left\r\n\t\t\t\tfeedbackX = getFigure().getBounds().getTopLeft().x;\r\n\t\t\telse if (!LayerPositionedDPolicy.containsVertLayer(getArtFrag(), true /*on right*/) && dropPoint.x > childBounds.x +childBounds.width) {// is on right\r\n\t\t\t\tPoint topRight = getFigure().getBounds().getTopRight();\r\n\t\t\t\t// if we are root the container figure is too big so we need to calc pos differently\r\n\t\t\t\tif (this instanceof StrataRootEditPart) {\r\n\t\t\t\t\ttopRight = ((IFigure) ((AbstractGraphicalEditPart) getChildren().get(0)).getFigure()).getBounds().getTopRight();\r\n\t\t\t\t\tfeedbackX = topRight.x+3;\r\n\t\t\t\t} else\r\n\t\t\t\t\tfeedbackX = topRight.x-feedbackFig.getSize().width-3;\r\n\t\t\t}\r\n\t\t\tif (feedbackX == -1) return;\r\n\t\t\tfeedbackFig.setLocation(new Point(feedbackX, feedbackY));\r\n\r\n\t\t\tfeedbackFig.setBackgroundColor(getFigure().getBackgroundColor());\r\n\t\t\tgetLayer(LayerConstants.SCALED_FEEDBACK_LAYER).add(feedbackFig);\r\n\t\t} else {\r\n\t\t\t// do not show feedback for composite layers since we dont add to them\r\n\t\t\t// unless it's a vertical layout (move will create a new horizontal layer)\r\n\t\t\tif (this instanceof CompositeLayerEditPart &&\r\n\t\t\t\t\tgetFigure().getLayoutManager() instanceof FlowLayout &&\r\n\t\t\t\t\t((FlowLayout)getFigure().getLayoutManager()).isHorizontal()) \r\n\t\t\t\treturn;\r\n\t\t\t// be careful when adding feedback to a figure that may not have the\r\n\t\t\t// right index, just add to end\r\n\t\t\ttry {\r\n\t\t\t\tif (this instanceof TitledArtifactEditPart && getChildren().size() > 0) {\r\n\t\t\t\t\tLayerEditPart lep = getLayerChild(req.getLocation(), getChildren());\r\n\t\t\t\t\tlepFig = lep.getFigure().getParent();\r\n\t\t\t\t\tlepFig.add(feedbackFig, insertionIndex);\r\n\t\t\t\t} else\r\n\t\t\t\t\tgetFigure().add(feedbackFig, insertionIndex);\r\n\t\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\t\tgetFigure().add(feedbackFig);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void actionSwitchMove()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleMovable)\r\n\t\t{\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchMoveOn();\r\n\r\n\t\t\t//---- Turn off sample selection mode\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t}", "private void panelMousePressed(java.awt.event.MouseEvent evt)\n throws Exception {\n\n if (evt.getButton() == MouseEvent.BUTTON1) {\n /*Get the point where the mouse was clicked*/\n Point pointClicked = evt.getPoint();\n\n /*Read and save the object on that Point*/\n selectedShape = getLabelInPoint(pointClicked);\n\n /*Save this point, to be used during Transformations*/\n preTranslationPoint = pointClicked;\n\n /*Check which tool is selected*/\n if (drawConsoleUI.getSelectedToolID() == 2) {\n\n /*Check if ShapeConcept are connected*/\n if (! haveConnect) {\n\n /*Check if the first Shape selected is either a Concept or a Link*/\n if (selectedShape instanceof ShapeConcept)\n firstConcept = (ShapeConcept) selectedShape;\n else if (selectedShape instanceof ShapeLinking)\n firstLinking = (ShapeLinking) selectedShape;\n }//end inner if\n else\n {\n /*Get the second componenet at point*/\n\n ShapesInterface shape = getLabelInPoint(pointClicked);\n\n /*Check whether the second Shape is Concept or either Linking*/\n if (shape instanceof ShapeConcept)\n secondConcept = (ShapeConcept) selectedShape;\n else if (shape instanceof ShapeLinking)\n secondLinking = (ShapeLinking) selectedShape;\n\n /***************\n * START CASES *\n ***************/\n\n /*CASE-1: first=Concept & sec=Concept*/\n if (firstConcept !=null && secondConcept !=null && firstLinking == null && secondLinking == null) {\n\n /*Find the middle between the two points*/\n Point p1 = firstConcept.getCenter();\n Point p2 = secondConcept.getCenter();\n\n /*Find the mid point of the line*/\n Point midPoint = new Point((p1.x + p2.x)/2,(p1.y + p2.y)/2);\n\n /*Find the rectangle at the center*/\n Rectangle encloseRect = new Rectangle(midPoint.x - (int) 140/2,\n midPoint.y - (int) 40/2,\n 140,\n 40);\n\n /*Create a new LinkingPhaze*/\n ShapeLinking linkPhraze = new ShapeLinking(encloseRect,\"This is a link\",\n \"UserTest\", \"id\");\n\n /*Save Link phraze it in the shape buffer List*/\n this.labelBuffer.add(linkPhraze);\n\n /*Draw the ShapeConcept object on the JPanel*/\n this.add(linkPhraze);\n\n /**/\n if (! firstConcept.isEntry(linkPhraze)){\n linkPhraze.addComponent(firstConcept);\n }\n\n if (! linkPhraze.isEntry(secondConcept)){\n secondConcept.addComponent(linkPhraze);\n }\n\n }//END CASE 1\n /*CASE-2: first=Concept & sec=Link*/\n else if (firstConcept != null && secondConcept == null && firstLinking == null && secondLinking != null) {\n \n if (! firstConcept.isEntry(secondLinking))\n secondLinking.addComponent(firstConcept);\n else {\n /*Detect two way*/\n\n //tempConcept.addComponent(getLabelInPoint(pointClicked));\n //System.out.println(\"Detect two way\");\n }//else\n }//END CASE 2\n /*CASE-3: first=Link & sec=Concept*/\n else if (firstConcept == null && secondConcept != null && firstLinking != null && secondLinking == null) {\n \n if (! firstLinking.isEntry(secondConcept))\n secondConcept.addComponent(firstLinking);\n else {\n /*Detect two way*/\n\n //tempConcept.addComponent(getLabelInPoint(pointClicked));\n //System.out.println(\"Detect two way\");\n }\n }//END CASE 3\n /*CASE-4: first=Link & sec=Link*/\n else if (firstConcept == null && secondConcept == null && firstLinking != null && secondLinking != null) {\n }//END CASE 4\n\n /*Testing*/\n //System.out.println(\"firstConcept : \" + firstConcept);\n //System.out.println(\"firstLinking : \" + firstLinking);\n //System.out.println(\"secondConcept : \" + secondConcept);\n //System.out.println(\"secondLinking : \" + secondLinking);\n\n\n /*Clear variables for Cases*/\n firstConcept = null;\n firstLinking = null;\n secondConcept = null;\n secondLinking = null;\n\n /*When done switch back to the default SELECTION TOOL*/\n drawConsoleUI.setSelectedToolID(1);\n repaint();\n }//end inner else\n\n haveConnect = !haveConnect;\n }//end if tool selected\n /*ELSE: Select shape to drag*/\n else {\n\n /*CASE : ShapeConcept*/\n if (selectedShape instanceof ShapeConcept) {\n\n Rectangle rect = ((ShapeConcept) selectedShape).getBounds();\n\n offsetX = preTranslationPoint.x - rect.x;\n offsetY = preTranslationPoint.y - rect.y;\n\n }//end inner if\n /*CASE : ShapeLinking*/\n else if (selectedShape instanceof ShapeLinking) {\n\n Rectangle rect = ((ShapeLinking) selectedShape).getBounds();\n\n offsetX = preTranslationPoint.x - rect.x;\n offsetY = preTranslationPoint.y - rect.y;\n\n }//end inner if\n else if (selectedShape instanceof ShapeComment) {\n\n Rectangle rect = ((ShapeComment) selectedShape).getBounds();\n\n offsetX = preTranslationPoint.x - rect.x;\n offsetY = preTranslationPoint.y - rect.y;\n\n }//end inner if\n else if (selectedShape instanceof ShapeURL) {\n\n Rectangle rect = ((ShapeURL) selectedShape).getBounds();\n\n offsetX = preTranslationPoint.x - rect.x;\n offsetY = preTranslationPoint.y - rect.y;\n\n }//end inner if\n }//end else\n }//BUTTON 1\n}", "private Command createTitledMoveCommand(ChangeBoundsRequest req, StrataArtFragEditPart movedAFEP, Layer oldParentLyr) {\r\n\t\tint newLayerNdx = this.getChildren().size();\r\n\t\tLayer newLayer = new Layer(this.getRepo());\r\n\r\n\t\t// Check if moving to index 0 (top of titled AFEP) then create appropriate move cmd.\r\n\t\t// regular move cmd logic does not handle this case\r\n\t\tif (insertAtIndexZero(req.getLocation(), getChildren())) {\r\n\t\t\tArtifactFragment newParentAF = this.getArtFrag();\r\n\t\t\tArtifactFragment oldParentAF = movedAFEP.getParentTAFEP().getArtFrag();\r\n\t\t\treturn createMoveCommand(\r\n\t\t\t\t\tnewParentAF,\r\n\t\t\t\t\tnewLayer, \r\n\t\t\t\t\toldParentAF, \r\n\t\t\t\t\toldParentLyr,\r\n\t\t\t\t\tmovedAFEP.getArtFrag(), -1, 0);\r\n\t\t\r\n\t\t}\r\n\t\tif (getLayerChild(req.getLocation(), getChildren()) == null) { \r\n\t\t\tif (this instanceof CompositeLayerEditPart) return null;\t\r\n\t\t\t\r\n\t\t\tCreateVertLayerAndMoveCmd vertCmd = null;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tRectangle childBounds = Rectangle.SINGLETON;\r\n\t\t\tif (children!=null && !children.isEmpty()) {\r\n\t\t\t\tLayerEditPart child = (LayerEditPart) children.get(0);\r\n\t\t\t\tchildBounds.setBounds(((LayerEditPart) child ).getFigure().getBounds());\r\n\t\t\t\t((LayerEditPart) child).getFigure().translateToAbsolute(childBounds);\r\n\r\n\t\t\t\tPoint dropPoint = req.getLocation();\r\n\t\t\t\t\r\n\t\t\t\t// create vert layer on right or left dep on location\r\n\t\t\t\tif (dropPoint.x < childBounds.x && !LayerPositionedDPolicy.containsVertLayer(getArtFrag(), false)) \r\n\t\t\t\t\tvertCmd = new CreateVertLayerAndMoveCmd(movedAFEP.getArtFrag(), oldParentLyr, getArtFrag(), false /*isOnRight*/);\r\n\t\t\t\telse if (dropPoint.x > childBounds.x +childBounds.width && !LayerPositionedDPolicy.containsVertLayer(getArtFrag(), true))\r\n\t\t\t\t\tvertCmd =new CreateVertLayerAndMoveCmd(movedAFEP.getArtFrag(), oldParentLyr, getArtFrag());\r\n\t\t\t}\r\n\t\t\treturn vertCmd;\r\n\t\t\t\r\n\t\t} else if (getChildren().indexOf(getLayerChild(req.getLocation(), getChildren())) == -1) {\r\n\t\t\t// Move to 'correct' layer\r\n\t\t\tList<Layer> layers = new ArrayList<Layer>();\r\n\t\t\tfor (Object obj : getModelChildren()) {\r\n\t\t\t\tif (obj instanceof Layer) layers.add((Layer)obj);\r\n\t\t\t}\r\n\t\t\tnewLayerNdx = PartitionerSupport.getCorrectIndex(getRootModel(), this.getArtFrag(), movedAFEP.getArtFrag(), layers);\r\n\t\t\t// only create a new layer if one at the new index does not exist yet\r\n\t\t\tif (layers.size() > newLayerNdx && ClosedContainerDPolicy.isShowingChildren(this.getArtFrag())) \r\n\t\t\t\tnewLayer = layers.get(newLayerNdx);\r\n\t\t} else newLayerNdx = getChildren().indexOf(getLayerChild(req.getLocation(), getChildren()))+1;\r\n\r\n\t\tlogger.info(\"moving to TitledArtifactEditPart \" + newLayerNdx);\r\n\t\tArtifactFragment newParentAF = this.getArtFrag();\r\n\t\tArtifactFragment oldParentAF = movedAFEP.getParentTAFEP().getArtFrag();\r\n\t\tif (this instanceof CompositeLayerEditPart)\r\n\t\t\toldParentAF = (ArtifactFragment) getModel();\r\n\t\treturn createMoveCommand(\r\n\t\t\t\tnewParentAF,\r\n\t\t\t\tnewLayer, \r\n\t\t\t\toldParentAF, \r\n\t\t\t\toldParentLyr,\r\n\t\t\t\tmovedAFEP.getArtFrag(), -1, newLayerNdx);\r\n\t}", "public void moveWidgetGroup(double offsetX,\n double offsetY,\n GraphicalTraversableWidget<?> gw)\n {\n // No easier way to do this (hard to make getTopHeader call generic)\n TraversableWidget groupWidget = null;\n\n if (gw instanceof GraphicalMenuWidget<?>) {\n groupWidget = ((AMenuWidget) gw.getModel()).getTopHeader();\n }\n else if ((gw instanceof GraphicalListItem) ||\n (gw instanceof GraphicalGridButton))\n {\n groupWidget = (TraversableWidget) gw.getModel();\n }\n else {\n return;\n }\n\n SimpleWidgetGroup headerGroup = groupWidget.getParentGroup();\n\n // Ensure top-left header doesn't scroll off-screen\n groupWidget = (TraversableWidget) headerGroup.get(0);\n\n DoublePoint p = groupWidget.getShape().getOrigin();\n\n // Prevent the ability to move a widget to an origin less than 0,0\n if (offsetX + p.x < 0.0) {\n offsetX = - p.x;\n }\n if (offsetY + p.y < 0.0) {\n offsetY = - p.y;\n }\n\n Point newOrigin = new Point(0, 0);\n int index = 1;\n int headerCount = headerGroup.size();\n\n do {\n newOrigin.setLocation(PrecisionUtilities.round(p.x + offsetX),\n PrecisionUtilities.round(p.y + offsetY));\n\n frameUI.getWidgetFigure(groupWidget).setLocation(newOrigin);\n\n // Stop when we've moved the last header!\n if (index >= headerCount) {\n break;\n }\n\n groupWidget = (TraversableWidget) headerGroup.get(index++);\n p = groupWidget.getShape().getOrigin();\n } while (true);\n }", "public void redo() {\n for (NoteGroupable noteGroupable : group.getNoteGroupables()) {\n compositionManager.deleteGroupable(noteGroupable);\n }\n compositionManager.addGroupable(group);\n }", "private void setGroupMapping(List<CommandGroupModel> commandGroups) {\n for (CommandGroupModel commandGroupModel : commandGroups) {\n for (FlamingoCommand command : commandGroupModel.getCommandList()) {\n if (!command.isToggle()) {\n throw new IllegalStateException(\"Gallery command must be toggle\");\n }\n if (command.getToggleGroup() != null) {\n throw new IllegalStateException(\n \"Gallery toggle command should not be associated with a toggle group\");\n }\n }\n }\n\n this.commandGroups = new ArrayList<>();\n boolean hasGroupWithNullTitle = false;\n for (CommandGroupModel commandGroupModel : commandGroups) {\n if (commandGroupModel.getTitle() == null) {\n if (hasGroupWithNullTitle) {\n throw new IllegalArgumentException(\n \"Can't have more than one ribbon gallery group with null name\");\n }\n hasGroupWithNullTitle = true;\n }\n\n this.commandGroups.add(commandGroupModel);\n // add all the commands to this gallery (creating a UI representation for each command)\n for (FlamingoCommand command : commandGroupModel.getCommandList()) {\n this.addGalleryCommand(command);\n }\n }\n }", "@Override\r\n\tpublic void drawFeedback(EditorInterface i, GraphicsContext gc) {\n\t\ti.getBoard().draw(gc);\r\n\t\tif (action.contentEquals(\"drag\")) {\r\n\t\t\tgc.strokeOval(ellipse.getLeft(), ellipse.getTop(), ellipse.getRight() - ellipse.getLeft(), ellipse.getBottom() - ellipse.getTop());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void mouseMove(MouseEvent e) {\n\t\t\t\tint x = e.x;\n\t\t\t\tint y = e.y;\n\t\t\t\t\n\t\t\t\tgc.setFont(new Font(mainFrame.getDisplay(),\"楷体\",40,SWT.BOLD));\n\t\t\t\tgc.setAlpha(255);\n\t\t\t\tgc.setForeground(new Color(mainFrame.getDisplay(),255,255,255));\n\t\t\t\t\n\t\t\t\tif(settingRect.contains(x,y)) {\n\t\t\t\t\t gc.drawString(\"设置选项\", 342, 285,true);\n\t\t\t\t\t changeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(helpRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"帮助信息\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(aboutRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"关于游戏\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(exitRect.contains(x,y)) {\n\t\t\t\t\t\tgc.drawString(\"退出游戏\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\telse if(onButton(classicP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"经典模式\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(timeP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"时间模式\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\n\t\t\t\t}\n\t\t\t\telse if(onButton(levelP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"冒险闯关\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse if(onButton(onlineP,x,y)) {\n\t\t\t\t\t\tgc.drawString(\"联网对战\", 342, 285,true);\n\t\t\t\t\t\tchangeCursor(true);\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcanvas.redraw();\n\t\t\t\t\tchangeCursor(false);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}", "public void mouseMoved(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\t\t\n\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\n\t\tif(action.isSelect()) {\n /** If the user clicked on the object, it then performs a translation */\n if((isMovable) && (curr_obj != null)) {\n\t\t\t\tcurr_obj.uTranslate(x - lastPosition[0], y - lastPosition[1]);\n\t\t\t\ttransformPoints.uTranslate(x - lastPosition[0], y - lastPosition[1]);\n\n lastPosition[0] = x;\n\t\t\t\tlastPosition[1] = y;\n /** If the user has clicked on a Transformation Point, it performs the given transformation */\n } else if(isTransformable) {\n\t\t\t\ttransformObject(x, y);\n\t\t\t}\n\n /* Drawing with pencil. This adds a new point to the path */\n } else if(action.isPencil() && (curr_obj != null)) {\n\t\t\t((Path)curr_obj).lineTo(x, y);\n\n /* Drawing a line. This updates the line end point */\n } else if(action.isLine() && (curr_obj != null)) {\n\t\t\tcanvas.remove(curr_obj);\n\t\t\t\n\t\t\tcurr_obj = new Line(0, 0, x - objPosition[0], y - objPosition[1]);\n\t\t\taddGraphicObject( curr_obj, objPosition[0], objPosition[1]);\n\n /* Drawing a rectangle. This updates the rectangle's size and position*/\n } else if(action.isRectangle() && (curr_obj != null)) {\n\t\t\tcanvas.remove(curr_obj);\n\t\t\t\n\t\t\t/* Lower right corner */\n\t\t\tif(x > objPosition[0] && y > objPosition[1]) {\t\n\t\t\t\tcurr_obj = new Rect(x - objPosition[0], y - objPosition[1]);\n\t\t\t\taddGraphicObject( curr_obj, objPosition[0], objPosition[1]);\n\t\t\t\t\n\t\t\t/* Upper right corner*/\n\t\t\t} else if(x > objPosition[0] && y < objPosition[1]) {\n\t\t\t\tcurr_obj = new Rect(x - objPosition[0], objPosition[1] - y);\n\t\t\t\taddGraphicObject( curr_obj, objPosition[0], y);\n\t\t\t\n\t\t\t/* Lower left corner*/\n\t\t\t} else if(x < objPosition[0] && y > objPosition[1]) {\n\t\t\t\tcurr_obj = new Rect(objPosition[0] - x, y - objPosition[1]);\n\t\t\t\taddGraphicObject( curr_obj, x, objPosition[1]);\n\t\t\t\n\t\t\t/* Upper left corner*/\n\t\t\t} else if(x < objPosition[0] && y < objPosition[1]) {\n\t\t\t\tcurr_obj = new Rect(objPosition[0] - x, objPosition[1] - y);\n\t\t\t\taddGraphicObject( curr_obj, x, y);\t\t\t\t\n\t\t\t}\n\n /* Drawing a circle. This updates the circle's diameter */\n } else if(action.isCircle() && (curr_obj != null)) {\n\t\t\tint abs_x = Math.abs(x - objPosition[0]);\n\t\t\tint abs_y = Math.abs(y - objPosition[1]);\n\t\t\t\n\t\t\tcanvas.remove(curr_obj);\n\t\t\t\n\t\t\tif(abs_x > abs_y) {\n\t\t\t\tcurr_obj = new Circle(abs_x);\n\t\t\t} else {\n\t\t\t\tcurr_obj = new Circle(abs_y);\n\t\t\t}\n\t\t\taddGraphicObject( curr_obj, objPosition[0], objPosition[1] );\n\n /* Drawing a ellipse. This updates both ellipse's diameters */\n } else if(action.isEllipse() && (curr_obj != null)) {\n\t\t\tcanvas.remove(curr_obj);\n\t\t\t\n\t\t\t/* Lower right corner */\n\t\t\tif(x > objPosition[0]+1 && y > objPosition[1]+1) {\n\t\t\t\tcurr_obj = new Ellipse((x - objPosition[0])/2, (y - objPosition[1])/2);\n\t\t\t\taddGraphicObject( curr_obj, objPosition[0] + ((x - objPosition[0])/2), objPosition[1] + ((y - objPosition[1])/2));\n\t\t\t\t\n\t\t\t/* Upper right corner*/\n\t\t\t} else if(x > objPosition[0]+1 && y+1 < objPosition[1]) {\t\t\t\t\n\t\t\t\tcurr_obj = new Ellipse((x - objPosition[0])/2, (objPosition[1] - y)/2 );\n\t\t\t\taddGraphicObject( curr_obj, objPosition[0] + ((x - objPosition[0])/2), objPosition[1] - ((objPosition[1] - y)/2));\n\t\t\t\n\t\t\t/* Lower left corner*/\n\t\t\t} else if(x+1 < objPosition[0] && y > objPosition[1]+1) {\n\t\t\t\tcurr_obj = new Ellipse((objPosition[0] - x)/2, (y - objPosition[1])/2);\n\t\t\t\taddGraphicObject( curr_obj, objPosition[0] - ((objPosition[0] - x)/2), objPosition[1] + ((y - objPosition[1])/2));\n\t\t\t\n\t\t\t/* Upper left corner*/\n\t\t\t} else if(x+1 < objPosition[0] && y+1 < objPosition[1]) {\n\t\t\t\tcurr_obj = new Ellipse((objPosition[0] - x)/2, (objPosition[1] - y)/2);\n\t\t\t\taddGraphicObject( curr_obj, objPosition[0] - ((objPosition[0] - x)/2), objPosition[1] - ((objPosition[1] - y)/2));\t\t\t\t\n\t\t\t}\n\n /** Drawing a TextBox. This updates the TextBox's size and position. */\n } else if(action.isTextBox() && (curr_obj != null)) {\n\t\t\tcanvas.remove(curr_obj);\n\n\t\t\t/* Lower right corner */\n\t\t\tif(x > objPosition[0] && y > objPosition[1]) {\n\t\t\t\tcurr_obj = new com.objetdirect.tatami.client.gfx.TextBox(x - objPosition[0], y - objPosition[1], null);\n\t\t\t\taddTextBox( curr_obj, objPosition[0], objPosition[1]);\n\n\t\t\t/* Upper right corner*/\n\t\t\t} else if(x > objPosition[0] && y < objPosition[1]) {\n\t\t\t\tcurr_obj = new com.objetdirect.tatami.client.gfx.TextBox(x - objPosition[0], objPosition[1] - y, null);\n\t\t\t\taddTextBox( curr_obj, objPosition[0], y);\n\n\t\t\t/* Lower left corner*/\n\t\t\t} else if(x < objPosition[0] && y > objPosition[1]) {\n\t\t\t\tcurr_obj = new com.objetdirect.tatami.client.gfx.TextBox(objPosition[0] - x, y - objPosition[1], null);\n\t\t\t\taddTextBox( curr_obj, x, objPosition[1]);\n\n\t\t\t/* Upper left corner*/\n\t\t\t} else if(x < objPosition[0] && y < objPosition[1]) {\n\t\t\t\tcurr_obj = new com.objetdirect.tatami.client.gfx.TextBox(objPosition[0] - x, objPosition[1] - y, null);\n\t\t\t\taddTextBox( curr_obj, x, y);\n\t\t\t}\n\n /** Drawing a polyline, this updates the current point's position */\n } else if(this.action.isPolyline() && (this.curr_obj != null)) {\n if(DOM.eventGetButton(event) == Event.BUTTON_LEFT) {\n\n this.canvas.remove(this.curr_obj);\n this.curr_obj = new Path(this.currentPath);\n ((Path)this.curr_obj).smoothCurveTo( x, y, lastPosition[0], lastPosition[1]);\n this.addGraphicObject(this.curr_obj, 0, 0);\n } else {\n this.canvas.remove(this.curr_obj);\n this.curr_obj = new Path(this.currentPath);\n ((Path)this.curr_obj).lineTo(x, y);\n this.addGraphicObject(this.curr_obj, 0, 0);\n }\n }\n }", "public boolean movePipes()\n {\n boolean addAnotherPipe = false;\n for(int i = 0; i < pipes.size(); i++)\n {\n PipeComponent currentPipe = pipes.get(i);\n currentPipe.movePipe();\n\n if(i + 1 == pipes.size())\n {\n int currentPipeX = currentPipe.getPipeX();\n if(currentPipeX < 400)\n {\n addAnotherPipe = true;\n }\n }\n }\n repaint();\n return addAnotherPipe;\n }", "@Override\n protected void execute(CommandSender sender, List<String> args) throws InsufficientArgumentException, UserNotFoundException, InsufficientArgumentTypeException, TrackNotFoundException, TrackGroupNotDefinedException, TrackEndReachedException, TrackNoGroupsDefinedException, TrackStartReachedException {\n\n if (args.size() >= 1) {\n\n User user = UserManager.getUser(args.get(0));\n Track track = null;\n\n // If no track is supplied, use the default track\n // Otherwise, match a track to the name provided\n if (args.size() == 1) {\n for (Track t : GroupManager.getTracks()) {\n if (t.isDefaultTrack()) {\n track = t;\n break;\n }\n }\n } else if (args.size() == 2) {\n track = GroupManager.getTrack(args.get(1));\n }\n\n // Ensures the user exists\n if (user != null) {\n\n // Ensures the track exists\n if (track != null) {\n\n // Loops through the player's current groups, looking for the one in the specified track\n // This is the group the player will be moved from\n Group toChange = null;\n for (Group group : user.getGroups()) {\n if (group.isDefault()) continue;\n if (track.getGroups().contains(group)) {\n if (toChange != null) {\n // The user belong to multiple groups in the same track, so demotion cannot happen automatically.\n sender.sendMessage(\"§c§l[MP] §c§n\" + user.getName() + \"§c belongs to multiple groups in §n\" + track.getName() + \"§c.\");\n return;\n }\n toChange = group;\n }\n }\n\n // A group to change has been found\n if (toChange != null) {\n\n // Get the group before this one in the track and remove the current group\n Group previous = track.getPrevious(toChange);\n\n UserMembershipManipulationEvent evt = new UserMembershipManipulationEvent(user, previous, UserMembershipManipulationEvent.GroupAction.ADD);\n Bukkit.getPluginManager().callEvent(evt);\n\n if (evt.isCancelled()) {\n sender.sendMessage(\"§c§l[MP] §cGroup manipulation prevented by 3rd party plugin.\");\n return;\n }\n\n previous = evt.getGroup();\n\n evt = new UserMembershipManipulationEvent(user, toChange, UserMembershipManipulationEvent.GroupAction.REMOVE);\n Bukkit.getPluginManager().callEvent(evt);\n\n if (evt.isCancelled()) {\n sender.sendMessage(\"§c§l[MP] §cGroup manipulation prevented by 3rd party plugin.\");\n return;\n }\n\n toChange = evt.getGroup();\n\n user.getGroups().remove(toChange);\n\n // If the one before it isn't default, add them to it\n if (!previous.isDefault()) {\n user.getGroups().add(previous);\n }\n\n sender.sendMessage(\"§a§l[MP] §a§n\" + user.getName() + \"§a was demoted to §n\" + previous.getName() + \"§a from §n\" + toChange.getName() + \"§a.\");\n\n // Save the user\n final User finalUser = user;\n MelonPerms.doAsync(() -> MelonPerms.getDataStore().saveUser(finalUser));\n\n } else {\n sender.sendMessage(\"§c§l[MP] §c§n\" + user.getName() + \"§c doesn't belong to any groups in §n\" + track.getName() + \"§c.\");\n }\n\n } else {\n if (args.size() == 2) {\n throw new TrackNotFoundException(args.get(1));\n } else {\n sender.sendMessage(\"§c§l[MP]§c You have no default track, please specify one.\");\n }\n }\n\n } else {\n throw new UserNotFoundException(args.get(0));\n }\n\n } else {\n throw new InsufficientArgumentException(1);\n }\n\n }", "@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}", "public void interactWhenSteppingOn() {\r\n\t\t\r\n\t}", "public boolean setLightForGroupingToGroup(LinkedList<Light> group) {\n Log.i(tag, \"setLightForGroupingToGroup\");\n if (group.contains(this.lightForGrouping)) {\n Log.i(tag, \"dropped into its own group, dont do anything\");\n } else {\n if ((this.lightForGrouping instanceof DreamScreen) && ((Light) group.get(0)).getGroupNumber() != 0) {\n Iterator it = group.iterator();\n while (true) {\n if (it.hasNext()) {\n if (((Light) it.next()) instanceof DreamScreen) {\n Toast.makeText(this, \"Warning, multiple DreamScreens in the same group may cause unexpected behavior.\", 1).show();\n break;\n }\n } else {\n break;\n }\n }\n }\n Iterator it2 = this.groups.iterator();\n while (it2.hasNext()) {\n ((LinkedList) it2.next()).remove(this.lightForGrouping);\n }\n this.lightForGrouping.setGroupName(((Light) group.get(0)).getGroupName(), false);\n this.lightForGrouping.setGroupNumber(((Light) group.get(0)).getGroupNumber(), false);\n if (this.lightForGrouping instanceof DreamScreen) {\n group.addFirst(this.lightForGrouping);\n } else {\n group.add(this.lightForGrouping);\n }\n if (this.currentLight == this.lightForGrouping && this.broadcastingToGroup) {\n setToolbarTitle();\n }\n for (int i = 0; i < this.groups.size(); i++) {\n if (i != 0 && ((LinkedList) this.groups.get(i)).isEmpty()) {\n this.groups.remove(i);\n Log.i(tag, \"removed group\");\n }\n }\n redrawDrawerLinearLayout();\n highlightDrawerSelection();\n if ((this.currentLight instanceof SideKick) || (this.currentLight instanceof Connect)) {\n Fragment currentFragment = getSupportFragmentManager().findFragmentById(R.id.frameLayout);\n if (currentFragment instanceof DreamScreenFragment) {\n Log.i(tag, \"redrawing currentLight sidekick dreamscreenfragment\");\n ((DreamScreenFragment) currentFragment).redrawFragment();\n }\n }\n }\n return true;\n }", "public final void rule__Commands__Group_0__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:999:1: ( rule__Commands__Group_0__1__Impl rule__Commands__Group_0__2 )\n // InternalWh.g:1000:2: rule__Commands__Group_0__1__Impl rule__Commands__Group_0__2\n {\n pushFollow(FOLLOW_11);\n rule__Commands__Group_0__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Commands__Group_0__2();\n\n state._fsp--;\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 }", "private void makeMove(){\r\n\t\tif(cornerColorIs(GREEN)){\r\n\t\t\tif(noBeepersPresent()){\r\n\t\t\t\tmove();\r\n\t\t\t\tpaintCorner(GREEN);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tif(noBeepersPresent()){\r\n\t\t\t\tmove();\r\n\t\t\t\tpaintCorner(RED);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tif(()) {\r\n//\t\t if(cornerColorIs(GREEN)) {\r\n//\t\t move();\r\n//\t\t paintCorner(GREEN);\r\n//\t\t } else {\r\n//\t\t move();\r\n//\t\t paintCorner(RED);\r\n//\t\t }\r\n//\t\t}noBeepersPresent\r\n\t}", "private void feedback_output(){\r\n\t\tif(up){controller_computer.gui_computer.PressedBorderUp();}\r\n\t\tif(down){controller_computer.gui_computer.PressedBorderDown();}\r\n\t\tif(right){controller_computer.gui_computer.PressedBorderRight();}\r\n\t\tif(left){controller_computer.gui_computer.PressedBorderLeft();}\r\n\t}", "public void mouseDragged(MouseEvent e) {\n\t\tif(currentShape != null){\n\t\t\tif(e.getModifiers() == MouseEvent.BUTTON1_MASK) {\n\t\t\t\tcurrentShape.setOrigin(e.getPoint());\n\t\t\t\tdrawing.repaint();\n\t\t\t} else {\n\t\t\t\tif(e.getModifiers() == MouseEvent.BUTTON3_MASK) {\n\t\t\t\t\tfor(Shape s : drawing.groupedShapes){\n\t\t\t\t\t\tif(s.isOn(e.getPoint())){\n\t\t\t\t\t\t\tfor(Shape sh : drawing.groupedShapes){\n\t\t\t\t\t\t\t\t//int px = (int) e.getPoint().getX();\n\t\t\t\t\t\t\t\t//int py = (int) e.getPoint().getY();\n\t\t\t\t\t\t\t\t//int sx = (int) sh.getOrigin().getX();\n\t\t\t\t\t\t\t\t//int sy = (int) sh.getOrigin().getY();\n\t\t\t\t\t\t\t\tPoint p = new Point(e.getPoint());\n\t\t\t\t\t\t\t\tsh.setOrigin(p);\n\t\t\t\t\t\t\t\tdrawing.repaint();\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}\n\t\t\t}\n\t\t}\n\t}", "public final void rule__Commands__Group_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:940:1: ( rule__Commands__Group_1__0__Impl rule__Commands__Group_1__1 )\n // InternalWh.g:941:2: rule__Commands__Group_1__0__Impl rule__Commands__Group_1__1\n {\n pushFollow(FOLLOW_9);\n rule__Commands__Group_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Commands__Group_1__1();\n\n state._fsp--;\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 }", "private void arrangeIt(ActionEvent actionEvent) {\n\t\tfor (EditorSession es : MainFrame.getEditorSessions()) {\n\t\t\tif (es.getGraph() != null) {\n\t\t\t\tif ((actionEvent.getModifiers() & ActionEvent.SHIFT_MASK) > 0)\n\t\t\t\t\trestoreFrames();\n\t\t\t\tif ((actionEvent.getModifiers() & ActionEvent.CTRL_MASK) > 0)\n\t\t\t\t\ticonizeFrames();\n\n\t\t\t\tDimension desktopdim = MainFrame.getInstance().getDesktop()\n\t\t\t\t\t\t\t\t\t.getSize();\n\n\t\t\t\tint number = getOpenFrameCnt(), cnt = 0;\n\n\t\t\t\tif (number == 0)\n\t\t\t\t\tnumber = 1;\n\n\t\t\t\t// calculate frame positions\n\n\t\t\t\tswitch (order) {\n\t\t\t\t\tcase HORIZONTAL:\n\t\t\t\t\t\tfor (JInternalFrame jf : MainFrame.getInstance()\n\t\t\t\t\t\t\t\t\t\t\t.getDesktop().getAllFrames()) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tjf.setMaximum(false);\n\t\t\t\t\t\t\t} catch (PropertyVetoException e) {\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tjf.setBounds(desktopdim.width * (cnt++) / number,\n\t\t\t\t\t\t\t\t\t\t\t\t0, desktopdim.width / number,\n\t\t\t\t\t\t\t\t\t\t\t\tdesktopdim.height);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase VERTICAL:\n\t\t\t\t\t\tfor (JInternalFrame jf : MainFrame.getInstance()\n\t\t\t\t\t\t\t\t\t\t\t.getDesktop().getAllFrames()) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tjf.setMaximum(false);\n\t\t\t\t\t\t\t} catch (PropertyVetoException e) {\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tjf.setBounds(0, desktopdim.height * (cnt++)\n\t\t\t\t\t\t\t\t\t\t\t\t/ number, desktopdim.width,\n\t\t\t\t\t\t\t\t\t\t\t\tdesktopdim.height / number);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase QUADRATIC:\n\t\t\t\t\t\tint inRow = (int) Math.ceil(Math.sqrt(number));\n\t\t\t\t\t\tint rows = (int) Math.ceil((double) number\n\t\t\t\t\t\t\t\t\t\t\t/ (double) inRow);\n\t\t\t\t\t\tint row = 0,\n\t\t\t\t\t\tcol = 0;\n\t\t\t\t\t\tfor (JInternalFrame jf : MainFrame.getInstance()\n\t\t\t\t\t\t\t\t\t\t\t.getDesktop().getAllFrames()) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tjf.setMaximum(false);\n\t\t\t\t\t\t\t} catch (PropertyVetoException e) {\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tjf.setBounds(desktopdim.width * (col + 0) / inRow,\n\t\t\t\t\t\t\t\t\t\t\t\t(row + 0) * desktopdim.height / rows,\n\t\t\t\t\t\t\t\t\t\t\t\tdesktopdim.width / inRow, desktopdim.height\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/ rows);\n\t\t\t\t\t\t\tcol++;\n\t\t\t\t\t\t\tif (col >= inRow) {\n\t\t\t\t\t\t\t\tcol = 0;\n\t\t\t\t\t\t\t\trow++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "public final void rule__Commands__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:886:1: ( rule__Commands__Group__0__Impl rule__Commands__Group__1 )\n // InternalWh.g:887:2: rule__Commands__Group__0__Impl rule__Commands__Group__1\n {\n pushFollow(FOLLOW_13);\n rule__Commands__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__Commands__Group__1();\n\n state._fsp--;\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 }", "private void doMoveIfPossible() {\r\n if (selected != null) {\r\n if (picked != null) {\r\n if (picked.doMove(selected.getX(), selected.getY())) {\r\n client1.write(ClientMessages.Move, picked.getPositionInArray(), selected.getX(), selected.getY());\r\n client2.write(ClientMessages.Move, picked.getPositionInArray(), selected.getX(), selected.getY());\r\n }\r\n if (picked.doCapture(selected.getX(), selected.getY())) {\r\n client1.write(ClientMessages.Capture, picked.getPositionInArray(), selected.getX(), selected.getY());\r\n client2.write(ClientMessages.Capture, picked.getPositionInArray(), selected.getX(), selected.getY());\r\n }\r\n CastlingMove castl;\r\n if (picked.getClass() == King.class && ((King) picked).doCastling(castl = getCastlingMove())) {\r\n client1.write(ClientMessages.Castling, castl.getRook().getPositionInArray(), castl.getRookX(), selected.getX());\r\n client2.write(ClientMessages.Castling, castl.getRook().getPositionInArray(), castl.getRookX(), selected.getX());\r\n }\r\n }\r\n }\r\n }", "protected void internalMove(IMoveShapeContext context) {\n \t\tShape shapeToMove = context.getShape();\n \t\tContainerShape oldContainerShape = context.getSourceContainer();\n \t\tContainerShape newContainerShape = context.getTargetContainer();\n \n \t\tint x = context.getX();\n \t\tint y = context.getY();\n \n \t\tif (oldContainerShape != newContainerShape) {\n \t\t\t// the following is a workaround due to an MMR bug\n \t\t\tif (oldContainerShape != null) {\n \t\t\t\tCollection<Shape> children = oldContainerShape.getChildren();\n \t\t\t\tif (children != null) {\n \t\t\t\t\tchildren.remove(shapeToMove);\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tshapeToMove.setContainer(newContainerShape);\n \t\t\tif (shapeToMove.getGraphicsAlgorithm() != null) {\n \t\t\t\tGraphiti.getGaService().setLocation(shapeToMove.getGraphicsAlgorithm(), x, y,\n \t\t\t\t\t\tavoidNegativeCoordinates());\n \t\t\t}\n \t\t} else { // move within the same container\n \t\t\tif (shapeToMove.getGraphicsAlgorithm() != null) {\n \t\t\t\tGraphiti.getGaService().setLocation(shapeToMove.getGraphicsAlgorithm(), x, y,\n \t\t\t\t\t\tavoidNegativeCoordinates());\n \t\t\t}\n \t\t}\n \t}", "private void createGroupCommand(Command root){\n\t\tif(codeReader.hasNext(END_GROUP))\n\t\t\tthrow new SLogoException(\"No arguments specified in grouping.\");\n\t\twhile(!codeReader.hasNext(END_GROUP)) {\n\t\t\ttry {\n\t\t\t\thandleSpecialCases(root);\n\t\t\t\tString s = codeReader.next();\n\t\t\t\troot.addChild(parseCommand(s));\n\t\t\t}\n\t\t\tcatch(NoSuchElementException n) {\n\t\t\t\tthrow new SLogoException(\"Unclosed Parenthesis.\");\n\t\t\t}\n\t\t}\n\t\tcodeReader.next();\n\t}", "public void advance () {\n while (currentGroup == null ||\n (!actionIter.hasNext() && groupIter.hasNext()))\n {\n currentGroup = groupIter.next();\n actionIter = actions.iterator();\n }\n // now get the next action (assuming we're in valid state)\n currentAction = (actionIter.hasNext() ? actionIter.next() : null);\n }", "public void actionPerformed(ActionEvent event) {\n/* 269 */ String command = event.getActionCommand();\n/* 270 */ if (command.equals(\"GridStroke\")) {\n/* 271 */ attemptGridStrokeSelection();\n/* */ }\n/* 273 */ else if (command.equals(\"GridPaint\")) {\n/* 274 */ attemptGridPaintSelection();\n/* */ }\n/* 276 */ else if (command.equals(\"AutoRangeOnOff\")) {\n/* 277 */ toggleAutoRange();\n/* */ }\n/* 279 */ else if (command.equals(\"MinimumRange\")) {\n/* 280 */ validateMinimum();\n/* */ }\n/* 282 */ else if (command.equals(\"MaximumRange\")) {\n/* 283 */ validateMaximum();\n/* */ }\n/* 285 */ else if (command.equals(\"AutoTickOnOff\")) {\n/* 286 */ toggleAutoTick();\n/* */ }\n/* */ else {\n/* */ \n/* 290 */ super.actionPerformed(event);\n/* */ } \n/* */ }", "@Override\n\tpublic void moveState(JLabel label, int x1, int y1, int x2, int y2) {\n\n\t}", "@Override\n\tpublic void excute() {\n\t\tmoveEvent.move(commandinfo.getValue() * 200);\n\t}", "@Override\r\n public void onGroupExpand(int groupPosition) {\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "public void act() {\n boolean willMove = canMove();\n if (isEnd && !hasShown) {\n String msg = stepCount.toString() + \" steps\";\n JOptionPane.showMessageDialog(null, msg);\n hasShown = true;\n } else if (willMove) {\n move();\n stepCount++;\n }\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "protected abstract Command getMoveChildrenCommand(\n ChangeBoundsRequest request);", "public final void rule__Commands__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:913:1: ( rule__Commands__Group__1__Impl )\n // InternalWh.g:914:2: rule__Commands__Group__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Commands__Group__1__Impl();\n\n state._fsp--;\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 }", "@Override\n public void onGroupExpand(int groupPosition) {\n\n }", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new GroupIntakeDefault());\n }", "public void selectOrMove(ME_ENUM me_enum, MouseEvent me) {\n if (me.getButton() != MouseEvent.BUTTON1 && ui_inter != UI_INTERACTION.SELECTING && ui_inter != UI_INTERACTION.MOVING) return;\n RenderContext myrc = (RenderContext) rc;\n if (myrc != null) {\n switch (me_enum) {\n case PRESSED: Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n\n\t\t // Figure what's under the mouse\n Set<String> under_mouse = underMouse(me);\n\n // If what's under the mouse is already selected, then cause it to be moving\n\t\t if (Utils.overlap(sel,under_mouse)) { ui_inter = UI_INTERACTION.MOVING; \n\t\t moving_set = sel; }\n else if (under_mouse.size() > 0 && \n\t\t (last_shft_down || last_ctrl_down)) { setOperation(under_mouse); }\n\t\t else if (under_mouse.size() > 0) { ui_inter = UI_INTERACTION.MOVING; \n\t\t getRTParent().setSelectedEntities(under_mouse);\n\t\t moving_set = under_mouse; }\n\t\t else { ui_inter = UI_INTERACTION.SELECTING; }\n\n\t\t initializeDragVars(me);\n\n\t\t repaint();\n\t\t break;\n case DRAGGED: updateDragVars(me, ui_inter == UI_INTERACTION.MOVING); repaint(); break;\n\tcase RELEASED: updateDragVars(me, ui_inter == UI_INTERACTION.MOVING);\n boolean no_move = false;\n\t\t if (ui_inter == UI_INTERACTION.MOVING) {\n double dx = m_wx1 - m_wx0, dy = m_wy1 - m_wy0;\n if (dx != 0 || dy != 0) {\n Iterator<String> it = moving_set.iterator();\n while (it.hasNext()) {\n String entity = it.next();\n Point2D pt = entity_to_wxy.get(entity);\n entity_to_wxy.put(entity, new Point2D.Double(pt.getX() + dx, pt.getY() + dy));\n transform(entity);\n }\n getRTComponent().render();\n } else no_move = true;\n\t\t } \n if (ui_inter == UI_INTERACTION.SELECTING || no_move) {\n int x0 = m_x0 < m_x1 ? m_x0 : m_x1, y0 = m_y0 < m_y1 ? m_y0 : m_y1,\n\t\t\t dx = (int) Math.abs(m_x1 - m_x0), dy = (int) Math.abs(m_y1 - m_y0);\n\t\t\t if (dx == 0) dx = 1; if (dy == 0) dy = 1;\n\t\t\t Rectangle2D rect = new Rectangle2D.Double(x0,y0,dx,dy);\n\n\t\t Set<String> new_sel = new HashSet<String>();\n\t\t Iterator<String> it = myrc.node_to_geom.keySet().iterator();\n\t\t\t while (it.hasNext()) {\n\t\t\t String node = it.next(); Shape shape = myrc.node_to_geom.get(node);\n\t\t\t if (rect.intersects(shape.getBounds())) new_sel.addAll(myrc.node_coord_set.get(node));\n\t\t\t }\n setOperation(new_sel);\n\t\t }\n ui_inter = UI_INTERACTION.NONE;\n\t\t repaint(); break;\n case CLICKED: setOperation(underMouse(me));\n repaint(); break;\n\tcase MOVED:\n\t\tbreak;\n\tcase WHEEL:\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n }\n }\n }", "public void toolGroupUpdated(ToolGroupEvent evt) {\n }", "public void movePacmans() {\n\t\ttry {\n\t\t\tgz.redraw();\n\t\t}\n\t\tcatch(NullPointerException npe) {\n\t\t\tgz.pauseGame();\n\t\t}\n\t}", "public void processClick(MouseEvent e, Shape[] shapes) {\n Point location = new Point(e.getX(), e.getY());\n if (data.getPlayer() == 0) {\n for (int i = 0; i < 6; i++) {\n if (shapes[i].contains(location)) {\n data.move(i);\n }\n }\n } else {\n for (int i = 6; i < 12; i++) {\n if (shapes[i].contains(location)) {\n data.move(i);\n }\n }\n }\n }", "@Override\n public void onGroupCollapse(int groupPosition) {\n }", "private void createTransformPoints(Rectangle bnds, GraphicObject curr) {\n double degreesAngle, radiansAngle;\n Rectangle novo = bnds;\n\n this.transformPoints = new VirtualGroup();\n\n degreesAngle = curr.getRotation();\n\n /** If the object is rotated, we need to rotate i back to the angle 0 in order to get valid boundaries. Tatami doesn't rotates the object's bounds, instead it gives wrong bounds so we need to perform this operation and rotate the bounds on our side. */\n if(degreesAngle != 0.0) {\n curr.uRotate((float) (degreesAngle * -1.0));\n novo = curr.getBounds();\n }\n radiansAngle = (degreesAngle * (2.0*Math.PI))/360.0;\n \n addTransformPoint(novo.getCenterX(), novo.getY()+novo.getHeight()+(novo.getHeight()/4), 0, curr, radiansAngle);\n addTransformPoint(novo.getX(), novo.getY(), 1, curr, radiansAngle);\n addTransformPoint(novo.getCenterX(), novo.getY(), 2, curr, radiansAngle);\n addTransformPoint(novo.getX() + novo.getWidth(), novo.getY(), 3, curr, radiansAngle);\n addTransformPoint(novo.getX(), novo.getCenterY(), 4, curr, radiansAngle);\n addTransformPoint(novo.getX() + novo.getWidth(), novo.getCenterY(), 5, curr, radiansAngle);\n addTransformPoint(novo.getX(), novo.getY() + novo.getHeight(), 6, curr, radiansAngle);\n addTransformPoint(novo.getCenterX(), novo.getY() + novo.getHeight(), 7, curr, radiansAngle);\n addTransformPoint(novo.getX() + novo.getWidth(), novo.getY() + novo.getHeight(), 8, curr, radiansAngle);\n\n /** This creates the line between the rotation point and the object */\n Line aux2 = new Line((int)(this.transformPointers[Action.SOUTH].getX()+2), (int)(this.transformPointers[Action.SOUTH].getY()+2), (int)(this.transformPointers[Action.ROTATE].getX()), (int)(this.transformPointers[Action.ROTATE].getY()));\n aux2.setStroke( Color.GRAY, 1);\n this.transformPoints.add(aux2);\n\n this.canvas.add(this.transformPoints, 0, 0);\n\n this.transformPointers[Action.SOUTH].moveToFront();\n this.transformPointers[Action.ROTATE].moveToFront();\n\n if(degreesAngle != 0.0) {\n curr.uRotate((float)degreesAngle);\n }\n }", "private void helperSwitchMoveOn()\r\n\t{\r\n\t\tFormMainMouse.isSampleMovable = true;\r\n\r\n\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_MOVE_ACTIVE);\r\n\r\n\t\tmainFormLink.getComponentToolbar().getComponentButtonMove().setIcon(iconButton);\r\n\t}", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "@Override\n public void onGroupExpand(int groupPosition) {\n }", "public void undo() {\n compositionManager.ungroup(group);\n }", "private void updatePosition() {\n position.add(deltaPosition);\n Vector2[] points = getRotatedPoints();\n\n for (Vector2 point : points) {\n if (point.getX() < bound.getX() || point.getX() > bound.getX() + bound.getWidth()) { //If the point is outside of the bounds because of X\n position.addX(-deltaPosition.getX() * 2); //Undo the move so it is back in bounds\n deltaPosition.setX(-deltaPosition.getX()); //Make the direction it is going bounce to the other direction\n break;\n }\n if (point.getY() < bound.getY() || point.getY() > bound.getY() + bound.getHeight()) { //If the point is outside of the bounds because of Y\n position.addY(-deltaPosition.getY() * 2); //Undo the move so it is back in bounds\n deltaPosition.setY(-deltaPosition.getY()); //Make the direction it is going bounce to the other direction\n break;\n }\n }\n deltaPosition.scale(.98);\n }", "boolean prepareToMove();", "public void play(MouseEvent e) {\n\t\tLogic.curComp = (JLabel) e.getComponent();\n\t\tString name = Logic.curComp.getName();\n\t\tSystem.out.println(name);\n\t\tint posx = (int) name.charAt(0) - 48;\n\t\tint posy = (int) name.charAt(1) - 48;\n\t\tint piece = Logic.arr[posx][posy]; \n\t\t\n\t\tif (moveRed(piece)) { // Checks turn && target piece is pawn or king\n\t\t\tjumping = false;\n\t\t\tprepare(posx, posy, piece, null);\n\t\t} else if (moveBlack(piece)) { // Checks turn && target piece is pawn or king\n\t\t\tjumping = false;\n\t\t\tprepare(posx, posy, piece, \"black\");\n\t\t} else if (validate(posx, posy, Playboard.red, Playboard.rKing , Playboard.redSanta, Playboard.redSKing) && finishRedMoves(piece)){ // Checks that previous component was pawn or king and that it's a legal move\n\t\t\tapplyMove(name, posx, posy, piece);\n\t\t\tnext();\n\t\t} else if (validate(posx, posy, Playboard.black, Playboard.bKing, Playboard.blackSanta, Playboard.blackSKing) && finishBlackMoves(piece)){ // Checks that previous component was pawn or king and that it's a legal move\n\t\t\tapplyMove(name, posx, posy, piece);\n\t\t\tnext();\n\t\t} else {\n\t\t\tSystem.out.println(\"Invalid move\");\n\t\t}\n\t}", "@Override\n public void onGroupCollapse(int groupPosition) {\n\n }", "public void moveCursor (int distance, boolean direction) {\n int angle;\n if (direction)\n angle = myCursor.getDirection();\n else\n angle = (myCursor.getDirection() + 180) % 360;\n\n Point2D endPoint = getEndPoint(angle, distance, myCursor.getPosition());\n //System.out.println(endPoint.getX()+\" , \"+endPoint.getY());\n if (myCursor.isPlot()) {\n //draw(myCursor.getPosition(), endPoint, myCursor.getSize());\n currentPath.getElements().add(new LineTo(endPoint.getX(), endPoint.getY()));\n currentPath.setStrokeWidth(myCursor.getSize());} //TODO tbr\n else {\n currentPath.getElements().add(new MoveTo(endPoint.getX(), endPoint.getY()));\n }\n\n myCursor.setPosition(endPoint);\n\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t gd.getTank().move();\n\t\t}", "@Override\n\tprotected void execute() {\n\t\t\n\t\tif (RobotMap.hookEncoder.getRaw() < Robot.climbingEncoderPos1) {\n\t\t\t// already reach the highest position, stop all the motors\n\t\t\thookMotor1.set(ControlMode.PercentOutput, 0);\n\t\t\thookMotor2.set(ControlMode.PercentOutput, 0);\n\t\t\tSystem.out.println(\"Stop climbing\");\n\t\t}else if((RobotMap.hookEncoder.getRaw() > Robot.climbingEncoderPos2)) {\n\t\t\thookMotor1.set(ControlMode.PercentOutput, -1);\n\t\t\thookMotor2.set(ControlMode.PercentOutput, -1);\n\t\t\tSystem.out.println(\"Climbing again\");\n\t\t}\n\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n public void onGroupCollapse(int groupPosition) {\n\n }", "@Override\n public void onGroupCollapse(int groupPosition) {\n\n }", "@Override\n public void onGroupCollapse(int groupPosition) {\n\n }", "public void processCommand() {\n if (cam != null) {\n // No commands if no draw canvas to retrieve them from!\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_UP) || StdDraw.isKeyPressed(KeyEvent.VK_UP))\n this.setR(this.getR().minus(this.getFacingVector().times(1e8)));\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_DOWN) || StdDraw.isKeyPressed(KeyEvent.VK_DOWN)) \n this.setR(this.getR().plus(this.getFacingVector().times(1e8)));\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_LEFT) || StdDraw.isKeyPressed(KeyEvent.VK_LEFT)) \n this.rot += FOV_INCREMENT;\n if (this.cam.getDr().isKeyPressed(KeyEvent.VK_RIGHT) || StdDraw.isKeyPressed(KeyEvent.VK_RIGHT)) \n this.rot -= FOV_INCREMENT; \n }\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n ArrayList<Integer> shape_index = new ArrayList<Integer>();\r\n if(selected_shape.length()==0){\r\n instruction.setText(\"Please select an object before cutting operation\");\r\n }else{\r\n switch(selected_shape){\r\n case \"rec\":\r\n int begin_index = selected_object.get(0);\r\n if(rec_points.size()>4){\r\n for (int i = 0; i < 4; i++) {\r\n rec_points.remove(begin_index);\r\n }\r\n }else{\r\n rec_points.clear();\r\n }\r\n\r\n rec_colors.remove(selected_element_index);\r\n for (int i = 0; i < progress_stack.size(); i++) {\r\n if(progress_stack.get(i).equals(\"rec\")){\r\n shape_index.add(i);\r\n }\r\n }\r\n int cut_shape_index = shape_index.get(selected_element_index);\r\n progress_stack.remove(cut_shape_index);\r\n break;\r\n\r\n case \"squ\":\r\n begin_index = selected_object.get(0);\r\n if(squ_points.size()>4){\r\n for (int i = 0; i < 4; i++) {\r\n squ_points.remove(begin_index);\r\n }\r\n }else{\r\n squ_points.clear();\r\n }\r\n squ_colors.remove(selected_element_index);\r\n for (int i = 0; i < progress_stack.size(); i++) {\r\n if(progress_stack.get(i).equals(\"squ\")){\r\n shape_index.add(i);\r\n }\r\n }\r\n cut_shape_index = shape_index.get(selected_element_index);\r\n progress_stack.remove(cut_shape_index);\r\n break;\r\n\r\n case \"ell\":\r\n begin_index = selected_object.get(0);\r\n if(ell_points.size()>4){\r\n for (int i = 0; i < 4; i++) {\r\n ell_points.remove(begin_index);\r\n }\r\n }else{\r\n ell_points.clear();\r\n }\r\n ell_colors.remove(selected_element_index);\r\n for (int i = 0; i < progress_stack.size(); i++) {\r\n if(progress_stack.get(i).equals(\"ell\")){\r\n shape_index.add(i);\r\n }\r\n }\r\n cut_shape_index = shape_index.get(selected_element_index);\r\n progress_stack.remove(cut_shape_index);\r\n break;\r\n\r\n case \"cir\":\r\n begin_index = selected_object.get(0);\r\n if(cir_points.size()>4){\r\n for (int i = 0; i < 4; i++) {\r\n cir_points.remove(begin_index);\r\n }\r\n }else{\r\n cir_points.clear();\r\n }\r\n cir_colors.remove(selected_element_index);\r\n for (int i = 0; i < progress_stack.size(); i++) {\r\n if(progress_stack.get(i).equals(\"cir\")){\r\n shape_index.add(i);\r\n }\r\n }\r\n cut_shape_index = shape_index.get(selected_element_index);\r\n progress_stack.remove(cut_shape_index);\r\n break;\r\n\r\n case \"str\":\r\n begin_index = selected_object.get(0);\r\n if(str_points.size()>4){\r\n for (int i = 0; i < 4; i++) {\r\n str_points.remove(begin_index);\r\n }\r\n }else{\r\n str_points.clear();\r\n }\r\n str_colors.remove(selected_element_index);\r\n for (int i = 0; i < progress_stack.size(); i++) {\r\n if(progress_stack.get(i).equals(\"str\")){\r\n shape_index.add(i);\r\n }\r\n }\r\n cut_shape_index = shape_index.get(selected_element_index);\r\n progress_stack.remove(cut_shape_index);\r\n break;\r\n\r\n }\r\n }\r\n\r\n\r\n //repaint all shapes\r\n\r\n g.setColor(Color.WHITE);\r\n g.fillRect(0,0,1200, 800);\r\n canvas.repaint();\r\n System.out.println(progress_stack);\r\n System.out.println(rec_points);\r\n repaint_shapes(\"rec\", rec_colors, rec_points);\r\n repaint_shapes(\"squ\", squ_colors, squ_points);\r\n repaint_shapes(\"ell\", ell_colors, ell_points);\r\n repaint_shapes(\"cir\", cir_colors, cir_points);\r\n repaint_shapes(\"str\", str_colors, str_points);\r\n\r\n canvas.repaint();\r\n }", "@Override\r\n public void act() {\r\n boolean willMove = canMove();\r\n if (isEnd) {\r\n // to show step count when reach the goal\r\n if (!hasShown) {\r\n String msg = stepCount.toString() + \" steps\";\r\n JOptionPane.showMessageDialog(null, msg);\r\n hasShown = true;\r\n }\r\n } else if (willMove) {\r\n move();\r\n // increase step count when move\r\n stepCount++;\r\n // 把当前走过的位置加入栈顶的arrayList\r\n crossLocation.peek().add(getLocation());\r\n // 当前方向的概率+1\r\n probablyDir[getDirection() / 90]++;\r\n } else if (!willMove) {\r\n // 这时候必须一步一步返回栈顶arrayList的开头\r\n ArrayList<Location> curCrossed = crossLocation.peek();\r\n curCrossed.remove(curCrossed.size() - 1);\r\n next = curCrossed.get(curCrossed.size() - 1);\r\n move();\r\n stepCount++;\r\n // 当前方向反向的概率-1\r\n probablyDir[((getDirection() + Location.HALF_CIRCLE)\r\n % Location.FULL_CIRCLE) / Location.RIGHT]--;\r\n if (curCrossed.size() == 1) {\r\n // 返回之后pop\r\n crossLocation.pop();\r\n }\r\n }\r\n }", "public synchronized boolean MoveThatFigure(Figures.Color color, Figures.Type typ, Point pozice, Point direction, ArrayList<ModelObject> objekty) {\n for (Object obj : objekty) {\r\n objectsForMovement.add((ModelObject) obj);\r\n }\r\n\r\n Point pomPozice = new Point(pozice);\r\n Point pomDirxM = new Point(direction);\r\n Point pomDiryM = new Point(direction);\r\n Point pomDirxP = new Point(direction);\r\n Point pomDiryP = new Point(direction);\r\n Point BeforeLast = new Point();\r\n\r\n pomDirxM.x = pomDirxM.x - 1;\r\n pomDiryM.y = pomDiryM.y - 1;\r\n pomDirxP.x = pomDirxP.x + 1;\r\n pomDiryP.y = pomDiryP.y + 1;\r\n\r\n if (color == Figures.Color.White) {\r\n if (typ == Figures.Type.Pawn) {\r\n if ((direction.x == pozice.x && direction.y == pozice.y - 1)\r\n && free.isFree(direction, objectsForMovement)) {\r\n side = false;\r\n return true;\r\n }\r\n if ((direction.x == pozice.x - 1 && direction.y == pozice.y - 1\r\n || direction.x == pozice.x + 1 && direction.y == pozice.y - 1)\r\n && !free.isFree(direction, objectsForMovement)) {\r\n side = false;\r\n this.pawnTaking = true;\r\n return true;\r\n }\r\n }\r\n\r\n if (typ == Figures.Type.Rook) {\r\n // if ((CanTake(direction, Figures.Color.Black)) || free.isFree(direction, objectsForMovement)) {\r\n if (pozice.equals(pomDirxM)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.equals(pomDirxP)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.equals(pomDiryM)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.equals(pomDiryP)) {\r\n side = false;\r\n return true;\r\n } else {\r\n do {\r\n if ((direction.x == pomPozice.x && direction.y >= pomPozice.y)) {\r\n pomPozice.y = pomPozice.y + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDiryM;\r\n } else if (direction.x == pomPozice.x && direction.y <= pomPozice.y) {\r\n pomPozice.y = pomPozice.y - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDiryP;\r\n } else if (direction.x <= pomPozice.x && direction.y == pomPozice.y) {\r\n pomPozice.x = pomPozice.x - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDirxP;\r\n } else if (direction.x >= pomPozice.x && direction.y == pomPozice.y) {\r\n pomPozice.x = pomPozice.x + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDirxM;\r\n }\r\n if (mahmadan == false) {\r\n break;\r\n }\r\n\r\n } while ((pomPozice.x != BeforeLast.x) || (pomPozice.y != BeforeLast.y));\r\n if (mahmadan == true) {\r\n side = false;\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n // }\r\n\r\n if (typ == Figures.Type.Knight) {\r\n // if ((CanTake(direction, Figures.Color.Black)) || free.isFree(direction, objectsForMovement)) {\r\n if ((direction.x == pozice.x + 2 && direction.y == pozice.y - 1)\r\n || (direction.x == pozice.x - 2 && direction.y == pozice.y - 1)\r\n || (direction.x == pozice.x - 2 && direction.y == pozice.y + 1)\r\n || (direction.x == pozice.x + 2 && direction.y == pozice.y + 1)\r\n || (direction.x == pozice.x + 1 && direction.y == pozice.y + 2)\r\n || (direction.x == pozice.x + 1 && direction.y == pozice.y - 2)\r\n || (direction.x == pozice.x - 1 && direction.y == pozice.y - 2)\r\n || (direction.x == pozice.x - 1 && direction.y == pozice.y + 2)) {\r\n side = false;\r\n return true;\r\n }\r\n }\r\n // }\r\n\r\n if (typ == Figures.Type.Bishop) {\r\n // if ((CanTake(direction, Figures.Color.Black)) || free.isFree(direction, objectsForMovement)) {\r\n if (Math.abs(pozice.x - direction.x) == Math.abs(pozice.y - direction.y)) {\r\n if (pozice.x == pomDirxM.x && pozice.y == pomDiryM.y) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDirxP.x && pozice.y == pomDiryP.y) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDiryM.x && pozice.y == pomDiryP.y) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDiryP.x && pozice.y == pomDiryM.y) {\r\n side = false;\r\n return true;\r\n } else {\r\n do {\r\n if (direction.x >= pozice.x && direction.y >= pozice.y) {\r\n pomPozice.y = pomPozice.y + 1;\r\n pomPozice.x = pomPozice.x + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxM.x;\r\n BeforeLast.y = pomDiryM.y;\r\n } else if (direction.x <= pozice.x && direction.y >= pozice.y) {\r\n pomPozice.y = pomPozice.y + 1;\r\n pomPozice.x = pomPozice.x - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxP.x;\r\n BeforeLast.y = pomDiryM.y;\r\n } else if (direction.x <= pozice.x && direction.y <= pozice.y) {\r\n pomPozice.y = pomPozice.y - 1;\r\n pomPozice.x = pomPozice.x - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxP.x;\r\n BeforeLast.y = pomDiryP.y;\r\n } else if (direction.x >= pozice.x && direction.y <= pozice.y) {\r\n pomPozice.y = pomPozice.y - 1;\r\n pomPozice.x = pomPozice.x + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxM.x;\r\n BeforeLast.y = pomDiryP.y;\r\n }\r\n if (mahmadan == false) {\r\n break;\r\n }\r\n } while ((pomPozice.x != BeforeLast.x) && (pomPozice.y != BeforeLast.y));\r\n if (mahmadan == true) {\r\n side = false;\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n // }\r\n\r\n if (typ == Figures.Type.Queen) {\r\n // if ((CanTake(direction, Figures.Color.Black)) || free.isFree(direction, objectsForMovement)) {\r\n if (pozice.equals(pomDirxM)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.equals(pomDirxP)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.equals(pomDiryM)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.equals(pomDiryP)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDirxM.x && pozice.y == pomDiryM.y) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDirxP.x && pozice.y == pomDiryP.y) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDiryM.x && pozice.y == pomDiryP.y) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDiryP.x && pozice.y == pomDiryM.y) {\r\n side = false;\r\n return true;\r\n } else {\r\n if (((direction.x >= pozice.x && direction.y >= pozice.y)\r\n || (direction.x <= pozice.x && direction.y >= pozice.y)\r\n || (direction.x <= pozice.x && direction.y <= pozice.y)\r\n || (direction.x >= pozice.x && direction.y <= pozice.y))\r\n && (Math.abs(pozice.x - direction.x) == Math.abs(pozice.y - direction.y))) {\r\n do {\r\n if (direction.x >= pozice.x && direction.y >= pozice.y) {\r\n pomPozice.y = pomPozice.y + 1;\r\n pomPozice.x = pomPozice.x + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxM.x;\r\n BeforeLast.y = pomDiryM.y;\r\n } else if (direction.x <= pozice.x && direction.y >= pozice.y) {\r\n pomPozice.y = pomPozice.y + 1;\r\n pomPozice.x = pomPozice.x - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxP.x;\r\n BeforeLast.y = pomDiryM.y;\r\n } else if (direction.x <= pozice.x && direction.y <= pozice.y) {\r\n pomPozice.y = pomPozice.y - 1;\r\n pomPozice.x = pomPozice.x - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxP.x;\r\n BeforeLast.y = pomDiryP.y;\r\n } else if (direction.x >= pozice.x && direction.y <= pozice.y) {\r\n pomPozice.y = pomPozice.y - 1;\r\n pomPozice.x = pomPozice.x + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxM.x;\r\n BeforeLast.y = pomDiryP.y;\r\n }\r\n if (mahmadan == false) {\r\n break;\r\n }\r\n } while ((pomPozice.x != BeforeLast.x) && (pomPozice.y != BeforeLast.y));\r\n if ((Math.abs(pozice.x - direction.x) == Math.abs(pozice.y - direction.y)) && mahmadan == true) {\r\n side = false;\r\n return true;\r\n }\r\n }\r\n if ((direction.x == pozice.x && direction.y >= pozice.y)\r\n || (direction.x == pozice.x && direction.y <= pozice.y)\r\n || (direction.x <= pozice.x && direction.y == pozice.y)\r\n || (direction.x >= pozice.x && direction.y == pozice.y)) {\r\n do {\r\n if ((direction.x == pomPozice.x && direction.y >= pomPozice.y)) {\r\n pomPozice.y = pomPozice.y + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDiryM;\r\n } else if (direction.x == pomPozice.x && direction.y <= pomPozice.y) {\r\n pomPozice.y = pomPozice.y - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDiryP;\r\n } else if (direction.x <= pomPozice.x && direction.y == pomPozice.y) {\r\n pomPozice.x = pomPozice.x - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDirxP;\r\n } else if (direction.x >= pomPozice.x && direction.y == pomPozice.y) {\r\n pomPozice.x = pomPozice.x + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDirxM;\r\n }\r\n if (mahmadan == false) {\r\n break;\r\n }\r\n\r\n } while ((pomPozice.x != BeforeLast.x) || (pomPozice.y != BeforeLast.y));\r\n if (mahmadan == true) {\r\n side = false;\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n // }\r\n\r\n if (typ == Figures.Type.King) {\r\n // if ((CanTake(direction, Figures.Color.Black)) || free.isFree(direction, objectsForMovement)) {\r\n if (direction.x == pozice.x && direction.y == pozice.y - 1 || direction.x == pozice.x - 1 && direction.y == pozice.y - 1\r\n || direction.x == pozice.x && direction.y == pozice.y + 1 || direction.x == pozice.x - 1 && direction.y == pozice.y + 1\r\n || direction.x == pozice.x + 1 && direction.y == pozice.y || direction.x == pozice.x + 1 && direction.y == pozice.y - 1\r\n || direction.x == pozice.x - 1 && direction.y == pozice.y || direction.x == pozice.x + 1 && direction.y == pozice.y + 1) {\r\n side = false;\r\n return true;\r\n }\r\n }\r\n //}\r\n\r\n } else if (color == Figures.Color.Black) {/* && side == false*/\r\n\r\n if (typ == Figures.Type.Pawn) {\r\n if ((direction.x == pozice.x && direction.y == pozice.y + 1)\r\n && free.isFree(direction, objectsForMovement)) {\r\n side = true;\r\n return true;\r\n }\r\n if (CanTake(direction, Figures.Color.White)) {\r\n if ((direction.x == pozice.x - 1 && direction.y == pozice.y + 1\r\n || direction.x == pozice.x + 1 && direction.y == pozice.y + 1)\r\n && !free.isFree(direction, objectsForMovement)) {\r\n side = true;\r\n this.pawnTaking = true;\r\n return true;\r\n }\r\n }\r\n }\r\n if (typ == Figures.Type.Rook) {\r\n if ((CanTake(direction, Figures.Color.White)) || free.isFree(direction, objectsForMovement)) {\r\n if (pozice.equals(pomDirxM)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.equals(pomDirxP)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.equals(pomDiryM)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.equals(pomDiryP)) {\r\n side = false;\r\n return true;\r\n } else {\r\n do {\r\n if ((direction.x == pomPozice.x && direction.y >= pomPozice.y)) {\r\n pomPozice.y = pomPozice.y + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDiryM;\r\n } else if (direction.x == pomPozice.x && direction.y <= pomPozice.y) {\r\n pomPozice.y = pomPozice.y - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDiryP;\r\n } else if (direction.x <= pomPozice.x && direction.y == pomPozice.y) {\r\n pomPozice.x = pomPozice.x - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDirxP;\r\n } else if (direction.x >= pomPozice.x && direction.y == pomPozice.y) {\r\n pomPozice.x = pomPozice.x + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDirxM;\r\n }\r\n if (mahmadan == false) {\r\n break;\r\n }\r\n\r\n } while ((pomPozice.x != BeforeLast.x) || (pomPozice.y != BeforeLast.y));\r\n if (mahmadan == true) {\r\n side = false;\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (typ == Figures.Type.Knight) {\r\n if ((CanTake(direction, Figures.Color.White)) || free.isFree(direction, objectsForMovement)) {\r\n if ((direction.x == pozice.x + 2 && direction.y == pozice.y - 1)\r\n || (direction.x == pozice.x - 2 && direction.y == pozice.y - 1)\r\n || (direction.x == pozice.x - 2 && direction.y == pozice.y + 1)\r\n || (direction.x == pozice.x + 2 && direction.y == pozice.y + 1)\r\n || (direction.x == pozice.x + 1 && direction.y == pozice.y + 2)\r\n || (direction.x == pozice.x + 1 && direction.y == pozice.y - 2)\r\n || (direction.x == pozice.x - 1 && direction.y == pozice.y - 2)\r\n || (direction.x == pozice.x - 1 && direction.y == pozice.y + 2)) {\r\n side = true;\r\n return true;\r\n }\r\n }\r\n }\r\n\r\n if (typ == Figures.Type.Bishop) {\r\n if (Math.abs(pozice.x - direction.x) == Math.abs(pozice.y - direction.y)) {\r\n if ((CanTake(direction, Figures.Color.White)) || free.isFree(direction, objectsForMovement)) {\r\n if (pozice.x == pomDirxM.x && pozice.y == pomDiryM.y) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDirxP.x && pozice.y == pomDiryP.y) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDiryM.x && pozice.y == pomDiryP.y) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDiryP.x && pozice.y == pomDiryM.y) {\r\n side = false;\r\n return true;\r\n } else {\r\n do {\r\n if (direction.x >= pozice.x && direction.y >= pozice.y) {\r\n pomPozice.y = pomPozice.y + 1;\r\n pomPozice.x = pomPozice.x + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxM.x;\r\n BeforeLast.y = pomDiryM.y;\r\n } else if (direction.x <= pozice.x && direction.y >= pozice.y) {\r\n pomPozice.y = pomPozice.y + 1;\r\n pomPozice.x = pomPozice.x - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxP.x;\r\n BeforeLast.y = pomDiryM.y;\r\n } else if (direction.x <= pozice.x && direction.y <= pozice.y) {\r\n pomPozice.y = pomPozice.y - 1;\r\n pomPozice.x = pomPozice.x - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxP.x;\r\n BeforeLast.y = pomDiryP.y;\r\n } else if (direction.x >= pozice.x && direction.y <= pozice.y) {\r\n pomPozice.y = pomPozice.y - 1;\r\n pomPozice.x = pomPozice.x + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxM.x;\r\n BeforeLast.y = pomDiryP.y;\r\n }\r\n if (mahmadan == false) {\r\n break;\r\n }\r\n } while ((pomPozice.x != BeforeLast.x) && (pomPozice.y != BeforeLast.y));\r\n if ((Math.abs(pozice.x - direction.x) == Math.abs(pozice.y - direction.y)) && mahmadan == true) {\r\n side = false;\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (typ == Figures.Type.Queen) {\r\n if ((CanTake(direction, Figures.Color.White)) || free.isFree(direction, objectsForMovement)) {\r\n if (pozice.equals(pomDirxM)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.equals(pomDirxP)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.equals(pomDiryM)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.equals(pomDiryP)) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDirxM.x && pozice.y == pomDiryM.y) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDirxP.x && pozice.y == pomDiryP.y) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDiryM.x && pozice.y == pomDiryP.y) {\r\n side = false;\r\n return true;\r\n }\r\n if (pozice.x == pomDiryP.x && pozice.y == pomDiryM.y) {\r\n side = false;\r\n return true;\r\n } else {\r\n if (((direction.x >= pozice.x && direction.y >= pozice.y)\r\n || (direction.x <= pozice.x && direction.y >= pozice.y)\r\n || (direction.x <= pozice.x && direction.y <= pozice.y)\r\n || (direction.x >= pozice.x && direction.y <= pozice.y))\r\n && (Math.abs(pozice.x - direction.x) == Math.abs(pozice.y - direction.y))) {\r\n do {\r\n if (direction.x >= pozice.x && direction.y >= pozice.y) {\r\n pomPozice.y = pomPozice.y + 1;\r\n pomPozice.x = pomPozice.x + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxM.x;\r\n BeforeLast.y = pomDiryM.y;\r\n } else if (direction.x <= pozice.x && direction.y >= pozice.y) {\r\n pomPozice.y = pomPozice.y + 1;\r\n pomPozice.x = pomPozice.x - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxP.x;\r\n BeforeLast.y = pomDiryM.y;\r\n } else if (direction.x <= pozice.x && direction.y <= pozice.y) {\r\n pomPozice.y = pomPozice.y - 1;\r\n pomPozice.x = pomPozice.x - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxP.x;\r\n BeforeLast.y = pomDiryP.y;\r\n } else if (direction.x >= pozice.x && direction.y <= pozice.y) {\r\n pomPozice.y = pomPozice.y - 1;\r\n pomPozice.x = pomPozice.x + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast.x = pomDirxM.x;\r\n BeforeLast.y = pomDiryP.y;\r\n }\r\n if (mahmadan == false) {\r\n break;\r\n }\r\n } while ((pomPozice.x != BeforeLast.x) && (pomPozice.y != BeforeLast.y));\r\n if ((Math.abs(pozice.x - direction.x) == Math.abs(pozice.y - direction.y)) && mahmadan == true) {\r\n side = false;\r\n return true;\r\n }\r\n }\r\n if ((direction.x == pozice.x && direction.y >= pozice.y)\r\n || (direction.x == pozice.x && direction.y <= pozice.y)\r\n || (direction.x <= pozice.x && direction.y == pozice.y)\r\n || (direction.x >= pozice.x && direction.y == pozice.y)) {\r\n do {\r\n if ((direction.x == pomPozice.x && direction.y >= pomPozice.y)) {\r\n pomPozice.y = pomPozice.y + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDiryM;\r\n } else if (direction.x == pomPozice.x && direction.y <= pomPozice.y) {\r\n pomPozice.y = pomPozice.y - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDiryP;\r\n } else if (direction.x <= pomPozice.x && direction.y == pomPozice.y) {\r\n pomPozice.x = pomPozice.x - 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDirxP;\r\n } else if (direction.x >= pomPozice.x && direction.y == pomPozice.y) {\r\n pomPozice.x = pomPozice.x + 1;\r\n mahmadan = free.isWayClear(pomPozice, objectsForMovement);\r\n BeforeLast = pomDirxM;\r\n }\r\n if (mahmadan == false) {\r\n break;\r\n }\r\n\r\n } while ((pomPozice.x != BeforeLast.x) || (pomPozice.y != BeforeLast.y));\r\n if (mahmadan == true) {\r\n side = false;\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (typ == Figures.Type.King) {\r\n if ((CanTake(direction, Figures.Color.White)) || free.isFree(direction, objectsForMovement)) {\r\n if (direction.x == pozice.x && direction.y == pozice.y - 1\r\n || direction.x == pozice.x - 1 && direction.y == pozice.y - 1\r\n || direction.x == pozice.x && direction.y == pozice.y + 1\r\n || direction.x == pozice.x - 1 && direction.y == pozice.y + 1\r\n || direction.x == pozice.x + 1 && direction.y == pozice.y\r\n || direction.x == pozice.x + 1 && direction.y == pozice.y - 1\r\n || direction.x == pozice.x - 1 && direction.y == pozice.y\r\n || direction.x == pozice.x + 1 && direction.y == pozice.y + 1) {\r\n side = true;\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n return false;\r\n }", "protected void doMoveProbe() {\n super.doMoveProbe();\n // getChart().updateThumb();\n }", "@Override\n public void mousePressed(final MouseEvent event){\n \tif(om.equals(\"graphic_associate_interaction\"))\n \t{\n \t\tstart = null;\n\t \t for(int i=hotspots.size()-1; i > -1; --i)\n\t\t \t\tif(hotspots.elementAt(i).inside(event.getPoint()))\n\t\t \t\t\tstart = hotspots.elementAt(i);\n\t \tif(start != null)\n\t \t\tmpos = event.getPoint();\n\t \trepaint();\n \t}else if(om.equals(\"graphic_order_interaction\") || om.equals(\"gap_match_interaction\"))\n \t{\n \t\tmov = null;\n \t\tfor(int i=movableObjects.size()-1; i > -1; --i)\n\t \t\tif(movableObjects.elementAt(i).inside(event.getPoint()))\n\t \t\t\tmov = movableObjects.elementAt(i);\n \t\tif(mov != null)\n \t\t{\n \t\t\tBoundObject remObj = null;\n \t \t \tfor(int i=hotspots.size()-1; i > -1; --i)\n \t\t \t\tif(hotspots.elementAt(i).inside(event.getPoint()))\n \t\t \t\t\tremObj = hotspots.elementAt(i);\n \t \t \tif(remObj != null)\n \t \t \t{\n \t \t \t\tremObj.bound.remove(mov.keyCode);\n \t \t \t\tremObj.assCount--;\n \t \t \t\tmov.bound.remove(remObj.keyCode);\n \t \t \t}\n \t\t}\n\n \t\trepaint();\n \t} else { //figure_placement_interaction\n \t System.out.println(\"There are \"+movableObjects.size()+ \" movable objects\");\n \t mov = null;\n for(int i=movableObjects.size()-1; i > -1; --i)\n if(movableObjects.elementAt(i).inside(event.getPoint()))\n mov = movableObjects.elementAt(i);\n \t repaint();\n \t}\n }", "@Override\n public void onGroupCollapsed(int groupPosition) {\n\n }", "public void commandAction(Command c, Displayable s) \r\n\t{\n if (c == startCommand) \r\n {\r\n \t\r\n \tif(canvas != null)\r\n \t\tcanvas.Stop();\r\n \tcanvas = null;\r\n \tfrmMenu.addCommand(resumeCommand);\r\n \tfrmMenu.addCommand(updateCommand);\r\n \t\r\n \tcanvas = new PathFindingCtr(this);\r\n \tcanvas.addCommand(nextCommand);\r\n \tcanvas.addCommand(menuCommand);\r\n \tcanvas.setCommandListener(this);\r\n \tdisplay.setCurrent(canvas);\r\n canvas.Start();\r\n isRunning = true;\r\n \r\n } \r\n else if (c == nextCommand ) \r\n {\r\n \tcanvas.Next(); \r\n } \r\n else if (c == resumeCommand ) \r\n {\r\n\t canvas.setTime(time);\r\n\t canvas.Resume();\r\n display.setCurrent(canvas);\r\n } \r\n else if (c == menuCommand && s == canvas) \r\n {\r\n\t time = canvas.getTime();\r\n display.setCurrent(frmMenu);\r\n }\r\n else if (c == menuCommand && s == sm) \r\n {\r\n display.setCurrent(frmMenu);\r\n sm = null;\r\n } \r\n else if (c == scoreCommand) \r\n {\r\n \tsm = new ScoreMgr();\r\n \tsm.addCommand(menuCommand);\r\n \tsm.setCommandListener(this);\r\n \tsm.printScores();\r\n display.setCurrent(sm);\r\n }\r\n else if (c == exitCommand && s == frmMenu) \r\n {\r\n destroyApp(false);\r\n notifyDestroyed();\r\n }\r\n else if (c == updateCommand) \r\n {\r\n \tscore = canvas.getScore();\r\n \tsm = new ScoreMgr();\r\n \tscoreID = sm.isHighScore(score);\r\n \ttxtName = new TextField(\"Enter Your Name\", \"\", 15, TextField.ANY);\r\n \t\r\n \tfrmHighScore = new Form(\"High Score\");\r\n \tif(scoreID == -2){\r\n \t\tfrmHighScore.append(\"No High Score: \" + score + \"\\n\");\r\n \t\tfrmHighScore.append(\"Try Again... \\n\");\r\n \t}\r\n \telse{\r\n \t\tfrmHighScore.append(\"High Score: \" + score + \"\\n\");\r\n\t\t\t\r\n \t\tfrmHighScore.append(txtName);\r\n \t\tfrmHighScore.addCommand(saveCommand);\r\n \t}\r\n \t\r\n \t\r\n \tfrmHighScore.addCommand(cancelCommand);\r\n \tfrmHighScore.setCommandListener(this);\r\n \tdisplay.setCurrent(frmHighScore);\r\n \t\r\n \r\n }\r\n else if (c == saveCommand) \r\n {\r\n \t\r\n \t\r\n sm.addCommand(menuCommand);\r\n \tsm.setCommandListener(this);\r\n \t\r\n \r\n \t\tsm.changeScores(txtName.getString(), score, scoreID);\r\n \t\tsm.printScores();\r\n display.setCurrent(sm);\r\n \r\n if(isRunning == true){\r\n \t\tfrmMenu.removeCommand(resumeCommand);\r\n \t\t\tfrmMenu.removeCommand(updateCommand);\r\n \t\t\tcanvas.Stop();\r\n \tcanvas = null;\r\n \tisRunning = false;\r\n \t}\r\n \r\n }\r\n else if (c == cancelCommand) \r\n {\r\n display.setCurrent(frmMenu); \r\n frmHighScore = null;\r\n \tsm = null;\r\n }\r\n\telse if (c == helpCommand) \r\n {\r\n frmHelp = new Form(\"Help\");\r\n\t frmHelp.addCommand(menuCommand);\r\n\t frmHelp.setCommandListener(this);\r\n\t frmHelp.append(\"Use cursor to move Finder to the destiantion Orange Box. Eat food on the way and gain point.\" + \r\n\t\t\t \"Break wall if necessary and loose point. Time is limited...\");\r\n\t display.setCurrent(frmHelp); \r\n \r\n }\r\n\telse if (c == menuCommand && s == frmHelp) \r\n {\r\n display.setCurrent(frmMenu);\r\n frmHelp = null;\r\n } \r\n\t\r\n\t\r\n }", "public final void rule__Commands__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:924:1: ( ( ( rule__Commands__Group_1__0 )* ) )\n // InternalWh.g:925:1: ( ( rule__Commands__Group_1__0 )* )\n {\n // InternalWh.g:925:1: ( ( rule__Commands__Group_1__0 )* )\n // InternalWh.g:926:2: ( rule__Commands__Group_1__0 )*\n {\n before(grammarAccess.getCommandsAccess().getGroup_1()); \n // InternalWh.g:927:2: ( rule__Commands__Group_1__0 )*\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( (LA6_0==19) ) {\n alt6=1;\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // InternalWh.g:927:3: rule__Commands__Group_1__0\n \t {\n \t pushFollow(FOLLOW_14);\n \t rule__Commands__Group_1__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop6;\n }\n } while (true);\n\n after(grammarAccess.getCommandsAccess().getGroup_1()); \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 }", "void onMoveTaken(Piece captured);", "public void panelProcess() {\n\t\tif (equal(\"A \", stateVariable.getZzfunmode())) {\n\t\t\tstateVariable.setZmsage(blanks(78));\n\t\t\t// - Prompt\n\t\t\tif (nmfkpinds.funKey04()) {\n\t\t\t\tsrprom();\n\t\t\t}\n\t\t\tvalidt();\n\t\t\tif (! nmfkpinds.pgmInd99()) {\n\t\t\t\tstateVariable.setXwpric(stateVariable.getXwanpr());\n\t\t\t}\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\taddrec0();\n\t\t\t}\n\t\t\tif (! nmfkpinds.funKey03() && ! nmfkpinds.funKey12()) {\n\t\t\t\tstateVariable.setZzfunmode(\"A \");\n\t\t\t\tzzNxtFun = \"WWCONDET04D \";\n\t\t\t\tthrow new NewScreenException(zzNxtFun, \"\");\n\t\t\t}\n\t\t\taddrec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t\tif (equal(\"B \", stateVariable.getZzfunmode())) {\n\t\t\tstateVariable.setZmsage(blanks(78));\n\t\t\t// - Prompt\n\t\t\tif (nmfkpinds.funKey04()) {\n\t\t\t\tsrprom();\n\t\t\t}\n\t\t\tvalidt();\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\tchgrec0();\n\t\t\t}\n\t\t\tif (! nmfkpinds.funKey03() && ! nmfkpinds.funKey12()) {\n\t\t\t\tstateVariable.setZzfunmode(\"B \");\n\t\t\t\tzzNxtFun = \"WWCONDET04D \";\n\t\t\t\tthrow new NewScreenException(zzNxtFun, \"\");\n\t\t\t}\n\t\t\tchgrec0();\n\t\t\tstateVariable.setShwrec(stateVariable.getSflrrn());\n\t\t\tstateVariable.setDssel(blanks(1));\n\t\t\t// End: For each selection\n\t\t\tzselec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t\tif (equal(\"C \", stateVariable.getZzfunmode())) {\n\t\t\tstateVariable.setZmsage(blanks(78));\n\t\t\t// - Prompt\n\t\t\tif (nmfkpinds.funKey04()) {\n\t\t\t\tsrprom();\n\t\t\t}\n\t\t\tif (nmfkpinds.funKey23()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tdelrec0();\n\t\t\tif (nmfkpinds.funKey23()) {\n\t\t\t\tstateVariable.setZzfunmode(\"C \");\n\t\t\t\tzzNxtFun = \"WWCONDET04D \";\n\t\t\t\tthrow new NewScreenException(zzNxtFun, \"\");\n\t\t\t}\n\t\t\tstateVariable.setShwrec(stateVariable.getSflrrn());\n\t\t\tstateVariable.setDssel(blanks(1));\n\t\t\t// End: For each selection\n\t\t\tzselec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t\tif (equal(\"D \", stateVariable.getZzfunmode())) {\n\t\t\tstateVariable.setZmsage(blanks(78));\n\t\t\t// - Prompt\n\t\t\tif (nmfkpinds.funKey04()) {\n\t\t\t\tsrprom();\n\t\t\t}\n\t\t\tdsprec0();\n\t\t\tstateVariable.setShwrec(stateVariable.getSflrrn());\n\t\t\tstateVariable.setDssel(blanks(1));\n\t\t\t// End: For each selection\n\t\t\tzselec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t}", "@Override\n public void onGroupCollapse(int groupPosition) {\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n switch (GlobalVariable.dragState) {\n case init:\n Point abPoint = EventUtil.getAbsolutePointBy(e);\n // the component that the mouse at (as it's not e.getComponent if you move far away.\n Component componentOfMouse = e.getComponent().getParent().getComponentAt(abPoint);\n if (componentOfMouse instanceof BaseUnitUI) {\n if (!(EventUtil.isPointInComponents(e, \"In\"))\n && !(EventUtil.isPointInComponents(e, \"Out\"))) {\n // You are attempt to relocate the Unit\n e.getComponent().setLocation(abPoint);\n GlobalVariable.dragState = GlobalVariable.DragState.forRelocate;\n } else {\n // You drag a In or Out, so it is to Link Unit\n GlobalVariable.dragState = GlobalVariable.DragState.forLink;\n // get the line you create during mousePress and update its endPoint\n Line line = GlobalVariable.lastLine;\n if (line != null) {\n line.updateEndPoint(abPoint);\n GlobalVariable.workPanel.updateUI();\n }\n }\n }\n break;\n case forRelocate:\n // if it is called during dragging label around\n Point newLoc = EventUtil.getAbsolutePointBy(e);\n e.getComponent().setLocation(newLoc);\n // get the unit which this UI belong to.\n int unitIndex = GlobalVariable.componentArray.indexOf(e.getComponent());\n SuperUnit unit = GlobalVariable.unitArray.get(unitIndex);\n // update the line linked with the unit you want to relocate.\n Line[] lines = unit.getOutLine();\n for (int iLine = 0; iLine < lines.length; iLine ++) {\n if (lines[iLine] != null) {\n // get the label center location\n Point origin = unit.unitUI.getComponent(unit.getInLines().length).getLocation();\n origin = EventUtil.transformToSuperLoca(origin, unit.unitUI);\n origin.x += GlobalVariable.actionWidth / 2;\n lines[iLine].updateStartPoint(origin);\n }\n }\n for (int iIn = 0; iIn < unit.getInLines().length; iIn ++) {\n if (unit.getInLines()[iIn] != null) {\n // get the label center location\n Point origin = unit.unitUI.getComponent(iIn).getLocation();\n origin = EventUtil.transformToSuperLoca(origin, unit.unitUI);\n origin.x += GlobalVariable.actionWidth / 2;\n unit.getInLines()[iIn].updateEndPoint(origin);\n }\n }\n break;\n case forLink:\n Point endPoint = EventUtil.getAbsolutePointBy(e);\n Line line = GlobalVariable.lastLine;\n if (line != null) {\n line.updateEndPoint(endPoint);\n GlobalVariable.workPanel.updateUI();\n }\n break;\n }\n }", "private TextBox[] drawShape(Group group, boolean forConfigure) {\n\n List<Match> matchs = new ArrayList<Match>();\n\n int nbJoueur = joueurs.size();\n int nbTourBeforeDemi = 0;\n if (nbJoueur <= 2) {\n nbTourBeforeDemi = -1;\n }\n if (nbJoueur > 2 && nbJoueur <= 4) {\n nbTourBeforeDemi = 0;\n if (nbJoueur < 4) {\n for (int i = nbJoueur; i < 4; i++) {\n ParticipantBean participantBean = new ParticipantBean(\"\", \"\");\n participantBean.setPlaceOnGrid(joueurs.size() + 1);\n joueurs.add(participantBean);\n }\n }\n } else if (nbJoueur > 4 && nbJoueur <= 8) {\n nbTourBeforeDemi = 1;\n if (nbJoueur < 8) {\n for (int i = nbJoueur; i < 8; i++) {\n ParticipantBean participantBean = new ParticipantBean(\"\", \"\");\n participantBean.setPlaceOnGrid(joueurs.size() + 1);\n joueurs.add(participantBean);\n }\n }\n } else if (nbJoueur > 8 && nbJoueur <= 16) {\n nbTourBeforeDemi = 2;\n if (nbJoueur < 16) {\n for (int i = nbJoueur; i < 16; i++) {\n ParticipantBean participantBean = new ParticipantBean(\"\", \"\");\n participantBean.setPlaceOnGrid(joueurs.size() + 1);\n joueurs.add(participantBean);\n }\n }\n } else if (nbJoueur > 16 && nbJoueur <= 32) {\n nbTourBeforeDemi = 3;\n if (nbJoueur < 32) {\n for (int i = nbJoueur; i < 32; i++) {\n ParticipantBean participantBean = new ParticipantBean(\"\", \"\");\n participantBean.setPlaceOnGrid(joueurs.size() + 1);\n joueurs.add(participantBean);\n }\n }\n }\n\n this.sortedJoueurs = new SortedList(FXCollections.observableArrayList(joueurs));\n this.sortedJoueurs.setAll(joueurs);\n this.sortedJoueurs.setComparator(new ComparatorParticipantPlaceOnGrid());\n this.sortedJoueurs.sort(new ComparatorParticipantPlaceOnGrid());\n nbJoueur = sortedJoueurs.size();\n Iterator<ParticipantBean> iterator = sortedJoueurs.iterator();\n while (iterator.hasNext()) {\n ParticipantBean joueur = iterator.next();\n Match match = new Match();\n match.setJoueur1(joueur);\n if (iterator.hasNext()) {\n ParticipantBean joueur2 = iterator.next();\n match.setJoueur2(joueur2);\n }\n matchs.add(match);\n }\n\n\n TextBox[] matchFirstStep = null;\n while(nbTourBeforeDemi > 0) {\n if (matchFirstStep == null) {\n matchFirstStep = computeFirstRound(nbJoueur, matchs, group, false);\n if (forConfigure) {\n return matchFirstStep;\n }\n } else {\n matchFirstStep = computeOtherRound(matchFirstStep, group);\n }\n nbTourBeforeDemi --;\n }\n if (nbTourBeforeDemi >= 0) {\n if (matchFirstStep == null) {\n //In case of categorie contains less than 4 participant\n //1st match is the demi final\n matchFirstStep = computeFirstRound(nbJoueur, matchs, group, true);\n if (forConfigure) {\n return matchFirstStep;\n }\n }\n\n\n TextBox[] resultatsDemi1 = drawMatch(matchFirstStep[0], matchFirstStep[1], group, 1, Phase.DEMI_FINALE);\n TextBox[] resultatsDemi2 = drawMatch(matchFirstStep[2], matchFirstStep[3], group, 2, Phase.DEMI_FINALE);\n TextBox[] resultatsFinale = drawMatch(resultatsDemi1[0], resultatsDemi2[0], group, 2, Phase.FINALE);\n TextBox[] resultatsPetiteFinale = drawMatch(resultatsDemi1[1], resultatsDemi2[1], group, 2, Phase.PETITE_FINALE);\n return new TextBox[]{resultatsFinale[0], resultatsFinale[1], resultatsPetiteFinale[0], resultatsPetiteFinale[1]};\n } else {\n matchFirstStep = computeFirstRound(nbJoueur, matchs, group, true);\n if (forConfigure) {\n return matchFirstStep;\n }\n TextBox[] resultatsFinale = drawMatch(matchFirstStep[0], matchFirstStep[1], group, 2, Phase.FINALE);\n return new TextBox[]{resultatsFinale[0], resultatsFinale[1]};\n }\n }", "public void updateDrawingOrder(){\n\n //get all actors in the objectStage\n Array<Actor> actorsList = objectStage.getActors();\n actorsList.sort(new ActorComparator());\n }", "public final void ruleCommands() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:191:2: ( ( ( rule__Commands__Group__0 ) ) )\n // InternalWh.g:192:2: ( ( rule__Commands__Group__0 ) )\n {\n // InternalWh.g:192:2: ( ( rule__Commands__Group__0 ) )\n // InternalWh.g:193:3: ( rule__Commands__Group__0 )\n {\n before(grammarAccess.getCommandsAccess().getGroup()); \n // InternalWh.g:194:3: ( rule__Commands__Group__0 )\n // InternalWh.g:194:4: rule__Commands__Group__0\n {\n pushFollow(FOLLOW_2);\n rule__Commands__Group__0();\n\n state._fsp--;\n\n\n }\n\n after(grammarAccess.getCommandsAccess().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 move(TrackerState state) {\n\t\t\n\t\tcurrentPosition[0] = state.devicePos[0];\n\t\tcurrentPosition[1] = state.devicePos[1];\n\t\tcurrentPosition[2] = state.devicePos[2];\n\t\t\n\t\tboolean processMove = false;\n\t\t\n\t\tboolean isWheel = (state.actionType == TrackerState.TYPE_WHEEL);\n\t\tboolean isZoom = (isWheel || state.ctrlModifier);\n\t\t\n\t\tif (isZoom) {\n\t\t\t\n\t\t\tdirection[0] = 0;\n\t\t\tdirection[1] = 0;\n\t\t\t\n\t\t\tif (isWheel) {\n\t\t\t\tdirection[2] = state.wheelClicks * 0.1f;\n\t\t\t\t\n\t\t\t} else if (state.ctrlModifier) {\n\t\t\t\tdirection[2] = (currentPosition[1] - startPosition[1]);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tdirection[2] = 0;\n\t\t\t}\n\t\t\t\n\t\t\tif (direction[2] != 0) {\n\t\t\t\t\n\t\t\t\tdirection[2] *= 16;\n\t\t\t\t\n\t\t\t\tdata.viewpointTransform.getTransform(startViewMatrix);\n\t\t\t\tstartViewMatrix.get(positionVector);\n\t\t\t\t\n\t\t\t\tinVector.x = startViewMatrix.m02;\n\t\t\t\tinVector.y = startViewMatrix.m12;\n\t\t\t\tinVector.z = startViewMatrix.m22;\n\t\t\t\tinVector.normalize();\n\t\t\t\tinVector.scale(direction[2]);\n\t\t\t\t\n\t\t\t\tpositionVector.add(inVector);\n\t\t\t\t\n\t\t\t\t// stay above the floor\n\t\t\t\tif (positionVector.y > 0) {\n\t\t\t\t\tdestViewMatrix.set(startViewMatrix);\n\t\t\t\t\tdestViewMatrix.setTranslation(positionVector);\n\t\t\t\t\t\n\t\t\t\t\tprocessMove = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t\n\t\t\tdirection[0] = -(startPosition[0] - currentPosition[0]);\n\t\t\tdirection[1] = -(currentPosition[1] - startPosition[1]);\n\t\t\tdirection[2] = 0;\n\t\t\t\n\t\t\tfloat Y_Rotation = direction[0];\n\t\t\tfloat X_Rotation = direction[1];\n\t\t\t\n\t\t\tif( ( Y_Rotation != 0 ) || ( X_Rotation != 0 ) ) {\n\t\t\t\t\n\t\t\t\tdouble theta_Y = -Y_Rotation * Math.PI;\n\t\t\t\tdouble theta_X = -X_Rotation * Math.PI;\n\t\t\t\t\n\t\t\t\tdata.viewpointTransform.getTransform(startViewMatrix);\n\t\t\t\tstartViewMatrix.get(positionVector);\n\t\t\t\t\n\t\t\t\tpositionVector.x -= centerOfRotation.x;\n\t\t\t\tpositionVector.y -= centerOfRotation.y;\n\t\t\t\tpositionVector.z -= centerOfRotation.z;\n\t\t\t\t\n\t\t\t\tif (theta_Y != 0) {\n\n\t\t\t\t\trot.set(0, 1, 0, (float)theta_Y);\n\t\t\t\t\tmtx.set(rot);\n\t\t\t\t\tmtx.transform(positionVector);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (theta_X != 0) {\n\t\t\t\t\t\n\t\t\t\t\tvec.set(positionVector);\n\t\t\t\t\tvec.normalize();\n\t\t\t\t\tfloat angle = vec.angle(Y_AXIS);\n\t\t\t\t\t\n\t\t\t\t\tif (angle == 0) {\n\t\t\t\t\t\tif (theta_X > 0) {\n\t\t\t\t\t\t\trightVector.x = startViewMatrix.m00;\n\t\t\t\t\t\t\trightVector.y = startViewMatrix.m10;\n\t\t\t\t\t\t\trightVector.z = startViewMatrix.m20;\n\t\t\t\t\t\t\trightVector.normalize();\n\t\t\t\t\t\t\trot.set(rightVector.x, 0, rightVector.z, (float)theta_X);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\trot.set(0, 0, 1, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((theta_X + angle) < 0) {\n\t\t\t\t\t\t\ttheta_X = -(angle - 0.0001f);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvec.y = 0;\n\t\t\t\t\t\tvec.normalize();\n\t\t\t\t\t\trot.set(vec.z, 0, -vec.x, (float)theta_X);\n\t\t\t\t\t}\n\t\t\t\t\tmtx.set(rot);\n\t\t\t\t\tmtx.transform(positionVector);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpositionPoint.x = positionVector.x + centerOfRotation.x;\n\t\t\t\tpositionPoint.y = positionVector.y + centerOfRotation.y;\n\t\t\t\tpositionPoint.z = positionVector.z + centerOfRotation.z;\n\t\t\t\t\n\t\t\t\t// don't go below the floor\n\t\t\t\tif (positionPoint.y > 0) {\n\t\t\t\t\t\n\t\t\t\t\tmatrixUtils.lookAt(positionPoint, centerOfRotation, Y_AXIS, destViewMatrix);\n\t\t\t\t\tmatrixUtils.inverse(destViewMatrix, destViewMatrix);\n\t\t\t\t\t\n\t\t\t\t\tprocessMove = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (processMove) {\n\t\t\t\n\t\t\tboolean collisionDetected = \n\t\t\t\tcollisionManager.checkCollision(startViewMatrix, destViewMatrix);\n\t\t\t\n\t\t\tif (!collisionDetected) {\n\t\t\t\tAV3DUtils.toArray(destViewMatrix, array);\n\t\t\t\tChangePropertyTransientCommand cptc = new ChangePropertyTransientCommand(\n\t\t\t\t\tve, \n\t\t\t\t\tEntity.DEFAULT_ENTITY_PROPERTIES, \n\t\t\t\t\tViewpointEntity.VIEW_MATRIX_PROP,\n\t\t\t\t\tarray,\n\t\t\t\t\tnull);\n\t\t\t\tcmdCntl.execute(cptc);\n\t\t\t\tif (statusManager != null) {\n\t\t\t\t\tstatusManager.fireViewMatrixChanged(destViewMatrix);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tstartPosition[0] = currentPosition[0];\n\t\tstartPosition[1] = currentPosition[1];\n\t\tstartPosition[2] = currentPosition[2];\n\t}", "@Override\r\n public void onGroupCollapse(int groupPosition) {\n\r\n }", "void changepos(MouseEvent e, pieces chessPiece) \n { \n for(int beta : chessPiece.movnum)\n { \n if (chessPiece.color == 0 && e.getSource()== panel[beta-1 ]&& chessPiece.select == true && Checkerboard.allWhitePositions.contains(beta-1) == false)\n {\n if(this.getPiece(beta-1) != null)\n { \n getPiece(beta-1).alive = false;\n \n \n \n panel[beta-1].removeAll();/*getPiece(beta-1).position = 64;*/\n }\n chessPiece.position = beta-1;\n chessPiece.movnum.clear();\n chessPiece.mov.clear();\n chessPiece.select = false;\n chessPiece.timesMoved++;\n whiteToPlay = false;\n }\n else if (chessPiece.color == 1 && e.getSource()== panel[beta-1 ]&& chessPiece.select == true && Checkerboard.allBlackPositions.contains(beta-1) == false)\n {\n if(this.getPiece(beta-1) != null)\n { \n getPiece(beta-1).alive = false; \n panel[beta-1].removeAll();/*getPiece(beta-1).position = 64;*/}\n chessPiece.position = beta-1;\n chessPiece.movnum.clear();\n chessPiece.mov.clear();\n chessPiece.select = false;\n chessPiece.timesMoved++;\n whiteToPlay = true;\n }\n }//for ends\n \n }", "private void panelMouseDragged(java.awt.event.MouseEvent evt)\n throws Exception{\n \n /*Store the point where the mouse is dragged*/\n Point dragPoint = null;\n\n if (this.selectedShape != null)\n {\n /*Change mouse was dragged to true*/\n mouseIsDragged = true;\n\n /*Store the dragged point*/\n dragPoint = evt.getPoint();\n\n /*Now translate the Shape by calling the method*/\n /*Both ShapeConcept and ShapeLinking use the same method*/\n selectedShape.translateShape(dragPoint.x - offsetX, dragPoint.y - offsetY);\n repaint();\n }//end if\n}", "public void move() {\n\t\t// tolerance of angle at which the Base starts moving\n\t\tint tolerance = 10;\n\t\tif(Math.abs(angle) < Math.abs(angleDesired)+tolerance && Math.abs(angleDesired)-tolerance < Math.abs(angle)) {\n\t\t\tdouble vX = Math.cos(Math.toRadians(this.angle + 90)) * v;\n\t\t\tdouble vY = Math.sin(Math.toRadians(this.angle + 90)) * v;\n\t\t\t\n\t\t\tthis.x += vX;\n\t\t\tthis.y += vY;\t\n\t\t\tthis.rectHitbox = new Rectangle((int)(x-rectHitbox.width/2),(int)(y-rectHitbox.height/2),rectHitbox.width,rectHitbox.height);\n\t\t}\n\t\t// curTargetPathBoardRectangle\n\t\tRectangle curTPBR = pathBoardRectangles.get(curTargetPathCellIndex).rect;\n\t\tRectangle rectSmallerBR = new Rectangle((int)curTPBR.getCenterX()-5,(int)curTPBR.getCenterY()-5,10,10);\n\t\t// updates the index when it crosses a pathCell so it counts down from pathCell to pathCell,\n\t\t// always having the next pathCell in the array as the target until the end is reached then it stops\n\t\tif(rectSmallerBR.contains(new Point((int)x,(int)y))) {\n\t\t\tif(curTargetPathCellIndex < pathBoardRectangles.size()-1) {\n\t\t\t\tcurTargetPathCellIndex++;\n\t\t\t\tparentGP.boardRect = pathBoardRectangles.get(curTargetPathCellIndex-1);\n\t\t\t\ttAutoDirectionCorrection.restart();\n\t\t\t}else {\n\t\t\t\tparentGP.isMoving = false;\n\t\t\t\tparentGP.boardRect = pathBoardRectangles.get(curTargetPathCellIndex);\n\t\t\t\tpathBoardRectangles.clear();\n\t\t\t\ttAutoDirectionCorrection.stop();\n\t\t\t\tStagePanel.tryCaptureGoldMine(parentGP);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void onGroupExpanded(int groupPosition) {\n\n }", "@Override\n public void onMove(boolean absolute) {\n \n }", "public void AdvancePos() {\n \tswitch (data3d.TrackDirection){\n \tcase 0:\n \tc2.PositionValue += 1;\n \tc2.PositionValue = (c2.PositionValue % c2.getMaxPos());\n \tbreak;\n \tcase 1:\n \tc3.PositionValue += 1;\n \tc3.PositionValue = (c3.PositionValue % c3.getMaxPos());\n \tbreak;\n \tcase 2:\n \tc1.PositionValue += 1;\n \tc1.PositionValue = (c1.PositionValue % c1.getMaxPos());\n \tbreak;\n \tcase 3:\n \tdata3d.setElement((data3d.ActiveElement + 1) % data3d.Elements);\n \tcase 4:\n \tdata3d.setTime((data3d.ActiveTime + 1) % data3d.Times);\n \t}\n }", "public final void rule__Commands__Group_1__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalWh.g:967:1: ( rule__Commands__Group_1__1__Impl )\n // InternalWh.g:968:2: rule__Commands__Group_1__1__Impl\n {\n pushFollow(FOLLOW_2);\n rule__Commands__Group_1__1__Impl();\n\n state._fsp--;\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 }", "private void processMoving(Figure currentFigure, int desiredRow, int desiredCol, int currentRow, int currentCol) {\n if (currentFigure.isValidMove(currentRow, currentCol, desiredRow, desiredCol)) {\n\n if (desiredField.isObstacle()) {\n\n showMessageOnScreen(\"Obstacle in your desired destination,destroy it!\");\n\n\n } else if (!desiredField.isFieldFree()) {\n showMessageOnScreen(\"Opponent unit in your desired destination,kill it!\");\n\n } else {\n this.stats.increaseNumberOfRounds();\n desiredField.setCurrentFigure(currentFigure);\n currentField.setCurrentFigure(null);\n currentPlayer = currentPlayer.equals(playerOne) ? playerTwo : playerOne;\n\n }\n\n } else {\n\n showMessageOnScreen(\"Invalid move!\");\n\n }\n clearChosenFields();\n }", "@Override\r\n\t\tpublic void buddyGroupAction(ItemAction arg0, BuddyGroup arg1) {\n\t\t\t\r\n\t\t}", "public abstract void notifyMoveResult(boolean hasMoved);", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tPositionVO tmp = getPosition(e.getPoint());\n\t\tbp.getGrid(tmp).lighten();\n//\t\tif(e.getClickCount() == 2 && !bp.getLock() && !bp.getGrid(tmp).getMovement()){//双击\n\t\tif(e.getClickCount() == 2 && !bp.getLock() ){//双击\n\t\t\tbms.useToolGrid(tmp);\n\t\t}\n\t\telse{\n\t\t\tif (count == 0) {\n\t\t\t\tpvo1 = tmp;\n\t\t\t\tfocusGrids[0] = bp.getGrid(tmp);\n\t\t\t\tcount++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (count == 1) {\n\t\t\t\tpvo2 = tmp;\n\t\t\t\tfocusGrids[1] = bp.getGrid(tmp);\n\t\t\t\t// if (pvo1.isValid(pvo2)) {\n\t\t\t\t// 调用model 以下直接调用panel里方法的 一些测试\n\t\t\t\t// bp.swapUnit(pvo1, pvo2);\n\t//\t\t\tif (!bp.getGrid(pvo1).getMovement()\n\t//\t\t\t\t\t&& !bp.getGrid(pvo2).getMovement())\n//\t\t\t\tif(bp.getStill())\n//\t\t\t\tif(!bp.getLock() && (!bp.getGrid(pvo1).getMovement()&& !bp.getGrid(pvo2).getMovement()))\n\t\t\t\tif(!bp.getLock())\n\t\t\t\t\tbms.trySwap(pvo1, pvo2);\n\t\t\t\tcount = 0;\n\t\t\t\tfocusGrids[0].normalize();\n\t\t\t\tfocusGrids[1].normalize();\n\t\t\t} else {\n\t\t\t\tpvo1 = pvo2;\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t}", "public void masterProg() {\n\t\tmoveObjsToGoals();\r\n\t}", "private void sendActivationsToNecessaryGroups(DataGroupInfo group)\n {\n Set<String> activeGroupIds = getUserActivatedGroupIds();\n List<DataGroupInfo> toActivate = group.groupStream()\n .filter(g -> !g.activationProperty().isActivatingOrDeactivating() && activeGroupIds.contains(g.getId()))\n .collect(Collectors.toList());\n if (!toActivate.isEmpty())\n {\n if (LOGGER.isTraceEnabled())\n {\n StringBuilder sb = new StringBuilder(\"Sending Activations to Necessary Groups: \\n\");\n toActivate.stream().forEach(dgi -> sb.append(\" \").append(dgi.getId()).append('\\n'));\n LOGGER.trace(sb.toString());\n }\n try\n {\n new DefaultDataGroupActivator(myController.getToolbox().getEventManager()).setGroupsActive(toActivate, true);\n }\n catch (InterruptedException e)\n {\n LOGGER.error(e, e);\n }\n }\n }", "@Override\n public void mouseDragged(final MouseEvent me){\n\n setSkipped(false);\n \tif(om.equals(\"graphic_associate_interaction\") || om.equals(\"graphic_order_interaction\") || om.equals(\"gap_match_interaction\"))\n \t{\n\t \tif(start != null || mov != null)\n\t \t\tmpos = me.getPoint();\n\t \tfor(int i=hotspots.size()-1; i > -1; --i)\n\t \t\tif(hotspots.elementAt(i).inside(me.getPoint()))\n\t \t\t\thotspots.elementAt(i).setHighlighted(true);\n\t \t\telse\n\t \t\t\thotspots.elementAt(i).setHighlighted(false);\n\t \trepaint();\n \t}\n \tif(om.equals(\"graphic_order_interaction\") || om.equals(\"gap_match_interaction\") || om.equals(\"figure_placement_interaction\"))\n \t{\n \t\tif(mov != null)\n \t\t{\n \t\t\tmov.setPos(me.getPoint());\n \t\t}\n \t\tif (om.equals(\"figure_placement_interaction\")) {\n \t\t repaint();\n \t\t}\n \t}\n \tdrawHSLabel = null;\n }", "@Audit(transName=\"editGroupConfirmation\", transType=\"editGroupOwner\", beforeLog=TRUE, afterLog=TRUE)\r\n\tpublic void editGroupConfirmation(){\r\n\t\twsrdModel.setErrorMsg(\"\");\r\n\t\twsrdModel.setDuplicateErrorMsg(\"\");\r\n\t\tif(checkMultipleEdit()){\r\n\t\t\twsrdModel.setErrorMsg(WsrdConstants.UNSAVED);\r\n\t\t}\r\n\t\telse{\r\n\r\n\t\t\tif(checkUnavaialble()){\r\n\t\t\t\twsrdModel.setErrorMsg(WsrdConstants.UNAVAILABLE);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tString str=checkForAssociation();\r\n\t\t\t\tif(str.trim().equalsIgnoreCase(WsrdConstants.SELECTMSG)){\r\n\t\t\t\t\teditGroup();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\telse{\r\n\t\t\t\t\twsrdModel.setDuplicateErrorMsg(str);\r\n\t\t\t\t\twsrdModel.setErrorMsg(WsrdConstants.GROUP_CONFLICT);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t}\r\n\t}", "private void initializeExplorerCommands() {\n\t\tthis.commands.add(new GUICmdGraphMouseMode(\"Transforming\",\n\t\t\t\t\"GUICmdGraphMouseMode.Transforming\", this.hydraExplorer,\n\t\t\t\tModalGraphMouse.Mode.TRANSFORMING));\n\t\tthis.commands.add(new GUICmdGraphMouseMode(\"Picking\",\n\t\t\t\t\"GUICmdGraphMouseMode.Picking\", this.hydraExplorer,\n\t\t\t\tModalGraphMouse.Mode.PICKING));\n\t\tthis.commands.add(new GUICmdGraphRevert(\"Revert to Selected\",\n\t\t\t\tGUICmdGraphRevert.DEFAULT_ID, this.hydraExplorer));\n\t}", "private void unintelligentDecideMove() {\n\t\twander();\r\n\t}", "public final void rule__Move__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:4566:1: ( ( 'to' ) )\r\n // InternalDroneScript.g:4567:1: ( 'to' )\r\n {\r\n // InternalDroneScript.g:4567:1: ( 'to' )\r\n // InternalDroneScript.g:4568:2: 'to'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getMoveAccess().getToKeyword_1()); \r\n }\r\n match(input,63,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getMoveAccess().getToKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void addMove() {\n\t\tmove = \"mv \" + posX + \" \" + posY;\n\t}", "public void playerMove()\n\t{\n\t\tint col = 0;\n\t\tint row = 0;\n\t\tint choice = 0;\n\t\twhile (true)\n\t\t{\n\t\t\tif (StdDraw.mousePressed())\n\t\t\t{\n\t\t\t\tif (StdDraw.mouseX() > 0.5)\t\t//checks if player is clicking on a number option\n\t\t\t\t{\n\t\t\t\t\tif (StdDraw.mouseY() < 0.25) //logic for checking which number is selected\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a = 0; a < human.size(); a++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (choice == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (human.get(a).equals(2))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tchoice = 2;\n\t\t\t\t\t\t\t\t\thuman.remove(a);\n\t\t\t\t\t\t\t\t\tbreak;\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}\n\t\t\t\t\telse if (StdDraw.mouseY() < 0.5)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a = 0; a < human.size(); a++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (choice == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (human.get(a).equals(4))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tchoice = 4;\n\t\t\t\t\t\t\t\t\thuman.remove(a);\n\t\t\t\t\t\t\t\t\tbreak;\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}\n\t\t\t\t\telse if (StdDraw.mouseY() < 0.75)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a = 0; a < human.size(); a++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (choice == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (human.get(a).equals(6))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tchoice = 6;\n\t\t\t\t\t\t\t\t\thuman.remove(a);\n\t\t\t\t\t\t\t\t\tbreak;\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}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a = 0; a < human.size(); a++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (choice == 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (human.get(a).equals(8))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tchoice = 8;\n\t\t\t\t\t\t\t\t\thuman.remove(a);\n\t\t\t\t\t\t\t\t\tbreak;\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}\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (StdDraw.mousePressed()) //fills in players move\n\t\t\t{\n\t\t\t\tif (choice != 0)\n\t\t\t\t{\n\t\t\t\t\tif (StdDraw.mouseX() < 0.5)\n\t\t\t\t\t{\t\n\t\t\t\t\t\tcol = (int) ((StdDraw.mouseX() * 6));\t\t\t\t\t\t\n\t\t\t\t\t\trow = (int) ((StdDraw.mouseY() * 3));\n\t\t\t\t\t\tif (board[row][col] == 0) \n\t\t\t\t\t\t{\t\t// valid move (empty slot)\n\t\t\t\t\t\t\tboard[row][col] = choice;\n\t\t\t\t\t\t\tdraw.drawMove(col, row, choice);\n\t\t\t\t\t\t\tbreak;\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}", "private void updateInfoBarOnMove(Point eventPoint) {\n\t\tfor (Render<? extends MovableDrawing> renderFigure : canvasState.renderFigures()) {\n\t\t\tif (renderFigure.getFigure().pointBelongs(eventPoint)) {\n\t\t\t\tstatusPane.updateStatus(renderFigure.getFigure().toString());\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tstatusPane.updateStatus(eventPoint.toString());\n\t}" ]
[ "0.58284926", "0.5590801", "0.5575164", "0.5472984", "0.5472235", "0.5421561", "0.5400545", "0.5321008", "0.53093946", "0.5304203", "0.530195", "0.5254373", "0.5238733", "0.52257437", "0.5223452", "0.52121526", "0.51780915", "0.51715344", "0.5154389", "0.51347417", "0.51254576", "0.5113496", "0.5106019", "0.51024914", "0.5091192", "0.50869566", "0.5083101", "0.50819916", "0.50768733", "0.50767344", "0.50734407", "0.5071977", "0.5066303", "0.50625443", "0.50618565", "0.5049552", "0.504828", "0.50475764", "0.503721", "0.5027221", "0.5025614", "0.50199425", "0.5019175", "0.50182426", "0.50143576", "0.50113976", "0.5006865", "0.50025165", "0.49975166", "0.49975166", "0.49917752", "0.49819142", "0.49744442", "0.497241", "0.49717525", "0.49699572", "0.4968591", "0.49678558", "0.4962712", "0.4962712", "0.4962712", "0.4961907", "0.4961256", "0.49610388", "0.4960764", "0.4960018", "0.49579006", "0.49528608", "0.49405122", "0.4934823", "0.4932513", "0.49295682", "0.49262697", "0.49251503", "0.49215728", "0.4921042", "0.49202466", "0.49094892", "0.49050245", "0.489543", "0.4888439", "0.48876062", "0.48872778", "0.48849434", "0.48838958", "0.48801294", "0.48771814", "0.48760813", "0.48759913", "0.4864912", "0.48640344", "0.48629135", "0.4861945", "0.4859204", "0.48590836", "0.48568878", "0.48528084", "0.48517463", "0.48505118", "0.4844205" ]
0.51961356
16
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); calendarReader = new CalendarReader(); int calendarId = getCalendarIdFromPreferences(); eventAdapter = new EventAdapter(this, R.layout.list_event, new ArrayList<Event>()); fillEventAdapterFromCalendar(calendarId); setListAdapter(eventAdapter); setupButtons(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tinit();\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }", "@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n\n }", "protected void onCreate() {\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}", "@Override\n public void onCreate()\n {\n\n super.onCreate();\n }", "@Override\n public void onCreate() {\n initData();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onActivityCreated---------\");\n\t\tinitData(savedInstanceState);\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n public void onCreate() {\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }", "@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}", "protected void onFirstTimeLaunched() {\n }", "@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\t\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }", "@Override\n public void onCreate() {\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t\tsetupTextviews();\n\t\tsetupHorizontalScrollViews();\n\t\tsetupHorizontalSelectors();\n\t\tsetupButtons();\n\t}", "@Override\n public void onCreate() {\n\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitViewPager();\r\n\t\t\r\n\t\tinitView();\r\n\r\n\t\tinitCursor();\r\n\t\t\r\n\t\tinithuanxin(savedInstanceState);\r\n\t\r\n \r\n\t}", "public void onCreate() {\n }", "@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.caifushi_record);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tinitview();\n\t\tMyApplication.getInstance().addActivity(this);\n\t\t\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_recent_activity);\n\t\tsetTitleFromActivityLabel(R.id.title_text);\n\t\tsetupStartUp();\n\t}", "@Override\n\tpublic void onCreate() {\n\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}", "@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }", "@Override\n public void onCreate()\n {\n\n\n }", "@Override\n\tprotected void onCreate() {\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tAnnotationProcessor.processActivity(this);\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n if (!KramPreferences.hasStartedAppBefore(this)) {\n // First time app is started\n requestFirstHug();\n HugRequestService.scheduleHugRequests(this);\n KramPreferences.putHasStartedAppBefore(this);\n }\n\n setContentView(R.layout.activity_main);\n initMonthView(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.act_myinfo);\n\t\tinitView();\n\t\tinitEvents();\n\n\t}", "public void onCreate();", "public void onCreate();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.auth_activity);\n connectVariablesToViews();\n listenToFields();\n WorkSpace.authorizationCompleted = false;\n }", "@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) \r\n\t{\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\t\r\n\t\t// Get a reference to the tranistbuddy model.\r\n\t\tTransitBuddyApp app = (TransitBuddyApp)this.getApplicationContext();\r\n\t\tmModel = app.getTransitBuddyModel();\r\n\t\tmSettings = app.getTransitBuddySettings();\r\n\t\t\r\n\t\tsetTitle( getString(R.string.title_prefix) + \" \" + mSettings.getSelectedCity());\r\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n // Prepare the loader. Either re-connect with an existing one,\n // or start a new one.\n\t\tgetLoaderManager().initLoader(FORECAST_LOADER_ID, null, this);\n\t\tsuper.onActivityCreated(savedInstanceState); // From instructor correction\n\t}", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tDisplayMetrics dm = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\n\n\t\tintScreenX = dm.widthPixels;\n\t\tintScreenY = dm.heightPixels;\n\t\tscreenRect = new Rect(0, 0, intScreenX, intScreenY);\n\n\t\thideTheWindowTitle();\n\n\t\tSampleView view = new SampleView(this);\n\t\tsetContentView(view);\n\n\t\tsetupRecord();\n\t}", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tif (BuildConfig.DEBUG) {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.FULL).hideThreadInfo();\n\t\t} else {\n\t\t\tLogger.init(getClass().getSimpleName()).setLogLevel(LogLevel.NONE).hideThreadInfo();\n\t\t}\n\t\tBaseApplication.totalList.add(this);\n\t}", "@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {/**/}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }", "public void onStart() {\n super.onStart();\n ApplicationStateMonitor.getInstance().activityStarted();\n }", "@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\t\tcontext = getApplicationContext();\n\t\t\n\t\tApplicationContextUtils.init(context);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\n\t}", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\n\n\t\tmContext = (LFActivity) getActivity();\n\t\tinit();\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.listexcursionscreen);\n\n ActionsDelegator.getInstance().synchronizeActionsWithServer(this);\n runId = PropertiesAdapter.getInstance(this).getCurrentRunId();\n\n RunDelegator.getInstance().loadRun(this, runId);\n ResponseDelegator.getInstance().synchronizeResponsesWithServer(this, runId);\n\n }", "@Override\n\tprotected void onCreate() {\n\t\tSystem.out.println(\"onCreate\");\n\t}", "@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tAppManager.getInstance().addActivity(this);\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }", "@Override\n\tpublic void onCreate() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onCreate();\n\t}", "@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.add_daily_task);\n init_database();\n init_view();\n init_click();\n init_data();\n init_picker();\n }", "@Override\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\t\n\t\tactivity = (MainActivity)getActivity(); \n\t\t\n\t\tactivity.setContListener(this);\n\t\t\n\t\tif(MODE == Const.MODE_DEFAULT){\n\t\t\tinitializeInfoForm();\n\t\t}else{\n\t\t\tinitializeAddEditForm();\t\t\t\n\t\t}\n\t\t\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}", "@Override\n public void onCreate() {\n Thread.setDefaultUncaughtExceptionHandler(new TryMe());\n\n super.onCreate();\n\n // Write the content of the current application\n context = getApplicationContext();\n display = context.getResources().getDisplayMetrics();\n\n\n // Initializing DB\n App.databaseManager.initial(App.context);\n\n // Initialize user secret\n App.accountModule.initial();\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t}", "@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n\n super.onCreate(savedInstanceState);\n }" ]
[ "0.791686", "0.77270156", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7693263", "0.7637394", "0.7637394", "0.7629958", "0.76189965", "0.76189965", "0.7543775", "0.7540053", "0.7540053", "0.7539505", "0.75269467", "0.75147736", "0.7509639", "0.7500879", "0.74805456", "0.7475343", "0.7469598", "0.7469598", "0.7455178", "0.743656", "0.74256307", "0.7422192", "0.73934627", "0.7370002", "0.73569906", "0.73569906", "0.7353011", "0.7347353", "0.7347353", "0.7333878", "0.7311508", "0.72663945", "0.72612154", "0.7252271", "0.72419256", "0.72131634", "0.71865886", "0.718271", "0.71728176", "0.7168954", "0.7166841", "0.71481615", "0.7141478", "0.7132933", "0.71174103", "0.7097966", "0.70979583", "0.7093163", "0.7093163", "0.7085773", "0.7075851", "0.7073558", "0.70698684", "0.7049258", "0.704046", "0.70370424", "0.7013127", "0.7005552", "0.7004414", "0.7004136", "0.69996923", "0.6995201", "0.69904065", "0.6988358", "0.69834954", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69820535", "0.69783133", "0.6977392", "0.69668365", "0.69660246", "0.69651115", "0.6962911", "0.696241", "0.6961096", "0.69608897", "0.6947069", "0.6940148", "0.69358927", "0.6933102", "0.6927288", "0.69265485", "0.69247025" ]
0.0
-1
Toast.makeText(MainActivity.this,"Score function has to be implemented",Toast.LENGTH_SHORT).show();
@Override public void onClick(View v) { startActivity(new Intent(StartPage.this,Score.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void displayMessage(){\r\n Toast toast = Toast.makeText(this, getString(R.string.congratz_message, String.valueOf(playerScore)), Toast.LENGTH_SHORT);\r\n toast.show();\r\n }", "public void displayAnswer(){\r\n String message = \"That is the correct answer!\";\r\n\r\n Toast.makeText(QuizActivity.this,\r\n message, Toast.LENGTH_SHORT).show();\r\n }", "private void gameOverDialog() {\n Toast makeText;\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.game_over), Toast.LENGTH_LONG);\n makeText.show();\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.final_score) + score, Toast.LENGTH_LONG);\n makeText.show();\n }", "public void onClick(View v) {\n Toast toast = Toast.makeText(getApplicationContext(), \"This button will launch my Scores app!\", Toast.LENGTH_SHORT);\n toast.show();\n }", "public void userScore(float score) {\n String message;\n //Finds the appropriate text views in order to set text later\n TextView userScore = findViewById(R.id.yourScore);\n TextView userMessage = findViewById(R.id.messageView);\n //Final score variable derived from displayScore\n int finalScore = (Math.round(displayScore(score)));\n //if statements to determine message to be displayed based on finalScore\n if (finalScore == 100) {\n message = \"Wow!! \\nAre you Stan Lee?\";\n } else if (finalScore == 90) {\n message = \"You're amazing!!\";\n } else if (finalScore == 80) {\n message = \"Impressive!!\";\n } else if (finalScore == 70) {\n message = \"You're a regular \\ncomic book junkie!\";\n } else if (finalScore == 60) {\n message = \"Still a majority!!\";\n } else if (finalScore == 50) {\n message = \"Solid for the \\ncasual reader\";\n } else if (finalScore == 40) {\n message = \"Just a fan of \\nthe movies?\";\n } else if (finalScore == 30) {\n message = \"DC Universe?\";\n } else if (finalScore == 20) {\n message = \"A couple good guesses?\";\n } else if (finalScore == 10) {\n message = \"Did you even try?\";\n } else if (finalScore == 0) {\n message = \"Have you heard of Marvel?\";\n } else {\n message = \"What did you do?\";\n }\n //sets the text for the views\n userScore.setText((finalScore) + \"%\");\n userMessage.setText(message);\n }", "public void showScore()\n {\n showText(\"Score:\" + score,550,50);\n }", "private void displayScore(int score) {\n\n String strScore = String.valueOf (score);\n String message = getString (R.string.yourScoreIs) + strScore + getString (R.string.outOf6);\n\n if (score == 0) message += getString (R.string.score_zero);\n\n if (score == 1 || score == 2 || score == 3) message += getString (R.string.score_low);\n\n if (score == 4 || score == 5) message += getString (R.string.score_notBad);\n\n if (score == 6) message += getString (R.string.score_six);\n\n Toast.makeText (getApplicationContext (), message, Toast.LENGTH_LONG).show ();\n\n }", "void displayScore(){\n\t\tTextView yourScore = (TextView) findViewById (R.id.yourscore); \n String currentScoreText;\n currentScoreText = Integer.toString(currentScore);\n\t\tyourScore.setText(currentScoreText);\n\t\t\n\t}", "public void viewScoreboard(){\n\n Intent intent = new Intent(this, DisplayScoreBoard.class);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Hello World\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void run() {\n descriptionActivity.mReadingScore.setText(\"Reading: \"+ read);\n descriptionActivity.mMathScore.setText(\"Math: \" + math);\n descriptionActivity.mWritingScore.setText(\"Writing: \" + writing);\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Goodbye!\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onThinking() {\n toast(\"Processing\");\n }", "private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }", "private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }", "@Override\n public void onThinking() {\n toast(\"Processing\");\n showDialog();\n }", "private void gameOver(){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(GameActivity.this);\n alertDialogBuilder\n .setMessage(\"Your score: \" + correctScore + \"%\").setCancelable(false).setPositiveButton(\"New Game\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n startActivity(new Intent(getApplicationContext(), MainActivity.class));\n }\n });\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(),\"hey uuuu clicked me \",Toast.LENGTH_SHORT).show();\n }", "void showToast(String message);", "void showToast(String message);", "private void gameWonDialog() {\n Toast makeText;\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.game_won), Toast.LENGTH_LONG);\n makeText.show();\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.final_score) + score, Toast.LENGTH_LONG);\n makeText.show();\n }", "@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }", "public void showMessage(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast tst = Toast.makeText(MainActivity.this, \"test\", Toast.LENGTH_SHORT);\n tst.show();\n Test();\n }", "public int getScore()\n {\n // put your code here\n return score;\n }", "private void sendToCatTheater()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Theater'\", Toast.LENGTH_SHORT).show();\n }", "private void printScore() {\r\n View.print(score);\r\n }", "public void checkScore(View view) {\n displayToast(createToast(getScore()));\n reset();\n }", "@Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"I'm a toast!\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void showScoreBoard() {\n calledMethods.add(\"showScoreBoard\");\n }", "public void act()\n {\n trackTime();\n showScore();\n \n }", "@Override\n public void test(Context context) {\n Toast.makeText(context,\"TestImpl 的 test方法被调用\",Toast.LENGTH_LONG).show();\n\n }", "public void yell(String message){\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "protected void toast() {\n }", "private void showScore() {\r\n View.show(score, this.getSize().width + 15, 0);\r\n }", "private void sendToCatEd()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Education'\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\tpublic void checkScore() {\n\t\t\n\t}", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_SHORT).show();\n\t\t\t}", "@Override\n\tpublic void printScore() {\n\n\t}", "public interface DisplayView {\n\n void displayGameScore(String score);\n\n void displayPlayerData(String playerData);\n\n void displayChance(int compareChance);\n\n void showWinToast();\n\n void showLoseToast();\n\n}", "int score();", "int score();", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString str = \"FeedBack : \" + feedbackText + \"\\n Rating : \" + String.valueOf(ratebar.getRating());\n\t\t\t\tToast.makeText(getApplicationContext(), str, Toast.LENGTH_LONG).show();\n\t\t\t}", "private void getTargetScore() {\n // stack overflow\n AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.AlertDialogTheme);\n builder.setTitle(R.string.target_score);\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);\n builder.setView(input);\n // Set up the buttons\n builder.setPositiveButton(R.string.positive_button, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n target_score = Integer.parseInt(input.getText().toString());\n target_score_view.setText(String.valueOf(target_score));\n game = new Game(target_score);\n }\n });\n // builder.show();\n // Set color of alert dialog buttons (from stack overflow)\n AlertDialog alert = builder.create();\n alert.show();\n\n Button pbutton = alert.getButton(DialogInterface.BUTTON_POSITIVE);\n pbutton.setBackgroundColor(getResources().getColor(R.color.yale_blue));\n }", "@Override\n public void onCorrect() {\n System.out.println(\"correct\");\n }", "public void onClick(View v) {\n Toast.makeText( getActivity(),\"Voice Recognition\", Toast.LENGTH_SHORT).show();\n }", "@SuppressLint(\"SetTextI18n\")\r\n private void displayScore() {\r\n\r\n\r\n mFinalScore.setText(\"Final score: \" + mScore);\r\n mQuestionView.setVisibility(View.GONE);\r\n mOption1.setVisibility(View.GONE);\r\n mOption2.setVisibility(View.GONE);\r\n mOption3.setVisibility(View.GONE);\r\n mNext.setVisibility(View.GONE);\r\n mTimer.setVisibility(View.GONE);\r\n mScoreView.setVisibility(View.GONE);\r\n mTimerLabel.setVisibility(View.GONE);\r\n mBackToStart.setVisibility(View.VISIBLE);\r\n\r\n }", "public void updateScoreboard() {\r\n \tif(parentActivity instanceof GameActivity) {\r\n \t\t((TextView)(((GameActivity)parentActivity).getScoreboard())).setText(\"\"+score);\r\n \t}\r\n }", "@Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(getApplicationContext(), \"Success!\",\n Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}", "private void showFinalScore() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Time's up! Your final score is: \" + score + \"\\nHigh score: \" + highScore);\n builder.setOnDismissListener(unused -> finish());\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "@Override\n public void displayMessage(String message) {\n Toast.makeText(getActivity(),message,Toast.LENGTH_SHORT).show();\n }", "@Override\npublic void update(int score) {\n\t\n}", "void submitScore(View view){\r\n calculateScore();\r\n calculateRating();\r\n displayMessage();\r\n sendMail();\r\n }", "private void sendToCatVA()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Visual Art'\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n userTurn = 0;\n\n //compScore = compTurn+compScore;\n compTurn=0;\n\n\n\n TextView scores = (TextView) findViewById(R.id.scoreStatement);\n scoreStatementjava = \"User holds. Computer's turn. Your score: \" + userScore + \". Computer score: \" + compScore + \". Your turn score is: \" + userTurn;\n //scoreStatementjava = \"User holds. Computer's turn.\";\n scores.setText(scoreStatementjava);\n\n computerTurn();\n }", "void showToast(String value);", "private void displayScore(int score) {\n // Set a text view to show the score.\n TextView scoreView = findViewById(R.id.score_text_view);\n scoreView.setText(format(\" %d\", score));\n }", "private void sendToCatLit()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Literary'\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }", "public void displayResult(View view){\n countPoints();\n String quantity;\n String player;\n boolean checked = ((CheckBox) findViewById(R.id.nickname)).isChecked();\n\n if (checked == true) {\n player = \"Anonymous\";\n } else {\n player = ((EditText) findViewById(R.id.name)).getText().toString();\n }\n /*\n method to show toast message with result\n */\n if (points > 1) {\n quantity = \" points!\";\n } else {\n quantity = \" point!\";\n }\n Toast.makeText(FlagQuiz.this, player + \", your score is: \" + points + quantity, Toast.LENGTH_LONG).show();\n }", "public static void displayScore(final Quiz quiz) {\n // write your code here\n // to display the score\n // report using quiz object.\n if (getflag()) {\n return;\n }\n System.out.println(quiz.showReport());\n }", "int getScore();", "void updateScore () {\n scoreOutput.setText(Integer.toString(score));\n }", "@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }", "private void displayMessage(String message) {\n Log.d(\"Method\", \"displayMessage()\");\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"Face UP\", Toast.LENGTH_LONG).show();\n\t\t\t\t}", "void toast(int resId);", "private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "public void submitQuiz(View view) {\n String userName = getUserName();\n double quizScore = gradeQuiz();\n String message = generateMessage(userName, quizScore);\n setResultsDisplay(quizScore);\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "public void displayForRmadrid(int score) {\n TextView scoreView = (TextView) findViewById(R.id.score_for_madrid);\n scoreView.setText(String.valueOf(score));\n\n }", "void onMessageToast(String string);", "private void updateScore(int point){\n mScoreView.setText(\"\" + mScore);\n }", "@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }", "public void displayScoreA (int score){\n\n TextView scoreA = (TextView)findViewById(R.id.team_a_score);\n scoreA.setText(String.valueOf(score));\n }", "private void sendToCatFilm()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Film'\", Toast.LENGTH_SHORT).show();\n }", "public void DisplayToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n if (presenter.getGameEnded() && !presenter.checkIfReplaying()) {\n //calls the scoreboard method\n presenter.terminateTimer();\n presenter.recordStats();\n scoreboard();\n }\n }", "private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "public void showScore(View target){\r\n\t\tFGCourse.this.startActivityForResult(new Intent(FGCourse.this,FGCScorecard.class),CREATE_SCORECARD_ACTIVITY);\r\n\t}", "private void displayTeamAScore(int num)\n {\n TextView scoreTextView = (TextView) findViewById(R.id.teamAScore);\n scoreTextView.setText(num +\"\");\n }", "private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "private void showMessage(String msg) {\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "public void ting(String msg) {\r\n\t\tToast.makeText(this, msg, Toast.LENGTH_SHORT).show();\r\n\t}", "public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}", "private void showGameScore() {\n System.out.println(messageProvider.provideMessage(\"score\"));\n System.out.println(settings.getPlayers().get(0).getScore()\n + \" vs \" + settings.getPlayers().get(1).getScore());\n }", "public void onClick(View v) {\n scoreTextview.setTextSize(164);\n guessPlay();\n }", "private void gameOverAlert() {\n \tAlert alert = new Alert(AlertType.INFORMATION);\n \t\n \talert.setTitle(\"Game Over!\");\n \talert.setHeaderText(\"You Did Not Get A New High Score!\\nYour High Score: \" + level.animal.getPoints());\n \talert.setContentText(\"Try Again Next Time!\");\n \talert.show();\n\t}", "public void calculateScore(){\n\n score.setText(Integer.toString(80));\n\n\n }", "void onScoreSelected(String value);", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }", "@Override\n\tpublic void onCategorySelect(String title) {\n\t\tfragment_score score=(fragment_score)fm.findFragmentByTag(\"score\");\n\t\tscore.SetMessage(title);\n\t\t//Toast.makeText(getBaseContext(), title+\"2\", 0).show();\n\t}", "private void newHighScoreAlert() {\n\t\tAlert alert = new Alert(AlertType.INFORMATION);\n\t\t\n\t\talert.setTitle(\"New High Score!\");\n \talert.setHeaderText(\"You Got A New High Score!\\nYour High Score: \" + level.animal.getPoints());\n \talert.setContentText(\"Enter Your Name With Alphabet Or Digit Keys.\\nPress 'Enter' To Confirm Your Name Afterwards.\");\n \talert.show();\n\t}", "void onScoresChanged(int scores);", "public void onDisplay() {\n }", "@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }" ]
[ "0.7255747", "0.68842626", "0.6867124", "0.6843127", "0.67748284", "0.6768235", "0.6650172", "0.6638213", "0.66091156", "0.66005903", "0.6429263", "0.6413818", "0.63974047", "0.6384789", "0.6384789", "0.6370227", "0.63572055", "0.63522613", "0.63515127", "0.63515127", "0.6345515", "0.63443583", "0.63432425", "0.63340634", "0.6323814", "0.63073397", "0.630075", "0.62888163", "0.62829924", "0.6266255", "0.6214121", "0.6202205", "0.6199563", "0.6185365", "0.61765444", "0.6162688", "0.6146309", "0.61361414", "0.61361414", "0.61361414", "0.6128198", "0.611699", "0.6112309", "0.61058813", "0.61058813", "0.61022294", "0.6088791", "0.6078306", "0.6073293", "0.6072584", "0.6069782", "0.6069716", "0.6065676", "0.6055098", "0.6049871", "0.60266715", "0.60196376", "0.6004435", "0.59954536", "0.59936696", "0.5993516", "0.59912485", "0.59866047", "0.59826016", "0.59792715", "0.59780717", "0.5975158", "0.5969828", "0.5966655", "0.59595793", "0.5957767", "0.59573764", "0.59541357", "0.5951104", "0.5951104", "0.5945651", "0.5945032", "0.59430355", "0.59396553", "0.5939089", "0.59338427", "0.59304166", "0.5923406", "0.59231985", "0.59192437", "0.59135216", "0.59093267", "0.5908738", "0.5908261", "0.590816", "0.5899114", "0.58965915", "0.5896068", "0.589178", "0.588819", "0.58856004", "0.58814925", "0.5871623", "0.5870249", "0.5866481", "0.5865681" ]
0.0
-1
Toast.makeText(MainActivity.this,"Safe Move function has to be implemented",Toast.LENGTH_SHORT).show();
@Override public void onClick(View v) { startActivity(new Intent(StartPage.this,SafeMove.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMovement() {\n showToast(\"设备移动\");\n LogUtil.e(\"move\");\n }", "void showToast(String message);", "void showToast(String message);", "protected void toast() {\n }", "protected void onMove() {\r\n }", "void onMove();", "protected void showToast(String message) {\n\tToast.makeText(this, message, Toast.LENGTH_SHORT).show();\n}", "private void showErrorToast() {\n }", "@Override\r\n\tprotected void onMove() {\n\t\t\r\n\t}", "private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "public void move(){\n System.out.println(\"I can't move...\");\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "public void showToast(final String message){\n\t runOnUiThread(new Runnable() {\n\t public void run()\n\t {\n\t Toast.makeText(VisitMultiplayerGame.this, message, Toast.LENGTH_SHORT).show();\n\t }\n\t });\n\t}", "@Override\n public void onMove(boolean absolute) {\n \n }", "private void showToast(String message){\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}", "private void showToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();\n }", "public void showToast(String msg){\n Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n }", "private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "void onMessageToast(String string);", "public void DisplayToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_SHORT).show();\n }", "private void showToast(final String message) {\n main.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(main.getApplicationContext(), message, Toast.LENGTH_LONG).show();\n }\n });\n }", "private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }", "private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }", "@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onStationary() {\n showToast(\"设备停止移动\");\n LogUtil.e(\"stop_move\");\n }", "public void tingOnUI(final String msg) {\r\n\r\n\t\trunOnUiThread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tToast.makeText(SmartActivity.this, msg, Toast.LENGTH_SHORT).show();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "public void ting(String msg) {\r\n\t\tToast.makeText(this, msg, Toast.LENGTH_SHORT).show();\r\n\t}", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Goodbye!\", Toast.LENGTH_SHORT).show();\n }", "public void onEventSelected(int position) {\n Toast toast=Toast.makeText(getApplicationContext(),\"Hello Javatpoint\",Toast.LENGTH_SHORT);\n toast.setMargin(50,50);\n toast.show();\n }", "private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }", "public void Move()\n {\n \n }", "private void showToast(String msg) {\r\n Toast.makeText(Imprimir.this, msg, Toast.LENGTH_LONG).show();\r\n }", "@Override\n public void onMove(float x, float y) {\n }", "protected void showToast(String string)\r\n\t{\n\t\tToast.makeText(MainActivity.this, string, Toast.LENGTH_SHORT).show();\r\n\t}", "private void toast(String string){\n Toast.makeText(this, string, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Hello World\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(mContext, \"You Clicked \" + position, Toast.LENGTH_LONG).show();\n }", "public void move() {\n\n }", "@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }", "private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"I'm a toast!\", Toast.LENGTH_SHORT).show();\n }", "private void makeToast(String msg)\n {\n FinanceApp.serviceFactory.getUtil().makeAToast(this, msg);\n }", "public void tongOnUI(final String msg) {\r\n\t\trunOnUiThread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tToast.makeText(SmartActivity.this, msg, Toast.LENGTH_LONG).show();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "void showToast(String value);", "public void run() {\n Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); // toast for whatever reason\n }", "public void showToast(String text){\n Toast.makeText(this,text,Toast.LENGTH_SHORT).show();\n }", "public static void displayToast(Context context, String msg) {\n Toast.makeText(context, msg, Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onThinking() {\n toast(\"Processing\");\n showDialog();\n }", "public void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message,\n Toast.LENGTH_SHORT).show();\n }", "private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "public void showMessage(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void displayMessage(String message) {\n Toast.makeText(getActivity(),message,Toast.LENGTH_SHORT).show();\n }", "public static void showToast(Context context, String text) {\n //Toast.makeText(context, text, Toast.LENGTH_SHORT).show();\n showToastAtCenter(context, text);\n }", "public void move() {\n\r\n\t}", "@Override\r\n public void onLeftCardExit(Object dataObject) {\n Toast.makeText(MainActivity.this, \"Left\", Toast.LENGTH_SHORT).show();\r\n }", "public void showToast(final String message)\n {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(context, message, Toast.LENGTH_SHORT).show();\n }\n });\n }", "public void showToastMessage(String str) {\n Toast.makeText(self, str, Toast.LENGTH_SHORT).show();\n }", "@Override\n\tpublic void move() {\n\t\tSystem.out.println(\"하늘을 날다\");\n\t}", "public void ToastMessage() {\n\n // create toast message object\n final Toast toast = Toast.makeText(Product_Details_Page_Type_4.this,\n \"Product added to cart\",Toast.LENGTH_LONG);\n // show method call to show Toast message\n toast.show();\n\n // create handler to set duration for toast message\n Handler handler = new Handler() {\n\n @Override\n public void close() {\n // set duration for toast message\n toast.setDuration(100);\n // cancel toast message\n toast.cancel();\n }\n @Override\n public void flush() {}\n\n @Override\n public void publish(LogRecord record) {}\n };\n }", "@Override\n\tpublic void move() {\n\t\tSystem.out.println(\"Can Move\");\n\t}", "@Override\n\tpublic void onMoveError(String msg) {\n\n\t}", "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Uh-oh! something went wrong, please try again.\",Toast.LENGTH_SHORT).show();\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(getApplication(), \"right\", 1).show();\r\n\t\t\t}", "@Override\n public void move() {\n System.out.println(\"I roam here and there\");\n }", "public void yell(String message){\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "public static void showToast(Context context, String msg) {\n Toast.makeText(context, \"\" + msg, Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(),\"hey uuuu clicked me \",Toast.LENGTH_SHORT).show();\n }", "private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "public void displayToast(String message) {\n //Todo: Add Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show(); to @displayToast method\n Log.d(TAG, message);\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }", "public void toastKickoff(String message) {\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }", "public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }", "static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\r\n\t\t\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"등록완료\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\r\n\t\t\t\t\t \r\n\t\t\t}", "@Override\n\t\t\tpublic void onFailed(String str) {\n\t\t\t\tToast.makeText(MainActivity.this, str, Toast.LENGTH_LONG).show();\n\t\t\t}", "public void AskForMove();", "private void showMessage(String message) {\n Toast.makeText(getApplicationContext(),message, Toast.LENGTH_LONG).show();\n }", "private void makeToast(String string) {\n\t\tToast.makeText(this, string, Toast.LENGTH_SHORT).show();\r\n\r\n\t}", "public void toast(String message) {\n Toast.makeText(mContext, message, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }", "public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\t\tpublic void onTouchMove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onTouchMove() {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\r\n\tpublic void move() {\n\r\n\t}", "public void showMessage(String text)\n {\n Toast.makeText(this, text, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message!\", Toast.LENGTH_SHORT).show();\n\n }", "private void makeToast(String message){\n Toast.makeText(SettingsActivity.this, message, Toast.LENGTH_LONG).show();\n }", "void toast(int resId);", "@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}", "public interface ToastClick {\r\n void btnclick(int pos);\r\n}", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message! Your emergnecy conctacts will be notified!\", Toast.LENGTH_SHORT).show();\n\n }", "private void showToast(final String message) {\n Log.e(App.TAG, message);\n\n Handler h = new Handler(Looper.getMainLooper());\n h.post(new Runnable() {\n public void run() {\n Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show();\n }\n });\n }", "private void doToast() {\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\t\r\n\t\t// Create and send toast\r\n\t\tContext context = getApplicationContext();\r\n\t\tint duration = Toast.LENGTH_SHORT;\r\n\t\tToast toast = Toast.makeText(context, message, duration);\r\n\t\ttoast.show();\r\n\t}", "@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }" ]
[ "0.74325573", "0.69692236", "0.69692236", "0.6916581", "0.67616093", "0.67604095", "0.67551816", "0.67457795", "0.6726961", "0.6672266", "0.66502696", "0.6646518", "0.6646518", "0.662783", "0.65881103", "0.6573177", "0.6559613", "0.6558957", "0.65427864", "0.65139633", "0.64799094", "0.64624804", "0.6459918", "0.64525276", "0.64525276", "0.64504534", "0.6449155", "0.6443127", "0.64390874", "0.6415679", "0.6411059", "0.6406328", "0.63865423", "0.63823533", "0.6381781", "0.6379975", "0.6363978", "0.6341916", "0.6340958", "0.6336539", "0.6320174", "0.63140374", "0.6310645", "0.6277947", "0.62728316", "0.626795", "0.62609875", "0.62553096", "0.62497216", "0.6237269", "0.622683", "0.6224407", "0.6222918", "0.6219151", "0.62172025", "0.62172025", "0.62172025", "0.6214674", "0.62134624", "0.62074214", "0.6200408", "0.61941457", "0.61777186", "0.6165472", "0.6158597", "0.6129143", "0.6128636", "0.6127141", "0.6126583", "0.6123694", "0.6123435", "0.6122349", "0.61186355", "0.61167073", "0.6103966", "0.61024225", "0.6101779", "0.6100251", "0.6091139", "0.608661", "0.608367", "0.60827523", "0.6078949", "0.6076351", "0.60626066", "0.6061615", "0.6058287", "0.60564965", "0.6056491", "0.6056491", "0.6052707", "0.60426646", "0.6038728", "0.60289115", "0.6019592", "0.6018221", "0.6014344", "0.6012287", "0.60105544", "0.6008106", "0.6008103" ]
0.0
-1
Toast.makeText(MainActivity.this,"Precaution function has to be implemented",Toast.LENGTH_SHORT).show();
@Override public void onClick(View v) { startActivity(new Intent(StartPage.this,MainActivity.class)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void toast() {\n }", "void showToast(String message);", "void showToast(String message);", "@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Goodbye!\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void call(final Void aVoid) {\n Toast.makeText(getContext(), \"terms and conditions\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(MainActivity.this, \"Hello World\", Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }", "private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }", "private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }", "@Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(getContext(), \"המוצר נמחק בהצלחה!\", Toast.LENGTH_SHORT).show();\n }", "private void showErrorToast() {\n }", "public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n Toast tst = Toast.makeText(MainActivity.this, \"test\", Toast.LENGTH_SHORT);\n tst.show();\n Test();\n }", "private void sendToCatTheater()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Theater'\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onThinking() {\n toast(\"Processing\");\n showDialog();\n }", "@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }", "void toast(int resId);", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\r\n\t\t\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"등록완료\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\r\n\t\t\t\t\t \r\n\t\t\t}", "public void yell(String message){\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "private void sendToCatEd()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Education'\", Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message! Your emergnecy conctacts will be notified!\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }", "private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "public void showToast(String text){\n Toast.makeText(this,text,Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Uh-oh! something went wrong, please try again.\",Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(getApplicationContext(), \"Success!\",\n Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\tpublic void onFailed(String str) {\n\t\t\t\tToast.makeText(MainActivity.this, str, Toast.LENGTH_LONG).show();\n\t\t\t}", "private void displayToast(CharSequence text){\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }", "@Override\n public void onClick(View v) {\n Toast.makeText(getContext(),\"hey uuuu clicked me \",Toast.LENGTH_SHORT).show();\n }", "private void sendToCatVA()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Visual Art'\", Toast.LENGTH_SHORT).show();\n }", "public void notImplemented(View v) {\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(this, \"Not implemented\", duration);\n toast.show();\n }", "public void showMessage(String text)\n {\n Toast.makeText(this, text, Toast.LENGTH_SHORT).show();\n }", "public void displayAnswer(){\r\n String message = \"That is the correct answer!\";\r\n\r\n Toast.makeText(QuizActivity.this,\r\n message, Toast.LENGTH_SHORT).show();\r\n }", "@Override\n public void onThinking() {\n toast(\"Processing\");\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "void showToast(String value);", "public void showMessage(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_SHORT).show();\n }", "private void sendToCatLit()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Literary'\", Toast.LENGTH_SHORT).show();\n }", "void onMessageToast(String string);", "private void showToast(String msg) {\r\n Toast.makeText(Imprimir.this, msg, Toast.LENGTH_LONG).show();\r\n }", "public void ToastMessage() {\n\n // create toast message object\n final Toast toast = Toast.makeText(Product_Details_Page_Type_4.this,\n \"Product added to cart\",Toast.LENGTH_LONG);\n // show method call to show Toast message\n toast.show();\n\n // create handler to set duration for toast message\n Handler handler = new Handler() {\n\n @Override\n public void close() {\n // set duration for toast message\n toast.setDuration(100);\n // cancel toast message\n toast.cancel();\n }\n @Override\n public void flush() {}\n\n @Override\n public void publish(LogRecord record) {}\n };\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message!\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }", "protected void showToast(String message) {\n\tToast.makeText(this, message, Toast.LENGTH_SHORT).show();\n}", "@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "private void toast(String string){\n Toast.makeText(this, string, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"\"+e.getMessage(),Toast.LENGTH_SHORT).show();\n\n }", "public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}", "public void ting(String msg) {\r\n\t\tToast.makeText(this, msg, Toast.LENGTH_SHORT).show();\r\n\t}", "@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }", "private void showToast(String message){\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void displayMessage(String message) {\n Toast.makeText(getActivity(),message,Toast.LENGTH_SHORT).show();\n }", "void toast(CharSequence sequence);", "private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }", "public void loadToast(){\n Toast.makeText(getApplicationContext(), \"Could not find city\", Toast.LENGTH_SHORT).show();\n }", "private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }", "@Override\n public void run() {\n Toast.makeText(getApplicationContext(), \"I'm a toast!\", Toast.LENGTH_SHORT).show();\n }", "public void showToast(String msg){\n Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n }", "private void showToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();\n }", "private void sendToCatDance()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Dance'\", Toast.LENGTH_SHORT).show();\n }", "private void showMessage(String message) {\n Toast.makeText(getApplicationContext(),message, Toast.LENGTH_LONG).show();\n }", "@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_SHORT).show();\n\t\t\t}", "static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onEnterAmbient(Bundle ambientDetails) {\n Toast.makeText(getApplicationContext(), \"Enter\", Toast.LENGTH_LONG).show();\n }", "protected void showToast(String string)\r\n\t{\n\t\tToast.makeText(MainActivity.this, string, Toast.LENGTH_SHORT).show();\r\n\t}", "public void DisplayToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), exception.getMessage(), Toast.LENGTH_LONG).show();\n }", "@Override\n public void toastSemEnderecos() {\n Toast.makeText(MainActivity.this, R.string.semEndereco, Toast.LENGTH_SHORT).show();\n }", "protected void showToast(CharSequence text) {\r\n\t Context context = getApplicationContext();\r\n\t int duration = Toast.LENGTH_SHORT;\r\n\t \r\n\t Toast toast = Toast.makeText(context, text, duration);\r\n\t toast.show();\r\n\t}", "@Override\n\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\tToast.makeText(MainActivity.this, arg0, Toast.LENGTH_LONG).show();\n\t\t\t}", "public void onClick(View v) {\n Toast.makeText( getActivity(),\"Voice Recognition\", Toast.LENGTH_SHORT).show();\n }", "public void run() {\n Toast.makeText(context, toast, Toast.LENGTH_SHORT).show(); // toast for whatever reason\n }", "private void toastMessage(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void test(Context context) {\n Toast.makeText(context,\"TestImpl 的 test方法被调用\",Toast.LENGTH_LONG).show();\n\n }", "void displayMessage(){\r\n Toast toast = Toast.makeText(this, getString(R.string.congratz_message, String.valueOf(playerScore)), Toast.LENGTH_SHORT);\r\n toast.show();\r\n }", "public void showHintAtWaypoint(final int instruction){\n\n LayoutInflater inflater = getLayoutInflater();\n View layout = inflater.inflate(R.layout.toast, (ViewGroup) findViewById(R.id.toast_layout));\n ImageView image = (ImageView) layout.findViewById(R.id.toast_image);\n //image.setImageResource(R.drawable.img_compass);\n String turnDirection = null;\n Vibrator myVibrator = (Vibrator) getApplication().getSystemService(Service.VIBRATOR_SERVICE);\n\n Toast toast = new Toast(getApplicationContext());\n toast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);\n toast.setDuration(Toast.LENGTH_SHORT);\n toast.setView(layout);\n\n if(instruction== ARRIVED_NOTIFIER){\n\n turnDirection = YOU_HAVE_ARRIVE;\n image.setImageResource(R.drawable.arrived_image);\n tts.speak(turnDirection, TextToSpeech.QUEUE_ADD, null);\n toast.show();\n myVibrator.vibrate(800);\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n finish();\n\n }\n else if(instruction== WRONGWAY_NOTIFIER){\n turnDirection = \"正在幫您重新規劃路線\";\n tts.speak(turnDirection, TextToSpeech.QUEUE_ADD, null);\n image.setImageResource(R.drawable.rerouting_image);\n toast.show();\n myVibrator.vibrate(1000);\n }\n else if(instruction== MAKETURN_NOTIFIER) {\n\n switch (turnNotificationForPopup) {\n\n case RIGHT:\n turnDirection = PLEASE_TURN_RIGHT;\n image.setImageResource(R.drawable.right_arrow);\n break;\n case LEFT:\n turnDirection = PLEASE_TURN_LEFT;\n image.setImageResource(R.drawable.left_arrow);\n break;\n case FRONT_RIGHT:\n turnDirection = PLEASE_TURN__FRONT_RIGHT;\n image.setImageResource(R.drawable.frontright_arrow);\n break;\n case FRONT_LEFT:\n turnDirection = PLEASE_TURN_FRONT_LEFT;\n image.setImageResource(R.drawable.frontleft_arrow);\n break;\n case REAR_RIGHT:\n turnDirection = PLEASE_TURN__REAR_RIGHT;\n image.setImageResource(R.drawable.rearright_arrow);\n break;\n case REAR_LEFT:\n turnDirection = PLEASE_TURN_REAR_LEFT;\n image.setImageResource(R.drawable.rearleft_arrow);\n break;\n case FRONT:\n turnDirection = PLEASE_GO_STRAIGHT;\n image.setImageResource(R.drawable.up_arrow);\n break;\n case ELEVATOR:\n turnDirection = PLEASE_TAKE_ELEVATOR;\n image.setImageResource(R.drawable.elevator);\n break;\n case STAIR:\n turnDirection = PLEASE_WALK_UP_STAIR;\n image.setImageResource(R.drawable.stair);\n break;\n case \"goback\":\n turnDirection = \" \";\n image.setImageResource(R.drawable.turn_back);\n break;\n\n\n }\n\n tts.speak(turnDirection, TextToSpeech.QUEUE_ADD, null);\n\n Log.i(\"showHint\", \"showHint\");\n if(turnNotificationForPopup != null){\n toast.show();\n Log.i(\"showHint\", \"show\");\n\n }\n\n\n myVibrator.vibrate(new long[]{50, 100, 50}, -1);\n }\n\n }", "@Override protected void onPreExecute() {\r\n // A toast provides simple feedback about an operation as popup. \r\n // It takes the application Context, the text message, and the duration for the toast as arguments\r\n //android.widget.Toast.makeText(mContext, \"Going for the network call..\", android.widget.Toast.LENGTH_LONG).show();\r\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"模块开发中,敬请期待\", Toast.LENGTH_SHORT).show();\r\n\t\t\t}", "public interface IToast {\n void showToast(Context context, String txt);\n}", "public void showComingSoonMessage() {\n showToastMessage(\"Coming soon!\");\n }", "public void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message,\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View v) {\n Context context = getApplicationContext();\n // When the Hello button on the app is pressed this line of code will show *Hello, how are you?!\"\n Toast toast = Toast.makeText(context,\n \"Contact details for the college are - \" +\n \"\\n\\t CSN College, Tramore Road, Co.Cork\" +\n \"\\n\\t Phone number: 021-4961020\" +\n \"\\n\\t Email: [email protected]\", Toast.LENGTH_LONG);\n // This is for the toast message to show.\n toast.show();\n\n }", "private void sendToCatFilm()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Film'\", Toast.LENGTH_SHORT).show();\n }", "private void makeToast(String message){\n Toast.makeText(SettingsActivity.this, message, Toast.LENGTH_LONG).show();\n }", "public void notificacionToast(String mensaje){\n Toast toast = Toast.makeText(getApplicationContext(),mensaje,Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n }", "@Override\n public void onFailure(Throwable t) {\n Toast.makeText(context, t.getMessage(), Toast.LENGTH_LONG).show();\n }", "private void showToast (String appName) {\n Toast.makeText(this,getString(R.string.openAppMessage,appName), Toast.LENGTH_SHORT).show();\n }", "void showError() {\n Toast.makeText(this, \"Please select answers to all questions.\", Toast.LENGTH_SHORT).show();\n }", "public void tingOnUI(final String msg) {\r\n\r\n\t\trunOnUiThread(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tToast.makeText(SmartActivity.this, msg, Toast.LENGTH_SHORT).show();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "public void onEventSelected(int position) {\n Toast toast=Toast.makeText(getApplicationContext(),\"Hello Javatpoint\",Toast.LENGTH_SHORT);\n toast.setMargin(50,50);\n toast.show();\n }", "@Override\nprotected void onResume() {\n\tsuper.onResume();\n\t//Toast.makeText(getApplicationContext(), \"onResume\", 1).show();\n}", "private void makeToast(String msg)\n {\n FinanceApp.serviceFactory.getUtil().makeAToast(this, msg);\n }" ]
[ "0.7297579", "0.7171026", "0.7171026", "0.7106967", "0.70979017", "0.70017457", "0.6984828", "0.69484484", "0.6936242", "0.6936242", "0.69218695", "0.69171476", "0.6904425", "0.6886357", "0.6884624", "0.6834405", "0.682852", "0.68111384", "0.6798868", "0.6762609", "0.67579615", "0.6749239", "0.67452264", "0.67452264", "0.6742096", "0.67409575", "0.6738112", "0.67354274", "0.67190963", "0.67095816", "0.6691271", "0.66903865", "0.66760874", "0.6676042", "0.66685605", "0.6668279", "0.6663186", "0.66515857", "0.6639434", "0.66353816", "0.66353816", "0.66353816", "0.6634051", "0.66329014", "0.66265815", "0.66234684", "0.6619847", "0.66183054", "0.6611469", "0.66112685", "0.66112036", "0.660817", "0.6606184", "0.6598146", "0.6592441", "0.6592349", "0.65917003", "0.6588181", "0.6586355", "0.6567417", "0.6552113", "0.6548656", "0.6543201", "0.6528011", "0.652005", "0.65176773", "0.65151703", "0.64859104", "0.64817995", "0.64578676", "0.6449456", "0.644048", "0.6433191", "0.6432546", "0.6430428", "0.64301187", "0.64231807", "0.6422229", "0.6420827", "0.6415901", "0.6414783", "0.6411023", "0.6409227", "0.6405172", "0.6400473", "0.6380709", "0.6369805", "0.6367381", "0.6365979", "0.6351446", "0.6350776", "0.6341009", "0.63232845", "0.6316647", "0.6314556", "0.6283821", "0.6278782", "0.62624836", "0.62611914", "0.6259619", "0.62536615" ]
0.0
-1
Implementacija sucelja SettingsPresenter. Uneseni podaci se prosljeduju interactoru.
@Override public void tryGetSettings(int userId) { interactor.getSettings(userId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ISettingsPresenter {\n void onViewReady();\n\n void changeNotificationsState(boolean state);\n\n void changeActivityLogState(boolean state);\n\n void cleanActivityLogs();\n\n void changeContinuousLogin(boolean isEnabled);\n\n void changeWifiAutoLogin(boolean isEnabled);\n\n void changeIPAddress(String ipAddress);\n\n void changePort(String port);\n}", "@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}", "void setSettings(ControlsSettings settings);", "void getSettings(ControlsSettings settings);", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "Settings ()\n {\n }", "@Override\n public void onClick(View view) {\n iPresenter.setUpSettingsModal(HomeActivity.this);\n }", "boolean setSettings(Settings sm);", "public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "private SettingsWindow() {\n loadData();\n createListeners();\n }", "@Override\n\tpublic ISettingsView getSettingsView() {\n\t\tLog.debug(\"getSettingsView is null ......................\");\n\t\treturn null;\n\t}", "public SettingsPanel() {\n initComponents();\n }", "public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "public void setSettings(Settings settings)\r\n\t{\r\n\t\tthis.settings = settings;\r\n\t}", "public StartSettingsView() {\n\n super();\n super.setTitle(\"Settings\");\n\n this.createPatientsComboBox();\n this.createButtons();\n\n super.setLayouts(0.2f, 0.2f,0,0.6f);\n\n\t}", "public Settings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}", "public interface ISettingsView {\r\n void initViews();\r\n}", "public SettingPresenter(GameConstants gameConst, PlayerStatus player,\r\n\t\t\tISettingController controller) {\r\n\t\tthis.gameConstants = gameConst;\r\n\t\tthis.player = player;\r\n\t\tthis.controller = controller;\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tview = new ShipSettingPanel(SettingPresenter.this);\r\n\t\t\t\tview.initialize(\r\n\t\t\t\t\t\tSettingPresenter.this.gameConstants.getShipTypes(),\r\n\t\t\t\t\t\tSettingPresenter.this.gameConstants.getBoardSizeV(),\r\n\t\t\t\t\t\tSettingPresenter.this.gameConstants.getBoardSizeH());\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "Settings getSettings();", "public void switchToSettings() {\r\n\t\tlayout.show(this, \"settingsPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public interface SettingsContract {\n\n interface Presenter extends BasePresenter {\n /**\n * 检测更新app\n */\n void getUpdateApp();\n\n /**\n * 下载app\n */\n void downloadApp(String updateAppUrl);\n\n\n /**\n * 是否登录\n */\n void isLogin(int flag);\n\n }\n\n interface View extends BaseNewView<Presenter, String> {\n// /**\n// * http请求正确\n// *\n// * @param s\n// */\n// void getSuccess(String s);\n//\n// /**\n// * http请求错误\n// */\n// void error(String msg);\n\n }\n}", "private void viewSettings() {\n startActivity(new Intent(Main.this, Settings.class));\n }", "TvShowSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n\n // UI initializations\n initComponents();\n initDataBindings();\n\n // logic initializations\n btnClearTraktTvShows.addActionListener(e -> {\n Object[] options = { BUNDLE.getString(\"Button.yes\"), BUNDLE.getString(\"Button.no\") };\n int confirm = JOptionPane.showOptionDialog(null, BUNDLE.getString(\"Settings.trakt.cleartvshows.hint\"),\n BUNDLE.getString(\"Settings.trakt.cleartvshows\"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, null);\n if (confirm == JOptionPane.YES_OPTION) {\n TmmTask task = new ClearTraktTvTask(false, true);\n TmmTaskManager.getInstance().addUnnamedTask(task);\n }\n });\n\n btnPresetXbmc.addActionListener(evt -> settings.setDefaultSettingsForXbmc());\n btnPresetKodi.addActionListener(evt -> settings.setDefaultSettingsForKodi());\n btnPresetMediaPortal1.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetMediaPortal2.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetPlex.addActionListener(evt -> settings.setDefaultSettingsForPlex());\n\n buildCheckBoxes();\n }", "public Settings() {\n initComponents();\n }", "public Settings() {\n initComponents();\n }", "public static SettingsPanel getSettingsPanel() {\n\t\treturn ((dataProvider == null) ? null : new AmpSettingsPanel());\n\t}", "public interface SettingsProvider {\n /**\n * Enable the background data option to fetch daily deviations periodically.\n */\n void enableBackgroundData();\n\n /**\n * Disable the background data option to fetch daily deviations periodically.\n */\n void disableBackgroundDate();\n\n /**\n * Determine whether background data is enabled.\n * @return true if background data is enabled.\n */\n boolean isBackgroundDataEnabled();\n\n /**\n * Enable the local notification system used to notify users when there is new data.\n */\n void enableNotifications();\n\n /**\n * Disable the local notification system used to notify users when there is new data.\n */\n void disableNotifications();\n\n /**\n * Determine whether local notifications are enabled.\n * @return true if local notifications are enabled - note this will be overridden by\n * the Android system settings regarding notifications for the app.\n */\n boolean isNotificationsEnabled();\n\n /**\n * Enable the automatic header image selection when the app starts up - where an\n * image is chosen at random from the content provider and displayed in the nav menu.\n */\n void enableAutomaticHeaderImage();\n\n /**\n * Disable the automatic header image selection on app start.\n */\n void disableAutomaticHeaderImage();\n\n /**\n * Determine whether the automatic header image is enabled.\n * @return true if automatic header images is enabled.\n */\n boolean isAutomaticHeaderImageEnabled();\n}", "HeaderSettingsPage(SettingsContainer container)\n {\n super(container);\n initialize();\n }", "public interface SettingsView extends BaseView {\n}", "public SettingsScreen getSettingsScreen() {\n return settingsScreen;\n }", "@StateStrategyType(SkipStrategy.class)\npublic interface ISettingsView extends MvpView {\n\n void showSettings(SettingsDto settings);\n\n void close();\n\n}", "private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }", "interface SettingsContract {\r\n\r\n interface View extends BaseView<SettingsContract.Presenter> {\r\n\r\n /**\r\n * Returns the context.\r\n *\r\n * @return context.\r\n */\r\n Context getContext();\r\n\r\n /**\r\n * Shows loading message.\r\n */\r\n void showLoadingMsg();\r\n\r\n /**\r\n * Shows data generated successfully message.\r\n */\r\n void showDataGeneratedMsg();\r\n\r\n /**\r\n * Shows data deleted successfully message.\r\n */\r\n void showDataDeletedMsg();\r\n }\r\n\r\n\r\n interface Presenter extends BasePresenter {\r\n\r\n /**\r\n * Attaches a listener that performs the specified action when the preference is clicked.\r\n *\r\n * @param preference preference to attach.\r\n */\r\n void bindPreferenceClickListener(Preference preference);\r\n\r\n /**\r\n * Attaches a listener so the summary is always updated with the preference value.\r\n * Also fires the listener once, to initialize the summary (so it shows up before the value\r\n * is changed).\r\n *\r\n * @param preference preference to attach.\r\n */\r\n void bindPreferenceSummaryToValue(Preference preference);\r\n\r\n }\r\n}", "@Override\n protected void initSettings (GameSettings settings) {\n settings.setWidth(15 * 70);\n settings.setHeight(10* 70);\n settings.setVersion(\"0.1\");\n settings.setTitle(\"Platformer Game\");\n settings.setMenuEnabled(true);\n settings.setMenuKey(KeyCode.ESCAPE);\n }", "public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }", "@Override\n\tpublic void initSettings() {\n\n\t}", "public void setSettings(final Properties settings) {\r\n this.settings = settings;\r\n\r\n replay = new Replay(settings);\r\n\r\n for(final MenuItem item : eventMenu.getItems()) {\r\n if (item instanceof CustomMenuItem) {\r\n final String event = item.getText();\r\n final CustomMenuItem customItem = ((CustomMenuItem) item);\r\n if (customItem.getContent() instanceof CheckBox) {\r\n final CheckBox checkBox = (CheckBox) customItem.getContent();\r\n checkBox.setSelected(replay.notableEvents.contains(event));\r\n }\r\n }\r\n }\r\n\r\n zoomStep = Integer.parseInt(settings.getProperty(\"zoom.step\", \"100\"));\r\n\r\n daysCombo.getItems().addAll(settings.getProperty(\"list.delta.per.tick\", \"1;30;365\").split(\";\"));\r\n daysCombo.getSelectionModel().select(settings.getProperty(\"delta.per.tick\", \"1\"));\r\n try {\r\n periodCombo.getSelectionModel().select(Integer.parseInt(settings.getProperty(\"period.per.tick\", \"0\")));\r\n } catch (NumberFormatException e) {\r\n periodCombo.getSelectionModel().selectFirst();\r\n settings.setProperty(\"period.per.tick\", \"0\");\r\n }\r\n\r\n langCombo.getSelectionModel().select(settings.getProperty(\"locale.language\", \"en\"));\r\n\r\n replay.drawBorders = \"true\".equals(settings.getProperty(\"borders\", \"false\"));\r\n\r\n focusEdit.setText(settings.getProperty(\"focus\", \"\"));\r\n\r\n saveDirectory = new File(settings.getProperty(\"save.dir\", \"\"));\r\n if (!saveDirectory.exists() || !saveDirectory.isDirectory()) {\r\n saveDirectory = new File(Replay.DEFAULT_SAVE_DIR);\r\n if (!saveDirectory.exists() || !saveDirectory.isDirectory()) {\r\n saveDirectory = new File(System.getProperty(\"user.home\"), \"/\");\r\n }\r\n }\r\n\r\n serDirectory = new File(settings.getProperty(\"ser.dir\", \"\"));\r\n if (!serDirectory.exists() || !serDirectory.isDirectory()) {\r\n serDirectory = new File(Replay.DEFAULT_SAVE_DIR);\r\n if (!serDirectory.exists() || !serDirectory.isDirectory()) {\r\n serDirectory = new File(System.getProperty(\"user.home\"), \"/\");\r\n }\r\n }\r\n\r\n subjectsCheckMenuItem.setSelected(replay.subjectsAsOverlords);\r\n\r\n gifMenu.setVisible(!settings.getProperty(\"gif\", \"false\").equals(\"true\"));\r\n gifLoopCheckMenuItem.setSelected(settings.getProperty(\"gif.loop\", \"true\").equals(\"true\"));\r\n gifWidthEdit.setText(settings.getProperty(\"gif.width\", \"0\"));\r\n gifHeightEdit.setText(settings.getProperty(\"gif.height\", \"0\"));\r\n gifBreakEdit.setText(settings.getProperty(\"gif.new.file\", \"0\"));\r\n gifStepEdit.setText(settings.getProperty(\"gif.step\", \"100\"));\r\n gifDateCheckMenuItem.setSelected(settings.getProperty(\"gif.date\", \"true\").equals(\"true\"));\r\n gifDateColorPicker.setValue(Color.web(settings.getProperty(\"gif.date.color\", \"0x000000\")));\r\n gifDateSizeEdit.setText(settings.getProperty(\"gif.date.size\", \"12\"));\r\n gifDateXEdit.setText(settings.getProperty(\"gif.date.x\", \"60\"));\r\n gifDateYEdit.setText(settings.getProperty(\"gif.date.y\", \"60\"));\r\n gifSubimageCheckMenuItem.setSelected(settings.getProperty(\"gif.subimage\", \"false\").equals(\"true\"));\r\n gifSubimageXEdit.setText(settings.getProperty(\"gif.subimage.x\", \"0\"));\r\n gifSubimageYEdit.setText(settings.getProperty(\"gif.subimage.y\", \"0\"));\r\n gifSubimageWidthEdit.setText(settings.getProperty(\"gif.subimage.width\", \"\"));\r\n gifSubimageHeightEdit.setText(settings.getProperty(\"gif.subimage.height\", \"\"));\r\n\r\n bordersCheckMenuItem.setSelected(settings.getProperty(\"borders\", \"false\").equals(\"true\"));\r\n disableLog = settings.getProperty(\"log.disable\", \"false\").equals(\"true\");\r\n\r\n eu4Directory = new File(settings.getProperty(\"eu4.dir\"));\r\n try {\r\n lock.acquire();\r\n loadData();\r\n } catch (InterruptedException e) { }\r\n }", "public void setAccountSettingsPanel(Pane accountSettingsPanel)\n {\n this.accountSettingsPanel = accountSettingsPanel;\n }", "public void saveSettings() {\n try {\n Settings.setDegausserPort((String) this.demagnetizerPort.getSelectedItem());\n Settings.setDegausserDelay(((Number) this.demagDelay.getSelectedItem()).intValue());\n Settings.setDegausserRamp(((Number) this.demagRamp.getSelectedItem()).intValue());\n Settings.setDegausserMaximumField(((Number) this.maximumField.getValue()).doubleValue());\n Settings.setHandlerPort((String) this.handlerPort.getSelectedItem());\n Settings.setHandlerAcceleration(((Number) this.acceleration.getValue()).intValue());\n Settings.setHandlerAxialAFPosition(((Number) this.axialAFPosition.getValue()).intValue());\n Settings.setHandlerBackgroundPosition(((Number) this.backgroundPosition.getValue()).intValue());\n Settings.setHandlerDeceleration(((Number) this.deceleration.getValue()).intValue());\n Settings.setHandlerMeasurementPosition(((Number) this.measurementPosition.getValue()).intValue());\n Settings.setHandlerMeasurementVelocity(((Number) this.measurementVelocity.getValue()).intValue());\n Settings.setHandlerRotation(((Number) this.rotation.getValue()).intValue());\n Settings.setHandlerSampleLoadPosition(((Number) this.sampleLoadPosition.getValue()).intValue());\n Settings.setHandlerTransverseYAFPosition(((Number) this.transverseYAFPosition.getValue()).intValue());\n Settings.setHandlerVelocity(((Number) this.velocity.getValue()).intValue());\n Settings.setHandlerRotationVelocity(((Number) this.rotationVelocity.getValue()).intValue());\n Settings.setHandlerRotationDeceleration(((Number) this.rotationDec.getValue()).intValue());\n Settings.setHandlerRotationAcceleration(((Number) this.rotationAcc.getValue()).intValue());\n\n Settings.setMagnetometerPort((String) this.magnetometerPort.getSelectedItem());\n Settings.setMagnetometerXAxisCalibration(((Number) this.xAxisCalibration.getValue()).doubleValue());\n Settings.setMagnetometerYAxisCalibration(((Number) this.yAxisCalibration.getValue()).doubleValue());\n Settings.setMagnetometerZAxisCalibration(((Number) this.zAxisCalibration.getValue()).doubleValue());\n creator.setVisible(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public abstract void setupMvpPresenter();", "void openSettings() {\n\t}", "public interface SettingMvpView extends MvpView {\n}", "public void setSettings(final String settings);", "private SizeModifierSettingsEditor() {\n\t\tinitComponents();\n\t\tsettings = SizeModifierSettings.getInstance();\n\t\tloadSettings();\n\t\tmainShell.pack();\n\t\tmainShell.setBounds(\n\t\t\tCrunch3.mainWindow.getShell().getBounds().x + Crunch3.mainWindow.getShell().getBounds().width / 2 - mainShell.getBounds().width / 2,\n\t\t\tCrunch3.mainWindow.getShell().getBounds().y + Crunch3.mainWindow.getShell().getBounds().height / 2 - mainShell.getBounds().height / 2,\n\t\t\tmainShell.getBounds().width,\n\t\t\tmainShell.getBounds().height);\n\t\tmainShell.open();\n\t}", "TvShowScraperNfoSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n comboBoxListener = e -> checkChanges();\n\n // UI init\n initComponents();\n initDataBindings();\n\n // data init\n\n // implement checkBoxListener for preset events\n settings.addPropertyChangeListener(evt -> {\n if (\"preset\".equals(evt.getPropertyName())) {\n buildComboBoxes();\n }\n });\n\n buildCheckBoxes();\n buildComboBoxes();\n }", "private SettingsManager() {\r\n\t\tthis.loadSettings();\r\n\t}", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(BaseActivity.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }", "public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}", "public interface ISettingPress extends IBasePress {\n\n void signUp();\n\n void fillSignUp(String dailySignId,String day);\n\n void checkSignUp();\n\n void getInvitationCode();\n\n void getInvitationList(long userId,int pageIndex);\n\n void getSetting(long userId);\n\n void updateSetting(long settingId,int pushStatus,int likeStatus,int commentStatus,int attentionStatus,int atStatus,int privateLetterStatus,int focusWorkStatus);\n\n void getRuleUrl(int ruleConfigId);\n\n void getPoster();\n}", "public abstract void initialSettings();", "@Override public void saveSettings(Map pProps, Map pSettings) {\n pProps.put(\"$class\", \"com.castorama.searchadmin.adapter.content.impl.CastoramaDocumentAdapter\");\n pProps.put(CDS_PATH, pSettings.get(getSourceTypeInternalName() + PATH));\n pProps.put(PORT, pSettings.get(getSourceTypeInternalName() + PORT));\n pProps.put(HOST_MACHINE, pSettings.get(getSourceTypeInternalName() + HOST_MACHINE));\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(Ter.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }", "protected void setupPerspectiveSettings() {\n if (m_settings.getSettings(m_ownerApp.getApplicationID()) != null\n && m_settings.getSettings(m_ownerApp.getApplicationID()).size() > 1) {\n Map<Settings.SettingKey, Object> appSettings =\n m_settings.getSettings(m_ownerApp.getApplicationID());\n SingleSettingsEditor appEditor = new SingleSettingsEditor(appSettings);\n m_settingsTabs.addTab(\"General\", appEditor);\n m_perspectiveEditors.add(appEditor);\n }\n\n // main perspective\n Perspective mainPers = m_ownerApp.getMainPerspective();\n String mainTitle = mainPers.getPerspectiveTitle();\n String mainID = mainPers.getPerspectiveID();\n SingleSettingsEditor mainEditor =\n new SingleSettingsEditor(m_settings.getSettings(mainID));\n m_settingsTabs.addTab(mainTitle, mainEditor);\n m_perspectiveEditors.add(mainEditor);\n\n List<Perspective> availablePerspectives =\n m_ownerApp.getPerspectiveManager().getLoadedPerspectives();\n List<String> availablePerspectivesIDs = new ArrayList<String>();\n List<String> availablePerspectiveTitles = new ArrayList<String>();\n for (int i = 0; i < availablePerspectives.size(); i++) {\n Perspective p = availablePerspectives.get(i);\n availablePerspectivesIDs.add(p.getPerspectiveID());\n availablePerspectiveTitles.add(p.getPerspectiveTitle());\n }\n\n Set<String> settingsIDs = m_settings.getSettingsIDs();\n for (String settingID : settingsIDs) {\n if (availablePerspectivesIDs.contains(settingID)) {\n int indexOfP = availablePerspectivesIDs.indexOf(settingID);\n\n // make a tab for this one\n Map<Settings.SettingKey, Object> settingsForID =\n m_settings.getSettings(settingID);\n if (settingsForID != null && settingsForID.size() > 0) {\n SingleSettingsEditor perpEditor =\n new SingleSettingsEditor(settingsForID);\n m_settingsTabs.addTab(availablePerspectiveTitles.get(indexOfP),\n perpEditor);\n m_perspectiveEditors.add(perpEditor);\n }\n }\n }\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.permission));\n builder.setMessage(getString(R.string.setting_permission));\n builder.setPositiveButton(getString(R.string.go_setting), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "public void settingsMenu() {\n /*\n * we need to create new settings scene because settings may be changed and\n * we need to show those changes\n */\n Game.stage.setScene(createSettingsMenuScene());\n Game.stage.show();\n }", "public void openSettingsPage(Class<? extends SettingsPanel> settingClass) {\n\t\topenTab(FS2Tab.SETTINGS);\n\t\t((SettingsTab)instantiatedTabs.get(FS2Tab.SETTINGS)).showSetting(settingClass);\n\t}", "void configure (Settings settings);", "private static void changeSettings() {\n\t\t\n\t\tfinal Settings sett = config;\n\t\t\n\t\tfinal JDialog settingsDialog = new JDialog(frame, \"Change settings\");\n\t\t\n\t\tsettingsDialog.getContentPane().setLayout(new BorderLayout());\n\t\tsettingsDialog.setPreferredSize(new Dimension(350,150));\n\t\t\n\t\tJPanel settings = new JPanel();\n\t\tsettings.setLayout(new GridLayout(3,2));\n\t\t\n\t\tJLabel lblDB = new JLabel(\"Update DB dynamically\");\n\t\tJRadioButton rbDB = new JRadioButton();\n\t\trbDB.setSelected(sett.isUpdateDB());\n\t\trbDB.addItemListener(new ItemListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setUpdateDB(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setUpdateDB(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\t\t\n\t\tJLabel lblGUI = new JLabel(\"Use Graphical User Interface\");\n\t\tJRadioButton rbGUI = new JRadioButton();\n\t\trbGUI.setSelected(sett.isGUI());\n\t\trbGUI.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setGUI(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setGUI(false);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\tJLabel lblFile = new JLabel(\"Working file\");\n\t\tfinal JTextField tfFile = new JTextField(sett.getWorkingFile());\n\t\t\t\t\n\t\tsettings.add(lblDB);\n\t\tsettings.add(rbDB);\n\t\tsettings.add(lblGUI);\n\t\tsettings.add(rbGUI);\n\t\tsettings.add(lblFile);\n\t\tsettings.add(tfFile);\n\t\t\n\t\tJButton btnSave = new JButton(\"Save settings\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(!saved) {\n\t\t \t\tint option = JOptionPane.showOptionDialog(frame,\n\t\t \t\t\t\t\"Updating the settings will reset the application\\nThere are unsaved changes\\nDo you want to save them now?\",\n\t\t \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n\t\t \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n\t\t \t\tswitch(option) {\n\t\t \t\tcase 0:\n\t\t \t\t\ttoggleSaved(portfolio.save(WORKING_FILE));\n\t\t \t\tdefault:\n\t\t \t\t\tbreak; \t \t\t\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsett.setWorkingFile(tfFile.getText());\n\t\t\t\t\n\t\t\t\tsett.save();\n\t\t\t\tconfig = new Settings(sett);\n\t\t\t\tsettingsDialog.dispose();\n\t\t\t\t\n\t\t\t\tif(!sett.isGUI()){\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\texit = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!sett.isUpdateDB()){\n\t\t\t\t\tportfolio.init(config.getWorkingFile());\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION);\n\t\t\t\t\tbtnRestore.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tportfolio.initDB();\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION+\" ** Linked to Database **\");\n\t\t\t\t\tbtnRestore.setEnabled(false);\n\t\t\t\t}\n\t\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\t\tsel.init(portfolio);\n\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsettingsDialog.add(settings, BorderLayout.CENTER);\n\t\tsettingsDialog.add(btnSave, BorderLayout.PAGE_END);\n\t\t\n\t\tsettingsDialog.pack();\n\t\tsettingsDialog.setVisible(true);\t\n\t}", "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "private void openSettings() {\n\t\tString message = \"This would be settings.\";\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t\t\r\n\t}", "private void openSettings() {\n Intent intent = new Intent(this, settings.class);\n startActivity(intent);\n\n finish();\n }", "@Override\n public void tryEditSettings(SettingsModel settingsModel) {\n interactor.editSettings(settingsModel);\n }", "public SettingPage() {\n\t\tPageFactory.initElements(driver, this);\t\t\n\t}", "private TabPane createSettingsWindow() {\r\n\t\tint tabHeight = 380, tabWidth = 318, textfieldWidth = 120;\r\n\t\tColor settingsTitleColor = Color.DODGERBLUE;\r\n\t\tColor settingsTextColor = Color.ORANGE;\r\n\t\tFont settingsTitleFont = new Font(\"Aria\", 20);\r\n\t\tFont settingsFont = new Font(\"Aria\", 18);\r\n\t\tFont infoFont = new Font(\"Aria\", 16);\r\n\t\tInsets settingsInsets = new Insets(0, 0, 5, 0);\r\n\t\tInsets topSettingsInsets = new Insets(5, 0, 5, 0);\r\n\t\tInsets paddingAllAround = new Insets(5, 5, 5, 5);\r\n\t\tInsets separatorInsets = new Insets(5, 0, 5, 0);\r\n\t\tfeedbackSettingsLabel.setFont(settingsFont);\r\n\t\tfeedbackSimulationLabel.setFont(settingsFont);\r\n\t\tString updateHelp = \"Enter new values into the textfields\" + System.lineSeparator() + \"and click [enter] to update current values.\";\r\n\r\n//\t\t*** Settings>informationTab ***\r\n\t\tTab infoTab = new Tab(\"Information\");\r\n\t\tinfoTab.setClosable(false);\r\n\t\t\r\n\t\tVBox infoContent = new VBox();\r\n\t\tinfoContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tfinal Label proxim8Version = new Label(\"Proxim8 v3.3\");\r\n\t\tproxim8Version.setTextFill(settingsTitleColor);\r\n\t\tproxim8Version.setFont(new Font(\"Aria\", 24));\r\n\t\tfinal Label driveModeLabel = new Label(\"Drive mode:\");\r\n\t\tdriveModeLabel.setTextFill(settingsTitleColor);\r\n\t\tdriveModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text driveModeInfo = new Text(\"- measures the distance to the car infront of you\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t \t + \"- checks if your brakedistance < current distance\");\r\n\t\tdriveModeInfo.setFill(settingsTextColor);\r\n\t\tdriveModeInfo.setFont(infoFont);\r\n\t\tfinal Label blindspotLabel = new Label(\"Blindspot mode:\");\r\n\t\tblindspotLabel.setTextFill(settingsTitleColor);\r\n\t\tblindspotLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text blindspotModeInfo = new Text(\"- checks if there's a car in your blindzone\");\r\n\t\tblindspotModeInfo.setFill(settingsTextColor);\r\n\t\tblindspotModeInfo.setFont(infoFont);\r\n\t\tfinal Label parkingModeLabel = new Label(\"Parking mode:\");\r\n\t\tparkingModeLabel.setTextFill(settingsTitleColor);\r\n\t\tparkingModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text parkingModeInfo = new Text(\"- measures the distances around the car\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t\t\t+ \"- gives a warning incase the distance < door length\");\r\n\t\tparkingModeInfo.setFill(settingsTextColor);\r\n\t\tparkingModeInfo.setFont(infoFont);\r\n\t\t\r\n\t\tinfoContent.getChildren().addAll(proxim8Version, driveModeLabel, driveModeInfo, blindspotLabel, blindspotModeInfo, parkingModeLabel, parkingModeInfo);\r\n\t\tinfoTab.setContent(infoContent);\r\n\t\t\r\n//\t\t*** Settings>settingsTab ***\r\n\t\tTab settingsTab = new Tab(\"Settings\");\r\n\t\tsettingsTab.setClosable(false);\r\n\t\t\r\n\t\tVBox settingsContent = new VBox();\r\n\t\tsettingsContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tHBox getAndSetValues = new HBox();\r\n\t\tgetAndSetValues.setPadding(paddingAllAround);\r\n//\t\tSettings>settingsTab>currentValues\r\n\t\tGridPane currentValues = new GridPane();\r\n\t\tfinal Label currentValuesLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label door = new Label(DOOR_LENGTH + \": \");\r\n\t\tdoor.setTextFill(settingsTextColor);\r\n\t\tdoor.setFont(settingsFont);\r\n\t\tdoor.setPadding(topSettingsInsets);\r\n\t\tfinal Label doorValue = new Label(String.valueOf(carData.getDoorLength()) + \"m\");\r\n\t\tdoorValue.setTextFill(settingsTextColor);\r\n\t\tdoorValue.setFont(settingsFont);\r\n\t\tfinal Label rearDoor = new Label(REAR_DOOR_LENGTH + \": \");\r\n\t\trearDoor.setTextFill(settingsTextColor);\r\n\t\trearDoor.setFont(settingsFont);\r\n\t\trearDoor.setPadding(settingsInsets);\r\n\t\tfinal Label rearDoorValue = new Label(String.valueOf(carData.getRearDoorLength()) + \"m\");\r\n\t\trearDoorValue.setTextFill(settingsTextColor);\r\n\t\trearDoorValue.setFont(settingsFont);\r\n\t\tfinal Label blindZone = new Label(BLIND_ZONE_VALUE + \": \");\r\n\t\tblindZone.setTextFill(settingsTextColor);\r\n\t\tblindZone.setFont(settingsFont);\r\n\t\tblindZone.setPadding(settingsInsets);\r\n\t\tfinal Label blindZoneValue = new Label(String.valueOf(carData.getBlindZoneValue()) + \"m\");\r\n\t\tblindZoneValue.setTextFill(settingsTextColor);\r\n\t\tblindZoneValue.setFont(settingsFont);\r\n\t\tfinal Label frontParkDist = new Label(FRONT_PARK_DISTANCE + \": \");\r\n\t\tfrontParkDist.setTextFill(settingsTextColor);\r\n\t\tfrontParkDist.setFont(settingsFont);\r\n\t\tfrontParkDist.setPadding(settingsInsets);\r\n\t\tfinal Label frontParkDistValue = new Label(String.valueOf(carData.getFrontDistParking()) + \"m\");\r\n\t\tfrontParkDistValue.setTextFill(settingsTextColor);\r\n\t\tfrontParkDistValue.setFont(settingsFont);\r\n\t\tfrontParkDistValue.setPadding(settingsInsets);\r\n\t\t\r\n\t\tcurrentValues.add(currentValuesLabel, 0, 0);\r\n\t\tcurrentValues.add(door, 0, 1);\r\n\t\tcurrentValues.add(doorValue, 1, 1);\r\n\t\t\r\n\t\tcurrentValues.add(rearDoor, 0, 2);\r\n\t\tcurrentValues.add(rearDoorValue, 1, 2);\r\n\t\t\r\n\t\tcurrentValues.add(blindZone, 0, 3);\r\n\t\tcurrentValues.add(blindZoneValue, 1, 3);\r\n\t\t\r\n\t\tcurrentValues.add(frontParkDist, 0, 4);\r\n\t\tcurrentValues.add(frontParkDistValue, 1, 4);\r\n\t\t\r\n//\t\tSettings>settingTab>updateFields\r\n\t\tVBox updateFields = new VBox();\r\n\t\tupdateFields.setPadding(paddingAllAround);\r\n\t\tfinal Label updateLabel = new Label(\"Set new value:\");\r\n\t\tupdateLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField doorLengthField = new TextField();\r\n\t\tdoorLengthField.setPromptText(\"meter\");\r\n\t\tdoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\tdoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(doorValue, feedbackSettingsLabel, doorLengthField, DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField rearDoorLengthField = new TextField();\r\n\t\trearDoorLengthField.setPromptText(\"meter\");\r\n\t\trearDoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\trearDoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(rearDoorValue, feedbackSettingsLabel, rearDoorLengthField, REAR_DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField blindZoneValueField = new TextField();\r\n\t\tblindZoneValueField.setMaxWidth(textfieldWidth);\r\n\t\tblindZoneValueField.setPromptText(\"meter\");\r\n\t\tblindZoneValueField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(blindZoneValue, feedbackSettingsLabel, blindZoneValueField, BLIND_ZONE_VALUE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField frontParkDistField = new TextField();\r\n\t\tfrontParkDistField.setMaxWidth(textfieldWidth);\r\n\t\tfrontParkDistField.setPromptText(\"meter\");\r\n\t\tfrontParkDistField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(frontParkDistValue, feedbackSettingsLabel, frontParkDistField, FRONT_PARK_DISTANCE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFields.getChildren().addAll(updateLabel, doorLengthField, rearDoorLengthField, blindZoneValueField, frontParkDistField);\r\n\t\t\r\n\t\tRegion regionSettings = new Region();\r\n\t\tregionSettings.setPrefWidth(25);\r\n\t\tgetAndSetValues.getChildren().addAll(currentValues, regionSettings, updateFields);\r\n\t\t\r\n\t\tSeparator settingsSeparator = new Separator();\r\n\t\tsettingsSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text howToUpdate = new Text(updateHelp);\r\n\t\thowToUpdate.setFill(settingsTextColor);\r\n\t\thowToUpdate.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator settingsSeparator2 = new Separator();\r\n\t\tsettingsSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsettingsContent.getChildren().addAll(getAndSetValues, settingsSeparator, howToUpdate, settingsSeparator2, feedbackSettingsLabel);\r\n\t\tsettingsTab.setContent(settingsContent);\r\n\t\t\r\n//\t\t*** Settings>simulate ***\r\n\t\tTab simulateTab = new Tab(\"Simulation\");\r\n\t\tsimulateTab.setClosable(false);\r\n\t\t\r\n\t\tVBox simulateContent = new VBox();\r\n\t\tsimulateContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\t\r\n\t\tHBox getAndSetSim = new HBox();\r\n\t\tgetAndSetSim.setPadding(paddingAllAround);\r\n//\t\tSettings>simulate>currentValues\r\n\t\tGridPane currentValuesSim = new GridPane();\r\n\t\tfinal Label currentValuesSimLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesSimLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label topSpeed = new Label(TOP_SPEED + \": \");\r\n\t\ttopSpeed.setTextFill(settingsTextColor);\r\n\t\ttopSpeed.setFont(settingsFont);\r\n\t\ttopSpeed.setPadding(topSettingsInsets);\r\n\t\tfinal Label topSpeedValue = new Label(String.valueOf(carData.getTopSpeed()) + \"km/h\");\r\n\t\ttopSpeedValue.setTextFill(settingsTextColor);\r\n\t\ttopSpeedValue.setFont(settingsFont);\r\n\t\t\r\n\t\tcurrentValuesSim.add(currentValuesSimLabel, 0, 0);\r\n\t\tcurrentValuesSim.add(topSpeed, 0, 1);\r\n\t\tcurrentValuesSim.add(topSpeedValue, 1, 1);\r\n\t\t\r\n//\t\tSettings>simulate>updateFields\r\n\t\tVBox updateFieldsSim = new VBox();\r\n\t\tfinal Label updateSimLabel = new Label(\"Set new value:\");\r\n\t\tupdateSimLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField topSpeedField = new TextField();\r\n\t\ttopSpeedField.setMaxWidth(textfieldWidth);\r\n\t\ttopSpeedField.setPromptText(\"km/h\");\r\n\t\ttopSpeedField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(topSpeedValue, feedbackSimulationLabel, topSpeedField, TOP_SPEED, Double.valueOf(carSpeed), 999.0);\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFieldsSim.getChildren().addAll(updateSimLabel, topSpeedField);\r\n\t\t\r\n\t\tRegion simulateRegion = new Region();\r\n\t\tsimulateRegion.setPrefWidth(25);\r\n\t\tgetAndSetSim.getChildren().addAll(currentValuesSim, simulateRegion, updateFieldsSim);\r\n\t\t\r\n\t\tSeparator simulationSeparator = new Separator();\r\n\t\tsimulationSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text simulateInfo = new Text(updateHelp);\r\n\t\tsimulateInfo.setFill(settingsTextColor);\r\n\t\tsimulateInfo.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator simulationSeparator2 = new Separator();\r\n\t\tsimulationSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsimulateContent.getChildren().addAll(getAndSetSim, simulationSeparator, simulateInfo, simulationSeparator2, feedbackSimulationLabel);\r\n\t\tsimulateTab.setContent(simulateContent);\r\n\t\t\r\n//\t\t*** Settings>checkBoxTab ***\r\n\t\tTab extraFeaturesTab = new Tab(\"Extra features\");\r\n\t\textraFeaturesTab.setClosable(false);\r\n\t\t\r\n\t\tVBox extraFeaturesContent = new VBox();\r\n\t\textraFeaturesContent.setPrefSize(tabWidth, tabHeight);\r\n\t\textraFeaturesContent.setPadding(paddingAllAround);\r\n\t\t\r\n\t\tfinal Label extraFeaturesLabel = new Label(\"Extra features\");\r\n\t\textraFeaturesLabel.setTextFill(settingsTitleColor);\r\n\t\textraFeaturesLabel.setFont(settingsTitleFont);\r\n\t\textraFeaturesLabel.setPadding(topSettingsInsets);\r\n\t\t\r\n\t\tSeparator separatorExtraFeatures = new Separator();\r\n\t\tseparatorExtraFeatures.setPadding(separatorInsets);\r\n\t\t\r\n\t\tInsets checkInsets = new Insets(5, 0, 5, 5);\r\n\t\tfinal CheckBox smartBrake = new CheckBox(\"Smart brake\");\r\n\t\tsmartBrake.setSelected(smartBrakeActivated);\r\n\t\tsmartBrake.setFont(settingsFont);\r\n\t\tsmartBrake.setTextFill(settingsTextColor);\r\n\t\tsmartBrake.setPadding(checkInsets);\r\n\t\tsmartBrake.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tsmartBrakeActivated = ! smartBrakeActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox blindspotAlways = new CheckBox(\"Blindspot always\");\r\n\t\tblindspotAlways.setSelected(blindspotAlwaysActivated);\r\n\t\tblindspotAlways.setFont(settingsFont);\r\n\t\tblindspotAlways.setTextFill(settingsTextColor);\r\n\t\tblindspotAlways.setPadding(checkInsets);\r\n\t\tblindspotAlways.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tblindspotAlwaysActivated = ! blindspotAlwaysActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox audioWarning = new CheckBox(\"Audio warning\");\r\n\t\taudioWarning.setSelected(audioWarningActivated);\r\n\t\taudioWarning.setFont(settingsFont);\r\n\t\taudioWarning.setTextFill(settingsTextColor);\r\n\t\taudioWarning.setPadding(checkInsets);\r\n\t\taudioWarning.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\taudioWarningActivated = ! audioWarningActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\textraFeaturesContent.getChildren().addAll(extraFeaturesLabel, separatorExtraFeatures, smartBrake, blindspotAlways); //, audioWarning);\r\n\t\textraFeaturesTab.setContent(extraFeaturesContent);\r\n\t\t\r\n\t\t\r\n\t\tTabPane settingsWindow = new TabPane();\r\n\t\tsettingsWindow.setVisible(false);\r\n\t\tsettingsWindow.getTabs().addAll(infoTab, settingsTab, simulateTab, extraFeaturesTab);\r\n\t\treturn settingsWindow;\r\n\t}", "private void showSettings() {\n Intent intent = new Intent(this, SettingsActivity.class);\n intent.putExtra( SettingsActivity.EXTRA_SHOW_FRAGMENT, SettingsActivity.GeneralPreferenceFragment.class.getName() );\n intent.putExtra( SettingsActivity.EXTRA_NO_HEADERS, true );\n startActivity(intent);\n }", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "private Settings() {}", "public abstract SharedPreferences getStateSettings();", "public SharedPreferences GetSettings() {\n return mSettings;\n }", "public Settings(){}", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(LoginActivity.this);\n builder.setTitle(getString(R.string.dialog_permission_title));\n builder.setMessage(getString(R.string.dialog_permission_message));\n builder.setPositiveButton(getString(R.string.go_to_settings), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(android.R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "@Override\n public void readSettings(Object settings) {\n ((WizardDescriptor) settings).putProperty(\"WizardPanel_image\", ImageUtilities.loadImage(\"net/phyloviz/core/TypingImage.png\", true));\n sDBName = (String) ((WizardDescriptor) settings).getProperty(\"dbName\");\n\t sDBNameShort = (String) ((WizardDescriptor) settings).getProperty(\"dbNameShort\");\n ((PubMLSTVisualPanel2) getComponent()).setDatabase(sDBNameShort, sDBName);\n tf = new MLSTypingFactory();\n }", "private Settings() { }", "public SettingsFragment(){}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }", "public void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n Add_Event.this.openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n }", "public void settings() {\n btSettings().push();\n }", "public MazeSettingsPanel(MazeSettings settings){\r\n \tsuper();\r\n \tthis.settings=settings;\r\n \tthis.layout = new GridLayout(0,2);\r\n \tthis.layout.setVgap(10);\r\n \tthis.setLayout(this.layout);\r\n \r\n \tpadding = BorderFactory.createEmptyBorder(20,20,15,10);\r\n \tthis.setBorder(padding);\r\n \r\n \tinitFields();\r\n \tupdateFieldValues();\r\n }", "protected Main(Settings settings) {\r\n this.settings = settings; \r\n configureUI();\r\n build();\r\n setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n }", "public SettingsMenuPanel() {\n initComponents();\n changed.setVisible(false);\n }", "public SettingsMenu(ChatWindow chatWindow)\n {\n super(Messages.getI18NString(\"settings\").getText());\n \n this.chatWindow = chatWindow;\n \n typingNotificationsItem.setName(\"typingNotifications\");\n sendingMessageCommandItem.setName(\"sendingMessageCommand\");\n autoPopupItem.setName(\"autopopup\");\n \n this.setMnemonic(Messages.getI18NString(\"settings\").getMnemonic());\n \n this.typingNotificationsItem.setMnemonic(\n typingNotifString.getMnemonic());\n \n this.sendingMessageCommandItem.setMnemonic(\n useCtrlEnterString.getMnemonic());\n \n this.autoPopupItem.setMnemonic(\n autoPopupString.getMnemonic());\n \n this.add(typingNotificationsItem);\n this.add(sendingMessageCommandItem);\n this.add(autoPopupItem);\n \n this.typingNotificationsItem.addActionListener(this);\n this.sendingMessageCommandItem.addActionListener(this);\n this.autoPopupItem.addActionListener(this);\n \n this.autoPopupItem.setSelected(\n ConfigurationManager.isAutoPopupNewMessage());\n \n this.typingNotificationsItem.setSelected(\n ConfigurationManager.isSendTypingNotifications());\n \n if(ConfigurationManager.getSendMessageCommand()\n == ConfigurationManager.ENTER_COMMAND) \n this.sendingMessageCommandItem.setSelected(true);\n else\n this.sendingMessageCommandItem.setSelected(false);\n \n }", "public FetchModusSettings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}", "public void settingsButton(View view) {\n\t\tIntent intent = new Intent(this, SettingsActivity.class);\n\t\tstartActivity(intent);\n\t}", "public static void openSettingsForm(){\n\n }", "public void saveSettings(Settings settings)\n {\n \tMainActivity.settings = settings;\n \t\n \t// Write the application settings\n \tSharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n \tSharedPreferences.Editor editor = sharedPref.edit();\n \teditor.putInt(MainActivity.SETTINGS_HALF_TIME, settings.getHalfTimeDuration() );\n \teditor.putString(MainActivity.SETTINGS_TEAM_NAME, settings.getTeamName() );\n \teditor.commit();\n }", "@Override \r\n \tprotected IDialogSettings getDialogSettings() {\n \t\tIDialogSettings temp = super.getDialogSettings();\t\r\n \t\treturn temp;\r\n \t}", "public interface GetConfigPresenter extends Presenter<GetConfigView> {\n\n void getConfig(String shopId);\n\n void onReloadClick();\n\n}", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);" ]
[ "0.7621609", "0.68024266", "0.6772009", "0.66290486", "0.64436394", "0.64212346", "0.63488036", "0.6308404", "0.63081694", "0.630421", "0.627449", "0.6255668", "0.62482196", "0.62410593", "0.6226456", "0.62131506", "0.61856854", "0.61722946", "0.61622405", "0.6157119", "0.6143748", "0.61344016", "0.613025", "0.61198246", "0.60978657", "0.6081297", "0.6081297", "0.6079286", "0.605536", "0.6054817", "0.6054719", "0.5966694", "0.59544784", "0.5937834", "0.5936478", "0.59340817", "0.59280324", "0.59277505", "0.59132844", "0.591019", "0.5909242", "0.5904994", "0.58805305", "0.58676326", "0.58622247", "0.5858089", "0.58471316", "0.5835922", "0.5826372", "0.5826194", "0.58185107", "0.5816568", "0.58134484", "0.58114165", "0.580792", "0.58007365", "0.57981735", "0.5797446", "0.5790934", "0.5788735", "0.578807", "0.5774753", "0.57717294", "0.5768362", "0.576789", "0.57677597", "0.57663107", "0.5754133", "0.5754133", "0.5754133", "0.5754133", "0.5754133", "0.5754133", "0.5754133", "0.57416767", "0.57317233", "0.5731609", "0.57144994", "0.57098854", "0.56979614", "0.5692774", "0.5665019", "0.5660386", "0.5658189", "0.56387436", "0.56367415", "0.56358194", "0.56347746", "0.5632266", "0.5627745", "0.56162953", "0.5614232", "0.56108665", "0.55994236", "0.55822396", "0.55761516", "0.5575675", "0.5575675", "0.5575675", "0.5575675", "0.5575675" ]
0.0
-1
Implementacija sucelja SettingsPresenter. Uneseni podaci se prosljeduju interactoru.
@Override public void tryEditSettings(SettingsModel settingsModel) { interactor.editSettings(settingsModel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface ISettingsPresenter {\n void onViewReady();\n\n void changeNotificationsState(boolean state);\n\n void changeActivityLogState(boolean state);\n\n void cleanActivityLogs();\n\n void changeContinuousLogin(boolean isEnabled);\n\n void changeWifiAutoLogin(boolean isEnabled);\n\n void changeIPAddress(String ipAddress);\n\n void changePort(String port);\n}", "@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}", "void setSettings(ControlsSettings settings);", "void getSettings(ControlsSettings settings);", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "Settings ()\n {\n }", "@Override\n public void onClick(View view) {\n iPresenter.setUpSettingsModal(HomeActivity.this);\n }", "public SettingsPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "boolean setSettings(Settings sm);", "private SettingsWindow() {\n loadData();\n createListeners();\n }", "@Override\n\tpublic ISettingsView getSettingsView() {\n\t\tLog.debug(\"getSettingsView is null ......................\");\n\t\treturn null;\n\t}", "public SettingsPanel() {\n initComponents();\n }", "public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "public void setSettings(Settings settings)\r\n\t{\r\n\t\tthis.settings = settings;\r\n\t}", "public StartSettingsView() {\n\n super();\n super.setTitle(\"Settings\");\n\n this.createPatientsComboBox();\n this.createButtons();\n\n super.setLayouts(0.2f, 0.2f,0,0.6f);\n\n\t}", "public Settings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}", "public interface ISettingsView {\r\n void initViews();\r\n}", "public SettingPresenter(GameConstants gameConst, PlayerStatus player,\r\n\t\t\tISettingController controller) {\r\n\t\tthis.gameConstants = gameConst;\r\n\t\tthis.player = player;\r\n\t\tthis.controller = controller;\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tview = new ShipSettingPanel(SettingPresenter.this);\r\n\t\t\t\tview.initialize(\r\n\t\t\t\t\t\tSettingPresenter.this.gameConstants.getShipTypes(),\r\n\t\t\t\t\t\tSettingPresenter.this.gameConstants.getBoardSizeV(),\r\n\t\t\t\t\t\tSettingPresenter.this.gameConstants.getBoardSizeH());\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "Settings getSettings();", "public interface SettingsContract {\n\n interface Presenter extends BasePresenter {\n /**\n * 检测更新app\n */\n void getUpdateApp();\n\n /**\n * 下载app\n */\n void downloadApp(String updateAppUrl);\n\n\n /**\n * 是否登录\n */\n void isLogin(int flag);\n\n }\n\n interface View extends BaseNewView<Presenter, String> {\n// /**\n// * http请求正确\n// *\n// * @param s\n// */\n// void getSuccess(String s);\n//\n// /**\n// * http请求错误\n// */\n// void error(String msg);\n\n }\n}", "public void switchToSettings() {\r\n\t\tlayout.show(this, \"settingsPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "private void viewSettings() {\n startActivity(new Intent(Main.this, Settings.class));\n }", "TvShowSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n\n // UI initializations\n initComponents();\n initDataBindings();\n\n // logic initializations\n btnClearTraktTvShows.addActionListener(e -> {\n Object[] options = { BUNDLE.getString(\"Button.yes\"), BUNDLE.getString(\"Button.no\") };\n int confirm = JOptionPane.showOptionDialog(null, BUNDLE.getString(\"Settings.trakt.cleartvshows.hint\"),\n BUNDLE.getString(\"Settings.trakt.cleartvshows\"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, null);\n if (confirm == JOptionPane.YES_OPTION) {\n TmmTask task = new ClearTraktTvTask(false, true);\n TmmTaskManager.getInstance().addUnnamedTask(task);\n }\n });\n\n btnPresetXbmc.addActionListener(evt -> settings.setDefaultSettingsForXbmc());\n btnPresetKodi.addActionListener(evt -> settings.setDefaultSettingsForKodi());\n btnPresetMediaPortal1.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetMediaPortal2.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetPlex.addActionListener(evt -> settings.setDefaultSettingsForPlex());\n\n buildCheckBoxes();\n }", "public Settings() {\n initComponents();\n }", "public Settings() {\n initComponents();\n }", "public static SettingsPanel getSettingsPanel() {\n\t\treturn ((dataProvider == null) ? null : new AmpSettingsPanel());\n\t}", "public interface SettingsProvider {\n /**\n * Enable the background data option to fetch daily deviations periodically.\n */\n void enableBackgroundData();\n\n /**\n * Disable the background data option to fetch daily deviations periodically.\n */\n void disableBackgroundDate();\n\n /**\n * Determine whether background data is enabled.\n * @return true if background data is enabled.\n */\n boolean isBackgroundDataEnabled();\n\n /**\n * Enable the local notification system used to notify users when there is new data.\n */\n void enableNotifications();\n\n /**\n * Disable the local notification system used to notify users when there is new data.\n */\n void disableNotifications();\n\n /**\n * Determine whether local notifications are enabled.\n * @return true if local notifications are enabled - note this will be overridden by\n * the Android system settings regarding notifications for the app.\n */\n boolean isNotificationsEnabled();\n\n /**\n * Enable the automatic header image selection when the app starts up - where an\n * image is chosen at random from the content provider and displayed in the nav menu.\n */\n void enableAutomaticHeaderImage();\n\n /**\n * Disable the automatic header image selection on app start.\n */\n void disableAutomaticHeaderImage();\n\n /**\n * Determine whether the automatic header image is enabled.\n * @return true if automatic header images is enabled.\n */\n boolean isAutomaticHeaderImageEnabled();\n}", "public interface SettingsView extends BaseView {\n}", "HeaderSettingsPage(SettingsContainer container)\n {\n super(container);\n initialize();\n }", "public SettingsScreen getSettingsScreen() {\n return settingsScreen;\n }", "@StateStrategyType(SkipStrategy.class)\npublic interface ISettingsView extends MvpView {\n\n void showSettings(SettingsDto settings);\n\n void close();\n\n}", "interface SettingsContract {\r\n\r\n interface View extends BaseView<SettingsContract.Presenter> {\r\n\r\n /**\r\n * Returns the context.\r\n *\r\n * @return context.\r\n */\r\n Context getContext();\r\n\r\n /**\r\n * Shows loading message.\r\n */\r\n void showLoadingMsg();\r\n\r\n /**\r\n * Shows data generated successfully message.\r\n */\r\n void showDataGeneratedMsg();\r\n\r\n /**\r\n * Shows data deleted successfully message.\r\n */\r\n void showDataDeletedMsg();\r\n }\r\n\r\n\r\n interface Presenter extends BasePresenter {\r\n\r\n /**\r\n * Attaches a listener that performs the specified action when the preference is clicked.\r\n *\r\n * @param preference preference to attach.\r\n */\r\n void bindPreferenceClickListener(Preference preference);\r\n\r\n /**\r\n * Attaches a listener so the summary is always updated with the preference value.\r\n * Also fires the listener once, to initialize the summary (so it shows up before the value\r\n * is changed).\r\n *\r\n * @param preference preference to attach.\r\n */\r\n void bindPreferenceSummaryToValue(Preference preference);\r\n\r\n }\r\n}", "private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }", "@Override\n protected void initSettings (GameSettings settings) {\n settings.setWidth(15 * 70);\n settings.setHeight(10* 70);\n settings.setVersion(\"0.1\");\n settings.setTitle(\"Platformer Game\");\n settings.setMenuEnabled(true);\n settings.setMenuKey(KeyCode.ESCAPE);\n }", "@Override\n\tpublic void initSettings() {\n\n\t}", "public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }", "public void setSettings(final Properties settings) {\r\n this.settings = settings;\r\n\r\n replay = new Replay(settings);\r\n\r\n for(final MenuItem item : eventMenu.getItems()) {\r\n if (item instanceof CustomMenuItem) {\r\n final String event = item.getText();\r\n final CustomMenuItem customItem = ((CustomMenuItem) item);\r\n if (customItem.getContent() instanceof CheckBox) {\r\n final CheckBox checkBox = (CheckBox) customItem.getContent();\r\n checkBox.setSelected(replay.notableEvents.contains(event));\r\n }\r\n }\r\n }\r\n\r\n zoomStep = Integer.parseInt(settings.getProperty(\"zoom.step\", \"100\"));\r\n\r\n daysCombo.getItems().addAll(settings.getProperty(\"list.delta.per.tick\", \"1;30;365\").split(\";\"));\r\n daysCombo.getSelectionModel().select(settings.getProperty(\"delta.per.tick\", \"1\"));\r\n try {\r\n periodCombo.getSelectionModel().select(Integer.parseInt(settings.getProperty(\"period.per.tick\", \"0\")));\r\n } catch (NumberFormatException e) {\r\n periodCombo.getSelectionModel().selectFirst();\r\n settings.setProperty(\"period.per.tick\", \"0\");\r\n }\r\n\r\n langCombo.getSelectionModel().select(settings.getProperty(\"locale.language\", \"en\"));\r\n\r\n replay.drawBorders = \"true\".equals(settings.getProperty(\"borders\", \"false\"));\r\n\r\n focusEdit.setText(settings.getProperty(\"focus\", \"\"));\r\n\r\n saveDirectory = new File(settings.getProperty(\"save.dir\", \"\"));\r\n if (!saveDirectory.exists() || !saveDirectory.isDirectory()) {\r\n saveDirectory = new File(Replay.DEFAULT_SAVE_DIR);\r\n if (!saveDirectory.exists() || !saveDirectory.isDirectory()) {\r\n saveDirectory = new File(System.getProperty(\"user.home\"), \"/\");\r\n }\r\n }\r\n\r\n serDirectory = new File(settings.getProperty(\"ser.dir\", \"\"));\r\n if (!serDirectory.exists() || !serDirectory.isDirectory()) {\r\n serDirectory = new File(Replay.DEFAULT_SAVE_DIR);\r\n if (!serDirectory.exists() || !serDirectory.isDirectory()) {\r\n serDirectory = new File(System.getProperty(\"user.home\"), \"/\");\r\n }\r\n }\r\n\r\n subjectsCheckMenuItem.setSelected(replay.subjectsAsOverlords);\r\n\r\n gifMenu.setVisible(!settings.getProperty(\"gif\", \"false\").equals(\"true\"));\r\n gifLoopCheckMenuItem.setSelected(settings.getProperty(\"gif.loop\", \"true\").equals(\"true\"));\r\n gifWidthEdit.setText(settings.getProperty(\"gif.width\", \"0\"));\r\n gifHeightEdit.setText(settings.getProperty(\"gif.height\", \"0\"));\r\n gifBreakEdit.setText(settings.getProperty(\"gif.new.file\", \"0\"));\r\n gifStepEdit.setText(settings.getProperty(\"gif.step\", \"100\"));\r\n gifDateCheckMenuItem.setSelected(settings.getProperty(\"gif.date\", \"true\").equals(\"true\"));\r\n gifDateColorPicker.setValue(Color.web(settings.getProperty(\"gif.date.color\", \"0x000000\")));\r\n gifDateSizeEdit.setText(settings.getProperty(\"gif.date.size\", \"12\"));\r\n gifDateXEdit.setText(settings.getProperty(\"gif.date.x\", \"60\"));\r\n gifDateYEdit.setText(settings.getProperty(\"gif.date.y\", \"60\"));\r\n gifSubimageCheckMenuItem.setSelected(settings.getProperty(\"gif.subimage\", \"false\").equals(\"true\"));\r\n gifSubimageXEdit.setText(settings.getProperty(\"gif.subimage.x\", \"0\"));\r\n gifSubimageYEdit.setText(settings.getProperty(\"gif.subimage.y\", \"0\"));\r\n gifSubimageWidthEdit.setText(settings.getProperty(\"gif.subimage.width\", \"\"));\r\n gifSubimageHeightEdit.setText(settings.getProperty(\"gif.subimage.height\", \"\"));\r\n\r\n bordersCheckMenuItem.setSelected(settings.getProperty(\"borders\", \"false\").equals(\"true\"));\r\n disableLog = settings.getProperty(\"log.disable\", \"false\").equals(\"true\");\r\n\r\n eu4Directory = new File(settings.getProperty(\"eu4.dir\"));\r\n try {\r\n lock.acquire();\r\n loadData();\r\n } catch (InterruptedException e) { }\r\n }", "public abstract void setupMvpPresenter();", "public void setAccountSettingsPanel(Pane accountSettingsPanel)\n {\n this.accountSettingsPanel = accountSettingsPanel;\n }", "public void saveSettings() {\n try {\n Settings.setDegausserPort((String) this.demagnetizerPort.getSelectedItem());\n Settings.setDegausserDelay(((Number) this.demagDelay.getSelectedItem()).intValue());\n Settings.setDegausserRamp(((Number) this.demagRamp.getSelectedItem()).intValue());\n Settings.setDegausserMaximumField(((Number) this.maximumField.getValue()).doubleValue());\n Settings.setHandlerPort((String) this.handlerPort.getSelectedItem());\n Settings.setHandlerAcceleration(((Number) this.acceleration.getValue()).intValue());\n Settings.setHandlerAxialAFPosition(((Number) this.axialAFPosition.getValue()).intValue());\n Settings.setHandlerBackgroundPosition(((Number) this.backgroundPosition.getValue()).intValue());\n Settings.setHandlerDeceleration(((Number) this.deceleration.getValue()).intValue());\n Settings.setHandlerMeasurementPosition(((Number) this.measurementPosition.getValue()).intValue());\n Settings.setHandlerMeasurementVelocity(((Number) this.measurementVelocity.getValue()).intValue());\n Settings.setHandlerRotation(((Number) this.rotation.getValue()).intValue());\n Settings.setHandlerSampleLoadPosition(((Number) this.sampleLoadPosition.getValue()).intValue());\n Settings.setHandlerTransverseYAFPosition(((Number) this.transverseYAFPosition.getValue()).intValue());\n Settings.setHandlerVelocity(((Number) this.velocity.getValue()).intValue());\n Settings.setHandlerRotationVelocity(((Number) this.rotationVelocity.getValue()).intValue());\n Settings.setHandlerRotationDeceleration(((Number) this.rotationDec.getValue()).intValue());\n Settings.setHandlerRotationAcceleration(((Number) this.rotationAcc.getValue()).intValue());\n\n Settings.setMagnetometerPort((String) this.magnetometerPort.getSelectedItem());\n Settings.setMagnetometerXAxisCalibration(((Number) this.xAxisCalibration.getValue()).doubleValue());\n Settings.setMagnetometerYAxisCalibration(((Number) this.yAxisCalibration.getValue()).doubleValue());\n Settings.setMagnetometerZAxisCalibration(((Number) this.zAxisCalibration.getValue()).doubleValue());\n creator.setVisible(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "void openSettings() {\n\t}", "public interface SettingMvpView extends MvpView {\n}", "public void setSettings(final String settings);", "private SizeModifierSettingsEditor() {\n\t\tinitComponents();\n\t\tsettings = SizeModifierSettings.getInstance();\n\t\tloadSettings();\n\t\tmainShell.pack();\n\t\tmainShell.setBounds(\n\t\t\tCrunch3.mainWindow.getShell().getBounds().x + Crunch3.mainWindow.getShell().getBounds().width / 2 - mainShell.getBounds().width / 2,\n\t\t\tCrunch3.mainWindow.getShell().getBounds().y + Crunch3.mainWindow.getShell().getBounds().height / 2 - mainShell.getBounds().height / 2,\n\t\t\tmainShell.getBounds().width,\n\t\t\tmainShell.getBounds().height);\n\t\tmainShell.open();\n\t}", "TvShowScraperNfoSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n comboBoxListener = e -> checkChanges();\n\n // UI init\n initComponents();\n initDataBindings();\n\n // data init\n\n // implement checkBoxListener for preset events\n settings.addPropertyChangeListener(evt -> {\n if (\"preset\".equals(evt.getPropertyName())) {\n buildComboBoxes();\n }\n });\n\n buildCheckBoxes();\n buildComboBoxes();\n }", "private SettingsManager() {\r\n\t\tthis.loadSettings();\r\n\t}", "public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(BaseActivity.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }", "public interface ISettingPress extends IBasePress {\n\n void signUp();\n\n void fillSignUp(String dailySignId,String day);\n\n void checkSignUp();\n\n void getInvitationCode();\n\n void getInvitationList(long userId,int pageIndex);\n\n void getSetting(long userId);\n\n void updateSetting(long settingId,int pushStatus,int likeStatus,int commentStatus,int attentionStatus,int atStatus,int privateLetterStatus,int focusWorkStatus);\n\n void getRuleUrl(int ruleConfigId);\n\n void getPoster();\n}", "public abstract void initialSettings();", "@Override public void saveSettings(Map pProps, Map pSettings) {\n pProps.put(\"$class\", \"com.castorama.searchadmin.adapter.content.impl.CastoramaDocumentAdapter\");\n pProps.put(CDS_PATH, pSettings.get(getSourceTypeInternalName() + PATH));\n pProps.put(PORT, pSettings.get(getSourceTypeInternalName() + PORT));\n pProps.put(HOST_MACHINE, pSettings.get(getSourceTypeInternalName() + HOST_MACHINE));\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(Ter.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }", "protected void setupPerspectiveSettings() {\n if (m_settings.getSettings(m_ownerApp.getApplicationID()) != null\n && m_settings.getSettings(m_ownerApp.getApplicationID()).size() > 1) {\n Map<Settings.SettingKey, Object> appSettings =\n m_settings.getSettings(m_ownerApp.getApplicationID());\n SingleSettingsEditor appEditor = new SingleSettingsEditor(appSettings);\n m_settingsTabs.addTab(\"General\", appEditor);\n m_perspectiveEditors.add(appEditor);\n }\n\n // main perspective\n Perspective mainPers = m_ownerApp.getMainPerspective();\n String mainTitle = mainPers.getPerspectiveTitle();\n String mainID = mainPers.getPerspectiveID();\n SingleSettingsEditor mainEditor =\n new SingleSettingsEditor(m_settings.getSettings(mainID));\n m_settingsTabs.addTab(mainTitle, mainEditor);\n m_perspectiveEditors.add(mainEditor);\n\n List<Perspective> availablePerspectives =\n m_ownerApp.getPerspectiveManager().getLoadedPerspectives();\n List<String> availablePerspectivesIDs = new ArrayList<String>();\n List<String> availablePerspectiveTitles = new ArrayList<String>();\n for (int i = 0; i < availablePerspectives.size(); i++) {\n Perspective p = availablePerspectives.get(i);\n availablePerspectivesIDs.add(p.getPerspectiveID());\n availablePerspectiveTitles.add(p.getPerspectiveTitle());\n }\n\n Set<String> settingsIDs = m_settings.getSettingsIDs();\n for (String settingID : settingsIDs) {\n if (availablePerspectivesIDs.contains(settingID)) {\n int indexOfP = availablePerspectivesIDs.indexOf(settingID);\n\n // make a tab for this one\n Map<Settings.SettingKey, Object> settingsForID =\n m_settings.getSettings(settingID);\n if (settingsForID != null && settingsForID.size() > 0) {\n SingleSettingsEditor perpEditor =\n new SingleSettingsEditor(settingsForID);\n m_settingsTabs.addTab(availablePerspectiveTitles.get(indexOfP),\n perpEditor);\n m_perspectiveEditors.add(perpEditor);\n }\n }\n }\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.permission));\n builder.setMessage(getString(R.string.setting_permission));\n builder.setPositiveButton(getString(R.string.go_setting), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "public void openSettingsPage(Class<? extends SettingsPanel> settingClass) {\n\t\topenTab(FS2Tab.SETTINGS);\n\t\t((SettingsTab)instantiatedTabs.get(FS2Tab.SETTINGS)).showSetting(settingClass);\n\t}", "public void settingsMenu() {\n /*\n * we need to create new settings scene because settings may be changed and\n * we need to show those changes\n */\n Game.stage.setScene(createSettingsMenuScene());\n Game.stage.show();\n }", "void configure (Settings settings);", "public SettingsWindow()\n {\n House.seed = System.currentTimeMillis();\n initWindow();\n showWindows();\n }", "private static void changeSettings() {\n\t\t\n\t\tfinal Settings sett = config;\n\t\t\n\t\tfinal JDialog settingsDialog = new JDialog(frame, \"Change settings\");\n\t\t\n\t\tsettingsDialog.getContentPane().setLayout(new BorderLayout());\n\t\tsettingsDialog.setPreferredSize(new Dimension(350,150));\n\t\t\n\t\tJPanel settings = new JPanel();\n\t\tsettings.setLayout(new GridLayout(3,2));\n\t\t\n\t\tJLabel lblDB = new JLabel(\"Update DB dynamically\");\n\t\tJRadioButton rbDB = new JRadioButton();\n\t\trbDB.setSelected(sett.isUpdateDB());\n\t\trbDB.addItemListener(new ItemListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setUpdateDB(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setUpdateDB(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\t\t\n\t\tJLabel lblGUI = new JLabel(\"Use Graphical User Interface\");\n\t\tJRadioButton rbGUI = new JRadioButton();\n\t\trbGUI.setSelected(sett.isGUI());\n\t\trbGUI.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setGUI(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setGUI(false);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\tJLabel lblFile = new JLabel(\"Working file\");\n\t\tfinal JTextField tfFile = new JTextField(sett.getWorkingFile());\n\t\t\t\t\n\t\tsettings.add(lblDB);\n\t\tsettings.add(rbDB);\n\t\tsettings.add(lblGUI);\n\t\tsettings.add(rbGUI);\n\t\tsettings.add(lblFile);\n\t\tsettings.add(tfFile);\n\t\t\n\t\tJButton btnSave = new JButton(\"Save settings\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(!saved) {\n\t\t \t\tint option = JOptionPane.showOptionDialog(frame,\n\t\t \t\t\t\t\"Updating the settings will reset the application\\nThere are unsaved changes\\nDo you want to save them now?\",\n\t\t \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n\t\t \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n\t\t \t\tswitch(option) {\n\t\t \t\tcase 0:\n\t\t \t\t\ttoggleSaved(portfolio.save(WORKING_FILE));\n\t\t \t\tdefault:\n\t\t \t\t\tbreak; \t \t\t\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsett.setWorkingFile(tfFile.getText());\n\t\t\t\t\n\t\t\t\tsett.save();\n\t\t\t\tconfig = new Settings(sett);\n\t\t\t\tsettingsDialog.dispose();\n\t\t\t\t\n\t\t\t\tif(!sett.isGUI()){\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\texit = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!sett.isUpdateDB()){\n\t\t\t\t\tportfolio.init(config.getWorkingFile());\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION);\n\t\t\t\t\tbtnRestore.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tportfolio.initDB();\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION+\" ** Linked to Database **\");\n\t\t\t\t\tbtnRestore.setEnabled(false);\n\t\t\t\t}\n\t\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\t\tsel.init(portfolio);\n\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsettingsDialog.add(settings, BorderLayout.CENTER);\n\t\tsettingsDialog.add(btnSave, BorderLayout.PAGE_END);\n\t\t\n\t\tsettingsDialog.pack();\n\t\tsettingsDialog.setVisible(true);\t\n\t}", "private void openSettings() {\n\t\tString message = \"This would be settings.\";\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t\t\r\n\t}", "private void openSettings() {\n Intent intent = new Intent(this, settings.class);\n startActivity(intent);\n\n finish();\n }", "public SettingPage() {\n\t\tPageFactory.initElements(driver, this);\t\t\n\t}", "private TabPane createSettingsWindow() {\r\n\t\tint tabHeight = 380, tabWidth = 318, textfieldWidth = 120;\r\n\t\tColor settingsTitleColor = Color.DODGERBLUE;\r\n\t\tColor settingsTextColor = Color.ORANGE;\r\n\t\tFont settingsTitleFont = new Font(\"Aria\", 20);\r\n\t\tFont settingsFont = new Font(\"Aria\", 18);\r\n\t\tFont infoFont = new Font(\"Aria\", 16);\r\n\t\tInsets settingsInsets = new Insets(0, 0, 5, 0);\r\n\t\tInsets topSettingsInsets = new Insets(5, 0, 5, 0);\r\n\t\tInsets paddingAllAround = new Insets(5, 5, 5, 5);\r\n\t\tInsets separatorInsets = new Insets(5, 0, 5, 0);\r\n\t\tfeedbackSettingsLabel.setFont(settingsFont);\r\n\t\tfeedbackSimulationLabel.setFont(settingsFont);\r\n\t\tString updateHelp = \"Enter new values into the textfields\" + System.lineSeparator() + \"and click [enter] to update current values.\";\r\n\r\n//\t\t*** Settings>informationTab ***\r\n\t\tTab infoTab = new Tab(\"Information\");\r\n\t\tinfoTab.setClosable(false);\r\n\t\t\r\n\t\tVBox infoContent = new VBox();\r\n\t\tinfoContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tfinal Label proxim8Version = new Label(\"Proxim8 v3.3\");\r\n\t\tproxim8Version.setTextFill(settingsTitleColor);\r\n\t\tproxim8Version.setFont(new Font(\"Aria\", 24));\r\n\t\tfinal Label driveModeLabel = new Label(\"Drive mode:\");\r\n\t\tdriveModeLabel.setTextFill(settingsTitleColor);\r\n\t\tdriveModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text driveModeInfo = new Text(\"- measures the distance to the car infront of you\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t \t + \"- checks if your brakedistance < current distance\");\r\n\t\tdriveModeInfo.setFill(settingsTextColor);\r\n\t\tdriveModeInfo.setFont(infoFont);\r\n\t\tfinal Label blindspotLabel = new Label(\"Blindspot mode:\");\r\n\t\tblindspotLabel.setTextFill(settingsTitleColor);\r\n\t\tblindspotLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text blindspotModeInfo = new Text(\"- checks if there's a car in your blindzone\");\r\n\t\tblindspotModeInfo.setFill(settingsTextColor);\r\n\t\tblindspotModeInfo.setFont(infoFont);\r\n\t\tfinal Label parkingModeLabel = new Label(\"Parking mode:\");\r\n\t\tparkingModeLabel.setTextFill(settingsTitleColor);\r\n\t\tparkingModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text parkingModeInfo = new Text(\"- measures the distances around the car\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t\t\t+ \"- gives a warning incase the distance < door length\");\r\n\t\tparkingModeInfo.setFill(settingsTextColor);\r\n\t\tparkingModeInfo.setFont(infoFont);\r\n\t\t\r\n\t\tinfoContent.getChildren().addAll(proxim8Version, driveModeLabel, driveModeInfo, blindspotLabel, blindspotModeInfo, parkingModeLabel, parkingModeInfo);\r\n\t\tinfoTab.setContent(infoContent);\r\n\t\t\r\n//\t\t*** Settings>settingsTab ***\r\n\t\tTab settingsTab = new Tab(\"Settings\");\r\n\t\tsettingsTab.setClosable(false);\r\n\t\t\r\n\t\tVBox settingsContent = new VBox();\r\n\t\tsettingsContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tHBox getAndSetValues = new HBox();\r\n\t\tgetAndSetValues.setPadding(paddingAllAround);\r\n//\t\tSettings>settingsTab>currentValues\r\n\t\tGridPane currentValues = new GridPane();\r\n\t\tfinal Label currentValuesLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label door = new Label(DOOR_LENGTH + \": \");\r\n\t\tdoor.setTextFill(settingsTextColor);\r\n\t\tdoor.setFont(settingsFont);\r\n\t\tdoor.setPadding(topSettingsInsets);\r\n\t\tfinal Label doorValue = new Label(String.valueOf(carData.getDoorLength()) + \"m\");\r\n\t\tdoorValue.setTextFill(settingsTextColor);\r\n\t\tdoorValue.setFont(settingsFont);\r\n\t\tfinal Label rearDoor = new Label(REAR_DOOR_LENGTH + \": \");\r\n\t\trearDoor.setTextFill(settingsTextColor);\r\n\t\trearDoor.setFont(settingsFont);\r\n\t\trearDoor.setPadding(settingsInsets);\r\n\t\tfinal Label rearDoorValue = new Label(String.valueOf(carData.getRearDoorLength()) + \"m\");\r\n\t\trearDoorValue.setTextFill(settingsTextColor);\r\n\t\trearDoorValue.setFont(settingsFont);\r\n\t\tfinal Label blindZone = new Label(BLIND_ZONE_VALUE + \": \");\r\n\t\tblindZone.setTextFill(settingsTextColor);\r\n\t\tblindZone.setFont(settingsFont);\r\n\t\tblindZone.setPadding(settingsInsets);\r\n\t\tfinal Label blindZoneValue = new Label(String.valueOf(carData.getBlindZoneValue()) + \"m\");\r\n\t\tblindZoneValue.setTextFill(settingsTextColor);\r\n\t\tblindZoneValue.setFont(settingsFont);\r\n\t\tfinal Label frontParkDist = new Label(FRONT_PARK_DISTANCE + \": \");\r\n\t\tfrontParkDist.setTextFill(settingsTextColor);\r\n\t\tfrontParkDist.setFont(settingsFont);\r\n\t\tfrontParkDist.setPadding(settingsInsets);\r\n\t\tfinal Label frontParkDistValue = new Label(String.valueOf(carData.getFrontDistParking()) + \"m\");\r\n\t\tfrontParkDistValue.setTextFill(settingsTextColor);\r\n\t\tfrontParkDistValue.setFont(settingsFont);\r\n\t\tfrontParkDistValue.setPadding(settingsInsets);\r\n\t\t\r\n\t\tcurrentValues.add(currentValuesLabel, 0, 0);\r\n\t\tcurrentValues.add(door, 0, 1);\r\n\t\tcurrentValues.add(doorValue, 1, 1);\r\n\t\t\r\n\t\tcurrentValues.add(rearDoor, 0, 2);\r\n\t\tcurrentValues.add(rearDoorValue, 1, 2);\r\n\t\t\r\n\t\tcurrentValues.add(blindZone, 0, 3);\r\n\t\tcurrentValues.add(blindZoneValue, 1, 3);\r\n\t\t\r\n\t\tcurrentValues.add(frontParkDist, 0, 4);\r\n\t\tcurrentValues.add(frontParkDistValue, 1, 4);\r\n\t\t\r\n//\t\tSettings>settingTab>updateFields\r\n\t\tVBox updateFields = new VBox();\r\n\t\tupdateFields.setPadding(paddingAllAround);\r\n\t\tfinal Label updateLabel = new Label(\"Set new value:\");\r\n\t\tupdateLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField doorLengthField = new TextField();\r\n\t\tdoorLengthField.setPromptText(\"meter\");\r\n\t\tdoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\tdoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(doorValue, feedbackSettingsLabel, doorLengthField, DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField rearDoorLengthField = new TextField();\r\n\t\trearDoorLengthField.setPromptText(\"meter\");\r\n\t\trearDoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\trearDoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(rearDoorValue, feedbackSettingsLabel, rearDoorLengthField, REAR_DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField blindZoneValueField = new TextField();\r\n\t\tblindZoneValueField.setMaxWidth(textfieldWidth);\r\n\t\tblindZoneValueField.setPromptText(\"meter\");\r\n\t\tblindZoneValueField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(blindZoneValue, feedbackSettingsLabel, blindZoneValueField, BLIND_ZONE_VALUE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField frontParkDistField = new TextField();\r\n\t\tfrontParkDistField.setMaxWidth(textfieldWidth);\r\n\t\tfrontParkDistField.setPromptText(\"meter\");\r\n\t\tfrontParkDistField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(frontParkDistValue, feedbackSettingsLabel, frontParkDistField, FRONT_PARK_DISTANCE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFields.getChildren().addAll(updateLabel, doorLengthField, rearDoorLengthField, blindZoneValueField, frontParkDistField);\r\n\t\t\r\n\t\tRegion regionSettings = new Region();\r\n\t\tregionSettings.setPrefWidth(25);\r\n\t\tgetAndSetValues.getChildren().addAll(currentValues, regionSettings, updateFields);\r\n\t\t\r\n\t\tSeparator settingsSeparator = new Separator();\r\n\t\tsettingsSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text howToUpdate = new Text(updateHelp);\r\n\t\thowToUpdate.setFill(settingsTextColor);\r\n\t\thowToUpdate.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator settingsSeparator2 = new Separator();\r\n\t\tsettingsSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsettingsContent.getChildren().addAll(getAndSetValues, settingsSeparator, howToUpdate, settingsSeparator2, feedbackSettingsLabel);\r\n\t\tsettingsTab.setContent(settingsContent);\r\n\t\t\r\n//\t\t*** Settings>simulate ***\r\n\t\tTab simulateTab = new Tab(\"Simulation\");\r\n\t\tsimulateTab.setClosable(false);\r\n\t\t\r\n\t\tVBox simulateContent = new VBox();\r\n\t\tsimulateContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\t\r\n\t\tHBox getAndSetSim = new HBox();\r\n\t\tgetAndSetSim.setPadding(paddingAllAround);\r\n//\t\tSettings>simulate>currentValues\r\n\t\tGridPane currentValuesSim = new GridPane();\r\n\t\tfinal Label currentValuesSimLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesSimLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label topSpeed = new Label(TOP_SPEED + \": \");\r\n\t\ttopSpeed.setTextFill(settingsTextColor);\r\n\t\ttopSpeed.setFont(settingsFont);\r\n\t\ttopSpeed.setPadding(topSettingsInsets);\r\n\t\tfinal Label topSpeedValue = new Label(String.valueOf(carData.getTopSpeed()) + \"km/h\");\r\n\t\ttopSpeedValue.setTextFill(settingsTextColor);\r\n\t\ttopSpeedValue.setFont(settingsFont);\r\n\t\t\r\n\t\tcurrentValuesSim.add(currentValuesSimLabel, 0, 0);\r\n\t\tcurrentValuesSim.add(topSpeed, 0, 1);\r\n\t\tcurrentValuesSim.add(topSpeedValue, 1, 1);\r\n\t\t\r\n//\t\tSettings>simulate>updateFields\r\n\t\tVBox updateFieldsSim = new VBox();\r\n\t\tfinal Label updateSimLabel = new Label(\"Set new value:\");\r\n\t\tupdateSimLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField topSpeedField = new TextField();\r\n\t\ttopSpeedField.setMaxWidth(textfieldWidth);\r\n\t\ttopSpeedField.setPromptText(\"km/h\");\r\n\t\ttopSpeedField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(topSpeedValue, feedbackSimulationLabel, topSpeedField, TOP_SPEED, Double.valueOf(carSpeed), 999.0);\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFieldsSim.getChildren().addAll(updateSimLabel, topSpeedField);\r\n\t\t\r\n\t\tRegion simulateRegion = new Region();\r\n\t\tsimulateRegion.setPrefWidth(25);\r\n\t\tgetAndSetSim.getChildren().addAll(currentValuesSim, simulateRegion, updateFieldsSim);\r\n\t\t\r\n\t\tSeparator simulationSeparator = new Separator();\r\n\t\tsimulationSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text simulateInfo = new Text(updateHelp);\r\n\t\tsimulateInfo.setFill(settingsTextColor);\r\n\t\tsimulateInfo.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator simulationSeparator2 = new Separator();\r\n\t\tsimulationSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsimulateContent.getChildren().addAll(getAndSetSim, simulationSeparator, simulateInfo, simulationSeparator2, feedbackSimulationLabel);\r\n\t\tsimulateTab.setContent(simulateContent);\r\n\t\t\r\n//\t\t*** Settings>checkBoxTab ***\r\n\t\tTab extraFeaturesTab = new Tab(\"Extra features\");\r\n\t\textraFeaturesTab.setClosable(false);\r\n\t\t\r\n\t\tVBox extraFeaturesContent = new VBox();\r\n\t\textraFeaturesContent.setPrefSize(tabWidth, tabHeight);\r\n\t\textraFeaturesContent.setPadding(paddingAllAround);\r\n\t\t\r\n\t\tfinal Label extraFeaturesLabel = new Label(\"Extra features\");\r\n\t\textraFeaturesLabel.setTextFill(settingsTitleColor);\r\n\t\textraFeaturesLabel.setFont(settingsTitleFont);\r\n\t\textraFeaturesLabel.setPadding(topSettingsInsets);\r\n\t\t\r\n\t\tSeparator separatorExtraFeatures = new Separator();\r\n\t\tseparatorExtraFeatures.setPadding(separatorInsets);\r\n\t\t\r\n\t\tInsets checkInsets = new Insets(5, 0, 5, 5);\r\n\t\tfinal CheckBox smartBrake = new CheckBox(\"Smart brake\");\r\n\t\tsmartBrake.setSelected(smartBrakeActivated);\r\n\t\tsmartBrake.setFont(settingsFont);\r\n\t\tsmartBrake.setTextFill(settingsTextColor);\r\n\t\tsmartBrake.setPadding(checkInsets);\r\n\t\tsmartBrake.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tsmartBrakeActivated = ! smartBrakeActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox blindspotAlways = new CheckBox(\"Blindspot always\");\r\n\t\tblindspotAlways.setSelected(blindspotAlwaysActivated);\r\n\t\tblindspotAlways.setFont(settingsFont);\r\n\t\tblindspotAlways.setTextFill(settingsTextColor);\r\n\t\tblindspotAlways.setPadding(checkInsets);\r\n\t\tblindspotAlways.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tblindspotAlwaysActivated = ! blindspotAlwaysActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox audioWarning = new CheckBox(\"Audio warning\");\r\n\t\taudioWarning.setSelected(audioWarningActivated);\r\n\t\taudioWarning.setFont(settingsFont);\r\n\t\taudioWarning.setTextFill(settingsTextColor);\r\n\t\taudioWarning.setPadding(checkInsets);\r\n\t\taudioWarning.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\taudioWarningActivated = ! audioWarningActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\textraFeaturesContent.getChildren().addAll(extraFeaturesLabel, separatorExtraFeatures, smartBrake, blindspotAlways); //, audioWarning);\r\n\t\textraFeaturesTab.setContent(extraFeaturesContent);\r\n\t\t\r\n\t\t\r\n\t\tTabPane settingsWindow = new TabPane();\r\n\t\tsettingsWindow.setVisible(false);\r\n\t\tsettingsWindow.getTabs().addAll(infoTab, settingsTab, simulateTab, extraFeaturesTab);\r\n\t\treturn settingsWindow;\r\n\t}", "private void showSettings() {\n Intent intent = new Intent(this, SettingsActivity.class);\n intent.putExtra( SettingsActivity.EXTRA_SHOW_FRAGMENT, SettingsActivity.GeneralPreferenceFragment.class.getName() );\n intent.putExtra( SettingsActivity.EXTRA_NO_HEADERS, true );\n startActivity(intent);\n }", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "GuiSettings getGuiSettings();", "private Settings() {}", "public abstract SharedPreferences getStateSettings();", "public SharedPreferences GetSettings() {\n return mSettings;\n }", "public Settings(){}", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(LoginActivity.this);\n builder.setTitle(getString(R.string.dialog_permission_title));\n builder.setMessage(getString(R.string.dialog_permission_message));\n builder.setPositiveButton(getString(R.string.go_to_settings), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(android.R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "@Override\n public void readSettings(Object settings) {\n ((WizardDescriptor) settings).putProperty(\"WizardPanel_image\", ImageUtilities.loadImage(\"net/phyloviz/core/TypingImage.png\", true));\n sDBName = (String) ((WizardDescriptor) settings).getProperty(\"dbName\");\n\t sDBNameShort = (String) ((WizardDescriptor) settings).getProperty(\"dbNameShort\");\n ((PubMLSTVisualPanel2) getComponent()).setDatabase(sDBNameShort, sDBName);\n tf = new MLSTypingFactory();\n }", "private Settings() { }", "public SettingsFragment(){}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }", "public void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n Add_Event.this.openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n }", "protected Main(Settings settings) {\r\n this.settings = settings; \r\n configureUI();\r\n build();\r\n setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n }", "public MazeSettingsPanel(MazeSettings settings){\r\n \tsuper();\r\n \tthis.settings=settings;\r\n \tthis.layout = new GridLayout(0,2);\r\n \tthis.layout.setVgap(10);\r\n \tthis.setLayout(this.layout);\r\n \r\n \tpadding = BorderFactory.createEmptyBorder(20,20,15,10);\r\n \tthis.setBorder(padding);\r\n \r\n \tinitFields();\r\n \tupdateFieldValues();\r\n }", "public void settings() {\n btSettings().push();\n }", "public SettingsMenuPanel() {\n initComponents();\n changed.setVisible(false);\n }", "public SettingsMenu(ChatWindow chatWindow)\n {\n super(Messages.getI18NString(\"settings\").getText());\n \n this.chatWindow = chatWindow;\n \n typingNotificationsItem.setName(\"typingNotifications\");\n sendingMessageCommandItem.setName(\"sendingMessageCommand\");\n autoPopupItem.setName(\"autopopup\");\n \n this.setMnemonic(Messages.getI18NString(\"settings\").getMnemonic());\n \n this.typingNotificationsItem.setMnemonic(\n typingNotifString.getMnemonic());\n \n this.sendingMessageCommandItem.setMnemonic(\n useCtrlEnterString.getMnemonic());\n \n this.autoPopupItem.setMnemonic(\n autoPopupString.getMnemonic());\n \n this.add(typingNotificationsItem);\n this.add(sendingMessageCommandItem);\n this.add(autoPopupItem);\n \n this.typingNotificationsItem.addActionListener(this);\n this.sendingMessageCommandItem.addActionListener(this);\n this.autoPopupItem.addActionListener(this);\n \n this.autoPopupItem.setSelected(\n ConfigurationManager.isAutoPopupNewMessage());\n \n this.typingNotificationsItem.setSelected(\n ConfigurationManager.isSendTypingNotifications());\n \n if(ConfigurationManager.getSendMessageCommand()\n == ConfigurationManager.ENTER_COMMAND) \n this.sendingMessageCommandItem.setSelected(true);\n else\n this.sendingMessageCommandItem.setSelected(false);\n \n }", "public FetchModusSettings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}", "public void settingsButton(View view) {\n\t\tIntent intent = new Intent(this, SettingsActivity.class);\n\t\tstartActivity(intent);\n\t}", "public static void openSettingsForm(){\n\n }", "public void saveSettings(Settings settings)\n {\n \tMainActivity.settings = settings;\n \t\n \t// Write the application settings\n \tSharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n \tSharedPreferences.Editor editor = sharedPref.edit();\n \teditor.putInt(MainActivity.SETTINGS_HALF_TIME, settings.getHalfTimeDuration() );\n \teditor.putString(MainActivity.SETTINGS_TEAM_NAME, settings.getTeamName() );\n \teditor.commit();\n }", "public interface GetConfigPresenter extends Presenter<GetConfigView> {\n\n void getConfig(String shopId);\n\n void onReloadClick();\n\n}", "@Override \r\n \tprotected IDialogSettings getDialogSettings() {\n \t\tIDialogSettings temp = super.getDialogSettings();\t\r\n \t\treturn temp;\r\n \t}", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);" ]
[ "0.76216745", "0.68000126", "0.67678916", "0.6623489", "0.64406025", "0.6418538", "0.6347657", "0.6305617", "0.63052374", "0.6302548", "0.62710434", "0.6253855", "0.6245382", "0.6237411", "0.6222057", "0.62083256", "0.6183026", "0.6168334", "0.61615676", "0.61572856", "0.61396825", "0.61304367", "0.6129635", "0.61159587", "0.60964674", "0.6079038", "0.6079038", "0.60769975", "0.60537", "0.6053423", "0.6052689", "0.5964313", "0.59546816", "0.59371907", "0.59332645", "0.59307015", "0.5923966", "0.59234834", "0.59102213", "0.5908547", "0.59062856", "0.590543", "0.5876536", "0.586828", "0.5858255", "0.5855605", "0.58447534", "0.5832987", "0.58227974", "0.5821807", "0.58172905", "0.5812884", "0.5810614", "0.58070964", "0.5806654", "0.5796307", "0.5793898", "0.57929325", "0.5786765", "0.57865906", "0.57845503", "0.5770142", "0.57672054", "0.576627", "0.57640463", "0.57629204", "0.57506365", "0.57506365", "0.57506365", "0.57506365", "0.57506365", "0.57506365", "0.57506365", "0.57388765", "0.57295233", "0.5729046", "0.57118756", "0.57052344", "0.5693874", "0.5690155", "0.5664087", "0.56570005", "0.5655391", "0.5635013", "0.563216", "0.56321377", "0.5630988", "0.56300956", "0.56246954", "0.5612891", "0.560948", "0.56064755", "0.5595693", "0.5579209", "0.5578691", "0.55720824", "0.55720824", "0.55720824", "0.55720824", "0.55720824" ]
0.5763819
65
Implementacija SettingsInteractorListener. View se obavjestava u uspjesnosti dohvacanja favorita.
@Override public void onSuccess(SettingsModel settingsModel) { view.onSuccess(settingsModel); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "private void settingsBtnListener() {\n settingsBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new SettingsScreen(game));\n }\n });\n }", "@Override\n\tpublic void settingsChanged(AbstractSettings settings) {\n\t}", "public interface SettingsSelectedListener\t{\n\t}", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "public interface SettingsListener {\n void changed();\n}", "public interface SettingsDialogListener { \n\t\tpublic void onSettingsPositiveClick(DialogFragment dialog); \n\t\tpublic void onSettingsNegativeClick(DialogFragment dialog); \n\t}", "public void fireUISettingsChanged() {\n UISettingsListener[] listeners= myListenerList.getListeners(UISettingsListener.class);\n for (UISettingsListener listener : listeners) {\n listener.uiSettingsChanged(this);\n }\n }", "@Override\n\tpublic void notifySettingChanged() {\n\t}", "protected void onUserSettingsChanged(@Observes UserSettingsChangedEvent usc)\n {\n loadMenu();\n }", "private void viewSettings() {\n startActivity(new Intent(Main.this, Settings.class));\n }", "@Override\n public void changed(ChangeEvent event, Actor actor) {\n // If player press setting's button, it change to settings screen\n game.goSettingsScreen();\n }", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "public void settings_clicked(View view) {\n Intent intent = new Intent(this, SettingsActivity.class);\n // EditText editText = (EditText) findViewById(R.id.editText);\n // String message = \"final data\";\n // intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }", "public interface OnSettingChoiceListener {\n /**\n * Handles confirmation for the requested action by the user.\n *\n * @param settingName {@link String} name of the {@link Settings.Secure}\n * for which a choice was requested\n */\n void onSettingConfirm(String settingName);\n\n /**\n * Handles denial for the requested action by the user.\n *\n * @param settingName {@link String} name of the {@link Settings.Secure}\n * for which a choice was requested\n */\n void onSettingDeny(String settingName);\n }", "public void switchToSettings() {\r\n\t\tlayout.show(this, \"settingsPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "@Override\n public void onSettingChanged(ListPreference pref) {\n }", "TvShowScraperNfoSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n comboBoxListener = e -> checkChanges();\n\n // UI init\n initComponents();\n initDataBindings();\n\n // data init\n\n // implement checkBoxListener for preset events\n settings.addPropertyChangeListener(evt -> {\n if (\"preset\".equals(evt.getPropertyName())) {\n buildComboBoxes();\n }\n });\n\n buildCheckBoxes();\n buildComboBoxes();\n }", "public void settingsMenu() {\n /*\n * we need to create new settings scene because settings may be changed and\n * we need to show those changes\n */\n Game.stage.setScene(createSettingsMenuScene());\n Game.stage.show();\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "public void setSettings(final Properties settings) {\r\n this.settings = settings;\r\n\r\n replay = new Replay(settings);\r\n\r\n for(final MenuItem item : eventMenu.getItems()) {\r\n if (item instanceof CustomMenuItem) {\r\n final String event = item.getText();\r\n final CustomMenuItem customItem = ((CustomMenuItem) item);\r\n if (customItem.getContent() instanceof CheckBox) {\r\n final CheckBox checkBox = (CheckBox) customItem.getContent();\r\n checkBox.setSelected(replay.notableEvents.contains(event));\r\n }\r\n }\r\n }\r\n\r\n zoomStep = Integer.parseInt(settings.getProperty(\"zoom.step\", \"100\"));\r\n\r\n daysCombo.getItems().addAll(settings.getProperty(\"list.delta.per.tick\", \"1;30;365\").split(\";\"));\r\n daysCombo.getSelectionModel().select(settings.getProperty(\"delta.per.tick\", \"1\"));\r\n try {\r\n periodCombo.getSelectionModel().select(Integer.parseInt(settings.getProperty(\"period.per.tick\", \"0\")));\r\n } catch (NumberFormatException e) {\r\n periodCombo.getSelectionModel().selectFirst();\r\n settings.setProperty(\"period.per.tick\", \"0\");\r\n }\r\n\r\n langCombo.getSelectionModel().select(settings.getProperty(\"locale.language\", \"en\"));\r\n\r\n replay.drawBorders = \"true\".equals(settings.getProperty(\"borders\", \"false\"));\r\n\r\n focusEdit.setText(settings.getProperty(\"focus\", \"\"));\r\n\r\n saveDirectory = new File(settings.getProperty(\"save.dir\", \"\"));\r\n if (!saveDirectory.exists() || !saveDirectory.isDirectory()) {\r\n saveDirectory = new File(Replay.DEFAULT_SAVE_DIR);\r\n if (!saveDirectory.exists() || !saveDirectory.isDirectory()) {\r\n saveDirectory = new File(System.getProperty(\"user.home\"), \"/\");\r\n }\r\n }\r\n\r\n serDirectory = new File(settings.getProperty(\"ser.dir\", \"\"));\r\n if (!serDirectory.exists() || !serDirectory.isDirectory()) {\r\n serDirectory = new File(Replay.DEFAULT_SAVE_DIR);\r\n if (!serDirectory.exists() || !serDirectory.isDirectory()) {\r\n serDirectory = new File(System.getProperty(\"user.home\"), \"/\");\r\n }\r\n }\r\n\r\n subjectsCheckMenuItem.setSelected(replay.subjectsAsOverlords);\r\n\r\n gifMenu.setVisible(!settings.getProperty(\"gif\", \"false\").equals(\"true\"));\r\n gifLoopCheckMenuItem.setSelected(settings.getProperty(\"gif.loop\", \"true\").equals(\"true\"));\r\n gifWidthEdit.setText(settings.getProperty(\"gif.width\", \"0\"));\r\n gifHeightEdit.setText(settings.getProperty(\"gif.height\", \"0\"));\r\n gifBreakEdit.setText(settings.getProperty(\"gif.new.file\", \"0\"));\r\n gifStepEdit.setText(settings.getProperty(\"gif.step\", \"100\"));\r\n gifDateCheckMenuItem.setSelected(settings.getProperty(\"gif.date\", \"true\").equals(\"true\"));\r\n gifDateColorPicker.setValue(Color.web(settings.getProperty(\"gif.date.color\", \"0x000000\")));\r\n gifDateSizeEdit.setText(settings.getProperty(\"gif.date.size\", \"12\"));\r\n gifDateXEdit.setText(settings.getProperty(\"gif.date.x\", \"60\"));\r\n gifDateYEdit.setText(settings.getProperty(\"gif.date.y\", \"60\"));\r\n gifSubimageCheckMenuItem.setSelected(settings.getProperty(\"gif.subimage\", \"false\").equals(\"true\"));\r\n gifSubimageXEdit.setText(settings.getProperty(\"gif.subimage.x\", \"0\"));\r\n gifSubimageYEdit.setText(settings.getProperty(\"gif.subimage.y\", \"0\"));\r\n gifSubimageWidthEdit.setText(settings.getProperty(\"gif.subimage.width\", \"\"));\r\n gifSubimageHeightEdit.setText(settings.getProperty(\"gif.subimage.height\", \"\"));\r\n\r\n bordersCheckMenuItem.setSelected(settings.getProperty(\"borders\", \"false\").equals(\"true\"));\r\n disableLog = settings.getProperty(\"log.disable\", \"false\").equals(\"true\");\r\n\r\n eu4Directory = new File(settings.getProperty(\"eu4.dir\"));\r\n try {\r\n lock.acquire();\r\n loadData();\r\n } catch (InterruptedException e) { }\r\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tshowSettingDialog(msg.what);\n\t\t\t// super.handleMessage(msg);\n\t\t}", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}", "private SettingsWindow() {\n loadData();\n createListeners();\n }", "private void showChangeSettings() {\n showedChangeSettings = true;\n if (this.getActivity() == null || PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).getBoolean(\"crumbyHasVisitedSettings\", false)) {\n return;\n }\n Toast toast = Toast.makeText((Context)this.getActivity(), (CharSequence)\"\", (int)1);\n toast.setGravity(17, 0, 0);\n TextView textView = (TextView)View.inflate((Context)this.getActivity(), (int)2130903119, (ViewGroup)null);\n textView.setText((CharSequence)\"Hint: settings are auto-saved!\");\n toast.setView((View)textView);\n toast.show();\n PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).edit().putBoolean(\"crumbyHasVisitedSettings\", true).commit();\n }", "private boolean onAccountSettings() {\n AccountSettings.actionSettings(mActivity, getActualAccountId());\n return true;\n }", "TvShowSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n\n // UI initializations\n initComponents();\n initDataBindings();\n\n // logic initializations\n btnClearTraktTvShows.addActionListener(e -> {\n Object[] options = { BUNDLE.getString(\"Button.yes\"), BUNDLE.getString(\"Button.no\") };\n int confirm = JOptionPane.showOptionDialog(null, BUNDLE.getString(\"Settings.trakt.cleartvshows.hint\"),\n BUNDLE.getString(\"Settings.trakt.cleartvshows\"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, null);\n if (confirm == JOptionPane.YES_OPTION) {\n TmmTask task = new ClearTraktTvTask(false, true);\n TmmTaskManager.getInstance().addUnnamedTask(task);\n }\n });\n\n btnPresetXbmc.addActionListener(evt -> settings.setDefaultSettingsForXbmc());\n btnPresetKodi.addActionListener(evt -> settings.setDefaultSettingsForKodi());\n btnPresetMediaPortal1.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetMediaPortal2.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetPlex.addActionListener(evt -> settings.setDefaultSettingsForPlex());\n\n buildCheckBoxes();\n }", "public void settings() {\n btSettings().push();\n }", "@Override\n public void tryEditSettings(SettingsModel settingsModel) {\n interactor.editSettings(settingsModel);\n }", "public void saveSettings() {\n try {\n Settings.setDegausserPort((String) this.demagnetizerPort.getSelectedItem());\n Settings.setDegausserDelay(((Number) this.demagDelay.getSelectedItem()).intValue());\n Settings.setDegausserRamp(((Number) this.demagRamp.getSelectedItem()).intValue());\n Settings.setDegausserMaximumField(((Number) this.maximumField.getValue()).doubleValue());\n Settings.setHandlerPort((String) this.handlerPort.getSelectedItem());\n Settings.setHandlerAcceleration(((Number) this.acceleration.getValue()).intValue());\n Settings.setHandlerAxialAFPosition(((Number) this.axialAFPosition.getValue()).intValue());\n Settings.setHandlerBackgroundPosition(((Number) this.backgroundPosition.getValue()).intValue());\n Settings.setHandlerDeceleration(((Number) this.deceleration.getValue()).intValue());\n Settings.setHandlerMeasurementPosition(((Number) this.measurementPosition.getValue()).intValue());\n Settings.setHandlerMeasurementVelocity(((Number) this.measurementVelocity.getValue()).intValue());\n Settings.setHandlerRotation(((Number) this.rotation.getValue()).intValue());\n Settings.setHandlerSampleLoadPosition(((Number) this.sampleLoadPosition.getValue()).intValue());\n Settings.setHandlerTransverseYAFPosition(((Number) this.transverseYAFPosition.getValue()).intValue());\n Settings.setHandlerVelocity(((Number) this.velocity.getValue()).intValue());\n Settings.setHandlerRotationVelocity(((Number) this.rotationVelocity.getValue()).intValue());\n Settings.setHandlerRotationDeceleration(((Number) this.rotationDec.getValue()).intValue());\n Settings.setHandlerRotationAcceleration(((Number) this.rotationAcc.getValue()).intValue());\n\n Settings.setMagnetometerPort((String) this.magnetometerPort.getSelectedItem());\n Settings.setMagnetometerXAxisCalibration(((Number) this.xAxisCalibration.getValue()).doubleValue());\n Settings.setMagnetometerYAxisCalibration(((Number) this.yAxisCalibration.getValue()).doubleValue());\n Settings.setMagnetometerZAxisCalibration(((Number) this.zAxisCalibration.getValue()).doubleValue());\n creator.setVisible(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void updateSettings(final RecognitionSettingsImpl settings) {\n Platform.runLater(() -> {\n this.udpateRateCombo.getSelectionModel().select(settings.getUpdateRate());\n this.sliderRadius.setValue(settings.getDtwRadius() * 10);\n this.sliderMinThreshold.setValue(settings.getMinDtwThreashold());\n this.sliderMaxThreshold.setValue(settings.getMaxDTWThreashold());\n this.sliderTimeSeparation.setValue(settings.getMinTimeSeparation());\n this.sliderMatchNumber.setValue(settings.getMatchNumber());\n });\n }", "private void openSettings() {\n\t\tString message = \"This would be settings.\";\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t\t\r\n\t}", "public void settingsButton(View view) {\n\t\tIntent intent = new Intent(this, SettingsActivity.class);\n\t\tstartActivity(intent);\n\t}", "public void setConfig(View view) {\n startActivityForResult(new Intent(this, SettingsActivity.class), StaticConfig.REQUEST_CODE_SETTINGS);\n }", "@Override\n public void closeSettings() {\n \n }", "@Override\n public void overrideSettings(final String... keyvalues) {\n super.overrideSettings(keyvalues);\n if (mListMenuContainer == null || mListMenu == null) { // frankie, \n initializePopup();\n } else {\n overridePreferenceAccessibility();\n }\n mListMenu.overrideSettings(keyvalues);\n\n\t\t// frankie, 2017.08.15, add start \n\t\tif(AGlobalConfig.config_module_VIDEO_MODULE_use_new_settings_en) {\n\t if(mChusSettingsFragment == null) {\n\t createSettingFragment(); // fm.commitAllowingStateLoss -> __lifeCycleCallback.onCreate -> overridePreferenceAccessibility_i\n\t }\n\t\t\telse {\n\t\t\t\toverridePreferenceAccessibility_i();\n\t\t\t}\n\t\t\tif(mChusSettingsFragment != null) {\n\t\t\t\tmChusSettingsFragment.overrideSettings(keyvalues);\n\t\t\t}\n\t\t}\n\t\t// frankie, 2017.08.15, add end\n\t\t\n }", "Settings ()\n {\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tchangeSettings();\n\t\t\t\t}", "void openSettings() {\n\t}", "@Override\n public void onClick(View view) {\n getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n\n collectValuesForSettings();\n updateSettings();\n dismiss();\n }", "private void showSettings() {\n Intent intent = new Intent(this, SettingsActivity.class);\n intent.putExtra( SettingsActivity.EXTRA_SHOW_FRAGMENT, SettingsActivity.GeneralPreferenceFragment.class.getName() );\n intent.putExtra( SettingsActivity.EXTRA_NO_HEADERS, true );\n startActivity(intent);\n }", "@Override\n\tpublic ISettingsView getSettingsView() {\n\t\tLog.debug(\"getSettingsView is null ......................\");\n\t\treturn null;\n\t}", "public void saveSettings(View view){\n SharedPreferences.Editor editor = settings.edit();\n\n // Write the values from the views to the editor\n editor.putInt(\"vocablesNumber\",Integer.parseInt(vocablesNumber.getSelectedItem().toString()));\n editor.putBoolean(\"screenOn\", screenOnSwitch.isChecked());\n editor.putFloat(\"delayBetweenVocables\",Float.valueOf(editTextDelay.getText().toString()));\n // Commit the edits\n editor.commit();\n\n // Send the user a message of success\n Toast.makeText(Settings.this,\"Settings saved!\",Toast.LENGTH_SHORT).show();\n // Go back to previous activity\n finish();\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n settingsManager.onActivityResult(requestCode, resultCode);\n }", "private void openSettings() {\n Intent intent = new Intent(this, settings.class);\n startActivity(intent);\n\n finish();\n }", "@Override\n\tprotected void setControlListeners() {\n\t\tcheckBox.selectedProperty().addListener(new ChangeListener<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void changed(\n\t\t\t\t\tObservableValue<? extends Boolean> observable,\n\t\t\t\t\tBoolean oldValue, Boolean newValue) {\n\t\t\t\tif (!settingsPane.isExperimentRunning()) {\n\t\t\t\t\tparameter.set(newValue);\n\t\t\t\t\tsettingsPane.revalidateParameters();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override \n\t\t\t \tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t \t\tmListener.onSettingsPositiveClick(SettingsDialogFragment.this);\n\t\t\t \t}", "@Override\n\tpublic void initSettings() {\n\n\t}", "@Override\n public void onClick(View view) {\n iPresenter.setUpSettingsModal(HomeActivity.this);\n }", "private void setupSettingWindow()\n {\n setGUI.setWindowListener(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n player1Color = setGUI.getPlayer1Color();\n player2Color = setGUI.getPlayer2Color();\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }", "public interface SettingsEventHandler\n{\n\t/** record that a setting name was not provided when it was required */\n\tpublic void alarmOnMissingSetting(String settingName);\n\n\t/** record the use of the provided setting */\n\tpublic void recordUsedSettingAndValue(String settingName, Object value, String description);\n}", "public void openSettings() {\r\n \tIntent intent = new Intent(this, DetectorSettingsActivity.class);\r\n \tstartActivity(intent);\r\n }", "public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }", "@FXML\n private void saveSettings()\n {\n boolean changes = false;\n String newUsername = changeUsernameField.getText();\n\n if (checkChangeUsernameValidity(newUsername) && checkUsername(newUsername, changeUsernameErrorLabel)) {\n changeUsername(newUsername);\n changeUsernameField.setPromptText(newUsername);\n updateProfileLabels();\n changes = true;\n }\n if (bufferImage != null)\n {\n controllerComponents.getAccount().setProfilePicture(bufferImage);\n updateProfilePictures();\n changes = true;\n }\n bufferImage = null;\n if (changes)\n {\n saveFeedbackLabel.setText(\"Changes saved.\");\n } else\n {\n saveFeedbackLabel.setText(\"You have not made any changes.\");\n }\n }", "@Override\n public void onEvent(EventInterface e)\n {\n if (e.getTarget() instanceof Contacts || e.getTarget() instanceof Login) {\n try {\n settings.store();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n }", "@Override\n\tpublic void saveSettings() {\n\n\t}", "private void getSettings(){\n SharedPreferences sp = getSharedPreferences(\"PACERUNNER_SETTINGS\", Activity.MODE_PRIVATE);\n AMOUNT_OF_SECONDS_WHEN_TRIGGERING_NOTIFICATION = sp.getInt(\"NOTIFICATION_SENSITIVITY\", -15);\n REQUIRED_METERS_BEFORE_SHOWING_AVGPACE = sp.getInt(\"NOTIFICATION_METERS_BEFORE_START\", 500);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(Settings.ACTION_SETTINGS);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\r\n\tpublic void onNaviSetting() {\n\r\n\t}", "private static void changeSettings() {\n\t\t\n\t\tfinal Settings sett = config;\n\t\t\n\t\tfinal JDialog settingsDialog = new JDialog(frame, \"Change settings\");\n\t\t\n\t\tsettingsDialog.getContentPane().setLayout(new BorderLayout());\n\t\tsettingsDialog.setPreferredSize(new Dimension(350,150));\n\t\t\n\t\tJPanel settings = new JPanel();\n\t\tsettings.setLayout(new GridLayout(3,2));\n\t\t\n\t\tJLabel lblDB = new JLabel(\"Update DB dynamically\");\n\t\tJRadioButton rbDB = new JRadioButton();\n\t\trbDB.setSelected(sett.isUpdateDB());\n\t\trbDB.addItemListener(new ItemListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setUpdateDB(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setUpdateDB(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\t\t\n\t\tJLabel lblGUI = new JLabel(\"Use Graphical User Interface\");\n\t\tJRadioButton rbGUI = new JRadioButton();\n\t\trbGUI.setSelected(sett.isGUI());\n\t\trbGUI.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setGUI(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setGUI(false);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\tJLabel lblFile = new JLabel(\"Working file\");\n\t\tfinal JTextField tfFile = new JTextField(sett.getWorkingFile());\n\t\t\t\t\n\t\tsettings.add(lblDB);\n\t\tsettings.add(rbDB);\n\t\tsettings.add(lblGUI);\n\t\tsettings.add(rbGUI);\n\t\tsettings.add(lblFile);\n\t\tsettings.add(tfFile);\n\t\t\n\t\tJButton btnSave = new JButton(\"Save settings\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(!saved) {\n\t\t \t\tint option = JOptionPane.showOptionDialog(frame,\n\t\t \t\t\t\t\"Updating the settings will reset the application\\nThere are unsaved changes\\nDo you want to save them now?\",\n\t\t \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n\t\t \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n\t\t \t\tswitch(option) {\n\t\t \t\tcase 0:\n\t\t \t\t\ttoggleSaved(portfolio.save(WORKING_FILE));\n\t\t \t\tdefault:\n\t\t \t\t\tbreak; \t \t\t\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsett.setWorkingFile(tfFile.getText());\n\t\t\t\t\n\t\t\t\tsett.save();\n\t\t\t\tconfig = new Settings(sett);\n\t\t\t\tsettingsDialog.dispose();\n\t\t\t\t\n\t\t\t\tif(!sett.isGUI()){\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\texit = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!sett.isUpdateDB()){\n\t\t\t\t\tportfolio.init(config.getWorkingFile());\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION);\n\t\t\t\t\tbtnRestore.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tportfolio.initDB();\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION+\" ** Linked to Database **\");\n\t\t\t\t\tbtnRestore.setEnabled(false);\n\t\t\t\t}\n\t\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\t\tsel.init(portfolio);\n\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsettingsDialog.add(settings, BorderLayout.CENTER);\n\t\tsettingsDialog.add(btnSave, BorderLayout.PAGE_END);\n\t\t\n\t\tsettingsDialog.pack();\n\t\tsettingsDialog.setVisible(true);\t\n\t}", "public SettingsMenuPanel() {\n initComponents();\n changed.setVisible(false);\n }", "public void sendSettings()\n {\n Intent startSettings = new Intent(this, Main3Activity.class);\n startActivity(startSettings);\n }", "protected void showMineSettings() {\r\n settingsFrame.setLocation( scorePanel.getLocationOnScreen() );\r\n settingsFrame.setVisible( true );\r\n }", "public void setSettings(Settings settings)\r\n\t{\r\n\t\tthis.settings = settings;\r\n\t}", "public SettingsScreen getSettingsScreen() {\n return settingsScreen;\n }", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\thf.getSettings().setVisible(true);;\n\n\t}", "public void showSettingsAlert(final int arg) {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());\n alertDialog.setTitle(\"GPS is settings\");\n alertDialog.setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n alertDialog.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n getActivity().startActivityForResult(intent, arg);\n }\n });\n alertDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n return;\n }\n });\n alertDialog.show();\n }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tConfig.HisiSettingService = ServiceSettingsInfoAidl.Stub.asInterface(service);\n\t\t}", "boolean setSettings(Settings sm);", "@FXML\n\tprivate void onSaveBtn() {\n\t\tSettings settings = Settings.getSingleton();\n\t\t//Set rule setting\n\t\tif(ruleBox.getValue() == \"Standard\") {\n\t\t\tsettings.setRuleType(RuleType.STANDARD);\n\t\t} else {\n\t\t\tsettings.setRuleType(RuleType.CHALLENGE);\n\t\t}\n\t\t\n\t\t//Set number of walls setting\n\t\tsettings.setWalls(wallBox.getValue());\n\t\t//Set show label\n\t\tsettings.setShowLabels(indicateLabel.isSelected());\n\t\t//Set show ghost trails\n\t\t//settings.setShowTrail(ghostTrail.isSelected());\n\t\t\n\t\t//Set board height and width\n\t\tswitch(boardBox.getValue()) {\n\t\tcase \"7x7\":\n\t\t\tsettings.setBoardHeight(7);\n\t\t\tsettings.setBoardWidth(7);\t\t\t\n\t\t\tbreak;\n\t\tcase \"9x9\":\n\t\t\tsettings.setBoardHeight(9);\n\t\t\tsettings.setBoardWidth(9);\t\t\t\n\t\t\tbreak;\n\t\tcase \"11x11\":\n\t\t\tsettings.setBoardHeight(11);\n\t\t\tsettings.setBoardWidth(11);\t\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsettings.setBoardHeight(9);\n\t\t\t\tsettings.setBoardWidth(9);\n\t\t\t\tbreak;\n\t\t}\n\t\t//Set tile size\n\t\tsettings.setTileSize(tileBox.getValue());\n\t}", "private void loadSettings(){\n SharedPreferences sharedPreferences = getActivity().getSharedPreferences(SHARED_PREF, Context.MODE_PRIVATE);\n notificationSwtich = sharedPreferences.getBoolean(SWITCH, false);\n reminderOnOff.setChecked(notificationSwtich);\n }", "public void openSettingsScreen(View view) {\n// Intent intent = new Intent(this, RnluSettingsScreen.class);\n Intent intent = new Intent(this, pl.hubertkarbowy.androidrnlu.config.SettingsActivity.class);\n// EditText editText = findViewById(R.id.nlInput);\n// String message = editText.getText().toString();\n// intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }", "public ThemeChangeListener(SettingsDialog settingsDialogView) {\n this.settingsDialogView = settingsDialogView;\n }", "public void gotoSettings(View v){\n Intent settings;\n settings = new Intent(getBaseContext(),SettingsActivity.class);\n startActivity(settings);\n }", "void setSettings(ControlsSettings settings);", "private void onSettingClickEvent() {\n\t\tmBtnSetting.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n//\t\t\t\tLog.d(TAG, \"onSettingClickEvent\");\n//\t\t\t\topenOptionsMenu();\n\t\t\t\tConfiguration config = getResources().getConfiguration();\n\t\t\t\tif ((config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) > Configuration.SCREENLAYOUT_SIZE_LARGE) {\n\t\t\t\t\tint originalScreenLayout = config.screenLayout;\n\t\t\t\t\tconfig.screenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE;\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t\tconfig.screenLayout = originalScreenLayout;\n\t\t\t\t} else {\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowSettingDialog();\n\t\t\t}", "public interface ISettingsPresenter {\n void onViewReady();\n\n void changeNotificationsState(boolean state);\n\n void changeActivityLogState(boolean state);\n\n void cleanActivityLogs();\n\n void changeContinuousLogin(boolean isEnabled);\n\n void changeWifiAutoLogin(boolean isEnabled);\n\n void changeIPAddress(String ipAddress);\n\n void changePort(String port);\n}", "void getSettings(ControlsSettings settings);", "@Override\n public void onShowSettingsRequest(Context context) {\n Intent intent = new Intent(context, SettingsActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }", "@Override\n public boolean apply(WallpaperService.SettingsSelection s) {\n if (s.key.equals(\"start\")) {\n //User set the start from value in the wallpaper settings.\n userConfiguration.setValue(Integer.parseInt(s.prefs.getString(s.key, \"0\")));\n } else if (s.key.equals(\"theme\")) {\n //User set the color theme.\n String theme = s.prefs.getString(s.key, \"Light\");\n if (theme.equals(\"Light\")) {\n Paint p = new Paint();\n p.setColor(Color.WHITE);\n p.setTextSize(40f);\n userConfiguration.getPaintMap().put(UserConfiguration.FOREGROUND_PAINT_KEY, p);\n p = new Paint();\n p.setColor(Color.BLUE);\n userConfiguration.getPaintMap().put(UserConfiguration.BACKGROUND_PAINT_KEY, p);\n } else if (theme.equals(\"Dark\")) {\n Paint p = new Paint();\n p.setColor(Color.BLACK);\n p.setTextSize(40f);\n userConfiguration.getPaintMap().put(UserConfiguration.FOREGROUND_PAINT_KEY, p);\n p = new Paint();\n p.setColor(Color.YELLOW);\n userConfiguration.getPaintMap().put(UserConfiguration.BACKGROUND_PAINT_KEY, p);\n } else {\n throw new IllegalArgumentException(\"Unknown theme string. Check settings.xml\");\n }\n } else if (s.key.equals(\"speed\")) {\n //User set the speed.\n String speed = s.prefs.getString(s.key, \"Slow\");\n if (speed.equals(\"Slow\")) {\n userConfiguration.setFrameDelayMillis(250);\n } else if (speed.equals(\"Fast\")) {\n userConfiguration.setFrameDelayMillis(50);\n } else {\n throw new IllegalArgumentException(\"Unknown settings key. Check settings.xml.\");\n }\n } else {\n throw new IllegalArgumentException(\"Unknown settings key. Check settings.xml.\");\n }\n\n return true;\n }", "@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Settings.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}", "public void applySettings(View v) {\n // start connection to firebase\n db = new FirebaseHelper(userPreferences.getString(\"username\", null));\n\n // get settingsPreferences editor\n settingsEditor = settingsPreferences.edit();\n\n String pH_min_text = pHMin.getText().toString();\n float pH_min;\n if (!pH_min_text.isEmpty()) {\n pH_min = Float.parseFloat(pH_min_text);\n db.setPref(\"pH_min\", pH_min, getCompletionListener(\"pH_min\", pH_min));\n }\n else {\n db.removePref(\"pH_min\");\n settingsEditor.remove(\"pH_min\");\n settingsEditor.apply();\n }\n String pH_max_text = pHMax.getText().toString();\n float pH_max;\n if (!pH_max_text.isEmpty()) {\n pH_max = Float.parseFloat(pH_max_text);\n db.setPref(\"pH_max\", pH_max, getCompletionListener(\"pH_max\", pH_max));\n }\n else {\n db.removePref(\"pH_max\");\n settingsEditor.remove(\"pH_max\");\n settingsEditor.apply();\n }\n\n String orp_min_text = orpMin.getText().toString();\n int orp_min;\n if (!orp_min_text.isEmpty()) {\n orp_min = Integer.parseInt(orp_min_text);\n db.setPref(\"orp_min\", orp_min, getCompletionListener(\"orp_min\", orp_min));\n }\n else {\n db.removePref(\"orp_min\");\n settingsEditor.remove(\"orp_min\");\n settingsEditor.apply();\n }\n String orp_max_text = orpMax.getText().toString();\n int orp_max;\n if (!orp_max_text.isEmpty()) {\n orp_max = Integer.parseInt(orp_max_text);\n db.setPref(\"orp_max\", orp_max, getCompletionListener(\"orp_max\", orp_max));\n }\n else {\n db.removePref(\"orp_max\");\n settingsEditor.remove(\"orp_max\");\n settingsEditor.apply();\n }\n\n String turbidity_min_text = turbidityMin.getText().toString();\n float turbidity_min;\n if (!turbidity_min_text.isEmpty()) {\n turbidity_min = Float.parseFloat(turbidity_min_text);\n db.setPref(\"turbidity_min\", turbidity_min, getCompletionListener(\"turbidity_min\", turbidity_min));\n }\n else {\n db.removePref(\"turbidity_min\");\n settingsEditor.remove(\"turbidity_min\");\n settingsEditor.apply();\n }\n String turbidity_max_text = turbidityMax.getText().toString();\n float turbidity_max;\n if (!turbidity_max_text.isEmpty()) {\n turbidity_max = Float.parseFloat(turbidity_max_text);\n db.setPref(\"turbidity_max\", turbidity_max, getCompletionListener(\"turbidity_max\", turbidity_max));\n }\n else {\n db.removePref(\"turbidity_max\");\n settingsEditor.remove(\"turbidity_max\");\n settingsEditor.apply();\n }\n\n String temperature_min_text = temperatureMin.getText().toString();\n float temperature_min;\n if (!temperature_min_text.isEmpty()) {\n temperature_min = Float.parseFloat(temperature_min_text);\n db.setPref(\"temperature_min\", temperature_min, getCompletionListener(\"temperature_min\", temperature_min));\n }\n else {\n db.removePref(\"temperature_min\");\n settingsEditor.remove(\"temperature_min\");\n settingsEditor.apply();\n }\n String temperature_max_text = temperatureMax.getText().toString();\n float temperature_max;\n if (!temperature_max_text.isEmpty()) {\n temperature_max = Float.parseFloat(temperature_max_text);\n db.setPref(\"temperature_max\", temperature_max, getCompletionListener(\"temperature_max\", temperature_max));\n }\n else {\n db.removePref(\"temperature_max\");\n settingsEditor.remove(\"temperature_max\");\n settingsEditor.apply();\n }\n finish();\n }", "@Override\n public void onClick(View v) {\n SettingDialog.show();\n }", "public SettingsMenu(ChatWindow chatWindow)\n {\n super(Messages.getI18NString(\"settings\").getText());\n \n this.chatWindow = chatWindow;\n \n typingNotificationsItem.setName(\"typingNotifications\");\n sendingMessageCommandItem.setName(\"sendingMessageCommand\");\n autoPopupItem.setName(\"autopopup\");\n \n this.setMnemonic(Messages.getI18NString(\"settings\").getMnemonic());\n \n this.typingNotificationsItem.setMnemonic(\n typingNotifString.getMnemonic());\n \n this.sendingMessageCommandItem.setMnemonic(\n useCtrlEnterString.getMnemonic());\n \n this.autoPopupItem.setMnemonic(\n autoPopupString.getMnemonic());\n \n this.add(typingNotificationsItem);\n this.add(sendingMessageCommandItem);\n this.add(autoPopupItem);\n \n this.typingNotificationsItem.addActionListener(this);\n this.sendingMessageCommandItem.addActionListener(this);\n this.autoPopupItem.addActionListener(this);\n \n this.autoPopupItem.setSelected(\n ConfigurationManager.isAutoPopupNewMessage());\n \n this.typingNotificationsItem.setSelected(\n ConfigurationManager.isSendTypingNotifications());\n \n if(ConfigurationManager.getSendMessageCommand()\n == ConfigurationManager.ENTER_COMMAND) \n this.sendingMessageCommandItem.setSelected(true);\n else\n this.sendingMessageCommandItem.setSelected(false);\n \n }", "private void launchSettingsActivity() {\n\t\tIntent myIntent = new Intent(this,\n\t\t\t\tSettingsActivity.class);\n\n\t\tthis.startActivityForResult(myIntent,\n\t\t\t\tSettingsActivity.EDIT_SETTINGS_ID);\n\t}", "private void changeShowSettings(SelectionEvent event) {\r\n //System.out.println(\"Show settings shanged\");\r\n \r\n Set <ShowOption> currentlySelected = event.getAllSelectedItems();\r\n \r\n Set <ShowOption> unselected = new HashSet();\r\n unselected.addAll(previousShowOptions);\r\n unselected.removeAll(currentlySelected);\r\n \r\n Set <ShowOption> newlySelected = new HashSet();\r\n newlySelected.addAll(currentlySelected);\r\n newlySelected.removeAll(previousShowOptions);\r\n \r\n Set <ShowOption> changed = new HashSet();\r\n changed.addAll(newlySelected);\r\n changed.addAll(unselected);\r\n \r\n for (ShowOption showOption : changed) {\r\n showOptions.put(showOption, !showOptions.get(showOption));\r\n } \r\n \r\n \r\n// System.out.println(\"previously selected: \" + previousShowOptions);\r\n// System.out.println(\"unselected: \" + unselected);\r\n// System.out.println(\"newly selected: \" + newlySelected);\r\n //System.out.println(\"changed show options: \" + changed);\r\n \r\n //changeShowStatus(changed);\r\n \r\n // TODO: try with JS feedback\r\n //LoadingIndicator <String> loadingIndicator = new LoadingIndicator(\"Loading 3D views ...\");\r\n //getComponent().getUI().addWindow(loadingIndicator);\r\n sendPlotOptions();\r\n //loadingIndicator.close();\r\n \r\n // the option to show the bar chart is only enabled for the 2D view\r\n if (showOptions.get(ShowOption.THREE_D)) {\r\n showOptionsSelector.setItemEnabledProvider(item -> !item.equals(ShowOption.N));\r\n }\r\n else {\r\n showOptionsSelector.setItemEnabledProvider(item -> true);\r\n }\r\n \r\n previousShowOptions = showOptionsSelector.getValue();\r\n }", "public void openUserSettings() {\n\t\ttry {\n\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UserSettingsView.fxml\"));\n\t\t\tfxmlLoader.setResources(bundle);\n\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\tStage stage = new Stage();\n\t\t\tUserSettingsController usc = fxmlLoader.getController();\n\t\t\tusc.setMainController(this);\n\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\tstage.setTitle(bundle.getString(\"uSHeaderLabel\"));\n\t\t\tstage.setScene(new Scene(root1));\n\t\t\tstage.show();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public SettingsPanel() {\n initComponents();\n }", "public void showSettingsAlert() {\r\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(mContext);\r\n alertDialog.setTitle(mContext.getResources().getString(R.string.gps_settings_title));\r\n alertDialog.setMessage(mContext.getResources().getString(R.string.gps_settings_body));\r\n alertDialog.setCancelable(false);\r\n alertDialog.setPositiveButton(mContext.getResources().getString(R.string.action_settings), new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\r\n ((Activity) mContext).startActivityForResult(intent, REQUEST_LOCATION_CODE);\r\n }\r\n });\r\n alertDialog.show();\r\n }", "private void _getUpdatedSettings() {\n TextView sw1Label = findViewById(R.id.labelSwitch1);\n TextView sw2Label = findViewById(R.id.labelSwitch2);\n TextView sw3Label = findViewById(R.id.labelSwitch3);\n TextView sw4Label = findViewById(R.id.labelSwitch4);\n TextView sw5Label = findViewById(R.id.labelSwitch5);\n TextView sw6Label = findViewById(R.id.labelSwitch6);\n TextView sw7Label = findViewById(R.id.labelSwitch7);\n TextView sw8Label = findViewById(R.id.labelSwitch8);\n\n sw1Label.setText(homeAutomation.settings.switch1Alias);\n sw2Label.setText(homeAutomation.settings.switch2Alias);\n sw3Label.setText(homeAutomation.settings.switch3Alias);\n sw4Label.setText(homeAutomation.settings.switch4Alias);\n sw5Label.setText(homeAutomation.settings.switch5Alias);\n sw6Label.setText(homeAutomation.settings.switch6Alias);\n sw7Label.setText(homeAutomation.settings.switch7Alias);\n sw8Label.setText(homeAutomation.settings.switch8Alias);\n }", "public void setupServerSettings() {\r\n\t\tmnuServerSettings.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew EmailSettingsGUI();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(Ter.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(saveSettings()) {\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"设置保存成功\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tSettingsActivity.this.setResult(RESULT_SAVE_SUCCESS);\n\t\t\t\t\tSettingsActivity.this.finish();\n\t\t\t\t}\n\t\t\t}", "public void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n Add_Event.this.openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n }", "@Override\n protected void initSettings (GameSettings settings) {\n settings.setWidth(15 * 70);\n settings.setHeight(10* 70);\n settings.setVersion(\"0.1\");\n settings.setTitle(\"Platformer Game\");\n settings.setMenuEnabled(true);\n settings.setMenuKey(KeyCode.ESCAPE);\n }", "public void notifyInvalidate() {\n firePropertyChange(\"settings changed!\", null, CatalogSettings.this);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.action_settings) {\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.permission));\n builder.setMessage(getString(R.string.setting_permission));\n builder.setPositiveButton(getString(R.string.go_setting), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "protected void showSettingsChangedDialog() {\n new AlertDialog.Builder(getActivity())\n .setTitle(R.string.dialog_settings_changed_title)\n .setMessage(R.string.dialog_settings_changed_description)\n .setPositiveButton(android.R.string.yes, this)\n .setNegativeButton(android.R.string.no, this)\n .show();\n }" ]
[ "0.7027159", "0.70206004", "0.6974143", "0.6789762", "0.66830707", "0.6674648", "0.66644573", "0.6591018", "0.6578928", "0.65749896", "0.6530422", "0.6527866", "0.65145016", "0.64141476", "0.6407073", "0.6380013", "0.63547486", "0.6322383", "0.6282982", "0.6262031", "0.626062", "0.62580526", "0.62531656", "0.62432045", "0.6210503", "0.6194338", "0.61455953", "0.61268157", "0.6078138", "0.60764617", "0.6074082", "0.60603845", "0.60459477", "0.59855753", "0.59795415", "0.59767807", "0.5958676", "0.59556866", "0.59552085", "0.5943046", "0.59380853", "0.5932895", "0.5927496", "0.5924298", "0.59224033", "0.59058845", "0.589521", "0.5893894", "0.58835363", "0.5874547", "0.58724266", "0.5868153", "0.5861779", "0.58593476", "0.58569384", "0.5844376", "0.5835422", "0.5832359", "0.5818491", "0.58170575", "0.58160573", "0.58046395", "0.5802283", "0.5797976", "0.5786763", "0.5766537", "0.5759942", "0.575849", "0.5756372", "0.5749406", "0.57449716", "0.574102", "0.57402503", "0.57402384", "0.5721185", "0.57110935", "0.570767", "0.5706093", "0.57055783", "0.5705223", "0.5699384", "0.5690411", "0.5685092", "0.568474", "0.56812155", "0.5679755", "0.56705135", "0.5656558", "0.5648959", "0.56466454", "0.56334907", "0.5630363", "0.56266826", "0.5624755", "0.5620904", "0.56195897", "0.56110793", "0.5609114", "0.5604668", "0.5603244" ]
0.56706816
86
Implementacija SettingsInteractorListener. View se obavjestava u neuspjesnosti dohvacanja favorita.
@Override public void onFailed(String text) { view.onFailed("Greska u dohvacanju favorita!"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void settingsBtnListener() {\n settingsBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new SettingsScreen(game));\n }\n });\n }", "@Override\n\tpublic void settingsChanged(AbstractSettings settings) {\n\t}", "@Override\n\tprotected void handleSettings(ClickEvent event) {\n\t\t\n\t}", "public interface SettingsSelectedListener\t{\n\t}", "public interface SettingsListener {\n void changed();\n}", "public interface SettingsDialogListener { \n\t\tpublic void onSettingsPositiveClick(DialogFragment dialog); \n\t\tpublic void onSettingsNegativeClick(DialogFragment dialog); \n\t}", "@Override\n\tpublic void notifySettingChanged() {\n\t}", "private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}", "@Override\n public void changed(ChangeEvent event, Actor actor) {\n // If player press setting's button, it change to settings screen\n game.goSettingsScreen();\n }", "public void fireUISettingsChanged() {\n UISettingsListener[] listeners= myListenerList.getListeners(UISettingsListener.class);\n for (UISettingsListener listener : listeners) {\n listener.uiSettingsChanged(this);\n }\n }", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "private void viewSettings() {\n startActivity(new Intent(Main.this, Settings.class));\n }", "@Override\n public void onSettingChanged(ListPreference pref) {\n }", "public void switchToSettings() {\r\n\t\tlayout.show(this, \"settingsPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "TvShowScraperNfoSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n comboBoxListener = e -> checkChanges();\n\n // UI init\n initComponents();\n initDataBindings();\n\n // data init\n\n // implement checkBoxListener for preset events\n settings.addPropertyChangeListener(evt -> {\n if (\"preset\".equals(evt.getPropertyName())) {\n buildComboBoxes();\n }\n });\n\n buildCheckBoxes();\n buildComboBoxes();\n }", "protected void onUserSettingsChanged(@Observes UserSettingsChangedEvent usc)\n {\n loadMenu();\n }", "public interface OnSettingChoiceListener {\n /**\n * Handles confirmation for the requested action by the user.\n *\n * @param settingName {@link String} name of the {@link Settings.Secure}\n * for which a choice was requested\n */\n void onSettingConfirm(String settingName);\n\n /**\n * Handles denial for the requested action by the user.\n *\n * @param settingName {@link String} name of the {@link Settings.Secure}\n * for which a choice was requested\n */\n void onSettingDeny(String settingName);\n }", "public void settings_clicked(View view) {\n Intent intent = new Intent(this, SettingsActivity.class);\n // EditText editText = (EditText) findViewById(R.id.editText);\n // String message = \"final data\";\n // intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tshowSettingDialog(msg.what);\n\t\t\t// super.handleMessage(msg);\n\t\t}", "public void setSettings(final Properties settings) {\r\n this.settings = settings;\r\n\r\n replay = new Replay(settings);\r\n\r\n for(final MenuItem item : eventMenu.getItems()) {\r\n if (item instanceof CustomMenuItem) {\r\n final String event = item.getText();\r\n final CustomMenuItem customItem = ((CustomMenuItem) item);\r\n if (customItem.getContent() instanceof CheckBox) {\r\n final CheckBox checkBox = (CheckBox) customItem.getContent();\r\n checkBox.setSelected(replay.notableEvents.contains(event));\r\n }\r\n }\r\n }\r\n\r\n zoomStep = Integer.parseInt(settings.getProperty(\"zoom.step\", \"100\"));\r\n\r\n daysCombo.getItems().addAll(settings.getProperty(\"list.delta.per.tick\", \"1;30;365\").split(\";\"));\r\n daysCombo.getSelectionModel().select(settings.getProperty(\"delta.per.tick\", \"1\"));\r\n try {\r\n periodCombo.getSelectionModel().select(Integer.parseInt(settings.getProperty(\"period.per.tick\", \"0\")));\r\n } catch (NumberFormatException e) {\r\n periodCombo.getSelectionModel().selectFirst();\r\n settings.setProperty(\"period.per.tick\", \"0\");\r\n }\r\n\r\n langCombo.getSelectionModel().select(settings.getProperty(\"locale.language\", \"en\"));\r\n\r\n replay.drawBorders = \"true\".equals(settings.getProperty(\"borders\", \"false\"));\r\n\r\n focusEdit.setText(settings.getProperty(\"focus\", \"\"));\r\n\r\n saveDirectory = new File(settings.getProperty(\"save.dir\", \"\"));\r\n if (!saveDirectory.exists() || !saveDirectory.isDirectory()) {\r\n saveDirectory = new File(Replay.DEFAULT_SAVE_DIR);\r\n if (!saveDirectory.exists() || !saveDirectory.isDirectory()) {\r\n saveDirectory = new File(System.getProperty(\"user.home\"), \"/\");\r\n }\r\n }\r\n\r\n serDirectory = new File(settings.getProperty(\"ser.dir\", \"\"));\r\n if (!serDirectory.exists() || !serDirectory.isDirectory()) {\r\n serDirectory = new File(Replay.DEFAULT_SAVE_DIR);\r\n if (!serDirectory.exists() || !serDirectory.isDirectory()) {\r\n serDirectory = new File(System.getProperty(\"user.home\"), \"/\");\r\n }\r\n }\r\n\r\n subjectsCheckMenuItem.setSelected(replay.subjectsAsOverlords);\r\n\r\n gifMenu.setVisible(!settings.getProperty(\"gif\", \"false\").equals(\"true\"));\r\n gifLoopCheckMenuItem.setSelected(settings.getProperty(\"gif.loop\", \"true\").equals(\"true\"));\r\n gifWidthEdit.setText(settings.getProperty(\"gif.width\", \"0\"));\r\n gifHeightEdit.setText(settings.getProperty(\"gif.height\", \"0\"));\r\n gifBreakEdit.setText(settings.getProperty(\"gif.new.file\", \"0\"));\r\n gifStepEdit.setText(settings.getProperty(\"gif.step\", \"100\"));\r\n gifDateCheckMenuItem.setSelected(settings.getProperty(\"gif.date\", \"true\").equals(\"true\"));\r\n gifDateColorPicker.setValue(Color.web(settings.getProperty(\"gif.date.color\", \"0x000000\")));\r\n gifDateSizeEdit.setText(settings.getProperty(\"gif.date.size\", \"12\"));\r\n gifDateXEdit.setText(settings.getProperty(\"gif.date.x\", \"60\"));\r\n gifDateYEdit.setText(settings.getProperty(\"gif.date.y\", \"60\"));\r\n gifSubimageCheckMenuItem.setSelected(settings.getProperty(\"gif.subimage\", \"false\").equals(\"true\"));\r\n gifSubimageXEdit.setText(settings.getProperty(\"gif.subimage.x\", \"0\"));\r\n gifSubimageYEdit.setText(settings.getProperty(\"gif.subimage.y\", \"0\"));\r\n gifSubimageWidthEdit.setText(settings.getProperty(\"gif.subimage.width\", \"\"));\r\n gifSubimageHeightEdit.setText(settings.getProperty(\"gif.subimage.height\", \"\"));\r\n\r\n bordersCheckMenuItem.setSelected(settings.getProperty(\"borders\", \"false\").equals(\"true\"));\r\n disableLog = settings.getProperty(\"log.disable\", \"false\").equals(\"true\");\r\n\r\n eu4Directory = new File(settings.getProperty(\"eu4.dir\"));\r\n try {\r\n lock.acquire();\r\n loadData();\r\n } catch (InterruptedException e) { }\r\n }", "private void showChangeSettings() {\n showedChangeSettings = true;\n if (this.getActivity() == null || PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).getBoolean(\"crumbyHasVisitedSettings\", false)) {\n return;\n }\n Toast toast = Toast.makeText((Context)this.getActivity(), (CharSequence)\"\", (int)1);\n toast.setGravity(17, 0, 0);\n TextView textView = (TextView)View.inflate((Context)this.getActivity(), (int)2130903119, (ViewGroup)null);\n textView.setText((CharSequence)\"Hint: settings are auto-saved!\");\n toast.setView((View)textView);\n toast.show();\n PreferenceManager.getDefaultSharedPreferences((Context)this.getActivity()).edit().putBoolean(\"crumbyHasVisitedSettings\", true).commit();\n }", "private SettingsWindow() {\n loadData();\n createListeners();\n }", "public void settingsMenu() {\n /*\n * we need to create new settings scene because settings may be changed and\n * we need to show those changes\n */\n Game.stage.setScene(createSettingsMenuScene());\n Game.stage.show();\n }", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}", "private boolean onAccountSettings() {\n AccountSettings.actionSettings(mActivity, getActualAccountId());\n return true;\n }", "TvShowSettingsPanel() {\n checkBoxListener = e -> checkChanges();\n\n // UI initializations\n initComponents();\n initDataBindings();\n\n // logic initializations\n btnClearTraktTvShows.addActionListener(e -> {\n Object[] options = { BUNDLE.getString(\"Button.yes\"), BUNDLE.getString(\"Button.no\") };\n int confirm = JOptionPane.showOptionDialog(null, BUNDLE.getString(\"Settings.trakt.cleartvshows.hint\"),\n BUNDLE.getString(\"Settings.trakt.cleartvshows\"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, null);\n if (confirm == JOptionPane.YES_OPTION) {\n TmmTask task = new ClearTraktTvTask(false, true);\n TmmTaskManager.getInstance().addUnnamedTask(task);\n }\n });\n\n btnPresetXbmc.addActionListener(evt -> settings.setDefaultSettingsForXbmc());\n btnPresetKodi.addActionListener(evt -> settings.setDefaultSettingsForKodi());\n btnPresetMediaPortal1.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetMediaPortal2.addActionListener(evt -> settings.setDefaultSettingsForMediaPortal());\n btnPresetPlex.addActionListener(evt -> settings.setDefaultSettingsForPlex());\n\n buildCheckBoxes();\n }", "public void settings() {\n btSettings().push();\n }", "@Override\n public void tryEditSettings(SettingsModel settingsModel) {\n interactor.editSettings(settingsModel);\n }", "@Override\n public void closeSettings() {\n \n }", "public void saveSettings() {\n try {\n Settings.setDegausserPort((String) this.demagnetizerPort.getSelectedItem());\n Settings.setDegausserDelay(((Number) this.demagDelay.getSelectedItem()).intValue());\n Settings.setDegausserRamp(((Number) this.demagRamp.getSelectedItem()).intValue());\n Settings.setDegausserMaximumField(((Number) this.maximumField.getValue()).doubleValue());\n Settings.setHandlerPort((String) this.handlerPort.getSelectedItem());\n Settings.setHandlerAcceleration(((Number) this.acceleration.getValue()).intValue());\n Settings.setHandlerAxialAFPosition(((Number) this.axialAFPosition.getValue()).intValue());\n Settings.setHandlerBackgroundPosition(((Number) this.backgroundPosition.getValue()).intValue());\n Settings.setHandlerDeceleration(((Number) this.deceleration.getValue()).intValue());\n Settings.setHandlerMeasurementPosition(((Number) this.measurementPosition.getValue()).intValue());\n Settings.setHandlerMeasurementVelocity(((Number) this.measurementVelocity.getValue()).intValue());\n Settings.setHandlerRotation(((Number) this.rotation.getValue()).intValue());\n Settings.setHandlerSampleLoadPosition(((Number) this.sampleLoadPosition.getValue()).intValue());\n Settings.setHandlerTransverseYAFPosition(((Number) this.transverseYAFPosition.getValue()).intValue());\n Settings.setHandlerVelocity(((Number) this.velocity.getValue()).intValue());\n Settings.setHandlerRotationVelocity(((Number) this.rotationVelocity.getValue()).intValue());\n Settings.setHandlerRotationDeceleration(((Number) this.rotationDec.getValue()).intValue());\n Settings.setHandlerRotationAcceleration(((Number) this.rotationAcc.getValue()).intValue());\n\n Settings.setMagnetometerPort((String) this.magnetometerPort.getSelectedItem());\n Settings.setMagnetometerXAxisCalibration(((Number) this.xAxisCalibration.getValue()).doubleValue());\n Settings.setMagnetometerYAxisCalibration(((Number) this.yAxisCalibration.getValue()).doubleValue());\n Settings.setMagnetometerZAxisCalibration(((Number) this.zAxisCalibration.getValue()).doubleValue());\n creator.setVisible(false);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void updateSettings(final RecognitionSettingsImpl settings) {\n Platform.runLater(() -> {\n this.udpateRateCombo.getSelectionModel().select(settings.getUpdateRate());\n this.sliderRadius.setValue(settings.getDtwRadius() * 10);\n this.sliderMinThreshold.setValue(settings.getMinDtwThreashold());\n this.sliderMaxThreshold.setValue(settings.getMaxDTWThreashold());\n this.sliderTimeSeparation.setValue(settings.getMinTimeSeparation());\n this.sliderMatchNumber.setValue(settings.getMatchNumber());\n });\n }", "private void openSettings() {\n\t\tString message = \"This would be settings.\";\r\n\t\tIntent intent = new Intent(this, DisplayMessageActivity.class);\r\n\t\tintent.putExtra(EXTRA_MESSAGE, message);\r\n\t\tstartActivity(intent);\r\n\t\t\r\n\t}", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n settingsManager.onActivityResult(requestCode, resultCode);\n }", "@Override\n\tprotected void setControlListeners() {\n\t\tcheckBox.selectedProperty().addListener(new ChangeListener<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void changed(\n\t\t\t\t\tObservableValue<? extends Boolean> observable,\n\t\t\t\t\tBoolean oldValue, Boolean newValue) {\n\t\t\t\tif (!settingsPane.isExperimentRunning()) {\n\t\t\t\t\tparameter.set(newValue);\n\t\t\t\t\tsettingsPane.revalidateParameters();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void overrideSettings(final String... keyvalues) {\n super.overrideSettings(keyvalues);\n if (mListMenuContainer == null || mListMenu == null) { // frankie, \n initializePopup();\n } else {\n overridePreferenceAccessibility();\n }\n mListMenu.overrideSettings(keyvalues);\n\n\t\t// frankie, 2017.08.15, add start \n\t\tif(AGlobalConfig.config_module_VIDEO_MODULE_use_new_settings_en) {\n\t if(mChusSettingsFragment == null) {\n\t createSettingFragment(); // fm.commitAllowingStateLoss -> __lifeCycleCallback.onCreate -> overridePreferenceAccessibility_i\n\t }\n\t\t\telse {\n\t\t\t\toverridePreferenceAccessibility_i();\n\t\t\t}\n\t\t\tif(mChusSettingsFragment != null) {\n\t\t\t\tmChusSettingsFragment.overrideSettings(keyvalues);\n\t\t\t}\n\t\t}\n\t\t// frankie, 2017.08.15, add end\n\t\t\n }", "private void showSettings() {\n Intent intent = new Intent(this, SettingsActivity.class);\n intent.putExtra( SettingsActivity.EXTRA_SHOW_FRAGMENT, SettingsActivity.GeneralPreferenceFragment.class.getName() );\n intent.putExtra( SettingsActivity.EXTRA_NO_HEADERS, true );\n startActivity(intent);\n }", "Settings ()\n {\n }", "@Override\n public void onClick(View view) {\n getActivity().getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n\n collectValuesForSettings();\n updateSettings();\n dismiss();\n }", "public void settingsButton(View view) {\n\t\tIntent intent = new Intent(this, SettingsActivity.class);\n\t\tstartActivity(intent);\n\t}", "@Override\n\tpublic ISettingsView getSettingsView() {\n\t\tLog.debug(\"getSettingsView is null ......................\");\n\t\treturn null;\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\tchangeSettings();\n\t\t\t\t}", "@Override \n\t\t\t \tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t \t\tmListener.onSettingsPositiveClick(SettingsDialogFragment.this);\n\t\t\t \t}", "void openSettings() {\n\t}", "@Override\n\tpublic void initSettings() {\n\n\t}", "public void setConfig(View view) {\n startActivityForResult(new Intent(this, SettingsActivity.class), StaticConfig.REQUEST_CODE_SETTINGS);\n }", "@Override\n\tpublic void saveSettings() {\n\n\t}", "public SettingsMenuPanel() {\n initComponents();\n changed.setVisible(false);\n }", "private void getSettings(){\n SharedPreferences sp = getSharedPreferences(\"PACERUNNER_SETTINGS\", Activity.MODE_PRIVATE);\n AMOUNT_OF_SECONDS_WHEN_TRIGGERING_NOTIFICATION = sp.getInt(\"NOTIFICATION_SENSITIVITY\", -15);\n REQUIRED_METERS_BEFORE_SHOWING_AVGPACE = sp.getInt(\"NOTIFICATION_METERS_BEFORE_START\", 500);\n }", "private void openSettings() {\n Intent intent = new Intent(this, settings.class);\n startActivity(intent);\n\n finish();\n }", "@FXML\n private void saveSettings()\n {\n boolean changes = false;\n String newUsername = changeUsernameField.getText();\n\n if (checkChangeUsernameValidity(newUsername) && checkUsername(newUsername, changeUsernameErrorLabel)) {\n changeUsername(newUsername);\n changeUsernameField.setPromptText(newUsername);\n updateProfileLabels();\n changes = true;\n }\n if (bufferImage != null)\n {\n controllerComponents.getAccount().setProfilePicture(bufferImage);\n updateProfilePictures();\n changes = true;\n }\n bufferImage = null;\n if (changes)\n {\n saveFeedbackLabel.setText(\"Changes saved.\");\n } else\n {\n saveFeedbackLabel.setText(\"You have not made any changes.\");\n }\n }", "public void saveSettings(View view){\n SharedPreferences.Editor editor = settings.edit();\n\n // Write the values from the views to the editor\n editor.putInt(\"vocablesNumber\",Integer.parseInt(vocablesNumber.getSelectedItem().toString()));\n editor.putBoolean(\"screenOn\", screenOnSwitch.isChecked());\n editor.putFloat(\"delayBetweenVocables\",Float.valueOf(editTextDelay.getText().toString()));\n // Commit the edits\n editor.commit();\n\n // Send the user a message of success\n Toast.makeText(Settings.this,\"Settings saved!\",Toast.LENGTH_SHORT).show();\n // Go back to previous activity\n finish();\n }", "@Override\n public void onClick(View view) {\n iPresenter.setUpSettingsModal(HomeActivity.this);\n }", "public interface SettingsEventHandler\n{\n\t/** record that a setting name was not provided when it was required */\n\tpublic void alarmOnMissingSetting(String settingName);\n\n\t/** record the use of the provided setting */\n\tpublic void recordUsedSettingAndValue(String settingName, Object value, String description);\n}", "@Override\r\n\tpublic void onNaviSetting() {\n\r\n\t}", "@Override\n public void onEvent(EventInterface e)\n {\n if (e.getTarget() instanceof Contacts || e.getTarget() instanceof Login) {\n try {\n settings.store();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n }", "public void openSettings() {\r\n \tIntent intent = new Intent(this, DetectorSettingsActivity.class);\r\n \tstartActivity(intent);\r\n }", "public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }", "private void setupSettingWindow()\n {\n setGUI.setWindowListener(new WindowListener() {\n @Override\n public void windowOpened(WindowEvent we) {\n }\n\n @Override\n public void windowClosing(WindowEvent we) {\n }\n\n @Override\n public void windowClosed(WindowEvent we) {\n player1Color = setGUI.getPlayer1Color();\n player2Color = setGUI.getPlayer2Color();\n }\n\n @Override\n public void windowIconified(WindowEvent we) {\n }\n\n @Override\n public void windowDeiconified(WindowEvent we) {\n }\n\n @Override\n public void windowActivated(WindowEvent we) {\n }\n\n @Override\n public void windowDeactivated(WindowEvent we) {\n }\n });\n }", "protected void showMineSettings() {\r\n settingsFrame.setLocation( scorePanel.getLocationOnScreen() );\r\n settingsFrame.setVisible( true );\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(Settings.ACTION_SETTINGS);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\thf.getSettings().setVisible(true);;\n\n\t}", "private static void changeSettings() {\n\t\t\n\t\tfinal Settings sett = config;\n\t\t\n\t\tfinal JDialog settingsDialog = new JDialog(frame, \"Change settings\");\n\t\t\n\t\tsettingsDialog.getContentPane().setLayout(new BorderLayout());\n\t\tsettingsDialog.setPreferredSize(new Dimension(350,150));\n\t\t\n\t\tJPanel settings = new JPanel();\n\t\tsettings.setLayout(new GridLayout(3,2));\n\t\t\n\t\tJLabel lblDB = new JLabel(\"Update DB dynamically\");\n\t\tJRadioButton rbDB = new JRadioButton();\n\t\trbDB.setSelected(sett.isUpdateDB());\n\t\trbDB.addItemListener(new ItemListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setUpdateDB(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setUpdateDB(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\t\t\n\t\tJLabel lblGUI = new JLabel(\"Use Graphical User Interface\");\n\t\tJRadioButton rbGUI = new JRadioButton();\n\t\trbGUI.setSelected(sett.isGUI());\n\t\trbGUI.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setGUI(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setGUI(false);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\tJLabel lblFile = new JLabel(\"Working file\");\n\t\tfinal JTextField tfFile = new JTextField(sett.getWorkingFile());\n\t\t\t\t\n\t\tsettings.add(lblDB);\n\t\tsettings.add(rbDB);\n\t\tsettings.add(lblGUI);\n\t\tsettings.add(rbGUI);\n\t\tsettings.add(lblFile);\n\t\tsettings.add(tfFile);\n\t\t\n\t\tJButton btnSave = new JButton(\"Save settings\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(!saved) {\n\t\t \t\tint option = JOptionPane.showOptionDialog(frame,\n\t\t \t\t\t\t\"Updating the settings will reset the application\\nThere are unsaved changes\\nDo you want to save them now?\",\n\t\t \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n\t\t \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n\t\t \t\tswitch(option) {\n\t\t \t\tcase 0:\n\t\t \t\t\ttoggleSaved(portfolio.save(WORKING_FILE));\n\t\t \t\tdefault:\n\t\t \t\t\tbreak; \t \t\t\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsett.setWorkingFile(tfFile.getText());\n\t\t\t\t\n\t\t\t\tsett.save();\n\t\t\t\tconfig = new Settings(sett);\n\t\t\t\tsettingsDialog.dispose();\n\t\t\t\t\n\t\t\t\tif(!sett.isGUI()){\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\texit = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!sett.isUpdateDB()){\n\t\t\t\t\tportfolio.init(config.getWorkingFile());\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION);\n\t\t\t\t\tbtnRestore.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tportfolio.initDB();\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION+\" ** Linked to Database **\");\n\t\t\t\t\tbtnRestore.setEnabled(false);\n\t\t\t\t}\n\t\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\t\tsel.init(portfolio);\n\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsettingsDialog.add(settings, BorderLayout.CENTER);\n\t\tsettingsDialog.add(btnSave, BorderLayout.PAGE_END);\n\t\t\n\t\tsettingsDialog.pack();\n\t\tsettingsDialog.setVisible(true);\t\n\t}", "@FXML\n\tprivate void onSaveBtn() {\n\t\tSettings settings = Settings.getSingleton();\n\t\t//Set rule setting\n\t\tif(ruleBox.getValue() == \"Standard\") {\n\t\t\tsettings.setRuleType(RuleType.STANDARD);\n\t\t} else {\n\t\t\tsettings.setRuleType(RuleType.CHALLENGE);\n\t\t}\n\t\t\n\t\t//Set number of walls setting\n\t\tsettings.setWalls(wallBox.getValue());\n\t\t//Set show label\n\t\tsettings.setShowLabels(indicateLabel.isSelected());\n\t\t//Set show ghost trails\n\t\t//settings.setShowTrail(ghostTrail.isSelected());\n\t\t\n\t\t//Set board height and width\n\t\tswitch(boardBox.getValue()) {\n\t\tcase \"7x7\":\n\t\t\tsettings.setBoardHeight(7);\n\t\t\tsettings.setBoardWidth(7);\t\t\t\n\t\t\tbreak;\n\t\tcase \"9x9\":\n\t\t\tsettings.setBoardHeight(9);\n\t\t\tsettings.setBoardWidth(9);\t\t\t\n\t\t\tbreak;\n\t\tcase \"11x11\":\n\t\t\tsettings.setBoardHeight(11);\n\t\t\tsettings.setBoardWidth(11);\t\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tsettings.setBoardHeight(9);\n\t\t\t\tsettings.setBoardWidth(9);\n\t\t\t\tbreak;\n\t\t}\n\t\t//Set tile size\n\t\tsettings.setTileSize(tileBox.getValue());\n\t}", "private void loadSettings(){\n SharedPreferences sharedPreferences = getActivity().getSharedPreferences(SHARED_PREF, Context.MODE_PRIVATE);\n notificationSwtich = sharedPreferences.getBoolean(SWITCH, false);\n reminderOnOff.setChecked(notificationSwtich);\n }", "public void showSettingsAlert(final int arg) {\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(getActivity());\n alertDialog.setTitle(\"GPS is settings\");\n alertDialog.setMessage(\"GPS is not enabled. Do you want to go to settings menu?\");\n alertDialog.setPositiveButton(\"Settings\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n getActivity().startActivityForResult(intent, arg);\n }\n });\n alertDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n return;\n }\n });\n alertDialog.show();\n }", "boolean setSettings(Settings sm);", "public void sendSettings()\n {\n Intent startSettings = new Intent(this, Main3Activity.class);\n startActivity(startSettings);\n }", "private void changeShowSettings(SelectionEvent event) {\r\n //System.out.println(\"Show settings shanged\");\r\n \r\n Set <ShowOption> currentlySelected = event.getAllSelectedItems();\r\n \r\n Set <ShowOption> unselected = new HashSet();\r\n unselected.addAll(previousShowOptions);\r\n unselected.removeAll(currentlySelected);\r\n \r\n Set <ShowOption> newlySelected = new HashSet();\r\n newlySelected.addAll(currentlySelected);\r\n newlySelected.removeAll(previousShowOptions);\r\n \r\n Set <ShowOption> changed = new HashSet();\r\n changed.addAll(newlySelected);\r\n changed.addAll(unselected);\r\n \r\n for (ShowOption showOption : changed) {\r\n showOptions.put(showOption, !showOptions.get(showOption));\r\n } \r\n \r\n \r\n// System.out.println(\"previously selected: \" + previousShowOptions);\r\n// System.out.println(\"unselected: \" + unselected);\r\n// System.out.println(\"newly selected: \" + newlySelected);\r\n //System.out.println(\"changed show options: \" + changed);\r\n \r\n //changeShowStatus(changed);\r\n \r\n // TODO: try with JS feedback\r\n //LoadingIndicator <String> loadingIndicator = new LoadingIndicator(\"Loading 3D views ...\");\r\n //getComponent().getUI().addWindow(loadingIndicator);\r\n sendPlotOptions();\r\n //loadingIndicator.close();\r\n \r\n // the option to show the bar chart is only enabled for the 2D view\r\n if (showOptions.get(ShowOption.THREE_D)) {\r\n showOptionsSelector.setItemEnabledProvider(item -> !item.equals(ShowOption.N));\r\n }\r\n else {\r\n showOptionsSelector.setItemEnabledProvider(item -> true);\r\n }\r\n \r\n previousShowOptions = showOptionsSelector.getValue();\r\n }", "public SettingsScreen getSettingsScreen() {\n return settingsScreen;\n }", "public void setSettings(Settings settings)\r\n\t{\r\n\t\tthis.settings = settings;\r\n\t}", "@Override\n public void onShowSettingsRequest(Context context) {\n Intent intent = new Intent(context, SettingsActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }", "public void notifyInvalidate() {\n firePropertyChange(\"settings changed!\", null, CatalogSettings.this);\n }", "public interface ISettingsPresenter {\n void onViewReady();\n\n void changeNotificationsState(boolean state);\n\n void changeActivityLogState(boolean state);\n\n void cleanActivityLogs();\n\n void changeContinuousLogin(boolean isEnabled);\n\n void changeWifiAutoLogin(boolean isEnabled);\n\n void changeIPAddress(String ipAddress);\n\n void changePort(String port);\n}", "@Override\n public void onClick(View v) {\n SettingDialog.show();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowSettingDialog();\n\t\t\t}", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tConfig.HisiSettingService = ServiceSettingsInfoAidl.Stub.asInterface(service);\n\t\t}", "public ThemeChangeListener(SettingsDialog settingsDialogView) {\n this.settingsDialogView = settingsDialogView;\n }", "void getSettings(ControlsSettings settings);", "void setSettings(ControlsSettings settings);", "public void openSettingsScreen(View view) {\n// Intent intent = new Intent(this, RnluSettingsScreen.class);\n Intent intent = new Intent(this, pl.hubertkarbowy.androidrnlu.config.SettingsActivity.class);\n// EditText editText = findViewById(R.id.nlInput);\n// String message = editText.getText().toString();\n// intent.putExtra(EXTRA_MESSAGE, message);\n startActivity(intent);\n }", "public SettingsPanel() {\n initComponents();\n }", "@Override\n public void onSuccess(SettingsModel settingsModel) {\n view.onSuccess(settingsModel);\n }", "protected void showSettingsChangedDialog() {\n new AlertDialog.Builder(getActivity())\n .setTitle(R.string.dialog_settings_changed_title)\n .setMessage(R.string.dialog_settings_changed_description)\n .setPositiveButton(android.R.string.yes, this)\n .setNegativeButton(android.R.string.no, this)\n .show();\n }", "public SettingsMenu(ChatWindow chatWindow)\n {\n super(Messages.getI18NString(\"settings\").getText());\n \n this.chatWindow = chatWindow;\n \n typingNotificationsItem.setName(\"typingNotifications\");\n sendingMessageCommandItem.setName(\"sendingMessageCommand\");\n autoPopupItem.setName(\"autopopup\");\n \n this.setMnemonic(Messages.getI18NString(\"settings\").getMnemonic());\n \n this.typingNotificationsItem.setMnemonic(\n typingNotifString.getMnemonic());\n \n this.sendingMessageCommandItem.setMnemonic(\n useCtrlEnterString.getMnemonic());\n \n this.autoPopupItem.setMnemonic(\n autoPopupString.getMnemonic());\n \n this.add(typingNotificationsItem);\n this.add(sendingMessageCommandItem);\n this.add(autoPopupItem);\n \n this.typingNotificationsItem.addActionListener(this);\n this.sendingMessageCommandItem.addActionListener(this);\n this.autoPopupItem.addActionListener(this);\n \n this.autoPopupItem.setSelected(\n ConfigurationManager.isAutoPopupNewMessage());\n \n this.typingNotificationsItem.setSelected(\n ConfigurationManager.isSendTypingNotifications());\n \n if(ConfigurationManager.getSendMessageCommand()\n == ConfigurationManager.ENTER_COMMAND) \n this.sendingMessageCommandItem.setSelected(true);\n else\n this.sendingMessageCommandItem.setSelected(false);\n \n }", "public void gotoSettings(View v){\n Intent settings;\n settings = new Intent(getBaseContext(),SettingsActivity.class);\n startActivity(settings);\n }", "@Override\n\t\t\tpublic void onClick(View view) {\n\n\t\t\t\tIntent myIntent = new Intent(view.getContext(), Settings.class);\n\t\t\t\tstartActivityForResult(myIntent, 0);\n\t\t\t}", "private void launchSettingsActivity() {\n\t\tIntent myIntent = new Intent(this,\n\t\t\t\tSettingsActivity.class);\n\n\t\tthis.startActivityForResult(myIntent,\n\t\t\t\tSettingsActivity.EDIT_SETTINGS_ID);\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(saveSettings()) {\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"设置保存成功\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tSettingsActivity.this.setResult(RESULT_SAVE_SUCCESS);\n\t\t\t\t\tSettingsActivity.this.finish();\n\t\t\t\t}\n\t\t\t}", "public void applySettings(View v) {\n // start connection to firebase\n db = new FirebaseHelper(userPreferences.getString(\"username\", null));\n\n // get settingsPreferences editor\n settingsEditor = settingsPreferences.edit();\n\n String pH_min_text = pHMin.getText().toString();\n float pH_min;\n if (!pH_min_text.isEmpty()) {\n pH_min = Float.parseFloat(pH_min_text);\n db.setPref(\"pH_min\", pH_min, getCompletionListener(\"pH_min\", pH_min));\n }\n else {\n db.removePref(\"pH_min\");\n settingsEditor.remove(\"pH_min\");\n settingsEditor.apply();\n }\n String pH_max_text = pHMax.getText().toString();\n float pH_max;\n if (!pH_max_text.isEmpty()) {\n pH_max = Float.parseFloat(pH_max_text);\n db.setPref(\"pH_max\", pH_max, getCompletionListener(\"pH_max\", pH_max));\n }\n else {\n db.removePref(\"pH_max\");\n settingsEditor.remove(\"pH_max\");\n settingsEditor.apply();\n }\n\n String orp_min_text = orpMin.getText().toString();\n int orp_min;\n if (!orp_min_text.isEmpty()) {\n orp_min = Integer.parseInt(orp_min_text);\n db.setPref(\"orp_min\", orp_min, getCompletionListener(\"orp_min\", orp_min));\n }\n else {\n db.removePref(\"orp_min\");\n settingsEditor.remove(\"orp_min\");\n settingsEditor.apply();\n }\n String orp_max_text = orpMax.getText().toString();\n int orp_max;\n if (!orp_max_text.isEmpty()) {\n orp_max = Integer.parseInt(orp_max_text);\n db.setPref(\"orp_max\", orp_max, getCompletionListener(\"orp_max\", orp_max));\n }\n else {\n db.removePref(\"orp_max\");\n settingsEditor.remove(\"orp_max\");\n settingsEditor.apply();\n }\n\n String turbidity_min_text = turbidityMin.getText().toString();\n float turbidity_min;\n if (!turbidity_min_text.isEmpty()) {\n turbidity_min = Float.parseFloat(turbidity_min_text);\n db.setPref(\"turbidity_min\", turbidity_min, getCompletionListener(\"turbidity_min\", turbidity_min));\n }\n else {\n db.removePref(\"turbidity_min\");\n settingsEditor.remove(\"turbidity_min\");\n settingsEditor.apply();\n }\n String turbidity_max_text = turbidityMax.getText().toString();\n float turbidity_max;\n if (!turbidity_max_text.isEmpty()) {\n turbidity_max = Float.parseFloat(turbidity_max_text);\n db.setPref(\"turbidity_max\", turbidity_max, getCompletionListener(\"turbidity_max\", turbidity_max));\n }\n else {\n db.removePref(\"turbidity_max\");\n settingsEditor.remove(\"turbidity_max\");\n settingsEditor.apply();\n }\n\n String temperature_min_text = temperatureMin.getText().toString();\n float temperature_min;\n if (!temperature_min_text.isEmpty()) {\n temperature_min = Float.parseFloat(temperature_min_text);\n db.setPref(\"temperature_min\", temperature_min, getCompletionListener(\"temperature_min\", temperature_min));\n }\n else {\n db.removePref(\"temperature_min\");\n settingsEditor.remove(\"temperature_min\");\n settingsEditor.apply();\n }\n String temperature_max_text = temperatureMax.getText().toString();\n float temperature_max;\n if (!temperature_max_text.isEmpty()) {\n temperature_max = Float.parseFloat(temperature_max_text);\n db.setPref(\"temperature_max\", temperature_max, getCompletionListener(\"temperature_max\", temperature_max));\n }\n else {\n db.removePref(\"temperature_max\");\n settingsEditor.remove(\"temperature_max\");\n settingsEditor.apply();\n }\n finish();\n }", "void addListener(\n ReaderSettingsListenerType l);", "private void onSettingClickEvent() {\n\t\tmBtnSetting.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\n//\t\t\t\tLog.d(TAG, \"onSettingClickEvent\");\n//\t\t\t\topenOptionsMenu();\n\t\t\t\tConfiguration config = getResources().getConfiguration();\n\t\t\t\tif ((config.screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) > Configuration.SCREENLAYOUT_SIZE_LARGE) {\n\t\t\t\t\tint originalScreenLayout = config.screenLayout;\n\t\t\t\t\tconfig.screenLayout = Configuration.SCREENLAYOUT_SIZE_LARGE;\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t\tconfig.screenLayout = originalScreenLayout;\n\t\t\t\t} else {\n\t\t\t\t\topenOptionsMenu();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}", "@Override\n public boolean apply(WallpaperService.SettingsSelection s) {\n if (s.key.equals(\"start\")) {\n //User set the start from value in the wallpaper settings.\n userConfiguration.setValue(Integer.parseInt(s.prefs.getString(s.key, \"0\")));\n } else if (s.key.equals(\"theme\")) {\n //User set the color theme.\n String theme = s.prefs.getString(s.key, \"Light\");\n if (theme.equals(\"Light\")) {\n Paint p = new Paint();\n p.setColor(Color.WHITE);\n p.setTextSize(40f);\n userConfiguration.getPaintMap().put(UserConfiguration.FOREGROUND_PAINT_KEY, p);\n p = new Paint();\n p.setColor(Color.BLUE);\n userConfiguration.getPaintMap().put(UserConfiguration.BACKGROUND_PAINT_KEY, p);\n } else if (theme.equals(\"Dark\")) {\n Paint p = new Paint();\n p.setColor(Color.BLACK);\n p.setTextSize(40f);\n userConfiguration.getPaintMap().put(UserConfiguration.FOREGROUND_PAINT_KEY, p);\n p = new Paint();\n p.setColor(Color.YELLOW);\n userConfiguration.getPaintMap().put(UserConfiguration.BACKGROUND_PAINT_KEY, p);\n } else {\n throw new IllegalArgumentException(\"Unknown theme string. Check settings.xml\");\n }\n } else if (s.key.equals(\"speed\")) {\n //User set the speed.\n String speed = s.prefs.getString(s.key, \"Slow\");\n if (speed.equals(\"Slow\")) {\n userConfiguration.setFrameDelayMillis(250);\n } else if (speed.equals(\"Fast\")) {\n userConfiguration.setFrameDelayMillis(50);\n } else {\n throw new IllegalArgumentException(\"Unknown settings key. Check settings.xml.\");\n }\n } else {\n throw new IllegalArgumentException(\"Unknown settings key. Check settings.xml.\");\n }\n\n return true;\n }", "public void showSettingsAlert() {\r\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(mContext);\r\n alertDialog.setTitle(mContext.getResources().getString(R.string.gps_settings_title));\r\n alertDialog.setMessage(mContext.getResources().getString(R.string.gps_settings_body));\r\n alertDialog.setCancelable(false);\r\n alertDialog.setPositiveButton(mContext.getResources().getString(R.string.action_settings), new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int which) {\r\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\r\n ((Activity) mContext).startActivityForResult(intent, REQUEST_LOCATION_CODE);\r\n }\r\n });\r\n alertDialog.show();\r\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int paramInt) {\n Intent intent = new Intent(Settings.ACTION_SETTINGS);\n context.startActivity(intent);\n }", "@Override\n protected void initSettings (GameSettings settings) {\n settings.setWidth(15 * 70);\n settings.setHeight(10* 70);\n settings.setVersion(\"0.1\");\n settings.setTitle(\"Platformer Game\");\n settings.setMenuEnabled(true);\n settings.setMenuKey(KeyCode.ESCAPE);\n }", "@FXML\n private void settingsClick(){\n mainContainer.getChildren().setAll(settings);\n }", "@Override\n public boolean onPreferenceClick(Preference preference) {\n final Intent intent = new Intent(Settings.ACTION_APN_SETTINGS);\n // This will setup the Home and Search affordance\n intent.putExtra(\":settings:show_fragment_as_subsetting\", true);\n mPrefActivity.startActivity(intent);\n return true;\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.permission));\n builder.setMessage(getString(R.string.setting_permission));\n builder.setPositiveButton(getString(R.string.go_setting), (dialog, which) -> {\n dialog.cancel();\n openSettings();\n });\n builder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> dialog.cancel());\n builder.show();\n\n }", "@Override // ListSubMenu.Listener IMPL\t\t&& TimeIntervalPopup.Listener IMPL \n // Hit when an item in the second-level popup gets selected\n public void onListPrefChanged(ListPreference pref) {\n onSettingChanged(pref);\n //closeView();\n }", "private void showSettingsDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(Ter.this);\n builder.setTitle(\"Need Permissions\");\n builder.setMessage(\"This app needs permission to use this feature. You can grant them in app settings.\");\n builder.setPositiveButton(\"GOTO SETTINGS\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n openSettings();\n }\n });\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n builder.show();\n\n }" ]
[ "0.7000089", "0.69991416", "0.6979723", "0.6768579", "0.6666675", "0.6652942", "0.66336584", "0.6606464", "0.65013254", "0.6462445", "0.6427827", "0.6400448", "0.6392165", "0.63794047", "0.6375452", "0.63632846", "0.6347876", "0.6307841", "0.6290985", "0.62638885", "0.6258209", "0.6241526", "0.62324905", "0.6214527", "0.61816", "0.6171564", "0.61570853", "0.61268854", "0.6055388", "0.6018987", "0.60177433", "0.5972592", "0.59687924", "0.5967961", "0.5966465", "0.5952897", "0.59469485", "0.59464365", "0.59442943", "0.5922517", "0.59219325", "0.5919821", "0.5919612", "0.5898733", "0.58962685", "0.5892356", "0.5885722", "0.58494896", "0.58483756", "0.58334965", "0.5831103", "0.58307207", "0.5829604", "0.5809308", "0.58085847", "0.5807814", "0.58074695", "0.58073616", "0.5805465", "0.5800435", "0.5777698", "0.5777499", "0.57600987", "0.5748635", "0.5747644", "0.57373387", "0.5726984", "0.5715319", "0.5713837", "0.5707572", "0.5704581", "0.57012004", "0.56928825", "0.56833863", "0.56809694", "0.56780535", "0.5671307", "0.56707233", "0.56680727", "0.56539005", "0.5644528", "0.56384796", "0.56280583", "0.5624611", "0.5620393", "0.56174296", "0.5615711", "0.56151694", "0.55976015", "0.5593772", "0.55872035", "0.55864304", "0.5586357", "0.55823827", "0.55732995", "0.55709255", "0.5570294", "0.55659086", "0.5565636", "0.55598414", "0.5555886" ]
0.0
-1
/ Check and seed only initially
@Override public void seedBooks() throws IOException { if (this.bookRepository.count() > 0) { return; } String[] lines = this.readFileUtil.read(BOOKS_FILE_RELATIVE_PATH); for (int i = 0; i < lines.length; i++) { /* Get args */ String[] args = lines[i].split("\\s+"); /* Get edition type */ EditionType editionType = EditionType.values()[Integer.parseInt(args[0])]; /* Get release date */ LocalDate releaseDate = localDateUtil.parseByPattern("d/M/yyyy", args[1]); /* Get copies */ long copies = Long.parseLong(args[2]); /* Get price */ BigDecimal price = new BigDecimal(args[3]); /* Get age restriction */ AgeRestriction ageRestriction = AgeRestriction.values()[Integer.parseInt(args[4])]; /* Get title */ String title = Arrays.stream(args).skip(5).collect(Collectors.joining(" ")); /* Get author */ Author randomAuthor = this.randomAuthorUtil.getRandom(); /* Get categories */ Set<Category> randomCategories = this.randomCategoriesUtil.getRandom(); /* Create book */ Book book = new Book(ageRestriction, copies, editionType, price, releaseDate, title, randomAuthor); book.setCategories(randomCategories); /* Save the book */ this.bookRepository.saveAndFlush(book); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void reseed();", "public void seed(long seed) {\n }", "public void setSeed(int seed){\n this.seed = seed; \n }", "@Before\n public void setUp() {\n randSeeder = new Random(42);\n\n //Show we haven't seeded the test's random number generator\n randSeed = RAND_UNSEEDED;\n comp = IntPlus.getIntComparator();\n }", "void new_seed( Seed seed );", "protected void initializeExecutionRandomness() {\r\n\r\n\t}", "public void initialize() {\n\t\tinitialize(seedValue0, seedValue1);\n\t}", "public int getSeed(){\n return this.seed; \n }", "Seed(){\r\n seedCells = new ArrayList<>();\r\n edgeCells = new ArrayList<>();\r\n }", "public Seed() {\r\n\t\tcards = new Cards();\r\n\t\tseedCards = new ArrayList<Cards>();\r\n\t\tdescription = \"\";\r\n\t\tautoSummary = \"\";\r\n\t}", "void setSeed(long seed);", "void seed() {\n for (int j = 0; j <= sentLen - 1; j++) {\n if (pGrammar.hasRuleForSpan(j, j, input.distance(j, j))) {\n if (null == pGrammar.getTrieRoot()) {\n throw new RuntimeException(\"trie root is null\");\n }\n addDotItem(pGrammar.getTrieRoot(), j, j, null, null, new SourcePath());\n }\n }\n }", "@Test\n public void randomSeedNumTest()\n {\n int x = _city.getRandomNum(5);\n int y = _city.getRandomNum(5);\n assertEquals(x, y);\n }", "@Override\n public boolean onBackPreseed() {\n return false;\n }", "public void premesaj() {\r\n Collections.shuffle(kup);\r\n }", "private void random() {\n\n\t}", "public static long getSeed() {\r\n return seed;\r\n }", "public int getSeed() {\r\n return seed;\r\n }", "public static void seed() {\n\n // Get locations, employees, and custodians from database.\n ArrayList<Location> locations = new ArrayList(LocationTable.getLocations().values());\n ArrayList<User> employees = UserTable.getEmployees();\n ArrayList<User> custodians = UserTable.getCustodians();\n\n // Generate random sanitation requests\n Random rand = new Random();\n final int numEntries = 30;\n for (int i = 0; i < numEntries; i++) {\n\n // Generate location (uniform)\n Location location = locations.get(rand.nextInt(locations.size()));\n\n // Generate priority (uniform)\n Priority priority;\n switch (rand.nextInt(3)) {\n case 0: priority = Priority.HIGH; break;\n case 1: priority = Priority.MEDIUM; break;\n default: priority = Priority.LOW; break;\n }\n\n // Generate requester\n User requester = employees.get(rand.nextInt(employees.size()));\n\n // Generate request time (uniform current time + ~12 hours)\n Timestamp requestTime = new Timestamp(\n new Date().getTime() + rand.nextInt(43200000));\n\n // Generate description\n String description;\n switch (rand.nextInt(3)) {\n case 0: description = \"Drink spill\";\n case 1: description = \"Vomit\";\n default: description = \"Radioactive waste\";\n }\n\n // Add request to database\n SanitationRequest request = new SanitationRequest(\n 0, location, priority, Status.INCOMPLETE, description,\n requester, requestTime,\n null, null, null);\n\n // Mark 2/3 of requests as claimed\n int claimFlag = rand.nextInt(3);\n if (claimFlag > 0) {\n\n // Mark as claimed within 1 hour of request\n User servicer = custodians.get(rand.nextInt(custodians.size()));\n Timestamp claimedTime = new Timestamp(\n requestTime.getTime() + rand.nextInt(3600000));\n request.setServicer(servicer);\n request.setClaimedTime(claimedTime);\n\n // Mark half of claimed requests as completed within 2 hours of claim\n if (claimFlag == 2) {\n Timestamp completedTime = new Timestamp(\n claimedTime.getTime() + rand.nextInt(7200000));\n request.setCompletedTime(completedTime);\n request.setStatus(Status.COMPLETE);\n }\n\n // Update request in database\n editSanitationRequest(request);\n }\n\n // Add request to database\n addSanitationRequest(request);\n }\n }", "@Test\n public void sanityTest() {\n Random random = new Random(0);\n long long1 = random.nextLong();\n long long2 = random.nextLong();\n long long3 = random.nextLong();\n assertEquals(RandomConstants.LONG_1_WITH_SEED_0, long1);\n assertEquals(RandomConstants.LONG_2_WITH_SEED_0, long2);\n assertEquals(RandomConstants.LONG_3_WITH_SEED_0, long3);\n }", "@Test\n\tpublic void testUpdatesSeeds() {\n\t\t//Arrange\n\t\tint startLoc[] = new int[]{2};\n\t\tint otherLocs[] = new int[]{0,1,3,4};\n\t\t\t\n\t\tMockito.when(randMock.generateRandomNumber(1, 4, seed)).thenReturn(startLoc);\n\t\tMockito.when(randMock.generateRandomNumber(10, 5, seed+1)).thenReturn(otherLocs);\n\t\t\t\n\t\t//Act\n\t\tlong seed = 2;\n\t\t\t\n\t\t//Assert\n\t\tassertEquals(seed, iteratorObj.startVisits());\n\t}", "String getSeed();", "@Override\n protected void engineSetSeed(byte[] seed) {\n return;\n }", "public int getSeed() {\n return seed;\n }", "public int getSeed() {\n return seed;\n }", "void reset(int randomseed);", "private static void init() {\n\t\tguess = 0;\n\t\ttries = 10;\n\t\tlen = Random.getRand(4, 8);\n\t\tcorrectGuesses = 0;\n\t\twordGen = new RandomWordGenerator(len);\n\t\twordGen.generate();\n\t\tword = wordGen.getWord();\n\t\tguessesResult = new boolean[word.length()];\n\n\t}", "private void preGenerate() {\n if (specState.randomSeed) {\n long seed = random.nextLong();\n runOnUiThread(() -> seedInput.setText(getString(R.string.integer, seed)));\n }\n\n if (specState.randomColor) {\n runOnUiThread(() -> {\n hueInput.setProgress(random.nextInt(256));\n saturationInput.setProgress(random.nextInt(256));\n valueInput.setProgress(random.nextInt(256));\n });\n }\n\n updateSpecs(specState);\n updateColorPreview();\n\n if (specState.targetWidth != sprite.getWidth() || specState.targetHeight != sprite.getHeight()) {\n recreateBitmap();\n }\n }", "@Test public void testStillLife() throws Exception {\n int[][] boat =\n {{0, 0, 0, 0, 0}, {0, 1, 1, 0, 0}, {0, 1, 0, 1, 0}, {0, 0, 1, 0, 0}, {0, 0, 0, 0, 0}};\n\n GameOfLife gameOfLife = createGame();\n\n gameOfLife.seed(boat);\n Assert.assertArrayEquals(boat, gameOfLife.next());\n Assert.assertArrayEquals(boat, gameOfLife.next());\n }", "@Override\n public boolean run() {\n return new Random().nextBoolean();\n }", "public boolean isSeed() {\r\n\t\treturn isSeed;\r\n\t}", "private void random() {\n GameState gs = cc.getGameState();\n ArrayList<int[]> moves = cc.getPlayerMoves(player);\n ArrayList<GameState> states = nextStates(moves, gs);\n for (int[] m : moves) {\n GameState next = checkMove(m, cc);\n states.add(next);\n }\n Random rand = new Random(System.nanoTime());\n int i = rand.nextInt(states.size());\n cc.setAIMove(states.get(i));\n }", "public InternalExternalTour(long seed){\n\t\t\n\t\trandom = new MersenneTwister(seed);\n\t}", "public long getSeed() {\n return seed;\n }", "void setSeed(final long seed);", "public Mazealgo() {\n Random number = new Random();\n long i = number.nextLong();\n this.random = new Random(i);\n this.seed = i;\n }", "public void setSeed(String seed) \n\t{\n\t}", "public long getSeed()\n {\n return randomSeed;\n }", "public static int randomNext() { return 0; }", "private void loadRandomState() {\n patternName = \"Random\";\n\n for (int i = 0; i < NUMCELLS; i++)\n currentState[i] = (rand.nextInt() > 0x40000000) ? (byte)1 : (byte)0;\n\n generations = 0;\n }", "@Override\n public void setSeed(final int seed) {\n int counterMask = 3;\n int[] status = new int[4];\n status[0] = seed;\n status[1] = parameter.getMat1();\n status[2] = parameter.getMat2();\n status[3] = parameter.getTmat();\n for (int i = 1; i < MIN_LOOP; i++) {\n status[i & counterMask] ^= i + MAGIC_NUMBER3\n * (status[(i - 1) & counterMask]\n ^ (status[(i - 1) & counterMask]\n >>> INITIALIZE_SHIFT2));\n }\n st0 = status[0];\n st1 = status[1];\n st2 = status[2];\n st3 = status[3];\n periodCertification();\n for (int i = 0; i < MIN_LOOP; i++) {\n nextState();\n }\n clear();\n }", "public final void randomSeed(long what){\n\t\tsetSeed(what);\n\t\trandom();\n\t}", "@BeforeEach\n void setUp() {\n seed = new Random().nextInt();\n random = new Random().nextInt();\n rng = new Random(seed);\n int strSize = rng.nextInt(20);\n hello = RandomStringUtils.random(strSize, 0, Character.MAX_CODE_POINT, true, false, null, rng);\n int binarySize = rng.nextInt(20)+1;\n binary = RandomStringUtils.random(binarySize, ZeroOne);\n st = new TString(hello);\n bot = new Bool(true);\n bof = new Bool(false);\n bi = new Binary(binary);\n i = new Int(seed); //seed is a random number\n decimal = seed+0.1; //transformed to double\n f = new Float(decimal);\n g = new Float(random);\n j = new Int(random);\n Null = new NullType();\n }", "private void checkSeeds() {\n\t\t//proceed on mainloop 1 second intervals if we're a seed and we want to force disconnects\n\t\tif ((mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL) != 0)\n\t\t\treturn;\n\n\t\tif (!disconnect_seeds_when_seeding ){\n\t\t\treturn;\n\t\t}\n\n\t\tArrayList to_close = null;\n\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i = 0; i < peer_transports.size(); i++) {\n\t\t\tfinal PEPeerTransport pc = (PEPeerTransport) peer_transports.get(i);\n\n\t\t\tif (pc != null && pc.getPeerState() == PEPeer.TRANSFERING && ((isSeeding() && pc.isSeed()) || pc.isRelativeSeed())) {\n\t\t\t\tif( to_close == null ) to_close = new ArrayList();\n\t\t\t\tto_close.add( pc );\n\t\t\t}\n\t\t}\n\n\t\tif( to_close != null ) {\t\t\n\t\t\tfor( int i=0; i < to_close.size(); i++ ) { \t\t\t\n\t\t\t\tcloseAndRemovePeer( (PEPeerTransport)to_close.get(i), \"disconnect other seed when seeding\", false );\n\t\t\t}\n\t\t}\n\t}", "public StressChange(long seed) {\n super(seed);\n }", "public boolean initNewPassword(){\n \tlong[] seeds = mVehicleBluetooth.setPasswordRandom();\n \tlong time = Calendar.getInstance(//timezone UTC?\n \t\t\t).getTimeInMillis();\n \t\n \tMersenneTwister64 mt64 = new MersenneTwister64();\n \t\n \tmt64.setSeed(seeds);\n \t\n \tlong[] state = mt64.getState();\n \t\n\t\ttry {\n\t\t\tbyte[][] seedCypherText = VehicleSecurity.encrypt(seeds, aesKey);\n\t \tmDatabase.updateSeeds(currentVehicle, seedCypherText, time - (MILLIS_BETWEEN_ROLLOVER*2));\n\t \t\n\t \tbyte[][] stateCypherText = VehicleSecurity.encrypt(state, aesKey);\n\t \tmDatabase.updateState(currentVehicle, stateCypherText, time - (MILLIS_BETWEEN_ROLLOVER*2));\n\t \t\n\t \treloadPasswordStore();\n\t \t\n\t\t} catch (Exception e) {\n\t\t\tLog.v(TAG, \"Encrypt failed on init seeds and reload PW store\");\n\t\t\te.printStackTrace();\n\t\t}\n \t\n \treturn true;\n }", "@Before\n public void init() {\n pool=ShardedJedisSentinelPoolSinglton.getPool();\n }", "private static boolean toAllocateOrDeallocate() {\n return random.nextInt() % 2 == 0;\n\n }", "public void setRNG(long seed);", "public void setSeed(Square.State seed) {\n this.mySeed = seed;\n oppSeed = (mySeed == Square.State.CROSS) ? Square.State.NOUGHT : Square.State.CROSS;\n }", "private PRNG() {\n java.util.Random r = new java.util.Random();\n seed = r.nextInt();\n mersenne = new MersenneTwister(seed);\n }", "public static void randomInit(int r) { }", "public boolean randomCreate() {\n\t\t// Generates a random genetic code\n\t\t_geneticCode = new GeneticCode();\n\t\t// it has no parent\n\t\t_parentID = -1;\n\t\t_generation = 1;\n\t\t_growthRatio = 16;\n\t\t// initial energy\n\t\t_energy = Math.min(Utils.INITIAL_ENERGY,_world.getCO2());\n\t\t_world.decreaseCO2(_energy);\n\t\t_world.addO2(_energy);\n\t\t// initialize\n\t\tcreate();\n\t\tsymmetric();\n\t\t// put it in the world\n\t\treturn placeRandom();\n\t}", "public boolean initialize() {\n return reset();\n }", "public void setSeed(int seed) {\r\n this.seed = seed;\r\n }", "public final void seed(int s0, int s1, int s2)\r\n {\r\n d0 = s0;\r\n d1 = s1;\r\n d2 = s2;\r\n i = 0;\r\n }", "private RandomData() {\n initFields();\n }", "public Mazealgo(long seed) {\n this.seed = seed;\n this.random = new Random(seed);\n }", "SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\n }", "@Test\n public void testPlaceFirstRandomChecker()\n {\n Move initialMove = player1.generateRandomMove();\n \n int x= initialMove.getX();\n int y = initialMove.getY();\n \n // Checks if the Random Move is in range\n assertTrue(x < game.getHeight());\n assertTrue(y < game.getWidth());\n \n \n // Checks The Random Move has been Made\n assertNotNull(game.getBoard()[x][y]);\n \n // Check owner of Checker is Random Player\n Checker c = game.getBoard()[x][y];\n assertEquals(player1,c.getOwner());\n assertEquals(1,c.getValue());\n }", "public TrollGame (int seed){\n rand = new Random(seed);\n initBoard(ROWS, COLS, rand);\n }", "@Override\r\n\tpublic void initialize() {\n\t\tRandom randomGenerator = new Random();\r\n\t\tthis.size = Helper.getRandomInRange(1, 9, randomGenerator);\r\n\t\tif (this.size % 2 == 0)\r\n\t\t\tthis.size--;\r\n\t}", "public long getSeed(){\n\t\treturn this.seed;\n\t}", "public long getSeed() {\n\t\treturn seed;\n\t}", "@Test\n\tpublic void testVerifyExistenceOfRoleSeedData() {\n\n\t\tfinal List<Role> roles = roleDao.getAll();\n\n\t\tboolean managerRoleFound = false;\n\t\tboolean adminRoleFound = false;\n\n\t\tfor (final Role role : roles) {\n\n\t\t\tif (Roles.ADMIN.name().equals(role.getName())) {\n\t\t\t\tadminRoleFound = true;\n\t\t\t} else if (Roles.MANAGER.name().equals(role.getName())) {\n\t\t\t\tmanagerRoleFound = true;\n\t\t\t}\n\n\t\t}\n\n\t\tAssert.assertTrue(\"Expected the manager role. Is seed data populated?\", managerRoleFound);\n\t\tAssert.assertTrue(\"Expected the admin role. Is seed data populated?\", adminRoleFound);\n\t}", "public void setSeed(int seed){\n\t\tmyRandom = new Random(seed);\n\t}", "private void warSeed(Player player) {\n\t\t\n\t}", "@Override\n\tpublic boolean deterministic() {\n\t\treturn true;\n\t}", "public void initialize()\n {\n if (!this.seedInitialized)\n {\n throw new IllegalStateException(\"Seed \" + this.maxHeight + \" not initialized\");\n }\n\n this.heightOfNodes = new Vector();\n this.tailLength = 0;\n this.firstNode = null;\n this.firstNodeHeight = -1;\n this.isInitialized = true;\n System.arraycopy(this.seedNext, 0, this.seedActive, 0, messDigestTree\n .getDigestSize());\n }", "void mosaic(int seed);", "private void initState() {\r\n double metaintensity=0;\r\n double diffr=0;\r\n for(int ii=0; ii < Config.numberOfSeeds; ii++)\r\n {\r\n Cur_state[ii] = this.seeds[ii].getDurationMilliSec();\r\n// Zeit2 = this.seeds[1].getDurationMilliSec();\r\n// Zeit3 = this.seeds[2].getDurationMilliSec();\r\n// LogTool.print(\"Zeit 1 : \" + Zeit1 + \"Zeit 2 : \" + Zeit2 + \"Zeit 3 : \" + Zeit3, \"notification\");\r\n// LogTool.print(\"initState: Dwelltime Seed \" + ii + \" : \" + Cur_state[ii], \"notification\");\r\n// Cur_state[0] = Zeit1;\r\n// Cur_state[1] = Zeit2;\r\n// Cur_state[2] = Zeit3;\r\n }\r\n \r\n if ((Config.SACostFunctionType==3)||(Config.SACostFunctionType==1)) {\r\n for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) {\r\n for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n// this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity; \r\n// Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n } else {\r\n \r\n // for(int x=Config.ptvXLow-0; x < Config.ptvXHigh+0; x++) {\r\n// for(int x=Solver.xBoundsTumor[0]; x < Solver.xBoundsTumor[1]; x+= Config.scaleFactor) { \r\n for(int x=0; x < Solver.dimensions[0]; x+= Config.scaleFactor) {\r\n // for(int y=Config.ptvYLow-0; y < Config.ptvYHigh+0; y++) {\r\n// for(int y=Solver.yBoundsTumor[0]; y < Solver.yBoundsTumor[1]; y+= Config.scaleFactor) {\r\n for(int y=0; y < Solver.dimensions[1]; y+= Config.scaleFactor) {\r\n // for(int z=Config.ptvZLow-0; z < Config.ptvZHigh+0; z++) {\r\n// for(int z=Solver.zBoundsTumor[0]; z < Solver.zBoundsTumor[1]; z+= Config.scaleFactor) {\r\n for(int z=0; z < Solver.dimensions[2]; z+= Config.scaleFactor) {\r\n // this.body2[x][y][z].setCurrentDosis(0.0); //Set currentPtvVoxel Dose to 0 \r\n this.body2[x][y][z].metavalue = 0.0;\r\n for(int i=0; i<Config.numberOfSeeds;++i) { \r\n // Calculate intensity based based on current dwelltime\r\n metaintensity = this.body2[x][y][z].radiationIntensityNoTime((this.seeds2[i].getCoordinate()));\r\n // radiationIntensityNoTime(this.seeds2[i].getCoordinate(), New_state[i]);\r\n if (metaintensity>0) {\r\n // LogTool.print(\"Cost: Intensity :\" + intensity + \"@ \" + x + \" \" + y + \" \" + z,\"notification\");\r\n }\r\n // this.body2[x][y][z].addCurrentDosis(metaintensity);\r\n this.body2[x][y][z].metavalue += metaintensity;\r\n this.body[x][y][z].metavalue = 0; \r\n this.body[x][y][z].metavalue += this.body2[x][y][z].metavalue;\r\n // Das ist implementation one\r\n } \r\n } \r\n }\r\n }\r\n// this.body = this.body2;\r\n diffr = ((this.body[43][43][43].metavalue)-(this.body2[43][43][43].metavalue));\r\n LogTool.print(\"Shallowcopy Check, value should be 0 :\" + diffr + \"@ 43,43,43 \",\"notification\");\r\n }\r\n }", "public long getSeed()\r\n {\r\n return this.randomSeed;\r\n }", "@Before\r\n public void setUp() {\r\n for (byte i = 0; i < length; i++) {\r\n cellToCheckAlive[i] = (byte) (64 + i);\r\n cellToCheckDead[i] = i;\r\n }\r\n }", "@Override\r\n protected void tearDown()\r\n {\r\n seed = null;\r\n island = null;\r\n position = null;\r\n }", "private void randomizeEnvironment() {\n }", "public void reproduce() {\n if (getSelfCount() >= getMinMates() && getLocation()\n .getEmptyCount() >= getMinEmpty()\n && getFoodCount() >= getMinFood() && dayCountDown != 0) {\n int index = RandomGenerator.nextNumber(getLocation()\n .getEmptyCount());\n Cell selectedCell = getLocation().getEmptyArray().get(index);\n createLife(selectedCell).init();\n \n }\n \n }", "private void setRand(){\n rand = generator.nextInt(9) + 1;\n }", "public FlipCoin(int seed){\n this.rander = new Random(seed);\n }", "public CellularAutomatonRNG()\n {\n this(DefaultSeedGenerator.getInstance().generateSeed(SEED_SIZE_BYTES));\n }", "public byte[] newSeed() {\r\n return engineSpi.newSeed();\r\n }", "public void initWorldGenSeed(long p_75905_1_) {\n/* 99 */ this.worldGenSeed = p_75905_1_;\n/* */ \n/* 101 */ if (this.parent != null)\n/* */ {\n/* 103 */ this.parent.initWorldGenSeed(p_75905_1_);\n/* */ }\n/* */ \n/* 106 */ this.worldGenSeed *= (this.worldGenSeed * 6364136223846793005L + 1442695040888963407L);\n/* 107 */ this.worldGenSeed += this.baseSeed;\n/* 108 */ this.worldGenSeed *= (this.worldGenSeed * 6364136223846793005L + 1442695040888963407L);\n/* 109 */ this.worldGenSeed += this.baseSeed;\n/* 110 */ this.worldGenSeed *= (this.worldGenSeed * 6364136223846793005L + 1442695040888963407L);\n/* 111 */ this.worldGenSeed += this.baseSeed;\n/* */ }", "public void initialize(long seed0, long seed1) {\n\t\tbytesDigested = 0;\n\t\tbyteCount = 0;\n\t\thashState[0] = seed0;\n\t\thashState[1] = seed1;\n\t}", "public interface RandomSeed {\n\n\t/**\n\t * @return Uma semente randomica entre 0 e 1 inclusive.\n\t */\n\tpublic double getSeed();\n}", "protected void reInitialize() {\n resetCurrent();\n incrementIterCount();\n setFirst(true);\n recoverRunningVersion();\n }", "Boolean getRandomize();", "private static void mineInitialization(){\n\t\tfor (int m = 0; m < BOARD_SIZE; m++)\n\t\t{\n\t\t\tmX = RNG.nextInt(BOARD_SIZE);\n\t\t\tmY = RNG.nextInt(BOARD_SIZE);\n\t\t\tif(gameBoard[mX][mY].equals(Spaces.Empty))\n\t\t\t{\n\t\t\t\tgameBoard[mX][mY] = Spaces.Mine;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tm--;\n\t\t\t}\n\t\t}\n\t}", "public int getSeed()\n {\n return map.getSeed();\n }", "public abstract boolean deterministic () ;", "private void assuerNN_random() {\n //Check, if the variable is null..\n if (this.random == null) {\n //..and now create it.\n this.random = new Random(10);\n }\n }", "void init() {\r\n \tfor (int i=0; i<SIZE; i++) {\r\n \t\tfor (int j=0; j<LEN; j++) {\r\n \t\t\tif (rnd.nextDouble() < 0.5)\r\n \t\t\t\toldpop[i][j] = 0;\r\n \t\t\telse\r\n \t\t\t\toldpop[i][j] = 1;\r\n \t\t}\r\n \t}\r\n \tfor (int j=0; j<LEN; j++) {\r\n \t\tcbest[j] = oldpop[0][j];\r\n \t}\r\n\t\tbest = fitness(0);\r\n }", "protected void reset(){\n inited = false;\n }", "private void initConfiguration() {\n\t\tseedList = new ArrayList<String>();\n\t\t// TODO: add other initialization here...\n\t}", "@Before\n public void setUp() throws Exception {\n solution2.count = 0;\n solution4.map.clear();\n }", "protected Supplier<Set<Entity>> getSeedSupplier() {\n return defaultSeedSupplier;\n }", "public static void setSeed(long s) {\r\n seed = s;\r\n random = new Random(seed);\r\n }", "public WB_RandomPoint setSeed(final long seed);", "public static void setSeed( long seed ) {\n random = new Random( seed );\n }", "private void createSeed(Element temp) {\n\n Seed seed = new Seed();\n for(int i = 0; i < temp.getAttributeCount(); i++) { //same principle as createGrape\n Attribute attribute = temp.getAttribute(i);\n String name = attribute.getQualifiedName();\n String value = attribute.getValue();\n\n switch (name) {\n case (\"name\"):\n seed.setId(value);\n break;\n\n case (\"type\"):\n try {\n seed.setSeedClass(Class.forName(\"Examples.\"+value));\n } catch (ReflectiveOperationException e) {\n Class className = this.isPrimitive(value);\n if(className == null)\n e.printStackTrace();\n else\n seed.setSeedClass(className);\n }\n break;\n\n case(\"constructor\"):\n seed.setIsConstructor(Boolean.valueOf(value));\n break;\n\n case (\"isReferenced\"):\n seed.setRef(Boolean.valueOf(value)); //TODO considerar que se hace si es true\n break;\n\n case (\"value\"):\n if(seed.getSeedClass() != null) {\n if(seed.isRef()){//Debo saber si meter un objeto o un valor\n String k =seed.getSeedClass().getSimpleName();\n Object h = singletonGrapes.get(k);\n if(h==null){\n h = this.isPrimitive(seed.getSeedClass().getSimpleName());\n }\n seed.setValue(h);\n }else{\n seed.setValue(value);\n }\n } else {\n System.err.print(\"Objects.Seed parameters not in correct order. Type should be before values.\");\n }\n break;\n\n default:\n System.err.print(\"Invalid parameter \" + name);\n break;\n }\n }\n\n Element parent = (Element) temp.getParent();\n Grape parentGrape = grapes.get(parent.getAttributeValue(\"id\"));\n super.dependencies.computeIfAbsent(parentGrape.getId(), V-> new LinkedList<>());\n super.dependencies.get(parentGrape.getId()).add(seed); //map should store seeds that belong to the same grape TODO revisar estructura\n\n if(seed.isConstructor())\n buildWithConstructors(parentGrape.getId());\n else\n buildWithSetters(parentGrape.getId());\n }", "private boolean isConstantSeedForAllIterations(Method method) {\n if (testCaseRandomnessOverride != null)\n return true;\n \n Repeat repeat;\n if ((repeat = method.getAnnotation(Repeat.class)) != null) {\n return repeat.useConstantSeed();\n }\n if ((repeat = suiteClass.getAnnotation(Repeat.class)) != null) {\n return repeat.useConstantSeed();\n }\n \n return false;\n }", "public void spinOnce()\n {\n\tfor (int x = 0; x < _fruits.length; x+= 1){\n\t /*\n\t //not sure which method for randomization is best.\n\t int oneRandInd= ((int)(Math.random()*24));\n\t int twoRandInd = ((int)(Math.random()*24));\n\t swap(oneRandInd, twoRandInd);\n\t */\n\t int randInd = (int) (Math.random()*24);\n\t swap(x, randInd);\n\t}\n }", "private Random rand()\n\t{\n\t\treturn new Random();\n\t}" ]
[ "0.7002698", "0.69093186", "0.6897919", "0.6737895", "0.67345214", "0.66234374", "0.655773", "0.65326273", "0.64494723", "0.64448243", "0.643223", "0.64273334", "0.6421636", "0.6420666", "0.63809407", "0.636448", "0.6308522", "0.6278999", "0.6270245", "0.6246591", "0.6233338", "0.62029016", "0.61849266", "0.6167193", "0.6167193", "0.61613506", "0.61433", "0.61352086", "0.6128031", "0.61226267", "0.6117242", "0.61160916", "0.61120564", "0.6100193", "0.6089369", "0.60787815", "0.6046586", "0.604651", "0.6032538", "0.6020335", "0.60181624", "0.598956", "0.59868485", "0.5974361", "0.5949337", "0.59489554", "0.5947075", "0.5945454", "0.59398097", "0.5929771", "0.5927881", "0.5914478", "0.59075636", "0.59067297", "0.59066266", "0.5904596", "0.5890891", "0.5885089", "0.58796847", "0.585962", "0.58577836", "0.58426535", "0.58364224", "0.58297265", "0.58286816", "0.5828671", "0.5822943", "0.5822839", "0.58201325", "0.5820075", "0.5803078", "0.57980686", "0.5789989", "0.57851696", "0.57849026", "0.5774511", "0.57718706", "0.5765456", "0.57509977", "0.5749003", "0.57449", "0.5737224", "0.57366836", "0.57231766", "0.5721148", "0.5717868", "0.5704942", "0.5698819", "0.56974155", "0.5695106", "0.5690181", "0.56897074", "0.5687237", "0.568622", "0.5679073", "0.5668614", "0.5660742", "0.56567055", "0.5654716", "0.56515354", "0.5650719" ]
0.0
-1
Se modifica el bitmap obteniendo su altura,y alzada.
@Override public void onClick(View v) { Bitmap zoomedBitmap= Bitmap.createScaledBitmap(bmp, photoView.getWidth(), photoView.getHeight(), true); SaveImage(zoomedBitmap); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo12205a(Bitmap bitmap);", "Bitmap m7900a(Bitmap bitmap);", "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 actualizarImagen() {\n\t\tentidadGrafica.actualizarImagen(this.valor);\n\t}", "void mo37811a(Bitmap bitmap, ExifInfo bVar);", "private void updateFingerprintImage(FingerprintImage fi) {\n\n try {\n byte[] fpBmp = null;\n Bitmap bitmap;\n if (fi == null || (fpBmp = fi.convert2Bmp()) == null || (bitmap = BitmapFactory.decodeByteArray(fpBmp, 0, fpBmp.length)) == null) {\n //loger.addRecordToLog(\"updateFingerprintImage sin huella \");\n bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.sinhuella);\n }\n mHandler.sendMessage(mHandler.obtainMessage(MSG_UPDATE_IMAGE, bitmap));\n\n } catch (Exception e) {\n\n //loger.addRecordToLog(\"Exception updateFingerprintImage : \" + e.getMessage());\n\n //mFingerprintImage.setImageResource( R.drawable.errornuevahuella );\n\n //e.printStackTrace();\n\n }\n\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 }", "private void cargarBitmaps(TipoMunicion tipo) {\n switch (tipo){\n case RIFLE:\n bala = utils.getBitmapFromAssets(\"balas/bullet1.png\");\n break;\n case PISTOLA:\n bala = utils.getBitmapFromAssets(\"balas/bullet3.png\");\n break;\n case BIGPISTOLA:\n bala = utils.getBitmapFromAssets(\"balas/bullet2.png\");\n break;\n }\n\n Matrix matrix = new Matrix();\n switch (direccion) {\n case NORTE:\n matrix.postRotate(-90);\n break;\n case SUR:\n matrix.postRotate(90);\n break;\n case ESTE:\n matrix.postRotate(0);\n break;\n case OESTE:\n matrix.postRotate(180);\n break;\n }\n bala = Bitmap.createBitmap(bala, 0, 0, bala.getWidth(), bala.getHeight(), matrix, true);\n bala = Bitmap.createScaledBitmap(bala, altoPantalla * 1/80, altoPantalla * 1/80, false);\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 static File salvarBitMapEnUnidadInternaApp(Context context, Bitmap bitmap, String nombredelficheroDestino) {\n ContextWrapper wrapper = new ContextWrapper(context);\n File carpeta = wrapper.getDir(\"Images\", MODE_PRIVATE);\n File fileDestino = new File(carpeta, nombredelficheroDestino);\n try {\n OutputStream stream = new FileOutputStream(fileDestino);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, stream);\n stream.flush();\n stream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return fileDestino;\n }", "public void changePhoto() {\r\n\t\tisPictFetche = false;\r\n\t\tlaPhoto = new Photo();\r\n\t\tlaPhotoCandidate = new Photo();\r\n\t}", "private void populateFromSprite() {\n long start = System.currentTimeMillis();\n int bitSetIndex = 0;\n BufferedImage bImage = (BufferedImage) sprite.m_image;\n //BufferedImage img = ImageIO.read(new File(\"assets/LoopBitmap.bmp\"));\n int color;\n // Loop through image according to scale\n for(int i = 0; i < sprite.getWidth(); i+=scale) {\n for(int j = 0; j < sprite.getHeight(); j+= scale) {\n // Get color at pixel i, j, if black set Bitmap index to true.\n color = bImage.getRGB(i, j);\n if(color == Color.BLACK.getRGB()) { //tempColor.equals(Color.black)) {\n this.set(bitSetIndex, true);\n //System.out.println(\"'BLACK' Color = \"+color + \" i=\"+ i + \", j=\"+j);\n }\n bitSetIndex++;\n }\n }\n long end = System.currentTimeMillis();\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n// System.out.println(\"BITMAP DONE :)\");\n// System.out.println(\"Time to build = \"+(end-start)+\"ms\");\n// System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n }", "public void showbitmap3() {\n \n \t}", "private Bitmap setPic() {\n int targetH = 0; //mImageView.getHeight();\n int targetW = 0; //mImageView.getWidth();\n\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n if( photoH > photoW ){\n /*Se definen las dimensiones de la imagen que se desea generar*/\n targetH = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.heigh; // 640;\n targetW = Const.MedidasReduccionImagen.PEQUENA_PORTRAIT.width; //480;\n }else{\n targetH = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.heigh; //480;\n targetW = Const.MedidasReduccionImagen.PEQUENA_LANDSCAPE.width; //640;\n }\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 0;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n return bitmap;\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}", "void setImage(Bitmap bitmap);", "private void salvaFoto(){\n\n try {\n\n File f = new File(Environment.getExternalStorageDirectory() +getResources().getString(R.string.folder_package)+ \"/\" +id_Familiar+ \".jpg\");\n\n if(f.exists()){ boolean deleted = f.delete();}\n\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, qualidade_image_profile, bytes);\n\n try {\n f.createNewFile();\n FileOutputStream fo = new FileOutputStream(f);\n fo.write(bytes.toByteArray());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n catch (Exception E){\n Log.e(\"error\",\"Erro ao carregar imagem\");\n }\n }", "public void showbitmap4() {\n \n \t}", "private void reanderImage(ImageData data) {\n \n }", "@Override\n protected void onPostExecute(Bitmap Re) {\n t34.setImageBitmap(Re);\n }", "public static native Bitmap nativeRecoStillImage(Bitmap bitmap, int tryhard, int bwantimg, byte[]bresult, int maxsize, int []rets);", "@Override\n public void onComplete(Bitmap bitMap) {\n String localFileName = getLocalImageFileName(url);\n //Log.d(\"TAG\",\"save image to cache: \" + localFileName);\n\n saveImageToFile(bitMap,localFileName);\n //3. return the image using the listener\n listener.onComplete(bitMap);\n }", "public void restaura(){ \n super.restauraE();\n setImage(\"FrtEA1.png\"); \n check = false; \n }", "private static Bitmap fixImageRotation (Bitmap bitmap, String rawImageFilePath) throws IOException\r\n {\r\n /* Evaluate if we need to rotate the bitmap and replace the old bitmap. */\r\n float angle = getRawImageRotation(rawImageFilePath);\r\n if ( bitmap != null\r\n && angle != 0)\r\n {\r\n Matrix matrix = new Matrix();\r\n matrix.postRotate(angle);\r\n\r\n Bitmap oldBitmap = bitmap;\r\n\r\n bitmap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(),\r\n bitmap.getHeight(), matrix, true);\r\n\r\n oldBitmap.recycle();\r\n }\r\n return bitmap;\r\n }", "public static Bitmap convertToMutable(Bitmap imgIn) {\n try {\n //this is the file going to use temporally to save the bytes.\n // This file will not be a imageView, it will store the raw imageView data.\n File file = new File(Environment.getExternalStorageDirectory() + File.separator + \"temp.tmp\");\n\n //Open an RandomAccessFile\n //Make sure you have added uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"\n //into AndroidManifest.xml file\n RandomAccessFile randomAccessFile = new RandomAccessFile(file, \"rw\");\n\n // get the width and height of the source bitmap.\n int width = imgIn.getWidth();\n int height = imgIn.getHeight();\n Bitmap.Config type = imgIn.getConfig();\n\n //Copy the byte to the file\n //Assume source bitmap loaded using options.inPreferredConfig = Config.ARGB_8888;\n FileChannel channel = randomAccessFile.getChannel();\n MappedByteBuffer map = channel.map(FileChannel.MapMode.READ_WRITE, 0, imgIn.getRowBytes()*height);\n imgIn.copyPixelsToBuffer(map);\n //recycle the source bitmap, this will be no longer used.\n imgIn.recycle();\n System.gc();// try to force the bytes from the imgIn to be released\n\n //Create a new bitmap to load the bitmap again. Probably the memory will be available.\n imgIn = Bitmap.createBitmap(width, height, type);\n map.position(0);\n //load it back from temporary\n imgIn.copyPixelsFromBuffer(map);\n //close the temporary file and channel , then delete that also\n channel.close();\n randomAccessFile.close();\n\n // delete the temp file\n file.delete();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return imgIn;\n }", "@Test\n public void editPicture_NotNull(){\n Bitmap originalImage = BitmapFactory.decodeResource(appContext.getResources(),R.drawable.ic_add);\n testRecipe.setImage(originalImage, appContext);\n Bitmap newImage = BitmapFactory.decodeResource(appContext.getResources(),R.drawable.ic_cart);\n testRecipe.setImage(newImage, appContext);\n assertNotEquals(\"editPicture - New Image Not Null\", null, testRecipe.getImage(appContext));\n }", "public void testRefreshImage()\n {\n Image orig = cover.getImage();\n cover.setType(GamePiece.O);\n cover.refreshImage();\n assertEquals(false, orig.equals(cover.getImage()));\n }", "boolean restoreBufferedImage();", "public Bitmap espejo() {\n Bitmap bmp = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), bitmap.getConfig());\n int pixel, red, green, blue, alpha;\n //Recorremos todos los pixeles de la imagen\n for (int i = 0; i < bitmap.getWidth(); i++) {\n for (int j = 0; j < bitmap.getHeight(); j++) {\n pixel = bitmap.getPixel(i, j);\n red = Color.red(pixel);\n green = Color.green(pixel);\n blue = Color.blue(pixel);\n alpha = Color.alpha(pixel);\n //Pixel a pixel invertimos sus posiciones y recreamos la imagen ya invertida\n bmp.setPixel(bitmap.getWidth() - i - 1, j, Color.argb(alpha, red, green, blue));\n }\n }\n return bmp;\n }", "private static android.graphics.Bitmap a(android.graphics.Bitmap r6, int r7, int r8) {\n /*\n r5 = 1;\n r4 = 0;\n r1 = com.whatsapp.wallpaper.ImageViewTouchBase.e;\n if (r6 != 0) goto L_0x0008;\n L_0x0006:\n r6 = 0;\n L_0x0007:\n return r6;\n L_0x0008:\n r0 = r6.getWidth();\n r0 = (float) r0;\n r2 = (float) r7;\n r0 = r0 / r2;\n r2 = r6.getHeight();\n r2 = (float) r2;\n r3 = (float) r8;\n r2 = r2 / r3;\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 <= 0) goto L_0x0040;\n L_0x001a:\n r0 = r6.getWidth();\n r0 = (float) r0;\n r0 = r0 / r2;\n r0 = (int) r0;\n if (r0 <= 0) goto L_0x003d;\n L_0x0023:\n if (r8 <= 0) goto L_0x003d;\n L_0x0025:\n if (r7 <= 0) goto L_0x003d;\n L_0x0027:\n r2 = android.graphics.Bitmap.createScaledBitmap(r6, r0, r8, r5);\n r0 = r2.getWidth();\n r0 = r0 - r7;\n r0 = r0 / 2;\n r0 = android.graphics.Bitmap.createBitmap(r2, r0, r4, r7, r8);\n if (r0 == r2) goto L_0x003b;\n L_0x0038:\n r2.recycle();\t Catch:{ RuntimeException -> 0x006c }\n L_0x003b:\n if (r1 == 0) goto L_0x003e;\n L_0x003d:\n r0 = r6;\n L_0x003e:\n if (r1 == 0) goto L_0x006a;\n L_0x0040:\n r0 = r6.getHeight();\n r0 = (float) r0;\n r2 = (float) r7;\n r0 = r0 * r2;\n r2 = r6.getWidth();\n r2 = (float) r2;\n r0 = r0 / r2;\n r0 = (int) r0;\n if (r0 <= 0) goto L_0x0007;\n L_0x0050:\n if (r8 <= 0) goto L_0x0007;\n L_0x0052:\n if (r7 <= 0) goto L_0x0007;\n L_0x0054:\n r2 = android.graphics.Bitmap.createScaledBitmap(r6, r7, r0, r5);\n r0 = r2.getHeight();\n r0 = r0 - r8;\n r0 = r0 / 2;\n r0 = android.graphics.Bitmap.createBitmap(r2, r4, r0, r7, r8);\n if (r0 == r2) goto L_0x0068;\n L_0x0065:\n r2.recycle();\t Catch:{ RuntimeException -> 0x006e }\n L_0x0068:\n if (r1 != 0) goto L_0x0007;\n L_0x006a:\n r6 = r0;\n goto L_0x0007;\n L_0x006c:\n r0 = move-exception;\n throw r0;\n L_0x006e:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.whatsapp.wallpaper.p.a(android.graphics.Bitmap, int, int):android.graphics.Bitmap\");\n }", "public static native int nativeRecoBitmap(Bitmap bitmap, int lft, int rgt, int top, int btm, byte[]bresult, int maxsize);", "void setNextBitmap( Bitmap bitmap, boolean update ) {\n\t\tsetNextBitmap( bitmap, update, null );\n\t}", "public Bitmap get() {\n Throwable throwable2222222;\n Object object;\n block4: {\n boolean bl2 = this.zali;\n if (bl2) return this.zalh;\n Object object2 = this.zalg;\n Object object3 = new ParcelFileDescriptor.AutoCloseInputStream(object2);\n object = new DataInputStream((InputStream)object3);\n int n10 = ((DataInputStream)object).readInt();\n object3 = new byte[n10];\n int n11 = ((DataInputStream)object).readInt();\n int n12 = ((DataInputStream)object).readInt();\n String string2 = ((DataInputStream)object).readUTF();\n string2 = Bitmap.Config.valueOf((String)string2);\n ((DataInputStream)object).read((byte[])object3);\n {\n catch (Throwable throwable2222222) {\n break block4;\n }\n catch (IOException iOException) {}\n {\n String string3 = \"Could not read from parcel file descriptor\";\n object2 = new IllegalStateException(string3, iOException);\n throw object2;\n }\n }\n BitmapTeleporter.zaa((Closeable)object);\n object = ByteBuffer.wrap((byte[])object3);\n object3 = Bitmap.createBitmap((int)n11, (int)n12, (Bitmap.Config)string2);\n object3.copyPixelsFromBuffer((Buffer)object);\n this.zalh = object3;\n this.zali = bl2 = true;\n return this.zalh;\n }\n BitmapTeleporter.zaa((Closeable)object);\n throw throwable2222222;\n }", "@Override\n public void BitmapDownloadSuccess(String photoId, String mealId)\n {\n\n refreshUI();\n }", "public void run() {\n sight.setImageBitmap(bmp);\n // old = null;\n }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (resultCode == Activity.RESULT_OK) {\n Uri selectedImageUri = data.getData();\n ParcelFileDescriptor parcelFileDescriptor;\n try {\n parcelFileDescriptor = getActivity().getContentResolver().openFileDescriptor(selectedImageUri, \"r\");\n FileDescriptor fileDescriptor = parcelFileDescriptor.getFileDescriptor();\n Bitmap mealImage = BitmapFactory.decodeFileDescriptor(fileDescriptor);\n parcelFileDescriptor.close();\n\n\n Bitmap mealImageScaled = Bitmap.createScaledBitmap(mealImage,\n LTAPIConstants.IMAGE_WIDTH_SIZE, LTAPIConstants.IMAGE_WIDTH_SIZE\n * mealImage.getHeight() / mealImage.getWidth(), false);\n\n Matrix matrix = new Matrix();\n //matrix.postRotate(90);\n Bitmap rotatedScaledMealImage = Bitmap.createBitmap(mealImageScaled, 0,\n 0, mealImageScaled.getWidth(), mealImageScaled.getHeight(),\n matrix, true);\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n rotatedScaledMealImage.compress(Bitmap.CompressFormat.JPEG, 100, bos);\n\n byte[] scaledData = bos.toByteArray();\n photoFile = new ParseFile(\"tripcard_photo.jpg\", scaledData);\n addPhotoToMealAndReturn(photoFile);\n\n photoFile.saveInBackground(new SaveCallback() {\n\n public void done(ParseException e) {\n if (e != null) {\n Toast.makeText(getActivity(),\n \"Error saving: \" + e.getMessage(),\n Toast.LENGTH_LONG).show();\n } else {\n debugShowToast(\"Saved???? \");\n }\n }\n });\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n // Override Android default landscape orientation and save portrait\n }\n }", "public void setBitmapRight(Bitmap b){\n\t\timgRight = b;\n\t\tright.setBitmap(b);\n\t\tinvalidate();\n\t}", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode == RESULT_OK && requestCode ==200){\n Uri uri_img=data.getData();\n try{\n assert uri_img != null;\n InputStream input_img = updateView.getContext().getContentResolver().openInputStream(uri_img);\n DecodeImage_stream = BitmapFactory.decodeStream(input_img);\n chooseImage.setImageBitmap(DecodeImage_stream);\n }catch (FileNotFoundException f){\n Log.d(\"add new file not found:\",f.getMessage());\n }\n }\n }", "public void flip(){\n Matrix mirrorMatrix = new Matrix();\n mirrorMatrix.preScale(-1, 1);\n Bitmap turnMap = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), mirrorMatrix, false);\n turnMap.setDensity(DisplayMetrics.DENSITY_DEFAULT);\n bitmap = new BitmapDrawable(turnMap).getBitmap();\n }", "private void setPic() {\n int targetW = 210;\n int targetH = 320;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n bitmap = RotateBitmap(bitmap,270);\n preview.setImageBitmap(bitmap);\n }", "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 loadFromSavedBitmap() {\n if (bitmap != null) {\n // genera un nuovo puntatore ad una texture\n GLES20.glGenTextures(1, texture, 0);\n // lega questo puntatore ad una variabile disponibile all'app\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texture[0]);\n\n // setta alcuni parametri che diranno a OpenGL come trattare la texture\n GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n // caricamento della texture\n GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);\n // libera memoria\n bitmap.recycle();\n }\n resourcesLoaded++;\n\n MyGLRenderer.checkGlError(\"loadFromSavedBitmap\");\n }", "private void updateImageFile() throws FileNotFoundException {\n \t\tfinal PrintWriter out = new PrintWriter(asciiImageFile);\n \t\tout.print(asciiImage(false));\n \t\tout.close();\n \t}", "public abstract void setUpBitmap(Context context);", "protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 7 && resultCode == RESULT_OK) {\n\n Bitmap bitmap = (Bitmap) data.getExtras().get(\"data\");\n currentBitMap = bitmap;\n imageView.setImageBitmap(bitmap);\n }\n\n try {\n if (requestCode == IMG_RESULT && resultCode == RESULT_OK && data != null) {\n Uri URI = data.getData();\n String[] FILE = {MediaStore.Images.Media.DATA};\n\n Cursor cursor = getContentResolver().query(URI, FILE, null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(FILE[0]);\n String ImageDecode = cursor.getString(columnIndex);\n cursor.close();\n\n currentBitMap = BitmapFactory.decodeFile(ImageDecode);\n imageView.setImageBitmap(currentBitMap);\n }\n } catch (Exception e) {\n Toast.makeText(this, \"Please try again\", Toast.LENGTH_LONG)\n .show();\n }\n }", "public Bitmap getBitmap() {\n\t\tBitmap bitmap;\n\t\tint intpixels[] = new int[getNrows()*getNcols()];\n\n// Log.i(\"min value\", Float.toString(getMinElevation()));\n// Log.i(\"max value\", Float.toString(getMaxElevation()));\n// Log.i(\"range value\", Float.toString(getMaxElevation()-getMinElevation()));\n\t\tfor(int k = 0; k<getNrows(); k++) {\n\t\t\tfor(int m=0; m<getNcols(); m++) {\n\t\t \t//normalize each float to a value from 0-255\n\n double range = 255/(getMaxElevation()-getMinElevation());\n\t\t \tintpixels[k+(m*getNrows())] = (int)(range*(getElevationData()[k][m]-getMinElevation()));\n\n //Log.i(\"pixel value\", Integer.toString(intpixels[m+(k*getNcols())]));\n\t\t \t//intpixels[k] = (int)( ((pixels[k]-min)/(max-min))*(double)255.0);\n\t\t \t//convert to greyscale ARGB value\n\t\t \t//intpixels[m+(k*getNcols())] = 0xFF000000 + intpixels[m+(k*getNcols())] + intpixels[m+(k*getNcols())]<<8 + intpixels[m+(k*getNcols())]<<16;\n\t\t\t}\t\n\t }\n\n for(int l=0;l<getNcols()*getNrows(); l++) {\n //intpixels[l] = 0xFF000000 + intpixels[l] + intpixels[l]<<8 + intpixels[l]<<16;\n intpixels[l] = Color.argb(255, intpixels[l], intpixels[l], intpixels[l]);\n }\n\t\tbitmap = Bitmap.createBitmap(intpixels, 0, getNrows(), getNrows(), getNcols(), Bitmap.Config.ARGB_8888);\n\n Matrix matrix = new Matrix();\n matrix.postRotate(90);\n bitmap = Bitmap.createBitmap(bitmap, 0, 0,\n bitmap.getWidth(), bitmap.getHeight(),\n matrix, true);\n try {\n FileOutputStream out = new FileOutputStream(\"/sdcard/field.png\");\n bitmap.compress(Bitmap.CompressFormat.PNG, 90, out);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n\n return bitmap;\n\t}", "private Bitmap flipImage(byte[] input, FileOutputStream fos){\n\n\t\t\t\tMatrix rotate_matrix = new Matrix();\n\t\t\t\trotate_matrix.preScale(-1.0f, 1.0f);\n\t\t\t\tBitmapFactory bmf = new BitmapFactory();\n\t\t\t\tBitmap raw_bitmap = bmf.decodeByteArray(input, 0, input.length);\n\t\t\t\tBitmap result = Bitmap.createBitmap(raw_bitmap, 0, 0, raw_bitmap.getWidth(), raw_bitmap.getHeight(), rotate_matrix, true);\n\t\t\t\treturn result;\n\t\t\t\t/*\n\t\t\t\tresult.compress(Bitmap.CompressFormat.JPEG, 90, fos);\n\t\t\t\ttry {\n\t\t\t\t\tfos.close();\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}", "public void setAltura(int newAlt){\n this._altura=newAlt;\n }", "private void updateUserProfileImage(Bitmap bitmap) {\n user.setUserProfileImage(bitmap);\n setUpNavigationHeader();\n byte[] imageBytes = ImageManager.getImageBytes(bitmap);\n Thread writeUserImageThread = ThreadFactory.createWriteImageThread(ImageManager.USER_PROFILE_IMAGES_PATH,\n user.getUsername(), imageBytes);\n writeUserImageThread.start();\n }", "private void setPhotoAttcher() {\n\n }", "public void m2261I() {\n try {\n if (this.f2513n != null) {\n this.f2513n.setImageDrawable(C5150d.m3784a(mo61159b().getResources(), \"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA39pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozODRkZTAxYi00OWRkLWM4NDYtYThkNC0wZWRiMDMwYTZlODAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkE0Q0U2MUY2QzA0MTFFNUE3MkJGQjQ1MTkzOEYxQUUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkE0Q0U2MUU2QzA0MTFFNUE3MkJGQjQ1MTkzOEYxQUUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjlkZjAyMGU0LTNlYmUtZTY0ZC04YjRiLWM5ZWY4MTU4ZjFhYyIgc3RSZWY6ZG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOmU1MzEzNDdlLTZjMDEtMTFlNS1hZGZlLThmMTBjZWYxMGRiZSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PngNsEEAAANeSURBVHjatFfNS1tBEH+pUZOQ0B4i3sTSxHMRFNQoFBEP7dHgvyDiKWgguQra9F+oxqNiwOTQ+oFI1ZM3jSf1YK5FL41ooaKZzu+x+4gv2bx9Rgd+JNn5zO7s7IzH0CQiCvLHZ8YnxkfGe8ZbwS4zSowTxi/GT4/Hc2u8BLHjCOM745b06VboRJpx7GN8ZfyDxUqlQgcHB5RMJmloaIg6Ozupra3NBL5jDTzIQFYQdDOw5db5B8YxLDw+PtLKygr19PQQWDqIRqOUzWZNXUHH2rvBgr2M39C6uLig/v5+bcd2QLdUKskgYLNX57yvIL2zs0OhUOjZziU6Ojro8PBQBnGl3Alm+BknkMI54mybdS4BW3t7ezKIInzVCwDJYm4Zon4p5xLYzfPzcxlEpl7S3SNpmjlznZwQiXn/5CjEnTUzt5GBsbExamlpUfLBg0wjG8vLy3IXlqTzEAoH7m4kElEqTk1Nmfd7bW2tbhBYAw8ykFXZgQ9RJ1CsQghgEr/29/eVStPT09XFhdbX18nr9Vr81tZWyuVyFh+yMzMzSnvwJWjyDS+MYic2NzeV17O7u9vg2m79jsfjBv9bg7PbxOrqqjExMWHxIdvV1aW0V+VrFDtwhFCGh4cbnl0mk6kp+BsbGybsBNlGtkZGRqToEQK4xjfUc6csXlhYcHyFFhcXHe3Al6BrQz427e3tWldpfn5e6Rw83cIkHyvXAUAZb4SdsKZbPe0BaB+Bz+cjTiDlDmxtbZkybo9AKwn9fj9tb2875gBkINvIFnzJJMQ1PMV9GBgYUF6bQCBgFAoFY3x8/Ml6KpUy0un0kzXIQBY6KqrydapViPL5fM0/Rfcj+fhuJw5CqxBpleJYLEY3NzeW8dnZ2RoZrEmCLHQcSvGdWYrFe7CEFTwUqqjR85XLZUokEkoZ8CADWe3HqKoTcnyOdW5KI5m+vj56eHiQz3G0bkNyeXn5ag3J2dmZ/PffVC1Z8bVast3d3eqWLKDVlAaDwaadh8Nhvaa0XluOHg7n9lzn0MWRarfltp0oysEErRqGDTeDCbK9ajApuh7TxGiWERlrjWZzc3M0ODhYM5phDTzbaHb/rNHMFkhUNK13LobTv6K2RJ3se1yO519s4/k7wf5jG89/6I7n/wUYAGo3YtcprD4sAAAAAElFTkSuQmCC\"));\n this.f2513n.setScaleType(ScaleType.FIT_CENTER);\n }\n } catch (Exception e) {\n C5017f.m3256a(mo61159b(), C5015d.EXCEPTION, \"MraidMode.showDefaultCloseButton\", e.getMessage(), \"\");\n }\n }", "@Override\n\tpublic boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) {\n\t\treturn false;\n\t}", "public byte[] bitmap();", "private Bitmap m6552d() {\n if (this.f5072i == null) {\n this.f5072i = m6555f();\n }\n return this.f5072i;\n }", "public void onPostExecute(byte[] originalJpegData) {\n LongshotPictureCallback.this.updateExifAndSave(Exif.getExif(originalJpegData), originalJpegData, camera);\n }", "void lSetImage(Image img);", "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 }", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n switch (requestCode) {\n case SELECT_PHOTO:\n if (resultCode == RESULT_OK) {\n // imABoolean=true;\n try {\n filePath = data.getData();\n bitmap = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(), filePath);\n\n logo.setImageBitmap(bitmap);\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n break;\n }\n }\n\n\n }", "public File bitmapToFile(Bitmap bitmap){\n File newImage;\n try {\n newImage = new File(file, \"jaki.png\");\n FileOutputStream fos = new FileOutputStream(newImage);\n\n bitmap.compress(Bitmap.CompressFormat.JPEG, 80, fos); // 100 is high quality\n fos.flush();\n fos.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n return null;\n }\n return newImage;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == CODIGO_DE_SOLICITUD_IMAGEN\n && resultCode == RESULT_OK\n && data!=null\n && data.getData() != null){\n\n RutaArchivoUri = data.getData();\n try {\n //Convertimos a bitmap\n Bitmap bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(),RutaArchivoUri);\n //seteamos la imagen\n ImagenAgregarSerie.setImageBitmap(bitmap);\n\n }catch (Exception e){\n Toast.makeText(this, \"\"+e.getMessage(), Toast.LENGTH_SHORT).show();\n\n }\n }\n }", "public final boolean mo56574t(String str, Bitmap bitmap) {\n AppMethodBeat.m2504i(79320);\n if (str == null || str.length() == 0 || bitmap == null || bitmap.isRecycled()) {\n C4990ab.m7412e(\"MicroMsg.AppInfoStorage\", \"saveIcon : invalid argument\");\n AppMethodBeat.m2505o(79320);\n return false;\n }\n String dY = C35796i.m58670dY(str, 1);\n if (dY == null) {\n C4990ab.m7412e(\"MicroMsg.AppInfoStorage\", \"saveIcon fail, iconPath is null\");\n AppMethodBeat.m2505o(79320);\n return false;\n }\n C5728b c5728b = new C5728b(dY);\n if (c5728b.exists()) {\n c5728b.delete();\n }\n try {\n OutputStream q = C5730e.m8641q(c5728b);\n bitmap.compress(CompressFormat.PNG, 100, q);\n q.close();\n anF(str);\n AppMethodBeat.m2505o(79320);\n return true;\n } catch (Exception e) {\n C4990ab.printErrStackTrace(\"MicroMsg.AppInfoStorage\", e, \"\", new Object[0]);\n C4990ab.m7412e(\"MicroMsg.AppInfoStorage\", \"saveIcon : compress occurs an exception\");\n AppMethodBeat.m2505o(79320);\n return false;\n }\n }", "public static Bitmap decodeBitmapSize(Bitmap bm, int IMAGE_BIGGER_SIDE_SIZE) {\n Bitmap b = null;\r\n\r\n\r\n //convert Bitmap to byte[]\r\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n bm.compress(Bitmap.CompressFormat.JPEG, 100, stream);\r\n byte[] byteArray = stream.toByteArray();\r\n\r\n //We need to know image width and height, \r\n //for it we create BitmapFactory.Options object and do BitmapFactory.decodeByteArray\r\n //inJustDecodeBounds = true - means that we do not need load Bitmap to memory\r\n //but we need just know width and height of it\r\n BitmapFactory.Options opt = new BitmapFactory.Options();\r\n opt.inJustDecodeBounds = true;\r\n BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt);\r\n int CurrentWidth = opt.outWidth;\r\n int CurrentHeight = opt.outHeight;\r\n\r\n\r\n //there is function that can quick scale images\r\n //but we need to give in scale parameter, and scale - it is power of 2\r\n //for example 0,1,2,4,8,16...\r\n //what scale we need? for example our image 1000x1000 and we want it will be 100x100\r\n //we need scale image as match as possible but should leave it more then required size\r\n //in our case scale=8, we receive image 1000/8 = 125 so 125x125, \r\n //scale = 16 is incorrect in our case, because we receive 1000/16 = 63 so 63x63 image \r\n //and it is less then 100X100\r\n //this block of code calculate scale(we can do it another way, but this way it more clear to read)\r\n int scale = 1;\r\n int PowerOf2 = 0;\r\n int ResW = CurrentWidth;\r\n int ResH = CurrentHeight;\r\n if (ResW > IMAGE_BIGGER_SIDE_SIZE || ResH > IMAGE_BIGGER_SIDE_SIZE) {\r\n while (1 == 1) {\r\n PowerOf2++;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n if (Math.max(ResW, ResH) < IMAGE_BIGGER_SIDE_SIZE) {\r\n PowerOf2--;\r\n scale = (int) Math.pow(2, PowerOf2);\r\n ResW = (int) ((double) opt.outWidth / (double) scale);\r\n ResH = (int) ((double) opt.outHeight / (double) scale);\r\n break;\r\n }\r\n\r\n }\r\n }\r\n\r\n\r\n //Decode our image using scale that we calculated\r\n BitmapFactory.Options opt2 = new BitmapFactory.Options();\r\n opt2.inSampleSize = scale;\r\n //opt2.inScaled = false;\r\n b = BitmapFactory.decodeByteArray(byteArray, 0, byteArray.length, opt2);\r\n\r\n\r\n //calculating new width and height\r\n int w = b.getWidth();\r\n int h = b.getHeight();\r\n if (w >= h) {\r\n w = IMAGE_BIGGER_SIDE_SIZE;\r\n h = (int) ((double) b.getHeight() * ((double) w / b.getWidth()));\r\n } else {\r\n h = IMAGE_BIGGER_SIDE_SIZE;\r\n w = (int) ((double) b.getWidth() * ((double) h / b.getHeight()));\r\n }\r\n\r\n\r\n //if we lucky and image already has correct sizes after quick scaling - return result\r\n if (opt2.outHeight == h && opt2.outWidth == w) {\r\n return b;\r\n }\r\n\r\n\r\n //we scaled our image as match as possible using quick method\r\n //and now we need to scale image to exactly size\r\n b = Bitmap.createScaledBitmap(b, w, h, true);\r\n\r\n\r\n return b;\r\n }", "@Test\n public void getPicture_Exists(){\n Bitmap image = BitmapFactory.decodeResource(appContext.getResources(),R.drawable.ic_add);\n testRecipe.setImage(image, appContext);\n Bitmap retrieved = testRecipe.getImage(appContext);\n assertNotEquals(\"getPicture - Not Null\", null, retrieved);\n }", "public void mo10685a() {\n if (MultiPhotoFrameMainActivity.this.f14954b != null && !MultiPhotoFrameMainActivity.this.f14954b.mo10844k()) {\n MultiPhotoFrameMainActivity.this.f14954b.mo6022d().putBoolean(\"GalleryUpdateKey\", true);\n }\n }", "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}", "public synchronized void method_219() {\n if(this.field_730 != null) {\n this.field_730.setPixels(0, 0, this.field_723, this.field_724, this.field_728, this.pixels, 0, this.field_723);\n this.field_730.imageComplete(2);\n }\n }", "@Override\r\n\t protected void onPostExecute(Bitmap outBitmap) {\r\n\t\t\tLog.d(\"asdf\", \"ONPOSTEXE\");\r\n\t\t\tRectF dest = new RectF(x, y, x + width, y + height);\r\n\t\t\timageWrapper imwrap = new imageWrapper(outBitmap, startState, dest);\r\n\t\t\tfinal HashMap<Integer, imageWrapper> map = mapRef.get();\r\n\t\t\tmap.put(resId, imwrap);\r\n\t }", "@Override\r\n\tpublic int updatepic(Account account) {\n\t\taccountMapper.updatepic(account);\r\n\t\treturn 0;\r\n\t}", "public void hreflect() {\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n int h= 0;\n int k= rows-1;\n //invariant: rows 0..h-1 and k+1.. have been inverted\n while (h < k) {\n // Swap row h with row k\n // invariant: pixels 0..c-1 of rows h and k have been swapped\n for (int c= 0; c != cols; c= c+1) {\n currentIm.swapPixels(h, c, k, c);\n }\n \n h= h+1; k= k-1;\n }\n }", "private void putProfPic(Blob gbPhoto) throws SQLException, FileNotFoundException, IOException {\n if(gbPhoto == null){\n ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();\n File file = new File(externalContext.getRealPath(\"\")+\"\\\\resources\\\\images\\\\user_default.png\");\n imagePic = new OracleSerialBlob(FileUtils.getBytes(file));\n Long size = imagePic.length();\n photo_profile = new ByteArrayContent(imagePic.getBytes(1, size.intValue()));\n }else{\n imagePic = gbPhoto;\n Long size = gbPhoto.length();\n photo_profile = new ByteArrayContent(gbPhoto.getBytes(1, size.intValue()));\n }\n }", "private void guardarFoto() {\n if (foto != null && is != null) {\n\n Image foto_Nueva;\n foto_Nueva = foto.getScaledInstance(frmPersona.getLblFoto().getWidth(), frmPersona.getLblFoto().getHeight(), Image.SCALE_SMOOTH);\n frmPersona.getLblFoto().setIcon(new ImageIcon(foto_Nueva));\n cancelarFoto();\n ctrFrmPersona.pasarFoto(is);\n } else {\n JOptionPane.showMessageDialog(vtnWebCam, \"Aun no se a tomado una foto.\");\n }\n\n }", "private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }", "@Override\r\n protected Boolean doInBackground(Void... params) {\n try{\r\n String ImgPath = ImageUtils.getImageSavePath(GlobalDefinitions.TAG);\r\n PhotoUtils.saveBitmap(mFaceEditor.getDisplayImage(), ImgPath,PhotoUtils.IMAGE_FORMAT_JPG, BeautyfaceActivity.this);\r\n GlobalDefinitions.IMAGE_EDIT_DONE = true;\r\n\r\n }\r\n catch(Exception e)\r\n {\r\n return false;\r\n }\r\n return true;\r\n }", "private void setPic() {\n\t\tint targetW = Constant.sRealWidth;\n\t\tint targetH = Constant.sRealHeight;\n\n\t\t/* Get the size of the image */\n\t\tBitmapFactory.Options bmOptions = new BitmapFactory.Options();\n\t\tbmOptions.inJustDecodeBounds = true;\n\t\tBitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\tint photoW = bmOptions.outWidth;\n\t\tint photoH = bmOptions.outHeight;\n\t\t\n\t\t/* Figure out which way needs to be reduced less */\n\t\tint scaleFactor = 1;\n\t\tif ((targetW > 0) || (targetH > 0)) {\n\t\t\tscaleFactor = Math.min(photoW/targetW, photoH/targetH);\t\n\t\t}\n\n\t\t/* Set bitmap options to scale the image decode target */\n\t\tbmOptions.inJustDecodeBounds = false;\n\t\tbmOptions.inSampleSize = scaleFactor;\n\t\tbmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n\t\tBitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\t\n\t\tint rotate = ViewUtils.handleRotateBitmap(mCurrentPhotoPath);\n\t\tif (rotate != 0) {\n\t\t\tbitmap = ViewUtils.rotaingBitmap(\n\t\t\t\t\trotate, bitmap);\n\t\t}\n\t\t/* Associate the Bitmap to the ImageView */\n\t\tmPictureView.setImageBitmap(bitmap);\n\t}", "public void reload() {\n mHandle = new Texture(mBitmap, mMinMode, mMagMode, mWrapS, mWrapT).getHandle();\n }", "private void setImage(Bitmap image) {\n }", "public void setBitmap(Bitmap bitmap) {\n\t\t\n\t}", "private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }", "static void switchOriginal() {\n\n for (Iterator<Media> Fullsize = DataItem.get(currentAlbum).iterator(); Fullsize.hasNext(); ) {\n final Media Image = Fullsize.next();\n\n if (Image.MediaID.equals(CurrentPictureId)) {\n\n int imageWidth = Window.getClientWidth() - 200;\n\n FULLSIZE.setUrl(base + Image.MediaFullsizePath + \"&size=\" + imageWidth);\n FULLSIZE.setVisible(true);\n showDescription(Image);\n } else {\n DOM.getElementById(Image.MediaID).removeClassName(\"active\");\n }\n\n Action.showOriginal();\n }\n }", "@Override\n\t\t\t\t\tprotected int sizeOf(BareJID key, Bitmap bitmap) {\n\t\t\t\t\t\treturn bitmap == mPlaceHolderBitmap ? 0 : (bitmap.getRowBytes() * bitmap.getHeight());\n\t\t\t\t\t}", "public boolean onLongClick(View v) {\n if (imageViewer.getDrawable() != null) {\n File storageDir = new File(Environment.getExternalStoragePublicDirectory(\n Environment.DIRECTORY_PICTURES) + File.separator + \"BitView\");\n if (!storageDir.isDirectory()) {\n storageDir.mkdir();\n }\n\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String imageFileName = \"BitView_\" + timeStamp + \".png\";\n\n ImageView imageView = (ImageView) findViewById(R.id.imageViewer);\n imageView.buildDrawingCache();\n Bitmap bitmap = imageView.getDrawingCache();\n\n FileOutputStream fp;\n try {\n fp = new FileOutputStream(new File(storageDir + File.separator + imageFileName));\n bitmap.compress(Bitmap.CompressFormat.PNG, 100, fp);\n fp.flush();\n fp.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n Toast.makeText(getApplicationContext(),\n \"FILE PATH: \" + storageDir + \"/\" + imageFileName,\n Toast.LENGTH_LONG).show();\n }\n\n return true;\n }", "private void bitToByte(Bitmap bmap) {\n\t\ttry {\n\t\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\t\t\tbmap.compress(Bitmap.CompressFormat.PNG, 100, bos);\n\t\t\tbytePhoto = bos.toByteArray();\n\t\t\tbos.close();\n\t\t} catch (IOException ioe) {\n\n\t\t}\n\t}", "private android.graphics.Bitmap getMaskBitmap() {\n /*\n r20 = this;\n r0 = r20;\n r1 = r0.f5066b;\n if (r1 == 0) goto L_0x0009;\n L_0x0006:\n r1 = r0.f5066b;\n return r1;\n L_0x0009:\n r1 = r0.f5069f;\n r2 = r20.getWidth();\n r1 = r1.m6537a(r2);\n r2 = r0.f5069f;\n r3 = r20.getHeight();\n r2 = r2.m6539b(r3);\n r3 = m6543a(r1, r2);\n r0.f5066b = r3;\n r4 = new android.graphics.Canvas;\n r3 = r0.f5066b;\n r4.<init>(r3);\n r3 = com.facebook.shimmer.ShimmerFrameLayout.C18663.f5049a;\n r5 = r0.f5069f;\n r5 = r5.f5059i;\n r5 = r5.ordinal();\n r3 = r3[r5];\n r5 = 4611686018427387904; // 0x4000000000000000 float:0.0 double:2.0;\n r7 = 2;\n if (r3 == r7) goto L_0x0074;\n L_0x003b:\n r3 = com.facebook.shimmer.ShimmerFrameLayout.C18663.f5050b;\n r8 = r0.f5069f;\n r8 = r8.f5051a;\n r8 = r8.ordinal();\n r3 = r3[r8];\n r8 = 0;\n switch(r3) {\n case 2: goto L_0x0055;\n case 3: goto L_0x0051;\n case 4: goto L_0x004f;\n default: goto L_0x004b;\n };\n L_0x004b:\n r9 = r1;\n r3 = 0;\n L_0x004d:\n r10 = 0;\n goto L_0x0058;\n L_0x004f:\n r3 = r2;\n goto L_0x0053;\n L_0x0051:\n r8 = r1;\n r3 = 0;\n L_0x0053:\n r9 = 0;\n goto L_0x004d;\n L_0x0055:\n r10 = r2;\n r3 = 0;\n r9 = 0;\n L_0x0058:\n r19 = new android.graphics.LinearGradient;\n r12 = (float) r8;\n r13 = (float) r3;\n r14 = (float) r9;\n r15 = (float) r10;\n r3 = r0.f5069f;\n r16 = r3.m6538a();\n r3 = r0.f5069f;\n r17 = r3.m6540b();\n r18 = android.graphics.Shader.TileMode.REPEAT;\n r11 = r19;\n r11.<init>(r12, r13, r14, r15, r16, r17, r18);\n r3 = r19;\n goto L_0x009c;\n L_0x0074:\n r3 = r1 / 2;\n r8 = r2 / 2;\n r16 = new android.graphics.RadialGradient;\n r10 = (float) r3;\n r11 = (float) r8;\n r3 = java.lang.Math.max(r1, r2);\n r8 = (double) r3;\n r12 = java.lang.Math.sqrt(r5);\n r8 = r8 / r12;\n r12 = (float) r8;\n r3 = r0.f5069f;\n r13 = r3.m6538a();\n r3 = r0.f5069f;\n r14 = r3.m6540b();\n r15 = android.graphics.Shader.TileMode.REPEAT;\n r9 = r16;\n r9.<init>(r10, r11, r12, r13, r14, r15);\n r3 = r16;\n L_0x009c:\n r8 = r0.f5069f;\n r8 = r8.f5052b;\n r9 = r1 / 2;\n r9 = (float) r9;\n r10 = r2 / 2;\n r10 = (float) r10;\n r4.rotate(r8, r9, r10);\n r9 = new android.graphics.Paint;\n r9.<init>();\n r9.setShader(r3);\n r5 = java.lang.Math.sqrt(r5);\n r3 = java.lang.Math.max(r1, r2);\n r10 = (double) r3;\n r5 = r5 * r10;\n r3 = (int) r5;\n r3 = r3 / r7;\n r5 = -r3;\n r6 = (float) r5;\n r1 = r1 + r3;\n r7 = (float) r1;\n r2 = r2 + r3;\n r8 = (float) r2;\n r5 = r6;\n r4.drawRect(r5, r6, r7, r8, r9);\n r1 = r0.f5066b;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.getMaskBitmap():android.graphics.Bitmap\");\n }", "private void markBitmap(int frameNo){\n int bit = frameNo/32;\n int mask = frameNo%32;\n bitMap[bit] = bitMap[bit]|MASK[mask];\n }", "private void updateImage() {\r\n \tfor(int i=0;i<rows;i++){\r\n for(int j=0;j<cols;j++){\r\n if(complexArray[i][j].escapeTime(RADIUS, maxIterations)!=-1){//the complex escaped\r\n mandelbrotColor[i][j]=new RGBColor(palette[complexArray[i][j].escapeTime(RADIUS, maxIterations)]);\r\n }\r\n else{\r\n mandelbrotColor[i][j]=palette[complexArray[i][j].escapeTime(RADIUS, maxIterations)+1];//the complex didnt escaped\r\n }\r\n }\r\n }\r\n }", "public void mo8098a(Bitmap bitmap, Bitmap bitmap2) {\n if (bitmap2 != null) {\n C2342x.m9083a((View) this, (Drawable) new BitmapDrawable(getContext().getResources(), bitmap2));\n } else {\n C2342x.m9082a((View) this, 0);\n }\n if (bitmap != null) {\n this.f6228b = bitmap.getWidth();\n this.f6229c = bitmap.getHeight();\n this.f6227a.setImageBitmap(Bitmap.createBitmap(bitmap));\n return;\n }\n this.f6227a.setImageDrawable(null);\n }", "private static Bitmap m8222a(URLConnection uRLConnection) {\n InputStream inputStream = uRLConnection.getInputStream();\n try {\n Bitmap a = C2995v.f8235a.m8223a(inputStream);\n return a;\n } finally {\n inputStream.close();\n }\n }", "@Override\n\tpublic void setImageBitmap(Bitmap bm) {\n\t\tif (mImage==mOriginal) {\n\t\t\tmOriginal=null;\n\t\t} else {\n\t\t\tmOriginal.recycle();\n\t\t\tmOriginal=null;\n\t\t}\n\t\tif (mImage != null) {\n\t\t\tmImage.recycle();\n\t\t\tmImage=null;\n\t\t}\n\t\tmImage = bm;\n\t\tmOriginal = bm;\n\t\ttry{\n\t\tmImageHeight = mImage.getHeight();\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tmImageHeight=0;\n\t\t}\n\t\tmImageWidth = mImage.getWidth();\n\t\tmAspect = (float)mImageWidth / mImageHeight;\n\t\tsetInitialImageBounds();\n\t}", "protected void setPic() {\n }", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\r\n Bitmap b=(Bitmap)data.getExtras().get(\"data\");\r\n i1.setImageBitmap(b);\r\n\r\n }", "private void setPic()\n {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n int scaleFactor = Math.min(photoW/384, photoH/512);\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n imageCapture.setImageBitmap(bitmap);\n }", "private Bitmap m6554e() {\n if (this.f5071h == null) {\n this.f5071h = m6555f();\n }\n return this.f5071h;\n }", "public void showbitmap2() {\n \t\tImageView i = (ImageView)findViewById(R.id.frame2);\n \t\ti.setImageBitmap(mBitmap2);\n \t}", "public void ocultarMensaje(String msje, String fo, String nueFo){\n String mensaje, binario;\n Color color;\n int r,g,b;\n try{\n mensaje = lecturaArchivo(msje);\n binario = preparaMensaje(mensaje);\n BufferedImage image = sacaFoto(fo);\n int k = 0;\n for(int i = 0; i < image.getHeight(); i++)\n for(int j = 0; j < image.getWidth(); j++){\n color = new Color(image.getRGB(j, i));\n if(k <= binario.length()){\n String red = toBinary((byte) color.getRed());\n String green = toBinary((byte) color.getGreen());\n String blue = toBinary((byte) color.getBlue());\n red = reemplazarLSB(red, binario);\n green = reemplazarLSB(green, binario);\n blue = reemplazarLSB(blue, binario);\n r = Integer.parseInt(red ,2);\n g = Integer.parseInt(green ,2);\n b = Integer.parseInt(blue ,2);\n }else{\n r = color.getRed();\n g = color.getGreen();\n b = color.getBlue();\n }\n image.setRGB(j, i, new Color(r,g,b).getRGB());\n k+=3;\n }\n File output = new File(nueFo);\n ImageIO.write(image, \"png\", output);\n }catch(IOException ioe){\n System.out.println(\"Hubo un error en la escritura de la imagen\");\n System.exit(1);\n }\n }", "public void resultImgSet(Bitmap bitmap) {\n fpResultImg.setImageBitmap(bitmap);\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 void mo4059b() {\n imageCacheStatsTracker.mo4072f();\n }", "private void prepararImagenYStorage() {\n mImageBitmap = null;\n\n //this.capturarFotoButton = (Button) findViewById(R.id.capturarFotoButton);\n// setBtnListenerOrDisable(\n// this.capturarFotoButton,\n// mTakePicSOnClickListener,\n// MediaStore.ACTION_IMAGE_CAPTURE\n// );\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.FROYO) {\n mAlbumStorageDirFactory = new FroyoAlbumDirFactory();\n } else {\n mAlbumStorageDirFactory = new BaseAlbumDirFactory();\n }\n }", "private void rebuildImageIfNeeded() {\n Rectangle origRect = this.getBounds(); //g.getClipBounds();\n// System.out.println(\"origRect \" + origRect.x + \" \" + origRect.y + \" \" + origRect.width + \" \" + origRect.height);\n\n backBuffer = createImage(origRect.width, origRect.height);\n// System.out.println(\"Image w \" + backBuffer.getWidth(null) + \", h\" + backBuffer.getHeight(null));\n Graphics backGC = backBuffer.getGraphics();\n backGC.setColor(Color.BLACK);\n backGC.fillRect(0, 0, origRect.width, origRect.height);\n// updateCSysEntList(combinedRotatingMatrix);\n paintWorld(backGC);\n }" ]
[ "0.6146011", "0.6095998", "0.59947413", "0.5893502", "0.58653516", "0.5856044", "0.58280206", "0.5807963", "0.57624835", "0.5743953", "0.572255", "0.5691898", "0.5688319", "0.5664485", "0.56599206", "0.5634347", "0.5617201", "0.55947083", "0.5572772", "0.55515397", "0.55500466", "0.5549412", "0.5546657", "0.5543182", "0.5540564", "0.5534537", "0.55191594", "0.5511307", "0.5505655", "0.55052036", "0.5490592", "0.5487917", "0.54775053", "0.547626", "0.54724354", "0.54660285", "0.54625076", "0.54601055", "0.5447137", "0.5420691", "0.5417408", "0.541686", "0.54035777", "0.54019356", "0.5400086", "0.5399101", "0.5385722", "0.5384661", "0.5379553", "0.5377172", "0.5372308", "0.5358273", "0.5358273", "0.53579324", "0.53560835", "0.5352461", "0.5348504", "0.53406423", "0.53394026", "0.53378874", "0.533695", "0.5327894", "0.5327762", "0.53244764", "0.5323539", "0.5316887", "0.5306246", "0.5305844", "0.53055334", "0.52986276", "0.5298576", "0.5297826", "0.52824277", "0.5280282", "0.5277424", "0.52728605", "0.5269951", "0.52645904", "0.5261702", "0.52469665", "0.5242447", "0.52418005", "0.5238921", "0.5237124", "0.52281106", "0.5226799", "0.52234155", "0.52219665", "0.5217986", "0.5217819", "0.5215341", "0.5212778", "0.52077436", "0.52074975", "0.52042174", "0.5203591", "0.5203573", "0.52007824", "0.51997024", "0.5199496" ]
0.5226194
86
Metodo para mostrar el toast
private void mostrarToast () { Toast.makeText(this, "Imagen guardada en la galería.", Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void toast() {\n }", "void showToast(String message);", "void showToast(String message);", "void toast(int resId);", "public void ToastMessage() {\n\n // create toast message object\n final Toast toast = Toast.makeText(Product_Details_Page_Type_4.this,\n \"Product added to cart\",Toast.LENGTH_LONG);\n // show method call to show Toast message\n toast.show();\n\n // create handler to set duration for toast message\n Handler handler = new Handler() {\n\n @Override\n public void close() {\n // set duration for toast message\n toast.setDuration(100);\n // cancel toast message\n toast.cancel();\n }\n @Override\n public void flush() {}\n\n @Override\n public void publish(LogRecord record) {}\n };\n }", "void showToast(String value);", "void toast(CharSequence sequence);", "@Override\n\tpublic void createToast(String slogan, float duration) {\n\t\tif (Gdx.app.getType() == ApplicationType.Android) {\n\t\t\tgGame.iFunctions.createToast(slogan, duration);\n\t\t} else\n\t\tsuper.createToast(slogan, duration);\n\t}", "protected void toastshow() {\n \n\t\tToast toast=new Toast(getApplicationContext());\n\t\tImageView imageView=new ImageView(getApplicationContext());\n\t\timageView.setImageResource(R.drawable.icon);\n\t\ttoast.setView(imageView);\n\t\ttoast.show();\t\n\t}", "public void notificacionToast(String mensaje){\n Toast toast = Toast.makeText(getApplicationContext(),mensaje,Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n }", "private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }", "private void makeToast(String msg)\n {\n FinanceApp.serviceFactory.getUtil().makeAToast(this, msg);\n }", "public void toast(String toast) {\n\t\t// TODO Auto-generated method stub\n\t\t Toast toast1 = Toast.makeText(getApplicationContext(), toast, \n Toast.LENGTH_LONG); \n\t\t toast1.setDuration(1);\n\t\t toast1.show();\n\t\t \n\t}", "@Override\n public void toastText(String s){\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_SHORT).show();\n }", "private void showErrorToast() {\n }", "static void makeToast(Context ctx, String s){\n Toast.makeText(ctx, s, Toast.LENGTH_SHORT).show();\n }", "public void showToast(String string, int length) {\n System.out.println(\"toast:\" + string);\n }", "protected void toastshow1() {\n \n\t\tToast toast=Toast.makeText(this, \"image and text\", Toast.LENGTH_LONG);\n\t\t\n\t\tLinearLayout linearLayout=new LinearLayout(this);\n\t\tlinearLayout.setOrientation(LinearLayout.VERTICAL);\n\t\tImageView imageView=new ImageView(this);\n\t\timageView.setImageResource(R.drawable.icon);\n\t\tButton button=new Button(this);\n\t\tbutton.setText(\"progress over\");\n\t\tView toastView=toast.getView();\n\t\tlinearLayout.addView(imageView);\n\t\tlinearLayout.addView(button);\n\t\tlinearLayout.addView(toastView);\n\t\t\n\t\ttoast.setView(linearLayout);\n\t\ttoast.show();\n\t\t\n\t}", "@JavascriptInterface\n public void showToast(String toast) {\n Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();\n }", "@JavascriptInterface\n public void showToast(String toast) {\n Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();\n }", "private void toast(String string){\n Toast.makeText(this, string, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage (String message){\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "@JavascriptInterface\n public void showToast(String toast) {\n Toast.makeText(mContext, toast, Toast.LENGTH_LONG).show();\n }", "public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }", "public void toast (String msg)\n\t{\n\t\tToast.makeText (getApplicationContext(), msg, Toast.LENGTH_SHORT).show ();\n\t}", "@JavascriptInterface\n public void showToast(String toast) {\n Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();\n }", "@JavascriptInterface\n public void showToast(String toast) {\n Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();\n }", "public void ToastPopper(String t){\n Context context = getApplicationContext();\n CharSequence text = t;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void showToast(final int resid) {\n\t\tm_toastHandler.post(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tToast.makeText(InstrumentService.this, resid, Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t});\n\t}", "private void showToast(String msg) {\r\n Toast.makeText(Imprimir.this, msg, Toast.LENGTH_LONG).show();\r\n }", "@JavascriptInterface\r\n\t public void showToast(String toast) {\r\n\t Toast.makeText(mContext, toast, Toast.LENGTH_SHORT).show();\r\n\t }", "private static void showToastText(String infoStr, int TOAST_LENGTH) {\n Context context = null;\n\t\ttoast = getToast(context);\n\t\tTextView textView = (TextView) toast.getView().findViewById(R.id.tv_toast);\n\t\ttextView.setText(infoStr);\n textView.setTypeface(Typeface.SANS_SERIF);\n\t\ttoast.setDuration(TOAST_LENGTH);\n\t\ttoast.show();\n\t}", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "private void toastMessage(String message){\n Toast.makeText(this,message, Toast.LENGTH_SHORT).show();\n }", "void onMessageToast(String string);", "private void displayToast(String message) {\n Toast.makeText(OptionActivity.this, message, Toast.LENGTH_SHORT).show();\n }", "public void showToast(String msg){\n Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();\n }", "private void displayToast(CharSequence text){\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }", "private void doToast() {\n\t\tEditText editText = (EditText) findViewById(R.id.edit_message);\r\n\t\tString message = editText.getText().toString();\r\n\t\t\r\n\t\t// Create and send toast\r\n\t\tContext context = getApplicationContext();\r\n\t\tint duration = Toast.LENGTH_SHORT;\r\n\t\tToast toast = Toast.makeText(context, message, duration);\r\n\t\ttoast.show();\r\n\t}", "private void showToast(String message){\n\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }", "public void makeToast(String name,int time){\n toast = new Toast(context);\n// toast.setGravity(Gravity.BOTTOM|Gravity.CENTER_HORIZONTAL , 0, SecretMessageApplication.get720WScale(240));\n toast.setDuration(time);\n// toast.setView(layout);\n toast.show();\n\n }", "public void toastSuccess(String mensagem){\n\n Context context = getApplicationContext();\n CharSequence text = mensagem;\n int duration = Toast.LENGTH_LONG;\n\n Toast toast = Toast.makeText(context, text, duration);\n\n View view = toast.getView();\n\n //Obtém o plano de fundo oval real do Toast e, em seguida, define o filtro de cores\n view.getBackground().setColorFilter(getResources().getColor(R.color.colorSuccess), PorterDuff.Mode.SRC_IN);\n\n //Obtém o TextView do Toast para que ele possa ser editado\n TextView newText = view.findViewById(android.R.id.message);\n newText.setShadowLayer(0, 0, 0, Color.TRANSPARENT);\n newText.setTextColor(getResources().getColor(R.color.colorWhite));\n\n toast.show();\n\n }", "public static void toastText(Context context, String s)\n\t{\n\t\tif(Utils.ConstantVars.canToastDebugText) \n\t\t\tToast.makeText(context, s, 2 * Toast.LENGTH_LONG).show();\n\t}", "@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }", "public void DisplayToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_SHORT).show();\n }", "private void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }", "private void showToast(final String message, final int toastLength) {\n post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(getActivity(), message, toastLength).show();\n }\n });\n }", "private void toastmessage(String message){\n Toast.makeText(Accountinfo.this,message,Toast.LENGTH_SHORT).show();\n }", "private void showToast(String msg) {\n Toast.makeText(getBaseContext(), msg, Toast.LENGTH_LONG).show();\n }", "public static void toastIt(Context context, Toast toast, CharSequence msg) {\n if(toast !=null){\n toast.cancel();\n }\n\n //Make and display new toast\n toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);\n toast.show();\n }", "public void showToast(String text){\n Toast.makeText(this,text,Toast.LENGTH_SHORT).show();\n }", "static void displayToast(Handler handler, final Context con, final String text, final int toast_length){\n\t\thandler.post(new Runnable(){\n\t\t\tpublic void run(){\n\t\t\t\tToast.makeText(con, text, toast_length).show();\n\t\t\t}\n\t\t});\n\t}", "public void showToast(View view) {\n // Initialize an object named 'toast' using the 'Toast' class\n Toast toast = Toast.makeText(this, R.string.toast_message, Toast.LENGTH_SHORT);\n\n // Use the method 'show()' under the 'Toast' class to show a message\n toast.show();\n }", "private void toast(String bread) {\n Toast.makeText(getActivity(), bread, Toast.LENGTH_SHORT).show();\n }", "public static void displayToast(Context context, String msg) {\n Toast.makeText(context, msg, Toast.LENGTH_LONG).show();\n\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "private void msg(String s) {\n Toast.makeText(getApplicationContext(), s, Toast.LENGTH_LONG).show();\n }", "protected void showToast(String message) {\n\tToast.makeText(this, message, Toast.LENGTH_SHORT).show();\n}", "private void toastMessage(String message) {\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n\n }", "private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }", "private void msg(String s)\n {\n Toast.makeText(getApplicationContext(),s,Toast.LENGTH_LONG).show();\n }", "private void makeToast(String message){\n Toast.makeText(SettingsActivity.this, message, Toast.LENGTH_LONG).show();\n }", "public static void showToast(Context context, String message, int duration) {\n\n if (message.contains(\"任务\") && !getTopActivity(context).contains(\"HomeActivity\")) {\n return;\n }\n\n if (sIsAllowShow) {\n Toast toast = new Toast(context);\n View view = LayoutInflater.from(context).inflate(R.layout.toast_universal, null);\n TextView messageText = view.findViewById(R.id.toast_universal_message_text);\n messageText.setText(message);\n toast.setDuration(duration);\n toast.setView(view);\n toast.setGravity(Gravity.CENTER, 0, 0);\n toast.show();\n }\n }", "public void showToast(View clickedButton) {\n String greetingText = getString(R.string.greeting_text);\n Toast tempMessage\n = Toast.makeText(this, greetingText,\n Toast.LENGTH_SHORT);\n tempMessage.show();\n }", "private void makeToast(String string) {\n\t\tToast.makeText(this, string, Toast.LENGTH_SHORT).show();\r\n\r\n\t}", "private void displayToast() {\n if(getActivity() != null && toast != null) {\n Toast.makeText(getActivity(), toast, Toast.LENGTH_LONG).show();\n toast = null;\n }\n }", "private static void showToast(String stringToDisplay, Context context) {\n Toast.makeText(context, stringToDisplay, Toast.LENGTH_SHORT).show();\n }", "private void displayToast(String message) {\n\n //get the LayoutInflater and inflate the custom_toast layout\n LayoutInflater view = getLayoutInflater();\n View layout = view.inflate(R.layout.toast, null);\n\n //get the TextView from the custom_toast layout\n TextView text = layout.findViewById(R.id.txtMessage);\n text.setText(message);\n\n //create the toast object, set display duration,\n //set the view as layout that's inflated above and then call show()\n Toast toast = new Toast(getApplicationContext());\n toast.setDuration(Toast.LENGTH_LONG);\n toast.setView(layout);\n toast.show();\n }", "public void displayToast(String message) {\n displayToast(message, true);\n }", "private void showToast(String message) {\n\t\tToast toast = Toast.makeText(getApplicationContext(), message,\n\t\t\t\tToast.LENGTH_SHORT);\n\n\t\ttoast.setGravity(Gravity.CENTER | Gravity.CENTER_HORIZONTAL, 0, 0);\n\t\ttoast.show();\n\t}", "private void displayToast(String paintingDescription) {\n Toast.makeText(this, paintingDescription, Toast.LENGTH_SHORT).show();\n }", "public static void showToast(Context context, String msg) {\n Toast.makeText(context, \"\" + msg, Toast.LENGTH_LONG).show();\n\n }", "protected void showToast(CharSequence text) {\r\n\t Context context = getApplicationContext();\r\n\t int duration = Toast.LENGTH_SHORT;\r\n\t \r\n\t Toast toast = Toast.makeText(context, text, duration);\r\n\t toast.show();\r\n\t}", "private void displayToast(String message) {\n Toast.makeText(getLayoutInflater().getContext(), message, Toast.LENGTH_SHORT).show();\n }", "public void displayToastMessage(String msg) {\n\t\tToast toast = Toast.makeText(context, msg, Toast.LENGTH_SHORT);\n\t\ttoast.setGravity(Gravity.CENTER, 0, 0);\n\t\ttoast.show();\n\t}", "public void ting(String msg) {\r\n\t\tToast.makeText(this, msg, Toast.LENGTH_SHORT).show();\r\n\t}", "public static void showToast(Context context, String text) {\n //Toast.makeText(context, text, Toast.LENGTH_SHORT).show();\n showToastAtCenter(context, text);\n }", "private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "public void makeToast(String string) {\n Toast.makeText(this, string, Toast.LENGTH_LONG).show();\n }", "protected void showToast(String string)\r\n\t{\n\t\tToast.makeText(MainActivity.this, string, Toast.LENGTH_SHORT).show();\r\n\t}", "public void showToast(String text)\n {\n Text icon = GlyphsDude.createIcon(FontAwesomeIconName.CHECK_CIRCLE,\"1.5em\");\n icon.setFill(Color.WHITE);\n Label l = new Label(text) ;\n l.setTextFill(Color.WHITE);\n l.setGraphic(icon);\n snackbar = new JFXSnackbar(PrinciplePane);\n snackbar.enqueue( new JFXSnackbar.SnackbarEvent(l));\n }", "private void toastWithTimer(String toToast, boolean important)\n {\n Date timeNow = new Date();\n boolean isAfter = timeNow.after(lastToastFinishes); //did we already pass the last toast finish time?\n\n int toastTime = important ? (int) ((toToast.length() / 75.0) * 2500 + 1000)\n : 1000;\n if (toastTime > 3500) // max toast time is 3500...\n toastTime = 3500;\n\n final int toastTimeFinal = toastTime;\n final Toast toast = Toast.makeText(this, toToast,\n Toast.LENGTH_LONG);\n\n\n if (isAfter)\n {\n toast.show();\n {\n Handler toastCanceller = new Handler();\n toastCanceller.postDelayed(new Runnable()\n {\n @Override\n public void run()\n {\n toast.cancel();\n }\n }, toastTimeFinal);\n }\n // set for when this toast will finish\n lastToastFinishes = simpleUtils.addMillisec(timeNow, toastTime);\n }\n else // if not, need to take care of delay for start as well\n {\n int startIn = simpleUtils.subtractDatesInMillisec(lastToastFinishes, timeNow);//lastToastFinishes - timeNow;\n Handler toastStarter = new Handler();\n toastStarter.postDelayed(new Runnable()\n {\n @Override\n public void run()\n {\n toast.show();\n Handler toastCanceller = new Handler();\n toastCanceller.postDelayed(new Runnable()\n {\n @Override\n public void run()\n {\n toast.cancel();\n }\n }, toastTimeFinal);\n\n }\n }, startIn);\n // set for when this toast will finish\n lastToastFinishes = simpleUtils.addMillisec(lastToastFinishes, toastTime);\n }\n\n }", "private void makeToast(String message, boolean longToast) {\n\t\tif (longToast)\t{ Toast.makeText(this, message, Toast.LENGTH_LONG).show(); }\n\t\telse\t\t\t{ Toast.makeText(this, message, Toast.LENGTH_SHORT).show(); }\n\t}", "public void showToastMessage(String str) {\n Toast.makeText(self, str, Toast.LENGTH_SHORT).show();\n }", "public void displayToast(String message) {\n Toast.makeText(getApplicationContext(), message,\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void toastSemEnderecos() {\n Toast.makeText(MainActivity.this, R.string.semEndereco, Toast.LENGTH_SHORT).show();\n }", "public void onToast (View view)\r\n\t{\r\n\t\t// Respond to the button click\r\n\t\tdoToast ();\r\n\t}", "@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }", "public void displayToast(String message) {\n //Todo: Add Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show(); to @displayToast method\n Log.d(TAG, message);\n }", "public void cT(String s) { \r\n\t\tToast.makeText(this, s, Toast.LENGTH_SHORT).show();\r\n\t}", "public void showToast(Boolean usernameTaken) {\n String action = \"\";\n if (usernameTaken) {\n action = \"Username is already taken\";\n } else {\n action = \"An error has occurred. Please try again.\";\n }\n Toast t = Toast.makeText(this, action,\n Toast.LENGTH_SHORT);\n t.setGravity(Gravity.TOP, Gravity.CENTER, 150);\n t.show();\n }", "@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }", "public void toast (String msg, boolean longLength)\n {\n Toast.makeText (getApplicationContext(), msg,\n (longLength ? Toast.LENGTH_LONG : Toast.LENGTH_SHORT)\n ).show ();\n }", "public void showToast(final String message){\n\t runOnUiThread(new Runnable() {\n\t public void run()\n\t {\n\t Toast.makeText(VisitMultiplayerGame.this, message, Toast.LENGTH_SHORT).show();\n\t }\n\t });\n\t}", "private void logAndToast(String msg) {\n Log.d(TAG, msg);\n if (logToast != null) {\n logToast.cancel();\n }\n logToast = Toast.makeText(this, msg, Toast.LENGTH_LONG);\n logToast.show();\n }", "@Override\n public void run() {\n setToast(\"연결이 종료되었습니다.\");\n }", "public void toastKickoff(String message) {\n Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n }", "private void showToast(String text, int length) {\r\n if (toast != null)\r\n toast.cancel();\r\n\r\n toast = Toast.makeText(this, text, length);\r\n toast.show();\r\n }", "public void displayToast(int resId) {\n displayToast(getString(resId));\n }" ]
[ "0.8179014", "0.79442376", "0.79442376", "0.78400075", "0.7833336", "0.7829676", "0.77597684", "0.77506953", "0.7746226", "0.77438796", "0.77337164", "0.770409", "0.7630072", "0.7575719", "0.7573198", "0.7553679", "0.7516962", "0.75081503", "0.748935", "0.748935", "0.74662226", "0.744679", "0.7445965", "0.7437197", "0.74309814", "0.74209964", "0.74209964", "0.7412937", "0.7411154", "0.7405881", "0.740453", "0.7396038", "0.73953104", "0.73953104", "0.73340684", "0.732892", "0.7324767", "0.73029983", "0.72976327", "0.7294988", "0.72832775", "0.72800374", "0.72714597", "0.72459406", "0.72445494", "0.72288734", "0.72254264", "0.7221726", "0.720768", "0.71992546", "0.7190255", "0.71898746", "0.7179616", "0.71766126", "0.71686935", "0.71677697", "0.71677697", "0.71677697", "0.71642876", "0.7160119", "0.71570325", "0.71570325", "0.7149521", "0.7131139", "0.71143436", "0.7108698", "0.7102225", "0.7099438", "0.70815223", "0.7075323", "0.7057793", "0.7048928", "0.7026223", "0.70235336", "0.7001815", "0.6998668", "0.6997396", "0.6993665", "0.6987648", "0.69758564", "0.6963419", "0.6952751", "0.6952444", "0.6950397", "0.6935036", "0.69297385", "0.6929375", "0.69207567", "0.69097316", "0.6898276", "0.68972325", "0.6885696", "0.68841314", "0.687659", "0.68703336", "0.6864659", "0.68607146", "0.68493944", "0.6845389", "0.684129" ]
0.7696469
12
The class holding records for this type
@Override public Class<SystemSettingsCatogreyRecord> getRecordType() { return SystemSettingsCatogreyRecord.class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "public Class<?> getRecordClass() \n\t{\n\t return recordClass ;\n\t}", "public DataRecord() {\n super(DataTable.DATA);\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "public Record() {\n data = new int[DatabaseManager.fieldNames.length];\n }", "@Override\n public Class<PgClassRecord> getRecordType() {\n return PgClassRecord.class;\n }", "@Override\n public Class<ModelRecord> getRecordType() {\n return ModelRecord.class;\n }", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "public ARecord() {\n super(A.A);\n }", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "public ObjectRecord() {\n\t\tsuper(org.jooq.test.hsqldb.generatedclasses.tables.Object.OBJECT);\n\t}", "public WERecordDataModel()\n\t{\n\t\tsuper();\n\t\tsetEqFileName(RECORD_NAME);\n\t\tinitMessages();\n\t}", "public Record toRecord() {\n return new Record().setColumns(this);\n }", "DataHRecordData() {}", "@Override\n public Class<ResourcesRecord> getRecordType() {\n return ResourcesRecord.class;\n }", "public GO_RecordType() {\n }", "@Override\n public Class<QsRecord> getRecordType() {\n return QsRecord.class;\n }", "public ItemRecord() {\n super(Item.ITEM);\n }", "public Record getRecord() {\n return record;\n }", "public Record getRecord() {\n return record;\n }", "@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}", "@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}", "@Override\n public Class<LinearmodelRecord> getRecordType() {\n return LinearmodelRecord.class;\n }", "@JsonProperty(\"Records\") abstract List<?> getRecords();", "public Item_Record() {\n super(Item_.ITEM_);\n }", "@Override\n public Class<MytableRecord> getRecordType() {\n return MytableRecord.class;\n }", "@Override\n protected Class<RecordType> getBoundType() {\n return RecordType.class;\n }", "@Override\n public Class<PatientRecord> getRecordType() {\n return PatientRecord.class;\n }", "public interface CollectionRecord {\n\n\t/**\n\t * Gets the id attribute of the CollectionRecord object\n\t *\n\t * @return The id value\n\t */\n\tpublic String getId();\n\n\n\t/**\n\t * Gets the setSpec attribute of the CollectionRecord object\n\t *\n\t * @return The setSpec value\n\t */\n\tpublic String getSetSpec();\n\n\n\t/**\n\t * Gets the metadataHandle attribute of the CollectionRecord object\n\t *\n\t * @param collectionSetSpec setSpec (e.g., \"dcc\")\n\t * @return The metadataHandle value\n\t * @exception Exception if there is a webservice error\n\t */\n\tpublic String getMetadataHandle(String collectionSetSpec) throws Exception;\n\n\n\t/**\n\t * Gets the handleServiceBaseUrl attribute of the CollectionRecord object\n\t *\n\t * @return The handleServiceBaseUrl value\n\t */\n\tpublic String getHandleServiceBaseUrl();\n\n\t/* \tpublic String getNativeFormat();\n\tpublic DcsDataRecord getDcsDataRecord();\n\tpublic MetaDataFramework getMetaDataFramework();\n\tpublic Document getLocalizedDocument(); */\n}", "@Override\n\tpublic Class<QuotesRecord> getRecordType() {\n\t\treturn QuotesRecord.class;\n\t}", "@Override\n public Class<AnalysisRecord> getRecordType() {\n return AnalysisRecord.class;\n }", "public Record() {\n this.symptoms = new LinkedHashSet<>();\n this.diagnoses = new LinkedHashSet<>();\n this.prescriptions = new LinkedHashSet<>();\n }", "public OpenERPRecordSet() {\r\n\t\trecords = new Vector<OpenERPRecord>();\r\n\t}", "@Override\n public Class<QuestionForBuddysRecord> getRecordType() {\n return QuestionForBuddysRecord.class;\n }", "public QuestionsRecord() {\n\t\tsuper(sooth.entities.tables.Questions.QUESTIONS);\n\t}", "public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }", "public GenericData.Record serialize() {\n return null;\n }", "public GenericTcalRecord() {\n this(-1);\n }", "public StudentRecord() {\n\t\tscores = new ArrayList<>();\n\t\taverages = new double[5];\n\t}", "@Override\n public Class<CarmodelRecord> getRecordType() {\n return CarmodelRecord.class;\n }", "@Override\n public Class<MemberRecord> getRecordType() {\n return MemberRecord.class;\n }", "public BookRecord() {\n super(Book.BOOK);\n }", "@Override\n public Class<SearchLogsRecord> getRecordType() {\n return SearchLogsRecord.class;\n }", "@Override\n public Class<EasytaxTaxationsRecord> getRecordType() {\n return EasytaxTaxationsRecord.class;\n }", "public SalesRecords() {\n super();\n }", "public SongRecord(){\n\t}", "@Override\n public Class<LangsRecord> getRecordType() {\n return LangsRecord.class;\n }", "public PersonRecord(){\n\t\tlistNames = new ArrayList<String>();\n\t}", "@Override\n public Class<RoomRecord> getRecordType() {\n return RoomRecord.class;\n }", "@Override\n public Class<CalcIndicatorAccRecordInstanceRecord> getRecordType() {\n return CalcIndicatorAccRecordInstanceRecord.class;\n }", "public ArrayList<Record> getRecords() {\r\n\t\treturn records;\r\n\t}", "@Override\n public Class<CourseRecord> getRecordType() {\n return CourseRecord.class;\n }", "@Override\n public Class<CabTripDataRecord> getRecordType() {\n return CabTripDataRecord.class;\n }", "@Override\n public Class<TripsRecord> getRecordType() {\n return TripsRecord.class;\n }", "public Item_Record(Integer _Id_, String name_, String description_, String code_, Double price_, Double retailPrice_, Double costPrice_, Object _Search_, String[] _Types_, String _LastModified_, Integer _Version_) {\n super(Item_.ITEM_);\n\n set(0, _Id_);\n set(1, name_);\n set(2, description_);\n set(3, code_);\n set(4, price_);\n set(5, retailPrice_);\n set(6, costPrice_);\n set(7, _Search_);\n set(8, _Types_);\n set(9, _LastModified_);\n set(10, _Version_);\n }", "@Override\r\n\tpublic List<T> getRecords() {\n\t\treturn null;\r\n\t}", "@Override\n public Class<StudentCourseRecord> getRecordType() {\n return StudentCourseRecord.class;\n }", "@Override\n public Class<ZTest1Record> getRecordType() {\n return ZTest1Record.class;\n }", "public OfcRecordRecord() {\n\t\tsuper(org.openforis.collect.persistence.jooq.tables.OfcRecord.OFC_RECORD);\n\t}", "public Class<gDBR> getRecordClass() \n {\n return this.rcdClass;\n }", "public RecordingRepository() {\r\n recordings = new ArrayList<>();\r\n recordingMap = new HashMap<>();\r\n recordingsByMeetingIDMap = new HashMap<>();\r\n update();\r\n }", "@Override\n public Class<GchCarLifeBbsRecord> getRecordType() {\n return GchCarLifeBbsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<nesi.jobs.tables.records.HourlyRecordRecord> getRecordType() {\n\t\treturn nesi.jobs.tables.records.HourlyRecordRecord.class;\n\t}", "@Override\n public Class<AccountRecord> getRecordType() {\n return AccountRecord.class;\n }", "public ExperimentRecord() {\n super(Experiment.EXPERIMENT);\n }", "public MealRecord() {\n\t\tsuper(Meal.MEAL);\n\t}", "@Override\n public Class<StaffRecord> getRecordType() {\n return StaffRecord.class;\n }", "public LateComingRecord() {\n\t\t}", "@Override\n public Class<AssessmentStudenttrainingworkflowRecord> getRecordType() {\n return AssessmentStudenttrainingworkflowRecord.class;\n }", "public UsersRecord() {\n super(Users.USERS);\n }", "@Override\n public Class<MyMenuRecord> getRecordType() {\n return MyMenuRecord.class;\n }", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "public AnswerRecord() {\n super(Answer.ANSWER);\n }", "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\n public Class<JournalEntryLineRecord> getRecordType() {\n return JournalEntryLineRecord.class;\n }", "@Override\n public Class<CommentsRecord> getRecordType() {\n return CommentsRecord.class;\n }", "@Override\n public Class<SpeedAlertsHistoryRecord> getRecordType() {\n return SpeedAlertsHistoryRecord.class;\n }", "@Override\n public Class<RatingsRecord> getRecordType() {\n return RatingsRecord.class;\n }", "@Override\n public Class<TOpLogsRecord> getRecordType() {\n return TOpLogsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<net.user1.union.zz.common.model.tables.records.ZzcronRecord> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic RelationClass() {\n\t\t\n\t\tParser pars = new Parser(FILE_NAME); \t\t\t\t\t\t\t\n\t\tint bucketlength = 0;\n\t\tbucketlength = (int) (pars.getNumOfLines()*BUCKET_MULTIPLIER);\n\t\tbuckets = (Node<k,v>[]) new Node<?,?>[bucketlength];\n\t\tpars.process(this);\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "@Override\n\tpublic java.lang.Class<persistencia.tables.records.AsientoRecord> getRecordType() {\n\t\treturn persistencia.tables.records.AsientoRecord.class;\n\t}", "@Override\n public Class<StatsRecord> getRecordType() {\n return StatsRecord.class;\n }", "@Override\n\tpublic Class<QuestionRecord> getRecordType() {\n\t\treturn QuestionRecord.class;\n\t}", "public MetricSchemaRecord() { }", "public PedidoRecord() {\n super(Pedido.PEDIDO);\n }", "@Override\n public Class<DynamicSchemaRecord> getRecordType() {\n return DynamicSchemaRecord.class;\n }", "public PersonRecord() {}", "@Override\n\tpublic Class<RentalRecord> getRecordType() {\n\t\treturn RentalRecord.class;\n\t}", "public PagesRecord() {\n super(Pages.PAGES);\n }", "@Override\n public Class<AbsenceRecord> getRecordType() {\n return AbsenceRecord.class;\n }", "@Override\n public Class<RedpacketConsumingRecordsRecord> getRecordType() {\n return RedpacketConsumingRecordsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<jooq.model.tables.records.TBasicSalaryRecord> getRecordType() {\n\t\treturn jooq.model.tables.records.TBasicSalaryRecord.class;\n\t}", "public YearlyRecord() {\n this.wordToCount = new HashMap<String, Integer>();\n this.wordToRank = new HashMap<String, Integer>();\n this.countToWord = new HashMap<Integer, Set<String>>();\n }" ]
[ "0.68004626", "0.66954035", "0.64103794", "0.6398801", "0.6398801", "0.6398801", "0.6398801", "0.6393993", "0.6354873", "0.6192012", "0.61258304", "0.61258304", "0.61258304", "0.6104736", "0.60470754", "0.60470754", "0.60470754", "0.6040716", "0.6029211", "0.6020949", "0.6008978", "0.60082155", "0.6006576", "0.59716636", "0.59703285", "0.5949182", "0.5949182", "0.59396815", "0.59396815", "0.5936131", "0.5935658", "0.5895888", "0.5895527", "0.5893964", "0.5884042", "0.58751285", "0.58681023", "0.5865894", "0.5864961", "0.5855157", "0.5851545", "0.58495414", "0.58392423", "0.58338994", "0.58154637", "0.58069575", "0.57927567", "0.578939", "0.57841045", "0.5779981", "0.5753099", "0.5741735", "0.57333666", "0.57321835", "0.5731796", "0.57317585", "0.572287", "0.5720141", "0.5712233", "0.56939065", "0.56927073", "0.5685293", "0.56847894", "0.5683809", "0.56834316", "0.56828403", "0.56666017", "0.56607187", "0.56579894", "0.5648655", "0.56438047", "0.5620551", "0.561873", "0.5609984", "0.55931836", "0.55871445", "0.5586237", "0.55789423", "0.55779636", "0.55737203", "0.55702287", "0.55692416", "0.5561011", "0.5559403", "0.5543905", "0.5541634", "0.5536858", "0.5522634", "0.5517553", "0.5517258", "0.5512109", "0.5509594", "0.55070907", "0.5496529", "0.54921997", "0.5491354", "0.5486711", "0.5481696", "0.54758567", "0.5471066", "0.54659206" ]
0.0
-1
Create a public.system_settings_catogrey table reference
public SystemSettingsCatogrey() { this(DSL.name("system_settings_catogrey"), null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTableSettings() {\n db.execSQL(\"create table if not exists \" + SETTINGS_TABLE_NAME + \" (\"\n + KEY_SETTINGS_ROWID + \" integer primary key, \"\n + KEY_SETTINGS_VALUE + \" integer not null);\");\n }", "public SystemSettingsCatogrey(Name alias) {\n this(alias, SYSTEM_SETTINGS_CATOGREY);\n }", "public SystemSettingsCatogrey(String alias) {\n this(DSL.name(alias), SYSTEM_SETTINGS_CATOGREY);\n }", "public void initializeCategory() {\n try {\n Connection connection = connect();\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS category (\"\n + \"id INTEGER PRIMARY KEY,\"\n + \"categoryUser varchar,\"\n + \"name varchar(100),\"\n + \"FOREIGN KEY (categoryUser) REFERENCES user(username));\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "private void createDB() {\n try {\n Statement stat = conn.createStatement();\n stat.execute(\"CREATE TABLE settings (name TEXT, state);\");\n stat.execute(\"CREATE TABLE expressions (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n stat.execute(\"CREATE TABLE summaries (id INTEGER PRIMARY KEY ASC, expression_id INTEGER, title TEXT, abstract TEXT);\");\n stat.execute(\"CREATE TABLE history (id INTEGER PRIMARY KEY ASC AUTOINCREMENT, expression TEXT);\");\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage());\n System.exit(0);\n }\n }", "private void createConfigTable(String table) throws SQLException {\n String s = new String(\"CREATE TABLE \"+table+\" ( \\nconfigName TEXT,\\nimageName TEXT,\\n imageWidth INT, \\n imageHeight INT, \\n minPixelX INT, \\n minPixelY INT, \\n maxPixelX INT, \\n maxPixelY INT, \\n minX INT,\\n minY INT,\\n maxX INT,\\n maxY INT)\");\n Connection con = DriverManager.getConnection(dbConnection, dbUser, dbPass);\n Statement stmt = con.createStatement();\n stmt.executeUpdate(s);\n stmt.close();\n con.close();\n }", "void setCategoryBits (long bits);", "SettingType createSettingType();", "private static void addSettingsPropertiesToSystem(){\n \t\tProperties props;\n \t\ttry {\n \t\t\tprops = SettingsLoader.loadSettingsFile();\n \t\t\tif(props != null){\n \t\t\t\tIterator it = props.keySet().iterator();\n \t\t\t\twhile(it.hasNext()){\n \t\t\t\t\tString key = (String) it.next();\n \t\t\t\t\tString value = props.getProperty(key);\n \t\t\t\t\tSystem.setProperty(key, value);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}", "@Override \r\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState); \r\n addPreferencesFromResource(R.xml.preference);\r\n initPreferenceCategory(\"pref_key_allow_typedefine_commond\");\r\n }", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "VmSettingsType createVmSettingsType();", "public CatalogSettings() {\n init();\n }", "SystemPropertiesType createSystemPropertiesType();", "public static final String getAuthCollabOverKWTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authcollabkw_\" +shortname +\r\n\t\t\"(keyword varchar(255) NOT NULL, \" + \r\n\t\t\"author varchar(70) NOT NULL, \" + \r\n\t\t\" collabauth varchar(70) NOT NULL, \" +\r\n\t\t\"collabcnt int NOT NULL\" +\r\n\t\t\" ) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "@Override\n public String getCreate() {\n return \"CREATE TABLE IF NOT EXISTS StoreController (\\n\" +\n \"\\tstoreID INTEGER NOT NULL UNIQUE,\\n\" +\n \"\\tstoreShelves INTEGER NOT NULL,\\n\" +\n \"\\tnumberOfShelves INTEGER NOT NULL,\\n\" +\n \"\\tdiscountCounter INTEGER NOT NULL,\\n\" +\n \"\\ttypeCounter INTEGER NOT NULL,\\n\" +\n \"\\tcategoryCounter INTEGER NOT NULL,\\n\"+\n \"\\tFOREIGN KEY(\\\"storeID\\\") REFERENCES \\\"Branches\\\"(\\\"BID\\\"),\\n\" +\n \"\\tPRIMARY KEY(\\\"storeID\\\")\\n\" +\n \");\";\n }", "CategoriesType createCategoriesType();", "CategoriesType createCategoriesType();", "private Pane createSettings() {\n HBox row = new HBox(20);\n row.setAlignment(Pos.CENTER);\n Label langIcon = createIcon(\"icons/language.png\");\n Label themeIcon = createIcon(\"icons/theme.png\");\n\n ComboBox<Language> langSelect = new ComboBox<>();\n langSelect.getItems().addAll(UIController.Language.values());\n langSelect.setValue(UIController.Language.values()[0]);\n langSelect.setOnAction(e -> changeLanguage(langSelect.getValue()));\n\n ComboBox<Theme> themeSelect = new ComboBox<>();\n themeSelect.getItems().addAll(UIController.Theme.values());\n themeSelect.setValue(UIController.Theme.values()[0]);\n themeSelect.setOnAction(e -> changeTheme(themeSelect.getValue()));\n\n row.getChildren().addAll(langIcon, langSelect, themeIcon, themeSelect);\n\n return row;\n }", "@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}", "private void createTaskCategoryObject(Task task) throws SQLException {\n for (Category category : categoriesOnTask) {\n taskCategoryDao.create(new TaskCategory(task, category));\n }\n }", "int wkhtmltoimage_set_global_setting(PointerByReference settings, String name, String value);", "public void readPropertiesfileForcrud(SystemAdmin sysadmin) {\n\t\tString path = context.getRealPath(\"/\");\n\t\tString dbpath = path + Utility.DB_PATH;\n\t\tSystem.out.println(\"================path===========\" + dbpath);\n\t\tFileInputStream fileInputStreamSystemSettings = null;\n\t\tOutputStream output = null;\n\t\tProperties prop = new Properties();\n\t\ttry {\n\t\t\t// String Dbrealpath=dbpath\n\t\t\tfileInputStreamSystemSettings = new FileInputStream(dbpath);\n\t\t\ttry {\n\t\t\t\tprop.load(fileInputStreamSystemSettings);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfileInputStreamSystemSettings.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tString URL = \"jdbc:mysql://\" + sysadmin.getServerip() + \":\" + sysadmin.getPort() + \"/\"\n\t\t\t\t\t+ sysadmin.getDatabasename();\n\n\t\t\t// set the properties new value\n\t\t\tprop.setProperty(\"jdbc.url\", URL);\n\t\t\tprop.setProperty(\"jdbc.username\", sysadmin.getUsername());\n\t\t\tprop.setProperty(\"jdbc.password\", sysadmin.getPassword());\n\t\t\tprop.setProperty(\"jdbc.driver\", \"com.mysql.jdbc.Driver\");\n\t\t\tprop.setProperty(\"jdbc.dbconfig\", \"Y\");\n\t\t\toutput = new FileOutputStream(dbpath);\n\t\t\tlogger.info(\"=========================NEW PROPERTIES=========================\");\n\t\t\tlogger.info(\" jdbc.driver \" + prop.getProperty(\"jdbc.driver\"));\n\t\t\tlogger.info(\" jdbc.url \" + prop.getProperty(\"jdbc.url\"));\n\t\t\tlogger.info(\" jdbc.username \" + prop.getProperty(\"jdbc.username\"));\n\t\t\tlogger.info(\" jdbc.password \" + prop.getProperty(\"jdbc.password\"));\n\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tprop.store(output, null);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\toutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "private SystemPropertiesRemoteSettings() {}", "CloudCategory(String value) {\n this.value = value;\n }", "private void createCategory() {\n Uri uri = TimeSeriesData.TimeSeries.CONTENT_URI;\n Intent i = new Intent(Intent.ACTION_INSERT, uri);\n startActivityForResult(i, ARC_CATEGORY_CREATE);\n }", "@Override\n public Class<SystemSettingsCatogreyRecord> getRecordType() {\n return SystemSettingsCatogreyRecord.class;\n }", "public static void createColony(){\r\n try {\r\n //Figure out how big the colony and each generation should be - relative to the number of sets in the search space\r\n // Naieve - one ant for every set in sets, one generation\r\n\r\n //Create the colony\r\n while (colony.size() < colonySize) {\r\n colony.add(new Ant());\r\n }\r\n\r\n }catch(Exception e){\r\n System.out.println(\"ERROR in createColony\");\r\n System.out.println(\"Colony: \" + colony);\r\n System.out.println();\r\n System.out.println(e.toString());\r\n }\r\n }", "public UnaryCallSettings.Builder<CreateCatalogRequest, Catalog> createCatalogSettings() {\n return createCatalogSettings;\n }", "private void defaultvalues(){\n cat1 = new com.example.myapp.category();\n cat1.setCategory(\"Groceries\");\n cat1.setImage(\"https://i.imgur.com/XhTjOMu.png\");\n databaseReference.child(\"Groceries\").setValue(cat1);\n cat1 = new com.example.myapp.category();\n cat1.setCategory(\"Books\");\n cat1.setImage(\"https://i.imgur.com/U9tdGo6_d.webp?maxwidth=760&fidelity=grand\");\n databaseReference.child(\"Books\").setValue(cat1);\n cat1 = new com.example.myapp.category();\n cat1.setCategory(\"Furniture\");\n cat1.setImage(\"https://i.imgur.com/X0qnvfp.png\");\n databaseReference.child(\"Furniture\").setValue(cat1);\n cat1 = new com.example.myapp.category();\n cat1.setCategory(\"Appliances\");\n cat1.setImage(\"https://i.imgur.com/UpUzKwA.png\");\n databaseReference.child(\"Appliances\").setValue(cat1);\n cat1 = new com.example.myapp.category();\n\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}", "private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }", "private StorageSystemConfiguration() {\r\n super(IStorageSystemConfiguration.TYPE_ID);\r\n }", "CategoryType createCategoryType();", "public static long count(nitro_service service) throws Exception\r\n\t{\r\n\t\tsystem_settings obj = new system_settings();\r\n\t\toptions option = new options();\r\n\t\toption.set_count(true);\r\n\t\tsystem_settings[] response = (system_settings[])obj.get_resources(service, option);\r\n\t\tif (response != null && response.length > 0)\r\n\t\t\treturn response[0].__count;\r\n\t\treturn 0;\r\n\t}", "int wkhtmltoimage_set_global_setting(PointerByReference settings, Pointer name, Pointer value);", "public void createNewSchema() throws SQLException {\n ResultSet resultSet = databaseStatement.executeQuery(\"select count(datname) from pg_database\");\n int uniqueID = 0;\n if(resultSet.next()) {\n uniqueID = resultSet.getInt(1);\n }\n if(uniqueID != 0) {\n uniqueID++;\n databaseStatement.executeQuery(\"CREATE DATABASE OSM\"+uniqueID+\";\");\n }\n }", "public static void setSystemAttributes() throws InvalidDBTransferException {\n \texecuteInitialization(CHECK_ATTRIBUTES, INIT_ATTRIBUTES);\n }", "private RTable getJavaSystemPropertiesTable() {\n if (javaSystemPropertiesTable == null) {\n javaSystemPropertiesTable = new RTable();\n javaSystemPropertiesTable.setName(\"javaSystemPropertiesTable\");\n javaSystemPropertiesTable\n .setModelConfiguration(\"{/showTableheader true /autoTableheader false /showtooltip false /showIcons false /columns {{/result \\\"result=value\\\"/version \\\"2.0\\\"/tooltip \\\"\\\"/icon \\\"\\\"/header \\\"Name\\\"/field \\\"Name\\\"/columnWidth \\\"200\\\"}{/result \\\"result=value\\\"/version \\\"2.0\\\"/tooltip \\\"\\\"/icon \\\"\\\"/header \\\"Value\\\"/field \\\"Value\\\"/columnWidth \\\"500\\\"}}}\");\n }\n return javaSystemPropertiesTable;\n }", "private void createCDAccountsTable() {\n\t\ttry {\n\t\t\tStatement stmt = this.conn.createStatement();\n\t\t\tstmt.executeUpdate(\"CREATE TABLE cdAccounts \"\n\t\t\t\t\t+ \"(id BIGINT GENERATED ALWAYS AS IDENTITY ( START WITH 3000000001, INCREMENT BY 1 ), \" + \"owner INT, \"\n\t\t\t\t\t+ \"term INT, \" + \"balance DOUBLE, \" + \"intRate DOUBLE, \"\n\t\t\t\t\t+ \"timeCreated BIGINT, \" + \"lastPaidInterest DOUBLE, \"\n\t\t\t\t\t+ \"dateOfLastPaidInterest BIGINT)\");\n\t\t\tconn.commit();\n\t\t\tSystem.out.println(\"Created table cdAccounts\");\n\t\t} catch (SQLException sqle) {\n\t\t\tSystem.err.println(\"Creation of cdAccounts table FAILED\");\n\t\t\tSystem.err.println(sqle);\n\t\t}\n\t}", "public UnaryCallSettings<CreateCatalogRequest, Catalog> createCatalogSettings() {\n return createCatalogSettings;\n }", "public abstract void configureTables();", "@Transactional\n public abstract OnmsCategory createCategoryIfNecessary(String name);", "PointerByReference wkhtmltoimage_create_global_settings();", "tbls createtbls();", "public void initializeUser() {\n try {\n Connection connection = connect();\n\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS user (\"\n + \"id INTEGER PRIMARY KEY, \"\n + \"username VARCHAR(100),\"\n + \"password VARCHAR(100),\"\n + \"UNIQUE(username, password)\"\n + \");\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_coaching_tab);\r\n\r\n RelativeLayout rl = (RelativeLayout)findViewById(R.id.setting_menu);\r\n \r\n //settingView = new SettingView(this, this);\r\n rl.addView(settingView);\r\n }", "private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}", "public NodeSetting[] createSettings() { return new NodeSetting[] { new NodeSetting(\"radius\", \"focus.common.radius\", new NodeSetting.NodeSettingIntRange(1, 3)), new NodeSetting(\"duration\", \"focus.common.duration\", new NodeSetting.NodeSettingIntRange(5, 30)) }; }", "T setSystemProperty(String key, String value);", "@Override\n public void createMetaTable(Connection conn) throws PersistenceException {\n String sql = String.format(\"CREATE TABLE %1$s (%2$s %3$s NOT NULL)\", metaTableName, META_TABLE_DATA_COLUMN, config.dataColumnType());\n executeUpdateSql(conn, sql);\n updateMetaTable(conn);\n }", "public void createNewDataBase() {\n try (Connection conn = DriverManager.getConnection(url)) {\n if (conn != null) {\n DatabaseMetaData meta = conn.getMetaData();\n createNewTable();\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "UserSettings store(String key, String value);", "static public void set_category_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"category name:\"};\n\t\tEdit_row_window.attr_vals = new String[]{Edit_row_window.selected[0].getText(1)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct m.id, m.name, m.num_links, m.year_made \" +\n\t\t\t\t\" from curr_cinema_movies m, \" +\n\t\t\t\t\" curr_cinema_movie_tag mt\" +\n\t\t\t\t\" where mt.movie_id=m.id and mt.tag_id=\"+Edit_row_window.id+\n\t\t\t\t\" order by num_links desc \";\n\n\t\tEdit_row_window.not_linked_query = \" select distinct m.id, m.name, m.num_links, m.year_made \" +\n\t\t\t\t\" from curr_cinema_movies m \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"movie name\", \"rating\", \"release year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. release year:\";\n\t\tEdit_row_window.linked_category_name = \"MOVIES\";\n\t}", "public SchemataRecord() {\n\t\tsuper(com.davidm.mykindlenews.generated.jooq.information_schema.tables.Schemata.SCHEMATA);\n\t}", "Map<Long, List<String>> retrieveCategoriesForTargetTable(TargetTable ttable);", "public UserCatalog() {\n\t\tthis.userCat = new HashMap<>();\n\t}", "private static void createTypeDBHelper(Context context) {\n belongTypeDBHelper = BelongTypeDBHelper.getInstance(context,\n TablesName.TYPE_TABLE_NAME);\n }", "private void createAddonTable(SQLiteDatabase db) {\n // SQL statement to create addon table\n String CREATE_ADDON_TABLE = \"CREATE TABLE IF NOT EXISTS \" + ADDON_TABLE_NAME + \" (\" +\n NAME_ID + \" INTEGER PRIMARY KEY,\" +\n NAME_NAME + \" TEXT,\" +\n NAME_SLUG + \" TEXT,\" +\n NAME_DESCRIPTION + \" TEXT,\" +\n NAME_CREATED_AT + \" TEXT,\" +\n NAME_PUBLISHED_AT + \" TEXT,\" +\n NAME_DOWNLOADS + \" INTEGER,\" +\n NAME_SIZE + \" INTEGER,\" +\n NAME_MD5 + \" TEXT,\" +\n NAME_DOWNLOAD_LINK + \" TEXT,\" +\n NAME_CATEGORY + \" TEXT\" +\n \")\";\n // create addon table\n db.execSQL(CREATE_ADDON_TABLE);\n }", "public void createTableComplaintsData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tDatabaseMetaData d=con.getMetaData();\n\t\t\t\tResultSet rs=d.getTables(null,null,\"ComplaintsData\",null);\n\t\t\t\tif(rs.next())\n\t\t\t\t{\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData table exist\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tString Create_Table=\"create table ComplaintsData(Customer_Name varchar(100),Address varchar(100),Contact varchar(30),Product varchar(100),Serial_No varchar(50),Module_No varchar(50),Complaint_No varchar(50),Category varchar(30))\";\n\t\t\t\t\tPreparedStatement ps=con.prepareStatement(Create_Table);\n\t\t\t\t\tps.executeUpdate();\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData created successfully!\");\n\t\t\t\t}\n\t\t\t} catch (SQLException 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}", "public boolean createCustomTemperatureConfig() {\n TEMPERATURES.getConfig().save();\n return true;\n }", "private void buildSettingsMenu() {\r\n settingsMenu = new JMenu( Msgs.str( \"Settings\" ) );\r\n\r\n qMarkItem = new JCheckBoxMenuItem( Msgs.str( \"Qmarks\" ), qMarksOn );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_Q, Event.ALT_MASK );\r\n qMarkItem.setAccelerator( ks );\r\n qMarkItem.setMnemonic( 'Q' );\r\n qMarkItem.addActionListener( listener );\r\n\r\n newGameItem = new JMenuItem( Msgs.str( \"game.new\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_F2, 0 );\r\n newGameItem.setAccelerator( ks );\r\n newGameItem.addActionListener( listener );\r\n\r\n showSettingsItem = new JMenuItem( Msgs.str( \"settings.change\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_C, Event.ALT_MASK );\r\n showSettingsItem.setAccelerator( ks );\r\n showSettingsItem.setMnemonic( 'C' );\r\n showSettingsItem.addActionListener( listener );\r\n\r\n settingsMenu.add( qMarkItem );\r\n settingsMenu.add( newGameItem );\r\n settingsMenu.add( showSettingsItem );\r\n }", "public UnaryCallSettings.Builder<CreateDatabaseRequest, Database> createDatabaseSettings() {\n return createDatabaseSettings;\n }", "public Cgg_veh_categoria(){}", "public UnaryCallSettings.Builder<CreateTableRequest, Table> createTableSettings() {\n return createTableSettings;\n }", "public void createMiniKdcConf() {\n\t\tconf = MiniKdc.createConf();\n\t}", "@Override\n public void onCreatePreferences(Bundle bundle, String s) {\n addPreferencesFromResource(R.xml.settings_main);\n\n Preference orderBy = findPreference(getString(R.string.settings_order_by_key));\n bindPreferenceSummaryToValue(orderBy);\n\n Preference filterByCompany = findPreference(getString(R.string.settings_filter_by_company_key));\n bindPreferenceSummaryToValue(filterByCompany);\n\n Preference filterBySection = findPreference(getString(R.string.settings_filter_by_section_key));\n bindPreferenceSummaryToValue(filterBySection);\n }", "@Override\n\tpublic void creatConfigUI(Composite parent, Map<String, String> params) {\n\n\t}", "public void createTapTable(TableConfig tableConfig) throws ConfigurationException;", "@Insert({\r\n \"insert into `review_level_setting` (`id`, `ops_op`, \",\r\n \"`ops_op_label`, `ops_op_level`, \",\r\n \"`created_by`, `created_at`, \",\r\n \"`updated_by`, `updated_at`, \",\r\n \"`del_flg`)\",\r\n \"values (#{id,jdbcType=VARCHAR}, #{opsOp,jdbcType=VARCHAR}, \",\r\n \"#{opsOpLabel,jdbcType=VARCHAR}, #{opsOpLevel,jdbcType=VARCHAR}, \",\r\n \"#{createdBy,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, \",\r\n \"#{updatedBy,jdbcType=VARCHAR}, #{updatedAt,jdbcType=TIMESTAMP}, \",\r\n \"#{delFlg,jdbcType=VARCHAR})\"\r\n })\r\n int insert(ReviewLevelSetting record);", "public SchemataRecord() {\n super(Schemata.SCHEMATA);\n }", "public SystemConfigurations() {\n\t\tsetOs();\n\t\tsetFileSeparator();\n\t\tsetWorkDiretory();\n\t\t\n\t}", "public SettingsPreferenceStore(Settings base){\n\t\tthis.base = base;\n\t}", "public void setCatelogBased( boolean catelogBased )\n {\n this.catelogBased = catelogBased;\n }", "private void registerSettings()\r\n {\r\n m_tsm.addSetting(BOOLEAN, \"SpecPlayer\", \"off\");\r\n m_tsm.addSetting(STRING, \"SpeccedMsg\", \"none\");\r\n\r\n m_tsm.addSetting(BOOLEAN, \"ChangeShip\", \"off\");\r\n m_tsm.addSetting(INT, \"TargetShip\", \"3\");\r\n m_tsm.addSetting(STRING, \"ShipChgMsg\", \"none\");\r\n\r\n m_tsm.addSetting(BOOLEAN, \"ChangeFreq\", \"off\");\r\n m_tsm.addSetting(INT, \"TargetFreq\", \"1\");\r\n m_tsm.addSetting(STRING, \"FreqChgMsg\", \"none\");\r\n\r\n m_tsm.addSetting(INT, \"DelaySeconds\", \"0\");\r\n m_tsm.addSetting(BOOLEAN, \"EnableMS\", \"off\");\r\n\r\n m_tsm.restrictSetting(\"TargetShip\", 1, 8);\r\n m_tsm.restrictSetting(\"TargetFreq\", 0, 9999);\r\n m_tsm.restrictSetting(\"DelaySeconds\", 0, 1000);\r\n }", "private void createSslAdvancedSettingsSection( FormToolkit toolkit, Composite parent )\n {\n // Creation of the section, compacted\n Section section = toolkit.createSection( parent, Section.TITLE_BAR | Section.TWISTIE | Section.COMPACT );\n section.setText( Messages.getString( \"LdapLdapsServersPage.SslAdvancedSettings\" ) ); //$NON-NLS-1$\n section.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );\n Composite composite = toolkit.createComposite( section );\n toolkit.paintBordersFor( composite );\n GridLayout glayout = new GridLayout( 4, false );\n composite.setLayout( glayout );\n section.setClient( composite );\n\n // Enable LDAPS needClientAuth Checkbox\n needClientAuthCheckbox = toolkit.createButton( composite,\n Messages.getString( \"LdapLdapsServersPage.NeedClientAuth\" ), SWT.CHECK ); //$NON-NLS-1$\n needClientAuthCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 1, 1 ) );\n\n // Enable LDAPS wantClientAuth Checkbox. As the WantClientAuth is dependent on\n // the NeedClientAuth, we move it one column to the right\n toolkit.createLabel( composite, TABULATION );\n wantClientAuthCheckbox = toolkit.createButton( composite,\n Messages.getString( \"LdapLdapsServersPage.WantClientAuth\" ), SWT.CHECK ); //$NON-NLS-1$\n wantClientAuthCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 ) );\n\n // Ciphers Suite label \n Label ciphersLabel = toolkit.createLabel( composite, Messages.getString( \"LdapLdapsServersPage.CiphersSuite\" ), SWT.WRAP ); //$NON-NLS-1$\n setBold( ciphersLabel );\n ciphersLabel.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, glayout.numColumns, 1 ) );\n\n // Ciphers Suites Table Viewer\n ciphersSuiteTableViewer = new CheckboxTableViewer( new Table( composite, SWT.BORDER | SWT.CHECK ) );\n ciphersSuiteTableViewer.setContentProvider( new ArrayContentProvider() );\n ciphersSuiteTableViewer.setLabelProvider( new LabelProvider()\n {\n @Override\n public String getText( Object cipher )\n {\n if ( cipher instanceof SupportedCipher )\n {\n SupportedCipher supportedCipher = ( SupportedCipher ) cipher;\n\n return supportedCipher.getCipher();\n }\n\n return super.getText( cipher );\n }\n } );\n \n List<SupportedCipher> supportedCiphers = new ArrayList<>();\n \n for ( SupportedCipher supportedCipher : SupportedCipher.SUPPORTED_CIPHERS )\n {\n if ( supportedCipher.isJava8Implemented() )\n {\n supportedCiphers.add( supportedCipher );\n }\n }\n \n ciphersSuiteTableViewer.setInput( supportedCiphers );\n GridData ciphersSuiteTableViewerGridData = new GridData( SWT.FILL, SWT.NONE, true, false, glayout.numColumns, 5 );\n ciphersSuiteTableViewerGridData.heightHint = 60;\n ciphersSuiteTableViewer.getControl().setLayoutData( ciphersSuiteTableViewerGridData );\n\n // Enabled Protocols label \n Label protocolsLabel = toolkit.createLabel( composite, Messages.getString( \"LdapLdapsServersPage.EnabledProtocols\" ), SWT.WRAP ); //$NON-NLS-1$\n setBold( protocolsLabel );\n protocolsLabel.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, glayout.numColumns, 1 ) );\n\n // Enabled Protocols\n // SSL V3\n sslv3Checkbox = toolkit.createButton( composite, SSL_V3, SWT.CHECK ); //$NON-NLS-1$\n sslv3Checkbox.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false ) );\n\n // TLS 1.0\n tlsv1_0Checkbox = toolkit.createButton( composite, TLS_V1_0, SWT.CHECK ); //$NON-NLS-1$\n tlsv1_0Checkbox.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false ) );\n\n // TLS 1.1\n tlsv1_1Checkbox = toolkit.createButton( composite, TLS_V1_1, SWT.CHECK ); //$NON-NLS-1$\n tlsv1_1Checkbox.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false ) );\n \n // TLS 1.2\n tlsv1_2Checkbox = toolkit.createButton( composite, TLS_V1_2, SWT.CHECK ); //$NON-NLS-1$\n tlsv1_2Checkbox.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false ) );\n }", "public SemcProjectCategoryCustomizer() {\n initComponents();\n }", "private JTable getConfigurationTable() {\n if (configurationTable == null) {\n DefaultTableModel configurationModel = new DefaultTableModel() {\n public boolean isCellEditable(int row, int col) {\n return col == 1;\n }\n };\n configurationModel.addColumn(\"Key\");\n configurationModel.addColumn(\"Value\");\n configurationTable = new JTable(configurationModel);\n \n Enumeration keys = currentConfig.keys();\n while (keys.hasMoreElements()) {\n String key = (String) keys.nextElement();\n String value = currentConfig.getProperty(key);\n Vector row = new Vector(2);\n row.add(key);\n row.add(value);\n configurationModel.addRow(row);\n }\n }\n return configurationTable;\n }", "private Sysreferences() {\n\t\tsuper(\"sysreferences\", org.jooq.util.ase.sys.Dbo.DBO);\n\t}", "@Override\n public void onCreate(SQLiteDatabase db) {\n\n String createTableStatement = \"CREATE TABLE \" + pass_store +\n \" (SID INTEGER PRIMARY KEY AUTOINCREMENT, \" +\n column_url + \" TEXT, \" +\n column_password + \" TEXT, \" +\n column_status + \" BOOLEAN )\";\n\n db.execSQL(createTableStatement);\n\n }", "public static void initMembershipLiteConfigType() {\r\n \r\n if (GrouperConfig.retrieveConfig().propertyValueBoolean(\"membershipUpdateLiteTypeAutoCreate\", false)) {\r\n \r\n GrouperSession grouperSession = null;\r\n\r\n try {\r\n\r\n grouperSession = GrouperSession.startRootSession(false);\r\n\r\n GrouperSession.callbackGrouperSession(grouperSession, new GrouperSessionHandler() {\r\n\r\n public Object callback(GrouperSession grouperSession)\r\n throws GrouperSessionException {\r\n try {\r\n \r\n GroupType groupMembershipLiteSettingsType = GroupType.createType(grouperSession, \"grouperGroupMembershipSettings\", false);\r\n\r\n groupMembershipLiteSettingsType.addAttribute(grouperSession,\"grouperGroupMshipSettingsUrl\", false);\r\n \r\n\r\n } catch (Exception e) {\r\n throw new RuntimeException(e.getMessage(), e);\r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession);\r\n }\r\n return null;\r\n }\r\n\r\n });\r\n\r\n } catch (Exception e) {\r\n throw new RuntimeException(\"Problem adding membership lite type/attributes\", e);\r\n }\r\n\r\n \r\n }\r\n \r\n }", "private void createCatalogsTableIfNotExist() throws TranslationException\n {\n\tif(log.isDebugEnabled())\n\t log.debug(\"Checking/Creating catalogs table\");\n\n\tString sql = \"CREATE TABLE IF NOT EXISTS \" + PropertyLookup.getCatalogsTableName() + \" (\"\n\t\t + \"id int(10) unsigned NOT NULL AUTO_INCREMENT,\" + \"name varchar(255) NOT NULL,\"\n\t\t + \"release_date date NOT NULL,\" + \"version varchar(45) NOT NULL,\" + \"description text NOT NULL,\"\n\t\t + \"PRIMARY KEY (id),\" + \"KEY IDX_catalogs_name (name) USING HASH,\"\n\t\t + \"CONSTRAINT IDX_catalogs_name_release_date UNIQUE KEY (name,version,release_date)) \"\n\t\t + \"ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 COMMENT='Catalogs of entities.'\";\n\ttry\n\t{\n\t sqlConnector.closeConnection();\n\t sqlConnector.executeUpdate(sql);\n\t}\n\tcatch(SQLException e)\n\t{\n\t throw new TranslationException(\"Error accessing the catalogs table: \" + sql, e);\n\t}\n\tfinally\n\t{\n\t sqlConnector.closeConnection();\n\t}\n }", "public static void initTransportSettings()\n\t{\n\t\tString sql = \"DELETE FROM USER_TRANSPORT\";\n\t\tlogger.info(String.format(\"Remove Transport configuraiton from DB: %s\",sql));\n\t\t\n\t\tDBUtil.executeSQL(sql);\n\t\t\n\t\t//Insert FTP settings to DB.\n\t\tStringBuilder sqlBuilder = new StringBuilder();\n\t\tsqlBuilder.append(\"INSERT INTO USER_TRANSPORT(ID, FTPURL, FTPUSERNAME, FTPPASSWORD, FTPSAVEPATH, HTTPURL, HTTPUSERNAME, HTTPPASSWORD, USERID) \");\n\t\tsqlBuilder.append(\"VALUES(%d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d)\");\n\t\t\n\t\tsql = String.format(sqlBuilder.toString(), 1 , \n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"ftp_url\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"ftp_username\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"ftp_password\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"ftp_savepath\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"http_url\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"http_username\"),\n\t\t\t\t\t\t\tCommonUtil.getPropertyValue(\"http_password\"),\n\t\t\t\t\t\t\t1\n\t\t\t\t\t\t\t);\n\t\t\n\t\tlogger.info(String.format(\"Insert Transport conf to DB: %s\", sql));\n\t\t\n\t\tDBUtil.executeSQL(sql);\n\t}", "public void makeSettingsFile() {\n settingsData = new File (wnwData,\"settings.dat\");\n try {\n if (!settingsData.exists()) {\n settingsData.createNewFile();\n BufferedWriter bufferedWriter = new BufferedWriter(\n new FileWriter(settingsData));\n bufferedWriter.write(\"1 0\");\n bufferedWriter.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n settingsData.setWritable(true);\n }", "private void createSchemaInfo() {\n\t\tfor (String tableName : tableSchemas.keySet()) {\n\t\t\tERWinSchemaInfo schemaInfo = new ERWinSchemaInfo();\n\t\t\tschemaInfo.setType(\"user\");\n\t\t\tschemaInfo.setUniqueName(tableName);\n\t\t\tschemaInfos.put(tableName, schemaInfo);\n\t\t}\n\n\t\tinitCache();\n\t\tparseKeyGroupGroups();\n\n\t\tparseEntityProps();\n\t\tparseRelationGroups();\n\t\tparseAttributes();\n\n\t\tcreateSchemaDDL();\n\t}", "public void create() {\n\t\t\tdb.execSQL(AGENCYDB_CREATE+\".separete,.import agency.txt agency\");\n\t\t\tdb.execSQL(STOPSDB_CREATE+\".separete,.import stop_times.txt stop_times\");\n\t\t\t\n\t\t\t// Add 2 agencies for testing\n\t\t\t\n\t\t\t\n\t\t\tdb.setVersion(DATABASE_VERSION);\n\t\t}", "void updateTapTableReferences(TableConfig cfgTable, boolean createOnly) throws ConfigurationException;", "public CategoryRecord() {\n\t\tsuper(com.cellarhq.generated.tables.Category.CATEGORY);\n\t}", "private void saveSettings() throws SQLException {\n\t\tsetSetting(\"requests\", Integer.toString(requestCount));\n\t}", "@PostMapping(\"/api/gamesessions/settings\")\n public GameSessionSettings createGameSessionSettings(@RequestBody GameSessionSettings requestData) { \n GameSessionSettings settings = gameSessionSettingsDao.findById(requestData.getId());\n settings.setCategories(requestData.getCategories());\n gameSessionSettingsDao.persist(settings); \n return settings;\n }", "private void loadDefaultCategory() {\n CategoryTable category = new CategoryTable();\n String categoryId = category.generateCategoryID(db.getLastCategoryID());\n String categoryName = \"Food\";\n String type = \"Expense\";\n db.insertCategory(new CategoryTable(categoryId,categoryName,type));\n categoryId = category.generateCategoryID(db.getLastCategoryID());\n categoryName = \"Study\";\n type = \"Expense\";\n db.insertCategory(new CategoryTable(categoryId,categoryName,type));\n db.close();\n }", "@Override\n\tpublic Categories create(Categories cate) {\n\t\treturn categoriesDAO.create(cate);\n\t}", "public static void checkCategoryInDb() {\n try {\n Category category = Category.listAll(Category.class).get(0);\n\n } catch (Exception e) {\n Category undefinedCategory = new Category();\n undefinedCategory.setCategoryId(1);\n undefinedCategory.setCategoryName(\"Others\");\n undefinedCategory.save();\n }\n }", "private static void initSettings(TransferITModel model) {\n if (settingsfile.exists()) {\n try {\n ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream(settingsfile));\n Object[] readObjects = new Object[6];\n for (int x = 0; x < readObjects.length; x++) {\n readObjects[x] = objectInputStream.readUnshared();\n if (readObjects[x] == null) {\n return;\n }\n }\n model.putAll((Properties) readObjects[0]);\n\n model.setHostHistory((HashSet<String>) readObjects[1]);\n\n model.setUsernameHistory((HashMap<String, String>) readObjects[2]);\n\n model.setPasswordHistory((HashMap<String, String>) readObjects[3]);\n\n model.setUsers((HashMap<String, String>) readObjects[4]);\n\n model.setUserRights((HashMap<String, Boolean>) readObjects[5]);\n\n\n\n } catch (IOException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n }\n } else {\n model.addUser(\"anon\", \"anon\", false);\n }\n }", "@Override\r\n\tpublic void createTable(Connection con) throws SQLException {\r\n\t\tString sql = \"CREATE TABLE \" + tableName\r\n\t\t\t\t+ \"(pc_id integer, class_id varchar(20), level integer,\"\r\n\t\t\t\t+ \" PRIMARY KEY (pc_id,class_id,level) )\";\r\n\r\n\t\tif (DbUtils.doesTableExist(con, tableName)) {\r\n\r\n\t\t} else {\r\n\t\t\ttry (PreparedStatement ps = con.prepareStatement(sql);) {\r\n\t\t\t\tps.execute();\r\n\t\t\t}\r\n \r\n\t\t}\r\n\r\n\r\n\r\n\t\tString[] newInts = new String[] { \r\n\t\t\t\t\"hp_Increment\",};\r\n\t\tDAOUtils.createInts(con, tableName, newInts);\r\n\r\n\t}", "public void readPropertiesfileForDB(SystemAdmin sysadmin) {\n\t\tString path = context.getRealPath(\"/\");\n\t\tString dbpath = path + Utility.DB_PATH;\n\t\tlogger.info(\"=========================DB PATH=========================\" + dbpath);\n\t\tFileInputStream fileInputStreamSystemSettings = null;\n\t\tOutputStream output = null;\n\t\tProperties prop = new Properties();\n\t\ttry {\n\t\t\t// String Dbrealpath=dbpath\n\t\t\tfileInputStreamSystemSettings = new FileInputStream(dbpath);\n\t\t\ttry {\n\t\t\t\tprop.load(fileInputStreamSystemSettings);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfileInputStreamSystemSettings.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tString URL = \"jdbc:mysql://\" + sysadmin.getServerip() + \":\" + sysadmin.getPort();\n\t\t\t// set the properties new value\n\t\t\tprop.setProperty(\"jdbc.url\", URL);\n\t\t\tprop.setProperty(\"jdbc.username\", sysadmin.getUsername());\n\t\t\tprop.setProperty(\"jdbc.password\", sysadmin.getPassword());\n\t\t\tprop.setProperty(\"jdbc.driver\", \"com.mysql.jdbc.Driver\");\n\t\t\toutput = new FileOutputStream(dbpath);\n\t\t\tlogger.info(\"=========================NEW PROPERTIES=========================\");\n\t\t\tlogger.info(\" jdbc.driver \" +prop.getProperty(\"jdbc.driver\"));\n\t\t\tlogger.info(\" jdbc.url \" +prop.getProperty(\"jdbc.url\"));\n\t\t\tlogger.info(\" jdbc.username \" +prop.getProperty(\"jdbc.username\"));\n\t\t\tlogger.info(\" jdbc.password \" +prop.getProperty(\"jdbc.password\"));\n\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tprop.store(output, null);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\toutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "public CCA2KPABEmsk Setup(Type type){\n\t\tStdOut.println(\"Setup: System Setup.\");\n\t\tElement alpha = pairing.getZr().newRandomElement().getImmutable();\n\t\tCCA2KPABEmsk msk = new CCA2KPABEmsk(alpha);\n\t\tthis.pp = new CCA2KPABEpp(pairing, type, alpha);\n\t\treturn msk;\n\t}", "public void saveSettingsMode(int value) {\n SQLiteDatabase database = getReadableDatabase();\n\n String query = \"UPDATE Setting SET Mode = \" + value;\n\n database.execSQL(query);\n }", "public Creator_4_tables() {\n// this.sourceUnits = sourceUnits;\n sourceUnits = new HashMap<String, PojoSourceCreatorUnit>();\n sourceTemplatePool.logEnvOnSrcCreate = app.cfg.getCfgBean().logEnvOnSrcCreate;\n env.setLogLeading(\"--cfenv--\");\n }", "UserSettings store(HawkularUser user, String key, String value);" ]
[ "0.58797556", "0.58248603", "0.5810611", "0.49523658", "0.4708964", "0.4630052", "0.46286705", "0.45977294", "0.4597541", "0.4582708", "0.45365342", "0.44937968", "0.44776598", "0.44447333", "0.43345618", "0.43278098", "0.4312339", "0.4312339", "0.43079963", "0.43053743", "0.43000755", "0.42943752", "0.42660597", "0.42657965", "0.42655477", "0.42574817", "0.42464337", "0.42393443", "0.42376912", "0.4236934", "0.42169443", "0.42013264", "0.41905397", "0.4186616", "0.41442513", "0.41397396", "0.41391382", "0.41325414", "0.41319665", "0.4116305", "0.40944302", "0.40828168", "0.4081655", "0.40702978", "0.4069788", "0.40593955", "0.40239814", "0.4022497", "0.40181866", "0.40134165", "0.4012609", "0.40065086", "0.40022114", "0.39934504", "0.39927235", "0.39925116", "0.39900127", "0.39824292", "0.3979581", "0.39787793", "0.39759603", "0.3972267", "0.3971982", "0.39597028", "0.39552566", "0.3937239", "0.39339888", "0.393326", "0.39293545", "0.39260608", "0.39251235", "0.3923419", "0.3916103", "0.39154527", "0.39144057", "0.39131194", "0.3911487", "0.39103156", "0.3909951", "0.3909503", "0.3908098", "0.39074558", "0.39065164", "0.39035356", "0.39030346", "0.39011297", "0.38989908", "0.38980526", "0.3895215", "0.3892342", "0.38915673", "0.38903993", "0.3888931", "0.38875213", "0.3884723", "0.38793314", "0.38777205", "0.38718775", "0.38714933", "0.38669676" ]
0.6340957
0
Create an aliased public.system_settings_catogrey table reference
public SystemSettingsCatogrey(String alias) { this(DSL.name(alias), SYSTEM_SETTINGS_CATOGREY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SystemSettingsCatogrey(Name alias) {\n this(alias, SYSTEM_SETTINGS_CATOGREY);\n }", "public SystemSettingsCatogrey() {\n this(DSL.name(\"system_settings_catogrey\"), null);\n }", "public void createTableSettings() {\n db.execSQL(\"create table if not exists \" + SETTINGS_TABLE_NAME + \" (\"\n + KEY_SETTINGS_ROWID + \" integer primary key, \"\n + KEY_SETTINGS_VALUE + \" integer not null);\");\n }", "public static final String getAuthCollabOverKWTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authcollabkw_\" +shortname +\r\n\t\t\"(keyword varchar(255) NOT NULL, \" + \r\n\t\t\"author varchar(70) NOT NULL, \" + \r\n\t\t\" collabauth varchar(70) NOT NULL, \" +\r\n\t\t\"collabcnt int NOT NULL\" +\r\n\t\t\" ) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "void setCategoryBits (long bits);", "String getConnectionAlias();", "String getConnectionAlias();", "Map<Long, List<String>> retrieveCategoriesForTargetTable(TargetTable ttable);", "private Sysreferences() {\n\t\tsuper(\"sysreferences\", org.jooq.util.ase.sys.Dbo.DBO);\n\t}", "int wkhtmltoimage_set_global_setting(PointerByReference settings, String name, String value);", "private RTable getJavaSystemPropertiesTable() {\n if (javaSystemPropertiesTable == null) {\n javaSystemPropertiesTable = new RTable();\n javaSystemPropertiesTable.setName(\"javaSystemPropertiesTable\");\n javaSystemPropertiesTable\n .setModelConfiguration(\"{/showTableheader true /autoTableheader false /showtooltip false /showIcons false /columns {{/result \\\"result=value\\\"/version \\\"2.0\\\"/tooltip \\\"\\\"/icon \\\"\\\"/header \\\"Name\\\"/field \\\"Name\\\"/columnWidth \\\"200\\\"}{/result \\\"result=value\\\"/version \\\"2.0\\\"/tooltip \\\"\\\"/icon \\\"\\\"/header \\\"Value\\\"/field \\\"Value\\\"/columnWidth \\\"500\\\"}}}\");\n }\n return javaSystemPropertiesTable;\n }", "SettingType createSettingType();", "public abstract void configureTables();", "private void createConfigTable(String table) throws SQLException {\n String s = new String(\"CREATE TABLE \"+table+\" ( \\nconfigName TEXT,\\nimageName TEXT,\\n imageWidth INT, \\n imageHeight INT, \\n minPixelX INT, \\n minPixelY INT, \\n maxPixelX INT, \\n maxPixelY INT, \\n minX INT,\\n minY INT,\\n maxX INT,\\n maxY INT)\");\n Connection con = DriverManager.getConnection(dbConnection, dbUser, dbPass);\n Statement stmt = con.createStatement();\n stmt.executeUpdate(s);\n stmt.close();\n con.close();\n }", "private void buildSettingsMenu() {\r\n settingsMenu = new JMenu( Msgs.str( \"Settings\" ) );\r\n\r\n qMarkItem = new JCheckBoxMenuItem( Msgs.str( \"Qmarks\" ), qMarksOn );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_Q, Event.ALT_MASK );\r\n qMarkItem.setAccelerator( ks );\r\n qMarkItem.setMnemonic( 'Q' );\r\n qMarkItem.addActionListener( listener );\r\n\r\n newGameItem = new JMenuItem( Msgs.str( \"game.new\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_F2, 0 );\r\n newGameItem.setAccelerator( ks );\r\n newGameItem.addActionListener( listener );\r\n\r\n showSettingsItem = new JMenuItem( Msgs.str( \"settings.change\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_C, Event.ALT_MASK );\r\n showSettingsItem.setAccelerator( ks );\r\n showSettingsItem.setMnemonic( 'C' );\r\n showSettingsItem.addActionListener( listener );\r\n\r\n settingsMenu.add( qMarkItem );\r\n settingsMenu.add( newGameItem );\r\n settingsMenu.add( showSettingsItem );\r\n }", "@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }", "public Builder setBaseTable(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "private static void addSettingsPropertiesToSystem(){\n \t\tProperties props;\n \t\ttry {\n \t\t\tprops = SettingsLoader.loadSettingsFile();\n \t\t\tif(props != null){\n \t\t\t\tIterator it = props.keySet().iterator();\n \t\t\t\twhile(it.hasNext()){\n \t\t\t\t\tString key = (String) it.next();\n \t\t\t\t\tString value = props.getProperty(key);\n \t\t\t\t\tSystem.setProperty(key, value);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}", "void updateTapTableReferences(TableConfig cfgTable, boolean createOnly) throws ConfigurationException;", "public void initializeCategory() {\n try {\n Connection connection = connect();\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS category (\"\n + \"id INTEGER PRIMARY KEY,\"\n + \"categoryUser varchar,\"\n + \"name varchar(100),\"\n + \"FOREIGN KEY (categoryUser) REFERENCES user(username));\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public interface SettingsEventQuery {\r\n public static final String[] COLUMNS = {\"keyField\", \"keyValue\"};\r\n public static final String CREATE_TABLE = (\"CREATE TABLE IF NOT EXISTS Settings(\" + COLUMNS[0] + \" TEXT, \" + COLUMNS[1] + \" TEXT )\");\r\n public static final String DROP_TABLE = \"DROP TABLE IF EXISTS Settings\";\r\n public static final int KEY_FIELD = 0;\r\n public static final int KEY_VALUE = 1;\r\n public static final String TABLE = \"Settings\";\r\n }", "VmSettingsType createVmSettingsType();", "int wkhtmltoimage_set_global_setting(PointerByReference settings, Pointer name, Pointer value);", "public static final String getAuthKWRelTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authkw_\" +shortname +\r\n\t\t\"(author varchar(70) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" PRIMARY KEY (keyword,author)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "SystemPropertiesType createSystemPropertiesType();", "void setMetaLocal(Map<Integer, String> newMetaTable);", "public String getTable() {\n return \"museum_taxon\";\n }", "PointerByReference wkhtmltoimage_create_global_settings();", "TableOrAlias createTableOrAlias();", "private CalciteKuduTable getTable() {\n return (CalciteKuduTable) table;\n }", "public UnaryCallSettings.Builder<CreateCatalogRequest, Catalog> createCatalogSettings() {\n return createCatalogSettings;\n }", "public AllCollTypes(java.lang.String alias) {\n\t\tsuper(alias, org.jooq.util.oracle.sys.Sys.SYS, org.jooq.util.oracle.sys.tables.AllCollTypes.ALL_COLL_TYPES);\n\t}", "private void addColumnInPrimarySection(String key) {\n _queryBuilder.addColumn(key);\n _queryBuilder.addJoin(FilterMetaData.KEY_OUTER_JOIN_PATH_SECTION);\n _queryBuilder.addTable(TableMetaData.KEY_TABLE_PATH);\n _queryBuilder.addTable(TableMetaData.KEY_TABLE_SECTION);\n }", "private void addColumnInPath(String key) {\n _queryBuilder.addColumn(key);\n _queryBuilder.addTable(TableMetaData.KEY_TABLE_PATH);\n }", "public void setDbTable(String v) {this.dbTable = v;}", "public static void createColony(){\r\n try {\r\n //Figure out how big the colony and each generation should be - relative to the number of sets in the search space\r\n // Naieve - one ant for every set in sets, one generation\r\n\r\n //Create the colony\r\n while (colony.size() < colonySize) {\r\n colony.add(new Ant());\r\n }\r\n\r\n }catch(Exception e){\r\n System.out.println(\"ERROR in createColony\");\r\n System.out.println(\"Colony: \" + colony);\r\n System.out.println();\r\n System.out.println(e.toString());\r\n }\r\n }", "public DynamicSchemaTable(String alias) {\n this(alias, DYNAMIC_SCHEMA);\n }", "public UnaryCallSettings.Builder<CreateTableRequest, Table> createTableSettings() {\n return createTableSettings;\n }", "AliasVariable createAliasVariable();", "CloudCategory(String value) {\n this.value = value;\n }", "private SystemPropertiesRemoteSettings() {}", "private bildeBaseColumns() {\n\n }", "private void appendFullTableNameAndAlias(String stageName) {\n builder.append(getFullTableName(stageName)).append(AS).append(getTableAlias(stageName));\n }", "public static JSqResult sq_setconsttable(JSqVM v) {\r\n\t\treturn new JSqResult(sq_setconsttable_native(v.m_nativeHandle));\r\n\t}", "public SchemataRecord() {\n\t\tsuper(com.davidm.mykindlenews.generated.jooq.information_schema.tables.Schemata.SCHEMATA);\n\t}", "PivotCol createPivotCol();", "String getSettingByKey(String key);", "public void setUpContainersColumn(JTable table,\n TableColumn containerColumn, ArrayList<String> containers) {\n JComboBox<String> comboBox = new JComboBox<String>();\n for(String c : containers){\n comboBox.addItem(c);\n }\n comboBox.addItem(\"start.config\");\n \n containerColumn.setCellEditor(new DefaultCellEditor(comboBox));\n\n //Set up tool tips for the container cells.\n DefaultTableCellRenderer renderer =\n new DefaultTableCellRenderer();\n renderer.setToolTipText(\"Click for combo box\");\n containerColumn.setCellRenderer(renderer);\n }", "String getBaseTable();", "public SettingsPreferenceStore(Settings base){\n\t\tthis.base = base;\n\t}", "@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setCategoryHrefs(final Set<String> val) {\n categoryUids = val;\n }", "@Override\n public Class<SystemSettingsCatogreyRecord> getRecordType() {\n return SystemSettingsCatogreyRecord.class;\n }", "T setSystemProperty(String key, String value);", "@Override\n\tpublic void setTypeSettings(java.lang.String typeSettings) {\n\t\t_expandoColumn.setTypeSettings(typeSettings);\n\t}", "public Mytable(String alias) {\n this(DSL.name(alias), MYTABLE);\n }", "SysConfig findByCfConfigName(String cfConfigName);", "public CatalogSettings() {\n init();\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}", "private static void mapDbNames()\r\n { \r\n if (dbMap == null) {\r\n dbMap = new HashMap<String, String>();\r\n dbMap.put(\"tuition\", \"tuition\");\r\n dbMap.put(\"utilities\", \"utilities\");\r\n dbMap.put(\"fuel\", \"gas\");\r\n dbMap.put(\"registration\", \"Vehicle Registration\");\r\n dbMap.put(\"repair\", \"car repair\");\r\n dbMap.put(\"clothing\", \"clothing\");\r\n // maps asst types to the way they're currently in the database\r\n // used in the where clause for where tcf_assistance.description = ?\r\n }\r\n }", "private JTable getConfigurationTable() {\n if (configurationTable == null) {\n DefaultTableModel configurationModel = new DefaultTableModel() {\n public boolean isCellEditable(int row, int col) {\n return col == 1;\n }\n };\n configurationModel.addColumn(\"Key\");\n configurationModel.addColumn(\"Value\");\n configurationTable = new JTable(configurationModel);\n \n Enumeration keys = currentConfig.keys();\n while (keys.hasMoreElements()) {\n String key = (String) keys.nextElement();\n String value = currentConfig.getProperty(key);\n Vector row = new Vector(2);\n row.add(key);\n row.add(value);\n configurationModel.addRow(row);\n }\n }\n return configurationTable;\n }", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "CategoriesType createCategoriesType();", "CategoriesType createCategoriesType();", "public AgentTable(String alias) {\n this(alias, AGENT);\n }", "public String getConstantTableName(){\n return CONSTANT_TABLE_NAME;\n }", "private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n public String getCreate() {\n return \"CREATE TABLE IF NOT EXISTS StoreController (\\n\" +\n \"\\tstoreID INTEGER NOT NULL UNIQUE,\\n\" +\n \"\\tstoreShelves INTEGER NOT NULL,\\n\" +\n \"\\tnumberOfShelves INTEGER NOT NULL,\\n\" +\n \"\\tdiscountCounter INTEGER NOT NULL,\\n\" +\n \"\\ttypeCounter INTEGER NOT NULL,\\n\" +\n \"\\tcategoryCounter INTEGER NOT NULL,\\n\"+\n \"\\tFOREIGN KEY(\\\"storeID\\\") REFERENCES \\\"Branches\\\"(\\\"BID\\\"),\\n\" +\n \"\\tPRIMARY KEY(\\\"storeID\\\")\\n\" +\n \");\";\n }", "public final MF addAliasForType(Type type, String column, String actualPropertyName) {\n return addColumnPropertyForType(type, column, new RenameProperty(actualPropertyName));\n }", "static final SettingsModelString createNewColumnNameModel() {\n return new SettingsModelString(\"new_column_name\", null);\n }", "DataFrameColumn<R,C> col(C colKey);", "private Tables() {\n\t\tsuper(\"TABLES\", org.jooq.util.mysql.information_schema.InformationSchema.INFORMATION_SCHEMA);\n\t}", "public UnaryCallSettings<CreateCatalogRequest, Catalog> createCatalogSettings() {\n return createCatalogSettings;\n }", "Col createCol();", "int wkhtmltoimage_get_global_setting(PointerByReference settings, Pointer name, Pointer value, int vs);", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "public void setCourseTable(Courses value);", "public static void setDynamicDb(Context context, String dbDynamic) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.DYNAMIC_DATABASE, dbDynamic);\n editor.apply();\n }", "public Mytable(Name alias) {\n this(alias, MYTABLE);\n }", "public Builder setConnectionAlias(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n connectionAlias_ = value;\n onChanged();\n return this;\n }", "public Builder setConnectionAlias(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n connectionAlias_ = value;\n onChanged();\n return this;\n }", "public static final String getTopicTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_topic_\" +shortname +\r\n\t\t\"(tid varchar(50) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" istop tinyint UNSIGNED ZEROFILL, \" + // Is this keyword a top keyword for this topic\r\n\t\t\" PRIMARY KEY (tid,keyword)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "public void onCustomizeActionBar(ActionBar actionBar) {\n actionBar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.pc_main_activity_background_color)));\n actionBar.setDisplayOptions(28);\n ImageView imageView = new ImageView(this);\n imageView.setBackgroundResource(R.drawable.v_setting_icon);\n imageView.setContentDescription(getString(R.string.activity_title_settings));\n imageView.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n g.startWithFragment(NetworkDiagnosticsActivity.this.mActivity, NetworkDiagnosticsSettingFragment.class);\n }\n });\n actionBar.setEndView(imageView);\n }", "private Pane createSettings() {\n HBox row = new HBox(20);\n row.setAlignment(Pos.CENTER);\n Label langIcon = createIcon(\"icons/language.png\");\n Label themeIcon = createIcon(\"icons/theme.png\");\n\n ComboBox<Language> langSelect = new ComboBox<>();\n langSelect.getItems().addAll(UIController.Language.values());\n langSelect.setValue(UIController.Language.values()[0]);\n langSelect.setOnAction(e -> changeLanguage(langSelect.getValue()));\n\n ComboBox<Theme> themeSelect = new ComboBox<>();\n themeSelect.getItems().addAll(UIController.Theme.values());\n themeSelect.setValue(UIController.Theme.values()[0]);\n themeSelect.setOnAction(e -> changeTheme(themeSelect.getValue()));\n\n row.getChildren().addAll(langIcon, langSelect, themeIcon, themeSelect);\n\n return row;\n }", "private String getCloneSetTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET(\");\n \t\tbuilder.append(\"CLONE_SET_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"OWNER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"ELEMENTS TEXT NOT NULL,\");\n \t\tbuilder.append(\"NUMBER_OF_ELEMENTS INTEGER\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "interface Config {\n\n String DB_USERS = \"USERS\";\n String DB_USERS_DATA = \"DATA\";\n String DB_EQUIPMENTS = \"EQUIPMENTS\";\n String DB_MEMBERS = \"MEMBERS\";\n String DB_ORDERS = \"ORDERS\";\n}", "public SchemataRecord() {\n super(Schemata.SCHEMATA);\n }", "public void setColorants(Map<String, PDColorSpace> colorants) {\n/* 116 */ COSDictionary colorantDict = null;\n/* 117 */ if (colorants != null)\n/* */ {\n/* 119 */ colorantDict = COSDictionaryMap.convert(colorants);\n/* */ }\n/* 121 */ this.dictionary.setItem(COSName.COLORANTS, (COSBase)colorantDict);\n/* */ }", "@Override \r\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState); \r\n addPreferencesFromResource(R.xml.preference);\r\n initPreferenceCategory(\"pref_key_allow_typedefine_commond\");\r\n }", "private void updateTableDescriptorWithSFT() {\n if (StringUtils.isEmpty(customSFT)) {\n return;\n }\n\n TableDescriptorBuilder builder = TableDescriptorBuilder.newBuilder(tableDescriptor);\n builder.setValue(StoreFileTrackerFactory.TRACKER_IMPL, customSFT);\n for (ColumnFamilyDescriptor family : tableDescriptor.getColumnFamilies()) {\n ColumnFamilyDescriptorBuilder cfBuilder = ColumnFamilyDescriptorBuilder.newBuilder(family);\n cfBuilder.setConfiguration(StoreFileTrackerFactory.TRACKER_IMPL, null);\n cfBuilder.setValue(StoreFileTrackerFactory.TRACKER_IMPL, null);\n builder.modifyColumnFamily(cfBuilder.build());\n }\n tableDescriptor = builder.build();\n }", "@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 static String tableName() {\r\n return \"TB_UPP_CHECK_STORE_DIVERGENCE\";\r\n }", "SqlTables(String tableName){\n\t\t\t this.tableName = tableName; \n\t\t}", "public void readPropertiesfileForcrud(SystemAdmin sysadmin) {\n\t\tString path = context.getRealPath(\"/\");\n\t\tString dbpath = path + Utility.DB_PATH;\n\t\tSystem.out.println(\"================path===========\" + dbpath);\n\t\tFileInputStream fileInputStreamSystemSettings = null;\n\t\tOutputStream output = null;\n\t\tProperties prop = new Properties();\n\t\ttry {\n\t\t\t// String Dbrealpath=dbpath\n\t\t\tfileInputStreamSystemSettings = new FileInputStream(dbpath);\n\t\t\ttry {\n\t\t\t\tprop.load(fileInputStreamSystemSettings);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfileInputStreamSystemSettings.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tString URL = \"jdbc:mysql://\" + sysadmin.getServerip() + \":\" + sysadmin.getPort() + \"/\"\n\t\t\t\t\t+ sysadmin.getDatabasename();\n\n\t\t\t// set the properties new value\n\t\t\tprop.setProperty(\"jdbc.url\", URL);\n\t\t\tprop.setProperty(\"jdbc.username\", sysadmin.getUsername());\n\t\t\tprop.setProperty(\"jdbc.password\", sysadmin.getPassword());\n\t\t\tprop.setProperty(\"jdbc.driver\", \"com.mysql.jdbc.Driver\");\n\t\t\tprop.setProperty(\"jdbc.dbconfig\", \"Y\");\n\t\t\toutput = new FileOutputStream(dbpath);\n\t\t\tlogger.info(\"=========================NEW PROPERTIES=========================\");\n\t\t\tlogger.info(\" jdbc.driver \" + prop.getProperty(\"jdbc.driver\"));\n\t\t\tlogger.info(\" jdbc.url \" + prop.getProperty(\"jdbc.url\"));\n\t\t\tlogger.info(\" jdbc.username \" + prop.getProperty(\"jdbc.username\"));\n\t\t\tlogger.info(\" jdbc.password \" + prop.getProperty(\"jdbc.password\"));\n\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tprop.store(output, null);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\toutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "static String getAlterArtifactInstancesAddAccountIdConstraintTemplate() {\n // Each \"%s\" will be replaced with the relevant TYPE_instances table name.\n return \"ALTER TABLE %s\"\n + \" ADD CONSTRAINT account_id_fk foreign key (account_id) references accounts(id)\";\n }", "private String getCloneSetLinkTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET_LINK(\");\n \t\tbuilder.append(\"CLONE_SET_LINK_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"AFTER_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"ADDED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"DELETED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CO_CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CODE_FRAGMENT_LINKS TEXT NOT NULL\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "SystemConfiguration(String description)\n {\n this.mDescription = description;\n }", "public Syschecks(String alias) {\n this(alias, SYSCHECKS);\n }", "public void setCatelogBased( boolean catelogBased )\n {\n this.catelogBased = catelogBased;\n }", "String getSettingByKey(HawkularUser user, String key);", "private static String cdsIdToTableName( String cdsId ) {\n return cdsId.replaceFirst( \"^vizier:\", \"\" )\n .replaceAll( \"/\", \"_\" );\n }" ]
[ "0.60884964", "0.5881411", "0.47883844", "0.4694639", "0.4328974", "0.41062203", "0.41062203", "0.40861735", "0.40850455", "0.40512636", "0.4024057", "0.4015707", "0.40072083", "0.40003365", "0.39691916", "0.3969088", "0.39493227", "0.39491257", "0.39488456", "0.39480385", "0.3943864", "0.39430943", "0.39420003", "0.39390585", "0.39261618", "0.39153895", "0.39084345", "0.39049947", "0.39006498", "0.38879877", "0.38821176", "0.38804922", "0.3873938", "0.38636857", "0.38361064", "0.38336176", "0.38230747", "0.38063738", "0.37985966", "0.37945807", "0.3792623", "0.37859187", "0.37766472", "0.37682214", "0.37609816", "0.37504846", "0.37462407", "0.3743048", "0.37405205", "0.37390685", "0.37308767", "0.37272435", "0.37267804", "0.37200475", "0.37150168", "0.3711236", "0.37047315", "0.36987472", "0.36905265", "0.368509", "0.36844102", "0.36842155", "0.36842155", "0.36834657", "0.3681361", "0.3674963", "0.36567667", "0.36521178", "0.3649176", "0.36408162", "0.36400977", "0.36388412", "0.36376157", "0.3632281", "0.3626644", "0.3624812", "0.36245263", "0.36230955", "0.3619108", "0.3619108", "0.36146262", "0.3614068", "0.3611597", "0.36075228", "0.36052233", "0.36029512", "0.36027333", "0.36002442", "0.3599973", "0.35983548", "0.3592324", "0.35898316", "0.35893735", "0.35881248", "0.35856497", "0.35844037", "0.35841352", "0.35804513", "0.35778436", "0.35732" ]
0.6223586
0
Create an aliased public.system_settings_catogrey table reference
public SystemSettingsCatogrey(Name alias) { this(alias, SYSTEM_SETTINGS_CATOGREY); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public SystemSettingsCatogrey(String alias) {\n this(DSL.name(alias), SYSTEM_SETTINGS_CATOGREY);\n }", "public SystemSettingsCatogrey() {\n this(DSL.name(\"system_settings_catogrey\"), null);\n }", "public void createTableSettings() {\n db.execSQL(\"create table if not exists \" + SETTINGS_TABLE_NAME + \" (\"\n + KEY_SETTINGS_ROWID + \" integer primary key, \"\n + KEY_SETTINGS_VALUE + \" integer not null);\");\n }", "public static final String getAuthCollabOverKWTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authcollabkw_\" +shortname +\r\n\t\t\"(keyword varchar(255) NOT NULL, \" + \r\n\t\t\"author varchar(70) NOT NULL, \" + \r\n\t\t\" collabauth varchar(70) NOT NULL, \" +\r\n\t\t\"collabcnt int NOT NULL\" +\r\n\t\t\" ) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "void setCategoryBits (long bits);", "String getConnectionAlias();", "String getConnectionAlias();", "Map<Long, List<String>> retrieveCategoriesForTargetTable(TargetTable ttable);", "private Sysreferences() {\n\t\tsuper(\"sysreferences\", org.jooq.util.ase.sys.Dbo.DBO);\n\t}", "int wkhtmltoimage_set_global_setting(PointerByReference settings, String name, String value);", "private RTable getJavaSystemPropertiesTable() {\n if (javaSystemPropertiesTable == null) {\n javaSystemPropertiesTable = new RTable();\n javaSystemPropertiesTable.setName(\"javaSystemPropertiesTable\");\n javaSystemPropertiesTable\n .setModelConfiguration(\"{/showTableheader true /autoTableheader false /showtooltip false /showIcons false /columns {{/result \\\"result=value\\\"/version \\\"2.0\\\"/tooltip \\\"\\\"/icon \\\"\\\"/header \\\"Name\\\"/field \\\"Name\\\"/columnWidth \\\"200\\\"}{/result \\\"result=value\\\"/version \\\"2.0\\\"/tooltip \\\"\\\"/icon \\\"\\\"/header \\\"Value\\\"/field \\\"Value\\\"/columnWidth \\\"500\\\"}}}\");\n }\n return javaSystemPropertiesTable;\n }", "SettingType createSettingType();", "public abstract void configureTables();", "private void createConfigTable(String table) throws SQLException {\n String s = new String(\"CREATE TABLE \"+table+\" ( \\nconfigName TEXT,\\nimageName TEXT,\\n imageWidth INT, \\n imageHeight INT, \\n minPixelX INT, \\n minPixelY INT, \\n maxPixelX INT, \\n maxPixelY INT, \\n minX INT,\\n minY INT,\\n maxX INT,\\n maxY INT)\");\n Connection con = DriverManager.getConnection(dbConnection, dbUser, dbPass);\n Statement stmt = con.createStatement();\n stmt.executeUpdate(s);\n stmt.close();\n con.close();\n }", "@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }", "private void buildSettingsMenu() {\r\n settingsMenu = new JMenu( Msgs.str( \"Settings\" ) );\r\n\r\n qMarkItem = new JCheckBoxMenuItem( Msgs.str( \"Qmarks\" ), qMarksOn );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_Q, Event.ALT_MASK );\r\n qMarkItem.setAccelerator( ks );\r\n qMarkItem.setMnemonic( 'Q' );\r\n qMarkItem.addActionListener( listener );\r\n\r\n newGameItem = new JMenuItem( Msgs.str( \"game.new\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_F2, 0 );\r\n newGameItem.setAccelerator( ks );\r\n newGameItem.addActionListener( listener );\r\n\r\n showSettingsItem = new JMenuItem( Msgs.str( \"settings.change\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_C, Event.ALT_MASK );\r\n showSettingsItem.setAccelerator( ks );\r\n showSettingsItem.setMnemonic( 'C' );\r\n showSettingsItem.addActionListener( listener );\r\n\r\n settingsMenu.add( qMarkItem );\r\n settingsMenu.add( newGameItem );\r\n settingsMenu.add( showSettingsItem );\r\n }", "void updateTapTableReferences(TableConfig cfgTable, boolean createOnly) throws ConfigurationException;", "public Builder setBaseTable(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n baseTable_ = value;\n onChanged();\n return this;\n }", "public void initializeCategory() {\n try {\n Connection connection = connect();\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS category (\"\n + \"id INTEGER PRIMARY KEY,\"\n + \"categoryUser varchar,\"\n + \"name varchar(100),\"\n + \"FOREIGN KEY (categoryUser) REFERENCES user(username));\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "private static void addSettingsPropertiesToSystem(){\n \t\tProperties props;\n \t\ttry {\n \t\t\tprops = SettingsLoader.loadSettingsFile();\n \t\t\tif(props != null){\n \t\t\t\tIterator it = props.keySet().iterator();\n \t\t\t\twhile(it.hasNext()){\n \t\t\t\t\tString key = (String) it.next();\n \t\t\t\t\tString value = props.getProperty(key);\n \t\t\t\t\tSystem.setProperty(key, value);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (Exception e) {\n \t\t\tthrow new Error(e);\n \t\t}\n \t}", "public interface SettingsEventQuery {\r\n public static final String[] COLUMNS = {\"keyField\", \"keyValue\"};\r\n public static final String CREATE_TABLE = (\"CREATE TABLE IF NOT EXISTS Settings(\" + COLUMNS[0] + \" TEXT, \" + COLUMNS[1] + \" TEXT )\");\r\n public static final String DROP_TABLE = \"DROP TABLE IF EXISTS Settings\";\r\n public static final int KEY_FIELD = 0;\r\n public static final int KEY_VALUE = 1;\r\n public static final String TABLE = \"Settings\";\r\n }", "VmSettingsType createVmSettingsType();", "int wkhtmltoimage_set_global_setting(PointerByReference settings, Pointer name, Pointer value);", "public static final String getAuthKWRelTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authkw_\" +shortname +\r\n\t\t\"(author varchar(70) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" PRIMARY KEY (keyword,author)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "SystemPropertiesType createSystemPropertiesType();", "void setMetaLocal(Map<Integer, String> newMetaTable);", "public String getTable() {\n return \"museum_taxon\";\n }", "PointerByReference wkhtmltoimage_create_global_settings();", "TableOrAlias createTableOrAlias();", "private CalciteKuduTable getTable() {\n return (CalciteKuduTable) table;\n }", "public UnaryCallSettings.Builder<CreateCatalogRequest, Catalog> createCatalogSettings() {\n return createCatalogSettings;\n }", "public AllCollTypes(java.lang.String alias) {\n\t\tsuper(alias, org.jooq.util.oracle.sys.Sys.SYS, org.jooq.util.oracle.sys.tables.AllCollTypes.ALL_COLL_TYPES);\n\t}", "private void addColumnInPrimarySection(String key) {\n _queryBuilder.addColumn(key);\n _queryBuilder.addJoin(FilterMetaData.KEY_OUTER_JOIN_PATH_SECTION);\n _queryBuilder.addTable(TableMetaData.KEY_TABLE_PATH);\n _queryBuilder.addTable(TableMetaData.KEY_TABLE_SECTION);\n }", "private void addColumnInPath(String key) {\n _queryBuilder.addColumn(key);\n _queryBuilder.addTable(TableMetaData.KEY_TABLE_PATH);\n }", "public void setDbTable(String v) {this.dbTable = v;}", "public static void createColony(){\r\n try {\r\n //Figure out how big the colony and each generation should be - relative to the number of sets in the search space\r\n // Naieve - one ant for every set in sets, one generation\r\n\r\n //Create the colony\r\n while (colony.size() < colonySize) {\r\n colony.add(new Ant());\r\n }\r\n\r\n }catch(Exception e){\r\n System.out.println(\"ERROR in createColony\");\r\n System.out.println(\"Colony: \" + colony);\r\n System.out.println();\r\n System.out.println(e.toString());\r\n }\r\n }", "public DynamicSchemaTable(String alias) {\n this(alias, DYNAMIC_SCHEMA);\n }", "public UnaryCallSettings.Builder<CreateTableRequest, Table> createTableSettings() {\n return createTableSettings;\n }", "AliasVariable createAliasVariable();", "CloudCategory(String value) {\n this.value = value;\n }", "private SystemPropertiesRemoteSettings() {}", "private bildeBaseColumns() {\n\n }", "private void appendFullTableNameAndAlias(String stageName) {\n builder.append(getFullTableName(stageName)).append(AS).append(getTableAlias(stageName));\n }", "public static JSqResult sq_setconsttable(JSqVM v) {\r\n\t\treturn new JSqResult(sq_setconsttable_native(v.m_nativeHandle));\r\n\t}", "public SchemataRecord() {\n\t\tsuper(com.davidm.mykindlenews.generated.jooq.information_schema.tables.Schemata.SCHEMATA);\n\t}", "PivotCol createPivotCol();", "String getSettingByKey(String key);", "public void setUpContainersColumn(JTable table,\n TableColumn containerColumn, ArrayList<String> containers) {\n JComboBox<String> comboBox = new JComboBox<String>();\n for(String c : containers){\n comboBox.addItem(c);\n }\n comboBox.addItem(\"start.config\");\n \n containerColumn.setCellEditor(new DefaultCellEditor(comboBox));\n\n //Set up tool tips for the container cells.\n DefaultTableCellRenderer renderer =\n new DefaultTableCellRenderer();\n renderer.setToolTipText(\"Click for combo box\");\n containerColumn.setCellRenderer(renderer);\n }", "String getBaseTable();", "public SettingsPreferenceStore(Settings base){\n\t\tthis.base = base;\n\t}", "@NoProxy\n @NoWrap\n @NoDump\n @Override\n public void setCategoryHrefs(final Set<String> val) {\n categoryUids = val;\n }", "@Override\n public Class<SystemSettingsCatogreyRecord> getRecordType() {\n return SystemSettingsCatogreyRecord.class;\n }", "T setSystemProperty(String key, String value);", "@Override\n\tpublic void setTypeSettings(java.lang.String typeSettings) {\n\t\t_expandoColumn.setTypeSettings(typeSettings);\n\t}", "public Mytable(String alias) {\n this(DSL.name(alias), MYTABLE);\n }", "SysConfig findByCfConfigName(String cfConfigName);", "public CatalogSettings() {\n init();\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}", "private static void mapDbNames()\r\n { \r\n if (dbMap == null) {\r\n dbMap = new HashMap<String, String>();\r\n dbMap.put(\"tuition\", \"tuition\");\r\n dbMap.put(\"utilities\", \"utilities\");\r\n dbMap.put(\"fuel\", \"gas\");\r\n dbMap.put(\"registration\", \"Vehicle Registration\");\r\n dbMap.put(\"repair\", \"car repair\");\r\n dbMap.put(\"clothing\", \"clothing\");\r\n // maps asst types to the way they're currently in the database\r\n // used in the where clause for where tcf_assistance.description = ?\r\n }\r\n }", "CategoriesType createCategoriesType();", "CategoriesType createCategoriesType();", "public AgentTable(String alias) {\n this(alias, AGENT);\n }", "private void createStressTestControlTable() {\n Column runId = new Column(\"RUN_ID\");\n runId.setMappedType(\"INTEGER\");\n runId.setPrimaryKey(true);\n runId.setRequired(true);\n Column clientCommitSleepMs = new Column(\"CLIENT_COMMIT_SLEEP_MS\");\n clientCommitSleepMs.setMappedType(\"BIGINT\");\n Column clientCommitRows = new Column(\"CLIENT_COMMIT_ROWS\");\n clientCommitRows.setMappedType(\"BIGINT\");\n Column serverCommitSleepMs = new Column(\"SERVER_COMMIT_SLEEP_MS\");\n serverCommitSleepMs.setMappedType(\"BIGINT\");\n Column serverCommitRows = new Column(\"SERVER_COMMIT_ROWS\");\n serverCommitRows.setMappedType(\"BIGINT\");\n Column payloadColumns = new Column(\"PAYLOAD_COLUMNS\");\n payloadColumns.setMappedType(\"INTEGER\");\n Column initialSeedSize = new Column(\"INITIAL_SEED_SIZE\");\n initialSeedSize.setMappedType(\"BIGINT\");\n Column duration = new Column(\"DURATION_MINUTES\");\n duration.setMappedType(\"BIGINT\");\n\n Table table = new Table(STRESS_TEST_CONTROL, runId, clientCommitSleepMs, clientCommitRows, serverCommitSleepMs, serverCommitRows,\n payloadColumns, initialSeedSize, duration);\n engine.getDatabasePlatform().createTables(true, true, table);\n }", "private JTable getConfigurationTable() {\n if (configurationTable == null) {\n DefaultTableModel configurationModel = new DefaultTableModel() {\n public boolean isCellEditable(int row, int col) {\n return col == 1;\n }\n };\n configurationModel.addColumn(\"Key\");\n configurationModel.addColumn(\"Value\");\n configurationTable = new JTable(configurationModel);\n \n Enumeration keys = currentConfig.keys();\n while (keys.hasMoreElements()) {\n String key = (String) keys.nextElement();\n String value = currentConfig.getProperty(key);\n Vector row = new Vector(2);\n row.add(key);\n row.add(value);\n configurationModel.addRow(row);\n }\n }\n return configurationTable;\n }", "public String getConstantTableName(){\n return CONSTANT_TABLE_NAME;\n }", "private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n public String getCreate() {\n return \"CREATE TABLE IF NOT EXISTS StoreController (\\n\" +\n \"\\tstoreID INTEGER NOT NULL UNIQUE,\\n\" +\n \"\\tstoreShelves INTEGER NOT NULL,\\n\" +\n \"\\tnumberOfShelves INTEGER NOT NULL,\\n\" +\n \"\\tdiscountCounter INTEGER NOT NULL,\\n\" +\n \"\\ttypeCounter INTEGER NOT NULL,\\n\" +\n \"\\tcategoryCounter INTEGER NOT NULL,\\n\"+\n \"\\tFOREIGN KEY(\\\"storeID\\\") REFERENCES \\\"Branches\\\"(\\\"BID\\\"),\\n\" +\n \"\\tPRIMARY KEY(\\\"storeID\\\")\\n\" +\n \");\";\n }", "public final MF addAliasForType(Type type, String column, String actualPropertyName) {\n return addColumnPropertyForType(type, column, new RenameProperty(actualPropertyName));\n }", "static final SettingsModelString createNewColumnNameModel() {\n return new SettingsModelString(\"new_column_name\", null);\n }", "private Tables() {\n\t\tsuper(\"TABLES\", org.jooq.util.mysql.information_schema.InformationSchema.INFORMATION_SCHEMA);\n\t}", "DataFrameColumn<R,C> col(C colKey);", "public UnaryCallSettings<CreateCatalogRequest, Catalog> createCatalogSettings() {\n return createCatalogSettings;\n }", "Col createCol();", "int wkhtmltoimage_get_global_setting(PointerByReference settings, Pointer name, Pointer value, int vs);", "public DqcTableRuleConfig(String alias) {\n this(DSL.name(alias), DQC_TABLE_RULE_CONFIG);\n }", "public void setCourseTable(Courses value);", "public Mytable(Name alias) {\n this(alias, MYTABLE);\n }", "public static void setDynamicDb(Context context, String dbDynamic) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.DYNAMIC_DATABASE, dbDynamic);\n editor.apply();\n }", "public Builder setConnectionAlias(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n connectionAlias_ = value;\n onChanged();\n return this;\n }", "public Builder setConnectionAlias(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n connectionAlias_ = value;\n onChanged();\n return this;\n }", "public static final String getTopicTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_topic_\" +shortname +\r\n\t\t\"(tid varchar(50) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" istop tinyint UNSIGNED ZEROFILL, \" + // Is this keyword a top keyword for this topic\r\n\t\t\" PRIMARY KEY (tid,keyword)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "public void onCustomizeActionBar(ActionBar actionBar) {\n actionBar.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.pc_main_activity_background_color)));\n actionBar.setDisplayOptions(28);\n ImageView imageView = new ImageView(this);\n imageView.setBackgroundResource(R.drawable.v_setting_icon);\n imageView.setContentDescription(getString(R.string.activity_title_settings));\n imageView.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n g.startWithFragment(NetworkDiagnosticsActivity.this.mActivity, NetworkDiagnosticsSettingFragment.class);\n }\n });\n actionBar.setEndView(imageView);\n }", "private Pane createSettings() {\n HBox row = new HBox(20);\n row.setAlignment(Pos.CENTER);\n Label langIcon = createIcon(\"icons/language.png\");\n Label themeIcon = createIcon(\"icons/theme.png\");\n\n ComboBox<Language> langSelect = new ComboBox<>();\n langSelect.getItems().addAll(UIController.Language.values());\n langSelect.setValue(UIController.Language.values()[0]);\n langSelect.setOnAction(e -> changeLanguage(langSelect.getValue()));\n\n ComboBox<Theme> themeSelect = new ComboBox<>();\n themeSelect.getItems().addAll(UIController.Theme.values());\n themeSelect.setValue(UIController.Theme.values()[0]);\n themeSelect.setOnAction(e -> changeTheme(themeSelect.getValue()));\n\n row.getChildren().addAll(langIcon, langSelect, themeIcon, themeSelect);\n\n return row;\n }", "private String getCloneSetTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET(\");\n \t\tbuilder.append(\"CLONE_SET_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"OWNER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"ELEMENTS TEXT NOT NULL,\");\n \t\tbuilder.append(\"NUMBER_OF_ELEMENTS INTEGER\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "interface Config {\n\n String DB_USERS = \"USERS\";\n String DB_USERS_DATA = \"DATA\";\n String DB_EQUIPMENTS = \"EQUIPMENTS\";\n String DB_MEMBERS = \"MEMBERS\";\n String DB_ORDERS = \"ORDERS\";\n}", "public SchemataRecord() {\n super(Schemata.SCHEMATA);\n }", "public void setColorants(Map<String, PDColorSpace> colorants) {\n/* 116 */ COSDictionary colorantDict = null;\n/* 117 */ if (colorants != null)\n/* */ {\n/* 119 */ colorantDict = COSDictionaryMap.convert(colorants);\n/* */ }\n/* 121 */ this.dictionary.setItem(COSName.COLORANTS, (COSBase)colorantDict);\n/* */ }", "@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}", "private void updateTableDescriptorWithSFT() {\n if (StringUtils.isEmpty(customSFT)) {\n return;\n }\n\n TableDescriptorBuilder builder = TableDescriptorBuilder.newBuilder(tableDescriptor);\n builder.setValue(StoreFileTrackerFactory.TRACKER_IMPL, customSFT);\n for (ColumnFamilyDescriptor family : tableDescriptor.getColumnFamilies()) {\n ColumnFamilyDescriptorBuilder cfBuilder = ColumnFamilyDescriptorBuilder.newBuilder(family);\n cfBuilder.setConfiguration(StoreFileTrackerFactory.TRACKER_IMPL, null);\n cfBuilder.setValue(StoreFileTrackerFactory.TRACKER_IMPL, null);\n builder.modifyColumnFamily(cfBuilder.build());\n }\n tableDescriptor = builder.build();\n }", "@Override \r\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState); \r\n addPreferencesFromResource(R.xml.preference);\r\n initPreferenceCategory(\"pref_key_allow_typedefine_commond\");\r\n }", "public static String tableName() {\r\n return \"TB_UPP_CHECK_STORE_DIVERGENCE\";\r\n }", "SqlTables(String tableName){\n\t\t\t this.tableName = tableName; \n\t\t}", "static String getAlterArtifactInstancesAddAccountIdConstraintTemplate() {\n // Each \"%s\" will be replaced with the relevant TYPE_instances table name.\n return \"ALTER TABLE %s\"\n + \" ADD CONSTRAINT account_id_fk foreign key (account_id) references accounts(id)\";\n }", "public void readPropertiesfileForcrud(SystemAdmin sysadmin) {\n\t\tString path = context.getRealPath(\"/\");\n\t\tString dbpath = path + Utility.DB_PATH;\n\t\tSystem.out.println(\"================path===========\" + dbpath);\n\t\tFileInputStream fileInputStreamSystemSettings = null;\n\t\tOutputStream output = null;\n\t\tProperties prop = new Properties();\n\t\ttry {\n\t\t\t// String Dbrealpath=dbpath\n\t\t\tfileInputStreamSystemSettings = new FileInputStream(dbpath);\n\t\t\ttry {\n\t\t\t\tprop.load(fileInputStreamSystemSettings);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tfileInputStreamSystemSettings.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tString URL = \"jdbc:mysql://\" + sysadmin.getServerip() + \":\" + sysadmin.getPort() + \"/\"\n\t\t\t\t\t+ sysadmin.getDatabasename();\n\n\t\t\t// set the properties new value\n\t\t\tprop.setProperty(\"jdbc.url\", URL);\n\t\t\tprop.setProperty(\"jdbc.username\", sysadmin.getUsername());\n\t\t\tprop.setProperty(\"jdbc.password\", sysadmin.getPassword());\n\t\t\tprop.setProperty(\"jdbc.driver\", \"com.mysql.jdbc.Driver\");\n\t\t\tprop.setProperty(\"jdbc.dbconfig\", \"Y\");\n\t\t\toutput = new FileOutputStream(dbpath);\n\t\t\tlogger.info(\"=========================NEW PROPERTIES=========================\");\n\t\t\tlogger.info(\" jdbc.driver \" + prop.getProperty(\"jdbc.driver\"));\n\t\t\tlogger.info(\" jdbc.url \" + prop.getProperty(\"jdbc.url\"));\n\t\t\tlogger.info(\" jdbc.username \" + prop.getProperty(\"jdbc.username\"));\n\t\t\tlogger.info(\" jdbc.password \" + prop.getProperty(\"jdbc.password\"));\n\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tprop.store(output, null);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\toutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "private String getCloneSetLinkTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET_LINK(\");\n \t\tbuilder.append(\"CLONE_SET_LINK_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"AFTER_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"ADDED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"DELETED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CO_CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CODE_FRAGMENT_LINKS TEXT NOT NULL\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public Syschecks(String alias) {\n this(alias, SYSCHECKS);\n }", "SystemConfiguration(String description)\n {\n this.mDescription = description;\n }", "public void setCatelogBased( boolean catelogBased )\n {\n this.catelogBased = catelogBased;\n }", "String getSettingByKey(HawkularUser user, String key);", "private static String cdsIdToTableName( String cdsId ) {\n return cdsId.replaceFirst( \"^vizier:\", \"\" )\n .replaceAll( \"/\", \"_\" );\n }" ]
[ "0.6222259", "0.588053", "0.47849044", "0.46961632", "0.432861", "0.41076806", "0.41076806", "0.40873954", "0.40863252", "0.40484276", "0.4021919", "0.40130973", "0.40069163", "0.39983925", "0.39682806", "0.39668348", "0.39501622", "0.39494854", "0.39474764", "0.3944202", "0.39418915", "0.39408183", "0.39391994", "0.3939191", "0.3923235", "0.3912575", "0.39085197", "0.39035338", "0.39009342", "0.38878232", "0.38820562", "0.38810474", "0.38734764", "0.38629255", "0.38354298", "0.383406", "0.38223612", "0.38055927", "0.3799908", "0.3795104", "0.3789451", "0.37859163", "0.37782943", "0.3767753", "0.37610897", "0.37507284", "0.37433589", "0.37423185", "0.37415436", "0.3736658", "0.3732019", "0.37254065", "0.37231913", "0.37176642", "0.37157953", "0.3710235", "0.37032372", "0.3698196", "0.36894798", "0.36852947", "0.36852947", "0.368433", "0.36834925", "0.36831298", "0.36826146", "0.36749342", "0.36569008", "0.3651867", "0.36477593", "0.36410788", "0.3640414", "0.36385086", "0.3637318", "0.3629436", "0.3626067", "0.36259562", "0.3623487", "0.36219215", "0.3620134", "0.3620134", "0.36148965", "0.36130813", "0.36092618", "0.36064002", "0.360518", "0.36030415", "0.36017716", "0.35987976", "0.3598208", "0.35980496", "0.35923654", "0.3590522", "0.35899094", "0.35860276", "0.35852936", "0.35844824", "0.35823497", "0.35811266", "0.35748053", "0.3574563" ]
0.6087087
1
/ renamed from: a
public final String mo15029a() { return this.f6006a; }
{ "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
========================================================================= Getters Setters =========================================================================
public String getType() { return type; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void get() {}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "protected abstract Set method_1559();", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public String getName () { return this.name; }", "public void get() {\n }", "@Override\n public String toString() {\n return (super.toString());\n\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "@Override\n String get();", "@Override\n public String toString() {\n return value();\n }", "@Override\n public String toString () {\n return super.toString();\n }", "private Value() {\n\t}", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\r\n public String toString() {\r\n return super.toString();\r\n }", "@Override\r\n public String toString() {\r\n return super.toString();\r\n }", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n public String toString() {\n return super.toString();\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 protected void initialize() {\n }", "String getName(){return this.name;}", "@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}", "private ReadProperty()\r\n {\r\n\r\n }", "@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n public void init() {\n\n }", "public Object getValue() { return _value; }", "@Override\n void init() {\n }", "private Get() {}", "private Get() {}", "public String getName(){return this.name;}", "public int getAge() {return age;}", "@Override\n public void init() {\n }", "public String getName() { return _name; }", "public abstract String get();", "protected List getProperties() {\n return null;\n }", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "private Integer getId() { return this.id; }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "@Override\n String toString();", "private stendhal() {\n\t}", "public Book getBook() \t\t{ return this.myBook; }", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public String toString() {\n return \"\";\n }", "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "private DiffProperty() {\n\t\t// No implementation\n\t}", "public int value() { \n return this.value; \n }", "public String getName(){ return name; }", "public int\t\tget() { return value; }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public Object getValue()\n {\n return value;\n }", "protected StockPrice() {\n\t\t// just for serializers\n\t}", "@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "public String getName()\n {\n return name;\n}", "public Object getValue() { return this.value; }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "public String getName ()\n {\n return name;\n }", "@Override\r\n public Object getValue() {\r\n return value;\r\n }" ]
[ "0.6637027", "0.64852655", "0.6344494", "0.61784935", "0.6135569", "0.6076873", "0.60065603", "0.597848", "0.5951313", "0.5942142", "0.59421164", "0.5930177", "0.5915415", "0.59097606", "0.58862007", "0.58848625", "0.5883635", "0.587932", "0.5874756", "0.58471984", "0.58175194", "0.5814777", "0.5814777", "0.581214", "0.581214", "0.581214", "0.581214", "0.5806175", "0.5806175", "0.5806175", "0.5806175", "0.5806175", "0.5806175", "0.58022875", "0.5779629", "0.577385", "0.5773097", "0.5769341", "0.57682574", "0.57672393", "0.57589865", "0.57589865", "0.57516986", "0.5750947", "0.57448584", "0.573341", "0.57327116", "0.5730192", "0.57298934", "0.57268417", "0.5725963", "0.5716635", "0.5707724", "0.57029", "0.5699955", "0.56978405", "0.5696603", "0.5695952", "0.56959057", "0.5689292", "0.5689063", "0.56889945", "0.5688144", "0.5685047", "0.56847465", "0.56814015", "0.5680927", "0.5672389", "0.5669068", "0.5668325", "0.5659086", "0.5659086", "0.5659086", "0.5659086", "0.5659086", "0.5659086", "0.565807", "0.5648912", "0.5648059", "0.5643682", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5639986", "0.5635786", "0.56351054" ]
0.0
-1
this method is required to exist if it's a CommandExecutor
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) { Player player = (Player) sender; // if console if (!(sender instanceof Player)) { sender.sendMessage("You Cant Use This In Here DUDE!"); return false; } // first argument specified String argumentOne; // try this out instead of 100% doing it, because it could give an error if it doesnt exist try { // String[] args are the arguments that were provided after the command // like "/dab mystats" has one argument, "mystats" // arrays start at 0, so the first argument is args[0] argumentOne = args[0]; } catch (Exception e) { // if the argument does not exist, scream and return player.sendMessage(ChatColor.GRAY + "No You need To Specify An Argument! " + ChatColor.RED + ">:-("); return false; } // now that we have secured that argumentOne is the first argument // if the first argument is "buy" (/zuccbucc buy), do stuff if (argumentOne.equalsIgnoreCase("buy")) { // you'll need to specify an amount, like "/zuccbucc buy 5" // so we need to do the same thing with that amount // argumentTwo is what is typed String argumentTwo; // amountOfZuccBuccs is the integer that represents this value int amountOfZuccBuccs; try { argumentTwo = args[1]; // you can't use a string as a number, so you have to turn the number given into an integer // parseInt(string) turns a string into an integer amountOfZuccBuccs = Integer.parseInt(argumentTwo); } catch (Exception e) { // scream and return if doesnt work player.sendMessage(ChatColor.GRAY + "No You need To Specify How Many ZuccBuccs! " + ChatColor.RED + ">:-("); return false; } // if the amount given is too much to buy at one time, tell them to stop if (amountOfZuccBuccs > 50) { player.sendMessage(ChatColor.DARK_RED + "No! You Cant Buy This menay. Grrr..."); return false; } // string name of the player String owner = player.getName(); // add the amount of ZuccBuccs specified to the BuccHandler // loop through and create a new ZuccBucc each number between 0 and amountOfZuccBuccs for (int i = 0; i < amountOfZuccBuccs; i++) { ZuccBucc zuccBucc = new ZuccBucc(owner); ZuccBuccPlugin.getHandler().addZuccBucc(zuccBucc); } // congrats player.sendMessage(ChatColor.GREEN + "You just bought " + amountOfZuccBuccs + " ZuccBuccs! Nice!"); return true; } // check the amount of ZuccBuccs you have, and the value of them if (argumentOne.equalsIgnoreCase("amount")) { // get the list of ZuccBuccs that the player owns (method created in BuccHandler) List<ZuccBucc> zuccBuccs = ZuccBuccPlugin.getHandler().getZuccBuccs(player); // you got that amount of ZuccBuccs total player.sendMessage(ChatColor.GRAY + String.valueOf(zuccBuccs.size()) + " ZuccBuccs total!"); // value of each ZuccBucc is added to this double double value = 0; // loop through each ZuccBucc you own and add it to the total value for (ZuccBucc zuccBucc : zuccBuccs) { value = value + zuccBucc.getValue(); } // now that you have the total value, send it to them player.sendMessage(ChatColor.GRAY + "Your ZuccBuccs are valued at " + String.valueOf(value) + "!"); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void execute(Command command) {\n\r\n }", "private interface Command {\n public void execute();\n }", "public interface CommandExecutor {\n /**\n * This method parse a commands from string and call it\n *\n * @param sender ource of the commands\n * @param connectionCommand commands\n * @return true if a valid commands, otherwise false\n */\n default boolean onCommand(CommandSender sender, ConnectionCommand connectionCommand) {\n String[] split = connectionCommand.getCommand().split(\" \");\n\n return onCommand(sender, split[0], Arrays.copyOfRange(split, 1, split.length), connectionCommand.getArgs());\n }\n\n /**\n * Executes the given commands, returning its success\n *\n * @param sender ource of the commands\n * @param command Command which was executed\n * @param args Passed commands arguments\n * @param objects Objects\n * @return true if a valid commands, otherwise false\n */\n boolean onCommand(CommandSender sender, String command, String[] args, Object... objects);\n\n}", "@Override\n protected void execute() {\n \n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "void execute() throws CommandExecutionException;", "public CommandExecutorInterface getCommandExecutor() {\n\t\treturn commandExecutor;\n\t}", "@Override\n protected void execute() {\n \n }", "@Override\n public void execute() {}", "@Override\n protected void execute() {\n\n }", "@Override\n public void execute() {\n }", "@Override\r\n\tprotected void execute() {\r\n\t}", "public abstract boolean commandExecution(CommandSender sender, String label, String[] args);", "public abstract void execute(CommandSender sender, String[] args);", "@Override\n public void Execute() {\n\n }", "@Override\n public boolean canExecute() {\n return true;\n }", "@Override\n public void execute() {\n \n \n }", "@FunctionalInterface\n public interface CommandExecutor {\n /**\n * Executes the command and returns the result.\n *\n * @see seedu.moolah.logic.Logic#execute(String, String)\n */\n CommandResult execute(String commandText) throws CommandException, ParseException, UnmappedPanelException;\n }", "@Override\n\tpublic void execute() {\n\t\tcmdReceiver.send();\n\t}", "protected void execute() {}", "Command handleExecute(CommandExecute commandExecute);", "protected void execute()\n {\n }", "@Override\n\tprotected ArrayList<String> getCommandsToExecute() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n\t}", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "public interface ICommandTracker {\n \n /**\n * Executes the provided command and if it completes adds it to the collection\n * of executed commands being tracked\n * @param _command - Interface to the command object to execute\n * @return boolean True if command completed and was added to the \n * collection of executed commands, False otherwise.\n * @throws Exception Something went wrong.\n */\n boolean executeCommand(ICommand _command) throws Exception;\n /**\n * This method reverses the last command added to the collection of executed commands.\n * Repeated calls to this method will provide an in order reversal of executed commands.\n * Undone commands will be added to their own collection\n * @return boolean True if a command was reversed, False otherwise.\n * @throws Exception Something went wrong.\n */\n boolean undoLastCommand() throws Exception;\n /**\n * This method executes the last command added to the collection of undone commands.\n * @return boolean True if a previously undone command was re-executed, False otherwise\n * @throws Exception Something went wrong.\n */\n boolean redoLastCommand() throws Exception;\n}", "public ResponseToCommand execute() {\n throw new UnsupportedOperationException(Messages.COMMAND_ABSTRACT_METHOD_ERROR);\n }", "@Override\n public void execute(String[] args) {\n\n }", "@Override\r\n\tpublic void execute() {\n }", "@Override\n\tpublic void execute() {\n\t\t\n\t}", "protected void execute() {\r\n }", "public void setCommandExecutor(CommandExecutorInterface commandExecutor) {\n\t\tthis.commandExecutor = commandExecutor;\n\t}", "protected void execute() {\n\n\n \n }", "public interface Command {\n\n /**\n * Executes given command, returns the results.\n *\n * <p><b>Note:</b> Command only executes by a player.</p>\n *\n * @param player Player executed command\n * @param params Passed command parameters\n * @return Command's result was executed\n */\n @NotNull\n CommandResult onCommand(@NotNull Player player, @NotNull String[] params);\n\n /**\n * Executes given command, returns the results.\n *\n * <p><b>Note:</b> Command only executes in the console.</p>\n *\n * @param console Console sender executed command\n * @param params Passed command parameters\n * @return Command's result was executed\n */\n @NotNull\n CommandResult onConsoleCommand(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);\n\n /**\n * Requests a list of possible completions for a command parameters.\n *\n * <p><b>Note:</b> Request will be executed if command were executed by a player.</p>\n *\n * @param player Player executed command\n * @param params The parameters pass to the to the command, including final partial parameter to\n * be completed and command label\n * @return A result contains a list of possible completions for the final argument, or an empty\n * list to default to the command executor and string to search for.\n */\n @NotNull\n TabResult onTab(@NotNull Player player, @NotNull String[] params);\n\n /**\n * Requests a list of possible completions for a command parameters.\n *\n * <p><b>Note:</b> Request will be executed if command was executed in the console.</p>\n *\n * @param console Console sender executed command\n * @param params The parameters pass to the to the command, including final partial parameter to\n * be completed and command label\n * @return A result contains a list of possible completions for the final argument, or an empty\n * list to default to the command executor and string to search for.\n */\n @NotNull\n TabResult onConsoleTab(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);\n\n /**\n * Returns parent {@link Command} of this command.\n *\n * @return Parent of this command\n * @deprecated Rename to {@link #getRoot()}\n */\n @Deprecated\n @Nullable\n Command getParent();\n\n /**\n * Returns root {@link Command} of this command.\n *\n * @return Root of this command\n */\n @Nullable\n Command getRoot();\n\n /**\n * Returns the name of this command.\n *\n * @return Name of this command\n */\n @NotNull\n String getName();\n\n /**\n * Returns the {@link PermissionWrapper} of this command\n *\n * @return The permission wrapper of this command\n */\n @NotNull\n PermissionWrapper getPermission();\n\n /**\n * Get the syntax or example usage of this command.\n *\n * @return Syntax of this command\n */\n @NotNull\n String getSyntax();\n\n /**\n * Gets a brief description of this command\n *\n * @return Description of this command\n */\n @NotNull\n String getDescription();\n\n /**\n * Returns a list of active aliases of this command, include value of {@link #getName()} method.\n *\n * @return List of aliases\n */\n @NotNull\n List<String> getAliases();\n\n String toString();\n}", "protected EventExecutor executor()\r\n/* 49: */ {\r\n/* 50: 87 */ return this.executor;\r\n/* 51: */ }", "public interface Command {\n\tvoid execute();\n}", "public interface CommandExecutor {\r\n\r\n /**\r\n * Executes command in a given context.\r\n * @param command Command to execute.\r\n * @param state Starting state.\r\n * @return State after the execution, or <b>State.INVALID</b>, or <b>State.END</b>.\r\n */\r\n public State execute(int command, State state);\r\n\r\n}", "public void noSuchCommand() {\n }", "public abstract String getCommand();", "public interface Command {\n\n /**\n * Executes the implemented command.\n *\n * @throws CommandExecutionException thrown when error on executing command\n */\n void execute() throws CommandExecutionException;\n}", "@Override\r\n\tpublic void execute() {\n\r\n\t}", "public interface Command {\n\n\n}", "public interface Command {\n void execute();\n}", "public interface Command {\n void execute();\n}", "public interface Command {\n void execute();\n}", "boolean executeCommand(ICommand _command) throws Exception;", "protected boolean onExecute(String command)\n {\n return false;\n }", "protected void addCommandExecutor(ExecutorBase executor) {\n PluginCommand command = getCommand(executor.getName());\n command.setExecutor(executor);\n command.setTabCompleter(executor);\n }", "interface Command\n{\n\tpublic void execute();\n}", "public interface CommandSender \n{\n /**\n * Handle a respond from the robot.\n * @param result The result.\n * @param originalCommand The command which was sent to the robot.\n */\n public void handleResponse(byte[] result, Command originalCommand);\n \n /**\n * Handle an error that occured when communicating to the robot.\n * @param code The error code that was sent by the robot.\n */\n public void handleError(int code);\n \n /**\n * Needed when sending a command repetitively to the robot.\n * @return The command string that should be used.\n */\n public Command getCurrentCommand();\n \n}", "protected void execute() {\n\n\t}", "public interface Command {\r\n\r\n\tpublic void execute();\r\n\r\n}", "public void execute() {\n }", "public abstract boolean doCommand() throws Exception;", "public void Execute() {\n\n }", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "@Override\n\tpublic Executor getExecutor() {\n\t\treturn null;\n\t}", "protected void execute()\n\t{\n\t}", "@Override\r\n protected void executeCommand(MyRobot robot) {\n }", "public void postExecution() throws CommandListenerException;", "public boolean hasExecutor() {\n return result.hasExecutor();\n }", "protected void execute() {\n\t\t\n\t}", "protected void execute() {\n\t}", "public interface CommandService {\n\n /**\n * Executes given command remotely and synchronously and returns the similar object as executed, but changed on the remote\n * side.\n */\n <T extends Command> T execute(T command);\n}", "public interface Command{\n public void execute();\n\n}", "public abstract void doCommand(String command);", "public interface Command {\n public void execute();\n}", "public interface Command {\n public void execute();\n}", "public interface Command {\n public void execute();\n}", "@Override\r\n\tpublic void execute() throws Exception {\n\t\t\r\n\t}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "interface Command {\n void execute();\n}", "<T extends Command> T execute(T command);", "protected String execCommand(String command) {\n\t\treturn executor.execCommand(command);\n\t}", "WrappedAnswer execute(WrappedCommand aWrappedCommand);", "CommandResult execute(String commandText) throws CommandException, ParseException, UnmappedPanelException;", "@Override\n public Answer executeRequest(Command cmd) {\n return null;\n }", "java.lang.String getCommand();", "public void execute() {\n // empty\n }", "public void execute(){\n\n }", "public abstract String getCommandName();", "public abstract String getCommandName();", "public abstract void exec(CommandSender sender, String[] args);", "@Override\n public CommandResult execute(CommandInvocation commandInvocation) throws CommandException, InterruptedException {\n\n log.error(\"Not implemented yet!\");\n return CommandResult.FAILURE;\n }", "public ExecutedCommand executedCommand() {\r\n return executedCommand;\r\n }", "public Command() {\n this.executed = false;\n }" ]
[ "0.7267728", "0.6936176", "0.685658", "0.68206584", "0.67932373", "0.67932373", "0.67932373", "0.6763601", "0.6717688", "0.6641762", "0.6628897", "0.6607473", "0.65970194", "0.6596884", "0.6590165", "0.65634036", "0.65608424", "0.6526158", "0.648763", "0.64818317", "0.64375156", "0.6425654", "0.6400567", "0.639631", "0.63750964", "0.6373625", "0.6353913", "0.6353913", "0.6337591", "0.6337591", "0.6337591", "0.6337591", "0.6337591", "0.6337591", "0.6337591", "0.6337591", "0.6337591", "0.6337591", "0.6337591", "0.6337591", "0.63227034", "0.63132954", "0.6313098", "0.63017774", "0.6301129", "0.6297329", "0.6294754", "0.62938476", "0.62766385", "0.62753975", "0.6247654", "0.6244909", "0.62443405", "0.624361", "0.6231339", "0.62182456", "0.6196828", "0.618037", "0.618037", "0.618037", "0.61731666", "0.61662", "0.61659664", "0.6156363", "0.6155542", "0.6150317", "0.61430246", "0.6142752", "0.6139492", "0.6137733", "0.61321443", "0.6123901", "0.6122356", "0.6117502", "0.61069393", "0.61055446", "0.61032283", "0.60951984", "0.60909635", "0.60854125", "0.6082482", "0.60815734", "0.60815734", "0.60815734", "0.6071132", "0.60671324", "0.60588646", "0.605573", "0.6054042", "0.60146964", "0.6012947", "0.60117304", "0.6011398", "0.60094", "0.60052973", "0.60047936", "0.60047936", "0.60025066", "0.5997261", "0.5996908", "0.5994905" ]
0.0
-1
Beschreibt einen Spielteilnehmer. Entweder eine KI oder der vom physischen Spieler gesteuerte Spieler. Im Konstruktor wird die Color festgelegt. Dieses Interface ist mit allen Methoden zu implementieren, wenn eine eigene KI implementiert werden soll.
public interface Player { /** * has to be implemented * wird von update() in Game aufgerufen. * @return eine der Actions aus Rules.getActionsTileMove() */ GameState requestActionTile(); /** * has to be implemented * wird von update() in Game aufgerufen. * @return eine der Actions aus Rules.getActionsGamePieceMove() */ GameState requestActionGamePiece(); /** * has to be implemented * wird von update() aufgerufen. * @param gameState aktueller GameState */ void updateGameState(GameState gameState); GameState getGameState(); /** * has to be implemented * @return the color of the Player */ Color getColor(); void setRules(Rules rules); Rules getRules(); void setName(String name); String getName(); void setThread(ThreadUpdate thread); void setSynchronizer(Object synchronizer); /** * wird von update aufgerufen, sobald ein anderer Spieler eine Karte gewinnt. * @param color Farbe des Spielers, der eine Karte gewonnen hat * @param symbol auf dieser Karte */ void notifyWonCards(Color color, Symbol symbol); /** * legt die Karte ganz oben auf dem Stapel, die der Spieler als nächstes gewinnen muss fest. * Wird von Game_Impl aufgerufen um dem Player seine Karte mitzuteilen * @param symbol neue zu erreichende Karte/Symbol */ void setActiveCard(Symbol symbol); /** * has to be implemented * @return the activeCard, that was set by Game_Impl */ Symbol getActiveCard(); /** * creates new instance of chosen player * * Correct place to add new and more KI players! * * @param className name of the class to create an instance of * @param color chosen color for a player * @return new instance of playerclass */ static Player createNewPlayer(String className, Color color) throws IllegalArgumentException { switch (className) { case "PlayerKI": return new PlayerKI(color); case "PlayerKI2": return new PlayerKI2(color); case "PlayerKI3": return new PlayerKI3(color); case "PlayerKI4": return new PlayerKI4(color); case "PlayerHuman": return new PlayerPhysical(color); default: throw new IllegalArgumentException("createNewPlayer in Player.java doesn't know how to handle this!"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract String getColor();", "@Override\n\tpublic String toString(){\n\t\tif(this.getColor()==1){\n\t\t\treturn \"wK\";\n\t\t}else{\n\t\t\treturn \"bK\";\n\t\t}\n\t}", "@Override\r\n\tpublic void howToColor() {\n\t\t\r\n\t}", "public void Color() {\n\t\t\r\n\t}", "@Override\n\t\tpublic Color color() { return color; }", "public String getColor() {\n\t\treturn \"Elcolor del vehiculo es: \"+color; \n\t }", "abstract public String getColor();", "abstract public String getColor();", "@Override\n\tprotected char getColor(int position) {\n\t\treturn color;\n\t}", "@Override\n public String toString() {\n return color.name();\n }", "private HepRepColor() {\n }", "@Override\n Color getColor() {\n return new Color(32, 83, 226, 255);\n }", "@Override\r\n\tpublic String getColor() {\n\t\treturn \"white\";\r\n\t}", "@Override\n public String getColor() {\n return this.color;\n }", "public String getColorString();", "public void pulp() {\n\tSystem.out.println(\"Name: \"+super.getName()+\" Color: \"+super.getColor());\n\t}", "@Override\n public Color getColor() {\n return color;\n }", "@Override\r\n\tpublic String Color() {\n\t\treturn Color;\r\n\t}", "public String toString()\n {\n return color.charAt(0) + \"Q\";\n }", "public String getColor() { \n return color; \n }", "public Piezas(String color) {\r\n this.color = color;\r\n }", "public ShadesOfBlue(){\n super( Settings.ObjectivesProperties.SHADES_OF_BLUE.getTitle(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getDescription(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getPath(),\n Settings.ObjectivesProperties.SHADES_OF_BLUE.getPoints(),\n Colour.BLUE);\n }", "KeyColor(String name){\n this.name = name;\n }", "public Piece.color getColor() { return color; }", "@Override\n public String getColor() {\n return this.color.name();\n }", "public Emrld() {\n super(\n new Color(211, 242, 163),\n new Color(151, 225, 150),\n new Color(108, 192, 139),\n new Color(76, 155, 130),\n new Color(33, 122, 121),\n new Color(16, 89, 101),\n new Color(7, 64, 80)\n\n );\n\n\n }", "Color(String text) {\n this.text = text;\n }", "String getColor();", "@Override\n\tpublic String getColor() {\n\t\treturn \"blue\";\n\t}", "public String getColor(){\r\n return color;\r\n }", "public Color getColor() { return color; }", "@Override\n\tpublic String howtocolor() {\n\t\treturn \"Color all four sides\";\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"clsEquipacion [color1P=\" + color1P + \", color2P=\" + color2P + \", color1S=\" + color1S + \", color2S=\"\n\t\t\t\t+ color2S + \", publicidadP=\" + publicidadP + \", publicidadS=\" + publicidadS + \", serigrafiadoP=\"\n\t\t\t\t+ serigrafiadoP + \", serigrafiadoS=\" + serigrafiadoS + \", dorsal=\" + dorsal + \"]\";\n\t}", "@Override\n\tpublic void paint(Graphics g) {\n\t\tsuper.paint(g);\n\t\t\n\t\tsetBackground(Color.white); // Imposto il colore di sfondo\n\t\tsetForeground(Color.black); // Imposto il colore dell'etichetta\n\t}", "@Override\n\tpublic String getColor() {\n\t\treturn \"red\";\n\t}", "public String getColor(){\n return this.color;\n }", "@Override\n\tprotected void display(Coordination c) {\n\t\tSystem.out.println(\"白棋,颜色是:\" + color + \"位置是:\" + c.getX() + \"--\" + c.getY());\n\t}", "public Doolhof()\n {\n this(255, 255, new RechtKaart(1, false));\n }", "@Override\n public Color getColor() {\n return Utils.Pion.BLANC.getCouleur();\n }", "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}", "@Override\r\n public Llama.Color getColor() {\r\n return color;\r\n }", "public Knight(String color, Position position){\n super(\"Knight\", color, position);\n\n List<Position> directions = new ArrayList<Position>();\n directions.add(new Position(1,-2));\n directions.add(new Position(2,-1));\n directions.add(new Position(2,1));\n directions.add(new Position(1,2));\n directions.add(new Position(-1,-2));\n directions.add(new Position(-2,-1));\n directions.add(new Position(-1,2));\n directions.add(new Position(-2,1));\n setDirectionVectors(directions);\n\n if (color.equals(\"White\")){\n setImageResource(R.mipmap.white_knight_foreground);\n }\n else{\n setImageResource(R.mipmap.black_knight_foreground);\n }\n\n }", "public Bishop(String color) {//True is white, false is black\n\t\tsuper(color);\n\n\t}", "@Then(\"^Pobranie koloru$\")\n public void Pobranie_koloru() throws Throwable {\n\n WebDriverWait wait = new WebDriverWait(driver, 15);\n WebElement c9 = wait.until(ExpectedConditions.elementToBeClickable(By.xpath(\"//*[@id=\\\"30373\\\"]/div/div/div/div/div/div/div/p[3]/a\")));\n\n String color = driver.findElement(By.xpath(\"/html/body/div[1]/div[3]/div/div[6]/div/div/div[1]/div/ul/li\")).getCssValue(\"color\");\n String[] hexValue = color.replace(\"rgba(\", \"\").replace(\")\", \"\").split(\",\");\n\n int hexValue1=Integer.parseInt(hexValue[0]);\n hexValue[1] = hexValue[1].trim();\n int hexValue2=Integer.parseInt(hexValue[1]);\n hexValue[2] = hexValue[2].trim();\n int hexValue3=Integer.parseInt(hexValue[2]);\n String kolorZeStrony = String.format(\"#%02x%02x%02x\", hexValue1, hexValue2, hexValue3);\n\n Assert.assertEquals(\"#333333\", kolorZeStrony);\n\n }", "@Override\n\tpublic void init() {\n this.setColor(Color.PINK);\n \n\t}", "public String toString (){\r\n \r\n String mensaje=\"El rey color \"+color_rey+\" esta en la fila \"+posicion_rey.fila+\" y columna \"+posicion_rey.columna+\".\";\r\n \r\n return mensaje;\r\n \r\n }", "@Override\r\n\tpublic String setColor() {\n\t\treturn null;\r\n\t}", "public Knight(String color){\n super(\"Knight\",color);\n }", "public String toString(){\n return (\"TextShape \"+x+\" \"+y+\" \"+col.getRed()+\" \"+col.getGreen()+\" \"+col.getBlue()+\" \"+str);\n }", "public Electrodomestico() {\r\n this.color = Colores.BLANCO;\r\n this.consumoEnergetico = Letra.F;\r\n this.precioBase = precioDefecto;\r\n this.peso = pesoDefecto;\r\n }", "public String getColor() {\n\t\treturn null;\n\t}", "public Color getColor()\n {\n return color;\n }", "Color(int R, int G, int B) {\r\n\t\t this.rgb = new RGB(R,G,B);\r\n\t\t this.colorific = true;\r\n\t }", "public String getColor(){\n return this._color;\n }", "public char getColor();", "public String keyColor(int i){\r\n if(this.down.contains(this.draw.get(i)))\r\n return \"red\";\r\n return \"black\";\r\n }", "public Color get_color() {return this.color;}", "public String toString() {\n return \"#ffff00\";\n }", "public Figure(Color color){\n this.color=color;\n }", "void setColor(char c, char t) {\n\t\tif(c == 'b' && t == 'b') pI = PieceImage.B_BISHOP;\n\t\tif(c == 'b' && t == 'k') pI = PieceImage.B_KING;\n\t\tif(c == 'b' && t == 'c') pI = PieceImage.B_KNIGHT;\n\t\tif(c == 'b' && t == 'p') pI = PieceImage.B_PAWN;\n\t\tif(c == 'b' && t == 'q') pI = PieceImage.B_QUEEN;\n\t\tif(c == 'b' && t == 'r') pI = PieceImage.B_ROOK;\n\t\t\n\t\tif(c == 'w' && t == 'b') pI = PieceImage.W_BISHOP;\n\t\tif(c == 'w' && t == 'k') pI = PieceImage.W_KING;\n\t\tif(c == 'w' && t == 'c') pI = PieceImage.W_KNIGHT;\n\t\tif(c == 'w' && t == 'p') pI = PieceImage.W_PAWN;\n\t\tif(c == 'w' && t == 'q') pI = PieceImage.W_QUEEN;\n\t\tif(c == 'w' && t == 'r') pI = PieceImage.W_ROOK;\n\t\n\t\tif(c == 'c' && t == 'b') pI = PieceImage.C_BISHOP;\n\t\tif(c == 'c' && t == 'k') pI = PieceImage.C_KING;\n\t\tif(c == 'c' && t == 'c') pI = PieceImage.C_KNIGHT;\n\t\tif(c == 'c' && t == 'p') pI = PieceImage.C_PAWN;\n\t\tif(c == 'c' && t == 'q') pI = PieceImage.C_QUEEN;\n\t\tif(c == 'c' && t == 'r') pI = PieceImage.C_ROOK;\n\t\t\n\t\tif(c == 'p' && t == 'b') pI = PieceImage.P_BISHOP;\n\t\tif(c == 'p' && t == 'k') pI = PieceImage.P_KING;\n\t\tif(c == 'p' && t == 'c') pI = PieceImage.P_KNIGHT;\n\t\tif(c == 'p' && t == 'p') pI = PieceImage.P_PAWN;\n\t\tif(c == 'p' && t == 'q') pI = PieceImage.P_QUEEN;\n\t\tif(c == 'p' && t == 'r') pI = PieceImage.P_ROOK;\n\t\t}", "public Seagull(String name){\n this.name = name;\n this.color = SWT.COLOR_DARK_BLUE;\n }", "@Override\n public String getTokenColorLetter() {\n return \"R\";\n }", "public Spider()\r\n/* 24: */ {\r\n/* 25: 21 */ setBackground(Color.WHITE);\r\n/* 26: */ }", "private void lineColor() {\n\n\t}", "public void setColor(String c);", "@Override\n\tpublic void draw() {\n\t\tif (isWhite){\n\t\t\tSystem.out.print(\"\\u2656\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.print(\"\\u265C\");\n\t\t}\t\t\n\t}", "abstract Color getColor();", "@Override\n public Paint getPaint() {\n if (illegal()){\n Paint temp = new Paint(super.getPaint());\n temp.setColor(Color.RED);\n return temp;\n }\n return super.getPaint();\n }", "String getColour();", "@Override\n\tpublic IColor getColor(String color) {\n\t\treturn null;\n\t}", "public String getColor()\n {\n return color;\n }", "public String getColor()\n {\n return color;\n }", "public Coche (String color, String modelo) {\r\n\t super(color, modelo);\r\n\t numeroDeRuedas = 4;\r\n\t }", "public String toCodedString() {\n\t\t//System.out.println(toString());\n\t\treturn String.format(\"%s%s\", getColor().toInt(), getShape().toString());\n\t}", "@Override\n public Color getFontColor(){\n return Color.BLACK;\n }", "@Override\n\tpublic void color() {\n\t\tSystem.out.println(\"Colour is red\");\n\t\t\n\t}", "@Override\n public String toString() {\n return \"Cheval De Frise\";\n }", "@Override\r\n public final void draw(final Square s, final BufferedImage paper) {\n String red;\r\n String green;\r\n String blue;\r\n if (Integer.toHexString(s.getBorderColor().getRed()).length() == 1) {\r\n red = \"0\" + Integer.toHexString(s.getBorderColor().getRed());\r\n } else {\r\n red = Integer.toHexString(s.getBorderColor().getRed());\r\n }\r\n if (Integer.toHexString(s.getBorderColor().getGreen()).length() == 1) {\r\n green = \"0\" + Integer.toHexString(s.getBorderColor().getGreen());\r\n } else {\r\n green = Integer.toHexString(s.getBorderColor().getGreen());\r\n }\r\n if (Integer.toHexString(s.getBorderColor().getBlue()).length() == 1) {\r\n blue = \"0\" + Integer.toHexString(s.getBorderColor().getBlue());\r\n } else {\r\n blue = Integer.toHexString(s.getBorderColor().getBlue());\r\n }\r\n String color = \"#\" + red + green + blue;\r\n \r\n draw(new Line((String.valueOf(s.getxSus())), String.valueOf(s.getySus()),\r\n String.valueOf(s.getxSus() + s.getLatura() - 1), String.valueOf(s.getySus()), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus() + s.getLatura() - 1)),\r\n String.valueOf(s.getySus()), String.valueOf(s.getxSus() + s.getLatura() - 1),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus() + s.getLatura() - 1)),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), String.valueOf(s.getxSus()),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), color,\r\n String.valueOf(s.getBorderColor().getAlpha()), paper), paper);\r\n\r\n draw(new Line((String.valueOf(s.getxSus())),\r\n String.valueOf(s.getySus() + s.getLatura() - 1), String.valueOf(s.getxSus()),\r\n String.valueOf(s.getySus()), color, String.valueOf(s.getBorderColor().getAlpha()),\r\n paper), paper);\r\n for (int i = s.getxSus() + 1; i < s.getxSus() + s.getLatura() - 1; i++) {\r\n for (int j = s.getySus() + 1; j < s.getySus() + s.getLatura() - 1; j++) {\r\n if (checkBorder(i, j, paper)) {\r\n paper.setRGB(i, j, s.getFillColor().getRGB());\r\n }\r\n }\r\n }\r\n\r\n }", "public Shape(String color) { \n System.out.println(\"Shape constructor called\"); \n this.color = color; \n }", "@Override\n\tpublic String getColorName() {\n\t\treturn colorName;\n\t}", "public Color getColor()\n { \n return color;\n }", "public Color getColor() {\n return this.color;\n }", "public Espacio() {\n dib=new Dibujo(\"Simulacion de satelites\", 800,800);\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta();\n }", "@Override\r\n public String toString() {\r\n// ritorna una stringa\r\n return \"pollo\";\r\n }", "private void paintTheImage() {\n SPainter klee = new SPainter(\"Red Cross\", 600,600);\n SRectangle rectangle = new SRectangle(500, 100);\n klee.setColor(Color.RED);\n klee.paint(rectangle);\n klee.tl();\n klee.paint(rectangle);\n }", "public Color getColor() { return color.get(); }", "public String getColor()\n {\n return this.color;\n }", "public interface ChessPieceLabel {\n //black pieces\n String BLACK_KING = \"\\u265A\";\n String BLACK_QUEEN = \"\\u265B\";\n String BLACK_ROOK = \"\\u265C\";\n String BLACK_BISHOP = \"\\u265D\";\n String BLACK_KNIGHT = \"\\u265E\";\n String BLACK_PAWN = \"\\u265F\";\n String BLACK_FERZ = \"\\u2660\";\n String BLACK_THREELEAPER = \"\\u2663\";\n\n //white pieces\n String WHITE_KING = \"\\u2654\";\n String WHITE_QUEEN = \"\\u2655\";\n String WHITE_ROOK = \"\\u2656\";\n String WHITE_BISHOP = \"\\u2657\";\n String WHITE_KNIGHT = \"\\u2658\";\n String WHITE_PAWN = \"\\u2659\";\n String WHITE_FERZ = \"\\u2664\";\n String WHITE_THREELEAPER = \"\\u2667\";\n}", "public Color color() {\n return null;\n }", "public PieceSharkBait(String symbol, String color){\n super(symbol, color);\n this.hidden = false;\n }", "DieColor(String utf, String constraintColor, String colorDie){\n this.utf=utf;\n this.constraintColor = constraintColor;\n this.colorDie = colorDie;\n }", "public Spieler(String spielfigur) {\n\n this.kontostand = 30000;\n this.spielfigur = spielfigur;\n this.istGefängnis = false;\n\n liste.put(\"braun\", braun);\n liste.put(\"hellblau\", hellblau);\n liste.put(\"pink\", pink);\n liste.put(\"orange\", orange);\n liste.put(\"rot\", rot);\n liste.put(\"gelb\", gelb);\n liste.put(\"grün\", grün);\n liste.put(\"duneklblau\", dunkelblau);\n liste.put(\"bahnhoefe\", bahnhoefe);\n liste.put(\"werke\", werke);\n felderInBesitz = new ArrayList<>();\n\n }", "public String toString() {\n\t\treturn \"\" + type + \",\" + (rempli ? \"p\" : \"v\") + \",\" +\n\t\t\t\tx + \",\" + y + \",\" + largeur + \",\" + hauteur + \",\"\n\t\t\t\t+ Integer.toHexString(couleur.getRGB() & 0xffffff);\n\t}", "public void setColor(int color) {\n/* 77 */ this.color = color;\n/* 78 */ this.paint.setColor(this.color);\n/* */ }", "public String getColor() {\r\n return color;\r\n }", "private void initGrille() {\n this.setLayout(new GridLayout(8, 8));\n Color backgroundColor = Color.WHITE;\n for (int i = 7; i >= 0; i--) {\n for (int j = 0; j < 8; j++) {\n CaseJeu c = new CaseJeu(j, i, backgroundColor, fenetre);\n if (j != 7) {\n backgroundColor = (backgroundColor.equals(Color.GRAY)) ? Color.WHITE : Color.GRAY;\n }\n this.add(c);\n }\n }\n }", "public String getColor(){\n\t\treturn color;\n\t}", "private void drawPosition(Position pos, TextColor color, char c, boolean wide) {\n TextGraphics text = screen.newTextGraphics();\n text.setForegroundColor(color);\n text.putString(pos.getX() * 2, pos.getY() + 1, String.valueOf(c));\n\n if (wide) {\n text.putString(pos.getX() * 2 + 1, pos.getY() + 1, String.valueOf(c));\n }\n }", "public int getColor();", "public int getColor();", "@Override\n\tpublic String getType() {\n\t\treturn getColor()+\"圆形\";\n\t}" ]
[ "0.5871137", "0.58277035", "0.57832974", "0.5731321", "0.5729678", "0.57244164", "0.5706858", "0.5706858", "0.5701077", "0.5699871", "0.56638694", "0.56525505", "0.562414", "0.5581046", "0.5567688", "0.5558388", "0.555708", "0.5552078", "0.5487534", "0.54762006", "0.54696316", "0.5459858", "0.5453683", "0.5411819", "0.54038036", "0.5401914", "0.53870624", "0.53765", "0.53706557", "0.536911", "0.53477764", "0.5346747", "0.534148", "0.5336843", "0.5332927", "0.53317267", "0.5319097", "0.52715653", "0.52688044", "0.5267832", "0.5258769", "0.52395934", "0.522387", "0.5221012", "0.5220831", "0.5216904", "0.521498", "0.5206286", "0.5205093", "0.52021796", "0.5184896", "0.518112", "0.5180033", "0.51800007", "0.51706797", "0.5170369", "0.5168673", "0.516521", "0.5149164", "0.5137206", "0.5127486", "0.51243794", "0.51148987", "0.5111861", "0.51087195", "0.51027066", "0.5101637", "0.50994974", "0.5094649", "0.50876766", "0.508538", "0.508538", "0.5077713", "0.5073908", "0.5057567", "0.50563264", "0.5053424", "0.5053122", "0.5051752", "0.504752", "0.50463873", "0.50429374", "0.5028756", "0.5028645", "0.5027252", "0.50223213", "0.50193626", "0.50186455", "0.50177556", "0.50168854", "0.5008804", "0.5007053", "0.5005452", "0.500391", "0.500182", "0.50006866", "0.49931145", "0.4986173", "0.49838725", "0.49838725", "0.49780202" ]
0.0
-1
has to be implemented wird von update() in Game aufgerufen.
GameState requestActionTile();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update(Game game) {\n\t\t\n\t}", "@Override\r\n\tpublic void updateGameFinished() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Update() {\n\t\t\r\n\t}", "@Override\n public void update()\n {\n\n }", "@Override\n\tpublic void onUpdate() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n public void update() {\n \n }", "@Override\n public void update() {\n }", "@Override\n\tpublic void update(GameContainer gc) {\n\t\t\n\t}", "@Override\n\tpublic void update() { }", "@Override\n public void update() {\n\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n public void update() {\n }", "@Override\r\n\tpublic void update(BaseGameHandler gameHandler)\r\n\t{\n\t}", "public void update() ;", "@Override\r\n\tpublic void update() {\r\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\n\tpublic void update(GameContainer gc, StateBasedGame sb, int delta) {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "public void update(){\r\n }", "protected void updateGameState() {\n }", "@Override\r\n public void onUpdate() {\n super.onUpdate();\r\n }", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\n\tpublic void update(float deltaTime) {\n\t\t\n\t}", "@Override\n\tpublic void update(float deltaTime) {\n\t}", "public void update() {}", "public void update(){\n }", "protected void onUpdate() {\r\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "public void update() {\r\n\t\t\r\n\t}", "public void update() {\n\t\t\n\t}", "public void update(){\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void update(float delta) {\n\t\t\r\n\t}", "@Override\n\tpublic void update(float delta) {\n\t\t\n\t}", "@Override\n\tpublic void onUpdate(float dt) {\n\t}", "public void update() {\n }", "abstract void updatePlayer();", "public void update() {\n\n }", "public void update() {\n\n }", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "@Override\n public void update(float delta) {\n\n }", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "@Override\n\tpublic void update(float timeDelta)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void update(float timeDelta)\n\t{\n\t\t\n\t}", "public void onLivingUpdate()\n {\n super.onLivingUpdate();\n }", "public abstract void Update();", "public abstract void Update();", "protected abstract void update();", "protected abstract void update();", "protected abstract void update();", "@Override\n\tpublic void update(float dt) {\n\t\t\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "abstract public void update();", "public void update(){\n\t\tupdatePlayerPosition();\n\t\thandleCollisions();\n\t}", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();" ]
[ "0.8616054", "0.8325922", "0.80008787", "0.80008787", "0.78465676", "0.7807199", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.77741617", "0.77634037", "0.7738716", "0.77297205", "0.7728902", "0.77257615", "0.7723771", "0.7704675", "0.7704515", "0.7684723", "0.76785064", "0.76759666", "0.76759666", "0.7670902", "0.7670902", "0.7670902", "0.7670902", "0.7670902", "0.7666406", "0.76319253", "0.76319253", "0.76319253", "0.7630245", "0.7613325", "0.760793", "0.76056665", "0.76056665", "0.75951433", "0.75951433", "0.75951433", "0.75951433", "0.75951433", "0.75951433", "0.7594998", "0.7594998", "0.7590614", "0.7590614", "0.75811124", "0.7580318", "0.75730413", "0.7556138", "0.7543532", "0.75424653", "0.75419044", "0.75354165", "0.7522971", "0.7514781", "0.75099134", "0.7506264", "0.7474271", "0.74461883", "0.7443789", "0.7443789", "0.7417958", "0.7417958", "0.7417958", "0.7417958", "0.7416253", "0.7399438", "0.7399438", "0.7399438", "0.7399438", "0.7399438", "0.7399438", "0.7399438", "0.7399438", "0.7393826", "0.7393826", "0.7366711", "0.73629713", "0.73629713", "0.735185", "0.735185", "0.7342913", "0.73331803", "0.73191994", "0.73191994", "0.73191994", "0.73051393", "0.728335", "0.7277571", "0.7277571", "0.7277571", "0.7277571", "0.7277571" ]
0.0
-1
has to be implemented wird von update() in Game aufgerufen.
GameState requestActionGamePiece();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update(Game game) {\n\t\t\n\t}", "@Override\r\n\tpublic void updateGameFinished() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Update() {\n\t\t\r\n\t}", "@Override\n public void update()\n {\n\n }", "@Override\n\tpublic void onUpdate() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n public void update() {\n \n }", "@Override\n public void update() {\n }", "@Override\n\tpublic void update(GameContainer gc) {\n\t\t\n\t}", "@Override\n\tpublic void update() { }", "@Override\n public void update() {\n\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n public void update() {\n }", "@Override\r\n\tpublic void update(BaseGameHandler gameHandler)\r\n\t{\n\t}", "public void update() ;", "@Override\r\n\tpublic void update() {\r\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\n\tpublic void update(GameContainer gc, StateBasedGame sb, int delta) {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "public void update(){\r\n }", "protected void updateGameState() {\n }", "@Override\r\n public void onUpdate() {\n super.onUpdate();\r\n }", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\n\tpublic void update(float deltaTime) {\n\t\t\n\t}", "@Override\n\tpublic void update(float deltaTime) {\n\t}", "public void update() {}", "public void update(){\n }", "protected void onUpdate() {\r\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "public void update() {\r\n\t\t\r\n\t}", "public void update() {\n\t\t\n\t}", "public void update(){\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void update(float delta) {\n\t\t\r\n\t}", "@Override\n\tpublic void update(float delta) {\n\t\t\n\t}", "@Override\n\tpublic void onUpdate(float dt) {\n\t}", "public void update() {\n }", "abstract void updatePlayer();", "public void update() {\n\n }", "public void update() {\n\n }", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "@Override\n public void update(float delta) {\n\n }", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "void update();", "@Override\n\tpublic void update(float timeDelta)\n\t{\n\t\t\n\t}", "@Override\n\tpublic void update(float timeDelta)\n\t{\n\t\t\n\t}", "public void onLivingUpdate()\n {\n super.onLivingUpdate();\n }", "public abstract void Update();", "public abstract void Update();", "protected abstract void update();", "protected abstract void update();", "protected abstract void update();", "@Override\n\tpublic void update(float dt) {\n\t\t\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "abstract public void update();", "public void update(){\n\t\tupdatePlayerPosition();\n\t\thandleCollisions();\n\t}", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();" ]
[ "0.8616054", "0.8325922", "0.80008787", "0.80008787", "0.78465676", "0.7807199", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.7799743", "0.77741617", "0.77634037", "0.7738716", "0.77297205", "0.7728902", "0.77257615", "0.7723771", "0.7704675", "0.7704515", "0.7684723", "0.76785064", "0.76759666", "0.76759666", "0.7670902", "0.7670902", "0.7670902", "0.7670902", "0.7670902", "0.7666406", "0.76319253", "0.76319253", "0.76319253", "0.7630245", "0.7613325", "0.760793", "0.76056665", "0.76056665", "0.75951433", "0.75951433", "0.75951433", "0.75951433", "0.75951433", "0.75951433", "0.7594998", "0.7594998", "0.7590614", "0.7590614", "0.75811124", "0.7580318", "0.75730413", "0.7556138", "0.7543532", "0.75424653", "0.75419044", "0.75354165", "0.7522971", "0.7514781", "0.75099134", "0.7506264", "0.7474271", "0.74461883", "0.7443789", "0.7443789", "0.7417958", "0.7417958", "0.7417958", "0.7417958", "0.7416253", "0.7399438", "0.7399438", "0.7399438", "0.7399438", "0.7399438", "0.7399438", "0.7399438", "0.7399438", "0.7393826", "0.7393826", "0.7366711", "0.73629713", "0.73629713", "0.735185", "0.735185", "0.7342913", "0.73331803", "0.73191994", "0.73191994", "0.73191994", "0.73051393", "0.728335", "0.7277571", "0.7277571", "0.7277571", "0.7277571", "0.7277571" ]
0.0
-1
has to be implemented wird von update() aufgerufen.
void updateGameState(GameState gameState);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\n\tpublic void update() { }", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\r\n\tpublic void update() {\r\n\t}", "public void update(){}", "public void update(){}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n public void update() {\n }", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\n public void update()\n {\n\n }", "@Override\n public void update() {\n \n }", "public void update() {}", "@Override\n public void update() {\n }", "protected abstract void update();", "protected abstract void update();", "@Override\n public void update() {\n\n }", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "protected abstract void update();", "public void update() {\n\t\t\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update()\n\t{\n\t\tsuper.update();\n\t}", "public void update() {\n }", "public void update() ;", "public void update() {\r\n\t\t\r\n\t}", "public void update(){\r\n\t\t\r\n\t}", "public void update() {\n\n }", "public void update() {\n\n }", "abstract public void update();", "public void willbeUpdated() {\n\t\t\n\t}", "public void update(){\r\n }", "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "public abstract void update();", "@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void update(UpdateInfo updateInfo) {\n\t\t\n\t}", "public void update(){\n }", "public void update(){\n \t//NOOP\n }", "@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}", "public abstract void update ();", "@Override\r\n\tpublic void update(Object object) {\n\t\t\r\n\t}", "@Override\r\n public void onUpdate() {\n super.onUpdate();\r\n }", "protected void onUpdate() {\r\n\r\n\t}", "@Override\r\n\tpublic void Update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void Update() {\n\t\t\r\n\t}", "@Override\n\tpublic void update(Object o) {\n\n\t}", "@Override\n\tpublic void update(Object o) {\n\n\t}", "@Override\n\tpublic void onUpdate() {\n\t\t\n\t}", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "public void update();", "@Override\r\n\tpublic int update() throws Exception {\n\t\treturn 0;\r\n\t}" ]
[ "0.87861806", "0.87861806", "0.8780067", "0.8780067", "0.8780067", "0.8757316", "0.8757316", "0.8677745", "0.8677745", "0.8677745", "0.8677745", "0.8677745", "0.8647141", "0.8606431", "0.8606431", "0.8606431", "0.8606431", "0.8606431", "0.8606431", "0.86016357", "0.8573908", "0.8520871", "0.8520871", "0.852025", "0.852025", "0.852025", "0.8519788", "0.8519788", "0.84916127", "0.84916127", "0.84916127", "0.84916127", "0.84916127", "0.84916127", "0.84916127", "0.84916127", "0.84916127", "0.84916127", "0.8472235", "0.8445538", "0.84434354", "0.84434354", "0.83969086", "0.83890855", "0.83305264", "0.8324542", "0.83203375", "0.83203375", "0.83082676", "0.82710797", "0.82054174", "0.82048965", "0.8167682", "0.8167682", "0.8167682", "0.8167682", "0.8097184", "0.80863124", "0.80784696", "0.8076619", "0.7988686", "0.7983662", "0.7983662", "0.7967956", "0.7951143", "0.79428935", "0.79420954", "0.79198736", "0.79198736", "0.79198736", "0.79198736", "0.79198736", "0.79198736", "0.79198736", "0.79198736", "0.79198736", "0.79198736", "0.79198736", "0.79198736", "0.78892237", "0.78657955", "0.7847899", "0.7806084", "0.77935815", "0.77675784", "0.7754937", "0.7737705", "0.77069366", "0.77056557", "0.77056557", "0.7685866", "0.7685866", "0.76857305", "0.7679889", "0.7679889", "0.7679889", "0.7679889", "0.7679889", "0.7679889", "0.7679889", "0.7660583" ]
0.0
-1
has to be implemented
Color getColor();
{ "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 function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void perish() {\n \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 interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\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\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void memoria() {\n \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}", "public final void mo51373a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@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 protected void initialize() {\n\n \n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\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\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\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\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\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\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo38117a() {\n }", "public abstract void mo70713b();", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public void mo4359a() {\n }", "@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}" ]
[ "0.7050703", "0.6818506", "0.6799358", "0.6799358", "0.6700058", "0.6606672", "0.6606672", "0.65893286", "0.6586795", "0.6554747", "0.65357065", "0.65111274", "0.6506393", "0.6492653", "0.6439059", "0.64317393", "0.6399924", "0.6380945", "0.6364512", "0.63607794", "0.6341188", "0.63153124", "0.63111186", "0.6292409", "0.6291024", "0.6284321", "0.628231", "0.62786776", "0.62774837", "0.62685657", "0.62685657", "0.62620026", "0.62526643", "0.6240493", "0.6235884", "0.6230621", "0.622474", "0.62139195", "0.620763", "0.61828655", "0.61819255", "0.61619216", "0.614606", "0.61433196", "0.61216766", "0.610507", "0.60987025", "0.6094845", "0.6094845", "0.6094845", "0.6085861", "0.60794544", "0.60794544", "0.60787594", "0.60787594", "0.60787594", "0.60787594", "0.60787594", "0.60787594", "0.6073789", "0.6066176", "0.60620266", "0.60620266", "0.60620266", "0.60620266", "0.60620266", "0.60620266", "0.60606104", "0.6057028", "0.60534555", "0.60515684", "0.6051154", "0.6050526", "0.60492295", "0.60492295", "0.6039956", "0.6039676", "0.60378927", "0.6036682", "0.6036682", "0.6036682", "0.6036682", "0.6036682", "0.60361904", "0.602878", "0.6019767", "0.6002314", "0.60013044", "0.6000318", "0.5999024", "0.5999024", "0.5995039", "0.5990592", "0.5990592", "0.5989147", "0.5989147", "0.59863895", "0.5971554", "0.59628063", "0.59628063", "0.59628063" ]
0.0
-1
wird von update aufgerufen, sobald ein anderer Spieler eine Karte gewinnt.
void notifyWonCards(Color color, Symbol symbol);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}", "@Override\r\n\tpublic boolean update(Moteur obj) {\n\t\treturn false;\r\n\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n public boolean update(Revue objet) {\n return false;\n }", "@Override\n\tpublic void update(Unidade obj) {\n\n\t}", "public void update(){}", "public void update(){}", "public void updateByObject()\r\n\t{\n\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void update(Object o) {\n\n\t}", "@Override\n\tpublic void update(Object o) {\n\n\t}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic boolean update(Produto t) {\n\t\treturn true;\n\t}", "Motivo update(Motivo update);", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void update(Cidade obj) {\n\r\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\n\tpublic void update() {\n\n\t}", "@Override\r\n\tpublic void update(Object object) {\n\t\t\r\n\t}", "public void willbeUpdated() {\n\t\t\n\t}", "@Override\n\tpublic void update() { }", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "@Override\n\tpublic int update(Reservation objet) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}", "@Override\n\tpublic void update(T obj) throws Exception {\n\t\t\n\t}", "@Override\r\n\tpublic void update() {\r\n\t}", "public boolean update(Etudiant obj) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean update(Etape obj) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Override\n\tpublic void update() {\n\t}", "@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}", "public void update() {}", "@Override\n\tpublic Fournisseur update(Fournisseur entity) {\n\t\treturn null;\n\t}", "@Override\r\npublic int update(Detalle_pedido d) {\n\treturn detalle_pedidoDao.update(d);\r\n}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\r\n\tpublic void update() {\n\r\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tpublic void update() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}", "public boolean update(New object);", "@Override\n\tprotected void doUpdate(Session session) {\n\n\t}", "public boolean update(Object obj) throws Exception;", "E update(E entiry);", "@Override\r\n\tpublic Ngo update(Ngo obj) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic void update(Person p) \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void update(Usuario t) {\n\t\t\r\n\t}", "@Override\n\tpublic int update(Object object) {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic Ressource update(Ressource obj) {\n\t\treturn null;\r\n\t}", "@Override\n public void update() {\n }", "@Override\n\t\tpublic boolean update(Carrera entity, int id) {\n\t\t\t\treturn false;\n\t\t}", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "public void updateData() {}", "@Override\n public void update(Usuario usuario) {\n }", "protected abstract void update();", "protected abstract void update();", "public void update() {\n\t\t\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "@Override\n\t\tpublic void update(Metodologia metodologia,String name) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void update(Responsible p) {\n\t\t\r\n\t}", "@Override\n public void update() {\n \n }", "Item update(Item item);", "@Override\r\n\tpublic int do_update(DTO dto) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic int update(Object ob) {\n\t\treturn 0;\n\t}", "@Override\n\t/**\n\t * Actualizo un empleado.\n\t */\n\tpublic boolean update(Object c) {\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean update(Amigo amigo) {\n\t\treturn false;\r\n\t}", "public void update()\n\t{\n\t\tsuper.update();\n\t}", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }", "@Override\n\tpublic boolean update(Document obj) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean doUpdate(Orders vo) throws Exception\n\t{\n\t\treturn false; \n\t}", "@Override\n\tpublic PI update(PIDTO updated) throws NotFoundException {\n\t\treturn null;\n\t}", "@Override\n\tpublic boolean update(Langues obj) {\n\t\treturn false;\n\t}", "@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}" ]
[ "0.7815704", "0.75995755", "0.75020385", "0.75020385", "0.75020385", "0.7494497", "0.74682844", "0.7462243", "0.7462243", "0.7382996", "0.73814726", "0.73814726", "0.73337466", "0.73337466", "0.73217016", "0.73217016", "0.73173934", "0.7306885", "0.7256059", "0.7256059", "0.7256059", "0.7256059", "0.7256059", "0.7253373", "0.7210865", "0.7210865", "0.7210865", "0.7210865", "0.7210865", "0.7210865", "0.7187981", "0.71774125", "0.71633744", "0.71506333", "0.7141706", "0.7130836", "0.7126687", "0.7115349", "0.7108252", "0.7098608", "0.70807695", "0.70807695", "0.70657045", "0.70657045", "0.70657045", "0.7057162", "0.7012512", "0.6999406", "0.6985501", "0.69534993", "0.69534993", "0.69441134", "0.69441134", "0.69441134", "0.69441134", "0.69441134", "0.69441134", "0.69441134", "0.69441134", "0.69441134", "0.69441134", "0.6943387", "0.6939431", "0.6935645", "0.69316185", "0.6929157", "0.6924885", "0.6907247", "0.68983895", "0.68917125", "0.68790966", "0.6868989", "0.685666", "0.6853175", "0.68481237", "0.6847215", "0.684494", "0.68398994", "0.68398994", "0.68383694", "0.6837881", "0.6837881", "0.6837881", "0.6837881", "0.6836408", "0.68349457", "0.6831745", "0.6829786", "0.68229306", "0.68195295", "0.6811503", "0.6809594", "0.6804538", "0.6792321", "0.6792321", "0.67821634", "0.6780603", "0.67799544", "0.6779722", "0.6764301", "0.6764301" ]
0.0
-1
has to be implemented
Symbol getActiveCard();
{ "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 function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void perish() {\n \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 interr() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\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\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void memoria() {\n \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}", "public final void mo51373a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@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 protected void initialize() {\n\n \n }", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\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\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\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\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\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\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo38117a() {\n }", "public abstract void mo70713b();", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n protected void initData() {\n }", "@Override\n protected void initData() {\n }", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public void mo4359a() {\n }", "@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}" ]
[ "0.7050703", "0.6818506", "0.6799358", "0.6799358", "0.6700058", "0.6606672", "0.6606672", "0.65893286", "0.6586795", "0.6554747", "0.65357065", "0.65111274", "0.6506393", "0.6492653", "0.6439059", "0.64317393", "0.6399924", "0.6380945", "0.6364512", "0.63607794", "0.6341188", "0.63153124", "0.63111186", "0.6292409", "0.6291024", "0.6284321", "0.628231", "0.62786776", "0.62774837", "0.62685657", "0.62685657", "0.62620026", "0.62526643", "0.6240493", "0.6235884", "0.6230621", "0.622474", "0.62139195", "0.620763", "0.61828655", "0.61819255", "0.61619216", "0.614606", "0.61433196", "0.61216766", "0.610507", "0.60987025", "0.6094845", "0.6094845", "0.6094845", "0.6085861", "0.60794544", "0.60794544", "0.60787594", "0.60787594", "0.60787594", "0.60787594", "0.60787594", "0.60787594", "0.6073789", "0.6066176", "0.60620266", "0.60620266", "0.60620266", "0.60620266", "0.60620266", "0.60620266", "0.60606104", "0.6057028", "0.60534555", "0.60515684", "0.6051154", "0.6050526", "0.60492295", "0.60492295", "0.6039956", "0.6039676", "0.60378927", "0.6036682", "0.6036682", "0.6036682", "0.6036682", "0.6036682", "0.60361904", "0.602878", "0.6019767", "0.6002314", "0.60013044", "0.6000318", "0.5999024", "0.5999024", "0.5995039", "0.5990592", "0.5990592", "0.5989147", "0.5989147", "0.59863895", "0.5971554", "0.59628063", "0.59628063", "0.59628063" ]
0.0
-1
creates new instance of chosen player Correct place to add new and more KI players!
static Player createNewPlayer(String className, Color color) throws IllegalArgumentException { switch (className) { case "PlayerKI": return new PlayerKI(color); case "PlayerKI2": return new PlayerKI2(color); case "PlayerKI3": return new PlayerKI3(color); case "PlayerKI4": return new PlayerKI4(color); case "PlayerHuman": return new PlayerPhysical(color); default: throw new IllegalArgumentException("createNewPlayer in Player.java doesn't know how to handle this!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n \tpublic void createAndAddNewPlayer( int playerID )\n \t{\n \t\t//add player with default name\n \t\tPlayer newPlayer = new Player( playerID, \"Player_\"+playerID );\n \t\tgetPlayerMap().put( playerID, newPlayer );\n \t}", "public static void createPlayers() {\n\t\tcomputer1 = new ComputerSpeler();\n\t\tspeler = new PersoonSpeler();\n//\t\tif (Main.getNumberOfPlayers() >= 3) { \n//\t\t\tSpeler computer2 = new ComputerSpeler();\n//\t\t}\n//\t\tif (Main.getNumberOfPlayers() == 4) {\n//\t\t\tSpeler computer3 = new ComputerSpeler();\n//\t\t}\n\n\n\t}", "void createPlayer(Player player);", "Player attackingPlayer(int age, int overall, int potential) {\r\n Player newPlayer = new Player(this.nameGenerator.generateName(), age, overall, potential, 'C' , 'F');\r\n\r\n\r\n\r\n\r\n }", "private void createPlayers() {\n // create human player first\n Player human = new Player(\"Player 1\", true);\n players.add(human);\n \n // create remaining AI Players\n for (int i = 0; i < numAIPlayers; i++) {\n Player AI = new Player(\"AI \" + (i + 1), false);\n players.add(AI);\n }\n }", "private Player addNewPlayer(String username) {\n if (!playerExists(username)) {\n Player p = new Player(username);\n System.out.println(\"Agregado jugador \" + username);\n players.add(p);\n return p;\n }\n return null;\n }", "Player createPlayer();", "private void createHumanPlayer() {\n humanPlayer = new Player(\"USER\");\n players[0] = humanPlayer;\n }", "void newPlayer(String name, String institution){\n Player newPlayer = new Player(name, institution,0);\n boolean x = players.add(newPlayer);\n }", "void addPlayer(Player newPlayer);", "private Player selectPlayer (int which) {\n System.out.println();\n int choice = readPlayerChoice(which);\n String name = readPlayerName();\n if (choice == TIMID)\n return new TimidPlayer(name);\n else if (choice == GREEDY)\n return new GreedyPlayer(name);\n else if (choice == CLEVER)\n return new CleverPlayer(name);\n else\n return new InteractivePlayer(name);\n }", "public void createPlayers() {\r\n\t\tPlayerList playerlist = new PlayerList();\r\n\t\tPlayer p = new Player();\r\n\t\tfor (int x = 0; x <= players; x++) {\r\n\t\t\tplayerlist.createPlayer(p);\r\n\t\t}\r\n\r\n\t\tScanner nameScanner = new Scanner(System.in);\r\n\r\n\t\tfor (int createdPlayers = 1; createdPlayers < players; createdPlayers++) {\r\n\t\t\tSystem.out.println(\"Enter next player's name:\");\r\n\t\t\tplayerlist.namePlayer(createdPlayers, nameScanner.nextLine());\r\n\t\t}\r\n\t\tnameScanner.close();\r\n\t}", "public void createNewPlayer()\n\t{\n\t\t// Set up all badges.\n\t\tm_badges = new byte[42];\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tm_badges[i] = 0;\n\t\tm_isMuted = false;\n\t}", "public void newPlayer() {\r\n\t\tthis.nbMonster ++;\r\n\t\tthis.nbPlayer ++;\r\n\t}", "public void createPlayers() {\n\t\t\n\t\twhite = new Player(Color.WHITE);\n\t\twhite.initilizePieces();\n\t\tcurrentTurn = white;\n\t\t\n\t\tblack = new Player(Color.BLACK);\n\t\tblack.initilizePieces();\n\t}", "public void generatePlayer()\n {\n board.getTile(8,0).insertPlayer(this.player);\n }", "private void createPlayers() {\n\t\t//Randomize roles\n\t\tArrayList<AdventurerEnum> randomisedRoles = getRandomisedRoles();\n\t\tfor(int i=0; i<numPlayers; i++) \n\t\t\tcreateOnePlayer(randomisedRoles.get(i), i+1);\n\t}", "void createNewGame(Player player);", "public void createPlayer() {\n ColorPicker colorPicker = new ColorPicker();\n\n for (Player player : players) {\n if (player.getColor() == color(0, 0, 0) || (player.hasName() == false)) {\n pickColor(player, colorPicker);\n return;\n }\n }\n\n // if (ENABLE_SOUND) {\n // sfx.moveToGame();\n // }\n\n state = GameState.PLAY_GAME;\n\n // Spawn players\n int index = 0;\n for (int i=players.size()-1; i>=0; i--) {\n String dir = directions.get(index); // Need to add players in reverse so that when they respawn, they move in the right direction\n players.get(i).setSpawn(spawns.get(dir)).setDirection(dir);\n index++;\n }\n\n // Update game state only if all players have name and color\n}", "public void addPlayer(String playerID) {\r\n\t\tplayerCount++;\r\n\t\tString name = guild.getMemberById(playerID).getEffectiveName();\r\n\t\t// Set up each player uniquely\r\n\t\tif (p2 == null) {\r\n\t\t\tp2 = new Player(1,playerID,GlobalVars.pieces.get(\"blue\"));\r\n\t\t\tp2.getPiece().setX(GlobalVars.playerCoordsPerRoom[0][0]+GlobalVars.playersOffset[1][0]);\r\n\t\t\tp2.getPiece().setY(GlobalVars.playerCoordsPerRoom[0][1]+GlobalVars.playersOffset[1][1]);\r\n\t\t\tplayers.add(p2);\r\n\t\t\tp1.setNextPlayer(p2);\r\n\t\t\tp2.setNextPlayer(p1);\r\n\t\t\tgameChannel.sendMessage(\"**\"+name+\"** has reincarnated as the BLUE adventurer\").queue();\r\n\t\t} else if (p3 == null) {\r\n\t\t\tp3 = new Player(2,playerID,GlobalVars.pieces.get(\"yellow\"));\r\n\t\t\tp3.getPiece().setX(GlobalVars.playerCoordsPerRoom[0][0]+GlobalVars.playersOffset[2][0]);\r\n\t\t\tp3.getPiece().setY(GlobalVars.playerCoordsPerRoom[0][1]+GlobalVars.playersOffset[2][1]);\r\n\t\t\tplayers.add(p3);\r\n\t\t\tp2.setNextPlayer(p3);\r\n\t\t\tp3.setNextPlayer(p1);\r\n\t\t\tgameChannel.sendMessage(\"**\"+name+\"** has reincarnated as the YELLOW adventurer\").queue();\r\n\t\t} else if (p4 == null) {\r\n\t\t\tp4 = new Player(3,playerID,GlobalVars.pieces.get(\"green\"));\r\n\t\t\tp4.getPiece().setX(GlobalVars.playerCoordsPerRoom[0][0]+GlobalVars.playersOffset[3][0]);\r\n\t\t\tp4.getPiece().setY(GlobalVars.playerCoordsPerRoom[0][1]+GlobalVars.playersOffset[3][1]);\r\n\t\t\tplayers.add(p4);\r\n\t\t\tp3.setNextPlayer(p4);\r\n\t\t\tp4.setNextPlayer(p1);\r\n\t\t\tgameChannel.sendMessage(\"**\"+name+\"** has reincarnated as the GREEN adventurer\").queue();\r\n\t\t}\r\n\t}", "public void addPlayer(Player player) {\n //int id = Repository.getNextUniqueID();\n this.player = player;\n }", "private void createPlayers() {\n\tGlobal.camera_player1 = new Camera(new OrthographicCamera());\n\tGlobal.camera_player2 = new Camera(new OrthographicCamera());\n\tGlobal.camera_ui = new OrthographicCamera();\n\tGlobal.player1 = new Plane(Global.player1_respawn.x,\n\t\tGlobal.player1_respawn.y, 0, new Planetype(PlaneTypes.F35),\n\t\tEntityType.PLAYER1);\n\tGlobal.player2 = new Plane(Global.player2_respawn.x,\n\t\tGlobal.player2_respawn.y, 0, new Planetype(PlaneTypes.F35),\n\t\tEntityType.PLAYER2);\n }", "public void createOwnerPlayer(String name, double x, double y) {\n Player player = (Player) players.get(name);\r\n if (player == null) {\r\n// System.out.println(\"Create owner player \" + name);\r\n player = new Player(name, x, y);\r\n inPlayer = player;\r\n players.put(name, player);\r\n }\r\n }", "private void initPlayers() {\n this.playerOne = new Player(1, 5, 6);\n this.playerTwo = new Player(2, 0, 1);\n this.currentPlayer = playerOne;\n\n }", "private void createHumanPlayer(PlayerId pId) {\n\t\tplayers.put(pId, new GraphicalPlayerAdapter());\n\t\tplayerNames.put(pId, texts.get(pId.ordinal() * 2).getText().isEmpty() ? defaultNames[pId.ordinal()] : texts.get(pId.ordinal() * 2).getText());\n\t}", "public void addPlayerToTheList(){\n \tif(!txtFieldPlayerName.getText().trim().isEmpty() && totPlayers <= maximumPlayersAllowed){\n\t\t\t\n \t\t//creates a new Player and adds the name that the user inputs from the textField\n\t\t\tplayer.add(new Player(txtFieldPlayerName.getText()));\n\t\t\n\t\t\tString playerName = \"\";\n\t\t\tint playerNr = 1;\n\t\t\t\n\t\t\tfor(Player p : player){\n\t\t\t\tplayerName += playerNr+\": \"+p.getName()+\"<br>\"; \n\t\t\t\tplayerNr++;\n\t\t\t}\n\t\t\t\n\t\t\ttotPlayers++;\n\t\t\tlblPlayerList.setText(\"<html><h2>PLAYER LIST</h2>\"+playerName+\"</html>\");\n\t\t\ttxtFieldPlayerName.setText(\"\");\n\t\t}\n\t\t\n\t\tif(totPlayers >= minimumPlayersAllowed){\n\t\t\tbtnPlay.setEnabled(true);\n\t\t}\n\t\t\n\t\tif(totPlayers >= maximumPlayersAllowed){\n\t\t\tbtnAddPlayer.setEnabled(false);\n\t\t\ttxtFieldPlayerName.setEnabled(false);\n\t\t}\n }", "PlayerGroup createPlayerGroup();", "public void createPlayer(String name, double x, double y) {\n Player player = (Player) players.get(name);\r\n if (player == null) {\r\n// System.out.println(\"Create online player \" + name);\r\n player = new OnlinePlayer(name, x, y);\r\n players.put(name, player);\r\n }\r\n }", "public PlayerHandler create(String type, PlayerInfo playerInfo, List<Integer> otherPlayerIds);", "Player(String playerName) {\n this.playerName = playerName;\n }", "public void setUpPlayers() {\n this.players.add(new Player(\"Diogo\"));\n this.players.add(new Player(\"Hayden\"));\n this.players.add(new Player(\"Gogo\"));\n }", "private void addPlayers(@NotNull MapHandler map, @NotNull NewGameDto newGameDto) {\n ComparableTuple<Integer, Stack<SpawnTile>> result = analyseMap(map);\n flagCount = result.key;\n Stack<SpawnTile> spawnTiles = result.value;\n if (!spawnTiles.isEmpty()) {\n for (PlayerDto player : newGameDto.players) {\n SpawnTile spawnTile = spawnTiles.pop();\n if (player.id == newGameDto.userId) {\n user = new Player(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(GameGraphics.mainPlayerName + \" (you)\", player.color), player.id);\n user.setDock(spawnTile.getSpawnNumber());\n players.add(user);\n } else {\n IPlayer onlinePlayer = new OnlinePlayer(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(player.name, player.color), player.id);\n onlinePlayer.setDock(spawnTile.getSpawnNumber());\n players.add(onlinePlayer);\n }\n }\n } else {\n for (int i = 0; i < playerCount; i++) {\n NonPlayer nonPlayer = new NonPlayer(i, 0, Direction.NORTH, map, new ComparableTuple<>(\"blue\", Color.BLUE));\n nonPlayer.setDock(i);\n players.add(nonPlayer);\n }\n }\n }", "public Game newGame( String player ) throws IllegalArgumentException{\n Game game = new Game();\n game.setPlayer( playersRepository.getByLogin( player )\n .orElseThrow( () -> new IllegalArgumentException( \"This player doesn't exists\" ) ) );\n game.setGuessedNumber( new Random( System.currentTimeMillis() ).ints( 0 , 9 )\n .distinct()\n .limit( 4 )\n .boxed()\n .map( String::valueOf )\n .collect( Collectors.joining( \"\" ) ) );\n return gamesRepository.saveAndFlush( game );\n }", "public SoccerPlayer(String name, String position, TeamDB team){\n\n// Random num = new Random();\n// int randInt1;\n// int randInt2;\n// int randInt3;\n// int randInt4;\n//\n// randInt1 = num.nextInt(10); //fix for height and weight.\n// randInt2 = num.nextInt(190);\n// randInt3 = num.nextInt(300);\n// randInt4 = num.nextInt(10);\n\n playerName = name;\n playerPosition = position;\n playerTeam = new TeamDB(\"\");\n// playerUniform = randInt1;\n// playerHeight = randInt2;\n// playerWeight = randInt3;\n// playerGoals = randInt4;\n }", "public void addPlayer(Player player){\n players.add(player);\n }", "private void setupPlayers() {\n\t\tuserData=(UserData) Main.currentStage.getUserData();\n\t\tnumberPlayers=userData.getNumberPlayers();\n\t\tplayerNames=userData.getPlayerNames();\n\t\tcurrentPlayer=userData.getFirstPlayer();\n\t\tlb_currentplayername.setText(playerNames[currentPlayer]);\n\t\tplayers =new Player[4];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tif(i<numberPlayers) {\n\t\t\t\tplayers[i]=new Player(playerNames[i], false, i) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void rollDices() {\n\t\t\t\t\t\trotatedDice1();\n\t\t\t\t\t\trotatedDice2();\n\t\t\t\t\t\t//waiting for player choose what way to go then handler that choice\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\telse {\n\t\t\t\tplayers[i]=new Player(playerNames[i], true, i) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void rollDices() {\n\t\t\t\t\t\trotatedDice1();\n\t\t\t\t\t\trotatedDice2();\n\t\t\t\t\t\t//randomchoice and next player rolldice\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\tswitch (i) {\n\t\t\t\tcase 0:{\n\t\t\t\t\tplayers[i].setHorseColor(yh0, yh1, yh2, yh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 1:{\n\t\t\t\t\tplayers[i].setHorseColor(bh0, bh1, bh2, bh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 2:{\n\t\t\t\t\tplayers[i].setHorseColor(rh0, rh1, rh2, rh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 3:{\n\t\t\t\t\tplayers[i].setHorseColor(gh0, gh1, gh2, gh3);\n\t\t\t\t\tbreak;\n\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 void start(){\n int numberOfPlayers = Integer.parseInt(JOptionPane.showInputDialog(\"How many players\"));\n player1 = new Player(JOptionPane.showInputDialog(\"What is your name?\"));\n if(numberOfPlayers == 1){\n player2 = new Player(\"Computer\");\n }\n else if(numberOfPlayers == 2){\n player2 = new Player(JOptionPane.showInputDialog(\"What is the second player name?\"));\n }\n\n }", "private static void createPlayers(int numPlayers){\r\n\t\t// crea la lista de jugadores\r\n\t\tfor(int i = 1; i <= numPlayers; i++){\r\n\t\t\t// Muestra una ventana de dialogo para introducir el nombre del jugador\r\n\t\t\tJTextField textField = new JTextField();\r\n\t\t\ttextField.setText(\"Jugador\"+i);\r\n\t\t\tJOptionPane.showOptionDialog(null, textField, \"Escriba el nombre para el jugador #\"+i, JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null, new String[]{\"Aceptar\"}, null);\r\n\t\t\tplayers.add(new Player(textField.getText()));\r\n\t\t}\r\n\t}", "public Player(int i){\r\n playerID=i;\r\n }", "public RandomPlayer(String name)\r\n\t{\r\n\t\tsuper.setName(name);\r\n\t\tguessHistory=new ArrayList<Code>();\r\n\t}", "public void createChallenger() {\n\n Random random = new Random();\n if(currentTurn.getActivePlayers().size() != 1) {\n currentTurn.setCurrentPlayer(currentTurn.getActivePlayers().get(random.nextInt(currentTurn.getActivePlayers().size() - 1)));\n } else {\n currentTurn.setCurrentPlayer(currentTurn.getActivePlayers().get(0));\n }\n int i = onlinePlayers.indexOf(currentTurn.getCurrentPlayer());\n stateList.set(i, new Initialized(getCurrentTurn().getCurrentPlayer(), this));\n\n }", "public void newGame() {\n // this.dungeonGenerator = new TowerDungeonGenerator();\n this.dungeonGenerator = cfg.getGenerator();\n\n Dungeon d = dungeonGenerator.generateDungeon(cfg.getDepth());\n Room[] rooms = d.getRooms();\n\n String playername = JOptionPane.showInputDialog(null, \"What's your name ?\");\n if (playername == null) playername = \"anon\";\n System.out.println(playername);\n\n this.player = new Player(playername, rooms[0], 0, 0);\n player.getCurrentCell().setVisible(true);\n rooms[0].getCell(0, 0).setEntity(player);\n\n frame.showGame();\n frame.refresh(player.getCurrentRoom().toString());\n frame.setHUD(player.getGold(), player.getStrength(), player.getCurrentRoom().getLevel());\n }", "void addPlayer(IPlayer player);", "PlayerBean create(String name);", "public void addPlayer(Player p){\r\n this.players[PlayerFactory.nb_instances-1]=p;\r\n this.tiles[p.getX()+(p.getY()*this.width)]=p;\r\n }", "public Player(String name) {\n this.NAME = name;\n this.ownedCountries = new ArrayList<>();\n this.totArmyCount = 0;\n this.PlayerTurn = false;\n }", "public Pawn(String player){\r\n this.player=player;\r\n\r\n }", "public PlayerFighter create(GamePlayer player);", "public Player_ex1(String playerName){\n this.name = playerName;\n winner = false;\n }", "Player(String name){\n\t\tthis.name = name;\n\t}", "private void createOnePlayer(AdventurerEnum role, int i) {\n\t\tString playerName;\n\t\tplayerName = getPlayerName(i);\n\t\t\n\t\tPlayers.getInstance().addPlayer(playerName, role);\n\t}", "private void getPlayers() {\r\n\t\tSystem.out.println(\"How Many Players: \");\r\n\t\tpnum = getNumber(1, 3);\r\n\r\n\t\tfor(int i=0; i < pnum; i++){\r\n\t\t\tSystem.out.println(\"What is player \" + (i + 1) + \"'s name? \");\r\n\t\t\tString name = sc.next();\r\n\t\t\tboolean dupe = true;\r\n\t\t\twhile(dupe){\r\n\t\t\t\tint samecounter = 0;\r\n\t\t\t\tfor(Player p : players){\r\n\t\t\t\t\tif(name.equals(p.getName())){\r\n\t\t\t\t\t\tsamecounter += 1;\r\n\t\t\t\t\t\tSystem.out.println(\"Name is the same as another players. Please choose another name: \");\r\n\t\t\t\t\t\tname = sc.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(samecounter == 0){\r\n\t\t\t\t\tdupe = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tplayers.add(new Player(name));\r\n\r\n\t\t}\r\n\t}", "public UserPlayer(){\n this.playerNum = 0;\n this.isLead = false;\n this.playerHand = new Hand();\n this.suitUserChose = null;\n }", "public void initializePlayers(){\r\n allPlayers = new ArrayList<Player>();\r\n currentPlayerIndex = 0;\r\n Player redPlayer = new Player(1, new Location(2, 2), Color.RED);\r\n Player bluePlayer = new Player(2, new Location(4, 2), Color.BLUE);\r\n Player whitePlayer = new Player(3, new Location(2, 4), Color.WHITE);\r\n Player yellowPlayer = new Player(4, new Location(4, 4), Color.YELLOW);\r\n allPlayers.add(redPlayer);\r\n allPlayers.add(bluePlayer);\r\n allPlayers.add(whitePlayer);\r\n allPlayers.add(yellowPlayer);\r\n }", "private boolean createPlayers(){\n if(validatePlayerSettings()){\n ArrayList<Color> colors = createColorArray();\n\n // Player 1\n Main.PLAYER.add(new Player(P1text.getText(), colors.get(0)));\n // Player or AI\n if (P2label.getText().contains(\"PLAYER\")){\n Main.PLAYER.add(new Player(P2text.getText(), colors.get(1)));\n }\n else if (P2label.getText().contains(\"AI\")){\n Main.PLAYER.add(new AI(P2text.getText(), colors.get(1)));\n }\n // Player or AI 3\n if (P3label.getText().contains(\"PLAYER\")){\n Main.PLAYER.add(new Player(P3text.getText(), colors.get(2)));\n }\n else if (P3label.getText().contains(\"AI\")){\n Main.PLAYER.add(new AI(P3text.getText(), colors.get(2)));\n }\n // Player or AI 4\n if (P4label.getText().contains(\"PLAYER\")){\n Main.PLAYER.add(new Player(P4text.getText(), colors.get(3)));\n }\n else if (P4label.getText().contains(\"AI\")){\n Main.PLAYER.add(new AI(P4text.getText(), colors.get(3)));\n }\n // Player or AI 5\n if (P5label.getText().contains(\"PLAYER\")){\n Main.PLAYER.add(new Player(P5text.getText(), colors.get(4)));\n }\n else if (P5label.getText().contains(\"AI\")){\n Main.PLAYER.add(new AI(P5text.getText(), colors.get(4)));\n }\n // Player or AI 6\n if (P6label.getText().contains(\"PLAYER\")){\n Main.PLAYER.add(new Player(P6text.getText(), colors.get(5)));\n }\n else if (P6label.getText().contains(\"AI\")){\n Main.PLAYER.add(new AI(P6text.getText(), colors.get(5)));\n }\n return true;\n }\n else{\n DebugLabel.setText(\"All players must have different colors and names!\");\n return false;\n }\n }", "public void setUp() throws ClassNotFoundException, InstantiationException, IllegalAccessException {\r\n \t\r\n players = new ArrayList<>();\r\n Scanner scanner = new Scanner(System.in);\r\n \r\n System.out.println(\"How many players?\");\r\n \r\n // Instead of using nextInt(), since that messes with the following nextLine, we will just convert from string to int. \r\n playerNum = Integer.parseInt(scanner.nextLine());\r\n \r\n playerBank = new int[playerNum];\r\n for (int i = 0; i < playerNum; i++) {\r\n System.out.println(\"What is Player \" + (i + 1) + \"'s name?\");\r\n System.out.println(\"Current options are Folchi, Matt, Justin, and Chris.\");\r\n \r\n // If-chain statement that handles all types of players\r\n // Reflection portion of code\r\n // The \"program2.\" is tacked onto any valid input so reflection works\r\n \r\n String input = scanner.nextLine();\r\n \r\n try {\r\n PlayerIf player = (PlayerIf) Class.forName(\"project2.Player\" + input).newInstance();\r\n player.setName(input);\r\n players.add(player);\r\n } catch (InstantiationException e) {\r\n \t\t\t\t\t// TODO Auto-generated catch block\r\n \t\t\t\t\te.printStackTrace();\r\n \t\t\t\t} catch (IllegalAccessException e) {\r\n \t\t\t\t\t// TODO Auto-generated catch block\r\n \t\t\t\t\te.printStackTrace();\r\n \t\t\t\t} catch (ClassNotFoundException e) {\r\n \t\t\t\t\tPlayerIf player = (PlayerIf) Class.forName(\"project2.SamplePlayer\").newInstance();\r\n player.setName(input);\r\n players.add(player);\r\n \t\t\t\t}\r\n \r\n playerBank[i] = 100;\r\n }\r\n \r\n scanner.close();\r\n }", "public void addPlayer(Player player) {\n playerList.add(player);\n }", "public void createStartingPlayers(CFrame frame) {\r\n\t\tSet<String> passableActions = new HashSet<String>();\r\n\t\tint playerNumber = Integer.parseInt(frame.getSidePanel().getButtons().getButton(\"start\", null));\r\n\t\tString name =\"\", charr;\r\n\t\tMap<String, String> pc = new HashMap<String, String>();\r\n\t\t\r\n\t\tframe.getSidePanel().getText().setText(\"Please select a character\\nand enter your name\\n\");\r\n\t\tfor(int i =0;i<playerNumber;i++){\r\n\t\t\tString test = frame.getSidePanel().getButtons().getButton(\"characterSelect\", passableActions);\r\n\r\n\t\t\tString Playercharacter[] = test.split(\",\");\r\n\t\t\tname= Playercharacter[0];\r\n\t\t\tcharr= Playercharacter[1];\r\n\t\t\tpassableActions.add(charr);\r\n\t\t\t\r\n\t\t\tpc.put(charr, name);\r\n\r\n\t\t\tSystem.out.println(\"Output: \" + name+\" : \"+charr);\r\n\t\t}\r\n\t\t\r\n\t\tfor(BoardObject object: boardObjects){\r\n\t\t\tSystem.out.println(object.getName() +\" \"+passableActions);\r\n\t\t\tif(object instanceof Character && passableActions.contains(object.getName())){\r\n\t\t\t\tSystem.out.println(object.getName());\r\n\t\t\t\t((Character) object).setAsPlayer(true);\r\n\t\t\t\t((Character) object).setPlayerName(pc.get(object.getName()));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tdeck.deal(players(), players().size());\r\n\r\n\t\t//Testing allocation\r\n\t\tfor(Character c: players())\r\n\t\t\tSystem.out.println(c.getName() + \": \" + c.playerName());\r\n\t}", "public void addPlayer(String name) {\n if (nrOfPlayers() < 4) {\n players.add(new Player(name, nrOfPlayers() + 1));\n this.status = \"Initiated\";\n } else {\n throw new NoRoomForMorePlayersException();\n }\n }", "private HumanGamePlayerOnKeyboard initializePlayer() {\n\t\tHumanGamePlayerOnKeyboard player = new HumanGamePlayerOnKeyboard();\n\t\tplayer.setPlayerName(HUMAN_PLAYER_NAME);\n\t\treturn player;\n\t}", "public void addPlayer(String p) {\n this.playersNames.add(p);\n }", "public void addNewPlayer(Player p) {\n\t\t// if the player don't exists in the highscore list the player is added\n\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\tif(highscore.get(p.getName()) == null) {\n\t\t\t\thighscore.put(p.getName(), 0);\n\t\t\t}\n\t\t}\n\t\tthis.playerList.add(p); \n\t}", "public void preparePlayer1()\n {\n Player1 p1 = new Player1();\n addObject(p1, 200, 600);\n }", "private void createSimulatedPlayer(PlayerId pId) {\n\t\tplayers.put(pId, new PacedPlayer(\n\t\t\tnew MctsPlayer(pId, mainRandom.nextLong(), texts.get(pId.ordinal() * 2 + 1).getText().isEmpty() ? DEFAULT_ITERATIONS : Integer.parseInt(texts.get(pId.ordinal() * 2 + 1).getText())),\n\t\t\tSIM_TIME));\n\t\tplayerNames.put(pId, texts.get(pId.ordinal() *2).getText().isEmpty() ? defaultNames[pId.ordinal()] : texts.get(pId.ordinal() * 2).getText());\n\t}", "public static void addingNewPlayer(){\r\n\t\t//hard code each score includng a total.\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\t\tSystem.out.println(\"Enter the name of the Player?\");\r\n\t\t\t\t\tString name = scan.next();\r\n\t\t\t\t\t\r\n\t\t\t//establishing the connection\r\n\t\t\tstatement = connection.createStatement();\r\n\t\t\t\r\n\t\t\t//inserting the quries assign to the String variables\r\n\t\t\tString query=\"insert into \" + tableName + \" values ('\" + name +\"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)\";\t\t\r\n\t\t\t\r\n\t\t\t//inserting the hard coded data into the table of the datbase\r\n\t\t\tstatement.execute(query);\r\n\t\t\t\r\n\t\t\t//closing the statement\r\n\t\t\tstatement.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t System.out.println(\"SQL Exception occurs\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public Multi_Player()\r\n {\r\n \r\n }", "protected void newPlayerList() {\n int len = getPlayerCount();\n mPlayerStartList = new PlayerStart[ len ];\n for(int i = 0; i < len; i++) {\n mPlayerStartList[i] = new PlayerStart( 0.f, 0.f );\n }\n }", "public Player(String name)\n {\n // initialise instance variables\n this.name = name;\n // start out with $100 in your wallet\n wallet = new Wallet(100);\n inventory = new HashMap<String, Item>();\n currentRoom = null;\n olcc = new OLCC();\n\n }", "public Player(String name) {\r\n this.name = name;\r\n// Maxnum = 0;\r\n special = 0;\r\n index = 0;\r\n }", "void addPerson(Player player);", "public PlayersHolder() {\n randomRoomPlayers = new LinkedBlockingQueue<>();\n freePlayersRoom = new FreePlayers();\n }", "private void createPlayer() {\r\n try {\r\n mRadioPlayer = new RadioPlayer(getApplication(), mDeezerConnect,\r\n new WifiAndMobileNetworkStateChecker());\r\n mRadioPlayer.addPlayerListener(this);\r\n setAttachedPlayer(mRadioPlayer);\r\n } catch (DeezerError e) {\r\n handleError(e);\r\n } catch (TooManyPlayersExceptions e) {\r\n handleError(e);\r\n }\r\n }", "public interface PlayerCreator {\n\n // Factory method for creating a player\n public PlayerHandler create(String type, PlayerInfo playerInfo, List<Integer> otherPlayerIds);\n \n public List<String> getPlayerTypes();\n}", "public Type_pckg newUser( DatagramPacket receivePacket)\r\n {\n control_pck.info = String.valueOf(current_players);\r\n current_players++; \r\n return Type_pckg.CONTROL;\r\n }", "public Player createPlayer(String playerName) {\n Player player = new Player(playerName);\n gamePlayers.add(player);\n notifier.broadcastPlayerJoined(playerName);\n if (allPlayersJoined()) {\n startGame();\n }\n return player;\n }", "public PlayerInterface createPlayer(String godName, PlayerInterface p) {\n God god = find(godName);\n p = addEffects(p, god.getEffects());\n return p;\n }", "public Player()\r\n {\r\n playerItem = new ArrayList();\r\n }", "private void createRemotePlayer(PlayerId pId) {\n\t\ttry {\n\t\t\tString ip = texts.get(pId.ordinal() * 2 + 1).getText();\n\n\t\t\tPlayer p = new RemotePlayerClient(ip.isEmpty() ? DEFAULT_HOST : ip);\t\t\t\n\t\t\tplayers.put(pId, p);\n\t\t} catch (IOException e) {\n\t\t\tmenuMessage.setText(\"Error -> can't create remote player : IP address must be missing\");\n\t\t}\n\t\tplayerNames.put(pId, texts.get(pId.ordinal() *2).getText().isEmpty() ? defaultNames[pId.ordinal()] : texts.get(pId.ordinal() * 2).getText());\n\t}", "public Player()\n {\n playerItem = new ArrayList();\n }", "public Player(Integer nameKey){\n\t\thand = new HashSet<Card>();\n\t\tswitch(nameKey){\n\t\tcase 0:\n\t\t\tname = \"Kasandra Scarlet\"; break;\n\t\tcase 1:\n\t\t\tname = \"Jack Mustard\"; break;\n\t\tcase 2:\n\t\t\tname = \"Diane White\"; break;\n\t\tcase 3:\n\t\t\tname = \"Jacob Green\"; break;\n\t\tcase 4:\n\t\t\tname = \"Eleanor Peacock\"; break;\n\t\tcase 5:\n\t\t\tname = \"Victor Plum\"; break;\n\t\t}\n\t}", "WarGame(Player newPlayer, int numOfPlayers) {\n Deck deckOfCards = new Deck();\n this.numOfPlayers = numOfPlayers;\n\n players = new WarPlayer[numOfPlayers];\n lastCards = new Card[numOfPlayers];\n this.newPlayer = newPlayer;\n\n for (int i = 0; i < players.length; i++) {\n players[i] = new WarPlayer();\n }\n\n //the distribution of cards (in the 3 players case it will be uneven so some cards won't be used\n int cardsPerPlayer = deckOfCards.numOfCards() / numOfPlayers;\n for (WarPlayer player : players) {\n for (int j = 0; j < cardsPerPlayer; j++) {\n Card nextCard = deckOfCards.getNextCard();\n player.receiveCard(nextCard);\n }\n }\n }", "void playerAdded();", "public void preparePlayer2()\n {\n Player2 p2 = new Player2();\n addObject(p2, 878, 600);\n }", "@Override\n public void addPlayer(Player player) {\n\n if(steadyPlayers.size()>0){\n PlayersMeetNotification.firePropertyChange(new PropertyChangeEvent(this, \"More than one Player in this Panel\",steadyPlayers,player));\n }\n steadyPlayers.add(player);\n\n }", "public static Player[] createPlayers(){\r\n\t\tPlayer[] players = new Player[2];\r\n\t\tSystem.out.print(\"Enter three letter nick name of Player1: \");\r\n\t\tplayers[0] = new Player(getName(), 0);\r\n\t\tSystem.out.print(\"Enter three letter nick name of Player2: \");\r\n\t\tplayers[1] = new Player(getName(), 18);\r\n\t\treturn players;\r\n\t}", "public Player() {\n\n\t\tnumberOfPlayers++;\n\t\tthis.playerNumber = \"Player \" + numberOfPlayers; \n\t\tthis.balance = 500.00; \n\t\tthis.numberOfLoans = 0;\n\t\tthis.score = 0;\n\t\tthis.inRound = true; \n\t}", "public Player(String name) {\n setName(name);\n setId(++idCounter);\n setHealthPoints(100);\n setYourTurn(false);\n }", "public void startNewTurn(){\n currentPlayer = players.peek();\n players.add(players.remove());\n view.changeCurrentPlayer(currentPlayer.getName(), currentPlayer.getPlayerDiePath(), numDays);\n currentPlayer.setHasPlayed(false);\n }", "Player() {\r\n setPlayerType(\"HUMAN\");\r\n\t}", "public Player(){\r\n\t\tname = \"\";\r\n\t\tchip = 0;\r\n\t\tbet = 0;\r\n\t\tplayerHand = new PlayerHand();\r\n\t\ttable = null;\r\n\t}", "public GamePlayer() {}", "public void setPlayer(Player newPlayer) {\n roomPlayer = newPlayer;\n }", "public Player() {}", "public Player() {}", "public Player() {}", "public Player() {}", "public interface Player {\n /**\n * has to be implemented\n * wird von update() in Game aufgerufen.\n * @return eine der Actions aus Rules.getActionsTileMove()\n */\n GameState requestActionTile();\n /**\n * has to be implemented\n * wird von update() in Game aufgerufen.\n * @return eine der Actions aus Rules.getActionsGamePieceMove()\n */\n GameState requestActionGamePiece();\n\n /**\n * has to be implemented\n * wird von update() aufgerufen.\n * @param gameState aktueller GameState\n */\n void updateGameState(GameState gameState);\n\n GameState getGameState();\n\n /**\n * has to be implemented\n * @return the color of the Player\n */\n Color getColor();\n\n void setRules(Rules rules);\n Rules getRules();\n\n void setName(String name);\n String getName();\n\n void setThread(ThreadUpdate thread);\n void setSynchronizer(Object synchronizer);\n\n /**\n * wird von update aufgerufen, sobald ein anderer Spieler eine Karte gewinnt.\n * @param color Farbe des Spielers, der eine Karte gewonnen hat\n * @param symbol auf dieser Karte\n */\n void notifyWonCards(Color color, Symbol symbol);\n\n /**\n * legt die Karte ganz oben auf dem Stapel, die der Spieler als nächstes gewinnen muss fest.\n * Wird von Game_Impl aufgerufen um dem Player seine Karte mitzuteilen\n * @param symbol neue zu erreichende Karte/Symbol\n */\n void setActiveCard(Symbol symbol);\n\n /**\n * has to be implemented\n * @return the activeCard, that was set by Game_Impl\n */\n Symbol getActiveCard();\n\n\n /**\n * creates new instance of chosen player\n *\n * Correct place to add new and more KI players!\n *\n * @param className name of the class to create an instance of\n * @param color chosen color for a player\n * @return new instance of playerclass\n */\n static Player createNewPlayer(String className, Color color) throws IllegalArgumentException {\n switch (className) {\n case \"PlayerKI\":\n return new PlayerKI(color);\n case \"PlayerKI2\":\n return new PlayerKI2(color);\n case \"PlayerKI3\":\n return new PlayerKI3(color);\n case \"PlayerKI4\":\n return new PlayerKI4(color);\n case \"PlayerHuman\":\n return new PlayerPhysical(color);\n default:\n throw new IllegalArgumentException(\"createNewPlayer in Player.java doesn't know how to handle this!\");\n }\n }\n}", "static Player createUserPlayer(boolean randPlace, FleetMap fleetMap, BattleMap battleMap) {\n return new AbstractPlayer(fleetMap, battleMap, randPlace);\n }", "boolean addPlayer(String player);", "private void initializePlayers(int playerNumber)\r\n\t{\n\t\tHumanPlayer humanPlayer = new HumanPlayer(\"HumanPlayer\");\r\n\t\tplayerList.add(humanPlayer);\r\n\t\tfor ( int i = 0; i < playerNumber-1; ++i )\r\n\t\t{\r\n\t\t\tAIPlayer aiPlayer = new AIPlayer(\"Computer Player \" + (i+1));\r\n\t\t\tplayerList.add(aiPlayer);\r\n\t\t}\r\n\t}", "public Game(String id){\n this.id = id;\n players = new ArrayList<>();\n }" ]
[ "0.73957264", "0.72560245", "0.7234383", "0.7078053", "0.70775664", "0.70566565", "0.6985591", "0.69708425", "0.6952619", "0.6928354", "0.68463504", "0.6816809", "0.6804943", "0.6802287", "0.6754628", "0.6739512", "0.67198265", "0.67155427", "0.6669298", "0.6651957", "0.66515356", "0.6632748", "0.6627112", "0.66182905", "0.657841", "0.6578143", "0.65569884", "0.6549307", "0.6525559", "0.6513332", "0.65094835", "0.6500502", "0.6456986", "0.6451542", "0.6441851", "0.64406556", "0.6440538", "0.6437138", "0.64367694", "0.643162", "0.64177763", "0.64111954", "0.639551", "0.6383405", "0.63700306", "0.635774", "0.63057506", "0.63016844", "0.62906915", "0.62854344", "0.6279188", "0.62758577", "0.62713784", "0.62636316", "0.6261551", "0.62566954", "0.6251031", "0.62503314", "0.6249509", "0.62398255", "0.6223252", "0.62032497", "0.61930794", "0.61890763", "0.6185288", "0.617303", "0.61681867", "0.6165423", "0.6154961", "0.61507624", "0.61493224", "0.6145412", "0.6135941", "0.61322784", "0.6119618", "0.6119007", "0.611275", "0.61094236", "0.6105139", "0.6104805", "0.61047", "0.6102309", "0.6099743", "0.609665", "0.6091288", "0.60897833", "0.60876393", "0.6084915", "0.6084582", "0.60800225", "0.6074991", "0.60713226", "0.60658026", "0.60658026", "0.60658026", "0.60658026", "0.6060081", "0.60559434", "0.6048798", "0.60469747", "0.6042399" ]
0.0
-1
a timer has occurred in a dialog regarding a publication
public void onTimerEvent(TimerEvent event, ActivityContextInterface aci) { // cancel current timer //timerFacility.cancelTimer(event.getTimerID()); // detach from aci aci.detach(this.sbbContext.getSbbLocalObject()); // end it ((NullActivity) aci.getActivity()).endActivity(); // delegate to abstract code timerExpired(event.getTimerID()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void timeDialogCallBack(String time) {\n\t\t\r\n\t}", "public static void updateTimeButtonClicked() {\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n String success = OccasionCommunication.updateOccasion(occasion.getId(), occasion.getDate(), occasion.getOpenTime(),\n occasion.getCloseTime(), occasion.getBuilding().getId());\n if (success.equals(\"Successful\")) {\n alert.hide();\n } else {\n alert.setContentText(success);\n alert.showAndWait();\n }\n }", "@Override\n\t\t\t\tpublic void onDismiss() {\n\t\t\t\t\tsleep_time.setText(\"无操作\" + getTimeOut(context.getContentResolver())\n\t\t\t\t\t\t\t+ \"后休眠\");\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}", "public void onClick(DialogInterface dialog, int id) {\n Date dateObj = new Date();\n long timeNow = dateObj.getTime();\n editor.putLong(getResources().getString(R.string.later_pressed_time), timeNow);\n editor.putBoolean(getResources().getString(R.string.later), true);\n editor.commit();\n dialog.cancel();\n }", "@Override\r\n\tpublic void ptimeDialogCallBack(int hour, int minute) {\n\t\t\r\n\t}", "private void countTime()\n {\n time--;\n showTime();\n if (time == 0)\n {\n showEndMessage();\n Greenfoot.stop();\n }\n }", "private void trackerTimer() {\n\n Thread timer;\n timer = new Thread() {\n\n @Override\n public void run() {\n while (true) {\n\n if (Var.timerStart) {\n try {\n Var.sec++;\n if (Var.sec == 59) {\n Var.sec = 0;\n Var.minutes++;\n }\n if (Var.minutes == 59) {\n Var.minutes = 0;\n Var.hours++;\n }\n Thread.sleep(1000);\n } catch (Exception cool) {\n System.out.println(cool.getMessage());\n }\n\n }\n timerText.setText(Var.hours + \":\" + Var.minutes + \":\" + Var.sec);\n }\n\n }\n };\n\n timer.start();\n }", "@Override\n public void timerExpired() {\n //Inform the player they have failed\n if (isEnglish) {\n Toast.makeText(this, LOSS, Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, LOSS_CHINESE, Toast.LENGTH_SHORT).show();\n }\n\n //Set visibility for replay button to visible\n replayButton.setVisibility(View.VISIBLE);\n retryButton.setVisibility(View.VISIBLE);\n scoreboardButton.setVisibility(View.VISIBLE);\n }", "public boolean displayMessage()\n {\n boolean show = false;\n Calendar cal2 = null;\n Calendar cal = null;\n\n int h = this.getIntHora();\n cal = Calendar.getInstance();\n cal.setTime(cfg.getCoreCfg().getIesClient().getDatesCollection().getHoresClase()[h-1]);\n cal.set(Calendar.YEAR, m_cal.get(Calendar.YEAR));\n cal.set(Calendar.MONTH, m_cal.get(Calendar.MONTH));\n cal.set(Calendar.DAY_OF_MONTH, m_cal.get(Calendar.DAY_OF_MONTH));\n cal.add(Calendar.MINUTE, cfg.activaMissatges);\n\n cal2 = (Calendar) cal.clone();\n cal2.add(Calendar.SECOND, 4); //show during 4 sec\n\n //System.out.println(\"ara es hora\" + h);\n //System.out.println(\"comparing dates \" + cal.getTime() + \"; \" + cal2.getTime() + \"; \" + m_cal.getTime());\n\n if(cal.compareTo(m_cal)<=0 && m_cal.compareTo(cal2)<=0 )\n {\n show = true;\n }\n\n return show;\n }", "public void pickUpTimer()\r\n\t{\t\t\r\n\t\tSystem.out.println(timer.get());\r\n\t\tif(timer.get() < Config.Auto.timeIntakeOpen)\r\n\t\t{\r\n\t\t\t//claw.openClaw();\r\n\t\t\tSystem.out.println(\"in second if\");\r\n\t\t}\r\n\t\t\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeElevatorStack)\r\n\t\t{\r\n\t\t\t//elevator.setLevel(elevatorLevel);\r\n\t\t\t//elevatorLevel++;\r\n\t\t}\r\n\t\t\r\n\t\telse if(timer.get() < Config.Auto.timeIntakeClose)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"in first if\");\r\n\t\t\t//claw.closeClaw();\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t\tendRoutine();\r\n\t}", "@Override\r\n\tpublic void timeDialogCallBack(int hour, int minute) {\n\t\t\r\n\t}", "private void timeSelectionDialog() {\n final TimeSelectionDialog timeSelectDialog = new TimeSelectionDialog(this, _game);\n timeSelectDialog.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n _game.setTime(timeSelectDialog.getSelectedTime());\n timeSelectDialog.dismiss();\n }\n });\n timeSelectDialog.show();\n }", "@Override\n public void run() {\n time_ = (int) (System.currentTimeMillis() - startTime_) / 1000;\n updateUI();\n\n if (time_ >= maxTime_) {\n // Log.v(VUphone.tag, \"TimerTask.run() entering timeout\");\n handler_.post(new Runnable() {\n public void run() {\n report(true);\n }\n });\n }\n }", "void alertTimeout(String msg)\n { /* alertTimeout */\n this.sleepFlag= false;\t/* flag for waiting */ \n updatePopupDialog(msg, \"\", null, 0);\n }", "private void showSpinerProgress() {\n dialog.setMessage(\"Loading\");\n//\n// dialog.setButton(ProgressDialog.BUTTON_POSITIVE, \"YES\", new DialogInterface.OnClickListener() {\n// @Override\n// public void onClick(DialogInterface dialog, int which) {\n//\n// }\n// });\n\n //thiet lap k the huy - co the huy\n dialog.setCancelable(false);\n\n //show dialog\n dialog.show();\n Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n dialog.dismiss();\n }\n }, 20000000);\n }", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n if(test.getTotalTime()>seconds/60){\n makeTimeString(seconds); \n }else{\n jButton2.setEnabled(false);\n jButton3.setEnabled(true); \n makeTimeString(seconds); \n jPanel1.removeAll();jPanel1.revalidate();jPanel1.repaint(); \n JOptionPane.showMessageDialog(null, \"<HTML><H1>End of Time:</H1></HTML>\");\n \n timer.stop();\n }\n seconds++; \n }", "protected void processTimer(){\n if(timer != null){\n timer.cancel();\n timer = null;\n }\n // Verificamos si el partido esta en progreso\n if(match.status == Match.STATUS_PENDING || match.status == Match.STATUS_ENDED){\n return;\n }\n // Creamos temporizador 90 * 60 * 1000 = 5.400.000\n timer = new CountDownTimer(5400000, 1000) {\n @Override\n public void onTick(long l) {\n // Calcular los segundos que pasaron\n long seconds = (new Date().getTime() - matchDayLong) / 1000;\n // Calcular los minutos del partido\n long minutes = seconds / 60;\n //long minutes = TimeUnit.MILLISECONDS.toMinutes(uptime);\n if(minutes < 0){\n minutes = 0;\n seconds = 0;\n statusMedium.setText(\"PT\");\n }if(minutes > 45 && minutes < 60){\n minutes = 45;\n seconds = 60;\n }else if(minutes > 90){\n minutes = 90;\n seconds = 60;\n statusMedium.setText(\"ST\");\n }else if(minutes >= 60){\n minutes -= 15;\n statusMedium.setText(\"ST\");\n }else{\n statusMedium.setText(\"PT\");\n }\n\n statusTime.setText(String.format(\"%02d:%02d\", minutes, (seconds%60)));\n }\n\n @Override\n public void onFinish() {\n\n }\n }.start();\n }", "@Override\n public void run() {\n if (timerValidFlag)\n gSeconds++;\n Message message = new Message();\n message.what = 1;\n handler.sendMessage(message);\n }", "private void showTimerPickerDialog() {\n backupCal = cal;\n if (cal == null) {\n cal = Calendar.getInstance();\n }\n\n TimePickerFragment fragment = new TimePickerFragment();\n\n fragment.setCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n cal = backupCal;\n EventBus.getDefault().post(new TaskEditedEvent());\n }\n });\n\n fragment.setCalendar(cal);\n fragment.show(getFragmentManager(), \"timePicker\");\n }", "@Override\n public void onTimePicked() {\n }", "@Override\n public void onInvokeTimeout(CAPDialog arg0, Long arg1) {\n\n }", "@FXML\r\n\t void countDownMessage2() throws InterruptedException {\n\t\t \tdisplayMessage.setText(\"3\"); \r\n\t\t \ttext = displayMessage.getText();\r\n\t\t timeSeconds = Integer.parseInt(text);\r\n\t\t \r\n\t\t Timer clock = new Timer();\r\n\t\t clock.scheduleAtFixedRate(new TimerTask() {\r\n\t\t public void run() {\r\n\t\t if(timeSeconds >= 0)\r\n\t\t {\r\n\t\t \tdisplayMessage.setText(Integer.toString(timeSeconds));\r\n\t\t timeSeconds--; \r\n\t\t }\r\n\t\t else {\r\n\t\t clock.cancel();\r\n\t\t displayMessage.setText(\"DupMe!\");\r\n\t\t try {\r\n\t\t\t\t\t\t\t\tcountDown2();\r\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t \r\n\t\t //do something here after says GO!\r\n\t\t wordCount.setVisible(true);\r\n\t\t wordMax.setVisible(true);\r\n\t\t slash.setVisible(true);\r\n\t\t counterBox.setVisible(true);\r\n\t\t yourPattern.setVisible(true);\r\n\t\t lastPattern.setVisible(true);\r\n\t\t }\r\n\t\t }\r\n\t\t }, 1000,1000);\r\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tflag = 1;\n\t\t\t\tshowDialog(TIME_DIALOG_ID);\n\t\t\t}", "public void timeChanged();", "private void getTimeView() {\n\n\t\ttry {\n\n\t\t\t// Launch Time Picker Dialog\n\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + hour);\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + minutes);\n\n\t\t\tTimePickerDialog tpd = new TimePickerDialog(this,\n\t\t\t\t\tnew TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onTimeSet(TimePicker view, int hourOfDay,\n\t\t\t\t\t\t\t\tint minute) {\n\n\t\t\t\t\t\t\tif (rf_booking_date_box.getText().toString()\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(currDate.toString())) {\n\t\t\t\t\t\t\t\tc = Calendar.getInstance();\n\t\t\t\t\t\t\t\tint curr_hour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\t\t\t\t\tint curr_minutes = c.get(Calendar.MINUTE);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_hour);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_minutes);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!hourOfDay<curr_hour\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (hourOfDay < curr_hour));\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!minute<curr_minutes\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (minute < curr_minutes));\n\n\t\t\t\t\t\t\t\tif (hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute <= curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay == curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes) {\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! in if\");\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_Please_choose_valid_time),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay\n\t\t\t\t\t\t\t\t\t\t// + \":\" +\n\t\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\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} else {\n\n\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay +\n\t\t\t\t\t\t\t\t\t// \":\" +\n\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\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}\n\t\t\t\t\t}, hour, minutes, false);\n\t\t\ttpd.show();\n\t\t\ttpd.setCancelable(false);\n\t\t\ttpd.setCanceledOnTouchOutside(false);\n\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void popupTimeoutTrap() {\n\n LayoutInflater inflater = (LayoutInflater)\n getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n final View npView = inflater.inflate(R.layout.number_picker_dialog_layout, null);\n\n String[] values = new String[] {\"5\", \"10\", \"15\", \"20\", \"25\", \"30\"};\n NumberPicker np = ((NumberPicker) npView);\n np.setMinValue(0);\n np.setMaxValue(values.length - 1);\n np.setDisplayedValues(values);\n np.setWrapSelectorWheel(true);\n np.setValue(trap.getTimeout()/5 - 1);\n setNumberPickerTextColor(np, R.color.colorPrimaryDark);\n\n new AlertDialog.Builder(this)\n .setTitle(\"Timeout\")\n .setView(npView)\n .setPositiveButton(android.R.string.ok,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n dialog.dismiss();\n\n MqttClient.getInstance().publish(Topic.TIMEOUT, trap.getId(),\n String.valueOf((((NumberPicker) npView).getValue() + 1)*5));\n }\n })\n .setNegativeButton(android.R.string.cancel,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int whichButton) {\n dialog.cancel();\n }\n })\n .show();\n }", "private void exemTimeOver() {\n\t\tuploadBtn.setVisible(false);\n\t\tapproveImage.setVisible(false);\n\t\tuploadExamTxt.setText(\"Exam time is over, you can not upload files anymore\");\n\t\ttimer.cancel();\n\t\t// sign the student as someone who start the exam but did not submitted\n\t\tflag1 = false;\n\t\tsummbitBlank();\n\t}", "private void showTimeDialog() {\n\t\tTimePickerDialog tpd = new TimePickerDialog(this, new OnTimeSetListener(){\r\n\t\t\tpublic void onTimeSet(TimePicker view , int hour, int minute){\r\n\t\t\t\tgiorno.set(Calendar.HOUR_OF_DAY,hour);\r\n\t\t\t\tgiorno.set(Calendar.MINUTE,minute); \r\n\t\t\t\tEditText et_ora = (EditText) BookingActivity.this.findViewById(R.id.prenotazione_et_ora);\r\n\t\t\t\tformatter.applyPattern(\"HH:mm\");\r\n\t\t\t\tet_ora.setText(formatter.format(giorno.getTime()));\r\n\t\t\t}\t\t\t \t\r\n\t\t}, giorno.get(Calendar.HOUR_OF_DAY), giorno.get(Calendar.MINUTE), true);\r\n\t\ttpd.show();\r\n\t}", "private void handleActionFoo() {\n NewMessageNotification.notify(this, getImage());\n\n SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);\n long duration = pref.getLong( \"bennettscash.pics.duration\", 0 );\n\n Notifier.setupTimer(this, duration);\n// Intent intent = new Intent(this, TimerService.class);\n// intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n// startActivity(intent);\n }", "abstract public boolean timedActionPerformed(ActionEvent e);", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tflag = 2;\n\t\t\t\tshowDialog(TIME_DIALOG_ID);\n\t\t\t}", "boolean displayScheduleMessage();", "public void onTick(){\n if(mService!=null && mService.hasAlarm(kookPlaatID)){\n vegetableState = VegetableStates.VEGETABLE_SELECTED;\n VegetableAlarm vegAlarm = mService.getTimer(kookPlaatID);\n progress.setProgress(progress.getMax() - vegAlarm.getTimeLeft());\n\n if(vegAlarm.isRunning()){\n text.setText(formatTime(vegAlarm.getTimeLeft()));\n }else if(vegAlarm.isFinished()){\n timerState = TimerStates.TIMER_FINISHED;\n updateUI();\n }else if(!vegAlarm.isRunning()){\n timerState = TimerStates.TIMER_PAUSED;\n updateUI();\n }\n }\n }", "public Boolean timerCheck(){\n return isRunning;\n }", "public void handleScreenOnTimeout() {\n this.mTimeoutSummary = getTimeoutSummary();\n Slog.e(TAG, this.mTimeoutSummary);\n this.mHandler.sendEmptyMessageDelayed(5, REPORT_DELAY);\n }", "private void showFinishMsg() {}", "private void prepareQuestionTimer() {\n timerQuestion = new Timer(1000, new ActionListener() {\n\n @Override\n public void actionPerformed(ActionEvent evt) {\n if (questionStartTime == null)\n return;\n DateFormat df = new SimpleDateFormat(\"mm:ss\");\n Date currentDate = new Date();\n // Time elapsed\n long timeElapsed = currentDate.getTime() - questionStartTime.getTime();\n // Show timer\n String timeStr = df.format(new Date(timeElapsed));\n try {\n labelTimeQuestion.setText(\"\" + (Integer.parseInt(labelTimeQuestion.getText()) - 1));\n } catch(NumberFormatException e) {\n labelTimeQuestion.setText(\"15\");\n }\n labelTimeQuestion.repaint();\n if (labelTimeQuestion.getText().equals(\"0\")) {\n verifyQuestion(Answer.NO_ANSWER);\n challengeModel.nextAnswer(null);\n labelTimeQuestion.setText(\"15\");\n }\n }\n \n });\n }", "private void showStatus(final String msg, final int time) {\r\n _uiApp.invokeAndWait(new Runnable() {\r\n /**\r\n * @see Runnable#run()\r\n */\r\n public void run() {\r\n Status.show(msg, time);\r\n }\r\n });\r\n }", "public final void setJam(){\nActionListener taskPerformer = new ActionListener() {\n\npublic void actionPerformed(ActionEvent evt) {\nString nol_jam = \"\", nol_menit = \"\",nol_detik = \"\";\n\njava.util.Date dateTime = new java.util.Date();\nint nilai_jam = dateTime.getHours();\nint nilai_menit = dateTime.getMinutes();\nint nilai_detik = dateTime.getSeconds();\n\nif(nilai_jam <= 9) nol_jam= \"0\";\nif(nilai_menit <= 9) nol_menit= \"0\";\nif(nilai_detik <= 9) nol_detik= \"0\";\n\nString jam = nol_jam + Integer.toString(nilai_jam);\nString menit = nol_menit + Integer.toString(nilai_menit);\nString detik = nol_detik + Integer.toString(nilai_detik);\n\nlblwktu.setText(jam+\":\"+menit+\":\"+detik+\"\");\n}\n};\nnew Timer(1000, taskPerformer).start();\n}", "@FXML\r\n\t void countDownMessage() throws InterruptedException {\n\t\t \tdisplayMessage.setText(\"3\"); \r\n\t\t \ttext = displayMessage.getText();\r\n\t\t timeSeconds = Integer.parseInt(text);\r\n\t\t \r\n\t\t Timer clock = new Timer();\r\n\t\t clock.scheduleAtFixedRate(new TimerTask() {\r\n\t\t public void run() {\r\n\t\t if(timeSeconds >= 0)\r\n\t\t {\r\n\t\t \tdisplayMessage.setText(Integer.toString(timeSeconds));\r\n\t\t timeSeconds--; \r\n\t\t }\r\n\t\t else {\r\n\t\t clock.cancel();\r\n\t\t displayMessage.setText(\"GO!\");\r\n\t\t try {\r\n\t\t\t\t\t\t\t\tcountDown();\r\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t \r\n\t\t //do something here after says GO!\r\n\t\t wordCount.setVisible(true);\r\n\t\t wordMax.setVisible(true);\r\n\t\t slash.setVisible(true);\r\n\t\t counterBox.setVisible(true);\r\n\t\t }\r\n\t\t }\r\n\t\t }, 1000,1000);\r\n }", "private void timerEnd(){\n if (timerCounter >= iconSet.getTotalTargetCounter()){\n System.out.println(\"end\");\n swingTimer.stop();\n int totalTargetHits = 0;\n totalTargetHits = iconSet.getTargetHitsCounter();\n JOptionPane.showMessageDialog(null,\"Thank you for participating in our study! \\n You scored \" + totalTargetHits + \" targets.\");\n }\n }", "@Override\n protected boolean isFinished() {\n if (_timer.get() > 1.0) {\n return true;\n }\n return false;\n }", "public void run(){\n SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\"); \n Date date = new Date(); \n \n String formatted_date = formatter.format((date)); \n \n if(TimeInRange(formatted_date)){\n \n String DailyReport = BuildDailyReport();\n String InventoryReport = BuildInventoryReport();\n \n sprinter.PrintDailyReport(DailyReport);\n sprinter.PrintInventoryReport(InventoryReport);\n \n } \n \n //Cancel current.\n timer.cancel();\n \n //Start a newone.\n TimerDevice t = new TimerDevice();\n \n }", "@Override\r\n\tpublic void showDoTimeMessage(Player player) {\n\t}", "public void showTimeLeft(int time, String state);", "public void run() {\n\t\t\tif (minutes == 0 && hours > 0) {\n\t\t\t\thours--;\n\t\t\t\tminutes = 60;\n\t\t\t}\n\t\t\tif (seconds == 0 && minutes > 0) {\n\t\t\t\tminutes--;\n\t\t\t\tseconds = 60;\n\t\t\t\tClientUI.clientHandler.handleMessageFromClientUI(\"getExamChanges:::\" + examID);\n\t\t\t\tString[] respond = stringSplitter.dollarSplit((String) ClientHandler.returnMessage);\n\t\t\t\tif (respond[0].equals(\"approved\") && flag) {\n\t\t\t\t\tflag = false;\n\t\t\t\t\tupdateClock(respond[1]);\n\t\t\t\t}\n\t\t\t\tif (respond[0].equals(\"locked\")) {\n\t\t\t\t\thours = 0;\n\t\t\t\t\tminutes = 0;\n\t\t\t\t\tseconds = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tseconds--;\n\t\t\ttimeString = String.format(\"%02d:%02d:%02d\", hours, minutes, seconds);\n\t\t\tTimerDisplayTxt.setText(timeString);\n\t\t\tif (hours == 0 && minutes == 0 && seconds == 0)\n\t\t\t\texemTimeOver();\n\t\t}", "void idleStoryCountdown() {\n\n idleSaveStoryToArchiveHandler.postDelayed(new Runnable() {\n @Override\n public void run() {\n\n// Log.i(\"Annoying Handler\", \"Ach\");\n// commentaryInstruction.setInputHandler(idleSaveStoryToArchiveHandler);\n// commentaryInstruction.onPlay(Uri.parse(\"android.resource://\" + getPackageName() + \"/\" + R.raw.recorddone1), true, ArchiveMainMenu.class, \"RecordStory\");\n }\n }, 120000);\n }", "public void onTimerEvent();", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\r\n\t\t\t\t\tconnect = ConnectionManagerFactory.createConnection();\r\n\t\t\t\t\tPreparedStatement prepstat = connect.prepareStatement(SqlQueries.JOURNALAVAILABILITY);\r\n\t\t\t\t\tprepstat.setString(1, issn.getText());\r\n\t\t\t\t\tResultSet rset = prepstat.executeQuery();\r\n\t\t\t\t\tint number = 0;\r\n\t\t\t\t\twhile (rset.next()) {\r\n\t\t\t\t\t\tnumber = Integer.parseInt(rset.getString(1));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (number > 0) {\r\n\t\t\t\t\t\tSystem.out.println(issn.getText());\r\n\t\t\t\t\t\tnew JournalConfirmation(studentInfo,facultyInfo,issn.getText(), journal.getResourceId());\r\n\t\t\t\t\t\tJournalDetailModule.this.setVisible(false);\r\n\t\t\t\t\t\tJournalDetailModule.this.dispose();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t//check if he is in waitlist\r\n\t\t\t\t\t\tif(ConferenceDetailModule.CheckIfAlreadyInWaitList(journal.getResourceId(),studentInfo,facultyInfo))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\t\t\t\t\t\" You are already in the waitlist table\");\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tprepstat = connect.prepareStatement(SqlQueries.JOURNALWAIT);\r\n\t\t\t\t\t\tString journalId = Integer.toString(journal.getResourceId());\r\n\t\t\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MMM-yyyy hh:mm:ss a\");\r\n\t\t\t\t\t\tDate date = new Date();\r\n\t\t\t\t\t\tString currentTime = dateFormat.format(date);\r\n\t\t\t\t\t\tprepstat.setString(1, journalId);\r\n\t\t\t\t\t\tprepstat.setString(2, currentTime);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (studentInfo != null) {\r\n\t\t\t\t\t\t\tprepstat.setString(3, studentInfo.getStudentId());\r\n\t\t\t\t\t\t\tprepstat.setString(4, null);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tprepstat.setString(3, null);\r\n\t\t\t\t\t\t\tprepstat.setString(4, facultyInfo.getFacultyId());\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tdateFormat = new SimpleDateFormat(\"dd-MMM-yyyy hh:mm:ss a\");\r\n\r\n\t\t\t\t\t\tfinal long SECONDS = 1000;\r\n\t\t\t\t\t\tfinal long MINUTES = 60 * SECONDS;\r\n\t\t\t\t\t\tfinal long HOURS = 60 * MINUTES;\r\n\r\n\t\t\t\t\t\tdate.setTime(date.getTime() + 12 * HOURS);\r\n\t\t\t\t\t\tString returnTime = dateFormat.format(date);\r\n\r\n\t\t\t\t\t\tprepstat.setString(5, returnTime);\r\n\t\t\t\t\t\tprepstat.setString(6, \"Journal\");\r\n\t\t\t\t\t\tprepstat.setString(7, issn.getText());\r\n\r\n\t\t\t\t\t\trset = prepstat.executeQuery();\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\t\t\t\t\"This Journal is currently not available. You are currently added to the waitlist table\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\trset.close();\r\n\t\t\t\t\tprepstat.close();\r\n\t\t\t\t\tconnect.close();\r\n\t\t\t\t\tJournalDetailModule.this.setVisible(false);\r\n\t\t\t\t\tJournalDetailModule.this.dispose();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e);\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\tpublic void onInit(int status) {\n\t\t\n\t\tprompt(\"Thank you! Good Day!\");\n\t\tnew Timer().schedule(new TimerTask() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tAcknowledgementPresentActivity.this.finish();\n\t\t\t}\n\t\t}, 2000);\n\t}", "public void verifyScheduled() {\n\t\tselectDatePublishingCal(futureDate);\n\t\twait.until(\n\t\t ExpectedConditions\n\t\t\t.numberOfElementsToBeMoreThan(By.xpath(\"//span[.='\"+scheduledMessage+\"']\"), 0));\n\t\tList<WebElement> scheduledTweets=driver.findElements(By.xpath(\"//span[.='\"+scheduledMessage+\"']\"));\n\t\t\n\t\tAssert.assertTrue(\"Verify that scheduled tweet with msg: \"+scheduledMessage+\" is displayed\",\n\t\t\t\tscheduledTweets.size() > 0 );\n\t}", "public void createTimer() {\n timer = new AnimationTimer() {\n @Override\n public void handle(long now) {\n if (animal.changeScore()) {\n setNumber(animal.getPoints());\n }\n if (animal.getStop()) {\n System.out.println(\"Game Ended\");\n background.stopMusic();\n stop();\n background.stop();\n\n ArrayList list = null;\n try {\n list = scoreFile.sortFile(animal.getPoints());\n } catch (IOException e) {\n e.printStackTrace();\n }\n popUp(list);\n }\n }\n };\n }", "@Override\n protected boolean isFinished() {\n return Timer.getFPGATimestamp()-startT >= 1.5;\n }", "boolean hasWaitTime();", "@Override\n public void onClick(View v) {\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n //validar hora\n plantaOut.setText(time);\n globals.getAntecedentesHormigonMuestreo().setPlantaOut(time);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }", "long getTimerPref();", "public void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\tint id) {\n\t\t\t\t\t\t\t\t\twait_time = 50;\r\n\t\t\t\t\t\t\t\t}", "@Override\n public void run() {\n if (!MainActivity.pause) {\n MainActivity.fetch = MainActivity.fetch - 1;\n MainActivity.cpbProgress.setProgress(MainActivity.fetch);\n if (MainActivity.fetch < 10) {\n MainActivity.tvTimer.setText(Constant.ZERO + MainActivity.fetch + \"\");\n } else {\n MainActivity.tvTimer.setText(MainActivity.fetch + \"\");\n }\n if (MainActivity.fetch == 0) {\n /*Toast t=Toast.makeText(MainActivity.act, \"Sorry time is Up....\",4000);//////..........not working............///////\n t.show();*/\n finish();\n System.exit(0);\n }\n } else {\n i--;\n }\n }", "public void setTimer() {\n\t\t\n\t}", "private void handleRefreshTimeout(Intent intent) {\n\tif(LOG_INFO) Log.i(TAG, \" handleRefreshTimeout \" + intent.toUri(0));\n String responseId = intent.getStringExtra(EXTRA_REQUEST_ID);\n String[] responseIdSplit = responseId.split(COLON);\n String type = responseIdSplit[0];\n PublisherManager pubMgr = PublisherManager.getPublisherManager(this, type);\n if(pubMgr != null)\n pubMgr.handleRefreshTimeout(intent);\n }", "public interface OnDateSelectedListner {\n\n void onDateSet(TimeSectionDialog timeSectionDialog, long startMillseconds,long endMillSeconds);\n}", "public void transitionToTimer(boolean isShow) {\n }", "boolean isAlreadyTriggered();", "@Override\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\twait = new waittingDialog();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "@Override\n public void run() {\n while(timerFlag){\n\n if(count == 700){\n\n if(timer_count == true) {\n //TODO 업데이트가 되어 오면 true로 변경경\n break;\n }\n else if(timer_count ==false)\n {\n /* MainActivity.getInstance().showToastOnWorking(\"제어가 되지 않았습니다.\");*/\n\n //timer\n Message msg = timercountHandler.obtainMessage();\n msg.what = 1;\n msg.obj = getResources().getString(R.string.not_controled);//\"제어가 동작하지 않았습니다.\";\n timercountHandler.sendMessage(msg);\n count = 0;\n\n Message msg1 = timercountHandler.obtainMessage();\n msg1.what = 2;\n timercountHandler.sendMessage(msg1);\n\n// deviceUIsetting();\n break;\n }\n }\n\n count++;\n// Log.d(TAG,\"count : \" + count);\n\n try {\n Thread.sleep(CONTROL_OPTIONS_TIMEOUT);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n\n }\n }", "private void showSecondINputDialog() {\n String currentDateTimeString = DateFormat.getDateTimeInstance().format(new Date());\n Toast.makeText(this, currentDateTimeString,\n Toast.LENGTH_LONG).show();\n }", "@Override\r\n\t\t\tpublic void onTimeoutDoInUI(String[] values) {\n\t\t\t\tif (isFirst) {\r\n\t\t\t\t\tMyProgressDialog.Dismiss();\r\n\t\t\t\t\tisFirst = false;\r\n\t\t\t\t}\r\n\t\t\t\tMyUtils.showToast2(activity, getResources().getString(R.string.timeout));\r\n\t\t\t}", "private void timerExpired() {\r\n timer.stop();\r\n mainFrame.setEnabled(true);\r\n inputPanel.addKits(receivedKits);\r\n messageSent = false;\r\n setMessage(finishedReceivingMessage, Color.BLUE);\r\n receivedKits.clear();\r\n }", "@Override\n\t\t\tpublic void handle(long now) {\n\t\t\t\tif (now > lastTimeCall + 1_000_000_001) {\n\t\t\t\t\tduration = duration.subtract(Duration.seconds(1));\n\n\t\t\t\t\tint remainingSeconds = (int) duration.toSeconds();\n\t\t\t\t\tint min = (remainingSeconds) / SECONDS_PER_MINUTE;\n\t\t\t\t\tint sec = (remainingSeconds) % SECONDS_PER_MINUTE;\n\n\t\t\t\t\tif (min == 0 && sec == 0) {\n\t\t\t\t\t\ttimer.stop();\n\t\t\t\t\t\tgameStage.hide();\n\t\t\t\t\t\tGameController.gameBgm.stop();\n\t\t\t\t\t\tSystem.out.println(\"Times up\");\n\t\t\t\t\t\t// show final score\n\t\t\t\t\t\t//TimesUpSubScene timesUp = new TimesUpSubScene();\n\n\n\t\t\t\t\t}\n\t\t\t\t\ttimerLabel.textProperty().setValue(String.format(\"%02d\", min) + \" : \" + String.format(\"%02d\", sec));\n\t\t\t\t\tlastTimeCall = now;\n\t\t\t\t}\n\n\t\t\t}", "@Override\r\n public void changedUpdate(DocumentEvent e) {\n ActivoTimer();\r\n }", "boolean hasSubmitTime();", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t\tMascota.set_desinfectar();\r\n\t\t\t\tmostrar_vida.setText(Mascota.get_vida() + \" %\");\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\t\r\n\t\t\t\t\teti_actividad.setText(\"Grrr...grrrr...Hijos de puta!\");\r\n\t\t\t\t\teti_actividad.setVisible(true);\r\n\t\t\t\t\tThread.sleep(6000);\r\n\t\t\t\t\teti_actividad.setVisible(false);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "private void mo71772t() {\n this.f74253i.mo60157b(R.id.ebb, new VideoPostTimeWidget());\n }", "private void showTimeOutWarning(){\n\t\t clearTimeOutWarning();\n\t\t warningBannerWidget = new HTML(\"Warning! Your session is about to expire at \" + formattedTime +\n\t\t\t\t \". Please click on the screen or press any key to continue. Unsaved changes will not be retained if the session is allowed to time out.\");\n\t\t RootPanel.get(\"timeOutWarning\").add(buildTimeOutWarningPanel());\n\t\t RootPanel.get(\"timeOutWarning\").getElement().setAttribute(\"role\", \"alert\");\n\t\t RootPanel.get(\"timeOutWarning\").getElement().focus();\n\t\t RootPanel.get(\"timeOutWarning\").getElement().setTabIndex(0);\n\t}", "public boolean firedRecently(double time);", "@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaPlantaTime;\n Date horaMuestroTime;\n Date horaCamionTime;\n\n try {\n if (globals.getAntecedentesHormigonMuestreo().getPlantaOut() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaPlantaTime = parser.parse(globals.getAntecedentesHormigonMuestreo().getPlantaOut());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.after(horaPlantaTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser inferior a la hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaMuestroTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.before(horaMuestroTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser mayor a la hora de toma muestra\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }", "private void tellTheUserToWait() {\n\t\tfinal JDialog warningDialog = new JDialog(descriptionDialog, ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tfinal JLabel label = new JLabel(ejsRes.getString(\"Simulation.Opening\"));\r\n\t\tlabel.setBorder(new javax.swing.border.EmptyBorder(5, 5, 5, 5));\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\twarningDialog.getContentPane().setLayout(new java.awt.BorderLayout());\r\n\t\t\t\twarningDialog.getContentPane().add(label, java.awt.BorderLayout.CENTER);\r\n\t\t\t\twarningDialog.validate();\r\n\t\t\t\twarningDialog.pack();\r\n\t\t\t\twarningDialog.setLocationRelativeTo(descriptionDialog);\r\n\t\t\t\twarningDialog.setModal(false);\r\n\t\t\t\twarningDialog.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjavax.swing.Timer timer = new javax.swing.Timer(3000, new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent _actionEvent) {\r\n\t\t\t\twarningDialog.setVisible(false);\r\n\t\t\t\twarningDialog.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\ttimer.setRepeats(false);\r\n\t\ttimer.start();\r\n\t}", "public void onDialogPositiveClick(DialogFragment dialog) {\n\t\t\thackStartTimeline();\n\t\t}", "void onCountFinished();", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile(gameTimer > 0 && !Timer.this.gameScene.popUp){\n\t\t\t\t\tcountDown();\n\t\t\t\t\ttry{\n\t\t\t\t\t\tThread.sleep(10);\n\t\t\t\t\t}catch(InterruptedException e){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\toutOfTime = true;\n\t\t\t}", "@Override\n public void onClick(View v) {\n showDialog(TIME_DIALOG_ID);\n }", "@Override\r\n public void insertUpdate(DocumentEvent e) {\n ActivoTimer();\r\n }", "public void startCount() {\n //meetodi k�ivitamisel nullime tunnid, minutid, sekundid:\n secondsPassed = 0;\n minutePassed = 0;\n hoursPassed = 0;\n if (task != null)\n return;\n task = new TimerTask() {\n @Override\n public void run() {//aeg l�ks!\n secondsPassed++; //loeme sekundid\n if (secondsPassed == 60) {//kui on l�binud 60 sek, nullime muutujat\n secondsPassed = 0;\n minutePassed++;//kui on l�binud 60 sek, suurendame minutid 1 v�rra\n }\n if (minutePassed == 60) {//kui on l�binud 60 min, nullime muutujat\n minutePassed = 0;\n hoursPassed++;//kui on l�binud 60 min, suurendame tunnid 1 v�rra\n }\n //kirjutame aeg �les\n String seconds = Integer.toString(secondsPassed);\n String minutes = Integer.toString(minutePassed);\n String hours = Integer.toString(hoursPassed);\n\n if (secondsPassed <= 9) {\n //kuni 10 kirjutame 0 ette\n seconds = \"0\" + Integer.toString(secondsPassed);\n }\n if (minutePassed <= 9) {\n //kuni 10 kirjutame 0 ette\n minutes = \"0\" + Integer.toString(minutePassed);\n }\n if (hoursPassed <= 9) {\n //kuni 10 kirjutame null ettte\n hours = \"0\" + Integer.toString(hoursPassed);\n }\n\n\n time = (hours + \":\" + minutes + \":\" + seconds);//aeg formaadis 00:00:00\n getTime();//edastame aeg meetodile getTime\n\n }\n\n };\n myTimer.scheduleAtFixedRate(task, 0, 1000);//timer k�ivitub kohe ja t��tab sekundite t�psusega\n\n }", "private void showTimeLapseIntervalDialog() {\n\t\t// TODO Auto-generated method stub\n\t\tLog.d(\"tigertiger\", \"showTimeLapseIntervalDialog\");\n\t\tCharSequence title = res\n\t\t\t\t.getString(R.string.setting_time_lapse_interval);\n\t\tfinal String[] videoTimeLapseIntervalString = TimeLapseInterval\n\t\t\t\t.getInstance().getValueStringList();\n\t\tif (videoTimeLapseIntervalString == null) {\n\t\t\tWriteLogToDevice.writeLog(\"[Error] -- SettingView: \",\n\t\t\t\t\t\"videoTimeLapseIntervalString == null\");\n\t\t\treturn;\n\t\t}\n\t\tint length = videoTimeLapseIntervalString.length;\n\n\t\tint curIdx = 0;\n\t\t// UIInfo uiInfo =\n\t\t// reflection.refecltFromSDKToUI(SDKReflectToUI.SETTING_UI_TIME_LAPSE_INTERVAL,\n\t\t// cameraProperties.getCurrentTimeLapseInterval());\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (videoTimeLapseIntervalString[i].equals(TimeLapseInterval\n\t\t\t\t\t.getInstance().getCurrentValue())) {\n\t\t\t\tcurIdx = i;\n\t\t\t}\n\t\t}\n\n\t\tDialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t// int value = (Integer)\n\t\t\t\t// reflection.refecltFromUItoSDK(UIReflectToSDK.SETTING_SDK_TIME_LAPSE_INTERVAL,\n\t\t\t\t// videoTimeLapseIntervalString[arg1]);\n\t\t\t\tcameraProperties.setTimeLapseInterval((TimeLapseInterval\n\t\t\t\t\t\t.getInstance().getValueStringInt())[arg1]);\n\t\t\t\targ0.dismiss();\n\t\t\t\tsettingValueList = getSettingValue();\n\t\t\t\tif (optionListAdapter == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\toptionListAdapter.notifyDataSetChanged();\n\t\t\t}\n\t\t};\n\t\tshowOptionDialog(title, videoTimeLapseIntervalString, curIdx, listener,\n\t\t\t\ttrue);\n\t}", "TimerStatus onTimer();", "@Override\n protected void onDialogClosed(boolean positiveResult) {\n super.onDialogClosed(positiveResult);\n\n if (positiveResult){\n setTime(timePicker.getHour(), timePicker.getMinute());\n }\n }", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t\t{\n\t\t\t\t\tString sValue = et_stime.getText().toString();\n\t\t\t\t\tMainView.SLEEP_TIME = Integer.valueOf(sValue.length()<=0?\"0\":sValue);\n\t\t\t\t\tmainView.fView.restart();\n\t\t\t\t\t//dialog.dismiss();\n\t\t\t\t}", "public boolean timerEnded() {\n return timerEnded; \n }", "boolean hasVotingEndTime();", "private void updateUI() {\n handler_.post(new Runnable() {\n public void run() {\n bar_.setProgress(time_);\n String remTimeStr = \"\" + (maxTime_ - time_);\n timeRemaining_.setText(REM_STRING.replace(\"?\", remTimeStr));\n }\n });\n }", "@Override\n protected void onResume() {\n super.onResume();\n\n// queryTicket();\n// timer = new Timer();\n// timer.schedule(new TimerTask() {\n//\n// @Override\n// public void run() {\n// // TODO Auto-generated method stub\n// handler.sendEmptyMessage(1);\n// }\n// }, 0, 2000);\n }", "public void timeLogic(int time){\n //Add logic to decide time increments at which tickets will be granted\n }", "public void startAgentTime() {\n Timer timer = new Timer(SIBAConst.TIME_AGENT_CHANGE_FOR_HOUR, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n \t\n \tCalendar c = Calendar.getInstance();\n int minutos = c.get(Calendar.MINUTE);\n int hora = c.get( (Calendar.HOUR_OF_DAY)); \n hora = hora * 60;\n if (minutos >= 30 && minutos <= 59)\n {hora +=30;\t\n }\n if (hora > ctrlHours)\n {ctrlHours = hora;\n //activada bandera de modificacion de programacion\n activatedScheduleChange = true;\n }\n else\n { if (hora < ctrlHours)\n \t ctrlHours = 0;\n }\n \t\n \t\n \n }\n });\n timer.start();\n }", "void composingIndicatorReceived(IMSession session, String sender, int timeout);", "public void timePassed() {\r\n\r\n }", "@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n\n Date horaInTime;\n Date horaMuestreoTime;\n try {\n if (globals.getMuestra().getHoraIn() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de llegada\", Toast.LENGTH_SHORT).show();\n timeMuestreo.setText(\"\");\n } else {\n horaInTime = parser.parse(globals.getMuestra().getHoraIn());\n horaMuestreoTime = parser.parse(time);\n if (horaMuestreoTime.after(horaInTime)) {\n\n timeMuestreo.setText(time);\n globals.getAntecedentesMuestreo().setTimeMuestreo(time);\n } else {\n Toast.makeText(getContext(), \"Hora de Muestreo no puede ser inferior a la hora de llegada\", Toast.LENGTH_SHORT).show();\n timeMuestreo.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeMuestreo.setText(\"\");\n }\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }", "public void run() {\n String lg_ti = \"Test.\";\n String des_ti = \"The license valid until \";\n String ban_ti = \"Warning!\";\n getNotificationData();\n //notificationShow(des_ti,lg_ti,ban_ti);\n }", "private void updateUI() {\n\t\t\tfinal TextView MessageVitesse = (TextView) findViewById(R.id.TextView01);\r\n\t\t\tfinal ProgressBar Progress = (ProgressBar) findViewById (R.id.ProgressBar01);\r\n\t\t\tfinal TextView MessageStatus = (TextView)findViewById (R.id.TextView02);\r\n\t\t\t\t\t\r\n\t\t\t//on affecte des valeurs aux composant\r\n\t\t\tMessageVitesse.setText(\"Vitesse Actuelle : \"+ Vitesse + \" Ko/s\");\r\n\t\t\tProgress.setProgress(Pourcent);\r\n\t\t\tMessageStatus.setText (Status);\r\n\t\t\tif (Status.equals(\"Télèchargement terminé!!!\")&&NotifDejaLancée==false){\r\n\t\t\t\tlanceNotification();\r\n\t\t\t\tNotifDejaLancée=true;\r\n\t\t\t}\r\n\t\t\t}", "private void startTimer(long noOfMinutes) {\n countDownTimer = new CountDownTimer(noOfMinutes, 1000) {\n public void onTick(long millisUntilFinished) {\n millis = millisUntilFinished;\n //Convert milliseconds into hour,minute and seconds\n String hms = String.format(\"%02d:%02d:%02d\", TimeUnit.MILLISECONDS.toHours(millis), TimeUnit.MILLISECONDS.toMinutes(millis) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(millis)), TimeUnit.MILLISECONDS.toSeconds(millis) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millis)));\n tvTestTime.setText(hms);//set text\n }\n\n public void onFinish() {\n /*AlertDialog.Builder alertDialog= new AlertDialog.Builder(PracticeTestQAActivity.this);\n alertDialog.setTitle(getString(R.string.title_TestDurationExpired));\n alertDialog.setMessage(getString(R.string.msg_TestDurationExpired));\n alertDialog.setIcon(R.drawable.information);\n alertDialog.setPositiveButton(\"OK\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n countDownTimer = null;//set CountDownTimer to null\n stopCountdown();\n }\n });\n alertDialog.show();\n*/\n countDownTimer = null;//set CountDownTimer to null\n stopCountdown();\n tvTestTime.setText(\"finish\");\n // tvTestTime.setText(\"TIME'S UP!!\"); //On finish change timer text\n\n tvTestTime.setVisibility(View.GONE);\n //goToResultActivity();\n }\n }.start();\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). consultPeriod() ;}", "public void timePassed() {\r\n }" ]
[ "0.60633534", "0.600386", "0.5696774", "0.5650626", "0.56255066", "0.56238085", "0.56169826", "0.5598591", "0.5580057", "0.5568201", "0.5536688", "0.5519188", "0.5518164", "0.5473433", "0.5459986", "0.54593533", "0.54494685", "0.5449127", "0.54490125", "0.5448295", "0.54469323", "0.54401535", "0.5435714", "0.5433492", "0.5432955", "0.54094225", "0.53505754", "0.53388536", "0.53332204", "0.5328901", "0.53249717", "0.5320414", "0.53124714", "0.5304432", "0.5297836", "0.52923805", "0.5290602", "0.5285423", "0.52690196", "0.5268395", "0.5266762", "0.52633", "0.52591443", "0.52556366", "0.52498376", "0.5247439", "0.52472836", "0.5242163", "0.5237028", "0.5234442", "0.5233518", "0.52312964", "0.5230454", "0.5226358", "0.5222744", "0.52221406", "0.5221134", "0.5220583", "0.5216292", "0.5200143", "0.5199331", "0.51982874", "0.51928085", "0.518997", "0.51805633", "0.51778686", "0.51739556", "0.5164881", "0.5162251", "0.5162152", "0.51556104", "0.51535285", "0.5153299", "0.5150665", "0.5146591", "0.51460856", "0.5137571", "0.51231384", "0.5123118", "0.5121061", "0.5119779", "0.51183546", "0.51178646", "0.51132685", "0.51110595", "0.51078296", "0.51060086", "0.5105228", "0.50996876", "0.50983644", "0.5090501", "0.5087696", "0.5071667", "0.5070409", "0.5062688", "0.5061423", "0.5060171", "0.50601614", "0.5060136", "0.50591683", "0.50542235" ]
0.0
-1
IMPL OF ABSTRACT METHODS / (nonJavadoc)
@Override protected PublicationControlLogger getLogger() { return logger; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "@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\t\tpublic void method() {\n\t\t\t\n\t\t}", "abstract void method();", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tvoid methodabstract() {\n\t\t\n\t}", "protected abstract Set method_1559();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void interr() {\n\t}", "public abstract void operation();", "@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}", "public AbstractGenerateurAbstractSeule() {\r\n\t\tsuper();\r\n\t}", "protected abstract MethodDescription accessorMethod();", "@Override\n public void get() {}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "private ExtendedOperations(){}", "@Override\n\tpublic void nadar() {\n\t\t\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 method() {\n\t\r\n\t}", "@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }", "abstract void geometryMethod();", "public abstract Object mo26777y();", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public interface AbstractC1953c50 {\n}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "abstract void add();", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public Methods() {\n // what is this doing? -PMC\n }", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public abstract void mo70713b();", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "protected abstract T self();", "protected abstract T self();", "protected abstract T self();", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "@Override public int describeContents() { return 0; }", "protected abstract void construct();", "public abstract void comes();", "private abstract void privateabstract();", "public abstract Object getContent();", "@Override\r\n\tpublic void PrimitiveOperation2() {\n\t\tSystem.out.println(\"Concrete class B method 2 implemation\");\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public abstract void afvuren();", "protected abstract Self self();", "@Override\r\n\tpublic void PrimitiveOperation1() {\n\t\tSystem.out.println(\"Concrete class B operation 1 implemation\");\r\n\t}", "public abstract String description();", "public abstract String description();", "public abstract void abstractMethodToImplement();", "@Override\n\tpublic void accept(Visitor visitor) {\n\t\t\n\t}", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mutate();", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "protected AbstractTotalRevenue() {\n }", "@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}", "public abstract void description();", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "public abstract Object mo1771a();", "abstract void sub();", "@Override\n\tpublic void some() {\n\t\t\n\t}", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "public abstract void mo30696a();", "@Override\n public void memoria() {\n \n }", "public MethodEx2() {\n \n }", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "private Add() {}", "private Add() {}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "protected AbstractAggregateComponent() {\n\t\tsuper();\n\t}", "public abstract void mh();", "@Override\n void init() {\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public abstract void mo102899a();", "@Override\n public void func_104112_b() {\n \n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void dosomething2() {\n\t\t\n\t}", "public abstract void mo56925d();", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "protected GeometricObject() \n\t{\n\t\tdateCreated = new java.util.Date();\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "protected AbstractFolderIdWrapper() {\n\t}", "public abstract void mo27386d();", "protected abstract Content newContent();", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }" ]
[ "0.68906283", "0.6806549", "0.66519845", "0.6639883", "0.6610366", "0.6550211", "0.64726776", "0.64726776", "0.64585733", "0.6403325", "0.6331619", "0.63222647", "0.6307748", "0.6285225", "0.6266306", "0.6229644", "0.6225938", "0.62211263", "0.61909777", "0.61754245", "0.61575264", "0.61504215", "0.61504215", "0.6147718", "0.6139912", "0.6138107", "0.6122186", "0.6111112", "0.6107491", "0.60943824", "0.60785097", "0.6071406", "0.6067064", "0.60488164", "0.60439473", "0.6018848", "0.60184246", "0.60100454", "0.6008383", "0.6001975", "0.59996337", "0.59889644", "0.59889644", "0.59889644", "0.5985647", "0.5981211", "0.59731483", "0.59696317", "0.59572494", "0.59544176", "0.59486383", "0.5948014", "0.5947442", "0.5944882", "0.59398943", "0.5920579", "0.59165347", "0.59165347", "0.59118193", "0.5908657", "0.5906497", "0.5894782", "0.58930004", "0.5884869", "0.58836", "0.58831024", "0.58729506", "0.58718157", "0.5871742", "0.5868579", "0.5864455", "0.58429617", "0.58417636", "0.5839147", "0.58369696", "0.5835459", "0.58302444", "0.5820891", "0.58203834", "0.58203834", "0.58184063", "0.5816407", "0.5814068", "0.58026916", "0.58001727", "0.5800118", "0.5797253", "0.5795471", "0.5792763", "0.5785052", "0.5779935", "0.5779334", "0.5779285", "0.5770111", "0.57671595", "0.5755259", "0.5754127", "0.574793", "0.5747814", "0.5741338", "0.5739023" ]
0.0
-1
SBB OBJECT's LIFE CYCLE
public void sbbActivate() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lungs(Graphics bbg, int n, int length, int x, int y, double angle){\n double r1 = angle + Math.toRadians(-45);\n double r2 = angle + Math.toRadians(45);\n double r3 = angle + Math.toRadians(135);\n double r4 = angle + Math.toRadians(-135);\n\n //length modifications of the different branches\n double l1 = length/1.3 + (l1I*5);\n double l2 = length/1.3 + (l2I*5);\n double l3 = length/1.3 + (l3I*5);\n double l4 = length/1.3 + (l4I*5);\n\n //x and y points of the end of the different branches\n int ax = (int)(x - Math.sin(r1)*l1)+(int)(l1I);\n int ay = (int)(y - Math.cos(r1)*l1)+(int)(l1I);\n int bx = (int)(x - Math.sin(r2)*l2)+(int)(l2I);\n int by = (int)(y - Math.cos(r2)*l2)+(int)(l2I);\n int cx = (int)(x - Math.sin(r3)*l3)+(int)(l3I);\n int cy = (int)(y - Math.cos(r3)*l3)+(int)(l3I);\n int dx = (int)(x - Math.sin(r4)*l4)+(int)(l4I);\n int dy = (int)(y - Math.cos(r4)*l4)+(int)(l4I);\n\n if(n == 0){\n return;\n }\n\n\n increment();\n Color fluidC = new Color(colorR,colorG,colorB);\n //bbg.setColor(new Color((int) (Math.random() * 255), (int) (Math.random() * 255), (int) (Math.random()*255)));\n bbg.setColor(fluidC);\n\n\n //draw different branches\n bbg.drawLine(x,y,ax,ay);\n bbg.drawLine(x,y,bx,by);\n bbg.drawLine(x,y,cx,cy);\n bbg.drawLine(x,y,dx,dy);\n\n\n\n //call recursively to draw fractal\n lungs(bbg, n - 1, (int)l1, ax,ay,r1);\n lungs(bbg, n - 1, (int)l2, bx,by,r2);\n lungs(bbg, n - 1, (int)l3, cx,cy,r3);\n lungs(bbg, n - 1, (int)l4, dx,dy,r4);\n\n\n }", "private void initialize() {\n\n this.levelName = \"Green 3\";\n this.numberOfBalls = 2;\n int ballsRadius = 5;\n Color ballsColor = Color.white;\n this.paddleHeight = (screenHeight / 27);\n this.paddleWidth = (screenWidth / 8);\n this.paddleSpeed = 11;\n int surroundingBlocksWidth = 30;\n this.paddleColor = new Color(1.0f, 0.699f, 0.000f);\n this.paddleUpperLeft = new Point(screenWidth / 2.2, screenHeight - surroundingBlocksWidth\n - this.paddleHeight);\n Color backgroundColor = new Color(0.000f, 0.420f, 0.000f);\n this.background = new Block(new Rectangle(new Point(0, 0), screenWidth + 1\n , screenHeight + 2), backgroundColor);\n this.background.setNumber(-1);\n\n Color[] colors = {Color.darkGray, Color.red, Color.yellow, Color.blue, Color.white};\n int blocksRowsNum = 5;\n int blocksInFirstRow = 10;\n int blocksWidth = screenWidth / 16;\n int blockHeight = screenHeight / 20;\n int firstBlockYlocation = screenHeight / 4;\n int removableBlocks = 0;\n Block[][] stairs = new Block[blocksRowsNum][];\n //blocks initialize.\n for (int i = 0; i < blocksRowsNum; i++, blocksInFirstRow--) {\n int number;\n for (int j = 0; j < blocksInFirstRow; j++) {\n if (i == 0) {\n number = 2; //top row.\n } else {\n number = 1;\n }\n stairs[i] = new Block[blocksInFirstRow];\n Point upperLeft = new Point(screenWidth - (blocksWidth * (j + 1)) - surroundingBlocksWidth\n , firstBlockYlocation + (blockHeight * i));\n stairs[i][j] = new Block(new Rectangle(upperLeft, blocksWidth, blockHeight), colors[i % 5]);\n if (stairs[i][j].getHitPoints() != -2 && stairs[i][j].getHitPoints() != -3) { // not death or live block\n stairs[i][j].setNumber(number);\n removableBlocks++;\n }\n this.blocks.add(stairs[i][j]);\n }\n\n }\n this.numberOfBlocksToRemove = (int) (removableBlocks * 0.5); //must destroy half of them.\n this.ballsCenter.add(new Point(screenWidth / 1.93, screenHeight * 0.9));\n this.ballsCenter.add(new Point(screenWidth / 1.93, screenHeight * 0.9));\n List<Velocity> v = new ArrayList<>();\n v.add(Velocity.fromAngleAndSpeed(45, 9));\n v.add(Velocity.fromAngleAndSpeed(-45, 9));\n this.ballsFactory = new BallsFactory(this.ballsCenter, ballsRadius, ballsColor,\n screenWidth, screenHeight, v);\n\n //bodies.\n //tower.\n Block base = new Block(new Rectangle(new Point(surroundingBlocksWidth + screenWidth / 16, screenHeight * 0.7)\n , screenWidth / 6, screenHeight * 0.3), Color.darkGray);\n base.setNumber(-1);\n this.bodies.add(base);\n Block base2 = new Block(new Rectangle(new Point(base.getCollisionRectangle().getUpperLine()\n .middle().getX() - base.getWidth() / 6\n , base.getCollisionRectangle().getUpperLeft().getY() - base.getHeight() / 2.5), base.getWidth() / 3\n , base.getHeight() / 2.5), Color.gray);\n base2.setNumber(-1);\n this.bodies.add(base2);\n Block pole = new Block(new Rectangle(new Point(base2.getCollisionRectangle().getUpperLine().middle().getX()\n - base2.getWidth() / 6, base2.getCollisionRectangle().getUpperLeft().getY() - screenHeight / 3)\n , base2.getWidth() / 3, screenHeight / 3), Color.lightGray);\n pole.setNumber(-1);\n this.bodies.add(pole);\n\n double windowWidth = base.getWidth() / 10;\n double windowHeight = base.getHeight() / 7;\n double b = base.getWidth() / 12;\n double h = base.getHeight() / 20;\n for (int i = 0; i < 6; i++) { //windows of tower.\n for (int j = 0; j < 5; j++) {\n Block window = new Block(new Rectangle(new Point(base.getCollisionRectangle().getUpperLeft().getX() + b\n + (windowWidth + b) * j,\n base.getCollisionRectangle().getUpperLeft().getY() + h + (windowHeight + h) * i), windowWidth\n , windowHeight), Color.white);\n window.setNumber(-1);\n this.bodies.add(window);\n }\n }\n\n //circles on the top of the tower.\n Circle c1 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 17, Color.black, \"fill\");\n Circle c2 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 12, Color.darkGray, \"fill\");\n Circle c3 = new Circle(pole.getCollisionRectangle().getUpperLine().middle().getX()\n , pole.getCollisionRectangle().getUpperLine().middle().getY() - 17, 7, Color.red, \"fill\");\n this.bodies.add(c1);\n this.bodies.add(c2);\n this.bodies.add(c3);\n\n\n }", "private void BC_cylinder(Grid gr){\r\n int i, j, j1, j2;\r\n NSmax = (int)(500.0/dt); repL=0.1;\r\n // Boundary conditions of lower side of computational domain\r\n for(i = 0; i<gr.mxL1; i++) BClow[i]=\"periodic\"; \r\n for(i =gr.mxL1; i<gr.mxL2; i++) BClow[i]=\"wall\";\r\n for(i =gr.mxL2; i<mx; i++) BClow[i]=\"periodic\";\r\n // Boundary conditions on upper side \r\n for(i = 0; i<gr.mxU1; i++) BCupp[i]=\"slip\";\r\n for(i =gr.mxU1; i<gr.mxU2; i++) BCupp[i]=\"in\";\r\n for(i =gr.mxU2; i<mx; i++) BCupp[i]=\"slip\";\r\n // Boundary conditions on left side\r\n for(j = 0; j<my; j++) BClef[j]=\"out\";\r\n // Boundary conditions of right side\r\n for(j = 0; j<my; j++) BCrig[j]=\"out\";\t\t\r\n\r\n // Initial conditions; \r\n for(i=0; i<mx; i++){ \r\n if(BClow[i]==\"wall\") j1=1; else j1=0;\r\n for(j=j1; j<my; j++) u[i][j]=Umean; \r\n }\r\n u[gr.mxL2][0]=0.0;\r\n xrange[0]=1.0f; yrange[0]=-4.5f; xrange[1]=10.0f; yrange[1]=4.5f; \r\n\r\n }", "public DrawGraphics() {\r\n box = new BouncingBox(200, 50, Color.RED);\r\n\tbox.setMovementVector(1,1);\r\n\r\n\tboxes = new ArrayList<BouncingBox>();\r\n\tboxes.add(new BouncingBox(35,40, Color.BLUE));\r\n\tboxes.get(0).setMovementVector(2,-1);\r\n\tboxes.add(new BouncingBox(120,80, Color.GREEN));\r\n\tboxes.get(1).setMovementVector(-1,2);\r\n\tboxes.add(new BouncingBox(500,80, Color.PINK));\r\n\tboxes.get(2).setMovementVector(-2,-2);\r\n }", "private void decorate(int xStart, int xLength, int floor, ArrayList finalListElements, ArrayList states)\r\n\t {\n\t if (floor < 1)\r\n\t \treturn;\r\n\r\n\t // boolean coins = random.nextInt(3) == 0;\r\n\t boolean rocks = true;\r\n\r\n\t //add an enemy line above the box\r\n\t Random r = new Random();\r\n\t boolean enemyAdded=addEnemyLine(xStart + 1, xLength - 1, floor - 1);\r\n\r\n\t int s = 1;\r\n\t int e = 1;\r\n\r\n\t if(enemyAdded==false)\r\n\t {\r\n\t if (floor - 2 > 0){\r\n\t \tif ((xLength - e) - (xStart + s) > 0){\r\n\t \t\tfor(int x = xStart + s; x < xLength- e; x++){\r\n\t \tboolean flag=true;\r\n\t \tfor(int i=0;i<states.size();i++)\r\n\t \t{\r\n\t \t\tElements element=(Elements)finalListElements.get(i);\r\n\t \t\t\tBlockNode state=(BlockNode)states.get(i);\r\n\t \t\t\t\r\n\t \t\t\tint xElement = (int)(initialStraight+state.getX());\r\n\t \t int floorC= (int)state.getY()+1;\r\n\t \t int widthElement=element.getWidth();\r\n\t \t int heigthElement=element.getHeigth()+2;\r\n\t \t \r\n\t \t int widthElementNext=1;\r\n\t \t int heigthElementNext=0;\r\n\t \t \r\n\t \t if(x+(widthElementNext-1)>=xElement && x<xElement+widthElement && (floor-1)-heigthElementNext<=floorC && (floor-1)>= floorC-heigthElement )\r\n\t \t {\r\n\t \t \tflag=false;\r\n\t \t \tbreak;\r\n\t \t }\r\n\t \t \t \t \t\t \t \r\n\t \t } \r\n\t \tif(flag==true)\r\n\t \t{\r\n\t \t\tsetBlock(x, floor - 1, COIN);\r\n\t \t}\r\n\t \r\n\t //COINS++;\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t s = random.nextInt(4);\r\n\t e = random.nextInt(4);\r\n\t \r\n\t //this fills the set of blocks and the hidden objects inside them\r\n\t /*\r\n\t if (floor - 4 > 0)\r\n\t {\r\n\t if ((xLength - 1 - e) - (xStart + 1 + s) > 2)\r\n\t {\r\n\t for (int x = xStart + 1 + s; x < xLength - 1 - e; x++)\r\n\t {\r\n\t if (rocks)\r\n\t {\r\n\t if (x != xStart + 1 && x != xLength - 2 && random.nextInt(3) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_POWERUP);\r\n\t //BLOCKS_POWER++;\r\n\t }\r\n\t else\r\n\t {\t//the fills a block with a hidden coin\r\n\t setBlock(x, floor - 4, BLOCK_COIN);\r\n\t //BLOCKS_COINS++;\r\n\t }\r\n\t }\r\n\t else if (random.nextInt(4) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (2 + 1 * 16));\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (1 + 1 * 16));\r\n\t }\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_EMPTY);\r\n\t //BLOCKS_EMPTY++;\r\n\t }\r\n\t }\r\n\t }\r\n\t //additionElementToList(\"Block\", 1,(xLength - 1 - e)-(xStart + 1 + s));\r\n\t }\r\n\t \r\n\t }*/\r\n\t }", "public void renderInvBlock(bbb renderblocks, int md)\r\n/* 73: */ {\r\n/* 74: 72 */ this.block.f();\r\n/* 75: */ \r\n/* 76: 74 */ this.context.setDefaults();\r\n/* 77: 75 */ this.context.setPos(-0.5D, -0.5D, -0.5D);\r\n/* 78: 76 */ this.context.useNormal = true;\r\n/* 79: 77 */ this.context.setLocalLights(0.5F, 1.0F, 0.8F, 0.8F, 0.6F, 0.6F);\r\n/* 80: */ \r\n/* 81: 79 */ RenderLib.bindTexture(\"/eloraam/machine/machine1.png\");\r\n/* 82: 80 */ baz tessellator = baz.a;\r\n/* 83: */ \r\n/* 84: 82 */ tessellator.b();\r\n/* 85: 83 */ this.context.useNormal = true;\r\n/* 86: */ \r\n/* 87: */ \r\n/* 88: 86 */ this.context.setTex(28, 28, 26, 26, 26, 26);\r\n/* 89: */ \r\n/* 90: 88 */ this.context.renderBox(60, 0.375D, 0.0D, 0.375D, 0.625D, 1.0D, 0.625D);\r\n/* 91: 89 */ this.context.renderBox(60, 0.6240000128746033D, 0.9990000128746033D, 0.6240000128746033D, 0.3759999871253967D, 0.001000000047497451D, 0.3759999871253967D);\r\n/* 92: 90 */ renderFlanges(3, 27);\r\n/* 93: */ \r\n/* 94: 92 */ tessellator.a();\r\n/* 95: 93 */ RenderLib.unbindTexture();\r\n/* 96: 94 */ this.context.useNormal = false;\r\n/* 97: */ }", "Bicycle(){\n\t\tthis.wheels=2;\n\t}", "private void circleCollison() {\n\t\t\n\t}", "public BranchGroup cubo2(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.2,.05,.2);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(.5,.6,.5);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n // rotate.mul(objScale);\n TransformGroup objRotate = new TransformGroup(rotate);\n \n //objRotate.addChild(new ColorCube(0.4));\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n \n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\n\t \n\t // Set up the background\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "RclBlock createRclBlock();", "@Override\n\tpublic void draw(RoomBlocks grid) {\n\t\trenderer.setProjectionMatrix(CameraHolder.instance().getOrtho().combined);\n//\t\tCont tot = new Cont();\n\t\tColor color = new Color();\n\n\t\t\n\t\tDimensions dim = grid.getDimensions().toRoomWorldDimmensions();\n\t\tgrid.forEach(bl -> {\n//\t\t\t\n\t\t\tint x = (GeneratorConstants.ROOM_BLOCK_SIZE * bl.getX()) + GeneratorConstants.ROOM_BLOCK_SIZE;\n\t\t\t\n\t\t\tx = (dim.getW() - x) + dim.getX();\n\t\t\t\n\t\t\tint pseudWorldRoomY = grid.getDimensions().getY() * Configuration.getLevelGridElementContentSize();\n\t\t\tint y = (bl.getY() + pseudWorldRoomY) * (GeneratorConstants.ROOM_BLOCK_SIZE);\n\t\t\t\n\t\t\tShapeType shType = ShapeType.Filled;\n\t\t\tboolean render = false;\n\t\t\t\n\t\t\tif(bl.isDoor()) {\n\t\t\t\trender = true;\n\t\t\t\tcolor.set(0, 0, 0, 1);\n\t\t\t} else if(bl.isWall()) {\n//\t\t\t\trender = true;\n//\t\t\t\tcolor.set(1, 1, 1, 1);\n//\t\t\t\tshType = ShapeType.Line;\n\t\t\t} else if(bl.getMetaInfo() != null) {//TODO\n\t\t\t\t\n\t\t\t\tif(bl.getMetaInfo().getType().equals(\".\")) {\n\t\t\t\t\trender = true;\n\t\t\t\t\tcolor.set(0, 0, 0, 1);\n\t\t\t\t} else if(!bl.getMetaInfo().getType().equals(\"x\")) {\n\t\t\t\t\t\n\t\t\t\t\tBrush brush = Configuration.brushesPerTile.get(bl.getMetaInfo().getType().charAt(0));\n\t\t\t\t\tif(brush != null) {// && bl.getOwner() != null\n\t\t\t\t\t\t\n//\t\t\t\t\t\tif(bl.getOwner() != null) {\n//\t\t\t\t\t\t\tSystem.out.println(\"owner: \" + brush.tile);\n//\t\t\t\t\t\t}\t\t\t\t\t\t\n//\t\t\t\t\t\t\n\t\t\t\t\t\trender = true;\n\t\t\t\t\t\tcolor.set(brush.color[0], brush.color[1], brush.color[2], 1);\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(render) {\n\t\t\t\t\n\t\t\t\tint size = GeneratorConstants.ROOM_BLOCK_SIZE;\n\t\t\t\t\n\t\t\t\trenderer.begin(shType);\n\t\t\t\trenderer.setColor(color);\n\t\t\t\trenderer.rect(x, y, size, size);\n\t\t\t\trenderer.end();\n\t\t\t}\n\t\t\t\n//\t\t\tif(bl.getOwner() != null ) {\n//\t\t\t\tfinal int fx = x;\n//\t\t\t\tfinal int fy = y;\n//\t\t\t\t\n//\t\t\t\tbl.getOwner().forEachItems(itm -> {//desenhando os items\n//\t\t\t\t\trenderer.begin(ShapeType.Filled);\n//\t\t\t\t\trenderer.setColor(itm.color[0], itm.color[1], itm.color[2], 1);\n//\t\t\t\t\trenderer.rect(fx + itm.dx, fy + itm.dy, itm.width, itm.height);\n//\t\t\t\t\trenderer.end();\t\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t}\t\t\t\n\t\t});\n\t}", "public void initialize() {\r\n /**********************************/\r\n //this.numOfLives=new hitevent.Counter(START_NUM_LIVES);\r\n //this.blocksCounter = new hitevent.Counter(this.levelInformation.numberOfBlocksToRemove());\r\n //this.gui = new GUI(\"jumping\", WIDTH_SCREEN, HI_SCREEN);\r\n /*****************************************/\r\n //create new point to create the edges of the screen\r\n Point p1 = new Point(-5, 20);\r\n Point p2 = new Point(-5, -5);\r\n Point p3 = new Point(WIDTH_SCREEN - 20, -5);\r\n Point p4 = new Point(-5, HI_SCREEN - 15);\r\n //an array to the blocks of the edges\r\n Block[] edges = new Block[4];\r\n //create the adges of the screen\r\n Counter[] edgeCount = new Counter[4];\r\n edgeCount[0] = new Counter(1);\r\n edges[0] = new Block(new Rectangle(p1, WIDTH_SCREEN + 20, 25), Color.RED, edgeCount[0]);\r\n edgeCount[1] = new Counter(1);\r\n edges[1] = new Block(new Rectangle(p2, 25, HI_SCREEN + 20), Color.RED, edgeCount[1]);\r\n edgeCount[2] = new Counter(1);\r\n edges[2] = new Block(new Rectangle(p3, 25, HI_SCREEN + 20), Color.RED, edgeCount[2]);\r\n edgeCount[3] = new Counter(1);\r\n edges[3] = new Block(new Rectangle(p4, WIDTH_SCREEN + 20, 25), Color.RED, edgeCount[3]);\r\n\r\n //initilize the paddle\r\n initializePaddle();\r\n //sprite collection and game evnironment\r\n SpriteCollection sprite = new SpriteCollection();\r\n GameEnvironment game1 = new GameEnvironment();\r\n\r\n //add the Background of the level to the sprite collection\r\n this.addSprite(this.levelInformation.getBackground());\r\n //create score Indicator, lives Indicator and level name\r\n ScoreIndicator scoreIndicator1 = new ScoreIndicator(score);\r\n LivesIndicator livesIndicator1 = new LivesIndicator(numOfLives);\r\n LevelIndicator levelName = new LevelIndicator(this.levelInformation.levelName());\r\n\r\n game1.addCollidable((Collidable) this.paddle);\r\n sprite.addSprite((Sprite) this.paddle);\r\n sprite.addSprite((Sprite) scoreIndicator1);\r\n sprite.addSprite((Sprite) livesIndicator1);\r\n sprite.addSprite((Sprite) levelName);\r\n\r\n //add the paddle, score Indicator, lives Indicator and level name to the game\r\n this.paddle.addToGame(this);\r\n scoreIndicator1.addToGame(this);\r\n livesIndicator1.addToGame(this);\r\n levelName.addToGame(this);\r\n\r\n //initilize the Blocks\r\n initializeBlocks();\r\n\r\n }", "@Test\r\n public void Test028generateNextPatternBlock()\r\n {\r\n\r\n gol.makeLiveCell(4, 4);\r\n gol.makeLiveCell(4, 5);\r\n gol.makeLiveCell(5, 4);\r\n gol.makeLiveCell(5, 5);\r\n gol.generateNextPattern();\r\n\r\n assertEquals(4, gol.getTotalAliveCells());\r\n }", "void drawBones(){\n\t for(Skeleton s : skeletons){\n\t drawBones(s.frame);\n\t }\n\t}", "public void renderWorldBlock(bbb renderblocks, ym iba, int i, int j, int k, int md)\r\n/* 26: */ {\r\n/* 27: 26 */ int cons = 0;\r\n/* 28: 27 */ TilePipe tt = (TilePipe)CoreLib.getTileEntity(iba, i, j, k, TilePipe.class);\r\n/* 29: 29 */ if (tt == null) {\r\n/* 30: 29 */ return;\r\n/* 31: */ }\r\n/* 32: 31 */ this.context.exactTextureCoordinates = true;\r\n/* 33: 32 */ this.context.setTexFlags(55);\r\n/* 34: 33 */ this.context.setTint(1.0F, 1.0F, 1.0F);\r\n/* 35: 34 */ this.context.setPos(i, j, k);\r\n/* 36: 35 */ if (tt.CoverSides > 0)\r\n/* 37: */ {\r\n/* 38: 36 */ this.context.readGlobalLights(iba, i, j, k);\r\n/* 39: 37 */ renderCovers(tt.CoverSides, tt.Covers);\r\n/* 40: */ }\r\n/* 41: 40 */ cons = PipeLib.getConnections(iba, i, j, k);\r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 44 */ this.context.setBrightness(this.block.e(iba, i, j, k));\r\n/* 46: */ \r\n/* 47: 46 */ this.context.setLocalLights(0.5F, 1.0F, 0.8F, 0.8F, 0.6F, 0.6F);\r\n/* 48: 47 */ this.context.setPos(i, j, k);\r\n/* 49: */ \r\n/* 50: 49 */ RenderLib.bindTexture(\"/eloraam/machine/machine1.png\");\r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: */ \r\n/* 54: */ \r\n/* 55: */ \r\n/* 56: */ \r\n/* 57: */ \r\n/* 58: */ \r\n/* 59: */ \r\n/* 60: */ \r\n/* 61: */ \r\n/* 62: */ \r\n/* 63: */ \r\n/* 64: 63 */ renderCenterBlock(cons, 26, 28);\r\n/* 65: */ \r\n/* 66: 65 */ tt.cacheFlange();\r\n/* 67: 66 */ renderFlanges(tt.Flanges, 27);\r\n/* 68: */ \r\n/* 69: 68 */ RenderLib.unbindTexture();\r\n/* 70: */ }", "public BranchGroup cubo1(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.5,.05,.5);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(-.5,.6,1);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n TransformGroup objRotate = new TransformGroup(rotate);\n\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n \n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "private void DrawBraid(GL gl, float x, float y, float size,\n\t\t\tfloat r, float g, float b) {\n\n float reflected_x=0, reflected_y=0;\n float reflected_vector_angle=0, reflected_image_angle=0, reflected_rotate=0;\n\n // Degeneracy = do not want\n\t\tif (m_length == 0.0f || m_width == 0.0f) {\n\t\t\treturn;\n\t\t}\n\n\t\t////int mct = (int) (1 / this.GetPEngine().m_uniscale);\n\t\t////mct = (mct / 2) / 100 * 100;\n\n //Do the reflection\n if(m_x_reflection==0 && m_y_reflection==0)\n {\n reflected_x=x;\n reflected_y=y;\n reflected_image_angle=m_slope;\n reflected_vector_angle=m_slope;\n reflected_rotate= m_rotate;\n }\n else if(m_x_reflection==1 && m_y_reflection==0)\n {\n reflected_x=x;\n reflected_y=-y;\n reflected_image_angle=90-m_slope;\n reflected_vector_angle=-m_slope;\n reflected_rotate= -m_rotate;\n }\n else if(m_x_reflection==0 && m_y_reflection==1)\n {\n reflected_x=-x;\n reflected_y=y;\n reflected_image_angle=-90-m_slope;\n reflected_vector_angle=180-m_slope;\n reflected_rotate= -m_rotate;\n }\n else if(m_x_reflection==1 && m_y_reflection==1)\n {\n reflected_x=-x;\n reflected_y=-y;\n reflected_image_angle=m_slope-180;\n reflected_vector_angle=m_slope+180;\n reflected_rotate= m_rotate;\n }\n\n\t\tfloat start_image_theta = (float) Math.toRadians(reflected_image_angle);\n \t\tfloat start_vector_theta = (float) Math.toRadians(reflected_vector_angle);\n\t\tfloat rotate_theta = (float) Math.toRadians(reflected_rotate);\n\t\tfloat cur_image_theta = 0f, cur_vector_theta = 0f;\n\t\tdouble image_costheta = 0, vector_costheta = 0;\n\t\tdouble image_sintheta = 0, vector_sintheta = 0;\n\t\tfloat xP = 0f;\n\t\tfloat yP = 0f;\n\t\tfloat xO = 0f, nextXO = 0f;\n\t\tfloat yO = 0f, nextYO = 0f;\n\n\t\t//if (txt == null) {\n\t\t//\ttxt = load(\"img/plaitWhite.png\");\n\t\t//}\n\t\tTextureCoords tc = m_txt.getImageTexCoords();\n\t\txO = nextXO = reflected_x;\n\t\tyO = nextYO = reflected_y;\n xP = m_cx * m_starting_dilation;\n\t\tyP = m_cy * m_starting_dilation;\n //vector\n\t\tcur_vector_theta = start_vector_theta;\n vector_costheta = Math.cos(cur_vector_theta);\n\t\tvector_sintheta = Math.sin(cur_vector_theta);\n //image\n cur_image_theta = start_image_theta;\n\t\timage_costheta = Math.cos(cur_image_theta);\n\t\timage_sintheta = Math.sin(cur_image_theta);\n\t\t\n\t\tfor (int i = 0; i < Iteration; i++) {\t\t\t\n DrawPlait(gl, xO, yO, xP / 2, yP / 2, image_costheta, image_sintheta, tc);\n\t\t\t//vector\n cur_vector_theta += rotate_theta;\n\t\t\tvector_costheta = Math.cos(cur_vector_theta);\n\t\t\tvector_sintheta = Math.sin(cur_vector_theta);\n //image\n\t\t\tcur_image_theta += rotate_theta;\n\t\t\timage_costheta = Math.cos(cur_image_theta);\n\t\t\timage_sintheta = Math.sin(cur_image_theta);\n //next centor position\n\t\t\tnextXO = xO + (float) (xP * m_translate * vector_costheta);\n\t\t\tnextYO = yO + (float) (yP * m_translate * vector_sintheta);\n\t\t\tif (m_vector) {\n\t\t\t\tDrawVector(gl, xO, yO, nextXO, nextYO, xP, cur_vector_theta);\n\t\t\t}\n\t\t\txO = nextXO;\n\t\t\tyO = nextYO;\n\t\t\txP *= m_dilate;\n\t\t\tyP *= m_dilate;\n\t\t}\n\t}", "public Level(int objectDensity, int lanecount){\n\t\tthis.bottle = new Bottle(150, 200);\n\t\tobstacles = new ArrayList<Obstacle>();\n\t\tthis.obstacleController = new ObstacleController(obstacles, objectDensity);\n\t\tthis.lanecount = lanecount;\n\t\tstate = Level.LEVEL_STATE_RUNNING;\n\t}", "public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }", "Wall(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Wall(Sprite sprite)\", \"2420\");}", "@Test\r\n public void Test027generateNextPatternBlinker()\r\n {\r\n gol.makeLiveCell(4, 3);\r\n gol.makeLiveCell(4, 4);\r\n gol.makeLiveCell(4, 5);\r\n gol.generateNextPattern();\r\n\r\n assertEquals(3, gol.getTotalAliveCells());\r\n }", "private void blue(){\n\t\tthis.arretes_fB();\n\t\tthis.coins_fB();\n\t\tthis.coins_a1B();\n\t\tthis.coins_a2B();\n\t\tthis.aretes_aB();\n\t\tthis.cube[22] = \"B\";\n\t}", "@Override\n public void teleopPeriodic() {\n \n boolean targetFound = false; \n int Xpos = -1; int Ypos = -1; int Height = -1; int Width = -1; Double objDist = -1.0; double []objAng = {-1.0,-1.0};\n\n //Getting the number of blocks found\n int blockCount = pixy.getCCC().getBlocks(false, Pixy2CCC.CCC_SIG1, 25);\n\t\tSystem.out.println(\"Found \" + blockCount + \" blocks!\"); // Reports number of blocks found\n\t\tif (blockCount <= 0) {\n System.err.println(\"No blocks found\");\n }\n ArrayList <Block> blocks = pixy.getCCC().getBlocks();\n Block largestBlock = null;\n\n //verifies the largest block and store it in largestBlock\n for (Block block:blocks){\n if (block.getSignature() == Pixy2CCC.CCC_SIG1) {\n\n\t\t\t\tif (largestBlock == null) {\n\t\t\t\t\tlargestBlock = block;\n\t\t\t\t} else if (block.getWidth() > largestBlock.getWidth()) {\n\t\t\t\t\tlargestBlock = block;\n }\n\t\t\t}\n }\n //loop\n while (pixy.getCCC().getBlocks(false, Pixy2CCC.CCC_SIG1, 25)>=0 && ButtonLB){\n\n if (largestBlock != null){\n targetFound = true; \n Xpos = largestBlock.getX();\n Ypos = largestBlock.getY();\n Height = largestBlock.getHeight();\n Width = largestBlock.getWidth();\n\n objDist = RobotMap.calculateDist((double)Height, (double)Width, (double)Xpos, (double)Ypos);\n objAng = RobotMap.calculateAngle(objDist, Xpos, Ypos);\n \n }\n //print out values to Dashboard\n SmartDashboard.putBoolean(\"Target found\", targetFound);\n SmartDashboard.putNumber (\"Object_X\", Xpos);\n SmartDashboard.putNumber (\"Object_Y\", Ypos);\n SmartDashboard.putNumber (\"Height\", Height);\n SmartDashboard.putNumber(\"Width\", Width);\n SmartDashboard.putNumber (\"Distance\", objDist);\n SmartDashboard.putNumber(\"X Angle\", objAng[0]);\n SmartDashboard.putNumber(\"Y Angle\", objAng[1]);\n }\n }", "public void alg_BLOCKCONVEYER(){\nBlock.value=true;\nSystem.out.println(\"block\");\n\n}", "@Override\n\tpublic void run() {\n\t\tint i = 100;\n\t\ttry {\n\t\t\tThread.sleep(2500);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tThread.sleep(50);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tdouble rad1 = Math.toRadians((Math.random() * 360));\n\t\t\tdouble rad2 = Math.toRadians((Math.random() * 360));\n\t\t\tfloat z = (float) Math.sin(rad1);\n\t\t\tfloat l = (float) Math.cos(rad1);\n\t\t\tfloat x = (float) (l * Math.sin(rad2));\n\t\t\tfloat y = (float) (l * Math.cos(rad2));\n\t\t\taddDot3D(new Dot3D(x, y, z, new Color3f(0, 0, 1)));\n\t\t\tVecBranchGroup.addChild(new Arrow3D(new Vector3f(x, y, z), new Color3f(0, 1, 0)));\n\t\t} while((-- i) != 0);\n\t\ttry {\n\t\t\tThread.sleep(2500);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n//\t\tDotBranchGroup.removeAllChildren();\n\t\tVecBranchGroup.removeAllChildren();\n\t}", "@Override\n public void draw(Bullet b){\n Draw.color(Palette.lightFlame, Palette.darkFlame, Color.GRAY, b.fin());\n Fill.circle(b.x, b.y, 3f * b.fout());\n Draw.reset();\n }", "@Override\n public void next(){\n balls.translate();\n majGui();\n }", "public void levelBrain2(ArrayList<GameObject> gameobject) {\n if ((_win_Level == true)&&(_save_Progres == false))\r\n { _save_Progres = true;\r\n gameobject.get(_player_Found_Value).setPlayerState(Static.PLAYER_STATE_LEVEL_COMPLETE);\r\n }\r\n\r\n\r\n\r\n if(_flag == 0)\r\n {\r\n\r\n\r\n int objectstofind = 1;\r\n\r\n int lenght = gameobject.size();\r\n for(int i = 0; i < lenght; i++)\r\n {\r\n if(_objects_Found < objectstofind) {\r\n if (gameobject.get(i).getObjectType() == Static.FLOATINGICEBLOCK) {\r\n if (gameobject.get(i).getObjectState() == Static.GENERAL_OBJECT_STATE_NEUTRAL) {\r\n\r\n\r\n gameobject.get(i).setOffScreenProjectile(0, GamePanel.HEIGHT / (100 / 50), 0, 150);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n gameobject.get(i).setGetToPoint(GamePanel.WIDTH / (100 / 45), 0, GamePanel.HEIGHT, GamePanel.WIDTH / (100 / 10), Color.GREEN);\r\n _objects_Found++;\r\n }\r\n }\r\n }\r\n else if(_objects_Found == objectstofind)\r\n {\r\n _objects_Found = 0;\r\n _flag++;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if((_lvl_2_Points == 1)&&(_flag == 1))\r\n {\r\n\r\n int objectstofind = 3;\r\n\r\n int lenght = gameobject.size();\r\n for(int i = 0; i < lenght; i++)\r\n {\r\n if(_objects_Found < objectstofind) {\r\n if (gameobject.get(i).getObjectType() == Static.FLOATINGICEBLOCK) {\r\n if (gameobject.get(i).getObjectState() == Static.GENERAL_OBJECT_STATE_NEUTRAL) {\r\n\r\n gameobject.get(i).setOffScreenProjectile(1, 0, 270, 80);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n\r\n if (_objects_Found == 1) {\r\n gameobject.get(i).setOffScreenProjectile(1, GamePanel.HEIGHT / (100 / 55), 270, 80);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n }\r\n if (_objects_Found == 2) {\r\n gameobject.get(i).setOffScreenProjectile(0, -(GamePanel.HEIGHT / (100 / 40)), 0, 150);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n gameobject.get(i).setGetToPoint(0, -(GamePanel.HEIGHT / (100 / 40)), GamePanel.HEIGHT/ (100 / 50), GamePanel.WIDTH, Color.RED);\r\n }\r\n _objects_Found++;\r\n }\r\n }\r\n }\r\n else if(_objects_Found == objectstofind)\r\n {\r\n _objects_Found = 0;\r\n _flag++;\r\n break;\r\n }\r\n }\r\n\r\n }\r\n if((_lvl_2_Points == 4)&&(_flag ==2)) {\r\n\r\n int objectstofind = 1;\r\n\r\n\r\n int lenght = gameobject.size();\r\n for (int i = 0; i < lenght; i++) {\r\n if (_objects_Found < objectstofind) {\r\n if (gameobject.get(i).getObjectType() == Static.FLOATINGICEBLOCK) {\r\n if (gameobject.get(i).getObjectState() == Static.GENERAL_OBJECT_STATE_NEUTRAL) {\r\n\r\n gameobject.get(i).setOffScreenProjectile(2, GamePanel.HEIGHT, 170, 40);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n gameobject.get(i).setGetToPoint(GamePanel.WIDTH / (100 / 20), (GamePanel.HEIGHT / (100 / 30)), GamePanel.HEIGHT/ (100 / 20), GamePanel.WIDTH /(100 / 20), Color.YELLOW);\r\n _objects_Found++;\r\n }\r\n }\r\n }\r\n else if (_objects_Found == objectstofind) {\r\n _objects_Found = 0;\r\n _flag++;\r\n break;\r\n }\r\n }\r\n }\r\n //Ain't no smooth sailing from here, make sure their parting gift from level one is special.\r\n if((_lvl_2_Points == 5)&&(_flag == 3)) {\r\n int objectstofind = 3;\r\n\r\n\r\n int lenght = gameobject.size();\r\n for (int i = 0; i < lenght; i++) {\r\n if (_objects_Found < objectstofind) {\r\n if (gameobject.get(i).getObjectType() == Static.FLOATINGICEBLOCK) {\r\n if (gameobject.get(i).getObjectState() == Static.GENERAL_OBJECT_STATE_NEUTRAL) {\r\n\r\n if (_objects_Found == 0) {\r\n\r\n gameobject.get(i).setOffScreenProjectile(0, GamePanel.HEIGHT / (100 / 30) + GamePanel.HEIGHT / (100 / 20), 0, 400);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n gameobject.get(i).setGetToPoint(0, (GamePanel.HEIGHT / (100 / 30))+ GamePanel.HEIGHT / (100 / 20), GamePanel.HEIGHT / (100 / 50), GamePanel.WIDTH, Color.RED);\r\n }\r\n if (_objects_Found == 1) {\r\n\r\n gameobject.get(i).setOffScreenProjectile(3, GamePanel.WIDTH / (100 / 20) + GamePanel.WIDTH /(100 / 20), 90, 400);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n gameobject.get(i).setGetToPoint(GamePanel.WIDTH / (100 / 40), (GamePanel.HEIGHT / (100 / 50)), GamePanel.HEIGHT , GamePanel.WIDTH / (100 / 20), Color.RED);\r\n }\r\n if (_objects_Found == 2) {\r\n\r\n gameobject.get(i).setOffScreenProjectile(1, GamePanel.WIDTH / (100 / 20) + GamePanel.WIDTH /(100 / 15), 270, 500);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n }\r\n\r\n _objects_Found++;\r\n }\r\n }\r\n } else if (_objects_Found == objectstofind) {\r\n _objects_Found = 0;\r\n _flag++;\r\n break;\r\n }\r\n\r\n }\r\n\r\n }\r\n if((_lvl_2_Points == 8)&&(_flag == 4))\r\n {\r\n\r\n int objectstofind = 2;\r\n\r\n int lenght = gameobject.size();\r\n for(int i = 0; i < lenght; i++)\r\n {\r\n if(_objects_Found < objectstofind) {\r\n if (gameobject.get(i).getObjectType() == Static.FLOATINGICEBLOCK) {\r\n if (gameobject.get(i).getObjectState() == Static.GENERAL_OBJECT_STATE_NEUTRAL) {\r\n\r\n\r\n if (_objects_Found == 0) {\r\n gameobject.get(i).setOffScreenProjectile(2, 0, 180, 80);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n }\r\n if (_objects_Found == 1) {\r\n gameobject.get(i).setOffScreenProjectile(2, -(GamePanel.HEIGHT / (100 / 40)), 180, 150);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n }\r\n _objects_Found++;\r\n }\r\n }\r\n }\r\n else if(_objects_Found == objectstofind)\r\n {\r\n _objects_Found = 0;\r\n _flag++;\r\n break;\r\n }\r\n }\r\n\r\n }\r\n if((_lvl_2_Points == 10)&&(_flag == 5))\r\n {\r\n int objectstofind = 5;\r\n\r\n int lenght = gameobject.size();\r\n for(int i = 0; i < lenght; i++)\r\n {\r\n if(_objects_Found < objectstofind) {\r\n if (gameobject.get(i).getObjectType() == Static.FLOATINGICEBLOCK) {\r\n if (gameobject.get(i).getObjectState() == Static.GENERAL_OBJECT_STATE_NEUTRAL) {\r\n\r\n\r\n if (_objects_Found == 0) {\r\n gameobject.get(i).setOffScreenProjectile(2, 0, 195, 80);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n }\r\n if (_objects_Found == 1) {\r\n gameobject.get(i).setOffScreenProjectile(2, -(GamePanel.HEIGHT / (100 / 40)), 160, 400);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n }\r\n if (_objects_Found == 2) {\r\n gameobject.get(i).setOffScreenProjectile(3, -(GamePanel.WIDTH/(100/1)) , 150, 200);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n }\r\n if (_objects_Found == 3) {\r\n gameobject.get(i).setOffScreenProjectile(0, 0, 0, 150);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n }\r\n if (_objects_Found == 4) {\r\n gameobject.get(i).setOffScreenProjectile(1, -GamePanel.WIDTH/(100/20), 270, 90);\r\n gameobject.get(i).setObjectState(Static.GENERAL_OBJECT_STATE_ACTIVE);\r\n }\r\n _objects_Found++;\r\n }\r\n }\r\n }\r\n else if(_objects_Found == objectstofind)\r\n {\r\n _objects_Found = 0;\r\n _flag++;\r\n break;\r\n }\r\n }\r\n\r\n }\r\n\r\n //THE PLAYER WON! KICK THEM THE FUCK OUT!\r\n if(_lvl_2_Points >= 15)\r\n {\r\n _win_Level = true;\r\n }\r\n\r\n //Check for scored points\r\n int lenght = gameobject.size();\r\n for (int i = 0; i < lenght; i++) {\r\n if(gameobject.get(i).getObjectType() == Static.FLOATINGICEBLOCK) {\r\n if (gameobject.get(i).getSpecialBooleanVar() == true) {\r\n _lvl_2_Points++;\r\n\r\n gameobject.get(i).setSpecialBooleanVar(false);\r\n _fx.play(_sound_ID, 1, 1, 0, 0, 1);\r\n\r\n }\r\n }\r\n }\r\n\r\n if(_save_Progres == true) {\r\n if(gameobject.get(_player_Found_Value).getObjectStatus() == Static.OBJECT_STATUS_INACTIVE)\r\n {\r\n //The player now has permission to go to level 2 but they won't make it much further.\r\n if (_readFile.returnProgress() < 3) {\r\n _readFile.saveLevelProgress(3);\r\n endMusic();\r\n gameobject.get(_player_Found_Value).returnToMenu();\r\n }\r\n endMusic();\r\n gameobject.get(_player_Found_Value).returnToMenu();\r\n }\r\n }\r\n }", "LabState state();", "public void step(){\n //System.out.println(\"step\");\n //display();\n Cell[][] copy = new Cell[world.length][world.length];\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){\n copy [r][c] = new Cell();\n copy[r][c].setState(world[r][c].isAlive());\n }\n }\n\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){ \n int n = getNumberOfLiveNeighbours(r,c);\n if(world[r][c].isAlive()){\n if(n<2||n>3){\n copy[r][c].setState(false);\n }\n }else{\n if(n==3){\n copy[r][c].setState(true);\n }\n }\n }\n }\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){\n world[r][c].setState(copy[r][c].isAlive());\n }\n }\n }", "private void cD() throws java.lang.InterruptedException {\n /*\n r18 = this;\n r1 = new com.shinobicontrols.charts.GLSurfaceView$e;\n r0 = r18;\n r2 = r0.hL;\n r1.<init>(r2);\n r0 = r18;\n r0.ik = r1;\n r1 = 0;\n r0 = r18;\n r0.hY = r1;\n r1 = 0;\n r0 = r18;\n r0.hZ = r1;\n r3 = 0;\n r12 = 0;\n r1 = 0;\n r11 = 0;\n r10 = 0;\n r9 = 0;\n r8 = 0;\n r2 = 0;\n r7 = 0;\n r6 = 0;\n r5 = 0;\n r4 = 0;\n r14 = r3;\n r3 = r5;\n r5 = r7;\n r7 = r8;\n r8 = r9;\n r9 = r10;\n r10 = r11;\n r11 = r1;\n r17 = r2;\n r2 = r4;\n r4 = r6;\n r6 = r17;\n L_0x0031:\n r15 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d5 }\n monitor-enter(r15);\t Catch:{ all -> 0x01d5 }\n L_0x0036:\n r0 = r18;\n r1 = r0.hR;\t Catch:{ all -> 0x01d2 }\n if (r1 == 0) goto L_0x004d;\n L_0x003c:\n monitor-exit(r15);\t Catch:{ all -> 0x01d2 }\n r2 = com.shinobicontrols.charts.GLSurfaceView.hq;\n monitor-enter(r2);\n r18.cB();\t Catch:{ all -> 0x004a }\n r18.cC();\t Catch:{ all -> 0x004a }\n monitor-exit(r2);\t Catch:{ all -> 0x004a }\n return;\n L_0x004a:\n r1 = move-exception;\n monitor-exit(r2);\t Catch:{ all -> 0x004a }\n throw r1;\n L_0x004d:\n r0 = r18;\n r1 = r0.ii;\t Catch:{ all -> 0x01d2 }\n r1 = r1.isEmpty();\t Catch:{ all -> 0x01d2 }\n if (r1 != 0) goto L_0x0081;\n L_0x0057:\n r0 = r18;\n r1 = r0.ii;\t Catch:{ all -> 0x01d2 }\n r2 = 0;\n r1 = r1.remove(r2);\t Catch:{ all -> 0x01d2 }\n r1 = (java.lang.Runnable) r1;\t Catch:{ all -> 0x01d2 }\n r2 = r6;\n r6 = r4;\n r4 = r1;\n r1 = r11;\n r11 = r10;\n r10 = r9;\n r9 = r8;\n r8 = r7;\n r7 = r5;\n r5 = r3;\n L_0x006c:\n monitor-exit(r15);\t Catch:{ all -> 0x01d2 }\n if (r4 == 0) goto L_0x01f9;\n L_0x006f:\n r4.run();\t Catch:{ all -> 0x01d5 }\n r4 = 0;\n r3 = r5;\n r5 = r7;\n r7 = r8;\n r8 = r9;\n r9 = r10;\n r10 = r11;\n r11 = r1;\n r17 = r2;\n r2 = r4;\n r4 = r6;\n r6 = r17;\n goto L_0x0031;\n L_0x0081:\n r1 = 0;\n r0 = r18;\n r13 = r0.hU;\t Catch:{ all -> 0x01d2 }\n r0 = r18;\n r0 = r0.hT;\t Catch:{ all -> 0x01d2 }\n r16 = r0;\n r0 = r16;\n if (r13 == r0) goto L_0x02f2;\n L_0x0090:\n r0 = r18;\n r1 = r0.hT;\t Catch:{ all -> 0x01d2 }\n r0 = r18;\n r13 = r0.hT;\t Catch:{ all -> 0x01d2 }\n r0 = r18;\n r0.hU = r13;\t Catch:{ all -> 0x01d2 }\n r13 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d2 }\n r13.notifyAll();\t Catch:{ all -> 0x01d2 }\n r13 = r1;\n L_0x00a4:\n r0 = r18;\n r1 = r0.ib;\t Catch:{ all -> 0x01d2 }\n if (r1 == 0) goto L_0x00b6;\n L_0x00aa:\n r18.cB();\t Catch:{ all -> 0x01d2 }\n r18.cC();\t Catch:{ all -> 0x01d2 }\n r1 = 0;\n r0 = r18;\n r0.ib = r1;\t Catch:{ all -> 0x01d2 }\n r5 = 1;\n L_0x00b6:\n if (r9 == 0) goto L_0x00bf;\n L_0x00b8:\n r18.cB();\t Catch:{ all -> 0x01d2 }\n r18.cC();\t Catch:{ all -> 0x01d2 }\n r9 = 0;\n L_0x00bf:\n if (r13 == 0) goto L_0x00ca;\n L_0x00c1:\n r0 = r18;\n r1 = r0.hZ;\t Catch:{ all -> 0x01d2 }\n if (r1 == 0) goto L_0x00ca;\n L_0x00c7:\n r18.cB();\t Catch:{ all -> 0x01d2 }\n L_0x00ca:\n if (r13 == 0) goto L_0x00ee;\n L_0x00cc:\n r0 = r18;\n r1 = r0.hY;\t Catch:{ all -> 0x01d2 }\n if (r1 == 0) goto L_0x00ee;\n L_0x00d2:\n r0 = r18;\n r1 = r0.hL;\t Catch:{ all -> 0x01d2 }\n r1 = r1.get();\t Catch:{ all -> 0x01d2 }\n r1 = (com.shinobicontrols.charts.GLSurfaceView) r1;\t Catch:{ all -> 0x01d2 }\n if (r1 != 0) goto L_0x01ab;\n L_0x00de:\n r1 = 0;\n L_0x00df:\n if (r1 == 0) goto L_0x00eb;\n L_0x00e1:\n r1 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d2 }\n r1 = r1.cK();\t Catch:{ all -> 0x01d2 }\n if (r1 == 0) goto L_0x00ee;\n L_0x00eb:\n r18.cC();\t Catch:{ all -> 0x01d2 }\n L_0x00ee:\n if (r13 == 0) goto L_0x0101;\n L_0x00f0:\n r1 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d2 }\n r1 = r1.cL();\t Catch:{ all -> 0x01d2 }\n if (r1 == 0) goto L_0x0101;\n L_0x00fa:\n r0 = r18;\n r1 = r0.ik;\t Catch:{ all -> 0x01d2 }\n r1.finish();\t Catch:{ all -> 0x01d2 }\n L_0x0101:\n r0 = r18;\n r1 = r0.hV;\t Catch:{ all -> 0x01d2 }\n if (r1 != 0) goto L_0x0127;\n L_0x0107:\n r0 = r18;\n r1 = r0.hX;\t Catch:{ all -> 0x01d2 }\n if (r1 != 0) goto L_0x0127;\n L_0x010d:\n r0 = r18;\n r1 = r0.hZ;\t Catch:{ all -> 0x01d2 }\n if (r1 == 0) goto L_0x0116;\n L_0x0113:\n r18.cB();\t Catch:{ all -> 0x01d2 }\n L_0x0116:\n r1 = 1;\n r0 = r18;\n r0.hX = r1;\t Catch:{ all -> 0x01d2 }\n r1 = 0;\n r0 = r18;\n r0.hW = r1;\t Catch:{ all -> 0x01d2 }\n r1 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d2 }\n r1.notifyAll();\t Catch:{ all -> 0x01d2 }\n L_0x0127:\n r0 = r18;\n r1 = r0.hV;\t Catch:{ all -> 0x01d2 }\n if (r1 == 0) goto L_0x013f;\n L_0x012d:\n r0 = r18;\n r1 = r0.hX;\t Catch:{ all -> 0x01d2 }\n if (r1 == 0) goto L_0x013f;\n L_0x0133:\n r1 = 0;\n r0 = r18;\n r0.hX = r1;\t Catch:{ all -> 0x01d2 }\n r1 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d2 }\n r1.notifyAll();\t Catch:{ all -> 0x01d2 }\n L_0x013f:\n if (r6 == 0) goto L_0x014f;\n L_0x0141:\n r7 = 0;\n r6 = 0;\n r1 = 1;\n r0 = r18;\n r0.ih = r1;\t Catch:{ all -> 0x01d2 }\n r1 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d2 }\n r1.notifyAll();\t Catch:{ all -> 0x01d2 }\n L_0x014f:\n r1 = r18.cF();\t Catch:{ all -> 0x01d2 }\n if (r1 == 0) goto L_0x01f0;\n L_0x0155:\n r0 = r18;\n r1 = r0.hY;\t Catch:{ all -> 0x01d2 }\n if (r1 != 0) goto L_0x015e;\n L_0x015b:\n if (r5 == 0) goto L_0x01b1;\n L_0x015d:\n r5 = 0;\n L_0x015e:\n r0 = r18;\n r1 = r0.hY;\t Catch:{ all -> 0x01d2 }\n if (r1 == 0) goto L_0x02ee;\n L_0x0164:\n r0 = r18;\n r1 = r0.hZ;\t Catch:{ all -> 0x01d2 }\n if (r1 != 0) goto L_0x02ee;\n L_0x016a:\n r1 = 1;\n r0 = r18;\n r0.hZ = r1;\t Catch:{ all -> 0x01d2 }\n r11 = 1;\n r10 = 1;\n r8 = 1;\n r1 = r8;\n r8 = r10;\n L_0x0174:\n r0 = r18;\n r10 = r0.hZ;\t Catch:{ all -> 0x01d2 }\n if (r10 == 0) goto L_0x01ee;\n L_0x017a:\n r0 = r18;\n r10 = r0.ij;\t Catch:{ all -> 0x01d2 }\n if (r10 == 0) goto L_0x02e4;\n L_0x0180:\n r7 = 1;\n r0 = r18;\n r3 = r0.ic;\t Catch:{ all -> 0x01d2 }\n r0 = r18;\n r1 = r0.ie;\t Catch:{ all -> 0x01d2 }\n r4 = 1;\n r10 = 1;\n r11 = 0;\n r0 = r18;\n r0.ij = r11;\t Catch:{ all -> 0x01d2 }\n L_0x0190:\n r11 = 0;\n r0 = r18;\n r0.ig = r11;\t Catch:{ all -> 0x01d2 }\n r11 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d2 }\n r11.notifyAll();\t Catch:{ all -> 0x01d2 }\n r11 = r8;\n r8 = r4;\n r4 = r2;\n r2 = r6;\n r6 = r3;\n r17 = r1;\n r1 = r10;\n r10 = r9;\n r9 = r7;\n r7 = r5;\n r5 = r17;\n goto L_0x006c;\n L_0x01ab:\n r1 = r1.hB;\t Catch:{ all -> 0x01d2 }\n goto L_0x00df;\n L_0x01b1:\n r1 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d2 }\n r0 = r18;\n r1 = r1.b(r0);\t Catch:{ all -> 0x01d2 }\n if (r1 == 0) goto L_0x015e;\n L_0x01bd:\n r0 = r18;\n r1 = r0.ik;\t Catch:{ RuntimeException -> 0x01e3 }\n r1.start();\t Catch:{ RuntimeException -> 0x01e3 }\n r1 = 1;\n r0 = r18;\n r0.hY = r1;\t Catch:{ all -> 0x01d2 }\n r12 = 1;\n r1 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d2 }\n r1.notifyAll();\t Catch:{ all -> 0x01d2 }\n goto L_0x015e;\n L_0x01d2:\n r1 = move-exception;\n monitor-exit(r15);\t Catch:{ all -> 0x01d2 }\n throw r1;\t Catch:{ all -> 0x01d5 }\n L_0x01d5:\n r1 = move-exception;\n r2 = com.shinobicontrols.charts.GLSurfaceView.hq;\n monitor-enter(r2);\n r18.cB();\t Catch:{ all -> 0x02db }\n r18.cC();\t Catch:{ all -> 0x02db }\n monitor-exit(r2);\t Catch:{ all -> 0x02db }\n throw r1;\n L_0x01e3:\n r1 = move-exception;\n r2 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d2 }\n r0 = r18;\n r2.c(r0);\t Catch:{ all -> 0x01d2 }\n throw r1;\t Catch:{ all -> 0x01d2 }\n L_0x01ee:\n r10 = r8;\n r8 = r1;\n L_0x01f0:\n r1 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d2 }\n r1.wait();\t Catch:{ all -> 0x01d2 }\n goto L_0x0036;\n L_0x01f9:\n if (r1 == 0) goto L_0x02e1;\n L_0x01fb:\n r0 = r18;\n r3 = r0.ik;\t Catch:{ all -> 0x01d5 }\n r3 = r3.cw();\t Catch:{ all -> 0x01d5 }\n if (r3 == 0) goto L_0x02ad;\n L_0x0205:\n r3 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d5 }\n monitor-enter(r3);\t Catch:{ all -> 0x01d5 }\n r1 = 1;\n r0 = r18;\n r0.ia = r1;\t Catch:{ all -> 0x02aa }\n r1 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x02aa }\n r1.notifyAll();\t Catch:{ all -> 0x02aa }\n monitor-exit(r3);\t Catch:{ all -> 0x02aa }\n r1 = 0;\n r3 = r1;\n L_0x0219:\n if (r11 == 0) goto L_0x02de;\n L_0x021b:\n r0 = r18;\n r1 = r0.ik;\t Catch:{ all -> 0x01d5 }\n r1 = r1.cx();\t Catch:{ all -> 0x01d5 }\n r1 = (javax.microedition.khronos.opengles.GL10) r1;\t Catch:{ all -> 0x01d5 }\n r11 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d5 }\n r11.a(r1);\t Catch:{ all -> 0x01d5 }\n r11 = 0;\n r13 = r1;\n L_0x022e:\n if (r12 == 0) goto L_0x024a;\n L_0x0230:\n r0 = r18;\n r1 = r0.hL;\t Catch:{ all -> 0x01d5 }\n r1 = r1.get();\t Catch:{ all -> 0x01d5 }\n r1 = (com.shinobicontrols.charts.GLSurfaceView) r1;\t Catch:{ all -> 0x01d5 }\n if (r1 == 0) goto L_0x0249;\n L_0x023c:\n r1 = r1.ht;\t Catch:{ all -> 0x01d5 }\n r0 = r18;\n r12 = r0.ik;\t Catch:{ all -> 0x01d5 }\n r12 = r12.hP;\t Catch:{ all -> 0x01d5 }\n r1.onSurfaceCreated(r13, r12);\t Catch:{ all -> 0x01d5 }\n L_0x0249:\n r12 = 0;\n L_0x024a:\n if (r9 == 0) goto L_0x0260;\n L_0x024c:\n r0 = r18;\n r1 = r0.hL;\t Catch:{ all -> 0x01d5 }\n r1 = r1.get();\t Catch:{ all -> 0x01d5 }\n r1 = (com.shinobicontrols.charts.GLSurfaceView) r1;\t Catch:{ all -> 0x01d5 }\n if (r1 == 0) goto L_0x025f;\n L_0x0258:\n r1 = r1.ht;\t Catch:{ all -> 0x01d5 }\n r1.onSurfaceChanged(r13, r6, r5);\t Catch:{ all -> 0x01d5 }\n L_0x025f:\n r9 = 0;\n L_0x0260:\n r0 = r18;\n r1 = r0.hL;\t Catch:{ all -> 0x01d5 }\n r1 = r1.get();\t Catch:{ all -> 0x01d5 }\n r1 = (com.shinobicontrols.charts.GLSurfaceView) r1;\t Catch:{ all -> 0x01d5 }\n if (r1 == 0) goto L_0x0273;\n L_0x026c:\n r1 = r1.ht;\t Catch:{ all -> 0x01d5 }\n r1.onDrawFrame(r13);\t Catch:{ all -> 0x01d5 }\n L_0x0273:\n r0 = r18;\n r1 = r0.ik;\t Catch:{ all -> 0x01d5 }\n r1 = r1.cy();\t Catch:{ all -> 0x01d5 }\n switch(r1) {\n case 12288: goto L_0x0297;\n case 12302: goto L_0x02d6;\n default: goto L_0x027e;\n };\t Catch:{ all -> 0x01d5 }\n L_0x027e:\n r14 = \"GLThread\";\n r15 = \"eglSwapBuffers\";\n com.shinobicontrols.charts.GLSurfaceView.e.a(r14, r15, r1);\t Catch:{ all -> 0x01d5 }\n r14 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d5 }\n monitor-enter(r14);\t Catch:{ all -> 0x01d5 }\n r1 = 1;\n r0 = r18;\n r0.hW = r1;\t Catch:{ all -> 0x02d8 }\n r1 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x02d8 }\n r1.notifyAll();\t Catch:{ all -> 0x02d8 }\n monitor-exit(r14);\t Catch:{ all -> 0x02d8 }\n L_0x0297:\n if (r8 == 0) goto L_0x02f5;\n L_0x0299:\n r1 = 1;\n L_0x029a:\n r2 = r4;\n r14 = r13;\n r4 = r6;\n r6 = r1;\n r17 = r7;\n r7 = r8;\n r8 = r9;\n r9 = r10;\n r10 = r11;\n r11 = r3;\n r3 = r5;\n r5 = r17;\n goto L_0x0031;\n L_0x02aa:\n r1 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x02aa }\n throw r1;\t Catch:{ all -> 0x01d5 }\n L_0x02ad:\n r3 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x01d5 }\n monitor-enter(r3);\t Catch:{ all -> 0x01d5 }\n r13 = 1;\n r0 = r18;\n r0.ia = r13;\t Catch:{ all -> 0x02d3 }\n r13 = 1;\n r0 = r18;\n r0.hW = r13;\t Catch:{ all -> 0x02d3 }\n r13 = com.shinobicontrols.charts.GLSurfaceView.hq;\t Catch:{ all -> 0x02d3 }\n r13.notifyAll();\t Catch:{ all -> 0x02d3 }\n monitor-exit(r3);\t Catch:{ all -> 0x02d3 }\n r3 = r5;\n r5 = r7;\n r7 = r8;\n r8 = r9;\n r9 = r10;\n r10 = r11;\n r11 = r1;\n r17 = r2;\n r2 = r4;\n r4 = r6;\n r6 = r17;\n goto L_0x0031;\n L_0x02d3:\n r1 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x02d3 }\n throw r1;\t Catch:{ all -> 0x01d5 }\n L_0x02d6:\n r10 = 1;\n goto L_0x0297;\n L_0x02d8:\n r1 = move-exception;\n monitor-exit(r14);\t Catch:{ all -> 0x02d8 }\n throw r1;\t Catch:{ all -> 0x01d5 }\n L_0x02db:\n r1 = move-exception;\n monitor-exit(r2);\t Catch:{ all -> 0x02db }\n throw r1;\n L_0x02de:\n r13 = r14;\n goto L_0x022e;\n L_0x02e1:\n r3 = r1;\n goto L_0x0219;\n L_0x02e4:\n r10 = r11;\n r17 = r4;\n r4 = r7;\n r7 = r1;\n r1 = r3;\n r3 = r17;\n goto L_0x0190;\n L_0x02ee:\n r1 = r8;\n r8 = r10;\n goto L_0x0174;\n L_0x02f2:\n r13 = r1;\n goto L_0x00a4;\n L_0x02f5:\n r1 = r2;\n goto L_0x029a;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.shinobicontrols.charts.GLSurfaceView.f.cD():void\");\n }", "public void drawBullet(){\n if (classOfObejct == 0){\n colorMode(RGB,255,255,255);\n noStroke();\n fill(255,100,30);\n ellipse(posX, posY, 6, 9);\n fill(255,153,51);\n ellipse(posX,posY, 4, 6);\n fill(255,255,100);\n ellipse(posX,posY, 2, 3);\n fill(255,255,200);\n ellipse(posX,posY, 1, 1);\n stroke(1);\n }\n else{\n colorMode(RGB,255,255,255);\n noStroke();\n fill(51,153,255);\n ellipse(posX, posY, 8, 8);\n fill(102,178,255);\n ellipse(posX,posY, 6, 6);\n fill(204,229,255);\n ellipse(posX,posY, 4, 4);\n fill(255,255,255);\n ellipse(posX,posY, 2, 2);\n stroke(1);\n }\n }", "public BranchGroup cubo3(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.01,1,1);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(-.01,-.5,2);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n // rotate.mul(objScale);\n TransformGroup objRotate = new TransformGroup(rotate);\n \n //objRotate.addChild(new ColorCube(0.4));\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n\n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\n\t \n\t // Set up the background\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "@Override\n\tprotected void buildCircuit() {\n\t\tthis.circuit.add(new Point2f(97, -98));\n\t\tthis.circuit.add(new Point2f(-3, -98));\n\t\tthis.circuit.add(new Point2f(-3, -2));\n\t\t\n\t\t// U-turn (step 2)\n\t\tthis.circuit.add(new Point2f(-111, -2));\n\t\tthis.circuit.add(new Point2f(-111, 2));\n\t\t\n\t\t// Semi-Loop, bottom-left block (step 3)\n\t\tthis.circuit.add(new Point2f(-3, 2));\n\t\tthis.circuit.add(new Point2f(-3, 106));\n\t\tthis.circuit.add(new Point2f(97, 106));\n\t}", "public void run() {\n\n\t\tGTurtle Turtle = new GTurtle(0,0);\n\t\tdouble height = getHeight() - Turtle.getHeight();\n\t\tdouble middle = getWidth()/ 2;\n\t\tdouble startingX = (middle - (TURTLES_IN_BASE * (double) (Turtle.getWidth() / 2)));\n\n\t\t// for loop used; one for the no. of layers, one for bricks in layers.\n\t\t// the second loop decreases by one each layer.\n\t\tfor (int i = 0; i < TURTLES_IN_BASE; i++) {\n\n\t\t\tfor (int j = 0; j <TURTLES_IN_BASE - i; j++) {\n\n\t\t\t\tTurtle.setLocation(startingX + (j * Turtle.getWidth()), height);\n\t\t\t\t\n\t\t\t\tadd(Turtle);\n\t\t\t\t// The bricks not displayed all at once\n\t\t\t\tpause(7);\n\n\t\t\t}\n\t\t\t// The height decreases by the brick height each layer\n\t\t\t// The bricks must move over by half a brick length each layer\n\t\t\theight -= Turtle.getHeight();\n\t\t\tstartingX += Turtle.getWidth()/ 2;\n\t\t\t\n\t\t}\n\n\t}", "Ground(Sprite sprite) {Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\");this.background = sprite; Collect.Hit(\"BoardFactory.java\",\"Ground(Sprite sprite)\", \"3015\");}", "Tetrisblock()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "@Override public void paintComponent(Graphics g)\n{\n Dimension sz = getSize();\n Shape r = new Rectangle2D.Float(0,0,sz.width,sz.height);\n Graphics2D g2 = (Graphics2D) g.create();\n Color top = BoardColors.getColor(BICEX_EVAL_SCROLL_COLOR_PROP);\n g2.setColor(top);\n g2.fill(r);\n\n Collection<BicexEvaluationContext> inners = null;\n if (getContext() != null) inners = getContext().getInnerContexts();\n if (inners != null) {\n long start0 = getContext().getStartTime();\n long end0 = getContext().getEndTime();\n g2.setColor(BoardColors.getColor(BICEX_EVAL_SCROLL_CONTEXT_COLOR_PROP));\n for (BicexEvaluationContext ctx : inners) {\n\t double start = ctx.getStartTime();\n\t double end = ctx.getEndTime();\n\t double v0 = (start-start0)/(end0-start0)*sz.getWidth();\n\t double v1 = (end - start0)/(end0-start0)*sz.getWidth();\n\t Shape r1 = new Rectangle2D.Double(v0,0,v1-v0,sz.height);\n\t g2.fill(r1);\n }\n }\n super.paintComponent(g);\n}", "protected void drawImpl()\n {\n if (mode == 2) {\n // Invader\n background(0);\n noStroke();\n int triangleXDensity = 32;\n int triangleYDensity = 18;\n for (int i = 0; i < triangleXDensity + 100; i++) {\n for (int j = 0; j < triangleYDensity + 100; j++) {\n float value = scaledBandLevels[(i % scaledBandLevels.length)];\n float shapeSize = map(value, 0, 255, 0, 150);\n int currentX = (width/triangleXDensity) * i;\n int currentY = (int)(((height/triangleYDensity) * j));\n\n if (subMode == 1) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 3));\n }\n else if (subMode == 3) {\n currentY = (int)(((height/triangleYDensity) * j) - (frameCount % height * 6));\n }\n\n if (subMode == 4) {\n shapeSize = map(value, 0, 255, 0, 500);\n }\n\n if ((i + j) % (int)random(1,5) == 0) {\n fill(0, 255, 255);\n }\n else {\n fill(234,100,255);\n }\n pushMatrix();\n if (subMode == 2) {\n translate(width/2, height/2);\n rotate(radians(frameCount % value * 2));\n translate(-width/2, -height/2);\n }\n triangle(currentX, currentY - shapeSize/2, currentX - shapeSize/2, currentY + shapeSize/2, currentX + shapeSize/2, currentY + shapeSize/2);\n popMatrix();\n }\n }\n\n }\n else if (mode == 5) {\n // Mirror Ball\n background(0);\n translate(width/2, height/2, 500);\n noStroke();\n if (subMode == 0) {\n rotateY(frameCount * PI/800);\n }\n else if (subMode == 1 || subMode == 2) {\n rotateY(frameCount * PI/800);\n rotateX(frameCount * PI/100);\n }\n else if (subMode == 3) {\n rotateY(frameCount * PI/400);\n }\n\n for (int i = 0; i < 100; i++) {\n for (int j = 0; j < 100; j++) {\n rotateY((2*PI/200) * j);\n pushMatrix();\n rotateX((2*PI/200) * i);\n translate(0,200);\n if (j > 50 && j < 150) {\n rotateX(PI/2);\n }\n else {\n rotateX(-PI/2);\n }\n if (subMode == 2 || subMode == 3) {\n fill(i * 2, 0, j, scaledBandLevels[i % scaledBandLevels.length] * 2);\n }\n else {\n fill(255, scaledBandLevels[i % scaledBandLevels.length]);\n }\n rect(0,200,20,20);\n popMatrix();\n }\n }\n }\n else if (mode == 8) {\n // End To Begin\n background(0);\n\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i] && modSizes[i] < 60) {\n modSizes[i]+=2;\n }\n else if (modSizes[i] > 5) {\n modSizes[i]--;\n }\n }\n \n theta += .2;\n\n if (subMode >=3) {\n theta += .6;\n }\n\n float tempAngle = theta;\n for (int i = 0; i < yvalues.length; i++) {\n yvalues[i] = sin(tempAngle)*amplitude;\n tempAngle+=dx;\n }\n\n noStroke();\n if (subMode >= 4) {\n translate(0, height/2);\n }\n int currentFrameCount = frameCount;\n for (int x = 0; x < yvalues.length; x++) {\n if (subMode >= 4) {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length] * 3);\n rotateX(currentFrameCount * (PI/200));\n }\n else {\n fill(0,random(128,255),255, scaledBandLevels[x % scaledBandLevels.length]);\n }\n ellipse(x*xspacing - period/2, height/2+yvalues[x], modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n if (subMode >= 1) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/4, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n if (subMode >= 2) {\n ellipse(x*xspacing, height/2+yvalues[x] - height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n ellipse(x*xspacing, height/2+yvalues[x] + height/8, modSizes[x % modSizes.length], modSizes[x % modSizes.length]);\n }\n }\n }\n else if (mode == 1) {\n // Life Support\n background(0);\n noStroke();\n if (trigger) { \n if (subMode == 0) {\n fill(255, 0, 0, triggerHold - (triggerCount * 4));\n }\n else if (subMode == 1) {\n fill(255, triggerHold - (triggerCount * 4));\n }\n rect(0,0,width,height);\n if (triggerCount > triggerHold) {\n trigger = false;\n triggerCount = 1;\n }\n else {\n triggerCount++;\n }\n }\n }\n else if (mode == 6) {\n // Stacking Cards\n background(255);\n if (subMode >= 1) {\n translate(width/2, 0);\n rotateY(frameCount * PI/200);\n }\n imageMode(CENTER);\n\n if (subMode <= 1) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=40;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n else if (subMode == 2) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 4; j++) {\n rotateY(j * (PI/4));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 3) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), (height/2), modSizes[i], modSizes[i]);\n }\n }\n }\n else if (subMode == 4) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n if (modSizes[i] < scaledBandLevels[i]) {\n modSizes[i]+=20;\n }\n else if (modSizes[i] > 40) {\n modSizes[i]--;\n }\n }\n for (int j = 0; j < 8; j++) {\n rotateY(j * (PI/8));\n for (int k = 0; k < height; k+= 300) {\n for (int i = 0; i < scaledBandLevels.length; i++) {\n image(mod, ((width/scaledBandLevels.length) * i) + ((width/scaledBandLevels.length)/2), k, modSizes[i], modSizes[i]);\n }\n }\n }\n }\n } \n else if (mode == 4) {\n background(0);\n noStroke();\n for (int i = 0; i < letterStrings.length; i++) { \n if (subMode == 0) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), (height/2) + 75);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, (height/2) + 75);\n }\n }\n else if (subMode == 1) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100; j < height + 100; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 2) {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 2);\n for (int j = -100 - (frameCount % 400); j < height + 600; j+=200) {\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n else if (subMode == 3) {\n for (int j = -100; j < height + 100; j+=200) {\n if (random(0,1) < .5) {\n fill(0,250,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n else {\n fill(234,100,255, scaledBandLevels[i % scaledBandLevels.length] * 4);\n }\n if (i < letterStrings.length/2) {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) - scaledBandLevels[i % scaledBandLevels.length] - (400 - (i * 100)), j);\n }\n else {\n text(letterStrings[i], (width/2) - (textWidth(letterStrings[i])/2) + scaledBandLevels[i % scaledBandLevels.length] + (i * 100) - 400, j);\n }\n }\n }\n }\n }\n else if (mode == 9) {\n background(0);\n noStroke();\n fill(234,100,255);\n String bandName = \"ELAPHANT\";\n text(bandName, (width/2) - (textWidth(bandName)/2), (height/2) + 75);\n }\n else {\n background(0);\n }\n }", "private BranchGroup getScene(){\n BranchGroup scene = new BranchGroup();\r\n\r\n // transformgroup zawierający robota oraz podłoże\r\n world = new TransformGroup();\r\n world.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\r\n world.setCapability(TransformGroup.ALLOW_CHILDREN_EXTEND);\r\n world.setCapability(TransformGroup.ALLOW_CHILDREN_READ);\r\n world.setCapability(TransformGroup.ALLOW_CHILDREN_WRITE);\r\n TransformGroup robotTg;\r\n\r\n // nasz robot pobrany z klasy Robot\r\n robotTg = robot.getGroup();\r\n robotTg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\r\n world.addChild(robotTg);\r\n\r\n // tworzenie scian\r\n float szerokoscScian = 10f;\r\n makeWalls(szerokoscScian);\r\n\r\n // tworzenie podłoża\r\n TransformGroup ground = new TransformGroup();\r\n Shape3D gr = new MyShapes().makeGround(new Point3f(szerokoscScian, 0f, szerokoscScian),\r\n new Point3f(szerokoscScian, 0f, -szerokoscScian), new Point3f(-szerokoscScian, 0f, -szerokoscScian),\r\n new Point3f(-szerokoscScian, 0f, szerokoscScian));\r\n gr.setUserData(new String(\"ground\"));\r\n Appearance appGround = new Appearance();\r\n appGround.setTexture(createTexture(\"grafika/floor.jpg\"));\r\n gr.setAppearance(appGround);\r\n\r\n // detekcja kolizji dla ziemi\r\n CollisionDetector collisionGround = new CollisionDetector(gr, new BoundingSphere(), this, robot);\r\n ground.addChild(gr);\r\n world.addChild(collisionGround);\r\n world.addChild(ground);\r\n\r\n // światła\r\n Color3f light1Color = new Color3f(1.0f, 1.0f, 1.0f);\r\n Vector3f light1Direction = new Vector3f(4.0f, -7.0f, -12.0f);\r\n BoundingSphere bounds = new BoundingSphere(new Point3d(0.0, 0.0, 0.0), 100.0);\r\n\r\n DirectionalLight light1 = new DirectionalLight(light1Color, light1Direction);\r\n light1.setInfluencingBounds(bounds);\r\n scene.addChild(light1);\r\n\r\n // obiekt do podnoszenia\r\n object = new Sphere(0.15f, robot.createAppearance(new Color3f(Color.ORANGE)));\r\n object.getShape().setUserData(new String(\"object\"));\r\n objectTransform = new Transform3D();\r\n objectTransform.setTranslation(objPos);\r\n objectTg = new TransformGroup(objectTransform);\r\n objectTg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\r\n objectTg.addChild(object);\r\n objectGroup = new BranchGroup();\r\n objectGroup.setCapability(BranchGroup.ALLOW_DETACH);\r\n objectGroup.addChild(objectTg);\r\n world.addChild(objectGroup);\r\n\r\n // klasa behavior która służy do obsługiwania klawiatury\r\n Moving moving = new Moving(robot);\r\n moving.setSchedulingBounds(bounds);\r\n world.addChild(moving);\r\n\r\n // klasa behavior która odświeża się 60 razy na sekundę i odpowiada ona np. za nagrywanie, odtworzenie nagrania\r\n // symulowanie grawitacji\r\n loop = new GameLoop(this, robot);\r\n loop.setSchedulingBounds(bounds);\r\n world.addChild(loop);\r\n\r\n // detekcja kolizji dla obiektu\r\n CollisionDetector collisionObject = new CollisionDetector(object.getShape(), new BoundingSphere(new Point3d(), 0.15), this, robot);\r\n world.addChild(collisionObject);\r\n\r\n scene.addChild(world);\r\n\r\n scene.compile();\r\n return scene;\r\n }", "public JavaLoopDrawingExample() {\n // expression example variables\n inputA = false;\n inputB = false;\n inputC = false;\n inputD = false;\n inputE = 0.0;\n inputF = 0.0;\n outputY = false;\n outputZ = 0.0;\n // GUI components\n initComponents();\n }", "public void tree(Graphics bbg, int n, int length, int x, int y, double angle){\n double r1 = angle + Math.toRadians(-30);\n double r2 = angle + Math.toRadians(30);\n double r3 = angle + Math.toRadians(0);\n\n //length modifications of the different branches\n double l1 = length/1.3 + (l1I*5);\n double l2 = length/1.3 + (l2I*5);\n double l3 = length/1.3 + (l3I*5);\n\n //x and y points of the end of the different branches\n int ax = (int)(x - Math.sin(r1)*l1)+(int)(l1I);\n int ay = (int)(y - Math.cos(r1)*l1)+(int)(l1I);\n int bx = (int)(x - Math.sin(r2)*l2)+(int)(l2I);\n int by = (int)(y - Math.cos(r2)*l2)+(int)(l2I);\n int cx = (int)(x - Math.sin(r3)*l3)+(int)(l3I);\n int cy = (int)(y - Math.cos(r3)*l3)+(int)(l3I);\n\n if(n == 0){\n return;\n }\n\n\n increment();\n Color fluidC = new Color(colorR,colorG,colorB);\n //bbg.setColor(new Color((int) (Math.random() * 255), (int) (Math.random() * 255), (int) (Math.random()*255)));\n bbg.setColor(fluidC);\n\n\n //draw different branches\n bbg.drawLine(x,y,ax,ay);\n bbg.drawLine(x,y,bx,by);\n bbg.drawLine(x,y,cx,cy);\n\n //call recursively to draw fractal\n tree(bbg,n-1,(int)l1, ax,ay,r1);\n tree(bbg, n - 1, (int)l2, bx,by,r2);\n tree(bbg, n - 1, (int)l3, cx,cy,r3);\n\n\n }", "public void initialize() {\r\n levelInformation.getBackground().addToGame(this);\r\n ScoreTrackingListener scoreTrackingListener = new ScoreTrackingListener(score);\r\n ScoreIndicator scoreIndicator = new ScoreIndicator(score, guiWidth);\r\n BlockRemover blockRemover = new BlockRemover(this, blockCounter);\r\n BallAdder ballAdder = new BallAdder(this, environment, ballCounter);\r\n BallRemover ballRemover = new BallRemover(this, ballCounter);\r\n for (Block blocks : levelInformation.blocks()) {\r\n Block block = blocks;\r\n if (block.getColor() == Color.black) {\r\n block.addHitListener(ballRemover);\r\n }\r\n if (block.getColor() == Color.magenta) {\r\n block.addHitListener(ballAdder);\r\n }\r\n block.addHitListener(blockRemover);\r\n block.addHitListener(scoreTrackingListener);\r\n block.addToGame(this);\r\n }\r\n blockCounter.increase(levelInformation.numberOfBlocksToRemove());\r\n Paddle paddle = new Paddle(new Rectangle(new Point((guiWidth / 2) - (levelInformation.paddleWidth() / 2),\r\n 580), levelInformation.paddleWidth(), 10), Color.YELLOW, keyboard, levelInformation.paddleSpeed());\r\n paddle.addToGame(this);\r\n Block top = new Block(new Rectangle(new Point(0, 0), 800, 20), Color.GRAY);\r\n Block left = new Block(new Rectangle(new Point(0, 10), wallWidth, 630), Color.GRAY);\r\n Block right = new Block(new Rectangle(new Point(guiWidth - wallWidth, 10), wallWidth, 630), Color.GRAY);\r\n Block bottom = new Block(new Rectangle(new Point(0, guiHeight), 800, 10), Color.GRAY);\r\n bottom.addToGame(this);\r\n right.addToGame(this);\r\n left.addToGame(this);\r\n top.addToGame(this);\r\n bottom.addHitListener(ballRemover);\r\n scoreIndicator.addToGame(this);\r\n }", "Snake(){\n T=new Text(String.valueOf(numBalls));\n body=new ArrayList<Circle>();\n setNumBalls(4);\n \n }", "public interface CARule\n\n{\t\n\t/* In simulation display panel, odd and even rows are slightly staggered,\n\t * when getting the ordinate of six neighbors of a cell\n\t * the offset vary between odd rows and even rows\n\t * so directions4OddRow and directions4EvenRows are defined separately\n\t * \n\t * \t\t + +\n\t * + -> + + +\n\t * \t\t + +\n\t * \n\t * */\n public static final int[][] directions4OddRow = { \n \t\t{ -1, -1 },\n \t\t{ -1, 0 },\n \t\t{ 0, -1 }, \n \t\t{ 0, 1 }, \n \t\t{ 1, -1 },\n \t\t{ 1, 0 } \n \t\t};\n public static final int[][] directions4EvenRow = {\n \t\t{ -1, 0 },\n \t\t{ -1, 1 },\n \t\t{ 0, -1 }, \n \t\t{ 0, 1 },\n \t\t{ 1, 0 }, \n \t\t{ 1, 1 } \n \t\t};\n\n /* Get new outer layer from last layer\n * @param crystal is the crystal object which is being simulated\n * @param set is the set of last outer layer\n */\n Set<CACell> automateNGetOuterLayerSet(CACrystal crystal, final Set<CACell> set);\n \n /*\n * after stop button is pressed or one simulation of max steps is finished\n * before next simulation,the step should be reset to 0\n * */\n void reset();\n}", "public zombie_bg()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1010,900, 1); \n setPaintOrder(ScoreBoard.class, player.class, zomb_gen.class, options.class);\n populate();\n \n }", "protected void o()\r\n/* 156: */ {\r\n/* 157:179 */ int i = 15 - aib.b(this);\r\n/* 158:180 */ float f = 0.98F + i * 0.001F;\r\n/* 159: */ \r\n/* 160:182 */ this.xVelocity *= f;\r\n/* 161:183 */ this.yVelocity *= 0.0D;\r\n/* 162:184 */ this.zVelocity *= f;\r\n/* 163: */ }", "protected void paintComponent(Graphics g){\n\t\tGraphics2D g2 = (Graphics2D) g;\n\t\t\n\t\t// Creating all of the objects for snapshot with positions, then rotating if necessary\n\t\tI_Block iblock1 = new I_Block(0, 25 * 20);\n\t\tiblock1.rotate90();\n\t\tI_Block iblock2 = new I_Block(8 * 20, 17 * 20);\n\t\tS_Block sblock1 = new S_Block(3 * 20, 23 * 20);\n\t\tsblock1.rotate90();\n\t\tS_Block sblock2 = new S_Block(5 * 20, 21 * 20);\n\t\tsblock2.rotate90();\n\t\tO_Block oblock1 = new O_Block(5 * 20, 24 * 20);\n\t\tO_Block oblock2 = new O_Block(7 * 20, 21 * 20);\n\t\tT_Block tblock1 = new T_Block(7 * 20, 23 * 20);\n\t\ttblock1.rotate270();\n\t\tT_Block tblock2 = new T_Block(6 * 20, 18 * 20);\n\t\ttblock2.rotate270();\n\t\tL_Block lblock1 = new L_Block(0, 19 * 20);\n\t\tL_Block lblock2 = new L_Block(4 * 20, 21 * 20);\n\t\tZ_Block zblock1 = new Z_Block(0,23 * 20);\n\t\tZ_Block zblock2 = new Z_Block(1 * 20, 20 * 20);\n\t\tJ_Block jblock1 = new J_Block(0 ,22 * 20);\n\t\tjblock1.rotate90();\n\t\tJ_Block jblock2 = new J_Block(4 * 20, 20 * 20);\n\t\tjblock2.rotate90();\n\t\t\n\t\t// Put all objects into array\n\t\tTetromino[] bag = {iblock1, iblock2, sblock1, sblock2, oblock1, oblock2,\n\t\t\t\ttblock1, tblock2, lblock1, lblock2, zblock1, zblock2, jblock1, jblock2};\n\t\t\n\t\t/*\n\t\t * For each object in bag, set the color then display it, using polymorphism\n\t\t * Specifically what it does is that, since each shape could only be made with \n\t\t * the Rectangle class, I had each object store the Rectangles needed to create \n\t\t * it in an array. BlockComponent then takes the array from the class, then displays \n\t\t * each rectangle in the array.\n\t\t*/\n\t\tfor(Tetromino block : bag){\n\t\t\tg2.setColor(block.getColor());\n\t\t\tRectangle[] dimensions = block.getBlockArray();\n\t\t\tfor(Rectangle shape : dimensions){\t\n\t\t\t\tg2.fill(shape);\n\t\t\t}\n\t\t}\t\n\t}", "private void drawHeart2 (float sx, float sy, float sz, Appearance[] app)\n {\n\tfloat x, y, z, r;\n \n BranchGroup tBG = new BranchGroup();\n\ttBG.setCapability (BranchGroup.ALLOW_DETACH);\n\n System.out.println(\"Aqui\");\n \n\tx = sx+0f; y = sy+0.04f; z = sz+0f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[0]);\n\t//tBG.addChild (makeText (new Vector3d (sx+0,sy+1.1,sz+0), \"AP\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[1]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz+1.5), \"IS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz+0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[2]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz+1.5), \"IL\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[3]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz+0.5), \"SI\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz+0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[4]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz+0.5), \"LI\"));\n\n\tx = sx-0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[5]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2.5,sy+0,sz-0.5), \"SA\"));\n\n\tx = sx+0.32f; y = sy-0.1f; z = sz-0.1f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[6]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2.5,sy+0,sz-0.5), \"LA\"));\n\n\tx = sx-0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[7]);\n\t//tBG.addChild (makeText (new Vector3d (sx-2,sy+0,sz-1.5), \"AS_\"));\n\n\tx = sx+0.2f; y = sy-0.1f; z = sz-0.2f; r = 1;\n\tdrawSphere (tBG, x, y, z, r, app[8]);\n\t//tBG.addChild (makeText (new Vector3d (sx+2,sy+0,sz-1.5), \"AL\"));\n\n\tsceneBG.addChild (tBG);\n }", "private void createObstacole()\n {\n //Create Obstacole\n Obstacole topObstacole = new Obstacole(\"top\");\n Obstacole botObstacole = new Obstacole(\"bottom\");\n Obstacole midObstacole = new Obstacole(\"mid\");\n //amount of space between obstacole\n int ObstacoleSpacing = 150;\n \n //get object image\n GreenfootImage image = botObstacole.getImage();\n \n //random number to vary\n int numOfObstacoles = Greenfoot.getRandomNumber(40) + 15;\n \n //counter increment to 50\n ObstacoleCounter++;\n if (ObstacoleCounter == 50)\n {\n if (getObjects(Obstacole.class).size() < numOfObstacoles)\n {\n addObject(botObstacole, getWidth(), getHeight() / 2 + image.getHeight() - Greenfoot.getRandomNumber(100) - 10);\n addObject(topObstacole, getWidth(), botObstacole.getY() - image.getHeight() - ObstacoleSpacing);\n addObject(midObstacole, getWidth(), botObstacole.getY() + image.getHeight() / 3 + ObstacoleSpacing);\n }\n ObstacoleCounter = 0;\n }\n }", "public void createLabyrinth() {\n int x = numberGenerator.nextInt(width-1);\n int y = numberGenerator.nextInt(height-1);\n //first walk until stop\n walkRandom(cells[x][y]);\n }", "public void b(World paramaqu, Random paramRandom, BlockPosition paramdt, Block parambec)\r\n/* 77: */ {\r\n/* 78: 93 */ BlockPosition localdt1 = paramdt.up();\r\n/* 79: */ label260:\r\n/* 80: 95 */ for (int i = 0; i < 128; i++)\r\n/* 81: */ {\r\n/* 82: 96 */ BlockPosition localdt2 = localdt1;\r\n/* 83: 97 */ for (int j = 0; j < i / 16; j++)\r\n/* 84: */ {\r\n/* 85: 98 */ localdt2 = localdt2.offset(paramRandom.nextInt(3) - 1, (paramRandom.nextInt(3) - 1) * paramRandom.nextInt(3) / 2, paramRandom.nextInt(3) - 1);\r\n/* 86: 99 */ if ((paramaqu.getBlock(localdt2.down()).getType() != BlockList.grass) || (paramaqu.getBlock(localdt2).getType().blocksMovement())) {\r\n/* 87: */ break label260;\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90:104 */ if (paramaqu.getBlock(localdt2).getType().material == Material.air)\r\n/* 91: */ {\r\n/* 92: */ Object localObject;\r\n/* 93:108 */ if (paramRandom.nextInt(8) == 0)\r\n/* 94: */ {\r\n/* 95:109 */ localObject = paramaqu.b(localdt2).a(paramRandom, localdt2);\r\n/* 96:110 */ avy localavy = ((EnumFlowerVariant)localObject).a().a();\r\n/* 97:111 */ Block localbec = localavy.instance().setData(localavy.l(), (Comparable)localObject);\r\n/* 98:112 */ if (localavy.f(paramaqu, localdt2, localbec)) {\r\n/* 99:113 */ paramaqu.setBlock(localdt2, localbec, 3);\r\n/* 100: */ }\r\n/* 101: */ }\r\n/* 102: */ else\r\n/* 103: */ {\r\n/* 104:116 */ localObject = BlockList.tallgrass.instance().setData(bbh.a, bbi.b);\r\n/* 105:117 */ if (BlockList.tallgrass.f(paramaqu, localdt2, (Block)localObject)) {\r\n/* 106:118 */ paramaqu.setBlock(localdt2, (Block)localObject, 3);\r\n/* 107: */ }\r\n/* 108: */ }\r\n/* 109: */ }\r\n/* 110: */ }\r\n/* 111: */ }", "private void paintBeanMachine(){\n Line baseLine = new Line();\n\n baseLine.startXProperty().bind(widthProperty().multiply(0.2));\n baseLine.startYProperty().bind(heightProperty().multiply(0.8));\n baseLine.endXProperty().bind(widthProperty().multiply(0.8));\n baseLine.endYProperty().bind(heightProperty().multiply(0.8));\n\n // distance gap per circle\n double distance = (baseLine.getEndX() - baseLine.getStartX()) / SLOTS;\n ballRadius = distance / 2;\n\n //Draw pegs\n DoubleBinding dist = baseLine.endXProperty().subtract(baseLine.startXProperty()).divide(SLOTS);\n Circle[] pegs = new Circle[factorialSum(SLOTS)];\n int index = 0;\n\n for(int row = 0; row < SLOTS; row++){\n DoubleBinding y = baseLine.startYProperty().subtract(heightProperty().multiply(0.2).divide(row + 1));\n\n for(int col = 0; col < SLOTS - row; col++){\n Circle peg = new Circle(5, Color.BLUE);\n\n peg.centerXProperty().bind(baseLine.startXProperty()\n .add(dist.multiply(row).multiply(0.5))\n .add(dist.divide(2))\n .add(dist.multiply(row)));\n peg.centerYProperty().bind(y);\n\n //peg = new Circle(x, y, mWidth * 0.012, Color.BLUE);\n System.out.println(index);\n pegs[index++] = peg;\n\n Line line = new Line();\n line.startXProperty().bind(peg.centerXProperty());\n line.startYProperty().bind(peg.centerYProperty());\n line.endXProperty().bind(peg.centerXProperty());\n line.endYProperty().bind(baseLine.startYProperty());\n getChildren().add(line);\n }\n }\n\n /*\n for(int i = 1; i <= SLOTS; i++){\n double x = baseLine.getStartX() + (i * distance * 0.50) + distance / 2;\n double y = baseLine.getStartY() - (distance * i) - distance / 2;\n\n for(int j = 0; j <= SLOTS - i; j++){\n Circle peg = new Circle(5, Color.BLUE);\n DoubleBinding dist = baseLine.endXProperty().subtract(baseLine.startXProperty()).divide(SLOTS);\n\n peg.centerXProperty().bind(baseLine.startXProperty()\n .add(dist.multiply(i).multiply(0.5))\n .add(dist.divide(2)));\n peg.centerYProperty().bind(baseLine.startYProperty()\n .subtract(dist.multiply(i))\n .subtract(dist.divide(2)));\n\n //peg = new Circle(x, y, mWidth * 0.012, Color.BLUE);\n System.out.println(index);\n pegs[index++] = peg;\n x += distance;\n }\n }\n */\n\n distance = distance + (distance / 2) - pegs[0].getRadius();\n // Connect the base of the triangle with lowerLine\n // NOT including left most and right most line\n Line[] lines = new Line[SLOTS - 1];\n for (int i = 0; i < SLOTS - 1; i++) {\n double x1 = pegs[i].getCenterX() + pegs[i].getRadius() * Math.sin(Math.PI);\n double y1 = pegs[i].getCenterY() - pegs[i].getRadius() * Math.cos(Math.PI);\n lines[i] = new Line(x1, y1, x1, y1 + distance);\n\n }\n // Draw right most and left most most line\n Line[] sides = new Line[6];\n sides[0] = new Line(\n baseLine.getEndX(), baseLine.getEndY(),\n baseLine.getEndX(), baseLine.getEndY() - distance);\n sides[1] = new Line(\n baseLine.getStartX(), baseLine.getStartY(),\n baseLine.getStartX(), baseLine.getStartY() - distance);\n\n //Draw left side line\n /*\n for(int i = 2; i < 4; i++){\n double x = pegs[pegs.length - i].getCenterX();\n double y = pegs[pegs.length - i].getCenterY() - distance;\n sides[i] = new Line(x, y, sides[i - 2].getEndX(), sides[i - 2].getEndY());\n }\n */\n\n // Draw the upper 2 lines on top of the triangle\n /*\n for (int i = 4; i < sides.length; i++){\n sides[i] = new Line(\n sides[i-2].getStartX(), sides[i-2].getStartY(),\n sides[i-2].getStartX(), sides[i-2].getStartY() - (distance * 0.6)\n );\n }\n */\n\n getChildren().addAll(baseLine);\n getChildren().addAll(pegs);\n //getChildren().addAll(lines);\n //getChildren().addAll(sides);\n }", "Box(){\n System.out.println(\"constructing box\");\n width = 10;\n height = 10;\n depth = 10;\n}", "public void BPrimeEvent(ArrayList<ArrayList<Shape>> faces) {\r\n \tint u1 = CUBE1, l1 = CUBE7, b1 = CUBE9, r1 = CUBE3;\r\n \tfor(int i = 0; i < 3; i++) {\r\n \t\tColor color = faces.get(TOP).get(u1).getColor();\r\n \tfaces.get(TOP).get(u1).changeColor(faces.get(LEFT).get(l1).getColor());\r\n \tfaces.get(LEFT).get(l1).changeColor(faces.get(BOTTOM).get(b1).getColor());\r\n \tfaces.get(BOTTOM).get(b1).changeColor(faces.get(RIGHT).get(r1).getColor());\r\n \tfaces.get(RIGHT).get(r1).changeColor(color);\r\n \tu1++;\r\n \tl1 -= SHIFT_ROW;\r\n \tb1--;\r\n \tr1 += SHIFT_ROW;\r\n \t\r\n \t} \r\n \r\n \tColor color = faces.get(BACK).get(CUBE1).getColor();\r\n \tfaces.get(BACK).get(CUBE1).changeColor(faces.get(BACK).get(CUBE3).getColor());\r\n \tfaces.get(BACK).get(CUBE3).changeColor(faces.get(BACK).get(CUBE9).getColor());\r\n \tfaces.get(BACK).get(CUBE9).changeColor(faces.get(BACK).get(CUBE7).getColor());\r\n \tfaces.get(BACK).get(CUBE7).changeColor(color);\r\n \tcolor = faces.get(BACK).get(CUBE2).getColor();\r\n \tfaces.get(BACK).get(CUBE2).changeColor(faces.get(BACK).get(CUBE6).getColor());\r\n \tfaces.get(BACK).get(CUBE6).changeColor(faces.get(BACK).get(CUBE8).getColor());\r\n \tfaces.get(BACK).get(CUBE8).changeColor(faces.get(BACK).get(CUBE4).getColor());\r\n \tfaces.get(BACK).get(CUBE4).changeColor(color);\r\n }", "@Override\r\n\tpublic ObjectList<CarControl> drive(State<CarRpmState, CarControl> state) {\n\t\tdouble steer = state.state.getAngleToTrackAxis()/SimpleDriver.steerLock;\r\n//\t\tdouble speed = state.state.getSpeed();\t\t\r\n\t\tObjectList<CarControl> ol = new ObjectArrayList<CarControl>();\t\t\r\n\r\n\t\t/*if (state.state.getSpeed()>=296.8 || state.state.gear==6){\r\n\t\t\tfor (int i =0;i<1;++i){\r\n\t\t\t\tCarControl cc = new CarControl(1.0d,0,6,steer,0);\r\n\t\t\t\tol.add(cc);\r\n\t\t\t}\r\n\t\t} else if (state.state.getSpeed()>=225 || state.state.gear==5){\r\n\t\t\tfor (int i =0;i<1;++i){\r\n\t\t\t\tCarControl cc = new CarControl(1.0d,0,5,steer,0);\r\n\t\t\t\tol.add(cc);\r\n\t\t\t}\r\n\t\t} else if (state.state.getSpeed()>=176 || state.state.gear==4){\r\n\t\t\tfor (int i =0;i<1;++i){\r\n\t\t\t\tCarControl cc = new CarControl(1.0d,0,4,steer,0);\r\n\t\t\t\tol.add(cc);\r\n\t\t\t}\r\n\t\t} else if (state.state.getSpeed()>=126 || state.state.gear==3){\r\n\t\t\tfor (int i =0;i<1;++i){\r\n\t\t\t\tCarControl cc = new CarControl(1.0d,0,3,steer,0);\r\n\t\t\t\tol.add(cc);\r\n\t\t\t}\r\n\t\t} else if (state.state.getSpeed()>=83){\r\n\t\t\tfor (int i =0;i<1;++i){\r\n\t\t\t\tCarControl cc = new CarControl(1.0d,0,2,steer,0);\r\n\t\t\t\tol.add(cc);\r\n\t\t\t}\r\n\t\t} else \t{\r\n\t\t\tCarControl cc = new CarControl(1.0d,0,1,steer,0);\r\n\t\t\tol.add(cc);\r\n\t\t}//*/\r\n//\t\tif (speed>225){\r\n//\t\t\tCarControl cc = new CarControl(0,1,4,steer,0);\r\n//\t\t\tol.add(cc);\r\n//\t\t} else if (speed>126){\r\n//\t\t\tCarControl cc = new CarControl(0,0.569,3,steer,0);\r\n//\t\t\tol.add(cc);\r\n//\t\t} else if (speed>83){\r\n//\t\t\tCarControl cc = new CarControl(0,0.363,2,steer,0);\r\n//\t\t\tol.add(cc);\r\n//\t\t} else {\r\n//\t\t\tCarControl cc = new CarControl(0,0.36,1,steer,0);\r\n//\t\t\tol.add(cc);\r\n//\t\t}\r\n//\t\tif (speed<226.541 && speed>200){\r\n//\t\t\tol.clear();\r\n//\t\t\tCarControl cc = new CarControl(0,0.6,4,steer,0);\r\n//\t\t\tol.add(cc);\r\n//\t\t}\r\n\t\t//}//*/ \r\n\t\t/*if (speed<3*3.6){\r\n\t\t\tCarControl cc = new CarControl(0,1.0d,0,steer,0);\r\n\t\t\tol.add(cc);\r\n\t\t\tbrake = 1;\r\n\t\t\treturn ol;\r\n\t\t}\r\n\t\tdouble[] wheelVel = state.state.getWheelSpinVel();\r\n\t\t// convert speed to m/s\r\n\t\t\t\t\r\n\t\t// when spedd lower than min speed for abs do nothing\t\t\r\n\r\n\t\t// compute the speed of wheels in m/s\r\n\t\tdouble slip = 0.0d;\t \r\n\t\tfor (int i = 0; i < 4; i++)\t{\r\n\t\t\tslip += wheelVel[i] * SimpleDriver.wheelRadius[i]/speed;\t\t\t\r\n\t\t}\r\n\t\tslip/=4;\t\t\t\r\n\t\tif (slip==0){\r\n\t\t\tbrake = 0.25;\r\n\t\t} if (slip < 0.1) \r\n\t\t\tbrake = 0.4+slip;\r\n\t\telse brake=1;\r\n\t\tif (brake<=0.09) brake=1;\r\n\t\tbrake = Math.min(1.0, brake);\r\n\t\tSystem.out.println(slip+\" \"+brake);\r\n\t\tCarControl cc = new CarControl(0,brake,0,steer,0);\r\n\t\tol.add(cc);//*/\r\n\t\tCarControl cc = new CarControl(0,1.0d,0,steer,0);\r\n\t\tol.add(cc);\r\n\t\treturn ol;\r\n\t}", "@Override\r\n public void handle(long l) {\n gc.setFill(Color.BLACK);\r\n gc.fillRect(0, 0, 4000, 4000);\r\n \r\n //Numeros que definen las animaciones y ayuda con la gravedad/salto\r\n sy = 0;\r\n iAnim++;\r\n iJump++;\r\n iGravity++;\r\n animSpeed = 8;\r\n \r\n if(!muerto){\r\n \r\n try {\r\n //Metodo que analiza el movimiento del personaje y revisa las colisiones.\r\n movimiento();\r\n } catch (IOException ex) {\r\n Logger.getLogger(GameLoop.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //Se dibuja en el canvas la imagen del nivel, la llave, la puerta y el\r\n //personaje.\r\n gc.drawImage(actualLevel.getImg(), 0, 0);\r\n if (!actualLevel.getDoor().isClosed()){\r\n //Si la puerta deja de estar cerrada, la llave se dibuja en la esquina superior derecha, y se empieza\r\n //la animacion de la puerta.\r\n actualLevel.getDoor().setKey((int)camara.getTranslateX()+ (1368/2) + offsetCamx + Math.min(rotint, 0) + 50, (int)camara.getTranslateY()+32);\r\n if (iPuerta < 26){\r\n iPuerta++;\r\n }\r\n if (iPuerta < 5){\r\n gc.drawImage(puertaImg, 192,0, 192, 192, actualLevel.getDoor().getX(), actualLevel.getDoor().getY(), 192, 192);\r\n } else if (iPuerta < 10){\r\n gc.drawImage(puertaImg, 192+192,0, 192, 192, actualLevel.getDoor().getX(), actualLevel.getDoor().getY(), 192, 192);\r\n } else if (iPuerta < 15){\r\n gc.drawImage(puertaImg, 0,192, 192, 192, actualLevel.getDoor().getX(), actualLevel.getDoor().getY(), 192, 192);\r\n } else if (iPuerta < 20){\r\n gc.drawImage(puertaImg, 192,192, 192, 192, actualLevel.getDoor().getX(), actualLevel.getDoor().getY(), 192, 192);\r\n } else if (iPuerta < 25){\r\n gc.drawImage(puertaImg, 192+192,192, 192, 192, actualLevel.getDoor().getX(), actualLevel.getDoor().getY(), 192, 192);\r\n } else {\r\n gc.drawImage(puertaImg, 192+192+192,192, 192, 192, actualLevel.getDoor().getX(), actualLevel.getDoor().getY(), 192, 192);\r\n }\r\n } else {\r\n gc.drawImage(puertaImg, 0,0, 192, 192, actualLevel.getDoor().getX(), actualLevel.getDoor().getY(), 192, 192);\r\n }\r\n gc.drawImage(puertaImg, 640, 64, 64, 64, actualLevel.getDoor().getKey().getX(), actualLevel.getDoor().getKey().getY(),64,64);\r\n \r\n //Se dibuja una calabera donde murio el personaje.\r\n for (int[] muerte : muertes){\r\n gc.drawImage(protaImgMap, 3*64, 2*64, 64, 64, muerte[0], muerte[1], muerte[2], 64);\r\n }\r\n \r\n //Dibuja todos los pinchos\r\n for (Pincho p : actualLevel.getPinchos()){\r\n gc.drawImage(p.getImg(),p.getRot()*64, 0, 64, 64, p.getX(), p.getY(), 64, 64);\r\n }\r\n \r\n //Dibuja todos los murcielagos\r\n for (Bat b : actualLevel.getBats()){\r\n b.draw(gc);\r\n }\r\n \r\n //Se dibujan las antorchas\r\n for (Antorcha a : actualLevel.getAntorchas()){\r\n a.draw(gc);\r\n }\r\n \r\n //Se dibuja la silueta de la llave si la puerta esta cerrada\r\n if (actualLevel.getDoor().isClosed()){\r\n gc.drawImage(siluetaLlave, (int)camara.getTranslateX()+ (1368/2) + offsetCamx + Math.min(rotint, 0) + 50, (int)camara.getTranslateY()+32);\r\n }\r\n \r\n //Se dibuja el personaje, si ve una animacion de muerte\r\n if (!muerto){\r\n gc.drawImage(protaImgMap, sx, sy, 64, 64, prota.getX(), prota.getY(), dw, 64);\r\n } else {\r\n gc.drawImage(protaImgMap, (iMuerte/5)*64, 128, 64, 64, prota.getX(), prota.getY(), dw, 64);\r\n iMuerte++;\r\n if (iMuerte > 20){\r\n iMuerte = 0;\r\n muertes.add(new int[] {prota.getX(), prota.getY(), dw});\r\n prota.setX(actualLevel.getInitialPosProta()[0]+20-Math.min(0, dw));\r\n prota.setY(actualLevel.getInitialPosProta()[1]);\r\n actualLevel.getDoor().setClosed(true);\r\n actualLevel.getDoor().setKey(actualLevel.getInitialPosKey()[0], actualLevel.getInitialPosKey()[1]);\r\n iPuerta = 0;\r\n muerto = false;\r\n }\r\n }\r\n \r\n //Se repite el iterador de animacion cada animSpeed\r\n if (iAnim >= animSpeed){\r\n iAnim = 0;\r\n }\r\n \r\n //Esto hace que la camara siga al personaje. Falta mejorar\r\n \r\n if (camara.getTranslateX()+offsetCamx < prota.getX()+32+(dw*3)){\r\n double dist = (prota.getX()+32+(dw*3))- (camara.getTranslateX()+offsetCamx);\r\n camara.setTranslateX(camara.getTranslateX()+(dist/40));\r\n }\r\n \r\n if (camara.getTranslateX()+offsetCamx > prota.getX()+32+(dw*3)){\r\n double dist = (camara.getTranslateX()+offsetCamx)-(prota.getX()+32+(dw*3));\r\n camara.setTranslateX(camara.getTranslateX()-(dist/40));\r\n }\r\n \r\n if (camara.getTranslateY()+400 > prota.getY()+32){\r\n double dist = (camara.getTranslateY()+400)-(prota.getY()+32);\r\n camara.setTranslateY(camara.getTranslateY()-(dist/40));\r\n }\r\n \r\n if (camara.getTranslateY()+400 < prota.getY()+32){\r\n double dist = (prota.getY()+32)-(camara.getTranslateY()+400);\r\n camara.setTranslateY(camara.getTranslateY()+(dist/40));\r\n }\r\n \r\n if (camara.getTranslateX() < 0){\r\n camara.setTranslateX(0);\r\n }\r\n \r\n if (camara.getTranslateY() < 0){\r\n camara.setTranslateY(0);\r\n }\r\n \r\n\r\n// showBloques();\r\n\r\n }", "public Block getObj()\n\t{\n\t\treturn block;\n\t}", "public void draw(){\n\t\tSystem.out.println(\"You are drawing a CIRCLE\");\n\t}", "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 void render(RenderBall rB)\n\t{\n\t\tEcranGraphique.setColor(rB.c.r, rB.c.v, rB.c.b);\n\t\tEcranGraphique.fillCircle(rB.x, rB.y, rB.r);\n\t}", "private c b(c blk, int i) {\n/* 585 */ int w = blk.g;\n/* 586 */ int h = blk.h;\n/* */ \n/* */ \n/* 589 */ if (blk.a() != 4) {\n/* 590 */ if (this.j == null || this.j.a() != 4) {\n/* 591 */ this.j = (c)new d();\n/* */ }\n/* 593 */ this.j.g = w;\n/* 594 */ this.j.h = h;\n/* 595 */ this.j.e = blk.e;\n/* 596 */ this.j.f = blk.f;\n/* 597 */ blk = this.j;\n/* */ } \n/* */ \n/* */ \n/* 601 */ float[] outdata = (float[])blk.b();\n/* */ \n/* */ \n/* 604 */ if (outdata == null || outdata.length < w * h) {\n/* 605 */ outdata = new float[h * w];\n/* 606 */ blk.a(outdata);\n/* */ } \n/* */ \n/* */ \n/* 610 */ if (i >= 0 && i <= 2) {\n/* */ int j;\n/* */ \n/* */ \n/* 614 */ if (this.m == null)\n/* 615 */ this.m = new e(); \n/* 616 */ if (this.n == null)\n/* 617 */ this.n = new e(); \n/* 618 */ if (this.o == null)\n/* 619 */ this.o = new e(); \n/* 620 */ this.o.g = blk.g;\n/* 621 */ this.o.h = blk.h;\n/* 622 */ this.o.e = blk.e;\n/* 623 */ this.o.f = blk.f;\n/* */ \n/* */ \n/* 626 */ this.m = (e)this.e.getInternCompData((c)this.m, 0);\n/* 627 */ int[] data0 = (int[])this.m.b();\n/* 628 */ this.n = (e)this.e.getInternCompData((c)this.n, 1);\n/* 629 */ int[] data1 = (int[])this.n.b();\n/* 630 */ this.o = (e)this.e.getInternCompData((c)this.o, 2);\n/* 631 */ int[] data2 = (int[])this.o.b();\n/* */ \n/* */ \n/* 634 */ blk.k = (this.m.k || this.n.k || this.o.k);\n/* */ \n/* 636 */ blk.i = 0;\n/* 637 */ blk.j = w;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 642 */ int k = w * h - 1;\n/* 643 */ int k0 = this.m.i + (h - 1) * this.m.j + w - 1;\n/* 644 */ int k1 = this.n.i + (h - 1) * this.n.j + w - 1;\n/* 645 */ int k2 = this.o.i + (h - 1) * this.o.j + w - 1;\n/* */ \n/* 647 */ switch (i) {\n/* */ \n/* */ case 0:\n/* 650 */ for (j = h - 1; j >= 0; j--) {\n/* 651 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 652 */ outdata[k] = 0.299F * data0[k0] + 0.587F * data1[k1] + 0.114F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 658 */ k0 -= this.m.j - w;\n/* 659 */ k1 -= this.n.j - w;\n/* 660 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 1:\n/* 666 */ for (j = h - 1; j >= 0; j--) {\n/* 667 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 668 */ outdata[k] = -0.16875F * data0[k0] - 0.33126F * data1[k1] + 0.5F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 674 */ k0 -= this.m.j - w;\n/* 675 */ k1 -= this.n.j - w;\n/* 676 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 2:\n/* 682 */ for (j = h - 1; j >= 0; j--) {\n/* 683 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 684 */ outdata[k] = 0.5F * data0[k0] - 0.41869F * data1[k1] - 0.08131F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 690 */ k0 -= this.m.j - w;\n/* 691 */ k1 -= this.n.j - w;\n/* 692 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ } \n/* */ } else {\n/* 697 */ if (i >= 3) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 702 */ e indb = new e(blk.e, blk.f, w, h);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 707 */ this.e.getInternCompData((c)indb, i);\n/* 708 */ int[] indata = (int[])indb.b();\n/* */ \n/* */ \n/* 711 */ int k = w * h - 1;\n/* 712 */ int k0 = indb.i + (h - 1) * indb.j + w - 1;\n/* 713 */ for (int j = h - 1; j >= 0; j--) {\n/* 714 */ for (int mink = k - w; k > mink; k--, k0--) {\n/* 715 */ outdata[k] = indata[k0];\n/* */ }\n/* */ \n/* 718 */ k0 += indb.g - w;\n/* */ } \n/* */ \n/* */ \n/* 722 */ blk.k = indb.k;\n/* 723 */ blk.i = 0;\n/* 724 */ blk.j = w;\n/* 725 */ return blk;\n/* */ } \n/* */ \n/* */ \n/* 729 */ throw new IllegalArgumentException();\n/* */ } \n/* 731 */ return blk;\n/* */ }", "@Override\n protected void initialize() {\n arm.getElbow().enableCoastMode();\n arm.getElbow().stop();\n arm.getWrist().enableCoastMode();\n arm.getWrist().stop();\n arm.getExtension().enableCoastMode();\n arm.getExtension().stop();\n }", "private GameObject spawnBossBubble(LogicEngine toRunIn, int i_level, int i_maxLevel)\r\n\t{\r\n\t\tfloat f_sizeMultiplier = 1 - ((float)i_level/(float)i_maxLevel);\r\n\t\t\r\n\t\tif(i_level == i_maxLevel)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t{\r\n\t\t\tGameObject go = new GameObject(\"data/\"+GameRenderer.dpiFolder+\"/redcube.png\",toRunIn.SCREEN_WIDTH/2,LogicEngine.rect_Screen.getHeight()+50,0);\r\n\t\t\tgo.i_animationFrameRow = 0;\r\n\t\t\tgo.i_animationFrame =1;\r\n\t\t\tgo.i_animationFrameSizeWidth =40;\r\n\t\t\tgo.i_animationFrameSizeHeight =37;\r\n\t\t\tgo.f_forceScaleX = 2f * f_sizeMultiplier;\r\n\t\t\tgo.f_forceScaleY = 2f * f_sizeMultiplier;\r\n\t\t\tgo.v.setMaxForce(1);\r\n\t\t\tgo.v.setMaxVel(5);\r\n\t\t\tgo.stepHandlers.add( new BounceOfScreenEdgesStep());\r\n\t\r\n\t\t\t\r\n\t\t\tgo.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\t//initial velocity of first one \r\n\t\t\tgo.v.setVel(new Vector2d(0,-5));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tgo.allegiance = GameObject.ALLEGIANCES.ENEMIES;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//if is last one\r\n\t\t\tif(i_level == i_maxLevel - 1)\r\n\t\t\t{\r\n\t\t\t\tHitpointShipCollision collision = new HitpointShipCollision(go,1, 40.0 * f_sizeMultiplier);\r\n\t\t\t\tgo.collisionHandler = collision;\r\n\t\t\t\tcollision.setSimpleExplosion();\r\n\t\t\t\t\r\n\r\n\t\t\t\treturn go;\r\n\t\t\t}\r\n\t\t\telse //has children\r\n\t\t\t{\r\n\t\t\t\tSplitCollision collision = new SplitCollision(go,2, 15.0 * f_sizeMultiplier);\r\n\t\t\t\tcollision.setSimpleExplosion();\r\n\t\t\t\t\r\n\t\t\t\tgo.collisionHandler = collision;\r\n\t\t\t\t\r\n\t\t\t\t//add children\t\t\t\t\r\n\t\t\t\tfor(int i=0;i<4;i++)\r\n\t\t\t\t{\r\n\t\t\t\t\tGameObject go2 = spawnBossBubble(toRunIn,i_level+1,i_maxLevel);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(i==0)\r\n\t\t\t\t\t\tgo2.v.setVel(new Vector2d(-5,-5));\r\n\t\t\t\t\tif(i==1)\r\n\t\t\t\t\t\tgo2.v.setVel(new Vector2d(5,-5));\r\n\t\t\t\t\tif(i==2)\r\n\t\t\t\t\t\tgo2.v.setVel(new Vector2d(-5,5));\r\n\t\t\t\t\tif(i==3)\r\n\t\t\t\t\t\tgo2.v.setVel(new Vector2d(5,5));\r\n\t\t\t\t\r\n\t\t\t\t\tcollision.splitObjects.add(go2);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn go;\t\t\r\n\t\t}\r\n\t}", "public void paintBalls(Graphics g);", "void blockState(BooleanFormula pState, int pMaxLevel, CFANode pLocation);", "void smallgunHandler() {\n for (Sprite smb: smBullets) {\n \n smb.display();\n if(usingCoil){\n smb.forward(120);\n }else{\n smb.forward(40);\n }\n\n }\n}", "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 }", "void ompleBlocsHoritzontals() {\r\n\r\n for (int i = 0; i < N; i = i + SRN) // for diagonal box, start coordinates->i==j \r\n {\r\n ompleBloc(i, i);\r\n }\r\n }", "Cube()\r\n\t{\r\n\t\t//System.out.println(\"We are in constructor\");\r\n\t\tlength=10;\r\n\t\tbredth=20;\r\n\t\theight=30;\r\n\t}", "private void yellow(){\n\t\tthis.arretes_fY();\n\t\tthis.coins_fY();\n\t\tthis.coins_a1Y();\n\t\tthis.coins_a2Y();\n\t\tthis.aretes_aY();\n\t\tthis.cube[49] = \"Y\";\n\t}", "public Box() {\t\t\t\t\n\t\tCrayon box[] = {new Crayon(10,Color.RED),new Crayon(10,Color.ORANGE),new Crayon(10,Color.YELLOW),new Crayon(10,Color.GREEN),new Crayon(10,Color.BLUE),new Crayon(10,Color.VIOLET),new Crayon(10,Color.BROWN),new Crayon(10,Color.BLACK)};\n\t\tcrayons = box;\n\t}", "public Cube222 () {\n\t\tstate_ = new Cubie[8];\n\t\tstate_[0] = new Cubie('O','W','G',0); // front, clockwise\n\t\tstate_[1] = new Cubie('O','W','B',1);\n\t\tstate_[2] = new Cubie('R','W','B',2);\n\t\tstate_[3] = new Cubie('R','W','G',3);\n\t\tstate_[4] = new Cubie('O','Y','G',4); // back, behind front\n\t\tstate_[5] = new Cubie('O','Y','B',5);\n\t\tstate_[6] = new Cubie('R','Y','B',6);\n\t\tstate_[7] = new Cubie('R','Y','G',7);\n\t}", "public void enterHatchingState() {\n\n\t}", "@Override\n public void tick() {\n x+=velX;\n y+=velY;\n\n if(Dante.getInstance().getX() <= x)\n displayedImage = left;\n else\n displayedImage = right;\n\n choose = r.nextInt(50);\n\n for(int i = 0; i < Handler1.getInstance().objects.size(); i++) {\n GameObject temp = Handler1.getInstance().objects.get(i);\n\n if(temp.getId() == ID.Block||temp.getId()==ID.Door|| temp.getId() == ID.Obstacle) {\n if(getBoundsBigger().intersects(temp.getBounds())) {\n x += (velX*2) * -1;\n y += (velY*2) * -1;\n velX *= -1;\n velY *= -1;\n } else if(choose == 0) {\n velX = (r.nextInt(2 + 2) - 2) + speed;\n velY = (r.nextInt(2 + 2) - 2) + speed;\n\n if (velX!=0){\n if (velY<0){\n velY+=1;\n }else {\n velY-=1;\n }\n }\n\n if (velY!=0){\n if (velX>0){\n velX-=1;\n }else {\n velX+=1;\n }\n }\n }\n }\n if(temp.id==ID.Dante){\n if (++tickCounter % (r.nextInt(50) + 50) == 0) {\n\n Handler1.getInstance().addObject(new Bullet(x, y, ID.Bullet,\n temp.getX() +(r.nextInt( 11+11) -11),\n temp.getY()+(r.nextInt(11 +11) -11),\n 30, 1, bulletImage,30));\n }\n }\n }\n\n if(hp <= 0) {\n Random rand = new Random();\n if(rand.nextInt(100) <= 33)\n Handler1.getInstance().addObject(new Coin(x, y));\n Handler1.getInstance().removeObject(this);\n }\n }", "public BallContainer() {\n\t\tthis.contents = new LinkedList<Ball>();\n\t}", "private void collision(GameObjectContainer<GameObject> object) {\n \tGameObject renderObject = null;\r\n\t\tfor (int i = 0; i < object.getSize(); i++) {\r\n\t\t\trenderObject = object.iterator().next();\r\n\r\n\t\t\tif (renderObject.getType() == \"BLOCK\") {\r\n\t\t\t\tif (this.getBoundsInParent().intersects(renderObject.getBoundsInParent())) {\r\n\t\t\t\t\tSystem.out.println(\"intersected\");\r\n\t\t\t\t\tthis.setTranslateY(renderObject.getTranslateY() - renderObject.getHeight());\r\n\t\t\t\t\tfalling = false;\r\n\t\t\t\t\tjump = false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfalling = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tif (renderObject.getType() == \"NURSE\") {\r\n\t\t\t\tif (this.getBoundsInParent().intersects(renderObject.getBoundsInParent())) {\r\n\t\t\t\t\tSystem.out.println(\"nurse\");\r\n\t\t\t\t} else {\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}else {\r\n\t\t\t\tfalling = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n }", "static RenderBall[] make(Box box)\n\t{\n RenderBall[] rB = new RenderBall[box.nbBalls];\n\t\tfor (int i = 0; i < box.nbBalls; i++)\n\t\t{\n\t\t\trB[i] = new RenderBall();\n\t\t\trB[i].c.r = (int)(Math.random() * 195 + 30);\n\t\t\trB[i].c.v = (int)(Math.random() * 195 + 30);\n\t\t\trB[i].c.b = (int)(Math.random() * 195 + 30);\n\t\t\tif (i == box.nbBalls - 1)\n\t\t\t{\n\t\t\t\trB[i].c.r = 255;\n\t\t\t\trB[i].c.v = 255;\n\t\t\t\trB[i].c.b = 255;\n\t\t\t}\n\t\t}\n return rB;\n\t}", "@Deprecated(\n since = \"forever\",\n forRemoval = false\n )\n public static void initStates() {\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5568, \"facing=north\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5569, \"facing=north\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5570, \"facing=north\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5571, \"facing=north\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5572, \"facing=north\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5573, \"facing=north\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5574, \"facing=north\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5575, \"facing=north\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5576, \"facing=north\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5577, \"facing=north\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5578, \"facing=north\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5579, \"facing=north\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5580, \"facing=north\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5581, \"facing=north\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5582, \"facing=north\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5583, \"facing=north\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5584, \"facing=north\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5585, \"facing=north\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5586, \"facing=north\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5587, \"facing=north\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5588, \"facing=south\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5589, \"facing=south\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5590, \"facing=south\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5591, \"facing=south\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5592, \"facing=south\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5593, \"facing=south\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5594, \"facing=south\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5595, \"facing=south\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5596, \"facing=south\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5597, \"facing=south\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5598, \"facing=south\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5599, \"facing=south\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5600, \"facing=south\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5601, \"facing=south\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5602, \"facing=south\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5603, \"facing=south\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5604, \"facing=south\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5605, \"facing=south\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5606, \"facing=south\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5607, \"facing=south\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5608, \"facing=west\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5609, \"facing=west\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5610, \"facing=west\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5611, \"facing=west\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5612, \"facing=west\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5613, \"facing=west\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5614, \"facing=west\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5615, \"facing=west\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5616, \"facing=west\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5617, \"facing=west\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5618, \"facing=west\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5619, \"facing=west\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5620, \"facing=west\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5621, \"facing=west\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5622, \"facing=west\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5623, \"facing=west\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5624, \"facing=west\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5625, \"facing=west\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5626, \"facing=west\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5627, \"facing=west\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5628, \"facing=east\", \"half=top\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5629, \"facing=east\", \"half=top\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5630, \"facing=east\", \"half=top\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5631, \"facing=east\", \"half=top\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5632, \"facing=east\", \"half=top\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5633, \"facing=east\", \"half=top\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5634, \"facing=east\", \"half=top\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5635, \"facing=east\", \"half=top\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5636, \"facing=east\", \"half=top\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5637, \"facing=east\", \"half=top\", \"shape=outer_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5638, \"facing=east\", \"half=bottom\", \"shape=straight\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5639, \"facing=east\", \"half=bottom\", \"shape=straight\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5640, \"facing=east\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5641, \"facing=east\", \"half=bottom\", \"shape=inner_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5642, \"facing=east\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5643, \"facing=east\", \"half=bottom\", \"shape=inner_right\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5644, \"facing=east\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5645, \"facing=east\", \"half=bottom\", \"shape=outer_left\", \"waterlogged=false\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5646, \"facing=east\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=true\"));\n Block.JUNGLE_STAIRS.addBlockAlternative(new BlockAlternative((short) 5647, \"facing=east\", \"half=bottom\", \"shape=outer_right\", \"waterlogged=false\"));\n }", "public LG(){\n\t\tchildren = new LinkedHashMap<Loop, LinkedHashSet<Loop>>();\n\t\tparent = new LinkedHashMap<Loop, Loop>();\n\t\tloops = new LinkedHashSet<Loop>();\n\t\tloopCounter = new LinkedHashMap<Loop, Integer>();\n\t}", "public void sampleDemo()\n {\n // sample demo\n machine.resetMachine();\n \n PinballObject obj1 = new Pinball1(50, 200, -10, 6, Color.RED, 10, machine);\n PinballObject obj2 = new PinballObject(100, 300, 2, 4, Color.BLUE, 55, machine);\n PinballObject obj3 = new PinballObject(450, 125, -2, -2, Color.YELLOW, 40, machine);\n PinballObject obj4 = new PinballObject(100, 200, 4, -4, Color.MAGENTA, 25, machine);\n \n while(machine.getRunning())\n {\n machine.pauseMachine(); // small delay\n obj1.move();\n obj2.move();\n obj3.move();\n obj4.move();\n }\n }", "@Override\r\n public int numberOfBalls() {\r\n return 2;\r\n }", "Cube(int l, int b, int h)\r\n\t{\r\n\t\t//System.out.println(\"We are in constructor\");\r\n\t\tlength=l;\r\n\t\tbredth=b;\r\n\t\theight=h;\r\n\t}", "private final void segmentsFrameEffects() {\n\t\tif (alive) {\n\t\t\tint i;\n\t\t\t// Energy obtained through photosynthesis\n\t\t\tdouble photosynthesis = 0;\n\t\t\t_nChildren = 1;\n\t\t\t_indigo =0;\n\t\t\t_lowmaintenance =0;\n\t\t\tint fertility =0;\n\t\t\tint yellowCounter =0;\n\t\t\tint reproduceearly =0;\n\t\t\tdouble goldenage =0;\n\t\t\t_isfrozen =false;\n\t\t\tboolean trigger =false;\n\t\t\tfor (i=_segments-1; i>=0; i--) {\n\t\t\t\t// Manteniment\n\t\t\t\tswitch (getTypeColor(_segColor[i])) {\n\t\t\t\t// \tMovement\n\t\t\t\tcase CYAN:\n\t\t\t\t\tif (Utils.random.nextInt(100)<8 && useEnergy(Utils.CYAN_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tdx=Utils.between(dx+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\tdy=Utils.between(dy+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase TEAL:\n\t\t\t\t\tif (_geneticCode.getPassive()) {\n\t\t\t\t\t\tif (_hasdodged == false) {\n\t\t\t\t\t\t\t_dodge =true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t_lowmaintenance += 0.9 * _m[i];\n\t\t\t\t\t} else \n\t\t\t\t\t if (Utils.random.nextInt(100)<8 && useEnergy(Utils.CYAN_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between(dx+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between(dy+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Photosynthesis\n\t\t\t\tcase SPRING:\n\t\t\t\t\t if (_geneticCode.getClockwise()) {\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+0.1*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t\t photosynthesis += Utils.SPRING_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t} else {\n\t\t\t\t\t dtheta=Utils.between(dtheta-0.1*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t photosynthesis += Utils.SPRING_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LIME:\n\t\t\t\t\tif (trigger == false) {\n\t\t\t\t\t\ttrigger =true;\n\t\t\t\t\t if (_world.fastCheckHit(this) != null) {\n\t\t\t\t\t \t_crowded =true;\n\t\t\t\t\t } else {\n\t\t\t\t\t \t_crowded =false;\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\tif (_crowded == true) {\n\t\t\t\t\t photosynthesis += Utils.CROWDEDLIME_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tphotosynthesis += Utils.LIME_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase JADE:\n\t\t\t\t\t_isjade =true;\n\t\t\t\t\tphotosynthesis += Utils.JADE_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase GREEN:\n\t\t\t\t\tphotosynthesis += Utils.GREEN_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase FOREST:\n\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase BARK:\n\t\t\t\t\tphotosynthesis += Utils.BARK_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase GRASS:\n\t\t\t\t\tphotosynthesis += Utils.GRASS_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase C4:\n\t\t\t\t\t_lowmaintenance += _m[i];\n\t\t\t\t\tphotosynthesis += Utils.C4_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// is a consumer\n\t\t\t\tcase RED:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FIRE:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase ORANGE:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase MAROON:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\t_lowmaintenance += 0.9 * _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase PINK:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tif (_isakiller < 2) {\n\t\t\t\t\t\t_lowmaintenance += 0.8 * _m[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase CREAM:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with yellow segments have more children\n\t\t\t\tcase YELLOW:\n\t\t\t\t\tyellowCounter++;\n\t\t\t\t\tfertility += _m[i];\n\t\t\t\t break;\n\t\t\t\t// Experienced parents have more children\n\t\t\t\tcase SILVER:\n\t\t\t\t\tif (_isaconsumer == false) {\n\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\t\tcase GRAY:\n\t\t\t\t\t\tcase LILAC:\n\t\t\t\t\t\tcase SPIKE:\n\t\t\t\t\t\tcase PLAGUE:\n\t\t\t\t\t\tcase CORAL:\n\t\t\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\t}}}\n\t\t\t\t\t if (_nTotalChildren >= 1 && _nTotalChildren < 5) {\n\t\t\t\t\t\t_nChildren = 2; \n\t\t\t\t\t} else if (_nTotalChildren >= 5 && _nTotalChildren < 14) {\n\t\t\t\t\t\t_nChildren = 3; \n\t\t\t\t\t} else if (_nTotalChildren >= 14 && _nTotalChildren < 30) {\n\t\t\t\t\t\t_nChildren = 4; \n\t\t\t\t\t} else if (_nTotalChildren >= 30 && _nTotalChildren < 55) {\n\t\t\t\t\t\t_nChildren = 5;\n\t\t\t\t\t} else if (_nTotalChildren >= 55 && _nTotalChildren < 91) {\n\t\t\t\t\t _nChildren = 6;\n\t\t\t\t\t} else if (_nTotalChildren >= 91 && _nTotalChildren < 140) {\n\t\t\t\t\t\t_nChildren = 7; \n\t\t\t\t\t} else if (_nTotalChildren >= 140) {\n\t\t\t\t\t\t_nChildren = 8;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Auburn always has one real child if infected\n\t\t\t\tcase AUBURN:\n\t\t\t\t\t_isauburn =true;\n\t\t\t\t\t_lowmaintenance += _m[i] - (Utils.AUBURN_ENERGY_CONSUMPTION * _m[i]);\n\t\t\t\t\tif (_infectedGeneticCode != null && _nChildren == 1) {\n\t\t\t\t\t\t_nChildren = 2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with blond segments reproduce earlier\n\t\t\t\tcase BLOND:\n\t\t\t\t\treproduceearly += 3 + _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with indigo segments reduce the energy the new born virus receives\n\t\t\t\tcase INDIGO:\n\t\t\t\t\t_indigo += _m[i];\n\t\t\t\t\t_lowmaintenance += 0.8 * _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// Plague forces an organism to reproduce the virus\n\t\t\t\tcase PLAGUE:\n\t\t\t\t\t_isplague =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Coral transforms particles and viruses\n\t\t\t\tcase CORAL:\n\t\t\t\t\t_iscoral =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Mint immunity against infections\t\n\t\t\t\tcase MINT:\n\t\t\t\t\t_isantiviral =true;\n\t\t\t\t\tif (_infectedGeneticCode != null && Utils.random.nextInt(Utils.IMMUNE_SYSTEM)<=_m[i] && useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_infectedGeneticCode = null;\n\t\t\t\t\t\tsetColor(Utils.ColorMINT);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Healing\n\t\t\t\tcase MAGENTA:\n\t\t\t\t _isregenerative =true;\n\t\t\t\t for (int j = 0; j < _segments; j++) {\n\t\t\t\t if ((_segColor[j] == Utils.ColorLIGHTBROWN) || (_segColor[j] == Utils.ColorGREENBROWN) || (_segColor[j] == Utils.ColorPOISONEDJADE)\n\t\t\t\t\t\t|| (_segColor[j] == Utils.ColorBROKEN) || (_segColor[j] == Utils.ColorLIGHT_BLUE) || (_segColor[j] == Utils.ColorICE)\n\t\t\t\t\t\t|| (_segColor[j] == Utils.ColorDARKJADE) || (_segColor[j] == Utils.ColorDARKFIRE)) {\n\t\t\t\t\tif (Utils.random.nextInt(Utils.HEALING)<=_m[i] && useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t _segColor[j] = _geneticCode.getGene(j%_geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t}}}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKFIRE:\n\t\t\t\t\tif (Utils.random.nextInt(100)<_geneticCode.getSymmetry() && useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_segColor[i] = _geneticCode.getGene(i%_geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKJADE:\n\t\t\t\t\t_isjade =true;\n\t\t\t\t\tif (Utils.random.nextInt(Utils.DARKJADE_DELAY * _geneticCode.getSymmetry() * _geneticCode.getSymmetry())<8) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorJADE; \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Normalize spike\n\t\t\t\tcase SPIKEPOINT:\n\t\t\t\t\t_segColor[i] = Utils.ColorSPIKE;\n\t\t\t\t\tbreak;\n\t\t\t\t// is a killer\n\t\t\t\tcase SPIKE:\n\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\t}\n\t\t\t\t\tif (_isakiller == 0) {\n\t\t\t\t\t\t_isakiller = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LILAC:\n\t\t\t\t\tif (_isakiller == 0) {\n\t\t\t\t\t\t_isakiller = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase GRAY:\n\t\t\t\t\tif (_isakiller < 2) {\n\t\t\t\t\t _isakiller = 2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// is poisonous\n\t\t\t\tcase VIOLET:\n\t\t\t\t\t_ispoisonous =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// is a freezer\n\t\t\t\tcase SKY:\n\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// is enhanced\n\t\t\t\tcase DARKGRAY:\n\t\t\t\t\t_isenhanced =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Energy transfer\n\t\t\t\tcase ROSE:\n\t\t\t\t\t_lowmaintenance += 0.99 * _m[i];\n\t\t\t\t\tif (_transfersenergy == false) {\n\t\t\t\t\t\t_transfersenergy =true;\n\t\t\t\t\t _lengthfriend = _geneticCode.getGene(i%_geneticCode.getNGenes()).getLength();\n\t\t\t\t\t _thetafriend = _geneticCode.getGene(i%_geneticCode.getNGenes()).getTheta();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Low maintenance\n\t\t\t\tcase DARK:\n\t\t\t\t\t_lowmaintenance += 0.99 * _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with gold segments live longer\n\t\t\t\tcase GOLD:\n\t\t\t\t\t_lowmaintenance += 0.9 * _m[i];\n\t\t\t\t\tgoldenage += (_m[i]/Utils.GOLD_DIVISOR);\n\t\t\t\t\t_geneticCode._max_age = Utils.MAX_AGE + ((_geneticCode.getNGenes() * _geneticCode.getSymmetry())/Utils.AGE_DIVISOR) + (int)goldenage;\n\t\t\t\t\tbreak;\n\t\t\t\t// is weakened\n\t\t\t\tcase LIGHTBROWN:\n\t\t\t\tcase GREENBROWN:\n\t\t\t\tcase POISONEDJADE:\n\t\t\t\t\tif (_remember) {\n\t\t\t\t\t\t_isjade =false;\n\t\t\t\t\t\t_isenhanced =false;\n\t\t\t\t\t\t_isantiviral =false;\n\t\t\t\t\t\t_isregenerative =false;\n\t\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\t\tcase JADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DARKJADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\t\t\t\t_isenhanced =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase MINT:\n\t\t\t\t\t\t\t\t_isantiviral =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase MAGENTA:\n\t\t\t\t\t\t\t\t_isregenerative =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t _geneticCode._max_age = Utils.MAX_AGE + ((_geneticCode.getNGenes() * _geneticCode.getSymmetry())/Utils.AGE_DIVISOR) + (int)goldenage;\n\t\t\t\t\t _remember =false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LIGHT_BLUE:\n\t\t\t\t\tif (_isafreezer) {\n\t\t\t\t\t\t_isafreezer =false;\n\t\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\t\tcase SKY:\n\t\t\t\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DEEPSKY:\n\t\t\t\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// is frozen\n\t\t\t\tcase ICE:\n\t\t\t\t\t_isfrozen =true;\n\t\t\t\t\tif (_isjade) {\n\t\t\t\t\t\t_isjade =false;\n\t\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\t\tcase JADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DARKJADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DEADBARK:\n\t\t\t\t\t_isfrozen =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Restore abilities\n\t\t\t\tcase DARKLILAC:\n\t\t\t\t\tif (_isakiller == 0) {\n\t\t\t\t\t\t_isakiller = 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (Utils.random.nextInt(100)<8) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorLILAC;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DEEPSKY:\n\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\tif (Utils.random.nextInt(100)<8) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorSKY;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKOLIVE:\n\t\t\t\t\tif (Utils.random.nextInt(100)<8 && useEnergy(Utils.OLIVE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorOLIVE;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Reset dodging\n\t\t\tif (_hasdodged == true) {\n\t\t\t\t_dodge =false;\n\t\t\t\t_hasdodged =false;\n\t\t\t}\n\t\t\t//Get sun's energy\n\t\t\tif (photosynthesis > 0) {\n\t\t\t\t_isaplant =true;\n\t\t\t _energy += _world.photosynthesis(photosynthesis);\t\t\t\n\t\t\t}\n\t\t\t// Calculate number of children\n\t\t\tif (fertility > 0) {\n\t\t\t\tif (_geneticCode.getSymmetry() != 3) {\n\t\t\t\t _nChildren += (yellowCounter / _geneticCode.getSymmetry()) + (fertility / 23);\n\t\t\t } else {\n\t\t\t \t_nChildren += (yellowCounter / _geneticCode.getSymmetry()) + (fertility / 34);\n\t\t\t }\n\t\t\t}\n\t\t\t// Calculate reproduction energy for blond segments\n\t\t\tif ((reproduceearly > 0) && (_infectedGeneticCode == null)) {\n\t\t\t\tif (_energy > _geneticCode.getReproduceEnergy() - reproduceearly + Utils.YELLOW_ENERGY_CONSUMPTION*(_nChildren-1)) {\n\t\t\t\t\tif ((!_isaplant) && (!_isaconsumer)) {\n\t\t\t\t\t\tif ((_energy >= 10) && (_growthRatio<16) && (useEnergy(Utils.BLOND_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\t_nChildren = 1;\n\t\t\t\t\t _geneticCode._reproduceEnergy = Math.max((40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry()) - reproduceearly, 10);\n\t\t\t\t\t reproduce();\n\t\t\t\t\t _geneticCode._reproduceEnergy = 40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry();\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((_energy >= 30) && (_growthRatio==1) && (_timeToReproduce==0) && (useEnergy(Utils.BLOND_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t _geneticCode._reproduceEnergy = Math.max((40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry()) - reproduceearly, 30);\n\t\t\t\t\t\t reproduce();\n\t\t\t\t\t\t _geneticCode._reproduceEnergy = 40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry();\t\t\t\t\t\t\t\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t}\n\t}", "public void breadthFirstTraversal() {\n beginAnimation();\n treeBreadthFirstTraversal();\n stopAnimation();\n\n }", "Flock() {\n boids = new ArrayList<Boid>(); // Initialize the ArrayList\n }", "Flock() {\n boids = new ArrayList<Boid>(); // Initialize the ArrayList\n }", "@Override\n\tpublic void buildBVH() {\n\t\tif(this.bvhObjList.size()<=4) {\n\t\t}else {\n\t\t BVH nebt1 = new BVH(this.bvHi);\n\t\t BVH nebt2 = new BVH(this.bvHi);\n\t\tint tmp = this.calculateSplitDimension(this.bvhBox.getMax().sub(this.bvhBox.getMin()));\n\t\tfloat splitpos;\n\t\tif(tmp==0) {\n\t\t\tsplitpos = this.calculateMinMax().b.avg(this.calculateMinMax().a).x();\n\t\t}else if(tmp==1) {\n\t\t\tsplitpos = this.calculateMinMax().b.avg(this.calculateMinMax().a).y();\n\t\t}else {\n\t\t\tsplitpos = this.calculateMinMax().b.avg(this.calculateMinMax().a).z();\n\t\t\t\n\t\t}\n\t\tthis.distributeObjects(nebt1, nebt2, tmp, splitpos);\n\t\tthis.bvHi.add(nebt1);\n\t\tthis.neb1 = bvHi.indexOf(nebt1);\n\t\tthis.bvHi.add(nebt2);\n\t\tthis.neb2 = bvHi.indexOf(nebt2);\n\t\tnebt2.buildBVH();\n\t\tnebt1.buildBVH();\n\n\t\t}\n\t}", "public Array<BlockDrawable> getAllBlocksToDraw() {\r\n \tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\r\n\t\tif(isGhostActivated()){\r\n\t\t\tblocksToDraw.addAll(getGhostBlocksToDraw());\r\n\t\t}\r\n\t\tif (hasFalling())\r\n\t\t\tblocksToDraw.addAll(falling.allOuterBlocks());\r\n\t\t\r\n\t\treturn blocksToDraw;\r\n }", "public void BEvent(ArrayList<ArrayList<Shape>> faces) {\r\n \tint u1 = CUBE1, l1 = CUBE7, b1 = CUBE9, r1 = CUBE3;\r\n \tfor(int i = 0; i < 3; i++) {\r\n \t\tColor color = faces.get(TOP).get(u1).getColor();\r\n \tfaces.get(TOP).get(u1).changeColor(faces.get(RIGHT).get(r1).getColor());\r\n \tfaces.get(RIGHT).get(r1).changeColor(faces.get(BOTTOM).get(b1).getColor());\r\n \tfaces.get(BOTTOM).get(b1).changeColor(faces.get(LEFT).get(l1).getColor());\r\n \tfaces.get(LEFT).get(l1).changeColor(color);\r\n \tu1++;\r\n \tl1 -= SHIFT_ROW;\r\n \tb1--;\r\n \tr1 += SHIFT_ROW;\r\n \t\r\n \t} \r\n \r\n \tColor color = faces.get(BACK).get(CUBE1).getColor();\r\n \tfaces.get(BACK).get(CUBE1).changeColor(faces.get(BACK).get(CUBE7).getColor());\r\n \tfaces.get(BACK).get(CUBE7).changeColor(faces.get(BACK).get(CUBE9).getColor());\r\n \tfaces.get(BACK).get(CUBE9).changeColor(faces.get(BACK).get(CUBE3).getColor());\r\n \tfaces.get(BACK).get(CUBE3).changeColor(color);\r\n \tcolor = faces.get(BACK).get(CUBE2).getColor();\r\n \tfaces.get(BACK).get(CUBE2).changeColor(faces.get(BACK).get(CUBE4).getColor());\r\n \tfaces.get(BACK).get(CUBE4).changeColor(faces.get(BACK).get(CUBE8).getColor());\r\n \tfaces.get(BACK).get(CUBE8).changeColor(faces.get(BACK).get(CUBE6).getColor());\r\n \tfaces.get(BACK).get(CUBE6).changeColor(color);\r\n }", "public void gingerbreadMan ()\n {\n\tColor cookieBrown = new Color (204, 102, 0);\n\tColor cookieDarkBrown = new Color (170, 85, 0);\n\tColor offWhite = new Color (255, 250, 205);\n\tColor darkBrown = new Color (255, 250, 205);\n\tColor pink = new Color (250, 128, 114);\n\tColor blue = new Color (74, 206, 244);\n\tColor darkGreen = new Color (119, 119, 0);\n\n\n\t//for loop to animate the gingerbread man running forward\n\tfor (int y = 0 ; y < 530 ; y++)\n\t{\n\t //erase\n\t c.setColor (darkGreen);\n\t c.fillRect (-106 + y, 340, 106, 120);\n\t //left arm\n\t c.setColor (cookieBrown);\n\t for (int x = 0 ; x < 20 ; x++)\n\t {\n\t\tc.drawLine (-95 + y, 390 - x, -60 + y, 395 - x);\n\t }\n\t c.fillOval (-105 + y, 371, 20, 20);\n\t //right arm\n\t c.setColor (cookieDarkBrown);\n\t for (int x = 0 ; x < 20 ; x++)\n\t {\n\t\tc.drawLine (-50 + y, 400 - x, -10 + y, 390 - x);\n\t }\n\t c.fillOval (-20 + y, 371, 20, 20);\n\t //left leg\n\t for (int x = 0 ; x < 20 ; x++)\n\t {\n\t\tc.drawLine (-45 + y, 430 - x, -90 + y, 445 - x);\n\t }\n\t c.fillOval (-100 + y, 425, 20, 20);\n\t c.setColor (cookieBrown);\n\t //right leg\n\t for (int x = 0 ; x < 20 ; x++)\n\t {\n\t\tc.drawLine (-65 + x + y, 430, -50 + x + y, 450);\n\t }\n\t c.fillOval (-50 + y, 440, 20, 20);\n\t //head\n\t c.fillOval (-70 + y, 340, 40, 40);\n\t //body\n\t c.setColor (cookieBrown);\n\t c.fillOval (-75 + y, 375, 40, 60);\n\t //facial features\n\t c.setColor (Color.black);\n\t c.fillOval (-50 + y, 353, 3, 5);\n\t c.fillOval (-40 + y, 355, 3, 5);\n\t c.drawArc (-55 + y, 355, 20, 15, 190, 120);\n\t c.setColor (pink);\n\t c.fillOval (-58 + y, 358, 7, 7);\n\t c.fillOval (-38 + y, 362, 7, 7);\n\t c.setColor (offWhite);\n\t //left eyebrow\n\t for (int x = 0 ; x < 5 ; x++)\n\t {\n\t\tc.drawArc (-60 + x + y, 346, 20, 20, 110, 40);\n\t }\n\t //limb features of white icing\n\t for (int x = 0 ; x < 5 ; x++)\n\t {\n\t\t//right hand\n\t\tc.drawArc (-15 - x + y, 370, 20, 20, 150, 90);\n\t\t//left hand\n\t\tc.drawArc (-115 + x + y, 371, 20, 20, 320, 90);\n\t\t//right leg\n\t\tc.drawArc (-45 + y, 445 - x, 20, 20, 100, 80);\n\t\t//left leg\n\t\tc.drawArc (-110 + x + y, 425, 20, 20, 320, 80);\n\t }\n\t //candy buttons\n\t c.setColor (blue);\n\t c.fillOval (-50 + y, 390, 7, 7);\n\t c.fillOval (-50 + y, 400, 7, 7);\n\t //to delay the animation\n\t try\n\t {\n\t\tsleep (1);\n\t }\n\t catch (Exception e)\n\t {\n\t }\n\n\n\t}\n\n }", "public void s_()\r\n/* 117: */ {\r\n/* 118:128 */ this.P = this.s;\r\n/* 119:129 */ this.Q = this.t;\r\n/* 120:130 */ this.R = this.u;\r\n/* 121:131 */ super.s_();\r\n/* 122:133 */ if (this.b > 0) {\r\n/* 123:134 */ this.b -= 1;\r\n/* 124: */ }\r\n/* 125:137 */ if (this.a)\r\n/* 126: */ {\r\n/* 127:138 */ if (this.o.p(new dt(this.c, this.d, this.e)).c() == this.f)\r\n/* 128: */ {\r\n/* 129:139 */ this.i += 1;\r\n/* 130:140 */ if (this.i == 1200) {\r\n/* 131:141 */ J();\r\n/* 132: */ }\r\n/* 133:143 */ return;\r\n/* 134: */ }\r\n/* 135:145 */ this.a = false;\r\n/* 136: */ \r\n/* 137:147 */ this.v *= this.V.nextFloat() * 0.2F;\r\n/* 138:148 */ this.w *= this.V.nextFloat() * 0.2F;\r\n/* 139:149 */ this.x *= this.V.nextFloat() * 0.2F;\r\n/* 140:150 */ this.i = 0;\r\n/* 141:151 */ this.ap = 0;\r\n/* 142: */ }\r\n/* 143: */ else\r\n/* 144: */ {\r\n/* 145:154 */ this.ap += 1;\r\n/* 146: */ }\r\n/* 147:157 */ brw localbrw1 = new brw(this.s, this.t, this.u);\r\n/* 148:158 */ brw localbrw2 = new brw(this.s + this.v, this.t + this.w, this.u + this.x);\r\n/* 149:159 */ bru localbru1 = this.o.a(localbrw1, localbrw2);\r\n/* 150: */ \r\n/* 151:161 */ localbrw1 = new brw(this.s, this.t, this.u);\r\n/* 152:162 */ localbrw2 = new brw(this.s + this.v, this.t + this.w, this.u + this.x);\r\n/* 153:163 */ if (localbru1 != null) {\r\n/* 154:164 */ localbrw2 = new brw(localbru1.c.a, localbru1.c.b, localbru1.c.c);\r\n/* 155: */ }\r\n/* 156:167 */ if (!this.o.D)\r\n/* 157: */ {\r\n/* 158:168 */ Object localObject = null;\r\n/* 159:169 */ List localList = this.o.b(this, aQ().a(this.v, this.w, this.x).b(1.0D, 1.0D, 1.0D));\r\n/* 160:170 */ double d1 = 0.0D;\r\n/* 161:171 */ xm localxm = n();\r\n/* 162:172 */ for (int k = 0; k < localList.size(); k++)\r\n/* 163: */ {\r\n/* 164:173 */ wv localwv = (wv)localList.get(k);\r\n/* 165:174 */ if ((localwv.ad()) && ((localwv != localxm) || (this.ap >= 5)))\r\n/* 166: */ {\r\n/* 167:178 */ float f5 = 0.3F;\r\n/* 168:179 */ brt localbrt = localwv.aQ().b(f5, f5, f5);\r\n/* 169:180 */ bru localbru2 = localbrt.a(localbrw1, localbrw2);\r\n/* 170:181 */ if (localbru2 != null)\r\n/* 171: */ {\r\n/* 172:182 */ double d2 = localbrw1.f(localbru2.c);\r\n/* 173:183 */ if ((d2 < d1) || (d1 == 0.0D))\r\n/* 174: */ {\r\n/* 175:184 */ localObject = localwv;\r\n/* 176:185 */ d1 = d2;\r\n/* 177: */ }\r\n/* 178: */ }\r\n/* 179: */ }\r\n/* 180: */ }\r\n/* 181:190 */ if (localObject != null) {\r\n/* 182:191 */ localbru1 = new bru(localObject);\r\n/* 183: */ }\r\n/* 184: */ }\r\n/* 185:195 */ if (localbru1 != null) {\r\n/* 186:196 */ if ((localbru1.a == brv.b) && (this.o.p(localbru1.a()).c() == aty.aY)) {\r\n/* 187:197 */ aq();\r\n/* 188: */ } else {\r\n/* 189:199 */ a(localbru1);\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192:202 */ this.s += this.v;\r\n/* 193:203 */ this.t += this.w;\r\n/* 194:204 */ this.u += this.x;\r\n/* 195: */ \r\n/* 196:206 */ float f1 = uv.a(this.v * this.v + this.x * this.x);\r\n/* 197:207 */ this.y = ((float)(Math.atan2(this.v, this.x) * 180.0D / 3.141592741012573D));\r\n/* 198:208 */ this.z = ((float)(Math.atan2(this.w, f1) * 180.0D / 3.141592741012573D));\r\n/* 199:210 */ while (this.z - this.B < -180.0F) {\r\n/* 200:211 */ this.B -= 360.0F;\r\n/* 201: */ }\r\n/* 202:213 */ while (this.z - this.B >= 180.0F) {\r\n/* 203:214 */ this.B += 360.0F;\r\n/* 204: */ }\r\n/* 205:217 */ while (this.y - this.A < -180.0F) {\r\n/* 206:218 */ this.A -= 360.0F;\r\n/* 207: */ }\r\n/* 208:220 */ while (this.y - this.A >= 180.0F) {\r\n/* 209:221 */ this.A += 360.0F;\r\n/* 210: */ }\r\n/* 211:224 */ this.z = (this.B + (this.z - this.B) * 0.2F);\r\n/* 212:225 */ this.y = (this.A + (this.y - this.A) * 0.2F);\r\n/* 213: */ \r\n/* 214:227 */ float f2 = 0.99F;\r\n/* 215:228 */ float f3 = m();\r\n/* 216:230 */ if (V())\r\n/* 217: */ {\r\n/* 218:231 */ for (int j = 0; j < 4; j++)\r\n/* 219: */ {\r\n/* 220:232 */ float f4 = 0.25F;\r\n/* 221:233 */ this.o.a(ew.e, this.s - this.v * f4, this.t - this.w * f4, this.u - this.x * f4, this.v, this.w, this.x, new int[0]);\r\n/* 222: */ }\r\n/* 223:235 */ f2 = 0.8F;\r\n/* 224: */ }\r\n/* 225:238 */ this.v *= f2;\r\n/* 226:239 */ this.w *= f2;\r\n/* 227:240 */ this.x *= f2;\r\n/* 228:241 */ this.w -= f3;\r\n/* 229: */ \r\n/* 230:243 */ b(this.s, this.t, this.u);\r\n/* 231: */ }", "private void circle(){\n\t\tsquareCollison();\n\t\tsetMoveSpeed(10);\n\t}", "public void tick(LinkedList<Gameobject> object) \n\t{\n\t\t\n\t}", "void ringBell() {\n\n }", "public void drawLevelFg( SpriteBatch batch, JARCamera camera )\n {\n for ( int i = 0; i < iWalls.length; ++i )\n {\n //draw block with isometric offset\n iWalls[ i ].iBlock.draw( batch, camera );\n }\n }", "protected bed e()\r\n/* 210: */ {\r\n/* 211:245 */ return new bed(this, new IBlockData[] { a, b });\r\n/* 212: */ }", "@Override\n public void render(GraphicsContext gc){\n for(GraphNode node : nodeVector){\n NavNode n1 = (NavNode) node;\n if(n1.isValid()){\n gc.fillRoundRect(n1.getPosition().getX(),n1.getPosition().getY(),2,2,1,1);\n renderNode(gc,Color.BLACK,n1,1);\n for(GraphNode nn1: getAroundNodes(n1)){\n// if(nn1.isValid()&& getEdge(n1.Index(),nn1.Index()).Cost() >= Constants.GRAPH_GRAPH_OBSTACLE_EDGE_COST){\n if(nn1.isValid()&& getEdge(n1.getIndex(),nn1.getIndex()).getBehavior() == GraphEdge.shoot){\n renderNode(gc,Color.BLUE,(NavNode) nn1,2);\n renderline(gc,Color.BLUE,n1,(NavNode) nn1);\n }\n }\n }\n\n }\n\n }", "public void createSideBlocks() {\n Fill fill = new FillColor(Color.darkGray);\n Block topB = new Block(new Rectangle(new Point(0, 0), 800, 45), fill);\n Block rightB = new Block(new Rectangle(new Point(775, 25), 25, 576), fill);\n Block leftB = new Block(new Rectangle(new Point(0, 25), 25, 576), fill);\n //add each screen-side block to game and set 1 hitpoint.\n topB.addToGame(this);\n topB.setHitPoints(1);\n rightB.addToGame(this);\n rightB.setHitPoints(1);\n leftB.addToGame(this);\n leftB.setHitPoints(1);\n }", "void method0() {\nprivate double edgeCrossesIndicator = 0;\n/** counter for additions to the edgeCrossesIndicator\n\t\t */\nprivate int additions = 0;\n/** the vertical level where the cell wrapper is inserted\n\t\t */\nint level = 0;\n/** current position in the grid\n\t\t */\nint gridPosition = 0;\n/** priority for movements to the barycenter\n\t\t */\nint priority = 0;\n/** reference to the wrapped cell\n\t\t */\nVertexView vertexView = null;\n}", "public BaileyCrandall() {\n\tsetSeed(System.currentTimeMillis());\n }" ]
[ "0.59194285", "0.59100217", "0.5534494", "0.5522542", "0.5462158", "0.544591", "0.54193676", "0.54111177", "0.5363084", "0.5312565", "0.5300432", "0.52920526", "0.5272208", "0.52635247", "0.52603763", "0.5241715", "0.524119", "0.5232433", "0.52227765", "0.52200425", "0.5218353", "0.52044624", "0.5203291", "0.5174405", "0.51717514", "0.51701653", "0.51592416", "0.5156465", "0.5151829", "0.51476127", "0.5146173", "0.5145757", "0.5142609", "0.513718", "0.5130199", "0.51275766", "0.5123286", "0.5115733", "0.5109236", "0.51045746", "0.5093061", "0.50922346", "0.5090206", "0.50868833", "0.50846285", "0.5079732", "0.50783056", "0.5074696", "0.5071833", "0.5069971", "0.50695986", "0.5049676", "0.50490206", "0.50460917", "0.5035691", "0.503184", "0.50307554", "0.50298345", "0.5029767", "0.5025501", "0.50241065", "0.5023115", "0.50203335", "0.5020327", "0.5002432", "0.50021523", "0.50017303", "0.49953723", "0.4993805", "0.4986066", "0.4980219", "0.49774933", "0.49749756", "0.49682838", "0.49664748", "0.49652964", "0.49605605", "0.49571082", "0.4946001", "0.4944613", "0.4938382", "0.49375966", "0.49300256", "0.49291712", "0.4928353", "0.49236932", "0.49236932", "0.49193722", "0.49174434", "0.49170572", "0.49162984", "0.49155694", "0.49154294", "0.49147862", "0.49143767", "0.49122778", "0.49099186", "0.49087802", "0.4905546", "0.49048916", "0.4901781" ]
0.0
-1
/following step is using and duplicating an existing Step/s the original feature line/s should be used
@Given("I am on the Home Page") public void i_am_on_the_home_page(){ i_logged_into_Tenant_Manager_Project_list_page(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void step2() {\n\t\t\n\t}", "protected void runBeforeStep() {}", "public interface NormalStep extends Step { // <-- [user code injected with eMoflon]\n\n\t// [user code injected with eMoflon] -->\n}", "private void migrateFeaturesStep_1(Context context, Map featObjMap)\r\n throws Exception{\r\n\r\n \t mqlLogRequiredInformationWriter(\"Inside method migrateFeaturesStep_1 \"+ \"\\n\");\r\n \t //These selectables are for Parent Feature\r\n \t StringList featureObjSelects = new StringList();\r\n\t\t featureObjSelects.addElement(SELECT_TYPE);\r\n\t\t featureObjSelects.addElement(SELECT_NAME);\r\n\t\t featureObjSelects.addElement(SELECT_REVISION);\r\n\t\t featureObjSelects.addElement(SELECT_VAULT);\r\n\t\t featureObjSelects.addElement(SELECT_ID);\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\");//goes into LF or MF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\");//goes into LF,MF,CF type\r\n\r\n\t\t String featureObjId = \"\";\r\n String strType = \"\";\r\n String strName = \"\";\r\n String strRevision = \"\";\r\n String strNewRelId = \"\";\r\n \t featureObjId = (String) featObjMap.get(SELECT_ID);\r\n\r\n\r\n \t String isConflictFeature = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\t\t String strContextUsage = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t StringList sLFLToDelete = new StringList(); //FLs list to delete\r\n\r\n\t\t strType = (String) featObjMap.get(SELECT_TYPE);\r\n\t\t strName = (String) featObjMap.get(SELECT_NAME);\r\n\t\t strRevision = (String) featObjMap.get(SELECT_REVISION);\r\n\r\n\r\n\t\t if((strType!=null\r\n\t\t\t\t &&(mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))))\r\n {\r\n\t\t\t isConflictFeature = \"No\";\r\n\t\t }\r\n\r\n\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")\r\n\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n\t\t {\r\n\r\n\r\n\t\t DomainObject domFeatureObj = new DomainObject(featureObjId);\r\n\r\n\t\t HashMap mapAttribute = new HashMap();\r\n\r\n\t\t //check whether feature is standalone or Toplevel or is in the Structure\r\n\t\t //String relPattern = ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO;\r\n\r\n\t\t StringBuffer sbRelPattern1 = new StringBuffer(50);\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO);\r\n\t\t\tsbRelPattern1.append(\",\");\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM);\r\n\r\n\t\t\tStringBuffer sbTypePattern2 = new StringBuffer(50);\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_FEATURE_LIST);\r\n\t\t\t\tsbTypePattern2.append(\",\");\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_MODEL);\r\n\r\n\r\n\r\n\r\n\t\t StringList flObjSelects = new StringList();\r\n\t\t flObjSelects.addElement(ConfigurationConstants.SELECT_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_FROM_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_TO_ID);\r\n\r\n\t\t StringList flRelSelects = new StringList();\r\n\t\t flRelSelects.addElement(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t flRelSelects.addElement(\"from.from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].from.id\");\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].id\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List To\" rel traversed\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.id\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.type\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List From\" rel traversed\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //In DV id Inactive in context of Product or Invalid in context of PV\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t //flObjSelects.addElement(\"from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\t\t //selectables of all attributes on FL which are to be migrated\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"); //goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\");//goes on to CF,LF,MF relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\"); //goes on to CF type\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"); //will go as interface attribute onto relationship mentioned in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");//this will be used as described in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n \t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n \t\t //selectables of attribute on FLF relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\");\r\n\r\n \t\t //selectables to determine if the Feature can have Key-In Type = Input\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\r\n \t\t //selectable to get Key-In Value on Selected Option Relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.id\");\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id started ----->\"+\" --- \"+now()+\"\\n\");\r\n\r\n \t\t MapList FL_List = domFeatureObj.getRelatedObjects(context,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //relPattern, //relationshipPattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbRelPattern1.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //ConfigurationConstants.TYPE_FEATURE_LIST, //typePattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbTypePattern2.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flObjSelects, //objectSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flRelSelects, //relationshipSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t true, //getTo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t false, //getFrom\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (short)1, //recurseToLevel\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //objectWhere,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //relationshipWhere\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (int)0, //limit\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null , //includeType\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //includeRelationship\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null); //includeMap\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id end ----->\"+\" --- \"+now()+\"\\n\");\r\n\t\t //To check whether the \"Feature Selection Type\" has any conflict for this Feature\r\n\t\t boolean bConflictSelType = false;\r\n\t\t String strFST =\"\";\r\n\t\t StringList sLFST = new StringList();\r\n\t\t for(int iCntFL=0;iCntFL<FL_List.size();iCntFL++){\r\n\t\t\t Map flMap = (Map)FL_List.get(iCntFL);\r\n\t\t\t strFST = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\t\t\t if(sLFST.size()>0){\r\n\t\t\t\t if(!sLFST.contains(strFST)){\r\n\t\t\t\t\t bConflictSelType = true;\r\n\t\t\t\t\t break;\r\n\t\t\t\t }else{\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }else{\r\n\t\t\t\t if(strFST!=null && !strFST.equals(\"\")){\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\t\t //If FL object is absent\r\n\t\t if(FL_List.size()==0)\r\n\t\t {\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are no 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t if(strType!=null\r\n\t\t\t\t &&(!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))||\r\n\t\t\t\t isOfDerivationChangedType(context, strType)) {\r\n\t\t\t\t if(strType!=null && !isOfDerivationChangedType(context, strType)){\r\n\r\n\r\n\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n\t\t\t\t String newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+ newFeatureChangeType +\"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t :: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t //change the feature to new type\r\n\t\t\t\t //BusinessObject featureBO = changeType(context,featObjMap,featureObjId,newFeatureChangeType,newFeaturePolicy);\r\n\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t boFeatureObj.change(context,\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\tnewFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewFeaturePolicy);\r\n\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t:: \"+featureObjId +\"\\n\");\r\n\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\t\t\t\t if(newFeatureChangeType!=null &&\r\n\t\t\t\t\t\t (newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)\r\n\t\t\t\t\t\t\t\t )){\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n\t\t\t\t }\r\n\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t\t :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }else{\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, strType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type \t\t:: \"+ strType +\"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t\t\t:: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t\t DomainObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t\t boFeatureObj.setPolicy(context, newFeaturePolicy);\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t\t domFeatureObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t //Set the attribute values for \"software Feature\" when Feat is standalone\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t }else //if feature is not standalone\r\n\t\t {\r\n\t\t\t MapList FLInfoList = new MapList(); // FLs info MapList to pass to external migrations\r\n\t\t\t \r\n\t\t\t mqlLogRequiredInformationWriter(\"\\n\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"Traverse through the given list of 'Feature List' object start .\"+\"\\n\\n\");\r\n\r\n\t\t\t for(int i=0;i<FL_List.size();i++)\r\n\t\t\t {\r\n\t\t\t\t Map flMap = (Map)FL_List.get(i);\r\n\t\t\t\t String strFLId = (String)flMap.get(DomainConstants.SELECT_ID);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id in process :: \"+ strFLId +\"\\n\");\r\n\r\n\t\t\t\t try{\r\n\t\t\t\t\t String strRelType = (String)flMap.get(\"relationship\");\r\n\t\t\t\t\t if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM)){\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Candiadate Item' rel in process ---> relName \"+ strRelType +\"\\n\");\r\n\t\t\t\t\t\t String strNewRelType = \"\";\r\n\t\t\t\t\t\t //String strManAttr =(String) flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");\r\n\t\t\t\t\t\t //Use case related to Candidate Item\r\n\t\t\t\t\t\t String strCandItemRel = (String)flMap.get(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t\t\t\t\t DomainRelationship domrel = new DomainRelationship(strCandItemRel);\r\n\t\t\t\t\t\t Map attributeMap = new HashMap();\r\n\t\t\t\t\t\t attributeMap = domrel.getAttributeMap(context,true);\r\n\t\t\t\t\t\t String strManAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE);\r\n\t\t\t\t\t\t String strInheritedAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_INHERITED);\r\n\t\t\t\t\t\t String newFeatureChangeType =\"\";\r\n\r\n \t\t\t\t\t\t if(strType!=null\r\n \t\t\t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t //Get the new Feature Type\r\n \t\t\t\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n \t\t\t\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n \t\t\t\t\t\t\t newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Get the new Feature Policy\r\n \t\t\t\t\t\t \t\t\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+newFeatureChangeType +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy :: \"+mNewFeaturePolicy +\"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //change the feature to new type\r\n \t\t\t\t\t\t \t\t\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t boFeatureObj.change(context,\r\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\tnewFeatureChangeType,\r\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(String) featObjMap.get(DomainConstants.SELECT_NAME),\r\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(String) featObjMap.get(DomainConstants.SELECT_REVISION),\r\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(String) featObjMap.get(DomainConstants.SELECT_VAULT),\r\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\tnewFeaturePolicy);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+featureObjId +\"\\n\");\r\n\t\t\t \t\t\t\t\t\t \t\t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"False\")))\r\n \t\t\t\t\t\t \t\t\t\t\t {\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES;\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\tif(newFeatureChangeType!=null\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"No\")))\r\n \t\t\t\t\t\t\t \t\t\t\t\t {\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_CONFIGURATION_FEATURES;\r\n \t\t\t\t\t\t\t \t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t &&(newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)))\r\n \t\t\t\t\t\t \t\t\t\t\t\t {\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_LOGICAL_FEATURES;\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(ProductLineCommon.isNotNull(strNewRelType)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && !strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t DomainRelationship.setType(context, strCandItemRel,strNewRelType);\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t }else{\r\n\r\n \t\t\t\t\t\t\tnewFeatureChangeType = strType;\r\n\r\n \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t/* if(strNewRelType!=null && strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\t\t\t\t\t \t\t\t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED, strInheritedAttr);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t domrel.setAttributeValues(context, mapRelAttributes);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t }*/\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"True\")))\r\n\t\t\t\t\t\t \t\t\t\t\t {\r\n\t\t\t\t\t \t\t\t\t\t\t\t DomainRelationship.disconnect(context, strCandItemRel);\r\n\t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t }else if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO)){\r\n\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Feature list To' rel in process ---> relName \"+ strRelType +\"\\n\\n\");\r\n\t\t\t\t\t\t //Get the \"From Side\" info of FL object\r\n\t\t\t\t\t String strParentFeatureId =\"\";\r\n\t\t\t\t\t String strParentFeatureType =\"\";\r\n\t\t\t\t\t \r\n\t\t\t\t\t if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_COMMITED_ITEM+\"].from.id\")!=null){\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t//Use Case related to hanging FL Objects\r\n\t\t\t\t\t if(strParentFeatureId!=null && strParentFeatureId.length()!=0){\r\n\t\t\t\t\t String isConflictParentFeature =\"No\";\r\n\t\t\t\t\t DomainObject domParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t Map htParentObjData = (Map) domParentFeat.getInfo(context, featureObjSelects);\r\n\r\n\t\t\t\t\t if(mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_FEATURES)){\r\n\r\n\t\t\t\t\t\t isConflictParentFeature = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t //Both the side Objects of FL should be convertible\r\n \t\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")&& isConflictParentFeature.equalsIgnoreCase(\"No\")){\r\n\r\n\t\t\t\t\t /* First ...Check if Parent is already converted to New Type or not\r\n\t\t\t\t\t * If Not then convert it to the new Type then continue\r\n\t\t\t\t\t * Attributes will be set later ..whenever the Feature comes as child in the list.*/\r\n\t\t\t\t\t if(strParentFeatureType!=null\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCTS)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCT_LINE)){\r\n\r\n\t\t\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t\t\t String newParentFeatureType = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t\t\t //String newParentFeatureChangeType = PropertyUtil.getSchemaProperty(context,newParentFeatureType);\r\n\t\t\t\t\t\t String newParentFeatureChangeType = getSchemaProperty(context,newParentFeatureType);\r\n\r\n\t\t\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t\t\t Map mNewParentFeatPolicy = mxType.getDefaultPolicy(context, newParentFeatureChangeType, true);\r\n\t\t\t\t\t\t String strNewParentFeatPolicy = (String) mNewParentFeatPolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Type :: \"+ newParentFeatureChangeType +\"\\n\");\r\n\t \t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Policy :: \"+ strNewParentFeatPolicy +\"\\n\");\r\n\r\n\t \t\t\t\t\tString MarketTextPar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");\r\n\t \t\t\t\t String MarketNamePar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");\r\n\t \t\t\t\t \r\n\t \t\t\t\t \r\n\t \t\t\t\t\t \r\n\t \t\t\t\t\t//Set the necessary Text and name attribute values of new Type Parent Feature object which will be lost once type is changed below.\r\n\t \t\t\t\t\t HashMap mapParentFeatAttribute = new HashMap();\r\n\t \t\t\t\t\tif(MarketTextPar!=null && !MarketTextPar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT, MarketTextPar);\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\tif(MarketNamePar!=null && !MarketNamePar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME, MarketNamePar);\r\n\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\t\r\n\t\t\t\t\t\t //change the feature to new type\r\n\t\t\t\t\t\t BusinessObject boParFeatureObj = new DomainObject(strParentFeatureId);\r\n\r\n\t\t\t\t\t\t boParFeatureObj.change(context,\r\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t newParentFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t strNewParentFeatPolicy);\r\n\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+strParentFeatureId +\"\\n\");\r\n\t\t\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newParentFeatureChangeType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + strNewParentFeatPolicy\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\tDomainObject domainParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this id ---->\" + \"\\n\" + mapParentFeatAttribute +\"\\n\\n\");\r\n\t\t\t\t\t\tdomainParentFeat.setAttributeValues(context,mapParentFeatAttribute);\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t String newChildFeatureChangeType =\"\";\r\n\t\t\t\t\t //Get the new Feature Relationship\r\n\t\t\t\t\t String newReltoConnect = \"\";\r\n\r\n\t\t\t\t\t if(strType!=null\r\n\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t\t\t ){\r\n\r\n\t\t\t\t\t\t//Check whether \"To Side\" i.e. Child Feature is CF/LF/MF.. Do the processing\r\n\t\t\t\t\t\t //newChildFeatureChangeType = PropertyUtil.getSchemaProperty(context,strContextUsage);\r\n\t\t\t\t\t\t newChildFeatureChangeType = getSchemaProperty(context,strContextUsage);\r\n\r\n\t\t\t\t\t\t if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_CONFIGURATION_OPTION)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t\t//Varies By,Valid Context,Invalid Context related code\r\n\t\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null\r\n\t\t\t\t\t\t\t\t && (newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_SOFTWARE_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\r\n\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t\t if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_OPTION))){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && strType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(strType!=null\r\n\t\t\t\t\t\t\t\t && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_SOFTWARE_FEATURE)))\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_MANUFACTURING_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t //Set attribute values for \"To Side\" of the \"Feature List To\" relationship i.e. Child Feat Obj\r\n\t\t\t\t\t\t String strSelCriterion = setAttributeValuesOfChildFeatureObj(context,flMap,featObjMap,bConflictSelType);\r\n\r\n \t\t\t\t\t //Do the connection between 2 Feature Objects\r\n\r\n \t\t\t\t\t //restricting the connection if FST = Key-In and Key-In Type = Input\r\n \t\t\t\t\t String strFSTAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n \t\t\t\t\t String strKITAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t\t\t\t if(strKITAttrValue.equals(RANGE_VALUE_INPUT)\r\n \t\t\t\t\t\t && strFSTAttrValue.equals(ConfigurationConstants.RANGE_VALUE_KEY_IN)\r\n \t\t\t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)||\r\n \t\t\t\t\t\t\t newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)))\r\n \t\t\t\t\t {\r\n \t\t\t\t\t\t StringList slPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slSOAttrKIVs = new StringList();\r\n \t\t\t\t\t\t StringList slParentPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slParentSORelIds = new StringList();\r\n\r\n \t\t\t\t\t\t Object objPCIds = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t\t\t\t\t if (objPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slPCIds = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t\t\t\t\t\t} else if (objPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslPCIds.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n\r\n \t\t\t\t\t\t Object objSOAttrKIVs = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t\t\t\t\t if (objSOAttrKIVs instanceof StringList) {\r\n \t\t\t\t\t\t\t slSOAttrKIVs = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n\r\n \t\t\t\t\t\t\t} else if (objSOAttrKIVs instanceof String) {\r\n \t\t\t\t\t\t\t\tslSOAttrKIVs.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t String strParentPCIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t Object objParentPCIds = flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t if(objParentPCIds==null || \"\".equals(objParentPCIds)){\r\n \t\t\t\t\t\t\tstrParentPCIdSel =\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t\tobjParentPCIds = flMap.get(strParentPCIdSel);\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentPCIds = (StringList) flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentPCIds.addElement((String) flMap.get(strParentPCIdSel));\r\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//to[Feature List From].from.to[Feature List To].from.to[Selected Options].from.type\r\n\r\n \t\t\t\t\t\t String strParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t Object objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n \t\t\t\t\t\t if(objParentSORelIds==null || \"\".equals(objParentSORelIds)){\r\n \t\t\t\t\t\t\tstrParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t\t objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentSORelIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentSORelIds = (StringList) flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentSORelIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentSORelIds.addElement((String) flMap.get(strParentSORelIdSel));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t //VJB: TODO: seems a bug, int j is never used\r\n \t\t\t\t\t\t for(int j=0;slPCIds!=null && i<slPCIds.size();i++ )\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t String strPCId = (String)slPCIds.get(i);\r\n \t\t\t\t\t\t\t String strAttrKIV = (String)slSOAttrKIVs.get(i);\r\n \t\t\t\t\t\t\t if(slParentPCIds!=null && slParentPCIds.contains(strPCId))\r\n \t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t for(int k=0;k<slParentPCIds.size();k++)\r\n \t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t String strParentPCId = (String)slParentPCIds.get(k);\r\n \t\t\t\t\t\t\t\t\t if(strParentPCId.equals(strPCId))\r\n \t\t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t\t String strParentSORelId = (String)slParentSORelIds.get(k);\r\n \t\t\t\t\t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strParentSORelId);\r\n \t\t\t\t\t\t\t\t\t\t domRel.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE, strAttrKIV);\r\n \t\t\t\t\t\t\t\t\t\t break;\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\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\t//strNewRelId = connectFeaturesWithNewRel(context,strParentFeatureId,featureObjId,strType,newReltoConnect);\r\n \t\t\t\t\t\tstrNewRelId = connectFeaturesWithNewRel(context,htParentObjData,featureObjId,strType,newReltoConnect);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n\r\n \t\t\t\t\t //Migrate attributes from FL to Rel id\r\n \t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_RULE_TYPE,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\"));\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)\r\n \t\t\t\t\t\t || newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES))){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FIND_NUMBER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_USAGE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"));\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t&& newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ATTRIBUTE_LOGICAL_SELECTION_CRITERIA,strSelCriterion);\r\n \t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t \t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_SELECTION_CRITERIA,strSelCriterion);\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t //mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Mandatory Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t //\"Varies By\" and \"Inactive Varies By\" relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t&&\r\n \t\t\t\t\t\t(newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_VARIES_BY)\r\n \t\t\t\t\t\t ||newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY)))\r\n \t\t\t\t\t {\r\n\t\t\t\t\t\t if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\r\n\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t ((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_YES)){\r\n\r\n\r\n\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_MANDATORY);\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n\t\t\t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\t\t\t\t\t\t }else if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\r\n\t\t\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t\t\t\t\t((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_NO)){\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\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\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewRelId + \"\\n\");\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAttributes +\"\\n\\n\");\r\n \t\t\t\t\t\t domRel.setAttributeValues(context, mapRelAttributes);\r\n \t\t\t\t\t\t //preparing MapList to pass to external migration\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelId\",strNewRelId);\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel1 = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t domRel1.open(context);\r\n \t\t\t\t\t String connectionName = domRel1.getTypeName();\r\n \t\t\t\t\t FLInfoMap.put(\"newRelType\",connectionName);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelName\",newReltoConnect);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\r\n \t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t //Add FL object to delete list\r\n\t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n\r\n\t\t\t\t\t }\r\n \t\t\t\t }else{\r\n \t\t\t\t\t\t //This is hanging FL Object ID need to b removed\r\n \t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\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 {\r\n \t\t\t\t e.printStackTrace();\r\n \t\t\t\t throw new FrameworkException(e.getMessage());\r\n \t\t\t }\r\n \t }\r\n\r\n \t\t\t//Float the connections on FL objects to new Relationships formed\r\n \t\t\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t floatFLConnections(context,FLInfoList);\r\n \t\t\t }\r\n\r\n\r\n \t\t\t//call external migration\r\n \t\t\tMapList customResults = callInterOpMigrations(context, FLInfoList);\r\n \t\t\tIterator itrCustomResults = customResults.iterator();\r\n \t\t\twhile (itrCustomResults.hasNext()) {\r\n Map customResultsMap = (Map)itrCustomResults.next();\r\n \t\t\t\t Integer status = (Integer)customResultsMap.get(\"status\");\r\n\t\t\t\t String failureMessage = (String)customResultsMap.get(\"failureMessage\");\r\n\r\n\t\t\t\t if(status==1)\r\n\t\t\t\t {\r\n\t\t\t\t\t throw new FrameworkException(failureMessage);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\r\n\t\t//Check the \"Varies By\" and \"Effectivity Status\" values\r\n\t\t StringList sLVariesByRelId =new StringList();\r\n\t\t StringList sLEffectivityStatusValue=new StringList();\r\n\t\t StringList sLActiveCntValue=new StringList();\r\n\t\t StringList sLInActiveCntValue=new StringList();\r\n\t\t StringList sLParType=new StringList();\r\n\r\n\r\n\t\tif((StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\")!=null){\r\n\r\n\t\t\t//sLName = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t//sLVariesByRelId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t//sLEffectivityStatusValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t//sLActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t//sLInActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t//sLParentId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\r\n\t\t\t/*Not using the above statements as there is issue in sequence of ids in String list\r\n\t\t\t * coming from above getInfo\r\n\t\t\t * Doing the getInfo again on the given Feature Id\r\n\t\t\t */\r\n\r\n\t\t\tString stFeaId = (String) featObjMap.get(SELECT_ID);\r\n\t\t\tDomainObject domFd = new DomainObject(stFeaId);\r\n\t\t\tStringList objSel = new StringList();\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\t Map MFeatObj = domFd.getInfo(context, objSel);\r\n\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\tsLVariesByRelId = (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\tsLParType= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\tsLEffectivityStatusValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\tsLActiveCntValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\tsLInActiveCntValue=(StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n\t\t}\r\n\r\n\t\tHashMap mapRelAtt = null;\r\n\r\n\t\tfor(int iEffStatusCnt=0;iEffStatusCnt<sLEffectivityStatusValue.size();iEffStatusCnt++){\r\n\t\t\tmapRelAtt = new HashMap();\r\n\t\t\tString strEffectStatus = (String)sLEffectivityStatusValue.get(iEffStatusCnt);\r\n\t\t\tif(strEffectStatus!=null && strEffectStatus.equalsIgnoreCase(ConfigurationConstants.EFFECTIVITY_STATUS_INACTIVE)){\r\n\t\t\t\tDomainRelationship.setType(context, (String)sLVariesByRelId.get(iEffStatusCnt), ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t}\r\n\r\n\r\n\t\t\tString strInActiveCntValue = (String)sLInActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint inactiveCount = Integer.parseInt(strInActiveCntValue);\r\n\r\n\t\t\tString strActiveCntValue = (String)sLActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint activeCount = Integer.parseInt(strActiveCntValue);\r\n\r\n\t\t\tif( inactiveCount==0 && activeCount==0 ){\r\n\t\t\t\tString strParType = (String)sLParType.get(iEffStatusCnt);\r\n\t\t\t\tif(mxType.isOfParentType(context,strParType, ConfigurationConstants.TYPE_PRODUCTS)){\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t}\r\n\t\t\tDomainRelationship domRel = new DomainRelationship((String)sLVariesByRelId.get(iEffStatusCnt));\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+(String)sLVariesByRelId.get(iEffStatusCnt)+ \"\\n\");\r\n\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAtt +\"\\n\\n\");\r\n\t\t\tdomRel.setAttributeValues(context, mapRelAtt);\r\n\t\t}\r\n\r\n\r\n\t\t//Cleanup - delete related Feature List objects on successful migration of Feature\r\n\t\t deleteObjects(context,sLFLToDelete);\r\n\r\n\t\t loadMigratedOids(featureObjId);\r\n\r\n\t }else{ // for those Features which has \"Conflict\" stamp \"Yes\"\r\n\t\t String strCommand = strType + \",\" + strName + \",\" + strRevision + \",\" + strContextUsage+\"\\n\";\r\n\t\t\t writeUnconvertedOID(strCommand, featureObjId);\r\n\t }\r\n\r\n }", "@Test(priority = 66)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"BUY GOODS USING MPESA\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"BUY GOODS AND SERVICES\");\t\r\n\tSystem.out.println(\"*************************(1)Running Buy Goods Using MPESA Testcases***********************************\");\r\n\r\n}", "@SuppressWarnings(\"unchecked\")\n @Test\n public void shouldPrependBeforeScenarioAndAppendAfterScenarioAnnotatedSteps() {\n CandidateSteps steps1 = mock(Steps.class);\n CandidateSteps steps2 = mock(Steps.class);\n Step stepBefore1 = mock(Step.class);\n Step stepBefore2 = mock(Step.class);\n Step stepAfter1 = mock(Step.class);\n Step stepAfter2 = mock(Step.class);\n\n when(steps1.runBeforeScenario()).thenReturn(asList(stepBefore1));\n when(steps2.runBeforeScenario()).thenReturn(asList(stepBefore2));\n when(steps1.runAfterScenario()).thenReturn(asList(stepAfter1));\n when(steps2.runAfterScenario()).thenReturn(asList(stepAfter2));\n\n // And which have a 'normal' step that matches our core\n CandidateStep candidate = mock(CandidateStep.class);\n Step normalStep = mock(Step.class);\n\n when(candidate.matches(\"my step\")).thenReturn(true);\n when(candidate.createFrom(tableRow, \"my step\")).thenReturn(normalStep);\n when(steps1.getSteps()).thenReturn(new CandidateStep[] { candidate });\n when(steps2.getSteps()).thenReturn(new CandidateStep[] {});\n\n // When we create the series of steps for the core\n MarkUnmatchedStepsAsPending stepCreator = new MarkUnmatchedStepsAsPending();\n List<Step> executableSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Scenario(asList(\"my step\")), tableRow\n );\n\n // Then all before and after steps should be added\n ensureThat(executableSteps, equalTo(asList(stepBefore2, stepBefore1, normalStep, stepAfter1, stepAfter2)));\n }", "public void addToSteps(entity.LoadStep element);", "public boolean addStep(ITemplateStep stepToAdd, ITemplateStep stepBefore);", "@Override\n public void scenario(gherkin.formatter.model.Scenario scenario) {\n }", "@Override\n\tpublic void step() {\n\t\t\n\t}", "@Override\n\tpublic void step() {\n\t\t\n\t}", "public InfoLiveTollsStepDefinition() {\n\t\tsuper();\n\t}", "@Test(priority = 75)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"END OF BUY GOODS USING MPESA TILL TESTCASES\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void End_Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"*************************End of buy Goods Using Mpesa Test cases***********************************\");\r\n\r\n}", "@Override\n\tpublic void step() {\n\t}", "@Override\n\tpublic void step() {\n\t}", "public void testStep() {\n\n DT_TractographyImage crossing = Images.getCrossing();\n\n FACT_FibreTracker tracker = new FACT_FibreTracker(crossing);\n\n Vector3D[] pds = crossing.getPDs(1,1,1);\n\n Vector3D step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, true);\n\n assertEquals(1.0, pds[0].dot(step.normalized()), 1E-8);\n\n assertEquals(Images.xVoxelDim / 2.0, step.mod(), 0.05);\n \n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, false);\n\n assertEquals(-1.0, pds[0].dot(step.normalized()), 1E-8);\n\n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 1, true);\n\n assertEquals(1.0, pds[1].dot(step.normalized()), 1E-8);\n\n\n for (int i = 0; i < 2; i++) {\n\n step = tracker.getNextStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), new Vector3D(pds[i].x + 0.01, pds[i].y + 0.02, pds[i].z + 0.03).normalized());\n\n assertEquals(1.0, pds[i].dot(step.normalized()), 1E-8);\n\n }\n\n \n }", "@Given(\"prepare to Analysis\")\npublic void preanalysis(){\n}", "Feature update(Feature feature);", "public InputFewStepsFactoryImpl() {\n\t\tsuper();\n\t}", "public ProofStep [ ] getSteps ( ) ;", "void addFeature(Feature feature);", "private void saveInput(BBSStep aStep) {\n BBSStepData aStepData = BBSStepDataManager.getInstance().getStepData(aStep.getName());\n BBSStepData inheritedData = BBSStepDataManager.getInstance().getInheritedStepData(aStep);\n \n //normal sources\n ArrayList<String> sources = createList(stepExplorerNSourcesList);\n if(this.useAllSourcesCheckbox.isSelected()){\n sources = new ArrayList<>();\n }\n if(sources.equals(inheritedData.getSources())){\n aStepData.setSources(null);\n }else{\n if(this.useAllSourcesCheckbox.isSelected()){\n aStepData.setSources(new ArrayList<String>());\n }else{\n if(sources.size()>0){\n aStepData.setSources(new ArrayList<String>());\n }else{\n aStepData.setSources(null);\n }\n \n }\n }\n if(aStepData.getSources()!=null){\n if(!sources.equals(aStepData.getSources())){\n aStepData.setSources(sources);\n }\n }\n \n //instrument model \n \n ArrayList<String> imodels = createList(stepExplorerInstrumentModelList);\n if(this.noInstrumentModelCheckbox.isSelected()){\n imodels = new ArrayList<>();\n }\n if(imodels.equals(inheritedData.getInstrumentModel())){\n aStepData.setInstrumentModel(null);\n }else{\n if(this.noInstrumentModelCheckbox.isSelected()){\n aStepData.setInstrumentModel(new ArrayList<String>());\n }else{\n if(imodels.size()>0){\n aStepData.setInstrumentModel(new ArrayList<String>());\n }else{\n aStepData.setInstrumentModel(null);\n }\n \n }\n }\n if(aStepData.getInstrumentModel()!=null){\n if(!imodels.equals(aStepData.getInstrumentModel())){\n aStepData.setInstrumentModel(imodels);\n }\n }\n \n/* //instrument model \n \n ArrayList<String> imodels = createArrayListFromSelectionList(stepExplorerInstrumentModelList);\n if(this.noInstrumentModelCheckbox.isSelected()){\n imodels = new ArrayList<String>();\n }\n if(imodels.equals(inheritedData.getInstrumentModel())){\n aStepData.setInstrumentModel(null);\n }else{\n if(this.noInstrumentModelCheckbox.isSelected()){\n aStepData.setInstrumentModel(new ArrayList<String>());\n }else{\n if(imodels.size()>0){\n aStepData.setInstrumentModel(new ArrayList<String>());\n }else{\n aStepData.setInstrumentModel(null);\n }\n \n }\n }\n if(aStepData.getInstrumentModel()!=null){\n if(!imodels.equals(aStepData.getInstrumentModel())){\n aStepData.setInstrumentModel(imodels);\n }\n } \n*/ \n\n//extra sources\n// ArrayList<String> esources = createList(stepExplorerESourcesList);\n// if(!this.useExtraSourcesCheckbox.isSelected()){\n// esources = new ArrayList<String>();\n// }\n// if(esources.equals(inheritedData.getExtraSources())){\n// aStepData.setExtraSources(null);\n// }else{\n// if(!this.useExtraSourcesCheckbox.isSelected()){\n// aStepData.setExtraSources(new ArrayList<String>());\n// }else{\n// if(esources.size()>0){\n// aStepData.setExtraSources(new ArrayList<String>());\n// }else{\n// aStepData.setExtraSources(null);\n// }\n \n// }\n// }\n// if(aStepData.getExtraSources()!=null){\n// if(!esources.equals(aStepData.getExtraSources())){\n// aStepData.setExtraSources(esources);\n// }\n// }\n //output data column\n String outputdata = stepExplorerOutputDataText.getText();\n if(this.writeOutputCheckbox.isSelected()){\n outputdata = \"\";\n }\n if(outputdata.equals(inheritedData.getOutputDataColumn())){\n aStepData.setOutputDataColumn(null);\n }else{\n if(this.writeOutputCheckbox.isSelected()){\n aStepData.setOutputDataColumn(\"\");\n }else{\n if(!outputdata.equals(\"\")){\n aStepData.setOutputDataColumn(\"\");\n }else{\n aStepData.setOutputDataColumn(null);\n }\n \n }\n }\n if(aStepData.getOutputDataColumn()!=null){\n if(!outputdata.equals(aStepData.getOutputDataColumn())){\n aStepData.setOutputDataColumn(outputdata);\n }\n }\n \n\n \n //Integration\n //Time\n if(this.integrationTimeText.getText().equals(\"\")){\n aStepData.setIntegrationTime(-1.0);\n }else{\n if(Double.parseDouble(integrationTimeText.getText()) == inheritedData.getIntegrationTime()){\n aStepData.setIntegrationTime(-1.0);\n }else{\n aStepData.setIntegrationTime(0.0);\n }\n }\n if(aStepData.getIntegrationTime()!=-1.0){\n if(Double.parseDouble(integrationTimeText.getText()) != aStepData.getIntegrationTime()){\n aStepData.setIntegrationTime(Double.parseDouble(integrationTimeText.getText()));\n }\n }\n //Frequency\n if(this.integrationFrequencyText.getText().equals(\"\")){\n aStepData.setIntegrationFrequency(-1.0);\n }else{\n if(Double.parseDouble(integrationFrequencyText.getText()) == inheritedData.getIntegrationFrequency()){\n aStepData.setIntegrationFrequency(-1.0);\n }else{\n aStepData.setIntegrationFrequency(0.0);\n }\n }\n if(aStepData.getIntegrationFrequency()!=-1.0){\n if(Double.parseDouble(integrationFrequencyText.getText()) != aStepData.getIntegrationFrequency()){\n aStepData.setIntegrationFrequency(Double.parseDouble(integrationFrequencyText.getText()));\n }\n }\n \n //Correlation\n //Type\n if(this.createArrayListFromSelectionList(this.stepExplorerCorrelationTypeList).isEmpty()){\n aStepData.setCorrelationType(null);\n }else{\n if(createArrayListFromSelectionList(stepExplorerCorrelationTypeList).equals(inheritedData.getCorrelationType())){\n aStepData.setCorrelationType(null);\n }else{\n aStepData.setCorrelationType(new ArrayList<String>());\n }\n }\n if(aStepData.getCorrelationType()!=null){\n if(!createArrayListFromSelectionList(stepExplorerCorrelationTypeList).equals(aStepData.getCorrelationType())){\n aStepData.setCorrelationType(createArrayListFromSelectionList(stepExplorerCorrelationTypeList));\n }\n }\n //Selection\n String selectedCSelection = null;\n if(this.stepExplorerCorrelationSelectionBox.getSelectedItem() != null){\n selectedCSelection = this.stepExplorerCorrelationSelectionBox.getSelectedItem().toString();\n }\n if(selectedCSelection == null){\n aStepData.setCorrelationSelection(null);\n }else{\n if(selectedCSelection.equals(\"N/A\")){\n aStepData.setCorrelationSelection(null);\n }else{\n if(selectedCSelection.equals(inheritedData.getCorrelationSelection())){\n aStepData.setCorrelationSelection(null);\n }else{\n aStepData.setCorrelationSelection(\"Generated by BBS GUI\");\n }\n }\n }\n if(aStepData.getCorrelationSelection()!=null){\n if(selectedCSelection!= null && !selectedCSelection.equals(aStepData.getCorrelationSelection())){\n aStepData.setCorrelationSelection(selectedCSelection);\n }\n }\n \n //baseline selection\n ArrayList<ArrayList<String>> baselines = createArrayListsFromBaselineTable();\n ArrayList<String> station1 = baselines.get(0);\n ArrayList<String> station2 = baselines.get(1);\n if(this.baselineUseAllCheckbox.isSelected()){\n station1 = new ArrayList<>();\n station2 = new ArrayList<>();\n }\n if(station1.equals(inheritedData.getStation1Selection()) && station2.equals(inheritedData.getStation2Selection())){\n aStepData.setStation1Selection(null);\n }else{\n if(this.baselineUseAllCheckbox.isSelected()){\n aStepData.setStation1Selection(new ArrayList<String>());\n }else{\n if(station1.size()>0 && station2.size()>0){\n aStepData.setStation1Selection(new ArrayList<String>());\n }else{\n aStepData.setStation1Selection(null);\n }\n \n }\n \n }\n \n if(station1.equals(inheritedData.getStation1Selection()) && station2.equals(inheritedData.getStation2Selection())){\n aStepData.setStation2Selection(null);\n }else{\n if(this.baselineUseAllCheckbox.isSelected()){\n aStepData.setStation2Selection(new ArrayList<String>());\n }else{\n if(station1.size()>0 && station2.size()>0){\n aStepData.setStation2Selection(new ArrayList<String>());\n }else{\n aStepData.setStation2Selection(null);\n }\n \n }\n }\n \n if(aStepData.getStation1Selection()!=null){\n if(!station1.equals(aStepData.getStation1Selection())){\n aStepData.setStation1Selection(station1);\n }\n }\n if(aStepData.getStation2Selection()!=null){\n if(!station2.equals(aStepData.getStation2Selection())){\n aStepData.setStation2Selection(station2);\n }\n }\n \n //Operation\n \n //name\n String selectedOSelection = null;\n if(this.stepExplorerOperationComboBox.getSelectedItem() != null){\n selectedOSelection = this.stepExplorerOperationComboBox.getSelectedItem().toString();\n }\n if(selectedOSelection == null){\n aStepData.setOperationName(null);\n \n }else{\n if(selectedOSelection.equals(\"NOT DEFINED\")){\n aStepData.setOperationName(null);\n }else{\n if(selectedOSelection.equals(inheritedData.getOperationName())){\n aStepData.setOperationName(null);\n }else{\n aStepData.setOperationName(\"Generated by BBS GUI\");\n }\n }\n }\n if(aStepData.getOperationName()!=null){\n if(selectedOSelection!= null && !selectedOSelection.equals(aStepData.getOperationName())){\n aStepData.setOperationName(selectedOSelection);\n }\n }\n //fetch variables from operation attributes panel\n if(!selectedOSelection.equals(\"NOT DEFINED\") && currentStepOperationsPanel != null){\n if(this.currentStepOperationsPanel.getBBSStepOperationAttributes()!=null){\n \n HashMap<String,String> valuesFromForm = currentStepOperationsPanel.getBBSStepOperationAttributes();\n \n HashMap<String,String> oldValuesFromStep = aStepData.getOperationAttributes();\n \n if(oldValuesFromStep == null) oldValuesFromStep = new HashMap<>();\n \n for(String aKey : valuesFromForm.keySet()){\n if(oldValuesFromStep.containsKey(aKey)){\n if(valuesFromForm.get(aKey) == null){\n oldValuesFromStep.put(aKey,null);\n }else{\n if(valuesFromForm.get(aKey).equals(inheritedData.getOperationAttribute(aKey))){\n oldValuesFromStep.put(aKey,null);\n }else{\n oldValuesFromStep.put(aKey,\"Generated by BBS GUI\");\n }\n }\n if(oldValuesFromStep.get(aKey) != null){\n if(!valuesFromForm.get(aKey).equals(oldValuesFromStep.get(aKey))){\n oldValuesFromStep.put(aKey,valuesFromForm.get(aKey));\n aStepData.setOperationName(selectedOSelection);\n }\n }\n }else{\n String newValue = valuesFromForm.get(aKey);\n String inheritedValue = inheritedData.getOperationAttribute(aKey);\n if(newValue!= null && newValue.equals(inheritedValue)){\n oldValuesFromStep.put(aKey,null);\n }else{\n oldValuesFromStep.put(aKey,valuesFromForm.get(aKey));\n aStepData.setOperationName(selectedOSelection);\n }\n }\n }\n aStepData.setOperationAttributes(oldValuesFromStep);\n }\n }else if(currentStepOperationsPanel == null){\n aStepData.setOperationAttributes(null);\n }\n }", "protected void runAfterStep() {}", "@Override\r\n public void afterOriginalStep(TestCaseRunner testRunner, SecurityTestRunContext runContext,\r\n SecurityTestStepResult result) {\n\r\n }", "private Step createScreenShotStep(String tag, String featureName, String scenarioName) {\n tag = tag.replaceAll(\"\\\"\", \"\").replaceAll(\" \", \"_\").replaceAll(\"-\",\"_\");//using previous Then statement as image tag. remove space and ' \" '\n return new Step(null, \"And \", \"take screenshot \\\"\"+tag+\"\\\" in feature file \\\"\"+featureName+\"\\\" with scenario \\\"\"+scenarioName+\"\\\"\", -1, null, null);\n }", "public String getStepLine()\n\t{\n\t\tString stepString = new String(\"#\"+this.stepLineNumber+\"= \");\n\t\tstepString = stepString.concat(\"IFCDOORLININGPROPERTIES(\");\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"GlobalId\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.GlobalId != null)\t\tstepString = stepString.concat(((RootInterface)this.GlobalId).getStepParameter(IfcGloballyUniqueId.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"OwnerHistory\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.OwnerHistory != null)\t\tstepString = stepString.concat(((RootInterface)this.OwnerHistory).getStepParameter(IfcOwnerHistory.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"Name\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.Name != null)\t\tstepString = stepString.concat(((RootInterface)this.Name).getStepParameter(IfcLabel.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"Description\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.Description != null)\t\tstepString = stepString.concat(((RootInterface)this.Description).getStepParameter(IfcText.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"LiningDepth\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.LiningDepth != null)\t\tstepString = stepString.concat(((RootInterface)this.LiningDepth).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"LiningThickness\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.LiningThickness != null)\t\tstepString = stepString.concat(((RootInterface)this.LiningThickness).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"ThresholdDepth\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.ThresholdDepth != null)\t\tstepString = stepString.concat(((RootInterface)this.ThresholdDepth).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"ThresholdThickness\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.ThresholdThickness != null)\t\tstepString = stepString.concat(((RootInterface)this.ThresholdThickness).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"TransomThickness\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.TransomThickness != null)\t\tstepString = stepString.concat(((RootInterface)this.TransomThickness).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"TransomOffset\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.TransomOffset != null)\t\tstepString = stepString.concat(((RootInterface)this.TransomOffset).getStepParameter(IfcLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"LiningOffset\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.LiningOffset != null)\t\tstepString = stepString.concat(((RootInterface)this.LiningOffset).getStepParameter(IfcLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"ThresholdOffset\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.ThresholdOffset != null)\t\tstepString = stepString.concat(((RootInterface)this.ThresholdOffset).getStepParameter(IfcLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"CasingThickness\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.CasingThickness != null)\t\tstepString = stepString.concat(((RootInterface)this.CasingThickness).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"CasingDepth\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.CasingDepth != null)\t\tstepString = stepString.concat(((RootInterface)this.CasingDepth).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"ShapeAspectStyle\")) stepString = stepString.concat(\"*);\");\n\t\telse{\n\t\tif(this.ShapeAspectStyle != null)\t\tstepString = stepString.concat(((RootInterface)this.ShapeAspectStyle).getStepParameter(IfcShapeAspect.class.isInterface())+\");\");\n\t\telse\t\tstepString = stepString.concat(\"$);\");\n\t\t}\n\t\treturn stepString;\n\t}", "public StepInterface getOriginalStep()\n {\n return this.step;\n }", "public void addStep(BooleanSupplier step) {\n _steps.add(step);\n }", "public boolean addStep(ITemplateStep step);", "@Test\r\n\tpublic void testCheck_featureBeginEndPositionEqual1() {\r\n\t\tint beginN = 40;\r\n\t\tboolean removeall = true;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ADFSGDFHGHJK\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 45,\r\n\t\t\t\t(long) 45));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tentry.addFeature(feature1);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN, removeall).size() == 0);\r\n\t}", "@Override\n public boolean step() {\n return false;\n }", "@Before\n public void beforeScenario() {\n }", "@Test\r\n\tpublic void testCheck_featureBeginEndPositionEqual2() {\r\n\t\tint beginN = 40;\r\n\t\tboolean removeall = false;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ADFSGDFHGHJK\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 45,\r\n\t\t\t\t(long) 45));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tentry.addFeature(feature1);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN, removeall).size() == 1);\r\n\t}", "java.lang.String getNextStep();", "@Override\n public void onStepStopping(FlowStep flowStep) {\n }", "public void removeFromSteps(entity.LoadStep element);", "Feature createFeature();", "@Override\r\n\tpublic void addStepHandler(StepHandler handler) {\n\t\t\r\n\t}", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();", "@Given(\"I come in to the bar\")\r\n public void i_come_in_to_the_bar() {\n System.out.println(\"@Given: Entro al bar\");\r\n //throw new io.cucumber.java.PendingException();\r\n }", "private void _addStep(PlanGraphStep stepToAdd, int currentLevel) {\n\t\t\n\t\tsteps.get(currentLevel).add(stepToAdd);\n\t\tfacts.get(currentLevel).addAll(stepToAdd.getChildNodes());\n\t\tcheckSupportedPreconditions(stepToAdd, currentLevel);\n\t\tpropagateAddStep(stepToAdd, currentLevel);\n\t}", "@Override\n public void feature(gherkin.formatter.model.Feature feature) {\n setTagStatementAttributes(testedFeature, feature);\n }", "@Override\n\tprotected void setProfile(List<Step> arg0, List<Step> arg1) {\n\t\t\n\t}", "protected abstract R runStep();", "public ITemplateStep removeStep(ITemplateStep stepToRemove);", "@Test(groups = \"noDevBuild\")\n public void checkFeatureCode() {\n browser.reportLinkLog(\"checkFeatureCode\");\n featurePages\n .setNewFeatureBtn(\"publishable\")\n .setNewFeatureName(groupName)\n .setNewFeatureCode(groupName)\n .setNewFeatureDescription(\"Test 1\")\n .setNewFeatureSavebtn();\n portalPages\n .setTopNavLink(topnav);\n featurePages\n .setNewFeatureBtn(\"publishable\")\n .setNewFeatureName(groupName)\n .setNewFeatureCode(groupName)\n .setNewFeatureDescription(\"Test 1\")\n .setNewFeatureSavebtn();\n browser.waitForId(\"helpText_duplicate_featureCode\");\n }", "public static void Feature1() {\r\n\t\tSystem.out.println(\"New Feature 2010: is now automatic\");\r\n\t}", "public Step add(Step step) throws SecurityException, IllegalStateException, NotSupportedException, SystemException, RollbackException, HeuristicMixedException, HeuristicRollbackException {\n\t\tSystem.out.println(step);\r\n\t\tcreate(step);\r\n\t\t\r\n\t\t//getEntityManager().createNativeQuery(\"Insert into step values(\"+step.getName()+\");\", Step.class).executeUpdate();\r\n\t\t//getEntityManager().createQuery(\"Insert into step values(\"+step.getName()+\");\", Step.class).executeUpdate();\r\n\t\treturn step;\r\n\t}", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "@Given(\"prepare to Access & exfiltrate data within the victim's security zone\")\npublic void preaccessexfiltratedatawithinthevictimssecurityzone(){\n}", "public void setStep(int step)\n {\n this.step = step;\n this.stepSpecified = true;\n }", "public void addStep(MRStep mrStep) {\n\t\tfor(Map.Entry<String, MRInput> binding: mrStep.bindings.entrySet()) {\n\t\t\tbind(mrStep.name + \".\" + binding.getKey(), binding.getValue().getId());\n\t\t}\n\t\t\n\t\tint param = 0;\n\t\tfor(OperativeStep st: mrStep.extraDependencies) {\n\t\t\tbind(mrStep.name + \".extradep\" + param, st.name + \".output\");\n\t\t\tparam++;\n\t\t}\n\t\t\n\t\tadd(mrStep.getStep());\n\t}", "private void updatingOptionalFeature(ArrayList<String>\tOnlyInLeft, ArrayList<String>\tOnlyInRight, Model splModel, Model newModel){\r\n//STEP 1 ---------------------------------------------------------------------------------------------\r\n\t\t//Feature optionalFeature = null;\t\t\r\n\t\t//New 02/12/201/\r\n\t\tFeature newModelOptionalFeature = null;\r\n\t\tFeature newVariant = null;\r\n\t\tConstraint constraint = null;\r\n\t\tnewVariant = new Feature(newModel.getId()+\"_Variant\", \"variant\", this.alternativeFeatureGroup.get(0).getId());\r\n\t\tthis.addVariant(newVariant);\r\n\t\t//-New 02/12/201/\r\n\t\t\r\n\t\tif(OnlyInLeft.size()==0){\r\n\t\t}else{\r\n\t\t\tnewModelOptionalFeature= new Feature(\"f\"+(this.optionalFeatures.size()+1) , \"optional\", this.getBase().getName(), OnlyInLeft);\r\n\t\t\tthis.optionalFeatures.add(newModelOptionalFeature);\r\n\t\t\t\r\n\t\t\t//New 02/12/201/\r\n\t\t\tfor(int i = 0; i < this.getVariants().getFeatures().size();i++){\r\n\t\t\t\tFeature variant = this.getVariants().getFeatures().get(i);\r\n\t\t\t\tif(variant==newVariant){\r\n\t\t\t\t}else{\r\n\t\t\t\t\tconstraint = new Constraint(variant.getName(), \"\\u00AC\"+newModelOptionalFeature.getName());\r\n\t\t\t\t\t//addConstraint(constraint);\r\n\t\t\t\t}//if(variant==newVariant){\r\n\t\t\t\t\r\n\t\t\t}//for(int i = 0; i <this.getVariants().getFeatures().size();i++){\t\r\n\t\t\t//-New 02/12/201/\r\n\t\t\tconstraint = new Constraint(newVariant.getName(), newModelOptionalFeature.getName());\r\n\t\t\t//this.constraints.add(constraint);\r\n\t\t\taddConstraint(constraint);\r\n\t\t\t\r\n\t\t\t//System.out.println(\" *** \"+this.constraints.size());\r\n\t\t\t//System.out.println(\" ... \"+constraint.toString());\r\n\t\t\t\r\n\t\t}//if(OnlyInLeft.size()==0){\r\n\r\n//STEP 2 ---------------------------------------------------------------------------------------------\r\n\t\t\r\n\t\tFeature optionalFeature = null;\r\n\t\t\r\n\t\tArrayList<String> elts = MyString.intersection(OnlyInRight, this.getBase().getElements());\r\n\t\tif(elts.size()==0){\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tthis.getBase().setElements(MyString.minus(this.getBase().getElements(), elts));\r\n\t\t\toptionalFeature= new Feature(\"f\"+(this.optionalFeatures.size()+1) , \"optional\", this.getBase().getName(), elts);\r\n\t\t\tthis.optionalFeatures.add(optionalFeature);\r\n\t\t\t\r\n\t\t\t//OnlyInRight = MyString.minus(OnlyInRight, elts);\r\n\t\t\t\r\n\t\t\t//New 03/12/2018\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < this.getVariants().getFeatures().size();i++){\r\n\t\t\t\tFeature variant = this.getVariants().getFeatures().get(i);\r\n\t\t\t\tif(variant==newVariant){\r\n\t\t\t\t}else{\r\n\t\t\t\t\tconstraint = new Constraint(variant.getName(), optionalFeature.getName());\r\n\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t}//if(variant==newVariant){\r\n\t\t\t}//for(int i = 0; i <this.getVariants().getFeatures().size();i++){\r\n\t\t\t\r\n\t\t\tconstraint = new Constraint(newVariant.getName(), \"\\u00AC\" + optionalFeature.getName());\r\n\t\t\t//this.constraints.add(constraint);\r\n\t\t\t//addConstraint(constraint);\r\n\t\t\t//-New 03/12/2018\r\n\t\t\t\r\n\t\t\t//New 03/12/2018\r\n\t\t\t//update parent feature of feature groups\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++){\r\n\t\t\t\tFeatureGroup fg = this.getAlternativeFeatureGroup().get(i);\r\n\t\t\t\t\r\n\t\t\t\tif(fg.getParent().equals(this.getBase().getName())){\r\n\t\t\t\t\t\r\n\t\t\t\t\tString elt = fg.getFeatures().get(0).getElements().get(0); \r\n\t\t\t\t\tString parentElt = splModel.getParent(splModel.getElement(elt)).getId();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(optionalFeature.contains(parentElt)){\r\n\t\t\t\t\t\t//System.out.println(\"%%%%%%%%%%%%% + \"+parentElt);\r\n\t\t\t\t\t\tfg.setParent(optionalFeature.getName());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}//for(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++){\r\n\t\t\t\r\n\t\t\t//-New 03/12/2018\r\n\t\t}//if(elts.size()==0){\r\n\t\t\r\n//STEP 3 ---------------------------------------------------------------------------------------------\r\n\r\n\t\t\r\n\t\tint i = 0;\r\n\t\twhile( i<this.optionalFeatures.size()){ //New 03/12/02018\r\n\t\t\tFeature f = this.optionalFeatures.get(i);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(f==newModelOptionalFeature){\r\n\t\t\t}else{\r\n\t\t\t\telts = f.getElements();\r\n\t\t\t\tArrayList<String> elts1 = MyString.intersection(OnlyInRight, elts);\r\n\t\t\t\tif(elts1.size()==0 ){\r\n\t\t\t\t\t//SUP\r\n\t\t\t\t\t//New 03/12/02018\r\n\t\t\t\t\tconstraint = new Constraint(newVariant.getName(), f.getName());\r\n\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t\t//-New 03/12/02018\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif( MyString.contains(OnlyInRight, elts) ){\r\n\t\t\t\t\t\t//New 03/12/02018\r\n\t\t\t\t\t\t//OnlyInRight = MyString.minus(OnlyInRight, elts); \r\n\t\t\t\t\t\tconstraint = new Constraint(newVariant.getName(), \"\\u00AC\"+f.getName());\r\n\t\t\t\t\t\t//addConstraint(constraint);\r\n\t\t\t\t\t\t//-New 03/12/02018\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\toptionalFeature= new Feature(\"f\"+(this.optionalFeatures.size()+1) , \"optional\", this.getBase().getName(), elts1);\r\n\t\t\t\t\t\tthis.optionalFeatures.add(optionalFeature);\r\n\t\t\t\t\t\tf.setElements(MyString.minus(elts, elts1));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//OnlyInRight = MyString.minus(OnlyInRight, elts1);\r\n\r\n\t\t\t\t\t\t//New 09-01-2019\r\n\t\t\t\t\t\t//OnlyInRight = elts; \r\n\t\t\t\t\t\t//--------New 09-01-2019\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int j = 0; j < this.getVariants().getFeatures().size(); j++){\r\n\t\t\t\t\t\t\tFeature variant = this.getVariants().getFeatures().get(j);\r\n\t\t\t\t\t\t\tif(variant==newVariant){\r\n\t\t\t\t\t\t\t}else{ \r\n\t\t\t\t\t\t\t\tif(Constraint.contains(this.constraints, variant.getName(), f.getName(), \"implies\") ){\r\n\t\t\t\t\t\t\t\t\tconstraint = new Constraint(variant.getName(), optionalFeature.getName());\r\n\t\t\t\t\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}//if(variant==newVariant){\r\n\t\t\t\t\t\t}//for(int j = 0; j < this.getVariants().getFeatures().size(); j++){\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\tconstraint = new Constraint(newVariant.getName(), \"\\u00AC\"+optionalFeature.getName());\r\n\t\t\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\t\t\t//addConstraint(constraint);\r\n\t\t\t\t\t\t\tconstraint = new Constraint(newVariant.getName(), f.getName());\r\n\t\t\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//-New 03/12/02018\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//New 03/12/2018\r\n\t\t\t\t\t\t\t//update parent feature of feature groups\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\tfor(int j = 1; j < this.getAlternativeFeatureGroup().size(); j++){\r\n\t\t\t\t\t\t\t\tFeatureGroup fg = this.getAlternativeFeatureGroup().get(j);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(fg.getParent().equals(f.getName())){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tString elt = fg.getFeatures().get(0).getElements().get(0); \r\n\t\t\t\t\t\t\t\t\tString parentElt = splModel.getParent(splModel.getElement(elt)).getId();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif(optionalFeature.contains(parentElt)){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tfg.setParent(optionalFeature.getName());\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}//for(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//-New 03/12/2018\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//if( MyString.contains(OnlyInRight, f.getElements()) ){\r\n\t\t\t\t}//if( elts1.size()==0 ){\r\n\t\t\t\r\n\t\t\t}//if(f==newModelOptionalFeature){ New 03/12/02018\r\n\t\t\ti++;\r\n\t\t}//while(){\r\n\t\t\r\n\t\r\n\t\t\r\n\t\tthis.updatingAlternativeFeatures(splModel, newModelOptionalFeature, newVariant, OnlyInRight, newModel);\r\n\t}", "public void chg() {\n currentChangeStep = 3;\n }", "void setFeatures(Features f) throws Exception;", "@Override\n public long superstep() {\n return context.superstep();\n }", "@Override\n public StepResult undoStep(FlightContext context) throws InterruptedException {\n return StepResult.getStepResultSuccess();\n }", "@Override\n public void setFeature(String feature) {\n this.exteriorFeature = feature;\n }", "@Test\r\n\tpublic void testCheck_featureLocationBeginandEndwithNs() {\r\n\t\tint beginN = 10;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 1, (long) 8));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tFeature feature2 = featureFactory.createFeature(\"feature2\");\r\n\t\tOrder<Location> order2 = new Order<Location>();\r\n\t\torder2.addLocation(locationFactory.createLocalRange((long) 40,\r\n\t\t\t\t(long) 46));\r\n\t\tfeature2.setLocations(order2);\r\n\t\tentry.addFeature(feature1);\r\n\t\tentry.addFeature(feature2);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN,false).size() ==2);\r\n\t\t}", "public boolean getCustomBuildStep();", "@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }", "public abstract void performStep();", "public String nextStep();", "@Override\n public void onStepSelected(Step step) {\n\n mStep = step;\n mSelectedIndex = mRecipe.getStepIndex(mStep);\n if (mSelectedIndex != -1) {\n\n if (mTwoPane) {\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n StepDetailFragment stepDetailFragment =\n StepDetailFragment.newInstance(mRecipe.getSteps().get(mSelectedIndex));\n\n // replace detail fragment\n fragmentManager.beginTransaction()\n .replace(R.id.step_detail_container, stepDetailFragment)\n .commit();\n } else {\n\n // phone scenario\n // The StepDetailActivity takes the entire list of steps to enable navigation\n //between steps without popping back to this activity.\n Intent intent = StepDetailActivity.newIntent(this,\n mRecipe.getSteps(), mSelectedIndex);\n\n // The result is the list of steps with updated check box states corresponding to user\n // input when working with individual steps\n startActivityForResult(intent, STEP_UPDATED_CODE);\n }\n }\n }", "public static void removeTheGivenStep(StepType step){\n\t\t\n\t\tPathConnectionType predecessor = step.getPredecessor(); \n\t\tif (predecessor instanceof StartType){\n\t\t\t//We want to get rid of this step and the next sequence\n\t\t\t\n\t\t\tPathConnectionType successor = step.getSuccessor(); \n\t\t\tStepType stepAfter = successor.getTarget().get(0);\n\t\t\t\n\t\t\tEList<StepType> predecessorNewTargets = new BasicEList<>(); \n\t\t\tpredecessorNewTargets.add(stepAfter);\n\t\t\tpredecessor.setTarget(predecessorNewTargets);\n\t\t\t\n\t\t\tstepAfter.setPredecessor(predecessor);\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\t//The predecessor is assumed to be a sequence\n\t\t\t//We want to get rid of the previous sequence and this step.\n\t\t\tStepType stepBefore = predecessor.getSource().get(0); \n\t\t\t\n\t\t\tPathConnectionType successor = step.getSuccessor(); \n\t\t\t\n\t\t\tstepBefore.setSuccessor(successor); \n\t\t\t\n\t\t\tEList<StepType> sucessorNewSources = new BasicEList<>(); \n\t\t\tsucessorNewSources.add(stepBefore);\n\t\t\tsuccessor.setSource(sucessorNewSources);\n\t\t}\n\t\t\n\t\t//set predecessor and successor to null of the original step b/c it's no longer connected.\n\t\tSystem.out.println(\"Removing step id \"+ step.getId() + \" from scenario path\"); \n\t\tstep.setPredecessor(null);\n\t\tstep.setSuccessor(null);\n\t\t\n\t}", "public ExteriorFeature() {\n this.exteriorFeature = \"Generic\";\n }", "@Override\n public void startOfScenarioLifeCycle(gherkin.formatter.model.Scenario scenario) {\n inLifeCycle = true;\n //is scenario run -> add new scenario definition\n if (SCENARIO_KEYWORD.equals(scenario.getKeyword())) {\n ScenarioDefinition sc = new ScenarioDefinition();\n sc.setType(ScenarioType.SCENARIO);\n setTagStatementAttributes(sc, scenario);\n testedFeature.getScenarioDefinitionList().add(sc);\n }\n\n returnLastScenarioDefinition().getScenarioRunList().add(new ScenarioRun());\n }", "private void HabVue(Feature feat)\n {\n StyleMap styleMap = feat.createAndAddStyleMap();\n\n //Create the style for normal edge.\n Pair pNormal = styleMap.createAndAddPair();\n Style normalStyle = pNormal.createAndSetStyle();\n pNormal.setKey(StyleState.NORMAL);\n\n LineStyle normalLineStyle =\n normalStyle.createAndSetLineStyle();\n normalLineStyle.setColor(\"YELLOW\");\n normalLineStyle.setWidth(2);\n\n\n //Create the style for highlighted edge.\n Pair pHighlight = styleMap.createAndAddPair();\n Style highlightStyle = pHighlight.createAndSetStyle();\n pHighlight.setKey(StyleState.HIGHLIGHT);\n\n LineStyle highlightLineStyle =\n highlightStyle.createAndSetLineStyle();\n highlightLineStyle.setColor(\"WHITE\");\n \n highlightLineStyle.setWidth(1);\n\n }", "public void step();", "public void step();", "@Override\n public void onStepClick(int index) {\n }", "@Given(\"prepare to Attempt well-known or guessable resource locations\")\npublic void preattemptwellknownorguessableresourcelocations(){\n}", "void Step(String step);", "void addFeatures(Features features);", "public void changeCurrentStep(Step currentStep) {\n changeCurrentStep(currentStep.getCurrentPhase());\n }", "@Before\r\n public void startUp(Scenario scenario) {\r\n\r\n //this is used to add per scenario log to report with unique name\r\n long logging_start = System.nanoTime();\r\n\r\n //initialize Logger class, without this line log for the first scenario will not be attached\r\n Log.info(\"***\");\r\n Log.info(\"***\");\r\n\r\n //add appender to attach log for particular scenario to the report\r\n addAppender(out,scenario.getName()+logging_start);\r\n\r\n //start scenario\r\n String[] tId = scenario.getId().split(\";\");\r\n Log.info(\"*** Feature id: \" + tId[0] + \" ***\");\r\n Log.info(\"***\");\r\n Log.info(\"***\");\r\n Log.info(\"*** Scenario with name: \" + scenario.getName() + \" started! ***\");\r\n Log.info(\"***\");\r\n Log.info(\"***\");\r\n\r\n /* Global resources load */\r\n Log.info(\"Started resources initialisation\");\r\n Log.info(\"<- creating shared context ->\");\r\n ctx.Object = new Context();\r\n ctx.Object.put(\"FeatureId\", String.class, tId[0]);\r\n ctx.Object.put(\"ScenarioId\", String.class, scenario.getName());\r\n\r\n FileCore fileCore = new FileCore(ctx);\r\n ctx.Object.put(\"FileCore\", FileCore.class, fileCore);\r\n\r\n ConfigReader Config = new ConfigReader(ctx);\r\n ctx.Object.put(\"Config\", ConfigReader.class, Config);\r\n\r\n Storage storage = new Storage(ctx);\r\n ctx.Object.put(\"Storage\", Storage.class, storage);\r\n\r\n PropertyReader env = new PropertyReader(ctx);\r\n ctx.Object.put(\"Environment\", PropertyReader.class, env);\r\n\r\n Macro macro = new Macro(ctx);\r\n ctx.Object.put(\"Macro\", Macro.class, macro);\r\n\r\n ExecutorCore executorCore = new ExecutorCore(ctx);\r\n ctx.Object.put(\"ExecutorCore\", ExecutorCore.class, executorCore);\r\n\r\n AssertCore assertCore = new AssertCore(ctx);\r\n ctx.Object.put(\"AssertCore\", AssertCore.class, assertCore);\r\n\r\n PdfCore pdfCore = new PdfCore(ctx);\r\n ctx.Object.put(\"PdfCore\", PdfCore.class, pdfCore);\r\n\r\n SshCore sshCore = new SshCore(ctx);\r\n ctx.Object.put(\"SshCore\", SshCore.class, sshCore);\r\n\r\n WinRMCore winRmCore = new WinRMCore(ctx);\r\n ctx.Object.put(\"WinRMCore\", WinRMCore.class, winRmCore);\r\n\r\n SqlCore sqlCore = new SqlCore(ctx);\r\n ctx.Object.put(\"SqlCore\", SqlCore.class, sqlCore);\r\n\r\n StepCore step = new StepCore(ctx);\r\n ctx.Object.put(\"StepCore\", StepCore.class, step);\r\n\r\n //get resources from ctx object\r\n FileCore FileCore = ctx.Object.get(\"FileCore\", FileCore.class);\r\n Macro Macro = ctx.Object.get(\"Macro\", Macro.class);\r\n StepCore = ctx.Object.get(\"StepCore\", StepCore.class);\r\n Storage = ctx.Object.get(\"Storage\", Storage.class);\r\n\r\n Log.info(\"<- reading default configuration ->\");\r\n String defaultConfigDir = FileCore.getProjectPath() + File.separator + \"libs\" + File.separator + \"libCore\" + File.separator + \"config\";\r\n Log.debug(\"Default configuration directory is \" + defaultConfigDir);\r\n\r\n ArrayList<String> defaultConfigFiles = FileCore.searchForFile(defaultConfigDir,\".config\");\r\n if(defaultConfigFiles.size()!=0) {\r\n for (String globalConfigFile : defaultConfigFiles) {\r\n Config.create(globalConfigFile);\r\n }\r\n }\r\n\r\n Log.info(\"<- reading global configuration ->\");\r\n String globalConfigDir = FileCore.getGlobalConfigPath();\r\n Log.debug(\"Global configuration directory is \" + globalConfigDir);\r\n\r\n ArrayList<String> globalConfigFiles = FileCore.searchForFile(globalConfigDir,\".config\");\r\n if(globalConfigFiles.size()!=0) {\r\n for (String globalConfigFile : globalConfigFiles) {\r\n Config.create(globalConfigFile);\r\n }\r\n }\r\n\r\n //configuring logger for rest operations\r\n ToLoggerPrintStream loggerPrintStream = new ToLoggerPrintStream();\r\n Log.info(\"Finished resources initialisation\");\r\n\r\n /* Local resources load */\r\n Log.info(\"<- Started local config load ->\");\r\n String featureDir = FileCore.getCurrentFeatureDirPath();\r\n\r\n Log.debug(\"Feature dir is \" + featureDir);\r\n if( featureDir != null ){\r\n ctx.Object.put(\"FeatureFileDir\", String.class, featureDir);\r\n\r\n ArrayList<String> localConfigFiles = FileCore.searchForFile(featureDir,\".config\");\r\n if(localConfigFiles.size()!=0) {\r\n for (String localConfigFile : localConfigFiles) {\r\n Config.create(localConfigFile);\r\n }\r\n }else{\r\n Log.warn(\"No local config files found!\");\r\n }\r\n }\r\n\r\n //all global and local configuration loaded.\r\n //show default config\r\n Log.debug(\"Checking default environment configuration\");\r\n HashMap<String, Object> defaultEnvConfig = Storage.get(\"Environment.Default\");\r\n HashMap<String, Object> sshConfig = Storage.get(\"Ssh\");\r\n HashMap<String, Object> winRmConfig = Storage.get(\"WinRM\");\r\n Map<String, Object> finalEnvConfig = Storage.get(\"Environment.Active\");\r\n if ( defaultEnvConfig == null || defaultEnvConfig.size() == 0 ){\r\n Log.error(\"Default configuration Environment.\"\r\n + \" Default not found or empty. Please create it!\");\r\n }\r\n if ( finalEnvConfig == null ) {\r\n Log.error(\"Environment.Active object does not exists or null.\"\r\n + \" Please create such entry in global configuration\");\r\n }\r\n if ( sshConfig == null ) {\r\n Log.error(\"Ssh object does not exists or null. Please create it!\");\r\n }\r\n if ( winRmConfig == null ) {\r\n Log.error(\"WinRM object does not exists or null. Please create it!\");\r\n }\r\n //merge ssh with default\r\n defaultEnvConfig.put(\"Ssh\", sshConfig);\r\n //merge winRM with default\r\n defaultEnvConfig.put(\"WinRM\", winRmConfig);\r\n //check if cmd argument active_env was provided to overwrite active_env\r\n String cmd_arg = System.getProperty(\"active_env\");\r\n if ( cmd_arg != null ) {\r\n Log.info(\"Property Environment.Active.name overwritten by CMD arg -Dactive_env=\" + cmd_arg);\r\n Storage.set(\"Environment.Active.name\", cmd_arg);\r\n }\r\n //read name of the environment that shall be activated\r\n Log.debug(\"Checking active environment configuration\");\r\n String actEnvName = Storage.get(\"Environment.Active.name\");\r\n if ( actEnvName == null || actEnvName.equals(\"\") || actEnvName.equalsIgnoreCase(\"default\") ) {\r\n Log.debug(\"Environment.Active.name not set! Fallback to Environment.Default\");\r\n } else {\r\n //check if config with such name exists else fallback to default\r\n HashMap<String, Object> activeEnvConfig = Storage.get(\"Environment.\" + actEnvName);\r\n if ( activeEnvConfig == null || activeEnvConfig.size() == 0 ){\r\n Log.error(\"Environment config with name \" + actEnvName + \" not found or empty\");\r\n }\r\n //merge default and active\r\n deepMerge(defaultEnvConfig, activeEnvConfig);\r\n defaultEnvConfig = Storage.get(\"Environment.Default\");\r\n }\r\n //create final\r\n deepMerge(finalEnvConfig, defaultEnvConfig);\r\n\r\n //check if cmd argument widthXheight was provided to overwrite active_env\r\n String cmd_arg2 = System.getProperty(\"widthXheight\");\r\n if ( cmd_arg2 != null ) {\r\n Log.info(\"Property Environment.Active.Web.size overwritten by CMD arg -widthXheight=\" + cmd_arg2);\r\n Storage.set(\"Environment.Active.Web.size\", cmd_arg2);\r\n }\r\n\r\n Log.info(\"-- Following configuration Environment.Active is going to be used --\");\r\n for (HashMap.Entry<String, Object> entry : finalEnvConfig.entrySet()) {\r\n String[] tmp = entry.getValue().getClass().getName().split(Pattern.quote(\".\")); // Split on period.\r\n String type = tmp[2];\r\n Log.info( \"(\" + type + \")\" + entry.getKey() + \" = \" + entry.getValue() );\r\n }\r\n Log.info(\"-- end --\");\r\n\r\n //adjust default RestAssured config\r\n Log.debug(\"adjusting RestAssured config\");\r\n int maxConnections = Storage.get(\"Environment.Active.Rest.http_maxConnections\");\r\n Log.debug(\"Setting http.maxConnections to \" + maxConnections);\r\n System.setProperty(\"http.maxConnections\", \"\" + maxConnections);\r\n\r\n Boolean closeIdleConnectionsAfterEachResponseAfter = Storage.get(\"Environment.Active.Rest.closeIdleConnectionsAfterEachResponseAfter\");\r\n if ( closeIdleConnectionsAfterEachResponseAfter ) {\r\n int idleTime = Storage.get(\"Environment.Active.Rest.closeIdleConnectionsAfterEachResponseAfter_idleTime\");\r\n Log.debug(\"Setting closeIdleConnectionsAfterEachResponseAfter=true with idleTime \" + idleTime);\r\n RestAssured.config = RestAssured.config().connectionConfig(\r\n connectionConfig().closeIdleConnectionsAfterEachResponseAfter(\r\n idleTime,\r\n TimeUnit.SECONDS)\r\n );\r\n }\r\n\r\n Boolean reuseHttpClientInstance = Storage.get(\"Environment.Active.Rest.reuseHttpClientInstance\");\r\n if ( reuseHttpClientInstance ) {\r\n Log.debug(\"Setting reuseHttpClientInstance=true\");\r\n RestAssured.config = RestAssured.config().httpClient(\r\n httpClientConfig().reuseHttpClientInstance()\r\n );\r\n }\r\n\r\n Boolean relaxedHTTPSValidation = Storage.get(\"Environment.Active.Rest.relaxedHTTPSValidation\");\r\n if ( relaxedHTTPSValidation ) {\r\n Log.debug(\"Setting relaxedHTTPSValidation=true\");\r\n RestAssured.config = RestAssured.config().sslConfig(\r\n sslConfig().relaxedHTTPSValidation()\r\n );\r\n }\r\n\r\n Boolean followRedirects = Storage.get(\"Environment.Active.Rest.followRedirects\");\r\n if ( followRedirects != null ) {\r\n Log.debug(\"Setting followRedirects=\" + followRedirects);\r\n RestAssured.config = RestAssured.config().redirect(\r\n redirectConfig().followRedirects(followRedirects)\r\n );\r\n }\r\n\r\n RestAssured.config = RestAssured.config().decoderConfig(\r\n DecoderConfig.decoderConfig().defaultContentCharset(\"UTF-8\"));\r\n\r\n RestAssured.config = RestAssured.config().logConfig(\r\n new LogConfig( loggerPrintStream.getPrintStream(), true )\r\n );\r\n\r\n //check if macro evaluation shall be done in hooks\r\n Boolean doMacroEval = Storage.get(\"Environment.Active.MacroEval\");\r\n if ( doMacroEval == null ){\r\n Log.error(\"Environment.Active.MacroEval null or empty!\");\r\n }\r\n if( doMacroEval ){\r\n Log.info(\"Evaluating macros in TestData and Expected objects\");\r\n Macro.eval(\"TestData\");\r\n Macro.eval(\"Expected\");\r\n }\r\n\r\n Log.info(\"Test data storage is\");\r\n Storage.print(\"TestData\");\r\n\r\n Log.info(\"<- Finished local config load ->\");\r\n Log.info(\"***\");\r\n Log.info(\"*** Running steps for scenario: \" + scenario.getName());\r\n Log.info(\"***\");\r\n\r\n }", "@Before\n\tpublic void keepScenario(Scenario scenario) {\n\t\tthis.scenario=scenario;\n\t}", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "@Then(\"troubleshooting chart steps are displaying\")\n public void troubleshooting_chart_steps_are_displaying() {\n }", "protected abstract void stepImpl( long stepMicros );", "@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }", "protected void moveToFeature(KMLAbstractFeature feature)\n {\n KMLViewController viewController = KMLViewController.create(this.wwd);\n viewController.goTo(feature);\n }", "boolean hasStep();", "boolean hasStep();", "boolean hasStep();", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature insertNewPlanFeature(int i);", "protected void refreshStep(OffsetOriginStep step) {\n if (step == null) return;\n int key = 0;\n for (int i : keyFrames) {\n if (i <= step.n)\n key = i;\n }\n // compare step with keyStep\n OffsetOriginStep keyStep = (OffsetOriginStep) steps.getStep(key);\n boolean different = keyStep.worldX != step.worldX || keyStep.worldY != step.worldY;\n // update step if needed\n if (different) {\n step.worldX = keyStep.worldX;\n step.worldY = keyStep.worldY;\n }\n step.erase();\n }", "public void updateTestStep(String teststep,ExtentReports r,ExtentTest l,WebDriver driver)\n\t{\n\t\tcurrentTestStep=teststep;\n\n\t}", "@Override\n protected SimpleFeature buildFeature() {\n synchronized(EDGE_FEATURE_BUILDER) {\n EDGE_FEATURE_BUILDER.add(getId());\n EDGE_FEATURE_BUILDER.add(displayName);\n EDGE_FEATURE_BUILDER.add(url);\n EDGE_FEATURE_BUILDER.add(selected);\n EDGE_FEATURE_BUILDER.add(lineString);\n return EDGE_FEATURE_BUILDER.buildFeature(null);\n }\n }", "private void removeStep(PlanGraphStep stepToRemove, int currentLevel) {\n\t\t\n\t\tremoveEffects(stepToRemove, currentLevel);\n\t\tremoveInvalidMutex(stepToRemove, currentLevel);\n\t\tupdateUnsupportedPreconditionInconsistencies(currentLevel);\n\t\t\n\t}", "public HooksScenario(SharedContext ctx) {\r\n this.ctx = ctx;\r\n }", "public void prependStep(final int direction)\n\t{\n\t\tfor (final FeatureElement element : featureElements)\n\t\t{\n\t\t\tif (element instanceof RelativeFeatureElement)\n\t\t\t{\n\t\t\t\t((RelativeFeatureElement) element).walk().prependStep(direction);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Warning: trying to prepend a step to an Absolute Feature Element!\");\n\t\t\t}\n\t\t}\n\t}", "private void AddNewScenario(HttpServletRequest request, HttpServletResponse response) {\n XMLTree.getInstance().AddNewScenario();\n }", "protected Step(Step next) {\n this.next = next;\n }", "@Override\n\tpublic void terminalStep(StateView arg0, HistoryView arg1) {\n\n\t}", "boolean previousStep();", "boolean nextStep();", "@SuppressWarnings(\"unchecked\")\n @Test\n public void shouldReturnBeforeAndAfterStoryAnnotatedSteps() {\n CandidateSteps steps1 = mock(Steps.class);\n CandidateSteps steps2 = mock(Steps.class);\n Step stepBefore1 = mock(Step.class);\n Step stepBefore2 = mock(Step.class);\n Step stepAfter1 = mock(Step.class);\n Step stepAfter2 = mock(Step.class);\n\n boolean embeddedStory = false;\n when(steps1.runBeforeStory(embeddedStory)).thenReturn(asList(stepBefore1));\n when(steps2.runBeforeStory(embeddedStory)).thenReturn(asList(stepBefore2));\n when(steps1.runAfterStory(embeddedStory)).thenReturn(asList(stepAfter1));\n when(steps2.runAfterStory(embeddedStory)).thenReturn(asList(stepAfter2));\n\n // When we create the series of steps for the core\n MarkUnmatchedStepsAsPending stepCreator = new MarkUnmatchedStepsAsPending();\n List<Step> beforeSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Story(new Scenario()), Stage.BEFORE,\n embeddedStory);\n List<Step> afterSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Story(new Scenario()), Stage.AFTER,\n embeddedStory);\n\n // Then all before and after steps should be added\n ensureThat(beforeSteps, equalTo(asList(stepBefore1, stepBefore2)));\n ensureThat(afterSteps, equalTo(asList(stepAfter1, stepAfter2)));\n }", "int getStep();" ]
[ "0.61989903", "0.6062259", "0.59444535", "0.5940977", "0.590512", "0.5885972", "0.5858421", "0.58582664", "0.5840915", "0.582263", "0.582263", "0.58201694", "0.57743883", "0.57619894", "0.57619894", "0.5745713", "0.5745681", "0.5738247", "0.57084614", "0.5697932", "0.5688705", "0.5641073", "0.5632711", "0.55753356", "0.5522124", "0.55061305", "0.54802305", "0.54570746", "0.5455525", "0.54413456", "0.5434601", "0.5401006", "0.5396374", "0.5394667", "0.53906745", "0.5373399", "0.5342753", "0.5341512", "0.5331239", "0.53256935", "0.53050953", "0.53028595", "0.52955985", "0.52934915", "0.52926964", "0.5286595", "0.5283332", "0.52791226", "0.5278515", "0.5278515", "0.52777684", "0.5275787", "0.52700865", "0.52683365", "0.5256255", "0.5254367", "0.524718", "0.5247111", "0.52304846", "0.52257866", "0.5225101", "0.5222415", "0.5217301", "0.52155125", "0.5209339", "0.5207484", "0.52060956", "0.5203972", "0.51952904", "0.5190857", "0.5190857", "0.5183053", "0.51821184", "0.5181088", "0.51808655", "0.51691616", "0.51663476", "0.5166162", "0.51624364", "0.51624364", "0.5161347", "0.51551604", "0.5150478", "0.5147815", "0.51464427", "0.51464427", "0.51464427", "0.51460236", "0.5145121", "0.51408243", "0.51404077", "0.5137629", "0.5130394", "0.5128594", "0.5128516", "0.51150817", "0.5112961", "0.510712", "0.5098153", "0.50913584", "0.5082905" ]
0.0
-1
/following step is using and duplicating an existing Step/s the original feature line/s should to be used
@When("I click on the Create new Project") public void i_click_on_the_create_new_project(){ i_click_on_create_a_new_project(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void step2() {\n\t\t\n\t}", "protected void runBeforeStep() {}", "private void migrateFeaturesStep_1(Context context, Map featObjMap)\r\n throws Exception{\r\n\r\n \t mqlLogRequiredInformationWriter(\"Inside method migrateFeaturesStep_1 \"+ \"\\n\");\r\n \t //These selectables are for Parent Feature\r\n \t StringList featureObjSelects = new StringList();\r\n\t\t featureObjSelects.addElement(SELECT_TYPE);\r\n\t\t featureObjSelects.addElement(SELECT_NAME);\r\n\t\t featureObjSelects.addElement(SELECT_REVISION);\r\n\t\t featureObjSelects.addElement(SELECT_VAULT);\r\n\t\t featureObjSelects.addElement(SELECT_ID);\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\");//goes into LF or MF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\");//goes into LF,MF,CF type\r\n\r\n\t\t String featureObjId = \"\";\r\n String strType = \"\";\r\n String strName = \"\";\r\n String strRevision = \"\";\r\n String strNewRelId = \"\";\r\n \t featureObjId = (String) featObjMap.get(SELECT_ID);\r\n\r\n\r\n \t String isConflictFeature = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\t\t String strContextUsage = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t StringList sLFLToDelete = new StringList(); //FLs list to delete\r\n\r\n\t\t strType = (String) featObjMap.get(SELECT_TYPE);\r\n\t\t strName = (String) featObjMap.get(SELECT_NAME);\r\n\t\t strRevision = (String) featObjMap.get(SELECT_REVISION);\r\n\r\n\r\n\t\t if((strType!=null\r\n\t\t\t\t &&(mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))))\r\n {\r\n\t\t\t isConflictFeature = \"No\";\r\n\t\t }\r\n\r\n\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")\r\n\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n\t\t {\r\n\r\n\r\n\t\t DomainObject domFeatureObj = new DomainObject(featureObjId);\r\n\r\n\t\t HashMap mapAttribute = new HashMap();\r\n\r\n\t\t //check whether feature is standalone or Toplevel or is in the Structure\r\n\t\t //String relPattern = ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO;\r\n\r\n\t\t StringBuffer sbRelPattern1 = new StringBuffer(50);\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO);\r\n\t\t\tsbRelPattern1.append(\",\");\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM);\r\n\r\n\t\t\tStringBuffer sbTypePattern2 = new StringBuffer(50);\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_FEATURE_LIST);\r\n\t\t\t\tsbTypePattern2.append(\",\");\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_MODEL);\r\n\r\n\r\n\r\n\r\n\t\t StringList flObjSelects = new StringList();\r\n\t\t flObjSelects.addElement(ConfigurationConstants.SELECT_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_FROM_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_TO_ID);\r\n\r\n\t\t StringList flRelSelects = new StringList();\r\n\t\t flRelSelects.addElement(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t flRelSelects.addElement(\"from.from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].from.id\");\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].id\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List To\" rel traversed\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.id\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.type\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List From\" rel traversed\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //In DV id Inactive in context of Product or Invalid in context of PV\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t //flObjSelects.addElement(\"from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\t\t //selectables of all attributes on FL which are to be migrated\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"); //goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\");//goes on to CF,LF,MF relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\"); //goes on to CF type\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"); //will go as interface attribute onto relationship mentioned in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");//this will be used as described in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n \t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n \t\t //selectables of attribute on FLF relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\");\r\n\r\n \t\t //selectables to determine if the Feature can have Key-In Type = Input\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\r\n \t\t //selectable to get Key-In Value on Selected Option Relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.id\");\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id started ----->\"+\" --- \"+now()+\"\\n\");\r\n\r\n \t\t MapList FL_List = domFeatureObj.getRelatedObjects(context,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //relPattern, //relationshipPattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbRelPattern1.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //ConfigurationConstants.TYPE_FEATURE_LIST, //typePattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbTypePattern2.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flObjSelects, //objectSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flRelSelects, //relationshipSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t true, //getTo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t false, //getFrom\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (short)1, //recurseToLevel\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //objectWhere,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //relationshipWhere\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (int)0, //limit\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null , //includeType\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //includeRelationship\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null); //includeMap\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id end ----->\"+\" --- \"+now()+\"\\n\");\r\n\t\t //To check whether the \"Feature Selection Type\" has any conflict for this Feature\r\n\t\t boolean bConflictSelType = false;\r\n\t\t String strFST =\"\";\r\n\t\t StringList sLFST = new StringList();\r\n\t\t for(int iCntFL=0;iCntFL<FL_List.size();iCntFL++){\r\n\t\t\t Map flMap = (Map)FL_List.get(iCntFL);\r\n\t\t\t strFST = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\t\t\t if(sLFST.size()>0){\r\n\t\t\t\t if(!sLFST.contains(strFST)){\r\n\t\t\t\t\t bConflictSelType = true;\r\n\t\t\t\t\t break;\r\n\t\t\t\t }else{\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }else{\r\n\t\t\t\t if(strFST!=null && !strFST.equals(\"\")){\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\t\t //If FL object is absent\r\n\t\t if(FL_List.size()==0)\r\n\t\t {\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are no 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t if(strType!=null\r\n\t\t\t\t &&(!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))||\r\n\t\t\t\t isOfDerivationChangedType(context, strType)) {\r\n\t\t\t\t if(strType!=null && !isOfDerivationChangedType(context, strType)){\r\n\r\n\r\n\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n\t\t\t\t String newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+ newFeatureChangeType +\"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t :: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t //change the feature to new type\r\n\t\t\t\t //BusinessObject featureBO = changeType(context,featObjMap,featureObjId,newFeatureChangeType,newFeaturePolicy);\r\n\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t boFeatureObj.change(context,\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\tnewFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewFeaturePolicy);\r\n\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t:: \"+featureObjId +\"\\n\");\r\n\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\t\t\t\t if(newFeatureChangeType!=null &&\r\n\t\t\t\t\t\t (newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)\r\n\t\t\t\t\t\t\t\t )){\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n\t\t\t\t }\r\n\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t\t :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }else{\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, strType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type \t\t:: \"+ strType +\"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t\t\t:: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t\t DomainObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t\t boFeatureObj.setPolicy(context, newFeaturePolicy);\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t\t domFeatureObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t //Set the attribute values for \"software Feature\" when Feat is standalone\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t }else //if feature is not standalone\r\n\t\t {\r\n\t\t\t MapList FLInfoList = new MapList(); // FLs info MapList to pass to external migrations\r\n\t\t\t \r\n\t\t\t mqlLogRequiredInformationWriter(\"\\n\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"Traverse through the given list of 'Feature List' object start .\"+\"\\n\\n\");\r\n\r\n\t\t\t for(int i=0;i<FL_List.size();i++)\r\n\t\t\t {\r\n\t\t\t\t Map flMap = (Map)FL_List.get(i);\r\n\t\t\t\t String strFLId = (String)flMap.get(DomainConstants.SELECT_ID);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id in process :: \"+ strFLId +\"\\n\");\r\n\r\n\t\t\t\t try{\r\n\t\t\t\t\t String strRelType = (String)flMap.get(\"relationship\");\r\n\t\t\t\t\t if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM)){\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Candiadate Item' rel in process ---> relName \"+ strRelType +\"\\n\");\r\n\t\t\t\t\t\t String strNewRelType = \"\";\r\n\t\t\t\t\t\t //String strManAttr =(String) flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");\r\n\t\t\t\t\t\t //Use case related to Candidate Item\r\n\t\t\t\t\t\t String strCandItemRel = (String)flMap.get(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t\t\t\t\t DomainRelationship domrel = new DomainRelationship(strCandItemRel);\r\n\t\t\t\t\t\t Map attributeMap = new HashMap();\r\n\t\t\t\t\t\t attributeMap = domrel.getAttributeMap(context,true);\r\n\t\t\t\t\t\t String strManAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE);\r\n\t\t\t\t\t\t String strInheritedAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_INHERITED);\r\n\t\t\t\t\t\t String newFeatureChangeType =\"\";\r\n\r\n \t\t\t\t\t\t if(strType!=null\r\n \t\t\t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t //Get the new Feature Type\r\n \t\t\t\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n \t\t\t\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n \t\t\t\t\t\t\t newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Get the new Feature Policy\r\n \t\t\t\t\t\t \t\t\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+newFeatureChangeType +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy :: \"+mNewFeaturePolicy +\"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //change the feature to new type\r\n \t\t\t\t\t\t \t\t\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t boFeatureObj.change(context,\r\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\tnewFeatureChangeType,\r\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(String) featObjMap.get(DomainConstants.SELECT_NAME),\r\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(String) featObjMap.get(DomainConstants.SELECT_REVISION),\r\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(String) featObjMap.get(DomainConstants.SELECT_VAULT),\r\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\tnewFeaturePolicy);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+featureObjId +\"\\n\");\r\n\t\t\t \t\t\t\t\t\t \t\t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"False\")))\r\n \t\t\t\t\t\t \t\t\t\t\t {\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES;\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\tif(newFeatureChangeType!=null\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"No\")))\r\n \t\t\t\t\t\t\t \t\t\t\t\t {\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_CONFIGURATION_FEATURES;\r\n \t\t\t\t\t\t\t \t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t &&(newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)))\r\n \t\t\t\t\t\t \t\t\t\t\t\t {\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_LOGICAL_FEATURES;\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(ProductLineCommon.isNotNull(strNewRelType)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && !strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t DomainRelationship.setType(context, strCandItemRel,strNewRelType);\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t }else{\r\n\r\n \t\t\t\t\t\t\tnewFeatureChangeType = strType;\r\n\r\n \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t/* if(strNewRelType!=null && strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\t\t\t\t\t \t\t\t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED, strInheritedAttr);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t domrel.setAttributeValues(context, mapRelAttributes);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t }*/\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"True\")))\r\n\t\t\t\t\t\t \t\t\t\t\t {\r\n\t\t\t\t\t \t\t\t\t\t\t\t DomainRelationship.disconnect(context, strCandItemRel);\r\n\t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t }else if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO)){\r\n\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Feature list To' rel in process ---> relName \"+ strRelType +\"\\n\\n\");\r\n\t\t\t\t\t\t //Get the \"From Side\" info of FL object\r\n\t\t\t\t\t String strParentFeatureId =\"\";\r\n\t\t\t\t\t String strParentFeatureType =\"\";\r\n\t\t\t\t\t \r\n\t\t\t\t\t if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_COMMITED_ITEM+\"].from.id\")!=null){\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t//Use Case related to hanging FL Objects\r\n\t\t\t\t\t if(strParentFeatureId!=null && strParentFeatureId.length()!=0){\r\n\t\t\t\t\t String isConflictParentFeature =\"No\";\r\n\t\t\t\t\t DomainObject domParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t Map htParentObjData = (Map) domParentFeat.getInfo(context, featureObjSelects);\r\n\r\n\t\t\t\t\t if(mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_FEATURES)){\r\n\r\n\t\t\t\t\t\t isConflictParentFeature = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t //Both the side Objects of FL should be convertible\r\n \t\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")&& isConflictParentFeature.equalsIgnoreCase(\"No\")){\r\n\r\n\t\t\t\t\t /* First ...Check if Parent is already converted to New Type or not\r\n\t\t\t\t\t * If Not then convert it to the new Type then continue\r\n\t\t\t\t\t * Attributes will be set later ..whenever the Feature comes as child in the list.*/\r\n\t\t\t\t\t if(strParentFeatureType!=null\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCTS)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCT_LINE)){\r\n\r\n\t\t\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t\t\t String newParentFeatureType = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t\t\t //String newParentFeatureChangeType = PropertyUtil.getSchemaProperty(context,newParentFeatureType);\r\n\t\t\t\t\t\t String newParentFeatureChangeType = getSchemaProperty(context,newParentFeatureType);\r\n\r\n\t\t\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t\t\t Map mNewParentFeatPolicy = mxType.getDefaultPolicy(context, newParentFeatureChangeType, true);\r\n\t\t\t\t\t\t String strNewParentFeatPolicy = (String) mNewParentFeatPolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Type :: \"+ newParentFeatureChangeType +\"\\n\");\r\n\t \t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Policy :: \"+ strNewParentFeatPolicy +\"\\n\");\r\n\r\n\t \t\t\t\t\tString MarketTextPar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");\r\n\t \t\t\t\t String MarketNamePar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");\r\n\t \t\t\t\t \r\n\t \t\t\t\t \r\n\t \t\t\t\t\t \r\n\t \t\t\t\t\t//Set the necessary Text and name attribute values of new Type Parent Feature object which will be lost once type is changed below.\r\n\t \t\t\t\t\t HashMap mapParentFeatAttribute = new HashMap();\r\n\t \t\t\t\t\tif(MarketTextPar!=null && !MarketTextPar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT, MarketTextPar);\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\tif(MarketNamePar!=null && !MarketNamePar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME, MarketNamePar);\r\n\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\t\r\n\t\t\t\t\t\t //change the feature to new type\r\n\t\t\t\t\t\t BusinessObject boParFeatureObj = new DomainObject(strParentFeatureId);\r\n\r\n\t\t\t\t\t\t boParFeatureObj.change(context,\r\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t newParentFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t strNewParentFeatPolicy);\r\n\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+strParentFeatureId +\"\\n\");\r\n\t\t\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newParentFeatureChangeType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + strNewParentFeatPolicy\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\tDomainObject domainParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this id ---->\" + \"\\n\" + mapParentFeatAttribute +\"\\n\\n\");\r\n\t\t\t\t\t\tdomainParentFeat.setAttributeValues(context,mapParentFeatAttribute);\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t String newChildFeatureChangeType =\"\";\r\n\t\t\t\t\t //Get the new Feature Relationship\r\n\t\t\t\t\t String newReltoConnect = \"\";\r\n\r\n\t\t\t\t\t if(strType!=null\r\n\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t\t\t ){\r\n\r\n\t\t\t\t\t\t//Check whether \"To Side\" i.e. Child Feature is CF/LF/MF.. Do the processing\r\n\t\t\t\t\t\t //newChildFeatureChangeType = PropertyUtil.getSchemaProperty(context,strContextUsage);\r\n\t\t\t\t\t\t newChildFeatureChangeType = getSchemaProperty(context,strContextUsage);\r\n\r\n\t\t\t\t\t\t if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_CONFIGURATION_OPTION)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t\t//Varies By,Valid Context,Invalid Context related code\r\n\t\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null\r\n\t\t\t\t\t\t\t\t && (newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_SOFTWARE_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\r\n\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t\t if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_OPTION))){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && strType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(strType!=null\r\n\t\t\t\t\t\t\t\t && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_SOFTWARE_FEATURE)))\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_MANUFACTURING_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t //Set attribute values for \"To Side\" of the \"Feature List To\" relationship i.e. Child Feat Obj\r\n\t\t\t\t\t\t String strSelCriterion = setAttributeValuesOfChildFeatureObj(context,flMap,featObjMap,bConflictSelType);\r\n\r\n \t\t\t\t\t //Do the connection between 2 Feature Objects\r\n\r\n \t\t\t\t\t //restricting the connection if FST = Key-In and Key-In Type = Input\r\n \t\t\t\t\t String strFSTAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n \t\t\t\t\t String strKITAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t\t\t\t if(strKITAttrValue.equals(RANGE_VALUE_INPUT)\r\n \t\t\t\t\t\t && strFSTAttrValue.equals(ConfigurationConstants.RANGE_VALUE_KEY_IN)\r\n \t\t\t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)||\r\n \t\t\t\t\t\t\t newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)))\r\n \t\t\t\t\t {\r\n \t\t\t\t\t\t StringList slPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slSOAttrKIVs = new StringList();\r\n \t\t\t\t\t\t StringList slParentPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slParentSORelIds = new StringList();\r\n\r\n \t\t\t\t\t\t Object objPCIds = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t\t\t\t\t if (objPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slPCIds = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t\t\t\t\t\t} else if (objPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslPCIds.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n\r\n \t\t\t\t\t\t Object objSOAttrKIVs = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t\t\t\t\t if (objSOAttrKIVs instanceof StringList) {\r\n \t\t\t\t\t\t\t slSOAttrKIVs = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n\r\n \t\t\t\t\t\t\t} else if (objSOAttrKIVs instanceof String) {\r\n \t\t\t\t\t\t\t\tslSOAttrKIVs.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t String strParentPCIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t Object objParentPCIds = flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t if(objParentPCIds==null || \"\".equals(objParentPCIds)){\r\n \t\t\t\t\t\t\tstrParentPCIdSel =\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t\tobjParentPCIds = flMap.get(strParentPCIdSel);\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentPCIds = (StringList) flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentPCIds.addElement((String) flMap.get(strParentPCIdSel));\r\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//to[Feature List From].from.to[Feature List To].from.to[Selected Options].from.type\r\n\r\n \t\t\t\t\t\t String strParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t Object objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n \t\t\t\t\t\t if(objParentSORelIds==null || \"\".equals(objParentSORelIds)){\r\n \t\t\t\t\t\t\tstrParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t\t objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentSORelIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentSORelIds = (StringList) flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentSORelIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentSORelIds.addElement((String) flMap.get(strParentSORelIdSel));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t //VJB: TODO: seems a bug, int j is never used\r\n \t\t\t\t\t\t for(int j=0;slPCIds!=null && i<slPCIds.size();i++ )\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t String strPCId = (String)slPCIds.get(i);\r\n \t\t\t\t\t\t\t String strAttrKIV = (String)slSOAttrKIVs.get(i);\r\n \t\t\t\t\t\t\t if(slParentPCIds!=null && slParentPCIds.contains(strPCId))\r\n \t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t for(int k=0;k<slParentPCIds.size();k++)\r\n \t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t String strParentPCId = (String)slParentPCIds.get(k);\r\n \t\t\t\t\t\t\t\t\t if(strParentPCId.equals(strPCId))\r\n \t\t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t\t String strParentSORelId = (String)slParentSORelIds.get(k);\r\n \t\t\t\t\t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strParentSORelId);\r\n \t\t\t\t\t\t\t\t\t\t domRel.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE, strAttrKIV);\r\n \t\t\t\t\t\t\t\t\t\t break;\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\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\t//strNewRelId = connectFeaturesWithNewRel(context,strParentFeatureId,featureObjId,strType,newReltoConnect);\r\n \t\t\t\t\t\tstrNewRelId = connectFeaturesWithNewRel(context,htParentObjData,featureObjId,strType,newReltoConnect);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n\r\n \t\t\t\t\t //Migrate attributes from FL to Rel id\r\n \t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_RULE_TYPE,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\"));\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)\r\n \t\t\t\t\t\t || newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES))){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FIND_NUMBER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_USAGE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"));\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t&& newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ATTRIBUTE_LOGICAL_SELECTION_CRITERIA,strSelCriterion);\r\n \t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t \t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_SELECTION_CRITERIA,strSelCriterion);\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t //mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Mandatory Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t //\"Varies By\" and \"Inactive Varies By\" relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t&&\r\n \t\t\t\t\t\t(newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_VARIES_BY)\r\n \t\t\t\t\t\t ||newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY)))\r\n \t\t\t\t\t {\r\n\t\t\t\t\t\t if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\r\n\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t ((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_YES)){\r\n\r\n\r\n\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_MANDATORY);\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n\t\t\t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\t\t\t\t\t\t }else if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\r\n\t\t\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t\t\t\t\t((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_NO)){\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\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\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewRelId + \"\\n\");\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAttributes +\"\\n\\n\");\r\n \t\t\t\t\t\t domRel.setAttributeValues(context, mapRelAttributes);\r\n \t\t\t\t\t\t //preparing MapList to pass to external migration\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelId\",strNewRelId);\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel1 = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t domRel1.open(context);\r\n \t\t\t\t\t String connectionName = domRel1.getTypeName();\r\n \t\t\t\t\t FLInfoMap.put(\"newRelType\",connectionName);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelName\",newReltoConnect);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\r\n \t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t //Add FL object to delete list\r\n\t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n\r\n\t\t\t\t\t }\r\n \t\t\t\t }else{\r\n \t\t\t\t\t\t //This is hanging FL Object ID need to b removed\r\n \t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\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 {\r\n \t\t\t\t e.printStackTrace();\r\n \t\t\t\t throw new FrameworkException(e.getMessage());\r\n \t\t\t }\r\n \t }\r\n\r\n \t\t\t//Float the connections on FL objects to new Relationships formed\r\n \t\t\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t floatFLConnections(context,FLInfoList);\r\n \t\t\t }\r\n\r\n\r\n \t\t\t//call external migration\r\n \t\t\tMapList customResults = callInterOpMigrations(context, FLInfoList);\r\n \t\t\tIterator itrCustomResults = customResults.iterator();\r\n \t\t\twhile (itrCustomResults.hasNext()) {\r\n Map customResultsMap = (Map)itrCustomResults.next();\r\n \t\t\t\t Integer status = (Integer)customResultsMap.get(\"status\");\r\n\t\t\t\t String failureMessage = (String)customResultsMap.get(\"failureMessage\");\r\n\r\n\t\t\t\t if(status==1)\r\n\t\t\t\t {\r\n\t\t\t\t\t throw new FrameworkException(failureMessage);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\r\n\t\t//Check the \"Varies By\" and \"Effectivity Status\" values\r\n\t\t StringList sLVariesByRelId =new StringList();\r\n\t\t StringList sLEffectivityStatusValue=new StringList();\r\n\t\t StringList sLActiveCntValue=new StringList();\r\n\t\t StringList sLInActiveCntValue=new StringList();\r\n\t\t StringList sLParType=new StringList();\r\n\r\n\r\n\t\tif((StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\")!=null){\r\n\r\n\t\t\t//sLName = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t//sLVariesByRelId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t//sLEffectivityStatusValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t//sLActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t//sLInActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t//sLParentId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\r\n\t\t\t/*Not using the above statements as there is issue in sequence of ids in String list\r\n\t\t\t * coming from above getInfo\r\n\t\t\t * Doing the getInfo again on the given Feature Id\r\n\t\t\t */\r\n\r\n\t\t\tString stFeaId = (String) featObjMap.get(SELECT_ID);\r\n\t\t\tDomainObject domFd = new DomainObject(stFeaId);\r\n\t\t\tStringList objSel = new StringList();\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\t Map MFeatObj = domFd.getInfo(context, objSel);\r\n\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\tsLVariesByRelId = (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\tsLParType= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\tsLEffectivityStatusValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\tsLActiveCntValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\tsLInActiveCntValue=(StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n\t\t}\r\n\r\n\t\tHashMap mapRelAtt = null;\r\n\r\n\t\tfor(int iEffStatusCnt=0;iEffStatusCnt<sLEffectivityStatusValue.size();iEffStatusCnt++){\r\n\t\t\tmapRelAtt = new HashMap();\r\n\t\t\tString strEffectStatus = (String)sLEffectivityStatusValue.get(iEffStatusCnt);\r\n\t\t\tif(strEffectStatus!=null && strEffectStatus.equalsIgnoreCase(ConfigurationConstants.EFFECTIVITY_STATUS_INACTIVE)){\r\n\t\t\t\tDomainRelationship.setType(context, (String)sLVariesByRelId.get(iEffStatusCnt), ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t}\r\n\r\n\r\n\t\t\tString strInActiveCntValue = (String)sLInActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint inactiveCount = Integer.parseInt(strInActiveCntValue);\r\n\r\n\t\t\tString strActiveCntValue = (String)sLActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint activeCount = Integer.parseInt(strActiveCntValue);\r\n\r\n\t\t\tif( inactiveCount==0 && activeCount==0 ){\r\n\t\t\t\tString strParType = (String)sLParType.get(iEffStatusCnt);\r\n\t\t\t\tif(mxType.isOfParentType(context,strParType, ConfigurationConstants.TYPE_PRODUCTS)){\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t}\r\n\t\t\tDomainRelationship domRel = new DomainRelationship((String)sLVariesByRelId.get(iEffStatusCnt));\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+(String)sLVariesByRelId.get(iEffStatusCnt)+ \"\\n\");\r\n\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAtt +\"\\n\\n\");\r\n\t\t\tdomRel.setAttributeValues(context, mapRelAtt);\r\n\t\t}\r\n\r\n\r\n\t\t//Cleanup - delete related Feature List objects on successful migration of Feature\r\n\t\t deleteObjects(context,sLFLToDelete);\r\n\r\n\t\t loadMigratedOids(featureObjId);\r\n\r\n\t }else{ // for those Features which has \"Conflict\" stamp \"Yes\"\r\n\t\t String strCommand = strType + \",\" + strName + \",\" + strRevision + \",\" + strContextUsage+\"\\n\";\r\n\t\t\t writeUnconvertedOID(strCommand, featureObjId);\r\n\t }\r\n\r\n }", "@SuppressWarnings(\"unchecked\")\n @Test\n public void shouldPrependBeforeScenarioAndAppendAfterScenarioAnnotatedSteps() {\n CandidateSteps steps1 = mock(Steps.class);\n CandidateSteps steps2 = mock(Steps.class);\n Step stepBefore1 = mock(Step.class);\n Step stepBefore2 = mock(Step.class);\n Step stepAfter1 = mock(Step.class);\n Step stepAfter2 = mock(Step.class);\n\n when(steps1.runBeforeScenario()).thenReturn(asList(stepBefore1));\n when(steps2.runBeforeScenario()).thenReturn(asList(stepBefore2));\n when(steps1.runAfterScenario()).thenReturn(asList(stepAfter1));\n when(steps2.runAfterScenario()).thenReturn(asList(stepAfter2));\n\n // And which have a 'normal' step that matches our core\n CandidateStep candidate = mock(CandidateStep.class);\n Step normalStep = mock(Step.class);\n\n when(candidate.matches(\"my step\")).thenReturn(true);\n when(candidate.createFrom(tableRow, \"my step\")).thenReturn(normalStep);\n when(steps1.getSteps()).thenReturn(new CandidateStep[] { candidate });\n when(steps2.getSteps()).thenReturn(new CandidateStep[] {});\n\n // When we create the series of steps for the core\n MarkUnmatchedStepsAsPending stepCreator = new MarkUnmatchedStepsAsPending();\n List<Step> executableSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Scenario(asList(\"my step\")), tableRow\n );\n\n // Then all before and after steps should be added\n ensureThat(executableSteps, equalTo(asList(stepBefore2, stepBefore1, normalStep, stepAfter1, stepAfter2)));\n }", "public interface NormalStep extends Step { // <-- [user code injected with eMoflon]\n\n\t// [user code injected with eMoflon] -->\n}", "public boolean addStep(ITemplateStep stepToAdd, ITemplateStep stepBefore);", "@Test(priority = 66)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"BUY GOODS USING MPESA\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"BUY GOODS AND SERVICES\");\t\r\n\tSystem.out.println(\"*************************(1)Running Buy Goods Using MPESA Testcases***********************************\");\r\n\r\n}", "@Override\n public void scenario(gherkin.formatter.model.Scenario scenario) {\n }", "public void addToSteps(entity.LoadStep element);", "public InfoLiveTollsStepDefinition() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void step() {\n\t\t\n\t}", "@Override\n\tpublic void step() {\n\t\t\n\t}", "public void testStep() {\n\n DT_TractographyImage crossing = Images.getCrossing();\n\n FACT_FibreTracker tracker = new FACT_FibreTracker(crossing);\n\n Vector3D[] pds = crossing.getPDs(1,1,1);\n\n Vector3D step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, true);\n\n assertEquals(1.0, pds[0].dot(step.normalized()), 1E-8);\n\n assertEquals(Images.xVoxelDim / 2.0, step.mod(), 0.05);\n \n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, false);\n\n assertEquals(-1.0, pds[0].dot(step.normalized()), 1E-8);\n\n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 1, true);\n\n assertEquals(1.0, pds[1].dot(step.normalized()), 1E-8);\n\n\n for (int i = 0; i < 2; i++) {\n\n step = tracker.getNextStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), new Vector3D(pds[i].x + 0.01, pds[i].y + 0.02, pds[i].z + 0.03).normalized());\n\n assertEquals(1.0, pds[i].dot(step.normalized()), 1E-8);\n\n }\n\n \n }", "@Test(priority = 75)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"END OF BUY GOODS USING MPESA TILL TESTCASES\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void End_Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"*************************End of buy Goods Using Mpesa Test cases***********************************\");\r\n\r\n}", "private void saveInput(BBSStep aStep) {\n BBSStepData aStepData = BBSStepDataManager.getInstance().getStepData(aStep.getName());\n BBSStepData inheritedData = BBSStepDataManager.getInstance().getInheritedStepData(aStep);\n \n //normal sources\n ArrayList<String> sources = createList(stepExplorerNSourcesList);\n if(this.useAllSourcesCheckbox.isSelected()){\n sources = new ArrayList<>();\n }\n if(sources.equals(inheritedData.getSources())){\n aStepData.setSources(null);\n }else{\n if(this.useAllSourcesCheckbox.isSelected()){\n aStepData.setSources(new ArrayList<String>());\n }else{\n if(sources.size()>0){\n aStepData.setSources(new ArrayList<String>());\n }else{\n aStepData.setSources(null);\n }\n \n }\n }\n if(aStepData.getSources()!=null){\n if(!sources.equals(aStepData.getSources())){\n aStepData.setSources(sources);\n }\n }\n \n //instrument model \n \n ArrayList<String> imodels = createList(stepExplorerInstrumentModelList);\n if(this.noInstrumentModelCheckbox.isSelected()){\n imodels = new ArrayList<>();\n }\n if(imodels.equals(inheritedData.getInstrumentModel())){\n aStepData.setInstrumentModel(null);\n }else{\n if(this.noInstrumentModelCheckbox.isSelected()){\n aStepData.setInstrumentModel(new ArrayList<String>());\n }else{\n if(imodels.size()>0){\n aStepData.setInstrumentModel(new ArrayList<String>());\n }else{\n aStepData.setInstrumentModel(null);\n }\n \n }\n }\n if(aStepData.getInstrumentModel()!=null){\n if(!imodels.equals(aStepData.getInstrumentModel())){\n aStepData.setInstrumentModel(imodels);\n }\n }\n \n/* //instrument model \n \n ArrayList<String> imodels = createArrayListFromSelectionList(stepExplorerInstrumentModelList);\n if(this.noInstrumentModelCheckbox.isSelected()){\n imodels = new ArrayList<String>();\n }\n if(imodels.equals(inheritedData.getInstrumentModel())){\n aStepData.setInstrumentModel(null);\n }else{\n if(this.noInstrumentModelCheckbox.isSelected()){\n aStepData.setInstrumentModel(new ArrayList<String>());\n }else{\n if(imodels.size()>0){\n aStepData.setInstrumentModel(new ArrayList<String>());\n }else{\n aStepData.setInstrumentModel(null);\n }\n \n }\n }\n if(aStepData.getInstrumentModel()!=null){\n if(!imodels.equals(aStepData.getInstrumentModel())){\n aStepData.setInstrumentModel(imodels);\n }\n } \n*/ \n\n//extra sources\n// ArrayList<String> esources = createList(stepExplorerESourcesList);\n// if(!this.useExtraSourcesCheckbox.isSelected()){\n// esources = new ArrayList<String>();\n// }\n// if(esources.equals(inheritedData.getExtraSources())){\n// aStepData.setExtraSources(null);\n// }else{\n// if(!this.useExtraSourcesCheckbox.isSelected()){\n// aStepData.setExtraSources(new ArrayList<String>());\n// }else{\n// if(esources.size()>0){\n// aStepData.setExtraSources(new ArrayList<String>());\n// }else{\n// aStepData.setExtraSources(null);\n// }\n \n// }\n// }\n// if(aStepData.getExtraSources()!=null){\n// if(!esources.equals(aStepData.getExtraSources())){\n// aStepData.setExtraSources(esources);\n// }\n// }\n //output data column\n String outputdata = stepExplorerOutputDataText.getText();\n if(this.writeOutputCheckbox.isSelected()){\n outputdata = \"\";\n }\n if(outputdata.equals(inheritedData.getOutputDataColumn())){\n aStepData.setOutputDataColumn(null);\n }else{\n if(this.writeOutputCheckbox.isSelected()){\n aStepData.setOutputDataColumn(\"\");\n }else{\n if(!outputdata.equals(\"\")){\n aStepData.setOutputDataColumn(\"\");\n }else{\n aStepData.setOutputDataColumn(null);\n }\n \n }\n }\n if(aStepData.getOutputDataColumn()!=null){\n if(!outputdata.equals(aStepData.getOutputDataColumn())){\n aStepData.setOutputDataColumn(outputdata);\n }\n }\n \n\n \n //Integration\n //Time\n if(this.integrationTimeText.getText().equals(\"\")){\n aStepData.setIntegrationTime(-1.0);\n }else{\n if(Double.parseDouble(integrationTimeText.getText()) == inheritedData.getIntegrationTime()){\n aStepData.setIntegrationTime(-1.0);\n }else{\n aStepData.setIntegrationTime(0.0);\n }\n }\n if(aStepData.getIntegrationTime()!=-1.0){\n if(Double.parseDouble(integrationTimeText.getText()) != aStepData.getIntegrationTime()){\n aStepData.setIntegrationTime(Double.parseDouble(integrationTimeText.getText()));\n }\n }\n //Frequency\n if(this.integrationFrequencyText.getText().equals(\"\")){\n aStepData.setIntegrationFrequency(-1.0);\n }else{\n if(Double.parseDouble(integrationFrequencyText.getText()) == inheritedData.getIntegrationFrequency()){\n aStepData.setIntegrationFrequency(-1.0);\n }else{\n aStepData.setIntegrationFrequency(0.0);\n }\n }\n if(aStepData.getIntegrationFrequency()!=-1.0){\n if(Double.parseDouble(integrationFrequencyText.getText()) != aStepData.getIntegrationFrequency()){\n aStepData.setIntegrationFrequency(Double.parseDouble(integrationFrequencyText.getText()));\n }\n }\n \n //Correlation\n //Type\n if(this.createArrayListFromSelectionList(this.stepExplorerCorrelationTypeList).isEmpty()){\n aStepData.setCorrelationType(null);\n }else{\n if(createArrayListFromSelectionList(stepExplorerCorrelationTypeList).equals(inheritedData.getCorrelationType())){\n aStepData.setCorrelationType(null);\n }else{\n aStepData.setCorrelationType(new ArrayList<String>());\n }\n }\n if(aStepData.getCorrelationType()!=null){\n if(!createArrayListFromSelectionList(stepExplorerCorrelationTypeList).equals(aStepData.getCorrelationType())){\n aStepData.setCorrelationType(createArrayListFromSelectionList(stepExplorerCorrelationTypeList));\n }\n }\n //Selection\n String selectedCSelection = null;\n if(this.stepExplorerCorrelationSelectionBox.getSelectedItem() != null){\n selectedCSelection = this.stepExplorerCorrelationSelectionBox.getSelectedItem().toString();\n }\n if(selectedCSelection == null){\n aStepData.setCorrelationSelection(null);\n }else{\n if(selectedCSelection.equals(\"N/A\")){\n aStepData.setCorrelationSelection(null);\n }else{\n if(selectedCSelection.equals(inheritedData.getCorrelationSelection())){\n aStepData.setCorrelationSelection(null);\n }else{\n aStepData.setCorrelationSelection(\"Generated by BBS GUI\");\n }\n }\n }\n if(aStepData.getCorrelationSelection()!=null){\n if(selectedCSelection!= null && !selectedCSelection.equals(aStepData.getCorrelationSelection())){\n aStepData.setCorrelationSelection(selectedCSelection);\n }\n }\n \n //baseline selection\n ArrayList<ArrayList<String>> baselines = createArrayListsFromBaselineTable();\n ArrayList<String> station1 = baselines.get(0);\n ArrayList<String> station2 = baselines.get(1);\n if(this.baselineUseAllCheckbox.isSelected()){\n station1 = new ArrayList<>();\n station2 = new ArrayList<>();\n }\n if(station1.equals(inheritedData.getStation1Selection()) && station2.equals(inheritedData.getStation2Selection())){\n aStepData.setStation1Selection(null);\n }else{\n if(this.baselineUseAllCheckbox.isSelected()){\n aStepData.setStation1Selection(new ArrayList<String>());\n }else{\n if(station1.size()>0 && station2.size()>0){\n aStepData.setStation1Selection(new ArrayList<String>());\n }else{\n aStepData.setStation1Selection(null);\n }\n \n }\n \n }\n \n if(station1.equals(inheritedData.getStation1Selection()) && station2.equals(inheritedData.getStation2Selection())){\n aStepData.setStation2Selection(null);\n }else{\n if(this.baselineUseAllCheckbox.isSelected()){\n aStepData.setStation2Selection(new ArrayList<String>());\n }else{\n if(station1.size()>0 && station2.size()>0){\n aStepData.setStation2Selection(new ArrayList<String>());\n }else{\n aStepData.setStation2Selection(null);\n }\n \n }\n }\n \n if(aStepData.getStation1Selection()!=null){\n if(!station1.equals(aStepData.getStation1Selection())){\n aStepData.setStation1Selection(station1);\n }\n }\n if(aStepData.getStation2Selection()!=null){\n if(!station2.equals(aStepData.getStation2Selection())){\n aStepData.setStation2Selection(station2);\n }\n }\n \n //Operation\n \n //name\n String selectedOSelection = null;\n if(this.stepExplorerOperationComboBox.getSelectedItem() != null){\n selectedOSelection = this.stepExplorerOperationComboBox.getSelectedItem().toString();\n }\n if(selectedOSelection == null){\n aStepData.setOperationName(null);\n \n }else{\n if(selectedOSelection.equals(\"NOT DEFINED\")){\n aStepData.setOperationName(null);\n }else{\n if(selectedOSelection.equals(inheritedData.getOperationName())){\n aStepData.setOperationName(null);\n }else{\n aStepData.setOperationName(\"Generated by BBS GUI\");\n }\n }\n }\n if(aStepData.getOperationName()!=null){\n if(selectedOSelection!= null && !selectedOSelection.equals(aStepData.getOperationName())){\n aStepData.setOperationName(selectedOSelection);\n }\n }\n //fetch variables from operation attributes panel\n if(!selectedOSelection.equals(\"NOT DEFINED\") && currentStepOperationsPanel != null){\n if(this.currentStepOperationsPanel.getBBSStepOperationAttributes()!=null){\n \n HashMap<String,String> valuesFromForm = currentStepOperationsPanel.getBBSStepOperationAttributes();\n \n HashMap<String,String> oldValuesFromStep = aStepData.getOperationAttributes();\n \n if(oldValuesFromStep == null) oldValuesFromStep = new HashMap<>();\n \n for(String aKey : valuesFromForm.keySet()){\n if(oldValuesFromStep.containsKey(aKey)){\n if(valuesFromForm.get(aKey) == null){\n oldValuesFromStep.put(aKey,null);\n }else{\n if(valuesFromForm.get(aKey).equals(inheritedData.getOperationAttribute(aKey))){\n oldValuesFromStep.put(aKey,null);\n }else{\n oldValuesFromStep.put(aKey,\"Generated by BBS GUI\");\n }\n }\n if(oldValuesFromStep.get(aKey) != null){\n if(!valuesFromForm.get(aKey).equals(oldValuesFromStep.get(aKey))){\n oldValuesFromStep.put(aKey,valuesFromForm.get(aKey));\n aStepData.setOperationName(selectedOSelection);\n }\n }\n }else{\n String newValue = valuesFromForm.get(aKey);\n String inheritedValue = inheritedData.getOperationAttribute(aKey);\n if(newValue!= null && newValue.equals(inheritedValue)){\n oldValuesFromStep.put(aKey,null);\n }else{\n oldValuesFromStep.put(aKey,valuesFromForm.get(aKey));\n aStepData.setOperationName(selectedOSelection);\n }\n }\n }\n aStepData.setOperationAttributes(oldValuesFromStep);\n }\n }else if(currentStepOperationsPanel == null){\n aStepData.setOperationAttributes(null);\n }\n }", "Feature update(Feature feature);", "@Override\n\tpublic void step() {\n\t}", "@Override\n\tpublic void step() {\n\t}", "@Given(\"prepare to Analysis\")\npublic void preanalysis(){\n}", "public InputFewStepsFactoryImpl() {\n\t\tsuper();\n\t}", "void addFeature(Feature feature);", "protected void runAfterStep() {}", "public ProofStep [ ] getSteps ( ) ;", "@Override\r\n public void afterOriginalStep(TestCaseRunner testRunner, SecurityTestRunContext runContext,\r\n SecurityTestStepResult result) {\n\r\n }", "@Test\r\n\tpublic void testCheck_featureBeginEndPositionEqual1() {\r\n\t\tint beginN = 40;\r\n\t\tboolean removeall = true;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ADFSGDFHGHJK\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 45,\r\n\t\t\t\t(long) 45));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tentry.addFeature(feature1);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN, removeall).size() == 0);\r\n\t}", "@Test\r\n\tpublic void testCheck_featureBeginEndPositionEqual2() {\r\n\t\tint beginN = 40;\r\n\t\tboolean removeall = false;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ADFSGDFHGHJK\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 45,\r\n\t\t\t\t(long) 45));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tentry.addFeature(feature1);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN, removeall).size() == 1);\r\n\t}", "public String getStepLine()\n\t{\n\t\tString stepString = new String(\"#\"+this.stepLineNumber+\"= \");\n\t\tstepString = stepString.concat(\"IFCDOORLININGPROPERTIES(\");\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"GlobalId\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.GlobalId != null)\t\tstepString = stepString.concat(((RootInterface)this.GlobalId).getStepParameter(IfcGloballyUniqueId.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"OwnerHistory\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.OwnerHistory != null)\t\tstepString = stepString.concat(((RootInterface)this.OwnerHistory).getStepParameter(IfcOwnerHistory.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"Name\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.Name != null)\t\tstepString = stepString.concat(((RootInterface)this.Name).getStepParameter(IfcLabel.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"Description\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.Description != null)\t\tstepString = stepString.concat(((RootInterface)this.Description).getStepParameter(IfcText.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"LiningDepth\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.LiningDepth != null)\t\tstepString = stepString.concat(((RootInterface)this.LiningDepth).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"LiningThickness\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.LiningThickness != null)\t\tstepString = stepString.concat(((RootInterface)this.LiningThickness).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"ThresholdDepth\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.ThresholdDepth != null)\t\tstepString = stepString.concat(((RootInterface)this.ThresholdDepth).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"ThresholdThickness\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.ThresholdThickness != null)\t\tstepString = stepString.concat(((RootInterface)this.ThresholdThickness).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"TransomThickness\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.TransomThickness != null)\t\tstepString = stepString.concat(((RootInterface)this.TransomThickness).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"TransomOffset\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.TransomOffset != null)\t\tstepString = stepString.concat(((RootInterface)this.TransomOffset).getStepParameter(IfcLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"LiningOffset\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.LiningOffset != null)\t\tstepString = stepString.concat(((RootInterface)this.LiningOffset).getStepParameter(IfcLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"ThresholdOffset\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.ThresholdOffset != null)\t\tstepString = stepString.concat(((RootInterface)this.ThresholdOffset).getStepParameter(IfcLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"CasingThickness\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.CasingThickness != null)\t\tstepString = stepString.concat(((RootInterface)this.CasingThickness).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"CasingDepth\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.CasingDepth != null)\t\tstepString = stepString.concat(((RootInterface)this.CasingDepth).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"ShapeAspectStyle\")) stepString = stepString.concat(\"*);\");\n\t\telse{\n\t\tif(this.ShapeAspectStyle != null)\t\tstepString = stepString.concat(((RootInterface)this.ShapeAspectStyle).getStepParameter(IfcShapeAspect.class.isInterface())+\");\");\n\t\telse\t\tstepString = stepString.concat(\"$);\");\n\t\t}\n\t\treturn stepString;\n\t}", "public StepInterface getOriginalStep()\n {\n return this.step;\n }", "private Step createScreenShotStep(String tag, String featureName, String scenarioName) {\n tag = tag.replaceAll(\"\\\"\", \"\").replaceAll(\" \", \"_\").replaceAll(\"-\",\"_\");//using previous Then statement as image tag. remove space and ' \" '\n return new Step(null, \"And \", \"take screenshot \\\"\"+tag+\"\\\" in feature file \\\"\"+featureName+\"\\\" with scenario \\\"\"+scenarioName+\"\\\"\", -1, null, null);\n }", "public boolean addStep(ITemplateStep step);", "public void addStep(BooleanSupplier step) {\n _steps.add(step);\n }", "@Override\n public boolean step() {\n return false;\n }", "@Before\n public void beforeScenario() {\n }", "private void updatingOptionalFeature(ArrayList<String>\tOnlyInLeft, ArrayList<String>\tOnlyInRight, Model splModel, Model newModel){\r\n//STEP 1 ---------------------------------------------------------------------------------------------\r\n\t\t//Feature optionalFeature = null;\t\t\r\n\t\t//New 02/12/201/\r\n\t\tFeature newModelOptionalFeature = null;\r\n\t\tFeature newVariant = null;\r\n\t\tConstraint constraint = null;\r\n\t\tnewVariant = new Feature(newModel.getId()+\"_Variant\", \"variant\", this.alternativeFeatureGroup.get(0).getId());\r\n\t\tthis.addVariant(newVariant);\r\n\t\t//-New 02/12/201/\r\n\t\t\r\n\t\tif(OnlyInLeft.size()==0){\r\n\t\t}else{\r\n\t\t\tnewModelOptionalFeature= new Feature(\"f\"+(this.optionalFeatures.size()+1) , \"optional\", this.getBase().getName(), OnlyInLeft);\r\n\t\t\tthis.optionalFeatures.add(newModelOptionalFeature);\r\n\t\t\t\r\n\t\t\t//New 02/12/201/\r\n\t\t\tfor(int i = 0; i < this.getVariants().getFeatures().size();i++){\r\n\t\t\t\tFeature variant = this.getVariants().getFeatures().get(i);\r\n\t\t\t\tif(variant==newVariant){\r\n\t\t\t\t}else{\r\n\t\t\t\t\tconstraint = new Constraint(variant.getName(), \"\\u00AC\"+newModelOptionalFeature.getName());\r\n\t\t\t\t\t//addConstraint(constraint);\r\n\t\t\t\t}//if(variant==newVariant){\r\n\t\t\t\t\r\n\t\t\t}//for(int i = 0; i <this.getVariants().getFeatures().size();i++){\t\r\n\t\t\t//-New 02/12/201/\r\n\t\t\tconstraint = new Constraint(newVariant.getName(), newModelOptionalFeature.getName());\r\n\t\t\t//this.constraints.add(constraint);\r\n\t\t\taddConstraint(constraint);\r\n\t\t\t\r\n\t\t\t//System.out.println(\" *** \"+this.constraints.size());\r\n\t\t\t//System.out.println(\" ... \"+constraint.toString());\r\n\t\t\t\r\n\t\t}//if(OnlyInLeft.size()==0){\r\n\r\n//STEP 2 ---------------------------------------------------------------------------------------------\r\n\t\t\r\n\t\tFeature optionalFeature = null;\r\n\t\t\r\n\t\tArrayList<String> elts = MyString.intersection(OnlyInRight, this.getBase().getElements());\r\n\t\tif(elts.size()==0){\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tthis.getBase().setElements(MyString.minus(this.getBase().getElements(), elts));\r\n\t\t\toptionalFeature= new Feature(\"f\"+(this.optionalFeatures.size()+1) , \"optional\", this.getBase().getName(), elts);\r\n\t\t\tthis.optionalFeatures.add(optionalFeature);\r\n\t\t\t\r\n\t\t\t//OnlyInRight = MyString.minus(OnlyInRight, elts);\r\n\t\t\t\r\n\t\t\t//New 03/12/2018\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < this.getVariants().getFeatures().size();i++){\r\n\t\t\t\tFeature variant = this.getVariants().getFeatures().get(i);\r\n\t\t\t\tif(variant==newVariant){\r\n\t\t\t\t}else{\r\n\t\t\t\t\tconstraint = new Constraint(variant.getName(), optionalFeature.getName());\r\n\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t}//if(variant==newVariant){\r\n\t\t\t}//for(int i = 0; i <this.getVariants().getFeatures().size();i++){\r\n\t\t\t\r\n\t\t\tconstraint = new Constraint(newVariant.getName(), \"\\u00AC\" + optionalFeature.getName());\r\n\t\t\t//this.constraints.add(constraint);\r\n\t\t\t//addConstraint(constraint);\r\n\t\t\t//-New 03/12/2018\r\n\t\t\t\r\n\t\t\t//New 03/12/2018\r\n\t\t\t//update parent feature of feature groups\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++){\r\n\t\t\t\tFeatureGroup fg = this.getAlternativeFeatureGroup().get(i);\r\n\t\t\t\t\r\n\t\t\t\tif(fg.getParent().equals(this.getBase().getName())){\r\n\t\t\t\t\t\r\n\t\t\t\t\tString elt = fg.getFeatures().get(0).getElements().get(0); \r\n\t\t\t\t\tString parentElt = splModel.getParent(splModel.getElement(elt)).getId();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(optionalFeature.contains(parentElt)){\r\n\t\t\t\t\t\t//System.out.println(\"%%%%%%%%%%%%% + \"+parentElt);\r\n\t\t\t\t\t\tfg.setParent(optionalFeature.getName());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}//for(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++){\r\n\t\t\t\r\n\t\t\t//-New 03/12/2018\r\n\t\t}//if(elts.size()==0){\r\n\t\t\r\n//STEP 3 ---------------------------------------------------------------------------------------------\r\n\r\n\t\t\r\n\t\tint i = 0;\r\n\t\twhile( i<this.optionalFeatures.size()){ //New 03/12/02018\r\n\t\t\tFeature f = this.optionalFeatures.get(i);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(f==newModelOptionalFeature){\r\n\t\t\t}else{\r\n\t\t\t\telts = f.getElements();\r\n\t\t\t\tArrayList<String> elts1 = MyString.intersection(OnlyInRight, elts);\r\n\t\t\t\tif(elts1.size()==0 ){\r\n\t\t\t\t\t//SUP\r\n\t\t\t\t\t//New 03/12/02018\r\n\t\t\t\t\tconstraint = new Constraint(newVariant.getName(), f.getName());\r\n\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t\t//-New 03/12/02018\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif( MyString.contains(OnlyInRight, elts) ){\r\n\t\t\t\t\t\t//New 03/12/02018\r\n\t\t\t\t\t\t//OnlyInRight = MyString.minus(OnlyInRight, elts); \r\n\t\t\t\t\t\tconstraint = new Constraint(newVariant.getName(), \"\\u00AC\"+f.getName());\r\n\t\t\t\t\t\t//addConstraint(constraint);\r\n\t\t\t\t\t\t//-New 03/12/02018\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\toptionalFeature= new Feature(\"f\"+(this.optionalFeatures.size()+1) , \"optional\", this.getBase().getName(), elts1);\r\n\t\t\t\t\t\tthis.optionalFeatures.add(optionalFeature);\r\n\t\t\t\t\t\tf.setElements(MyString.minus(elts, elts1));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//OnlyInRight = MyString.minus(OnlyInRight, elts1);\r\n\r\n\t\t\t\t\t\t//New 09-01-2019\r\n\t\t\t\t\t\t//OnlyInRight = elts; \r\n\t\t\t\t\t\t//--------New 09-01-2019\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int j = 0; j < this.getVariants().getFeatures().size(); j++){\r\n\t\t\t\t\t\t\tFeature variant = this.getVariants().getFeatures().get(j);\r\n\t\t\t\t\t\t\tif(variant==newVariant){\r\n\t\t\t\t\t\t\t}else{ \r\n\t\t\t\t\t\t\t\tif(Constraint.contains(this.constraints, variant.getName(), f.getName(), \"implies\") ){\r\n\t\t\t\t\t\t\t\t\tconstraint = new Constraint(variant.getName(), optionalFeature.getName());\r\n\t\t\t\t\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}//if(variant==newVariant){\r\n\t\t\t\t\t\t}//for(int j = 0; j < this.getVariants().getFeatures().size(); j++){\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\tconstraint = new Constraint(newVariant.getName(), \"\\u00AC\"+optionalFeature.getName());\r\n\t\t\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\t\t\t//addConstraint(constraint);\r\n\t\t\t\t\t\t\tconstraint = new Constraint(newVariant.getName(), f.getName());\r\n\t\t\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//-New 03/12/02018\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//New 03/12/2018\r\n\t\t\t\t\t\t\t//update parent feature of feature groups\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\tfor(int j = 1; j < this.getAlternativeFeatureGroup().size(); j++){\r\n\t\t\t\t\t\t\t\tFeatureGroup fg = this.getAlternativeFeatureGroup().get(j);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(fg.getParent().equals(f.getName())){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tString elt = fg.getFeatures().get(0).getElements().get(0); \r\n\t\t\t\t\t\t\t\t\tString parentElt = splModel.getParent(splModel.getElement(elt)).getId();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif(optionalFeature.contains(parentElt)){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tfg.setParent(optionalFeature.getName());\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}//for(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//-New 03/12/2018\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//if( MyString.contains(OnlyInRight, f.getElements()) ){\r\n\t\t\t\t}//if( elts1.size()==0 ){\r\n\t\t\t\r\n\t\t\t}//if(f==newModelOptionalFeature){ New 03/12/02018\r\n\t\t\ti++;\r\n\t\t}//while(){\r\n\t\t\r\n\t\r\n\t\t\r\n\t\tthis.updatingAlternativeFeatures(splModel, newModelOptionalFeature, newVariant, OnlyInRight, newModel);\r\n\t}", "@Override\n public void onStepStopping(FlowStep flowStep) {\n }", "public void removeFromSteps(entity.LoadStep element);", "@Test(groups = \"noDevBuild\")\n public void checkFeatureCode() {\n browser.reportLinkLog(\"checkFeatureCode\");\n featurePages\n .setNewFeatureBtn(\"publishable\")\n .setNewFeatureName(groupName)\n .setNewFeatureCode(groupName)\n .setNewFeatureDescription(\"Test 1\")\n .setNewFeatureSavebtn();\n portalPages\n .setTopNavLink(topnav);\n featurePages\n .setNewFeatureBtn(\"publishable\")\n .setNewFeatureName(groupName)\n .setNewFeatureCode(groupName)\n .setNewFeatureDescription(\"Test 1\")\n .setNewFeatureSavebtn();\n browser.waitForId(\"helpText_duplicate_featureCode\");\n }", "java.lang.String getNextStep();", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();", "private void _addStep(PlanGraphStep stepToAdd, int currentLevel) {\n\t\t\n\t\tsteps.get(currentLevel).add(stepToAdd);\n\t\tfacts.get(currentLevel).addAll(stepToAdd.getChildNodes());\n\t\tcheckSupportedPreconditions(stepToAdd, currentLevel);\n\t\tpropagateAddStep(stepToAdd, currentLevel);\n\t}", "@Override\r\n\tpublic void addStepHandler(StepHandler handler) {\n\t\t\r\n\t}", "public Step add(Step step) throws SecurityException, IllegalStateException, NotSupportedException, SystemException, RollbackException, HeuristicMixedException, HeuristicRollbackException {\n\t\tSystem.out.println(step);\r\n\t\tcreate(step);\r\n\t\t\r\n\t\t//getEntityManager().createNativeQuery(\"Insert into step values(\"+step.getName()+\");\", Step.class).executeUpdate();\r\n\t\t//getEntityManager().createQuery(\"Insert into step values(\"+step.getName()+\");\", Step.class).executeUpdate();\r\n\t\treturn step;\r\n\t}", "public void chg() {\n currentChangeStep = 3;\n }", "public ITemplateStep removeStep(ITemplateStep stepToRemove);", "Feature createFeature();", "@Override\n public void feature(gherkin.formatter.model.Feature feature) {\n setTagStatementAttributes(testedFeature, feature);\n }", "@Override\n\tprotected void setProfile(List<Step> arg0, List<Step> arg1) {\n\t\t\n\t}", "@Given(\"prepare to Access & exfiltrate data within the victim's security zone\")\npublic void preaccessexfiltratedatawithinthevictimssecurityzone(){\n}", "@Test\r\n\tpublic void testCheck_featureLocationBeginandEndwithNs() {\r\n\t\tint beginN = 10;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 1, (long) 8));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tFeature feature2 = featureFactory.createFeature(\"feature2\");\r\n\t\tOrder<Location> order2 = new Order<Location>();\r\n\t\torder2.addLocation(locationFactory.createLocalRange((long) 40,\r\n\t\t\t\t(long) 46));\r\n\t\tfeature2.setLocations(order2);\r\n\t\tentry.addFeature(feature1);\r\n\t\tentry.addFeature(feature2);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN,false).size() ==2);\r\n\t\t}", "public void processAfterWrongTrace(LocationLine currentLine) {\n\t\t Set<String> currentPatchNameSet = currentLine.getPatchList().stream().filter(Objects::nonNull)\n\t .map(PatchFile::getPatchName).collect(Collectors.toCollection(LinkedHashSet::new));\n\t candidatePatchList.removeIf(patchFile -> currentPatchNameSet.contains(patchFile.getPatchName()));\n\t currentLine.setStateType(StateType.NO);\n\t}", "public void addStep(MRStep mrStep) {\n\t\tfor(Map.Entry<String, MRInput> binding: mrStep.bindings.entrySet()) {\n\t\t\tbind(mrStep.name + \".\" + binding.getKey(), binding.getValue().getId());\n\t\t}\n\t\t\n\t\tint param = 0;\n\t\tfor(OperativeStep st: mrStep.extraDependencies) {\n\t\t\tbind(mrStep.name + \".extradep\" + param, st.name + \".output\");\n\t\t\tparam++;\n\t\t}\n\t\t\n\t\tadd(mrStep.getStep());\n\t}", "@Given(\"I come in to the bar\")\r\n public void i_come_in_to_the_bar() {\n System.out.println(\"@Given: Entro al bar\");\r\n //throw new io.cucumber.java.PendingException();\r\n }", "@Override\n public StepResult undoStep(FlightContext context) throws InterruptedException {\n return StepResult.getStepResultSuccess();\n }", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "public static void removeTheGivenStep(StepType step){\n\t\t\n\t\tPathConnectionType predecessor = step.getPredecessor(); \n\t\tif (predecessor instanceof StartType){\n\t\t\t//We want to get rid of this step and the next sequence\n\t\t\t\n\t\t\tPathConnectionType successor = step.getSuccessor(); \n\t\t\tStepType stepAfter = successor.getTarget().get(0);\n\t\t\t\n\t\t\tEList<StepType> predecessorNewTargets = new BasicEList<>(); \n\t\t\tpredecessorNewTargets.add(stepAfter);\n\t\t\tpredecessor.setTarget(predecessorNewTargets);\n\t\t\t\n\t\t\tstepAfter.setPredecessor(predecessor);\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\t//The predecessor is assumed to be a sequence\n\t\t\t//We want to get rid of the previous sequence and this step.\n\t\t\tStepType stepBefore = predecessor.getSource().get(0); \n\t\t\t\n\t\t\tPathConnectionType successor = step.getSuccessor(); \n\t\t\t\n\t\t\tstepBefore.setSuccessor(successor); \n\t\t\t\n\t\t\tEList<StepType> sucessorNewSources = new BasicEList<>(); \n\t\t\tsucessorNewSources.add(stepBefore);\n\t\t\tsuccessor.setSource(sucessorNewSources);\n\t\t}\n\t\t\n\t\t//set predecessor and successor to null of the original step b/c it's no longer connected.\n\t\tSystem.out.println(\"Removing step id \"+ step.getId() + \" from scenario path\"); \n\t\tstep.setPredecessor(null);\n\t\tstep.setSuccessor(null);\n\t\t\n\t}", "protected abstract R runStep();", "public static void Feature1() {\r\n\t\tSystem.out.println(\"New Feature 2010: is now automatic\");\r\n\t}", "@Before\n\tpublic void keepScenario(Scenario scenario) {\n\t\tthis.scenario=scenario;\n\t}", "@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }", "void setFeatures(Features f) throws Exception;", "public void setStep(int step)\n {\n this.step = step;\n this.stepSpecified = true;\n }", "private void HabVue(Feature feat)\n {\n StyleMap styleMap = feat.createAndAddStyleMap();\n\n //Create the style for normal edge.\n Pair pNormal = styleMap.createAndAddPair();\n Style normalStyle = pNormal.createAndSetStyle();\n pNormal.setKey(StyleState.NORMAL);\n\n LineStyle normalLineStyle =\n normalStyle.createAndSetLineStyle();\n normalLineStyle.setColor(\"YELLOW\");\n normalLineStyle.setWidth(2);\n\n\n //Create the style for highlighted edge.\n Pair pHighlight = styleMap.createAndAddPair();\n Style highlightStyle = pHighlight.createAndSetStyle();\n pHighlight.setKey(StyleState.HIGHLIGHT);\n\n LineStyle highlightLineStyle =\n highlightStyle.createAndSetLineStyle();\n highlightLineStyle.setColor(\"WHITE\");\n \n highlightLineStyle.setWidth(1);\n\n }", "@Override\n public void onStepSelected(Step step) {\n\n mStep = step;\n mSelectedIndex = mRecipe.getStepIndex(mStep);\n if (mSelectedIndex != -1) {\n\n if (mTwoPane) {\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n StepDetailFragment stepDetailFragment =\n StepDetailFragment.newInstance(mRecipe.getSteps().get(mSelectedIndex));\n\n // replace detail fragment\n fragmentManager.beginTransaction()\n .replace(R.id.step_detail_container, stepDetailFragment)\n .commit();\n } else {\n\n // phone scenario\n // The StepDetailActivity takes the entire list of steps to enable navigation\n //between steps without popping back to this activity.\n Intent intent = StepDetailActivity.newIntent(this,\n mRecipe.getSteps(), mSelectedIndex);\n\n // The result is the list of steps with updated check box states corresponding to user\n // input when working with individual steps\n startActivityForResult(intent, STEP_UPDATED_CODE);\n }\n }\n }", "@Override\n public void setFeature(String feature) {\n this.exteriorFeature = feature;\n }", "@Override\n public long superstep() {\n return context.superstep();\n }", "@Given(\"prepare to Attempt well-known or guessable resource locations\")\npublic void preattemptwellknownorguessableresourcelocations(){\n}", "public boolean getCustomBuildStep();", "@Override\n public void startOfScenarioLifeCycle(gherkin.formatter.model.Scenario scenario) {\n inLifeCycle = true;\n //is scenario run -> add new scenario definition\n if (SCENARIO_KEYWORD.equals(scenario.getKeyword())) {\n ScenarioDefinition sc = new ScenarioDefinition();\n sc.setType(ScenarioType.SCENARIO);\n setTagStatementAttributes(sc, scenario);\n testedFeature.getScenarioDefinitionList().add(sc);\n }\n\n returnLastScenarioDefinition().getScenarioRunList().add(new ScenarioRun());\n }", "public abstract void performStep();", "private void removeStep(PlanGraphStep stepToRemove, int currentLevel) {\n\t\t\n\t\tremoveEffects(stepToRemove, currentLevel);\n\t\tremoveInvalidMutex(stepToRemove, currentLevel);\n\t\tupdateUnsupportedPreconditionInconsistencies(currentLevel);\n\t\t\n\t}", "public ExteriorFeature() {\n this.exteriorFeature = \"Generic\";\n }", "protected void refreshStep(OffsetOriginStep step) {\n if (step == null) return;\n int key = 0;\n for (int i : keyFrames) {\n if (i <= step.n)\n key = i;\n }\n // compare step with keyStep\n OffsetOriginStep keyStep = (OffsetOriginStep) steps.getStep(key);\n boolean different = keyStep.worldX != step.worldX || keyStep.worldY != step.worldY;\n // update step if needed\n if (different) {\n step.worldX = keyStep.worldX;\n step.worldY = keyStep.worldY;\n }\n step.erase();\n }", "private void AddNewScenario(HttpServletRequest request, HttpServletResponse response) {\n XMLTree.getInstance().AddNewScenario();\n }", "@Before\r\n public void startUp(Scenario scenario) {\r\n\r\n //this is used to add per scenario log to report with unique name\r\n long logging_start = System.nanoTime();\r\n\r\n //initialize Logger class, without this line log for the first scenario will not be attached\r\n Log.info(\"***\");\r\n Log.info(\"***\");\r\n\r\n //add appender to attach log for particular scenario to the report\r\n addAppender(out,scenario.getName()+logging_start);\r\n\r\n //start scenario\r\n String[] tId = scenario.getId().split(\";\");\r\n Log.info(\"*** Feature id: \" + tId[0] + \" ***\");\r\n Log.info(\"***\");\r\n Log.info(\"***\");\r\n Log.info(\"*** Scenario with name: \" + scenario.getName() + \" started! ***\");\r\n Log.info(\"***\");\r\n Log.info(\"***\");\r\n\r\n /* Global resources load */\r\n Log.info(\"Started resources initialisation\");\r\n Log.info(\"<- creating shared context ->\");\r\n ctx.Object = new Context();\r\n ctx.Object.put(\"FeatureId\", String.class, tId[0]);\r\n ctx.Object.put(\"ScenarioId\", String.class, scenario.getName());\r\n\r\n FileCore fileCore = new FileCore(ctx);\r\n ctx.Object.put(\"FileCore\", FileCore.class, fileCore);\r\n\r\n ConfigReader Config = new ConfigReader(ctx);\r\n ctx.Object.put(\"Config\", ConfigReader.class, Config);\r\n\r\n Storage storage = new Storage(ctx);\r\n ctx.Object.put(\"Storage\", Storage.class, storage);\r\n\r\n PropertyReader env = new PropertyReader(ctx);\r\n ctx.Object.put(\"Environment\", PropertyReader.class, env);\r\n\r\n Macro macro = new Macro(ctx);\r\n ctx.Object.put(\"Macro\", Macro.class, macro);\r\n\r\n ExecutorCore executorCore = new ExecutorCore(ctx);\r\n ctx.Object.put(\"ExecutorCore\", ExecutorCore.class, executorCore);\r\n\r\n AssertCore assertCore = new AssertCore(ctx);\r\n ctx.Object.put(\"AssertCore\", AssertCore.class, assertCore);\r\n\r\n PdfCore pdfCore = new PdfCore(ctx);\r\n ctx.Object.put(\"PdfCore\", PdfCore.class, pdfCore);\r\n\r\n SshCore sshCore = new SshCore(ctx);\r\n ctx.Object.put(\"SshCore\", SshCore.class, sshCore);\r\n\r\n WinRMCore winRmCore = new WinRMCore(ctx);\r\n ctx.Object.put(\"WinRMCore\", WinRMCore.class, winRmCore);\r\n\r\n SqlCore sqlCore = new SqlCore(ctx);\r\n ctx.Object.put(\"SqlCore\", SqlCore.class, sqlCore);\r\n\r\n StepCore step = new StepCore(ctx);\r\n ctx.Object.put(\"StepCore\", StepCore.class, step);\r\n\r\n //get resources from ctx object\r\n FileCore FileCore = ctx.Object.get(\"FileCore\", FileCore.class);\r\n Macro Macro = ctx.Object.get(\"Macro\", Macro.class);\r\n StepCore = ctx.Object.get(\"StepCore\", StepCore.class);\r\n Storage = ctx.Object.get(\"Storage\", Storage.class);\r\n\r\n Log.info(\"<- reading default configuration ->\");\r\n String defaultConfigDir = FileCore.getProjectPath() + File.separator + \"libs\" + File.separator + \"libCore\" + File.separator + \"config\";\r\n Log.debug(\"Default configuration directory is \" + defaultConfigDir);\r\n\r\n ArrayList<String> defaultConfigFiles = FileCore.searchForFile(defaultConfigDir,\".config\");\r\n if(defaultConfigFiles.size()!=0) {\r\n for (String globalConfigFile : defaultConfigFiles) {\r\n Config.create(globalConfigFile);\r\n }\r\n }\r\n\r\n Log.info(\"<- reading global configuration ->\");\r\n String globalConfigDir = FileCore.getGlobalConfigPath();\r\n Log.debug(\"Global configuration directory is \" + globalConfigDir);\r\n\r\n ArrayList<String> globalConfigFiles = FileCore.searchForFile(globalConfigDir,\".config\");\r\n if(globalConfigFiles.size()!=0) {\r\n for (String globalConfigFile : globalConfigFiles) {\r\n Config.create(globalConfigFile);\r\n }\r\n }\r\n\r\n //configuring logger for rest operations\r\n ToLoggerPrintStream loggerPrintStream = new ToLoggerPrintStream();\r\n Log.info(\"Finished resources initialisation\");\r\n\r\n /* Local resources load */\r\n Log.info(\"<- Started local config load ->\");\r\n String featureDir = FileCore.getCurrentFeatureDirPath();\r\n\r\n Log.debug(\"Feature dir is \" + featureDir);\r\n if( featureDir != null ){\r\n ctx.Object.put(\"FeatureFileDir\", String.class, featureDir);\r\n\r\n ArrayList<String> localConfigFiles = FileCore.searchForFile(featureDir,\".config\");\r\n if(localConfigFiles.size()!=0) {\r\n for (String localConfigFile : localConfigFiles) {\r\n Config.create(localConfigFile);\r\n }\r\n }else{\r\n Log.warn(\"No local config files found!\");\r\n }\r\n }\r\n\r\n //all global and local configuration loaded.\r\n //show default config\r\n Log.debug(\"Checking default environment configuration\");\r\n HashMap<String, Object> defaultEnvConfig = Storage.get(\"Environment.Default\");\r\n HashMap<String, Object> sshConfig = Storage.get(\"Ssh\");\r\n HashMap<String, Object> winRmConfig = Storage.get(\"WinRM\");\r\n Map<String, Object> finalEnvConfig = Storage.get(\"Environment.Active\");\r\n if ( defaultEnvConfig == null || defaultEnvConfig.size() == 0 ){\r\n Log.error(\"Default configuration Environment.\"\r\n + \" Default not found or empty. Please create it!\");\r\n }\r\n if ( finalEnvConfig == null ) {\r\n Log.error(\"Environment.Active object does not exists or null.\"\r\n + \" Please create such entry in global configuration\");\r\n }\r\n if ( sshConfig == null ) {\r\n Log.error(\"Ssh object does not exists or null. Please create it!\");\r\n }\r\n if ( winRmConfig == null ) {\r\n Log.error(\"WinRM object does not exists or null. Please create it!\");\r\n }\r\n //merge ssh with default\r\n defaultEnvConfig.put(\"Ssh\", sshConfig);\r\n //merge winRM with default\r\n defaultEnvConfig.put(\"WinRM\", winRmConfig);\r\n //check if cmd argument active_env was provided to overwrite active_env\r\n String cmd_arg = System.getProperty(\"active_env\");\r\n if ( cmd_arg != null ) {\r\n Log.info(\"Property Environment.Active.name overwritten by CMD arg -Dactive_env=\" + cmd_arg);\r\n Storage.set(\"Environment.Active.name\", cmd_arg);\r\n }\r\n //read name of the environment that shall be activated\r\n Log.debug(\"Checking active environment configuration\");\r\n String actEnvName = Storage.get(\"Environment.Active.name\");\r\n if ( actEnvName == null || actEnvName.equals(\"\") || actEnvName.equalsIgnoreCase(\"default\") ) {\r\n Log.debug(\"Environment.Active.name not set! Fallback to Environment.Default\");\r\n } else {\r\n //check if config with such name exists else fallback to default\r\n HashMap<String, Object> activeEnvConfig = Storage.get(\"Environment.\" + actEnvName);\r\n if ( activeEnvConfig == null || activeEnvConfig.size() == 0 ){\r\n Log.error(\"Environment config with name \" + actEnvName + \" not found or empty\");\r\n }\r\n //merge default and active\r\n deepMerge(defaultEnvConfig, activeEnvConfig);\r\n defaultEnvConfig = Storage.get(\"Environment.Default\");\r\n }\r\n //create final\r\n deepMerge(finalEnvConfig, defaultEnvConfig);\r\n\r\n //check if cmd argument widthXheight was provided to overwrite active_env\r\n String cmd_arg2 = System.getProperty(\"widthXheight\");\r\n if ( cmd_arg2 != null ) {\r\n Log.info(\"Property Environment.Active.Web.size overwritten by CMD arg -widthXheight=\" + cmd_arg2);\r\n Storage.set(\"Environment.Active.Web.size\", cmd_arg2);\r\n }\r\n\r\n Log.info(\"-- Following configuration Environment.Active is going to be used --\");\r\n for (HashMap.Entry<String, Object> entry : finalEnvConfig.entrySet()) {\r\n String[] tmp = entry.getValue().getClass().getName().split(Pattern.quote(\".\")); // Split on period.\r\n String type = tmp[2];\r\n Log.info( \"(\" + type + \")\" + entry.getKey() + \" = \" + entry.getValue() );\r\n }\r\n Log.info(\"-- end --\");\r\n\r\n //adjust default RestAssured config\r\n Log.debug(\"adjusting RestAssured config\");\r\n int maxConnections = Storage.get(\"Environment.Active.Rest.http_maxConnections\");\r\n Log.debug(\"Setting http.maxConnections to \" + maxConnections);\r\n System.setProperty(\"http.maxConnections\", \"\" + maxConnections);\r\n\r\n Boolean closeIdleConnectionsAfterEachResponseAfter = Storage.get(\"Environment.Active.Rest.closeIdleConnectionsAfterEachResponseAfter\");\r\n if ( closeIdleConnectionsAfterEachResponseAfter ) {\r\n int idleTime = Storage.get(\"Environment.Active.Rest.closeIdleConnectionsAfterEachResponseAfter_idleTime\");\r\n Log.debug(\"Setting closeIdleConnectionsAfterEachResponseAfter=true with idleTime \" + idleTime);\r\n RestAssured.config = RestAssured.config().connectionConfig(\r\n connectionConfig().closeIdleConnectionsAfterEachResponseAfter(\r\n idleTime,\r\n TimeUnit.SECONDS)\r\n );\r\n }\r\n\r\n Boolean reuseHttpClientInstance = Storage.get(\"Environment.Active.Rest.reuseHttpClientInstance\");\r\n if ( reuseHttpClientInstance ) {\r\n Log.debug(\"Setting reuseHttpClientInstance=true\");\r\n RestAssured.config = RestAssured.config().httpClient(\r\n httpClientConfig().reuseHttpClientInstance()\r\n );\r\n }\r\n\r\n Boolean relaxedHTTPSValidation = Storage.get(\"Environment.Active.Rest.relaxedHTTPSValidation\");\r\n if ( relaxedHTTPSValidation ) {\r\n Log.debug(\"Setting relaxedHTTPSValidation=true\");\r\n RestAssured.config = RestAssured.config().sslConfig(\r\n sslConfig().relaxedHTTPSValidation()\r\n );\r\n }\r\n\r\n Boolean followRedirects = Storage.get(\"Environment.Active.Rest.followRedirects\");\r\n if ( followRedirects != null ) {\r\n Log.debug(\"Setting followRedirects=\" + followRedirects);\r\n RestAssured.config = RestAssured.config().redirect(\r\n redirectConfig().followRedirects(followRedirects)\r\n );\r\n }\r\n\r\n RestAssured.config = RestAssured.config().decoderConfig(\r\n DecoderConfig.decoderConfig().defaultContentCharset(\"UTF-8\"));\r\n\r\n RestAssured.config = RestAssured.config().logConfig(\r\n new LogConfig( loggerPrintStream.getPrintStream(), true )\r\n );\r\n\r\n //check if macro evaluation shall be done in hooks\r\n Boolean doMacroEval = Storage.get(\"Environment.Active.MacroEval\");\r\n if ( doMacroEval == null ){\r\n Log.error(\"Environment.Active.MacroEval null or empty!\");\r\n }\r\n if( doMacroEval ){\r\n Log.info(\"Evaluating macros in TestData and Expected objects\");\r\n Macro.eval(\"TestData\");\r\n Macro.eval(\"Expected\");\r\n }\r\n\r\n Log.info(\"Test data storage is\");\r\n Storage.print(\"TestData\");\r\n\r\n Log.info(\"<- Finished local config load ->\");\r\n Log.info(\"***\");\r\n Log.info(\"*** Running steps for scenario: \" + scenario.getName());\r\n Log.info(\"***\");\r\n\r\n }", "@SuppressWarnings(\"unchecked\")\n @Test\n public void shouldReturnBeforeAndAfterStoryAnnotatedSteps() {\n CandidateSteps steps1 = mock(Steps.class);\n CandidateSteps steps2 = mock(Steps.class);\n Step stepBefore1 = mock(Step.class);\n Step stepBefore2 = mock(Step.class);\n Step stepAfter1 = mock(Step.class);\n Step stepAfter2 = mock(Step.class);\n\n boolean embeddedStory = false;\n when(steps1.runBeforeStory(embeddedStory)).thenReturn(asList(stepBefore1));\n when(steps2.runBeforeStory(embeddedStory)).thenReturn(asList(stepBefore2));\n when(steps1.runAfterStory(embeddedStory)).thenReturn(asList(stepAfter1));\n when(steps2.runAfterStory(embeddedStory)).thenReturn(asList(stepAfter2));\n\n // When we create the series of steps for the core\n MarkUnmatchedStepsAsPending stepCreator = new MarkUnmatchedStepsAsPending();\n List<Step> beforeSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Story(new Scenario()), Stage.BEFORE,\n embeddedStory);\n List<Step> afterSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Story(new Scenario()), Stage.AFTER,\n embeddedStory);\n\n // Then all before and after steps should be added\n ensureThat(beforeSteps, equalTo(asList(stepBefore1, stepBefore2)));\n ensureThat(afterSteps, equalTo(asList(stepAfter1, stepAfter2)));\n }", "@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }", "public void prependStep(final int direction)\n\t{\n\t\tfor (final FeatureElement element : featureElements)\n\t\t{\n\t\t\tif (element instanceof RelativeFeatureElement)\n\t\t\t{\n\t\t\t\t((RelativeFeatureElement) element).walk().prependStep(direction);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Warning: trying to prepend a step to an Absolute Feature Element!\");\n\t\t\t}\n\t\t}\n\t}", "public void updateTestStep(String teststep,ExtentReports r,ExtentTest l,WebDriver driver)\n\t{\n\t\tcurrentTestStep=teststep;\n\n\t}", "void addFeatures(Features features);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "protected abstract void stepImpl( long stepMicros );", "@Override\n public void onStepClick(int index) {\n }", "public void changeCurrentStep(Step currentStep) {\n changeCurrentStep(currentStep.getCurrentPhase());\n }", "protected void moveToFeature(KMLAbstractFeature feature)\n {\n KMLViewController viewController = KMLViewController.create(this.wwd);\n viewController.goTo(feature);\n }", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature insertNewPlanFeature(int i);", "@Test\n public void shouldPrioritiseAnnotatedSteps() {\n\n CandidateSteps steps1 = mock(Steps.class);\n CandidateSteps steps2 = mock(Steps.class);\n CandidateStep candidate1 = mock(CandidateStep.class);\n CandidateStep candidate2 = mock(CandidateStep.class);\n CandidateStep candidate3 = mock(CandidateStep.class);\n CandidateStep candidate4 = mock(CandidateStep.class);\n Step step1 = mock(Step.class);\n Step step2 = mock(Step.class);\n Step step3 = mock(Step.class);\n Step step4 = mock(Step.class);\n\n when(steps1.getSteps()).thenReturn(new CandidateStep[]{candidate1, candidate2});\n when(steps2.getSteps()).thenReturn(new CandidateStep[]{candidate3, candidate4});\n \n // all matching the same step string with different priorities\n String stepAsString = \"Given a step\";\n when(candidate1.matches(stepAsString)).thenReturn(true);\n when(candidate2.matches(stepAsString)).thenReturn(true);\n when(candidate3.matches(stepAsString)).thenReturn(true);\n when(candidate4.matches(stepAsString)).thenReturn(true);\n when(candidate1.getPriority()).thenReturn(1);\n when(candidate2.getPriority()).thenReturn(2);\n when(candidate3.getPriority()).thenReturn(3);\n when(candidate4.getPriority()).thenReturn(4);\n when(candidate1.createFrom(tableRow, stepAsString)).thenReturn(step1);\n when(candidate2.createFrom(tableRow, stepAsString)).thenReturn(step2);\n when(candidate3.createFrom(tableRow, stepAsString)).thenReturn(step3);\n when(candidate4.createFrom(tableRow, stepAsString)).thenReturn(step4);\n \n // When we create the series of steps for the core\n MarkUnmatchedStepsAsPending stepCreator = new MarkUnmatchedStepsAsPending();\n List<Step> steps = stepCreator.createStepsFrom(asList(steps1, steps2), new Scenario(asList(stepAsString)), tableRow\n );\n\n // Then the step with highest priority is returned\n ensureThat(step4, equalTo(steps.get(0)));\n }", "@Then(\"troubleshooting chart steps are displaying\")\n public void troubleshooting_chart_steps_are_displaying() {\n }", "public String nextStep();", "@Override\n protected SimpleFeature buildFeature() {\n synchronized(EDGE_FEATURE_BUILDER) {\n EDGE_FEATURE_BUILDER.add(getId());\n EDGE_FEATURE_BUILDER.add(displayName);\n EDGE_FEATURE_BUILDER.add(url);\n EDGE_FEATURE_BUILDER.add(selected);\n EDGE_FEATURE_BUILDER.add(lineString);\n return EDGE_FEATURE_BUILDER.buildFeature(null);\n }\n }", "boolean hasStep();", "boolean hasStep();", "boolean hasStep();", "public void step();", "public void step();", "boolean previousStep();", "private void updateInconsistencies(PlanGraphStep newStep, int currentLevel) {\n\t\t\n\t\tSet<LPGInconsistency> currentLevelInconsistencies = inconsistencies.get(currentLevel);\n\n\t\t/** remove any unsupported precondition inconsistencies that newStep supports */ \n\t\tcheckSupportedPreconditions(newStep, currentLevel, currentLevelInconsistencies);\n\t\t\n\t\t/** add any new mutex steps */\n\t\tcheckMutexSteps(newStep, currentLevel, currentLevelInconsistencies);\n\t\t\n\t\t/** check last level facts for preconditions of newStep */\n\t\tcheckUnsupportedPreconditions(newStep, currentLevel);\n\t}", "public HooksScenario(SharedContext ctx) {\r\n this.ctx = ctx;\r\n }", "protected Step(Step next) {\n this.next = next;\n }", "@Override\n public void scenarioOutline(ScenarioOutline scenarioOutline) {\n ScenarioDefinition scenarioDefinitionOut = new ScenarioDefinition();\n scenarioDefinitionOut.setType(ScenarioType.SCENARIO_OUTLINE);\n testedFeature.getScenarioDefinitionList().add(scenarioDefinitionOut);\n\n setTagStatementAttributes(scenarioDefinitionOut, scenarioOutline);\n }" ]
[ "0.61503017", "0.6053889", "0.59470975", "0.59364754", "0.586114", "0.5849775", "0.5813971", "0.57843196", "0.57841307", "0.5721895", "0.57150835", "0.57150835", "0.5692797", "0.5684632", "0.567107", "0.56674993", "0.5654673", "0.5654673", "0.5638162", "0.5636412", "0.5618531", "0.55971277", "0.5588524", "0.55623835", "0.54935837", "0.545689", "0.5454695", "0.5444183", "0.543956", "0.542637", "0.5421096", "0.5405479", "0.5372128", "0.5340403", "0.5334012", "0.5329195", "0.5299424", "0.5291646", "0.52905226", "0.52798134", "0.52731323", "0.52693504", "0.52631015", "0.526271", "0.525129", "0.52501804", "0.5246925", "0.5245452", "0.52415055", "0.5239013", "0.5222385", "0.5221813", "0.5215182", "0.52146727", "0.52146727", "0.52144367", "0.52132225", "0.52085614", "0.5197005", "0.5193062", "0.519137", "0.5185013", "0.5179913", "0.5173506", "0.51734096", "0.5171594", "0.51686585", "0.51584244", "0.5157755", "0.51519597", "0.5147586", "0.5138026", "0.5137662", "0.51294833", "0.5127886", "0.51265895", "0.51216143", "0.51204234", "0.5116801", "0.511326", "0.511148", "0.511148", "0.51112", "0.5111127", "0.51088846", "0.5106949", "0.5106729", "0.50964284", "0.50936043", "0.5084247", "0.5083895", "0.5080515", "0.5080515", "0.5080515", "0.5075116", "0.5075116", "0.5072065", "0.5066798", "0.506199", "0.5059986", "0.5054011" ]
0.0
-1
/following step is using and duplicating an existing Step/s the original feature line/s need/s to be used
@Given("I am on the Project Contact Details Page") public void i_am_on_the_project_contact_details_page(){ i_logged_into_Tenant_Manager_Project_list_page(); i_click_on_create_a_new_project(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void step2() {\n\t\t\n\t}", "protected void runBeforeStep() {}", "private void migrateFeaturesStep_1(Context context, Map featObjMap)\r\n throws Exception{\r\n\r\n \t mqlLogRequiredInformationWriter(\"Inside method migrateFeaturesStep_1 \"+ \"\\n\");\r\n \t //These selectables are for Parent Feature\r\n \t StringList featureObjSelects = new StringList();\r\n\t\t featureObjSelects.addElement(SELECT_TYPE);\r\n\t\t featureObjSelects.addElement(SELECT_NAME);\r\n\t\t featureObjSelects.addElement(SELECT_REVISION);\r\n\t\t featureObjSelects.addElement(SELECT_VAULT);\r\n\t\t featureObjSelects.addElement(SELECT_ID);\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\");//goes into LF or MF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");//goes into LF,MF,CF type\r\n\t\t featureObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\");//goes into LF,MF,CF type\r\n\r\n\t\t String featureObjId = \"\";\r\n String strType = \"\";\r\n String strName = \"\";\r\n String strRevision = \"\";\r\n String strNewRelId = \"\";\r\n \t featureObjId = (String) featObjMap.get(SELECT_ID);\r\n\r\n\r\n \t String isConflictFeature = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\t\t String strContextUsage = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t StringList sLFLToDelete = new StringList(); //FLs list to delete\r\n\r\n\t\t strType = (String) featObjMap.get(SELECT_TYPE);\r\n\t\t strName = (String) featObjMap.get(SELECT_NAME);\r\n\t\t strRevision = (String) featObjMap.get(SELECT_REVISION);\r\n\r\n\r\n\t\t if((strType!=null\r\n\t\t\t\t &&(mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))))\r\n {\r\n\t\t\t isConflictFeature = \"No\";\r\n\t\t }\r\n\r\n\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")\r\n\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n\t\t {\r\n\r\n\r\n\t\t DomainObject domFeatureObj = new DomainObject(featureObjId);\r\n\r\n\t\t HashMap mapAttribute = new HashMap();\r\n\r\n\t\t //check whether feature is standalone or Toplevel or is in the Structure\r\n\t\t //String relPattern = ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO;\r\n\r\n\t\t StringBuffer sbRelPattern1 = new StringBuffer(50);\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO);\r\n\t\t\tsbRelPattern1.append(\",\");\r\n\t\t\tsbRelPattern1.append(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM);\r\n\r\n\t\t\tStringBuffer sbTypePattern2 = new StringBuffer(50);\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_FEATURE_LIST);\r\n\t\t\t\tsbTypePattern2.append(\",\");\r\n\t\t\t\tsbTypePattern2.append(ConfigurationConstants.TYPE_MODEL);\r\n\r\n\r\n\r\n\r\n\t\t StringList flObjSelects = new StringList();\r\n\t\t flObjSelects.addElement(ConfigurationConstants.SELECT_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_FROM_ID);\r\n\t\t flObjSelects.addElement(DomainObject.SELECT_TO_ID);\r\n\r\n\t\t StringList flRelSelects = new StringList();\r\n\t\t flRelSelects.addElement(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t flRelSelects.addElement(\"from.from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].from.id\");\r\n\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM+\"].id\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List To\" rel traversed\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.id\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.type\");\r\n\t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //Get the Feature Ids,Type and New Feature Type attribute values... when \"Feature List From\" rel traversed\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\t\t //In DV id Inactive in context of Product or Invalid in context of PV\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t //flObjSelects.addElement(\"from[\" + ConfigurationConstants.RELATIONSHIP_RESOURCE_USAGE + \"].id\");\r\n\t\t //selectables of all attributes on FL which are to be migrated\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"); //goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\");//goes on to LF and MF relationships\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"); //goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\");//goes on to CF and CO relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\");//goes on to CF,LF,MF relationship\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\"); //goes on to CF type\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"); //will go as interface attribute onto relationship mentioned in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");//this will be used as described in PES\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_TYPE+\"]\"); //will get split\r\n\t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n \t\t flObjSelects.addElement(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n \t\t //selectables of attribute on FLF relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\");\r\n\r\n \t\t //selectables to determine if the Feature can have Key-In Type = Input\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t flObjSelects.addElement(\"from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].to.from[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].to.attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\r\n \t\t //selectable to get Key-In Value on Selected Option Relationship\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\");\r\n \t\t flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n \t\t //flObjSelects.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.id\");\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id started ----->\"+\" --- \"+now()+\"\\n\");\r\n\r\n \t\t MapList FL_List = domFeatureObj.getRelatedObjects(context,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //relPattern, //relationshipPattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbRelPattern1.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //ConfigurationConstants.TYPE_FEATURE_LIST, //typePattern\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t sbTypePattern2.toString(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flObjSelects, //objectSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t flRelSelects, //relationshipSelects\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t true, //getTo\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t false, //getFrom\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (short)1, //recurseToLevel\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //objectWhere,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //relationshipWhere\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (int)0, //limit\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null , //includeType\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null, //includeRelationship\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t null); //includeMap\r\n\r\n\r\n \t\t mqlLogRequiredInformationWriter(\"Database query on the given Feature Id end ----->\"+\" --- \"+now()+\"\\n\");\r\n\t\t //To check whether the \"Feature Selection Type\" has any conflict for this Feature\r\n\t\t boolean bConflictSelType = false;\r\n\t\t String strFST =\"\";\r\n\t\t StringList sLFST = new StringList();\r\n\t\t for(int iCntFL=0;iCntFL<FL_List.size();iCntFL++){\r\n\t\t\t Map flMap = (Map)FL_List.get(iCntFL);\r\n\t\t\t strFST = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n\t\t\t if(sLFST.size()>0){\r\n\t\t\t\t if(!sLFST.contains(strFST)){\r\n\t\t\t\t\t bConflictSelType = true;\r\n\t\t\t\t\t break;\r\n\t\t\t\t }else{\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }else{\r\n\t\t\t\t if(strFST!=null && !strFST.equals(\"\")){\r\n\t\t\t\t\t sLFST.add(strFST);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\t\t //If FL object is absent\r\n\t\t if(FL_List.size()==0)\r\n\t\t {\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are no 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t if(strType!=null\r\n\t\t\t\t &&(!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))||\r\n\t\t\t\t isOfDerivationChangedType(context, strType)) {\r\n\t\t\t\t if(strType!=null && !isOfDerivationChangedType(context, strType)){\r\n\r\n\r\n\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n\t\t\t\t String newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+ newFeatureChangeType +\"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t :: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t //change the feature to new type\r\n\t\t\t\t //BusinessObject featureBO = changeType(context,featObjMap,featureObjId,newFeatureChangeType,newFeaturePolicy);\r\n\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t boFeatureObj.change(context,\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\tnewFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(String) featObjMap.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewFeaturePolicy);\r\n\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t:: \"+featureObjId +\"\\n\");\r\n\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\t\t\t\t if(newFeatureChangeType!=null &&\r\n\t\t\t\t\t\t (newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)\r\n\t\t\t\t\t\t\t\t )){\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n\t\t\t\t }\r\n\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Object id \t\t\t\t\t :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }else{\r\n\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, strType, true);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type \t\t:: \"+ strType +\"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy \t\t\t:: \"+ mNewFeaturePolicy +\"\\n\");\r\n\r\n\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\t\t\t\t\t DomainObject boFeatureObj = new DomainObject(featureObjId);\r\n\t\t\t\t\t boFeatureObj.setPolicy(context, newFeaturePolicy);\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n\t\t\t\t\t domFeatureObj.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n\t\t\t\t\t //Set the attribute values for \"software Feature\" when Feat is standalone\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t }else //if feature is not standalone\r\n\t\t {\r\n\t\t\t MapList FLInfoList = new MapList(); // FLs info MapList to pass to external migrations\r\n\t\t\t \r\n\t\t\t mqlLogRequiredInformationWriter(\"\\n\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"For given Feature id there are 'Feature List From' and 'Feature List To' connections.\"+\"\\n\");\r\n\t\t\t mqlLogRequiredInformationWriter(\"Traverse through the given list of 'Feature List' object start .\"+\"\\n\\n\");\r\n\r\n\t\t\t for(int i=0;i<FL_List.size();i++)\r\n\t\t\t {\r\n\t\t\t\t Map flMap = (Map)FL_List.get(i);\r\n\t\t\t\t String strFLId = (String)flMap.get(DomainConstants.SELECT_ID);\r\n\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id in process :: \"+ strFLId +\"\\n\");\r\n\r\n\t\t\t\t try{\r\n\t\t\t\t\t String strRelType = (String)flMap.get(\"relationship\");\r\n\t\t\t\t\t if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CANDIDATE_ITEM)){\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Candiadate Item' rel in process ---> relName \"+ strRelType +\"\\n\");\r\n\t\t\t\t\t\t String strNewRelType = \"\";\r\n\t\t\t\t\t\t //String strManAttr =(String) flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\");\r\n\t\t\t\t\t\t //Use case related to Candidate Item\r\n\t\t\t\t\t\t String strCandItemRel = (String)flMap.get(ConfigurationConstants.SELECT_RELATIONSHIP_ID);\r\n\t\t\t\t\t\t DomainRelationship domrel = new DomainRelationship(strCandItemRel);\r\n\t\t\t\t\t\t Map attributeMap = new HashMap();\r\n\t\t\t\t\t\t attributeMap = domrel.getAttributeMap(context,true);\r\n\t\t\t\t\t\t String strManAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE);\r\n\t\t\t\t\t\t String strInheritedAttr = (String) attributeMap.get(ConfigurationConstants.ATTRIBUTE_INHERITED);\r\n\t\t\t\t\t\t String newFeatureChangeType =\"\";\r\n\r\n \t\t\t\t\t\t if(strType!=null\r\n \t\t\t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t &&!mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES))\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t //Get the new Feature Type\r\n \t\t\t\t\t\t\t String newFeatureType = (String)featObjMap.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n \t\t\t\t\t\t\t //String newFeatureChangeType = PropertyUtil.getSchemaProperty(context,newFeatureType);\r\n \t\t\t\t\t\t\t newFeatureChangeType = getSchemaProperty(context,newFeatureType);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Get the new Feature Policy\r\n \t\t\t\t\t\t \t\t\t\t\t\t Map mNewFeaturePolicy = mxType.getDefaultPolicy(context, newFeatureChangeType, true);\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Change Type :: \"+newFeatureChangeType +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"New Feature Policy :: \"+mNewFeaturePolicy +\"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t String newFeaturePolicy = (String) mNewFeaturePolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //change the feature to new type\r\n \t\t\t\t\t\t \t\t\t\t\t\t BusinessObject boFeatureObj = new DomainObject(featureObjId);\r\n\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t boFeatureObj.change(context,\r\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\tnewFeatureChangeType,\r\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(String) featObjMap.get(DomainConstants.SELECT_NAME),\r\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(String) featObjMap.get(DomainConstants.SELECT_REVISION),\r\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(String) featObjMap.get(DomainConstants.SELECT_VAULT),\r\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\tnewFeaturePolicy);\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+featureObjId +\"\\n\");\r\n\t\t\t \t\t\t\t\t\t \t\t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newFeatureChangeType\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t + newFeaturePolicy\r\n\t\t\t \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_SUBFEATURECOUNT+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_ORIGINATOR,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_ORIGINATOR+\"]\"));\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"False\")))\r\n \t\t\t\t\t\t \t\t\t\t\t {\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES;\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\tif(newFeatureChangeType!=null\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"No\")))\r\n \t\t\t\t\t\t\t \t\t\t\t\t {\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_CONFIGURATION_FEATURES;\r\n \t\t\t\t\t\t\t \t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t &&(newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t\t\t ||newFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)))\r\n \t\t\t\t\t\t \t\t\t\t\t\t {\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t strNewRelType = ConfigurationConstants.RELATIONSHIP_CANDIDTAE_LOGICAL_FEATURES;\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mapAttribute.put(ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML,\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t (String)featObjMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DUPLICATE_PART_XML+\"]\"));\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t //Set the new Feat Type attribute values when Feat is standalone\r\n \t\t\t\t\t\t \t\t\t\t\t\t if(ProductLineCommon.isNotNull(strNewRelType)\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t && !strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+ featureObjId + \"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value set for this id :: \"+ mapAttribute +\"\\n\");\r\n \t\t\t\t\t\t \t\t\t\t\t\t\t domFeatureObj.setAttributeValues(context,mapAttribute);\r\n \t\t\t\t\t\t\t \t\t\t\t\t\t DomainRelationship.setType(context, strCandItemRel,strNewRelType);\r\n \t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t }else{\r\n\r\n \t\t\t\t\t\t\tnewFeatureChangeType = strType;\r\n\r\n \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t/* if(strNewRelType!=null && strNewRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\t\t\t\t\t \t\t\t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED, strInheritedAttr);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t\t domrel.setAttributeValues(context, mapRelAttributes);\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t }*/\r\n\r\n\t\t\t\t\t \t\t\t\t\t\t if(newFeatureChangeType!=null\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (newFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strManAttr!=null && strManAttr.equalsIgnoreCase(\"Yes\"))\r\n\t\t\t\t\t\t \t\t\t\t\t\t\t && (strInheritedAttr!=null && strInheritedAttr.equalsIgnoreCase(\"True\")))\r\n\t\t\t\t\t\t \t\t\t\t\t {\r\n\t\t\t\t\t \t\t\t\t\t\t\t DomainRelationship.disconnect(context, strCandItemRel);\r\n\t\t\t\t\t\t \t\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t }else if(strRelType!=null && strRelType.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO)){\r\n\r\n\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature List id related 'Feature list To' rel in process ---> relName \"+ strRelType +\"\\n\\n\");\r\n\t\t\t\t\t\t //Get the \"From Side\" info of FL object\r\n\t\t\t\t\t String strParentFeatureId =\"\";\r\n\t\t\t\t\t String strParentFeatureType =\"\";\r\n\t\t\t\t\t \r\n\t\t\t\t\t if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_INACTIVE_FEATURE_LIST_FROM+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\")!=null){\r\n\t\t\t\t\t\t strParentFeatureId = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.id\");\r\n\t\t\t\t\t\t strParentFeatureType = (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_PRODUCT_FEATURE_LIST+\"].from.type\");\r\n\t\t\t\t\t }else if((String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_COMMITED_ITEM+\"].from.id\")!=null){\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t//Use Case related to hanging FL Objects\r\n\t\t\t\t\t if(strParentFeatureId!=null && strParentFeatureId.length()!=0){\r\n\t\t\t\t\t String isConflictParentFeature =\"No\";\r\n\t\t\t\t\t DomainObject domParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t Map htParentObjData = (Map) domParentFeat.getInfo(context, featureObjSelects);\r\n\r\n\t\t\t\t\t if(mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_FEATURES)){\r\n\r\n\t\t\t\t\t\t isConflictParentFeature = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_FTRMigrationConflict+\"]\");\r\n\r\n\t\t\t\t\t }\r\n\r\n\r\n\t\t\t\t\t //Both the side Objects of FL should be convertible\r\n \t\t\t if(isConflictFeature.equalsIgnoreCase(\"No\")&& isConflictParentFeature.equalsIgnoreCase(\"No\")){\r\n\r\n\t\t\t\t\t /* First ...Check if Parent is already converted to New Type or not\r\n\t\t\t\t\t * If Not then convert it to the new Type then continue\r\n\t\t\t\t\t * Attributes will be set later ..whenever the Feature comes as child in the list.*/\r\n\t\t\t\t\t if(strParentFeatureType!=null\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCTS)\r\n\t\t\t\t\t\t && !mxType.isOfParentType(context,strParentFeatureType, ConfigurationConstants.TYPE_PRODUCT_LINE)){\r\n\r\n\t\t\t\t\t\t //Get the new Feature Type\r\n\t\t\t\t\t\t String newParentFeatureType = (String)htParentObjData.get(\"attribute[\"+ATTRIBUTE_NEW_FEATURE_TYPE+\"]\");\r\n\r\n\r\n\t\t\t\t\t\t //String newParentFeatureChangeType = PropertyUtil.getSchemaProperty(context,newParentFeatureType);\r\n\t\t\t\t\t\t String newParentFeatureChangeType = getSchemaProperty(context,newParentFeatureType);\r\n\r\n\t\t\t\t\t\t //Get the new Feature Policy\r\n\t\t\t\t\t\t Map mNewParentFeatPolicy = mxType.getDefaultPolicy(context, newParentFeatureChangeType, true);\r\n\t\t\t\t\t\t String strNewParentFeatPolicy = (String) mNewParentFeatPolicy.get(ConfigurationConstants.SELECT_NAME);\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Type :: \"+ newParentFeatureChangeType +\"\\n\");\r\n\t \t\t\t\t\t mqlLogRequiredInformationWriter(\"Feature New Policy :: \"+ strNewParentFeatPolicy +\"\\n\");\r\n\r\n\t \t\t\t\t\tString MarketTextPar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_TEXT+\"]\");\r\n\t \t\t\t\t String MarketNamePar = (String)htParentObjData.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MARKETING_NAME+\"]\");\r\n\t \t\t\t\t \r\n\t \t\t\t\t \r\n\t \t\t\t\t\t \r\n\t \t\t\t\t\t//Set the necessary Text and name attribute values of new Type Parent Feature object which will be lost once type is changed below.\r\n\t \t\t\t\t\t HashMap mapParentFeatAttribute = new HashMap();\r\n\t \t\t\t\t\tif(MarketTextPar!=null && !MarketTextPar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_VARIANT_DISPLAY_TEXT, MarketTextPar);\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\tif(MarketNamePar!=null && !MarketNamePar.equals(\"\")){\r\n\t \t\t\t\t\tmapParentFeatAttribute.put(ConfigurationConstants.ATTRIBUTE_DISPLAY_NAME, MarketNamePar);\r\n\r\n\t \t\t\t\t\t}\r\n\t \t\t\t\t\t\r\n\t\t\t\t\t\t //change the feature to new type\r\n\t\t\t\t\t\t BusinessObject boParFeatureObj = new DomainObject(strParentFeatureId);\r\n\r\n\t\t\t\t\t\t boParFeatureObj.change(context,\r\n\t\t\t\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t newParentFeatureChangeType,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_NAME),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_REVISION),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t (String) htParentObjData.get(DomainConstants.SELECT_VAULT),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t strNewParentFeatPolicy);\r\n\r\n\r\n\t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Object id :: \"+strParentFeatureId +\"\\n\");\r\n\t\t\t\t \t\t mqlLogRequiredInformationWriter(\"Object changed from type :: \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ strType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \" to new type \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ newParentFeatureChangeType\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + \" new policy \"\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t + strNewParentFeatPolicy\r\n\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t+ \"\\n\");\r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\t \r\n\t\t\t\t \t\tDomainObject domainParentFeat = new DomainObject(strParentFeatureId);\r\n\t\t\t\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this id ---->\" + \"\\n\" + mapParentFeatAttribute +\"\\n\\n\");\r\n\t\t\t\t\t\tdomainParentFeat.setAttributeValues(context,mapParentFeatAttribute);\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t String newChildFeatureChangeType =\"\";\r\n\t\t\t\t\t //Get the new Feature Relationship\r\n\t\t\t\t\t String newReltoConnect = \"\";\r\n\r\n\t\t\t\t\t if(strType!=null\r\n\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_FEATURES)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t && !mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_STRUCTURES)\r\n\t\t\t\t\t\t\t\t ){\r\n\r\n\t\t\t\t\t\t//Check whether \"To Side\" i.e. Child Feature is CF/LF/MF.. Do the processing\r\n\t\t\t\t\t\t //newChildFeatureChangeType = PropertyUtil.getSchemaProperty(context,strContextUsage);\r\n\t\t\t\t\t\t newChildFeatureChangeType = getSchemaProperty(context,strContextUsage);\r\n\r\n\t\t\t\t\t\t if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_CONFIGURATION_OPTION)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t\t//Varies By,Valid Context,Invalid Context related code\r\n\t\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null\r\n\t\t\t\t\t\t\t\t && (newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_SOFTWARE_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(newChildFeatureChangeType!=null && newChildFeatureChangeType.equalsIgnoreCase(ConfigurationConstants.TYPE_MANUFACTURING_FEATURE)){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\r\n\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t }else{\r\n\t\t\t\t\t\t if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_CONFIGURATION_OPTION))){\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && strType.equalsIgnoreCase(TYPE_CONFIGURATION_FEATURE)){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = getNewRelForConfigFeatType(context,flMap,featObjMap,strParentFeatureId,strParentFeatureType);\r\n\r\n\t\t\t\t\t\t }else if(strType!=null\r\n\t\t\t\t\t\t\t\t && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_LOGICAL_FEATURE)\r\n\t\t\t\t\t\t\t\t\t\t || mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_SOFTWARE_FEATURE)))\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES;\r\n\r\n\t\t\t\t\t\t }else if(strType!=null && (mxType.isOfParentType(context,strType, ConfigurationConstants.TYPE_MANUFACTURING_FEATURE))){\r\n\r\n\t\t\t\t\t\t\t newReltoConnect = ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES;\r\n\t\t\t\t\t\t }\r\n\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t //Set attribute values for \"To Side\" of the \"Feature List To\" relationship i.e. Child Feat Obj\r\n\t\t\t\t\t\t String strSelCriterion = setAttributeValuesOfChildFeatureObj(context,flMap,featObjMap,bConflictSelType);\r\n\r\n \t\t\t\t\t //Do the connection between 2 Feature Objects\r\n\r\n \t\t\t\t\t //restricting the connection if FST = Key-In and Key-In Type = Input\r\n \t\t\t\t\t String strFSTAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FEATURE_SELECTION_TYPE+\"]\");\r\n \t\t\t\t\t String strKITAttrValue = (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_TYPE+\"]\");\r\n \t\t\t\t\t if(strKITAttrValue.equals(RANGE_VALUE_INPUT)\r\n \t\t\t\t\t\t && strFSTAttrValue.equals(ConfigurationConstants.RANGE_VALUE_KEY_IN)\r\n \t\t\t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)||\r\n \t\t\t\t\t\t\t newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)))\r\n \t\t\t\t\t {\r\n \t\t\t\t\t\t StringList slPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slSOAttrKIVs = new StringList();\r\n \t\t\t\t\t\t StringList slParentPCIds = new StringList();\r\n \t\t\t\t\t\t StringList slParentSORelIds = new StringList();\r\n\r\n \t\t\t\t\t\t Object objPCIds = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n \t\t\t\t\t\t if (objPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slPCIds = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\");\r\n\r\n \t\t\t\t\t\t\t} else if (objPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslPCIds.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n\r\n \t\t\t\t\t\t Object objSOAttrKIVs = flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n \t\t\t\t\t\t if (objSOAttrKIVs instanceof StringList) {\r\n \t\t\t\t\t\t\t slSOAttrKIVs = (StringList) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\");\r\n\r\n \t\t\t\t\t\t\t} else if (objSOAttrKIVs instanceof String) {\r\n \t\t\t\t\t\t\t\tslSOAttrKIVs.addElement((String) flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE+\"]\"));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t String strParentPCIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t Object objParentPCIds = flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t if(objParentPCIds==null || \"\".equals(objParentPCIds)){\r\n \t\t\t\t\t\t\tstrParentPCIdSel =\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].from.id\";\r\n \t\t\t\t\t\t\tobjParentPCIds = flMap.get(strParentPCIdSel);\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentPCIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentPCIds = (StringList) flMap.get(strParentPCIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentPCIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentPCIds.addElement((String) flMap.get(strParentPCIdSel));\r\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//to[Feature List From].from.to[Feature List To].from.to[Selected Options].from.type\r\n\r\n \t\t\t\t\t\t String strParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_TO+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t Object objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n \t\t\t\t\t\t if(objParentSORelIds==null || \"\".equals(objParentSORelIds)){\r\n \t\t\t\t\t\t\tstrParentSORelIdSel = \"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].from.to[\"+ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES+\"].tomid[\"+ConfigurationConstants.RELATIONSHIP_SELECTED_OPTIONS+\"].id\";\r\n \t\t\t\t\t\t\t objParentSORelIds = flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t\t if (objParentSORelIds instanceof StringList) {\r\n \t\t\t\t\t\t\t slParentSORelIds = (StringList) flMap.get(strParentSORelIdSel);\r\n\r\n \t\t\t\t\t\t\t} else if (objParentSORelIds instanceof String) {\r\n \t\t\t\t\t\t\t\tslParentSORelIds.addElement((String) flMap.get(strParentSORelIdSel));\r\n \t\t\t\t\t\t\t}\r\n\r\n \t\t\t\t\t\t //VJB: TODO: seems a bug, int j is never used\r\n \t\t\t\t\t\t for(int j=0;slPCIds!=null && i<slPCIds.size();i++ )\r\n \t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t String strPCId = (String)slPCIds.get(i);\r\n \t\t\t\t\t\t\t String strAttrKIV = (String)slSOAttrKIVs.get(i);\r\n \t\t\t\t\t\t\t if(slParentPCIds!=null && slParentPCIds.contains(strPCId))\r\n \t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t for(int k=0;k<slParentPCIds.size();k++)\r\n \t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t String strParentPCId = (String)slParentPCIds.get(k);\r\n \t\t\t\t\t\t\t\t\t if(strParentPCId.equals(strPCId))\r\n \t\t\t\t\t\t\t\t\t {\r\n \t\t\t\t\t\t\t\t\t\t String strParentSORelId = (String)slParentSORelIds.get(k);\r\n \t\t\t\t\t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strParentSORelId);\r\n \t\t\t\t\t\t\t\t\t\t domRel.setAttributeValue(context, ConfigurationConstants.ATTRIBUTE_KEY_IN_VALUE, strAttrKIV);\r\n \t\t\t\t\t\t\t\t\t\t break;\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\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\t//strNewRelId = connectFeaturesWithNewRel(context,strParentFeatureId,featureObjId,strType,newReltoConnect);\r\n \t\t\t\t\t\tstrNewRelId = connectFeaturesWithNewRel(context,htParentObjData,featureObjId,strType,newReltoConnect);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n\r\n \t\t\t\t\t //Migrate attributes from FL to Rel id\r\n \t\t\t\t\t HashMap mapRelAttributes = new HashMap();\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_CHILD_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_MARKETING_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_PARENT_OBJECT_NAME+\"]\"));\r\n \t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_RULE_TYPE,\r\n \t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_RULE_TYPE+\"]\"));\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t && (newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)\r\n \t\t\t\t\t\t || newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANUFACTURING_FEATURES))){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_COMPONENT_LOCATION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FIND_NUMBER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FIND_NUMBER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_FORCE_PART_REUSE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_REFERENCE_DESIGNATOR+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_USAGE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_USAGE+\"]\"));\r\n \t\t\t\t\t\t }\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t&& newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_LOGICAL_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ATTRIBUTE_LOGICAL_SELECTION_CRITERIA,strSelCriterion);\r\n \t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t \t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_OPTIONS)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_SELECTION_CRITERIA,strSelCriterion);\r\n\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t //mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n \t\t\t\t\t }\r\n\r\n \t\t\t\t\t //Mandatory Configuration Feature relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t\t && newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_MANDATORY_CONFIGURATION_FEATURES)){\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_FEATURE_LIST_FROM+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_SEQUENCE_ORDER+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_DEFAULT_SELECTION+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_LIST_PRICE,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_LIST_PRICE+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MAXIMUM_QUANTITY+\"]\"));\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MINIMUM_QUANTITY+\"]\"));\r\n\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n \t\t\t\t\t\t\t\t\t \tConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n \t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n \t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\r\n \t\t\t\t\t }\r\n\r\n\r\n \t\t\t\t\t //\"Varies By\" and \"Inactive Varies By\" relationship\r\n \t\t\t\t\t if(newReltoConnect!=null\r\n \t\t\t\t\t\t&&\r\n \t\t\t\t\t\t(newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_VARIES_BY)\r\n \t\t\t\t\t\t ||newReltoConnect.equalsIgnoreCase(ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY)))\r\n \t\t\t\t\t {\r\n\t\t\t\t\t\t if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\r\n\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t ((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_YES)){\r\n\r\n\r\n\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,\r\n\t\t\t\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_MANDATORY);\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,\r\n\t\t\t\t\t\t\t\t\t\t\t (String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_INHERITED+\"]\"));\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,\r\n\t\t\t\t\t\t\t\t \t\t\t\tConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\t\t\t\t\t\t }else if((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")!=null\r\n\t\t\t\t\t\t\t\t\t\t\t&&\r\n\t\t\t\t\t\t\t\t\t\t\t((String)flMap.get(\"attribute[\"+ConfigurationConstants.ATTRIBUTE_MANDATORY_FEATURE+\"]\")).equalsIgnoreCase(ConfigurationConstants.RANGE_VALUE_NO)){\r\n\r\n\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t\t\t\t\t\t mapRelAttributes.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\r\n\t\t\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\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewRelId + \"\\n\");\r\n \t\t\t\t\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAttributes +\"\\n\\n\");\r\n \t\t\t\t\t\t domRel.setAttributeValues(context, mapRelAttributes);\r\n \t\t\t\t\t\t //preparing MapList to pass to external migration\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelId\",strNewRelId);\r\n\r\n \t\t\t\t\t\t DomainRelationship domRel1 = new DomainRelationship(strNewRelId);\r\n \t\t\t\t\t\t domRel1.open(context);\r\n \t\t\t\t\t String connectionName = domRel1.getTypeName();\r\n \t\t\t\t\t FLInfoMap.put(\"newRelType\",connectionName);\r\n \t\t\t\t\t\t FLInfoMap.put(\"newRelName\",newReltoConnect);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\r\n \t\t\t\t\t }\r\n\r\n\t\t\t\t\t\t //Add FL object to delete list\r\n\t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n\r\n\t\t\t\t\t }\r\n \t\t\t\t }else{\r\n \t\t\t\t\t\t //This is hanging FL Object ID need to b removed\r\n \t\t\t\t\t\t sLFLToDelete.add(strFLId);\r\n \t\t\t\t\t\t Map FLInfoMap = new HashMap();\r\n \t\t\t\t\t\t FLInfoMap.put(\"objectId\",strFLId);\r\n \t\t\t\t\t\t FLInfoMap.put(\"infoMapFLConnection\",flMap);\r\n \t\t\t\t\t\t FLInfoList.add(FLInfoMap);\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 {\r\n \t\t\t\t e.printStackTrace();\r\n \t\t\t\t throw new FrameworkException(e.getMessage());\r\n \t\t\t }\r\n \t }\r\n\r\n \t\t\t//Float the connections on FL objects to new Relationships formed\r\n \t\t\t if(strNewRelId!=null && strNewRelId.length()!=0){\r\n\r\n \t\t\t\t floatFLConnections(context,FLInfoList);\r\n \t\t\t }\r\n\r\n\r\n \t\t\t//call external migration\r\n \t\t\tMapList customResults = callInterOpMigrations(context, FLInfoList);\r\n \t\t\tIterator itrCustomResults = customResults.iterator();\r\n \t\t\twhile (itrCustomResults.hasNext()) {\r\n Map customResultsMap = (Map)itrCustomResults.next();\r\n \t\t\t\t Integer status = (Integer)customResultsMap.get(\"status\");\r\n\t\t\t\t String failureMessage = (String)customResultsMap.get(\"failureMessage\");\r\n\r\n\t\t\t\t if(status==1)\r\n\t\t\t\t {\r\n\t\t\t\t\t throw new FrameworkException(failureMessage);\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\r\n\r\n\t\t//Check the \"Varies By\" and \"Effectivity Status\" values\r\n\t\t StringList sLVariesByRelId =new StringList();\r\n\t\t StringList sLEffectivityStatusValue=new StringList();\r\n\t\t StringList sLActiveCntValue=new StringList();\r\n\t\t StringList sLInActiveCntValue=new StringList();\r\n\t\t StringList sLParType=new StringList();\r\n\r\n\r\n\t\tif((StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\")!=null){\r\n\r\n\t\t\t//sLName = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t//sLVariesByRelId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t//sLEffectivityStatusValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t//sLActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t//sLInActiveCntValue = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t//sLParentId = (StringList)featObjMap.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\r\n\t\t\t/*Not using the above statements as there is issue in sequence of ids in String list\r\n\t\t\t * coming from above getInfo\r\n\t\t\t * Doing the getInfo again on the given Feature Id\r\n\t\t\t */\r\n\r\n\t\t\tString stFeaId = (String) featObjMap.get(SELECT_ID);\r\n\t\t\tDomainObject domFd = new DomainObject(stFeaId);\r\n\t\t\tStringList objSel = new StringList();\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");//Varies By rel id if present\r\n\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\t\t\tobjSel.addElement(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");//Varies By rel id if present\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.add(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\t Map MFeatObj = domFd.getInfo(context, objSel);\r\n\r\n\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.id\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.name\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_INAVLID_CONTEXTS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\t\t\t DomainConstants.MULTI_VALUE_LIST.remove(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ATTRIBUTE_USER_DEFINED_EFFECTIVITY+\"]\");\r\n\r\n\r\n\t\t\tsLVariesByRelId = (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].id\");\r\n\t\t\tsLParType= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].from.type\");\r\n\t\t\tsLEffectivityStatusValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_EFFECTIVITY_STATUS+\"]\");\r\n\t\t\tsLActiveCntValue= (StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_ACTIVE_COUNT+\"]\");\r\n\t\t\tsLInActiveCntValue=(StringList) MFeatObj.get(\"to[\"+ConfigurationConstants.RELATIONSHIP_VARIES_BY+\"].attribute[\"+ConfigurationConstants.ATTRIBUTE_INACTIVE_COUNT+\"]\");\r\n\r\n\t\t}\r\n\r\n\t\tHashMap mapRelAtt = null;\r\n\r\n\t\tfor(int iEffStatusCnt=0;iEffStatusCnt<sLEffectivityStatusValue.size();iEffStatusCnt++){\r\n\t\t\tmapRelAtt = new HashMap();\r\n\t\t\tString strEffectStatus = (String)sLEffectivityStatusValue.get(iEffStatusCnt);\r\n\t\t\tif(strEffectStatus!=null && strEffectStatus.equalsIgnoreCase(ConfigurationConstants.EFFECTIVITY_STATUS_INACTIVE)){\r\n\t\t\t\tDomainRelationship.setType(context, (String)sLVariesByRelId.get(iEffStatusCnt), ConfigurationConstants.RELATIONSHIP_INACTIVE_VARIES_BY);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_CONFIGURATION_TYPE,ConfigurationConstants.RANGE_VALUE_SYSTEM);\r\n\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_INHERITED,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t}\r\n\r\n\r\n\t\t\tString strInActiveCntValue = (String)sLInActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint inactiveCount = Integer.parseInt(strInActiveCntValue);\r\n\r\n\t\t\tString strActiveCntValue = (String)sLActiveCntValue.get(iEffStatusCnt);\r\n\t\t\tint activeCount = Integer.parseInt(strActiveCntValue);\r\n\r\n\t\t\tif( inactiveCount==0 && activeCount==0 ){\r\n\t\t\t\tString strParType = (String)sLParType.get(iEffStatusCnt);\r\n\t\t\t\tif(mxType.isOfParentType(context,strParType, ConfigurationConstants.TYPE_PRODUCTS)){\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_FALSE);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t\tmapRelAtt.put(ConfigurationConstants.ATTRIBUTE_ROLLED_UP,ConfigurationConstants.RANGE_VALUE_TRUE);\r\n\t\t\t}\r\n\t\t\tDomainRelationship domRel = new DomainRelationship((String)sLVariesByRelId.get(iEffStatusCnt));\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+(String)sLVariesByRelId.get(iEffStatusCnt)+ \"\\n\");\r\n\t\t\tmqlLogRequiredInformationWriter(\"Attribute value Map set for this Rel id :: \"+ mapRelAtt +\"\\n\\n\");\r\n\t\t\tdomRel.setAttributeValues(context, mapRelAtt);\r\n\t\t}\r\n\r\n\r\n\t\t//Cleanup - delete related Feature List objects on successful migration of Feature\r\n\t\t deleteObjects(context,sLFLToDelete);\r\n\r\n\t\t loadMigratedOids(featureObjId);\r\n\r\n\t }else{ // for those Features which has \"Conflict\" stamp \"Yes\"\r\n\t\t String strCommand = strType + \",\" + strName + \",\" + strRevision + \",\" + strContextUsage+\"\\n\";\r\n\t\t\t writeUnconvertedOID(strCommand, featureObjId);\r\n\t }\r\n\r\n }", "public interface NormalStep extends Step { // <-- [user code injected with eMoflon]\n\n\t// [user code injected with eMoflon] -->\n}", "@Test(priority = 66)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"BUY GOODS USING MPESA\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"BUY GOODS AND SERVICES\");\t\r\n\tSystem.out.println(\"*************************(1)Running Buy Goods Using MPESA Testcases***********************************\");\r\n\r\n}", "@SuppressWarnings(\"unchecked\")\n @Test\n public void shouldPrependBeforeScenarioAndAppendAfterScenarioAnnotatedSteps() {\n CandidateSteps steps1 = mock(Steps.class);\n CandidateSteps steps2 = mock(Steps.class);\n Step stepBefore1 = mock(Step.class);\n Step stepBefore2 = mock(Step.class);\n Step stepAfter1 = mock(Step.class);\n Step stepAfter2 = mock(Step.class);\n\n when(steps1.runBeforeScenario()).thenReturn(asList(stepBefore1));\n when(steps2.runBeforeScenario()).thenReturn(asList(stepBefore2));\n when(steps1.runAfterScenario()).thenReturn(asList(stepAfter1));\n when(steps2.runAfterScenario()).thenReturn(asList(stepAfter2));\n\n // And which have a 'normal' step that matches our core\n CandidateStep candidate = mock(CandidateStep.class);\n Step normalStep = mock(Step.class);\n\n when(candidate.matches(\"my step\")).thenReturn(true);\n when(candidate.createFrom(tableRow, \"my step\")).thenReturn(normalStep);\n when(steps1.getSteps()).thenReturn(new CandidateStep[] { candidate });\n when(steps2.getSteps()).thenReturn(new CandidateStep[] {});\n\n // When we create the series of steps for the core\n MarkUnmatchedStepsAsPending stepCreator = new MarkUnmatchedStepsAsPending();\n List<Step> executableSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Scenario(asList(\"my step\")), tableRow\n );\n\n // Then all before and after steps should be added\n ensureThat(executableSteps, equalTo(asList(stepBefore2, stepBefore1, normalStep, stepAfter1, stepAfter2)));\n }", "@Override\n public void scenario(gherkin.formatter.model.Scenario scenario) {\n }", "public void addToSteps(entity.LoadStep element);", "@Test(priority = 75)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"BUY GOODS USING MPESA\") })\r\n@Step (\"END OF BUY GOODS USING MPESA TILL TESTCASES\")\r\n@Severity(SeverityLevel.TRIVIAL)\r\npublic void End_Buy_Goods_Using_MPESA_Test_cases() {\n\tSystem.out.println(\"*************************End of buy Goods Using Mpesa Test cases***********************************\");\r\n\r\n}", "@Given(\"prepare to Analysis\")\npublic void preanalysis(){\n}", "public InfoLiveTollsStepDefinition() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void step() {\n\t\t\n\t}", "@Override\n\tpublic void step() {\n\t\t\n\t}", "public boolean addStep(ITemplateStep stepToAdd, ITemplateStep stepBefore);", "private void saveInput(BBSStep aStep) {\n BBSStepData aStepData = BBSStepDataManager.getInstance().getStepData(aStep.getName());\n BBSStepData inheritedData = BBSStepDataManager.getInstance().getInheritedStepData(aStep);\n \n //normal sources\n ArrayList<String> sources = createList(stepExplorerNSourcesList);\n if(this.useAllSourcesCheckbox.isSelected()){\n sources = new ArrayList<>();\n }\n if(sources.equals(inheritedData.getSources())){\n aStepData.setSources(null);\n }else{\n if(this.useAllSourcesCheckbox.isSelected()){\n aStepData.setSources(new ArrayList<String>());\n }else{\n if(sources.size()>0){\n aStepData.setSources(new ArrayList<String>());\n }else{\n aStepData.setSources(null);\n }\n \n }\n }\n if(aStepData.getSources()!=null){\n if(!sources.equals(aStepData.getSources())){\n aStepData.setSources(sources);\n }\n }\n \n //instrument model \n \n ArrayList<String> imodels = createList(stepExplorerInstrumentModelList);\n if(this.noInstrumentModelCheckbox.isSelected()){\n imodels = new ArrayList<>();\n }\n if(imodels.equals(inheritedData.getInstrumentModel())){\n aStepData.setInstrumentModel(null);\n }else{\n if(this.noInstrumentModelCheckbox.isSelected()){\n aStepData.setInstrumentModel(new ArrayList<String>());\n }else{\n if(imodels.size()>0){\n aStepData.setInstrumentModel(new ArrayList<String>());\n }else{\n aStepData.setInstrumentModel(null);\n }\n \n }\n }\n if(aStepData.getInstrumentModel()!=null){\n if(!imodels.equals(aStepData.getInstrumentModel())){\n aStepData.setInstrumentModel(imodels);\n }\n }\n \n/* //instrument model \n \n ArrayList<String> imodels = createArrayListFromSelectionList(stepExplorerInstrumentModelList);\n if(this.noInstrumentModelCheckbox.isSelected()){\n imodels = new ArrayList<String>();\n }\n if(imodels.equals(inheritedData.getInstrumentModel())){\n aStepData.setInstrumentModel(null);\n }else{\n if(this.noInstrumentModelCheckbox.isSelected()){\n aStepData.setInstrumentModel(new ArrayList<String>());\n }else{\n if(imodels.size()>0){\n aStepData.setInstrumentModel(new ArrayList<String>());\n }else{\n aStepData.setInstrumentModel(null);\n }\n \n }\n }\n if(aStepData.getInstrumentModel()!=null){\n if(!imodels.equals(aStepData.getInstrumentModel())){\n aStepData.setInstrumentModel(imodels);\n }\n } \n*/ \n\n//extra sources\n// ArrayList<String> esources = createList(stepExplorerESourcesList);\n// if(!this.useExtraSourcesCheckbox.isSelected()){\n// esources = new ArrayList<String>();\n// }\n// if(esources.equals(inheritedData.getExtraSources())){\n// aStepData.setExtraSources(null);\n// }else{\n// if(!this.useExtraSourcesCheckbox.isSelected()){\n// aStepData.setExtraSources(new ArrayList<String>());\n// }else{\n// if(esources.size()>0){\n// aStepData.setExtraSources(new ArrayList<String>());\n// }else{\n// aStepData.setExtraSources(null);\n// }\n \n// }\n// }\n// if(aStepData.getExtraSources()!=null){\n// if(!esources.equals(aStepData.getExtraSources())){\n// aStepData.setExtraSources(esources);\n// }\n// }\n //output data column\n String outputdata = stepExplorerOutputDataText.getText();\n if(this.writeOutputCheckbox.isSelected()){\n outputdata = \"\";\n }\n if(outputdata.equals(inheritedData.getOutputDataColumn())){\n aStepData.setOutputDataColumn(null);\n }else{\n if(this.writeOutputCheckbox.isSelected()){\n aStepData.setOutputDataColumn(\"\");\n }else{\n if(!outputdata.equals(\"\")){\n aStepData.setOutputDataColumn(\"\");\n }else{\n aStepData.setOutputDataColumn(null);\n }\n \n }\n }\n if(aStepData.getOutputDataColumn()!=null){\n if(!outputdata.equals(aStepData.getOutputDataColumn())){\n aStepData.setOutputDataColumn(outputdata);\n }\n }\n \n\n \n //Integration\n //Time\n if(this.integrationTimeText.getText().equals(\"\")){\n aStepData.setIntegrationTime(-1.0);\n }else{\n if(Double.parseDouble(integrationTimeText.getText()) == inheritedData.getIntegrationTime()){\n aStepData.setIntegrationTime(-1.0);\n }else{\n aStepData.setIntegrationTime(0.0);\n }\n }\n if(aStepData.getIntegrationTime()!=-1.0){\n if(Double.parseDouble(integrationTimeText.getText()) != aStepData.getIntegrationTime()){\n aStepData.setIntegrationTime(Double.parseDouble(integrationTimeText.getText()));\n }\n }\n //Frequency\n if(this.integrationFrequencyText.getText().equals(\"\")){\n aStepData.setIntegrationFrequency(-1.0);\n }else{\n if(Double.parseDouble(integrationFrequencyText.getText()) == inheritedData.getIntegrationFrequency()){\n aStepData.setIntegrationFrequency(-1.0);\n }else{\n aStepData.setIntegrationFrequency(0.0);\n }\n }\n if(aStepData.getIntegrationFrequency()!=-1.0){\n if(Double.parseDouble(integrationFrequencyText.getText()) != aStepData.getIntegrationFrequency()){\n aStepData.setIntegrationFrequency(Double.parseDouble(integrationFrequencyText.getText()));\n }\n }\n \n //Correlation\n //Type\n if(this.createArrayListFromSelectionList(this.stepExplorerCorrelationTypeList).isEmpty()){\n aStepData.setCorrelationType(null);\n }else{\n if(createArrayListFromSelectionList(stepExplorerCorrelationTypeList).equals(inheritedData.getCorrelationType())){\n aStepData.setCorrelationType(null);\n }else{\n aStepData.setCorrelationType(new ArrayList<String>());\n }\n }\n if(aStepData.getCorrelationType()!=null){\n if(!createArrayListFromSelectionList(stepExplorerCorrelationTypeList).equals(aStepData.getCorrelationType())){\n aStepData.setCorrelationType(createArrayListFromSelectionList(stepExplorerCorrelationTypeList));\n }\n }\n //Selection\n String selectedCSelection = null;\n if(this.stepExplorerCorrelationSelectionBox.getSelectedItem() != null){\n selectedCSelection = this.stepExplorerCorrelationSelectionBox.getSelectedItem().toString();\n }\n if(selectedCSelection == null){\n aStepData.setCorrelationSelection(null);\n }else{\n if(selectedCSelection.equals(\"N/A\")){\n aStepData.setCorrelationSelection(null);\n }else{\n if(selectedCSelection.equals(inheritedData.getCorrelationSelection())){\n aStepData.setCorrelationSelection(null);\n }else{\n aStepData.setCorrelationSelection(\"Generated by BBS GUI\");\n }\n }\n }\n if(aStepData.getCorrelationSelection()!=null){\n if(selectedCSelection!= null && !selectedCSelection.equals(aStepData.getCorrelationSelection())){\n aStepData.setCorrelationSelection(selectedCSelection);\n }\n }\n \n //baseline selection\n ArrayList<ArrayList<String>> baselines = createArrayListsFromBaselineTable();\n ArrayList<String> station1 = baselines.get(0);\n ArrayList<String> station2 = baselines.get(1);\n if(this.baselineUseAllCheckbox.isSelected()){\n station1 = new ArrayList<>();\n station2 = new ArrayList<>();\n }\n if(station1.equals(inheritedData.getStation1Selection()) && station2.equals(inheritedData.getStation2Selection())){\n aStepData.setStation1Selection(null);\n }else{\n if(this.baselineUseAllCheckbox.isSelected()){\n aStepData.setStation1Selection(new ArrayList<String>());\n }else{\n if(station1.size()>0 && station2.size()>0){\n aStepData.setStation1Selection(new ArrayList<String>());\n }else{\n aStepData.setStation1Selection(null);\n }\n \n }\n \n }\n \n if(station1.equals(inheritedData.getStation1Selection()) && station2.equals(inheritedData.getStation2Selection())){\n aStepData.setStation2Selection(null);\n }else{\n if(this.baselineUseAllCheckbox.isSelected()){\n aStepData.setStation2Selection(new ArrayList<String>());\n }else{\n if(station1.size()>0 && station2.size()>0){\n aStepData.setStation2Selection(new ArrayList<String>());\n }else{\n aStepData.setStation2Selection(null);\n }\n \n }\n }\n \n if(aStepData.getStation1Selection()!=null){\n if(!station1.equals(aStepData.getStation1Selection())){\n aStepData.setStation1Selection(station1);\n }\n }\n if(aStepData.getStation2Selection()!=null){\n if(!station2.equals(aStepData.getStation2Selection())){\n aStepData.setStation2Selection(station2);\n }\n }\n \n //Operation\n \n //name\n String selectedOSelection = null;\n if(this.stepExplorerOperationComboBox.getSelectedItem() != null){\n selectedOSelection = this.stepExplorerOperationComboBox.getSelectedItem().toString();\n }\n if(selectedOSelection == null){\n aStepData.setOperationName(null);\n \n }else{\n if(selectedOSelection.equals(\"NOT DEFINED\")){\n aStepData.setOperationName(null);\n }else{\n if(selectedOSelection.equals(inheritedData.getOperationName())){\n aStepData.setOperationName(null);\n }else{\n aStepData.setOperationName(\"Generated by BBS GUI\");\n }\n }\n }\n if(aStepData.getOperationName()!=null){\n if(selectedOSelection!= null && !selectedOSelection.equals(aStepData.getOperationName())){\n aStepData.setOperationName(selectedOSelection);\n }\n }\n //fetch variables from operation attributes panel\n if(!selectedOSelection.equals(\"NOT DEFINED\") && currentStepOperationsPanel != null){\n if(this.currentStepOperationsPanel.getBBSStepOperationAttributes()!=null){\n \n HashMap<String,String> valuesFromForm = currentStepOperationsPanel.getBBSStepOperationAttributes();\n \n HashMap<String,String> oldValuesFromStep = aStepData.getOperationAttributes();\n \n if(oldValuesFromStep == null) oldValuesFromStep = new HashMap<>();\n \n for(String aKey : valuesFromForm.keySet()){\n if(oldValuesFromStep.containsKey(aKey)){\n if(valuesFromForm.get(aKey) == null){\n oldValuesFromStep.put(aKey,null);\n }else{\n if(valuesFromForm.get(aKey).equals(inheritedData.getOperationAttribute(aKey))){\n oldValuesFromStep.put(aKey,null);\n }else{\n oldValuesFromStep.put(aKey,\"Generated by BBS GUI\");\n }\n }\n if(oldValuesFromStep.get(aKey) != null){\n if(!valuesFromForm.get(aKey).equals(oldValuesFromStep.get(aKey))){\n oldValuesFromStep.put(aKey,valuesFromForm.get(aKey));\n aStepData.setOperationName(selectedOSelection);\n }\n }\n }else{\n String newValue = valuesFromForm.get(aKey);\n String inheritedValue = inheritedData.getOperationAttribute(aKey);\n if(newValue!= null && newValue.equals(inheritedValue)){\n oldValuesFromStep.put(aKey,null);\n }else{\n oldValuesFromStep.put(aKey,valuesFromForm.get(aKey));\n aStepData.setOperationName(selectedOSelection);\n }\n }\n }\n aStepData.setOperationAttributes(oldValuesFromStep);\n }\n }else if(currentStepOperationsPanel == null){\n aStepData.setOperationAttributes(null);\n }\n }", "@Override\n\tpublic void step() {\n\t}", "@Override\n\tpublic void step() {\n\t}", "public void testStep() {\n\n DT_TractographyImage crossing = Images.getCrossing();\n\n FACT_FibreTracker tracker = new FACT_FibreTracker(crossing);\n\n Vector3D[] pds = crossing.getPDs(1,1,1);\n\n Vector3D step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, true);\n\n assertEquals(1.0, pds[0].dot(step.normalized()), 1E-8);\n\n assertEquals(Images.xVoxelDim / 2.0, step.mod(), 0.05);\n \n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, false);\n\n assertEquals(-1.0, pds[0].dot(step.normalized()), 1E-8);\n\n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 1, true);\n\n assertEquals(1.0, pds[1].dot(step.normalized()), 1E-8);\n\n\n for (int i = 0; i < 2; i++) {\n\n step = tracker.getNextStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), new Vector3D(pds[i].x + 0.01, pds[i].y + 0.02, pds[i].z + 0.03).normalized());\n\n assertEquals(1.0, pds[i].dot(step.normalized()), 1E-8);\n\n }\n\n \n }", "public ProofStep [ ] getSteps ( ) ;", "Feature update(Feature feature);", "protected void runAfterStep() {}", "public InputFewStepsFactoryImpl() {\n\t\tsuper();\n\t}", "void addFeature(Feature feature);", "public String getStepLine()\n\t{\n\t\tString stepString = new String(\"#\"+this.stepLineNumber+\"= \");\n\t\tstepString = stepString.concat(\"IFCDOORLININGPROPERTIES(\");\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"GlobalId\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.GlobalId != null)\t\tstepString = stepString.concat(((RootInterface)this.GlobalId).getStepParameter(IfcGloballyUniqueId.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"OwnerHistory\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.OwnerHistory != null)\t\tstepString = stepString.concat(((RootInterface)this.OwnerHistory).getStepParameter(IfcOwnerHistory.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"Name\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.Name != null)\t\tstepString = stepString.concat(((RootInterface)this.Name).getStepParameter(IfcLabel.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"Description\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.Description != null)\t\tstepString = stepString.concat(((RootInterface)this.Description).getStepParameter(IfcText.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"LiningDepth\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.LiningDepth != null)\t\tstepString = stepString.concat(((RootInterface)this.LiningDepth).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"LiningThickness\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.LiningThickness != null)\t\tstepString = stepString.concat(((RootInterface)this.LiningThickness).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"ThresholdDepth\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.ThresholdDepth != null)\t\tstepString = stepString.concat(((RootInterface)this.ThresholdDepth).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"ThresholdThickness\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.ThresholdThickness != null)\t\tstepString = stepString.concat(((RootInterface)this.ThresholdThickness).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"TransomThickness\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.TransomThickness != null)\t\tstepString = stepString.concat(((RootInterface)this.TransomThickness).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"TransomOffset\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.TransomOffset != null)\t\tstepString = stepString.concat(((RootInterface)this.TransomOffset).getStepParameter(IfcLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"LiningOffset\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.LiningOffset != null)\t\tstepString = stepString.concat(((RootInterface)this.LiningOffset).getStepParameter(IfcLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"ThresholdOffset\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.ThresholdOffset != null)\t\tstepString = stepString.concat(((RootInterface)this.ThresholdOffset).getStepParameter(IfcLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"CasingThickness\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.CasingThickness != null)\t\tstepString = stepString.concat(((RootInterface)this.CasingThickness).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"CasingDepth\")) stepString = stepString.concat(\"*,\");\n\t\telse{\n\t\tif(this.CasingDepth != null)\t\tstepString = stepString.concat(((RootInterface)this.CasingDepth).getStepParameter(IfcPositiveLengthMeasure.class.isInterface())+\",\");\n\t\telse\t\tstepString = stepString.concat(\"$,\");\n\t\t}\n\t\tif(getRedefinedDerivedAttributeTypes().contains(\"ShapeAspectStyle\")) stepString = stepString.concat(\"*);\");\n\t\telse{\n\t\tif(this.ShapeAspectStyle != null)\t\tstepString = stepString.concat(((RootInterface)this.ShapeAspectStyle).getStepParameter(IfcShapeAspect.class.isInterface())+\");\");\n\t\telse\t\tstepString = stepString.concat(\"$);\");\n\t\t}\n\t\treturn stepString;\n\t}", "@Override\r\n public void afterOriginalStep(TestCaseRunner testRunner, SecurityTestRunContext runContext,\r\n SecurityTestStepResult result) {\n\r\n }", "private Step createScreenShotStep(String tag, String featureName, String scenarioName) {\n tag = tag.replaceAll(\"\\\"\", \"\").replaceAll(\" \", \"_\").replaceAll(\"-\",\"_\");//using previous Then statement as image tag. remove space and ' \" '\n return new Step(null, \"And \", \"take screenshot \\\"\"+tag+\"\\\" in feature file \\\"\"+featureName+\"\\\" with scenario \\\"\"+scenarioName+\"\\\"\", -1, null, null);\n }", "@Before\n public void beforeScenario() {\n }", "@Test\r\n\tpublic void testCheck_featureBeginEndPositionEqual1() {\r\n\t\tint beginN = 40;\r\n\t\tboolean removeall = true;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ADFSGDFHGHJK\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 45,\r\n\t\t\t\t(long) 45));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tentry.addFeature(feature1);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN, removeall).size() == 0);\r\n\t}", "@Given(\"prepare to Access & exfiltrate data within the victim's security zone\")\npublic void preaccessexfiltratedatawithinthevictimssecurityzone(){\n}", "public void removeFromSteps(entity.LoadStep element);", "@Test(groups = \"noDevBuild\")\n public void checkFeatureCode() {\n browser.reportLinkLog(\"checkFeatureCode\");\n featurePages\n .setNewFeatureBtn(\"publishable\")\n .setNewFeatureName(groupName)\n .setNewFeatureCode(groupName)\n .setNewFeatureDescription(\"Test 1\")\n .setNewFeatureSavebtn();\n portalPages\n .setTopNavLink(topnav);\n featurePages\n .setNewFeatureBtn(\"publishable\")\n .setNewFeatureName(groupName)\n .setNewFeatureCode(groupName)\n .setNewFeatureDescription(\"Test 1\")\n .setNewFeatureSavebtn();\n browser.waitForId(\"helpText_duplicate_featureCode\");\n }", "public StepInterface getOriginalStep()\n {\n return this.step;\n }", "java.lang.String getNextStep();", "private void updatingOptionalFeature(ArrayList<String>\tOnlyInLeft, ArrayList<String>\tOnlyInRight, Model splModel, Model newModel){\r\n//STEP 1 ---------------------------------------------------------------------------------------------\r\n\t\t//Feature optionalFeature = null;\t\t\r\n\t\t//New 02/12/201/\r\n\t\tFeature newModelOptionalFeature = null;\r\n\t\tFeature newVariant = null;\r\n\t\tConstraint constraint = null;\r\n\t\tnewVariant = new Feature(newModel.getId()+\"_Variant\", \"variant\", this.alternativeFeatureGroup.get(0).getId());\r\n\t\tthis.addVariant(newVariant);\r\n\t\t//-New 02/12/201/\r\n\t\t\r\n\t\tif(OnlyInLeft.size()==0){\r\n\t\t}else{\r\n\t\t\tnewModelOptionalFeature= new Feature(\"f\"+(this.optionalFeatures.size()+1) , \"optional\", this.getBase().getName(), OnlyInLeft);\r\n\t\t\tthis.optionalFeatures.add(newModelOptionalFeature);\r\n\t\t\t\r\n\t\t\t//New 02/12/201/\r\n\t\t\tfor(int i = 0; i < this.getVariants().getFeatures().size();i++){\r\n\t\t\t\tFeature variant = this.getVariants().getFeatures().get(i);\r\n\t\t\t\tif(variant==newVariant){\r\n\t\t\t\t}else{\r\n\t\t\t\t\tconstraint = new Constraint(variant.getName(), \"\\u00AC\"+newModelOptionalFeature.getName());\r\n\t\t\t\t\t//addConstraint(constraint);\r\n\t\t\t\t}//if(variant==newVariant){\r\n\t\t\t\t\r\n\t\t\t}//for(int i = 0; i <this.getVariants().getFeatures().size();i++){\t\r\n\t\t\t//-New 02/12/201/\r\n\t\t\tconstraint = new Constraint(newVariant.getName(), newModelOptionalFeature.getName());\r\n\t\t\t//this.constraints.add(constraint);\r\n\t\t\taddConstraint(constraint);\r\n\t\t\t\r\n\t\t\t//System.out.println(\" *** \"+this.constraints.size());\r\n\t\t\t//System.out.println(\" ... \"+constraint.toString());\r\n\t\t\t\r\n\t\t}//if(OnlyInLeft.size()==0){\r\n\r\n//STEP 2 ---------------------------------------------------------------------------------------------\r\n\t\t\r\n\t\tFeature optionalFeature = null;\r\n\t\t\r\n\t\tArrayList<String> elts = MyString.intersection(OnlyInRight, this.getBase().getElements());\r\n\t\tif(elts.size()==0){\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\tthis.getBase().setElements(MyString.minus(this.getBase().getElements(), elts));\r\n\t\t\toptionalFeature= new Feature(\"f\"+(this.optionalFeatures.size()+1) , \"optional\", this.getBase().getName(), elts);\r\n\t\t\tthis.optionalFeatures.add(optionalFeature);\r\n\t\t\t\r\n\t\t\t//OnlyInRight = MyString.minus(OnlyInRight, elts);\r\n\t\t\t\r\n\t\t\t//New 03/12/2018\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < this.getVariants().getFeatures().size();i++){\r\n\t\t\t\tFeature variant = this.getVariants().getFeatures().get(i);\r\n\t\t\t\tif(variant==newVariant){\r\n\t\t\t\t}else{\r\n\t\t\t\t\tconstraint = new Constraint(variant.getName(), optionalFeature.getName());\r\n\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t}//if(variant==newVariant){\r\n\t\t\t}//for(int i = 0; i <this.getVariants().getFeatures().size();i++){\r\n\t\t\t\r\n\t\t\tconstraint = new Constraint(newVariant.getName(), \"\\u00AC\" + optionalFeature.getName());\r\n\t\t\t//this.constraints.add(constraint);\r\n\t\t\t//addConstraint(constraint);\r\n\t\t\t//-New 03/12/2018\r\n\t\t\t\r\n\t\t\t//New 03/12/2018\r\n\t\t\t//update parent feature of feature groups\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++){\r\n\t\t\t\tFeatureGroup fg = this.getAlternativeFeatureGroup().get(i);\r\n\t\t\t\t\r\n\t\t\t\tif(fg.getParent().equals(this.getBase().getName())){\r\n\t\t\t\t\t\r\n\t\t\t\t\tString elt = fg.getFeatures().get(0).getElements().get(0); \r\n\t\t\t\t\tString parentElt = splModel.getParent(splModel.getElement(elt)).getId();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(optionalFeature.contains(parentElt)){\r\n\t\t\t\t\t\t//System.out.println(\"%%%%%%%%%%%%% + \"+parentElt);\r\n\t\t\t\t\t\tfg.setParent(optionalFeature.getName());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}//for(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++){\r\n\t\t\t\r\n\t\t\t//-New 03/12/2018\r\n\t\t}//if(elts.size()==0){\r\n\t\t\r\n//STEP 3 ---------------------------------------------------------------------------------------------\r\n\r\n\t\t\r\n\t\tint i = 0;\r\n\t\twhile( i<this.optionalFeatures.size()){ //New 03/12/02018\r\n\t\t\tFeature f = this.optionalFeatures.get(i);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif(f==newModelOptionalFeature){\r\n\t\t\t}else{\r\n\t\t\t\telts = f.getElements();\r\n\t\t\t\tArrayList<String> elts1 = MyString.intersection(OnlyInRight, elts);\r\n\t\t\t\tif(elts1.size()==0 ){\r\n\t\t\t\t\t//SUP\r\n\t\t\t\t\t//New 03/12/02018\r\n\t\t\t\t\tconstraint = new Constraint(newVariant.getName(), f.getName());\r\n\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t\t//-New 03/12/02018\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif( MyString.contains(OnlyInRight, elts) ){\r\n\t\t\t\t\t\t//New 03/12/02018\r\n\t\t\t\t\t\t//OnlyInRight = MyString.minus(OnlyInRight, elts); \r\n\t\t\t\t\t\tconstraint = new Constraint(newVariant.getName(), \"\\u00AC\"+f.getName());\r\n\t\t\t\t\t\t//addConstraint(constraint);\r\n\t\t\t\t\t\t//-New 03/12/02018\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\toptionalFeature= new Feature(\"f\"+(this.optionalFeatures.size()+1) , \"optional\", this.getBase().getName(), elts1);\r\n\t\t\t\t\t\tthis.optionalFeatures.add(optionalFeature);\r\n\t\t\t\t\t\tf.setElements(MyString.minus(elts, elts1));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//OnlyInRight = MyString.minus(OnlyInRight, elts1);\r\n\r\n\t\t\t\t\t\t//New 09-01-2019\r\n\t\t\t\t\t\t//OnlyInRight = elts; \r\n\t\t\t\t\t\t//--------New 09-01-2019\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int j = 0; j < this.getVariants().getFeatures().size(); j++){\r\n\t\t\t\t\t\t\tFeature variant = this.getVariants().getFeatures().get(j);\r\n\t\t\t\t\t\t\tif(variant==newVariant){\r\n\t\t\t\t\t\t\t}else{ \r\n\t\t\t\t\t\t\t\tif(Constraint.contains(this.constraints, variant.getName(), f.getName(), \"implies\") ){\r\n\t\t\t\t\t\t\t\t\tconstraint = new Constraint(variant.getName(), optionalFeature.getName());\r\n\t\t\t\t\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}//if(variant==newVariant){\r\n\t\t\t\t\t\t}//for(int j = 0; j < this.getVariants().getFeatures().size(); j++){\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\tconstraint = new Constraint(newVariant.getName(), \"\\u00AC\"+optionalFeature.getName());\r\n\t\t\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\t\t\t//addConstraint(constraint);\r\n\t\t\t\t\t\t\tconstraint = new Constraint(newVariant.getName(), f.getName());\r\n\t\t\t\t\t\t\t//this.constraints.add(constraint);\r\n\t\t\t\t\t\t\taddConstraint(constraint);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//-New 03/12/02018\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//New 03/12/2018\r\n\t\t\t\t\t\t\t//update parent feature of feature groups\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\tfor(int j = 1; j < this.getAlternativeFeatureGroup().size(); j++){\r\n\t\t\t\t\t\t\t\tFeatureGroup fg = this.getAlternativeFeatureGroup().get(j);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(fg.getParent().equals(f.getName())){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tString elt = fg.getFeatures().get(0).getElements().get(0); \r\n\t\t\t\t\t\t\t\t\tString parentElt = splModel.getParent(splModel.getElement(elt)).getId();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tif(optionalFeature.contains(parentElt)){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\tfg.setParent(optionalFeature.getName());\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}//for(int i = 1; i < this.getAlternativeFeatureGroup().size(); i++){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//-New 03/12/2018\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//if( MyString.contains(OnlyInRight, f.getElements()) ){\r\n\t\t\t\t}//if( elts1.size()==0 ){\r\n\t\t\t\r\n\t\t\t}//if(f==newModelOptionalFeature){ New 03/12/02018\r\n\t\t\ti++;\r\n\t\t}//while(){\r\n\t\t\r\n\t\r\n\t\t\r\n\t\tthis.updatingAlternativeFeatures(splModel, newModelOptionalFeature, newVariant, OnlyInRight, newModel);\r\n\t}", "@Test\r\n\tpublic void testCheck_featureBeginEndPositionEqual2() {\r\n\t\tint beginN = 40;\r\n\t\tboolean removeall = false;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ADFSGDFHGHJK\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 45,\r\n\t\t\t\t(long) 45));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tentry.addFeature(feature1);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN, removeall).size() == 1);\r\n\t}", "public boolean addStep(ITemplateStep step);", "@Given(\"prepare to Attempt well-known or guessable resource locations\")\npublic void preattemptwellknownorguessableresourcelocations(){\n}", "public void chg() {\n currentChangeStep = 3;\n }", "@Override\n public void onStepStopping(FlowStep flowStep) {\n }", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature addNewPlanFeature();", "@Override\n\tprotected void setProfile(List<Step> arg0, List<Step> arg1) {\n\t\t\n\t}", "@Override\r\n\tpublic void addStepHandler(StepHandler handler) {\n\t\t\r\n\t}", "public static void Feature1() {\r\n\t\tSystem.out.println(\"New Feature 2010: is now automatic\");\r\n\t}", "@Given(\"I come in to the bar\")\r\n public void i_come_in_to_the_bar() {\n System.out.println(\"@Given: Entro al bar\");\r\n //throw new io.cucumber.java.PendingException();\r\n }", "@Override\n public boolean step() {\n return false;\n }", "@Before\r\n public void startUp(Scenario scenario) {\r\n\r\n //this is used to add per scenario log to report with unique name\r\n long logging_start = System.nanoTime();\r\n\r\n //initialize Logger class, without this line log for the first scenario will not be attached\r\n Log.info(\"***\");\r\n Log.info(\"***\");\r\n\r\n //add appender to attach log for particular scenario to the report\r\n addAppender(out,scenario.getName()+logging_start);\r\n\r\n //start scenario\r\n String[] tId = scenario.getId().split(\";\");\r\n Log.info(\"*** Feature id: \" + tId[0] + \" ***\");\r\n Log.info(\"***\");\r\n Log.info(\"***\");\r\n Log.info(\"*** Scenario with name: \" + scenario.getName() + \" started! ***\");\r\n Log.info(\"***\");\r\n Log.info(\"***\");\r\n\r\n /* Global resources load */\r\n Log.info(\"Started resources initialisation\");\r\n Log.info(\"<- creating shared context ->\");\r\n ctx.Object = new Context();\r\n ctx.Object.put(\"FeatureId\", String.class, tId[0]);\r\n ctx.Object.put(\"ScenarioId\", String.class, scenario.getName());\r\n\r\n FileCore fileCore = new FileCore(ctx);\r\n ctx.Object.put(\"FileCore\", FileCore.class, fileCore);\r\n\r\n ConfigReader Config = new ConfigReader(ctx);\r\n ctx.Object.put(\"Config\", ConfigReader.class, Config);\r\n\r\n Storage storage = new Storage(ctx);\r\n ctx.Object.put(\"Storage\", Storage.class, storage);\r\n\r\n PropertyReader env = new PropertyReader(ctx);\r\n ctx.Object.put(\"Environment\", PropertyReader.class, env);\r\n\r\n Macro macro = new Macro(ctx);\r\n ctx.Object.put(\"Macro\", Macro.class, macro);\r\n\r\n ExecutorCore executorCore = new ExecutorCore(ctx);\r\n ctx.Object.put(\"ExecutorCore\", ExecutorCore.class, executorCore);\r\n\r\n AssertCore assertCore = new AssertCore(ctx);\r\n ctx.Object.put(\"AssertCore\", AssertCore.class, assertCore);\r\n\r\n PdfCore pdfCore = new PdfCore(ctx);\r\n ctx.Object.put(\"PdfCore\", PdfCore.class, pdfCore);\r\n\r\n SshCore sshCore = new SshCore(ctx);\r\n ctx.Object.put(\"SshCore\", SshCore.class, sshCore);\r\n\r\n WinRMCore winRmCore = new WinRMCore(ctx);\r\n ctx.Object.put(\"WinRMCore\", WinRMCore.class, winRmCore);\r\n\r\n SqlCore sqlCore = new SqlCore(ctx);\r\n ctx.Object.put(\"SqlCore\", SqlCore.class, sqlCore);\r\n\r\n StepCore step = new StepCore(ctx);\r\n ctx.Object.put(\"StepCore\", StepCore.class, step);\r\n\r\n //get resources from ctx object\r\n FileCore FileCore = ctx.Object.get(\"FileCore\", FileCore.class);\r\n Macro Macro = ctx.Object.get(\"Macro\", Macro.class);\r\n StepCore = ctx.Object.get(\"StepCore\", StepCore.class);\r\n Storage = ctx.Object.get(\"Storage\", Storage.class);\r\n\r\n Log.info(\"<- reading default configuration ->\");\r\n String defaultConfigDir = FileCore.getProjectPath() + File.separator + \"libs\" + File.separator + \"libCore\" + File.separator + \"config\";\r\n Log.debug(\"Default configuration directory is \" + defaultConfigDir);\r\n\r\n ArrayList<String> defaultConfigFiles = FileCore.searchForFile(defaultConfigDir,\".config\");\r\n if(defaultConfigFiles.size()!=0) {\r\n for (String globalConfigFile : defaultConfigFiles) {\r\n Config.create(globalConfigFile);\r\n }\r\n }\r\n\r\n Log.info(\"<- reading global configuration ->\");\r\n String globalConfigDir = FileCore.getGlobalConfigPath();\r\n Log.debug(\"Global configuration directory is \" + globalConfigDir);\r\n\r\n ArrayList<String> globalConfigFiles = FileCore.searchForFile(globalConfigDir,\".config\");\r\n if(globalConfigFiles.size()!=0) {\r\n for (String globalConfigFile : globalConfigFiles) {\r\n Config.create(globalConfigFile);\r\n }\r\n }\r\n\r\n //configuring logger for rest operations\r\n ToLoggerPrintStream loggerPrintStream = new ToLoggerPrintStream();\r\n Log.info(\"Finished resources initialisation\");\r\n\r\n /* Local resources load */\r\n Log.info(\"<- Started local config load ->\");\r\n String featureDir = FileCore.getCurrentFeatureDirPath();\r\n\r\n Log.debug(\"Feature dir is \" + featureDir);\r\n if( featureDir != null ){\r\n ctx.Object.put(\"FeatureFileDir\", String.class, featureDir);\r\n\r\n ArrayList<String> localConfigFiles = FileCore.searchForFile(featureDir,\".config\");\r\n if(localConfigFiles.size()!=0) {\r\n for (String localConfigFile : localConfigFiles) {\r\n Config.create(localConfigFile);\r\n }\r\n }else{\r\n Log.warn(\"No local config files found!\");\r\n }\r\n }\r\n\r\n //all global and local configuration loaded.\r\n //show default config\r\n Log.debug(\"Checking default environment configuration\");\r\n HashMap<String, Object> defaultEnvConfig = Storage.get(\"Environment.Default\");\r\n HashMap<String, Object> sshConfig = Storage.get(\"Ssh\");\r\n HashMap<String, Object> winRmConfig = Storage.get(\"WinRM\");\r\n Map<String, Object> finalEnvConfig = Storage.get(\"Environment.Active\");\r\n if ( defaultEnvConfig == null || defaultEnvConfig.size() == 0 ){\r\n Log.error(\"Default configuration Environment.\"\r\n + \" Default not found or empty. Please create it!\");\r\n }\r\n if ( finalEnvConfig == null ) {\r\n Log.error(\"Environment.Active object does not exists or null.\"\r\n + \" Please create such entry in global configuration\");\r\n }\r\n if ( sshConfig == null ) {\r\n Log.error(\"Ssh object does not exists or null. Please create it!\");\r\n }\r\n if ( winRmConfig == null ) {\r\n Log.error(\"WinRM object does not exists or null. Please create it!\");\r\n }\r\n //merge ssh with default\r\n defaultEnvConfig.put(\"Ssh\", sshConfig);\r\n //merge winRM with default\r\n defaultEnvConfig.put(\"WinRM\", winRmConfig);\r\n //check if cmd argument active_env was provided to overwrite active_env\r\n String cmd_arg = System.getProperty(\"active_env\");\r\n if ( cmd_arg != null ) {\r\n Log.info(\"Property Environment.Active.name overwritten by CMD arg -Dactive_env=\" + cmd_arg);\r\n Storage.set(\"Environment.Active.name\", cmd_arg);\r\n }\r\n //read name of the environment that shall be activated\r\n Log.debug(\"Checking active environment configuration\");\r\n String actEnvName = Storage.get(\"Environment.Active.name\");\r\n if ( actEnvName == null || actEnvName.equals(\"\") || actEnvName.equalsIgnoreCase(\"default\") ) {\r\n Log.debug(\"Environment.Active.name not set! Fallback to Environment.Default\");\r\n } else {\r\n //check if config with such name exists else fallback to default\r\n HashMap<String, Object> activeEnvConfig = Storage.get(\"Environment.\" + actEnvName);\r\n if ( activeEnvConfig == null || activeEnvConfig.size() == 0 ){\r\n Log.error(\"Environment config with name \" + actEnvName + \" not found or empty\");\r\n }\r\n //merge default and active\r\n deepMerge(defaultEnvConfig, activeEnvConfig);\r\n defaultEnvConfig = Storage.get(\"Environment.Default\");\r\n }\r\n //create final\r\n deepMerge(finalEnvConfig, defaultEnvConfig);\r\n\r\n //check if cmd argument widthXheight was provided to overwrite active_env\r\n String cmd_arg2 = System.getProperty(\"widthXheight\");\r\n if ( cmd_arg2 != null ) {\r\n Log.info(\"Property Environment.Active.Web.size overwritten by CMD arg -widthXheight=\" + cmd_arg2);\r\n Storage.set(\"Environment.Active.Web.size\", cmd_arg2);\r\n }\r\n\r\n Log.info(\"-- Following configuration Environment.Active is going to be used --\");\r\n for (HashMap.Entry<String, Object> entry : finalEnvConfig.entrySet()) {\r\n String[] tmp = entry.getValue().getClass().getName().split(Pattern.quote(\".\")); // Split on period.\r\n String type = tmp[2];\r\n Log.info( \"(\" + type + \")\" + entry.getKey() + \" = \" + entry.getValue() );\r\n }\r\n Log.info(\"-- end --\");\r\n\r\n //adjust default RestAssured config\r\n Log.debug(\"adjusting RestAssured config\");\r\n int maxConnections = Storage.get(\"Environment.Active.Rest.http_maxConnections\");\r\n Log.debug(\"Setting http.maxConnections to \" + maxConnections);\r\n System.setProperty(\"http.maxConnections\", \"\" + maxConnections);\r\n\r\n Boolean closeIdleConnectionsAfterEachResponseAfter = Storage.get(\"Environment.Active.Rest.closeIdleConnectionsAfterEachResponseAfter\");\r\n if ( closeIdleConnectionsAfterEachResponseAfter ) {\r\n int idleTime = Storage.get(\"Environment.Active.Rest.closeIdleConnectionsAfterEachResponseAfter_idleTime\");\r\n Log.debug(\"Setting closeIdleConnectionsAfterEachResponseAfter=true with idleTime \" + idleTime);\r\n RestAssured.config = RestAssured.config().connectionConfig(\r\n connectionConfig().closeIdleConnectionsAfterEachResponseAfter(\r\n idleTime,\r\n TimeUnit.SECONDS)\r\n );\r\n }\r\n\r\n Boolean reuseHttpClientInstance = Storage.get(\"Environment.Active.Rest.reuseHttpClientInstance\");\r\n if ( reuseHttpClientInstance ) {\r\n Log.debug(\"Setting reuseHttpClientInstance=true\");\r\n RestAssured.config = RestAssured.config().httpClient(\r\n httpClientConfig().reuseHttpClientInstance()\r\n );\r\n }\r\n\r\n Boolean relaxedHTTPSValidation = Storage.get(\"Environment.Active.Rest.relaxedHTTPSValidation\");\r\n if ( relaxedHTTPSValidation ) {\r\n Log.debug(\"Setting relaxedHTTPSValidation=true\");\r\n RestAssured.config = RestAssured.config().sslConfig(\r\n sslConfig().relaxedHTTPSValidation()\r\n );\r\n }\r\n\r\n Boolean followRedirects = Storage.get(\"Environment.Active.Rest.followRedirects\");\r\n if ( followRedirects != null ) {\r\n Log.debug(\"Setting followRedirects=\" + followRedirects);\r\n RestAssured.config = RestAssured.config().redirect(\r\n redirectConfig().followRedirects(followRedirects)\r\n );\r\n }\r\n\r\n RestAssured.config = RestAssured.config().decoderConfig(\r\n DecoderConfig.decoderConfig().defaultContentCharset(\"UTF-8\"));\r\n\r\n RestAssured.config = RestAssured.config().logConfig(\r\n new LogConfig( loggerPrintStream.getPrintStream(), true )\r\n );\r\n\r\n //check if macro evaluation shall be done in hooks\r\n Boolean doMacroEval = Storage.get(\"Environment.Active.MacroEval\");\r\n if ( doMacroEval == null ){\r\n Log.error(\"Environment.Active.MacroEval null or empty!\");\r\n }\r\n if( doMacroEval ){\r\n Log.info(\"Evaluating macros in TestData and Expected objects\");\r\n Macro.eval(\"TestData\");\r\n Macro.eval(\"Expected\");\r\n }\r\n\r\n Log.info(\"Test data storage is\");\r\n Storage.print(\"TestData\");\r\n\r\n Log.info(\"<- Finished local config load ->\");\r\n Log.info(\"***\");\r\n Log.info(\"*** Running steps for scenario: \" + scenario.getName());\r\n Log.info(\"***\");\r\n\r\n }", "protected abstract R runStep();", "public ITemplateStep removeStep(ITemplateStep stepToRemove);", "public void setStep(int step)\n {\n this.step = step;\n this.stepSpecified = true;\n }", "public void addStep(BooleanSupplier step) {\n _steps.add(step);\n }", "@Override\n public void feature(gherkin.formatter.model.Feature feature) {\n setTagStatementAttributes(testedFeature, feature);\n }", "Feature createFeature();", "private void _addStep(PlanGraphStep stepToAdd, int currentLevel) {\n\t\t\n\t\tsteps.get(currentLevel).add(stepToAdd);\n\t\tfacts.get(currentLevel).addAll(stepToAdd.getChildNodes());\n\t\tcheckSupportedPreconditions(stepToAdd, currentLevel);\n\t\tpropagateAddStep(stepToAdd, currentLevel);\n\t}", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "org.landxml.schema.landXML11.FeatureDocument.Feature addNewFeature();", "public void addStep(MRStep mrStep) {\n\t\tfor(Map.Entry<String, MRInput> binding: mrStep.bindings.entrySet()) {\n\t\t\tbind(mrStep.name + \".\" + binding.getKey(), binding.getValue().getId());\n\t\t}\n\t\t\n\t\tint param = 0;\n\t\tfor(OperativeStep st: mrStep.extraDependencies) {\n\t\t\tbind(mrStep.name + \".extradep\" + param, st.name + \".output\");\n\t\t\tparam++;\n\t\t}\n\t\t\n\t\tadd(mrStep.getStep());\n\t}", "public abstract void performStep();", "public boolean getCustomBuildStep();", "public static void removeTheGivenStep(StepType step){\n\t\t\n\t\tPathConnectionType predecessor = step.getPredecessor(); \n\t\tif (predecessor instanceof StartType){\n\t\t\t//We want to get rid of this step and the next sequence\n\t\t\t\n\t\t\tPathConnectionType successor = step.getSuccessor(); \n\t\t\tStepType stepAfter = successor.getTarget().get(0);\n\t\t\t\n\t\t\tEList<StepType> predecessorNewTargets = new BasicEList<>(); \n\t\t\tpredecessorNewTargets.add(stepAfter);\n\t\t\tpredecessor.setTarget(predecessorNewTargets);\n\t\t\t\n\t\t\tstepAfter.setPredecessor(predecessor);\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\t//The predecessor is assumed to be a sequence\n\t\t\t//We want to get rid of the previous sequence and this step.\n\t\t\tStepType stepBefore = predecessor.getSource().get(0); \n\t\t\t\n\t\t\tPathConnectionType successor = step.getSuccessor(); \n\t\t\t\n\t\t\tstepBefore.setSuccessor(successor); \n\t\t\t\n\t\t\tEList<StepType> sucessorNewSources = new BasicEList<>(); \n\t\t\tsucessorNewSources.add(stepBefore);\n\t\t\tsuccessor.setSource(sucessorNewSources);\n\t\t}\n\t\t\n\t\t//set predecessor and successor to null of the original step b/c it's no longer connected.\n\t\tSystem.out.println(\"Removing step id \"+ step.getId() + \" from scenario path\"); \n\t\tstep.setPredecessor(null);\n\t\tstep.setSuccessor(null);\n\t\t\n\t}", "void setFeatures(Features f) throws Exception;", "@Override\n public long superstep() {\n return context.superstep();\n }", "public void updateTestStep(String teststep,ExtentReports r,ExtentTest l,WebDriver driver)\n\t{\n\t\tcurrentTestStep=teststep;\n\n\t}", "private void removeStep(PlanGraphStep stepToRemove, int currentLevel) {\n\t\t\n\t\tremoveEffects(stepToRemove, currentLevel);\n\t\tremoveInvalidMutex(stepToRemove, currentLevel);\n\t\tupdateUnsupportedPreconditionInconsistencies(currentLevel);\n\t\t\n\t}", "@Override\n public void onStepSelected(Step step) {\n\n mStep = step;\n mSelectedIndex = mRecipe.getStepIndex(mStep);\n if (mSelectedIndex != -1) {\n\n if (mTwoPane) {\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n StepDetailFragment stepDetailFragment =\n StepDetailFragment.newInstance(mRecipe.getSteps().get(mSelectedIndex));\n\n // replace detail fragment\n fragmentManager.beginTransaction()\n .replace(R.id.step_detail_container, stepDetailFragment)\n .commit();\n } else {\n\n // phone scenario\n // The StepDetailActivity takes the entire list of steps to enable navigation\n //between steps without popping back to this activity.\n Intent intent = StepDetailActivity.newIntent(this,\n mRecipe.getSteps(), mSelectedIndex);\n\n // The result is the list of steps with updated check box states corresponding to user\n // input when working with individual steps\n startActivityForResult(intent, STEP_UPDATED_CODE);\n }\n }\n }", "private void HabVue(Feature feat)\n {\n StyleMap styleMap = feat.createAndAddStyleMap();\n\n //Create the style for normal edge.\n Pair pNormal = styleMap.createAndAddPair();\n Style normalStyle = pNormal.createAndSetStyle();\n pNormal.setKey(StyleState.NORMAL);\n\n LineStyle normalLineStyle =\n normalStyle.createAndSetLineStyle();\n normalLineStyle.setColor(\"YELLOW\");\n normalLineStyle.setWidth(2);\n\n\n //Create the style for highlighted edge.\n Pair pHighlight = styleMap.createAndAddPair();\n Style highlightStyle = pHighlight.createAndSetStyle();\n pHighlight.setKey(StyleState.HIGHLIGHT);\n\n LineStyle highlightLineStyle =\n highlightStyle.createAndSetLineStyle();\n highlightLineStyle.setColor(\"WHITE\");\n \n highlightLineStyle.setWidth(1);\n\n }", "@Before\n\tpublic void keepScenario(Scenario scenario) {\n\t\tthis.scenario=scenario;\n\t}", "@Test\r\n\tpublic void testCheck_featureLocationBeginandEndwithNs() {\r\n\t\tint beginN = 10;\r\n\t\tEntry entry = entryFactory.createEntry();\r\n\t\tSequence newsequence = sequenceFactory.createSequenceByte(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".getBytes());\r\n\t\tentry.setSequence(newsequence);\r\n\t\tFeature feature1 = featureFactory.createFeature(\"feature1\");\r\n\t\tOrder<Location> order1 = new Order<Location>();\r\n\t\torder1.addLocation(locationFactory.createLocalRange((long) 1, (long) 8));\r\n\t\tfeature1.setLocations(order1);\r\n\t\tFeature feature2 = featureFactory.createFeature(\"feature2\");\r\n\t\tOrder<Location> order2 = new Order<Location>();\r\n\t\torder2.addLocation(locationFactory.createLocalRange((long) 40,\r\n\t\t\t\t(long) 46));\r\n\t\tfeature2.setLocations(order2);\r\n\t\tentry.addFeature(feature1);\r\n\t\tentry.addFeature(feature2);\r\n\t\tassertTrue(Utils.shiftLocation(entry, beginN,false).size() ==2);\r\n\t\t}", "protected abstract void stepImpl( long stepMicros );", "@Override\n public StepResult undoStep(FlightContext context) throws InterruptedException {\n return StepResult.getStepResultSuccess();\n }", "@Override\n public void startOfScenarioLifeCycle(gherkin.formatter.model.Scenario scenario) {\n inLifeCycle = true;\n //is scenario run -> add new scenario definition\n if (SCENARIO_KEYWORD.equals(scenario.getKeyword())) {\n ScenarioDefinition sc = new ScenarioDefinition();\n sc.setType(ScenarioType.SCENARIO);\n setTagStatementAttributes(sc, scenario);\n testedFeature.getScenarioDefinitionList().add(sc);\n }\n\n returnLastScenarioDefinition().getScenarioRunList().add(new ScenarioRun());\n }", "private void AddNewScenario(HttpServletRequest request, HttpServletResponse response) {\n XMLTree.getInstance().AddNewScenario();\n }", "public Step add(Step step) throws SecurityException, IllegalStateException, NotSupportedException, SystemException, RollbackException, HeuristicMixedException, HeuristicRollbackException {\n\t\tSystem.out.println(step);\r\n\t\tcreate(step);\r\n\t\t\r\n\t\t//getEntityManager().createNativeQuery(\"Insert into step values(\"+step.getName()+\");\", Step.class).executeUpdate();\r\n\t\t//getEntityManager().createQuery(\"Insert into step values(\"+step.getName()+\");\", Step.class).executeUpdate();\r\n\t\treturn step;\r\n\t}", "public void processAfterWrongTrace(LocationLine currentLine) {\n\t\t Set<String> currentPatchNameSet = currentLine.getPatchList().stream().filter(Objects::nonNull)\n\t .map(PatchFile::getPatchName).collect(Collectors.toCollection(LinkedHashSet::new));\n\t candidatePatchList.removeIf(patchFile -> currentPatchNameSet.contains(patchFile.getPatchName()));\n\t currentLine.setStateType(StateType.NO);\n\t}", "@Then(\"troubleshooting chart steps are displaying\")\n public void troubleshooting_chart_steps_are_displaying() {\n }", "public ExteriorFeature() {\n this.exteriorFeature = \"Generic\";\n }", "@Override\n public void onStepClick(int index) {\n }", "public String nextStep();", "public HooksScenario(SharedContext ctx) {\r\n this.ctx = ctx;\r\n }", "public void step();", "public void step();", "void Step(String step);", "public void changeCurrentStep(Step currentStep) {\n changeCurrentStep(currentStep.getCurrentPhase());\n }", "@Override\n protected SimpleFeature buildFeature() {\n synchronized(EDGE_FEATURE_BUILDER) {\n EDGE_FEATURE_BUILDER.add(getId());\n EDGE_FEATURE_BUILDER.add(displayName);\n EDGE_FEATURE_BUILDER.add(url);\n EDGE_FEATURE_BUILDER.add(selected);\n EDGE_FEATURE_BUILDER.add(lineString);\n return EDGE_FEATURE_BUILDER.buildFeature(null);\n }\n }", "@java.lang.Override\n public boolean hasForward() {\n return stepInfoCase_ == 13;\n }", "@Override\n public void setFeature(String feature) {\n this.exteriorFeature = feature;\n }", "void addFeatures(Features features);", "protected void refreshStep(OffsetOriginStep step) {\n if (step == null) return;\n int key = 0;\n for (int i : keyFrames) {\n if (i <= step.n)\n key = i;\n }\n // compare step with keyStep\n OffsetOriginStep keyStep = (OffsetOriginStep) steps.getStep(key);\n boolean different = keyStep.worldX != step.worldX || keyStep.worldY != step.worldY;\n // update step if needed\n if (different) {\n step.worldX = keyStep.worldX;\n step.worldY = keyStep.worldY;\n }\n step.erase();\n }", "public void prependStep(final int direction)\n\t{\n\t\tfor (final FeatureElement element : featureElements)\n\t\t{\n\t\t\tif (element instanceof RelativeFeatureElement)\n\t\t\t{\n\t\t\t\t((RelativeFeatureElement) element).walk().prependStep(direction);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Warning: trying to prepend a step to an Absolute Feature Element!\");\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tprotected void doExecute(StepExecution stepExecution) throws Exception {\n\t\t\r\n\t}", "org.landxml.schema.landXML11.PlanFeatureDocument.PlanFeature insertNewPlanFeature(int i);", "@Test\n public void shouldPrioritiseAnnotatedSteps() {\n\n CandidateSteps steps1 = mock(Steps.class);\n CandidateSteps steps2 = mock(Steps.class);\n CandidateStep candidate1 = mock(CandidateStep.class);\n CandidateStep candidate2 = mock(CandidateStep.class);\n CandidateStep candidate3 = mock(CandidateStep.class);\n CandidateStep candidate4 = mock(CandidateStep.class);\n Step step1 = mock(Step.class);\n Step step2 = mock(Step.class);\n Step step3 = mock(Step.class);\n Step step4 = mock(Step.class);\n\n when(steps1.getSteps()).thenReturn(new CandidateStep[]{candidate1, candidate2});\n when(steps2.getSteps()).thenReturn(new CandidateStep[]{candidate3, candidate4});\n \n // all matching the same step string with different priorities\n String stepAsString = \"Given a step\";\n when(candidate1.matches(stepAsString)).thenReturn(true);\n when(candidate2.matches(stepAsString)).thenReturn(true);\n when(candidate3.matches(stepAsString)).thenReturn(true);\n when(candidate4.matches(stepAsString)).thenReturn(true);\n when(candidate1.getPriority()).thenReturn(1);\n when(candidate2.getPriority()).thenReturn(2);\n when(candidate3.getPriority()).thenReturn(3);\n when(candidate4.getPriority()).thenReturn(4);\n when(candidate1.createFrom(tableRow, stepAsString)).thenReturn(step1);\n when(candidate2.createFrom(tableRow, stepAsString)).thenReturn(step2);\n when(candidate3.createFrom(tableRow, stepAsString)).thenReturn(step3);\n when(candidate4.createFrom(tableRow, stepAsString)).thenReturn(step4);\n \n // When we create the series of steps for the core\n MarkUnmatchedStepsAsPending stepCreator = new MarkUnmatchedStepsAsPending();\n List<Step> steps = stepCreator.createStepsFrom(asList(steps1, steps2), new Scenario(asList(stepAsString)), tableRow\n );\n\n // Then the step with highest priority is returned\n ensureThat(step4, equalTo(steps.get(0)));\n }", "public void scenarioChanged();", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "org.landxml.schema.landXML11.FeatureDocument.Feature insertNewFeature(int i);", "@SuppressWarnings(\"unchecked\")\n @Test\n public void shouldReturnBeforeAndAfterStoryAnnotatedSteps() {\n CandidateSteps steps1 = mock(Steps.class);\n CandidateSteps steps2 = mock(Steps.class);\n Step stepBefore1 = mock(Step.class);\n Step stepBefore2 = mock(Step.class);\n Step stepAfter1 = mock(Step.class);\n Step stepAfter2 = mock(Step.class);\n\n boolean embeddedStory = false;\n when(steps1.runBeforeStory(embeddedStory)).thenReturn(asList(stepBefore1));\n when(steps2.runBeforeStory(embeddedStory)).thenReturn(asList(stepBefore2));\n when(steps1.runAfterStory(embeddedStory)).thenReturn(asList(stepAfter1));\n when(steps2.runAfterStory(embeddedStory)).thenReturn(asList(stepAfter2));\n\n // When we create the series of steps for the core\n MarkUnmatchedStepsAsPending stepCreator = new MarkUnmatchedStepsAsPending();\n List<Step> beforeSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Story(new Scenario()), Stage.BEFORE,\n embeddedStory);\n List<Step> afterSteps = stepCreator.createStepsFrom(asList(steps1, steps2), new Story(new Scenario()), Stage.AFTER,\n embeddedStory);\n\n // Then all before and after steps should be added\n ensureThat(beforeSteps, equalTo(asList(stepBefore1, stepBefore2)));\n ensureThat(afterSteps, equalTo(asList(stepAfter1, stepAfter2)));\n }", "@BeforeStep\r\n\tpublic void beforeStep(StepExecution stepExecution) {\r\n\t\t\r\n\t\tLOG.info(DOLLAR + INSIDE_METHOD + DOLLAR);\r\n\t\t\r\n\t\tJobExecution jobExec = stepExecution.getJobExecution();\r\n\t\t\r\n\t\tifFileId = jobExec.getJobParameters().getString(\r\n\t\t\t\tIFConstants.INTERFACE_FILE_ID);\r\n\t\tporCd = jobExec.getJobParameters()\r\n\t\t\t\t.getString(IFConstants.POR_CD);\r\n\t\tbuyrGrpCd = jobExec.getJobParameters()\r\n\t\t\t\t.getString(IFConstants.BUYER_GRP_CD);\r\n\t\tseqNo = (long)jobExec.getExecutionContext().get(IFConstants.SEQ_NO);\r\n\t\t\r\n\t\tordrTkeBseMnth = (String)jobExec.getExecutionContext().get(\"ordrTkeBseMnth\");\r\n\t\t\r\n\t\tLOG.info(DOLLAR + OUTSIDE_METHOD + DOLLAR);\r\n\t}", "protected void moveToFeature(KMLAbstractFeature feature)\n {\n KMLViewController viewController = KMLViewController.create(this.wwd);\n viewController.goTo(feature);\n }", "private void updateInconsistencies(PlanGraphStep newStep, int currentLevel) {\n\t\t\n\t\tSet<LPGInconsistency> currentLevelInconsistencies = inconsistencies.get(currentLevel);\n\n\t\t/** remove any unsupported precondition inconsistencies that newStep supports */ \n\t\tcheckSupportedPreconditions(newStep, currentLevel, currentLevelInconsistencies);\n\t\t\n\t\t/** add any new mutex steps */\n\t\tcheckMutexSteps(newStep, currentLevel, currentLevelInconsistencies);\n\t\t\n\t\t/** check last level facts for preconditions of newStep */\n\t\tcheckUnsupportedPreconditions(newStep, currentLevel);\n\t}", "private void generateSteps() {\n for (GlobalState g : this.globalStates) {\n List<String> faults = g.getPendingFaults(); \n if(faults.isEmpty()) {\n // Identifying all available operation transitions (when there \n // are no faults), and adding them as steps\n List<String> gSatisfiableReqs = g.getSatisfiableReqs();\n \n for(Node n : nodes) {\n String nName = n.getName();\n String nState = g.getStateOf(nName);\n List<Transition> nTau = n.getProtocol().getTau().get(nState);\n for(Transition t : nTau) {\n boolean firable = true;\n for(String req : t.getRequirements()) {\n if(!(gSatisfiableReqs.contains(n.getName() + \"/\" + req)))\n firable = false;\n }\n if(firable) {\n // Creating a new mapping for the actual state of n\n Map<String,String> nextMapping = new HashMap();\n nextMapping.putAll(g.getMapping());\n nextMapping.put(nName, t.getTargetState());\n // Searching the ref to the corresponding global \n // state in the list globalStates\n GlobalState next = search(nextMapping);\n // Adding the step to list of steps in g\n g.addStep(new Step(nName,t.getOperation(),next));\n }\n }\n }\n } else {\n // Identifying all settling handlers for handling the faults\n // pending in this global state\n for(Node n: nodes) {\n // Computing the \"targetState\" of the settling handler for n\n String targetState = null;\n \n String nName = n.getName();\n String nState = g.getStateOf(nName);\n Map<String,List<String>> nRho = n.getProtocol().getRho();\n \n List<String> nFaults = new ArrayList();\n for(String req : nRho.get(nState)) {\n if(faults.contains(nName + \"/\" + req)) \n nFaults.add(req);\n }\n\n // TODO : Assuming handlers to be complete \n\n if(nFaults.size() > 0) {\n Map<String,List<String>> nPhi = n.getProtocol().getPhi();\n for(String handlingState : nPhi.get(nState)) {\n // Check if handling state is handling all faults\n boolean handles = true;\n for(String req : nRho.get(handlingState)) {\n if(nFaults.contains(req))\n handles = false;\n }\n\n // TODO : Assuming handlers to be race-free\n\n // Updating targetState (if the handlingState is \n // assuming a bigger set of requirements)\n if(handles) {\n if(targetState == null || nRho.get(handlingState).size() > nRho.get(targetState).size())\n targetState = handlingState;\n }\n }\n // Creating a new mapping for the actual state of n\n Map<String,String> nextMapping = new HashMap();\n nextMapping.putAll(g.getMapping());\n nextMapping.put(nName, targetState);\n // Searching the ref to the corresponding global \n // state in the list globalStates\n GlobalState next = search(nextMapping);\n // Adding the step to list of steps in g\n g.addStep(new Step(nName,next));\n }\n }\n }\n }\n }", "@Override\n public void scenarioOutline(ScenarioOutline scenarioOutline) {\n ScenarioDefinition scenarioDefinitionOut = new ScenarioDefinition();\n scenarioDefinitionOut.setType(ScenarioType.SCENARIO_OUTLINE);\n testedFeature.getScenarioDefinitionList().add(scenarioDefinitionOut);\n\n setTagStatementAttributes(scenarioDefinitionOut, scenarioOutline);\n }", "public interface FumlConfiguration_Classes_Kernel_PrimitiveValue_Copy_PrimitiveValue extends FumlConfiguration_Loci_ExecutionFactory_InstantiateOpaqueBehaviorExecution_ExecutionFactory_AbstractSubStep, FumlConfiguration_Classes_Kernel_CompoundValue_Copy_CompoundValue_AbstractSubStep, SpecificStep, SequentialStep<FumlConfiguration_Classes_Kernel_PrimitiveValue_Copy_PrimitiveValue_AbstractSubStep>, FumlConfiguration_Classes_Kernel_PrimitiveValue_Copy_PrimitiveValue_AbstractSubStep, FumlConfiguration_Classes_Kernel_IntegerValue_Copy_IntegerValue_AbstractSubStep, FumlConfiguration_Classes_Kernel_BooleanValue_Copy_BooleanValue_AbstractSubStep, FumlConfiguration_Classes_Kernel_FeatureValue_Copy_FeatureValue_AbstractSubStep, FumlConfiguration_CommonBehaviors_BasicBehaviors_ParameterValue_Copy_ParameterValue_AbstractSubStep {\n\t/**\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @model kind=\"operation\" required=\"true\"\n\t * annotation=\"http://www.eclipse.org/emf/2002/GenModel body='return (fumlConfigurationTrace.States.fumlConfiguration.Classes.Kernel.TracedPrimitiveValue) this.getMseoccurrence().getMse().getCaller();'\"\n\t * @generated\n\t */\n\tTracedPrimitiveValue getCaller();\n\n}" ]
[ "0.6199059", "0.61429095", "0.60659444", "0.597231", "0.595839", "0.5881933", "0.5855072", "0.58491105", "0.58300024", "0.58285123", "0.58139414", "0.5783057", "0.5783057", "0.57538086", "0.57416934", "0.57188374", "0.57188374", "0.5691278", "0.56833136", "0.56770736", "0.56599504", "0.5649606", "0.5619855", "0.5598584", "0.5572852", "0.5554612", "0.5451642", "0.5403558", "0.5396825", "0.5393001", "0.53803796", "0.53791136", "0.53671694", "0.5354943", "0.5354535", "0.5344225", "0.5322839", "0.53047055", "0.52998406", "0.5298366", "0.529736", "0.5290314", "0.5288106", "0.52824765", "0.52788424", "0.52778846", "0.52639264", "0.526372", "0.5257293", "0.5254574", "0.5253965", "0.5238002", "0.5236465", "0.5233293", "0.5233293", "0.52288914", "0.5227414", "0.5214893", "0.5203092", "0.52022606", "0.5199066", "0.51965743", "0.5195567", "0.51951414", "0.5193878", "0.5191277", "0.5187747", "0.51846164", "0.51818895", "0.5171064", "0.51686895", "0.51579034", "0.5155472", "0.5152993", "0.5148505", "0.5145864", "0.51450115", "0.5142423", "0.5141257", "0.5141257", "0.51405865", "0.51309454", "0.5124175", "0.5104531", "0.5104037", "0.5103126", "0.51007324", "0.5096315", "0.5096272", "0.5089919", "0.50835645", "0.50803113", "0.5080108", "0.5080108", "0.5073153", "0.5069672", "0.5064319", "0.50546753", "0.5053451", "0.50510734", "0.5049723" ]
0.0
-1
TODO code application logic here
public static void main(String args[]){ BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter Roman Number : " ); String roman = null; try { roman = br.readLine(); } catch(IOException e) { System.out.println(e.getMessage()); } romanToDecimal(roman); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void autoDetails() {\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 protected void execute() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "protected void onFirstUse() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void execute() {\n \n }", "@Override\n public void feedingHerb() {\n\n }", "public void designBasement() {\n\t\t\r\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 gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void execute() {\n \n \n }", "@Override\n\tpublic void view() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n protected void fetchData() {\n\r\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\n public void onCancelled(CancelledException arg0) {\n }", "@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}", "protected void aktualisieren() {\r\n\r\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "private static void oneUserExample()\t{\n\t}", "@Override\n public void onCancelled(CancelledException arg0) {\n\n }", "@Override\n protected void execute() {\n\n }", "public void logic(){\r\n\r\n\t}", "public void gored() {\n\t\t\n\t}", "public contrustor(){\r\n\t}", "@Override\r\n\tprotected void execute() {\r\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\t \n\t\t\t super.onPreExecute();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tprotected void onPreExecute() {\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "@Override\n protected void startUp() {\n }", "protected void mo6255a() {\n }", "protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tpublic void manage() {\n\t\t\r\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\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 mo38117a() {\n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t}", "@Override\n\tpublic void getStatus() {\n\t\t\n\t}", "@Override\n protected void onPreExecute() {\n \n }", "protected void index()\r\n\t{\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "public void mo55254a() {\n }" ]
[ "0.60802186", "0.5912082", "0.58425087", "0.58339286", "0.5810548", "0.57580656", "0.57396024", "0.5721001", "0.5705411", "0.5666017", "0.5657976", "0.5613798", "0.5611188", "0.5611188", "0.55960613", "0.55933475", "0.557677", "0.5572332", "0.5565667", "0.55482084", "0.5536573", "0.5534607", "0.5533934", "0.5468669", "0.5460392", "0.5443554", "0.543027", "0.5422523", "0.5420404", "0.5420404", "0.5414971", "0.53763115", "0.5367869", "0.53636855", "0.53608036", "0.5329318", "0.5327322", "0.5327322", "0.53258926", "0.53220093", "0.53199", "0.5311158", "0.53085816", "0.5307914", "0.52976745", "0.52976745", "0.52976745", "0.5297331", "0.52968514", "0.5293012", "0.5281331", "0.5277546", "0.5277546", "0.52726364", "0.52688015", "0.5267047", "0.5266958", "0.5262331", "0.5261341", "0.52587026", "0.52557015", "0.5255123", "0.524477", "0.52443206", "0.5236655", "0.52359647", "0.52248156", "0.52246475", "0.52233", "0.52207166", "0.52205276", "0.5216701", "0.5206895", "0.52030635", "0.51967937", "0.51948136", "0.51947194", "0.5188396", "0.518064", "0.518064", "0.5177845", "0.5175415", "0.5175415", "0.5175415", "0.5175415", "0.5175415", "0.5175415", "0.5173223", "0.5173223", "0.5170695", "0.5168988", "0.51654655", "0.51593053", "0.5157954", "0.5156624", "0.5153031", "0.5152581", "0.51493365", "0.5148302", "0.51443505", "0.51430386" ]
0.0
-1
Determine if user proposed password meets requirements
@Override public void onClick(View v) { String strUsername = txtUsername.getText().toString(); String strPassword = txtPassword.getText().toString(); if (strPassword.length() < 4) { Toast.makeText(getApplicationContext(), "Password requires at least 4 characters.", Toast.LENGTH_LONG).show(); return; } String strHashedPassword = hash(strPassword); //Build sql prepared statement String strStatement = "insert into account (username, password) values (?, ?)"; try { PreparedStatement psInsert = Settings.getInstance().getConnection().prepareStatement(strStatement); psInsert.setString(1, strUsername); psInsert.setString(2, strHashedPassword); int result = psInsert.executeUpdate(); if (result != 0) { Log.d("", "onClick: Error inserting account."); } psInsert.close(); //TODO: check result code to make sure it went through Toast.makeText(getApplicationContext(), "Account successfully created.", Toast.LENGTH_LONG).show(); //Toast.makeText(getApplicationContext(), "Username already exists.", Toast.LENGTH_LONG).show(); //Toast.makeText(getApplicationContext(), "Password does not meet requirements.", Toast.LENGTH_LONG).show(); } catch (ClassNotFoundException e) { e.printStackTrace(); } catch (SQLException e) { e.printStackTrace(); } Log.v(this.getClass().toString(), "Register complete."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean hasPassword();", "boolean isMatchPassword(Password toCheck) throws NoUserSelectedException;", "boolean hasPassword2();", "boolean getPasswordValid();", "private boolean validatePassword() {\n\t\tEditText pw = (EditText)view.findViewById(R.id.et_enter_new_password);\n\t\tEditText confPW = (EditText)view.findViewById(R.id.et_reenter_new_password);\n\t\t\t\n\t\tString passwd = pw.getText().toString();\n\t\tString confpw = confPW.getText().toString();\n\t\t\n\t\t// Check for nulls\n\t\tif (passwd == null || confpw == null) {\n\t\t\tToast.makeText(view.getContext(), \"Passwords are required\", Toast.LENGTH_LONG).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Ensure password and retypted passwords match\n\t\tif (!passwd.contentEquals(confpw)) {\n\t\t\tToast.makeText(view.getContext(), \"Passwords must match\", Toast.LENGTH_LONG).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Ensure password meets complexity\n\t\tif (passwd.length() < 7) { // min length of 7 chars\n\t\t\tToast.makeText(view.getContext(), \"Password must be at least 7 characters long\", \n\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Not really sure what the requirements are for private key password complexity yet\n\t\tnewPassword = passwd; // Set class variable with new password\n\t\treturn true;\n\t}", "public boolean isPasswordCorrect() {\n return (CustomerModel.passwordTest(new String(newPasswordTextField.getPassword())));\n }", "public boolean passwordAvailable() {\r\n return !password.isEmpty();\r\n }", "public boolean verifyPassword() {\n\t\tString hash = securePassword(password);\r\n\t\t\r\n\t\tif(!isPasswordSet()) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tString currentPass = getPassword();\r\n\t\tif(hash.equals(currentPass)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean passwordCheck(String password) {\n\t\treturn true;\n\t\t\n\t}", "Boolean isValidUserPassword(String username, String password);", "private boolean checkPassword() {\n String password = getPassword.getText();\n \n if(password.compareTo(\"\") == 0) {\n errorMessage.setText(\"Please enter a password.\");\n return false;\n }\n else if(password.compareTo(getConfirmPassword.getText()) == 0) {\n //Password must be min of 8 characters max of 16\n if((8 > password.length()) || (\n password.length() > 16)) {\n errorMessage.setText(\"Password must be 8-16 characters long.\");\n return false;\n }\n \n boolean upperFlag = false;\n boolean lowerFlag = false;\n boolean numFlag = false;\n boolean charFlag = false;\n \n for(int i = 0; i < password.length(); ++i) {\n String sp = \"/*!@#$%^&*()\\\\\\\"{}_[]|\\\\\\\\?/<>,.\";\n char ch = password.charAt(i);\n \n if(Character.isUpperCase(ch)) { upperFlag = true; }\n if(Character.isLowerCase(ch)) { lowerFlag = true; }\n if(Character.isDigit(ch)) { numFlag = true; }\n if(sp.contains(password.substring(i, i))) { charFlag = true; }\n } \n //Password must contain 1 uppercase letter\n if(!upperFlag) {\n errorMessage.setText(\"Password must contain at least one uppercase letter.\");\n return false;\n }\n //Password must contain 1 lowercase letter\n if(!lowerFlag) {\n errorMessage.setText(\"Password must contain at least one lowercase letter.\");\n return false;\n }\n //Password must contain 1 number\n if(!numFlag) {\n errorMessage.setText(\"Password must contain at least one digit.\");\n return false;\n }\n //Password must contain 1 special character\n if(!charFlag) {\n errorMessage.setText(\"Password must contain at least one special character.\");\n return false;\n }\n return true;\n }\n else {\n errorMessage.setText(\"The entered passwords do not match.\");\n return false; \n }\n }", "private boolean checkPassword() {\n String password = Objects.requireNonNull(password1.getEditText()).getText().toString();\n\n return password.length() >= 8 && ContainSpecial(password) && noUpper(password);\n }", "public boolean mustChangePassword() {\n\t\t\t\t\n\t\t\t\t\tPasswordStatus.Value v = getPasswordStatus();\n\t\t\t\t\tif (v == DatabasePasswordComposite.INVALID || v == DatabasePasswordComposite.FIRST) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tHash algorithm = getAlgorithm();\n\t\t\t\t\tif( CHANGE_OLD_HASH.isEnabled(getContext()) && ( algorithm == null || algorithm.isDeprecated(getContext()))) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif( periodicResetRequired()) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\tif( passwordFailsExceeded()) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}", "private boolean checkPass(String enterPass) {\n JdbcConnection connection = JdbcConnection.getInstance();\n DaoFactory daoFactory = new RealDaoFactory(connection);\n List<User> users = daoFactory.createUserDao().findAll();\n for (User user : users) {\n if (user.getPasswordHash() == enterPass.hashCode()) {\n return true;\n }\n }\n return false;\n }", "@VisibleForTesting\n int validatePassword(byte[] password) {\n int errorCode = NO_ERROR;\n final PasswordMetrics metrics = PasswordMetrics.computeForPassword(password);\n mergeMinComplexityAndDpmRequirements(metrics.quality);\n\n if (password == null || password.length < mPasswordMinLength) {\n if (mPasswordMinLength > mPasswordMinLengthToFulfillAllPolicies) {\n errorCode |= TOO_SHORT;\n }\n } else if (password.length > mPasswordMaxLength) {\n errorCode |= TOO_LONG;\n } else {\n // The length requirements are fulfilled.\n if (!mPasswordNumSequenceAllowed\n && !requiresLettersOrSymbols()\n && metrics.numeric == password.length) {\n // Check for repeated characters or sequences (e.g. '1234', '0000', '2468')\n // if DevicePolicyManager or min password complexity requires a complex numeric\n // password. There can be two cases in the UI: 1. User chooses to enroll a\n // PIN, 2. User chooses to enroll a password but enters a numeric-only pin. We\n // should carry out the sequence check in both cases.\n //\n // Conditions for the !requiresLettersOrSymbols() to be necessary:\n // - DPM requires NUMERIC_COMPLEX\n // - min complexity not NONE, user picks PASSWORD type so ALPHABETIC or\n // ALPHANUMERIC is required\n // Imagine user has entered \"12345678\", if we don't skip the sequence check, the\n // validation result would show both \"requires a letter\" and \"sequence not\n // allowed\", while the only requirement the user needs to know is \"requires a\n // letter\" because once the user has fulfilled the alphabetic requirement, the\n // password would not be containing only digits so this check would not be\n // performed anyway.\n final int sequence = PasswordMetrics.maxLengthSequence(password);\n if (sequence > PasswordMetrics.MAX_ALLOWED_SEQUENCE) {\n errorCode |= CONTAIN_SEQUENTIAL_DIGITS;\n }\n }\n // Is the password recently used?\n if (mLockPatternUtils.checkPasswordHistory(password, getPasswordHistoryHashFactor(),\n mUserId)) {\n errorCode |= RECENTLY_USED;\n }\n }\n\n // Allow non-control Latin-1 characters only.\n for (int i = 0; i < password.length; i++) {\n char c = (char) password[i];\n if (c < 32 || c > 127) {\n errorCode |= CONTAIN_INVALID_CHARACTERS;\n break;\n }\n }\n\n // Ensure no non-digits if we are requesting numbers. This shouldn't be possible unless\n // user finds some way to bring up soft keyboard.\n if (mRequestedQuality == PASSWORD_QUALITY_NUMERIC\n || mRequestedQuality == PASSWORD_QUALITY_NUMERIC_COMPLEX) {\n if (metrics.letters > 0 || metrics.symbols > 0) {\n errorCode |= CONTAIN_NON_DIGITS;\n }\n }\n\n if (metrics.letters < mPasswordMinLetters) {\n errorCode |= NOT_ENOUGH_LETTER;\n }\n if (metrics.upperCase < mPasswordMinUpperCase) {\n errorCode |= NOT_ENOUGH_UPPER_CASE;\n }\n if (metrics.lowerCase < mPasswordMinLowerCase) {\n errorCode |= NOT_ENOUGH_LOWER_CASE;\n }\n if (metrics.symbols < mPasswordMinSymbols) {\n errorCode |= NOT_ENOUGH_SYMBOLS;\n }\n if (metrics.numeric < mPasswordMinNumeric) {\n errorCode |= NOT_ENOUGH_DIGITS;\n }\n if (metrics.nonLetter < mPasswordMinNonLetter) {\n errorCode |= NOT_ENOUGH_NON_LETTER;\n }\n return errorCode;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\r\n }", "public boolean verifyPassword(int input){\n return input==password;\n }", "private boolean isPasswordValid(String password){\n return password.length() > 2; //mot de passe de longueur sup à 2\n }", "public static Boolean checkPassowd(String password){\n\t\t//String password = txtPassword.getText();\n\t\t//System.out.println(password);\n\t\treturn password.equals(\"password\");\n\t}", "private boolean isPasswordValid(String password)\n {\n return password.length() > MagazzinoService.getPasswordMinLength(this);\n }", "@Override\r\n\tpublic boolean checkPassword(String pwd) {\n\t\tif(temp.getCustomerPwd().matches(pwd))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "public static boolean password() \n\t{\n\t\tScanner keyboard = new Scanner(System.in);\n\n\t\tboolean isCorrect = false;\n\t\tint tryCounter = 3;\n\t\tSystem.out.print(\"Please enter your password to continue: \");\n\t\tString myPassword = keyboard.nextLine().toLowerCase();\n\t\tfor (int tries = 1; tries <= 3; ++tries)\n\t\t{\n\t\t\tif (myPassword.equals(\"deluxepizza\"))\n\t\t\t{\n\t\t\t\tisCorrect = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse if(tries == 3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"It seems you're having trouble typing your password... returning to main menu.\");\n\t\t\t\treturn isCorrect;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t--tryCounter;\n\t\t\t\tSystem.out.println(\"Oops, did your finger slip? Please try again. You have \" + tryCounter + \" tries remaining!\");\n\t\t\t\tmyPassword = keyboard.next().toLowerCase();\n\t\t\t}\t\n\t\t}\n\t\treturn isCorrect;\n\t}", "private boolean isPasswordValid(String password) {\n return password.length() > 4 && password.equals(\"123456\");\n }", "private boolean isValidPassword(final String thePassword) {\n return thePassword.length() > PASSWORD_LENGTH;\n }", "private boolean cekPassword(String password){\n return password.equals(Preferences.getRegisteredPass(getBaseContext()));\n }", "public boolean passwordCheck() {\n\t\tSystem.out.println(\"Password is: \"+LoggedUser.getPassword());\n\t\tMapSqlParameterSource params = new MapSqlParameterSource();\n\t\tparams.addValue(\"username\", LoggedUser.getUsername());\n\t\tparams.addValue(\"password\", LoggedUser.getPassword());\n\t\treturn jdbc.queryForObject(\"select count(*) from authors where username=:username and password=:password\", \n\t\t\t\tparams, Integer.class) > 0;\n\t}", "boolean checkPasswordMatch(PGPSecretKey secretKey, String password);", "public static boolean checkPassword()\n {\n String pw = SmartDashboard.getString(\"Password\");\n SmartDashboard.putString(\"Password\", \"\"); //Clear the password field so that it must be reentered\n\n if(pw.equals(ADMIN_PASSWORD))\n return true;\n else\n {\n log(\"Password invalid\"); //The user gave an incorrect password, inform them.\n return false;\n }\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 2;\n }", "private boolean doGetConfirmPassword() {\n\t\tcurrentStep = OPERATION_NAME+\": getting confirm password\";\n\t\tif (!_atmssHandler.doDisDisplayUpper(PROMPT_FOR_CONFIRM_PASSWORD)) {\n\t\t\trecord(\"Dis\");\n\t\t\treturn false;\n\t\t}\n\t\tconfirmPassword = _atmssHandler.doKPGetPasswd(TIME_LIMIT);\n\t\tif (confirmPassword == null) {\n\t\t\trecord(\"KP\");\n\t\t\tif (!_atmssHandler.doDisDisplayUpper(FAILED_FROM_KEYPAD)) {\n\t\t\t\trecord(\"Dis\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tpause(3);\n\t\t\treturn false;\n\t\t} else if (confirmPassword.equals(KP_CANCEL)) {\n\t\t\trecord(\"USER\");\n\t\t\tif (!_atmssHandler.doDisDisplayUpper(FAILED_FROM_USER_CANCELLING)) {\n\t\t\t\trecord(\"Dis\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tpause(3);\n\t\t\treturn false;\n\t\t}\n\t\trecord(\"confirm password typed\");\n\t\treturn true;\n\t}", "private boolean isPasswordValid(String password) {\n return true;\n }", "private boolean isPasswordValid(String password) {\n return true;\n }", "public boolean hasPassword() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasPassword() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "public boolean isBothPasswordCorrect() { \n String pass1 = new String(newPasswordTextField.getPassword());\n String pass2 = new String(repeatPasswordTextField.getPassword()); \n \n return (pass1.equals(pass2) && isPasswordCorrect());\n }", "public boolean hasPassword() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public boolean hasPassword() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "protected void validatePassword(){\n //Only Checking For Word Type Password With Minimum Of 8 Digits, At Least One Capital Letter,At Least One Number,At Least One Special Character\n Boolean password = Pattern.matches(\"^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9](?=.*[!@#$%^&*()])).{8,}$\",getPassword());\n System.out.println(passwordResult(password));\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 6;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 6;\n }", "public boolean isPassword(String guess) {\n\t return password.equals(guess);\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 0;\r\n }", "private boolean isPasswordValid(String password) {\n return password.length() >= 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "private boolean isPasswordValid(String password) {\n return password.length() > 4;\n }", "boolean hasPasswd();", "public boolean checkPass(String password){\r\n if (password.equals(this.password)){\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean verifyPassword(String pw){\n return BCrypt.checkpw(pw, userPass);\n }", "public boolean isSetPassword() {\n return this.password != null;\n }", "public boolean isSetPassword() {\n return this.password != null;\n }", "private boolean doCheckNewPassword() {\n\t\tif (!newPassword.equals(confirmPassword)) return false;\n\t\trecord(\"new password checked\");\n\t\treturn true;\n\t}", "public boolean validatePassword() {\r\n\t\tif (txtPassword.getValue() == null || txtPassword.getValue().length() == 0 || !txtPassword.getValue().equals(txtRetypePassword.getValue()))\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "private boolean isPasswordValid(String password) {\n return password.length() >= 1;\n }", "private boolean isPasswordValid(String password) {\n return (password.length() > 4);\n }", "String getUserPassword();", "public boolean isSetPassword() {\r\n return this.password != null;\r\n }", "public boolean isSetPassword() {\r\n return this.password != null;\r\n }", "public boolean isSetPassword() {\r\n return this.password != null;\r\n }", "public boolean isSetPassword() {\r\n return this.password != null;\r\n }", "public boolean isSetPassword() {\r\n return this.password != null;\r\n }", "private boolean isPasswordValid(String password) {\r\n //TODO: Replace this with your own logic\r\n return password.length() > 4;\r\n }", "@Override\r\n\tpublic boolean validatePassword(String arg0, String arg1) {\n\t\treturn false;\r\n\t}", "public boolean checkPassword(String plainTextPassword, String hashedPassword);", "@Test(priority=1)\n\tpublic void testPasswordValidity() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"[email protected]\");\n\t\tsignup.enterPassword(\"1234567\");\n\t\tsignup.reenterPassword(\"1234567\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\t\n\t\t// is String Present looks for the presence of expected error message from all of errors present on current screen. \n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Passwords do not match; please enter a password and reenter to confirm.\\nPasswords must contain at least 6 characters and no spaces.\"));\n\t}", "private boolean isPasswordValid(String password) {\n return (password.length() >= 4 && password.length() < 20);\n }", "public static boolean verifyPasswordStrength(String password) {\n int howManyDigits = 0; \n int howManyUpperLetters = 0;\n int howManyLowerLetters = 0;\n \n final int cofficientForDigits = THREE;\n final int cofficientForUpperLetters = TWO;\n final int cofficientForLowerLetters = ONE;\n \n int resultPoints;\n final int pointsForStrongPassword = TWENTY;\n \n for (final Character ch : password.toCharArray()) {\n if (Character.isDigit(ch)) {\n howManyDigits++;\n } else if (Character.isUpperCase(ch)) {\n howManyUpperLetters++;\n } else if (Character.isLowerCase(ch)) {\n howManyLowerLetters++;\n }\n }\n \n resultPoints = howManyDigits * cofficientForDigits +\n howManyUpperLetters * cofficientForUpperLetters +\n howManyLowerLetters * cofficientForLowerLetters;\n \n final String output = \"Got points: \" + resultPoints + \"; needed points: \" + pointsForStrongPassword + \".\\n\";\n Main.LOGGER.info(output);\n \n return resultPoints >= pointsForStrongPassword;\n }", "public boolean reconcilePassword(){\r\n if((signup.getFirstPassword()).equals(signup.getSecondPassword())){\r\n \r\n return true;\r\n \r\n }\r\n else{\r\n \r\n return false;\r\n }\r\n }", "@Test(priority=1)\n\tpublic void verifyPasswordsMatch() {\n\t\tsignup.clearAllFields();\n\t\tsignup.enterId(\"[email protected]\");\n\t\tsignup.enterPassword(\"abcd\");\n\t\tsignup.reenterPassword(\"1235\");\n\t\tsignup.clickSubmit();\n\t\tList<String> errors = signup.getErrors();\n\t\tAssert.assertTrue(TestHelper.isStringPresent(errors, \"Passwords do not match; please enter a password and reenter to confirm.\\nPasswords must contain at least 6 characters and no spaces.\"));\n\t}", "private boolean isPasswordValid(String password) {\n //TODO: Replace this with your own logic\n return password.length() > 7;\n }", "public boolean isSetPassword() {\n return this.password != null;\n }", "public boolean isSetPassword() {\n return this.password != null;\n }", "private boolean isPasswordValid(String password, String confirmation) {\n return password.length() > 4;\n }", "private boolean checkPassword(){\n Pattern p = Pattern.compile(\"^[A-z0-9]*$\");\n Matcher m = p.matcher(newPass.getText());\n boolean b = m.matches();\n if(newPass.getText().compareTo(repeatPass.getText()) != 0 || newPass.getText().isEmpty() || repeatPass.getText().isEmpty()){\n repeatPass.setBackground(Color.red);\n JOptionPane.showMessageDialog(null, \"Password Error\");\n return false;\n }\n else if(newPass.getText().length() > 10 || b == false){\n newPass.setBackground(Color.red);\n JOptionPane.showMessageDialog(null, \"Password Error\");\n return false;\n }\n newPass.setBackground(Color.green);\n repeatPass.setBackground(Color.green);\n return true;\n }", "public boolean hasAccountPassword() {\n return fieldSetFlags()[4];\n }", "private boolean valPassword(String pass){\n if (usuario.getPassword().equals(pass)){\n return true;\n }\n return false;\n }" ]
[ "0.79203796", "0.79203796", "0.79203796", "0.79203796", "0.79203796", "0.79203796", "0.79203796", "0.79203796", "0.77436215", "0.76820904", "0.7503511", "0.73012537", "0.7193596", "0.7182302", "0.7064609", "0.7008799", "0.69941217", "0.69859517", "0.69601214", "0.6944759", "0.69267625", "0.68727666", "0.68722546", "0.68722546", "0.68722546", "0.6868667", "0.6859169", "0.68512356", "0.6845195", "0.68263686", "0.68099326", "0.6789143", "0.6788229", "0.67671615", "0.6759739", "0.67513406", "0.67512864", "0.67458427", "0.6743431", "0.67333454", "0.67333454", "0.6728164", "0.6728164", "0.6727813", "0.6727156", "0.6721333", "0.6721333", "0.671918", "0.67189044", "0.67189044", "0.6710277", "0.6707454", "0.6702636", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.66983026", "0.6687288", "0.6685851", "0.6682193", "0.668135", "0.668135", "0.66659033", "0.6664353", "0.6650201", "0.6648669", "0.6643963", "0.6643133", "0.6643133", "0.6643133", "0.6643133", "0.6643133", "0.6642714", "0.6627823", "0.66021866", "0.65951115", "0.6580909", "0.65754116", "0.65716815", "0.6558772", "0.655691", "0.65504485", "0.65504485", "0.6540442", "0.6536395", "0.6522826", "0.6518409" ]
0.0
-1
Validate the query request
public void validateQuery(Query query) throws InvalidQueryException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void validate() throws org.apache.thrift.TException {\n if (query != null) {\n query.validate();\n }\n }", "protected abstract String getValidationQuery();", "public void validate() throws org.apache.thrift.TException {\n if (simpleSearchQuery != null) {\r\n simpleSearchQuery.validate();\r\n }\r\n }", "@Override\n\tpublic void validateRequest(BaseRequest request) {\n\t\t\n\t}", "public static boolean isValidinput(String query){\r\n\t\tPattern regex = Pattern.compile(\"[$&+,:;=@#|]\");\r\n\t\tMatcher matcher = regex.matcher(query);\r\n\t\tif (matcher.find()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}", "protected void validateParams(String nxql, Collection<String> inputProperties,\n Collection<String> outputProperties) {\n if (StringUtils.isBlank(nxql) || inputProperties == null || inputProperties.isEmpty()\n || outputProperties == null || outputProperties.isEmpty()) {\n throw new IllegalArgumentException(\"nxql and properties are required parameters\");\n }\n if (!nxql.toUpperCase().contains(\"WHERE\")) {\n throw new IllegalArgumentException(\"You cannot use an unbounded nxql query, please add a WHERE clause.\");\n }\n }", "public final void validateRetrieveInputs() throws Exception {\n if (getDBTable() == null) throw new Exception(\"getDBTable missing\");\n if (getColumnForPrimaryKey() == null) throw new Exception(\"WHERE ID missing\");\n }", "private void validateInputParameters(){\n\n }", "public boolean hasValidFilterQueries() {\n\n if (this.filterQueries.isEmpty()) {\n return true; // empty is valid!\n }\n\n for (String fq : this.filterQueries) {\n if (this.getFriendlyNamesFromFilterQuery(fq) == null) {\n return false; // not parseable is bad!\n }\n }\n return true;\n }", "private String checkQuery(String query){\n\t\tif(query != null){\n\t\t\tString[] param = query.split(\"=\");\n\t\t\tif(param[0].equals(\"tenantID\")){\n\t\t\t\treturn param[1];\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "public static void checkFormat(String queryString) throws WrongQueryFormatException {\n\t\tString filters[] = queryString.split(\" \");\n\t\tif (filters.length != 7)\n\t\t\tthrow new WrongQueryFormatException(\n\t\t\t\t\t\"the query should be in this format-- QUERY <IP_ADDRESS> <CPU_ID> <START_DATE> <START_HOUR:START_MIN> <END_DATE> <END_HOUR:END_MIN>\");\n\t\tif (!filters[0].equals(\"QUERY\") && !filters[0].equals(\"EXIT\"))\n\t\t\tthrow new WrongQueryFormatException(\"the query should either start with a 'QUERY' or type 'EXIT' to end\");\n\t\tif (!isAnIp(filters[1]))\n\t\t\tthrow new WrongQueryFormatException(\"the second argument must be an ip address\");\n\t\tif (!isCpuId(filters[2]))\n\t\t\tthrow new WrongQueryFormatException(\"the third argument must be a cpu id(0 or 1)\");\n\t\tisDateTime(filters);\n\t}", "boolean stageQueryVariables(Object input) throws ValidationFailedException;", "public void validate() throws org.apache.thrift.TException {\n if (req != null) {\n req.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (req != null) {\n req.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (req != null) {\n req.validate();\n }\n }", "public void validate() throws org.apache.thrift.TException {\n if (req != null) {\n req.validate();\n }\n }", "private Boolean nonEmptyQuery(String query){\n\t\tBoolean isCorrect = false;\n\t\tString [] queryElements = query.split(\"--\");\n\t\tif(queryElements.length==2 && !queryElements[0].isEmpty() && !queryElements[1].isEmpty())\n\t\t\tisCorrect = true;\n\t\treturn isCorrect;\n\t}", "@Test\n\tpublic void badQueryTest() {\n\t\texception.expect(IllegalArgumentException.class);\n\t\t\n\t\t// numbers not allowed\n\t\tqueryTest.query(\"lfhgkljaflkgjlkjlkj9f8difj3j98ouijsflkedfj90\");\n\t\t// unbalanced brackets\n\t\tqueryTest.query(\"( hello & goodbye | goodbye ( or hello )\");\n\t\t// & ) not legal\n\t\tqueryTest.query(\"A hello & goodbye | goodbye ( or hello &)\");\n\t\t// unbalanced quote\n\t\tqueryTest.query(\"kdf ksdfj (\\\") kjdf\");\n\t\t// empty quotes\n\t\tqueryTest.query(\"kdf ksdfj (\\\"\\\") kjdf\");\n\t\t// invalid text in quotes\n\t\tqueryTest.query(\"kdf ksdfj \\\"()\\\" kjdf\");\n\t\t// double negation invalid (decision)\n\t\tqueryTest.query(\"!!and\");\n\t\t\n\t\t// gibberish\n\t\tqueryTest.query(\"kjlkfgj! ! ! !!! ! !\");\n\t\tqueryTest.query(\"klkjgi & df & | herllo\");\n\t\tqueryTest.query(\"kjdfkj &\");\n\t\t\n\t\t// single negation\n\t\tqueryTest.query(\"( ! )\");\n\t\tqueryTest.query(\"!\");\n\t\t\n\t\t// quotes and parenthesis interspersed\n\t\tqueryTest.query(\"our lives | coulda ( \\\" been so ) \\\" but momma had to \\\" it all up wow\\\"\");\n\t}", "private QueryRequest prepareAndValidateInputs() throws AutomicException {\n // Validate Work item type\n String workItemType = getOptionValue(\"workitemtype\");\n AgileCentralValidator.checkNotEmpty(workItemType, \"Work Item type\");\n\n // Validate export file path check for just file name.\n String temp = getOptionValue(\"exportfilepath\");\n AgileCentralValidator.checkNotEmpty(temp, \"Export file path\");\n File file = new File(temp);\n AgileCentralValidator.checkFileWritable(file);\n try {\n filePath = file.getCanonicalPath();\n } catch (IOException e) {\n throw new AutomicException(\" Error in getting unique absolute path \" + e.getMessage());\n }\n\n QueryRequest queryRequest = new QueryRequest(workItemType);\n String workSpaceName = getOptionValue(\"workspace\");\n if (CommonUtil.checkNotEmpty(workSpaceName)) {\n String workSpaceRef = RallyUtil.getWorspaceRef(rallyRestTarget, workSpaceName);\n queryRequest.setWorkspace(workSpaceRef);\n }\n\n String filters = getOptionValue(\"filters\");\n if (CommonUtil.checkNotEmpty(filters)) {\n queryRequest.addParam(\"query\", filters);\n }\n\n String fieldInput = getOptionValue(\"fields\");\n if (CommonUtil.checkNotEmpty(fieldInput)) {\n prepareUserFields(fieldInput);\n Fetch fetchList = new Fetch();\n fetchList.addAll(uniqueFields);\n queryRequest.setFetch(fetchList);\n }\n\n // Validate count\n String rowLimit = getOptionValue(\"limit\");\n limit = CommonUtil.parseStringValue(rowLimit, -1);\n if (limit < 0) {\n throw new AutomicException(String.format(ExceptionConstants.INVALID_INPUT_PARAMETER, \"Maximum Items\",\n rowLimit));\n }\n if (limit == 0) {\n limit = Integer.MAX_VALUE;\n }\n return queryRequest;\n }", "@Override\n public boolean validate(RequestI request, ErrorI errors) {\n return true;\n }", "public abstract boolean validate(Request request, Response response);", "boolean stageAfterQueryParsing(Object input) throws ValidationFailedException;", "ValidationResponse validate();", "@Test\n\tpublic void isValidQueryTest() {\n\t\tString query1 = \"< nice & cool \";\n\t\tString query2 = \"( hello & !!cool )\";\n\t\tString query3 = \"( hello | !cool )\";\n\t\t\n\t\texception.expect(IllegalArgumentException.class);\n\t\tqueryTest.isValidQuery(query1);\n\t\tqueryTest.isValidQuery(query2);\n\n\t\texception = ExpectedException.none();\n\t\tqueryTest.isValidQuery(query3);\n\n\t\t// test num of brackets\n\t\tquery1 = \"( nice & cool )\";\n\t\tquery2 = \"( ( nice & cool )\";\n\t\tquery3 = \"( hello & my | ( name | is ) | bar & ( hi )\";\n\t\t\n\t\tqueryTest.isValidQuery(query1);\n\t\texception.expect(IllegalArgumentException.class);\n\t\tqueryTest.isValidQuery(query2);\n\t\tqueryTest.isValidQuery(query3);\n\t\t\n\t\t// test phrases (+ used to indicate phrase)\n\t\tquery1 = \"hello+hi+my\";\n\t\tquery2 = \"hello+contains+my\";\n\t\tquery3 = \"( my+name & hello | ( oh my ))\";\n\t\t\n\t\texception = ExpectedException.none();\n\t\tqueryTest.isValidQuery(query1);\n\t\tqueryTest.isValidQuery(query2);\n\t\tqueryTest.isValidQuery(queryTest.fixSpacing(query3));\n\t}", "boolean hasQuery();", "protected boolean isQueryAvailable() {\n return query != null;\n }", "@Test(expected = IllegalArgumentException.class)\n public void testEmptyGraphRequest() throws IllegalArgumentException {\n GraphRequestModel requestModel = new GraphRequestModel(\"\", \"reasoningFalse\", \"\", \"\", \"\", \"\", false);\n GraphRequestValidator.validateRequest(requestModel);\n }", "private boolean validate(ActionRequest request) {\n\t\t// Variable à mettre à false quand une erreur est détectée\n\t\tboolean isValid = true;\n\t\t// Défini le format de date à utiliser pour les champs temporels \n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n\t\t// Titre\n\t\tif (Validator.isNull(ParamUtil.getString(request, \"title\"))) {\n\t\t\tSessionErrors.add(request, \"title-error\");\n\t\t\tisValid = false;\n\t\t}\n\n\t\t// Description\n\t\tif (Validator.isNull(ParamUtil.getString(request, \"descriptionEditor\"))) {\n\t\t\tSessionErrors.add(request, \"description-error\");\n\t\t\tisValid = false;\n\t\t}\n\n\t\t// Adresse\n\t\tif (Validator.isNull(ParamUtil.getString(request, \"address\"))) {\n\t\t\tSessionErrors.add(request, \"address-error\");\n\t\t\tisValid = false;\n\t\t}\n\n\t\t// Ville\n\t\tif (Validator.isNull(ParamUtil.getString(request, \"city\"))) {\n\t\t\tSessionErrors.add(request, \"city-error\");\n\t\t\tisValid = false;\n\t\t}\n\n\t\t// Code postal\n\t\tif (Validator.isNull(ParamUtil.getString(request, \"postalCode\"))) {\n\t\t\tSessionErrors.add(request, \"postal-code-error\");\n\t\t\tisValid = false;\n\t\t}\n\n\t\t// Téléphone\n\t\tif (Validator.isNull(ParamUtil.getString(request, \"phoneNumber\"))) {\n\t\t\tSessionErrors.add(request, \"phone-number-error\");\n\t\t\tisValid = false;\n\t\t}\n\n\t\t// Au nom de\n\t\tif (Validator.isNull(ParamUtil.getString(request, \"inTheNameOf\"))) {\n\t\t\tSessionErrors.add(request, \"in-the-name-of-error\");\n\t\t\tisValid = false;\n\t\t}\n\n\t\treturn isValid;\n\t}", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "boolean isValid()\n {\n return isRequest() && isResponse();\n }", "private boolean checkEpisodeInputData(HttpServletRequest request, HttpServletResponse response) {\n return request.getParameter(\"episodeTitle\") != null && request.getParameter(\"episodeTitle\").length() > 0\n && request.getParameter(\"episodeDescription\") != null && request.getParameter(\"episodeDescription\").length() > 0\n && request.getParameter(\"episodeNumber\") != null && request.getParameter(\"episodeNumber\").length() > 0\n && request.getParameter(\"episodeSeason\") != null && request.getParameter(\"episodeSeason\").length() > 0\n && request.getParameter(\"series\") != null && request.getParameter(\"series\").length() > 0;\n }", "private void validateInputAttributes() throws JspTagException {\n if (query == null) {\n if (var == null) {\n throw new JspTagException(\"<tolog:set> : requires a 'var'- or a\"\n + \" 'query'-attribute (or both), but got neither.\");\n }\n\n if (!(reqparam == null || value == null)) {\n throw new JspTagException(\"<tolog:set> : requires either a\"\n + \" 'query'-, a 'reqparam'- or a 'value'-attribute,\"\n + \" but got both.\");\n }\n\n } else {\n if (reqparam != null || value != null) {\n throw new JspTagException(\"<tolog:set> : requires either a\"\n + \" 'query'-, a 'reqparam'- or a 'value'-attribute,\"\n + \" but got more than one of them.\");\n }\n }\n }", "boolean hasQueryMessage();", "public void validateNamedParameters() {\n if (namedParameters != null) {\n for (Map.Entry<String, Object> e : namedParameters.entrySet()) {\n if (e.getValue() == null) {\n throw log.queryParameterNotSet(e.getKey());\n }\n }\n }\n }", "protected void validateSpaRequest()\n\t{\n\t\tif (isSpaRequest())\n\t\t{\n\t\t\thttpContext.disableSpaRequest();\n\t\t\tsendSpaHeaders();\n\t\t}\n\t}", "private static void validateBaseRequest(final InvBaseRequest request) {\r\n\t\tif (request == null) {\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Request is Null.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Request is Null\");\r\n\t\t}\r\n\r\n\t\tif(request.getTransactionId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid Transaction ID.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid Transaction ID.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(request.getUserId() == null){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Invalid User Id.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Invalid User Id.\");\r\n\t\t}\r\n\t\t\r\n\t\tif(null == request.getDistributionCenter() || request.getDistributionCenter().isEmpty() || null == request.getShipToCustomer() || request.getShipToCustomer().isEmpty() ){\r\n\t\t\tLOGGER.severe(MessageLoggerHelper.buildErrorMessage(\r\n\t\t\t\t\trequest.getShipToCustomer(), request.getUserId(), request.getTransactionId(),\r\n\t\t\t\t\tErrorHandlingHelper.getErrorCodeByErrorKey(\r\n\t\t\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION),\r\n\t\t\t\t\tInventoryConstants.ErrorKeys.ILLEGAL_ARG_EXCEPTION_DESC +\r\n\t\t\t\t\t\". Account should not be empty.\"));\r\n\t\t\tthrow new IllegalArgumentException(\"Account should not be empty\");\r\n\t\t}\r\n\t}", "void validate(N ndcRequest, ErrorsType errorsType);", "public boolean hasQuery() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "public boolean isSetQuery() {\n return this.query != null;\n }", "boolean isIsQuery();", "private void validateRequest( DownloadRequest dreq )\n throws ErrorResponseException\n {\n String path = dreq.getPath();\n if ( path.endsWith( ResourceCatalog.VERSION_XML_FILENAME ) || path.indexOf( \"__\" ) != -1 )\n {\n throw new ErrorResponseException( DownloadResponse.getNoContentResponse() );\n }\n }", "private void validateRequestParamsNotNull(LoginRequest loginRequest) throws EmptyFieldException {\n validateParamNotNull(loginRequest.getEmail(), \"Email\");\n validateParamNotNull(loginRequest.getPassword(), \"Password\");\n }", "public boolean hasQuery() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "@Override\r\n\tprotected Result validate(Keywords form, HttpServletRequest request) {\n\t\treturn null;\r\n\t}", "public boolean isSetQuery() {\n return this.query != null;\n }", "public boolean isSetQuery() {\n return this.query != null;\n }", "public static QueryOptions checkQueryOptions(QueryOptions options) throws Exception {\n QueryOptions filteredQueryOptions = new QueryOptions(options);\n Iterator<Map.Entry<String, Object>> iterator = filteredQueryOptions.entrySet().iterator();\n while (iterator.hasNext()) {\n Map.Entry<String, Object> entry = iterator.next();\n if (acceptedValues.contains(entry.getKey())) {\n if (entry.getValue() == null || entry.toString().isEmpty()) {\n iterator.remove();\n } else {\n //TODO: check type\n }\n } else {\n iterator.remove();\n System.out.println(\"Unknown query param \" + entry.getKey());\n }\n }\n return filteredQueryOptions;\n }", "protected void verifyRequestInputModel( String apiName)\n {\n verifyRequestInputModel( apiName, apiName);\n }", "private void validateData() {\n }", "@Override\r\n public void validateParameters(PluginRequest request) {\n }", "private boolean isValidInput() {\n\t\treturn true;\n\t}", "public void validate() {\n DBQueryHandler handler = new DBQueryHandler();\n ActionHelper helper = new ActionHelper();\n \n if( ratingValue.equals(\"0\") )\n {\n rating = 0;\n }\n else if( ratingValue.equals(\"1\") )\n {\n rating = 1;\n }\n else if( ratingValue.equals(\"2\") )\n {\n rating = 2;\n }\n else if( ratingValue.equals(\"3\") )\n {\n rating = 3;\n }\n else if( ratingValue.equals(\"4\") )\n {\n rating = 4;\n }\n else if( ratingValue.equals(\"5\") )\n {\n rating = 5;\n }\n else if( ratingText.length() != 0 || ratingText != null )\n {\n ratingText = helper.injectionReplace(ratingText);\n }\n else\n {\n ratingDate = new Date();\n }\n\n }", "@Override\n\tprotected boolean validateRequiredParameters() throws Exception {\n\t\treturn true;\n\t}", "protected boolean validate(HttpServletRequest request) {\r\n/* 54 */ log.debug(\"RoomCtl Method validate Started\");\r\n/* */ \r\n/* 56 */ boolean pass = true;\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 61 */ if (DataValidator.isNull(request.getParameter(\"room\"))) {\r\n/* 62 */ request.setAttribute(\"room\", \r\n/* 63 */ PropertyReader.getValue(\"error.require\", \" RoomNo\"));\r\n/* 64 */ pass = false;\r\n/* */ } \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 70 */ if (DataValidator.isNull(request.getParameter(\"description\"))) {\r\n/* 71 */ request.setAttribute(\"description\", \r\n/* 72 */ PropertyReader.getValue(\"error.require\", \"Description\"));\r\n/* 73 */ pass = false;\r\n/* */ } \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 78 */ if (\"-----Select-----\".equalsIgnoreCase(request.getParameter(\"hostelId\"))) {\r\n/* 79 */ request.setAttribute(\"hostelId\", \r\n/* 80 */ PropertyReader.getValue(\"error.require\", \"Hostel Name\"));\r\n/* 81 */ pass = false;\r\n/* */ } \r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 86 */ log.debug(\"RoomCtl Method validate Ended\");\r\n/* */ \r\n/* 88 */ return pass;\r\n/* */ }", "private void validate() {\n Validate.notNull(uriLocatorFactory);\n Validate.notNull(preProcessorExecutor);\n }", "private void validateRequest(CustomerStockRequest customerStockRequest) {\n\n if (customerStockRequest.getSelectedDate() == null) {\n throw new CustomerException(\"You must enter a date\");\n }\n\n LocalDate earliestDate = stockTradingLedgerRepository.findEarliestDateOnLedger();\n if (customerStockRequest.getSelectedDate().isBefore(earliestDate)) {\n throw new CustomerException(\"You must enter a date after the earliest date on the stock ledger which is \" + earliestDate);\n }\n\n if (customerStockRequest.getSelectedDate().isAfter(LocalDate.now())) {\n throw new CustomerException(\"You must must not enter a date in the future\");\n }\n }", "public static void validateGetLocationDetailsRequest(final InvLocationDetailRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t\t\r\n\t}", "private boolean isInputValid() {\n return true;\n }", "@Override\n @JsonIgnore\n public void validateRequest(Map<String, Object> map) throws EntityError {\n }", "private QueryResponse getQueryResponse(RequestInfo qryRequestInfo) throws DefectException{\r\n\t\t\r\n\t\tif(CommonUtil.isNull(qryRequestInfo)){\r\n\t\t\tlog.error(\"failed to make query request, Query Request Info-\" + qryRequestInfo);\r\n \tthrow new DefectException(\"failed to make query request, required query request info is missing\");\r\n\t\t}\r\n\t\t\r\n\t\t// Request type can be User,defect etc.\r\n\t\tQueryRequest qryRequest = new QueryRequest(qryRequestInfo.getRequestType());\r\n\t\t\r\n\t\tlog.info(\"Request Type : \" + qryRequestInfo.getRequestType());\r\n\t\t\r\n\t\tqryRequest.setFetch(new Fetch(qryRequestInfo.getFetch()));\r\n\t\ttry{\r\n\t\t\tif(qryRequestInfo.getQueryFilter() != null){\r\n\t\t\t\tQueryFilter qfilter = null;\r\n\t\t\t\tArrayList<String> filterList = qryRequestInfo.getQueryFilter();\r\n\t\t\t\tif(!filterList.isEmpty() && filterList.size() >= 3){\r\n\t\t\t\t\tif((filterList.get(2)==null)||(filterList.get(2).length() ==0)){\r\n\t\t\t\t\t\tfilterList.set(2,\"null\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tqfilter = new QueryFilter(filterList.get(0), filterList.get(1), filterList.get(2));\r\n\t\t\t\t\tfor(int i=3;i+3<filterList.size();i=i+4){\r\n\t\t\t\t\t\tif(filterList.get(i) == \"AND\"){\r\n\t\t\t\t\t\t\tqfilter = QueryFilter.and(qfilter, new QueryFilter(filterList.get(i + 1), filterList.get(i + 2), filterList.get(i + 3)));\r\n\t\t\t\t\t\t}else if(filterList.get(i) == \"OR\"){\r\n\t\t\t\t\t\t\tqfilter = QueryFilter.or(qfilter, new QueryFilter(filterList.get(i + 1), filterList.get(i + 2), filterList.get(i + 3)));\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tthrow new DefectException(\"Invalid query filter string.\");\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\tqryRequest.setQueryFilter(qfilter);\r\n\t\t\t}\r\n\t\t}catch(IndexOutOfBoundsException e){\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t}catch(NullPointerException e){\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t}\r\n\t\tif(qryRequestInfo.getQueryOrder() != null){\r\n\t\t\tqryRequest.setOrder(convertMapToString(qryRequestInfo.getQueryOrder()));\r\n\t\t}\r\n\t\r\n\t\tif(qryRequestInfo.getPageSize() != -1)\r\n\t\t\tqryRequest.setPageSize(qryRequestInfo.getPageSize());\r\n\t\t\t\r\n\t\tif(qryRequestInfo.getLimit() != -1)\t\t\t\r\n\t\t\tqryRequest.setPageSize(qryRequestInfo.getLimit());\r\n\t\t\r\n\t\tQueryResponse qryResponse = null;\r\n\t\ttry {\r\n\t\t\tqryResponse = restApi.query(qryRequest);\r\n\t\t} catch (IOException e) {\r\n\t\t\tlog.error(\"failed to query , message : \" + e.toString() + \" Query Response -\" + qryResponse);\r\n \tthrow new DefectException(\"failed to query , message : \" + e.toString());\r\n\t\t}\r\n\t\t\r\n\t\treturn qryResponse;\r\n\t}", "public static void validateLocationRequest(final InvLocationRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t}", "private void validate(final CartDto cartDto) throws BadRequestException {\n if (cartDto.getSkuCode() == null || \"\".equals(cartDto.getSkuCode())) {\n LOG.info(\"Sku code is mandatory.\");\n throw new BadRequestException(\"Sku code is mandatory\");\n }\n if (cartDto.getQuantity() <= 0) {\n LOG.info(\"Quantity must be 1 or greater.\");\n throw new BadRequestException(\"Quantity must be 1 or greater\");\n }\n }", "private String sanitizeQuery(String query) {\n if (query.length() >= MAX_ALLOWED_SQL_CHARACTERS) {\n throw new TooLongQueryError(query.length());\n }\n return query;\n }", "@Override\n\tprotected void check() throws SiDCException, Exception {\n\t\tif (entity == null) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of request.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getStatus())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of status.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getLangcode())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of lang code.\");\n\t\t}\n\t}", "public boolean validate(){\r\n \r\n // in some case, validate() may be called twice\r\n // hence clear the stack\r\n stack.clear();\r\n \r\n\t\tcollect();\r\n\t\r\n\t\tif (getBody()!=null){\r\n\t\t\t// select ?x\r\n\t\t\tfor (Variable var : getSelectVar()){\r\n\t\t\t\tif (hasExpression(var)){\r\n\t\t\t\t\tbind(var);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// select *\r\n\t\t\tif (isSelectAll()){\r\n\t\t\t\tfor (Variable var : getSelectAllVar()){\r\n\t\t\t\t\tif (hasExpression(var)){\r\n\t\t\t\t\t\tbind(var);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\tboolean ok = true;\r\n\t\t\t\r\n\t\t\tfor (Exp exp : getBody().getBody()){\r\n\t\t\t\tboolean b = exp.validate(this);\r\n\t\t\t\tif (! b){\r\n\t \t\t\tok = false;\r\n\t \t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn ok;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "@Override\n public void validateRequest(WebScriptRequest webScriptRequest) {\n }", "@Override\n\tpublic IStatus validate(IValidationContext ctx) {\n\n\t\tEObject target = ctx.getTarget();\n\n\t\tif (query.check(target)) {\n\t\t\treturn ctx.createSuccessStatus();\n\t\t} else {\n\t\t\t// OCL constraints only support the target object as an extraction\n\t\t\t// variable and result locus, as OCL has no way to provide\n\t\t\t// additional extractions. Also, there is no way for the OCL\n\t\t\t// to access the context object\n\t\t\tfinal CustomTypeHandlersService service = OCLActivator.getDefault().getService(CustomTypeHandlersService.class);\n\n\t\t\treturn ctx.createFailureStatus(service.wrapObjectIfNeeded(target));\n\t\t}\n\t}", "public boolean onQueryTextSubmit(String query) {\n return false;\n }", "public boolean onQueryTextSubmit (String query) {\n return true;\n }", "public static void validateLocationSummaryRequest(final InvLocationRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t\t\r\n\t}", "boolean hasQueryParams();", "private void validateBuildParameters() {\n if (TextUtils.isEmpty(consumerKey)) {\n throw new IllegalArgumentException(\"CONSUMER_KEY not set\");\n }\n if (TextUtils.isEmpty(consumerSecret)) {\n throw new IllegalArgumentException(\"CONSUMER_SECRET not set\");\n }\n if (TextUtils.isEmpty(token)) {\n throw new IllegalArgumentException(\"TOKEN not set, the user must be logged it\");\n }\n if (TextUtils.isEmpty(tokenSecret)) {\n throw new IllegalArgumentException(\"TOKEN_SECRET not set, the user must be logged it\");\n }\n }", "void setQueryRequest(com.exacttarget.wsdl.partnerapi.QueryRequest queryRequest);", "protected abstract boolean isInputValid();", "private void checkInlineQueries() throws Exceptions.OsoException, Exceptions.InlineQueryFailedError {\n Ffi.Query nextQuery = ffiPolar.nextInlineQuery();\n while (nextQuery != null) {\n if (!new Query(nextQuery, host).hasMoreElements()) {\n String source = nextQuery.source();\n throw new Exceptions.InlineQueryFailedError(source);\n }\n nextQuery = ffiPolar.nextInlineQuery();\n }\n }", "com.exacttarget.wsdl.partnerapi.QueryRequest getQueryRequest();", "public static void validateLocationDetailRequest(final InvLocationDetailRequest request) {\r\n//\t\ttry {\r\n\t\t\tvalidateBaseRequest(request);\r\n//\t\t} \r\n//\t\tcatch (IllegalArgumentException e) {\r\n//\t\t\tthrow e;\r\n//\t\t}\r\n\t}", "public void validateRequestToBuyPage(){\r\n\t\tsearchByShowMeAll();\r\n\t\tclickCheckboxAndRenewBuyButton();\r\n\t\tverifyRequestToBuyPage();\r\n\t}", "String query();", "private Boolean checkInput(Request request, PresetQueue presetQueue) {\n if (presetQueue == null || request.getParameter(\"presetid\") == null) {\n return false;\n }\n int presetid = Integer.parseInt(request.getParameter(\"presetid\"));\n if (getPresetById(presetid) == null) {\n return false;\n }\n return true;\n }", "protected void checkQueryForSearch(CandidateQuery query, List<Object> params) {\n\t\tif(query==null) {\n\t\t\tthrow new IllegalArgumentException(\"checkQueryForSearch(CandidateQuery query, List<Object> params) \"+query+\" can not be null\");\n\n\t\t}\n\t\t\n\t\tString[] checkList= {\n\t\t\t\t\"query.getTargetType()\",query.getTargetType(),\n\t\t\t\t\"query.getOwnerType()\",query.getOwnerType(),\n\t\t\t\t\"query.getTargetType()\",query.getTargetType(),\n\t\t\t\t\"query.getListType()\",query.getListType(),\n\t\t\t\t\"query.getOwnerId()\",query.getOwnerId(),\n\t\t\t\t\n\t\t};\n\t\t\n\t\tint length = checkList.length;\n\t\tfor(int i=0;i<length;i++) {\n\t\t\tString target = checkList[i];\n\t\t\tif(target!=null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString parameterName = checkList[i-1];\n\t\t\tString message = String.format(\"Parameter '%s' in '%s' is not expected to be null\",\n\t\t\t\t\tparameterName,\"prepareSqlForSearch(CandidateQuery query, List<Object> params)\");\n\t\t\tthrow new IllegalArgumentException(message);\n\t\t}\n\t\t\n\t\t\n\t}", "protected void validate()\r\n\t{\r\n\t\tif( this.mapper==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the Mapper of this dataset.\");\r\n\t\tif( this.input_format==null )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the InputFormat of this dataset.\");\r\n\t\tif( this.inputs==null || this.inputs.size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the input path(s) of this dataset\");\r\n\t\tif ( this.getSchema()==null || this.getSchema().size()==0 )\r\n\t\t\tthrow new IllegalStateException(\"Please specify the schema of this dataset first\");\r\n\t}", "QueryArgs getQueryArgs();", "java.lang.String getQuery();", "java.lang.String getQuery();", "private boolean checkChannelEpisodeInputData(HttpServletRequest request, HttpServletResponse response) {\n return request.getParameter(\"channel\") != null && request.getParameter(\"channel\").length() > 0\n && request.getParameter(\"episode\") != null && request.getParameter(\"episode\").length() > 0\n && request.getParameter(\"date\") != null && request.getParameter(\"date\").length() > 0\n && request.getParameter(\"time\") != null && request.getParameter(\"time\").length() > 0;\n }", "@Test\n public void executeValidSearch_notAllFields(){\n emptySearchFields();\n view.setFloor(1);\n view.setBedrooms(1);\n view.setBathrooms(1);\n presenter.doSearch();\n Assert.assertTrue(presenter.hasNextResult());\n }", "@Test\n\tpublic void queryTest(){\n\t\tQueryableRequestSpecification queryableRequestSpecification = SpecificationQuerier.query(requestSpecification);\n\t\tSystem.out.println(\"Printing specification parameters: \" +queryableRequestSpecification.getBaseUri());\n\t}", "private boolean isAdvancedQuery(String enteredQuery){\n try{\n Character firstChar = enteredQuery.charAt(0);\n Character secondChar = enteredQuery.charAt(1);\n\n return isSignOperator(firstChar.toString()) && secondChar.equals(' ');\n }catch (StringIndexOutOfBoundsException ex){\n return false;\n }\n }", "@Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }", "@Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }", "@Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }", "@Override\n public boolean onQueryTextSubmit(String query) {\n return false;\n }", "boolean hasQueryName();", "protected void validate() {\n // no op\n }", "private boolean checkCastMemberInputData(HttpServletRequest request, HttpServletResponse response) {\n return request.getParameter(\"castMemberName\") != null && request.getParameter(\"castMemberName\").length() > 0\n && request.getParameter(\"castMemberSurname\") != null && request.getParameter(\"castMemberSurname\").length() > 0\n && request.getParameter(\"castMemberBirthDate\") != null && request.getParameter(\"castMemberBirthDate\").length() > 0\n && request.getParameter(\"gender\") != null && request.getParameter(\"gender\").length() > 0\n && request.getParameter(\"castMemberCountry\") != null && request.getParameter(\"castMemberCountry\").length() > 0\n && request.getParameter(\"castMemberImageURL\") != null && request.getParameter(\"castMemberImageURL\").length() > 0;\n }", "@Override\n\tprotected int checkParseRequest(StringBuilder request) {\n\t\tif (request != null && request.length() > 3 && request.charAt(3) == '=') { // simplerpc?jzn=604107&jzp=1&jzc=1&jzz=WLL100...\n\t\t\t// parse XSS query\n\t\t\tint length = request.length();\n\t\t\t\n\t\t\tint jzzStarted = -1;\n\t\t\tint jzzStopped = -1;\n\t\t\t\n\t\t\tint jznStarted = -1;\n\t\t\tint jznStopped = -1;\n\t\t\t\n\t\t\tint jzpStarted = -1;\n\t\t\tint jzpStopped = -1;\n\t\t\t\n\t\t\tint jzcStarted = -1;\n\t\t\tint jzcStopped = -1;\n\t\t\t\n\t\t\tint unknownStarted = -1;\n\t\t\tint unknownStopped = -1;\n\n\t\t\tchar c3 = request.charAt(0);\n\t\t\tchar c2 = request.charAt(1);\n\t\t\tchar c1 = request.charAt(2);\n\t\t\tfor (int i = 3; i < length; i++) {\n\t\t\t\tchar c0 = request.charAt(i);\n\t\t\t\tif (jznStarted != -1) {\n\t\t\t\t\tif (jznStopped == -1) {\n\t\t\t\t\t\tif (c0 == '&') { // got jzn=...\n\t\t\t\t\t\t\tjznStopped = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (jzpStarted != -1) {\n\t\t\t\t\tif (jzpStopped == -1) {\n\t\t\t\t\t\tif (c0 == '&') { // got jzp=...\n\t\t\t\t\t\t\tjzpStopped = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (jzcStarted != -1) {\n\t\t\t\t\tif (jzcStopped == -1) {\n\t\t\t\t\t\tif (c0 == '&') { // got jzc=...\n\t\t\t\t\t\t\tjzcStopped = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (jzzStarted != -1) {\n\t\t\t\t\tif (jzzStopped == -1) {\n\t\t\t\t\t\tif (c0 == '&') { // got jzz=\n\t\t\t\t\t\t\tjzzStopped = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (unknownStarted != -1) {\n\t\t\t\t\tif (unknownStopped == -1) {\n\t\t\t\t\t\tif (c0 == '&') { // gotcha\n\t\t\t\t\t\t\tunknownStopped = i;\n\t\t\t\t\t\t\tunknownStarted = -1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (c0 == '=' && c2 == 'z' && c3 == 'j') { // jz?=\n\t\t\t\t\tif (c1 == 'n') {\n\t\t\t\t\t\tjznStarted = i + 1;\n\t\t\t\t\t\tjznStopped = -1;\n\t\t\t\t\t} else if (c1 == 'p') {\n\t\t\t\t\t\tjzpStarted = i + 1;\n\t\t\t\t\t\tjzpStopped = -1;\n\t\t\t\t\t} else if (c1 == 'c') {\n\t\t\t\t\t\tjzcStarted = i + 1;\n\t\t\t\t\t\tjzcStopped = -1;\n\t\t\t\t\t} else if (c1 == 'z') {\n\t\t\t\t\t\tjzzStarted = i + 1;\n\t\t\t\t\t\tjzzStopped = -1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tunknownStarted = i + 1;\n\t\t\t\t\t\tunknownStopped = -1;\n\t\t\t\t\t}\n\t\t\t\t\tc2 = 0;\n\t\t\t\t\tc1 = 0;\n\t\t\t\t\tc0 = 0;\n\t\t\t\t} else if (c0 == '=') {\n\t\t\t\t\tunknownStarted = i + 1;\n\t\t\t\t\tunknownStopped = -1;\n\t\t\t\t\tc2 = 0;\n\t\t\t\t\tc1 = 0;\n\t\t\t\t\tc0 = 0;\n\t\t\t\t}\n\t\t\t\tc3 = c2;\n\t\t\t\tc2 = c1;\n\t\t\t\tc1 = c0;\n\t\t\t}\n\t\t\t\n\t\t\tString jzzRequest = null;\n\t\t\tif (jzzStarted != -1) {\n\t\t\t\tif (jzzStopped == -1) {\n\t\t\t\t\tjzzStopped = length;\n\t\t\t\t}\n\t\t\t\tjzzRequest = request.substring(jzzStarted, jzzStopped);\n\t\t\t}\n\n\t\t\t// jzz without jzn is considered as XHR requests!\n\t\t\tif (jzzRequest == null || jzzRequest.trim().length() == 0) {\n\t\t\t\t//response = generateXSSErrorResponse();\n\t\t\t\trequestData = request.toString();\n\t\t\t\treturn -1; // error\n\t\t\t}\n\t\t\t\n\t\t\tif (jznStarted != -1) {\n\t\t\t\tif (jznStopped == -1) {\n\t\t\t\t\tjznStopped = length;\n\t\t\t\t}\n\t\t\t\trequestID = request.substring(jznStarted, jznStopped);\n\t\t\t}\n\t\t\tif (requestID != null && requestID.length() != 0) {\n\t\t\t\t// when jzn is defined, it's considered as a script request!\n\t\t\t\t\n\t\t\t\t// make sure that servlet support cross site script request\n\t\t\t\t// always support cross site script requests\n\t\t\t\tif (!PipeConfig.supportXSS) {\n\t\t\t\t\tresponse = new HttpQuickResponse(\"text/javascript\", \"net.sf.j2s.ajax.SimpleRPCRequest\" +\n\t\t\t\t\t\t\t\".xssNotify(\\\"\" + requestID + \"\\\", \\\"unsupported\\\");\");\n\t\t\t\t\treturn -1; // error\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t// check script request counts\n\t\t\t\tString count = null;\n\t\t\t\tif (jzpStarted != -1) {\n\t\t\t\t\tif (jzpStopped == -1) {\n\t\t\t\t\t\tjzpStopped = length;\n\t\t\t\t\t}\n\t\t\t\t\tcount = request.substring(jzpStarted, jzpStopped);\n\t\t\t\t}\n\t\t\t\tint partsCount = 1;\n\t\t\t\tif (count != null) {\n\t\t\t\t\tboolean formatError = false;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpartsCount = Integer.parseInt(count);\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tformatError = true; \n\t\t\t\t\t}\n\t\t\t\t\tif (formatError || partsCount <= 0) {\n\t\t\t\t\t\tresponse = generateXSSErrorResponse();\n\t\t\t\t\t\treturn -1; // error\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (partsCount != 1) {\n\t\t\t\t\t// check whether servlet can deal the requests\n\t\t\t\t\tif (partsCount > PipeConfig.maxXSSParts) {\n\t\t\t\t\t\tresponse = new HttpQuickResponse(\"text/javascript\", \"net.sf.j2s.ajax.SimpleRPCRequest\" +\n\t\t\t\t\t\t\t\t\".xssNotify(\\\"\" + requestID + \"\\\", \\\"exceedrequestlimit\\\");\");\n\t\t\t\t\t\treturn -1; // error\n\t\t\t\t\t}\n\t\t\t\t\t// check curent request index\n\t\t\t\t\tString current = null;\n\t\t\t\t\tif (jzcStarted != -1) {\n\t\t\t\t\t\tif (jzcStopped == -1) {\n\t\t\t\t\t\t\tjzcStopped = length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrent = request.substring(jzcStarted, jzcStopped);\n\t\t\t\t\t}\n\t\t\t\t\tint curPart = 1;\n\t\t\t\t\tif (current != null) {\n\t\t\t\t\t\tboolean formatError = false;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcurPart = Integer.parseInt(current);\n\t\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t\tformatError = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (formatError || curPart > partsCount) {\n\t\t\t\t\t\t\tresponse = generateXSSErrorResponse();\n\t\t\t\t\t\t\treturn -1; // error\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlong now = System.currentTimeMillis();\n\t\t\t\t\tfor (Iterator<SimpleHttpRequest> itr = allSessions.values().iterator(); itr.hasNext();) {\n\t\t\t\t\t\tSimpleHttpRequest r = (SimpleHttpRequest) itr.next();\n\t\t\t\t\t\tif (now - r.jzt > PipeConfig.maxXSSLatency) {\n\t\t\t\t\t\t\titr.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tString[] parts = null;\n\t\t\t\t\t\n\t\t\t\t\tSimpleHttpRequest sessionRequest = null;\n\t\t\t\t\t// store request in session before the request is completed\n\t\t\t\t\tif (session == null) {\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\tStringBuilder builder = new StringBuilder(32);\n\t\t\t\t\t\t\tfor (int i = 0; i < 32; i++) {\n\t\t\t\t\t\t\t\tint r = (int) Math.round((float) Math.random() * 61.1); // 0..61, total 62 numbers\n\t\t\t\t\t\t\t\tif (r < 10) {\n\t\t\t\t\t\t\t\t\tbuilder.append((char) (r + '0'));\n\t\t\t\t\t\t\t\t} else if (r < 10 + 26) {\n\t\t\t\t\t\t\t\t\tbuilder.append((char) ((r - 10) + 'a'));\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tbuilder.append((char) ((r - 10 - 26) + 'A'));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsession = builder.toString();\n\t\t\t\t\t\t} while (allSessions.get(session) != null);\n\t\t\t\t\t\tsessionRequest = new SimpleHttpRequest();\n\t\t\t\t\t\tallSessions.put(session, sessionRequest);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsessionRequest = allSessions.get(session);\n\t\t\t\t\t\tif (sessionRequest == null) {\n\t\t\t\t\t\t\tsessionRequest = new SimpleHttpRequest();\n\t\t\t\t\t\t\tallSessions.put(session, sessionRequest);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (sessionRequest.jzn == null) {\n\t\t\t\t\t\tsessionRequest.jzt = now;\n\t\t\t\t\t\tparts = new String[partsCount];\n\t\t\t\t\t\tsessionRequest.jzn = parts;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tparts = sessionRequest.jzn;\n\t\t\t\t\t\tif (partsCount != parts.length) {\n\t\t\t\t\t\t\tresponse = generateXSSErrorResponse();\n\t\t\t\t\t\t\treturn -1; // error\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tparts[curPart - 1] = jzzRequest;\n\t\t\t\t\tfor (int i = 0; i < parts.length; i++) {\n\t\t\t\t\t\tif (parts[i] == null) {\n\t\t\t\t\t\t\t// not completed yet! just response and wait next request.\n\t\t\t\t\t\t\tresponse = new HttpQuickResponse(\"text/javascript\", \"net.sf.j2s.ajax.SimpleRPCRequest\" +\n\t\t\t\t\t\t\t\t\t\".xssNotify(\\\"\" + requestID + \"\\\", \\\"continue\\\"\" +\n\t\t\t\t\t\t\t\t\t((curPart == 1) ? \", \\\"\" + session + \"\\\");\" : \");\"));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (response != null) {\n\t\t\t\t\t\treturn -1;\n\t\t\t\t\t}\n\n\t\t\t\t\tallSessions.remove(session);\n\t\t\t\t\t\n\t\t\t\t\tStringBuilder builder = new StringBuilder(16192);\n\t\t\t\t\tfor (int i = 0; i < parts.length; i++) {\n\t\t\t\t\t\tbuilder.append(parts[i]);\n\t\t\t\t\t\tparts[i] = null;\n\t\t\t\t\t}\n\t\t\t\t\trequest.delete(0, request.length()).append(builder.toString());\n\t\t\t\t} else {\n\t\t\t\t\trequest.delete(0, request.length()).append(jzzRequest);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\trequest.delete(0, request.length()).append(jzzRequest); // no request id, normal request\n\t\t\t}\n\t\t} // end of XSS script query parsing\n\t\treturn 0;\n\t}", "QueryRequest<Review> query();", "private boolean validationInput(String tenDMGT, String dMGTId, String maDMGT, String taiLieu, String dungLuong, String doiTuongSuDung, ActionRequest actionRequest) {\r\n\t\tif (maDMGT.trim().length() == 0) {\r\n\t\t\tSessionErrors.add(actionRequest, \"emptyMaDMGT\");\r\n\t\t}\r\n\t\tif (tenDMGT.trim().length() == 0) {\r\n\t\t\tSessionErrors.add(actionRequest, \"emptyTenDMGT\");\r\n\t\t}\r\n\t\tif (taiLieu.trim().length() == 0) {\r\n\t\t\tSessionErrors.add(actionRequest, \"emptyTaiLieuDMGT\");\r\n\t\t}\r\n\t\tif (dungLuong.trim().length() == 0) {\r\n\t\t\tSessionErrors.add(actionRequest, \"emptyDungLuongDMGT\");\r\n\t\t}\r\n\t\tif(FormatUtil.convertToInt(dungLuong) <=0)\r\n\t\t{\r\n\t\t\tSessionErrors.add(actionRequest, \"emptyDungLuongDMGT\");\r\n\t\t}\r\n\t\tif(Validator.isNull(doiTuongSuDung))\r\n\t\t{\r\n\t\t\tSessionErrors.add(actionRequest, \"emptyDoiTuongSuDung\");\r\n\t\t}\r\n\t\t// Neu thong tin nhap khac rong\r\n\t\tif (SessionErrors.isEmpty(actionRequest)) {\r\n\t\t\tDanhMucGiayTo dMGT = null;\r\n\t\t\ttry {\r\n\r\n\t\t\t\t// Kiem tra theo Ma\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdMGT = null;\r\n\t\t\t\t\tdMGT = DanhMucGiayToLocalServiceUtil.findTheoMa(maDMGT);\r\n\t\t\t\t} catch (Exception es) {\r\n\t\t\t\t}\r\n\t\t\t\tif (dMGT != null) {\r\n\t\t\t\t\tif (dMGT.getDaXoa() == FormatUtil.DA_XOA_DEACTIVATE) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (dMGTId.trim().length() > 0) {\r\n\t\t\t\t\t\tif (FormatUtil.convertToLong(dMGTId) != dMGT.getId()) {\r\n\t\t\t\t\t\t\tSessionErrors.add(actionRequest, \"existMaDMGT\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSessionErrors.add(actionRequest, \"existMaDMGT\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t} catch (Exception es) {\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (SessionErrors.isEmpty(actionRequest)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}", "private static boolean arePostRequestParametersValid(String title, String description,\n String imageUrl, String releaseDate, String runtime, String genre, String directors,\n String writers, String actors, String omdbId) {\n return isParameterValid(title, MAX_TITLE_CHARS) && isParameterValid(description, MAX_CHARS)\n && isParameterValid(imageUrl, MAX_CHARS) && isParameterValid(releaseDate, MAX_CHARS)\n && isParameterValid(runtime, MAX_CHARS) && isParameterValid(genre, MAX_CHARS)\n && isParameterValid(directors, MAX_CHARS) && isParameterValid(writers, MAX_CHARS)\n && isParameterValid(actors, MAX_CHARS) && isParameterValid(omdbId, MAX_CHARS);\n }" ]
[ "0.69290584", "0.6908304", "0.67120385", "0.64858127", "0.610211", "0.6092929", "0.5978008", "0.59669536", "0.59075916", "0.5897546", "0.5871244", "0.5870711", "0.5846646", "0.5846646", "0.5846646", "0.5846646", "0.57730514", "0.5752933", "0.5735576", "0.5731286", "0.5728147", "0.5712878", "0.57063764", "0.5700684", "0.562766", "0.5622222", "0.55809975", "0.55663574", "0.5561679", "0.5552717", "0.5547926", "0.55414706", "0.5539827", "0.5526215", "0.5501566", "0.5488936", "0.547871", "0.54686624", "0.5458119", "0.54534334", "0.5426755", "0.5416161", "0.5403532", "0.53980464", "0.53693634", "0.53693634", "0.5368581", "0.53674483", "0.5349779", "0.533405", "0.532743", "0.53254235", "0.53211576", "0.5315022", "0.53130645", "0.5309687", "0.5308866", "0.5307561", "0.53056806", "0.5302655", "0.5289385", "0.5288867", "0.5286461", "0.527582", "0.5258718", "0.5257021", "0.52514994", "0.5243881", "0.52358747", "0.5233788", "0.5231307", "0.5229916", "0.522934", "0.52250564", "0.5220461", "0.5217307", "0.5216599", "0.52165747", "0.51994586", "0.519936", "0.51992977", "0.5195931", "0.51937574", "0.51916456", "0.51916456", "0.51853335", "0.51841515", "0.51805985", "0.517917", "0.5176614", "0.5176614", "0.5176614", "0.5176614", "0.5156664", "0.51527923", "0.51512617", "0.51367855", "0.5131142", "0.51210034", "0.51148045" ]
0.76360387
0
Execute the query request
public List<JsonNode> forwardQuery(Query query) throws InvalidQueryException, IOException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Query query();", "public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void executeQuery() {\n }", "public ResultSet executeQuery(String request) {\n try {\r\n return st.executeQuery(request);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(Database.class.getName()).log(Level.SEVERE, null, ex);\r\n return null;\r\n }\r\n }", "public static void operation() {\n try ( QueryExecution qExec = QueryExecutionHTTP.service(dataURL).query(\"ASK{}\").build() ) {\n qExec.execAsk();\n System.out.println(\"Operation succeeded\");\n } catch (QueryException ex) {\n System.out.println(\"Operation failed: \"+ex.getMessage());\n }\n System.out.println();\n }", "public void Query() {\n }", "private void executeRequest(String sql) {\n\t}", "ResponseEntity execute();", "public abstract ResultList executeQuery(DatabaseQuery query);", "private QueryResult performMappedQuery() throws VizException {\n\n if (database == null) {\n throw new VizException(\"Database not specified for query\");\n }\n if (query == null) {\n throw new VizException(\"Cannot execute null query\");\n }\n\n QlServerRequest request = new QlServerRequest(query);\n request.setDatabase(database);\n request.setType(QueryType.QUERY);\n request.setParamMap(paramMap);\n\n // set the mode so the handler knows what to do\n if (queryLanguage == null) {\n throw new VizException(\"Query language not specified\");\n } else if (queryLanguage.equals(QueryLanguage.HQL)) {\n request.setLang(QlServerRequest.QueryLanguage.HQL);\n } else {\n request.setLang(QlServerRequest.QueryLanguage.SQL);\n }\n\n // create request object\n QueryResult retVal = null;\n // get result\n AbstractResponseMessage response = (AbstractResponseMessage) ThriftClient\n .sendRequest(request);\n\n if (response instanceof ResponseMessageGeneric) {\n retVal = (QueryResult) ((ResponseMessageGeneric) response)\n .getContents();\n\n } else if (response instanceof ResponseMessageError) {\n ResponseMessageError rme = (ResponseMessageError) response;\n VizServerSideException innerException = new VizServerSideException(\n rme.toString());\n throw new VizServerSideException(rme.getErrorMsg(), innerException);\n }\n\n return retVal;\n }", "void runQueries();", "@Override\n\t\tpublic void executeQuery(String query) {\n\t\t\t\n\t\t}", "<T extends BaseDto, V extends BaseDto> List<T> executeQuery(String reqResQuery, V req, QueryResultTransformer<T> transformer, Connection conn);", "@Api(1.1)\n public Response execute() throws HaloNetException {\n return mBuilder.mClient.request(mRequest);\n }", "private void handleEntitiesQuery(RoutingContext routingContext) {\n LOGGER.debug(\"Info:handleEntitiesQuery method started.;\");\n /* Handles HTTP request from client */\n JsonObject authInfo = (JsonObject) routingContext.data().get(\"authInfo\");\n LOGGER.debug(\"authInfo : \" + authInfo);\n HttpServerRequest request = routingContext.request();\n /* Handles HTTP response from server to client */\n HttpServerResponse response = routingContext.response();\n // get query paramaters\n MultiMap params = getQueryParams(routingContext, response).get();\n MultiMap headerParams = request.headers();\n // validate request parameters\n Future<Boolean> validationResult = validator.validate(params);\n validationResult.onComplete(validationHandler -> {\n if (validationHandler.succeeded()) {\n // parse query params\n NGSILDQueryParams ngsildquery = new NGSILDQueryParams(params);\n if (isTemporalParamsPresent(ngsildquery)) {\n ValidationException ex =\n new ValidationException(\"Temporal parameters are not allowed in entities query.\");\n ex.setParameterName(\"[timerel,time or endtime]\");\n routingContext.fail(ex);\n }\n // create json\n QueryMapper queryMapper = new QueryMapper();\n JsonObject json = queryMapper.toJson(ngsildquery, false);\n Future<List<String>> filtersFuture =\n catalogueService.getApplicableFilters(json.getJsonArray(\"id\").getString(0));\n /* HTTP request instance/host details */\n String instanceID = request.getHeader(HEADER_HOST);\n json.put(JSON_INSTANCEID, instanceID);\n LOGGER.debug(\"Info: IUDX query json;\" + json);\n /* HTTP request body as Json */\n JsonObject requestBody = new JsonObject();\n requestBody.put(\"ids\", json.getJsonArray(\"id\"));\n filtersFuture.onComplete(filtersHandler -> {\n if (filtersHandler.succeeded()) {\n json.put(\"applicableFilters\", filtersHandler.result());\n if (json.containsKey(IUDXQUERY_OPTIONS)\n && JSON_COUNT.equalsIgnoreCase(json.getString(IUDXQUERY_OPTIONS))) {\n executeCountQuery(json, response);\n } else {\n executeSearchQuery(json, response);\n }\n } else {\n LOGGER.error(\"catalogue item/group doesn't have filters.\");\n }\n });\n } else if (validationHandler.failed()) {\n LOGGER.error(\"Fail: Validation failed\");\n handleResponse(response, ResponseType.BadRequestData,\n validationHandler.cause().getMessage());\n }\n });\n }", "private QueryResults query(String queryName, Object[] args) {\n Command command = CommandFactory.newQuery(\"persons\", queryName, args);\n String queryStr = template.requestBody(\"direct:marshall\", command, String.class);\n\n String json = template.requestBody(\"direct:test-session\", queryStr, String.class);\n ExecutionResults res = (ExecutionResults) template.requestBody(\"direct:unmarshall\", json);\n return (QueryResults) res.getValue(\"persons\");\n }", "Object executeQuery(String sparqlQuery);", "Query queryOn(Connection connection);", "<T extends BaseDto> List<T> executeQuery(String resQuery, QueryResultTransformer<T> transformer, Connection conn);", "public void run()\n\t\t\t{\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(5000);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\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 * Process Query Here\n\t\t\t\t * \n\t\t\t\t **/\n\t\t\t}", "private QueryResponse query(Query query) throws ElasticSearchException{\r\n\t\tQueryResponse response = executor.executeQuery(query);\r\n\t\tresponse.setObjectMapper(mapper);\r\n\t\treturn response;\t\t\r\n\t}", "public FutureResultWithAnswer queryToServer(Query query) throws IOException, Net4CareException;", "Object callQuery(String name, Map<String, String> params);", "CommandResult execute();", "public void executeQuery(String q) throws HiveQueryExecutionException;", "<K, R extends IResponse> R query(IQueryRequest<K> queryRequest);", "Boolean callAskQuery(String name, Map<String, String> params);", "public QueryTableResults executeQuery(BasicQuery query,\n\t\t\tUserInfo userInfo) throws DatastoreException, NotFoundException, JSONObjectAdapterException;", "private void handleTemporalQuery(RoutingContext routingContext) {\n LOGGER.debug(\"Info: handleTemporalQuery method started.\");\n /* Handles HTTP request from client */\n HttpServerRequest request = routingContext.request();\n /* Handles HTTP response from server to client */\n HttpServerResponse response = routingContext.response();\n /* HTTP request instance/host details */\n String instanceID = request.getHeader(HEADER_HOST);\n // get query parameters\n MultiMap params = getQueryParams(routingContext, response).get();\n MultiMap headerParams = request.headers();\n // validate request params\n Future<Boolean> validationResult = validator.validate(params);\n validationResult.onComplete(validationHandler -> {\n if (validationHandler.succeeded()) {\n // parse query params\n NGSILDQueryParams ngsildquery = new NGSILDQueryParams(params);\n // create json\n QueryMapper queryMapper = new QueryMapper();\n JsonObject json = queryMapper.toJson(ngsildquery, true);\n Future<List<String>> filtersFuture =\n catalogueService.getApplicableFilters(json.getJsonArray(\"id\").getString(0));\n json.put(JSON_INSTANCEID, instanceID);\n LOGGER.debug(\"Info: IUDX temporal json query;\" + json);\n /* HTTP request body as Json */\n JsonObject requestBody = new JsonObject();\n requestBody.put(\"ids\", json.getJsonArray(\"id\"));\n filtersFuture.onComplete(filtersHandler -> {\n if (filtersHandler.succeeded()) {\n json.put(\"applicableFilters\", filtersHandler.result());\n if (json.containsKey(IUDXQUERY_OPTIONS)\n && JSON_COUNT.equalsIgnoreCase(json.getString(IUDXQUERY_OPTIONS))) {\n executeCountQuery(json, response);\n } else {\n executeSearchQuery(json, response);\n }\n } else {\n LOGGER.error(\"catalogue item/group doesn't have filters.\");\n }\n });\n } else if (validationHandler.failed()) {\n LOGGER.error(\"Fail: Bad request;\");\n handleResponse(response, ResponseType.BadRequestData,\n validationHandler.cause().getMessage());\n }\n });\n\n }", "String query();", "@Override \n\t\t public void run() {\n\t\t \t\n\t\t \tif (isCompleteQuery) {\n\t\t \t\tisCompleteQuery = !isCompleteQuery;\n\t\t \t\t\n\t\t \t\tMessage message = new Message(); \n\t\t\t message.what = 911; \n\t\t\t handler.sendMessage(message); \n\t\t\t LogUtils.i(\"*****************定时任务查询\");\n\t\t\t\t}\n\t\t \n\t\t }", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "@Override\n public QueryResult<T> execute(InternalConnection connection) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(String.format(\"Sending query of namespace %s on connection [%s] to server %s\", this.namespace, connection.getDescription().getConnectionId(), connection.getDescription().getServerAddress()));\n }\n long startTimeNanos = System.nanoTime();\n QueryMessage message = null;\n boolean isExplain = false;\n ByteBufferBsonOutput bsonOutput = new ByteBufferBsonOutput(connection);\n try {\n message = this.createQueryMessage(connection.getDescription());\n message.encode(bsonOutput, NoOpSessionContext.INSTANCE);\n isExplain = this.sendQueryStartedEvent(connection, message, bsonOutput, message.getEncodingMetadata());\n connection.sendMessage(bsonOutput.getByteBuffers(), message.getId());\n }\n finally {\n bsonOutput.close();\n }\n ResponseBuffers responseBuffers = connection.receiveMessage(message.getId());\n try {\n if (responseBuffers.getReplyHeader().isQueryFailure()) {\n BsonDocument errorDocument = new ReplyMessage<BsonDocument>(responseBuffers, new BsonDocumentCodec(), message.getId()).getDocuments().get(0);\n throw ProtocolHelper.getQueryFailureException(errorDocument, connection.getDescription().getServerAddress());\n }\n ReplyMessage<T> replyMessage = new ReplyMessage<T>(responseBuffers, this.resultDecoder, message.getId());\n QueryResult<T> result = new QueryResult<T>(this.namespace, replyMessage.getDocuments(), replyMessage.getReplyHeader().getCursorId(), connection.getDescription().getServerAddress());\n this.sendQuerySucceededEvent(connection.getDescription(), startTimeNanos, message, isExplain, responseBuffers, result);\n LOGGER.debug(\"Query completed\");\n QueryResult<T> queryResult = result;\n responseBuffers.close();\n return queryResult;\n }\n catch (Throwable throwable) {\n try {\n responseBuffers.close();\n throw throwable;\n }\n catch (RuntimeException e) {\n if (this.commandListener != null) {\n ProtocolHelper.sendCommandFailedEvent(message, FIND_COMMAND_NAME, connection.getDescription(), System.nanoTime() - startTimeNanos, e, this.commandListener);\n }\n throw e;\n }\n }\n }", "public QueryResponse query(SolrParams params) throws SolrServerException, IOException {\n return new QueryRequest(params).process(this);\n }", "public void execute() {\n\t\tif (nameidRequest != null) {nameidRequest.execute();}\n\t}", "ServiceResponse execute(RequestParameters request);", "@Override\r\n\tpublic int query(ActionContext arg0) throws Exception {\n\t\treturn 0;\r\n\t}", "protected void doQuery(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\r\n\t\tPrintWriter out = response.getWriter();\r\n\r\n\t\tint orderNo = 1;\r\n\t\t// System.out.println(\"jinlaile\");\r\n\t\t// System.out.println(request.getParameter(\"orderNo\"));\r\n\t\tString orderNoStr = request.getParameter(\"orderNo\");\r\n\r\n\t\tif (null == orderNoStr || \"\".equals(orderNoStr)) {\r\n\t\t} else {\r\n\t\t\torderNo = Integer.parseInt(orderNoStr);\r\n\t\t}\r\n\r\n\t\tList<LogisticsBean> list = ls.queryTruckRoutingByOrderNo(orderNo);\r\n\t\tfor (LogisticsBean logisticsBean : list) {\r\n\t\t\tSystem.out.println(logisticsBean);\r\n\t\t}\r\n\r\n\t\tGson gson = new Gson();\r\n\t\tString jsonString = gson.toJson(list);\r\n\r\n\t\tout.println(jsonString);\r\n\t\tout.close();\r\n\r\n\t\t// 将查询的关键字也存储起来 传递到jsp\r\n\t\t// request.setAttribute(\"logistics\", list);\r\n\r\n\t\t// 转发到页面\r\n\t\t// request.getRequestDispatcher(\"follow.jsp\").forward(request, response);\r\n\t}", "public void customerQuery(){\n }", "void queryDone(String queryId);", "<Q, R> CompletableFuture<QueryResponseMessage<R>> query( QueryMessage<Q, R> query );", "@Test\n\tpublic void execute() {\n\t\tcommand.execute(request);\n\t}", "protected void runQuery()\n throws DavException {\n if (info.getDepth() == DEPTH_0)\n return;\n \n doQuery(resource, info.getDepth() == DEPTH_INFINITY);\n }", "public abstract QueryResultIterable executeGroundingQuery(Formula formula);", "private void executeSearchQuery(JsonObject json, HttpServerResponse response) {\n database.searchQuery(json, handler -> {\n if (handler.succeeded()) {\n LOGGER.info(\"Success: Search Success\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n handler.result().toString());\n } else if (handler.failed()) {\n LOGGER.error(\"Fail: Search Fail\");\n processBackendResponse(response, handler.cause().getMessage());\n }\n });\n }", "private void query(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString name = req.getParameter(\"name\");\n\t\tString phone = req.getParameter(\"phone\");\n\t\tString address = req.getParameter(\"address\");\n\t\t\n\t\t//2. encapsulate parameters into a CriteriaCustomer object\n\t\tCriteriaCustomer cc = new CriteriaCustomer(name, address, phone);\n\t\t//3. call customerDAO.getListByCriteria() to retrieve a list of all the customers\n\t\tList<Customer> customers = customerDAO.getListByCriteria(cc);\n\t\t//4. put the list into request\n\t\treq.setAttribute(\"customers\", customers);\n\t\t//5. forward to index.jsp\n\t\treq.getRequestDispatcher(\"/index.jsp\").forward(req, resp);\n\t}", "@ActionTrigger(action=\"QUERY\")\n\t\tpublic void spriden_Query()\n\t\t{\n\t\t\t\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tclearBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tclearBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tnextBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tclearBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tpreviousBlock();\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t\tenterQuery();\n//\t\t\t\tif ( SupportClasses.SQLFORMS.FormSuccess().not() )\n//\t\t\t\t{\n//\t\t\t\t\t\n//\t\t\t\t\tthrow new ApplicationException();\n//\t\t\t\t}\n\t\t\t}", "@Override\n public void run() {\n if (checkParameters()) {\n notifyError();\n } else {\n ADRepository repository = new ADRepository(schema);\n\n List<ADEntity> entities = repository.fetchQuery(buildQuery(), getOrder());\n nofityEntitiesLoaded(processResult(entities));\n }\n }", "void execute(TimelyQuery timelyQuery, ExecuteConfig executeConfig, GraphSchema schema, long timeout, String queryId);", "QueryResponse query(SolrParams solrParams) throws SolrServerException;", "public String execute() throws DomainApiException {\n try {\n initConnection();\n if (method == POST || method == PUT) {\n sendHttpRequest(buildBody());\n }\n return readHttpResponse();\n } catch (MalformedURLException ex) {\n throw new DomainApiException(ex);\n } catch (IOException ex) {\n throw new DomainApiException(ex);\n }\n }", "public abstract Statement queryToRetrieveData();", "public void handlePostEntitiesQuery(RoutingContext routingContext) {\n LOGGER.debug(\"Info: handlePostEntitiesQuery method started.\");\n HttpServerRequest request = routingContext.request();\n JsonObject requestJson = routingContext.getBodyAsJson();\n LOGGER.debug(\"Info: request Json :: ;\" + requestJson);\n HttpServerResponse response = routingContext.response();\n MultiMap headerParams = request.headers();\n // validate request parameters\n Future<Boolean> validationResult = validator.validate(requestJson);\n validationResult.onComplete(validationHandler -> {\n if (validationHandler.succeeded()) {\n // parse query params\n NGSILDQueryParams ngsildquery = new NGSILDQueryParams(requestJson);\n QueryMapper queryMapper = new QueryMapper();\n JsonObject json = queryMapper.toJson(ngsildquery, requestJson.containsKey(\"temporalQ\"));\n Future<List<String>> filtersFuture =\n catalogueService.getApplicableFilters(json.getJsonArray(\"id\").getString(0));\n String instanceID = request.getHeader(HEADER_HOST);\n json.put(JSON_INSTANCEID, instanceID);\n requestJson.put(\"ids\", json.getJsonArray(\"id\"));\n LOGGER.debug(\"Info: IUDX query json : ;\" + json);\n filtersFuture.onComplete(filtersHandler -> {\n if (filtersHandler.succeeded()) {\n json.put(\"applicableFilters\", filtersHandler.result());\n if (json.containsKey(IUDXQUERY_OPTIONS)\n && JSON_COUNT.equalsIgnoreCase(json.getString(IUDXQUERY_OPTIONS))) {\n executeCountQuery(json, response);\n } else {\n executeSearchQuery(json, response);\n }\n } else {\n LOGGER.error(\"catalogue item/group doesn't have filters.\");\n }\n });\n } else if (validationHandler.failed()) {\n LOGGER.error(\"Fail: Bad request\");\n handleResponse(response, ResponseType.BadRequestData,\n validationHandler.cause().getMessage());\n }\n });\n }", "public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}", "public IOgcResponse executeRequest(Map<String, String> params);", "public abstract void callback_query(CallbackQuery cq);", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public ResultSet executeQuery(String query) {\n ResultSet rs = null;\n \ttry {\n rs = st.executeQuery(query);\n } catch(Exception e) {\n \te.printStackTrace();\n }\n return rs;\n }", "@SuppressWarnings(\"unchecked\")\n public void execute() {\n execute(null, null);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate CompoundQuery handleQuery() throws Exception{\n\t\tif (this.resultant != null && this.resultant.getResultsContainer() != null){\n\t\t\t//compoundQuery = (CompoundQuery) resultant.getAssociatedQuery();\n\t\t\tViewable view = newCompoundQuery.getAssociatedView();\n\t\t\tResultsContainer resultsContainer = this.resultant.getResultsContainer();\n\t\t\tsampleCrit = null;\n\t Collection sampleIDs = new ArrayList(); \n\t\t\t//Get the samples from the resultset object\n\t\t\tif(resultsContainer!= null){\n\t\t\t\tCollection samples = null;\n\t\t\t\tif(resultsContainer != null &&resultsContainer instanceof DimensionalViewContainer){\t\t\t\t\n\t\t\t\t\tDimensionalViewContainer dimensionalViewContainer = (DimensionalViewContainer)resultsContainer;\n\t\t\t\t\t\tCopyNumberSingleViewResultsContainer copyNumberSingleViewContainer = dimensionalViewContainer.getCopyNumberSingleViewContainer();\n\t\t\t\t\t\tGeneExprSingleViewResultsContainer geneExprSingleViewContainer = dimensionalViewContainer.getGeneExprSingleViewContainer();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(copyNumberSingleViewContainer!= null){\n\t\t\t\t\t\t\tSet<BioSpecimenIdentifierDE> biospecimenIDs = copyNumberSingleViewContainer.getAllBiospecimenLabels();\n\t\t\t\t \t\tfor (BioSpecimenIdentifierDE bioSpecimen: biospecimenIDs) {\n\t\t\t\t \t\t\tif(bioSpecimen.getSpecimenName()!= null){\n\t\t\t\t \t\t\t\tsampleIDs.add(new SampleIDDE(bioSpecimen.getSpecimenName()));\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(geneExprSingleViewContainer!= null){\n\t\t\t\t\t\t\tSet<BioSpecimenIdentifierDE> biospecimenIDs = geneExprSingleViewContainer.getAllBiospecimenLabels();\n\t\t\t\t \t\tfor (BioSpecimenIdentifierDE bioSpecimen: biospecimenIDs) {\n\t\t\t\t \t\t\tif(bioSpecimen.getSpecimenName()!= null){\n\t\t\t\t \t\t\t\t\tsampleIDs.add(new SampleIDDE(bioSpecimen.getSpecimenName()));\n\t\t\t\t \t\t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t \t\tsampleCrit = new SampleCriteria();\n\t\t \t\t\tsampleCrit.setSampleIDs(sampleIDs);\n\n AddConstrainsToQueriesHelper constrainedSamplesHandler= new AddConstrainsToQueriesHelper();\n constrainedSamplesHandler.constrainQueryWithSamples(newCompoundQuery,sampleCrit);\n\t\t\t\tnewCompoundQuery = getShowAllValuesQuery(newCompoundQuery);\n\t\t\t\tnewCompoundQuery.setAssociatedView(view);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn newCompoundQuery;\n\t\t}", "public void run() {\n List<Map> queries = (List<Map>) server.get(\"queries\");\n Connection connection = null;\n if (queries != null && !queries.isEmpty()) {\n String dbServerDisplayName = (String) server.get(\"displayName\");\n try {\n long timeBeforeConnection = System.currentTimeMillis();\n connection = getConnection();\n long timeAfterConnection = System.currentTimeMillis();\n logger.debug(\"Time taken to get Connection: \" + (timeAfterConnection - timeBeforeConnection));\n\n logger.debug(\"Time taken to get Connection for \" + dbServerDisplayName + \" : \" + (timeAfterConnection - timeBeforeConnection));\n\n if (connection != null) {\n logger.debug(\" Connection successful for server: \" + dbServerDisplayName);\n for (Map query : queries)\n executeQuery(connection, query);\n } else {\n\n logger.debug(\"Null Connection returned for server: \" + dbServerDisplayName);\n }\n\n } catch (SQLException e) {\n logger.error(\"Error Opening connection\", e);\n status = false;\n } catch (ClassNotFoundException e) {\n logger.error(\"Class not found while opening connection\", e);\n status = false;\n } catch (Exception e) {\n logger.error(\"Error collecting metrics for \"+dbServerDisplayName, e);\n status = false;\n }\n finally {\n try {\n if (connection != null) {\n closeConnection(connection);\n }\n } catch (Exception e) {\n logger.error(\"Issue closing the connection\", e);\n }\n }\n }\n }", "void queryPoint(JsonObject query, Handler<AsyncResult<JsonArray>> resultHandler);", "void execute(TimelyQuery timelyQuery, GraphSchema schema, long timeout, String queryId);", "@Override\r\n\tpublic String call() throws Exception {\n\t\tSystem.out.println(\"开始query\");\r\n\t\tThread.sleep(2000);\r\n\t\tString result = this.query + \"处理结束\";\r\n\t\treturn result;\r\n\t}", "@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}", "@Override\n\t\tpublic void execute() {\n\t\t\tsuper.execute();\n\t\t\ttry {\n\t\t\t\tString select;\n\t\t\t\tif (tokenData.isRtb4FreeSuperUser()) \n\t\t\t\t\tselect = \"select * from rtb_standards\";\n\t\t\t\telse\n\t\t\t\t\tselect = \"select * from rtb_standards where customer_id='\"+tokenData.customer+\"'\";\n\t\t\t\tvar conn = CrosstalkConfig.getInstance().getConnection();\n\t\t\t\tvar stmt = conn.createStatement();\n\t\t\t\tvar prep = conn.prepareStatement(select);\n\t\t\t\tResultSet rs = prep.executeQuery();\n\t\t\t\t\n\t\t\t\trules = convertToJson(rs); \n\t\t\t\t\t\t\t\n\t\t\t\treturn;\n\t\t\t} catch (Exception err) {\n\t\t\t\terr.printStackTrace();\n\t\t\t\terror = true;\n\t\t\t\tmessage = err.toString();\n\t\t\t}\n\t\t\tmessage = \"Timed out\";\n\t\t}", "private void querys() {\n\t try {\r\n\t\tBoxYieldRptFactory.getRemoteInstance().SteDate();\r\n\t } catch (EASBizException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t } catch (BOSException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t }\r\n\t}", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "public abstract String createQuery();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "private QueryResponse getQueryResponse(RequestInfo qryRequestInfo) throws DefectException{\r\n\t\t\r\n\t\tif(CommonUtil.isNull(qryRequestInfo)){\r\n\t\t\tlog.error(\"failed to make query request, Query Request Info-\" + qryRequestInfo);\r\n \tthrow new DefectException(\"failed to make query request, required query request info is missing\");\r\n\t\t}\r\n\t\t\r\n\t\t// Request type can be User,defect etc.\r\n\t\tQueryRequest qryRequest = new QueryRequest(qryRequestInfo.getRequestType());\r\n\t\t\r\n\t\tlog.info(\"Request Type : \" + qryRequestInfo.getRequestType());\r\n\t\t\r\n\t\tqryRequest.setFetch(new Fetch(qryRequestInfo.getFetch()));\r\n\t\ttry{\r\n\t\t\tif(qryRequestInfo.getQueryFilter() != null){\r\n\t\t\t\tQueryFilter qfilter = null;\r\n\t\t\t\tArrayList<String> filterList = qryRequestInfo.getQueryFilter();\r\n\t\t\t\tif(!filterList.isEmpty() && filterList.size() >= 3){\r\n\t\t\t\t\tif((filterList.get(2)==null)||(filterList.get(2).length() ==0)){\r\n\t\t\t\t\t\tfilterList.set(2,\"null\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tqfilter = new QueryFilter(filterList.get(0), filterList.get(1), filterList.get(2));\r\n\t\t\t\t\tfor(int i=3;i+3<filterList.size();i=i+4){\r\n\t\t\t\t\t\tif(filterList.get(i) == \"AND\"){\r\n\t\t\t\t\t\t\tqfilter = QueryFilter.and(qfilter, new QueryFilter(filterList.get(i + 1), filterList.get(i + 2), filterList.get(i + 3)));\r\n\t\t\t\t\t\t}else if(filterList.get(i) == \"OR\"){\r\n\t\t\t\t\t\t\tqfilter = QueryFilter.or(qfilter, new QueryFilter(filterList.get(i + 1), filterList.get(i + 2), filterList.get(i + 3)));\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tthrow new DefectException(\"Invalid query filter string.\");\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\tqryRequest.setQueryFilter(qfilter);\r\n\t\t\t}\r\n\t\t}catch(IndexOutOfBoundsException e){\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t}catch(NullPointerException e){\r\n\t\t\tlog.error(e.getMessage());\r\n\t\t}\r\n\t\tif(qryRequestInfo.getQueryOrder() != null){\r\n\t\t\tqryRequest.setOrder(convertMapToString(qryRequestInfo.getQueryOrder()));\r\n\t\t}\r\n\t\r\n\t\tif(qryRequestInfo.getPageSize() != -1)\r\n\t\t\tqryRequest.setPageSize(qryRequestInfo.getPageSize());\r\n\t\t\t\r\n\t\tif(qryRequestInfo.getLimit() != -1)\t\t\t\r\n\t\t\tqryRequest.setPageSize(qryRequestInfo.getLimit());\r\n\t\t\r\n\t\tQueryResponse qryResponse = null;\r\n\t\ttry {\r\n\t\t\tqryResponse = restApi.query(qryRequest);\r\n\t\t} catch (IOException e) {\r\n\t\t\tlog.error(\"failed to query , message : \" + e.toString() + \" Query Response -\" + qryResponse);\r\n \tthrow new DefectException(\"failed to query , message : \" + e.toString());\r\n\t\t}\r\n\t\t\r\n\t\treturn qryResponse;\r\n\t}", "public String execute() throws SQLException {\n try { \n results = postDBSearcher.searchSpecific(title, class_num, class_name, school);\n\n //If the search does not find any results tries the partial search\n if (results.isEmpty()){\n results = postDBSearcher.searchPartiallyGeneral(title, class_num, class_name, school);\n }\n\n //If the partial search did not find anything, then it tries to make a general search\n if (results.isEmpty()){\n results = postDBSearcher.searchGeneral(title, class_num, class_name, school);\n }\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n return SUCCESS;\n }", "@Override\n\tpublic final Iterable<R> execute() {\n\t\t\n\t\treturn new Iterable<R>() {\n\t\t\t\n\t\t\t@Override \n\t\t\tpublic Iterator<R> iterator() {\n\t\t\t\t\n\t\t\t\treturn AbstractMultiQuery.this.iterator();\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\t\n\t}", "SearchResponse query(SearchRequest request, Map<SearchParam, String> params);", "public abstract ResultSet execute(String request, OrmActions action)\r\n\t throws OrmException;", "void contactQueryResult(String queryId, Contact contact);", "public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected void execute() {\r\n }", "@Override\n\tpublic void queryData() {\n\t\t\n\t}", "protected abstract void onQueryStart();", "abstract public void onQueryRequestArrived(ClientQueryRequest request);", "public abstract IStatus performQuery(AbstractRepositoryQuery query, TaskRepository repository,\n \t\t\tIProgressMonitor monitor, ITaskCollector resultCollector);", "IQuery getQuery();", "protected void execute() {}", "public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }", "public ResultSet executeQuery(String query)\n\t{\n\t\tStatement statement = null;\n\t\tResultSet resultSet = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\t//System.out.println(\"Performing query: \" + query);\n\t\t\tstatement = getConnection().createStatement();\n\t\t\tresultSet = statement.executeQuery(query);\n\t\t\t//System.out.println(\"Query performed\");\n\t\t\t\n\t\t\treturn resultSet;\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "private void executeQuery(QueryDobj queryDobj, Query query,\n DataView dataView)\n throws IOException, ServletException, DataSourceException\n {\n Util.argCheckNull(query);\n Util.argCheckNull(dataView);\n\n // perform the query\n DataViewDataSource dvds = MdnDataManager.getDataViewDS();\n RecordSet rs = dvds.select(query, dataView);\n\n // create a PagedSelectDelegate and set it into the UserState\n PagedSelectDelegate psd = new PagedSelectDelegate(rs, queryDobj.getId());\n getUserState().setPagedQuery(getUserState().getCurrentMenuActionId(), psd);\n\n // delegate to PagedSelectDelegate to display the list\n delegate(psd);\n }", "public void execute() {\n\n\t}", "public void callQuery(String query) throws SQLException {\n for(int i = 0; i < queryHistory.size(); i++) {\n if(queryHistory.get(i).equalsIgnoreCase(query))\n data.get(i).OUPUTQUERY(data.get(i).getConversionArray(), data.get(i).getResultSet());\n }\n }" ]
[ "0.739658", "0.73930687", "0.69805145", "0.66969556", "0.6684769", "0.66833085", "0.6638492", "0.660706", "0.6599127", "0.65791476", "0.65762424", "0.65603375", "0.64990896", "0.63481313", "0.6310729", "0.6183903", "0.6169165", "0.6159562", "0.61511946", "0.61251706", "0.61024356", "0.60707736", "0.60566133", "0.6047769", "0.6038455", "0.60358524", "0.6030522", "0.5998732", "0.597786", "0.59561366", "0.5954851", "0.59486884", "0.59486884", "0.5943406", "0.5917597", "0.59098226", "0.5893642", "0.5889045", "0.588745", "0.587193", "0.58689725", "0.5864613", "0.5864195", "0.5863761", "0.5851195", "0.5820959", "0.58166516", "0.5816414", "0.58157617", "0.58079404", "0.5794523", "0.5793304", "0.57824147", "0.57801366", "0.57798576", "0.5773536", "0.5766273", "0.5764688", "0.5764688", "0.5764688", "0.5753231", "0.5744302", "0.5741982", "0.57303333", "0.5726913", "0.57237494", "0.5711234", "0.57108366", "0.570766", "0.5704466", "0.57025886", "0.57025886", "0.57025886", "0.57025886", "0.57003325", "0.5696389", "0.5696389", "0.5696389", "0.5696389", "0.5696389", "0.5696389", "0.5696389", "0.5687039", "0.56837183", "0.56796235", "0.56759006", "0.5673492", "0.56686854", "0.5666846", "0.56622726", "0.56585735", "0.5647609", "0.56390655", "0.56366575", "0.563548", "0.56347084", "0.56298226", "0.56278014", "0.562591", "0.5620345", "0.5617392" ]
0.0
-1
class that contains all the building blocks for the swing frontend, contains all the action listeners and the event listeners
public static void main(String[] args) { f = new JFrame("Conversion Application"); f.setDefaultCloseOperation(f.EXIT_ON_CLOSE); Frontend s = new Frontend(); f.setLayout(new GridBagLayout()); String s1[] = {"Football Co.", "Maple Co."}; c1 = new JComboBox<String>(s1); b1 = new JButton("Get File"); b2 = new JButton("Get Delimiter #s and move to queue"); b2.setEnabled(false); b3 = new JButton("Choose Location for file"); b3.setEnabled(false); tf1= new JTextField(); tf1.setEditable(false); b4 = new JButton("Print File"); b4.setEnabled(false); c1.addItemListener(s); b1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { if (c1.getSelectedItem() == "Football Co.") { reader.setUrl("https://raw.githubusercontent.com/MeyerDevelopment/FinalProject/master/FootballCo15_GL2008.csv"); try { reader.main(args); } catch (IOException e1) { e1.addSuppressed(e1); } }else { reader.setUrl("https://raw.githubusercontent.com/MeyerDevelopment/FinalProject/master/MapleCo01GL_2008.csv"); try { reader.main(args); b1.setEnabled(false); } catch (IOException e1) { e1.printStackTrace(); } } } }); b2.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ListToQueue.insertToPQ(); } }); b3.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JFileChooser fileChooser = new JFileChooser(); fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY); fileChooser.setAcceptAllFileFilterUsed(false); int rVal = fileChooser.showOpenDialog(null); if (rVal == JFileChooser.APPROVE_OPTION) { tf1.setText(fileChooser.getSelectedFile().toString()); ListToQueue.filePath = tf1.getText(); Frontend.b3.setEnabled(false); Frontend.b4.setEnabled(true); } } }); b4.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { try { ListToQueue.writeToFile(); } catch (IOException e1) { e1.printStackTrace(); } } }); l = new JLabel("Select File to convert:"); l1 = new JLabel("Football Co. selected"); l.setForeground(Color.red); l1.setForeground(Color.blue); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p,BoxLayout.Y_AXIS)); p.add(l); p.add(c1); p.add(l1); p.add(b1); p.add(b2); p.add(b3); p.add(tf1); p.add(b4); f.add(p); f.setSize(700, 600); f.setLocationRelativeTo(null); f.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponents() {\n\n\t\texitMenuItem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}\n\t\t});\n\n\t\tnewTaskMenuItem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tTaskAdditionPanel tap = new TaskAdditionPanel();\n\t\t\t\ttap.register(self);\n\t\t\t\tCustomJFrame frame = new CustomJFrame(\"Add New Tasks\", false);\n\t\t\t\tframe.add(tap);\n\t\t\t}\n\t\t});\n\n\t\tnewSubTaskMenuItem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSubTaskAdditionPanel stap = new SubTaskAdditionPanel();\n\t\t\t\tstap.register(self);\n\t\t\t\tCustomJFrame frame = new CustomJFrame(\"Add New Sub Tasks\", false);\n\t\t\t\tframe.add(stap);\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tnewTimeMenuItem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tTimeAdditionPanel tap = new TimeAdditionPanel();\n\t\t\t\ttap.register(self);\n\t\t\t\tCustomJFrame frame = new CustomJFrame(\"Add New Times\", false);\n\t\t\t\tframe.add(tap);\n\n\t\t\t}\n\t\t});\n\n\t\tdeleteTaskMenuItem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tTaskDeletionPanel tdp = new TaskDeletionPanel();\n\t\t\t\ttdp.register(self);\n\t\t\t\tCustomJFrame frame = new CustomJFrame(\"Delete Tasks\", false);\n\t\t\t\tframe.add(tdp);\n\t\t\t}\n\t\t});\n\n\t\tdeleteSubTaskMenuItem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSubTaskDeletionPanel stdp = new SubTaskDeletionPanel();\n\t\t\t\tstdp.register(self);\n\t\t\t\tCustomJFrame frame = new CustomJFrame(\"Delete Sub Tasks\", false);\n\t\t\t\tframe.add(stdp);\n\n\t\t\t}\n\t\t});\n\t\tdeleteSubTaskTimeMenuItem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tTimeDeletionPanel tdp = new TimeDeletionPanel();\n\t\t\t\ttdp.register(self);\n\t\t\t\tCustomJFrame frame = new CustomJFrame(\"Delete Time\", false);\n\t\t\t\tframe.add(tdp);\n\n\t\t\t}\n\t\t});\n\n\t\tviewTimesSubTaskMenuItem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSubTaskTimeReportGenerationPanel tdp = new SubTaskTimeReportGenerationPanel();\n\n\t\t\t\tCustomJFrame frame = new CustomJFrame(\"Generate Time Card for SubTask\", false);\n\t\t\t\tframe.add(tdp);\n\n\t\t\t}\n\t\t});\n\n\t\tviewTimesTaskMenuItem.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tTaskTimeReportGenerationPanel tdp = new TaskTimeReportGenerationPanel();\n\n\t\t\t\tCustomJFrame frame = new CustomJFrame(\"Generate Time Card for Task\", false);\n\t\t\t\tframe.add(tdp);\n\n\t\t\t}\n\t\t});\n\n\t}", "private void componentsListeners() {\r\n\t\t// NIFs\r\n\t\tbtnRefrescarnifs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcb_nifCliente.setModel(new DefaultComboBoxModel(ContenedorPrincipal.getContenedorPrincipal().getContenedorClientes().getNifs()));\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Clientes\r\n\t\tbtnClientes.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarClientes();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Reparaciones\r\n\t\tbtnRepararVehvulo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarReparaciones();\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Anterior vehiculo\r\n\t\tbuttonLeftArrow.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (!Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarLeftArrow();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Siguiente vehiculo\r\n\t\tbuttonRightArrow.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (!Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarRightArrow();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Atras\r\n\t\tbtnAtrs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarAtras();\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Guarda el vehiculo\r\n\t\tbtnGuardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tif (Constantes.MODO_CREAR) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tcontroladorVehiculos.guardarVehiculo();\r\n\t\t\t\t\t} catch (NumberFormatException e1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Hay campos vacios\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t} catch (Exception e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Algo ha ido mal\", \"Error\", JOptionPane.ERROR_MESSAGE);\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\t// Borra el vehículo\r\n\t\tbtnBorrarVehiculo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tif (Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarBorrarVehiculo();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public interface GUI {\n\n /**\n * Adds a MouseListener to the GUI.\n * @param mouseListener added to the GUI.\n */\n void addMouseListener(MouseListener mouseListener);\n\n /**\n * Get list link button for other GUIs. \n * @return List of ButtonLink\n */\n List<ButtonLink> getBtnActionLinks();\n\n /**\n * Sets the link identifier of the GUI.\n * @param linkActionGUI link identifier.\n */\n void setMainAction(LinkActionGUI linkActionGUI);\n\n /**\n * Set the boundaries from a rectangle.\n * @param rectangle for borders.\n */\n void setBounds(Rectangle rectangle);\n\n /**\n * Set visibility of the GUI.\n * @param visible for visibility.\n */\n void setVisible(boolean visible);\n\n /**\n * Set background image.\n * @param path of image.\n */\n void setImageBackground(String path);\n\n /**\n * Set the border color and thickness.\n * @param color for border.\n * @param thickness for border.\n */\n void setBorder(Color color, int thickness);\n\n /**\n * Set visibility of the foreground panel of the GUI.\n * @param visible for visibility panel.\n */\n void setVisibleGlassPanel(Visibility visible);\n\n /**\n * Close the GUI and destroyed JFrame.\n */\n void close();\n\n}", "private void initComponents() {\n\t\tlabel1 = new JLabel();\r\n\t\ttextField1 = new JTextField();\r\n\t\tlabel2 = new JLabel();\r\n\t\ttextField2 = new JTextField();\r\n\t\tpanel1 = new JPanel();\r\n\t\tbutton1 = new JButton();\r\n\t\taction1 = new AbstractAction();\r\n\r\n\t\t//======== this ========\r\n\r\n\t\t// JFormDesigner evaluation mark\r\n\t\tsetBorder(new javax.swing.border.CompoundBorder(\r\n\t\t\tnew javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),\r\n\t\t\t\t\"JFormDesigner Evaluation\", javax.swing.border.TitledBorder.CENTER,\r\n\t\t\t\tjavax.swing.border.TitledBorder.BOTTOM, new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12),\r\n\t\t\t\tjava.awt.Color.red), getBorder())); addPropertyChangeListener(new java.beans.PropertyChangeListener(){public void propertyChange(java.beans.PropertyChangeEvent e){if(\"border\".equals(e.getPropertyName()))throw new RuntimeException();}});\r\n\r\n\t\tsetLayout(new MigLayout(\r\n\t\t\t\"hidemode 3\",\r\n\t\t\t// columns\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\" +\r\n\t\t\t\"[fill]\",\r\n\t\t\t// rows\r\n\t\t\t\"[]\" +\r\n\t\t\t\"[]\" +\r\n\t\t\t\"[]\" +\r\n\t\t\t\"[]\" +\r\n\t\t\t\"[]\" +\r\n\t\t\t\"[]\" +\r\n\t\t\t\"[]\"));\r\n\r\n\t\t//---- label1 ----\r\n\t\tlabel1.setText(\"Username\");\r\n\t\tadd(label1, \"cell 2 1 3 1\");\r\n\t\tadd(textField1, \"cell 5 1 4 1\");\r\n\r\n\t\t//---- label2 ----\r\n\t\tlabel2.setText(\"Password\");\r\n\t\tadd(label2, \"cell 2 3\");\r\n\t\tadd(textField2, \"cell 5 3 4 1\");\r\n\r\n\t\t//======== panel1 ========\r\n\t\t{\r\n\t\t\tpanel1.setLayout(new MigLayout(\r\n\t\t\t\t\"hidemode 3\",\r\n\t\t\t\t// columns\r\n\t\t\t\t\"[fill]\",\r\n\t\t\t\t// rows\r\n\t\t\t\t\"[]\"));\r\n\r\n\t\t\t//---- button1 ----\r\n\t\t\tbutton1.setText(\"Submit\");\r\n\t\t\tbutton1.addMouseListener(new MouseAdapter() {\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\tbutton1MouseClicked(e);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbutton1.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tbutton1ActionPerformed(e);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tpanel1.add(button1, \"cell 0 0\");\r\n\t\t}\r\n\t\tadd(panel1, \"cell 4 6\");\r\n\t\t// JFormDesigner - End of component initialization //GEN-END:initComponents\r\n\t}", "private void initComponents() {\n\n jButtonGroupTools = new javax.swing.ButtonGroup();\n jButtonGroupFill = new javax.swing.ButtonGroup();\n jSeparator2 = new javax.swing.JSeparator();\n jToolBarTools = new javax.swing.JToolBar();\n jButtonNew = new javax.swing.JButton();\n jButtonOpen = new javax.swing.JButton();\n jButtonSave = new javax.swing.JButton();\n jButtonDuplicate = new javax.swing.JButton();\n jSeparator3 = new javax.swing.JToolBar.Separator();\n jToggleButtonPoint = new javax.swing.JToggleButton();\n jToggleButtonLine = new javax.swing.JToggleButton();\n jToggleButtonRectangle = new javax.swing.JToggleButton();\n jToggleButtonRoundRectangle = new javax.swing.JToggleButton();\n jToggleButtonArc = new javax.swing.JButton();\n jToggleButtonCurve = new javax.swing.JToggleButton();\n jToggleButtonPolyline = new javax.swing.JToggleButton();\n jToggleButtonPolygon = new javax.swing.JToggleButton();\n jToggleButtonEllipse = new javax.swing.JToggleButton();\n jToggleButtonMove = new javax.swing.JToggleButton();\n jToggleButtonText = new javax.swing.JToggleButton();\n jSeparator10 = new javax.swing.JToolBar.Separator();\n jButtonFont = new javax.swing.JButton();\n jSeparator4 = new javax.swing.JToolBar.Separator();\n jButtonColorChooserFront = new UI.ColorChooserButton(Color.BLACK);\n jButtonColorChooserBack = new UI.ColorChooserButton(Color.WHITE);\n jSeparator5 = new javax.swing.JToolBar.Separator();\n jPanelStroke = new UI.StrokeChooserComboBox();\n jSpinnerStroke = new javax.swing.JSpinner();\n jSeparator8 = new javax.swing.JToolBar.Separator();\n jToggleButtonNoFill = new javax.swing.JToggleButton();\n jToggleButtonSolidFill = new javax.swing.JToggleButton();\n jToggleButtonHorizontalFill = new javax.swing.JToggleButton();\n jToggleButtonVerticalFill = new javax.swing.JToggleButton();\n jToggleButtonRadialFill = new javax.swing.JToggleButton();\n jToggleButtonDiagonal1Fill = new javax.swing.JToggleButton();\n jToggleButtonDiagonal2Fill = new javax.swing.JToggleButton();\n jSeparator9 = new javax.swing.JToolBar.Separator();\n jToggleButtonAntialiasing = new javax.swing.JToggleButton();\n jSliderAlpha = new javax.swing.JSlider();\n jSeparator6 = new javax.swing.JToolBar.Separator();\n jToggleButtonRecord = new javax.swing.JToggleButton();\n jLabelRecordTime = new javax.swing.JLabel();\n jSeparator7 = new javax.swing.JToolBar.Separator();\n jButtonWebCam = new javax.swing.JButton();\n jButtonSnapShot = new javax.swing.JButton();\n jPanelCenter = new javax.swing.JPanel();\n jSplitPane1 = new javax.swing.JSplitPane();\n desktop = new javax.swing.JDesktopPane();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jListShapes = new javax.swing.JList<String>();\n jPanel2 = new javax.swing.JPanel();\n jButtonMoveUp = new javax.swing.JButton();\n jButtonMoveDown = new javax.swing.JButton();\n jToolBarImage = new javax.swing.JToolBar();\n jPanelImageBrightness = new javax.swing.JPanel();\n jSliderBrightness = new javax.swing.JSlider();\n jPanelImageFilter = new javax.swing.JPanel();\n jComboBoxFilter = new javax.swing.JComboBox<String>();\n jPanelImageContrast = new javax.swing.JPanel();\n jButtonConstrast = new javax.swing.JButton();\n jButtonConstrastBright = new javax.swing.JButton();\n jButtonContrastDark = new javax.swing.JButton();\n jPanelImageOperations = new javax.swing.JPanel();\n jButtonSinus = new javax.swing.JButton();\n jButtonSepia = new javax.swing.JButton();\n jButtonSobel = new javax.swing.JButton();\n jButtonTinted = new javax.swing.JButton();\n jButtonNegative = new javax.swing.JButton();\n jButtonGrayScale = new javax.swing.JButton();\n jButtonRandomBlack = new javax.swing.JButton();\n jPanelImageBinary = new javax.swing.JPanel();\n jButtonBinaryAdd = new javax.swing.JButton();\n jButtonBinarySubstract = new javax.swing.JButton();\n jButtonBinaryProduct = new javax.swing.JButton();\n jSliderBinaryOperations = new javax.swing.JSlider();\n jPanelUmbralization = new javax.swing.JPanel();\n jSliderUmbralization = new javax.swing.JSlider();\n jPanelStatusBar = new javax.swing.JPanel();\n jToolBarImageRotation = new javax.swing.JToolBar();\n jPanelImageRotate = new javax.swing.JPanel();\n jSliderRotate = new javax.swing.JSlider();\n jButtonRotate90 = new javax.swing.JButton();\n jButton180 = new javax.swing.JButton();\n jButtonRotate270 = new javax.swing.JButton();\n jPanelZoom = new javax.swing.JPanel();\n jButtonZoomMinus = new javax.swing.JButton();\n jButtonZoomPlus = new javax.swing.JButton();\n jStatusBarTool = new javax.swing.JLabel();\n jPanelCursorAndColor = new javax.swing.JPanel();\n jStatusBarCursor = new javax.swing.JLabel();\n jStatusBarColor = new javax.swing.JLabel();\n jMenuBar = new javax.swing.JMenuBar();\n jMenuFile = new javax.swing.JMenu();\n jMenuItemNew = new javax.swing.JMenuItem();\n jMenuOpen = new javax.swing.JMenuItem();\n jMenuSave = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n jMenuItemExit = new javax.swing.JMenuItem();\n jMenuEdit = new javax.swing.JMenu();\n jMenuItemCut = new javax.swing.JMenuItem();\n jMenuItemCopy = new javax.swing.JMenuItem();\n jMenuItemPaste = new javax.swing.JMenuItem();\n jMenuView = new javax.swing.JMenu();\n jCheckBoxMenuItemToolBar = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItemToolBarImageOperations = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItemToolBarImageRotation = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItemStatusBar = new javax.swing.JCheckBoxMenuItem();\n jMenuImage = new javax.swing.JMenu();\n jMenuItemChangeSize = new javax.swing.JMenuItem();\n jMenuItemDuplicateImage = new javax.swing.JMenuItem();\n jMenuItemHistogram = new javax.swing.JMenuItem();\n jMenuHelp = new javax.swing.JMenu();\n jMenuItemHelpAbout = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(600, 500));\n\n jToolBarTools.setRollover(true);\n\n jButtonNew.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_new.png\"))); // NOI18N\n jButtonNew.setToolTipText(\"Nueva imagen\");\n jButtonNew.setFocusable(false);\n jButtonNew.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonNew.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonNew.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonNewActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonNew);\n\n jButtonOpen.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_open.png\"))); // NOI18N\n jButtonOpen.setToolTipText(\"Abrir\");\n jButtonOpen.setFocusable(false);\n jButtonOpen.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonOpen.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonOpen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonOpenActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonOpen);\n\n jButtonSave.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_save.png\"))); // NOI18N\n jButtonSave.setToolTipText(\"Guardar\");\n jButtonSave.setFocusable(false);\n jButtonSave.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSaveActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonSave);\n\n jButtonDuplicate.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_duplicate.png\"))); // NOI18N\n jButtonDuplicate.setToolTipText(\"Duplicar\");\n jButtonDuplicate.setFocusable(false);\n jButtonDuplicate.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonDuplicate.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonDuplicate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonDuplicateActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonDuplicate);\n jToolBarTools.add(jSeparator3);\n\n jButtonGroupTools.add(jToggleButtonPoint);\n jToggleButtonPoint.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_pencil.png\"))); // NOI18N\n jToggleButtonPoint.setSelected(true);\n jToggleButtonPoint.setToolTipText(\"Punto\");\n jToggleButtonPoint.setFocusable(false);\n jToggleButtonPoint.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonPoint.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonPoint.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonPointActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonPoint);\n\n jButtonGroupTools.add(jToggleButtonLine);\n jToggleButtonLine.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_line.png\"))); // NOI18N\n jToggleButtonLine.setToolTipText(\"Linea\");\n jToggleButtonLine.setFocusable(false);\n jToggleButtonLine.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonLine.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonLine.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonLineActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonLine);\n\n jButtonGroupTools.add(jToggleButtonRectangle);\n jToggleButtonRectangle.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_rectangle.png\"))); // NOI18N\n jToggleButtonRectangle.setToolTipText(\"Rectangulo\");\n jToggleButtonRectangle.setFocusable(false);\n jToggleButtonRectangle.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonRectangle.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonRectangle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonRectangleActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonRectangle);\n\n jButtonGroupTools.add(jToggleButtonRoundRectangle);\n jToggleButtonRoundRectangle.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_roundrectangle.png\"))); // NOI18N\n jToggleButtonRoundRectangle.setToolTipText(\"Rectangulo redondeado\");\n jToggleButtonRoundRectangle.setFocusable(false);\n jToggleButtonRoundRectangle.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonRoundRectangle.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonRoundRectangle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonRoundRectangleActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonRoundRectangle);\n\n jToggleButtonArc.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_arc.png\"))); // NOI18N\n jToggleButtonArc.setToolTipText(\"Arco\");\n jButtonGroupTools.add(jToggleButtonArc);\n jToggleButtonArc.setFocusable(false);\n jToggleButtonArc.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonArc.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonArc.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonArcActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonArc);\n\n jButtonGroupTools.add(jToggleButtonCurve);\n jToggleButtonCurve.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_curve.png\"))); // NOI18N\n jToggleButtonCurve.setToolTipText(\"Curva\");\n jToggleButtonCurve.setFocusable(false);\n jToggleButtonCurve.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonCurve.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonCurve.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonCurveActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonCurve);\n\n jButtonGroupTools.add(jToggleButtonPolyline);\n jToggleButtonPolyline.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_polygon.png\"))); // NOI18N\n jToggleButtonPolyline.setToolTipText(\"Polilínea\");\n jToggleButtonPolyline.setFocusable(false);\n jToggleButtonPolyline.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonPolyline.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonPolyline.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonPolylineActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonPolyline);\n\n jButtonGroupTools.add(jToggleButtonPolygon);\n jToggleButtonPolygon.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_polygon.png\"))); // NOI18N\n jToggleButtonPolygon.setToolTipText(\"Poligono\");\n jToggleButtonPolygon.setFocusable(false);\n jToggleButtonPolygon.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonPolygon.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonPolygon.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonPolygonActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonPolygon);\n\n jButtonGroupTools.add(jToggleButtonEllipse);\n jToggleButtonEllipse.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_ellipse.png\"))); // NOI18N\n jToggleButtonEllipse.setToolTipText(\"Elipse\");\n jToggleButtonEllipse.setFocusable(false);\n jToggleButtonEllipse.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonEllipse.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonEllipse.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonEllipseActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonEllipse);\n\n jButtonGroupTools.add(jToggleButtonMove);\n jToggleButtonMove.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_move.png\"))); // NOI18N\n jToggleButtonMove.setToolTipText(\"Mover\");\n jToggleButtonMove.setFocusable(false);\n jToggleButtonMove.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonMove.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonMove.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonMoveActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonMove);\n\n jButtonGroupTools.add(jToggleButtonText);\n jToggleButtonText.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_text.png\"))); // NOI18N\n jToggleButtonText.setToolTipText(\"Texto\");\n jToggleButtonText.setFocusable(false);\n jToggleButtonText.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonText.setPreferredSize(new java.awt.Dimension(24, 24));\n jToggleButtonText.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonText.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonTextActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonText);\n jToolBarTools.add(jSeparator10);\n\n jButtonFont.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_font.png\"))); // NOI18N\n jButtonFont.setToolTipText(\"Fuente\");\n jButtonFont.setFocusable(false);\n jButtonFont.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonFont.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonFont.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonFont.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonFontActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonFont);\n jToolBarTools.add(jSeparator4);\n\n jButtonColorChooserFront.setToolTipText(\"Color de borde\");\n jButtonColorChooserFront.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtonColorChooserFront.setBorderPainted(false);\n jButtonColorChooserFront.setFocusable(false);\n jButtonColorChooserFront.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonColorChooserFront.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBarTools.add(jButtonColorChooserFront);\n\n jButtonColorChooserBack.setForeground(new java.awt.Color(255, 255, 255));\n jButtonColorChooserBack.setToolTipText(\"Color de fondo\");\n jButtonColorChooserBack.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtonColorChooserBack.setBorderPainted(false);\n jButtonColorChooserBack.setFocusable(false);\n jButtonColorChooserBack.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonColorChooserBack.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBarTools.add(jButtonColorChooserBack);\n jToolBarTools.add(jSeparator5);\n jToolBarTools.add(jPanelStroke);\n\n jSpinnerStroke.setModel(new javax.swing.SpinnerNumberModel(1, 1, 20, 1));\n jSpinnerStroke.setToolTipText(\"Grosor de linea\");\n jSpinnerStroke.setEditor(new javax.swing.JSpinner.NumberEditor(jSpinnerStroke, \"\"));\n jSpinnerStroke.setFocusable(false);\n jSpinnerStroke.setValue(1);\n jSpinnerStroke.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSpinnerStrokeStateChanged(evt);\n }\n });\n jToolBarTools.add(jSpinnerStroke);\n jToolBarTools.add(jSeparator8);\n\n jButtonGroupFill.add(jToggleButtonNoFill);\n jToggleButtonNoFill.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_fillno.png\"))); // NOI18N\n jToggleButtonNoFill.setSelected(true);\n jToggleButtonNoFill.setToolTipText(\"Sin relleno\");\n jToggleButtonNoFill.setFocusable(false);\n jToggleButtonNoFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonNoFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonNoFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonNoFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonNoFill);\n\n jButtonGroupFill.add(jToggleButtonSolidFill);\n jToggleButtonSolidFill.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_fill.png\"))); // NOI18N\n jToggleButtonSolidFill.setToolTipText(\"Relleno sólido\");\n jToggleButtonSolidFill.setFocusable(false);\n jToggleButtonSolidFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonSolidFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonSolidFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonSolidFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonSolidFill);\n\n jButtonGroupFill.add(jToggleButtonHorizontalFill);\n jToggleButtonHorizontalFill.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_fill_horizontal.png\"))); // NOI18N\n jToggleButtonHorizontalFill.setToolTipText(\"Degradado horizontal\");\n jToggleButtonHorizontalFill.setFocusable(false);\n jToggleButtonHorizontalFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonHorizontalFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonHorizontalFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonHorizontalFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonHorizontalFill);\n\n jButtonGroupFill.add(jToggleButtonVerticalFill);\n jToggleButtonVerticalFill.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_fill_vertical.png\"))); // NOI18N\n jToggleButtonVerticalFill.setToolTipText(\"Degradado horizontal\");\n jToggleButtonVerticalFill.setFocusable(false);\n jToggleButtonVerticalFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonVerticalFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonVerticalFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonVerticalFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonVerticalFill);\n\n jButtonGroupFill.add(jToggleButtonRadialFill);\n jToggleButtonRadialFill.setText(\"R\");\n jToggleButtonRadialFill.setToolTipText(\"Degradado Radial\");\n jToggleButtonRadialFill.setFocusable(false);\n jToggleButtonRadialFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonRadialFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonRadialFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonRadialFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonRadialFill);\n\n jButtonGroupFill.add(jToggleButtonDiagonal1Fill);\n jToggleButtonDiagonal1Fill.setText(\"D1\");\n jToggleButtonDiagonal1Fill.setFocusable(false);\n jToggleButtonDiagonal1Fill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonDiagonal1Fill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonDiagonal1Fill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonDiagonal1FillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonDiagonal1Fill);\n\n jButtonGroupFill.add(jToggleButtonDiagonal2Fill);\n jToggleButtonDiagonal2Fill.setText(\"D2\");\n jToggleButtonDiagonal2Fill.setFocusable(false);\n jToggleButtonDiagonal2Fill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonDiagonal2Fill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonDiagonal2Fill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonDiagonal2FillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonDiagonal2Fill);\n jToolBarTools.add(jSeparator9);\n\n jToggleButtonAntialiasing.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_antialiasing.png\"))); // NOI18N\n jToggleButtonAntialiasing.setToolTipText(\"Suavizado\");\n jToggleButtonAntialiasing.setFocusable(false);\n jToggleButtonAntialiasing.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonAntialiasing.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonAntialiasing.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonAntialiasingActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonAntialiasing);\n\n jSliderAlpha.setPaintTicks(true);\n jSliderAlpha.setToolTipText(\"Transparencia\");\n jSliderAlpha.setValue(100);\n jSliderAlpha.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderAlphaStateChanged(evt);\n }\n });\n jToolBarTools.add(jSliderAlpha);\n jToolBarTools.add(jSeparator6);\n\n jToggleButtonRecord.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_record.png\"))); // NOI18N\n jToggleButtonRecord.setToolTipText(\"Grabar\");\n jToggleButtonRecord.setFocusable(false);\n jToggleButtonRecord.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonRecord.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonRecord.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonRecordActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonRecord);\n\n jLabelRecordTime.setText(\"00:00\");\n jToolBarTools.add(jLabelRecordTime);\n jToolBarTools.add(jSeparator7);\n\n jButtonWebCam.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_webcam.png\"))); // NOI18N\n jButtonWebCam.setToolTipText(\"Abrir webcam\");\n jButtonWebCam.setFocusable(false);\n jButtonWebCam.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonWebCam.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonWebCam.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonWebCamActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonWebCam);\n\n jButtonSnapShot.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_snapshot.png\"))); // NOI18N\n jButtonSnapShot.setToolTipText(\"Tomar captura\");\n jButtonSnapShot.setFocusable(false);\n jButtonSnapShot.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonSnapShot.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonSnapShot.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSnapShotActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonSnapShot);\n\n getContentPane().add(jToolBarTools, java.awt.BorderLayout.PAGE_START);\n\n jPanelCenter.setLayout(new java.awt.BorderLayout());\n\n desktop.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n desktopMouseMoved(evt);\n }\n });\n desktop.addVetoableChangeListener(new java.beans.VetoableChangeListener() {\n public void vetoableChange(java.beans.PropertyChangeEvent evt)throws java.beans.PropertyVetoException {\n desktopVetoableChange(evt);\n }\n });\n\n javax.swing.GroupLayout desktopLayout = new javax.swing.GroupLayout(desktop);\n desktop.setLayout(desktopLayout);\n desktopLayout.setHorizontalGroup(\n desktopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n desktopLayout.setVerticalGroup(\n desktopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n\n jSplitPane1.setLeftComponent(desktop);\n\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jListShapes.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jListShapes.setEnabled(false);\n jListShapes.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n jListShapesValueChanged(evt);\n }\n });\n jScrollPane2.setViewportView(jListShapes);\n\n jPanel1.add(jScrollPane2, java.awt.BorderLayout.CENTER);\n\n jPanel2.setLayout(new java.awt.GridLayout(1, 0));\n\n jButtonMoveUp.setText(\"Hacia delante\");\n jButtonMoveUp.setToolTipText(\"Mover Arriba\");\n jButtonMoveUp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonMoveUpActionPerformed(evt);\n }\n });\n jPanel2.add(jButtonMoveUp);\n\n jButtonMoveDown.setText(\"Hacia el fondo\");\n jButtonMoveDown.setToolTipText(\"Mover Abajo\");\n jButtonMoveDown.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonMoveDownActionPerformed(evt);\n }\n });\n jPanel2.add(jButtonMoveDown);\n\n jPanel1.add(jPanel2, java.awt.BorderLayout.PAGE_START);\n\n jSplitPane1.setRightComponent(jPanel1);\n\n jPanelCenter.add(jSplitPane1, java.awt.BorderLayout.CENTER);\n\n jToolBarImage.setRollover(true);\n jToolBarImage.setMinimumSize(new java.awt.Dimension(544, 90));\n jToolBarImage.setPreferredSize(new java.awt.Dimension(722, 80));\n\n jPanelImageBrightness.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Brillo\"));\n jPanelImageBrightness.setDoubleBuffered(false);\n jPanelImageBrightness.setEnabled(false);\n jPanelImageBrightness.setLayout(new java.awt.GridLayout(1, 0));\n\n jSliderBrightness.setMaximum(255);\n jSliderBrightness.setMinimum(-255);\n jSliderBrightness.setValue(0);\n jSliderBrightness.setPreferredSize(new java.awt.Dimension(70, 29));\n jSliderBrightness.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderBrightnessStateChanged(evt);\n }\n });\n jSliderBrightness.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jSliderBrightnessFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n jSliderBrightnessFocusLost(evt);\n }\n });\n jPanelImageBrightness.add(jSliderBrightness);\n\n jToolBarImage.add(jPanelImageBrightness);\n\n jPanelImageFilter.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Filtro\"));\n jPanelImageFilter.setDoubleBuffered(false);\n jPanelImageFilter.setEnabled(false);\n jPanelImageFilter.setMinimumSize(new java.awt.Dimension(108, 70));\n jPanelImageFilter.setLayout(new java.awt.GridLayout(1, 0));\n\n jComboBoxFilter.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"--seleccione filtro--\", \"Emborronamiento media\", \"Emborronamiento binomial\", \"Enfoque\", \"Relieve\", \"Detector de fronteras laplaciano\" }));\n jComboBoxFilter.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jComboBoxFilterItemStateChanged(evt);\n }\n });\n jComboBoxFilter.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jComboBoxFilterFocusGained(evt);\n }\n });\n jComboBoxFilter.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxFilterActionPerformed(evt);\n }\n });\n jPanelImageFilter.add(jComboBoxFilter);\n\n jToolBarImage.add(jPanelImageFilter);\n\n jPanelImageContrast.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Constraste\"));\n jPanelImageContrast.setDoubleBuffered(false);\n jPanelImageContrast.setEnabled(false);\n jPanelImageContrast.setMinimumSize(new java.awt.Dimension(96, 70));\n jPanelImageContrast.setLayout(new java.awt.GridLayout(1, 3));\n\n jButtonConstrast.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_contrast.png\"))); // NOI18N\n jButtonConstrast.setToolTipText(\"Constraste\");\n jButtonConstrast.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonConstrastActionPerformed(evt);\n }\n });\n jPanelImageContrast.add(jButtonConstrast);\n\n jButtonConstrastBright.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_bright.png\"))); // NOI18N\n jButtonConstrastBright.setToolTipText(\"Brillante\");\n jButtonConstrastBright.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonConstrastBrightActionPerformed(evt);\n }\n });\n jPanelImageContrast.add(jButtonConstrastBright);\n\n jButtonContrastDark.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_dark.png\"))); // NOI18N\n jButtonContrastDark.setToolTipText(\"Oscuro\");\n jButtonContrastDark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonContrastDarkActionPerformed(evt);\n }\n });\n jPanelImageContrast.add(jButtonContrastDark);\n\n jToolBarImage.add(jPanelImageContrast);\n\n jPanelImageOperations.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Operaciones\"));\n jPanelImageOperations.setDoubleBuffered(false);\n jPanelImageOperations.setEnabled(false);\n jPanelImageOperations.setPreferredSize(new java.awt.Dimension(158, 64));\n jPanelImageOperations.setLayout(new java.awt.GridLayout(1, 3));\n\n jButtonSinus.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_sinusoidal.png\"))); // NOI18N\n jButtonSinus.setToolTipText(\"Seno\");\n jButtonSinus.setAlignmentX(10.0F);\n jButtonSinus.setAlignmentY(0.0F);\n jButtonSinus.setBorderPainted(false);\n jButtonSinus.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonSinus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSinusActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonSinus);\n\n jButtonSepia.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_sepia_1.png\"))); // NOI18N\n jButtonSepia.setToolTipText(\"Sepia\");\n jButtonSepia.setAlignmentY(0.0F);\n jButtonSepia.setBorderPainted(false);\n jButtonSepia.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonSepia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSepiaActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonSepia);\n\n jButtonSobel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_gradient.png\"))); // NOI18N\n jButtonSobel.setToolTipText(\"Gradiente Sobel\");\n jButtonSobel.setAlignmentY(0.0F);\n jButtonSobel.setBorderPainted(false);\n jButtonSobel.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonSobel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSobelActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonSobel);\n\n jButtonTinted.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_tinted.png\"))); // NOI18N\n jButtonTinted.setToolTipText(\"Tintado\");\n jButtonTinted.setAlignmentY(0.0F);\n jButtonTinted.setBorderPainted(false);\n jButtonTinted.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonTinted.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonTintedActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonTinted);\n\n jButtonNegative.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_negative.png\"))); // NOI18N\n jButtonNegative.setToolTipText(\"Negativo\");\n jButtonNegative.setAlignmentY(0.0F);\n jButtonNegative.setBorderPainted(false);\n jButtonNegative.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonNegative.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonNegativeActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonNegative);\n\n jButtonGrayScale.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_gray.png\"))); // NOI18N\n jButtonGrayScale.setToolTipText(\"Escala de grises\");\n jButtonGrayScale.setAlignmentY(0.0F);\n jButtonGrayScale.setBorderPainted(false);\n jButtonGrayScale.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonGrayScale.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonGrayScaleActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonGrayScale);\n\n jButtonRandomBlack.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_sepia.png\"))); // NOI18N\n jButtonRandomBlack.setToolTipText(\"Propia\");\n jButtonRandomBlack.setAlignmentY(0.0F);\n jButtonRandomBlack.setBorderPainted(false);\n jButtonRandomBlack.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonRandomBlack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRandomBlackActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonRandomBlack);\n\n jToolBarImage.add(jPanelImageOperations);\n\n jPanelImageBinary.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Binarias\"));\n jPanelImageBinary.setDoubleBuffered(false);\n jPanelImageBinary.setEnabled(false);\n java.awt.GridBagLayout jPanelImageBinaryLayout = new java.awt.GridBagLayout();\n jPanelImageBinaryLayout.columnWidths = new int[] {10, 10, 10};\n jPanelImageBinaryLayout.rowHeights = new int[] {1};\n jPanelImageBinary.setLayout(jPanelImageBinaryLayout);\n\n jButtonBinaryAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_add.png\"))); // NOI18N\n jButtonBinaryAdd.setToolTipText(\"suma binaria\");\n jButtonBinaryAdd.setMaximumSize(new java.awt.Dimension(20, 28));\n jButtonBinaryAdd.setMinimumSize(new java.awt.Dimension(24, 24));\n jButtonBinaryAdd.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonBinaryAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonBinaryAddActionPerformed(evt);\n }\n });\n jPanelImageBinary.add(jButtonBinaryAdd, new java.awt.GridBagConstraints());\n\n jButtonBinarySubstract.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_substract.png\"))); // NOI18N\n jButtonBinarySubstract.setToolTipText(\"resta binaria\");\n jButtonBinarySubstract.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonBinarySubstract.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonBinarySubstractActionPerformed(evt);\n }\n });\n jPanelImageBinary.add(jButtonBinarySubstract, new java.awt.GridBagConstraints());\n\n jButtonBinaryProduct.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_product.png\"))); // NOI18N\n jButtonBinaryProduct.setToolTipText(\"multiplicacion binaria\");\n jButtonBinaryProduct.setMargin(new java.awt.Insets(0, 0, 0, 0));\n jButtonBinaryProduct.setMaximumSize(new java.awt.Dimension(20, 28));\n jButtonBinaryProduct.setMinimumSize(new java.awt.Dimension(24, 24));\n jButtonBinaryProduct.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonBinaryProduct.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonBinaryProductActionPerformed(evt);\n }\n });\n jPanelImageBinary.add(jButtonBinaryProduct, new java.awt.GridBagConstraints());\n\n jSliderBinaryOperations.setPreferredSize(new java.awt.Dimension(150, 29));\n jSliderBinaryOperations.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderBinaryOperationsStateChanged(evt);\n }\n });\n jSliderBinaryOperations.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jSliderBinaryOperationsFocusGained(evt);\n }\n });\n jSliderBinaryOperations.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jSliderBinaryOperationsMouseExited(evt);\n }\n });\n jPanelImageBinary.add(jSliderBinaryOperations, new java.awt.GridBagConstraints());\n\n jToolBarImage.add(jPanelImageBinary);\n\n jPanelUmbralization.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Umbralizacion\"));\n jPanelUmbralization.setDoubleBuffered(false);\n jPanelUmbralization.setEnabled(false);\n jPanelUmbralization.setLayout(new java.awt.GridLayout(1, 0));\n\n jSliderUmbralization.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderUmbralizationStateChanged(evt);\n }\n });\n jSliderUmbralization.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jSliderUmbralizationFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n jSliderUmbralizationFocusLost(evt);\n }\n });\n jPanelUmbralization.add(jSliderUmbralization);\n\n jToolBarImage.add(jPanelUmbralization);\n\n jPanelCenter.add(jToolBarImage, java.awt.BorderLayout.PAGE_END);\n\n getContentPane().add(jPanelCenter, java.awt.BorderLayout.CENTER);\n\n jPanelStatusBar.setLayout(new java.awt.BorderLayout());\n\n jToolBarImageRotation.setRollover(true);\n\n jPanelImageRotate.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Rotación\"));\n jPanelImageRotate.setPreferredSize(new java.awt.Dimension(300, 62));\n jPanelImageRotate.setLayout(new java.awt.GridLayout(1, 4));\n\n jSliderRotate.setMaximum(360);\n jSliderRotate.setMinorTickSpacing(90);\n jSliderRotate.setPaintTicks(true);\n jSliderRotate.setValue(0);\n jSliderRotate.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderRotateStateChanged(evt);\n }\n });\n jSliderRotate.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jSliderRotateFocusGained(evt);\n }\n });\n jPanelImageRotate.add(jSliderRotate);\n\n jButtonRotate90.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_rotate_90.png\"))); // NOI18N\n jButtonRotate90.setToolTipText(\"90 Grados\");\n jButtonRotate90.setFocusable(false);\n jButtonRotate90.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonRotate90.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonRotate90.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRotate90ActionPerformed(evt);\n }\n });\n jPanelImageRotate.add(jButtonRotate90);\n\n jButton180.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_rotate_180.png\"))); // NOI18N\n jButton180.setToolTipText(\"180 Grados\");\n jButton180.setFocusable(false);\n jButton180.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton180.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton180.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton180ActionPerformed(evt);\n }\n });\n jPanelImageRotate.add(jButton180);\n\n jButtonRotate270.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_rotate_270.png\"))); // NOI18N\n jButtonRotate270.setToolTipText(\"270 Grados\");\n jButtonRotate270.setFocusable(false);\n jButtonRotate270.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonRotate270.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonRotate270.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRotate270ActionPerformed(evt);\n }\n });\n jPanelImageRotate.add(jButtonRotate270);\n\n jToolBarImageRotation.add(jPanelImageRotate);\n\n jPanelZoom.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Escala\"));\n jPanelZoom.setLayout(new java.awt.GridLayout(1, 0));\n\n jButtonZoomMinus.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_zoom_minus.png\"))); // NOI18N\n jButtonZoomMinus.setToolTipText(\"Reducir\");\n jButtonZoomMinus.setFocusable(false);\n jButtonZoomMinus.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonZoomMinus.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonZoomMinus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonZoomMinusActionPerformed(evt);\n }\n });\n jPanelZoom.add(jButtonZoomMinus);\n\n jButtonZoomPlus.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_zoom_plus.png\"))); // NOI18N\n jButtonZoomPlus.setToolTipText(\"Ampliar\");\n jButtonZoomPlus.setFocusable(false);\n jButtonZoomPlus.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonZoomPlus.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonZoomPlus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonZoomPlusActionPerformed(evt);\n }\n });\n jPanelZoom.add(jButtonZoomPlus);\n\n jToolBarImageRotation.add(jPanelZoom);\n\n jPanelStatusBar.add(jToolBarImageRotation, java.awt.BorderLayout.NORTH);\n\n jStatusBarTool.setText(\"Barra Estado\");\n jStatusBarTool.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanelStatusBar.add(jStatusBarTool, java.awt.BorderLayout.WEST);\n\n jPanelCursorAndColor.setLayout(new java.awt.BorderLayout());\n\n jStatusBarCursor.setText(\"(x,y)\");\n jStatusBarCursor.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanelCursorAndColor.add(jStatusBarCursor, java.awt.BorderLayout.WEST);\n\n jStatusBarColor.setText(\"RGB\");\n jStatusBarColor.setOpaque(true);\n jPanelCursorAndColor.add(jStatusBarColor, java.awt.BorderLayout.EAST);\n\n jPanelStatusBar.add(jPanelCursorAndColor, java.awt.BorderLayout.EAST);\n\n getContentPane().add(jPanelStatusBar, java.awt.BorderLayout.SOUTH);\n\n jMenuFile.setText(\"Archivo\");\n\n jMenuItemNew.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.META_MASK));\n jMenuItemNew.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_new.png\"))); // NOI18N\n jMenuItemNew.setText(\"Nuevo\");\n jMenuItemNew.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemNewActionPerformed(evt);\n }\n });\n jMenuFile.add(jMenuItemNew);\n\n jMenuOpen.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_open.png\"))); // NOI18N\n jMenuOpen.setText(\"Abrir\");\n jMenuOpen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuOpenActionPerformed(evt);\n }\n });\n jMenuFile.add(jMenuOpen);\n\n jMenuSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.META_MASK));\n jMenuSave.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_save.png\"))); // NOI18N\n jMenuSave.setText(\"Guardar\");\n jMenuSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuSaveActionPerformed(evt);\n }\n });\n jMenuFile.add(jMenuSave);\n jMenuFile.add(jSeparator1);\n\n jMenuItemExit.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_exit.png\"))); // NOI18N\n jMenuItemExit.setText(\"Salir\");\n jMenuItemExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemExitActionPerformed(evt);\n }\n });\n jMenuFile.add(jMenuItemExit);\n\n jMenuBar.add(jMenuFile);\n\n jMenuEdit.setText(\"Editar\");\n\n jMenuItemCut.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.META_MASK));\n jMenuItemCut.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_cut.png\"))); // NOI18N\n jMenuItemCut.setText(\"Cortar\");\n jMenuItemCut.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemCutActionPerformed(evt);\n }\n });\n jMenuEdit.add(jMenuItemCut);\n\n jMenuItemCopy.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.META_MASK));\n jMenuItemCopy.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_copy.png\"))); // NOI18N\n jMenuItemCopy.setText(\"Copiar\");\n jMenuItemCopy.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemCopyActionPerformed(evt);\n }\n });\n jMenuEdit.add(jMenuItemCopy);\n\n jMenuItemPaste.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.META_MASK));\n jMenuItemPaste.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_paste.png\"))); // NOI18N\n jMenuItemPaste.setText(\"Pegar\");\n jMenuItemPaste.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemPasteActionPerformed(evt);\n }\n });\n jMenuEdit.add(jMenuItemPaste);\n\n jMenuBar.add(jMenuEdit);\n\n jMenuView.setText(\"Ver\");\n\n jCheckBoxMenuItemToolBar.setSelected(true);\n jCheckBoxMenuItemToolBar.setText(\"Barra de herramientas\");\n jCheckBoxMenuItemToolBar.setToolTipText(\"\");\n jCheckBoxMenuItemToolBar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItemToolBarActionPerformed(evt);\n }\n });\n jMenuView.add(jCheckBoxMenuItemToolBar);\n\n jCheckBoxMenuItemToolBarImageOperations.setSelected(true);\n jCheckBoxMenuItemToolBarImageOperations.setText(\"Barra de imagen\");\n jCheckBoxMenuItemToolBarImageOperations.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItemToolBarImageOperationsActionPerformed(evt);\n }\n });\n jMenuView.add(jCheckBoxMenuItemToolBarImageOperations);\n\n jCheckBoxMenuItemToolBarImageRotation.setSelected(true);\n jCheckBoxMenuItemToolBarImageRotation.setText(\"Barra de rotacion y escalado\");\n jCheckBoxMenuItemToolBarImageRotation.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItemToolBarImageRotationActionPerformed(evt);\n }\n });\n jMenuView.add(jCheckBoxMenuItemToolBarImageRotation);\n\n jCheckBoxMenuItemStatusBar.setSelected(true);\n jCheckBoxMenuItemStatusBar.setText(\"Barra de estado\");\n jCheckBoxMenuItemStatusBar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItemStatusBarActionPerformed(evt);\n }\n });\n jMenuView.add(jCheckBoxMenuItemStatusBar);\n\n jMenuBar.add(jMenuView);\n\n jMenuImage.setText(\"Imagen\");\n\n jMenuItemChangeSize.setText(\"Cambiar tamaño\");\n jMenuItemChangeSize.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemChangeSizeActionPerformed(evt);\n }\n });\n jMenuImage.add(jMenuItemChangeSize);\n\n jMenuItemDuplicateImage.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_duplicate.png\"))); // NOI18N\n jMenuItemDuplicateImage.setText(\"Duplicar imagen\");\n jMenuItemDuplicateImage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemDuplicateImageActionPerformed(evt);\n }\n });\n jMenuImage.add(jMenuItemDuplicateImage);\n\n jMenuItemHistogram.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_histogram.png\"))); // NOI18N\n jMenuItemHistogram.setText(\"Histograma\");\n jMenuItemHistogram.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemHistogramActionPerformed(evt);\n }\n });\n jMenuImage.add(jMenuItemHistogram);\n\n jMenuBar.add(jMenuImage);\n\n jMenuHelp.setText(\"Ayuda\");\n\n jMenuItemHelpAbout.setText(\"Acerca de...\");\n jMenuItemHelpAbout.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemHelpAboutActionPerformed(evt);\n }\n });\n jMenuHelp.add(jMenuItemHelpAbout);\n\n jMenuBar.add(jMenuHelp);\n\n setJMenuBar(jMenuBar);\n\n pack();\n }", "private void initComponents() {\n\n jbtTransmissionAny = new javax.swing.JButton();\n jbtBlockClient = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setUndecorated(true);\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n formMouseExited(evt);\n }\n });\n getContentPane().setLayout(new java.awt.GridLayout(2, 1));\n\n jbtTransmissionAny.setText(\"Transmission Any\");\n jbtTransmissionAny.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jbtTransmissionAnyMouseExited(evt);\n }\n });\n jbtTransmissionAny.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbtTransmissionAnyActionPerformed(evt);\n }\n });\n getContentPane().add(jbtTransmissionAny);\n\n jbtBlockClient.setText(\"Block Client\");\n getContentPane().add(jbtBlockClient);\n\n pack();\n }", "private void initComponents() {\n\n dataScrollPane = new javax.swing.JScrollPane();\n dataTable = new com.cosmos.acacia.gui.AcaciaTable();\n buttonsPanel = new com.cosmos.swingb.JBPanel();\n closeButton = new com.cosmos.swingb.JBButton();\n refreshButton = new com.cosmos.swingb.JBButton();\n deleteButton = new com.cosmos.swingb.JBButton();\n modifyButton = new com.cosmos.swingb.JBButton();\n newButton = new com.cosmos.swingb.JBButton();\n selectButton = new com.cosmos.swingb.JBButton();\n unselectButton = new com.cosmos.swingb.JBButton();\n classifyButton = new com.cosmos.swingb.JBButton();\n specialFunctionalityButton = new com.cosmos.swingb.JBButton();\n filterButton = new com.cosmos.swingb.JBButton();\n\n setName(\"Form\"); // NOI18N\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n onKeyPressed(evt);\n }\n });\n setLayout(new java.awt.BorderLayout());\n\n dataScrollPane.setName(\"dataScrollPane\"); // NOI18N\n\n dataTable.setName(\"dataTable\"); // NOI18N\n dataTable.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n onKeyPressed(evt);\n }\n });\n dataScrollPane.setViewportView(dataTable);\n\n add(dataScrollPane, java.awt.BorderLayout.CENTER);\n\n buttonsPanel.setName(\"buttonsPanel\"); // NOI18N\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(com.cosmos.acacia.crm.gui.AcaciaApplication.class).getContext().getActionMap(AbstractTablePanel.class, this);\n closeButton.setAction(actionMap.get(\"closeAction\")); // NOI18N\n closeButton.setName(\"closeButton\"); // NOI18N\n\n refreshButton.setAction(actionMap.get(\"refreshAction\")); // NOI18N\n refreshButton.setName(\"refreshButton\"); // NOI18N\n\n deleteButton.setAction(actionMap.get(\"deleteAction\")); // NOI18N\n deleteButton.setName(\"deleteButton\"); // NOI18N\n\n modifyButton.setAction(actionMap.get(\"modifyAction\")); // NOI18N\n modifyButton.setName(\"modifyButton\"); // NOI18N\n\n newButton.setAction(actionMap.get(\"newAction\")); // NOI18N\n newButton.setName(\"newButton\"); // NOI18N\n\n selectButton.setAction(actionMap.get(\"selectAction\")); // NOI18N\n selectButton.setName(\"selectButton\"); // NOI18N\n\n unselectButton.setAction(actionMap.get(\"unselectAction\")); // NOI18N\n unselectButton.setName(\"unselectButton\"); // NOI18N\n\n classifyButton.setAction(actionMap.get(\"classifyAction\")); // NOI18N\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(com.cosmos.acacia.crm.gui.AcaciaApplication.class).getContext().getResourceMap(AbstractTablePanel.class);\n classifyButton.setText(resourceMap.getString(\"classifyButton.text\")); // NOI18N\n classifyButton.setName(\"classifyButton\"); // NOI18N\n\n specialFunctionalityButton.setAction(actionMap.get(\"specialAction\")); // NOI18N\n specialFunctionalityButton.setName(\"specialFunctionalityButton\"); // NOI18N\n\n filterButton.setAction(actionMap.get(\"filter\")); // NOI18N\n filterButton.setName(\"filterButton\"); // NOI18N\n\n javax.swing.GroupLayout buttonsPanelLayout = new javax.swing.GroupLayout(buttonsPanel);\n buttonsPanel.setLayout(buttonsPanelLayout);\n buttonsPanelLayout.setHorizontalGroup(\n buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonsPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(unselectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 51, Short.MAX_VALUE)\n .addComponent(specialFunctionalityButton, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(filterButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(classifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(newButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(modifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(deleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(refreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n buttonsPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {closeButton, deleteButton, modifyButton, newButton, refreshButton, selectButton});\n\n buttonsPanelLayout.setVerticalGroup(\n buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, buttonsPanelLayout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(buttonsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(selectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(refreshButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(deleteButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(modifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(newButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(unselectButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(classifyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(filterButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(specialFunctionalityButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n buttonsPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {closeButton, deleteButton, modifyButton, newButton, refreshButton, selectButton, unselectButton});\n\n add(buttonsPanel, java.awt.BorderLayout.PAGE_END);\n }", "public void actionListenner()\n\t{\n\t\t// Add action Listener to each JButton.\n\t\t// WelcomePanel\n\t\tview.getFrame().add(view.getWelcomePanel().getWelcomePanel());\t\n\t\tview.getFrame().setVisible(true);\n\t\t\n\t\t// welcomeButton\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().remove(view.getWelcomePanel().getWelcomePanel()));\t\t\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\t\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().pack());\n\n\t\t// MainPanel\n\t\t// playgameButton\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\t\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().add(view.getPlayerPanel().getPlayerPanel()));\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t//leaderboardButton\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.add(view.getLeaderboardPanel().getLeaderboardPanel()));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t//quit\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().add(view.getQuitPanel().getQuitPane()));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// PlayerPanel\n\t\t// createButton\n\t\tview.getPlayerPanel().getCreateButton().addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tString input = view.getPlayerPanel().getInputBox().getText();\n\t\t\t\tSystem.out.println(input);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tboolean validname = gameInfo.getModel().getLeaderboard().isValidNewPlayers(input);\n\t\t\t\tSystem.out.println(validname);\n\t\t\t\t\n\t\t\t\tif(validname)\n\t\t\t\t{\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().addNewPlayer(input);\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().loadPlayer(input);\n\t\t\t\t\tgameInfo.getModel().getGameRule().setLevel(1);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setPlayerInGamePanel(input);\n\t\t\t\t\tview.getInGamePanel().setLabelName(input);\t\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setPlayerName(input);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setLevelLabel(Integer.toString(1));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLevel(1);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(0));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(0);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\tview.getFrame().remove(view.getPlayerPanel().getPlayerPanel());\n\t\t\t\t\tview.getFrame().add(view.getInGamePanel().getInGamePanel());\n\t\t\t\t\tview.getInGamePanel().getInGamePanel().setFocusable(true);\n\t\t\t\t\tview.getInGamePanel().getInGamePanel().requestFocusInWindow();\n\t\t\t\t\tview.getFrame().pack();\n\t\t\t\t\tview.getFrame().setSize(800, 890);\n\t\t\t\t\tview.getFrame().repaint();\t\t\n\t\t\t\t\tview.getFrame().setVisible(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!validname)\n\t\t\t\t{\n\t\t\t\t\tview.getPlayerPanel().getInputBox().setText(\"INVALID NAME\");\n\t\t\t\t\tview.getPlayerPanel().getInputBox().addMouseListener(new MouseAdapter(){\n\t\t\t @Override\n\t\t\t public void mouseClicked(MouseEvent e){\n\t\t\t \tview.getPlayerPanel().getInputBox().setText(\"\");\n\t\t\t }\n\t\t\t });\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t// loadPlayer\n\t\tint numberOfLoadPlayer = view.getPlayerPanel().getExistPlayerButton().length;\n\t\tfor(int i = 0; i < numberOfLoadPlayer; i++)\n\t\t{\n\t\t\tview.getPlayerPanel().getExistPlayerButton()[i].addMouseListener(new MouseAdapter()\n\t\t\t{\n\t\t\t\tpublic void mousePressed(MouseEvent e)\n\t\t\t\t{\n\t\t\t\t\tObject o = e.getSource();\n\t\t\t\t\tJButton pressedButton = (JButton) o;\n\t\t\t\t\tString text = pressedButton.getText();\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setPlayerInGamePanel(text);\n\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(gameInfo.getModel().getGameRule().getScores()));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(gameInfo.getModel().getGameRule().getScores());\n\t\t\t\t\tview.getInGamePanel().setLabelName(text);\n\t\t\t\t\t\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().loadPlayer(text);\n\t\t\t\t\t\n\t\t\t\t\tview.getPlayerPanel().setLoadPlayer(gameInfo.getModel().getLeaderboard().loadPlayer(text));\t\t\t\n\t\t\t\t\tview.setSelectLevelPanel();\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tview.getFrame().remove(view.getPlayerPanel().getPlayerPanel());\t\t\n\t\t\t\t\tview.getFrame().add(view.getSelectLevelPanel().getSelectLevelPanel());\n\t\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\t//view.getFrame().pack();\n\t\t\t\t\tview.getFrame().setVisible(true);\n\t\t\t\t\t\n\t\t\t\t\t// InGamePanel\n\t\t\t\t\t//case select level unlock\n\t\t\t\t\tfor(int i = 1; i <= 5; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(gameInfo.getModel().getLeaderboard().loadPlayer(text).isLevelUnlocked(i) == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString selectLevel = Integer.toString(i);\n\t\t\t\t\t\t\tint level = i;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setPlayerName(gameInfo.getModel().getLeaderboard().loadPlayer(text).getName()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setLevel(level));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setLevel(gameInfo.getModel().getGameRule().getLevel()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> gameInfo.getModel().getGameRule().setLevel(level));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().setLevelLabel(selectLevel));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().setGameStart(true));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().remove(view.getSelectLevelPanel().getSelectLevelPanel()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().setSize(800, 890));\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().add(view.getInGamePanel().getInGamePanel()));\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getInGamePanel().requestFocusInWindow());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getInGamePanel().setFocusable(true));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().repaint());\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().pack());\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().setVisible(true));\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\n\t\t\t\t}\t\n\t\t});\t\t\n\t\t}\n\t\t\n\t\t// back\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().remove(view.getPlayerPanel().getPlayerPanel()));\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// LeaderboardPanel\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().remove(view.getLeaderboardPanel().getLeaderboardPanel()));\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// QuitPanel\n\t\t// no\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().remove(view.getQuitPanel().getQuitPane()));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().repaint());\t\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// yes\n\t\tview.getQuitPanel().getYes().addActionListener(event -> view.getFrame().dispatchEvent(new WindowEvent(view.getFrame(), WindowEvent.WINDOW_CLOSING)));\n\t\t\n\t\t\n\t\t// InGamePanel\n\t\tview.getInGamePanel().getInGamePanel().addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyTyped(KeyEvent e) {}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tswitch (e.getKeyCode()) {\n\n\t\t\t\t// Case press esc to pause the game\n\t\t\t\tcase KeyEvent.VK_ESCAPE:\t\n\t\t\t\t\tview.getInGamePanel().setGameStart(false);\n\t\t\t\t\tview.getFrame().remove(view.getInGamePanel().getInGamePanel());\n\t\t\t\t\tview.getFrame().add(view.getPausePanel().getPausePanel());\n\t\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\tview.getFrame().setSize(600, 800);\t\n\t\t\t\t\tview.getFrame().pack();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_LEFT:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.MOVE_LEFT);\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_RIGHT:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.MOVE_RIGHT);\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_Z:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.ROTATE_LEFT);\n\t\t\t\t\t\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_SPACE:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.FASTER);\n\t\t\t\t\t\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\t\tif(lost)\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLost(false);\n\t\t\t\t\t\tlost = false;\n\t\t\t\t\t\tmessage = new Message(Message.ValveResponse.RESTART);\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(winLevel)\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setWinLevel(false);\n\t\t\t\t\t\twinLevel = false;\n\t\t\t\t\t\tmessage = new Message(Message.ValveResponse.GET_NEXTLEVEL);\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void keyReleased(KeyEvent e) {}\n\t\t});\n\t\t\n\t\t// PausePanel\n\t\t// back\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getInGamePanel().setGameStart(true));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().setSize(800, 890));\t\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().add(view.getInGamePanel().getInGamePanel()));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().pack());\n\t\t\t\t\n\t\t// LeaderBoardInPausePanel\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().add(view.getLeaderboardInPausePanel().getLeaderboardPanel()));\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// ControlsPanel\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().add(view.getControlsPanel().getControlsPanel()));\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\t\n\t\tview.getPausePanel().getReturnToMainManuButton().addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\t\t\t\t\n\t\t\t\tmessage = new Message(Message.ValveResponse.GET_NEWGAME);\n\t\t\t\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t} \n\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\n\t\t\t\tview.getFrame().remove(view.getPausePanel().getPausePanel());\n\t\t\t\tview.getFrame().add(view.getMainPanel().getMainPanel());\t\n\t\t\t\tview.getFrame().pack();\n\t\t\t\tview.getFrame().setSize(600, 800);\t\n\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\n\t\t\t\t//viewAllPanels.getFrame().pack();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t// LeaderboardInGame\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(Event -> view.getFrame().remove(view.getLeaderboardInPausePanel().getLeaderboardPanel()));\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getPausePanel().getPausePanel()));\t\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\t\n\t\t// ControlPanel\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().remove(view.getControlsPanel().getControlsPanel()));\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().add(view.getPausePanel().getPausePanel()));\t\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().pack());\n\t}", "public CompilerEditorPanel(Preferences preferences)\n {\n super(new BorderLayout());\n\n if(preferences == null)\n {\n preferences = new Preferences(UtilIO.obtainExternalFile(\"JHelp/compilerASM/compilerPreference.pref\"));\n }\n\n this.preferences = preferences;\n this.compilationListeners = new ArrayList<CompilationListener>();\n this.compiling = new AtomicBoolean(false);\n this.actionNew = new ActionNew();\n this.actionOpen = new ActionOpen();\n this.actionSave = new ActionSave(false);\n this.actionSaveAs = new ActionSave(true);\n this.actionImport = new ActionImport();\n this.actionExport = new ActionExport();\n this.actionCompile = new ActionCompile();\n this.eventManager = new EventManager();\n this.classManager = new ClassManager();\n\n // Short cuts\n final ActionMap actionMap = this.getActionMap();\n final InputMap inputMap = this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);\n\n actionMap.put(this.actionNew.getName(), this.actionNew);\n inputMap.put(this.actionNew.getShortcut(), this.actionNew.getName());\n\n actionMap.put(this.actionOpen.getName(), this.actionOpen);\n inputMap.put(this.actionOpen.getShortcut(), this.actionOpen.getName());\n\n actionMap.put(this.actionSave.getName(), this.actionSave);\n inputMap.put(this.actionSave.getShortcut(), this.actionSave.getName());\n\n actionMap.put(this.actionSaveAs.getName(), this.actionSaveAs);\n inputMap.put(this.actionSaveAs.getShortcut(), this.actionSaveAs.getName());\n\n actionMap.put(this.actionImport.getName(), this.actionImport);\n inputMap.put(this.actionImport.getShortcut(), this.actionImport.getName());\n\n actionMap.put(this.actionExport.getName(), this.actionExport);\n inputMap.put(this.actionExport.getShortcut(), this.actionExport.getName());\n\n actionMap.put(this.actionCompile.getName(), this.actionCompile);\n inputMap.put(this.actionCompile.getShortcut(), this.actionCompile.getName());\n //\n\n this.fileChooser = new FileChooser();\n this.fileFilterASM = new FileFilter();\n this.fileFilterASM.addExtension(\"asm\");\n this.fileFilterClass = new FileFilter();\n this.fileFilterClass.addExtension(\"class\");\n this.fileChooser.setFileFilter(this.fileFilterASM);\n\n final File directory = this.preferences.getFileValue(CompilerEditorPanel.PREFERENCE_LAST_DIRECTORY);\n\n if(directory != null)\n {\n this.fileChooser.setStartDirectory(directory);\n }\n\n this.componentEditor = new ComponentEditor();\n\n this.panelActions = new JPanel(new FlowLayout(FlowLayout.LEFT));\n this.title = new JLabel(\"--Untitled--\");\n this.panelActions.add(this.title);\n this.panelActions.add(new JHelpSeparator(false));\n this.panelActions.add(new JButton(this.actionNew));\n this.panelActions.add(new JButton(this.actionOpen));\n this.panelActions.add(new JButton(this.actionSave));\n this.panelActions.add(new JButton(this.actionSaveAs));\n this.panelActions.add(new JHelpSeparator(false));\n this.panelActions.add(new JButton(this.actionImport));\n this.panelActions.add(new JButton(this.actionExport));\n this.panelActions.add(new JHelpSeparator(false));\n this.panelActions.add(new JButton(this.actionCompile));\n\n this.informationMessage = new JTextArea(\"\", 500, 16);\n this.informationMessage.setEditable(false);\n this.informationMessage.setFont(JHelpConstantsSmooth.FONT_BODY_1.getFont());\n this.informationMessage.setLineWrap(true);\n\n this.panelInformationMessage = new JHelpFoldablePanel(\"Message\",\n new JHelpLimitSizePanel(new JScrollPane(this.informationMessage), 256, Integer.MAX_VALUE), FoldLocation.LEFT);\n this.panelInformationMessage.fold();\n\n this.add(this.panelActions, BorderLayout.NORTH);\n this.add(new JScrollPane(this.componentEditor), BorderLayout.CENTER);\n this.add(this.panelInformationMessage, BorderLayout.EAST);\n\n this.currentFile = this.preferences.getFileValue(CompilerEditorPanel.PREFERENCE_LAST_FILE);\n\n if(this.currentFile != null)\n {\n this.openFile(this.currentFile);\n }\n\n this.initializeConsole();\n }", "private void initComponents() {\n\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n miSave = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n miUndo = new javax.swing.JMenuItem();\n miRedo = new javax.swing.JMenuItem();\n bgMode = new javax.swing.ButtonGroup();\n bgStrength = new javax.swing.ButtonGroup();\n bgColor = new javax.swing.ButtonGroup();\n jToggleButton1 = new javax.swing.JToggleButton();\n jPanel1 = new javax.swing.JPanel();\n jToolBar1 = new javax.swing.JToolBar();\n btnSave = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JToolBar.Separator();\n jToggleButton2 = new javax.swing.JToggleButton();\n jToggleButton3 = new javax.swing.JToggleButton();\n jToggleButton4 = new javax.swing.JToggleButton();\n jSeparator1 = new javax.swing.JToolBar.Separator();\n jToggleButton9 = new javax.swing.JToggleButton();\n jToggleButton5 = new javax.swing.JToggleButton();\n jToggleButton6 = new javax.swing.JToggleButton();\n jToggleButton7 = new javax.swing.JToggleButton();\n jToggleButton8 = new javax.swing.JToggleButton();\n jSeparator3 = new javax.swing.JToolBar.Separator();\n btnUndo = new javax.swing.JButton();\n btnRedo = new javax.swing.JButton();\n tbColor = new javax.swing.JToolBar();\n btnColor = new javax.swing.JButton();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n miSave = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n miUndo = new javax.swing.JMenuItem();\n miRedo = new javax.swing.JMenuItem();\n\n jMenu1.setText(\"File\");\n\n miSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));\n miSave.setText(\"Item\");\n jMenu1.add(miSave);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Edit\");\n\n miUndo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));\n miUndo.setText(\"Item\");\n jMenu2.add(miUndo);\n\n miRedo.setText(\"Item\");\n jMenu2.add(miRedo);\n\n jMenuBar1.add(jMenu2);\n\n setJMenuBar(jMenuBar1);\n\n bgMode.add(jToggleButton1);\n jToggleButton1.setText(\"\\u9078\\u629e\");\n jToggleButton1.setEnabled(false);\n jToggleButton1.setFocusable(false);\n jToggleButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"\\u3089\\u3075\\u305f\\u3093\");\n\n jPanel1.setLayout(new java.awt.GridLayout(0, 1));\n\n jToolBar1.setRollover(true);\n\n btnSave.setText(\"\\u4fdd\\u5b58\");\n btnSave.setFocusable(false);\n btnSave.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(btnSave);\n jToolBar1.add(jSeparator2);\n\n bgMode.add(jToggleButton2);\n jToggleButton2.setSelected(true);\n jToggleButton2.setText(\"\\u7dda\");\n jToggleButton2.setActionCommand(\"LINE\");\n jToggleButton2.setFocusable(false);\n jToggleButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton2);\n\n bgMode.add(jToggleButton3);\n jToggleButton3.setText(\"\\u5857\\u308a\");\n jToggleButton3.setActionCommand(\"FILL\");\n jToggleButton3.setFocusable(false);\n jToggleButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton3);\n\n bgMode.add(jToggleButton4);\n jToggleButton4.setText(\"\\u6d88\\u3057\\u30b4\\u30e0\");\n jToggleButton4.setActionCommand(\"ERASE\");\n jToggleButton4.setFocusable(false);\n jToggleButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton4);\n jToolBar1.add(jSeparator1);\n\n bgStrength.add(jToggleButton9);\n jToggleButton9.setText(\"\\u6975\\u7d30\");\n jToggleButton9.setActionCommand(\"1\");\n jToggleButton9.setFocusable(false);\n jToggleButton9.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton9.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton9);\n\n bgStrength.add(jToggleButton5);\n jToggleButton5.setSelected(true);\n jToggleButton5.setText(\"\\u7d30\");\n jToggleButton5.setActionCommand(\"3\");\n jToggleButton5.setFocusable(false);\n jToggleButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton5);\n\n bgStrength.add(jToggleButton6);\n jToggleButton6.setText(\"\\u4e2d\");\n jToggleButton6.setActionCommand(\"8\");\n jToggleButton6.setFocusable(false);\n jToggleButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton6);\n\n bgStrength.add(jToggleButton7);\n jToggleButton7.setText(\"\\u592a\");\n jToggleButton7.setActionCommand(\"15\");\n jToggleButton7.setFocusable(false);\n jToggleButton7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton7);\n\n bgStrength.add(jToggleButton8);\n jToggleButton8.setText(\"\\u6975\\u592a\");\n jToggleButton8.setActionCommand(\"32\");\n jToggleButton8.setFocusable(false);\n jToggleButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton8);\n jToolBar1.add(jSeparator3);\n\n btnUndo.setText(\"\\u5143\\u306b\\u623b\\u3059\");\n btnUndo.setFocusable(false);\n btnUndo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnUndo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(btnUndo);\n\n btnRedo.setText(\"\\u518d\\u5b9f\\u884c\");\n btnRedo.setFocusable(false);\n btnRedo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnRedo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(btnRedo);\n\n jPanel1.add(jToolBar1);\n\n tbColor.setRollover(true);\n\n btnColor.setText(\"\\u8272\");\n btnColor.setFocusable(false);\n btnColor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnColor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnColor.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnColorActionPerformed(evt);\n }\n });\n tbColor.add(btnColor);\n\n jPanel1.add(tbColor);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);\n\n jMenu1.setText(\"File\");\n\n miSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));\n miSave.setText(\"Item\");\n jMenu1.add(miSave);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Edit\");\n\n miUndo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));\n miUndo.setText(\"Item\");\n jMenu2.add(miUndo);\n\n miRedo.setText(\"Item\");\n jMenu2.add(miRedo);\n\n jMenuBar1.add(jMenu2);\n\n setJMenuBar(jMenuBar1);\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-622)/2, (screenSize.height-502)/2, 622, 502);\n }", "private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}", "public void registerComponents() {\r\n subAwardBudget.btnCancel.addActionListener(this);\r\n subAwardBudget.chkDetails.addActionListener(this);\r\n if(getFunctionType() != TypeConstants.DISPLAY_MODE) {\r\n subAwardBudget.btnAdd.addActionListener(this);\r\n subAwardBudget.btnDelete.addActionListener(this);\r\n subAwardBudget.btnOk.addActionListener(this);\r\n subAwardBudget.lstAttachments.addMouseListener(this);\r\n subAwardBudget.btnTranslate.addActionListener(this);\r\n subAwardBudget.btnUploadPDF.addActionListener(this);\r\n\r\n }else {\r\n subAwardBudget.btnAdd.setEnabled(false);\r\n subAwardBudget.btnDelete.setEnabled(false);\r\n subAwardBudget.btnOk.setEnabled(false);\r\n subAwardBudget.btnTranslate.setEnabled(false);\r\n subAwardBudget.btnUploadPDF.setEnabled(false);\r\n \r\n subAwardBudget.txtArComments.setEnabled(false);\r\n subAwardBudget.lstAttachments.addMouseListener(this);\r\n }\r\n // Added for COEUSQA-2115 : Subaward budgeting for Proposal Development - Start\r\n subAwardBudget.btnSubAwardDetails.addActionListener(this);\r\n // Added for COEUSQA-2115 : Subaward budgeting for Proposal Development - End\r\n subAwardBudget.btnViewPDF.addActionListener(this);\r\n subAwardBudget.btnViewXML.addActionListener(this);\r\n subAwardBudget.txtArStatus.setEnabled(false);\r\n \r\n //Make Table Single Selection\r\n subAwardBudget.tblSubAwardBudget.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n \r\n //Setup List Selection Listener so as to update details panel when row selection changes.\r\n subAwardBudget.tblSubAwardBudget.getSelectionModel().addListSelectionListener(this);\r\n \r\n subAwardDlgWindow.addEscapeKeyListener(\r\n new AbstractAction(\"escPressed\"){\r\n public void actionPerformed(ActionEvent ae){\r\n close();\r\n return;\r\n }\r\n });\r\n subAwardDlgWindow.setDefaultCloseOperation(CoeusDlgWindow.DO_NOTHING_ON_CLOSE);\r\n \r\n subAwardDlgWindow.addWindowListener(new WindowAdapter(){\r\n //public void windowActivated(WindowEvent we) {\r\n //requestDefaultFocus();\r\n //}\r\n public void windowClosing(WindowEvent we){\r\n close();\r\n }\r\n });\r\n }", "protected void init(){\n ac = new ButtonEventManager(this);\n \n nameField = new JTextField();\n \n done = new JButton(\"DONE\");\n back = new JButton(\"MAIN MENU\");\n quit = new JButton(\"QUIT\");\n \n done.setActionCommand(\"go to game menu after saving\");\n back.setActionCommand(\"go to the main menu\");\n quit.setActionCommand(\"quit the game\");\n \n Font font = new Font(\"Arial\", Font.PLAIN, 10);\n \n nameField.setFont(font);\n \n nameField.setBounds(2 * this.getWidth() / 3 - buttonWidth / 2, (int)(0.4 * this.getHeight() - textFieldHeight / 2), buttonWidth, textFieldHeight);\n \n done.setBounds((this.getWidth() / 2 - buttonWidth) / 2, (int)(0.7 * this.getHeight() - buttonHeight / 2), buttonWidth, buttonHeight);\n back.setBounds((this.getWidth() - buttonWidth) / 2, (int)(0.7 * this.getHeight() - buttonHeight / 2), buttonWidth, buttonHeight);\n quit.setBounds(3 * (this.getWidth() - buttonWidth) / 2, (int)(0.7 * this.getHeight() - buttonHeight / 2), buttonWidth, buttonHeight);\n \n done.addActionListener(ac);\n back.addActionListener(ac);\n quit.addActionListener(ac);\n \n add(nameField);\n \n add(done);\n add(back);\n add(quit);\n }", "private final void initBar() {\r\n \t//---------- Start ActionListener ----------\r\n \tActionListener readPhyTopoListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tphysicalTopologyFile = importFile(\"josn\");\r\n \tcheckImportStatus();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener readVirTopoListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tdeploymentFile = importFile(\"json\");\r\n \tcheckImportStatus();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener readWorkloadBkListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tworkloads_background = importFile(\"cvs\");\r\n\t\t \tcheckImportStatus();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener readWorkloadListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tworkloads = importFile(\"cvs\");\r\n\t\t \tcheckImportStatus();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener addPhysicalNodeListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \topenAddPhysicalNodeDialog();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener addVirtualNodeListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \topenAddVirtualNodeDialog();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener addPhysicalEdgeListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \topenAddPhysicalEdgeDialog();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener addVirtualEdgeListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \topenAddVirtualEdgeDialog();\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener importPhyTopoListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tString fileName = importFile(\"josn\");\r\n\t\t \tGraph phyGraph= Bridge.jsonToGraph(fileName, 0);\r\n/*\t\t \tSystem.out.println(phyGraph.getAdjacencyList().size());\r\n\t\t \tfor (Entry<Node, List<Edge>> entry : phyGraph.getAdjacencyList().entrySet()) {\r\n\t\t \t\tSystem.out.println(entry.getKey().getName()+entry.getKey().getType());\r\n\t\t \t}*/\r\n\t\t \tphysicalCanvas.setGraph(phyGraph);\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener importVirTopoListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \tString fileName = importFile(\"josn\");\r\n\t\t \tGraph virGraph= Bridge.jsonToGraph(fileName, 1);\r\n\t\t \tvirtualCanvas.setGraph(virGraph);\r\n\t\t }\r\n\t\t};\r\n\t\tActionListener savePhyTopoListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \ttry {\r\n\t\t\t\t\tsaveFile(\"json\", physicalGraph);\r\n\t\t\t\t} catch (IOException 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 }\r\n\t\t};\r\n\t\tActionListener saveVirTopoListener = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t \ttry {\r\n\t\t\t\t\tsaveFile(\"json\", virtualGraph);\r\n\t\t\t\t} catch (IOException 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 }\r\n\t\t};\r\n\t\t \r\n\t\t//---------- End ActionListener ----------\r\n \t\r\n //---------- Start Creating project tool bar ----------\r\n JToolBar toolbar = new JToolBar();\r\n\r\n ImageIcon iHost = new ImageIcon(\r\n getClass().getResource(\"/src/dc.png\"));\r\n ImageIcon iHline = new ImageIcon(\r\n getClass().getResource(\"/src/hline2.png\"));\r\n ImageIcon iHOpen = new ImageIcon(\r\n getClass().getResource(\"/src/openPhyTop.png\"));\r\n ImageIcon iHSave = new ImageIcon(\r\n getClass().getResource(\"/src/savePhyTop.png\"));\r\n ImageIcon iVM = new ImageIcon(\r\n getClass().getResource(\"/src/vm2.png\"));\r\n ImageIcon iVline = new ImageIcon(\r\n getClass().getResource(\"/src/vline2.png\"));\r\n ImageIcon iVOpen = new ImageIcon(\r\n getClass().getResource(\"/src/openVirTop.png\"));\r\n ImageIcon iVSave = new ImageIcon(\r\n getClass().getResource(\"/src/saveVirTop.png\"));\r\n ImageIcon iPhy = new ImageIcon(\r\n getClass().getResource(\"/src/upload1.png\"));\r\n ImageIcon iVir = new ImageIcon(\r\n getClass().getResource(\"/src/upload2.png\"));\r\n ImageIcon iWl1 = new ImageIcon(\r\n getClass().getResource(\"/src/upload3.png\"));\r\n ImageIcon iWl2 = new ImageIcon(\r\n getClass().getResource(\"/src/upload4.png\"));\r\n ImageIcon run = new ImageIcon(\r\n getClass().getResource(\"/src/play.png\"));\r\n ImageIcon exit = new ImageIcon(\r\n getClass().getResource(\"/src/exit.png\"));\r\n\r\n final JButton btnHost = new JButton(iHost);\r\n btnHost.setToolTipText(\"Add Host Node\");\r\n final JButton btnVm = new JButton(iVM);\r\n btnVm.setToolTipText(\"Add virtual Machine\");\r\n final JButton btnHedge = new JButton(iHline);\r\n btnHedge.setToolTipText(\"Add Host Edge\");\r\n final JButton btnVedge = new JButton(iVline);\r\n btnVedge.setToolTipText(\"Add VM Edge\");\r\n final JButton btnHopen = new JButton(iHOpen);\r\n btnHopen.setToolTipText(\"Open Physical Topology\");\r\n final JButton btnVopen = new JButton(iVOpen);\r\n btnVopen.setToolTipText(\"Open virtual Topology\");\r\n final JButton btnHsave = new JButton(iHSave);\r\n btnHsave.setToolTipText(\"Save Physical Topology\");\r\n final JButton btnVsave = new JButton(iVSave);\r\n btnVsave.setToolTipText(\"Save virtual Topology\");\r\n \r\n final JButton btnPhy = new JButton(iPhy);\r\n btnPhy.setToolTipText(\"Import topology network\");\r\n final JButton btnVir = new JButton(iVir);\r\n btnVir.setToolTipText(\"Import virtual network\");\r\n final JButton btnWl1 = new JButton(iWl1);\r\n btnWl1.setToolTipText(\"Import workload background\");\r\n final JButton btnWl2 = new JButton(iWl2);\r\n btnWl2.setToolTipText(\"Import workload\");\r\n \r\n btnRun = new JButton(run);\r\n btnRun.setToolTipText(\"Start simulation\");\r\n JButton btnExit = new JButton(exit);\r\n btnExit.setToolTipText(\"Exit CloudSim\");\r\n toolbar.setAlignmentX(0);\r\n \r\n btnHost.addActionListener(addPhysicalNodeListener);\r\n btnHedge.addActionListener(addPhysicalEdgeListener);\r\n btnHopen.addActionListener(importPhyTopoListener);\r\n btnHsave.addActionListener(savePhyTopoListener);\r\n btnVm.addActionListener(addVirtualNodeListener);\r\n btnVedge.addActionListener(addVirtualEdgeListener);\r\n btnVopen.addActionListener(importVirTopoListener);\r\n btnVsave.addActionListener(saveVirTopoListener);\r\n \r\n btnPhy.addActionListener(readPhyTopoListener);\r\n btnVir.addActionListener(readVirTopoListener);\r\n btnWl1.addActionListener(readWorkloadBkListener);\r\n btnWl2.addActionListener(readWorkloadListener);\r\n btnRun.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent event) {\r\n \tif(\"i\"==mode){\r\n \t\tif(physicalTopologyFile==null || physicalTopologyFile.isEmpty()){\r\n \t\t\tJOptionPane.showMessageDialog(panel, \"Please select physicalTopologyFile\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(deploymentFile==null || deploymentFile.isEmpty()){\r\n \t\t\tJOptionPane.showMessageDialog(panel, \"Please select deploymentFile\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(workloads_background==null || workloads_background.isEmpty()){\r\n \t\t\tJOptionPane.showMessageDialog(panel, \"Please select workloads_background\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(workloads==null || workloads.isEmpty()){\r\n \t\t\tJOptionPane.showMessageDialog(panel, \"Please select workloads\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t// run simulation\r\n \t\tSDNRun run = new SDNRun(physicalTopologyFile, deploymentFile, \r\n \t\t\t\t\t\t\t\tworkloads_background, workloads, GraphicSDN.this);\r\n\r\n \t\t\r\n\t\t }else if(\"m\"==mode){\r\n\t\t \t\r\n\t\t }\r\n \t\r\n }\r\n });\r\n btnExit.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent event) {\r\n System.exit(0);\r\n }\r\n\r\n }); \r\n\r\n toolbar.add(btnHost);\r\n toolbar.add(btnHedge);\r\n toolbar.add(btnHopen);\r\n toolbar.add(btnHsave);\r\n toolbar.addSeparator();\r\n toolbar.add(btnVm);\r\n toolbar.add(btnVedge);\r\n toolbar.add(btnVopen);\r\n toolbar.add(btnVsave);\r\n \r\n toolbar.add(btnPhy);\r\n toolbar.add(btnVir);\r\n toolbar.add(btnWl1);\r\n toolbar.add(btnWl2);\r\n toolbar.addSeparator();\r\n \r\n toolbar.add(btnRun);\r\n toolbar.add(btnExit);\r\n\r\n panel.add(toolbar);\r\n \r\n contentPane.add(panel, BorderLayout.NORTH);\r\n //---------- End Creating project tool bar ----------\r\n \r\n \r\n \r\n \t//---------- Start Creating project menu bar ----------\r\n \t//1-1\r\n JMenuBar menubar = new JMenuBar();\r\n //ImageIcon iconNew = new ImageIcon(getClass().getResource(\"/src/new.png\"));\r\n\r\n //2-1\r\n JMenu graph = new JMenu(\"Graph\");\r\n graph.setMnemonic(KeyEvent.VK_G);\r\n \r\n //Graph by importing json and cvs files\r\n final JMenuItem MiPhy = new JMenuItem(\"Physical Topology\");\r\n final JMenuItem MiVir = new JMenuItem(\"Virtual Topology\");\r\n final JMenuItem MiWl1 = new JMenuItem(\"Workload Background\");\r\n final JMenuItem MiWl2 = new JMenuItem(\"Workload\");\r\n //Graph drawing elements\r\n final JMenu MuPhy = new JMenu(\"Physical\");\r\n JMenuItem MiPhyNode = new JMenuItem(\"Add Node\");\r\n JMenuItem MiPhyEdge = new JMenuItem(\"Add Edge\");\r\n JMenuItem MiPhyOpen = new JMenuItem(\"Import Physical Topology\");\r\n JMenuItem MiPhySave = new JMenuItem(\"Save Physical Topology\");\r\n MuPhy.add(MiPhyNode);\r\n MuPhy.add(MiPhyEdge);\r\n MuPhy.add(MiPhyOpen);\r\n MuPhy.add(MiPhySave);\r\n final JMenu MuVir = new JMenu(\"Virtual\");\r\n JMenuItem MiVirNode = new JMenuItem(\"Add Node\");\r\n JMenuItem MiVirEdge = new JMenuItem(\"Add Edge\");\r\n JMenuItem MiVirOpen = new JMenuItem(\"Import Virtual Topology\");\r\n JMenuItem MiVirSave = new JMenuItem(\"Save Virtual Topology\");\r\n MuVir.add(MiVirNode);\r\n MuVir.add(MiVirEdge); \r\n MuVir.add(MiVirOpen);\r\n MuVir.add(MiVirSave);\r\n \r\n \r\n MiPhy.addActionListener(readPhyTopoListener);\r\n MiVir.addActionListener(readVirTopoListener);\r\n MiWl1.addActionListener(readWorkloadBkListener);\r\n MiWl2.addActionListener(readWorkloadListener);\r\n \r\n MiPhyNode.addActionListener(addPhysicalNodeListener);\r\n MiPhyEdge.addActionListener(addPhysicalEdgeListener);\r\n MiPhyOpen.addActionListener(importPhyTopoListener);\r\n MiPhySave.addActionListener(savePhyTopoListener);\r\n MiVirNode.addActionListener(addVirtualNodeListener);\r\n MiVirEdge.addActionListener(addVirtualEdgeListener);\r\n MiVirOpen.addActionListener(importVirTopoListener);\r\n MiVirSave.addActionListener(saveVirTopoListener);\r\n\r\n graph.add(MuPhy);\r\n graph.add(MuVir);\r\n graph.add(MiPhy);\r\n graph.add(MiVir);\r\n graph.add(MiWl1);\r\n graph.add(MiWl2);\r\n\r\n //2-2\r\n JMenu view = new JMenu(\"View\");\r\n view.setMnemonic(KeyEvent.VK_F);\r\n \r\n //switch mode between manual mode (to create graph by hand) and import mode (to create graph from file)\r\n\t\tActionListener actionSwitcher = new ActionListener() {\r\n\t\t public void actionPerformed(ActionEvent e) {\r\n\t\t try {\r\n\t\t \t String cmd = e.getActionCommand();\r\n\t\t \t if(\"Canvas\" == cmd){\r\n\t\t \t \tbtnHost.setVisible(true);\r\n\t\t \t \tbtnHedge.setVisible(true);\r\n\t\t \t \tbtnHopen.setVisible(true);\r\n\t\t \t \tbtnHsave.setVisible(true);\r\n\t\t \t \tbtnVm.setVisible(true);\r\n\t\t \t \tbtnVedge.setVisible(true);\r\n\t\t \t \tbtnVopen.setVisible(true);\r\n\t\t \t \tbtnVsave.setVisible(true);\r\n\t\t \t \tbtnPhy.setVisible(false);\r\n\t\t \t \tbtnVir.setVisible(false);\r\n\t\t \t \tbtnWl1.setVisible(false);\r\n\t\t \t \tbtnWl2.setVisible(false);\r\n\t\t \t \t\r\n\t\t \t \tMiPhy.setVisible(false);\r\n\t\t \t \tMiVir.setVisible(false);\r\n\t\t \t \tMiWl1.setVisible(false);\r\n\t\t \t \tMiWl2.setVisible(false);\r\n\t\t \t \tMuPhy.setVisible(true);\r\n\t\t \t \tMuVir.setVisible(true);\r\n\t\t \t \t\r\n\t\t \t \tbtnRun.setVisible(false);\r\n\t\t \t \tbtnRun.setEnabled(false);\r\n\t\t \t \t\r\n\t\t \t \tmode = \"m\";\r\n\t\t \t \t\r\n\t\t \t }else if(\"Execution\" == cmd){\r\n\t\t \t \tbtnHost.setVisible(false);\r\n\t\t \t \tbtnHedge.setVisible(false);\r\n\t\t \t \tbtnHopen.setVisible(false);\r\n\t\t \t \tbtnHsave.setVisible(false);\r\n\t\t \t \tbtnVm.setVisible(false);\r\n\t\t \t \tbtnVedge.setVisible(false);\r\n\t\t \t \tbtnVopen.setVisible(false);\r\n\t\t \t \tbtnVsave.setVisible(false);\r\n\t\t \t \tbtnPhy.setVisible(true);\r\n\t\t \t \tbtnVir.setVisible(true);\r\n\t\t \t \tbtnWl1.setVisible(true);\r\n\t\t \t \tbtnWl2.setVisible(true);\r\n\t\t \t \t\r\n\t\t \t \tMiPhy.setVisible(true);\r\n\t\t \t \tMiVir.setVisible(true);\r\n\t\t \t \tMiWl1.setVisible(true);\r\n\t\t \t \tMiWl2.setVisible(true);\r\n\t\t \t \tMuPhy.setVisible(false);\r\n\t\t \t \tMuVir.setVisible(false);\r\n\t\t \t \t\r\n\t\t \t \tbtnRun.setVisible(true);\r\n\t\t \t \tbtnRun.setEnabled(false);\r\n\t\t \t \t\r\n\t\t \t \tmode = \"i\";\r\n\t\t \t }\r\n\t\t \t //System.out.println(e.getActionCommand());\r\n\t\t } catch (Exception ex) {\r\n\t\t ex.printStackTrace();\r\n\t\t }\r\n\t\t }\r\n\t\t};\r\n JRadioButtonMenuItem manualMode = new JRadioButtonMenuItem(\"Canvas\");\r\n manualMode.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_U, ActionEvent.CTRL_MASK));\r\n manualMode.addActionListener(actionSwitcher);\r\n JRadioButtonMenuItem importMode = new JRadioButtonMenuItem(\"Execution\");\r\n importMode.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_I, ActionEvent.CTRL_MASK));\r\n importMode.addActionListener(actionSwitcher);\r\n ButtonGroup group = new ButtonGroup();\r\n group.add(manualMode);\r\n group.add(importMode);\r\n \r\n JMenuItem fileExit = new JMenuItem(\"Exit\");\r\n fileExit.setMnemonic(KeyEvent.VK_C);\r\n fileExit.setToolTipText(\"Exit CloudSim\");\r\n fileExit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,\r\n ActionEvent.CTRL_MASK));\r\n\r\n fileExit.addActionListener(new ActionListener() {\r\n public void actionPerformed(ActionEvent event) {\r\n System.exit(0);\r\n }\r\n\r\n });\r\n\r\n view.add(manualMode);\r\n view.add(importMode);\r\n view.addSeparator();\r\n view.add(fileExit); \r\n\r\n \r\n //3-1\r\n menubar.add(view);\r\n menubar.add(graph);\r\n\r\n //4-1\r\n setJMenuBar(menubar);\r\n //----- End Creating project menu bar -----\r\n \r\n \r\n \r\n //----- Start Initialize menu and tool bar -----\r\n manualMode.setSelected(true);\r\n mode = \"m\";\r\n \r\n btnHost.setVisible(true);\r\n \tbtnHedge.setVisible(true);\r\n \tbtnHopen.setVisible(true);\r\n \tbtnHsave.setVisible(true);\r\n \tbtnVm.setVisible(true);\r\n \tbtnVedge.setVisible(true);\r\n \tbtnVopen.setVisible(true);\r\n \tbtnVsave.setVisible(true);\r\n \tbtnPhy.setVisible(false);\r\n \tbtnVir.setVisible(false);\r\n \tbtnWl1.setVisible(false);\r\n \tbtnWl2.setVisible(false);\r\n \t\r\n \tMiPhy.setVisible(false);\r\n \tMiVir.setVisible(false);\r\n \tMiWl1.setVisible(false);\r\n \tMiWl2.setVisible(false);\r\n \tMuPhy.setVisible(true);\r\n \tMuVir.setVisible(true);\r\n \t\r\n \tbtnRun.setVisible(false);\r\n \tbtnRun.setEnabled(false);\r\n //----- End Initialize menu and tool bar -----\r\n\r\n }", "private void initComponents() {\r\n\r\n minifierTabPane = new javax.swing.JTabbedPane();\r\n javaScriptTabPanel = new javax.swing.JPanel();\r\n newJSFile1 = new javax.swing.JCheckBox();\r\n jsObfuscate1 = new javax.swing.JCheckBox();\r\n preExtensionJS_Label1 = new javax.swing.JLabel();\r\n separatorJS_Label1 = new javax.swing.JLabel();\r\n preExtensionJS1 = new javax.swing.JTextField();\r\n separatorJS1 = new javax.swing.JTextField();\r\n autoMinifyJS1 = new javax.swing.JCheckBox();\r\n headerPaneJS1 = new javax.swing.JLayeredPane();\r\n headerLabelJS1 = new javax.swing.JLabel();\r\n headerScrollPaneJS1 = new javax.swing.JScrollPane();\r\n headerEditorPaneJS1 = new javax.swing.JEditorPane();\r\n cssTabPanel = new javax.swing.JPanel();\r\n newCSSFile1 = new javax.swing.JCheckBox();\r\n preExtensionCSS_Label1 = new javax.swing.JLabel();\r\n separatorCSS_Label1 = new javax.swing.JLabel();\r\n preExtensionCSS1 = new javax.swing.JTextField();\r\n separatorCSS1 = new javax.swing.JTextField();\r\n autoMinifyCSS1 = new javax.swing.JCheckBox();\r\n headerPaneCSS1 = new javax.swing.JLayeredPane();\r\n headerLabelCSS1 = new javax.swing.JLabel();\r\n headerScrollPaneCSS1 = new javax.swing.JScrollPane();\r\n headerEditorPaneCSS1 = new javax.swing.JEditorPane();\r\n htmlTabPanel = new javax.swing.JPanel();\r\n newHTMLFile = new javax.swing.JCheckBox();\r\n preExtensionHTML_Label = new javax.swing.JLabel();\r\n separatorHTML_Label = new javax.swing.JLabel();\r\n preExtensionHTML = new javax.swing.JTextField();\r\n separatorHTML = new javax.swing.JTextField();\r\n buildInternalJSMinify = new javax.swing.JCheckBox();\r\n buildInternalCSSMinify = new javax.swing.JCheckBox();\r\n autoMinifyHTML = new javax.swing.JCheckBox();\r\n headerPaneHTML = new javax.swing.JLayeredPane();\r\n headerLabelHTML = new javax.swing.JLabel();\r\n headerScrollPaneHTML = new javax.swing.JScrollPane();\r\n headerEditorPaneHTML = new javax.swing.JEditorPane();\r\n xmlTabPanel = new javax.swing.JPanel();\r\n newXMLFile = new javax.swing.JCheckBox();\r\n preExtensionXML_Label = new javax.swing.JLabel();\r\n separatorXML_Label = new javax.swing.JLabel();\r\n preExtensionXML = new javax.swing.JTextField();\r\n separatorXML = new javax.swing.JTextField();\r\n autoMinifyXML = new javax.swing.JCheckBox();\r\n headerPaneXML = new javax.swing.JLayeredPane();\r\n headerLabelXML = new javax.swing.JLabel();\r\n headerScrollPaneXML = new javax.swing.JScrollPane();\r\n headerEditorPaneXML = new javax.swing.JEditorPane();\r\n jsonTabPanel = new javax.swing.JPanel();\r\n newJSONFile = new javax.swing.JCheckBox();\r\n preExtensionJSON_Label = new javax.swing.JLabel();\r\n separatorJSON_Label = new javax.swing.JLabel();\r\n preExtensionJSON = new javax.swing.JTextField();\r\n separatorJSON = new javax.swing.JTextField();\r\n autoMinifyJSON = new javax.swing.JCheckBox();\r\n headerPaneJSON = new javax.swing.JLayeredPane();\r\n headerLabelJSON = new javax.swing.JLabel();\r\n headerScrollPaneJSON = new javax.swing.JScrollPane();\r\n headerEditorPaneJSON = new javax.swing.JEditorPane();\r\n projectBuildTabPanel = new javax.swing.JPanel();\r\n jLayeredPane6 = new javax.swing.JLayeredPane();\r\n separatBuild = new javax.swing.JCheckBox();\r\n jLabel7 = new javax.swing.JLabel();\r\n buildJSMinify = new javax.swing.JCheckBox();\r\n buildCSSMinify = new javax.swing.JCheckBox();\r\n skipPreExtensionJS = new javax.swing.JCheckBox();\r\n skipPreExtensionCSS = new javax.swing.JCheckBox();\r\n jLabel6 = new javax.swing.JLabel();\r\n buildHTMLMinify = new javax.swing.JCheckBox();\r\n skipPreExtensionHTML = new javax.swing.JCheckBox();\r\n buildXMLMinify = new javax.swing.JCheckBox();\r\n skipPreExtensionXML = new javax.swing.JCheckBox();\r\n buildJSONMinify = new javax.swing.JCheckBox();\r\n skipPreExtensionJSON = new javax.swing.JCheckBox();\r\n jLayeredPane8 = new javax.swing.JLayeredPane();\r\n addLogToFile = new javax.swing.JCheckBox();\r\n enableOutputLogAlert = new javax.swing.JCheckBox();\r\n jLayeredPane10 = new javax.swing.JLayeredPane();\r\n enableShortKeyAction = new javax.swing.JCheckBox();\r\n enableShortKeyActionConfirmBox = new javax.swing.JCheckBox();\r\n\r\n setAlignmentX(0.0F);\r\n setAlignmentY(0.0F);\r\n setPreferredSize(new java.awt.Dimension(710, 430));\r\n\r\n minifierTabPane.setPreferredSize(new java.awt.Dimension(30, 30));\r\n\r\n newJSFile1.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(newJSFile1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newJSFile1.text\")); // NOI18N\r\n newJSFile1.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newJSFile1.toolTipText\")); // NOI18N\r\n newJSFile1.setOpaque(false);\r\n\r\n jsObfuscate1.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(jsObfuscate1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.jsObfuscate1.text\")); // NOI18N\r\n jsObfuscate1.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(preExtensionJS_Label1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionJS_Label1.text\")); // NOI18N\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(separatorJS_Label1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorJS_Label1.text\")); // NOI18N\r\n\r\n preExtensionJS1.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionJS1.text\")); // NOI18N\r\n\r\n separatorJS1.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorJS1.text\")); // NOI18N\r\n separatorJS1.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorJS1.toolTipText\")); // NOI18N\r\n\r\n autoMinifyJS1.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(autoMinifyJS1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.autoMinifyJS1.text\")); // NOI18N\r\n autoMinifyJS1.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(headerLabelJS1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerLabelJS1.text\")); // NOI18N\r\n\r\n headerEditorPaneJS1.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerEditorPaneJS1.toolTipText\")); // NOI18N\r\n headerScrollPaneJS1.setViewportView(headerEditorPaneJS1);\r\n\r\n headerPaneJS1.setLayer(headerLabelJS1, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n headerPaneJS1.setLayer(headerScrollPaneJS1, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n\r\n javax.swing.GroupLayout headerPaneJS1Layout = new javax.swing.GroupLayout(headerPaneJS1);\r\n headerPaneJS1.setLayout(headerPaneJS1Layout);\r\n headerPaneJS1Layout.setHorizontalGroup(\r\n headerPaneJS1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneJS1Layout.createSequentialGroup()\r\n .addComponent(headerLabelJS1)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(headerScrollPaneJS1, javax.swing.GroupLayout.PREFERRED_SIZE, 320, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n headerPaneJS1Layout.setVerticalGroup(\r\n headerPaneJS1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneJS1Layout.createSequentialGroup()\r\n .addComponent(headerLabelJS1)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(headerScrollPaneJS1, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)\r\n );\r\n\r\n javax.swing.GroupLayout javaScriptTabPanelLayout = new javax.swing.GroupLayout(javaScriptTabPanel);\r\n javaScriptTabPanel.setLayout(javaScriptTabPanelLayout);\r\n javaScriptTabPanelLayout.setHorizontalGroup(\r\n javaScriptTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javaScriptTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(javaScriptTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(autoMinifyJS1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(javaScriptTabPanelLayout.createSequentialGroup()\r\n .addComponent(newJSFile1, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(preExtensionJS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(preExtensionJS1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(javaScriptTabPanelLayout.createSequentialGroup()\r\n .addComponent(jsObfuscate1, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(44, 44, 44)\r\n .addComponent(separatorJS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, 0)\r\n .addComponent(separatorJS1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addComponent(headerPaneJS1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addContainerGap(323, Short.MAX_VALUE))\r\n );\r\n javaScriptTabPanelLayout.setVerticalGroup(\r\n javaScriptTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javaScriptTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(autoMinifyJS1)\r\n .addGap(18, 18, 18)\r\n .addGroup(javaScriptTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javaScriptTabPanelLayout.createSequentialGroup()\r\n .addComponent(newJSFile1)\r\n .addGap(0, 0, 0)\r\n .addGroup(javaScriptTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jsObfuscate1)\r\n .addComponent(separatorJS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(separatorJS1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGroup(javaScriptTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(preExtensionJS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(preExtensionJS1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n .addGap(45, 45, 45)\r\n .addComponent(headerPaneJS1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(93, Short.MAX_VALUE))\r\n );\r\n\r\n minifierTabPane.addTab(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.javaScriptTabPanel.TabConstraints.tabTitle\"), javaScriptTabPanel); // NOI18N\r\n\r\n newCSSFile1.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(newCSSFile1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newCSSFile1.text\")); // NOI18N\r\n newCSSFile1.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newCSSFile1.toolTipText\")); // NOI18N\r\n newCSSFile1.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(preExtensionCSS_Label1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionCSS_Label1.text\")); // NOI18N\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(separatorCSS_Label1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorCSS_Label1.text\")); // NOI18N\r\n\r\n preExtensionCSS1.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionCSS1.text\")); // NOI18N\r\n\r\n separatorCSS1.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorCSS1.text\")); // NOI18N\r\n separatorCSS1.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorCSS1.toolTipText\")); // NOI18N\r\n\r\n autoMinifyCSS1.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(autoMinifyCSS1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.autoMinifyCSS1.text\")); // NOI18N\r\n autoMinifyCSS1.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(headerLabelCSS1, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerLabelCSS1.text\")); // NOI18N\r\n\r\n headerEditorPaneCSS1.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerEditorPaneCSS1.toolTipText\")); // NOI18N\r\n headerScrollPaneCSS1.setViewportView(headerEditorPaneCSS1);\r\n\r\n headerPaneCSS1.setLayer(headerLabelCSS1, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n headerPaneCSS1.setLayer(headerScrollPaneCSS1, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n\r\n javax.swing.GroupLayout headerPaneCSS1Layout = new javax.swing.GroupLayout(headerPaneCSS1);\r\n headerPaneCSS1.setLayout(headerPaneCSS1Layout);\r\n headerPaneCSS1Layout.setHorizontalGroup(\r\n headerPaneCSS1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneCSS1Layout.createSequentialGroup()\r\n .addComponent(headerLabelCSS1)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(headerScrollPaneCSS1))\r\n );\r\n headerPaneCSS1Layout.setVerticalGroup(\r\n headerPaneCSS1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneCSS1Layout.createSequentialGroup()\r\n .addComponent(headerLabelCSS1)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(headerScrollPaneCSS1, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)\r\n );\r\n\r\n javax.swing.GroupLayout cssTabPanelLayout = new javax.swing.GroupLayout(cssTabPanel);\r\n cssTabPanel.setLayout(cssTabPanelLayout);\r\n cssTabPanelLayout.setHorizontalGroup(\r\n cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(cssTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addGroup(cssTabPanelLayout.createSequentialGroup()\r\n .addComponent(newCSSFile1)\r\n .addGap(18, 18, 18)\r\n .addGroup(cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(cssTabPanelLayout.createSequentialGroup()\r\n .addComponent(preExtensionCSS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(preExtensionCSS1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(cssTabPanelLayout.createSequentialGroup()\r\n .addComponent(separatorCSS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(separatorCSS1, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addComponent(headerPaneCSS1))\r\n .addComponent(autoMinifyCSS1, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)))\r\n );\r\n cssTabPanelLayout.setVerticalGroup(\r\n cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(cssTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(autoMinifyCSS1)\r\n .addGap(18, 18, 18)\r\n .addGroup(cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(newCSSFile1)\r\n .addComponent(preExtensionCSS1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(preExtensionCSS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(cssTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(separatorCSS_Label1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(separatorCSS1, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(26, 26, 26)\r\n .addComponent(headerPaneCSS1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n\r\n minifierTabPane.addTab(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.cssTabPanel.TabConstraints.tabTitle\"), cssTabPanel); // NOI18N\r\n\r\n newHTMLFile.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(newHTMLFile, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newHTMLFile.text\")); // NOI18N\r\n newHTMLFile.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newHTMLFile.toolTipText\")); // NOI18N\r\n newHTMLFile.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(preExtensionHTML_Label, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionHTML_Label.text\")); // NOI18N\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(separatorHTML_Label, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorHTML_Label.text\")); // NOI18N\r\n\r\n preExtensionHTML.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionHTML.text\")); // NOI18N\r\n\r\n separatorHTML.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorHTML.text\")); // NOI18N\r\n separatorHTML.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorHTML.toolTipText\")); // NOI18N\r\n\r\n buildInternalJSMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildInternalJSMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildInternalJSMinify.text\")); // NOI18N\r\n buildInternalJSMinify.setOpaque(false);\r\n\r\n buildInternalCSSMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildInternalCSSMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildInternalCSSMinify.text\")); // NOI18N\r\n buildInternalCSSMinify.setOpaque(false);\r\n\r\n autoMinifyHTML.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(autoMinifyHTML, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.autoMinifyHTML.text\")); // NOI18N\r\n autoMinifyHTML.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(headerLabelHTML, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerLabelHTML.text\")); // NOI18N\r\n\r\n headerEditorPaneHTML.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerEditorPaneHTML.toolTipText\")); // NOI18N\r\n headerScrollPaneHTML.setViewportView(headerEditorPaneHTML);\r\n\r\n headerPaneHTML.setLayer(headerLabelHTML, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n headerPaneHTML.setLayer(headerScrollPaneHTML, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n\r\n javax.swing.GroupLayout headerPaneHTMLLayout = new javax.swing.GroupLayout(headerPaneHTML);\r\n headerPaneHTML.setLayout(headerPaneHTMLLayout);\r\n headerPaneHTMLLayout.setHorizontalGroup(\r\n headerPaneHTMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneHTMLLayout.createSequentialGroup()\r\n .addComponent(headerLabelHTML)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(headerScrollPaneHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 366, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n headerPaneHTMLLayout.setVerticalGroup(\r\n headerPaneHTMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneHTMLLayout.createSequentialGroup()\r\n .addComponent(headerLabelHTML)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(headerScrollPaneHTML, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)\r\n );\r\n\r\n javax.swing.GroupLayout htmlTabPanelLayout = new javax.swing.GroupLayout(htmlTabPanel);\r\n htmlTabPanel.setLayout(htmlTabPanelLayout);\r\n htmlTabPanelLayout.setHorizontalGroup(\r\n htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(htmlTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(autoMinifyHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(htmlTabPanelLayout.createSequentialGroup()\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(newHTMLFile, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(buildInternalJSMinify, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(preExtensionHTML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(htmlTabPanelLayout.createSequentialGroup()\r\n .addGap(10, 10, 10)\r\n .addComponent(separatorHTML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(separatorHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(preExtensionHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)))))\r\n .addComponent(buildInternalCSSMinify, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(headerPaneHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\r\n .addContainerGap(284, Short.MAX_VALUE))\r\n );\r\n htmlTabPanelLayout.setVerticalGroup(\r\n htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(htmlTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(autoMinifyHTML)\r\n .addGap(18, 18, 18)\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(htmlTabPanelLayout.createSequentialGroup()\r\n .addComponent(newHTMLFile)\r\n .addGap(0, 0, 0)\r\n .addComponent(buildInternalJSMinify)\r\n .addGap(0, 0, 0)\r\n .addComponent(buildInternalCSSMinify))\r\n .addGroup(htmlTabPanelLayout.createSequentialGroup()\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(preExtensionHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(preExtensionHTML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(4, 4, 4)\r\n .addGroup(htmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(separatorHTML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(separatorHTML, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addGap(18, 18, 18)\r\n .addComponent(headerPaneHTML, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(96, Short.MAX_VALUE))\r\n );\r\n\r\n minifierTabPane.addTab(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.htmlTabPanel.TabConstraints.tabTitle\"), htmlTabPanel); // NOI18N\r\n\r\n newXMLFile.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(newXMLFile, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newXMLFile.text\")); // NOI18N\r\n newXMLFile.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newXMLFile.toolTipText\")); // NOI18N\r\n newXMLFile.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(preExtensionXML_Label, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionXML_Label.text\")); // NOI18N\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(separatorXML_Label, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorXML_Label.text\")); // NOI18N\r\n\r\n preExtensionXML.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionXML.text\")); // NOI18N\r\n\r\n separatorXML.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorXML.text\")); // NOI18N\r\n separatorXML.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorXML.toolTipText\")); // NOI18N\r\n\r\n autoMinifyXML.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(autoMinifyXML, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.autoMinifyXML.text\")); // NOI18N\r\n autoMinifyXML.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(headerLabelXML, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerLabelXML.text\")); // NOI18N\r\n\r\n headerEditorPaneXML.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerEditorPaneXML.toolTipText\")); // NOI18N\r\n headerScrollPaneXML.setViewportView(headerEditorPaneXML);\r\n\r\n headerPaneXML.setLayer(headerLabelXML, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n headerPaneXML.setLayer(headerScrollPaneXML, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n\r\n javax.swing.GroupLayout headerPaneXMLLayout = new javax.swing.GroupLayout(headerPaneXML);\r\n headerPaneXML.setLayout(headerPaneXMLLayout);\r\n headerPaneXMLLayout.setHorizontalGroup(\r\n headerPaneXMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneXMLLayout.createSequentialGroup()\r\n .addComponent(headerLabelXML)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(headerScrollPaneXML))\r\n );\r\n headerPaneXMLLayout.setVerticalGroup(\r\n headerPaneXMLLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneXMLLayout.createSequentialGroup()\r\n .addComponent(headerLabelXML)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(headerScrollPaneXML, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)\r\n );\r\n\r\n javax.swing.GroupLayout xmlTabPanelLayout = new javax.swing.GroupLayout(xmlTabPanel);\r\n xmlTabPanel.setLayout(xmlTabPanelLayout);\r\n xmlTabPanelLayout.setHorizontalGroup(\r\n xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(xmlTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(autoMinifyXML, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(xmlTabPanelLayout.createSequentialGroup()\r\n .addComponent(newXMLFile)\r\n .addGap(56, 56, 56)\r\n .addGroup(xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(xmlTabPanelLayout.createSequentialGroup()\r\n .addComponent(preExtensionXML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, 0)\r\n .addComponent(preExtensionXML, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(xmlTabPanelLayout.createSequentialGroup()\r\n .addComponent(separatorXML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(10, 10, 10)\r\n .addComponent(separatorXML, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addComponent(headerPaneXML))\r\n .addGap(292, 292, 292))\r\n );\r\n xmlTabPanelLayout.setVerticalGroup(\r\n xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(xmlTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(autoMinifyXML)\r\n .addGap(18, 18, 18)\r\n .addGroup(xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(newXMLFile)\r\n .addGroup(xmlTabPanelLayout.createSequentialGroup()\r\n .addGroup(xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(preExtensionXML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(preExtensionXML, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(6, 6, 6)\r\n .addGroup(xmlTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(separatorXML_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(separatorXML, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addGap(49, 49, 49)\r\n .addComponent(headerPaneXML, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(91, Short.MAX_VALUE))\r\n );\r\n\r\n minifierTabPane.addTab(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.xmlTabPanel.TabConstraints.tabTitle\"), xmlTabPanel); // NOI18N\r\n\r\n newJSONFile.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(newJSONFile, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newJSONFile.text\")); // NOI18N\r\n newJSONFile.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.newJSONFile.toolTipText\")); // NOI18N\r\n newJSONFile.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(preExtensionJSON_Label, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionJSON_Label.text\")); // NOI18N\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(separatorJSON_Label, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorJSON_Label.text\")); // NOI18N\r\n\r\n preExtensionJSON.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.preExtensionJSON.text\")); // NOI18N\r\n\r\n separatorJSON.setText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorJSON.text\")); // NOI18N\r\n separatorJSON.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatorJSON.toolTipText\")); // NOI18N\r\n\r\n autoMinifyJSON.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(autoMinifyJSON, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.autoMinifyJSON.text\")); // NOI18N\r\n autoMinifyJSON.setOpaque(false);\r\n\r\n org.openide.awt.Mnemonics.setLocalizedText(headerLabelJSON, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerLabelJSON.text\")); // NOI18N\r\n\r\n headerEditorPaneJSON.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.headerEditorPaneJSON.toolTipText\")); // NOI18N\r\n headerScrollPaneJSON.setViewportView(headerEditorPaneJSON);\r\n\r\n headerPaneJSON.setLayer(headerLabelJSON, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n headerPaneJSON.setLayer(headerScrollPaneJSON, javax.swing.JLayeredPane.DEFAULT_LAYER);\r\n\r\n javax.swing.GroupLayout headerPaneJSONLayout = new javax.swing.GroupLayout(headerPaneJSON);\r\n headerPaneJSON.setLayout(headerPaneJSONLayout);\r\n headerPaneJSONLayout.setHorizontalGroup(\r\n headerPaneJSONLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneJSONLayout.createSequentialGroup()\r\n .addComponent(headerLabelJSON)\r\n .addGap(18, 18, 18)\r\n .addComponent(headerScrollPaneJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 351, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n headerPaneJSONLayout.setVerticalGroup(\r\n headerPaneJSONLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(headerPaneJSONLayout.createSequentialGroup()\r\n .addComponent(headerLabelJSON)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n .addComponent(headerScrollPaneJSON, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)\r\n );\r\n\r\n javax.swing.GroupLayout jsonTabPanelLayout = new javax.swing.GroupLayout(jsonTabPanel);\r\n jsonTabPanel.setLayout(jsonTabPanelLayout);\r\n jsonTabPanelLayout.setHorizontalGroup(\r\n jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jsonTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(autoMinifyJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jsonTabPanelLayout.createSequentialGroup()\r\n .addComponent(newJSONFile, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jsonTabPanelLayout.createSequentialGroup()\r\n .addComponent(preExtensionJSON_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(preExtensionJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jsonTabPanelLayout.createSequentialGroup()\r\n .addComponent(separatorJSON_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(separatorJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addComponent(headerPaneJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\r\n .addGap(292, 292, 292))\r\n );\r\n jsonTabPanelLayout.setVerticalGroup(\r\n jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jsonTabPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(autoMinifyJSON)\r\n .addGap(18, 18, 18)\r\n .addGroup(jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(newJSONFile)\r\n .addGroup(jsonTabPanelLayout.createSequentialGroup()\r\n .addGroup(jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(preExtensionJSON_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(preExtensionJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addGroup(jsonTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(separatorJSON_Label, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(separatorJSON, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addGap(18, 18, 18)\r\n .addComponent(headerPaneJSON, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(122, Short.MAX_VALUE))\r\n );\r\n\r\n minifierTabPane.addTab(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.jsonTabPanel.TabConstraints.tabTitle\"), jsonTabPanel); // NOI18N\r\n\r\n separatBuild.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(separatBuild, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatBuild.text\")); // NOI18N\r\n separatBuild.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatBuild.toolTipText\")); // NOI18N\r\n separatBuild.setActionCommand(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.separatBuild.actionCommand\")); // NOI18N\r\n separatBuild.setOpaque(false);\r\n jLayeredPane6.add(separatBuild);\r\n separatBuild.setBounds(50, 40, 190, 24);\r\n\r\n jLabel7.setFont(new java.awt.Font(\"Arial\", 1, 10)); // NOI18N\r\n jLabel7.setForeground(new java.awt.Color(51, 51, 51));\r\n org.openide.awt.Mnemonics.setLocalizedText(jLabel7, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.jLabel7.text\")); // NOI18N\r\n jLayeredPane6.add(jLabel7);\r\n jLabel7.setBounds(50, 80, 292, 13);\r\n\r\n buildJSMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildJSMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildJSMinify.text\")); // NOI18N\r\n buildJSMinify.setOpaque(false);\r\n jLayeredPane6.add(buildJSMinify);\r\n buildJSMinify.setBounds(50, 100, 110, 24);\r\n\r\n buildCSSMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildCSSMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildCSSMinify.text\")); // NOI18N\r\n buildCSSMinify.setOpaque(false);\r\n jLayeredPane6.add(buildCSSMinify);\r\n buildCSSMinify.setBounds(50, 130, 140, 24);\r\n\r\n skipPreExtensionJS.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(skipPreExtensionJS, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionJS.text\")); // NOI18N\r\n skipPreExtensionJS.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionJS.toolTipText\")); // NOI18N\r\n skipPreExtensionJS.setOpaque(false);\r\n jLayeredPane6.add(skipPreExtensionJS);\r\n skipPreExtensionJS.setBounds(250, 100, 300, 24);\r\n\r\n skipPreExtensionCSS.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(skipPreExtensionCSS, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionCSS.text\")); // NOI18N\r\n skipPreExtensionCSS.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionCSS.toolTipText\")); // NOI18N\r\n skipPreExtensionCSS.setOpaque(false);\r\n jLayeredPane6.add(skipPreExtensionCSS);\r\n skipPreExtensionCSS.setBounds(250, 130, 300, 24);\r\n\r\n jLabel6.setForeground(new java.awt.Color(102, 102, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.jLabel6.text\")); // NOI18N\r\n jLayeredPane6.add(jLabel6);\r\n jLabel6.setBounds(230, 10, 260, 16);\r\n\r\n buildHTMLMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildHTMLMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildHTMLMinify.text\")); // NOI18N\r\n buildHTMLMinify.setOpaque(false);\r\n jLayeredPane6.add(buildHTMLMinify);\r\n buildHTMLMinify.setBounds(50, 160, 170, 24);\r\n\r\n skipPreExtensionHTML.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(skipPreExtensionHTML, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionHTML.text\")); // NOI18N\r\n skipPreExtensionHTML.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionHTML.toolTipText\")); // NOI18N\r\n skipPreExtensionHTML.setOpaque(false);\r\n jLayeredPane6.add(skipPreExtensionHTML);\r\n skipPreExtensionHTML.setBounds(250, 160, 310, 24);\r\n\r\n buildXMLMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildXMLMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildXMLMinify.text\")); // NOI18N\r\n buildXMLMinify.setOpaque(false);\r\n jLayeredPane6.add(buildXMLMinify);\r\n buildXMLMinify.setBounds(50, 190, 89, 24);\r\n\r\n skipPreExtensionXML.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(skipPreExtensionXML, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionXML.text\")); // NOI18N\r\n skipPreExtensionXML.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionXML.toolTipText\")); // NOI18N\r\n skipPreExtensionXML.setOpaque(false);\r\n jLayeredPane6.add(skipPreExtensionXML);\r\n skipPreExtensionXML.setBounds(250, 190, 320, 24);\r\n\r\n buildJSONMinify.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(buildJSONMinify, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.buildJSONMinify.text\")); // NOI18N\r\n buildJSONMinify.setOpaque(false);\r\n jLayeredPane6.add(buildJSONMinify);\r\n buildJSONMinify.setBounds(50, 220, 170, 24);\r\n\r\n skipPreExtensionJSON.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(skipPreExtensionJSON, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionJSON.text\")); // NOI18N\r\n skipPreExtensionJSON.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.skipPreExtensionJSON.toolTipText\")); // NOI18N\r\n skipPreExtensionJSON.setOpaque(false);\r\n jLayeredPane6.add(skipPreExtensionJSON);\r\n skipPreExtensionJSON.setBounds(250, 220, 310, 24);\r\n\r\n jLayeredPane8.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.jLayeredPane8.border.title\"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 1, 12), new java.awt.Color(102, 102, 102))); // NOI18N\r\n\r\n addLogToFile.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(addLogToFile, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.addLogToFile.text\")); // NOI18N\r\n addLogToFile.setOpaque(false);\r\n jLayeredPane8.add(addLogToFile);\r\n addLogToFile.setBounds(10, 20, 280, 24);\r\n\r\n enableOutputLogAlert.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(enableOutputLogAlert, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.enableOutputLogAlert.text\")); // NOI18N\r\n enableOutputLogAlert.setOpaque(false);\r\n jLayeredPane8.add(enableOutputLogAlert);\r\n enableOutputLogAlert.setBounds(10, 40, 390, 24);\r\n\r\n jLayeredPane10.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.jLayeredPane10.border.title\"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Dialog\", 1, 12), new java.awt.Color(102, 102, 102))); // NOI18N\r\n\r\n enableShortKeyAction.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(enableShortKeyAction, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.enableShortKeyAction.text\")); // NOI18N\r\n enableShortKeyAction.setOpaque(false);\r\n jLayeredPane10.add(enableShortKeyAction);\r\n enableShortKeyAction.setBounds(10, 20, 280, 20);\r\n\r\n enableShortKeyActionConfirmBox.setBackground(new java.awt.Color(255, 255, 255));\r\n org.openide.awt.Mnemonics.setLocalizedText(enableShortKeyActionConfirmBox, org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.enableShortKeyActionConfirmBox.text\")); // NOI18N\r\n enableShortKeyActionConfirmBox.setToolTipText(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.enableShortKeyActionConfirmBox.toolTipText\")); // NOI18N\r\n enableShortKeyActionConfirmBox.setOpaque(false);\r\n jLayeredPane10.add(enableShortKeyActionConfirmBox);\r\n enableShortKeyActionConfirmBox.setBounds(10, 40, 337, 20);\r\n\r\n javax.swing.GroupLayout projectBuildTabPanelLayout = new javax.swing.GroupLayout(projectBuildTabPanel);\r\n projectBuildTabPanel.setLayout(projectBuildTabPanelLayout);\r\n projectBuildTabPanelLayout.setHorizontalGroup(\r\n projectBuildTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 708, Short.MAX_VALUE)\r\n .addGroup(projectBuildTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(projectBuildTabPanelLayout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addGroup(projectBuildTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLayeredPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 580, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(projectBuildTabPanelLayout.createSequentialGroup()\r\n .addGap(50, 50, 50)\r\n .addGroup(projectBuildTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLayeredPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 410, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLayeredPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 410, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n );\r\n projectBuildTabPanelLayout.setVerticalGroup(\r\n projectBuildTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGap(0, 410, Short.MAX_VALUE)\r\n .addGroup(projectBuildTabPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(projectBuildTabPanelLayout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addComponent(jLayeredPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(10, 10, 10)\r\n .addComponent(jLayeredPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(10, 10, 10)\r\n .addComponent(jLayeredPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n );\r\n\r\n minifierTabPane.addTab(org.openide.util.NbBundle.getMessage(JSCSSMinifyCompressPanel.class, \"JSCSSMinifyCompressPanel.projectBuildTabPanel.TabConstraints.tabTitle\"), projectBuildTabPanel); // NOI18N\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\r\n this.setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(minifierTabPane, javax.swing.GroupLayout.PREFERRED_SIZE, 710, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(0, 0, Short.MAX_VALUE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(minifierTabPane, javax.swing.GroupLayout.PREFERRED_SIZE, 430, Short.MAX_VALUE)\r\n );\r\n }", "public void build()\n\t{\n\t\t// TODO: Is the order okay?\n\n\t\t// Frame\n\t\tthis.setDefaultCloseOperation(HIDE_ON_CLOSE);\n\t\tthis.contentPane = new JPanel();\n\t\tthis.contentPane.setLayout(new BorderLayout(0, 0));\n\t\tthis.setContentPane(contentPane);\n\n\t\t// Split pane\n\t\tthis.splitPane = new JSplitPane();\n\t\tthis.splitPane.setBorder(new EmptyBorder(0, 5, 5, 5));\n\t\tthis.contentPane.add(splitPane, BorderLayout.CENTER);\n\n\t\t// tree pane (left side)\n\t\tJPanel panel = new JPanel();\n\t\tthis.splitPane.setLeftComponent(panel);\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));\n\n\t\tthis.treePane = new JScrollPane();\n\t\tpanel.add(treePane);\n\n\t\t// Context pane (right side)\n\t\tJPanel panel_1 = new JPanel();\n\t\tthis.splitPane.setRightComponent(panel_1);\n\t\tpanel_1.setLayout(new BoxLayout(panel_1, BoxLayout.X_AXIS));\n\n\t\tthis.contextPane = new JScrollPane();\n\t\tpanel_1.add(contextPane);\n\n\t\tJPanel buttonPanel = createButtonPanel();\n\t\tthis.add(buttonPanel, BorderLayout.SOUTH);\n\n\t\tthis.splitPane.setDividerLocation(DEFAULT_DIVIDER_LOCATION);\n\n\t\t// Menu bar\n\t\tthis.menuBar = new StyleEditorMenuBar(this.guiController);\n\t\tthis.setJMenuBar(menuBar);\n\n\t\t// Tool bar\n\t\tthis.styleEditorToolBar = new StyleEditorToolBar(this.guiController);\n\t\tthis.add(styleEditorToolBar, BorderLayout.NORTH);\n\n\t\t// Combo box (from tool bar)\n\t\tthis.styleComboBox = this.styleEditorToolBar.getComboBox();\n\n\t\t// Create style tree(s):\n\t\tsynchronizeStyles();\n\n\t\t// Tree object\n\t\tthis.treePane.setViewportView(getCurrentStyleTree());\n\t\tgetCurrentStyleTree().updateTree();\n\n\t\tthis.contextPane.setViewportView(getCurrentStyleTree().getRoot().getPanel());\n\t\tthis.contextPane.getVerticalScrollBar().setUnitIncrement(10);\n\t\tthis.synchronizeStyles();\n\n\t\tthis.pack();\n\n\t\tthis.built = true;\n\t}", "void createComponent() {\n\t\t//Initialize all components\n\t\tsetLayout(new BorderLayout());\n\t\ttextEditor = new JTextArea();\n\t\terrorTextArea = new JTextArea();\n\t\topenButton = new JButton(\"Open\");\n\t\tsaveButton = new JButton(\"Save\");\n\t\tfindButton = new JButton(\"Find\");\n\t\treplaceButton = new JButton(\"Replace\");\n\t\tcompileButton = new JButton(\"Compile\");\n\t\trunButton = new JButton(\"Run\");\n\t\tfindField = new JTextField();\n\t\treplaceField = new JTextField();\n\t\tfontSizeItems = new Integer[17];\n\t\tfontStyle = new JComboBox<>(fontStyleItems);\n\t\tfinder = new ArrayList<>();\n\t\t\n\t\t//Assigns values to components\n\t\ttextEditor.setTabSize(2);\n\t\tint index = 0;\n\t\tfor(int i=8;i<=40;i+=2) {\n\t\t\tfontSizeItems[index] = i;\n\t\t\tindex++;\n\t\t}\n\t\tfontSize = new JComboBox<>(fontSizeItems);\n\t\tfontSize.setSelectedIndex(2);\n\t\terrorTextArea.setText(\"Error outputs here...\");\n\t\terrorTextArea.setEditable(false);\n\t\terrorTextArea.setFont(new Font(null, 0, 17));\n\t\terrorTextArea.setLineWrap(true);\n\t\terrorTextArea.setWrapStyleWord(true);\n\t\t\n\t\topenButton.setPreferredSize(optionSize);\n\t\tsaveButton.setPreferredSize(optionSize);\n\t\tfindButton.setPreferredSize(optionSize);\n\t\treplaceButton.setPreferredSize(optionSize);\n\t\t\n\t\thighlighter = textEditor.getHighlighter();\n\t\t\n\t\t//Add all components to panels\n\t\tJScrollPane scrollPane = new JScrollPane(textEditor);\n\t\tJPanel navigationPanel = new JPanel(new BorderLayout());\n\t\tJPanel optionsPanel = new JPanel(new GridLayout(2,5,5,5));\n\t\tJPanel executePanel = new JPanel(new GridLayout(2,1));\n\t\tJPanel errorPanel = new JPanel(new BorderLayout());\n\t\t\n\t\toptionsPanel.add(openButton);\n\t\toptionsPanel.add(fontSize);\n\t\toptionsPanel.add(findField);\n\t\toptionsPanel.add(findButton);\n\t\t\n\t\toptionsPanel.add(saveButton);\n\t\toptionsPanel.add(fontStyle);\n\t\toptionsPanel.add(replaceField);\n\t\toptionsPanel.add(replaceButton);\n\t\t\n\t\texecutePanel.add(compileButton);\n\t\texecutePanel.add(runButton);\n\t\t\n\t\terrorPanel.add(errorTextArea);\n\t\t\n\t\tnavigationPanel.add(optionsPanel,BorderLayout.CENTER);\n\t\tnavigationPanel.add(errorPanel, BorderLayout.SOUTH);\n\t\t\n\t\t//Add panels to the main frame\n\t\tthis.add(scrollPane,BorderLayout.CENTER);\n\t\tthis.add(navigationPanel, BorderLayout.SOUTH);\n\t\tthis.add(executePanel, BorderLayout.EAST);\n\t}", "public void addListeners() {\n\t\tsave.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t//Set the window variables\r\n\t\t\t\tEnvironmentVariables.setWidth(Float.parseFloat(width.getText()));\r\n\t\t\t\tEnvironmentVariables.setHeight(Float.parseFloat(height.getText()));\r\n\t\t\t\tEnvironmentVariables.setTitle(title.getText());\r\n\t\t\t\tupdateGameWorld();\r\n\t\t\t\t//go to save function\r\n\t\t\t\tsaveGame();\r\n\t\t\t\t\r\n\t\t\t\tWindow.getFrame().setVisible(false);\r\n\t\t\t\tWindow.getFrame().dispose();\r\n\t\t\t\t\r\n\t\t\t\tHomePage.buildHomePage();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//reset to empty world\r\n\t\treset.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tEnvironmentVariables.clearWorld();\r\n\t\t\t\tWindow.render();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}", "private void initUI() {\n\t\tPanel p = new Panel();\n\t\tp.setLayout(new BorderLayout());\n\t\t\n\t\tPanel flowLayoutPanel = new Panel();\n\t\tflowLayoutPanel.setLayout(new FlowLayout());\n\t\t\n\t\ttextArea = new JTextArea();\n\t\t\n\t\tMyCloseButton exitButton = new MyCloseButton(\"Exit\");\n\t\t/*\n\t\texit.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\t\t\n\t\t});\n\t\t*/\n\t\tMyOpenButton saveButton = new MyOpenButton(\"Open\");\n\t\t/*\n\t\tsaveButton.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\n\t\t});\n\t\t*/\n\t\tMySaveButton mySaveButton =new MySaveButton(\"Save\");\n\t\t//setVisible(mb);\n\t\tp.add(flowLayoutPanel, BorderLayout.SOUTH);\n\t\tflowLayoutPanel.add(exitButton);\n\t\tflowLayoutPanel.add(saveButton);\n\t\tflowLayoutPanel.add(mySaveButton);\n\t\tp.add(textArea, BorderLayout.CENTER); \n\t\tadd(p);\n\t\t\n\t\tcreateMenu();\n\t\t\n\t\tsetTitle(\"Text Editor\");\n\t\tsetSize(600, 600);\n\t\tsetLocationRelativeTo(null);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\n\t}", "private void makeComponents() {\n Font font = new Font(\"Open Sans\", Font.PLAIN, 14);\n\n //Create The buttons and configure their visual design.\n searchArea.setFont(font);\n searchArea.setBorder(new CompoundBorder(BorderFactory.createMatteBorder(4, 7, 4, 7, DrawAttribute.lightblue), BorderFactory.createRaisedBevelBorder()));\n searchArea.setBounds(20, 20, 300, 37);\n searchArea.setActionCommand(\"searchAreaInput\");\n\n makeFrontGUIButtons();\n }", "private void eventActions() {\n\t\t// TODO Auto-generated method stub\n\t\tlblGradesSubj.addClickHandler(new GradeandSubjectFilter());\n\t\tlblStandards.addClickHandler(new StandardsFilter());\n\t\tlblGradesSubj.getElement().setAttribute(\"style\", \"background: #e5e5e5;\");\n\t\tstandardsPanel.setVisible(false);\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \n private void initComponents() {\n\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n mouseClickedHandler(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n mouseExitedHandler(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n mouseEnteredHandler(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public MyFrame() {\n\t\tinitializeGui();\n\t\taddMouseListener(this);\n\t\taddComponentListener(this);\n\t}", "private void initComponents() {\n jSplitPane1 = new javax.swing.JSplitPane();\n jPanel1 = new javax.swing.JPanel();\n jPanel3 = new javax.swing.JPanel();\n xActionTextField1 = new com.rameses.rcp.control.XActionTextField();\n xDataTable1 = new com.rameses.rcp.control.XDataTable();\n jPanel2 = new javax.swing.JPanel();\n xActionBar1 = new com.rameses.rcp.control.XActionBar();\n jPanel4 = new javax.swing.JPanel();\n formPanel1 = new com.rameses.rcp.util.FormPanel();\n xTextField1 = new com.rameses.rcp.control.XTextField();\n xTextField2 = new com.rameses.rcp.control.XTextField();\n xCheckBox1 = new com.rameses.rcp.control.XCheckBox();\n xNumberField1 = new com.rameses.rcp.control.XNumberField();\n\n setLayout(new java.awt.BorderLayout());\n\n setPreferredSize(new java.awt.Dimension(748, 396));\n jSplitPane1.setDividerLocation(400);\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder1 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder1.setTitle(\"Listing\");\n jPanel1.setBorder(xTitledBorder1);\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n jPanel3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 1, 3, 5));\n xActionTextField1.setActionName(\"search\");\n xActionTextField1.setCaptionMnemonic('h');\n xActionTextField1.setHint(\"Search\");\n xActionTextField1.setIndex(-1);\n xActionTextField1.setName(\"searchText\");\n xActionTextField1.setPreferredSize(new java.awt.Dimension(200, 19));\n jPanel3.add(xActionTextField1, java.awt.BorderLayout.WEST);\n\n jPanel1.add(jPanel3, java.awt.BorderLayout.NORTH);\n\n xDataTable1.setHandler(\"listHandler\");\n xDataTable1.setImmediate(true);\n xDataTable1.setName(\"selectedItem\");\n jPanel1.add(xDataTable1, java.awt.BorderLayout.CENTER);\n\n jSplitPane1.setLeftComponent(jPanel1);\n\n jPanel2.setLayout(new java.awt.BorderLayout());\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder2 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder2.setTitle(\"Document\");\n jPanel2.setBorder(xTitledBorder2);\n xActionBar1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 0, 0));\n xActionBar1.setDepends(new String[] {\"selectedItem\"});\n xActionBar1.setName(\"formActions\");\n jPanel2.add(xActionBar1, java.awt.BorderLayout.NORTH);\n\n jPanel4.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 5, 5, 5));\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder3 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder3.setTitle(\"Property Classification Information\");\n formPanel1.setBorder(xTitledBorder3);\n xTextField1.setCaption(\"Code\");\n xTextField1.setDepends(new String[] {\"selectedItem\"});\n xTextField1.setName(\"entity.propertycode\");\n xTextField1.setPreferredSize(new java.awt.Dimension(80, 18));\n xTextField1.setRequired(true);\n formPanel1.add(xTextField1);\n\n xTextField2.setCaption(\"Description\");\n xTextField2.setDepends(new String[] {\"selectedItem\"});\n xTextField2.setName(\"entity.propertydesc\");\n xTextField2.setPreferredSize(new java.awt.Dimension(0, 18));\n xTextField2.setRequired(true);\n formPanel1.add(xTextField2);\n\n xCheckBox1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n xCheckBox1.setText(\" Is Special?\");\n xCheckBox1.setCaption(\"\");\n xCheckBox1.setCheckValue(1);\n xCheckBox1.setDepends(new String[] {\"selectedItem\"});\n xCheckBox1.setMargin(new java.awt.Insets(0, 0, 0, 0));\n xCheckBox1.setName(\"entity.special\");\n formPanel1.add(xCheckBox1);\n\n xNumberField1.setCaption(\"Order No\");\n xNumberField1.setDepends(new String[] {\"selectedItem\"});\n xNumberField1.setFieldType(int.class);\n xNumberField1.setName(\"entity.orderno\");\n xNumberField1.setPreferredSize(new java.awt.Dimension(75, 18));\n xNumberField1.setRequired(true);\n formPanel1.add(xNumberField1);\n\n org.jdesktop.layout.GroupLayout jPanel4Layout = new org.jdesktop.layout.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 328, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(29, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel4Layout.createSequentialGroup()\n .add(formPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 177, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(166, Short.MAX_VALUE))\n );\n jPanel2.add(jPanel4, java.awt.BorderLayout.CENTER);\n\n jSplitPane1.setRightComponent(jPanel2);\n\n add(jSplitPane1, java.awt.BorderLayout.CENTER);\n\n }", "private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n buttonPanel1 = new nl.astron.lofar.sas.otbcomponents.ButtonPanel();\n BBSStepExplorerPanel = new javax.swing.JPanel();\n stepExplorerScrollPanel = new javax.swing.JScrollPane();\n stepExplorerPanel = new javax.swing.JPanel();\n stepExplorerStepNameLabel = new javax.swing.JLabel();\n stepExplorerStepNameText = new javax.swing.JTextField();\n stepExplorerRevertButton = new javax.swing.JButton();\n stepExplorerOperationPanel = new javax.swing.JPanel();\n stepExplorerOperationTypeHeaderPanel = new javax.swing.JPanel();\n stepExplorerOperationTypeLabel = new javax.swing.JLabel();\n stepExplorerOperationComboBox = new javax.swing.JComboBox();\n stepExplorerOperationAttributesPanel = new javax.swing.JPanel();\n seOperationAttributesScrollPane = new javax.swing.JScrollPane();\n stepExplorerOutputDataPanel = new javax.swing.JPanel();\n stepExplorerOutputDataText = new javax.swing.JTextField();\n writeOutputCheckbox = new javax.swing.JCheckBox();\n stepExplorerNSources = new javax.swing.JPanel();\n stepExplorerNSourcesPanel = new javax.swing.JPanel();\n useAllSourcesCheckbox = new javax.swing.JCheckBox();\n stepExplorerNSourcesScrollPane = new javax.swing.JScrollPane();\n stepExplorerNSourcesList = new javax.swing.JList();\n stepExplorerNSourcesEditPanel = new javax.swing.JPanel();\n stepExplorerModifyNSourceCombobox = new javax.swing.JComboBox();\n stepExplorerNSourcesButtonPanel = new javax.swing.JPanel();\n addNSourceButton = new javax.swing.JButton();\n deleteNSourceButton = new javax.swing.JButton();\n stepExplorerInstrumentModel = new javax.swing.JPanel();\n stepExplorerInstrumentModelPanel = new javax.swing.JPanel();\n noInstrumentModelCheckbox = new javax.swing.JCheckBox();\n stepExplorerInstrumentModelScrollPane = new javax.swing.JScrollPane();\n stepExplorerInstrumentModelList = new javax.swing.JList();\n stepExplorerInstrumentModelEditPanel = new javax.swing.JPanel();\n stepExplorerModifyInstrumentModelCombobox = new javax.swing.JComboBox();\n StepExplorerInstrumentModelButtonPanel = new javax.swing.JPanel();\n addInstrumentButton = new javax.swing.JButton();\n deleteInstrumentButton = new javax.swing.JButton();\n stepExplorerCorrelationPanel = new javax.swing.JPanel();\n stepExplorerCorrelationSelectionLabel = new javax.swing.JLabel();\n stepExplorerCorrelationSelectionBox = new javax.swing.JComboBox();\n stepExplorerCorrelationTypeLabel = new javax.swing.JLabel();\n stepExplorerCorrelationTypeScrollPane = new javax.swing.JScrollPane();\n stepExplorerCorrelationTypeList = new javax.swing.JList();\n integrationIntervalPanel = new javax.swing.JPanel();\n integrationFrequencyLabel = new javax.swing.JLabel();\n integrationFrequencyText = new javax.swing.JTextField();\n integrationFrequencyUnitLabel = new javax.swing.JLabel();\n integrationTimeLabel = new javax.swing.JLabel();\n integrationTimeText = new javax.swing.JTextField();\n integrationTimeUnitLabel = new javax.swing.JLabel();\n BaselineSelectionPanel = new javax.swing.JPanel();\n baselinePanel = new javax.swing.JPanel();\n baselineStationsScrollPane = new javax.swing.JScrollPane();\n baselineStationsTable = new javax.swing.JTable();\n baselineInputPanel = new javax.swing.JPanel();\n baselineStation1Text = new javax.swing.JTextField();\n baselineStation2Text = new javax.swing.JTextField();\n baselineUseAllCheckbox = new javax.swing.JCheckBox();\n baselineModsPanel = new javax.swing.JPanel();\n addBaseLineButton = new javax.swing.JButton();\n deleteBaseLineButton = new javax.swing.JButton();\n helpButton = new javax.swing.JButton();\n\n setLayout(new java.awt.BorderLayout());\n\n buttonPanel1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buttonPanel1ActionPerformed(evt);\n }\n });\n add(buttonPanel1, java.awt.BorderLayout.SOUTH);\n\n BBSStepExplorerPanel.setLayout(new java.awt.BorderLayout());\n\n stepExplorerPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n stepExplorerStepNameLabel.setFont(new java.awt.Font(\"Dialog\", 1, 18));\n stepExplorerStepNameLabel.setText(\"Step\");\n stepExplorerPanel.add(stepExplorerStepNameLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 10, -1, 30));\n\n stepExplorerStepNameText.setEditable(false);\n stepExplorerStepNameText.setFont(new java.awt.Font(\"Dialog\", 1, 18));\n stepExplorerStepNameText.setToolTipText(\"This is the name of the displayed step\");\n stepExplorerStepNameText.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n stepExplorerStepNameTextKeyReleased(evt);\n }\n });\n stepExplorerPanel.add(stepExplorerStepNameText, new org.netbeans.lib.awtextra.AbsoluteConstraints(80, 10, 260, 30));\n\n stepExplorerRevertButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/nl/astron/lofar/sas/otb/icons/16_undo.png\"))); // NOI18N\n stepExplorerRevertButton.setText(\"Revert\");\n stepExplorerRevertButton.setToolTipText(\"Revert the step variables to the values present when this dialog was opened.\");\n stepExplorerRevertButton.setEnabled(false);\n stepExplorerRevertButton.setMaximumSize(new java.awt.Dimension(100, 25));\n stepExplorerRevertButton.setMinimumSize(new java.awt.Dimension(100, 25));\n stepExplorerRevertButton.setPreferredSize(new java.awt.Dimension(100, 25));\n stepExplorerRevertButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n stepExplorerRevertButtonActionPerformed(evt);\n }\n });\n stepExplorerPanel.add(stepExplorerRevertButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 650, 100, -1));\n\n stepExplorerOperationPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Operation\"));\n stepExplorerOperationPanel.setLayout(new java.awt.BorderLayout());\n\n stepExplorerOperationTypeHeaderPanel.setBackground(new java.awt.Color(204, 204, 204));\n stepExplorerOperationTypeHeaderPanel.setLayout(new java.awt.GridBagLayout());\n\n stepExplorerOperationTypeLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n stepExplorerOperationTypeLabel.setText(\"Type :\");\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n stepExplorerOperationTypeHeaderPanel.add(stepExplorerOperationTypeLabel, gridBagConstraints);\n\n stepExplorerOperationComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"NOT DEFINED\", \"Predict\", \"Solve\", \"Subtract\", \"Correct\" }));\n stepExplorerOperationComboBox.setToolTipText(\"The type of operation to be performed in this step. Use NOT DEFINED when this step is/will be a multistep, or when this step should not perform an operation.\");\n stepExplorerOperationComboBox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n stepExplorerOperationComboBoxItemStateChanged(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n stepExplorerOperationTypeHeaderPanel.add(stepExplorerOperationComboBox, gridBagConstraints);\n\n stepExplorerOperationPanel.add(stepExplorerOperationTypeHeaderPanel, java.awt.BorderLayout.NORTH);\n\n stepExplorerOperationAttributesPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(204, 204, 204), null));\n stepExplorerOperationAttributesPanel.setLayout(new java.awt.BorderLayout());\n stepExplorerOperationAttributesPanel.add(seOperationAttributesScrollPane, java.awt.BorderLayout.CENTER);\n\n stepExplorerOperationPanel.add(stepExplorerOperationAttributesPanel, java.awt.BorderLayout.CENTER);\n\n stepExplorerPanel.add(stepExplorerOperationPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 400, 700, 240));\n\n stepExplorerOutputDataPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Output Data Column\"));\n stepExplorerOutputDataPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n stepExplorerOutputDataText.setText(\"CORRECTED_DATA\");\n stepExplorerOutputDataText.setToolTipText(\"Column of the measurement set wherein the output values of this step should be written\");\n stepExplorerOutputDataText.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n stepExplorerOutputDataTextKeyReleased(evt);\n }\n });\n stepExplorerOutputDataPanel.add(stepExplorerOutputDataText, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 40, 150, 20));\n\n writeOutputCheckbox.setText(\"No output\");\n writeOutputCheckbox.setToolTipText(\"Check this box if no output data should be written in this step\");\n writeOutputCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n writeOutputCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));\n writeOutputCheckbox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n writeOutputCheckboxItemStateChanged(evt);\n }\n });\n stepExplorerOutputDataPanel.add(writeOutputCheckbox, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, -1, -1));\n\n stepExplorerPanel.add(stepExplorerOutputDataPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 280, 170, 110));\n\n stepExplorerNSources.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Sources\"));\n stepExplorerNSources.setMinimumSize(new java.awt.Dimension(150, 150));\n stepExplorerNSources.setPreferredSize(new java.awt.Dimension(150, 150));\n stepExplorerNSources.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n stepExplorerNSourcesPanel.setLayout(new java.awt.BorderLayout());\n\n useAllSourcesCheckbox.setSelected(true);\n useAllSourcesCheckbox.setText(\"Use all sources\");\n useAllSourcesCheckbox.setToolTipText(\"Check this box to use all the sources\");\n useAllSourcesCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n useAllSourcesCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));\n useAllSourcesCheckbox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n useAllSourcesCheckboxItemStateChanged(evt);\n }\n });\n stepExplorerNSourcesPanel.add(useAllSourcesCheckbox, java.awt.BorderLayout.NORTH);\n\n stepExplorerNSourcesList.setBackground(java.awt.Color.lightGray);\n stepExplorerNSourcesList.setToolTipText(\"The specified sources for this step\");\n stepExplorerNSourcesList.setEnabled(false);\n stepExplorerNSourcesList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n stepExplorerNSourcesListValueChanged(evt);\n }\n });\n stepExplorerNSourcesScrollPane.setViewportView(stepExplorerNSourcesList);\n\n stepExplorerNSourcesPanel.add(stepExplorerNSourcesScrollPane, java.awt.BorderLayout.CENTER);\n\n stepExplorerNSourcesEditPanel.setLayout(new java.awt.BorderLayout());\n\n stepExplorerModifyNSourceCombobox.setToolTipText(\"Add sources\");\n stepExplorerModifyNSourceCombobox.setEnabled(false);\n stepExplorerNSourcesEditPanel.add(stepExplorerModifyNSourceCombobox, java.awt.BorderLayout.CENTER);\n\n stepExplorerNSourcesButtonPanel.setLayout(new java.awt.GridBagLayout());\n\n addNSourceButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/nl/astron/lofar/sas/otb/icons/16_add.gif\"))); // NOI18N\n addNSourceButton.setToolTipText(\"Add the source entered above to the list of sources\");\n addNSourceButton.setEnabled(false);\n addNSourceButton.setMaximumSize(new java.awt.Dimension(30, 25));\n addNSourceButton.setMinimumSize(new java.awt.Dimension(30, 25));\n addNSourceButton.setPreferredSize(new java.awt.Dimension(53, 23));\n addNSourceButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addNSourceButtonActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n stepExplorerNSourcesButtonPanel.add(addNSourceButton, gridBagConstraints);\n\n deleteNSourceButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/nl/astron/lofar/sas/otb/icons/16_delete.png\"))); // NOI18N\n deleteNSourceButton.setToolTipText(\"Remove the selected source from the list\");\n deleteNSourceButton.setEnabled(false);\n deleteNSourceButton.setMaximumSize(new java.awt.Dimension(30, 25));\n deleteNSourceButton.setMinimumSize(new java.awt.Dimension(30, 25));\n deleteNSourceButton.setPreferredSize(new java.awt.Dimension(65, 23));\n deleteNSourceButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteNSourceButtonActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n stepExplorerNSourcesButtonPanel.add(deleteNSourceButton, gridBagConstraints);\n\n stepExplorerNSourcesEditPanel.add(stepExplorerNSourcesButtonPanel, java.awt.BorderLayout.SOUTH);\n\n stepExplorerNSourcesPanel.add(stepExplorerNSourcesEditPanel, java.awt.BorderLayout.SOUTH);\n\n stepExplorerNSources.add(stepExplorerNSourcesPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 20, 150, 240));\n\n stepExplorerPanel.add(stepExplorerNSources, new org.netbeans.lib.awtextra.AbsoluteConstraints(350, 0, 170, 270));\n\n stepExplorerInstrumentModel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Instrument Model\"));\n stepExplorerInstrumentModel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n stepExplorerInstrumentModelPanel.setLayout(new java.awt.BorderLayout());\n\n noInstrumentModelCheckbox.setSelected(true);\n noInstrumentModelCheckbox.setText(\"No model\");\n noInstrumentModelCheckbox.setToolTipText(\"Check this box when no instrument model should be used\");\n noInstrumentModelCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n noInstrumentModelCheckbox.setMargin(new java.awt.Insets(0, 0, 0, 0));\n noInstrumentModelCheckbox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n noInstrumentModelCheckboxItemStateChanged(evt);\n }\n });\n stepExplorerInstrumentModelPanel.add(noInstrumentModelCheckbox, java.awt.BorderLayout.NORTH);\n\n stepExplorerInstrumentModelScrollPane.setPreferredSize(new java.awt.Dimension(260, 132));\n\n stepExplorerInstrumentModelList.setBackground(java.awt.Color.lightGray);\n stepExplorerInstrumentModelList.setToolTipText(\"the specified instrument models for this step\");\n stepExplorerInstrumentModelList.setEnabled(false);\n stepExplorerInstrumentModelList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n stepExplorerInstrumentModelListValueChanged(evt);\n }\n });\n stepExplorerInstrumentModelScrollPane.setViewportView(stepExplorerInstrumentModelList);\n\n stepExplorerInstrumentModelPanel.add(stepExplorerInstrumentModelScrollPane, java.awt.BorderLayout.CENTER);\n\n stepExplorerInstrumentModelEditPanel.setLayout(new java.awt.BorderLayout());\n\n stepExplorerModifyInstrumentModelCombobox.setToolTipText(\"Input Instrument Models\");\n stepExplorerModifyInstrumentModelCombobox.setEnabled(false);\n stepExplorerInstrumentModelEditPanel.add(stepExplorerModifyInstrumentModelCombobox, java.awt.BorderLayout.CENTER);\n\n StepExplorerInstrumentModelButtonPanel.setLayout(new java.awt.GridBagLayout());\n\n addInstrumentButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/nl/astron/lofar/sas/otb/icons/16_add.gif\"))); // NOI18N\n addInstrumentButton.setToolTipText(\"Add the source entered above to the list of sources\");\n addInstrumentButton.setEnabled(false);\n addInstrumentButton.setMaximumSize(new java.awt.Dimension(30, 25));\n addInstrumentButton.setMinimumSize(new java.awt.Dimension(30, 25));\n addInstrumentButton.setPreferredSize(new java.awt.Dimension(53, 23));\n addInstrumentButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addInstrumentButtonActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n StepExplorerInstrumentModelButtonPanel.add(addInstrumentButton, gridBagConstraints);\n\n deleteInstrumentButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/nl/astron/lofar/sas/otb/icons/16_delete.png\"))); // NOI18N\n deleteInstrumentButton.setToolTipText(\"Remove the selected source from the list\");\n deleteInstrumentButton.setEnabled(false);\n deleteInstrumentButton.setMaximumSize(new java.awt.Dimension(30, 25));\n deleteInstrumentButton.setMinimumSize(new java.awt.Dimension(30, 25));\n deleteInstrumentButton.setPreferredSize(new java.awt.Dimension(65, 23));\n deleteInstrumentButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteInstrumentButtonActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 2;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n StepExplorerInstrumentModelButtonPanel.add(deleteInstrumentButton, gridBagConstraints);\n\n stepExplorerInstrumentModelEditPanel.add(StepExplorerInstrumentModelButtonPanel, java.awt.BorderLayout.SOUTH);\n\n stepExplorerInstrumentModelPanel.add(stepExplorerInstrumentModelEditPanel, java.awt.BorderLayout.SOUTH);\n\n stepExplorerInstrumentModel.add(stepExplorerInstrumentModelPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(6, 14, 158, 250));\n\n stepExplorerPanel.add(stepExplorerInstrumentModel, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 0, 170, 270));\n\n stepExplorerCorrelationPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Correlation\"));\n stepExplorerCorrelationPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n stepExplorerCorrelationSelectionLabel.setText(\"Selection :\");\n stepExplorerCorrelationPanel.add(stepExplorerCorrelationSelectionLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 30, -1, -1));\n\n stepExplorerCorrelationSelectionBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"N/A\", \"AUTO\", \"CROSS\", \"ALL\" }));\n stepExplorerCorrelationSelectionBox.setSelectedIndex(3);\n stepExplorerCorrelationSelectionBox.setToolTipText(\"Specifies which station correlations to use.\");\n stepExplorerCorrelationSelectionBox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n stepExplorerCorrelationSelectionBoxItemStateChanged(evt);\n }\n });\n stepExplorerCorrelationPanel.add(stepExplorerCorrelationSelectionBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 50, 80, -1));\n\n stepExplorerCorrelationTypeLabel.setText(\"Type :\");\n stepExplorerCorrelationPanel.add(stepExplorerCorrelationTypeLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 10, -1, -1));\n\n stepExplorerCorrelationTypeList.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"XX\", \"XY\", \"YX\", \"YY\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n stepExplorerCorrelationTypeList.setToolTipText(\"Correlations of which polarizations to use, one or more of XX,XY,YX,YY.\");\n stepExplorerCorrelationTypeList.setSelectedIndices(new int[]{0,3});\n stepExplorerCorrelationTypeList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n stepExplorerCorrelationTypeListValueChanged(evt);\n }\n });\n stepExplorerCorrelationTypeScrollPane.setViewportView(stepExplorerCorrelationTypeList);\n\n stepExplorerCorrelationPanel.add(stepExplorerCorrelationTypeScrollPane, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 30, 50, 80));\n\n stepExplorerPanel.add(stepExplorerCorrelationPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 270, 170, 120));\n\n integrationIntervalPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Integration\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 11), java.awt.Color.lightGray)); // NOI18N\n integrationIntervalPanel.setToolTipText(\"Cell size for integration. Not yet implemented.\");\n integrationIntervalPanel.setEnabled(false);\n integrationIntervalPanel.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n integrationFrequencyLabel.setText(\"Freq. Interval :\");\n integrationFrequencyLabel.setEnabled(false);\n integrationIntervalPanel.add(integrationFrequencyLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 20, -1, -1));\n\n integrationFrequencyText.setEditable(false);\n integrationFrequencyText.setToolTipText(\"Frequency interval in Hertz (Hz)\");\n integrationFrequencyText.setEnabled(false);\n integrationFrequencyText.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n integrationFrequencyTextKeyReleased(evt);\n }\n });\n integrationIntervalPanel.add(integrationFrequencyText, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 20, 70, -1));\n\n integrationFrequencyUnitLabel.setText(\"Hz\");\n integrationFrequencyUnitLabel.setEnabled(false);\n integrationIntervalPanel.add(integrationFrequencyUnitLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 20, -1, -1));\n\n integrationTimeLabel.setText(\"Time Interval :\");\n integrationTimeLabel.setEnabled(false);\n integrationIntervalPanel.add(integrationTimeLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 50, -1, -1));\n\n integrationTimeText.setEditable(false);\n integrationTimeText.setEnabled(false);\n integrationTimeText.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n integrationTimeTextKeyReleased(evt);\n }\n });\n integrationIntervalPanel.add(integrationTimeText, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 50, 70, -1));\n\n integrationTimeUnitLabel.setText(\"s\");\n integrationTimeUnitLabel.setEnabled(false);\n integrationIntervalPanel.add(integrationTimeUnitLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(230, 50, 10, -1));\n\n stepExplorerPanel.add(integrationIntervalPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 310, 320, 80));\n\n BaselineSelectionPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Baseline Selection\"));\n BaselineSelectionPanel.setLayout(new java.awt.BorderLayout());\n\n baselinePanel.setLayout(new java.awt.BorderLayout());\n\n baselineStationsScrollPane.setToolTipText(\"The baseline pairs of stations\");\n baselineStationsScrollPane.setEnabled(false);\n baselineStationsScrollPane.setPreferredSize(new java.awt.Dimension(453, 250));\n\n baselineStationsTable.setBackground(java.awt.Color.lightGray);\n baselineStationsTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Station 1\", \"Station 2\"\n }\n ) {\n Class[] types = new Class [] {\n java.lang.String.class, java.lang.String.class\n };\n\n public Class getColumnClass(int columnIndex) {\n return types [columnIndex];\n }\n });\n baselineStationsTable.setToolTipText(\"The baselines used\");\n baselineStationsTable.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n baselineStationsTableMouseReleased(evt);\n }\n });\n baselineStationsScrollPane.setViewportView(baselineStationsTable);\n\n baselinePanel.add(baselineStationsScrollPane, java.awt.BorderLayout.CENTER);\n\n baselineInputPanel.setLayout(new java.awt.GridBagLayout());\n\n baselineStation1Text.setToolTipText(\"Input field for the name of the first station part that forms the baseline\");\n baselineStation1Text.setEnabled(false);\n baselineStation1Text.setMinimumSize(new java.awt.Dimension(120, 19));\n baselineStation1Text.setPreferredSize(new java.awt.Dimension(200, 19));\n baselineStation1Text.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n baselineStation1TextKeyReleased(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n baselineInputPanel.add(baselineStation1Text, gridBagConstraints);\n\n baselineStation2Text.setToolTipText(\"Input field for the name of the second station part that forms the baseline\");\n baselineStation2Text.setEnabled(false);\n baselineStation2Text.setMinimumSize(new java.awt.Dimension(120, 19));\n baselineStation2Text.setPreferredSize(new java.awt.Dimension(200, 19));\n baselineStation2Text.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n baselineStation2TextKeyReleased(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n baselineInputPanel.add(baselineStation2Text, gridBagConstraints);\n\n baselinePanel.add(baselineInputPanel, java.awt.BorderLayout.SOUTH);\n\n baselineUseAllCheckbox.setSelected(true);\n baselineUseAllCheckbox.setText(\"Use all baselines\");\n baselineUseAllCheckbox.setToolTipText(\"Check this box to use all baselines available\");\n baselineUseAllCheckbox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n baselineUseAllCheckbox.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n baselineUseAllCheckbox.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n baselineUseAllCheckboxItemStateChanged(evt);\n }\n });\n baselinePanel.add(baselineUseAllCheckbox, java.awt.BorderLayout.NORTH);\n\n BaselineSelectionPanel.add(baselinePanel, java.awt.BorderLayout.CENTER);\n\n baselineModsPanel.setLayout(new java.awt.GridBagLayout());\n\n addBaseLineButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/nl/astron/lofar/sas/otb/icons/16_add.gif\"))); // NOI18N\n addBaseLineButton.setToolTipText(\"Adds a baseline using the Station1 and Station2 values in the input boxes above\");\n addBaseLineButton.setEnabled(false);\n addBaseLineButton.setMaximumSize(new java.awt.Dimension(30, 25));\n addBaseLineButton.setMinimumSize(new java.awt.Dimension(30, 25));\n addBaseLineButton.setPreferredSize(new java.awt.Dimension(50, 23));\n addBaseLineButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addBaseLineButtonActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.ipadx = 7;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n baselineModsPanel.add(addBaseLineButton, gridBagConstraints);\n\n deleteBaseLineButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/nl/astron/lofar/sas/otb/icons/16_delete.png\"))); // NOI18N\n deleteBaseLineButton.setToolTipText(\"Deletes the selected baseline (the selected Station 1 and Station 2 pair)\");\n deleteBaseLineButton.setEnabled(false);\n deleteBaseLineButton.setMaximumSize(new java.awt.Dimension(30, 25));\n deleteBaseLineButton.setMinimumSize(new java.awt.Dimension(30, 25));\n deleteBaseLineButton.setPreferredSize(new java.awt.Dimension(65, 23));\n deleteBaseLineButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteBaseLineButtonActionPerformed(evt);\n }\n });\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 3;\n gridBagConstraints.gridy = 0;\n gridBagConstraints.ipadx = 6;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2);\n baselineModsPanel.add(deleteBaseLineButton, gridBagConstraints);\n\n BaselineSelectionPanel.add(baselineModsPanel, java.awt.BorderLayout.SOUTH);\n\n stepExplorerPanel.add(BaselineSelectionPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 50, 320, 250));\n\n helpButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/nl/astron/lofar/sas/otb/icons/16_help.png\"))); // NOI18N\n helpButton.setText(\"Help\");\n helpButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n helpButtonActionPerformed(evt);\n }\n });\n stepExplorerPanel.add(helpButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 650, -1, -1));\n\n stepExplorerScrollPanel.setViewportView(stepExplorerPanel);\n\n BBSStepExplorerPanel.add(stepExplorerScrollPanel, java.awt.BorderLayout.CENTER);\n\n add(BBSStepExplorerPanel, java.awt.BorderLayout.CENTER);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n titleLabel = new javax.swing.JLabel();\n goldIncomeLabel = new javax.swing.JLabel();\n foodIncomeLabel = new javax.swing.JLabel();\n soldierIncomeLabel = new javax.swing.JLabel();\n buildingNameLabel = new javax.swing.JLabel();\n costLabel = new javax.swing.JLabel();\n goldLabel = new javax.swing.JLabel();\n emptySlot1 = new javax.swing.JButton();\n emptySlot2 = new javax.swing.JButton();\n emptySlot3 = new javax.swing.JButton();\n emptySlot4 = new javax.swing.JButton();\n emptySlot5 = new javax.swing.JButton();\n emptySlot6 = new javax.swing.JButton();\n emptySlot7 = new javax.swing.JButton();\n emptySlot8 = new javax.swing.JButton();\n finishButton = new javax.swing.JButton();\n descriptionText = new javax.swing.JTextField();\n buildLayer = new javax.swing.JLayeredPane();\n buildLayerTitle = new javax.swing.JLabel();\n buildButton1 = new javax.swing.JButton();\n buildButton2 = new javax.swing.JButton();\n buildButton3 = new javax.swing.JButton();\n buildButton4 = new javax.swing.JButton();\n buildButton5 = new javax.swing.JButton();\n nextButton = new javax.swing.JButton();\n backButton = new javax.swing.JButton();\n summaryDisplayLabel = new javax.swing.JLabel();\n goldDisplayLabel = new javax.swing.JLabel();\n foodDisplayLabel = new javax.swing.JLabel();\n soldierDisplayLabel = new javax.swing.JLabel();\n\n setPreferredSize(new java.awt.Dimension(800, 600));\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n formMouseClicked(evt);\n }\n });\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n titleLabel.setFont(new java.awt.Font(\"Microsoft YaHei\", 0, 24)); // NOI18N\n titleLabel.setForeground(new java.awt.Color(153, 102, 0));\n titleLabel.setText(\"许昌城建筑物\");\n add(titleLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(58, 29, 200, -1));\n\n goldIncomeLabel.setFont(new java.awt.Font(\"Microsoft YaHei\", 0, 13)); // NOI18N\n goldIncomeLabel.setText(\"100\");\n add(goldIncomeLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(695, 196, 75, -1));\n\n foodIncomeLabel.setFont(new java.awt.Font(\"Microsoft YaHei\", 0, 13)); // NOI18N\n foodIncomeLabel.setText(\"200\");\n add(foodIncomeLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(695, 232, 75, -1));\n\n soldierIncomeLabel.setFont(new java.awt.Font(\"Microsoft YaHei\", 0, 13)); // NOI18N\n soldierIncomeLabel.setText(\"300\");\n add(soldierIncomeLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(695, 268, 75, -1));\n\n buildingNameLabel.setText(\"建造市场:\");\n add(buildingNameLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(636, 334, 95, -1));\n\n costLabel.setText(\"所需白银: 0\");\n add(costLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(636, 357, 134, -1));\n\n goldLabel.setText(\"现有白银: 2000两\");\n add(goldLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(636, 380, 134, -1));\n\n emptySlot1.setFont(new java.awt.Font(\"Microsoft YaHei\", 1, 18)); // NOI18N\n emptySlot1.setText(\"空地\");\n emptySlot1.setFocusable(false);\n emptySlot1.setPreferredSize(new java.awt.Dimension(130, 90));\n emptySlot1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n emptySlot1ActionPerformed(evt);\n }\n });\n add(emptySlot1, new org.netbeans.lib.awtextra.AbsoluteConstraints(58, 98, -1, -1));\n\n emptySlot2.setFont(new java.awt.Font(\"Microsoft YaHei\", 1, 18)); // NOI18N\n emptySlot2.setText(\"空地\");\n emptySlot2.setFocusable(false);\n emptySlot2.setPreferredSize(new java.awt.Dimension(130, 90));\n emptySlot2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n emptySlot2ActionPerformed(evt);\n }\n });\n add(emptySlot2, new org.netbeans.lib.awtextra.AbsoluteConstraints(243, 98, -1, -1));\n\n emptySlot3.setFont(new java.awt.Font(\"Microsoft YaHei\", 1, 18)); // NOI18N\n emptySlot3.setText(\"空地\");\n emptySlot3.setFocusable(false);\n emptySlot3.setPreferredSize(new java.awt.Dimension(130, 90));\n emptySlot3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n emptySlot3ActionPerformed(evt);\n }\n });\n add(emptySlot3, new org.netbeans.lib.awtextra.AbsoluteConstraints(58, 206, -1, -1));\n\n emptySlot4.setFont(new java.awt.Font(\"Microsoft YaHei\", 1, 18)); // NOI18N\n emptySlot4.setText(\"空地\");\n emptySlot4.setFocusable(false);\n emptySlot4.setPreferredSize(new java.awt.Dimension(130, 90));\n emptySlot4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n emptySlot4ActionPerformed(evt);\n }\n });\n add(emptySlot4, new org.netbeans.lib.awtextra.AbsoluteConstraints(243, 206, -1, -1));\n\n emptySlot5.setFont(new java.awt.Font(\"Microsoft YaHei\", 1, 18)); // NOI18N\n emptySlot5.setText(\"空地\");\n emptySlot5.setFocusable(false);\n emptySlot5.setPreferredSize(new java.awt.Dimension(130, 90));\n emptySlot5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n emptySlot5ActionPerformed(evt);\n }\n });\n add(emptySlot5, new org.netbeans.lib.awtextra.AbsoluteConstraints(58, 314, -1, -1));\n\n emptySlot6.setFont(new java.awt.Font(\"Microsoft YaHei\", 1, 18)); // NOI18N\n emptySlot6.setText(\"空地\");\n emptySlot6.setFocusable(false);\n emptySlot6.setPreferredSize(new java.awt.Dimension(130, 90));\n emptySlot6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n emptySlot6ActionPerformed(evt);\n }\n });\n add(emptySlot6, new org.netbeans.lib.awtextra.AbsoluteConstraints(243, 314, -1, -1));\n\n emptySlot7.setFont(new java.awt.Font(\"Microsoft YaHei\", 1, 18)); // NOI18N\n emptySlot7.setText(\"空地\");\n emptySlot7.setFocusable(false);\n emptySlot7.setPreferredSize(new java.awt.Dimension(130, 90));\n emptySlot7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n emptySlot7ActionPerformed(evt);\n }\n });\n add(emptySlot7, new org.netbeans.lib.awtextra.AbsoluteConstraints(58, 422, -1, -1));\n\n emptySlot8.setFont(new java.awt.Font(\"Microsoft YaHei\", 1, 18)); // NOI18N\n emptySlot8.setText(\"空地\");\n emptySlot8.setFocusable(false);\n emptySlot8.setPreferredSize(new java.awt.Dimension(130, 90));\n emptySlot8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n emptySlot8ActionPerformed(evt);\n }\n });\n add(emptySlot8, new org.netbeans.lib.awtextra.AbsoluteConstraints(243, 422, -1, -1));\n\n finishButton.setText(\"完成\");\n finishButton.setFocusable(false);\n finishButton.setMaximumSize(new java.awt.Dimension(80, 40));\n finishButton.setMinimumSize(new java.awt.Dimension(80, 40));\n finishButton.setPreferredSize(new java.awt.Dimension(80, 40));\n finishButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n finishButtonActionPerformed(evt);\n }\n });\n add(finishButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(690, 531, -1, -1));\n\n descriptionText.setEditable(false);\n descriptionText.setFont(new java.awt.Font(\"Microsoft YaHei\", 0, 14)); // NOI18N\n descriptionText.setForeground(new java.awt.Color(153, 102, 0));\n descriptionText.setText(\"您好\");\n add(descriptionText, new org.netbeans.lib.awtextra.AbsoluteConstraints(58, 538, 385, -1));\n\n buildLayer.setMaximumSize(new java.awt.Dimension(211, 413));\n buildLayer.setMinimumSize(new java.awt.Dimension(211, 413));\n buildLayer.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n buildLayerTitle.setFont(new java.awt.Font(\"Microsoft YaHei\", 0, 18)); // NOI18N\n buildLayerTitle.setForeground(new java.awt.Color(153, 102, 0));\n buildLayerTitle.setText(\"建造\");\n buildLayer.add(buildLayerTitle, new org.netbeans.lib.awtextra.AbsoluteConstraints(60, 10, 80, -1));\n\n buildButton1.setText(\"兵营\");\n buildButton1.setFocusable(false);\n buildButton1.setPreferredSize(new java.awt.Dimension(130, 90));\n buildButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n buildButton1MouseEntered(evt);\n }\n });\n buildButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buildButton1ActionPerformed(evt);\n }\n });\n buildLayer.add(buildButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 44, 120, 50));\n\n buildButton2.setText(\"农田\");\n buildButton2.setFocusable(false);\n buildButton2.setMinimumSize(new java.awt.Dimension(130, 90));\n buildButton2.setPreferredSize(new java.awt.Dimension(130, 90));\n buildButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n buildButton2MouseEntered(evt);\n }\n });\n buildButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buildButton2ActionPerformed(evt);\n }\n });\n buildLayer.add(buildButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 101, 120, 50));\n\n buildButton3.setText(\"市场\");\n buildButton3.setFocusable(false);\n buildButton3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n buildButton3MouseEntered(evt);\n }\n });\n buildButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buildButton3ActionPerformed(evt);\n }\n });\n buildLayer.add(buildButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 158, 120, 50));\n\n buildButton4.setText(\"城墙\");\n buildButton4.setFocusable(false);\n buildButton4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n buildButton4MouseEntered(evt);\n }\n });\n buildButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buildButton4ActionPerformed(evt);\n }\n });\n buildLayer.add(buildButton4, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 215, 120, 50));\n\n buildButton5.setText(\"研究所\");\n buildButton5.setFocusable(false);\n buildButton5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n buildButton5MouseEntered(evt);\n }\n });\n buildButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buildButton5ActionPerformed(evt);\n }\n });\n buildLayer.add(buildButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 272, 120, 50));\n\n nextButton.setText(\"下一页\");\n nextButton.setFocusable(false);\n nextButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n nextButtonActionPerformed(evt);\n }\n });\n buildLayer.add(nextButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 329, 120, 50));\n\n backButton.setText(\"返回\");\n backButton.setFocusable(false);\n backButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backButtonActionPerformed(evt);\n }\n });\n buildLayer.add(backButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 386, 120, 50));\n\n add(buildLayer, new org.netbeans.lib.awtextra.AbsoluteConstraints(428, 76, 155, -1));\n\n summaryDisplayLabel.setFont(new java.awt.Font(\"Microsoft YaHei\", 0, 18)); // NOI18N\n summaryDisplayLabel.setText(\"设施总概要\");\n add(summaryDisplayLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(636, 154, -1, -1));\n\n goldDisplayLabel.setFont(new java.awt.Font(\"Microsoft YaHei\", 0, 13)); // NOI18N\n goldDisplayLabel.setText(\"金收入:\");\n add(goldDisplayLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(636, 196, -1, -1));\n\n foodDisplayLabel.setFont(new java.awt.Font(\"Microsoft YaHei\", 0, 13)); // NOI18N\n foodDisplayLabel.setText(\"粮收入:\");\n add(foodDisplayLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(636, 232, -1, -1));\n\n soldierDisplayLabel.setFont(new java.awt.Font(\"Microsoft YaHei\", 0, 13)); // NOI18N\n soldierDisplayLabel.setText(\"征兵量:\");\n add(soldierDisplayLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(636, 268, -1, -1));\n }", "public Menu() { //Menu pannel constructor\n\t\tmenuBar = new JMenuBar();\n\t\tmenu = new JMenu(\"Menu\");\n\t\tabout = new JMenu(\"About\");\n\t\tabout.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Ragnarock Web Browser 2017\\nIvan Mykolenko\\u00AE\", \"About\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\thistory = new JMenu(\"History\");\n\t\thistory.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"history\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"History\");\n\t\t\t\tlayer.show(userViewPort, \"History\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 2;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tbookmarks = new JMenu(\"Bookmarks\");\n\t\tbookmarks.addMenuListener(new MenuListener() {\n\t\t\tpublic void menuSelected(MenuEvent e) {\n\t\t\t\tcreateList(\"bookmarks\");\n\t\t\t\taddBackButton();\n\t\t\t\tuserViewPort.add(new JScrollPane(list), \"Bookmarks\");\n\t\t\t\tlayer.show(userViewPort, \"Bookmarks\");\n\t\t\t\tmenuBar.remove(removeButton);\n\t\t\t\tmenuBar.revalidate();\n\t\t\t\tviewMode = 3;\n\t\t\t}\n\t\t\tpublic void menuDeselected(MenuEvent e) {\n\t\t\t}\n\t\t\tpublic void menuCanceled(MenuEvent e) {\n\t\t\t}\n\t\t});\n\t\tsettingsMenuItem = new JMenuItem(\"Settings\", KeyEvent.VK_X);\n\t\tsettingsMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcreateSettings();\n\t\t\t\tsettings.setVisible(true);\n\t\t\t}\n\t\t});\n\t\texitMenuItem = new JMenuItem(\"Exit\");\n\t\texitMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbackButton = new JButton(\"Back\");\n\t\tremoveButton = new JButton(\"Remove\");\n\t\tmenu.add(settingsMenuItem);\n\t\tmenu.add(exitMenuItem);\n\t\tmenuBar.add(menu);\n\t\tmenuBar.add(history);\n\t\tmenuBar.add(bookmarks);\n\t\tmenuBar.add(about);\n\t\tmenuBar.add(Box.createHorizontalGlue()); // Changing backButton's alignment to right\n\t\tsettings = new JDialog();\n\t\tadd(menuBar);\n\t\tsaveButton = new JButton(\"Save\");\n\t\tclearHistory = new JButton(\"Clear History\");\n\t\tclearBookmarks = new JButton(\"Clear Bookmarks\");\n\t\tbuttonsPanel = new JPanel();\n\t\tpanel = new JPanel();\n\t\turlField = new JTextField(15);\n\t\tedit = new JLabel(\"Edit Homepage:\");\n\t\tviewMode = 1;\n\t\tlistModel = new DefaultListModel<String>();\n\t\tlist = new JList<String>(listModel);\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n\t\tlist.setLayoutOrientation(JList.VERTICAL);\n\t}", "private void createEvents() {\n\t\taddBtn.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbuildOutput();\n\t\t\t}\n\t\t});\n\t}", "private void setActionListeners() {\r\n gm.getSave().addActionListener(e -> {\r\n gtm.saveChanges();\r\n this.serialize();\r\n });\r\n gm.getSaveAs().addActionListener(e -> {\r\n gtm.saveChanges();\r\n this.serializeAs();\r\n });\r\n gm.getOpen().addActionListener(e -> {\r\n if (!newFile && !path.equals(\"\")) {\r\n this.serializeBeforeOpen();\r\n }\r\n this.serializeOpen();\r\n });\r\n gm.getNewToDo().addActionListener(e -> {\r\n gtm.addToDo();\r\n });\r\n gm.getClose().addActionListener(e -> {\r\n System.exit(0);\r\n });\r\n gm.getMinimize().addActionListener(e -> {\r\n this.setState(Frame.ICONIFIED);\r\n });\r\n gm.getZoom().addActionListener(e -> {\r\n this.setExtendedState(this.getExtendedState() | JFrame.MAXIMIZED_BOTH);\r\n });\r\n }", "private void buildGUI() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBorder(LineBorder.createGrayLineBorder());\n\t\tadd(panel);\n\t\t\n\t\taddRootPaneListener();\n\t\taddLoginComp();\n\t\taddButtons();\n\t\taddTitle();\n\t}", "private void initComponents() {\n\n jPopupMenu = new javax.swing.JPopupMenu();\n jMenuItemNewKeyFrame = new javax.swing.JMenuItem();\n jMenuItemNewTransition = new javax.swing.JMenuItem();\n jMenuItemPaste = new javax.swing.JMenuItem();\n\n jMenuItemNewKeyFrame.setText(\"New KeyFrame\");\n jMenuItemNewKeyFrame.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jMenuItemNewKeyFrameMouseReleased(evt);\n }\n });\n jPopupMenu.add(jMenuItemNewKeyFrame);\n\n jMenuItemNewTransition.setText(\"New Transition\");\n jMenuItemNewTransition.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jMenuItemNewTransitionMouseReleased(evt);\n }\n });\n jPopupMenu.add(jMenuItemNewTransition);\n\n jMenuItemPaste.setText(\"Paste\");\n jMenuItemPaste.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jMenuItemPasteMouseReleased(evt);\n }\n });\n jPopupMenu.add(jMenuItemPaste);\n\n setBackground(new java.awt.Color(255, 255, 255));\n setComponentPopupMenu(jPopupMenu);\n setOpaque(true);\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n formMousePressed(evt);\n }\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n formMouseClicked(evt);\n }\n });\n addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentResized(java.awt.event.ComponentEvent evt) {\n formComponentResized(evt);\n }\n });\n addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n formPropertyChange(evt);\n }\n });\n }", "public void buildGUI(){\n\n\t\tsetLayout(new BorderLayout());//Setting a borderlayout for the frame\n\t\toptionsPane.setBorder(BorderFactory.createLineBorder(Color.black));//This sets a border around the options panel\n\t\tadd(disclaimer, BorderLayout.SOUTH);//Adds the disclaimer panel to the frame\n\t\tadd(optionsPane, BorderLayout.LINE_START);//Adds the options panel to the frame\n\t\tadd(scrollbar);//Adds the scrollbar to the frame (contains the search frame)\n\t\toptionsPane.add(jpCmbBoxes, BorderLayout.NORTH);//Adds the combo boxes to the options pane\n\t\toptionsPane.add(pic, BorderLayout.SOUTH);//Adds the picture to the options pane\n\t\tdisclaimer.add(disclaim, BorderLayout.LINE_START);//Adds the disclaimer text to the disclaimer panel\n\t\t\n\t\t/*Sets borders around each of the combo boxes, buttons and the disclaimer text */\n\t\ttrackingRange.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tgenderBox.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tstageofLifeBox.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\ttagLocationBox.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tsearchButton.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tdisclaimer.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tsearchByName.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\t\n\t\tsearchResults.setLayout((new BoxLayout(searchResults, BoxLayout.PAGE_AXIS)));//Setting the layout for search results panel\n\t\tsearchResults.setBorder(BorderFactory.createLineBorder(Color.black));//Sets a border around the panel\n\t\t/*Adding components to the combo boxes panel */\n\t\tjpCmbBoxes.setLayout(new BoxLayout(jpCmbBoxes, BoxLayout.Y_AXIS));//Sets the layout for this panel\n\t\tjpCmbBoxes.add(subTitle);\n\t\tjpCmbBoxes.add(trackingRangeLabel);\n\t\tjpCmbBoxes.add(trackingRange);\n\t\tjpCmbBoxes.add(genderLabel);\n\t\tjpCmbBoxes.add(genderBox);\n\t\tjpCmbBoxes.add(stageOfLifeLabel);\n\t\tjpCmbBoxes.add(stageofLifeBox);\n\t\tjpCmbBoxes.add(tagLocationLabel);\n\t\tjpCmbBoxes.add(tagLocationBox);\n\t\tjpCmbBoxes.add(searchButton);\n\t\tjpCmbBoxes.add(searchByName);\n\t\t\n\t\ttry {//Importing the image for this panel\n\t\t\tsharkImage = ImageIO.read(new File(\"source/images/shark2.png\"));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tJLabel image = new JLabel(new ImageIcon(sharkImage));//Creating a label and adding the image to the label\n\t\tpic.add(image);//adding the label to the panel\n\t}", "public EventsGUI() {\n\t\t// ******** << DEBUGGING MENU FOR EVENTS ONLY >> ******** //\n\t\t// Source: https://docs.oracle.com/javase/tutorial/uiswing/layout/card.html\n\t\tJPanel eventMenuPane = new JPanel(new FlowLayout());\n String menuOptions[] = { SWITCH, BUTTON, LEVER };\n JComboBox<String> eventMenu = new JComboBox<>(menuOptions);\n eventMenu.setEditable(false);\n eventMenu.addItemListener(eventsMain);\n eventMenuPane.add(eventMenu);\n eventMenuPane.setOpaque(false);\n eventMenuPane.setVisible(false); // REMOVE THIS LINE TO ACTIVATE EVENT DEBUGGING\n // ^^*****************************************************************^^ //\n\t\t\n // call methods which generate each event space's GUI\n createImageFiles();\n\t\tcreateSwitchSpace();\n\t\tcreateButtonGrid();\n\t\tcreateLeverSpace();\n\t\tcreateMessageWindow();\n\t\t\n\t\t// add each event's panel to the event main panel\n\t\teventPanel.setOpaque(false);\n\t\teventPanel.add(switchPanel, SWITCH);\n\t\teventPanel.add(buttonPanel, BUTTON);\n\t\teventPanel.add(leverPanel, LEVER);\n\n\t\t// add the event main panel and its background to the event container\n\t\teventsWindow = new JLabel(eventsBG);\n\t\teventsWindow.setBounds(0, 0, getEventsBG().getIconWidth(), getEventsBG().getIconHeight());\n\t\teventPanel.setBounds(0, 0, getEventsBG().getIconWidth(), getEventsBG().getIconHeight());\n\t\teventMenuPane.setBounds(150, 450, 300, 30);\n\t\t\n\t\t// add the close button for events\n\t\tcloseEventButton.addMouseListener(eventsMain);\n\t\tcloseEventButton.setBounds(540, 0, closeButton.getIconWidth(), closeButton.getIconHeight()); // close button position\n\t\t \n\t\t// assemble event components in the main event container\n\t\teventContainer.add(eventsWindow, new Integer(0));\n\t\teventContainer.add(eventPanel, new Integer(1));\n\t\teventContainer.add(closeEventButton, new Integer(2));\n\t\teventContainer.add(eventMenuPane, new Integer(2));\n\n\t\teventContainer.setOpaque(false);\n\t}", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "void wireComponent() {\n\t\t\n\t\topenButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\topenFile();\n\t\t\t}\n\t\t});\n\t\t\n\t\tsaveButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsaveFile();\n\t\t\t}\n\t\t});\n\t\t\n\t\tfontSize.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint newFontSize = (Integer)fontSize.getSelectedItem();\n\t\t\t\tFont font = new Font(null, \n\t\t\t\t\t\ttextEditor.getFont().getStyle(),\n\t\t\t\t\t\tnewFontSize);\n\t\t\t\ttextEditor.setFont(font);\n\t\t\t}\n\t\t});\n\t\t\n\t\tfontStyle.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tFont font = new Font(\n\t\t\t\t\t\tnull,fontStyle.getSelectedIndex(), \n\t\t\t\t\t\ttextEditor.getFont().getSize());\n\t\t\t\ttextEditor.setFont(font);\n\t\t\t}\n\t\t});\n\n\t\tfindButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif(findField.getText().equals(\"\")) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tboolean doFind = (textAreaChanged ||\n\t\t\t\t\t\t!findWord.equals(findField.getText()));\n\t\t\t\tif(doFind) {\n\t\t\t\t\tfinder.clear();\n\t\t\t\t\ttextEditor.getHighlighter().removeAllHighlights();\n\t\t\t\t\tfindWord = findField.getText();\n\t\t\t\t\tfindAllWords();\n\t\t\t\t\tif(finder.size() == 0) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(new JFrame(), \n\t\t\t\t\t\t\t\tfindWord + \" was not \"\n\t\t\t\t\t\t\t\t\t\t+ \"found in the document\",\n\t\t\t\t\t\t\t\t\"Text not found\",\n\t\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\t\tfindIndex = 0;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thighlightNextWord();\n\t\t\t}\n\t\t});\n\t\n\t\treplaceButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString tempText = textEditor.getText();\n\t\t\t\ttempText = tempText.replaceAll(findField.getText(),\n\t\t\t\t\t\treplaceField.getText());\n\t\t\t\ttextEditor.setText(tempText);\n\t\t\t}\n\t\t});\n\t\n\t\tcompileButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString message = \"\";\n\t\t\t\terrorTextArea.setForeground(Color.RED);\n\t\t\t\tcompiled = false;\n\t\t\t\tif(textAreaChanged) {\n\t\t\t\t\tmessage = \"SAVE FIRST\";\n\t\t\t\t}\n\t\t\t\telse if(textEditor.getText().equals(\"\")) {\n\t\t\t\t\tmessage = \"NO CODE\";\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmessage = compile();\n\t\t\t\t\t\tif(message == \"\") {\n\t\t\t\t\t\t\terrorTextArea.setForeground(Color.GREEN);\n\t\t\t\t\t\t\tmessage = \"COMPILED\";\n\t\t\t\t\t\t\tcompiled = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\terrorTextArea.setText(e1.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\terrorTextArea.setText(message);\n\t\t\t}\n\t\t});\n\n\t\trunButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(compiled) {\n\t\t\t\t\terrorTextArea.setText(\"\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\trun();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\terrorTextArea.setForeground(Color.RED);\n\t\t\t\t\terrorTextArea.setText(\"COMPILE FIRST\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\ttextEditor.getDocument().addDocumentListener(\n\t\t\t\tnew DocumentListener() {\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\ttextChanged();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\ttextChanged();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "private void initialize() {\n\t\n\tsetName(\"jgridstart-main-window\");\n\t\n\tstore = new CertificateStoreWithDefault();\n\tselection = new CertificateSelection(store);\n\tPasswordCache.getInstance().setParent(this);\n\tURLLauncherCertificate.setSelectionSource(selection);\n\t\n\t// setup gui\n\tthis.setMinimumSize(new Dimension(400, 150));\n\tthis.setPreferredSize(new Dimension(650, 350));\n\tthis.setContentPane(getJContentPane());\n\tthis.setTitle(\"jGridstart \"+System.getProperty(\"jgridstart.version\"));\n\n\t// create actions; they register themselves\n\tnew ActionRequest(this, store, selection);\n\tnew ActionViewRequest(this, selection);\n\tnew ActionViewVerificationForm(this, selection);\n\tnew ActionImport(this, store, selection);\n\tnew ActionInstall(this, selection);\n\t//new ActionRevoke(this, selection);\n\tnew ActionRenew(this, store, selection);\n\tnew ActionExport(this, selection);\n\tnew ActionMakeDefault(this, store, selection);\n\tnew ActionShowDetails(this, selection) {\n\t @Override\n\t public void actionPerformed(ActionEvent e) {\n\t\tsuper.actionPerformed(e);\n\t\t// update info pane as well\n\t\tcertInfoPane.refresh();\n\t }\n\t};\n\tnew ActionViewLog(this);\n\tnew ActionViewCertificateList(this, certList, false);\n\tnew ActionChangeBrowser(this, selection);\n\tnew ActionRefresh(this, store) {\n\t @Override\n\t public void actionPerformed(ActionEvent e) {\n\t\tsuper.actionPerformed(e);\n\t\t// update info pane as well; TODO move into ActionRefresh itself\n\t\tupdateSelection();\n\t\tcertInfoPane.refresh();\n\t }\n\t};\n\tnew ActionAbout(this);\n\t// now that the actions are available, the menu can be created\n\tthis.setJMenuBar(getJMenuBar());\n\t\n\t// create buttons for template panel from actions\n\tString[] actions = {\n\t\t\"import\", \"request\",\n\t\t\"viewrequest\", /*\"revoke\",*/ \"install\",\n\t\t\"renew\"\n\t};\n\tcertInfoButtons = new HashMap<String, JButton>();\n\tfor (int i=0; i<actions.length; i++) {\n\t JButton btn = new JButton(getAction(actions[i]));\n\t certInfoButtons.put(actions[i], btn);\n\t certInfoPane.addButton(btn, false, false);\n\t}\n\t \n\t// load certificates from default location\n\tstore.load();\n\n\t// Setup the identity menu and add the change listeners\n\tsetupIdentityMenu();\n\n\t// select default certificate if present, otherwise use first one\n\tif (store.size() > 0)\t{\n\t try {\n\t\tselection.setSelection(store.getDefault());\n\t } catch (IOException e) {\n\t\t/* Cannot get default, leave it */\n\t\tselection.setSelection(0);\n\t }\n\t}\n\t// show certificate list only if multiple certificates present\n\tsetViewCertificateList(store.size() > 1);\n\t// make sure ui is up-to-date\n\tupdateSelection();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n cmdTitle = new javax.swing.JButton();\n panelNotes = new javax.swing.JPanel();\n jPanel = new javax.swing.JPanel();\n alterationPanel = new musicwriter.guiswing.AlterationPanel();\n dureePanel = new musicwriter.guiswing.DureePanel();\n jToolBar2 = new javax.swing.JToolBar();\n cmdTriolets = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jToolBar1 = new javax.swing.JToolBar();\n cmdVoixGrouper = new javax.swing.JButton();\n cmdVoixIndependante = new javax.swing.JButton();\n menuNoteLieeALaSuivante = new javax.swing.JToggleButton();\n selectionHampePanel = new musicwriter.guiswing.HampePanel();\n panelBarreDeMesure = new musicwriter.guiswing.PanelBarreDeMesure();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(280, 68));\n setName(\"Form\"); // NOI18N\n setUndecorated(true);\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n formMousePressed(evt);\n }\n });\n addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n formMouseDragged(evt);\n }\n });\n addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n formFocusGained(evt);\n }\n });\n getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.PAGE_AXIS));\n\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(musicwriter.MusicwriterApp.class).getContext().getResourceMap(PaletteFloatableDialog.class);\n cmdTitle.setText(resourceMap.getString(\"cmdTitle.text\")); // NOI18N\n cmdTitle.setAlignmentX(0.5F);\n cmdTitle.setFocusable(false);\n cmdTitle.setMaximumSize(new java.awt.Dimension(280, 16));\n cmdTitle.setMinimumSize(new java.awt.Dimension(120, 16));\n cmdTitle.setName(\"cmdTitle\"); // NOI18N\n cmdTitle.setPreferredSize(new java.awt.Dimension(33, 12));\n cmdTitle.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n cmdTitleMousePressed(evt);\n }\n });\n cmdTitle.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n cmdTitleMouseDragged(evt);\n }\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n cmdTitleMouseMoved(evt);\n }\n });\n cmdTitle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdTitleActionPerformed(evt);\n }\n });\n getContentPane().add(cmdTitle);\n\n panelNotes.setName(\"panelNotes\"); // NOI18N\n panelNotes.setLayout(new javax.swing.BoxLayout(panelNotes, javax.swing.BoxLayout.PAGE_AXIS));\n\n jPanel.setMinimumSize(new java.awt.Dimension(272, 52));\n jPanel.setName(\"jPanel\"); // NOI18N\n jPanel.setPreferredSize(new java.awt.Dimension(168, 52));\n jPanel.setLayout(new javax.swing.BoxLayout(jPanel, javax.swing.BoxLayout.LINE_AXIS));\n\n alterationPanel.setName(\"alterationPanel\"); // NOI18N\n jPanel.add(alterationPanel);\n\n dureePanel.setMaximumSize(new java.awt.Dimension(2147483647, 50));\n dureePanel.setName(\"dureePanel\"); // NOI18N\n jPanel.add(dureePanel);\n\n jToolBar2.setFloatable(false);\n jToolBar2.setRollover(true);\n jToolBar2.setName(\"jToolBar2\"); // NOI18N\n\n cmdTriolets.setIcon(resourceMap.getIcon(\"cmdTriolets.icon\")); // NOI18N\n cmdTriolets.setFocusable(false);\n cmdTriolets.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n cmdTriolets.setName(\"cmdTriolets\"); // NOI18N\n cmdTriolets.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n cmdTriolets.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdTrioletsActionPerformed(evt);\n }\n });\n jToolBar2.add(cmdTriolets);\n\n jPanel.add(jToolBar2);\n\n panelNotes.add(jPanel);\n\n jPanel2.setName(\"jPanel2\"); // NOI18N\n jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.LINE_AXIS));\n\n jToolBar1.setFloatable(false);\n jToolBar1.setRollover(true);\n jToolBar1.setMaximumSize(new java.awt.Dimension(190, 66));\n jToolBar1.setName(\"jToolBar1\"); // NOI18N\n\n cmdVoixGrouper.setIcon(resourceMap.getIcon(\"cmdVoixGrouper.icon\")); // NOI18N\n cmdVoixGrouper.setFocusable(false);\n cmdVoixGrouper.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n cmdVoixGrouper.setName(\"cmdVoixGrouper\"); // NOI18N\n cmdVoixGrouper.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n cmdVoixGrouper.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdVoixGrouperActionPerformed(evt);\n }\n });\n jToolBar1.add(cmdVoixGrouper);\n\n cmdVoixIndependante.setIcon(resourceMap.getIcon(\"cmdVoixIndependante.icon\")); // NOI18N\n cmdVoixIndependante.setFocusable(false);\n cmdVoixIndependante.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n cmdVoixIndependante.setName(\"cmdVoixIndependante\"); // NOI18N\n cmdVoixIndependante.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n cmdVoixIndependante.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmdVoixIndependanteActionPerformed(evt);\n }\n });\n jToolBar1.add(cmdVoixIndependante);\n\n menuNoteLieeALaSuivante.setIcon(resourceMap.getIcon(\"menuNoteLieeALaSuivante.icon\")); // NOI18N\n menuNoteLieeALaSuivante.setFocusable(false);\n menuNoteLieeALaSuivante.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n menuNoteLieeALaSuivante.setName(\"menuNoteLieeALaSuivante\"); // NOI18N\n menuNoteLieeALaSuivante.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n menuNoteLieeALaSuivante.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n menuNoteLieeALaSuivanteMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n menuNoteLieeALaSuivanteMouseExited(evt);\n }\n });\n menuNoteLieeALaSuivante.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuNoteLieeALaSuivanteActionPerformed(evt);\n }\n });\n jToolBar1.add(menuNoteLieeALaSuivante);\n\n selectionHampePanel.setName(\"selectionHampePanel\"); // NOI18N\n jToolBar1.add(selectionHampePanel);\n\n jPanel2.add(jToolBar1);\n\n panelNotes.add(jPanel2);\n\n getContentPane().add(panelNotes);\n\n panelBarreDeMesure.setName(\"panelBarreDeMesure\"); // NOI18N\n getContentPane().add(panelBarreDeMesure);\n\n pack();\n }", "private void registerListeners() {\n\t\t\n\t\t//Vertical coupler action listener\n\t\tvC.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//divide facet option FALSE\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//Edit button not enabled for couplers\n\t\t\t\tedit.setEnabled(false);\n\t\t\t\t//Extend button not enabled for couplers\n\t\t\t\textend.setEnabled(false);\n\t\t\t\t//Setting cursor icon configuration for vertical coupler\n\t\t\t\tbuttonAction(ValidOrientations.VERTICAL.getValue());\n\t\t\t\t//MType for couplers equals 1\n\t\t\t\tmType = ValidCouplerMullions.COUPLER.getValue();\n\t\t\t\t//Semaphore vertical coupler option\n\t\t\t\tselectedHV = ValidOrientations.VERTICAL.getValue();\n\t\t\t\t//Semaphore level selected\n\t\t\t\tselectedLevel = ValidCouplerMullions.COUPLER.getValue();\n\n //Filter valid coupler verticals\n List<TypeCouplerMullion> validCouplers = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.COUPLER.getValue(),\n ValidOrientations.VERTICAL.getValue());\n\n List<TypeCouplerMullion> validDividers = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.DIVIDER.getValue(),\n ValidOrientations.VERTICAL.getValue());\n\n validCouplers.addAll(validDividers);\n\n //Init coupler types comboBox\n\t\t\t\tDefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validCouplers.toArray());\n couplerTypeC.setModel(comboBoxModel);\n\t\t\t\tcouplerTypeC.setSelectedIndex(0);\n\t\t\t\t\n\t\t\t\t//Remove components options which feature\n\t\t\t\twhichFeature.remove(couplerTypeC);\n\t\t\t\twhichFeature.remove(edit);\n\t\t\t\twhichFeature.remove(extend);\n\t\t\t\t\n\t\t\t\twhichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Horizontal coupler action listener\n\t\thC.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Semaphore divide facet option FALSE\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//Edit button disabled for horizontal coupler\n\t\t\t\tedit.setEnabled(false);\n\t\t\t\t//Extend button disabled for horizontal coupler\n\t\t\t\textend.setEnabled(false);\n\t\t\t\t//Semaphore level selected\n\t\t\t\tselectedLevel = ValidCouplerMullions.COUPLER.getValue();\n\t\t\t\t//Setting cursor icon configuration for horizontal coupler\n\t\t\t\tbuttonAction(ValidOrientations.HORIZONTAL.getValue());\n\t\t\t\t//MType for couplers equals 1\n\t\t\t\tmType = ValidCouplerMullions.COUPLER.getValue();\n\t\t\t\t//Semaphore horizontal coupler option\n\t\t\t\tselectedHV = ValidOrientations.HORIZONTAL.getValue();\n\t\t\t\t\n\t\t\t\t//Filter valid coupler verticals\n\t\t\t\tList<TypeCouplerMullion> validCouplers = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.COUPLER.getValue(),\n\t\t\t\t\t\t\tValidOrientations.HORIZONTAL.getValue());\n\t\t\t\t\n\t\t\t\t//Init coupler types comboBox\n\t\t\t\tDefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validCouplers.toArray());\n couplerTypeC.setModel(comboBoxModel);\n couplerTypeC.setSelectedIndex(0);\n\t\t\t\t\n\t\t\t\t//Remove components options which feature\n\t\t\t\twhichFeature.remove(couplerTypeC);\n\t\t\t\twhichFeature.remove(edit);\n\t\t\t\twhichFeature.remove(extend);\n\t\t\t\t\n\t\t\t\twhichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\tvM.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//myParent.clearCMAlignEdit();\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//MType for mullions equals 2\n\t\t\t\tmType = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Vertical mullions position\n\t\t\t\tselectedHV = ValidOrientations.VERTICAL.getValue();\n\t\t\t\t//Level selected for mullions\n\t\t\t\tselectedLevel = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Edit button enabled for vertical mullions\n\t\t\t\tbuttonAction(ValidOrientations.VERTICAL.getValue());\n\t\t\t\t//Extends button enabled for vertical mullions\n\t\t\t\tenableDisableBySeries();\n\t\t\t\t\n\t\t\t\t//Filter valid coupler verticals\n\t\t\t\tList<TypeCouplerMullion> validMullions = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.MULLION.getValue(),\n\t\t\t\t\t\t\tValidOrientations.VERTICAL.getValue());\n\t\t\t\t\n\t\t\t\t//Init mullion types comboBox\n DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validMullions.toArray());\n couplerTypeC.setModel(comboBoxModel);\n couplerTypeC.setSelectedIndex(0);\n\n whichFeature.remove(couplerTypeC);\n\n\t\t\t\twhichFeature.add(edit, new XYConstraints(132, 0, 24, 19));\n\t\t\t\twhichFeature.add(extend, new XYConstraints(156, 0, 24, 19));\n whichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\thM.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//myParent.clearCMAlignEdit();\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//MType for mullions equals 2\n\t\t\t\tmType = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Horizontal mullions position\n\t\t\t\tselectedHV = ValidOrientations.HORIZONTAL.getValue();\n\t\t\t\t//Selected level for mullions equals 2\n\t\t\t\tselectedLevel = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Edit panel enabled for mullions\n\t\t\t\tenableDisableBySeries();\n\t\t\t\tbuttonAction(ValidOrientations.HORIZONTAL.getValue());\n\t\t\t\t//Filter valid coupler verticals\n\t\t\t\tList<TypeCouplerMullion> validMullions = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.MULLION.getValue(),\n\t\t\t\t\t\t\tValidOrientations.HORIZONTAL.getValue());\n\n //Init mullion types comboBox\n DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validMullions.toArray());\n couplerTypeC.setModel(comboBoxModel);\n couplerTypeC.setSelectedIndex(0);\n\n whichFeature.remove(couplerTypeC);\n\n\t\t\t\twhichFeature.add(edit, new XYConstraints(132, 0, 24, 19));\n\t\t\t\twhichFeature.add(extend, new XYConstraints(156, 0, 24, 19));\n whichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcancel.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Setting edit visible\n\t\t\t\tsetEditVisible(false, null);\n\t\t\t\t\n\t\t\t\tif (hM.isSelected() || vM.isSelected()) {\n\t\t\t\t\tenableDisableBySeries();\n\t\t\t\t} else if (hC.isSelected() || vC.isSelected()) {\n\t\t\t\t\tenableDisableBySeries();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Edit mullions action listener\n\t\tedit.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\textend.setSelected(false);\n\t\t\t\tedit.setSelected(true);\n\t\t\t\t\n\t\t\t\t//Call edit action event\n\t\t\t\tedit_actionPerformed(e);\n\t\t\t}\n\t\t});\n\t\t\n\t\tpfCombo.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcomboPF(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Coupler type comboBox listener\n\t\tthis.couplerTypeC.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcoupleTypeAction();\n\t\t\t}\n\t\t});\n\t\t\n\t\tthis.part.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif (part.isSelected()) {\n\t\t\t\t\tparts.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\tparts.setEnabled(false);\n\t\t\t\t\tif (!endTypeLT.isSelected() && !endTypeRB.isSelected() && !pfFormL.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tthis.extend.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\textend.setSelected(true);\n\t\t\t\tedit.setSelected(false);\n\t\t\t\tcont_actionPerformed(e);\n\t\t\t}\n\t\t});\n\t\t\n\t\tendTypeLT.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (endTypeLT.isSelected()) {\n\t\t\t\t\tlCut.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\tlCut.setEnabled(false);\n\t\t\t\t\tif (!part.isSelected() && !endTypeRB.isSelected() && !pfFormL.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tendTypeRB.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (endTypeRB.isSelected()) {\n\t\t\t\t\trCut.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\trCut.setEnabled(false);\n\t\t\t\t\tif (!endTypeLT.isSelected() && !part.isSelected() && !pfFormL.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tpfFormL.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (pfFormL.isSelected()) {\n\t\t\t\t\tpfCombo.setEnabled(true);\n\t\t\t\t\toffsetLT.setEnabled(true);\n\t\t\t\t\toffsetRB.setEnabled(true);\n\t\t\t\t\tdeltaL.setEnabled(true);\n\t\t\t\t\tdeltaR.setEnabled(true);\n\t\t\t\t\toffsetL.setEnabled(true);\n\t\t\t\t\toffsetR.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\tpfCombo.setEnabled(false);\n\t\t\t\t\toffsetLT.setEnabled(false);\n\t\t\t\t\toffsetRB.setEnabled(false);\n\t\t\t\t\tdeltaL.setEnabled(false);\n\t\t\t\t\tdeltaR.setEnabled(false);\n\t\t\t\t\toffsetL.setEnabled(false);\n\t\t\t\t\toffsetR.setEnabled(false);\n\t\t\t\t\tif (!endTypeLT.isSelected() && !part.isSelected() && !part.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tsetGo.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tset_actionPerformed(e);\n\t\t\t}\n\t\t});\n\t}", "private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jToggleButton1 = new javax.swing.JToggleButton();\n jLabel2 = new javax.swing.JLabel();\n jToggleButton2 = new javax.swing.JToggleButton();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTextPane2 = new javax.swing.JTextPane();\n jLabel14 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox();\n jButton1 = new javax.swing.JButton();\n jTextField1 = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n\n setMaximumSize(new java.awt.Dimension(327, 327));\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 1, 18)); // NOI18N\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(MainWindowTopComponent.class, \"MainWindowTopComponent.jLabel1.text\")); // NOI18N\n\n jToggleButton1.setFont(new java.awt.Font(\"Arial\", 0, 11)); // NOI18N\n org.openide.awt.Mnemonics.setLocalizedText(jToggleButton1, org.openide.util.NbBundle.getMessage(MainWindowTopComponent.class, \"MainWindowTopComponent.jToggleButton1.text\")); // NOI18N\n jToggleButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButton1ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(MainWindowTopComponent.class, \"MainWindowTopComponent.jLabel2.text\")); // NOI18N\n\n jToggleButton2.setLabel(org.openide.util.NbBundle.getMessage(MainWindowTopComponent.class, \"MainWindowTopComponent.jToggleButton2.label\")); // NOI18N\n jToggleButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButton2ActionPerformed(evt);\n }\n });\n\n jTextPane2.setEditable(false);\n jTextPane2.setAutoscrolls(false);\n jTextPane2.setMaximumSize(new java.awt.Dimension(300, 300));\n jTextPane2.setMinimumSize(new java.awt.Dimension(300, 300));\n jTextPane2.setPreferredSize(new java.awt.Dimension(300, 300));\n jScrollPane4.setViewportView(jTextPane2);\n\n jLabel14.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n org.openide.awt.Mnemonics.setLocalizedText(jLabel14, org.openide.util.NbBundle.getMessage(MainWindowTopComponent.class, \"MainWindowTopComponent.jLabel14.text\")); // NOI18N\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 0, 24)); // NOI18N\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n org.openide.awt.Mnemonics.setLocalizedText(jLabel16, org.openide.util.NbBundle.getMessage(MainWindowTopComponent.class, \"MainWindowTopComponent.jLabel16.text\")); // NOI18N\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"SQLSlammer\", \"DorkBot\", \"SkyNet\" }));\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBox1ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(MainWindowTopComponent.class, \"MainWindowTopComponent.jButton1.text\")); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jTextField1.setText(org.openide.util.NbBundle.getMessage(MainWindowTopComponent.class, \"MainWindowTopComponent.jTextField1.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(MainWindowTopComponent.class, \"MainWindowTopComponent.jLabel3.text\")); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane4))\n .addGroup(layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jToggleButton1)\n .addGap(71, 71, 71)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(27, 27, 27)\n .addComponent(jToggleButton2)\n .addGap(16, 16, 16)))))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(108, 108, 108))\n .addGroup(layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 356, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addContainerGap(64, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 344, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(80, 80, 80))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jToggleButton1)\n .addComponent(jLabel2)\n .addComponent(jToggleButton2)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel3)\n .addGap(16, 16, 16)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel14)\n .addGap(7, 7, 7))\n .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(18, 18, 18)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 240, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n jLabel14.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(MainWindowTopComponent.class, \"MainWindowTopComponent.jLabel14.AccessibleContext.accessibleName\")); // NOI18N\n jLabel16.getAccessibleContext().setAccessibleName(org.openide.util.NbBundle.getMessage(MainWindowTopComponent.class, \"MainWindowTopComponent.jLabel16.AccessibleContext.accessibleName\")); // NOI18N\n }", "public JavierGUI() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t\tthis.setJavier(getJavier());\r\n\t\tbtnHome.doClick();\r\n\t}", "public GUI() {\n initComponents();\n this.jComboBox1.setEnabled(false);\n this.jButton2.setEnabled(false);\n this.jButton3.setEnabled(false);\n this.jTextArea1.setEnabled(false);\n getContentPane().setBackground(java.awt.Color.getHSBColor((float) 0.62, (float) 0.55, (float) 0.55));\n }", "public void manageComponent() {\n menu = new JMenuBar();\n mainbox = new JScrollPane();\n toolbox = new JPanel();\n paintBox = new JPanel();\n optionbox = new JPanel();\n statusbar = new JPanel();\n paintModule = new PaintModule();\n\n // component setting\n createToolBox(toolbox);\n createMenu(menu);\n createOptionBox(optionbox);\n createStatusBar(statusbar);\n this.setLayout(new BorderLayout());\n\n // add component to container\n paintBox.add(paintModule);\n mainbox.setViewportView(paintBox);\n\n\n this.add(menu, BorderLayout.NORTH);\n this.add(mainbox, BorderLayout.CENTER);\n this.add(toolbox, BorderLayout.WEST);\n this.add(optionbox, BorderLayout.EAST);\n this.add(statusbar, BorderLayout.SOUTH);\n\n }", "public GUI(){\n\t\tsuper(\"Simori\");\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.getContentPane().setBackground(new Color(215,215,215));\n\t\tthis.setLayout(null);\n\t\t\n\t\t\n\t\tJPanel central = new JPanel();\n\t\tcentral.setSize(690,690);\n\t\tcentral.setLayout(new GridLayout(16,16));\n\t\tcentral.setBackground(new Color(215,215,215));\n\t\t\t\t\n\t\tActionListener modeListener = new ChangeModeListener();\n\t\tActionListener gridListener = new GridListener();\n\n\t\t\n\t\tfor(int i = 0; i < display.length; i++){\n\t\t\tfor(int j = 0; j < display[i].length; j++){\n\t\t\t\tJToggleButton button = new JToggleButton();\n\t\t\t\t\t\t\t\t\n\t\t\t\tbutton.setOpaque(true);\n\t\t\t\tbutton.setContentAreaFilled(true);\n\t\t\t\tbutton.setBorderPainted(false);\n\t\t\t\tbutton.setSelectedIcon(SCANNED);\n\t\t\t\tbutton.setIcon(DEFAULT);\n\t\t\t\t\n\t\t\t\tdisplay[i][j] = button;\t\t\t\t\t\t\t\n\t\t\t\tbutton.addActionListener(gridListener);\t\t\t\t\t\t\n\t\t\t\tcentral.add(button);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<36;i++){\n\t\t\tkeyboardIconArray[i] = new ImageIcon(\"imgs//\"+keyboardArray[i]+\".jpg\");\n\t\t\tkeyboardSelectedArray[i] = new ImageIcon(\"imgs//\"+keyboardArray[i]+\"s.jpg\");\n\t\t}\n\t\tthis.add(central);\n\t\tcentral.setBounds(110, 70, 690, 690);\n\t\t\n\t\tChangeLayer.Layers = new Layer[16];\n\t\tfor(int i = 0; i < ChangeLayer.Layers.length; i++){\n\t\t\tChangeLayer.Layers[i] = new Layer();\n\t\t}\n\n\t\t\n\t\tJToggleButton ON = new JToggleButton();\n\t\tON.setToolTipText(\"ON\");;\n\t\tmenuButtons[0] = ON;\n\t\t\n\t\tJToggleButton L1 = new JToggleButton();\n\t\tL1.setToolTipText(\"L1\");\n\t\tmenuButtons[1] = L1;\n\t\tJToggleButton L2 = new JToggleButton();\n\t\tL2.setToolTipText(\"L2\");\n\t\tmenuButtons[2] = L2;\n\t\tJToggleButton L3 = new JToggleButton();\n\t\tL3.setToolTipText(\"L3\");\n\t\tmenuButtons[3] = L3;\n\t\tJToggleButton L4 = new JToggleButton();\n\t\tL4.setToolTipText(\"L4\");\n\t\tmenuButtons[4] = L4;\n\t\t\n\t\tJToggleButton R1 = new JToggleButton();\n\t\tR1.setToolTipText(\"R1\");\n\t\tmenuButtons[5] = R1;\n\t\tJToggleButton R2 = new JToggleButton();\n\t\tR2.setToolTipText(\"R2\");\n\t\tmenuButtons[6] = R2;\n\t\tJToggleButton R3 = new JToggleButton();\n\t\tR3.setToolTipText(\"R3\");\n\t\tmenuButtons[7] = R3;\n\t\tJToggleButton R4 = new JToggleButton();\n\t\tR4.setToolTipText(\"R4\");\n\t\tmenuButtons[8] = R4;\n\t\t\n\t\tJToggleButton OK = new JToggleButton();\n\t\tOK.setToolTipText(\"OK\");\n\t\tmenuButtons[9] = OK;\n\t\t\t\t\t\n\t\t\t\t\n\t\tthis.add(ON);\n\t\tON.setBounds(400, 5, 60, 60);\n\t\tON.setIcon(new ImageIcon(\"imgs//ON.jpg\"));\n\t\tON.setSelectedIcon(new ImageIcon(\"imgs//ONs.jpg\"));\n\t\tON.setBorderPainted(false);\n\t\tON.addActionListener(modeListener);\n\t\t\n\t\tthis.add(L1);\n\t\tL1.setBounds(20, 100, 70, 70);\n\t\tL1.setIcon(new ImageIcon(\"imgs//L1.jpg\"));\n\t\tL1.setSelectedIcon(new ImageIcon(\"imgs//L1s.jpg\"));\n\t\tL1.setBorderPainted(false);\n\t\tL1.addActionListener(modeListener);\n\t\tthis.add(L2);\n\t\tL2.setBounds(20, 250, 70, 70);\n\t\tL2.setIcon(new ImageIcon(\"imgs//L2.jpg\"));\n\t\tL2.setSelectedIcon(new ImageIcon(\"imgs//L2s.jpg\"));\n\t\tL2.setBorderPainted(false);\n\t\tL2.addActionListener(modeListener);\n\t\tthis.add(L3);\n\t\tL3.setBounds(20, 400, 70, 70);\n\t\tL3.setIcon(new ImageIcon(\"imgs//L3.jpg\"));\n\t\tL3.setSelectedIcon(new ImageIcon(\"imgs//L3s.jpg\"));\n\t\tL3.setBorderPainted(false);\n\t\tL3.addActionListener(modeListener);\n\t\tthis.add(L4);\n\t\tL4.setBounds(20, 550, 70, 70);\n\t\tL4.setIcon(new ImageIcon(\"imgs//L4.jpg\"));\n\t\tL4.setSelectedIcon(new ImageIcon(\"imgs//L4s.jpg\"));\n\t\tL4.setBorderPainted(false);\n\t\tL4.addActionListener(modeListener);\n\t\t\n\t\tthis.add(R1);\n\t\tR1.setBounds(820, 100, 70, 70);\n\t\tR1.setIcon(new ImageIcon(\"imgs//R1.jpg\"));\n\t\tR1.setSelectedIcon(new ImageIcon(\"imgs//R1s.jpg\"));\n\t\tR1.setBorderPainted(false);\n\t\tR1.addActionListener(modeListener);\n\t\tthis.add(R2);\n\t\tR2.setBounds(820, 250, 70, 70);\n\t\tR2.setIcon(new ImageIcon(\"imgs//R2.jpg\"));\n\t\tR2.setSelectedIcon(new ImageIcon(\"imgs//R2s.jpg\"));\n\t\tR2.setBorderPainted(false);\n\t\tR2.addActionListener(modeListener);\n\t\tthis.add(R3);\n\t\tR3.setBounds(820, 400, 70, 70);\n\t\tR3.setIcon(new ImageIcon(\"imgs//R3.jpg\"));\n\t\tR3.setSelectedIcon(new ImageIcon(\"imgs//R3s.jpg\"));\n\t\tR3.setBorderPainted(false);\n\t\tR3.addActionListener(modeListener);\n\t\tthis.add(R4);\n\t\tR4.setBounds(820, 550, 70, 70);\n\t\tR4.setIcon(new ImageIcon(\"imgs//R4.jpg\"));\n\t\tR4.setSelectedIcon(new ImageIcon(\"imgs//R4s.jpg\"));\n\t\tR4.setBorderPainted(false);\n\t\tR4.addActionListener(modeListener);\n\t\t\n\t\tthis.add(OK);\n\t\tOK.setBounds(550, 770, 70, 70);\n\t\tOK.setIcon(new ImageIcon(\"imgs//OK.jpg\"));\n\t\tOK.setSelectedIcon(new ImageIcon(\"imgs//OKs.jpg\"));\n\t\tOK.setBorderPainted(false);\n\t\tOK.addActionListener(modeListener);\n\t\t\n\t\tthis.add(textField);\n\t\ttextField.setEditable(false);\n\t\ttextField.setText(\"LCD\");\n\t\ttextField.setBounds(120, 770, 280, 70);\n\t\t\n\n\t\t//sets the initial behaviour\n\t\tOnOff.disableMenuButtons();\n\t\tOnOff.disableGridButtons();\n\t\t\n\t\tthis.setSize(915, 890);\n\t\tthis.setResizable(false);\n\t\tthis.setVisible(true);\n\t\t\n\t}", "private void setupListeners()\n\t{\n\t\tequals.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.calculate();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tequals.setBackground(Color.RED.darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tequals.setBackground(Color.RED);\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tequals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tequals.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t\tclear.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.clearText();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tclear.setBackground(new Color(0, 170, 100).darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tclear.setBackground(new Color(0, 170, 100));\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tclear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tclear.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t\tbackspace.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.backspace();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tbackspace.setBackground(new Color(0, 170, 100).darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tbackspace.setBackground(new Color(0, 170, 100));\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tbackspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tbackspace.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t\tnegative.addMouseListener(new MouseAdapter()\n\t\t{\n\t\t\tpublic void mouseClicked(MouseEvent click)\n\t\t\t{\n\t\t\t\tappController.changeSign();\n\t\t\t\tappController.refocus();\n\t\t\t}\n\n\t\t\tpublic void mousePressed(MouseEvent onClick)\n\t\t\t{\n\t\t\t\tnegative.setBackground(Color.GRAY.darker());\n\t\t\t}\n\n\t\t\tpublic void mouseReleased(MouseEvent offClick)\n\t\t\t{\n\t\t\t\tnegative.setBackground(Color.GRAY);\n\t\t\t}\n\n\t\t\tpublic void mouseEntered(MouseEvent enter)\n\t\t\t{\n\t\t\t\tnegative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.WHITE, 3)));\n\t\t\t}\n\n\t\t\tpublic void mouseExited(MouseEvent exit)\n\t\t\t{\n\t\t\t\tnegative.setBorder(new CompoundBorder(new LineBorder(Color.LIGHT_GRAY, 5), new LineBorder(Color.BLACK, 3)));\n\t\t\t}\n\t\t});\n\t}", "public GUI()\n {\n //Initializes the variables and UI aspects\n UI.initialise();\n UI.addTextField(\"Search Title/Director/Genre\", this::searchEither);\n UI.addButton(\"Add Movie\", this::newMovie);\n UI.addButton(\"Rate Movie\", this::rateMovie);\n UI.addButton(\"Show All Movies\", this::printAll);\n UI.addButton(\"Recommend Movies\", this::recommendMovie);\n UI.setMouseListener(r::manageMouse);\n UI.addButton(\"Quit\", UI::quit);\n \n // Sets the size of the whole window and the divider\n UI.setWindowSize(CANVASWIDTH, CANVASHEIGHT);\n UI.setDivider(0.4);\n this.drawMain();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Hello = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n events = new javax.swing.JPanel();\n chooseHelp = new javax.swing.JPanel();\n general = new javax.swing.JButton();\n browsing = new javax.swing.JButton();\n running = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n helpTxt = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n Hello.setBackground(new java.awt.Color(56, 105, 100));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 1, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Help\");\n\n javax.swing.GroupLayout HelloLayout = new javax.swing.GroupLayout(Hello);\n Hello.setLayout(HelloLayout);\n HelloLayout.setHorizontalGroup(\n HelloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(HelloLayout.createSequentialGroup()\n .addGap(160, 160, 160)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 291, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(190, Short.MAX_VALUE))\n );\n HelloLayout.setVerticalGroup(\n HelloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE)\n );\n\n events.setBackground(new java.awt.Color(18, 86, 104));\n\n chooseHelp.setBackground(new java.awt.Color(56, 105, 126));\n\n general.setText(\"General\");\n general.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n generalActionPerformed(evt);\n }\n });\n\n browsing.setText(\"Browsing Files\");\n browsing.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n browsingActionPerformed(evt);\n }\n });\n\n running.setText(\"Running the program\");\n running.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n runningActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Saving Report File\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout chooseHelpLayout = new javax.swing.GroupLayout(chooseHelp);\n chooseHelp.setLayout(chooseHelpLayout);\n chooseHelpLayout.setHorizontalGroup(\n chooseHelpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(general, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(browsing, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(running, javax.swing.GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n chooseHelpLayout.setVerticalGroup(\n chooseHelpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(chooseHelpLayout.createSequentialGroup()\n .addGap(82, 82, 82)\n .addComponent(general)\n .addGap(18, 18, 18)\n .addComponent(browsing)\n .addGap(18, 18, 18)\n .addComponent(running)\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addContainerGap(119, Short.MAX_VALUE))\n );\n\n helpTxt.setEditable(false);\n helpTxt.setColumns(20);\n helpTxt.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n helpTxt.setLineWrap(true);\n helpTxt.setRows(5);\n helpTxt.setBorder(new javax.swing.border.MatteBorder(null));\n jScrollPane1.setViewportView(helpTxt);\n\n javax.swing.GroupLayout eventsLayout = new javax.swing.GroupLayout(events);\n events.setLayout(eventsLayout);\n eventsLayout.setHorizontalGroup(\n eventsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(eventsLayout.createSequentialGroup()\n .addComponent(chooseHelp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jScrollPane1))\n );\n eventsLayout.setVerticalGroup(\n eventsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(chooseHelp, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1)\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Hello, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(events, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(Hello, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(events, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void initComponents() {\n\n jPMListar = new javax.swing.JPopupMenu();\n jPanel = new javax.swing.JPanel();\n jPCampos = new javax.swing.JPanel();\n jPanel4 = new javax.swing.JPanel();\n jPanel14 = new javax.swing.JPanel();\n jLStatusBar = new javax.swing.JLabel();\n jPAccesos = new javax.swing.JPanel();\n jLNAccesos = new javax.swing.JLabel();\n jTFNAccesos = new javax.swing.JTextField();\n jPanel2 = new javax.swing.JPanel();\n jPBotones1 = new javax.swing.JPanel();\n jToolBar1 = new javax.swing.JToolBar();\n jBAbrirSGFF = new javax.swing.JButton();\n jBGuardarSGFF = new javax.swing.JButton();\n jBImportarSGFF = new javax.swing.JButton();\n jToolBar2 = new javax.swing.JToolBar();\n jBNuevaFicha = new javax.swing.JButton();\n jCBArchivos = new javax.swing.JComboBox();\n jBComenzarConsulta = new javax.swing.JButton();\n jBRegistroAnterior = new javax.swing.JButton();\n jBRegistroSiguiente = new javax.swing.JButton();\n jBListar = new javax.swing.JButton();\n jBAccInv = new javax.swing.JButton();\n jToolBar3 = new javax.swing.JToolBar();\n jBInsertarRegistro = new javax.swing.JButton();\n jBBorrarRegistro = new javax.swing.JButton();\n jBActualizarRegistro = new javax.swing.JButton();\n jToolBar4 = new javax.swing.JToolBar();\n jBCaracteres = new javax.swing.JButton();\n jBAyuda = new javax.swing.JButton();\n jBSSGFF = new javax.swing.JButton();\n jPBotones2 = new javax.swing.JPanel();\n jToolBar5 = new javax.swing.JToolBar();\n jBIrAlPadre = new javax.swing.JButton();\n jBIrAlHijo = new javax.swing.JButton();\n jCBHijos = new javax.swing.JComboBox();\n jBIrAlPV = new javax.swing.JButton();\n jCBPadresV = new javax.swing.JComboBox();\n jBIrAlHV = new javax.swing.JButton();\n jCBHijosV = new javax.swing.JComboBox();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenuEsquema = new javax.swing.JMenu();\n jMenuEsquemaAbrir = new javax.swing.JMenuItem();\n jMenuEsquemaCerrar = new javax.swing.JMenuItem();\n jMenuEsquemaGuardar = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JSeparator();\n jMenuEsquemaExit = new javax.swing.JMenuItem();\n jMenuRegistro = new javax.swing.JMenu();\n jMenuNuevo = new javax.swing.JMenuItem();\n jSeparator2 = new javax.swing.JSeparator();\n jMenuInsertar = new javax.swing.JMenuItem();\n jMenuBorrar = new javax.swing.JMenuItem();\n jMenuActualizar = new javax.swing.JMenuItem();\n jMenuBusq = new javax.swing.JMenu();\n jMenuComenzar = new javax.swing.JMenuItem();\n jMenuSiguiente = new javax.swing.JMenuItem();\n jMenuAnterior = new javax.swing.JMenuItem();\n jSeparator4 = new javax.swing.JSeparator();\n jMenuVinculo = new javax.swing.JMenu();\n jMenuPadre = new javax.swing.JMenuItem();\n jMenuHijo = new javax.swing.JMenuItem();\n jSeparator6 = new javax.swing.JSeparator();\n jMenuPV = new javax.swing.JMenuItem();\n jMenuHV = new javax.swing.JMenuItem();\n jSeparator5 = new javax.swing.JSeparator();\n jMenuBusqCompleja = new javax.swing.JMenuItem();\n jSeparator10 = new javax.swing.JSeparator();\n jMenuAccInv = new javax.swing.JMenuItem();\n jSeparator3 = new javax.swing.JSeparator();\n jMenuListados = new javax.swing.JMenu();\n jMenuMantenimiento = new javax.swing.JMenu();\n jMenuMantImportar = new javax.swing.JMenuItem();\n jSeparator7 = new javax.swing.JSeparator();\n jMenuMantCompactar = new javax.swing.JMenuItem();\n jMenuMantReorganizar = new javax.swing.JMenuItem();\n jSeparator8 = new javax.swing.JSeparator();\n jMenuMantCreaInd = new javax.swing.JMenuItem();\n jMenuMantDestInd = new javax.swing.JMenuItem();\n jMenuMantReorgInd = new javax.swing.JMenuItem();\n jMenuHelp = new javax.swing.JMenu();\n jMenuHelpChar = new javax.swing.JMenuItem();\n jSeparator9 = new javax.swing.JSeparator();\n jMenuHelpAbout = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Sistema Gestor De Ficheros 'Los Conductores'\");\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jPanel.setMinimumSize(new java.awt.Dimension(374, 3000));\n jPanel.setPreferredSize(new java.awt.Dimension(850, 3000));\n jPanel.setLayout(new java.awt.BorderLayout());\n\n jPCampos.setMinimumSize(new java.awt.Dimension(0, 1600));\n jPCampos.setPreferredSize(new java.awt.Dimension(0, 1600));\n jPCampos.setLayout(new javax.swing.BoxLayout(jPCampos, javax.swing.BoxLayout.Y_AXIS));\n jPanel.add(jPCampos, java.awt.BorderLayout.CENTER);\n\n jPanel4.setMaximumSize(new java.awt.Dimension(134, 30));\n jPanel4.setMinimumSize(new java.awt.Dimension(134, 30));\n jPanel4.setLayout(new java.awt.BorderLayout());\n\n jPanel14.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));\n\n jLStatusBar.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n jLStatusBar.setText(\" \");\n jLStatusBar.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);\n jPanel14.add(jLStatusBar);\n\n jPanel4.add(jPanel14, java.awt.BorderLayout.WEST);\n\n jLNAccesos.setText(\"Nº de accesos\");\n jPAccesos.add(jLNAccesos);\n\n jTFNAccesos.setColumns(4);\n jTFNAccesos.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n jTFNAccesos.setText(\"0\");\n jPAccesos.add(jTFNAccesos);\n\n jPanel4.add(jPAccesos, java.awt.BorderLayout.EAST);\n\n jPanel.add(jPanel4, java.awt.BorderLayout.SOUTH);\n\n jPanel2.setMaximumSize(new java.awt.Dimension(374, 60));\n jPanel2.setMinimumSize(new java.awt.Dimension(374, 60));\n jPanel2.setPreferredSize(new java.awt.Dimension(374, 60));\n jPanel2.setLayout(new javax.swing.BoxLayout(jPanel2, javax.swing.BoxLayout.Y_AXIS));\n\n jPBotones1.setPreferredSize(new java.awt.Dimension(278, 20));\n jPBotones1.setLayout(new javax.swing.BoxLayout(jPBotones1, javax.swing.BoxLayout.LINE_AXIS));\n\n jBAbrirSGFF.setToolTipText(\"Abrir sistema de ficheros\");\n jBAbrirSGFF.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBAbrirSGFFActionPerformed(evt);\n }\n });\n jToolBar1.add(jBAbrirSGFF);\n\n jBGuardarSGFF.setToolTipText(\"Guardar sistema de ficheros\");\n jBGuardarSGFF.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBGuardarSGFFActionPerformed(evt);\n }\n });\n jToolBar1.add(jBGuardarSGFF);\n\n jBImportarSGFF.setToolTipText(\"Importar fichero\");\n jBImportarSGFF.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBImportarSGFFActionPerformed(evt);\n }\n });\n jToolBar1.add(jBImportarSGFF);\n\n jPBotones1.add(jToolBar1);\n\n jBNuevaFicha.setToolTipText(\"Nueva ficha\");\n jBNuevaFicha.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBNuevaFichaActionPerformed(evt);\n }\n });\n jToolBar2.add(jBNuevaFicha);\n\n jCBArchivos.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jCBArchivosItemStateChanged(evt);\n }\n });\n jToolBar2.add(jCBArchivos);\n\n jBComenzarConsulta.setToolTipText(\"Comenzar consulta\");\n jBComenzarConsulta.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBComenzarConsultaActionPerformed(evt);\n }\n });\n jToolBar2.add(jBComenzarConsulta);\n\n jBRegistroAnterior.setToolTipText(\"Registro anterior\");\n jBRegistroAnterior.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBRegistroAnteriorActionPerformed(evt);\n }\n });\n jToolBar2.add(jBRegistroAnterior);\n\n jBRegistroSiguiente.setToolTipText(\"Registro siguiente\");\n jBRegistroSiguiente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBRegistroSiguienteActionPerformed(evt);\n }\n });\n jToolBar2.add(jBRegistroSiguiente);\n\n jBListar.setComponentPopupMenu(jPMListar);\n jBListar.setToolTipText(\"Listar\");\n jBListar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBListarActionPerformed(evt);\n }\n });\n jToolBar2.add(jBListar);\n\n jBAccInv.setComponentPopupMenu(jPMListar);\n jBAccInv.setToolTipText(\"Acceso invertido\");\n jBAccInv.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBAccInvActionPerformed(evt);\n }\n });\n jToolBar2.add(jBAccInv);\n\n jPBotones1.add(jToolBar2);\n\n jBInsertarRegistro.setToolTipText(\"Insertar registro\");\n jBInsertarRegistro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBInsertarRegistroActionPerformed(evt);\n }\n });\n jToolBar3.add(jBInsertarRegistro);\n\n jBBorrarRegistro.setToolTipText(\"Borrar registro\");\n jBBorrarRegistro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBBorrarRegistroActionPerformed(evt);\n }\n });\n jToolBar3.add(jBBorrarRegistro);\n\n jBActualizarRegistro.setToolTipText(\"Actualizar registro\");\n jBActualizarRegistro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBActualizarRegistroActionPerformed(evt);\n }\n });\n jToolBar3.add(jBActualizarRegistro);\n\n jPBotones1.add(jToolBar3);\n\n jBCaracteres.setFont(new java.awt.Font(\"Arial Black\", 3, 11)); // NOI18N\n jBCaracteres.setText(\"\\\\?\");\n jBCaracteres.setToolTipText(\"Consulta los caracteres especiales\");\n jBCaracteres.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBCaracteresActionPerformed(evt);\n }\n });\n jToolBar4.add(jBCaracteres);\n\n jBAyuda.setToolTipText(\"Ayuda\");\n jBAyuda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBAyudaActionPerformed(evt);\n }\n });\n jToolBar4.add(jBAyuda);\n\n jBSSGFF.setToolTipText(\"Salir del gestor de ficheros\");\n jBSSGFF.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBSSGFFActionPerformed(evt);\n }\n });\n jToolBar4.add(jBSSGFF);\n\n jPBotones1.add(jToolBar4);\n\n jPanel2.add(jPBotones1);\n\n jPBotones2.setPreferredSize(new java.awt.Dimension(149, 20));\n jPBotones2.setLayout(new javax.swing.BoxLayout(jPBotones2, javax.swing.BoxLayout.LINE_AXIS));\n\n jToolBar5.setMinimumSize(new java.awt.Dimension(137, 25));\n\n jBIrAlPadre.setToolTipText(\"Ir al padre\");\n jBIrAlPadre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBIrAlPadreActionPerformed(evt);\n }\n });\n jToolBar5.add(jBIrAlPadre);\n\n jBIrAlHijo.setToolTipText(\"Ir al hijo nº\");\n jBIrAlHijo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBIrAlHijoActionPerformed(evt);\n }\n });\n jToolBar5.add(jBIrAlHijo);\n\n jCBHijos.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jCBHijosItemStateChanged(evt);\n }\n });\n jToolBar5.add(jCBHijos);\n\n jBIrAlPV.setToolTipText(\"Ir al padre virtual nº\");\n jBIrAlPV.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBIrAlPVActionPerformed(evt);\n }\n });\n jToolBar5.add(jBIrAlPV);\n\n jCBPadresV.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jCBPadresVItemStateChanged(evt);\n }\n });\n jToolBar5.add(jCBPadresV);\n\n jBIrAlHV.setToolTipText(\"Ir al hijo virtual nº\");\n jBIrAlHV.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBIrAlHVActionPerformed(evt);\n }\n });\n jToolBar5.add(jBIrAlHV);\n\n jCBHijosV.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jCBHijosVItemStateChanged(evt);\n }\n });\n jToolBar5.add(jCBHijosV);\n\n jPBotones2.add(jToolBar5);\n\n jPanel2.add(jPBotones2);\n\n jPanel.add(jPanel2, java.awt.BorderLayout.NORTH);\n\n getContentPane().add(jPanel, java.awt.BorderLayout.CENTER);\n\n jMenuBar1.setMinimumSize(new java.awt.Dimension(840, 2));\n\n jMenuEsquema.setText(\"Esquema\");\n\n jMenuEsquemaAbrir.setText(\"Abrir\");\n jMenuEsquemaAbrir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuEsquemaAbrirActionPerformed(evt);\n }\n });\n jMenuEsquema.add(jMenuEsquemaAbrir);\n\n jMenuEsquemaCerrar.setText(\"Cerrar\");\n jMenuEsquemaCerrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuEsquemaCerrarActionPerformed(evt);\n }\n });\n jMenuEsquema.add(jMenuEsquemaCerrar);\n\n jMenuEsquemaGuardar.setText(\"Guardar\");\n jMenuEsquemaGuardar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuEsquemaGuardarActionPerformed(evt);\n }\n });\n jMenuEsquema.add(jMenuEsquemaGuardar);\n jMenuEsquema.add(jSeparator1);\n\n jMenuEsquemaExit.setText(\"Salir\");\n jMenuEsquemaExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuEsquemaExitActionPerformed(evt);\n }\n });\n jMenuEsquema.add(jMenuEsquemaExit);\n\n jMenuBar1.add(jMenuEsquema);\n\n jMenuRegistro.setText(\"Registro\");\n\n jMenuNuevo.setText(\"Nueva ficha\");\n jMenuNuevo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuNuevoActionPerformed(evt);\n }\n });\n jMenuRegistro.add(jMenuNuevo);\n jMenuRegistro.add(jSeparator2);\n\n jMenuInsertar.setText(\"Insertar en\");\n jMenuInsertar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuInsertarActionPerformed(evt);\n }\n });\n jMenuRegistro.add(jMenuInsertar);\n\n jMenuBorrar.setText(\"Borrar de\");\n jMenuBorrar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuBorrarActionPerformed(evt);\n }\n });\n jMenuRegistro.add(jMenuBorrar);\n\n jMenuActualizar.setText(\"Actualizar registros del\");\n jMenuActualizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuActualizarActionPerformed(evt);\n }\n });\n jMenuRegistro.add(jMenuActualizar);\n\n jMenuBar1.add(jMenuRegistro);\n\n jMenuBusq.setText(\"Búsqueda\");\n\n jMenuComenzar.setText(\"Comenzar búsqueda sobre\");\n jMenuComenzar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuComenzarActionPerformed(evt);\n }\n });\n jMenuBusq.add(jMenuComenzar);\n\n jMenuSiguiente.setText(\"Siguiente\");\n jMenuSiguiente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuSiguienteActionPerformed(evt);\n }\n });\n jMenuBusq.add(jMenuSiguiente);\n\n jMenuAnterior.setText(\"Anterior\");\n jMenuAnterior.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuAnteriorActionPerformed(evt);\n }\n });\n jMenuBusq.add(jMenuAnterior);\n jMenuBusq.add(jSeparator4);\n\n jMenuVinculo.setText(\"Ir a...\");\n\n jMenuPadre.setText(\"Registro padre\");\n jMenuPadre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuPadreActionPerformed(evt);\n }\n });\n jMenuVinculo.add(jMenuPadre);\n\n jMenuHijo.setText(\"Primer hijo\");\n jMenuHijo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuHijoActionPerformed(evt);\n }\n });\n jMenuVinculo.add(jMenuHijo);\n jMenuVinculo.add(jSeparator6);\n\n jMenuPV.setText(\"Padre virtual\");\n jMenuPV.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuPVActionPerformed(evt);\n }\n });\n jMenuVinculo.add(jMenuPV);\n\n jMenuHV.setText(\"Hijo virtual\");\n jMenuHV.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuHVActionPerformed(evt);\n }\n });\n jMenuVinculo.add(jMenuHV);\n\n jMenuBusq.add(jMenuVinculo);\n jMenuBusq.add(jSeparator5);\n\n jMenuBusqCompleja.setText(\"Busqueda avanzada\");\n jMenuBusqCompleja.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuBusqComplejaActionPerformed(evt);\n }\n });\n jMenuBusq.add(jMenuBusqCompleja);\n jMenuBusq.add(jSeparator10);\n\n jMenuAccInv.setText(\"Acceso Invertido\");\n jMenuAccInv.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuAccInvActionPerformed(evt);\n }\n });\n jMenuBusq.add(jMenuAccInv);\n jMenuBusq.add(jSeparator3);\n\n jMenuListados.setText(\"Listados\");\n jMenuBusq.add(jMenuListados);\n\n jMenuBar1.add(jMenuBusq);\n\n jMenuMantenimiento.setText(\"Mantenimiento\");\n\n jMenuMantImportar.setText(\"Importar\");\n jMenuMantImportar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuMantImportarActionPerformed(evt);\n }\n });\n jMenuMantenimiento.add(jMenuMantImportar);\n jMenuMantenimiento.add(jSeparator7);\n\n jMenuMantCompactar.setText(\"Compactar\");\n jMenuMantCompactar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuMantCompactarActionPerformed(evt);\n }\n });\n jMenuMantenimiento.add(jMenuMantCompactar);\n\n jMenuMantReorganizar.setText(\"Reorganizar espacio\");\n jMenuMantReorganizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuMantReorganizarActionPerformed(evt);\n }\n });\n jMenuMantenimiento.add(jMenuMantReorganizar);\n jMenuMantenimiento.add(jSeparator8);\n\n jMenuMantCreaInd.setText(\"Crear índice\");\n jMenuMantCreaInd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuMantCreaIndActionPerformed(evt);\n }\n });\n jMenuMantenimiento.add(jMenuMantCreaInd);\n\n jMenuMantDestInd.setText(\"Destruir índice\");\n jMenuMantDestInd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuMantDestIndActionPerformed(evt);\n }\n });\n jMenuMantenimiento.add(jMenuMantDestInd);\n\n jMenuMantReorgInd.setText(\"Reorganizar índice\");\n jMenuMantReorgInd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuMantReorgIndActionPerformed(evt);\n }\n });\n jMenuMantenimiento.add(jMenuMantReorgInd);\n\n jMenuBar1.add(jMenuMantenimiento);\n\n jMenuHelp.setText(\"Ayuda\");\n\n jMenuHelpChar.setText(\"Etiquetas especiales...\");\n jMenuHelpChar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuHelpCharActionPerformed(evt);\n }\n });\n jMenuHelp.add(jMenuHelpChar);\n jMenuHelp.add(jSeparator9);\n\n jMenuHelpAbout.setText(\"Acerca de...\");\n jMenuHelpAbout.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuHelpAboutActionPerformed(evt);\n }\n });\n jMenuHelp.add(jMenuHelpAbout);\n\n jMenuBar1.add(jMenuHelp);\n\n setJMenuBar(jMenuBar1);\n\n pack();\n }", "private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n obsahFrame = new cz.wt.convertor.main.gui.ObsahFrame();\n menuBar = new javax.swing.JMenuBar();\n javax.swing.JMenu fileMenu = new javax.swing.JMenu();\n javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();\n javax.swing.JMenu helpMenu = new javax.swing.JMenu();\n helpMenuItem = new javax.swing.JMenuItem();\n javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"cz/wt/convertor/main/gui/Bundle\"); // NOI18N\n setTitle(bundle.getString(\"MainFrame.title\")); // NOI18N\n setMinimumSize(new java.awt.Dimension(300, 30));\n getContentPane().setLayout(new java.awt.GridBagLayout());\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;\n gridBagConstraints.weightx = 1.0;\n gridBagConstraints.weighty = 1.0;\n getContentPane().add(obsahFrame, gridBagConstraints);\n\n fileMenu.setText(bundle.getString(\"MainFrame.fileMenu.text\")); // NOI18N\n\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance().getContext().getActionMap(MainFrame.class, this);\n exitMenuItem.setAction(actionMap.get(\"quit\")); // NOI18N\n fileMenu.add(exitMenuItem);\n\n menuBar.add(fileMenu);\n\n helpMenu.setText(bundle.getString(\"MainFrame.helpMenu.text\")); // NOI18N\n\n helpMenuItem.setAction(actionMap.get(\"showHelpBox\")); // NOI18N\n helpMenuItem.setText(bundle.getString(\"MainFrame.helpMenuItem.text\")); // NOI18N\n helpMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n napoveda(evt);\n }\n });\n helpMenu.add(helpMenuItem);\n\n aboutMenuItem.setText(bundle.getString(\"MainFrame.aboutMenuItem.text\")); // NOI18N\n aboutMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n about(evt);\n }\n });\n helpMenu.add(aboutMenuItem);\n\n menuBar.add(helpMenu);\n\n setJMenuBar(menuBar);\n\n pack();\n }", "private void buildComponents() {\r\n buildJMenuBar();\r\n setJMenuBar( gameBar );\r\n\r\n buildScorePanel();\r\n buildInfoPanel();\r\n\r\n getContentPane().add( scorePanel, \"North\" );\r\n getContentPane().add( infoPanel, \"South\" );\r\n }", "private void initComponents() {\n frame = new JFrame();\r\n JPanel panel2 = new JPanel();\r\n enrereButton = new JButton();\r\n JLabel label1 = new JLabel();\r\n JPanel panel3 = new JPanel();\r\n textField1 = new JTextField();\r\n JLabel label2 = new JLabel();\r\n JPanel panel4 = new JPanel();\r\n JLabel label3 = new JLabel();\r\n jScrollPane1 = new JScrollPane();\r\n textArea1 = new JTextArea();\r\n JPanel panel5 = new JPanel();\r\n cercaButton = new JButton();\r\n framew = new JWindow();\r\n label4 = new JLabel();\r\n\r\n //======== frame ========\r\n {\r\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n frame.addComponentListener(new ComponentAdapter() {\r\n @Override\r\n public void componentMoved(ComponentEvent e) {\r\n framewComponentMoved(e);\r\n }\r\n });\r\n Container frameContentPane = frame.getContentPane();\r\n\r\n //======== panel2 ========\r\n {\r\n\r\n // JFormDesigner evaluation mark\r\n panel2.setBorder(new javax.swing.border.CompoundBorder(\r\n new javax.swing.border.TitledBorder(new javax.swing.border.EmptyBorder(0, 0, 0, 0),\r\n \"JFormDesigner Evaluation\", javax.swing.border.TitledBorder.CENTER,\r\n javax.swing.border.TitledBorder.BOTTOM, new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 12),\r\n java.awt.Color.red), panel2.getBorder())); panel2.addPropertyChangeListener(new java.beans.PropertyChangeListener(){public void propertyChange(java.beans.PropertyChangeEvent e){if(\"border\".equals(e.getPropertyName()))throw new RuntimeException();}});\r\n\r\n\r\n //---- enrereButton ----\r\n enrereButton.setText(\"Enrere\");\r\n enrereButton.addActionListener(e -> enrereButtonActionPerformed(e));\r\n\r\n //---- label1 ----\r\n label1.setText(\"CERCA RELLEV\\u00c0NCIA\");\r\n\r\n GroupLayout panel2Layout = new GroupLayout(panel2);\r\n panel2.setLayout(panel2Layout);\r\n panel2Layout.setHorizontalGroup(\r\n panel2Layout.createParallelGroup()\r\n .addGroup(panel2Layout.createSequentialGroup()\r\n .addComponent(enrereButton)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 106, Short.MAX_VALUE)\r\n .addComponent(label1, GroupLayout.PREFERRED_SIZE, 136, GroupLayout.PREFERRED_SIZE)\r\n .addGap(41, 41, 41))\r\n );\r\n panel2Layout.setVerticalGroup(\r\n panel2Layout.createParallelGroup()\r\n .addGroup(panel2Layout.createSequentialGroup()\r\n .addGap(26, 26, 26)\r\n .addGroup(panel2Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n .addComponent(enrereButton)\r\n .addComponent(label1, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE)))\r\n );\r\n }\r\n\r\n //======== panel3 ========\r\n {\r\n\r\n //---- label2 ----\r\n label2.setText(\"Tipus de cerca : \");\r\n\r\n GroupLayout panel3Layout = new GroupLayout(panel3);\r\n panel3.setLayout(panel3Layout);\r\n panel3Layout.setHorizontalGroup(\r\n panel3Layout.createParallelGroup()\r\n .addGroup(panel3Layout.createSequentialGroup()\r\n .addComponent(label2)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(textField1, GroupLayout.PREFERRED_SIZE, 290, GroupLayout.PREFERRED_SIZE)\r\n .addGap(92, 92, 92))\r\n );\r\n panel3Layout.setVerticalGroup(\r\n panel3Layout.createParallelGroup()\r\n .addGroup(panel3Layout.createSequentialGroup()\r\n .addGap(23, 23, 23)\r\n .addGroup(panel3Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\r\n .addComponent(label2)\r\n .addComponent(textField1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\r\n .addGap(12, 12, 12))\r\n );\r\n }\r\n\r\n //======== panel4 ========\r\n {\r\n\r\n //---- label3 ----\r\n label3.setText(\"Entitats:\");\r\n\r\n //======== jScrollPane1 ========\r\n {\r\n\r\n //---- textArea1 ----\r\n textArea1.setColumns(20);\r\n textArea1.setRows(5);\r\n jScrollPane1.setViewportView(textArea1);\r\n }\r\n\r\n GroupLayout panel4Layout = new GroupLayout(panel4);\r\n panel4.setLayout(panel4Layout);\r\n panel4Layout.setHorizontalGroup(\r\n panel4Layout.createParallelGroup()\r\n .addGroup(panel4Layout.createSequentialGroup()\r\n .addGap(42, 42, 42)\r\n .addComponent(label3)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jScrollPane1, GroupLayout.PREFERRED_SIZE, 285, GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(97, Short.MAX_VALUE))\r\n );\r\n panel4Layout.setVerticalGroup(\r\n panel4Layout.createParallelGroup()\r\n .addGroup(panel4Layout.createSequentialGroup()\r\n .addGroup(panel4Layout.createParallelGroup()\r\n .addComponent(label3)\r\n .addGroup(panel4Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jScrollPane1, GroupLayout.PREFERRED_SIZE, 141, GroupLayout.PREFERRED_SIZE)))\r\n .addContainerGap(35, Short.MAX_VALUE))\r\n );\r\n }\r\n\r\n //======== panel5 ========\r\n {\r\n\r\n //---- cercaButton ----\r\n cercaButton.setText(\"Cerca\");\r\n\r\n GroupLayout panel5Layout = new GroupLayout(panel5);\r\n panel5.setLayout(panel5Layout);\r\n panel5Layout.setHorizontalGroup(\r\n panel5Layout.createParallelGroup()\r\n .addGroup(panel5Layout.createSequentialGroup()\r\n .addGap(283, 283, 283)\r\n .addComponent(cercaButton)\r\n .addGap(141, 141, 141))\r\n );\r\n panel5Layout.setVerticalGroup(\r\n panel5Layout.createParallelGroup()\r\n .addGroup(panel5Layout.createSequentialGroup()\r\n .addGap(14, 14, 14)\r\n .addComponent(cercaButton))\r\n );\r\n }\r\n\r\n GroupLayout frameContentPaneLayout = new GroupLayout(frameContentPane);\r\n frameContentPane.setLayout(frameContentPaneLayout);\r\n frameContentPaneLayout.setHorizontalGroup(\r\n frameContentPaneLayout.createParallelGroup()\r\n .addGroup(frameContentPaneLayout.createSequentialGroup()\r\n .addGroup(frameContentPaneLayout.createParallelGroup()\r\n .addComponent(panel2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(panel3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n .addGroup(frameContentPaneLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(frameContentPaneLayout.createParallelGroup()\r\n .addComponent(panel5, GroupLayout.PREFERRED_SIZE, 353, GroupLayout.PREFERRED_SIZE)\r\n .addComponent(panel4, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\r\n .addContainerGap())\r\n );\r\n frameContentPaneLayout.setVerticalGroup(\r\n frameContentPaneLayout.createParallelGroup()\r\n .addGroup(frameContentPaneLayout.createSequentialGroup()\r\n .addComponent(panel2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n .addGap(5, 5, 5)\r\n .addComponent(panel3, GroupLayout.PREFERRED_SIZE, 47, GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(panel4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(panel5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\r\n .addGap(33, 33, 33))\r\n );\r\n frame.pack();\r\n frame.setLocationRelativeTo(frame.getOwner());\r\n }\r\n\r\n //======== framew ========\r\n {\r\n framew.setOpacity(0.5F);\r\n framew.setFocusable(false);\r\n framew.setFocusableWindowState(false);\r\n framew.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n framew.setAlwaysOnTop(true);\r\n framew.addComponentListener(new ComponentAdapter() {\r\n @Override\r\n public void componentMoved(ComponentEvent e) {\r\n framewComponentMoved(e);\r\n }\r\n });\r\n Container framewContentPane = framew.getContentPane();\r\n\r\n //---- label4 ----\r\n label4.setIcon(new ImageIcon(getClass().getResource(\"/Presentacio/ajax-loader.gif\")));\r\n label4.setHorizontalAlignment(SwingConstants.CENTER);\r\n label4.setFocusable(false);\r\n label4.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\r\n\r\n GroupLayout framewContentPaneLayout = new GroupLayout(framewContentPane);\r\n framewContentPane.setLayout(framewContentPaneLayout);\r\n framewContentPaneLayout.setHorizontalGroup(\r\n framewContentPaneLayout.createParallelGroup()\r\n .addComponent(label4, GroupLayout.DEFAULT_SIZE, 485, Short.MAX_VALUE)\r\n );\r\n framewContentPaneLayout.setVerticalGroup(\r\n framewContentPaneLayout.createParallelGroup()\r\n .addComponent(label4, GroupLayout.Alignment.TRAILING, GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE)\r\n );\r\n framew.pack();\r\n framew.setLocationRelativeTo(framew.getOwner());\r\n }\r\n // JFormDesigner - End of component initialization //GEN-END:initComponents\r\n }", "private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n BrowseJButton = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n BrowseJButton1 = new javax.swing.JButton();\n backButton = new javax.swing.JButton();\n\n setBackground(new java.awt.Color(255, 255, 255));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel1.setText(\"My Work Area (Customer Role)\");\n add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 90, -1, -1));\n\n BrowseJButton.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n BrowseJButton.setText(\"Browse Drug Catalog >>\");\n BrowseJButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BrowseJButtonActionPerformed(evt);\n }\n });\n add(BrowseJButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 140, -1, -1));\n\n jLabel2.setBackground(new java.awt.Color(0, 0, 0));\n jLabel2.setFont(new java.awt.Font(\"Traditional Arabic\", 1, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(0, 153, 102));\n jLabel2.setText(\"Order items from CVS pharmacy\");\n jLabel2.setIconTextGap(7);\n add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 20, -1, -1));\n\n BrowseJButton1.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n BrowseJButton1.setText(\"Browse Stores >>\");\n BrowseJButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BrowseJButton1ActionPerformed(evt);\n }\n });\n add(BrowseJButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(140, 200, -1, -1));\n\n backButton.setText(\"<<Back\");\n backButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backButtonActionPerformed(evt);\n }\n });\n add(backButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 330, -1, -1));\n }", "private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jED1 = new javax.swing.JEditorPane();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTAMsj = new javax.swing.JTextArea();\n jBEnvi = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setResizable(false);\n addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n formMouseDragged(evt);\n }\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n formMouseMoved(evt);\n }\n });\n addMouseWheelListener(new java.awt.event.MouseWheelListener() {\n public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {\n formMouseWheelMoved(evt);\n }\n });\n addWindowStateListener(new java.awt.event.WindowStateListener() {\n public void windowStateChanged(java.awt.event.WindowEvent evt) {\n formWindowStateChanged(evt);\n }\n });\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formKeyPressed(evt);\n }\n });\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jED1.setEditable(false);\n jED1.setFont(new java.awt.Font(\"Tahoma\", 1, 11)); // NOI18N\n jED1.setForeground(new java.awt.Color(0, 102, 153));\n jED1.setNextFocusableComponent(jTAMsj);\n jED1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jED1KeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(jED1);\n\n getContentPane().add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 950, 403));\n\n jTAMsj.setColumns(20);\n jTAMsj.setRows(5);\n jTAMsj.setNextFocusableComponent(jBEnvi);\n jTAMsj.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jTAMsjFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTAMsjFocusLost(evt);\n }\n });\n jTAMsj.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jTAMsjKeyPressed(evt);\n }\n });\n jScrollPane2.setViewportView(jTAMsj);\n\n getContentPane().add(jScrollPane2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 406, 950, 90));\n\n jBEnvi.setBackground(new java.awt.Color(255, 255, 255));\n jBEnvi.setText(\"Enviar\");\n jBEnvi.setNextFocusableComponent(jED1);\n jBEnvi.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jBEnviMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jBEnviMouseExited(evt);\n }\n });\n jBEnvi.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBEnviActionPerformed(evt);\n }\n });\n jBEnvi.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jBEnviKeyPressed(evt);\n }\n });\n getContentPane().add(jBEnvi, new org.netbeans.lib.awtextra.AbsoluteConstraints(850, 496, 100, 30));\n\n pack();\n }", "private void initComponents() {\n\t\tbtn_pause =new JButton(\"暂停游戏\");\n\t\tbtn_continue =new JButton(\"继续游戏\");\n\t\tbtn_restart =new JButton(\"重新开始\");\n\t\tbtn_rank =new JButton(\"游戏排行\");\n\t\tbtn_admin =new JButton(\"后台管理\");\n\t\t\n\t\t\n\t\t//给按钮设置单击监听\n\t\tbtn_pause.addActionListener(this);\n\t\tbtn_continue.addActionListener(this);\n\t\tbtn_restart.addActionListener(this);\n\t\tbtn_rank.addActionListener(this);\n\t\tbtn_admin.addActionListener(this);\n\t}", "private void listenersInitiation() {\n ActionSelectors listener = new ActionSelectors();\n submit.addActionListener(listener);\n goBack.addActionListener(listener);\n }", "private void designGUI() {\n\t\tmnb= new JMenuBar();\r\n\t\tFileMenu=new JMenu(\"file\");\r\n\t\tEditMenu=new JMenu(\"edit\");\r\n\t\timg1=new ImageIcon(\"s.gif\");\r\n\t\tNew=new JMenuItem(\"new\",img1);\r\n\t\topen=new JMenuItem(\"open\");\r\n\t\tsave=new JMenuItem(\"save\");\r\n\t\tquit=new JMenuItem(\"quit\");\r\n\t\tcut=new JMenuItem(\"cut\");\r\n\t\tcopy=new JMenuItem(\"copy\");\r\n\t\tpaste=new JMenuItem(\"paste\");\r\n\t\t\r\n\t\tFileMenu.add(New);\r\n\t\tFileMenu.add(save);\r\n\t\tFileMenu.add(open);\r\n\t\tFileMenu.add(new JSeparator());\r\n\t\tFileMenu.add(quit);\r\n\t\tEditMenu.add(cut);\r\n\t\tEditMenu.add(copy);\r\n\t\tEditMenu.add(paste);\r\n\t\t\r\n\t\tmnb.add(FileMenu);\r\n\t\tmnb.add(EditMenu);\r\n\t\tsetJMenuBar(mnb);\r\n\t\t\r\n\t\t//to add shortcut\r\n\t\tquit.setMnemonic('q');\r\n\t\t//quit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W,ActionEvent.CTRL_MASK));\r\n\t\tquit.addActionListener((ActionEvent e)->\r\n\t\t\t\t{\r\n\t\t\tSystem.exit(0);\r\n\t\t\t\t});\r\n\t\t\r\n\t\t//moving the mouse near to it we get this\r\n\t\tcut.setToolTipText(\"cut the text\");\r\n\t\t//new way fro get domension\r\n\t\tdim=getToolkit().getScreenSize();\r\n\t\tint x=(int) dim.getHeight();\r\n\t\tint y=(int) dim.getWidth();\r\n\t\tc=getContentPane();\r\n\t\tc.setLayout(new BorderLayout());\r\n\t\tmainpanel=new JPanel();\r\n\t\tta1=new JTextArea(x/18,y/12);\r\n\t\tmainpanel.add(new JScrollPane(ta1));\r\n\t\tc.add(mainpanel,BorderLayout.CENTER);\r\n\t\tmymethods();\r\n\t\topen.addActionListener(this);\r\n\t\tsave.addActionListener(this);\r\n\t\tcut.addActionListener(this);\r\n\t\tcopy.addActionListener(this);\r\n\t\tpaste.addActionListener(this);\r\n\t\t\r\n\t}", "public crackerClicker() {\n initComponents();\n }", "private void initComponents() {\n\n BT_OK = new GlossButton();\n BT_ABORT = new GlossButton();\n jLabel1 = new javax.swing.JLabel();\n COMBO_UI = new javax.swing.JComboBox();\n jLabel2 = new javax.swing.JLabel();\n COMBO_LANG = new javax.swing.JComboBox();\n CB_CHECK_NEW = new javax.swing.JCheckBox();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n TXT_SERVER_IP = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n TXT_SERVER_PORT = new javax.swing.JTextField();\n CB_NO_SCANNING = new javax.swing.JCheckBox();\n CB_CACHE_MAILS = new javax.swing.JCheckBox();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n\n BT_OK.setText(UserMain.Txt(\"Okay\")); // NOI18N\n BT_OK.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BT_OKActionPerformed(evt);\n }\n });\n\n BT_ABORT.setText(UserMain.Txt(\"Abbruch\")); // NOI18N\n BT_ABORT.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BT_ABORTActionPerformed(evt);\n }\n });\n\n jLabel1.setText(UserMain.Txt(\"Look_n_Feel\")); // NOI18N\n\n jLabel2.setText(UserMain.Txt(\"Language\")); // NOI18N\n\n COMBO_LANG.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Deutsch\", \"English\" }));\n\n CB_CHECK_NEW.setText(\" \");\n CB_CHECK_NEW.setOpaque(false);\n\n jLabel3.setText(UserMain.Txt(\"CheckNews\")); // NOI18N\n\n jLabel4.setText(UserMain.Txt(\"Server-IP\")); // NOI18N\n\n jLabel5.setText(UserMain.Txt(\"Server-Port\")); // NOI18N\n\n CB_NO_SCANNING.setText(UserMain.Txt(\"No_Scan_for_Servers\")); // NOI18N\n CB_NO_SCANNING.setOpaque(false);\n\n CB_CACHE_MAILS.setText(\" \");\n CB_CACHE_MAILS.setOpaque(false);\n\n jLabel6.setText(UserMain.Txt(\"Cache_Mails\")); // NOI18N\n\n jLabel7.setText(UserMain.Txt(\"No_Scan_for_Servers\")); // NOI18N\n\n jLabel8.setText(\"(default 8050)\");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel1)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel7)\n .addComponent(jLabel6)\n .addComponent(jLabel3))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(COMBO_UI, 0, 243, Short.MAX_VALUE)\n .addComponent(COMBO_LANG, 0, 243, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(TXT_SERVER_PORT, javax.swing.GroupLayout.PREFERRED_SIZE, 64, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel8))\n .addComponent(TXT_SERVER_IP, javax.swing.GroupLayout.DEFAULT_SIZE, 243, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(CB_CACHE_MAILS)\n .addComponent(CB_NO_SCANNING)\n .addComponent(CB_CHECK_NEW))\n .addGap(214, 214, 214))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(BT_ABORT)\n .addGap(18, 18, 18)\n .addComponent(BT_OK)))\n .addContainerGap())\n );\n\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {BT_ABORT, BT_OK});\n\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(COMBO_LANG, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(COMBO_UI, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(43, 43, 43)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(TXT_SERVER_IP, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(TXT_SERVER_PORT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel7)\n .addComponent(CB_NO_SCANNING))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(CB_CACHE_MAILS)\n .addComponent(jLabel6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(CB_CHECK_NEW)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BT_OK)\n .addComponent(BT_ABORT))\n .addContainerGap())\n );\n }", "public void buildGUI() {\r\n\t\t//Top menu\r\n\t\tHStack menuHStack= new HStack();\r\n\t\tmenuHStack.setHeight(25);\r\n\t\tmenuHStack.setWidth(200);\r\n\t\tmenuHStack.addMember(createLoginLogoutPanel());\r\n\t\t \r\n\t\t//The rest\r\n\t\tVStack swagItemsVStack = new VStack();\r\n\t\tswagItemsVStack.addMember(createSearchBox());\r\n\t\tswagItemsVStack.addMember(createSortDropDown());\r\n\t\tswagItemsVStack.addMember(createItemsTileGrid());\r\n\t\t\r\n\t\t//hide app until data has loaded\r\n\t\tDOM.setStyleAttribute(RootPanel.get(\"gwtApp\").getElement(), \"display\", \"none\");\r\n\t\titemsTileGrid.fetchData(null, new DSCallback() {\r\n\t\t\tpublic void execute(DSResponse response, Object rawData, DSRequest request) {\r\n\t\t\t\t//hide loading div and it's border\r\n\t\t\t\tDOM.setInnerHTML(RootPanel.get(\"loading\").getElement(),\"\");\r\n\t\t\t\tDOM.setStyleAttribute(DOM.getElementById(\"loading\"), \"border\", \"0\");\r\n\t\t\t\t//show app\r\n\t\t\t\tDOM.setStyleAttribute(RootPanel.get(\"gwtApp\").getElement(), \"display\", \"block\");\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tswagItemsVStack.setWidth(350);\r\n\t\tswagItemsVStack.setHeight(552);\r\n\t\tswagItemsVStack.setBorder(\"1px solid #C0C3C7\"); //blue like the rest of the app\r\n\t\tswagItemsVStack.setShowEdges(false);\r\n\t\tswagItemsVStack.setCanDragResize(true);\r\n\t\tswagItemsVStack.setShowResizeBar(true);\r\n\t\t\r\n\t\t//Put itemsTileGrid next to createEditComments\r\n\t\tHStack itemsEditCommentsHStack = new HStack();\r\n\t\titemsEditCommentsHStack.addMember(swagItemsVStack);\r\n//\t\taddImageUpload(itemsAndEditHStack);\r\n\t\titemsEditCommentsHStack.addMember(createEditForm());\r\n\t\titemsEditCommentsHStack.setHeight(720);\r\n\t\t\r\n\t\tVStack mainStack = new VStack();\r\n\t\t//vertical scrolling if browser window is too small\r\n\t\tmainStack.setOverflow(Overflow.AUTO); \r\n\t\tmainStack.setWidth100();\r\n\t\tmainStack.setHeight100();\r\n\t\tmainStack.addMember(menuHStack);\r\n\t\tmainStack.addMember(itemsEditCommentsHStack);\r\n\t\t\r\n\t\tRootPanel.get(\"gwtApp\").add(mainStack); //anchored on GWT html page\r\n\r\n\t\tmainStack.draw();\r\n\t}", "protected void setupUI() {\n\t\t\n\t\tcontentPane = new JPanel();\n\t\tlayerLayout = new CardLayout();\n\t\tcontentPane.setLayout(layerLayout);\n\t\tControlAgendaViewPanel agendaViewPanel = new ControlAgendaViewPanel(layerLayout,contentPane);\n\t\tagendaPanelFactory = new AgendaPanelFactory();\n\t\tdayView = agendaPanelFactory.getAgendaView(ActiveView.DAY_VIEW);\n\t\tweekView = agendaPanelFactory.getAgendaView(ActiveView.WEEK_VIEW);\n\t\tmonthView = agendaPanelFactory.getAgendaView(ActiveView.MONTH_VIEW);\n\t\t\n\t\tcontentPane.add(dayView,ActiveView.DAY_VIEW.name());\n\t\tcontentPane.add(weekView,ActiveView.WEEK_VIEW.name());\n\t\tcontentPane.add(monthView,ActiveView.MONTH_VIEW.name());\n\t\n\t\tJSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,agendaViewPanel, contentPane);\n\t\tthis.setContentPane(splitPane);\n\t\t\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\t\n\t\t//MENU\n\t\tJMenu file, edit, help, view;\n\t\t\n\t\t//ITEM DE MENU\n\t\tJMenuItem load, quit, save;\n\t\tJMenuItem display, about;\n\t\tJMenuItem month, week, day;\n\t\t\n\t\t/* File Menu */\n\t\t/** EX4 : MENU : UTILISER L'AIDE FOURNIE DANS LE TP**/\n\t\t//Classe pour les listener des parties non implémentés\n\t\tclass MsgError implements ActionListener {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tJOptionPane.showMessageDialog(null, ApplicationSession.instance().getString(\"info\"), \"info\", JOptionPane.INFORMATION_MESSAGE, null);\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t//Menu File\t\n\t\tfile = new JMenu(ApplicationSession.instance().getString(\"file\"));\n\t\t\n\t\tmenuBar.add(file);\n\t\tfile.setMnemonic(KeyEvent.VK_A);\n\t\tfile.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(file);\n\t\t\n\n\t\t//a group of JMenuItems\n\t\tload = new JMenuItem(ApplicationSession.instance().getString(\"load\"),KeyEvent.VK_T);\n\t\tload.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tload.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(load);\n\t\tload.addActionListener(new MsgError());\n\t\t\n\t\tquit = new JMenuItem(ApplicationSession.instance().getString(\"quit\"),KeyEvent.VK_T);\n\t\tquit.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tquit.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(quit);\n\t\t\n\t\t//LISTENER QUIT\n\t\tquit.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\t//message box yes/no pour le bouton quitter\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tsave = new JMenuItem(new String(ApplicationSession.instance().getString(\"save\")),KeyEvent.VK_T);\n\t\tsave.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tsave.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tfile.add(save);\n\t\tsave.addActionListener(new MsgError());\n\t\t\n\t\t\n\t//Menu Edit \n\t\tedit = new JMenu(new String(ApplicationSession.instance().getString(\"edit\")));\n\t\t\n\t\tmenuBar.add(edit);\n\t\tedit.setMnemonic(KeyEvent.VK_A);\n\t\tedit.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\t\n\t\t//Sous menu View\n\t\t\n\t\tview = new JMenu(new String(ApplicationSession.instance().getString(\"view\")));\n\t\tview.setMnemonic(KeyEvent.VK_A);\n\t\tview.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tedit.add(view);\n\t\t\n\t\tmonth = new JMenuItem(new String(ApplicationSession.instance().getString(\"month\")),KeyEvent.VK_T);\n\t\tmonth.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tmonth.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(month);\n\t\t\t\t\n\t\tweek = new JMenuItem(new String(ApplicationSession.instance().getString(\"week\")),KeyEvent.VK_T);\n\t\tweek.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tweek.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(week);\n\t\t\n\t\tday = new JMenuItem(new String(ApplicationSession.instance().getString(\"day\")),KeyEvent.VK_T);\n\t\tday.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tday.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tview.add(day);\n\t\t\n\t\t//LISTENER VIEW\n\t\t\n\t\t\n\t\tmonth.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tlayerLayout.last(contentPane);\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\tweek.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tlayerLayout.first(contentPane);\t\n\t\t\t\tlayerLayout.next(contentPane);\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t});\n\t\tday.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t\tlayerLayout.first(contentPane);\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t\t\n\t//Menu Help\n\t\thelp = new JMenu(new String(ApplicationSession.instance().getString(\"help\")));\n\t\t\n\t\tmenuBar.add(help);\n\t\thelp.setMnemonic(KeyEvent.VK_A);\n\t\thelp.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(help);\n\t\t\n\t\tdisplay = new JMenuItem(new String(ApplicationSession.instance().getString(\"display\")),KeyEvent.VK_T);\n\t\tdisplay.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tdisplay.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\thelp.add(display);\n\t\tdisplay.addActionListener(new MsgError());\n\t\t\n\t\tabout = new JMenuItem(new String(ApplicationSession.instance().getString(\"about\")),KeyEvent.VK_T);\n\t\tabout.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tabout.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\thelp.add(about);\n\t\tabout.addActionListener(new MsgError());\n\t\t\n\t\t\n\n\t\tthis.setJMenuBar(menuBar);\n\t\tthis.pack();\n\t\tlayerLayout.next(contentPane);\n\t}", "public gui() {\n initComponents();\n jLayeredPane1.setVisible(false);\n jLayeredPane2.setVisible(false);\n// jTextArea1.addMouseListener(new ContextMenuMouseListener());\n// jTextArea1.setDragEnabled(true);\n \n }", "public void buildGui() {\n\t}", "private void initComponents() {\n jPanel1 = new javax.swing.JPanel();\n jSeparator1 = new javax.swing.JSeparator();\n jPanel3 = new javax.swing.JPanel();\n xActionBar1 = new com.rameses.rcp.control.XActionBar();\n jPanel2 = new javax.swing.JPanel();\n formPanel1 = new com.rameses.rcp.util.FormPanel();\n xComboBox1 = new com.rameses.rcp.control.XComboBox();\n xNumberField1 = new com.rameses.rcp.control.XNumberField();\n xNumberField2 = new com.rameses.rcp.control.XNumberField();\n\n setLayout(new java.awt.BorderLayout());\n\n setPreferredSize(new java.awt.Dimension(306, 156));\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jPanel1.add(jSeparator1, java.awt.BorderLayout.NORTH);\n\n jPanel3.setBorder(javax.swing.BorderFactory.createCompoundBorder(null, javax.swing.BorderFactory.createEtchedBorder()));\n xActionBar1.setName(\"formActions\");\n xActionBar1.setUseToolBar(false);\n\n org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel3Layout.createSequentialGroup()\n .addContainerGap(215, Short.MAX_VALUE)\n .add(xActionBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(xActionBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)\n );\n jPanel1.add(jPanel3, java.awt.BorderLayout.SOUTH);\n\n add(jPanel1, java.awt.BorderLayout.SOUTH);\n\n jPanel2.setLayout(new java.awt.BorderLayout());\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder1 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder1.setTitle(\"Add Item\");\n formPanel1.setBorder(xTitledBorder1);\n xComboBox1.setCaption(\"AF No.\");\n xComboBox1.setCaptionWidth(100);\n xComboBox1.setImmediate(true);\n xComboBox1.setItems(\"afList\");\n xComboBox1.setName(\"afId\");\n xComboBox1.setPreferredSize(new java.awt.Dimension(0, 21));\n xComboBox1.setRequired(true);\n formPanel1.add(xComboBox1);\n\n xNumberField1.setCaption(\"Remaining Qty\");\n xNumberField1.setCaptionWidth(100);\n xNumberField1.setName(\"item.qtyremaining\");\n xNumberField1.setPreferredSize(new java.awt.Dimension(0, 21));\n xNumberField1.setReadonly(true);\n xNumberField1.setRequired(true);\n formPanel1.add(xNumberField1);\n\n xNumberField2.setCaption(\"Received Qty\");\n xNumberField2.setCaptionWidth(100);\n xNumberField2.setName(\"item.qtyreceived\");\n xNumberField2.setPreferredSize(new java.awt.Dimension(0, 21));\n xNumberField2.setRequired(true);\n formPanel1.add(xNumberField2);\n\n jPanel2.add(formPanel1, java.awt.BorderLayout.CENTER);\n\n add(jPanel2, java.awt.BorderLayout.CENTER);\n\n }", "@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n java.awt.GridBagConstraints gridBagConstraints;\r\n\r\n OptionsPane = new javax.swing.JScrollPane();\r\n Toolbar = new javax.swing.JToolBar();\r\n NewButton = new javax.swing.JButton();\r\n OpenFileButton = new javax.swing.JButton();\r\n SaveButton = new javax.swing.JButton();\r\n SaveAsButton = new javax.swing.JButton();\r\n jSeparator3 = new javax.swing.JToolBar.Separator();\r\n CutButton = new javax.swing.JButton();\r\n CopyButton = new javax.swing.JButton();\r\n PasteButton = new javax.swing.JButton();\r\n DeleteSelection = new javax.swing.JButton();\r\n ClearCircuit = new javax.swing.JButton();\r\n UndoButton = new javax.swing.JButton();\r\n RedoButton = new javax.swing.JButton();\r\n jSeparator6 = new javax.swing.JToolBar.Separator();\r\n MakeImageButton = new javax.swing.JButton();\r\n ToggleGrid = new javax.swing.JButton();\r\n jSeparator5 = new javax.swing.JToolBar.Separator();\r\n RecordButton = new javax.swing.JButton();\r\n StartButton = new javax.swing.JButton();\r\n StopButton = new javax.swing.JButton();\r\n StepForwardButton = new javax.swing.JButton();\r\n SimulatorSpeed = new javax.swing.JSlider();\r\n Toolbox = new javax.swing.JPanel();\r\n jLabel1 = new javax.swing.JLabel();\r\n ToolboxButtons = new javax.swing.JPanel();\r\n Selection = new javax.swing.JButton();\r\n Wire = new javax.swing.JButton();\r\n InsertSubComponent = new javax.swing.JButton();\r\n RotateLeft = new javax.swing.JButton();\r\n RotateRight = new javax.swing.JButton();\r\n SelectionTreeScrollPane = new javax.swing.JScrollPane();\r\n ComponentSelectionTree = new javax.swing.JTree();\r\n optionsPanel = new JPanel();\r\n titleLabel = new javax.swing.JLabel();\r\n typeLabel = new javax.swing.JLabel();\r\n AttributesPanel = new javax.swing.JPanel();\r\n Preview = new PreviewPanel(this);\r\n MainScrollPane = new javax.swing.JScrollPane();\r\n DesktopPane = new ScrollableDesktop();\r\n statusPanel = new javax.swing.JPanel();\r\n javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();\r\n statusMessageLabel = new javax.swing.JLabel();\r\n statusAnimationLabel = new javax.swing.JLabel();\r\n progressBar = new javax.swing.JProgressBar();\r\n MenuBar = new javax.swing.JMenuBar();\r\n File = new javax.swing.JMenu();\r\n New = new javax.swing.JMenuItem();\r\n Open = new javax.swing.JMenuItem();\r\n Save = new javax.swing.JMenuItem();\r\n SaveAs = new javax.swing.JMenuItem();\r\n Preferences = new javax.swing.JMenuItem();\r\n Exit = new javax.swing.JMenuItem();\r\n Edit = new javax.swing.JMenu();\r\n Undo = new javax.swing.JMenuItem();\r\n Redo = new javax.swing.JMenuItem();\r\n jSeparator1 = new javax.swing.JSeparator();\r\n Cut = new javax.swing.JMenuItem();\r\n Copy = new javax.swing.JMenuItem();\r\n Paste = new javax.swing.JMenuItem();\r\n SelectAll = new javax.swing.JMenuItem();\r\n jSeparator2 = new javax.swing.JSeparator();\r\n Delete = new javax.swing.JMenuItem();\r\n Simulation = new javax.swing.JMenu();\r\n Run = new javax.swing.JMenuItem();\r\n Stop = new javax.swing.JMenuItem();\r\n StepForward = new javax.swing.JMenuItem();\r\n Record = new javax.swing.JMenuItem();\r\n Window = new javax.swing.JMenu();\r\n Help = new javax.swing.JMenu();\r\n About = new javax.swing.JMenuItem();\r\n\r\n OptionsPane.setBorder(null);\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\r\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"ui/Bundle\"); // NOI18N\r\n setTitle(bundle.getString(\"Editor.title\")); // NOI18N\r\n setBounds(new java.awt.Rectangle(0, 0, 985, 750));\r\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\r\n setMinimumSize(new java.awt.Dimension(750, 750));\r\n\r\n Toolbar.setFloatable(false);\r\n Toolbar.setRollover(true);\r\n Toolbar.setBorderPainted(false);\r\n Toolbar.setMaximumSize(new java.awt.Dimension(2000, 34));\r\n Toolbar.setMinimumSize(new java.awt.Dimension(750, 34));\r\n Toolbar.setPreferredSize(new java.awt.Dimension(750, 34));\r\n\r\n NewButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/document-new.png\"))); // NOI18N\r\n NewButton.setText(bundle.getString(\"Editor.NewButton.text\")); // NOI18N\r\n NewButton.setFocusable(false);\r\n NewButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n NewButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n NewButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.NewButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(NewButton);\r\n\r\n OpenFileButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/document-open.png\"))); // NOI18N\r\n OpenFileButton.setText(bundle.getString(\"Editor.OpenFileButton.text\")); // NOI18N\r\n OpenFileButton.setFocusable(false);\r\n OpenFileButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n OpenFileButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n OpenFileButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.OpenFileButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(OpenFileButton);\r\n\r\n SaveButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/document-save.png\"))); // NOI18N\r\n SaveButton.setText(bundle.getString(\"Editor.SaveButton.text\")); // NOI18N\r\n SaveButton.setEnabled(false);\r\n SaveButton.setFocusable(false);\r\n SaveButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n SaveButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n SaveButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.SaveButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(SaveButton);\r\n\r\n SaveAsButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/document-save-as.png\"))); // NOI18N\r\n SaveAsButton.setText(bundle.getString(\"Editor.SaveAsButton.text\")); // NOI18N\r\n SaveAsButton.setEnabled(false);\r\n SaveAsButton.setFocusable(false);\r\n SaveAsButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n SaveAsButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n SaveAsButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.SaveAsButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(SaveAsButton);\r\n Toolbar.add(jSeparator3);\r\n\r\n CutButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/edit-cut.png\"))); // NOI18N\r\n CutButton.setText(bundle.getString(\"Editor.CutButton.text\")); // NOI18N\r\n CutButton.setFocusable(false);\r\n CutButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n CutButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n CutButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.CutButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(CutButton);\r\n\r\n CopyButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/edit-copy.png\"))); // NOI18N\r\n CopyButton.setText(bundle.getString(\"Editor.CopyButton.text\")); // NOI18N\r\n CopyButton.setFocusable(false);\r\n CopyButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n CopyButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n CopyButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.CopyButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(CopyButton);\r\n\r\n PasteButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/edit-paste.png\"))); // NOI18N\r\n PasteButton.setText(bundle.getString(\"Editor.PasteButton.text\")); // NOI18N\r\n PasteButton.setEnabled(false);\r\n PasteButton.setFocusable(false);\r\n PasteButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n PasteButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n PasteButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.PasteButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(PasteButton);\r\n\r\n DeleteSelection.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/edit-delete.png\"))); // NOI18N\r\n DeleteSelection.setText(bundle.getString(\"Editor.DeleteSelection.text\")); // NOI18N\r\n DeleteSelection.setToolTipText(bundle.getString(\"Editor.DeleteSelection.toolTipText\")); // NOI18N\r\n DeleteSelection.setFocusable(false);\r\n DeleteSelection.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n DeleteSelection.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n DeleteSelection.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.DeleteSelectionMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(DeleteSelection);\r\n\r\n ClearCircuit.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/edit-clear.png\"))); // NOI18N\r\n ClearCircuit.setText(bundle.getString(\"Editor.ClearCircuit.text\")); // NOI18N\r\n ClearCircuit.setToolTipText(bundle.getString(\"Editor.ClearCircuit.toolTipText\")); // NOI18N\r\n ClearCircuit.setFocusable(false);\r\n ClearCircuit.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n ClearCircuit.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n ClearCircuit.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.ClearCircuitMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(ClearCircuit);\r\n\r\n UndoButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/edit-undo.png\"))); // NOI18N\r\n UndoButton.setText(bundle.getString(\"Editor.UndoButton.text\")); // NOI18N\r\n UndoButton.setEnabled(false);\r\n UndoButton.setFocusable(false);\r\n UndoButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n UndoButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n UndoButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.UndoButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(UndoButton);\r\n\r\n RedoButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/edit-redo.png\"))); // NOI18N\r\n RedoButton.setText(bundle.getString(\"Editor.RedoButton.text\")); // NOI18N\r\n RedoButton.setEnabled(false);\r\n RedoButton.setFocusable(false);\r\n RedoButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n RedoButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n RedoButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.RedoButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(RedoButton);\r\n Toolbar.add(jSeparator6);\r\n\r\n MakeImageButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/create-image.png\"))); // NOI18N\r\n MakeImageButton.setText(bundle.getString(\"Editor.MakeImageButton.text\")); // NOI18N\r\n MakeImageButton.setFocusable(false);\r\n MakeImageButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n MakeImageButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n MakeImageButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.MakeImageButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(MakeImageButton);\r\n\r\n ToggleGrid.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/grid.png\"))); // NOI18N\r\n ToggleGrid.setText(bundle.getString(\"Editor.ToggleGrid.text\")); // NOI18N\r\n ToggleGrid.setFocusable(false);\r\n ToggleGrid.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n ToggleGrid.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n ToggleGrid.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.ToggleGridActionPerformed(evt);\r\n }\r\n });\r\n Toolbar.add(ToggleGrid);\r\n Toolbar.add(jSeparator5);\r\n\r\n RecordButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/media-record.png\"))); // NOI18N\r\n RecordButton.setText(bundle.getString(\"Editor.RecordButton.text\")); // NOI18N\r\n RecordButton.setFocusable(false);\r\n RecordButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n RecordButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n RecordButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.RecordButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(RecordButton);\r\n\r\n StartButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/media-playback-start.png\"))); // NOI18N\r\n StartButton.setText(bundle.getString(\"Editor.StartButton.text\")); // NOI18N\r\n StartButton.setFocusable(false);\r\n StartButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n StartButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n StartButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.StartButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(StartButton);\r\n\r\n StopButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/media-playback-stop.png\"))); // NOI18N\r\n StopButton.setText(bundle.getString(\"Editor.StopButton.text\")); // NOI18N\r\n StopButton.setEnabled(false);\r\n StopButton.setFocusable(false);\r\n StopButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n StopButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n StopButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.StopButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(StopButton);\r\n\r\n StepForwardButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/media-seek-forward.png\"))); // NOI18N\r\n StepForwardButton.setText(bundle.getString(\"Editor.StepForwardButton.text\")); // NOI18N\r\n StepForwardButton.setEnabled(false);\r\n StepForwardButton.setFocusable(false);\r\n StepForwardButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n StepForwardButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n StepForwardButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.StepForwardButtonMouseClicked(evt);\r\n }\r\n });\r\n Toolbar.add(StepForwardButton);\r\n\r\n SimulatorSpeed.setMajorTickSpacing(1);\r\n SimulatorSpeed.setMaximum(10);\r\n SimulatorSpeed.setPaintTicks(true);\r\n SimulatorSpeed.setSnapToTicks(true);\r\n SimulatorSpeed.setMaximumSize(new java.awt.Dimension(200, 33));\r\n SimulatorSpeed.addChangeListener(new javax.swing.event.ChangeListener() {\r\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\r\n controller.SimulatorSpeedStateChanged(evt);\r\n }\r\n });\r\n Toolbar.add(SimulatorSpeed);\r\n\r\n getContentPane().add(Toolbar, java.awt.BorderLayout.NORTH);\r\n\r\n Toolbox.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n jLabel1.setForeground(javax.swing.UIManager.getDefaults().getColor(\"Button.darkShadow\"));\r\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n jLabel1.setText(bundle.getString(\"Editor.jLabel1.text\")); // NOI18N\r\n Toolbox.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 170, -1));\r\n\r\n ToolboxButtons.setLayout(new java.awt.GridBagLayout());\r\n\r\n Selection.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/sml_select.png\"))); // NOI18N\r\n Selection.setText(bundle.getString(\"TestJFrameForm.Selection.text\")); // NOI18N\r\n Selection.setMargin(new java.awt.Insets(2, 2, 2, 2));\r\n Selection.setMaximumSize(new java.awt.Dimension(32, 32));\r\n Selection.setMinimumSize(new java.awt.Dimension(32, 32));\r\n Selection.setPreferredSize(new java.awt.Dimension(32, 32));\r\n Selection.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.SelectionToolClicked(evt);\r\n }\r\n });\r\n gridBagConstraints = new java.awt.GridBagConstraints();\r\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\r\n ToolboxButtons.add(Selection, gridBagConstraints);\r\n\r\n Wire.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/sml_wire.png\"))); // NOI18N\r\n Wire.setText(bundle.getString(\"TestJFrameForm.Wire.text\")); // NOI18N\r\n Wire.setToolTipText(bundle.getString(\"TestJFrameForm.Wire.toolTipText\")); // NOI18N\r\n Wire.setMargin(new java.awt.Insets(2, 2, 2, 2));\r\n Wire.setMaximumSize(new java.awt.Dimension(32, 32));\r\n Wire.setMinimumSize(new java.awt.Dimension(32, 32));\r\n Wire.setPreferredSize(new java.awt.Dimension(32, 32));\r\n Wire.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.WireMouseClicked(evt);\r\n }\r\n });\r\n gridBagConstraints = new java.awt.GridBagConstraints();\r\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\r\n ToolboxButtons.add(Wire, gridBagConstraints);\r\n\r\n InsertSubComponent.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/insert-object.png\"))); // NOI18N\r\n InsertSubComponent.setText(bundle.getString(\"Editor.InsertSubComponent.text\")); // NOI18N\r\n InsertSubComponent.setFocusable(false);\r\n InsertSubComponent.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n InsertSubComponent.setMaximumSize(new java.awt.Dimension(32, 32));\r\n InsertSubComponent.setMinimumSize(new java.awt.Dimension(32, 32));\r\n InsertSubComponent.setPreferredSize(new java.awt.Dimension(32, 32));\r\n InsertSubComponent.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n InsertSubComponent.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.InsertSubComponentActionPerformed(evt);\r\n }\r\n });\r\n ToolboxButtons.add(InsertSubComponent, new java.awt.GridBagConstraints());\r\n\r\n RotateLeft.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/object-rotate-left.png\"))); // NOI18N\r\n RotateLeft.setText(bundle.getString(\"Editor.RotateLeft.text\")); // NOI18N\r\n RotateLeft.setFocusable(false);\r\n RotateLeft.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n RotateLeft.setMaximumSize(new java.awt.Dimension(32, 32));\r\n RotateLeft.setMinimumSize(new java.awt.Dimension(32, 32));\r\n RotateLeft.setPreferredSize(new java.awt.Dimension(32, 32));\r\n RotateLeft.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n RotateLeft.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.RotateLeftMouseClicked(evt);\r\n }\r\n });\r\n gridBagConstraints = new java.awt.GridBagConstraints();\r\n gridBagConstraints.gridx = 3;\r\n gridBagConstraints.gridy = 0;\r\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\r\n ToolboxButtons.add(RotateLeft, gridBagConstraints);\r\n\r\n RotateRight.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/object-rotate-right.png\"))); // NOI18N\r\n RotateRight.setText(bundle.getString(\"Editor.RotateRight.text\")); // NOI18N\r\n RotateRight.setFocusable(false);\r\n RotateRight.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\r\n RotateRight.setMaximumSize(new java.awt.Dimension(32, 32));\r\n RotateRight.setMinimumSize(new java.awt.Dimension(32, 32));\r\n RotateRight.setPreferredSize(new java.awt.Dimension(32, 32));\r\n RotateRight.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\r\n RotateRight.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n controller.RotateRightMouseClicked(evt);\r\n }\r\n });\r\n gridBagConstraints = new java.awt.GridBagConstraints();\r\n gridBagConstraints.gridx = 4;\r\n gridBagConstraints.gridy = 0;\r\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\r\n ToolboxButtons.add(RotateRight, gridBagConstraints);\r\n\r\n Toolbox.add(ToolboxButtons, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 20, 170, 30));\r\n\r\n SelectionTreeScrollPane.setAutoscrolls(true);\r\n\r\n ComponentSelectionTree.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {\r\n public void valueChanged(javax.swing.event.TreeSelectionEvent evt) {\r\n controller.ComponentSelectionTreeValueChanged(evt);\r\n }\r\n });\r\n ComponentSelectionTree.addFocusListener(new java.awt.event.FocusAdapter() {\r\n public void focusGained(java.awt.event.FocusEvent evt) {\r\n controller.ComponentSelectionTreeFocusGained(evt);\r\n }\r\n });\r\n ComponentSelectionTree.setModel(getTreeValues());\r\n ComponentSelectionTree.setRootVisible(false);\r\n SelectionTreeScrollPane.setViewportView(ComponentSelectionTree);\r\n\r\n Toolbox.add(SelectionTreeScrollPane, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 60, 170, 250));\r\n\r\n optionsPanel.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 2, 1, 2));\r\n optionsPanel.setMaximumSize(new java.awt.Dimension(72, 232));\r\n optionsPanel.setMinimumSize(new java.awt.Dimension(72, 232));\r\n optionsPanel.setPreferredSize(new java.awt.Dimension(72, 232));\r\n\r\n titleLabel.setText(titleNew);\r\n titleLabel.setForeground(new java.awt.Color(108, 108, 108));\r\n titleLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\r\n\r\n typeLabel.setText(bundle.getString(\"OptionsPanel.jLabel2.text\"));\r\n\r\n AttributesPanel.setMaximumSize(new java.awt.Dimension(72, 500));\r\n AttributesPanel.setMinimumSize(new java.awt.Dimension(72, 72));\r\n AttributesPanel.setPreferredSize(new java.awt.Dimension(72, 72));\r\n AttributesPanel.setLayout(new java.awt.BorderLayout());\r\n\r\n Preview.setMinimumSize(new java.awt.Dimension(72, 80));\r\n Preview.setPreferredSize(new java.awt.Dimension(72, 80));\r\n\r\n org.jdesktop.layout.GroupLayout optionsPanelLayout = new org.jdesktop.layout.GroupLayout(optionsPanel);\r\n optionsPanel.setLayout(optionsPanelLayout);\r\n optionsPanelLayout.setHorizontalGroup(\r\n optionsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(Preview, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 166, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(titleLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 166, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(typeLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 166, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .add(AttributesPanel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 166, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n );\r\n optionsPanelLayout.setVerticalGroup(\r\n optionsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(optionsPanelLayout.createSequentialGroup()\r\n .add(titleLabel)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(typeLabel, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(AttributesPanel, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(Preview, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n\r\n Toolbox.add(optionsPanel, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 320, 170, 290));\r\n\r\n getContentPane().add(Toolbox, java.awt.BorderLayout.WEST);\r\n\r\n MainScrollPane.setPreferredSize(new java.awt.Dimension(800, 600));\r\n\r\n DesktopPane.setBackground(javax.swing.UIManager.getDefaults().getColor(\"Panel.background\"));\r\n DesktopPane.setAutoscrolls(true);\r\n DesktopPane.setDoubleBuffered(true);\r\n DesktopPane.setMinimumSize(new java.awt.Dimension(600, 400));\r\n MainScrollPane.setViewportView(DesktopPane);\r\n\r\n getContentPane().add(MainScrollPane, java.awt.BorderLayout.CENTER);\r\n\r\n statusMessageLabel.setFont(new java.awt.Font(\"Lucida Sans\", 0, 11));\r\n statusMessageLabel.setText(bundle.getString(\"Editor.statusMessageLabel.text\")); // NOI18N\r\n\r\n statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\r\n\r\n org.jdesktop.layout.GroupLayout statusPanelLayout = new org.jdesktop.layout.GroupLayout(statusPanel);\r\n statusPanel.setLayout(statusPanelLayout);\r\n statusPanelLayout.setHorizontalGroup(\r\n statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(statusPanelLayout.createSequentialGroup()\r\n .addContainerGap()\r\n .add(statusMessageLabel)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 777, Short.MAX_VALUE)\r\n .add(progressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)\r\n .add(statusAnimationLabel)\r\n .addContainerGap())\r\n .add(statusPanelSeparator, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 947, Short.MAX_VALUE)\r\n );\r\n statusPanelLayout.setVerticalGroup(\r\n statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\r\n .add(org.jdesktop.layout.GroupLayout.TRAILING, statusPanelLayout.createSequentialGroup()\r\n .add(statusPanelSeparator, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .add(statusPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)\r\n .add(statusMessageLabel)\r\n .add(statusAnimationLabel)\r\n .add(progressBar, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\r\n .add(3, 3, 3))\r\n );\r\n\r\n getContentPane().add(statusPanel, java.awt.BorderLayout.PAGE_END);\r\n\r\n File.setMnemonic('F');\r\n File.setText(bundle.getString(\"TestJFrameForm.jMenu1.text_1\")); // NOI18N\r\n\r\n New.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.CTRL_MASK));\r\n New.setMnemonic('o');\r\n New.setText(bundle.getString(\"Editor.New.text\")); // NOI18N\r\n New.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.NewActionPerformed(evt);\r\n }\r\n });\r\n File.add(New);\r\n\r\n Open.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_O, java.awt.event.InputEvent.CTRL_MASK));\r\n Open.setMnemonic('o');\r\n Open.setText(bundle.getString(\"Editor.Open.text\")); // NOI18N\r\n Open.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.OpenActionPerformed(evt);\r\n }\r\n });\r\n File.add(Open);\r\n\r\n Save.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));\r\n Save.setMnemonic('s');\r\n Save.setText(bundle.getString(\"Editor.Save.text\")); // NOI18N\r\n Save.setEnabled(false);\r\n Save.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.SaveActionPerformed(evt);\r\n }\r\n });\r\n File.add(Save);\r\n\r\n SaveAs.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\r\n SaveAs.setMnemonic('v');\r\n SaveAs.setText(bundle.getString(\"Editor.SaveAs.text\")); // NOI18N\r\n SaveAs.setEnabled(false);\r\n SaveAs.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.SaveAsActionPerformed(evt);\r\n }\r\n });\r\n File.add(SaveAs);\r\n\r\n Preferences.setText(bundle.getString(\"Editor.Preferences.text_1\")); // NOI18N\r\n Preferences.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.PreferencesActionPerformed(evt);\r\n }\r\n });\r\n File.add(Preferences);\r\n\r\n Exit.setMnemonic('x');\r\n Exit.setText(bundle.getString(\"Editor.Exit.text\")); // NOI18N\r\n Exit.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.ExitActionPerformed(evt);\r\n }\r\n });\r\n File.add(Exit);\r\n\r\n MenuBar.add(File);\r\n\r\n Edit.setMnemonic('E');\r\n Edit.setText(bundle.getString(\"Editor.Edit.text\")); // NOI18N\r\n\r\n Undo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));\r\n Undo.setMnemonic('u');\r\n Undo.setText(bundle.getString(\"Editor.Undo.text\")); // NOI18N\r\n Undo.setEnabled(false);\r\n Undo.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.UndoActionPerformed(evt);\r\n }\r\n });\r\n Edit.add(Undo);\r\n\r\n Redo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Y, java.awt.event.InputEvent.CTRL_MASK));\r\n Redo.setMnemonic('r');\r\n Redo.setText(bundle.getString(\"Editor.Redo.text\")); // NOI18N\r\n Redo.setEnabled(false);\r\n Redo.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.RedoActionPerformed(evt);\r\n }\r\n });\r\n Edit.add(Redo);\r\n Edit.add(jSeparator1);\r\n\r\n Cut.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.CTRL_MASK));\r\n Cut.setMnemonic('t');\r\n Cut.setText(bundle.getString(\"Editor.Cut.text\")); // NOI18N\r\n Cut.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.CutActionPerformed(evt);\r\n }\r\n });\r\n Edit.add(Cut);\r\n\r\n Copy.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));\r\n Copy.setMnemonic('y');\r\n Copy.setText(bundle.getString(\"Editor.Copy.text\")); // NOI18N\r\n Copy.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.CopyActionPerformed(evt);\r\n }\r\n });\r\n Edit.add(Copy);\r\n\r\n Paste.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));\r\n Paste.setMnemonic('p');\r\n Paste.setText(bundle.getString(\"Editor.Paste.text\")); // NOI18N\r\n Paste.setEnabled(false);\r\n Paste.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.PasteActionPerformed(evt);\r\n }\r\n });\r\n Edit.add(Paste);\r\n\r\n SelectAll.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_A, java.awt.event.InputEvent.CTRL_MASK));\r\n SelectAll.setMnemonic('a');\r\n SelectAll.setText(bundle.getString(\"Editor.SelectAll.text\")); // NOI18N\r\n SelectAll.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.SelectAllActionPerformed(evt);\r\n }\r\n });\r\n Edit.add(SelectAll);\r\n Edit.add(jSeparator2);\r\n\r\n Delete.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_DELETE, 0));\r\n Delete.setMnemonic('d');\r\n Delete.setText(bundle.getString(\"Editor.Delete.text\")); // NOI18N\r\n Delete.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.DeleteActionPerformed(evt);\r\n }\r\n });\r\n Edit.add(Delete);\r\n\r\n MenuBar.add(Edit);\r\n\r\n Simulation.setMnemonic('S');\r\n Simulation.setText(bundle.getString(\"Editor.Simulation.text\")); // NOI18N\r\n\r\n Run.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK));\r\n Run.setMnemonic('r');\r\n Run.setText(bundle.getString(\"Editor.Run.text_1\")); // NOI18N\r\n Run.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.RunActionPerformed(evt);\r\n }\r\n });\r\n Simulation.add(Run);\r\n\r\n Stop.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));\r\n Stop.setMnemonic('t');\r\n Stop.setText(bundle.getString(\"Editor.Stop.text\")); // NOI18N\r\n Stop.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.StopActionPerformed(evt);\r\n }\r\n });\r\n Simulation.add(Stop);\r\n\r\n StepForward.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F, java.awt.event.InputEvent.CTRL_MASK));\r\n StepForward.setMnemonic('F');\r\n StepForward.setText(bundle.getString(\"Editor.StepForward.text\")); // NOI18N\r\n StepForward.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.StepForwardActionPerformed(evt);\r\n }\r\n });\r\n Simulation.add(StepForward);\r\n\r\n Record.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK));\r\n Record.setMnemonic('l');\r\n Record.setText(bundle.getString(\"Editor.Record.text\")); // NOI18N\r\n Record.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.RecordActionPerformed(evt);\r\n }\r\n });\r\n Simulation.add(Record);\r\n\r\n MenuBar.add(Simulation);\r\n\r\n Window.setMnemonic('W');\r\n Window.setText(bundle.getString(\"Editor.Window.text\")); // NOI18N\r\n MenuBar.add(Window);\r\n\r\n Help.setMnemonic('H');\r\n Help.setText(bundle.getString(\"Editor.Help.text\")); // NOI18N\r\n\r\n About.setText(bundle.getString(\"Editor.About.text\")); // NOI18N\r\n About.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n controller.AboutActionPerformed(evt);\r\n }\r\n });\r\n Help.add(About);\r\n\r\n MenuBar.add(Help);\r\n\r\n setJMenuBar(MenuBar);\r\n\r\n pack();\r\n }", "public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}", "private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n setList = new javax.swing.JList();\n addSetButton = new javax.swing.JButton();\n delSetButton = new javax.swing.JButton();\n setNameField = new javax.swing.JTextField();\n jSeparator1 = new javax.swing.JSeparator();\n jScrollPane2 = new javax.swing.JScrollPane();\n setStockList = new javax.swing.JList();\n jScrollPane3 = new javax.swing.JScrollPane();\n stocksTree = new javax.swing.JTree();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n delStockButton = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n copySetButton = new javax.swing.JButton();\n vmaxField = new javax.swing.JTextField();\n accelField = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n closeButton = new javax.swing.JButton();\n changeDirectionButton = new javax.swing.JButton();\n\n setTitle(\"Zugeditor\");\n setAlwaysOnTop(true);\n setIconImage(statics.loadGUIImage(\"trainseteditor.png\"));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentShown(java.awt.event.ComponentEvent evt) {\n formComponentShown(evt);\n }\n });\n\n setList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n setList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n setListValueChanged(evt);\n }\n });\n jScrollPane1.setViewportView(setList);\n\n addSetButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/railsim/gui/resources/add.png\"))); // NOI18N\n addSetButton.setText(\"neuen Zug\");\n addSetButton.setMargin(new java.awt.Insets(2, 8, 2, 8));\n addSetButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addSetButtonActionPerformed(evt);\n }\n });\n\n delSetButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/railsim/gui/resources/delete.png\"))); // NOI18N\n delSetButton.setText(\"Zug löschen\");\n delSetButton.setEnabled(false);\n delSetButton.setMargin(new java.awt.Insets(2, 8, 2, 8));\n delSetButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n delSetButtonActionPerformed(evt);\n }\n });\n\n setNameField.setEnabled(false);\n setNameField.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n setNameFieldActionPerformed(evt);\n }\n });\n setNameField.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n setNameFieldFocusLost(evt);\n }\n });\n\n setStockList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);\n setStockList.setCellRenderer(new genericPaintInterfaceComboBoxRenderer());\n setStockList.setDragEnabled(true);\n setStockList.setDropMode(javax.swing.DropMode.INSERT);\n setStockList.setEnabled(false);\n jScrollPane2.setViewportView(setStockList);\n\n stocksTree.setCellRenderer(new stocktreeCellRenderer());\n stocksTree.setDragEnabled(true);\n stocksTree.setEnabled(false);\n stocksTree.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n stocksTreeMousePressed(evt);\n }\n });\n jScrollPane3.setViewportView(stocksTree);\n\n jScrollPane4.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);\n\n jTextArea1.setColumns(20);\n jTextArea1.setEditable(false);\n jTextArea1.setLineWrap(true);\n jTextArea1.setRows(5);\n jScrollPane4.setViewportView(jTextArea1);\n\n delStockButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/railsim/gui/resources/delete.png\"))); // NOI18N\n delStockButton.setToolTipText(\"Wagen löschen\");\n delStockButton.setEnabled(false);\n delStockButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n delStockButtonActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"<html>Rollmaterial aus der Baumansicht in die linke Liste schieben.</html>\");\n\n copySetButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/railsim/gui/resources/clone.png\"))); // NOI18N\n copySetButton.setText(\"kopiere Zug\");\n copySetButton.setEnabled(false);\n copySetButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n copySetButtonActionPerformed(evt);\n }\n });\n\n vmaxField.setEditable(false);\n\n accelField.setEditable(false);\n\n jLabel2.setText(\"m/a²\");\n\n jLabel3.setText(\"km/h\");\n\n closeButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/railsim/gui/resources/ok.png\"))); // NOI18N\n closeButton.setText(\"Ok\");\n closeButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n closeButtonActionPerformed(evt);\n }\n });\n\n changeDirectionButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/railsim/gui/resources/rotate.png\"))); // NOI18N\n changeDirectionButton.setToolTipText(\"Wagen umdrehen\");\n changeDirectionButton.setEnabled(false);\n changeDirectionButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n changeDirectionButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 657, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(delStockButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(changeDirectionButton))\n .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 210, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 274, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1, 0, 0, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(closeButton)\n .addGap(71, 71, 71)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 378, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(delSetButton, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(copySetButton, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(addSetButton, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(setNameField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(accelField, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(vmaxField, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, 33, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGap(67, 67, 67)\n .addComponent(setNameField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addSetButton)\n .addComponent(vmaxField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(copySetButton)\n .addComponent(accelField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(delSetButton))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE)\n .addComponent(jScrollPane3, 0, 0, Short.MAX_VALUE)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 122, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(closeButton)\n .addComponent(delStockButton))\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(changeDirectionButton))\n .addContainerGap())\n );\n\n pack();\n }", "private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n enterpriseLabel = new javax.swing.JLabel();\n valueLabel = new javax.swing.JLabel();\n jButton1 = new javax.swing.JButton();\n btnHomeless = new javax.swing.JButton();\n btnShelter = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n\n setBackground(new java.awt.Color(255, 255, 255));\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel1.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(71, 79, 112));\n jLabel1.setText(\"Individual Work Area -Adminstrative Role\");\n add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 120, 600, -1));\n\n enterpriseLabel.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 18)); // NOI18N\n enterpriseLabel.setForeground(new java.awt.Color(71, 79, 112));\n enterpriseLabel.setText(\"Enterprise :\");\n add(enterpriseLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 230, 160, 30));\n\n valueLabel.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 18)); // NOI18N\n valueLabel.setForeground(new java.awt.Color(71, 79, 112));\n add(valueLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(480, 240, 160, 30));\n\n jButton1.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 14)); // NOI18N\n jButton1.setForeground(new java.awt.Color(71, 79, 112));\n jButton1.setText(\"Manage Request\");\n jButton1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(700, 410, 190, 80));\n\n btnHomeless.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 14)); // NOI18N\n btnHomeless.setForeground(new java.awt.Color(252, 8, 4));\n btnHomeless.setText(\"Homeless Found?? \");\n btnHomeless.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n btnHomeless.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnHomelessActionPerformed(evt);\n }\n });\n add(btnHomeless, new org.netbeans.lib.awtextra.AbsoluteConstraints(510, 520, 190, 80));\n\n btnShelter.setFont(new java.awt.Font(\"Lucida Sans Typewriter\", 1, 14)); // NOI18N\n btnShelter.setForeground(new java.awt.Color(71, 79, 112));\n btnShelter.setText(\"Shelter Request\");\n btnShelter.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 2));\n btnShelter.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnShelterActionPerformed(evt);\n }\n });\n add(btnShelter, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 410, 200, 80));\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/utility/global-world-map-background-business-template-d-globe-40201747.jpg\"))); // NOI18N\n add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(-5, -4, 1300, 870));\n }", "private static void createAndShowGUI() {\n \n JFrame frame = new HandleActionEventsForJButton();\n \n //Display the window.\n \n frame.pack();\n \n frame.setVisible(true);\n \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n }", "public JButtonsPanel() {\r\n setBorder(BorderFactory.createEtchedBorder(Color.GREEN, new Color(148, 145, 140)));\r\n\r\n jOpen.setText(BTN_OPEN);\r\n jOpen.setToolTipText(MSG_OPEN);\r\n jOpen.setBounds(new Rectangle(BTN_LEFT, BTN_VSPACE, BTN_WIDTH, BTN_HEIGHT));\r\n add(jOpen);\r\n\r\n jCheckHealth.setText(BTN_CHECK_HEALTH);\r\n jCheckHealth.setToolTipText(MSG_CHECK_HEALTH);\r\n jCheckHealth.setBounds(new Rectangle(BTN_LEFT, (int) (jOpen.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jCheckHealth);\r\n\r\n jClose.setText(BTN_CLOSE);\r\n jClose.setToolTipText(MSG_CLOSE);\r\n jClose.setBounds(new Rectangle(BTN_LEFT, (int) (jCheckHealth.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jClose);\r\n\r\n jClaim.setText(BTN_CLAIM);\r\n jClaim.setToolTipText(MSG_CLAIM);\r\n jClaim.setBounds(new Rectangle(BTN_LEFT, (int) (jClose.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jClaim);\r\n\r\n jRelease.setText(BTN_RELEASE);\r\n jRelease.setToolTipText(MSG_RELEASE);\r\n jRelease.setBounds(new Rectangle(BTN_LEFT, (int) (jClaim.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jRelease);\r\n\r\n jDeviceEnable.setText(BTN_DEVICE_ENABLE);\r\n jDeviceEnable.setToolTipText(MSG_DEVICE_ENABLE);\r\n jDeviceEnable.setBounds(new Rectangle(BTN_LEFT, (int) (jRelease.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jDeviceEnable);\r\n\r\n jDeviceDisable.setText(BTN_DEVICE_DISABLE);\r\n jDeviceDisable.setToolTipText(MSG_DEVICE_DISABLE);\r\n jDeviceDisable.setBounds(new Rectangle(BTN_LEFT, (int) (jDeviceEnable.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jDeviceDisable);\r\n\r\n jClearData.setText(BTN_CLEAR_DATA);\r\n jClearData.setToolTipText(MSG_CLEAR_DATA);\r\n jClearData.setBounds(new Rectangle(BTN_LEFT, (int) (jDeviceDisable.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jClearData);\r\n\r\n jBeginEnrollCapture.setText(BTN_BEGIN_ENROLL_CAPTURE);\r\n jBeginEnrollCapture.setToolTipText(MSG_BEGIN_ENROLL_CAPTURE);\r\n jBeginEnrollCapture.setBounds(new Rectangle(BTN_LEFT, (int) (jClearData.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jBeginEnrollCapture);\r\n\r\n jEndCapture.setText(BTN_END_CAPTURE);\r\n jEndCapture.setToolTipText(MSG_END_CAPTURE);\r\n jEndCapture.setBounds(new Rectangle(BTN_LEFT, (int) (jBeginEnrollCapture.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jEndCapture);\r\n\r\n jBeginVerifyCapture.setText(BTN_BEGIN_VERIFY_CAPTURE);\r\n jBeginVerifyCapture.setToolTipText(MSG_BEGIN_VERIFY_CAPTURE);\r\n jBeginVerifyCapture.setBounds(new Rectangle(BTN_LEFT, (int) (jEndCapture.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jBeginVerifyCapture);\r\n\r\n jIdentifyMatch.setText(BTN_IDENTIFY_MATCH);\r\n jIdentifyMatch.setToolTipText(MSG_IDENTIFY_MATCH);\r\n jIdentifyMatch.setBounds(new Rectangle(BTN_LEFT, (int) (jBeginVerifyCapture.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jIdentifyMatch);\r\n\r\n jVerifyMatch.setText(BTN_VERIFY_MATCH);\r\n jVerifyMatch.setToolTipText(MSG_VERIFY_MATCH);\r\n jVerifyMatch.setBounds(new Rectangle(BTN_LEFT, (int) (jIdentifyMatch.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jVerifyMatch);\r\n\r\n jIdentify.setText(BTN_IDENTIFY);\r\n jIdentify.setToolTipText(MSG_IDENTIFY);\r\n jIdentify.setBounds(new Rectangle(BTN_LEFT, (int) (jVerifyMatch.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jIdentify);\r\n\r\n jVerify.setText(BTN_VERIFY);\r\n jVerify.setToolTipText(MSG_VERIFY);\r\n jVerify.setBounds(new Rectangle(BTN_LEFT, (int) (jIdentify.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jVerify);\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n bindingGroup = new org.jdesktop.beansbinding.BindingGroup();\n\n desktopPane = new javax.swing.JDesktopPane();\n menuBar = new javax.swing.JMenuBar();\n ItemMenu = new javax.swing.JMenu();\n menuCrear = new javax.swing.JMenuItem();\n menuBuscar = new javax.swing.JMenuItem();\n menuActualizar = new javax.swing.JMenuItem();\n menuEliminar = new javax.swing.JMenuItem();\n menuListar = new javax.swing.JMenuItem();\n editMenu = new javax.swing.JMenu();\n cutMenuItem = new javax.swing.JMenuItem();\n copyMenuItem = new javax.swing.JMenuItem();\n pasteMenuItem = new javax.swing.JMenuItem();\n deleteMenuItem = new javax.swing.JMenuItem();\n helpMenu = new javax.swing.JMenu();\n contentMenuItem = new javax.swing.JMenuItem();\n aboutMenuItem = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setIconImage(new javax.swing.ImageIcon(getClass().getResource(\"/ec/edu/ups/imagenes/IconPrograma.png\")).getImage());\n\n desktopPane.setBackground(new java.awt.Color(0, 102, 102));\n\n javax.swing.GroupLayout desktopPaneLayout = new javax.swing.GroupLayout(desktopPane);\n desktopPane.setLayout(desktopPaneLayout);\n desktopPaneLayout.setHorizontalGroup(\n desktopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 466, Short.MAX_VALUE)\n );\n desktopPaneLayout.setVerticalGroup(\n desktopPaneLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 480, Short.MAX_VALUE)\n );\n\n org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, desktopPane, org.jdesktop.beansbinding.ELProperty.create(\"${background}\"), menuBar, org.jdesktop.beansbinding.BeanProperty.create(\"background\"));\n bindingGroup.addBinding(binding);\n\n ItemMenu.setMnemonic('f');\n ItemMenu.setText(\"Persona\");\n ItemMenu.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n ItemMenuItemStateChanged(evt);\n }\n });\n ItemMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ItemMenuActionPerformed(evt);\n }\n });\n\n menuCrear.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));\n menuCrear.setMnemonic('o');\n menuCrear.setText(\"Crear\");\n menuCrear.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuCrearActionPerformed(evt);\n }\n });\n ItemMenu.add(menuCrear);\n\n menuBuscar.setMnemonic('s');\n menuBuscar.setText(\"Buscar\");\n menuBuscar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menuBuscarActionPerformed(evt);\n }\n });\n ItemMenu.add(menuBuscar);\n\n menuActualizar.setMnemonic('a');\n menuActualizar.setText(\"Actualizar\");\n ItemMenu.add(menuActualizar);\n\n menuEliminar.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));\n menuEliminar.setMnemonic('x');\n menuEliminar.setText(\"Eliminar\");\n ItemMenu.add(menuEliminar);\n\n menuListar.setText(\"Listar\");\n ItemMenu.add(menuListar);\n\n menuBar.add(ItemMenu);\n\n editMenu.setMnemonic('e');\n editMenu.setText(\"Edit\");\n editMenu.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n editMenuItemStateChanged(evt);\n }\n });\n\n cutMenuItem.setMnemonic('t');\n cutMenuItem.setText(\"Cortar\");\n editMenu.add(cutMenuItem);\n\n copyMenuItem.setMnemonic('y');\n copyMenuItem.setText(\"Copiar\");\n editMenu.add(copyMenuItem);\n\n pasteMenuItem.setMnemonic('p');\n pasteMenuItem.setText(\"Pegar\");\n editMenu.add(pasteMenuItem);\n\n deleteMenuItem.setMnemonic('d');\n deleteMenuItem.setText(\"Eliminar\");\n deleteMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n deleteMenuItemActionPerformed(evt);\n }\n });\n editMenu.add(deleteMenuItem);\n\n menuBar.add(editMenu);\n\n helpMenu.setMnemonic('h');\n helpMenu.setText(\"Ayuda\");\n\n contentMenuItem.setMnemonic('c');\n contentMenuItem.setText(\"Contents\");\n helpMenu.add(contentMenuItem);\n\n aboutMenuItem.setMnemonic('a');\n aboutMenuItem.setText(\"About\");\n helpMenu.add(aboutMenuItem);\n\n menuBar.add(helpMenu);\n\n setJMenuBar(menuBar);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(desktopPane, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(desktopPane)\n .addContainerGap())\n );\n\n bindingGroup.bind();\n\n pack();\n }", "private void initComponents() {\n buttonGroup = new javax.swing.ButtonGroup();\n buttonGroupMethod = new javax.swing.ButtonGroup();\n buttonGroupExtMethod = new javax.swing.ButtonGroup();\n buttonGroupExtMsg = new javax.swing.ButtonGroup();\n buttonGroupBERSource = new javax.swing.ButtonGroup();\n buttonGroupBERTarget = new javax.swing.ButtonGroup();\n jPanelMainMenu = new javax.swing.JPanel();\n jSplitPane1 = new javax.swing.JSplitPane();\n jPanel2 = new javax.swing.JPanel();\n jPanelMenu3 = new javax.swing.JPanel();\n jLabelMenu3 = new javax.swing.JLabel();\n jPanelMenu4 = new javax.swing.JPanel();\n jLabelMenu4 = new javax.swing.JLabel();\n jPanelMenu5 = new javax.swing.JPanel();\n jLabelMenu5 = new javax.swing.JLabel();\n jPanelMenu6 = new javax.swing.JPanel();\n jLabelMenu6 = new javax.swing.JLabel();\n jPanelMenu7 = new javax.swing.JPanel();\n jLabelMenu7 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jPanelSideCenter = new javax.swing.JPanel();\n jPanelGraph1 = new javax.swing.JPanel();\n jPanelGraph2 = new javax.swing.JPanel();\n jToolBarPlayer = new javax.swing.JToolBar();\n jButtonStop = new javax.swing.JButton();\n jButtonPlay = new javax.swing.JButton();\n jButtonPause = new javax.swing.JButton();\n jButtonRecord = new javax.swing.JButton();\n jPanelSideRight1 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n jListPlaylist = new javax.swing.JList();\n jPanel9 = new javax.swing.JPanel();\n jLabel35 = new javax.swing.JLabel();\n jScrollPane6 = new javax.swing.JScrollPane();\n jTableProperties = new javax.swing.JTable();\n jPanel11 = new javax.swing.JPanel();\n jToolBar2 = new javax.swing.JToolBar();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"ARMS: Audio wateRMarking System\");\n setBackground(new java.awt.Color(255, 255, 255));\n setResizable(false);\n jPanelMainMenu.setLayout(new java.awt.BorderLayout());\n\n jSplitPane1.setBorder(null);\n jSplitPane1.setDividerLocation(80);\n jSplitPane1.setDividerSize(3);\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu3.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanelMenu3MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu3MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu3MouseExited(evt);\n }\n });\n\n jLabelMenu3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/ins.png\")));\n jLabelMenu3.setText(\"Insert Mark\");\n jLabelMenu3.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu3.add(jLabelMenu3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 60));\n\n jPanel2.add(jPanelMenu3, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 70));\n\n jPanelMenu4.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu4.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanelMenu4MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu4MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu4MouseExited(evt);\n }\n });\n\n jLabelMenu4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/ext.png\")));\n jLabelMenu4.setText(\"Extract Mark\");\n jLabelMenu4.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu4.add(jLabelMenu4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 60));\n\n jPanel2.add(jPanelMenu4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 70, 80, 70));\n\n jPanelMenu5.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu5.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu5.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanelMenu5MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu5MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu5MouseExited(evt);\n }\n });\n\n jLabelMenu5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/tes.png\")));\n jLabelMenu5.setText(\"Error Test\");\n jLabelMenu5.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu5.add(jLabelMenu5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 60));\n\n jPanel2.add(jPanelMenu5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 140, 80, 70));\n\n jPanelMenu6.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu6.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu6.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanelMenu6MouseClicked(evt);\n }\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu6MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu6MouseExited(evt);\n }\n });\n\n jLabelMenu6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/bitcheck.png\")));\n jLabelMenu6.setText(\"Recovery Test\");\n jLabelMenu6.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu6.add(jLabelMenu6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 60));\n\n jPanel2.add(jPanelMenu6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 210, 80, 70));\n\n jPanelMenu7.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelMenu7.setBackground(new java.awt.Color(255, 255, 255));\n jPanelMenu7.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(204, 204, 204)));\n jPanelMenu7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanelMenu7MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanelMenu7MouseExited(evt);\n }\n });\n\n jLabelMenu7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabelMenu7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/ady1.jpg\")));\n jLabelMenu7.setText(\"About\");\n jLabelMenu7.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);\n jLabelMenu7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jLabelMenu7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jPanelMenu7.add(jLabelMenu7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 80, 80));\n\n jPanel2.add(jPanelMenu7, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 280, 80, 90));\n\n jSplitPane1.setLeftComponent(jPanel2);\n\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n jPanelSideCenter.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelSideCenter.setBackground(new java.awt.Color(255, 255, 255));\n jPanelGraph1.setLayout(new java.awt.BorderLayout());\n\n jPanelSideCenter.add(jPanelGraph1, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 520, 210));\n\n jPanelGraph2.setLayout(new java.awt.BorderLayout());\n\n jPanelSideCenter.add(jPanelGraph2, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 230, 520, 210));\n\n jToolBarPlayer.setBorder(null);\n jButtonStop.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/stop.png\")));\n jButtonStop.setText(\"Stop\");\n jButtonStop.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonStop.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonStop.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonStopActionPerformed(evt);\n }\n });\n\n jToolBarPlayer.add(jButtonStop);\n\n jButtonPlay.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/play.png\")));\n jButtonPlay.setText(\"Play\");\n jButtonPlay.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonPlay.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonPlay.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonPlayActionPerformed(evt);\n }\n });\n\n jToolBarPlayer.add(jButtonPlay);\n\n jButtonPause.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/pause.png\")));\n jButtonPause.setText(\"Pause\");\n jButtonPause.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonPause.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonPause.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonPauseActionPerformed(evt);\n }\n });\n\n jToolBarPlayer.add(jButtonPause);\n\n jButtonRecord.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/record.png\")));\n jButtonRecord.setText(\"Record\");\n jButtonRecord.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonRecord.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonRecord.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRecordActionPerformed(evt);\n }\n });\n\n jToolBarPlayer.add(jButtonRecord);\n\n jPanelSideCenter.add(jToolBarPlayer, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 450, 710, -1));\n\n jPanelSideRight1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanelSideRight1.setBackground(new java.awt.Color(255, 255, 255));\n jScrollPane5.setBorder(null);\n jListPlaylist.setSelectionBackground(new java.awt.Color(104, 121, 144));\n jListPlaylist.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n jListPlaylistValueChanged(evt);\n }\n });\n\n jScrollPane5.setViewportView(jListPlaylist);\n\n jPanelSideRight1.add(jScrollPane5, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 240, 170, 190));\n\n jPanel9.setLayout(new java.awt.BorderLayout());\n\n jPanel9.setBackground(new java.awt.Color(51, 95, 130));\n jLabel35.setForeground(new java.awt.Color(255, 255, 255));\n jLabel35.setText(\" Available Stream\");\n jPanel9.add(jLabel35, java.awt.BorderLayout.CENTER);\n\n jPanelSideRight1.add(jPanel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 220, 170, 20));\n\n jScrollPane6.setBorder(null);\n jTableProperties.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"Properties\", \"Value\"\n }\n ));\n jTableProperties.setSelectionBackground(new java.awt.Color(104, 121, 144));\n jScrollPane6.setViewportView(jTableProperties);\n\n jPanelSideRight1.add(jScrollPane6, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 170, 220));\n\n jPanel11.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jToolBar2.setBorder(null);\n jButton4.setText(\" add \");\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jToolBar2.add(jButton4);\n\n jButton5.setText(\" sav \");\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n\n jToolBar2.add(jButton5);\n\n jButton6.setText(\" rem \");\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n\n jToolBar2.add(jButton6);\n\n jPanel11.add(jToolBar2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 170, 20));\n\n jPanelSideRight1.add(jPanel11, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 430, 170, 20));\n\n jPanelSideCenter.add(jPanelSideRight1, new org.netbeans.lib.awtextra.AbsoluteConstraints(539, 0, 170, 450));\n\n jPanel3.add(jPanelSideCenter, java.awt.BorderLayout.CENTER);\n\n jSplitPane1.setRightComponent(jPanel3);\n\n jPanelMainMenu.add(jSplitPane1, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(jPanelMainMenu, java.awt.BorderLayout.CENTER);\n\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jPanel1.setBackground(new java.awt.Color(102, 121, 187));\n jLabel1.setFont(new java.awt.Font(\"Harlow Solid Italic\", 0, 36));\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/wavemark/images/head3.jpg\")));\n jPanel1.add(jLabel1, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-800)/2, (screenSize.height-600)/2, 800, 600);\n }", "private DisplayPanel(){\r\n\t\t\t\tControlActionListenter cal = new ControlActionListenter();\r\n\t\t\t\tsetLayout(new BorderLayout());\r\n\t\t\t\tfinal JButton btn1 = new JButton(\"First\");\r\n\t\t\t\tbtn1.setFocusable(false);\r\n \t \tbtn1.addActionListener(cal);\r\n \t\t\tfinal JButton btn2 = new JButton(\"Next\");\r\n \t\t\tbtn2.addActionListener(cal);\r\n \t\t\t\tfinal JButton btn3 = new JButton(\"Previous\");\r\n \t\t \tbtn3.addActionListener(cal);\r\n \t\t final JButton btn4 = new JButton(\"Last\");\r\n \t\tbtn4.addActionListener(cal);\r\n \t\tbtn2.setFocusable(false);\r\n \t\tbtn3.setFocusable(false);\r\n \t\tbtn4.setFocusable(false);\r\n \t\t \tJPanel controlButtons = new JPanel(new GridLayout(2,2,5,5));\r\n \t\t \tcontrolButtons.add(btn3);\r\n \t\t \tcontrolButtons.add(btn2);\r\n \t\t \tcontrolButtons.add(btn1);\r\n \t\tcontrolButtons.add(btn4);\r\n \t\tcontrolButtons.setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10));\r\n \t\tadd(controlButtons, BorderLayout.PAGE_END);\r\n\t\t\t}", "private void createLayout() {\n\t\t\n\t\tmenu = new JMenuBar();\n\t\tfile = new JMenu(\"Arquivo\");\n\t\tedit = new JMenu(\"Editar\");\n\t\tmenu.add(file);\n\t\tmenu.add(edit);\n\n\t\tnewfile = new JMenuItem(\"Novo\");\n\t\tnewfile.addActionListener(new NewFileListener());\n\t\tfile.add(newfile);\n\t\t\n\t\tcopy = new JMenuItem(\"Copiar\");\n\t\tcopy.addActionListener(new CopyListener());\n\t\tedit.add(copy);\n\t\t\n\t\tcut = new JMenuItem(\"Cortar\");\n\t\tcut.addActionListener(new CutListener());\n\t\tedit.add(cut);\n\t\t\n\t\tpaste = new JMenuItem(\"Colar\");\n\t\tpaste.addActionListener(new PasteListener());\n\t\tedit.add(paste);\n\n \n edit.add(undoAction);\n edit.add(redoAction);\n \n \t\topen = new JMenuItem(\"Abrir\");\n\t\topen.addActionListener(new OpenFileListener());\n\t\tfile.add(open);\n\n\t\texit = new JMenuItem(\"Sair\");\n\t\texit.addActionListener(new ExitFileListener());\n\t\tfile.add(exit);\n\t\tframe.setJMenuBar(menu);\n\t\t\n\t\tcaret = new DefaultCaret();\n\t\tarea = new JTextArea(25, 65);\n\t\tarea.setLineWrap(true);\n\t\tarea.setText(documentText);\n\t\tarea.setWrapStyleWord(true);\n\t\t\n\t\t\n\t\tarea.setCaret(caret);\n\t\tdocumentListener = new TextDocumentListener();\n\t\tarea.getDocument().addDocumentListener(documentListener); \n\t\t\n area.getDocument().addUndoableEditListener(new UndoListener());\n \n\t\tscrollpane = new JScrollPane(area);\n\t\tscrollpane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\n\t\tGroupLayout layout = new GroupLayout(this);\n\t\tsetLayout(layout);\n\t\tlayout.setAutoCreateGaps(true);\n\t\tlayout.setAutoCreateContainerGaps(true);\n\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup()\n\t\t\t\t.addComponent(documentNameLabel)\n\t\t\t\t.addComponent(scrollpane));\n\t\tlayout.setVerticalGroup(layout.createSequentialGroup()\n\t\t\t\t.addComponent(documentNameLabel)\n\t\t\t\t.addComponent(scrollpane));\n\t}", "private void initComponents() {\n\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n loadButton = new javax.swing.JMenuItem();\n saveButton = new javax.swing.JMenuItem();\n saveAsButton = new javax.swing.JMenuItem();\n exitButton = new javax.swing.JMenuItem();\n jMenu3 = new javax.swing.JMenu();\n resetThisButton = new javax.swing.JMenuItem();\n resetAllButton = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n helpMenuItem = new javax.swing.JMenuItem();\n jToolBar1 = new javax.swing.JToolBar();\n copyB = new javax.swing.JButton();\n addB = new javax.swing.JButton();\n subB1 = new javax.swing.JButton();\n multB = new javax.swing.JButton();\n divB = new javax.swing.JButton();\n selAll = new javax.swing.JButton();\n selCol = new javax.swing.JButton();\n selRow = new javax.swing.JButton();\n fixParamFileButton = new javax.swing.JButton();\n expandorButton = new javax.swing.JButton();\n report = new javax.swing.JButton();\n diff = new javax.swing.JButton();\n parameterizer = new javax.swing.JButton();\n history = new javax.swing.JButton();\n jSplitPane1 = new javax.swing.JSplitPane();\n treeScrollPane = new javax.swing.JScrollPane();\n paramTree = new javax.swing.JTree();\n tableScrollPane = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n\n jMenu1.setText(\"File\");\n\n loadButton.setText(\"Load\");\n loadButton.setToolTipText(\"Load a new parameter file\");\n loadButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n loadButtonActionPerformed(evt);\n }\n });\n jMenu1.add(loadButton);\n\n saveButton.setText(\"Save\");\n saveButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n saveButtonActionPerformed(evt);\n }\n });\n jMenu1.add(saveButton);\n\n saveAsButton.setText(\"Save As\");\n saveAsButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n saveAsButtonActionPerformed(evt);\n }\n });\n jMenu1.add(saveAsButton);\n\n exitButton.setText(\"Exit\");\n exitButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exitButtonActionPerformed(evt);\n }\n });\n jMenu1.add(exitButton);\n\n jMenuBar1.add(jMenu1);\n\n jMenu3.setText(\"Reset\");\n jMenu3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenu3ActionPerformed(evt);\n }\n });\n\n resetThisButton.setText(\"Reset This Table to Original Values\");\n jMenu3.add(resetThisButton);\n\n resetAllButton.setText(\"Reset All to Original Values\");\n resetAllButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n resetAllButtonActionPerformed(evt);\n }\n });\n jMenu3.add(resetAllButton);\n\n jMenuBar1.add(jMenu3);\n\n jMenu2.setText(\"Help\");\n\n helpMenuItem.setText(\"OUI Users Manual\");\n helpMenuItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n helpMenuSelected(evt);\n }\n });\n jMenu2.add(helpMenuItem);\n\n jMenuBar1.add(jMenu2);\n\n copyB.setText(\"Copy\");\n copyB.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n copyB.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n copyBActionPerformed(evt);\n }\n });\n jToolBar1.add(copyB);\n\n addB.setText(\"+\");\n addB.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n addB.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addBActionPerformed(evt);\n }\n });\n jToolBar1.add(addB);\n\n subB1.setText(\"-\");\n subB1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n subB1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n subB1ActionPerformed(evt);\n }\n });\n jToolBar1.add(subB1);\n\n multB.setText(\"X\");\n multB.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n multB.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n multBActionPerformed(evt);\n }\n });\n jToolBar1.add(multB);\n\n divB.setText(\"/\");\n divB.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n divB.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n divBActionPerformed(evt);\n }\n });\n jToolBar1.add(divB);\n\n selAll.setText(\"All\");\n selAll.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n selAll.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n selAllActionPerformed(evt);\n }\n });\n jToolBar1.add(selAll);\n\n selCol.setText(\"Columns\");\n selCol.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n selCol.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n selColActionPerformed(evt);\n }\n });\n jToolBar1.add(selCol);\n\n selRow.setText(\"Rows\");\n selRow.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n selRow.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n selRowActionPerformed(evt);\n }\n });\n jToolBar1.add(selRow);\n\n fixParamFileButton.setText(\"Fix It\");\n fixParamFileButton.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n fixParamFileButton.setFocusable(false);\n fixParamFileButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n fixParamFileButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n fixParamFileButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n fixParamFileButtonActionPerformed(evt);\n }\n });\n jToolBar1.add(fixParamFileButton);\n\n expandorButton.setFont(new java.awt.Font(\"Tahoma\", 3, 11)); // NOI18N\n expandorButton.setText(\"The Expandor\");\n expandorButton.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n expandorButton.setFocusable(false);\n expandorButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n expandorButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n expandorButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n expandorButtonActionPerformed(evt);\n }\n });\n jToolBar1.add(expandorButton);\n\n report.setText(\"Report\");\n report.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n report.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n reportActionPerformed(evt);\n }\n });\n jToolBar1.add(report);\n\n diff.setText(\"Difference\");\n diff.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n diff.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n diffActionPerformed(evt);\n }\n });\n jToolBar1.add(diff);\n\n parameterizer.setText(\"Compare to Defaults\");\n parameterizer.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n parameterizer.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n parameterizerActionPerformed(evt);\n }\n });\n jToolBar1.add(parameterizer);\n\n history.setText(\"Describe\");\n history.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n history.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n describeActionPerformed(evt);\n }\n });\n jToolBar1.add(history);\n\n jSplitPane1.setResizeWeight(0.33);\n\n paramTree.addTreeSelectionListener(new javax.swing.event.TreeSelectionListener() {\n public void valueChanged(javax.swing.event.TreeSelectionEvent evt) {\n paramTreeValueChanged(evt);\n }\n });\n treeScrollPane.setViewportView(paramTree);\n\n jSplitPane1.setLeftComponent(treeScrollPane);\n\n tableScrollPane.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n tableScrollPane.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\n jTable1.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null},\n {null, null, null, null}\n },\n new String [] {\n \"Title 1\", \"Title 2\", \"Title 3\", \"Title 4\"\n }\n ));\n jTable1.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);\n tableScrollPane.setViewportView(jTable1);\n\n jSplitPane1.setRightComponent(tableScrollPane);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jMenuBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 629, Short.MAX_VALUE)\n .addComponent(jSplitPane1)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(0, 0, 0)\n .addComponent(jMenuBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSplitPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE))\n );\n }", "public GUI(){\n\t\tSIZE = promptSIZE();\n\t\tframe = new JFrame(\"Five in a row developed by Wonjohn Choi in G.Y.G.D.\");\n\t\tframe.setLayout(new GridLayout(SIZE, SIZE));\n\t\t\n\t\tbuttonGrid = new JButton[SIZE][SIZE];\n\t\t\n\t\tfor(int row=0;row<SIZE;row++){\n\t\t\tfor(int col=0;col<SIZE;col++){\n\t\t\t\tbuttonGrid[row][col] = new JButton();\n\t\t\t\tframe.add(buttonGrid[row][col]);\n\t\t\t\tbuttonGrid[row][col].addActionListener(this);\n\t\t\t}\n\t\t}\n\t\t\n\t\tframe.setSize(50*SIZE, 50*SIZE);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t\t\n\t\tengine = new Engine(SIZE);\n\t}", "private void createAdminEvents() {\n\t\t//moves the create user panel to the front to allow the user to enter the new user info\n\t\tbtn_create_new_user.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\tpnlCreateQualification.setVisible(false);\n\t\t\t\tpnlCreateUser.setVisible(true);\n\t\t\t\tlayeredPaneAdminComponents.setLayer(pnlUserEditInfo, 2);\n\t\t\t\tlayeredPaneAdminComponents.setLayer(pnlCreateUser, 3);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtn_add_qualifications.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\tpnlUserEditInfo.setVisible(false);\n\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\tpnlCreateUser.setVisible(false);\n\t\t\t\tpnlCreateQualification.setVisible(true);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnCancelAddQualifcation.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\tpnlCreateQualification.setVisible(false);\n\t\t\t\tpnlUserEditInfo.setVisible(true);\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnChangePassword.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//Display user information that was clicked on the left.\n\t\tlistUsers.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (!arg0.getValueIsAdjusting() && !listUsers.isSelectionEmpty()) {\n pnlViewTickets.setVisible(false);\n pnlCreateQualification.setVisible(false);\n pnlUserEditInfo.setVisible(true);\n displayUserInfo(listUsers.getSelectedValue().toString());\n //saves the index of the array that was clicked on\n btnDeleteUser.setText(\"ARCHIVE USER\");\n lastClickedIndex = listUsers.getSelectedIndex();\n int id = jdbc.getIdOfUser(textUsername.getText());\n //saved the userID of the user that is displayed\n lastClickeduserID = id;\n if (rdbtnAdminDetails.isSelected()) {\n \t lastClickedUserType = 1;\n } else if (rdbtnManagerDetails.isSelected()) {\n \t lastClickedUserType = 2;\n } else {\n \t lastClickedUserType = 3;\n }\n }\n }\n });\n\t\t//Display user information that was clicked on the left.\n\t\tlistArchivedUsers.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (!arg0.getValueIsAdjusting() && !listArchivedUsers.isSelectionEmpty()) {\n pnlUserEditInfo.setVisible(true);\n displayUserInfo(listArchivedUsers.getSelectedValue().toString());\n //saves the index of the array that was clicked on\n lastClickedIndex = listArchivedUsers.getSelectedIndex();\n btnDeleteUser.setText(\"UNARCHIVE USER\");\n int id = jdbc.getIdOfUser(textUsername.getText());\n //saved the userID of the user that is displayed\n lastClickeduserID = id;\n if (rdbtnAdminDetails.isSelected()) {\n \t lastClickedUserType = 1;\n } else if (rdbtnManagerDetails.isSelected()) {\n \t lastClickedUserType = 2;\n } else {\n \t lastClickedUserType = 3;\n }\n }\n }\n });\n\t\t//Save changes made the user\n\t\tbtnSaveChanges.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tint id = jdbc.getIdOfUser(textUsername.getText());\n\t\t\t\tlastClickeduserID = id;\n\t\t\t\ttry {\n\t\t\t\t\t if (rdbtnAdminDetails.isSelected()) {\n\t \t lastClickedUserType = 1;\n\t } else if (rdbtnManagerDetails.isSelected()) {\n\t \t lastClickedUserType = 2;\n\t } else {\n\t \t lastClickedUserType = 3;\n\t }\n\t\t\t\t\t jdbc.updateUser(id, lastClickedUserType, textFirstName.getText(), textLastName.getText(), textUsername.getText(), textEmail.getText(), textPhone.getText());\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t}\n\t\t\t\tupdateUserList();\n\t\t\t}\n\t\t});\n\t\t/*Called when the -> button is clicked to add some qualifications to a user\n\t\tall edits are done with the jdbc function assignQuals()\n\t\tparameters are the userId, the ArrayList of available qualifications and the selected indices of the qualification list*/\n\t\tassignQual.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t//parameters are the userId, the ArrayList of available qualifications and the selected indices of the qualification list\n\t\t\t\tjdbc.assignQuals(lastClickeduserID, availQuals, listAvailableQuals.getSelectedIndices());\n\t\t\t\tcreateQualLists(lastClickeduserID);\n\t\t\t}\n\t\t});\n\t\t/*Called when the <- button is clicked to remove some qualifications from a user\n\t\tall edits are done with the jdbc function UnassignQuals()*/\n\t\tunassignQual.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//parameters are the userId, the ArrayList of assigned qualifications and the selected indices of the qualification list\n\t\t\t\tjdbc.UnassignQuals(lastClickeduserID, assignedQuals, listAssignedQuals.getSelectedIndices());\n\t\t\t\tcreateQualLists(lastClickeduserID);\n\t\t\t}\n\t\t});\n\t\t//Send the information to the SQL server after the information in entered\n\t\tbtnCreateUser.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint usertype = 0;\n\t\t\t\tif (rdbtnAdmin.isSelected()) {\n\t\t\t\t\tusertype = 1;\n\t\t\t\t} else if (rdbtnManager.isSelected()) {\n\t\t\t\t\tusertype = 2;\n\t\t\t\t} else if (rdbtnWorker.isSelected()) {\n\t\t\t\t\tusertype = 3;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tString pass = new String(txtCreatePassword.getPassword());\n\t\t\t\t\tjdbc.add_user(usertype,txtCreateUsername.getText(),txtCreateFirstName.getText(), txtCreateLastName.getText(), txtCreateEmailAddress.getText(), txtCreatePhoneNumber.getText(), pass);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tJOptionPane.showMessageDialog(null, \"User Created!\");\n\t\t\t\t//hides the create user panel\n\t\t\t\tpnlCreateUser.setVisible(false);\n\t\t\t\t//Refreshes the list of user on the left side panel\n\t\t\t\tcreateUserList();\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateUser.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t//TODO make it so they turn into an 'archived' user instead of complete deletion.\n\t\tbtnDeleteUser.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tboolean b = true;\n\t\t\t\tif (btnDeleteUser.getText() == \"ARCHIVE USER\") {\n\t\t\t\t\tb = false;\n\t\t\t\t} \n\t\t\t\tjdbc.archiveUser(lastClickeduserID, b);\n\t\t\t\tcreateUserList();\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnCreateQual.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tArrayList<String> usernames = new ArrayList<String>();\n\t\t\t\tfor (int i = 0; i < userListAssignQual.size(); i++) {\n\t\t\t\t\tusernames.add(userListAssignQual.getElementAt(i).toString());\n\t\t\t\t}\n\t\t\t\tboolean worked = jdbc.createQual(txtNewQualificationName.getText(), txtNewQualificationDesc.getText(), usernames);\n\t\t\t\tif (worked) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Qualification Created!\");\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Qualification not created.\");\n\t\t\t\t\ttxtNewQualificationDesc.setText(\"\");\n\t\t\t\t\ttxtNewQualificationName.setText(\"\");\n\t\t\t\t\tuserListAssignQual.clear();\n\t\t\t\t\tcreateUserListQual();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnAssignUserQual.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint[] selected = listCreateQualAvailUsers.getSelectedIndices();\n\t\t\t\tfor (int i = 0; i < selected.length; i++) {\n\t\t\t\t\tuserListAssignQual.addElement(userListAvailQual.getElementAt(selected[i]));\n\t\t\t\t\tuserListAvailQual.remove(selected[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnUnassignUserQual.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint[] selected = listCreateQualAssignedUsers.getSelectedIndices();\n\t\t\t\tfor (int i = 0; i < selected.length; i++) {\n\t\t\t\t\tuserListAvailQual.addElement(userListAssignQual.getElementAt(selected[i]));\n\t\t\t\t\tuserListAssignQual.remove(selected[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnViewTickets.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tloadTickets();\n\t\t\t\tif (pnlViewTickets.isVisible()) {\n\t\t\t\t\tpnlViewTickets.setVisible(false);\n\t\t\t\t\tpnlUserEditInfo.setVisible(true);\n\t\t\t\t} else {\n\t\t\t\t\tpnlUserEditInfo.setVisible(false);\n\t\t\t\t\tpnlCreateQualification.setVisible(false);\n\t\t\t\t\tpnlViewTickets.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t//Displays the closed ticket information\n\t\tlistClosedTickets.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (!arg0.getValueIsAdjusting() && !listClosedTickets.isSelectionEmpty()) {\n \tpnlTicketDetails.setVisible(true);\n \tdisplayTicketDetails(listClosedTickets.getSelectedValue().toString());\n }\n }\n });\n\t\t//Displays the open ticket information\n\t\tlistOpenTickets.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (!arg0.getValueIsAdjusting() && !listOpenTickets.isSelectionEmpty()) {\n \tpnlTicketDetails.setVisible(true);\n \tdisplayTicketDetails(listOpenTickets.getSelectedValue().toString());\n }\n }\n });\n\t\t//\n\t\tbtnTicketDetailsClose.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tpnlTicketDetails.setVisible(false);\n\t\t\t\tloadTickets();\n\t\t\t}\n\t\t});\n\t\t//opens report generation tab\n\t\tbtnReportGenerator.addActionListener(new ActionListener() {\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n//\t\t\t\tpnlUserEditInfo.setVisible(false);\n//\t\t\t\tpnlCreateQualification.setVisible(false);\n//\t\t\t\tpnlCreateUser.setVisible(false);\n//\t\t\t\tpnlDeleteUser.setVisible(false);\n//\t\t\t\tpnlViewTickets.setVisible(false);\n//\t\t\t\tpnlTicketDetails.setVisible(false);\n//\t\t\t\tpnlArchivedUsers.setVisible(false);\n\t\t\t\tpnlReportGeneration.setVisible(true);\n\t\t\t\tloadProjects();\n\t\t\t}\n\t\t});\n\t\t//listens for selection of a project to generate a report of\n\t\tlistProjectsGeneratable.addListSelectionListener(new ListSelectionListener() {\t\t\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t if (!arg0.getValueIsAdjusting()) {\n\t projectToGenerate= (String) listProjectsGeneratable.getSelectedValue();\t\n\t System.out.println(projectToGenerate);\n\t }\n\t\t\t}\n\t\t});\n\t\t//creates Report given a project name\n\t\tbtnCreateReport.addActionListener(new ActionListener() {\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\t\tFile file = new File(\"%s\",txtReportPath.getSelectedText());\n\t\t\t\tString s = \"\";\n\t\t\t\treportedjobs.add(jdbc.get_project(projectToGenerate)); //root\n\t\t\t\treportedjobs.addAll(jdbc.get_Branches(projectToGenerate));//branches\n\t\t\t\tfor (Job job : reportedjobs) {\n\t\t\t\t\ts= s+job.jobname+\"\t\t\t\t\"+job.jobdesc+ '\\r'+'\\n';\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriteFileLine(s, file);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//cancels report generation\n\t\tbtnCancelReport.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlReportGeneration.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnTicketDoneSave.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjdbc.updateTicket(currentOpenTicketId, rdbtnTicketDoneYes.isSelected());\n\t\t\t\tpnlTicketDetails.setVisible(false);\n\t\t\t\tloadTickets();\n\t\t\t}\n\t\t});\n\t}", "private void addListeners() {\n\t\t\n\t\tloadJokesOptionMenu.addActionListener((event) -> {\n\t\t\tJFileChooser openDialog = new JFileChooser();\n\t\t\t\n\t\t FileNameExtensionFilter filter = new FileNameExtensionFilter(\"text files\", \"txt\");\n\t\t openDialog.setFileFilter(filter);\n\t\t int returnVal = openDialog.showOpenDialog(null);\n\t\t if(returnVal == JFileChooser.APPROVE_OPTION) {\t \n\t\t jokeFile = openDialog.getSelectedFile().getAbsolutePath();\n\t\t }\n\t\t});\n\t\t\n\t\tstartServerFileMenu.addActionListener(event -> startServer());\n\t\tstopServerFileMenu.addActionListener(event -> stopServer());\n\t\t\n\t\texitFileMenu.addActionListener(event -> quitApp());\n\n\t\tsetupServerInfoOptionMenu.addActionListener(event -> setupServerInfo());\n\t\t\n\t\taboutHelpMenu.addActionListener(event -> {\n\t\t\tJOptionPane.showMessageDialog(null, \"Knock Knock Server v1.0 Copyright 2017 RLTech Inc\");\n\t\t});\n\t\t\n\t\tstartServerToolBarButton.addActionListener(event -> {\n\t\t\tstartServer();\n\t\t\tstartServerToolBarButton.setEnabled(false);\n\t\t\tstopServerToolBarButton.setEnabled(true);\n\t\t});\n\t\t\n\t\tstopServerToolBarButton.addActionListener(event -> {\n\t\t\tstopServer();\n\t\t\tstartServerToolBarButton.setEnabled(true);\n\t\t\tstopServerToolBarButton.setEnabled(false);\n\t\t});\n\n\t\tkkClientToolBarButton.addActionListener(event -> {\n\n\t\t\ttry {\n\t\t\t\tRuntime.getRuntime().exec(\"java -jar KKClient.jar\");\n\t\t\t} catch (IOException e1) {\n\t\t\t\t//e1.printStackTrace();\n\t\t\t\tUtility.displayErrorMessage(\"Fail to find or launch KKClient.jar client app. Make sure Java run time (JRE) is installed and KKClient.jar is stored in the same path as this server app.\");\n\t\t\t}\n\t\t});\n\t\t\n\t\taddWindowListener(new WindowAdapter() {\n\t\t public void windowClosing(WindowEvent e) {\n\t\t \tquitApp();\t\n\t\t }\n\t\t});\n\t}", "private void initComponents() {\n jScrollPane1 = new javax.swing.JScrollPane();\n xList1 = new com.rameses.rcp.control.XList();\n xActionBar1 = new com.rameses.rcp.control.XActionBar();\n formPanel1 = new com.rameses.rcp.util.FormPanel();\n xTextField1 = new com.rameses.rcp.control.XTextField();\n xComboBox4 = new com.rameses.rcp.control.XComboBox();\n xComboBox1 = new com.rameses.rcp.control.XComboBox();\n xComboBox2 = new com.rameses.rcp.control.XComboBox();\n xComboBox3 = new com.rameses.rcp.control.XComboBox();\n xLookupField1 = new com.rameses.rcp.control.XLookupField();\n\n setLayout(new java.awt.BorderLayout());\n\n setPreferredSize(new java.awt.Dimension(548, 368));\n xList1.setDynamic(true);\n xList1.setExpression(\"#{name}\");\n xList1.setItems(\"filterlist\");\n xList1.setName(\"selectedFilter\");\n jScrollPane1.setViewportView(xList1);\n\n add(jScrollPane1, java.awt.BorderLayout.NORTH);\n\n xActionBar1.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 0, 5, 0));\n xActionBar1.setDepends(new String[] {\"selectedFilter\"});\n xActionBar1.setName(\"formActions\");\n xActionBar1.setUseToolBar(false);\n add(xActionBar1, java.awt.BorderLayout.SOUTH);\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder1 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder1.setTitle(\"Filter Information\");\n formPanel1.setBorder(xTitledBorder1);\n xTextField1.setCaption(\"Name\");\n xTextField1.setCaptionWidth(100);\n xTextField1.setName(\"filter.name\");\n xTextField1.setPreferredSize(new java.awt.Dimension(0, 19));\n xTextField1.setRequired(true);\n xTextField1.setTextCase(com.rameses.rcp.constant.TextCase.NONE);\n formPanel1.add(xTextField1);\n\n xComboBox4.setCaption(\"State\");\n xComboBox4.setCaptionWidth(100);\n xComboBox4.setDynamic(true);\n xComboBox4.setItems(\"statelist\");\n xComboBox4.setName(\"filter.info.docstate\");\n xComboBox4.setPreferredSize(new java.awt.Dimension(0, 22));\n formPanel1.add(xComboBox4);\n\n xComboBox1.setCaption(\"Barangay\");\n xComboBox1.setCaptionWidth(100);\n xComboBox1.setDynamic(true);\n xComboBox1.setExpression(\"#{name}\");\n xComboBox1.setItems(\"barangaylist\");\n xComboBox1.setName(\"filter.info.barangay\");\n xComboBox1.setPreferredSize(new java.awt.Dimension(0, 22));\n formPanel1.add(xComboBox1);\n\n xComboBox2.setCaption(\"Classification\");\n xComboBox2.setCaptionWidth(100);\n xComboBox2.setDynamic(true);\n xComboBox2.setExpression(\"#{classname}\");\n xComboBox2.setItems(\"classificationlist\");\n xComboBox2.setName(\"filter.info.classification\");\n xComboBox2.setPreferredSize(new java.awt.Dimension(0, 22));\n formPanel1.add(xComboBox2);\n\n xComboBox3.setCaption(\"Property Type\");\n xComboBox3.setCaptionWidth(100);\n xComboBox3.setDynamic(true);\n xComboBox3.setItems(\"rputypelist\");\n xComboBox3.setName(\"filter.info.rputype\");\n xComboBox3.setPreferredSize(new java.awt.Dimension(0, 22));\n formPanel1.add(xComboBox3);\n\n xLookupField1.setCaption(\"Owner\");\n xLookupField1.setCaptionWidth(100);\n xLookupField1.setExpression(\"#{entityname}\");\n xLookupField1.setHandler(\"lookupOwner\");\n xLookupField1.setName(\"filter.info.owner\");\n xLookupField1.setPreferredSize(new java.awt.Dimension(0, 19));\n formPanel1.add(xLookupField1);\n\n add(formPanel1, java.awt.BorderLayout.CENTER);\n\n }", "public static void MainMenuComponents(){\n\t\tInterface.menu = new JPanel(new GridBagLayout()) {\n\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic void paintComponent(Graphics g) {\n\n\t\t\t\tg.drawImage(Interface.img, 0, 0, null);\n\t\t\t}\n\t\t};\n\t\tInterface.single.setPreferredSize(Interface.dim);\n\t\tInterface.single.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.single.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.single.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.single.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.multi.setPreferredSize(Interface.dim);\n\t\tInterface.multi.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.multi.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.multi.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.multi.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.options.setPreferredSize(Interface.dim);\n\t\tInterface.options.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.options.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.options.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.options.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.exit.setPreferredSize(Interface.dim);\n\t\tInterface.exit.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.exit.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.exit.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.exit.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.game.setFocusable(true);\n\t\tInterface.menu.setFocusable(true);\n\t\t\n\t\t\n\t\tInterface.backtosingle.setPreferredSize(Interface.dim);\n\t\tInterface.backtosingle.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtosingle.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtosingle.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtosingle.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtomulti.setPreferredSize(Interface.dim);\n\t\tInterface.backtomulti.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtomulti.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtomulti.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtomulti.setForeground(Color.white);\n\t}", "public void uiBuilder(){\n fontLoader();\n\n jfFrame = new JFrame(String.format(\"Coronos - %s\", username));\n jfFrame.setLayout(new BorderLayout());\n //Instantiate JFrame, add Title, add LayoutManager GridLayout\n\n\n jmMenuBar = new JMenuBar();\n //Instantiate JMenuBar\n\n jmFile = new JMenu(\"File\");\n jmHelp = new JMenu(\"Help\");\n //Adding Menus to JMenuBar\n\n jmExit = new JMenuItem(\"Exit\");\n jmAbout = new JMenuItem(\"About\");\n //Instantiating Options for JMenus\n\n jmExit.addActionListener(this);\n jmAbout.addActionListener(this);\n\n jmFile.add(jmExit);\n jmHelp.add(jmAbout);\n //adding Options to JMenus\n\n jmMenuBar.add(jmFile);\n jmMenuBar.add(jmHelp);\n //adding JMenus to JMenuBar\n\n jfFrame.setJMenuBar(jmMenuBar);\n //adding JMenuBar to JFrame\n\n jpClockPanel = new JPanel(new FlowLayout());\n jpContainerPanel = new JPanel(new FlowLayout());\n Border blackLine = BorderFactory.createTitledBorder(\"Current Time\");\n jpClockPanel.setBorder(blackLine);\n //instantiate JPanel for clock\n\n clockLabelOne = new JLabel();\n clockLabelOne.setFont(customFont);\n clockLabelOne.setForeground(Color.BLACK);\n jpClockPanel.add(clockLabelOne);\n //instantiating JLabel, setting Font and Color, adding to clockPanel\n\n clockLabelTwo = new JLabel();\n clockLabelTwo.setFont(customFont);\n clockLabelTwo.setForeground(Color.BLACK);\n jpClockPanel.add(clockLabelTwo);\n clockLabelTwo.setVisible(false);\n //instantiating JLabel, setting Font and Color, adding to clockPanel\n\n jpGridPanel1 = new JPanel(new GridLayout(4, 1, 15, 15));\n jpGridPanel2 = new JPanel(new GridLayout(4, 1, 15, 15));\n\n jbPunchIn = new JButton(\"Punch In\");\n jbReport = new JButton(\"View Report\");\n jbProfile = new JButton(\"View Profile\");\n jbSave = new JButton(\"Save\");\n jbPunchOut = new JButton(\"Punch Out\");\n jbViewPunches = new JButton(\"View Punches\");\n jbFormatTime = new JButton(\"12/24HR Time\");\n jbHideChat = new JButton(\"Hide Chat\");\n\n jbHideChat.setToolTipText(\"Hate your co-workers? Want to hide from your boss? Just close chat!\");\n\n jbPunchIn.addActionListener(this);\n jbReport.addActionListener(this);\n jbProfile.addActionListener(this);\n jbSave.addActionListener(this);\n jbPunchOut.addActionListener(this);\n jbViewPunches.addActionListener(this);\n jbFormatTime.addActionListener(this);\n jbHideChat.addActionListener(this);\n\n jpGridPanel1.add(jbPunchIn);\n jpGridPanel1.add(jbReport);\n jpGridPanel1.add(jbProfile);\n jpGridPanel1.add(jbSave);\n\n jpGridPanel2.add(jbPunchOut);\n jpGridPanel2.add(jbViewPunches);\n jpGridPanel2.add(jbFormatTime);\n jpGridPanel2.add(jbHideChat);\n\n jpActionPanel = new JPanel(new FlowLayout());\n Border actionBorder = BorderFactory.createTitledBorder(\"Employee Actions\");\n jpActionPanel.setBorder(actionBorder);\n jpActionPanel.add(jpGridPanel1);\n jpActionPanel.add(jpGridPanel2);\n jpContainerPanel.add(jpActionPanel);\n\n jpChatPanel = new JPanel(new BorderLayout());\n jpAreaPanel = new JPanel(new FlowLayout());\n jtaChatArea = new JTextArea(10, 10);\n jtaChatArea.setLineWrap(true);\n jtaChatArea.setWrapStyleWord(true);\n jtaChatArea.setEditable(false);\n jspChatPane = new JScrollPane(jtaChatArea);\n jtfChatField = new JTextField(12);\n jtfChatField.addActionListener(this);\n jtfChatField.setActionCommand(\"Send\");\n chatButton = new JButton(\"Send\");\n chatButton.addActionListener(this);\n jpSendPanel = new JPanel(new FlowLayout());\n jpSendPanel.add(jtfChatField);\n jpSendPanel.add(chatButton);\n Border chatBorder = BorderFactory.createTitledBorder(\"Chat\");\n jpChatPanel.setBorder(chatBorder);\n jpChatPanel.add(jspChatPane, BorderLayout.NORTH);\n jpChatPanel.add(jpSendPanel, BorderLayout.SOUTH);\n jpContainerPanel.add(jpChatPanel);\n\n // jfFrame.add(clockPanelTwo, BorderLayout.NORTH);\n jfFrame.add(jpClockPanel, BorderLayout.NORTH);\n jfFrame.add(jpContainerPanel, BorderLayout.SOUTH);\n\n //adding JPanels to JFrame\n\n jfFrame.setLocationRelativeTo(null);\n jfFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n jfFrame.setVisible(false);\n jfFrame.pack();\n jfFrame.setSize(600, 375);\n jfFrame.setResizable(false);\n \n //settings for frame\n\n ActionListener clockUpdateOne = new ActionListener(){\n /**\n * actionPerformed: A method to handle Events from a Timer\n * @param ae an ActionEvent\n */\n public void actionPerformed(ActionEvent ae){\n Date date = new Date();\n //instantiate new Date object\n\n DateFormat format = new SimpleDateFormat(\"E, MMM d y HH:mm:ss\");\n //set format of clock\n\n DateFormat otherFormat = new SimpleDateFormat(\"E, MMM, d y KK:mm:ss a\");\n //12 hour time\n\n String dateTime = format.format(date);\n //formatting date object using format template\n\n String otherDateTime = otherFormat.format(date);\n\n clockLabelOne.setText(dateTime);\n //setting clock text to formatted String\n }\n };\n clockTimerOne = new javax.swing.Timer(0, clockUpdateOne);\n clockTimerOne.start();\n //timer to update clockLabel\n ActionListener clockUpdateTwo = new ActionListener(){\n /**\n * actionPerformed: A method to handle Events from a Timer\n * @param ae an ActionEvent\n */\n public void actionPerformed(ActionEvent ae){\n Date date = new Date();\n //instantiate new Date object\n\n DateFormat otherFormat = new SimpleDateFormat(\"E, MMM, d y K:mm:ss a\");\n //12 hour time\n\n String otherDateTime = otherFormat.format(date);\n\n clockLabelTwo.setText(otherDateTime);\n //setting clock text to formatted String\n }\n };\n clockTimerTwo = new javax.swing.Timer(0, clockUpdateTwo);\n clockTimerTwo.start();\n\n }", "private void createListeners() {\n btGeneralSave.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n saveGeneralData();\n }\n });\n }", "private void initComponents() {\n\t\tlabel1 = new JLabel();\n\t\tlabel2 = new JLabel();\n\t\tnpcField = new JTextField();\n\t\tlabel3 = new JLabel();\n\t\tfoodField = new JTextField();\n\t\tlabel4 = new JLabel();\n\t\tlabel5 = new JLabel();\n\t\titemBox = new JCheckBox();\n\t\titemField = new JTextField();\n\t\tlabel6 = new JLabel();\n\t\tstartButton = new JButton();\n\n\t\t// ======== this ========\n\t\tContainer contentPane = getContentPane();\n\n\t\t// ---- label1 ----\n\t\tlabel1.setText(\"Intelligent Fighter\");\n\t\tlabel1.setFont(label1.getFont().deriveFont(\n\t\t\t\tlabel1.getFont().getStyle() | Font.BOLD,\n\t\t\t\tlabel1.getFont().getSize() + 20f));\n\t\tlabel1.setForeground(Color.red);\n\n\t\t// ---- label2 ----\n\t\tlabel2.setText(\"NPC to attack:\");\n\t\tlabel2.setFont(label2.getFont().deriveFont(\n\t\t\t\tlabel2.getFont().getStyle() | Font.BOLD,\n\t\t\t\tlabel2.getFont().getSize() + 2f));\n\n\t\t// ---- label3 ----\n\t\tlabel3.setText(\"Food ID:\");\n\t\tlabel3.setFont(label3.getFont().deriveFont(\n\t\t\t\tlabel3.getFont().getStyle() | Font.BOLD,\n\t\t\t\tlabel3.getFont().getSize() + 2f));\n\n\t\t// ---- label4 ----\n\t\tlabel4.setText(\"(Debug>>Inventory)\");\n\n\t\t// ---- label5 ----\n\t\tlabel5.setText(\"ie. Goblin\");\n\n\t\t// ---- itemBox ----\n\t\titemBox.setText(\"Loot Items\");\n\t\titemBox.setFont(itemBox.getFont().deriveFont(\n\t\t\t\titemBox.getFont().getStyle() | Font.BOLD,\n\t\t\t\titemBox.getFont().getSize() + 2f));\n\t\titemBox.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\titemBoxActionPerformed(e);\n\t\t\t}\n\t\t});\n\n\t\t// ---- itemField ----\n\t\titemField.setEnabled(false);\n\n\t\t// ---- label6 ----\n\t\tlabel6.setText(\"(sperate by commas ie. 324,4325,7632)\");\n\n\t\t// ---- startButton ----\n\t\tstartButton.setText(\"Start\");\n\t\tstartButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstartButtonActionPerformed(e);\n\t\t\t}\n\t\t});\n\n\t\tGroupLayout contentPaneLayout = new GroupLayout(contentPane);\n\t\tcontentPane.setLayout(contentPaneLayout);\n\t\tcontentPaneLayout\n\t\t\t\t.setHorizontalGroup(contentPaneLayout\n\t\t\t\t\t\t.createParallelGroup()\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tcontentPaneLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tcontentPaneLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontentPaneLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t308,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontentPaneLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontentPaneLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.Alignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfalse)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel3,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.Alignment.LEADING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t103,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel2,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.Alignment.LEADING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t103,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titemBox,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t103,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLayoutStyle.ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontentPaneLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontentPaneLayout\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.createSequentialGroup()\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.addGroup(\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\tcontentPaneLayout\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.createParallelGroup(\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\t\tGroupLayout.Alignment.LEADING,\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\t\tfalse)\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.addComponent(\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\t\tnpcField,\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\t\tGroupLayout.DEFAULT_SIZE,\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\t\t104,\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\t\tShort.MAX_VALUE)\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.addComponent(\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\t\tfoodField,\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\t\tGroupLayout.DEFAULT_SIZE,\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\t\t104,\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\t\tShort.MAX_VALUE))\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.addPreferredGap(\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\tLayoutStyle.ComponentPlacement.RELATED)\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.addGroup(\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\tcontentPaneLayout\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.createParallelGroup()\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.addComponent(\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\t\tlabel4,\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\t\tGroupLayout.PREFERRED_SIZE,\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\t\t127,\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\t\tGroupLayout.PREFERRED_SIZE)\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.addComponent(\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\t\tlabel5,\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\t\tGroupLayout.PREFERRED_SIZE,\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\t\t49,\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\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontentPaneLayout\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.createParallelGroup(\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\tGroupLayout.Alignment.TRAILING,\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\tfalse)\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.addComponent(\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\tlabel6,\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\tGroupLayout.Alignment.LEADING,\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\tGroupLayout.DEFAULT_SIZE,\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\t161,\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\tShort.MAX_VALUE)\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.addComponent(\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\titemField,\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\tGroupLayout.Alignment.LEADING,\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\tGroupLayout.DEFAULT_SIZE,\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\t161,\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\tShort.MAX_VALUE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontentPaneLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(141,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t141,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t141)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstartButton)))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(30, Short.MAX_VALUE)));\n\t\tcontentPaneLayout\n\t\t\t\t.setVerticalGroup(contentPaneLayout\n\t\t\t\t\t\t.createParallelGroup()\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tcontentPaneLayout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(label1)\n\t\t\t\t\t\t\t\t\t\t.addGap(25, 25, 25)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tcontentPaneLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnpcField,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label5))\n\t\t\t\t\t\t\t\t\t\t.addGap(32, 32, 32)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tcontentPaneLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfoodField,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label4))\n\t\t\t\t\t\t\t\t\t\t.addGap(26, 26, 26)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tcontentPaneLayout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(itemBox)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\titemField,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tLayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label6)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tLayoutStyle.ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t45, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(startButton)\n\t\t\t\t\t\t\t\t\t\t.addGap(41, 41, 41)));\n\t\tpack();\n\t\tsetLocationRelativeTo(getOwner());\n\t\t// JFormDesigner - End of component initialization\n\t\t// //GEN-END:initComponents\n\t}", "private void initComponents() {//GEN-BEGIN:initComponents\r\n java.awt.GridBagConstraints gridBagConstraints;\r\n\r\n actionPanel = new javax.swing.JPanel();\r\n gmlBoxPanel = new javax.swing.JPanel();\r\n gmlBoxBtn = new javax.swing.JButton();\r\n buttonPanel = new javax.swing.JPanel();\r\n okBtn = new javax.swing.JButton();\r\n cancelBtn = new javax.swing.JButton();\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n\r\n setPreferredSize(new java.awt.Dimension(400, 172));\r\n actionPanel.setLayout(new java.awt.GridBagLayout());\r\n\r\n actionPanel.setBorder(new javax.swing.border.TitledBorder(\"\"));\r\n gmlBoxPanel.setLayout(new java.awt.GridBagLayout());\r\n\r\n gmlBoxPanel.setBorder(new javax.swing.border.TitledBorder(\"GML Box\"));\r\n gmlBoxBtn.setText(\"Bounding Box\");\r\n gmlBoxBtn.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n gmlBoxBtnActionPerformed(evt);\r\n }\r\n });\r\n\r\n gridBagConstraints = new java.awt.GridBagConstraints();\r\n gridBagConstraints.insets = new java.awt.Insets(5, 100, 5, 100);\r\n gmlBoxPanel.add(gmlBoxBtn, gridBagConstraints);\r\n\r\n gridBagConstraints = new java.awt.GridBagConstraints();\r\n gridBagConstraints.gridx = 0;\r\n gridBagConstraints.gridy = 1;\r\n gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;\r\n gridBagConstraints.weightx = 1.0;\r\n gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5);\r\n actionPanel.add(gmlBoxPanel, gridBagConstraints);\r\n\r\n add(actionPanel, java.awt.BorderLayout.CENTER);\r\n\r\n okBtn.setText(\"Aceptar\");\r\n okBtn.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n okBtnActionPerformed(evt);\r\n }\r\n });\r\n\r\n buttonPanel.add(okBtn);\r\n\r\n cancelBtn.setText(\"Cancelar\");\r\n cancelBtn.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n cancelBtnActionPerformed(evt);\r\n }\r\n });\r\n\r\n buttonPanel.add(cancelBtn);\r\n\r\n add(buttonPanel, java.awt.BorderLayout.SOUTH);\r\n\r\n }", "@SuppressWarnings(\"unccked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n display = new javax.swing.JLabel();\n dragonText = new javax.swing.JLabel();\n dragonBotton = new javax.swing.JButton();\n baronText = new javax.swing.JLabel();\n BaronBotton = new javax.swing.JButton();\n jToolBar1 = new javax.swing.JToolBar();\n start = new javax.swing.JButton();\n masBotton = new javax.swing.JButton();\n menosBotton = new javax.swing.JButton();\n stop = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"Bundle\"); // NOI18N\n setTitle(bundle.getString(\"Cronometro.title\")); // NOI18N\n setAlwaysOnTop(true);\n setBackground(new java.awt.Color(51, 255, 0));\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setExtendedState(1);\n setFocusTraversalPolicyProvider(true);\n setFocusable(false);\n setLocationByPlatform(true);\n setModalExclusionType(java.awt.Dialog.ModalExclusionType.TOOLKIT_EXCLUDE);\n setUndecorated(true);\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n formMousePressed(evt);\n }\n });\n addWindowFocusListener(new java.awt.event.WindowFocusListener() {\n public void windowGainedFocus(java.awt.event.WindowEvent evt) {\n }\n public void windowLostFocus(java.awt.event.WindowEvent evt) {\n formWindowLostFocus(evt);\n }\n });\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowDeactivated(java.awt.event.WindowEvent evt) {\n formWindowDeactivated(evt);\n }\n public void windowIconified(java.awt.event.WindowEvent evt) {\n formWindowIconified(evt);\n }\n });\n addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n formMouseDragged(evt);\n }\n });\n addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n formFocusLost(evt);\n }\n });\n addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n formKeyPressed(evt);\n }\n });\n\n display.setFont(new java.awt.Font(\"Times New Roman\", 0, 20)); // NOI18N\n display.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n display.setText(bundle.getString(\"Cronometro.display.text\")); // NOI18N\n\n dragonText.setFont(new java.awt.Font(\"Times New Roman\", 0, 20)); // NOI18N\n dragonText.setForeground(new java.awt.Color(204, 0, 0));\n dragonText.setText(bundle.getString(\"Cronometro.dragonText.text\")); // NOI18N\n\n dragonBotton.setFont(new java.awt.Font(\"Times New Roman\", 0, 15)); // NOI18N\n dragonBotton.setMnemonic('x');\n dragonBotton.setText(bundle.getString(\"Cronometro.dragonBotton.text\")); // NOI18N\n dragonBotton.setFocusable(false);\n dragonBotton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n dragonBotton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n dragonBotton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n dragonBottonActionPerformed(evt);\n }\n });\n\n baronText.setFont(new java.awt.Font(\"Times New Roman\", 0, 20)); // NOI18N\n baronText.setForeground(new java.awt.Color(102, 0, 102));\n baronText.setText(bundle.getString(\"Cronometro.baronText.text\")); // NOI18N\n baronText.setPreferredSize(new java.awt.Dimension(34, 90));\n baronText.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n baronTextFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n baronTextFocusLost(evt);\n }\n });\n\n BaronBotton.setFont(new java.awt.Font(\"Times New Roman\", 0, 15)); // NOI18N\n BaronBotton.setMnemonic('z');\n BaronBotton.setText(bundle.getString(\"Cronometro.BaronBotton.text\")); // NOI18N\n BaronBotton.setDoubleBuffered(true);\n BaronBotton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n BaronBotton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n BaronBotton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BaronBottonActionPerformed(evt);\n }\n });\n BaronBotton.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n BaronBottonFocusGained(evt);\n }\n });\n\n jToolBar1.setFloatable(false);\n jToolBar1.setBorderPainted(false);\n\n start.setFont(new java.awt.Font(\"Times New Roman\", 0, 11)); // NOI18N\n start.setText(bundle.getString(\"Cronometro.start.text\")); // NOI18N\n start.setFocusable(false);\n start.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n start.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n start.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n startActionPerformed(evt);\n }\n });\n jToolBar1.add(start);\n\n masBotton.setFont(new java.awt.Font(\"Tahoma\", 0, 9)); // NOI18N\n masBotton.setText(bundle.getString(\"Cronometro.masBotton.text\")); // NOI18N\n masBotton.setFocusable(false);\n masBotton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n masBotton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n masBotton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n masBottonActionPerformed(evt);\n }\n });\n jToolBar1.add(masBotton);\n\n menosBotton.setFont(new java.awt.Font(\"Tahoma\", 0, 9)); // NOI18N\n menosBotton.setText(bundle.getString(\"Cronometro.menosBotton.text\")); // NOI18N\n menosBotton.setFocusable(false);\n menosBotton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n menosBotton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n menosBotton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n menosBottonActionPerformed(evt);\n }\n });\n jToolBar1.add(menosBotton);\n\n stop.setText(bundle.getString(\"Cronometro.stop.text\")); // NOI18N\n stop.setEnabled(false);\n stop.setFocusable(false);\n stop.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n stop.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n stop.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n stopActionPerformed(evt);\n }\n });\n jToolBar1.add(stop);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(display, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(BaronBotton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(baronText, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(dragonBotton, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(dragonText, javax.swing.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(display)\n .addComponent(baronText, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(BaronBotton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(dragonText)\n .addComponent(dragonBotton, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n getAccessibleContext().setAccessibleDescription(bundle.getString(\"Cronometro.AccessibleContext.accessibleDescription\")); // NOI18N\n\n pack();\n }", "private void createComponents() {\n \n Dimension thisSize = this.getSize();\n \n this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));\n \n ArrayList<Integer> numbers = new ArrayList<>();\n for (int i = 0; i < recordCount; ++i) {\n numbers.add(i);\n }\n \n recordList = new JList(numbers.toArray());\n recordList.addListSelectionListener(selectionListener);\n JScrollPane listPane = new JScrollPane(recordList);\n listPane.setPreferredSize(new Dimension(thisSize.width / 3, thisSize.height));\n \n select(0, 0);\n \n this.add(listPane);\n \n recordForm = new RecordForm(fields, thisSize);\n entryForm = new JScrollPane(recordForm);\n \n this.add(entryForm);\n \n selectionAction = WAITING_ON_SELECTION;\n \n }", "private void initializeComponent() throws Exception {\n this.butCancel = new System.Windows.Forms.Button();\n this.gridMain = new OpenDental.UI.ODGrid();\n this.butSave = new System.Windows.Forms.Button();\n this.butDelete = new System.Windows.Forms.Button();\n this.butAddComment = new System.Windows.Forms.Button();\n this.label57 = new System.Windows.Forms.Label();\n this.SuspendLayout();\n //\n // butCancel\n //\n this.butCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butCancel.Location = new System.Drawing.Point(627, 357);\n this.butCancel.Name = \"butCancel\";\n this.butCancel.Size = new System.Drawing.Size(75, 23);\n this.butCancel.TabIndex = 9;\n this.butCancel.Text = \"Cancel\";\n this.butCancel.UseVisualStyleBackColor = true;\n this.butCancel.Click += new System.EventHandler(this.butCancel_Click);\n //\n // gridMain\n //\n this.gridMain.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));\n this.gridMain.setHScrollVisible(false);\n this.gridMain.Location = new System.Drawing.Point(12, 12);\n this.gridMain.Name = \"gridMain\";\n this.gridMain.setScrollValue(0);\n this.gridMain.Size = new System.Drawing.Size(609, 339);\n this.gridMain.TabIndex = 5;\n this.gridMain.setTitle(\"Lab Note Comments\");\n this.gridMain.setTranslationName(null);\n //\n // butSave\n //\n this.butSave.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butSave.Location = new System.Drawing.Point(546, 357);\n this.butSave.Name = \"butSave\";\n this.butSave.Size = new System.Drawing.Size(75, 23);\n this.butSave.TabIndex = 10;\n this.butSave.Text = \"Save\";\n this.butSave.UseVisualStyleBackColor = true;\n this.butSave.Click += new System.EventHandler(this.butSave_Click);\n //\n // butDelete\n //\n this.butDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butDelete.Location = new System.Drawing.Point(12, 357);\n this.butDelete.Name = \"butDelete\";\n this.butDelete.Size = new System.Drawing.Size(75, 23);\n this.butDelete.TabIndex = 11;\n this.butDelete.Text = \"Delete\";\n this.butDelete.UseVisualStyleBackColor = true;\n //\n // butAddComment\n //\n this.butAddComment.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\n this.butAddComment.Location = new System.Drawing.Point(627, 12);\n this.butAddComment.Name = \"butAddComment\";\n this.butAddComment.Size = new System.Drawing.Size(75, 23);\n this.butAddComment.TabIndex = 12;\n this.butAddComment.Text = \"Add\";\n this.butAddComment.UseVisualStyleBackColor = true;\n this.butAddComment.Click += new System.EventHandler(this.butAddComment_Click);\n //\n // label57\n //\n this.label57.Location = new System.Drawing.Point(93, 360);\n this.label57.Name = \"label57\";\n this.label57.Size = new System.Drawing.Size(137, 17);\n this.label57.TabIndex = 259;\n this.label57.Text = \"Deletes the entire lab note\";\n this.label57.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;\n //\n // FormEhrLabNoteEdit\n //\n this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\n this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\n this.ClientSize = new System.Drawing.Size(714, 392);\n this.Controls.Add(this.label57);\n this.Controls.Add(this.butAddComment);\n this.Controls.Add(this.butDelete);\n this.Controls.Add(this.butSave);\n this.Controls.Add(this.butCancel);\n this.Controls.Add(this.gridMain);\n this.Name = \"FormEhrLabNoteEdit\";\n this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\n this.Text = \"Lab Note\";\n this.Load += new System.EventHandler(this.FormEhrLabOrders_Load);\n this.ResumeLayout(false);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jToolBar4 = new javax.swing.JToolBar();\n jButton1 = new javax.swing.JButton();\n jSeparator1 = new javax.swing.JToolBar.Separator();\n jButton2 = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JToolBar.Separator();\n jButton3 = new javax.swing.JButton();\n jSeparator3 = new javax.swing.JToolBar.Separator();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jDesktopPane4 = new javax.swing.JDesktopPane();\n jMenuBar2 = new javax.swing.JMenuBar();\n jMenu4 = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n jMenuItem3 = new javax.swing.JMenuItem();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenu5 = new javax.swing.JMenu();\n jMenu6 = new javax.swing.JMenu();\n jMenu7 = new javax.swing.JMenu();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"SATYAM\");\n setIconImage(img);\n\n jLabel1.setText(\"jLabel1\");\n getContentPane().add(jLabel1, java.awt.BorderLayout.PAGE_END);\n\n jToolBar4.setRollover(true);\n\n jButton1.setText(\"Que1\");\n jButton1.setFocusable(false);\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jToolBar4.add(jButton1);\n jToolBar4.add(jSeparator1);\n\n jButton2.setText(\"Que2\");\n jButton2.setFocusable(false);\n jButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n jToolBar4.add(jButton2);\n jToolBar4.add(jSeparator2);\n\n jButton3.setText(\"Que3\");\n jButton3.setFocusable(false);\n jButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jToolBar4.add(jButton3);\n jToolBar4.add(jSeparator3);\n\n jButton4.setText(\"Motiff\");\n jButton4.setFocusable(false);\n jButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n jToolBar4.add(jButton4);\n\n jButton5.setText(\"Metal\");\n jButton5.setFocusable(false);\n jButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton5ActionPerformed(evt);\n }\n });\n jToolBar4.add(jButton5);\n\n jButton6.setText(\"Nimbus\");\n jButton6.setFocusable(false);\n jButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton6ActionPerformed(evt);\n }\n });\n jToolBar4.add(jButton6);\n\n getContentPane().add(jToolBar4, java.awt.BorderLayout.PAGE_START);\n getContentPane().add(jDesktopPane4, java.awt.BorderLayout.CENTER);\n\n jMenu4.setText(\"File\");\n\n jMenuItem2.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_1, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem2.setText(\"Que1\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu4.add(jMenuItem2);\n\n jMenuItem3.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_2, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem3.setText(\"Que2\");\n jMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n jMenu4.add(jMenuItem3);\n\n jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_3, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem1.setText(\"Que3\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu4.add(jMenuItem1);\n\n jMenuBar2.add(jMenu4);\n\n jMenu5.setText(\"Edit\");\n jMenuBar2.add(jMenu5);\n\n jMenu6.setText(\"jMenu6\");\n jMenuBar2.add(jMenu6);\n\n jMenu7.setText(\"jMenu7\");\n jMenuBar2.add(jMenu7);\n\n setJMenuBar(jMenuBar2);\n\n pack();\n }", "private void addComponents()\n\t{\n\t\theaderPanel = new JPanel();\n\t\tfooterPanel = new JPanel();\n\t\tfunctionPanel = new JPanel();\n\t\ttextPanel = new JPanel();\n\t\t\t\t\t\t\n\t\teToPower = new JButton(\"\\u212F\\u207F\");\n\t\ttwoPower = new JButton(\"2\\u207F\");\n\t\tln = new JButton(\"ln\");\n\t\txCube = new JButton(\"x\\u00B3\");\n\t\txSquare = new JButton(\"x\\u00B2\");\n\t\tdel = new JButton(\"\\u2190\");\n\t\tcubeRoot = new JButton(\"\\u221B\");\n\t\tC = new JButton(\"c\");\n\t\tnegate = new JButton(\"\\u00B1\");\n\t\tsquareRoot = new JButton(\"\\u221A\");\n\t\tnine = new JButton(\"9\");\n\t\teight = new JButton(\"8\");\n\t\tseven = new JButton(\"7\");\n\t\tsix = new JButton(\"6\");\n\t\tfive = new JButton(\"5\");\n\t\tfour = new JButton(\"4\");\n\t\tthree = new JButton(\"3\");\n\t\ttwo = new JButton(\"2\");\n\t\tone = new JButton(\"1\");\n\t\tzero = new JButton(\"0\");\n\t\tdivide = new JButton(\"/\");\n\t\tmultiply = new JButton(\"*\");\n\t\tpercent = new JButton(\"%\");\n\t\treciprocal = new JButton(\"1/x\");\n\t\tsubtract = new JButton(\"-\");\n\t\tadd = new JButton(\"+\");\n\t\tdecimalPoint = new JButton(\".\");\n\t\tequals = new JButton(\"=\");\n\t\tPI = new JButton(\"\\u03C0\");\n\t\te = new JButton(\"\\u212F\");\n\t\t\n\t\tdefaultButtonBackground = C.getBackground ( );\n\t\tdefaultButtonForeground = C.getForeground ( );\n\t\t\n\t\tbuttonFont = new Font(\"SansSerif\", Font.PLAIN, BUTTONFONTSIZE);\n\t\tentryFont = new Font(\"SansSerif\", Font.PLAIN, ENTRYFONTSIZE);\n\t\titalicButtonFont = new Font (\"SanSerif\", Font.ITALIC, BUTTONFONTSIZE);\n\t\tentry = new JTextField(\"0\", 1);\n\t\t\t\t\n\t\tadd.setFont(buttonFont);\n\t\tsubtract.setFont(buttonFont);\n\t\tequals.setFont(buttonFont);\n\t\tdecimalPoint.setFont(buttonFont);\n\t\tmultiply.setFont(buttonFont);\n\t\tdivide.setFont(buttonFont);\n\t\tnegate.setFont(buttonFont);\n\t\tpercent.setFont(buttonFont);\n\t\tdel.setFont(buttonFont);\n\t\tsquareRoot.setFont(buttonFont);\n\t\teToPower.setFont(buttonFont);\n\t\ttwoPower.setFont(buttonFont);\n\t\tln.setFont(buttonFont);\n\t\txCube.setFont(buttonFont);\n\t\txSquare.setFont(buttonFont);\n\t\tC.setFont(buttonFont);\n\t\tcubeRoot.setFont(buttonFont);\n\t\treciprocal.setFont(buttonFont);\n\t\tnine.setFont(buttonFont);\n\t\teight.setFont(buttonFont);\n\t\tseven.setFont(buttonFont);\n\t\tsix.setFont(buttonFont);\n\t\tfive.setFont(buttonFont);\n\t\tfour.setFont(buttonFont);\n\t\tthree.setFont(buttonFont);\n\t\ttwo.setFont(buttonFont);\n\t\tone.setFont(buttonFont);\n\t\tzero.setFont(buttonFont);\n\t\tPI.setFont(buttonFont);\n\t\te.setFont(italicButtonFont);\n\t\t\n\t\t\n\t\tentry.setFont(entryFont);\n\t\tentry.setHorizontalAlignment (JTextField.RIGHT);\n\t\tentry.grabFocus ( );\n\t\tentry.setHighlighter(null);\n\t\tentry.selectAll ( );\n\t\t\n\t\tincognito = false;\n\t}", "private void addListeners() {\n\t\t\n\t\tresetButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \treset();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\ttoggleGroup.selectedToggleProperty().addListener(\n\t\t\t (ObservableValue<? extends Toggle> ov, Toggle old_toggle, \n\t\t\t Toggle new_toggle) -> {\n\t\t\t \t\n\t\t\t \tif(rbCourse.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, CourseSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbAuthor.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, AuthorSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbNone.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.setDisable(true);\n\t\t \t\t\n\t\t \t}\n\t\t\t \t\n\t\t\t});\n\t\t\n\t\tapplyButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tfilter();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\tsearchButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tResult.instance().search(quizIDField.getText());\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t}", "private void initComponents() {\n\n panel1 = new java.awt.Panel();\n label1 = new java.awt.Label();\n label2 = new java.awt.Label();\n TFNombre = new java.awt.TextField();\n ChoicePro = new java.awt.Choice();\n checkboxEsp = new java.awt.Checkbox();\n checkboxBas = new java.awt.Checkbox();\n BOk = new java.awt.Button();\n listaEventos = new java.awt.List();\n jSeparator1 = new javax.swing.JSeparator();\n TFHeroe = new java.awt.TextField();\n TFAtaque = new java.awt.TextField();\n TFVida = new java.awt.TextField();\n label3 = new java.awt.Label();\n label4 = new java.awt.Label();\n label5 = new java.awt.Label();\n label6 = new java.awt.Label();\n TFNivel = new java.awt.TextField();\n label7 = new java.awt.Label();\n TFExp = new java.awt.TextField();\n BLvl = new java.awt.Button();\n BDañar = new java.awt.Button();\n BEliminar = new java.awt.Button();\n TFProfecion = new java.awt.TextField();\n jLabel1 = new javax.swing.JLabel();\n LabelExp = new javax.swing.JLabel();\n menuBar1 = new java.awt.MenuBar();\n menu1 = new java.awt.Menu();\n menu2 = new java.awt.Menu();\n\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n exitForm(evt);\n }\n });\n\n panel1.setBackground(new java.awt.Color(0, 0, 0));\n\n label1.setFont(new java.awt.Font(\"Felix Titling\", 0, 12)); // NOI18N\n label1.setForeground(new java.awt.Color(255, 255, 255));\n label1.setText(\"Nombre:\");\n\n label2.setForeground(new java.awt.Color(255, 255, 255));\n label2.setText(\"Profesion:\");\n\n checkboxEsp.setForeground(new java.awt.Color(255, 255, 255));\n checkboxEsp.setLabel(\"Espada\");\n\n checkboxBas.setForeground(new java.awt.Color(255, 255, 255));\n checkboxBas.setLabel(\"Baston\");\n\n BOk.setLabel(\"OK\");\n BOk.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BOkActionPerformed(evt);\n }\n });\n\n TFHeroe.setEditable(false);\n\n TFAtaque.setEditable(false);\n\n TFVida.setEditable(false);\n\n label3.setFont(new java.awt.Font(\"Felix Titling\", 1, 12)); // NOI18N\n label3.setForeground(new java.awt.Color(255, 255, 255));\n label3.setText(\"HEROE:\");\n\n label4.setForeground(new java.awt.Color(255, 255, 255));\n label4.setText(\"Ataque:\");\n\n label5.setForeground(new java.awt.Color(255, 0, 0));\n label5.setText(\"Vida:\");\n\n label6.setForeground(new java.awt.Color(255, 255, 255));\n label6.setText(\"Nivel:\");\n\n TFNivel.setEditable(false);\n\n label7.setForeground(new java.awt.Color(255, 255, 255));\n label7.setText(\"Experiencia:\");\n\n TFExp.setEditable(false);\n TFExp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n TFExpActionPerformed(evt);\n }\n });\n\n BLvl.setLabel(\"Lvl\");\n BLvl.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BLvlActionPerformed(evt);\n }\n });\n\n BDañar.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n BDañar.setLabel(\"Dañar\");\n BDañar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BDañarActionPerformed(evt);\n }\n });\n\n BEliminar.setLabel(\"Nuevo Heroe\");\n BEliminar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BEliminarActionPerformed(evt);\n }\n });\n\n TFProfecion.setEditable(false);\n\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setText(\"Profesion:\");\n\n LabelExp.setForeground(new java.awt.Color(255, 255, 255));\n LabelExp.setText(\"100\");\n\n javax.swing.GroupLayout panel1Layout = new javax.swing.GroupLayout(panel1);\n panel1.setLayout(panel1Layout);\n panel1Layout.setHorizontalGroup(\n panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panel1Layout.createSequentialGroup()\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(listaEventos, javax.swing.GroupLayout.PREFERRED_SIZE, 360, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panel1Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panel1Layout.createSequentialGroup()\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(22, 22, 22)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(TFNombre, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(ChoicePro, javax.swing.GroupLayout.DEFAULT_SIZE, 146, Short.MAX_VALUE))\n .addGap(34, 34, 34)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(checkboxBas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(checkboxEsp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(BOk, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(panel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 368, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panel1Layout.createSequentialGroup()\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(BEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(panel1Layout.createSequentialGroup()\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(TFAtaque, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(label4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(BLvl, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TFHeroe, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(panel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TFVida, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(BDañar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(label5, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(35, 35, 35)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(label7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(TFProfecion, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, panel1Layout.createSequentialGroup()\n .addComponent(label6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TFNivel, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel1)\n .addComponent(TFExp, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(LabelExp))))))\n .addContainerGap(21, Short.MAX_VALUE))\n );\n panel1Layout.setVerticalGroup(\n panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TFNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(checkboxEsp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(label2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(ChoicePro, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(checkboxBas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(BOk, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panel1Layout.createSequentialGroup()\n .addGap(150, 150, 150)\n .addComponent(LabelExp)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(label3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TFHeroe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(label6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(TFNivel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(label4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(label5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(TFAtaque, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(TFVida, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(TFProfecion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(20, 20, 20)\n .addGroup(panel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(label7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(BLvl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(BDañar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(TFExp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))\n .addComponent(BEliminar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(listaEventos, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(34, 34, 34))\n );\n\n menu1.setLabel(\"File\");\n menuBar1.add(menu1);\n\n menu2.setLabel(\"Edit\");\n menuBar1.add(menu2);\n\n setMenuBar(menuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(panel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void attachListeners(){\n\t\t//Add window listener\n\t\tthis.removeWindowListener(this);\n\t\tthis.addWindowListener(this); \n\n\t\tbuttonCopyToClipboard.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tOS.copyStringToClipboard( getMessagePlainText() );\n\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\tshowErrorMessage(e.getMessage());\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsetMessage( translations.getMessageHasBeenCopied() );\n\t\t\t}\n\t\t});\n\t\t\n\t\tbuttonChooseDestinationDirectory.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tchooseDirectoryAction();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbuttonChangeFileNames.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tchangeFileNamesAction(false);//false => real file change\n\t\t\t}\n\t\t});\n\t\t\n\t\tbuttonSimulateChangeFileNames.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tchangeFileNamesAction(true);//true => only simulation of change with log\n\t\t\t\tif(DebuggingConfig.debuggingOn){\n\t\t\t\t\tshowTextAreaHTMLInConsole();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tbuttonExample.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetupInitialValues();\n\t\t\t\t//if it's not debugging mode\n\t\t\t\tif(!DebuggingConfig.debuggingOn){\n\t\t\t\t\tshowPlainMessage(translations.getExampleSettingsPopup());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tbuttonClear.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttextArea.setText(textAreaInitialHTML);\n\t\t\t}\n\t\t});\n\t\t\n\t\tbuttonResetToDefaults.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tif( deleteSavedObject() ) {\n\t\t\t\t\tsetMessage( translations.getPreviousSettingsRemovedFromFile().replace(replace, getObjectSavePath()) );\n\t\t\t\t\tsetMessage( translations.getPreviousSettingsRemoved() );\n\t\t\t\t\t//we have to delete listener, because it's gonna save settings after windowClosing, we don't want that\n\t\t\t\t\tFileOperationsFrame fileOperationsFrame = (FileOperationsFrame) getInstance();\n\t\t\t\t\tfileOperationsFrame.removeWindowListener(fileOperationsFrame);\n\t\t\t\t\tresetFields();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tshowWarningMessage( translations.getFileHasNotBeenRemoved().replace(replace, getObjectSavePath()) + BR + translations.getPreviousSettingsHasNotBeenRemoved() );\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tcomboBox.addActionListener(new ActionListener() {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJComboBox<String> obj = (JComboBox<String>) arg0.getSource();\n\t\t\t\tselectedLanguage = AvailableLanguages.getByName( (String)obj.getSelectedItem() ) ;\n\t\t\t\tselectLanguage(selectedLanguage);\n\t\t\t\tsetComponentTexts();\n\t\t\t};\n\t\t});\t\n\t\t\n\t\t//for debug \n\t\tif(DebuggingConfig.debuggingOn){\n\t\t\tbuttonExample.doClick();\n\t\t}\n\t\t\n\t\t\n\t}", "public void initComponents() {\n\t\taddButton = new JButton(addFlightText);\n\t\tdelayButton = new JButton(delayFlightText);\n\t\tquitButton = new JButton(quitText);\n\t\t// TODO: Add button instanciations for other operations\n\n\t\t// Initialize display area\n\t\tdisplayArea = new JTextArea(LINE_COUNT, LINE_SIZE);\n\t\tdisplayArea.setEditable(false);\n\t\tscrollPane = new JScrollPane(displayArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t}", "@Override //se repita\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n }", "private void createMainEvents() {\n\t\taddWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\n\t\t\t\tjdbc.closeSQLConnection();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtn_settings.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t}\n\t\t});\n\n\t}", "public JMain() {\r\n this.initComponets();\r\n this.initializeObliqueLaunch();\r\n \r\n animationPanel.setBorder(BorderFactory.createTitledBorder(\"Gráfico do Lançamento\"));\r\n animationPanel.add(this.graphPanel, BorderLayout.CENTER);\r\n \r\n topPanel.setLayout(new BorderLayout());\r\n topPanel.add(animationPanel,BorderLayout.CENTER);\r\n \r\n speedField.addActionListener(this);\r\n speedPanel.setBorder(BorderFactory.createTitledBorder(\"Velocidade Inicial - m/s\"));\r\n speedPanel.add(speedField);\r\n\r\n angleSlider.text.addActionListener(this);\r\n anglePanel.setBorder(BorderFactory.createTitledBorder(\"Ângulo - º\"));\r\n anglePanel.add(angleSlider);\r\n \r\n gravityField.addActionListener(this);\r\n gravityPanel.setBorder(BorderFactory.createTitledBorder(\"Gravidade - m/s^2\"));\r\n gravityPanel.add(gravityField);\r\n \r\n spaceComboBox.addActionListener(this);\r\n spaceComboBox.setSelectedIndex(0);\r\n spaceBoxPanel.setBorder(BorderFactory.createTitledBorder(\"Aceleração Gravitacional\"));\r\n spaceBoxPanel.add(spaceComboBox);\r\n\r\n\t reachField.addActionListener(this);\r\n \treachPanel.setBorder(BorderFactory.createTitledBorder(\"Alcance - m\"));\r\n \treachPanel.add(reachField);\r\n\t \r\n \tmHeightField.addActionListener(this);\r\n \tmHeightPanel.setBorder(BorderFactory.createTitledBorder(\"Altura Máxima - m\"));\r\n \tmHeightPanel.add(mHeightField);\r\n\r\n\t informationPanel.setLayout(new BoxLayout(informationPanel,BoxLayout.X_AXIS));\r\n informationPanel.setBorder(BorderFactory.createTitledBorder(\"Informações de Entrada\"));\r\n informationPanel.add(speedPanel);\r\n informationPanel.add(Box.createRigidArea(new Dimension(5,0)));\r\n informationPanel.add(anglePanel);\r\n informationPanel.add(Box.createRigidArea(new Dimension(5,0)));\r\n informationPanel.add(gravityPanel);\r\n informationPanel.add(Box.createRigidArea(new Dimension(5,0)));\r\n informationPanel.add(spaceBoxPanel);\r\n informationPanel.add(Box.createRigidArea(new Dimension(5,0)));\r\n informationPanel.add(reachPanel);\r\n informationPanel.add(Box.createRigidArea(new Dimension(5,0)));\r\n informationPanel.add(mHeightPanel);\r\n\t \r\n resultArea.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\r\n resultArea.setLineWrap(true);\r\n resultArea.setWrapStyleWord(true);\r\n resultArea.setEditable(false);\r\n\t \r\n situationDescriptionArea.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\r\n situationDescriptionArea.setLineWrap(true);\r\n situationDescriptionArea.setWrapStyleWord(true);\r\n situationDescriptionArea.setEditable(false);\r\n\t \r\n\t situationPanel.setBorder(BorderFactory.createTitledBorder(\"Situações Possíveis\"));\r\n\t situationPanel.setLayout(new BoxLayout(situationPanel,BoxLayout.Y_AXIS));\r\n\t situationsComboBox.addActionListener(this);\r\n situationsComboBox.setSelectedIndex(0);\r\n\t situationPanel.add(situationsComboBox);\r\n\t situationPanel.add(situationDescriptionScroll);\r\n \r\n resultPanel.setBorder(BorderFactory.createTitledBorder(\"Resultados\"));\r\n resultPanel.add(resultScroll);\r\n \r\n confResPanel.setLayout(new BoxLayout(confResPanel,BoxLayout.X_AXIS));\r\n confResPanel.add(situationPanel);\r\n confResPanel.add(resultPanel);\r\n \r\n bottomPanel.setLayout(new BoxLayout(bottomPanel,BoxLayout.Y_AXIS));\r\n bottomPanel.add(informationPanel);\r\n bottomPanel.add(confResPanel);\r\n \r\n basePanel.setLayout(new BorderLayout());\r\n basePanel.setBorder(BorderFactory.createEtchedBorder());\r\n basePanel.add(topPanel,BorderLayout.CENTER);\r\n basePanel.add(bottomPanel,BorderLayout.SOUTH);\r\n \r\n container = mainFrame.getContentPane();\r\n container.add(basePanel,BorderLayout.CENTER);\r\n \r\n mainFrame.pack();\r\n mainFrame.show();\r\n }", "private void initComponents() {\n\n\t\tjLabelWelcomeBanner = new javax.swing.JLabel();\n\t\tjButtonNetworkHostGame = new javax.swing.JButton();\n\t\tjButtonLocalGame = new javax.swing.JButton();\n\t\tjButtonNetworkClientGame = new javax.swing.JButton();\n\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\t\tsetTitle(\"Euchre\");\n\t\tsetName(\"frameWelcome\"); // NOI18N\n\t\tsetResizable(false);\n\n\t\tjLabelWelcomeBanner.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 24));\n\t\tjLabelWelcomeBanner.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n\t\tjLabelWelcomeBanner.setText(\"Welcome to Euchre, which type of game do you wish to play?\");\n\n\t\tjButtonNetworkHostGame.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 16));\n\t\tjButtonNetworkHostGame.setText(\"Start a Euchre Game\");\n\t\tjButtonNetworkHostGame.addMouseListener(new java.awt.event.MouseAdapter() {\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\n\t\t\t\tchoseNetwork(evt);\n\t\t\t\tnetworkHost(evt);\n\t\t\t}\n\t\t});\n\n\t\tjButtonLocalGame.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 16));\n\t\tjButtonLocalGame.setText(\"Play against the Computer\");\n\t\tjButtonLocalGame.addMouseListener(new java.awt.event.MouseAdapter() {\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\n\t\t\t\tchoseLocal(evt);\n\t\t\t}\n\t\t});\n\n\t\tjButtonNetworkClientGame.setFont(new java.awt.Font(\"DejaVu Sans\", 0, 16));\n\t\tjButtonNetworkClientGame.setText(\"Join a Euchre Game\");\n\t\tjButtonNetworkClientGame.addMouseListener(new java.awt.event.MouseAdapter() {\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\n\t\t\t\tnetworkClient(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n\t\tgetContentPane().setLayout(layout);\n\t\tlayout.setHorizontalGroup(\n\t\t\t\tlayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t\t\t\t\t.addComponent(jLabelWelcomeBanner, javax.swing.GroupLayout.DEFAULT_SIZE, 824, Short.MAX_VALUE))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(54, 54, 54)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jButtonLocalGame, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jButtonNetworkHostGame, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(jButtonNetworkClientGame, javax.swing.GroupLayout.PREFERRED_SIZE, 267, javax.swing.GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addContainerGap())\n\t\t);\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(jLabelWelcomeBanner, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(57, 57, 57)\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(jButtonLocalGame, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(jButtonNetworkHostGame, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(jButtonNetworkClientGame, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addContainerGap(47, Short.MAX_VALUE))\n\t\t);\n\n\t\tpack();\n\t}", "private void initComponents() {\r\n\t\tjPanel1 = new RiskMapPanelViewController(risk);\r\n\t\tjPanel3 = new RiskPlayerPanelViewController(risk);\r\n\t\tstatusLabel = new javax.swing.JLabel();\r\n\t\tAttackButton = new javax.swing.JButton();\r\n\t\tEndButton = new javax.swing.JButton();\r\n\t\tFortifyButton = new javax.swing.JButton();\r\n\t\tCardButton = new javax.swing.JButton();\r\n\r\n\t\tsetDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n\t\torg.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance()\r\n\t\t\t\t.getContext().getResourceMap(RiskController.class);\r\n\t\tsetTitle(resourceMap.getString(\"Form.title\")); // NOI18N\r\n\t\tsetBackground(resourceMap.getColor(\"Form.background\")); // NOI18N\r\n\t\tsetForeground(resourceMap.getColor(\"Form.foreground\")); // NOI18N\r\n\t\tsetName(\"Form\"); // NOI18N\r\n\r\n\t\tjPanel1.setBackground(resourceMap.getColor(\"jPanel1.background\")); // NOI18N\r\n\t\tjPanel1.setBorder(null);\r\n\t\tjPanel1.setName(\"jPanel1\"); // NOI18N\r\n\t\tjPanel1.setLayout(null);\r\n\r\n\t\tjPanel3.setBackground(resourceMap.getColor(\"jPanel3.background\")); // NOI18N\r\n\t\tjPanel3.setBorder(null);\r\n\t\tjPanel3.setForeground(resourceMap.getColor(\"jPanel3.foreground\")); // NOI18N\r\n\t\tjPanel3.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\r\n\t\tjPanel3.setName(\"jPanel3\"); // NOI18N\r\n\t\tjPanel3.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n\t\tstatusLabel.setFont(resourceMap.getFont(\"statusLabel.font\")); // NOI18N\r\n\t\tstatusLabel.setForeground(resourceMap.getColor(\"statusLabel.foreground\")); // NOI18N\r\n\t\tstatusLabel.setText(\"New Game\"); // NOI18N\r\n\t\tstatusLabel.setName(\"statusLabel\"); // NOI18N\r\n\t\tjPanel3.add(statusLabel, new org.netbeans.lib.awtextra.AbsoluteConstraints(132, 63, 427, -1));\r\n\r\n\t\tAttackButton.setFont(resourceMap.getFont(\"AttackButton.font\")); // NOI18N\r\n\t\tAttackButton.setText(\"Attack\"); // NOI18N\r\n\t\tAttackButton.setName(\"AttackButton\"); // NOI18N\r\n\t\tAttackButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\r\n\t\t\t\tAttackButtonMouseClicked(evt);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjPanel3.add(AttackButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(550, 10, 89, -1));\r\n\r\n\t\tEndButton.setVisible(true);\r\n\t\tEndButton.setFont(resourceMap.getFont(\"EndButton.font\")); // NOI18N\r\n\t\tEndButton.setText(\"End\"); // NOI18N\r\n\t\tEndButton.setName(\"EndButton\"); // NOI18N\r\n\t\tEndButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\r\n\t\t\t\tEndButtonMouseClicked(evt);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjPanel3.add(EndButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(770, 30, -1, 30));\r\n\r\n\t\tFortifyButton.setVisible(false);\r\n\t\tFortifyButton.setFont(resourceMap.getFont(\"FortifyButton.font\")); // NOI18N\r\n\t\tFortifyButton.setText(\"Fortify\"); // NOI18N\r\n\t\tFortifyButton.setName(\"Fortify\"); // NOI18N\r\n\t\tFortifyButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\r\n\t\t\t\tFortifyButtonMouseClicked(evt);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjPanel3.add(FortifyButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(661, 30, 90, 30));\r\n\r\n\t\tCardButton.setVisible(true);\r\n\t\tCardButton.setFont(resourceMap.getFont(\"CardButton.font\")); // NOI18N\r\n\t\tCardButton.setText(\"Card\"); // NOI18N\r\n\t\tCardButton.setName(\"CardButton\"); // NOI18N\r\n\t\tCardButton.addMouseListener(new java.awt.event.MouseAdapter() {\r\n\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent evt) {\r\n\t\t\t\tCardButtonMouseClicked(evt);\r\n\t\t\t}\r\n\t\t});\r\n\t\tjPanel3.add(CardButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(438, 25, 220, 25));\r\n\r\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n\t\tgetContentPane().setLayout(layout);\r\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n\t\t\t\t.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 988, Short.MAX_VALUE)\r\n\t\t\t\t.addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 988, Short.MAX_VALUE));\r\n\t\tlayout.setVerticalGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n\t\t\t\t.addGroup(layout.createSequentialGroup()\r\n\t\t\t\t\t\t.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 533,\r\n\t\t\t\t\t\t\t\tjavax.swing.GroupLayout.PREFERRED_SIZE)\r\n\t\t\t\t\t\t.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n\t\t\t\t\t\t.addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 131, Short.MAX_VALUE)));\r\n\r\n\t\tUtility.writeLog(\"Build the Game Panel\");\r\n\r\n\t\tpack();\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }", "@Override\n public void actionPerformed(ActionEvent e) {\n \n }" ]
[ "0.68913156", "0.6748783", "0.6704035", "0.6650054", "0.66370773", "0.6627929", "0.66172266", "0.6611375", "0.65953714", "0.65801173", "0.65707874", "0.6537361", "0.65177745", "0.6506195", "0.6503116", "0.65025026", "0.6499885", "0.6480573", "0.6478728", "0.6476586", "0.64758193", "0.64742345", "0.644054", "0.6430782", "0.6430115", "0.64191425", "0.64145535", "0.64044315", "0.6398397", "0.6388431", "0.6384463", "0.63732886", "0.63726866", "0.63721263", "0.63685584", "0.63685584", "0.6368508", "0.635145", "0.635047", "0.63404036", "0.633427", "0.6324731", "0.6321501", "0.63149315", "0.63094485", "0.6307941", "0.63066036", "0.630628", "0.63053554", "0.63022953", "0.62986207", "0.629636", "0.629509", "0.6284677", "0.62818015", "0.6273636", "0.6271886", "0.6270662", "0.6268995", "0.6268265", "0.626392", "0.62564725", "0.625486", "0.6246573", "0.6246326", "0.62431204", "0.6241077", "0.62396663", "0.6234523", "0.62308156", "0.6224083", "0.62232494", "0.6221588", "0.62198406", "0.62144107", "0.6213132", "0.6206542", "0.6198461", "0.6198221", "0.61969006", "0.6195651", "0.61929864", "0.6192018", "0.6183372", "0.6180058", "0.6179642", "0.6179401", "0.61761504", "0.6174002", "0.6172903", "0.6169962", "0.61659664", "0.61633986", "0.6161705", "0.6151818", "0.6147815", "0.61473566", "0.6143721", "0.6141155", "0.6141155", "0.6141155" ]
0.0
-1
Creates a new instance of CarEdition
public CarEdition() { ELContext context = FacesContext.getCurrentInstance().getELContext(); app = (CarsaleApplication) FacesContext.getCurrentInstance().getApplication().getELResolver().getValue(context, null, "carsaleApplication"); try { this.carId = Integer.valueOf(FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("carId")); this.car = searchCar(this.carId); } catch (Exception ex) { Logger.getLogger(CarDetail.class.getName()).log(Level.SEVERE, null, ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Car createExisting(Integer carID, String make, String model,\r\n Integer productionYear) {\r\n return new Car(carID, make, model, productionYear);\r\n }", "public static Car createNew(String make, String model, Integer productionYear) {\r\n return new Car(-1, make, model, productionYear);\r\n }", "public Car() {\r\n super();\r\n }", "public Car() {\n super();\n }", "public Car(){\n\t\t\n\t}", "public Car() {\n }", "public Car() {\n }", "private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}", "private Car(Integer carID, String make, String model, Integer productionYear) {\r\n setCarID(carID);\r\n setMake(make);\r\n setModel(model);\r\n setProductionYear(productionYear);\r\n }", "public Car createCar(String name, String modelName, String type) {\r\n return new Car(name, modelName, type);\r\n }", "public Car () {\n\n Make = \"\";\n Model = \"\";\n Year = 2017;\n Price = 0.00;\n }", "public Car(Integer id, String make, String logoFileName, String makeUrl, String model, Integer year, Integer price, Integer mileage, Integer cityMPG, Integer highwayMPG, String engineType, String driveType) {\n this.id = id;\n this.make = make;\n this.logoFileName = logoFileName;\n this.makeUrl = makeUrl;\n this.model = model;\n this.year = year;\n this.price = price;\n this.mileage = mileage;\n this.cityMPG = cityMPG;\n this.highwayMPG = highwayMPG;\n this.engineType = engineType;\n this.driveType = driveType;\n }", "Vehicle createVehicle();", "Vehicle createVehicle();", "License createLicense();", "public Car() {\n\t\t\tmake = \"GM\";\n\t\t\tyear = 1900;\n\t\t\tmileage= 0;\n\t\t\tcarCost = 0;\n\t\t}", "public Car(String primaryKey, String name, String dealerKey, int year, Category category,\r\n double price, String displacementCC, int maxPower,\r\n String powerRPM, double torqueFtLb, String torqueRPM, DriveTrain driveTrain,\r\n Aspiration aspiration, double length, double width, double height, double weight,\r\n double maxSpeed, double acceleration, double braking, double cornering, double stability) {\r\n this.primaryKey = primaryKey;\r\n this.name = name;\r\n this.manufacturerKey = dealerKey;\r\n this.year = year;\r\n this.category = category;\r\n this.price = price;\r\n this.displacementCC = displacementCC;\r\n this.maxPower = maxPower;\r\n this.powerRPM = powerRPM;\r\n this.torqueFtLb = torqueFtLb;\r\n this.torqueRPM = torqueRPM;\r\n this.driveTrain = driveTrain;\r\n this.aspiration = aspiration;\r\n this.length = length;\r\n this.width = width;\r\n this.height = height;\r\n this.weight = weight;\r\n this.maxSpeed = maxSpeed;\r\n this.acceleration = acceleration;\r\n this.braking = braking;\r\n this.cornering = cornering;\r\n this.stability = stability;\r\n }", "public static CarListFragment newInstance() {\n return new CarListFragment();\n }", "@Test\n\tpublic void testCreateValidCoupeCar() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf(\"coupe\".toUpperCase());\n\t\tString _make = \"toyota\";\n\t\tString _model = \"trueno\";\n\t\tString _color = \"white\";\n\t\tint _year = 1986;\n\n\t\t// ---------------------------------------------\n\t\t// Creating a valid coupe.\n\n\t\ttry {\n\t\t\tAbstractCar _coupe = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\t\t\tassertTrue(_coupe instanceof Coupe);\n\t\t} catch (Exception e_) {\n\t\t\tfail(\"Failed to create a valid Coupe.\");\n\t\t}\n\t}", "public Carmodel() {\n this(\"CarModel\", null);\n }", "abstract public Vcard createVcard();", "public void setEdition(int edition) {\n\tthis.edition = edition;\n}", "public Carte() {\r\n\t\tthis.setBackground(COULEUR_CARTE);\r\n\r\n\t\tafficheurCarte = new AfficheurCarte();\r\n\t\tafficheurVehicule = new AfficheurVehicule();\r\n\t}", "@Test\n public void testNewInstance(){\n car = Car.newInstance();\n assertNotNull(car);\n assertNotNull(car.getID());\n }", "public CarModifyFragment() {\n }", "public static Edition createEntity(EntityManager em) {\n Edition edition = new Edition()\n .name(DEFAULT_NAME)\n .launchDate(DEFAULT_LAUNCH_DATE);\n return edition;\n }", "public ElectricCar(String name, String desc, String make, String model, String year, int odometer) {\n\t\tsuper(name, desc, make, model, year, odometer);\n\t\tvalidMaintenance.add(TireRotation.MAINTENANCE_TYPE);\n\t\tvalidMaintenance.add(ReplaceAirFilter.MAINTENANCE_TYPE);\n\t}", "public Car(String registrationNumber, String make, String model) {\r\n super(registrationNumber, make, model);\r\n }", "public ElectricCar(String mfr, String color, Model model, Vehicle.PowerSource power, \n\t\t double safety, int range, boolean awd, int price, int rch,String batteryType, int VIN)\n{\n\t super(mfr, color, model, Vehicle.PowerSource.ELECTRIC_MOTOR, safety, range, awd, price, VIN);\n\t rechargeTime = rch;\n\t batteryType = \"Lithium\";\n}", "public Car() {\r\n this(\"\", \"\", \"\", 0, Category.EMPTY, 0.00, \"\", 0, \"\", 0.00, \"\", DriveTrain.EMPTY,\r\n Aspiration.EMPTY, 0.00, 0.00, 0.00, 0.00, 0.0, 0.0, 0.0, 0.0, 0.0);\r\n }", "public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }", "@Test\n\tpublic void testCreateValidSedanCar() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf(\"sedan\".toUpperCase());\n\t\tString _make = \"ford\";\n\t\tString _model = \"focus\";\n\t\tString _color = \"grey\";\n\t\tint _year = 2014;\n\n\t\t// ---------------------------------------------\n\t\t// Creating a valid sedan.\n\t\ttry {\n\t\t\tAbstractCar _sedan = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\t\t\tassertTrue(_sedan instanceof Sedan);\n\t\t} catch (Exception e_) {\n\t\t\tfail(\"Failed to create a valid Sedan.\");\n\t\t}\n\t}", "public Car(String carname) {\n this.carname = carname;\n }", "public Car(String licensePlate, double fuelEconomy){\n this.licensePlate = licensePlate;\n this.fuelEconomy = fuelEconomy;\n}", "public Car(String description)\r\n {\r\n this.description = description;\r\n customersName = \"\";\r\n }", "public void setBookEdition(java.lang.String value);", "public Vehicle() {\r\n\t\tthis.numOfDoors = 4;\r\n\t\tthis.price = 1;\r\n\t\tthis.yearMake = 2019;\r\n\t\tthis.make = \"Toyota\";\r\n\t}", "public CarResource() {\n }", "public Carrier() {\n }", "public CarShowroom() {\n initialiseShowroom();\n calculateAveragePrice();\n setOldestCar();\n getPriciestCar();\n }", "public Vehicle(String carClass, BigDecimal price) {\n this.carClass = carClass;\n this.price = price;\n }", "public ProductCreate() {\n initComponents();\n }", "@Test\n\tpublic void testCreateValidSuvCar() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"suv\".toUpperCase()));\n\t\tString _make = \"cadillac\";\n\t\tString _model = \"escalade\";\n\t\tString _color = \"black\";\n\t\tint _year = 2018;\n\n\t\t// ---------------------------------------------\n\t\t// Creating a valid Suv.\n\t\ttry {\n\t\t\tAbstractCar _suv = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\t\t\tassertTrue(_suv instanceof Suv);\n\t\t} catch (Exception e_) {\n\t\t\tfail(\"Failed to create a valid SUV.\");\n\t\t}\n\t}", "@Override\n public Vehicule creer(String immatriculation, String marque, String modele, Client client) {\n return new Voiture(immatriculation,marque,modele,client);\n }", "public abstract ArchECoreView newView(ArchECoreArchitecture architecture) throws ArchEException;", "private Catalog() {\r\n }", "public CarAccessBean () {\n super();\n }", "interface WithEdition {\n /**\n * Sets the edition for the SQL Elastic Pool.\n *\n * @param edition edition to be set for Elastic Pool.\n * @return The next stage of the definition.\n */\n @Deprecated\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithCreate withEdition(ElasticPoolEdition edition);\n\n /**\n * Sets the basic edition for the SQL Elastic Pool.\n *\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n @Method\n SqlElasticPoolOperations.DefinitionStages.WithBasicEdition withBasicPool();\n\n /**\n * Sets the standard edition for the SQL Elastic Pool.\n *\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n @Method\n SqlElasticPoolOperations.DefinitionStages.WithStandardEdition withStandardPool();\n\n /**\n * Sets the premium edition for the SQL Elastic Pool.\n *\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n @Method\n SqlElasticPoolOperations.DefinitionStages.WithPremiumEdition withPremiumPool();\n }", "public Car createListings(int year, String brand, String model, int mileage, int bidPrice) {\r\n\r\n car = new Car(year, brand, model, mileage, bidPrice);\r\n\r\n cars.addCar(car);\r\n\r\n return car;\r\n\r\n }", "Elevage createElevage();", "@Test\n\tpublic void testElectricOldStyle() {\n\t\t\n\t\tOldStyleCarFactory factory = new OldStyleCarFactory() {\n\t\t\t@Override\n\t\t\tpublic Car createElectricCar() {\n\t\t\t\tACEngine engine = new ACEngine();\n\t\t\t\tBattery battery = new MockBattery();\n\t\t\t\tElectricCar car = new ElectricCar(engine, battery);\n\t\t\t\treturn car;\n\t\t\t}\n\t\t};\n\t\t\n\t\tCar testCar = factory.createElectricCar();\n\t\ttestCar.start();\n\t\tassertTrue(testCar.isRunning());\n\t\ttestCar.stop();\n\t\tassertFalse(testCar.isRunning());\n\t\t\n\t}", "public Carrot() {\n\t\tadjustHunger = -40.0;\n\t\tadjustThirst = -10.0;\n\t\tcost = 4.55;\n\t\tname = \"Carrot\";\n\t}", "@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 Car(float x, float y) {\r\n\r\n //initialize\r\n this.world = new World(new Vector2(0, 0), false);\r\n this.box2Drender = new Box2DDebugRenderer();\r\n\r\n this.CarBody = new PolygonShape();\r\n \r\n\r\n this.bodyD = new BodyDef();\r\n this.CarFixDef = new FixtureDef();\r\n \r\n this.x = x;\r\n this.y = y;\r\n this.Cpos = new Vector2(x,y);\r\n \r\n\r\n //setting bodyDef damping (Regular slow)\r\n bodyD.linearDamping = 0.5f;\r\n bodyD.angularDamping = 2f;\r\n \r\n //Adding bodyDef to the world and setting type as Dynamic\r\n body = world.createBody(bodyD);\r\n body.setType(BodyDef.BodyType.DynamicBody);\r\n \r\n //setting the body position in the world using the Vector given.\r\n body.setTransform(this.Cpos, (float) ((Math.PI) / 2));\r\n\r\n \r\n \r\n\r\n //Setting the car(box) and wheel size\r\n CarBody.setAsBox(this.length, this.width);\r\n \r\n CarFixDef.shape = CarBody;\r\n\r\n \r\n body.createFixture(CarFixDef);\r\n\r\n \r\n\r\n }", "@NonNull\n private static IDocumentNodeItem newImportedCatalog() {\n Catalog importedCatalog = new Catalog();\n\n importedCatalog.addControl(AbstractControl.builder(\"control1\")\n .title(\"Control 1\")\n .build());\n importedCatalog.addControl(AbstractControl.builder(\"control2\")\n .title(\"Control 2\")\n .build());\n\n return DefaultNodeItemFactory.instance().newDocumentNodeItem(\n IRootAssemblyDefinition.toRootAssemblyDefinition(\n ObjectUtils.notNull(\n (IAssemblyClassBinding) OscalBindingContext.instance().getClassBinding(Catalog.class))),\n importedCatalog,\n ObjectUtils.notNull(Paths.get(\"\").toUri()));\n }", "protected Product() {\n\t\t\n\t}", "public Card() {\n this(new VCard());\n vcard.getProperties().add(Version.VERSION_4_0);\n\n version = 4;\n }", "public Vehicle() {}", "public static Car getNewCar() {\n CarType[] carTypes = CarType.values();\n\n CarType randomCarType = carTypes[(int) (Math.random()*carTypes.length)];\n\n switch(randomCarType){\n case DELOREAN:\n return new DeLoreanCar(fetchRandomPosition());\n case SUPER:\n return new SuperCar(fetchRandomPosition());\n case GOLAO:\n return new GolaoCar(fetchRandomPosition());\n }\n return null;\n }", "public Car()\n {\n \tsuper();\n bodyType = null;\n noOfDoors = 0;\n noOfSeats = 0;\n }", "@Override\n\tprotected CarreteraEntrante creaCarreteraEntrante(Carretera carretera) {\n\t\treturn new CarreteraEntrante(carretera);\n\t}", "public Product() {\n\t}", "public Car(char id,int size,Orientation orientation,\r\n Position currentPosition){\r\n if (size<=0) {\r\n throw new IllegalArgumentException(\"The size is not valid\"); \r\n }\r\n this.id=id;\r\n this.size=size;\r\n this.currentPosition=currentPosition;\r\n this.orientation=orientation;\r\n }", "public void setEdition(double edition) {\n this.edition = edition;\n }", "public void setEdition(double edition) {\n this.edition = edition;\n }", "public Car create(Car car) {\n if (car.getStation() == null) {\n throw new IllegalArgumentException(messages.get(\"carStationNotNull\"));\n }\n if (car.getStation().getId() == null || !stationService.existsById(car.getStation().getId())) {\n throw new EntityNotFoundException(messages.get(\"stationNotFound\"));\n }\n if (carRepository.existsById(car.getRegistrationNr())) {\n throw new EntityExistsException(messages.get(\"carAlreadyExists\"));\n }\n return carRepository.save(car);\n }", "@Spawns(\"car\")\n public Entity spawnCar(SpawnData data) {\n PhysicsComponent physics = new PhysicsComponent();\n physics.setBodyType(BodyType.DYNAMIC);\n return entityBuilder()\n .type(CAR)\n .from(data)\n .viewWithBBox(texture(MainMenu.getSelectedCarAsset() , 70, 140))\n .with(new CollidableComponent(true))\n .with(new IrremovableComponent())\n .build();\n }", "public Product() {}", "public CrearProductos() {\n initComponents();\n }", "public addcar() {\n initComponents();\n }", "public Product() {\n }", "public Product() {\n }", "protected Product()\n\t{\n\t}", "public Vehicle() {\n\n\t}", "public Catalogue()\n {\n SupplierId = 0;\n }", "PriceModel createInstanceOfPriceModel();", "public Vehicle(){}", "public CarAccessBean(int arg0, java.lang.Boolean arg1, java.lang.String arg2, java.lang.String arg3) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException {\n ejbRef = ejbHome().create(arg0, arg1, arg2, arg3);\n }", "Compleja createCompleja();", "public Product() { }", "public Product() { }", "public String getProductEdition();", "public Vehicle(int year, String make, String model) {\n\t\tsuper();\n\t\tYear = year;\n\t\tMake = make;\n\t\tModel = model;\n\t}", "public CarExternalizable() {\n System.out.println(\"in carExternalizable\");\n }", "public FrmCatalogo() {\n initComponents();\n rdCd.setSelected(true);\n this.setLocationRelativeTo(null);\n volumes = new ArrayList<>();\n }", "public AssignVehicleContentProvider() {\r\n\t}", "protected RegistryMode(String name,\n\t\t\t Class descriptorClass,\n\t\t\t Class productClass,\n Method factoryMethod,\n\t\t\t boolean arePreferencesSupported,\n boolean arePropertiesSupported) {\n\n\tthis.name = new CaselessStringKey(name);\n\tthis.descriptorClass = descriptorClass;\n\tthis.productClass = productClass;\n\tthis.factoryMethod = factoryMethod;\n\tthis.arePreferencesSupported = arePreferencesSupported;\n\tthis.arePropertiesSupported = arePropertiesSupported;\n }", "private GeneProduct createGeneProduct( Gene gene ) {\n GeneProduct geneProduct = GeneProduct.Factory.newInstance();\n geneProduct.setGene( gene );\n geneProduct.setName( gene.getName() );\n geneProduct.setDescription( \"Gene product placeholder\" );\n return geneProduct;\n }", "public LicenciaController() {\n }", "public Vehicle() {\n }", "public VehicleViewRecord() {\n super(VehicleView.VEHICLE_VIEW);\n }", "EisModel createEisModel();", "public CreateJPanel(Car car) {\n initComponents();\n this.car=car;\n }", "private CatalogContract() {}", "public Car(double fuelEfficiency)\n {\n this.fuelEfficiency = fuelEfficiency;\n fuelInTank = 0;\n }", "public RegistryCreator() {\n this.vehicleRegistry = new VehicleRegistry();\n this.inspectionResultRegistry = new InspectionResultRegistry();\n }", "public abstract void setCarMake();", "public static EditorFactory init() {\n\t\ttry {\n\t\t\tEditorFactory theEditorFactory = (EditorFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://opaeum.org/uimetamodel/editor/1.0\"); \n\t\t\tif (theEditorFactory != null) {\n\t\t\t\treturn theEditorFactory;\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 EditorFactoryImpl();\n\t}", "public Car(char id, int size, Orientation orientation,\n Position currentPosition) {\n if (size <= 0)\n throw new IllegalArgumentException(\"The size must be positive\");\n\n this.id = id;\n this.size = size;\n this.orientation = orientation;\n this.currentPosition = currentPosition;\n }", "public CarPurchase(String carType) {\n\t\tthis.carType = carType.toLowerCase();\n\t}" ]
[ "0.5950396", "0.589848", "0.5895899", "0.58869815", "0.58640736", "0.5807097", "0.57957745", "0.5707842", "0.5700971", "0.5688283", "0.56026417", "0.5561068", "0.54736936", "0.54736936", "0.5472248", "0.54557085", "0.54557073", "0.5427786", "0.54241467", "0.5404529", "0.5374729", "0.53746665", "0.5338324", "0.53261524", "0.5305863", "0.53044915", "0.53013104", "0.5279805", "0.5277969", "0.5254441", "0.52442336", "0.524248", "0.5239509", "0.5239297", "0.52056575", "0.51927876", "0.51765764", "0.51723844", "0.51662153", "0.5164298", "0.5150168", "0.5133331", "0.5106208", "0.5092289", "0.50846237", "0.5077631", "0.5062026", "0.50467956", "0.5038156", "0.5036535", "0.50320894", "0.50299764", "0.5018089", "0.50174177", "0.50168276", "0.5013715", "0.5010313", "0.50101674", "0.5009993", "0.5006055", "0.5002075", "0.49960214", "0.49945214", "0.49942395", "0.49942395", "0.49724057", "0.4967436", "0.49474305", "0.49439862", "0.49429733", "0.49423012", "0.49423012", "0.49409863", "0.49380156", "0.4937164", "0.49355364", "0.49352077", "0.49349764", "0.49330068", "0.49326038", "0.49326038", "0.4928251", "0.49260733", "0.49247244", "0.4913196", "0.4910818", "0.49044955", "0.4903319", "0.49018502", "0.489979", "0.48943925", "0.48943862", "0.48943037", "0.48915657", "0.48888385", "0.4881202", "0.48755315", "0.48749417", "0.48675358", "0.48672086" ]
0.7237393
0
Sample Code: saveObjectAndSync(user) insert data and update vcs_table for count data current table WARNING : Make It Slower
public void saveObjectAndSync(final Object objectType) throws Exception;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void syncUpService(JSONObject obj) {\n ArrayList<ServiceModel> serviceModel = getServiceModelJSON(obj);\n insertServiceSQLite(serviceModel);\n }", "private void writeObject(Object object) {\r\n\t\tsession.saveOrUpdate(object);\r\n\r\n\t\t// Since can writing large amount of data should use Hibernate \r\n\t\t// batching to make sure don't run out memory.\r\n\t\tcounter++;\r\n\t\tif (counter % HibernateUtils.BATCH_SIZE == 0) {\r\n\t\t\tsession.flush();\r\n\t\t\tsession.clear();\r\n\t\t}\r\n\t}", "public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }", "int insert(DataSync record);", "@Override\n public void syncUserData() {\n\n List<User> users = userRepository.getUserList();\n List<LdapUser> ldapUsers = getAllUsers();\n Set<Integer> listUserIdRemoveAM = new HashSet<>();\n\n //check update or delete \n for (User user : users) {\n boolean isDeleted = true;\n for (LdapUser ldapUser : ldapUsers) {\n if (user.getUserID().equals(ldapUser.getUserID())) {\n // is updateours\n user.setFirstName(ldapUser.getFirstName());\n user.setLastName(ldapUser.getLastName());\n user.setUpdatedAt(Utils.getCurrentTime());\n user.setEmail(ldapUser.getMail().trim());\n user.setJobTitle(ldapUser.getTitle() == null ? DEFAULT_JOB_TITLE : ldapUser.getTitle());\n user.setPhoneNumber(ldapUser.getTelephonNumber());\n user.setOfficeLocation(ldapUser.getOfficeLocation());\n \n String managerId = ldapUser.getManagerUser();\n User manager = getUserFromListByUserID(users, managerId);\n user.setManagerId(manager == null ? 0 : manager.getId());\n \n //This code will be lock till deploy the real LDAP have 2 properties are \"department\" and \"userAccountControl\"\n /*user.setActive(ldapUser.getUserAccountControl() == 514 ? (byte) 0 : (byte) 1);*/\n Department department = departmentRepository.getDepartmentByName(ldapUser.getDepartment());\n checkChangeDepartment(user, department, listUserIdRemoveAM);\n \n userRepository.editUser(user);\n \n isDeleted = false;\n break;\n }\n }\n if (isDeleted) {\n user.setIsDeleted((byte) 1);\n user.setActive((byte) 0);\n userRepository.editUser(user);\n }\n }\n\n //check new user\n for (LdapUser ldapUser : ldapUsers) {\n boolean isNew = true;\n for(User user : users){\n if(ldapUser.getUserID().equals(user.getUserID())){\n isNew = false;\n break;\n }\n }\n if(isNew){\n logger.debug(\"Is new User userID = \"+ldapUser.getUserID());\n User user = new User();\n user.setUserID(ldapUser.getUserID());\n user.setStaffCode(ldapUser.getUserID());\n user.setFirstName(ldapUser.getFirstName());\n user.setLastName(ldapUser.getLastName());\n user.setCreatedAt(Utils.getCurrentTime());\n user.setUpdatedAt(Utils.getCurrentTime());\n user.setEmail(ldapUser.getMail().trim());\n user.setJobTitle(ldapUser.getTitle() == null ? DEFAULT_JOB_TITLE : ldapUser.getTitle());\n user.setPhoneNumber(ldapUser.getTelephonNumber());\n user.setActive((byte) 1);\n user.setIsDeleted((byte) 0);\n user.setOfficeLocation(ldapUser.getOfficeLocation());\n user.setRoleId(4);\n user.setApprovalManagerId(0);;\n \n String managerId = ldapUser.getManagerUser();\n User manager = getUserFromListByUserID(users, managerId);\n user.setManagerId(manager == null ? 0 : manager.getId());\n\n //This code will be lock till deploy the real LDAP have 2 properties are \"department\" and \"userAccountControl\"\n Department department = departmentRepository.getDepartmentByName(ldapUser.getDepartment());\n user.setDepartmentId(department == null ? 0 : department.getId());\n \n /*user.setActive(ldapUser.getUserAccountControl() == 514 ? (byte) 0 : (byte) 1);*/\n \n userRepository.addUser(user);\n logger.debug(\"Is new User id = \"+user.getId());\n }\n }\n \n //Remove AprovalManager out User\n for(Integer userId : listUserIdRemoveAM){\n if(userId == null) continue;\n User userRemoveAMId = userRepository.getUserById(userId);\n userRemoveAMId.setApprovalManagerId(0);\n userRepository.editUser(userRemoveAMId);\n }\n }", "int upsert(UserShare5Min record);", "public synchronized void save() {\n/* 86 */ this.component.saveToDB();\n/* */ }", "private void saveObject(Object object) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, object.getClass());\n try {\n Field[] fields = object.getClass().getDeclaredFields();\n Field id = null;\n for (Field f : fields) {\n if (f.isAnnotationPresent(Id.class)) {\n id = f;\n }\n }\n id.setAccessible(true);\n\n if (Integer.parseInt(id.get(object).toString()) != 0 && !id.get(object).equals(null)) {\n crudService.update((SimpleORMInterface) object);\n } else {\n crudService.insert((SimpleORMInterface) object);\n }\n id.setAccessible(false);\n ConnectionPoll.releaseConnection(connection);\n\n } catch (IllegalAccessException | NoSuchFieldException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic int insertData(UserVO userVO) {\n\t\treturn 0;\r\n\t}", "public void saveOrUpdate(Object obj) throws HibException;", "public void storeAndCommit() {\n \tsynchronized(mDB.lock()) {\n \t\ttry {\n \t \t\tstoreWithoutCommit();\n \t \t\tcheckedCommit(this);\n \t\t}\n \t\tcatch(RuntimeException e) {\n \t\t\tcheckedRollbackAndThrow(e);\n \t\t}\n \t}\n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }", "@Override\n\tpublic void saveORUpdate(T obj) throws Exception {\n\t\t\n\t}", "@Override\n public void sync(Context context) {\n context.setCandidateSet(Database.getCandidateSet());\n context.setVoterSet(Database.getVoterSet());\n context.setLogins(Database.getLogins());\n context.setCommissionerSet(Database.getCommissionerSet());\n }", "public static void WriteObject(String tableName, int id, Object obj) {\n try {\n conn = DriverManager.getConnection(connectionURL);\n byte[] testBytes = ConvertObject.getByteArrayObject(obj);\n PreparedStatement statement = conn.prepareStatement(\"INSERT INTO \" + tableName + \" (id, obj) VALUES(?,?)\");\n statement.setInt(1, id);\n statement.setBinaryStream(2,new ByteArrayInputStream(testBytes),testBytes.length);\n statement.executeUpdate();\n statement.close();\n conn.close();\n }\n catch(SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void executeQuery() {\n try {\n Put put = new Put(this.userId.getBytes());\n put.add(\"cf\".getBytes(), Bytes.toBytes(this.poi.getTimestamp()), this.poi.getBytes());\n this.table.put(put);\n \n } catch (IOException ex) {\n Logger.getLogger(InsertPOIVisitClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void commit() {\n if (vote != Vote.COMMIT) {\n throw new IllegalStateException(\"Cannot commit transaction with vote: \" + vote);\n }\n\n for (ObjectVersion<V> objectVersion : objectVersions.values()) {\n objectVersion.commit();\n }\n }", "public void commitRow(Vector<Object> rowData)\n\t\t\tthrows SQLException\n\t{\n\t\tObject id = rowData.get(0);\n\t\t\n\t\tString statement = null;\n\t\tlong querytime = 0;\n\t\t\n\t\tif( id == null \n\t\t\t\t|| !TableHelper.idExists(id.toString(), getDBTableName())\n\t\t\t)\n\t\t{\n\t\t\t// insert\n\t\t\tstatement = prepareInsertStatement(rowData);\n\t\t} else {\n\t\t\t// update\n\t\t\tstatement = prepareUpdateStatement(rowData);\n\t\t}\n\n\t\tDBConnector.getInstance().executeUpdate(statement);\n\t\tquerytime = DBConnector.getInstance().getQueryTime();\n\t\t\n\t\tupdateReferencesFor((String)id,rowData);\n\t\tquerytime += DBConnector.getInstance().getQueryTime();\n\t\t\t\n\t\tApplicationLogger.logDebug(\n\t\t\t\tthis.getClass().getSimpleName()\n\t\t\t\t\t+ \".commitRow time: \"+querytime+ \" ms\"\n\t\t\t);\n\t}", "public void fullSync() {\n if (checkboxRepository.findOne(1).isCheckboxState()) {\n now = LocalDateTime.now();\n\n logger.info(\"De sync start\");\n long startTime = System.nanoTime();\n try {\n fillLocalDB.fillDb();\n smartschoolSync.ssSync();\n } catch (IOException e) {\n e.getStackTrace();\n logger.error(\"Error bij het uitvoeren van de sync\");\n } catch (MessagingException e) {\n logger.error(\"Error bij het verzenden van een mail tijdens de sync\");\n }\n logger.info(\"De sync is voltooid\");\n Statistic statistic = statisticRepository.findOne(1);\n statistic.setAantal(informatService.getTotaalAantalServerErrors());\n statisticRepository.save(statistic);\n informatService.setTotaalAantalServerErrors(0L);\n long endTime = System.nanoTime();\n long duration = (endTime - startTime) / 1000000; //milliseconds\n Statistic statisticDuration = statisticRepository.findOne(3);\n statisticDuration.setAantal(duration);\n statisticRepository.save(statisticDuration);\n Statistic statisticLastSync = statisticRepository.findOne(4);\n statisticLastSync.setError(String.valueOf(now));\n statisticRepository.save(statisticLastSync);\n }\n }", "@Test\n void updateSuccess() {\n String Vin = \"1111111111111111X\";\n Car carToUpdate = carDao.getById(1);\n carToUpdate.setVin(Vin);\n carDao.saveOrUpdate(carToUpdate);\n Car retrievedCar = carDao.getById(1);\n assertEquals(carToUpdate, retrievedCar);\n }", "@Override\n\tpublic int update(Object obj) throws SQLException {\n\t\treturn 0;\n\t}", "public void GuardarSerologia(RecepcionSero obj)throws Exception{\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(obj);\n }", "public Object saveOrUpdateCopy(Object obj) throws HibException;", "public void saveOrUpdate(Object aObject);", "@Override\n\tpublic boolean saveVO(List<HBaseVO> vos) {\n\t\tHBaseVODao dao = new HBaseVODao();\n\t\tSystem.out.println(\"在DAO里开始保存数据;Dao得到的VO数为:\" + vos.size());\n\t\tfor (HBaseVO hBaseVO : vos) {\n\t\t\tdao.saveVO(hBaseVO);\n\n\t\t}\n\n\t\treturn true;\n\t}", "public void insert(@NotNull T object) {\n Logger logger = getLogger();\n try (Connection connection = getConnection();\n PreparedStatement preparedStatement = connection.prepareStatement(getInsert())) {\n\n logger.info(\"Inserting into DB\");\n setStatement(preparedStatement, object);\n logger.info(\"Executing statement: \" + preparedStatement);\n preparedStatement.executeUpdate();\n\n } catch (SQLException | NotEnoughDataException e) {\n logger.error(e.getMessage());\n }\n logger.info(\"Insert: success\");\n }", "@Override\n\tpublic void saveTOU(String id, String vno) {\n\t\tPreparedStatement stmt = null;\n\t\ttry {\n\t\t\tstmt = _conn.prepareStatement(SQL_SAVE_TOU);\n\t\t\tstmt.setString(1, id);\n\t\t\tstmt.setString(2, vno);\n\t\t\tstmt.setBoolean(3, false);\n\t\t\tint result = stmt.executeUpdate();\n\t\t\tif (result != 1)\n\t\t\t\tthrow new DomainObjectWriteException(String.format(\n\t\t\t\t\t\t\"Write failed, %d rows affected.\", result));\n\t\t}catch (Exception e) {\n\t\t\tLog.e(\"exc\", e.getMessage());\n\t\t\tthrow new DatabaseProviderException(e);\n\t\t} finally {\n\t\t\t H2Utils.close(stmt);\n\t\t}\n\t}", "@Override\r\n @DB\r\n public UserVmTcDetailVO persist(UserVmTcDetailVO tcDetail) {\n final String InsertSequenceSql = \" INSERT INTO `cloud`.`user_vm_tc` (`guest_user_id`, `total_bandwidth`, `tc_type`, `state`) VALUES (?, ?, ?, ?);\";\r\n TransactionLegacy txn = TransactionLegacy.currentTxn();\r\n txn.start();\r\n UserVmTcDetailVO dbHost = super.persist(tcDetail);\r\n txn.commit();\r\n return dbHost;\r\n /**\r\n try {\r\n PreparedStatement pstmt = txn.prepareAutoCloseStatement(InsertSequenceSql);\r\n //pstmt.setLong(1, dbHost.getId());\r\n pstmt.setLong(1, host.getGuestUserId());\r\n pstmt.setLong(2, host.getTotalBandwidth());\r\n pstmt.setLong(3, host.getTcType());\r\n pstmt.setString(4, host.getState().toString());\r\n pstmt.executeUpdate();\r\n } catch (SQLException e) {\r\n throw new CloudRuntimeException(\"Unable to persist the sequence number for this host\");\r\n }\r\n */\r\n //return dbHost;\r\n }", "int insert(StatusByUser record);", "int insertSelective(DataSync record);", "public void upsert( Map<String, ? extends Object> data, final ObjectCallback<Qualification> callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.putAll(data);\n \n\n \n\n\n \n \n \n invokeStaticMethod(\"upsert\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n if(response != null){\n QualificationRepository qualificationRepo = getRestAdapter().createRepository(QualificationRepository.class);\n if(context != null){\n try {\n Method method = qualificationRepo.getClass().getMethod(\"addStorage\", Context.class);\n method.invoke(qualificationRepo, context);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n //qualificationRepo.addStorage(context);\n }\n Map<String, Object> result = Util.fromJson(response);\n Qualification qualification = qualificationRepo.createObject(result);\n\n //Add to database if persistent storage required..\n if(isSTORE_LOCALLY()){\n //http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string\n try {\n Method method = qualification.getClass().getMethod(\"save__db\");\n method.invoke(qualification);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n }\n\n callback.onSuccess(qualification);\n }else{\n callback.onSuccess(null);\n }\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }", "int insert(TbSnapshot record);", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "public int saveOrUpdate(o dto);", "private void save(MyContext myContext) {\n if (isMember.unknown || group.actorId == 0 || memberId == 0 || myContext == null ||\n myContext.getDatabase() == null) return;\n\n for (int pass=0; pass<5; pass++) {\n try {\n tryToUpdate(myContext, isMember.toBoolean(false));\n break;\n } catch (SQLiteDatabaseLockedException e) {\n MyLog.i(this, \"update, Database is locked, pass=\" + pass, e);\n if (DbUtils.waitBetweenRetries(\"update\")) {\n break;\n }\n }\n }\n }", "public void localToRemoteRatingSync()\r\n {\r\n Uri uri = DataBaseContract.Rating.URI_CONTENT;\r\n int results = ratingModel.changeToSync(uri,contentResolver);\r\n Log.i(TAG, \"Ratings puestos en cola de sincronizacion:\" + results);\r\n\r\n ArrayList<Rating> ratingsPendingForInsert = ratingModel.getRatingsForSync();\r\n Log.i(TAG, \"Se encontraron \" + ratingsPendingForInsert.size() + \" ratings para insertar en el servidor\");\r\n\r\n syncRatingsPendingForInsert(ratingsPendingForInsert);\r\n }", "@Override\n\tpublic void write(List<? extends User> usersManal) throws Exception {\n\t\t\n\t\t System.out.println(\"new thread before\"+Thread.currentThread().getName() + \" \"+Thread.activeCount() +\" \"+Thread.currentThread().getPriority());\n\t\t userRepository.saveAll(usersManal);\n//\t}\n\t\n System.out.println(\"Data Saved for Users: \" + usersManal.toString());\n System.out.println(\"new thread after\"+Thread.currentThread().getName() + \" \"+Thread.activeCount() +\" \"+Thread.currentThread().getPriority());\n \n //userRepository.save(users);\n}", "int insert(PmKeyDbObj record);", "public boolean saveOrUpdate(Data model);", "public JSObject createSyncTable() {\n // Open the database for writing\n JSObject retObj = new JSObject();\n SQLiteDatabase db = null;\n try {\n db = getConnection(false, secret);\n // check if the table has already been created\n boolean isExists = uJson.isTableExists(this, db, \"sync_table\");\n if (!isExists) {\n Date date = new Date();\n long syncTime = date.getTime() / 1000L;\n String[] statements = {\n \"BEGIN TRANSACTION;\",\n \"CREATE TABLE IF NOT EXISTS sync_table (\" + \"id INTEGER PRIMARY KEY NOT NULL,\" + \"sync_date INTEGER);\",\n \"INSERT INTO sync_table (sync_date) VALUES ('\" + syncTime + \"');\",\n \"COMMIT TRANSACTION;\"\n };\n retObj = execute(db, statements);\n }\n } catch (Exception e) {\n Log.d(TAG, \"Error: createSyncTable failed: \", e);\n } finally {\n if (db != null) db.close();\n return retObj;\n }\n }", "int insert(UserCount record);", "public SampletypeBean save(SampletypeBean pObject) throws SQLException\n {\n Connection c = null;\n PreparedStatement ps = null;\n StringBuffer _sql = null;\n\n try\n {\n c = getConnection();\n if (pObject.isNew())\n { // SAVE \n if (!pObject.isSampletypeidModified())\n {\n ps = c.prepareStatement(\"SELECT nextval('sampletypeid_seq')\");\n ResultSet rs = null;\n try\n {\n rs = ps.executeQuery();\n if(rs.next())\n pObject.setSampletypeid(Manager.getInteger(rs, 1));\n else\n getManager().log(\"ATTENTION: Could not retrieve generated key!\");\n }\n finally\n {\n getManager().close(ps, rs);\n ps=null;\n }\n }\n beforeInsert(pObject); // listener callback\n int _dirtyCount = 0;\n _sql = new StringBuffer(\"INSERT into sampletype (\");\n \n if (pObject.isSampletypeidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"sampletypeid\");\n _dirtyCount++;\n }\n\n if (pObject.isNameModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"name\");\n _dirtyCount++;\n }\n\n if (pObject.isCompanyidModified()) {\n if (_dirtyCount>0) {\n _sql.append(\",\");\n }\n _sql.append(\"companyid\");\n _dirtyCount++;\n }\n\n _sql.append(\") values (\");\n if(_dirtyCount > 0) {\n _sql.append(\"?\");\n for(int i = 1; i < _dirtyCount; i++) {\n _sql.append(\",?\");\n }\n }\n _sql.append(\")\");\n\n ps = c.prepareStatement(_sql.toString(), ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n _dirtyCount = 0;\n\n if (pObject.isSampletypeidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getSampletypeid());\n }\n \n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n \n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n ps.executeUpdate();\n \n pObject.isNew(false);\n pObject.resetIsModified();\n afterInsert(pObject); // listener callback\n }\n else \n { // UPDATE \n beforeUpdate(pObject); // listener callback\n _sql = new StringBuffer(\"UPDATE sampletype SET \");\n boolean useComma=false;\n\n if (pObject.isSampletypeidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"sampletypeid\").append(\"=?\");\n }\n\n if (pObject.isNameModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"name\").append(\"=?\");\n }\n\n if (pObject.isCompanyidModified()) {\n if (useComma) {\n _sql.append(\",\");\n } else {\n useComma=true;\n }\n _sql.append(\"companyid\").append(\"=?\");\n }\n _sql.append(\" WHERE \");\n _sql.append(\"sampletype.sampletypeid=?\");\n ps = c.prepareStatement(_sql.toString(),ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n int _dirtyCount = 0;\n\n if (pObject.isSampletypeidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getSampletypeid());\n }\n\n if (pObject.isNameModified()) {\n ps.setString(++_dirtyCount, pObject.getName());\n }\n\n if (pObject.isCompanyidModified()) {\n Manager.setInteger(ps, ++_dirtyCount, pObject.getCompanyid());\n }\n \n if (_dirtyCount == 0) {\n return pObject;\n }\n \n Manager.setInteger(ps, ++_dirtyCount, pObject.getSampletypeid());\n ps.executeUpdate();\n pObject.resetIsModified();\n afterUpdate(pObject); // listener callback\n }\n \n return pObject;\n }\n finally\n {\n getManager().close(ps);\n freeConnection(c);\n }\n }", "public JSObject createSyncTable() {\n // Open the database for writing\n JSObject retObj = new JSObject();\n SQLiteDatabase db = null;\n try {\n db = getConnection(false, secret);\n // check if the table has already been created\n boolean isExists = isTableExists(db, \"sync_table\");\n if (!isExists) {\n Date date = new Date();\n long syncTime = date.getTime() / 1000L;\n String[] statements = {\n \"BEGIN TRANSACTION;\",\n \"CREATE TABLE IF NOT EXISTS sync_table (\" + \"id INTEGER PRIMARY KEY NOT NULL,\" + \"sync_date INTEGER);\",\n \"INSERT INTO sync_table (sync_date) VALUES ('\" + syncTime + \"');\",\n \"COMMIT TRANSACTION;\"\n };\n retObj = execute(db, statements);\n }\n } catch (Exception e) {\n Log.d(TAG, \"Error: createSyncTable failed: \", e);\n } finally {\n if (db != null) db.close();\n return retObj;\n }\n }", "Long insert(User record);", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n em.persist(entity);\r\n dataUsuario.add(entity);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n CarritoDeComprasEntity entity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n if (i == 0 ){\r\n entity.setUsuario(dataUsuario.get(0));\r\n }\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "Dao.CreateOrUpdateStatus createOrUpdate(T data) throws SQLException, DaoException;", "void update(T obj) throws PersistException;", "public void run() {\n String query = \"INSERT INTO CustomData (Server, Plugin, ColumnID, DataPoint, Updated) VALUES\";\n int currentSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // Iterate through each column\n for (Map.Entry<Column, Integer> entry : customData.entrySet()) {\n Column column = entry.getKey();\n int value = entry.getValue();\n\n // append the query\n query += \" (\" + server.getId() + \", \" + plugin.getId() + \", \" + column.getId() + \", \" + value + \", \" + currentSeconds + \"),\";\n }\n\n // Remove the last comma\n query = query.substring(0, query.length() - 1);\n\n // add the duplicate key entry\n query += \" ON DUPLICATE KEY UPDATE DataPoint = VALUES(DataPoint) , Updated = VALUES(Updated)\";\n\n // queue the query\n new RawQuery(mcstats, query).save();\n }", "@Override\r\n\tpublic int save(SpUser t) {\n\t\treturn 0;\r\n\t}", "public void insert(UserModel data) {\n realmDB.executeTransactionAsync(transaction -> {\n transaction.copyToRealmOrUpdate(data);\n }, error -> {\n Log.d(\"err\", error.toString());\n });\n }", "@Override\n\tpublic void updata(Connection conn, Long id, User user) throws SQLException {\n\t\t\n\t}", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "private void updateObject(Object object) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, object.getClass());\n\n try {\n crudService.update((SimpleORMInterface) object);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n ConnectionPoll.releaseConnection(connection);\n\n try {\n connection.close();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }", "private void actuallyWriteData() {\r\n\t\t// Get rid of old data. Getting rid of trips, trip patterns, and blocks\r\n\t\t// is a bit complicated. Need to delete them in proper order because\r\n\t\t// of the foreign keys. Because appear to need to use plain SQL\r\n\t\t// to do so successfully (without reading in objects and then\r\n\t\t// deleting them, which takes too much time and memory). Therefore\r\n\t\t// deleting of this data is done here before writing the data.\r\n\t\tlogger.info(\"Deleting old blocks and associated trips from database...\");\r\n\t\tBlock.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trips from database...\");\r\n\t\tTrip.deleteFromSandboxRev(session);\r\n\r\n\t\tlogger.info(\"Deleting old trip patterns from database...\");\r\n\t\tTripPattern.deleteFromSandboxRev(session);\r\n\t\t\r\n\t\t// Now write the data to the database.\r\n\t\t// First write the Blocks. This will also write the Trips, TripPatterns,\r\n\t\t// Paths, and TravelTimes since those all have been configured to be\r\n\t\t// cascade=CascadeType.ALL .\r\n\t\tlogger.info(\"Saving {} blocks (plus associated trips) to database...\", \r\n\t\t\t\tgtfsData.getBlocks().size());\r\n\t\tint c = 0;\r\n\t\tfor (Block block : gtfsData.getBlocks()) {\r\n\t\t\tlogger.debug(\"Saving block #{} with blockId={} serviceId={} blockId={}\",\r\n\t\t\t\t\t++c, block.getId(), block.getServiceId(), block.getId());\r\n\t\t\twriteObject(block);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving routes to database...\");\r\n\t\tRoute.deleteFromSandboxRev(session);\r\n\t\tfor (Route route : gtfsData.getRoutes()) {\r\n\t\t\twriteObject(route);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving stops to database...\");\r\n\t\tStop.deleteFromSandboxRev(session);\r\n\t\tfor (Stop stop : gtfsData.getStops()) {\r\n\t\t\twriteObject(stop);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving agencies to database...\");\r\n\t\tAgency.deleteFromSandboxRev(session);\r\n\t\tfor (Agency agency : gtfsData.getAgencies()) {\r\n\t\t\twriteObject(agency);\r\n\t\t}\r\n\r\n\t\tlogger.info(\"Saving calendars to database...\");\r\n\t\tCalendar.deleteFromSandboxRev(session);\r\n\t\tfor (Calendar calendar : gtfsData.getCalendars()) {\r\n\t\t\twriteObject(calendar);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving calendar dates to database...\");\r\n\t\tCalendarDate.deleteFromSandboxRev(session);\r\n\t\tfor (CalendarDate calendarDate : gtfsData.getCalendarDates()) {\r\n\t\t\twriteObject(calendarDate);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare rules to database...\");\r\n\t\tFareRule.deleteFromSandboxRev(session);\r\n\t\tfor (FareRule fareRule : gtfsData.getFareRules()) {\r\n\t\t\twriteObject(fareRule);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving fare attributes to database...\");\r\n\t\tFareAttribute.deleteFromSandboxRev(session);\r\n\t\tfor (FareAttribute fareAttribute : gtfsData.getFareAttributes()) {\r\n\t\t\twriteObject(fareAttribute);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving frequencies to database...\");\r\n\t\tFrequency.deleteFromSandboxRev(session);\r\n\t\tfor (Frequency frequency : gtfsData.getFrequencies()) {\r\n\t\t\twriteObject(frequency);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(\"Saving transfers to database...\");\r\n\t\tTransfer.deleteFromSandboxRev(session);\r\n\t\tfor (Transfer transfer : gtfsData.getTransfers()) {\r\n\t\t\twriteObject(transfer);\r\n\t\t}\r\n\t}", "int insert(TmpUserPayAccount record);", "@Test\n public void testSave() throws Exception {\n NvdCveInfo updatedValue = new NvdCveInfo(\"test\",\"url\",1337L);\n String key = \"test\";\n long expected = 1337L;\n DatabaseProperties instance = cveDb.getDatabaseProperties();\n instance.save(updatedValue);\n instance = cveDb.reloadProperties();\n long results = Long.parseLong(instance.getProperty(\"NVD CVE \" + key));\n assertEquals(expected, results);\n }", "public void storeTable(Table table) {\n Entity tableEntity = new Entity(\"Table\");\n tableEntity.setProperty(\"firstName\", table.getFirstName());\n tableEntity.setProperty(\"lastName\", table.getLastName());\n tableEntity.setProperty(\"email\", table.getEmail());\n tableEntity.setProperty(\"phoneNumber\", table.getPhoneNumber());\n tableEntity.setProperty(\"restName\", table.getRestName());\n tableEntity.setProperty(\"restAdd\", table.getRestAdd());\n tableEntity.setProperty(\"restDescrip\", table.getRestDescrip());\n tableEntity.setProperty(\"dateTime\", table.getDateTime());\n tableEntity.setProperty(\"maxSize\", table.getMaxSize());\n tableEntity.setProperty(\"otherNotes\", table.getOtherNotes());\n tableEntity.setProperty(\"members\", table.getMembers());\n tableEntity.setProperty(\"lat\", table.getLat());\n tableEntity.setProperty(\"lng\", table.getLng());\n \n DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n datastore.put(tableEntity);\n}", "public void saveOrUpdate(final Object obj) {\n txTemplate.execute(new TransactionCallbackWithoutResult() {\n @Override\n public void doInTransactionWithoutResult(TransactionStatus status) {\n getHibernateTemplate().saveOrUpdate(obj);\n }\n });\n }", "int insert(Online record);", "public void saveObject(DBDoc object) {\n\t\tmongoTemplate.insert(object);\n\t}", "public void uploadObject() {\n\n\t}", "public void insertClient(ClientVO clientVO);", "@Override\n public boolean commitSMO() {\n return true;\n }", "public void persistData(RatingData[] data) {\n //start by setting long_comp_result\n //TODO: maybe remove old_rating / vol and move to the record creation?\n String sqlStr = \"update long_comp_result set rated_ind = 1, \" +\n \"old_rating = (select rating from algo_rating \" +\n \" where coder_id = long_comp_result.coder_id and algo_rating_type_id = 3), \" +\n \"old_vol = (select vol from algo_rating \" +\n \" where coder_id = long_comp_result.coder_id and algo_rating_type_id = 3), \" +\n \"new_rating = ?, \" +\n \"new_vol = ? \" +\n \"where round_id = ? and coder_id = ?\";\n PreparedStatement psUpdate = null;\n PreparedStatement psInsert = null;\n \n try {\n psUpdate = conn.prepareStatement(sqlStr);\n for(int i = 0; i < data.length; i++) {\n psUpdate.clearParameters();\n psUpdate.setInt(1, data[i].getRating());\n psUpdate.setInt(2, data[i].getVolatility());\n psUpdate.setInt(3, roundId);\n psUpdate.setInt(4, data[i].getCoderID());\n psUpdate.executeUpdate();\n }\n \n psUpdate.close();\n //update algo_rating\n String updateSql = \"update algo_rating set rating = ?, vol = ?,\" +\n \" round_id = ?, num_ratings = num_ratings + 1 \" +\n \"where coder_id = ? and algo_rating_type_id = 3\";\n \n psUpdate = conn.prepareStatement(updateSql);\n \n String insertSql = \"insert into algo_rating (rating, vol, round_id, coder_id, algo_rating_type_id, num_ratings) \" +\n \"values (?,?,?,?,3,1)\";\n \n psInsert = conn.prepareStatement(insertSql);\n \n for(int i = 0; i < data.length; i++) {\n psUpdate.clearParameters();\n psUpdate.setInt(1, data[i].getRating());\n psUpdate.setInt(2, data[i].getVolatility());\n psUpdate.setInt(3, roundId);\n psUpdate.setInt(4, data[i].getCoderID());\n if(psUpdate.executeUpdate() == 0) {\n psInsert.clearParameters();\n psInsert.setInt(1, data[i].getRating());\n psInsert.setInt(2, data[i].getVolatility());\n psInsert.setInt(3, roundId);\n psInsert.setInt(4, data[i].getCoderID());\n psInsert.executeUpdate();\n }\n }\n \n psUpdate.close();\n psInsert.close();\n \n //mark the round as rated\n psUpdate = conn.prepareStatement(\"update round set rated_ind = 1 where round_id = ?\");\n psUpdate.setInt(1, roundId);\n psUpdate.executeUpdate();\n \n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n DBMS.close(psUpdate);\n DBMS.close(psInsert);\n }\n }", "int insert(OcCustContract record);", "int updateByPrimaryKey(DataSync record);", "private static void collectObjectVersionData(Date collectionTime) {\n\t\t\n\t\tList<String> hosts = Arrays.asList(ecsHosts.split(\",\"));\n\t\t\n\t\t\n\t\t// instantiate billing BO\n\t\tBillingBO billingBO = new BillingBO( ecsMgmtAccessKey, \n\t\t\t\t\t\t\t\t\t\t\t ecsMgmtSecretKey,\n\t\t\t\t\t\t\t\t\t\t\t hosts,\n\t\t\t\t\t\t\t\t\t\t\t ecsMgmtPort,\n\t\t\t\t\t\t\t\t\t\t\t null, // dao is not required in this case\n\t\t\t\t\t\t\t\t\t\t\t objectCount );\n\t\t\n\t\t// Instantiate DAO\n\t\tObjectDAO objectDAO = null;\n\t\tif(!elasticHosts.isEmpty()) {\n\t\t\t\n\t\t\t// Instantiate ElasticSearch DAO\n\t\t\tElasticDAOConfig daoConfig = new ElasticDAOConfig();\n\t\t\tdaoConfig.setHosts(Arrays.asList(elasticHosts.split(\",\")));\n\t\t\tdaoConfig.setPort(elasticPort);\n\t\t\tdaoConfig.setClusterName(elasticCluster);\n\t\t\tdaoConfig.setCollectionTime(collectionTime);\n\t\t\tdaoConfig.setCollectionType(EcsCollectionType.object_version);\n\t\t\tinitXPackConfig(daoConfig);\n\t\t\tobjectDAO = new ElasticS3ObjectDAO(daoConfig);\n\t\t\t\n\t\t\t// init indexes\n\t\t\tobjectDAO.initIndexes(collectionTime);\n\t\t} else {\n\t\t\t// Instantiate file DAO\n\t\t\tobjectDAO = new FileObjectDAO();\n\t\t}\n\t\t\n\t\t\n\t\tObjectBO objectBO = new ObjectBO(billingBO, hosts, objectDAO, threadPoolExecutor, futures, objectCount );\n\t\t\n\t\t//objectBO.\n\t\t\n\t\t// Start collection\n\t\tobjectBO.collectObjectVersionData(collectionTime);\n\t\t\n\t\tobjectBO.shutdown();\n\t}", "int insert(ParkCurrent record);", "int insert(SysTeam record);", "int insert(UserGift record);", "@Override\n\tpublic void insertUserAndShopData() {\n\t\t\n\t}", "@Override\r\n\tpublic int insertDBInfo(AgentDBInfoVO vo){\n\t\treturn sqlSession.getMapper(CollectMapper.class).insertDBInfo(vo);\r\n\t}", "int insert(BankUserInfo record);", "int insert(BankUserInfo record);", "public void afterUpdate(DevicelabtestBean pObject) throws SQLException;", "int insert(UserPonumberGoods record);", "int insert(SsSocialSecurityAccount record);", "@Override\n\tprotected void updateImpl(Connection conn, VtbObject anObject)\n\t\t\tthrows SQLException, MappingException {\n\n\t}", "@Override\r\n\tpublic final void saveObjectData() throws BillingSystemException{\n\t}", "int insert(SysUser record);", "int insert(SysUser record);", "public void updateById__customers( String qualificationId, String fk, Map<String, ? extends Object> data, final ObjectCallback<Customer> callback){\n\n /**\n Call the onBefore event\n */\n callback.onBefore();\n\n\n //Definging hashMap for data conversion\n Map<String, Object> hashMapObject = new HashMap<>();\n //Now add the arguments...\n \n hashMapObject.put(\"qualificationId\", qualificationId);\n \n hashMapObject.put(\"fk\", fk);\n \n hashMapObject.putAll(data);\n \n\n \n\n\n \n \n \n invokeStaticMethod(\"prototype.__updateById__customers\", hashMapObject, new Adapter.JsonObjectCallback() {\n \n @Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Call the finally method..\n callback.onFinally();\n }\n\n @Override\n public void onSuccess(JSONObject response) {\n \n if(response != null){\n CustomerRepository customerRepo = getRestAdapter().createRepository(CustomerRepository.class);\n if(context != null){\n try {\n Method method = customerRepo.getClass().getMethod(\"addStorage\", Context.class);\n method.invoke(customerRepo, context);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n //customerRepo.addStorage(context);\n }\n Map<String, Object> result = Util.fromJson(response);\n Customer customer = customerRepo.createObject(result);\n\n //Add to database if persistent storage required..\n if(isSTORE_LOCALLY()){\n //http://stackoverflow.com/questions/160970/how-do-i-invoke-a-java-method-when-given-the-method-name-as-a-string\n try {\n Method method = customer.getClass().getMethod(\"save__db\");\n method.invoke(customer);\n\n } catch (Exception e) {\n Log.e(\"Database Error\", e.toString());\n }\n\n }\n\n callback.onSuccess(customer);\n }else{\n callback.onSuccess(null);\n }\n \n //Call the finally method..\n callback.onFinally();\n }\n });\n \n\n \n\n }", "int insert(UploadStateRegDTO record);", "private int saveOrUpdateList(List<Object> objList, String database)\n throws VizException {\n SaveOrUpdateRequest req = new SaveOrUpdateRequest();\n req.setDbName(database);\n req.setObjectsToUpdate(objList);\n\n Object result = ThriftClient.sendRequest(req);\n return (Integer) result;\n }", "public Object preparePut(Object object)\r\n {\n FullUniqueIndex perThreadAddedIndex = new FullUniqueIndex(this.hashStrategy);\r\n perThreadAddedIndex.setUnderlyingObjectGetter(transactionalUnderlyingObjectGetter);\r\n perThreadAddedIndex.putUsingUnderlying(object, ((MithraTransactionalObject) object).zGetNonTxData());\r\n synchronized (this.preparedIndices)\r\n {\r\n this.preparedIndices.add(perThreadAddedIndex);\r\n }\r\n return perThreadAddedIndex;\r\n }", "private static CompletionStage<Void> persistOrUpdate(ReactiveMongoCollection collection, List<Object> entities) {\n List<WriteModel> bulk = new ArrayList<>();\n for (Object entity : entities) {\n //we transform the entity as a document first\n BsonDocument document = getBsonDocument(collection, entity);\n\n //then we get its id field and create a new Document with only this one that will be our replace query\n BsonValue id = document.get(ID);\n if (id == null) {\n //insert with autogenerated ID\n bulk.add(new InsertOneModel(entity));\n } else {\n //insert with user provided ID or update\n BsonDocument query = new BsonDocument().append(ID, id);\n bulk.add(new ReplaceOneModel(query, entity,\n ReplaceOptions.createReplaceOptions(new UpdateOptions().upsert(true))));\n }\n }\n\n return collection.bulkWrite(bulk).thenApply(b -> null);\n }", "private synchronized void syncData() {\n try {\n // pulling data from server\n pullData();\n\n // pushing local changes to server\n// recordStatus=2\n pushData();\n// recordStatus=1\n// pushData1();\n } catch (Throwable throwable) {\n Log.d(TAG, \"doWork: \" + throwable.getMessage());\n }\n // Toast.makeText(getApplicationContext(), \".\", Toast.LENGTH_SHORT).show();\n }", "int insert(PrefecturesMt record);", "int insert(TycCompanyCheckCrawler record);", "@Override\n\tpublic void saveOrUpdateAll(Collection<Contract> entitys) {\n\t\tcontractDao.save(entitys);\n\t}", "int insert(SvcStoreBeacon record);", "public static void saveTuvs(Connection p_connection, Collection<Tuv> p_tuvs, long p_jobId)\n throws Exception\n {\n PreparedStatement ps = null;\n\n try\n {\n Job job = ServerProxy.getJobHandler().getJobById(p_jobId);\n if (job != null && Job.JOB_TYPE_BLAISE.equals(job.getJobType()))\n {\n try\n {\n // For Blaise job, call method which is synchronized.\n saveTuvsForBlaiseJob(p_connection, p_tuvs, p_jobId);\n }\n catch (Exception be)\n {\n logger.error(\"Error when save TUVs \" + be.getMessage(), be);\n }\n return;\n }\n\n // Update the TUV sequence first despite below succeeding or\n // failure.\n SegmentTuTuvIndexUtil.updateTuvSequence(p_connection);\n\n String sql = SAVE_TUVS_SQL.replace(TUV_TABLE_PLACEHOLDER,\n BigTableUtil.getTuvTableJobDataInByJobId(p_jobId));\n ps = p_connection.prepareStatement(sql);\n\n Set<Long> tuIds = new HashSet<Long>();\n int batchUpdate = 0;\n List<TuTuvAttributeImpl> sidAttibutes = new ArrayList<TuTuvAttributeImpl>();\n for (Iterator<Tuv> it = p_tuvs.iterator(); it.hasNext();)\n {\n TuvImpl tuv = (TuvImpl) it.next();\n tuIds.add(tuv.getTuId());\n\n ps.setLong(1, tuv.getId());\n ps.setLong(2, tuv.getOrder());\n ps.setLong(3, tuv.getLocaleId());\n ps.setLong(4, tuv.getTu(p_jobId).getId());\n ps.setString(5, tuv.getIsIndexed() ? \"Y\" : \"N\");\n\n ps.setString(6, tuv.getSegmentClob());\n ps.setString(7, tuv.getSegmentString());\n ps.setInt(8, tuv.getWordCount());\n ps.setLong(9, tuv.getExactMatchKey());\n ps.setString(10, tuv.getState().getName());\n\n ps.setString(11, tuv.getMergeState());\n ps.setTimestamp(12, new java.sql.Timestamp(tuv.getTimestamp().getTime()));\n ps.setTimestamp(13, new java.sql.Timestamp(tuv.getLastModified().getTime()));\n ps.setString(14, tuv.getLastModifiedUser());\n ps.setTimestamp(15, new java.sql.Timestamp(tuv.getCreatedDate().getTime()));\n\n ps.setString(16, tuv.getCreatedUser());\n ps.setString(17, tuv.getUpdatedProject());\n // Since 8.6.1, always save SID into \"value_text\" column\n // of \"translation_tu_tuv_attr_x\" table, regardless its length.\n ps.setString(18, null);\n if (StringUtil.isNotEmpty(tuv.getSid()))\n {\n // Also save it in original table if not too long.\n if (tuv.getSid().length() < 254)\n {\n ps.setString(18, tuv.getSid());\n }\n\n TuTuvAttributeImpl sidAttr = new TuTuvAttributeImpl(tuv.getId(),\n TuTuvAttributeImpl.OBJECT_TYPE_TUV, TuTuvAttributeImpl.SID);\n sidAttr.setTextValue(tuv.getSid());\n sidAttibutes.add(sidAttr);\n }\n ps.setString(19, tuv.getSrcComment());\n ps.setLong(20, tuv.getRepetitionOfId());\n ps.setString(21, tuv.isRepeated() ? \"Y\" : \"N\");\n\n ps.addBatch();\n batchUpdate++;\n if (batchUpdate > DbUtil.BATCH_INSERT_UNIT)\n {\n ps.executeBatch();\n batchUpdate = 0;\n }\n }\n\n // execute the rest of the added batch\n if (batchUpdate > 0)\n {\n ps.executeBatch();\n }\n\n // Cache the TUVs for large pages when create jobs.\n if (tuIds.size() > 800)\n {\n for (Iterator<Tuv> it = p_tuvs.iterator(); it.hasNext();)\n {\n TuvImpl tuv = (TuvImpl) it.next();\n setTuvIntoCache(tuv);\n }\n }\n p_connection.commit();\n\n // Save SID into \"translation_tu_tuv_xx\" table.\n if (sidAttibutes.size() > 0)\n {\n SegmentTuTuvAttributeUtil.saveTuTuvAttributes(p_connection, sidAttibutes, p_jobId);\n }\n }\n catch (Exception e)\n {\n logger.error(\"Error when save TUVs \" + e.getMessage(), e);\n for (Iterator<Tuv> it = p_tuvs.iterator(); it.hasNext();)\n {\n TuvImpl tuv = (TuvImpl) it.next();\n removeTuvFromCache(tuv.getId());\n }\n throw e;\n }\n finally\n {\n DbUtil.silentClose(ps);\n }\n\n saveTuvPerplexity(p_connection, p_tuvs);\n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }", "private static void dummyDataCreation(){\n Session session = TestCacheUserType.sessionFactory.openSession();\n //once transient object attached to hibernate, it became persistent object state\n Transaction tx = session.beginTransaction();\n\n List<String> listUserType = new ArrayList<String>();\n listUserType.add(\"ADMIN\");\n listUserType.add(\"SUPER ADMIN\");\n listUserType.add(\"USER\");\n listUserType.add(\"INTERNAL USER\");\n listUserType.add(\"CLIENT\");\n listUserType.add(\"WEB SERVICE USER\");\n\n for (String userTypeStr: listUserType) {\n\n //transient object state\n UserType userType = new UserType();\n userType.setUserTypeName(userTypeStr);\n userType.setCreatedDate(new Date());\n userType.setModifiedDateTime(new Date());\n userType.setCreatedDateNormal(new Date());\n userType.setCreatedTime(new Date());\n userType.setModifiedDateWithoutTime(new Date());\n userType.setDeleted(true);\n userType.setActive('Y');\n\n session.save(userType);\n }\n\n tx.commit();\n\n System.out.println(\"UserType added successfully.....!!\");\n session.close();\n }", "void commit();", "void commit();", "public void save(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//session.save(obj);\n\t\tsession.persist(obj);\n\t}", "int insert(CptDataStore record);", "@Override\r\n public Kiosque insertKiosque(Kiosque obj) {\r\n em.persist(obj);\r\n return obj;\r\n //To change body of generated methods, choose Tools | Templates.\r\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tfor(int i = 0; i < 1000; i++) {\r\n\t\t\t\t\tfinal BasicDBObject doc = new BasicDBObject(\"_id\", i);\r\n\t\t\t\t\tdoc.put(\"ts\", new Date());\r\n\t\t\t\t\tcoll.insert(doc);\r\n\t\t\t\t}\r\n\t\t\t}" ]
[ "0.60870373", "0.57140636", "0.5695068", "0.56920093", "0.56896996", "0.56200063", "0.5615231", "0.5595799", "0.5544169", "0.54964375", "0.54866487", "0.54835814", "0.54738945", "0.5450613", "0.54435885", "0.5425558", "0.5401202", "0.5373155", "0.53370553", "0.53330064", "0.53237385", "0.5321057", "0.53166777", "0.5305183", "0.5301194", "0.53001916", "0.5299864", "0.5283724", "0.5280652", "0.52750176", "0.5265609", "0.52619123", "0.52549255", "0.52484787", "0.5240692", "0.52294064", "0.5223877", "0.5220203", "0.5213112", "0.52118456", "0.5207242", "0.5204262", "0.51971936", "0.5194693", "0.5189251", "0.5186654", "0.51784986", "0.5178187", "0.51758784", "0.51586145", "0.51551604", "0.5152447", "0.51432055", "0.51391757", "0.51371574", "0.5123398", "0.5121122", "0.5107682", "0.5101898", "0.5096287", "0.50936604", "0.5086201", "0.50860286", "0.50846016", "0.50845975", "0.5078824", "0.5059648", "0.50516814", "0.5051278", "0.5051162", "0.5050417", "0.50489426", "0.5046406", "0.5046406", "0.50428575", "0.5036245", "0.5036086", "0.50359106", "0.50213367", "0.5018583", "0.5018583", "0.5018405", "0.50164324", "0.50146323", "0.50138104", "0.50132275", "0.5009613", "0.5008586", "0.5008563", "0.50067824", "0.50059265", "0.5002844", "0.5000022", "0.49991864", "0.49991173", "0.49991173", "0.4994661", "0.49925324", "0.499186", "0.49887106" ]
0.5766947
1
additional method for method findPeriodForTwoFirstPositiveNumbersInARow
static int[] findFirstTwoPositiveNumbersInARow(int... sourceNumbers) { return IntStream.of(sourceNumbers) .filter(x -> x > 0) .peek(x -> System.out.format("%d, ", x)) .limit(2).toArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int getNumberOfPeriods()\n {\n return 2;\n }", "public int getHowManyInPeriod();", "int getPeriod();", "BigInteger getPeriod();", "double getPeriod();", "private int firstB(String fa)\n{\n Calendar cal=new GregorianCalendar();\n int y1=(cal.get(Calendar.YEAR)%2000)/10;\n int y2=(cal.get(Calendar.YEAR)%2000)%10;\n int flag1=0,flag2=0,flag3=0;\n String temp1=\"\"+fa.charAt(0);\n String temp2=\"\"+fa.charAt(1);\n String temp3=\"\"+fa.charAt(2);\n if(temp1.equalsIgnoreCase(String.valueOf(y1)))\n {\n flag1=1;\n }\n if(temp2.equalsIgnoreCase(\"F\") || temp2.equalsIgnoreCase(\"U\")|| temp2.equalsIgnoreCase(\"K\"))\n {\n flag2=1;\n }\n if(temp3.equalsIgnoreCase(\"\"+y2))\n {\n flag3=1;\n }\n if(flag1+flag2+flag3==3){\n return 1;\n }\n else{\n return 0;\n }\n \n}", "public Indicator[] getIndicatorForPeriod(int start, int end)\n {\n int index = 0;\n int validStart = indicators[0].getYear();\n int validEnd = indicators[indicators.length - 1].getYear();\n int oldStart = start, oldEnd = end;\n int startIndex = start - validStart;\n int counter = 0;\n\n if (start > end || (start < validStart && end < validStart) || (start > validEnd && end > validEnd))\n {\n throw new IllegalArgumentException(\"Invalid request of start and end year \" + start + \", \" + end +\n \". Valid period for \" + name + \" is \" + validStart + \" to \" + validEnd);\n }\n\n boolean changed = false;\n if (start < indicators[0].getYear())\n {\n changed = true;\n start = indicators[0].getYear();\n }\n\n if (end > indicators[indicators.length - 1].getYear())\n {\n changed = true;\n end = indicators[indicators.length - 1].getYear();\n }\n\n if (changed)\n {\n System.out.println(\"Invalid request of start and end year \" + oldStart + \",\" + oldEnd +\n \". Using valid subperiod for \" + name + \" is \" + start + \" to \" + end);\n }\n\n int numberOfYears = (end - start)+1;\n Indicator[] outputArray = new Indicator[numberOfYears];\n\n for (int i = startIndex; i < numberOfYears; i++)\n {\n outputArray[counter] = indicators[i];\n counter++;\n }\n return outputArray;\n }", "long getSamplePeriod();", "public double getPreferredConsecutiveHours();", "public Period getNextPeriod() throws PeriodNotFoundException;", "public int trimestre(LocalDate d);", "@Test\n void calculatePeriodRangeOver2Years() throws ParseException {\n LocalDate testDateStart = LocalDate.parse(\"2013-03-07\");\n LocalDate testDateEnd = LocalDate.parse(\"2017-12-17\");\n Map<String, String> periodMap = datesHelper.calculatePeriodRange(testDateStart, testDateEnd, false);\n assertEquals(\"57 months\", periodMap.get(PERIOD_START));\n assertEquals(\"17 December 2017\", periodMap.get(PERIOD_END));\n }", "@Test\n public void testAnalisarPeriodo() throws Exception {\n System.out.println(\"analisarPeriodo\");\n int[][] dadosFicheiro = null;\n int lowerLimit = 0;\n int upperLimit = 0;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarPeriodo(dadosFicheiro, lowerLimit, upperLimit, linhas);\n assertArrayEquals(expResult, result);\n\n }", "@Test\n public void ratingAtSameTimeAsStartIsReturned() {\n LocalDateTime firstTime = LocalDateTime.of(2017, Month.JANUARY, 1, 0, 0);\n\n TimePeriod tp = new TimePeriod(firstTime, firstTime.plusHours(4));\n ScoreTime r1 = new ScoreTime(firstTime, 3);\n ScoreTime r2 = new ScoreTime(firstTime.plusHours(3), 3);\n\n List<ScoreTime> returnedList = getRatingsBetweenAndSometimesOneBefore(tp, Arrays.asList(r1, r2));\n assertEquals(2, returnedList.size());\n assertEquals(r1.getTime(), returnedList.get(0).getTime());\n assertEquals(r2.getTime(), returnedList.get(1).getTime());\n }", "@Test\n void calculatePeriodLessThanOneMonth() throws ParseException {\n LocalDate testDateStart = LocalDate.parse(\"2015-03-07\");\n LocalDate testDateEnd = LocalDate.parse(\"2015-04-01\");\n Map<String, String> periodMap = datesHelper.calculatePeriodRange(testDateStart, testDateEnd, false);\n assertEquals(\"1 month\", periodMap.get(PERIOD_START));\n assertEquals(\"1 April 2015\", periodMap.get(PERIOD_END));\n }", "org.hl7.fhir.Period getValuePeriod();", "org.hl7.fhir.Period getAppliesPeriod();", "@Test\n void deve_retornar_o_periodo_first_period_in() {\n List<LocalTime> localTimes = new ArrayList<>();\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.FIRST_PERIOD_IN, response);\n }", "public void period() {\n\t\tPeriod annually = Period.ofYears(1);\n\t\tPeriod quarterly = Period.ofMonths(3);\n\t\tPeriod everyThreeWeeks = Period.ofWeeks(3);\n\t\tPeriod everyOtherDay = Period.ofDays(2);\n\t\tPeriod everyYearAndAWeek = Period.of(1, 0, 7);\n\t\tLocalDate date = LocalDate.of(2014, Month.JANUARY, 20);\n\t\tdate = date.plus(annually);\n\t\tSystem.out.println(date);\n\t\tSystem.out.println(Period.of(0, 20, 47)); // P20M47D\n\t\tSystem.out.println(Period.of(2, 20, 47)); // P2Y20M47D\n\t}", "abstract public int getIncomeSegment( int hhIncomeInDollars );", "private Periodo getPeriodoCorte() {\n String valor = parametrosDao.obtenerTodosParametros().get(\"integrador.periodo.arranque\");\r\n\r\n return Periodo.parse(valor, \"yyyyMM\");\r\n }", "public static int getPeriod(int i) {\n int count = 1;\n int mod = 10 % i;\n //If i is not divisible by 2 or 5, compute.\n //If i is divisible by 2 or 5, it's period is had in a smaller number\n if(i%2!=0 && i%5 !=0) {\n //While mod is not 1, multiply by 10 and mod with i, increment period.\n while(mod != 1) {\n mod = mod * 10;\n mod = mod % i;\n count++;\n }\n }\n return count;\n \n }", "@Test\n\tpublic void shouldFindWhenIhaveBillionthSecondBirthday() throws Exception {\n\t\t//given\n\t\tfinal LocalDate dateOfBirth = LocalDate.of(1985, DECEMBER, 25);\n\t\tfinal LocalTime timeOfBirth = LocalTime.of(22, 10);\n\t\tfinal ZonedDateTime birth = ZonedDateTime.of(dateOfBirth, timeOfBirth, ZoneId.of(\"Europe/Warsaw\"));\n\n\t\t//when\n\t\tfinal ZonedDateTime billionSecondsLater = birth;\n\t\tfinal int hourInTokyo = billionSecondsLater.getHour();\n\n\t\t//then\n\t\tfinal Period periodToBillionth = Period.between(\n\t\t\t\tLocalDate.of(2014, MAY, 12),\n\t\t\t\tbillionSecondsLater.toLocalDate());\n\t\tassertThat(billionSecondsLater.toLocalDate()).isEqualTo(LocalDate.of(2017, SEPTEMBER, 3));\n\t\tassertThat(hourInTokyo).isEqualTo(7);\n\t\tassertThat(periodToBillionth.getYears()).isEqualTo(3);\n\t\tassertThat(periodToBillionth.getMonths()).isEqualTo(3);\n\t}", "private void givenExchangeRatesExistsForEightMonths() {\n }", "List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);", "@Test\n public void nextDeadlineOccurrence_firstMondayOfMarchInEveryFirstMonday_firstMondayOfApril() {\n assertTrue(everyFirstMonday.nextOccurrence(firstMondayOfMarch).equals(firstMondayOfApril));\n }", "org.hl7.fhir.Period addNewValuePeriod();", "private LocalDate getMensDay1(LocalDate input){\n LocalDate dateFist = LocalDate.parse(file.getData(\"date\"), DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n int days = Integer.parseInt(file.getData(\"days\"));\n\n while(dateFist.isBefore(input)){\n dateFist = dateFist.plusDays(days);\n }\n return dateFist.minusDays(days);\n }", "Period mo20733e();", "public int getLBR_ProtestDays();", "public void test800324() {\n TaskSeries s1 = new TaskSeries(\"S1\");\n s1.add(new Task(\"Task 1\", new SimpleTimePeriod(new Date(), new Date())));\n s1.add(new Task(\"Task 2\", new SimpleTimePeriod(new Date(), new Date())));\n s1.add(new Task(\"Task 3\", new SimpleTimePeriod(new Date(), new Date())));\n TaskSeriesCollection tsc = new TaskSeriesCollection();\n tsc.add(s1);\n try {\n tsc.getStartValue(0, 3);\n assertTrue(false);\n } catch (IndexOutOfBoundsException e) {\n }\n try {\n tsc.getEndValue(0, 3);\n assertTrue(false);\n } catch (IndexOutOfBoundsException e) {\n }\n try {\n tsc.getSubIntervalCount(0, 3);\n assertTrue(false);\n } catch (IndexOutOfBoundsException e) {\n }\n }", "private PeriodicEvent getPeriod (ArrayList shiftGraph, int eventOffset)\n {\n int matchCount = 0;\n int bestMatchCount = 0;\n int bestPeriod = 0;\n\n int lastOffset = shiftGraph.size() - this.minPeriodLength;\n int periodOffset = 0;\n\n for (periodOffset = minPeriodLength; periodOffset < lastOffset; periodOffset++)\n {\n matchCount = 0;\n\n int lastComparisonIndex = shiftGraph.size() - periodOffset;\n for (int j = 0 ; j < lastComparisonIndex; j++)\n {\n Double staticElement = null;\n Double shiftElement = null;\n\n try\n {\n staticElement = (Double) shiftGraph.get (j);\n shiftElement = (Double) shiftGraph.get (j + periodOffset);\n }\n catch (Exception e)\n { ; }\n\n if (elementsAreEqual (staticElement, shiftElement))\n matchCount++;\n } // end for (j)\n\n if (matchCount > bestMatchCount)\n {\n bestMatchCount = matchCount;\n bestPeriod = periodOffset;\n } // end if\n\n } // end for (offset)\n\n ArrayList event = new ArrayList (bestPeriod);\n\n for (int i = 0; i < bestPeriod; i++)\n {\n Double elt = (Double) shiftGraph.get (i);\n event.add (i, elt);\n }\n\n PeriodicEvent pe = new PeriodicEvent ();\n pe.setOffset (eventOffset);\n pe.setPeriod (bestPeriod);\n pe.setEvent (event);\n\n return pe;\n }", "protected abstract void calcNextDate();", "public void generateImpatedRecords ()\r\n\t{\n\t\tRequest req = table.createRequest();\r\n\t\treq.setXPathFilter(path_to_id.format()+\"='\" + id +\"'\");\r\n\t\tRequestResult res = req.execute();\r\n\t\tshow(\"got results \" + res.getSize() );\r\n\t\tAdaptation ada = res.nextAdaptation();\r\n\t\tshow (\"STARTDATE: \" + startdate + \" ENDDATE: \" + enddate);\r\n\t\tshow(\"________________________________________________\");\r\n\t\twhile (ada!=null)\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tDate adaStartDate = ada.getDate(path_to_start);\r\n\t\t\tDate adaEndDate = ada.getDate(path_to_end);\r\n\t\t\t//check im not me!\r\n\t\t\tif (!(ada.getOccurrencePrimaryKey().format().equals(newRecord.getOccurrencePrimaryKey().format())))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t// the record has been updated but date has not changed\r\n\t\t\t\tif (enddate!=null&&adaEndDate!=null&&(adaStartDate.equals(startdate)&&adaEndDate.equals(enddate)))\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tshow(\"The Record needs Spliting\");\r\n\t\t\t\t\trecordToSplit = ada;\r\n\t\t\t\t\tnewEndDate = addDays(startdate,-1);\r\n\t\t\t\t\tbeforeRecord = ada;\r\n\t\t\t\t\tnewStartDate = addDays(enddate,+1);\r\n\t\t\t\t\tafterRecord = ada;\r\n\t\t\t\t}\r\n\t\t\t\telse if (enddate!=null&&adaEndDate!=null&&(adaStartDate.before(startdate)&&adaEndDate.after(enddate)))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tshow(\"The Record needs Spliting\");\r\n\t\t\t\t\t\t\trecordToSplit = ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays(startdate,-1);\r\n\t\t\t\t\t\t\tbeforeRecord = ada;\r\n\t\t\t\t\t\t\tnewStartDate = addDays(enddate,+1);\r\n\t\t\t\t\t\t\tafterRecord = ada;\r\n\t\t\t\t\t\t}\r\n\t\t\t\telse if (adaStartDate == null && adaEndDate == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tshow (\"set end date on existing record\");\r\n\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t}\r\n\t\t\t\t\t\telse if (adaStartDate.before(startdate)&& adaEndDate==null)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"set end date on existing record\");\r\n\t\t\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\telse if (adaStartDate.before(startdate) && adaEndDate.after(startdate))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"need to move existing end date\");\r\n\t\t\t\t\t\t\tbeforeRecord= ada;\r\n\t\t\t\t\t\t\tnewEndDate = addDays (startdate, -1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (enddate!=null&&enddate==null&&adaStartDate.after(enddate))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tshow (\"need to end date new record\");\r\n\t\t\t\t\t\t\tbeforeRecord = newRecord;\r\n\t\t\t\t\t\t\tnewEndDate = addDays(adaStartDate, -1);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\tada = res.nextAdaptation();\r\n\t}\r\n\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public TimePeriod notWorking(TimePeriod period);", "private static FunctionCycle findCycleWithFloydsInternal(IntUnaryOperator func, int x0) {\n\n int t = func.applyAsInt(x0);\n int h = func.applyAsInt(func.applyAsInt(x0));\n\n // find point inside the cycle\n while (t != h) {\n t = func.applyAsInt(t);\n h = func.applyAsInt(func.applyAsInt(h));\n }\n\n h = x0;\n\n while (h != t) {\n t = func.applyAsInt(t);\n h = func.applyAsInt(h);\n }\n\n final int startPoint = t;\n int length = 1;\n h = func.applyAsInt(h);\n\n while (t != h) {\n h = func.applyAsInt(h);\n ++length;\n }\n\n return new FunctionCycle(startPoint, length);\n }", "@Generated\n @Selector(\"rollingPeriod\")\n public native int rollingPeriod();", "@Test\n public void testFindRate_PositiveResult_Mon9to12() {\n System.out.println(\"FindRate-positive result mon 0900-1200\");\n AssertRateFound(\"2015-07-06T09:00:00Z\", \"2015-07-06T20:59:00Z\", 1500); \n }", "org.hl7.fhir.Period addNewAppliesPeriod();", "private int[] nextDay(int[] cells){\n int[] tmp = new int[cells.length];\n \n for(int i=1;i<cells.length-1;i++){\n tmp[i]=cells[i-1]==cells[i+1]?1:0;\n }\n return tmp;\n }", "public int getCycleYearsForComponent(Record record);", "public double selPeriodo(int periodo, int estrato) {\n double perTasa = 0;\n if (periodo == 201611) {\n if (estrato == 1) {\n perTasa = tasaNov16_1;\n }\n if (estrato == 2) {\n perTasa = tasaNov16_2;\n }\n if (estrato == 3) {\n perTasa = tasaNov16_3;\n }\n if (estrato == 4) {\n perTasa = tasaNov16_4;\n }\n if (estrato == 5) {\n perTasa = tasaNov16_5;\n }\n if (estrato == 6) {\n perTasa = tasaNov16_6;\n }\n }\n if (periodo == 201610) {\n if (estrato == 1) {\n perTasa = tasaOct16_1;\n }\n if (estrato == 2) {\n perTasa = tasaOct16_2;\n }\n if (estrato == 3) {\n perTasa = tasaOct16_3;\n }\n if (estrato == 4) {\n perTasa = tasaOct16_4;\n }\n if (estrato == 5) {\n perTasa = tasaOct16_5;\n }\n if (estrato == 6) {\n perTasa = tasaOct16_6;\n }\n }\n if (periodo == 201609) {\n if (estrato == 1) {\n perTasa = tasaSep16_1;\n }\n if (estrato == 2) {\n perTasa = tasaSep16_2;\n }\n if (estrato == 3) {\n perTasa = tasaSep16_3;\n }\n if (estrato == 4) {\n perTasa = tasaSep16_4;\n }\n if (estrato == 5) {\n perTasa = tasaSep16_5;\n }\n if (estrato == 6) {\n perTasa = tasaSep16_6;\n }\n }\n if (periodo == 201608) {\n if (estrato == 1) {\n perTasa = tasaAgo16_1;\n }\n if (estrato == 2) {\n perTasa = tasaAgo16_2;\n }\n if (estrato == 3) {\n perTasa = tasaAgo16_3;\n }\n if (estrato == 4) {\n perTasa = tasaAgo16_4;\n }\n if (estrato == 5) {\n perTasa = tasaAgo16_5;\n }\n if (estrato == 6) {\n perTasa = tasaAgo16_6;\n }\n }\n if (periodo == 201607) {\n if (estrato == 1) {\n perTasa = tasaJul16_1;\n }\n if (estrato == 2) {\n perTasa = tasaJul16_2;\n }\n if (estrato == 3) {\n perTasa = tasaJul16_3;\n }\n if (estrato == 4) {\n perTasa = tasaJul16_4;\n }\n if (estrato == 5) {\n perTasa = tasaJul16_5;\n }\n if (estrato == 6) {\n perTasa = tasaJul16_6;\n }\n }\n if (periodo == 201606) {\n if (estrato == 1) {\n perTasa = tasaJun16_1;\n }\n if (estrato == 2) {\n perTasa = tasaJun16_2;\n }\n if (estrato == 3) {\n perTasa = tasaJun16_3;\n }\n if (estrato == 4) {\n perTasa = tasaJun16_4;\n }\n if (estrato == 5) {\n perTasa = tasaJun16_5;\n }\n if (estrato == 6) {\n perTasa = tasaJun16_6;\n }\n }\n if (periodo == 201605) {\n if (estrato == 1) {\n perTasa = tasaMay16_1;\n }\n if (estrato == 2) {\n perTasa = tasaMay16_2;\n }\n if (estrato == 3) {\n perTasa = tasaMay16_3;\n }\n if (estrato == 4) {\n perTasa = tasaMay16_4;\n }\n if (estrato == 5) {\n perTasa = tasaMay16_5;\n }\n if (estrato == 6) {\n perTasa = tasaMay16_6;\n }\n }\n if (periodo == 201604) {\n if (estrato == 1) {\n perTasa = tasaAbr16_1;\n }\n if (estrato == 2) {\n perTasa = tasaAbr16_2;\n }\n if (estrato == 3) {\n perTasa = tasaAbr16_3;\n }\n if (estrato == 4) {\n perTasa = tasaAbr16_4;\n }\n if (estrato == 5) {\n perTasa = tasaAbr16_5;\n }\n if (estrato == 6) {\n perTasa = tasaAbr16_6;\n }\n }\n if (periodo == 201603) {\n if (estrato == 1) {\n perTasa = tasaMar16_1;\n }\n if (estrato == 2) {\n perTasa = tasaMar16_2;\n }\n if (estrato == 3) {\n perTasa = tasaMar16_3;\n }\n if (estrato == 4) {\n perTasa = tasaMar16_4;\n }\n if (estrato == 5) {\n perTasa = tasaMar16_5;\n }\n if (estrato == 6) {\n perTasa = tasaMar16_6;\n }\n }\n if (periodo == 201602) {\n if (estrato == 1) {\n perTasa = tasaFeb16_1;\n }\n if (estrato == 2) {\n perTasa = tasaFeb16_2;\n }\n if (estrato == 3) {\n perTasa = tasaFeb16_3;\n }\n if (estrato == 4) {\n perTasa = tasaFeb16_4;\n }\n if (estrato == 5) {\n perTasa = tasaFeb16_5;\n }\n if (estrato == 6) {\n perTasa = tasaFeb16_6;\n }\n }\n if (periodo == 201601) {\n if (estrato == 1) {\n perTasa = tasaEne16_1;\n }\n if (estrato == 2) {\n perTasa = tasaEne16_2;\n }\n if (estrato == 3) {\n perTasa = tasaEne16_3;\n }\n if (estrato == 4) {\n perTasa = tasaEne16_4;\n }\n if (estrato == 5) {\n perTasa = tasaEne16_5;\n }\n if (estrato == 6) {\n perTasa = tasaEne16_6;\n }\n }\n if (periodo == 201512) {\n if (estrato == 1) {\n perTasa = tasaDic_1;\n }\n if (estrato == 2) {\n perTasa = tasaDic_2;\n }\n if (estrato == 3) {\n perTasa = tasaDic_3;\n }\n if (estrato == 4) {\n perTasa = tasaDic_4;\n }\n if (estrato == 5) {\n perTasa = tasaDic_5;\n }\n if (estrato == 6) {\n perTasa = tasaDic_6;\n }\n }\n if (periodo == 201511) {\n if (estrato == 1) {\n perTasa = tasaNov_1;\n }\n if (estrato == 2) {\n perTasa = tasaNov_2;\n }\n if (estrato == 3) {\n perTasa = tasaNov_3;\n }\n if (estrato == 4) {\n perTasa = tasaNov_4;\n }\n if (estrato == 5) {\n perTasa = tasaNov_5;\n }\n if (estrato == 6) {\n perTasa = tasaNov_6;\n }\n }\n if (periodo == 201510) {\n if (estrato == 1) {\n perTasa = tasaOct_1;\n }\n if (estrato == 2) {\n perTasa = tasaOct_2;\n }\n if (estrato == 3) {\n perTasa = tasaOct_3;\n }\n if (estrato == 4) {\n perTasa = tasaOct_4;\n }\n if (estrato == 5) {\n perTasa = tasaOct_5;\n }\n if (estrato == 6) {\n perTasa = tasaOct_6;\n }\n }\n if (periodo == 201509) {\n if (estrato == 1) {\n perTasa = tasaSep_1;\n }\n if (estrato == 2) {\n perTasa = tasaSep_2;\n }\n if (estrato == 3) {\n perTasa = tasaSep_3;\n }\n if (estrato == 4) {\n perTasa = tasaSep_4;\n }\n if (estrato == 5) {\n perTasa = tasaSep_5;\n }\n if (estrato == 6) {\n perTasa = tasaSep_6;\n }\n }\n if (periodo == 201508) {\n if (estrato == 1) {\n perTasa = tasaAgo_1;\n }\n if (estrato == 2) {\n perTasa = tasaAgo_2;\n }\n if (estrato == 3) {\n perTasa = tasaAgo_3;\n }\n if (estrato == 4) {\n perTasa = tasaAgo_4;\n }\n if (estrato == 5) {\n perTasa = tasaAgo_5;\n }\n if (estrato == 6) {\n perTasa = tasaAgo_6;\n }\n }\n if (periodo == 201507) {\n if (estrato == 1) {\n perTasa = tasaJul_1;\n }\n if (estrato == 2) {\n perTasa = tasaJul_2;\n }\n if (estrato == 3) {\n perTasa = tasaJul_3;\n }\n if (estrato == 4) {\n perTasa = tasaJul_4;\n }\n if (estrato == 5) {\n perTasa = tasaJul_5;\n }\n if (estrato == 6) {\n perTasa = tasaJul_6;\n }\n }\n if (periodo == 201506) {\n if (estrato == 1) {\n perTasa = tasaJun_1;\n }\n if (estrato == 2) {\n perTasa = tasaJun_2;\n }\n if (estrato == 3) {\n perTasa = tasaJun_3;\n }\n if (estrato == 4) {\n perTasa = tasaJun_4;\n }\n if (estrato == 5) {\n perTasa = tasaJun_5;\n }\n if (estrato == 6) {\n perTasa = tasaJun_6;\n }\n }\n if (periodo == 201505) {\n if (estrato == 1) {\n perTasa = tasaMay_1;\n }\n if (estrato == 2) {\n perTasa = tasaMay_2;\n }\n if (estrato == 3) {\n perTasa = tasaMay_3;\n }\n if (estrato == 4) {\n perTasa = tasaMay_4;\n }\n if (estrato == 5) {\n perTasa = tasaMay_5;\n }\n if (estrato == 6) {\n perTasa = tasaMay_6;\n }\n }\n if (periodo == 201504) {\n if (estrato == 1) {\n perTasa = tasaAbr_1;\n }\n if (estrato == 2) {\n perTasa = tasaAbr_2;\n }\n if (estrato == 3) {\n perTasa = tasaAbr_3;\n }\n if (estrato == 4) {\n perTasa = tasaAbr_4;\n }\n if (estrato == 5) {\n perTasa = tasaAbr_5;\n }\n if (estrato == 6) {\n perTasa = tasaAbr_6;\n }\n }\n return perTasa;\n }", "private static int binarySearchForX(XYDataset data, int series, double x) {\n int lo = 0, hi = data.getItemCount(series); \n while (lo < hi) {\n int mid = (lo + hi) / 2;\n double midX = data.getXValue(series, mid);\n if (x < midX)\n\thi = mid;\n else if (x > midX)\n\tlo = mid + 1;\n else\n\treturn mid;\n }\n return lo; // not found, return index of next date\n }", "static int find(int decimal_number) \r\n { \r\n if (decimal_number == 0) \r\n return 0; \r\n \r\n else\r\n \r\n return (decimal_number % 2 + 10 * \r\n find(decimal_number / 2)); \r\n }", "private Date determineBeginDate(Employee employee){\n\t\tList<PtoPeriod> ptoPeriods = ptoPeriodRepository.findPtoPeriodForEmployee(employee.getId());\n\t\tfor(PtoPeriod p : ptoPeriods){\n\t\t\tlog.info(\"Pto Period Found: End Date: \" + p.getEndDate());\n\t\t}\n\t\t\n\t\t//If more than one period found, select the second latest date as the start date\n\t\t//Otherwise return the employee hire date\n\t\t\n\t\treturn ZonedDateTimeToDateConverter.INSTANCE.convert(employee.getHireDate());\n\t}", "@Override\n public int getPartition(DateTemperaturePair pair, \n Text text, \n int numberOfPartitions) {\n return Math.abs(pair.getYearMonth().hashCode() % numberOfPartitions);\n }", "@Test\r\n public void testSubDay2(){\n int amount = -25;\r\n dateTime myDate = new dateTime(25, 4, 2019);\r\n System.out.println(\"The day before increment is: 25-4-2019\");\r\n dateTime addOrSubDays = myDate.addOrSubDays(amount);\r\n System.out.println(\"The day after increment is: \" + addOrSubDays.getDay() + \"-\" + addOrSubDays.getMonth() + \"-\" + addOrSubDays.getYear());\r\n assertEquals(\"The day after increment is: 31-3-2019\",\"The day after increment is: \" + addOrSubDays.getDay() + \"-\" + addOrSubDays.getMonth() + \"-\" + addOrSubDays.getYear());\r\n }", "int countByExample(AoD5e466WorkingDayExample example);", "@Test\n\tpublic void testForTask4() {\n\t\t//test 2017-01-23\n\t\tString[] row = findRowByDateInAlerts(\"2017-01-23\");\n\t\tAssert.assertEquals(row[0], \"bearish\");\n\t\tAssert.assertEquals(row[1], \"FB\");\n\t\tAssert.assertEquals(row[2], \"2017-01-23\");\n\t\tAssert.assertEquals(convertStringToDouble(row[3]), convertStringToDouble(\"127.31\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[4]), convertStringToDouble(\"129.25\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[5]), convertStringToDouble(\"126.95\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[6]), convertStringToDouble(\"128.93\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[7]), convertStringToDouble(\"16016924.0\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[8]), convertStringToDouble(\"120.3734\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[9]), convertStringToDouble(\"121.18805\"));\n\t\t\n\t\t//test 2016-11-14\n\t\trow = findRowByDateInAlerts(\"2016-11-14\");\n\t\tAssert.assertEquals(row[0], \"bullish\");\n\t\tAssert.assertEquals(row[1], \"FB\");\n\t\tAssert.assertEquals(row[2], \"2016-11-14\");\n\t\tAssert.assertEquals(convertStringToDouble(row[3]), convertStringToDouble(\"119.1256\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[4]), convertStringToDouble(\"119.1256\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[5]), convertStringToDouble(\"113.5535\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[6]), convertStringToDouble(\"115.08\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[7]), convertStringToDouble(\"51377040\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[8]), convertStringToDouble(\"21134655.72\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[9]), convertStringToDouble(\"127.8374\"));\n\t\tAssert.assertEquals(convertStringToDouble(row[10]), convertStringToDouble(\"118.5285\"));\n\t}", "private int findSecondPolynomial(double temperature) {\n int firstIndex = -1;\n if (polynomials ==null || polynomials.length==0) return BadIndex;\n for (int index=0; index< polynomials.length; index++) {\n if (polynomials[index].isInRange(temperature)) {\n if (firstIndex==-1) firstIndex=index; // no first index\n else return index; // First index exists. So this must be the second.\n }\n }\n return BadIndex;\n }", "public void initPeriodsSearch() {\n\n\t\t//init fundamentalFreq\n\t\tcalculatefundamentalFreq();\n\n\t\t//set the first search area\n\t\tfinal double confidenceLevel = 5 / 100.;\n\t\tnextPeriodSearchingAreaEnd = (int) Math.floor( hzToPeriod( fundamentalFreq ) * ( 1 + confidenceLevel ) );\n\t}", "static int beautifulDays(int i, int j, int k) {\n return (int) IntStream.range(i, j + 1).filter(day -> Math.abs(day - reverseInt(day)) % k == 0).count();\n }", "public int getNumDaysForComponent(Record record);", "public static void testPeriod() {\n LocalDate date1 = LocalDate.now();\n System.out.println(\"Current date: \" + date1);\n\n //add 1 month to the current date\n LocalDate date2 = date1.plus(1, ChronoUnit.MONTHS);\n System.out.println(\"Next month: \" + date2);\n\n Period period = Period.between(date2, date1);\n System.out.println(\"Period: \" + period);\n }", "@Test\n public void shouldDisplayDaysExcludingWeekEndsSubday() {\n LocalDate date = LocalDate.of(2018,11,25);\n LocalDate newDate = LocalDate.of(2018,11,21);\n int offset = 2;\n int direction = -1;\n System.out.println(calcDate(date,offset,direction));\n\n assertEquals(newDate,calcDate(date,offset,direction),\"Should be equal\");\n\n }", "private static FunctionCycle findCycleWithBrentsInternal(IntUnaryOperator func, int x0) {\n\n int power = 1;\n int lam = 1;\n\n int t = x0;\n int h = func.applyAsInt(x0);\n\n // 'lam' will be equal to cycle length at the end of iteration\n while (t != h) {\n if (power == lam) {\n t = h;\n power *= 2;\n lam = 0;\n }\n\n h = func.applyAsInt(h);\n ++lam;\n }\n\n final int cycleLength = lam;\n\n t = x0;\n h = x0;\n\n // find star point for cycle\n for (int i = 0; i < lam; ++i) {\n h = func.applyAsInt(h);\n }\n\n while (t != h) {\n t = func.applyAsInt(t);\n h = func.applyAsInt(h);\n }\n\n return new FunctionCycle(t, cycleLength);\n }", "public double fineAsToHours(int numOfDays,int h1,int h2,int m1, int m2){\n double fine=0.0;\n int y=0;\n\n //if overdue is minus there is no need to calculate a fine\n if(numOfDays<0){\n fine=0.0;\n }\n\n //if it is 0 if the reader returns book on or before the due hour, again no fine\n //if reader returns book after due hour minutes will be taken in to count\n else if(numOfDays==0){\n if(h2<=h1){\n fine=0.0;\n }\n else{\n //ex:if due=10.30, returnTime=12.20, fine will be charged only for 10.30 to 11.30 period\n //which is returnTime-1-due\n if(m2<m1){\n y=(h2-h1)-1;\n fine=y*0.2;\n }\n //if returnTime=12.45 fine will be charged for 10.30 to 12.45 period\n //which is returnTime-due\n else if(m2>=m1){\n y=h2-h1;\n fine=y*0.2;\n }\n }\n }\n\n //if over due is 3days or less\n else if(numOfDays<=3){\n //ex: due=7th 10.30, returned=9th 9.30\n //finr will be charged for 24h and the extra hours from 8th, and extra hours from 9th\n if(h2<=h1){\n y=((numOfDays-1)*24)+((24-h1)+h2);\n fine=y*0.2;\n }\n else{\n //ex: due=7th 10.30, returned= 9th 12.15\n //total 2*24h will be added. plus, time period frm 9th 10.30 to 11.30\n if(m2<m1){\n y=(numOfDays*24)+((h2-h1)-1);\n fine=y*0.2;\n }\n else if(m2>=m1){\n //returned=9th 12.45\n //total 2*24h, plus 2hours difference from 10.30 to 12.30\n y=(numOfDays*24)+(h2-h1);\n fine=y*0.2;\n }\n }\n\n }\n\n\n //same logic and will multiply the 1st 3 days form 0.2 as to the requirement\n\n else if(numOfDays>3){\n if(h2<=h1){\n y=((numOfDays-4)*24)+((24-h1)+h2);\n fine=(y*0.5)+(24*3*0.2);\n }\n\n else{\n if(m2<m1){\n y=((numOfDays-3)*24)+((h2-h1)-1);\n fine=(y*0.5)+(3*24*0.2);\n }\n\n else if(m2>m1){\n y=((numOfDays-3)*24)+(h2-h1);\n fine=(y*0.5)+(3*24*0.2);\n }\n }\n\n\n }\n\n return fine;\n\n }", "private int[] funcGetRateDigits(int iCurrency, int iCurrency2) throws OException\r\n\t{\r\n\r\n//\t\tINCGeneralItau.print_msg(\"INFO\", \"**** funcGetRateDigits ****\");\r\n\t\t\r\n\t\t@SuppressWarnings(\"unused\")\r\n int iRetVal, iRateDigits = 0, iCcy1Digits = 0, iCcy2Digits = 0;\r\n\t\tTable tblInsNum = Util.NULL_TABLE;\r\n\r\n\t\t/* Array */\r\n\t\tint[] iRounding = new int[3];\r\n\r\n\t\ttblInsNum = Table.tableNew();\r\n\t\tString sQuery = \"Select ab.ins_num, ab.cflow_type, ab.reference, par.currency, par1.currency as currency2, par.nearby as rate_digits, \" +\r\n\t\t\t\t\t\"c.round as currency1_digits, c2.round as currency2_digits \" +\r\n\t\t\t\t\t\"From ab_tran ab \" +\r\n\t\t\t\t\t\"Left Join parameter par on ab.ins_num = par.ins_num \" +\r\n\t\t\t\t\t\"Left Join parameter par1 on ab.ins_num = par1.ins_num \" +\r\n\t\t\t\t\t\"Left Join header hea on ab.ins_num = hea.ins_num, \" +\r\n\t\t\t\t\t\"currency c, currency c2 \" +\r\n\t\t\t\t\t\"Where ab.tran_type = \" + TRAN_TYPE_ENUM.TRAN_TYPE_HOLDING.jvsValue() +\r\n\t\t\t\t\t\" And ab.tran_status = \" + TRAN_STATUS_ENUM.TRAN_STATUS_VALIDATED.jvsValue() +\r\n\t\t\t\t\t\" And ab.toolset = \" + TOOLSET_ENUM.FX_TOOLSET.jvsValue() +\r\n\t\t\t\t\t\" And par.param_seq_num = 0 And par1.param_seq_num = 1\" +\r\n\t\t\t\t\t\" And c.id_number = \" + iCurrency +\r\n\t\t\t\t\t\" And c2.id_number = \" + iCurrency2 +\r\n\t\t\t\t\t\" And ((par.currency = \" + iCurrency +\r\n\t\t\t\t\t\" And par1.currency = \" + iCurrency2 + \")\" +\r\n\t\t\t\t\t\" Or (par.currency = \" + iCurrency2 +\r\n \" And par1.currency = \" + iCurrency + \"))\" +\r\n\t\t\t\t\t\" And hea.portfolio_group_id > 0\";\r\n\r\n\t\tiRetVal = DBaseTable.execISql(tblInsNum, sQuery);\r\n\r\n//\t\tINCGeneralItau.print_msg(\"DEBUG\", \"(funcGetInsNum)\\n\" + sQuery);\r\n\r\n\t\tif (tblInsNum.getNumRows() > 0)\r\n\t\t{\r\n\t\t\tiRateDigits = tblInsNum.getInt(\"rate_digits\", 1);\r\n\t\t\tiCcy1Digits = tblInsNum.getInt(\"currency1_digits\", 1);\r\n\t\t\tiCcy2Digits = tblInsNum.getInt(\"currency2_digits\", 1);\r\n\r\n\t\t\tiRounding[0] = iRateDigits;\r\n\t\t\tiRounding[1] = iCcy1Digits;\r\n\t\t\tiRounding[2] = iCcy2Digits;\r\n\t\t}\r\n\t\ttblInsNum.destroy();\r\n\r\n\t\treturn iRounding;\r\n\t}", "public int getPeriod() {\n return period;\n }", "public int getPeriod()\r\n\t{\r\n\t\treturn period;\r\n\t}", "public interface Period {\n\n\tDate getStart();\n\n\tDate getEnd();\n}", "public List<Reserva> getReservasPeriod(String dateOne, String dateTwo){\n /**\n * Instancia de SimpleDateFormat para dar formato correcto a fechas.\n */\n SimpleDateFormat parser = new SimpleDateFormat(\"yyyy-MM-dd\");\n /**\n * Crear nuevos objetos Date para recibir fechas fomateadas.\n */\n Date dateOneFormatted = new Date();\n Date dateTwoFormatted = new Date();\n /**\n * Intentar convertir las fechas a objetos Date; mostrar registro de\n * la excepción si no se puede.\n */\n try {\n dateOneFormatted = parser.parse(dateOne);\n dateTwoFormatted = parser.parse(dateTwo);\n } catch (ParseException except) {\n except.printStackTrace();\n }\n /**\n * Si la fecha inicial es anterior a la fecha final, devuelve una lista\n * de Reservas creadas dentro del intervalo de fechas; si no, devuelve\n * un ArrayList vacío.\n */\n if (dateOneFormatted.before(dateTwoFormatted)){\n return repositorioReserva.findAllByStartDateAfterAndStartDateBefore\n (dateOneFormatted, dateTwoFormatted);\n } else {\n return new ArrayList<>();\n }\n }", "private TimeSeries createEURTimeSeries(String WellID, String lang) {\n int count = 0;\n String precipitation = \"\";\n if(lang.equals(\"EN\")){\n precipitation = precipitation_en;\n }else{\n precipitation = precipitation_fr;\n }\n TimeSeries t1 = new TimeSeries(precipitation + \" (mm)\");\n //System.out.println (t1.getMaximumItemCount()); \n Hour begin = new Hour( 1, 1, 1, 2005);\n Hour end = new Hour(23, 31, 12, 2012);\n String endStr = end.toString();\n String str = begin.toString();\n \n for(Hour h1 = begin; !str.equals(endStr) ; h1 = (Hour) h1.next()){\n Second s = new Second(0, 0, h1.getHour(), h1.getDayOfMonth(), h1.getMonth(), h1.getYear());\n t1.addOrUpdate(s, new Double(Double.NaN)); \n str = h1.toString();\n }\n \n try {\n // Open the file that is the first \n // command line parameter\n FileInputStream fstream = new FileInputStream(\"Y:\\\\PGMN\\\\Precipitation\\\\\" + WellID + \".csv\");\n // Get the object of DataInputStream\n DataInputStream in = new DataInputStream(fstream);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String strLine;\n //Read File Line By Line\n int i = 0;\n while ((strLine = br.readLine()) != null) {\n if(i>0){ \n String [] temp = strLine.split(\",\");\n //System.out.println (i);\n String [] dateTimeAM = (temp[2]).split(\" \"); //08/20/2009 10:35:00 AM\n \n String [] dates = (dateTimeAM[0]).split(\"/\"); //6/10/2009\n int month = Integer.parseInt(dates[0]);\n int day = Integer.parseInt(dates[1]);\n int year = Integer.parseInt(dates[2]);\n //System.out.println (i);\n int hour = 0;\n int minute = 0;\n int second = 0; \n if (dateTimeAM.length > 1) {\n String [] temp3 = (dateTimeAM[1]).split(\":\"); //10:35:00\n hour = Integer.parseInt(temp3[0]);\n minute = Integer.parseInt(temp3[1]);\n second = Integer.parseInt(temp3[2]);\n //08/20/2009 10:35:00 AM\n if ((dateTimeAM[2]).equals(\"PM\")) {\n if (hour < 12) {\n hour = hour + 12;\n }\n }\n if ((dateTimeAM[2]).equals(\"AM\") && (hour == 12)) {\n hour = 0;\n }\n }\n Second s = new Second(second, minute, hour, day, month, year);\n //System.out.println(strLine);\n //System.out.println(year + \", \" + month + \", \" + day + \", \" + hour + \", \" + minute + \", \" + second);\n //Hour h = new Hour(hour, day, month, year);\n Double d = new Double(Double.NaN);\n //System.out.println(temp[2]);\n if (temp.length > 2){\n d = Double.parseDouble(temp[3]);// - depth;\n count ++;\n }\n t1.addOrUpdate(s, d);\n }\n i = i + 1;\n }\n in.close();\n \n }\n catch (Exception e) {\n System.err.println(e.getMessage());\n }\n \n return t1;\n }", "public double getRSI(double[] hArr) throws Exception {\n\t\tdouble up=0;\n\t\tdouble down=0;\n\t\tSystem.out.println(\"plz\" + hArr.length + \"?\" + period_day);\n\t\tfor(int i = 0; i < period_day; i++) {\n\t\t\t\n\t\t\tif(hArr[i] < hArr[i+1]) {\n\t\t\t\tup += hArr[i+1] - hArr[i];\n\t\t\t}\n\t\t\telse if(hArr[i] > hArr[i+1]){\n\t\t\t\tdown += hArr[i] - hArr[i+1];\n\t\t\t}\n\t\t}\n\t\t\n\t\tdouble RS = (up/period_day) / (down/period_day);\n\t\t\n\t\tdouble RSI = up / (up+down) * 100.0;\n\t\tRSI = 100 - (100 / (1 + RS));\n\t\t//System.out.println(\"RSI test cnt : \" + cnt);\n\t\treturn RSI;\n\t}", "PeriodCountCalculator<E> getPeriodCountCalculator();", "private PtoPeriodDTO accruePto(PtoPeriodDTO init, Employee employee) {\n\n\t\tDouble hoursAllowed = init.getHoursAllowed().doubleValue();\n\t\tDouble daysInPeriod = init.getDaysInPeriod().doubleValue();\n\t\tDouble dailyAccrual = hoursAllowed / daysInPeriod;\n\n\t\tlog.info(\"Daily Accrual Rate for this PTO Period: \" + dailyAccrual);\n\n\t\t// Check what the current date is, take the number of days difference\n\t\t// Since the beginning of the period\n\t\t\n\t\tDate beginDate = determineBeginDate(employee);\t\t\n\t\tDate endDate = ZonedDateTimeToDateConverter.INSTANCE.convert(init.getEndDate());\n\t\tDate today = ZonedDateTimeToDateConverter.INSTANCE.convert(ZonedDateTime.now());\n\t\t\n\t\tLong diff = today.getTime() - beginDate.getTime();\n\t\tLong daysPassed = (long) ((TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS)));\n\t\tlog.info(\"Days Passed: \" + daysPassed);\n\t\tLong hoursAccrued = (long) ((TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS)) * dailyAccrual);\n\t\tlog.info(\"Hours: \" + hoursAccrued);\n\t\tinit.setHoursAccrued(hoursAccrued);\n\t\tinit = deductTimeOff(init);\n\t\treturn init;\n\t\t\n\t}", "public static int[] makeBeforeInterval(ArrayList<Firm> list)\n\t{\n\t\tint dis = 1;\n\t\tint first = 0;\n\t\t\n\t\tint dis2 = 120;\t\t\n\t\tint last = 0;\n\t\t\n\t\tint years = (int)((float)(2*366));\n\t\tint quarter = 92; // # days in a qtr\n\t\t\n\t\tInteger filed = (Integer)(utils.qM2.get(list.get(0).getBankrupcy().get(0).filedIndex - quarter));\n\t\tInteger beforeFiled = (Integer)(utils.qM2.get(list.get(0).getBankrupcy().get(0).filedIndex - years));\n\n\t\tif(filed != null &&\n\t\t beforeFiled != null){\n\t\t\tlast = filed;\n\t\t\tfirst = beforeFiled;\n\t\t} else {\n\t\t\tlast = dis2;\n\t\t\tfirst = dis2 - years;\n\t\t}\t\t\n\t\t\n\t\tint mid = (first+last)/2;\n\t\tint[] x = new int[3];\n\t\tx[0]=first;\n\t\tx[1]=mid;\n\t\tx[2]=last;\t\t\n\t\treturn x;\t\n\t}", "public static void main(String[] args){\n\n\n DateTimeFormatter formatter1 = DateTimeFormat.forPattern(\"yyyy-MM-dd\");\n DateTime d1 = DateTime.parse(\"2018-05-02\",formatter1);\n DateTime d2 = DateTime.parse(\"2018-05-01\",formatter1);\n System.out.println(Days.daysIn(new Interval(d2,d1)).getDays());\n }", "public DayOfWeek primeiroDiaSemanaAno(int ano);", "@Test\n public void testHeterogeneousSegmentFilterConditionLimit() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n // val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\"\n // val seg1Id = \"8892fa3f-f607-4eec-8159-7c5ae2f16942\"\n // val seg2Id = \"d75a822c-788a-4592-a500-cf20186dded1\"\n // val seg3Id = \"54eaf96d-6146-45d2-b94e-d5d187f89919\"\n // val seg4Id = \"411f40b9-a80a-4453-90a9-409aac6f7632\"\n // val seg5Id = \"a8318597-cb75-416f-8eb8-96ea285dd2b4\"\n // \n val sql = \"with T1 as (select cal_dt, trans_id \\n\" + \"from test_kylin_fact inner join test_account \\n\"\n + \"on test_kylin_fact.seller_id = test_account.account_id \\n\"\n + \"where cal_dt between date'2012-01-01' and date'2012-01-03'\\n\" + \"group by cal_dt, trans_id)\\n\";\n\n {\n val sqlWithTooManyOrs = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 12) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 13) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 14) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 15) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 16) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 17) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 18) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 19) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 20)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithTooManyOrs);\n Assert.assertEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n {\n val sqlWithFilter = sql + \" select * from T1 where \" + \"(cal_dt='2012-01-01' and trans_id = 1) or \\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 2) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 3) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 4) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 5) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 6) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 7) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 8) or\\n\" + \"(cal_dt='2012-01-01' and trans_id = 9) or\\n\"\n + \"(cal_dt='2012-01-01' and trans_id = 10)\";\n val contexts = OlapContextTestUtil.getOlapContexts(project, sqlWithFilter);\n Assert.assertNotEquals(\n \">=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-01),<=(DEFAULT.TEST_KYLIN_FACT.CAL_DT, 2012-01-03)\",\n contexts.get(0).getExpandedFilterConditions().stream().map(RexNode::toString)\n .collect(Collectors.joining(\",\")));\n }\n\n }", "public static double getInterest()\r\n {\r\n // Your code goes here ... use cut and paste as much as possible!\r\n int i = 0;\r\n double monthlyIntRate = 0;\r\nwhile (i == 0) {\r\n Scanner s = new Scanner(System.in);\r\n System.out.print(\"Enter yearly interest rate (Ex 8.25): \");\r\n double yearlyIntRate = Double.parseDouble(s.nextLine());\r\n monthlyIntRate = yearlyIntRate / 12;\r\n\r\n if (yearlyIntRate < 3 || yearlyIntRate > 12) {\r\n i = 0;\r\n }\r\n else {\r\n i = 1;\r\n }\r\n }\r\n return monthlyIntRate;\r\n }", "public static double getGraidentBasedOnTradingDays(IGraphLine aLine, TreeSet<AbstractGraphPoint> listOfTradingDays) {\r\n double result = 0;\r\n if (null != aLine && null != listOfTradingDays) {\r\n AbstractGraphPoint myCurrStart = aLine.getCurrentC();\r\n AbstractGraphPoint myCurrEnd = aLine.getCurrentE();\r\n if (myCurrStart.getDateAsNumber() != myCurrEnd.getDateAsNumber()) {\r\n// TreeSet<AbstractGraphPoint> tDay = new TreeSet<AbstractGraphPoint>(AbstractGraphPoint.TimeComparator);\r\n// tDay.addAll(listOfTradingDays);\r\n //Calc P1\r\n //Get Market close time on start day\r\n Calendar endTrading = DTUtil.deepCopyCalendar(myCurrStart.getCalDate());\r\n endTrading.setTimeZone(DTConstants.EXCH_TIME_ZONE);\r\n endTrading.set(Calendar.HOUR_OF_DAY, DTConstants.EXCH_CLOSING_HOUR);\r\n endTrading.set(Calendar.MINUTE, DTConstants.EXCH_CLOSING_MIN);\r\n endTrading.set(Calendar.SECOND, DTConstants.EXCH_CLOSING_SEC);\r\n double p1 = endTrading.getTimeInMillis() - myCurrStart.getCalDate().getTimeInMillis();\r\n //double p1 = endTrading.getTimeInMillis() - (myCurrStart.getCalDate().getTimeInMillis() - DTConstants.MILLSECS_PER_HOUR);\r\n //Now calculate P2\r\n //Get Market open time on end day\r\n Calendar startTrading = DTUtil.deepCopyCalendar(myCurrEnd.getCalDate());\r\n startTrading.setTimeZone(DTConstants.EXCH_TIME_ZONE);\r\n startTrading.set(Calendar.HOUR_OF_DAY, DTConstants.EXCH_OPENING_HOUR);\r\n startTrading.set(Calendar.MINUTE, DTConstants.EXCH_OPENING_MIN);\r\n startTrading.set(Calendar.SECOND, DTConstants.EXCH_OPENING_SEC);\r\n double p2 = (myCurrEnd.getCalDate().getTimeInMillis() - startTrading.getTimeInMillis());\r\n //double p2 = (myCurrEnd.getCalDate().getTimeInMillis() - DTConstants.MILLSECS_PER_HOUR) - startTrading.getTimeInMillis();\r\n //Now calc P3\r\n //Get count of trading days from list\r\n// int currStartDay = myCurrStart.getDateAsNumber();\r\n// int currEndDay = myCurrEnd.getDateAsNumber();\r\n// NavigableSet<AbstractGraphPoint> subSet = new TreeSet<AbstractGraphPoint>();\r\n// for(AbstractGraphPoint currPoint : tDay){\r\n// int currDay = currPoint.getDateAsNumber();\r\n// if(currDay > currStartDay && currDay < currEndDay){\r\n// subSet.add(currPoint);\r\n// }\r\n// }\r\n NavigableSet<AbstractGraphPoint> subSet = listOfTradingDays.subSet(myCurrStart, false, myCurrEnd, false);\r\n ArrayList<AbstractGraphPoint> theSet = new ArrayList<AbstractGraphPoint>();\r\n theSet.addAll(subSet);\r\n for (AbstractGraphPoint currPoint : theSet) {\r\n if (currPoint.getDateAsNumber() == myCurrStart.getDateAsNumber() || currPoint.getDateAsNumber() == myCurrEnd.getDateAsNumber()) {\r\n subSet.remove(currPoint);\r\n }\r\n }\r\n double dayCount = subSet.size();\r\n double p3 = dayCount * DTUtil.msPerTradingDay();\r\n\r\n //Sum all three parts as deltaX\r\n double deltaX = p1 + p2 + p3;\r\n double deltaY = myCurrEnd.getLastPrice() - myCurrStart.getLastPrice();\r\n\r\n //Gradient is deltaY / deltaX\r\n result = deltaY / deltaX;\r\n\r\n System.out.println(\"Delta Y = \" + deltaY);\r\n System.out.println(\"Delta X = \" + deltaX);\r\n System.out.println(aLine.toString());\r\n } else {\r\n result = aLine.getGradient();\r\n System.out.println(aLine.toString());\r\n }\r\n }\r\n return result;\r\n }", "private void getSA_PeriodForIMR(ScalarIntensityMeasureRelationshipAPI imr){\n ListIterator it =imr.getSupportedIntensityMeasuresIterator();\n while(it.hasNext()){\n DependentParameterAPI tempParam = (DependentParameterAPI)it.next();\n if(tempParam.getName().equalsIgnoreCase(this.SA_NAME)){\n ListIterator it1 = tempParam.getIndependentParametersIterator();\n while(it1.hasNext()){\n ParameterAPI independentParam = (ParameterAPI)it1.next();\n if(independentParam.getName().equalsIgnoreCase(this.SA_PERIOD)){\n saPeriodVector = ((DoubleDiscreteParameter)independentParam).getAllowedDoubles();\n numSA_PeriodVals = saPeriodVector.size();\n }\n }\n }\n }\n }", "public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }", "public Periodo obtenerPrimerContactoCliente(Long oidCliente)\n throws MareException {\n UtilidadesLog.info(\"DAOConcursosRanking.obtenerPrimerContactoCliente(\"\n +\"Long oidCliente):Entrada\");\n\n RecordSet r = null;\n StringBuffer sqlQuery = new StringBuffer();\n\n Periodo resu = null;\n\n sqlQuery.append(\" Select mcpc.PERD_OID_PERI oidPeri, crap.FEC_INIC, \");\n sqlQuery.append(\" crap.FEC_FINA, crap.PAIS_OID_PAIS, \");\n sqlQuery.append(\" crap.MARC_OID_MARC, crap.CANA_OID_CANA, \");\n sqlQuery.append(\" spc.COD_PERI \");\n sqlQuery.append(\" FROM MAE_CLIEN_PRIME_CONTA mcpc, CRA_PERIO crap, \");\n sqlQuery.append(\" SEG_PERIO_CORPO spc \");\n sqlQuery.append(\" WHERE \");\n sqlQuery.append(\" mcpc.CLIE_OID_CLIE = \" + oidCliente.longValue());\n sqlQuery.append(\" AND mcpc.PERD_OID_PERI = crap.OID_PERI \");\n sqlQuery.append(\" AND mcpc.PERD_OID_PERI = spc.OID_PERI\");\n\n try {\n BelcorpService bs = BelcorpService.getInstance();\n r = bs.dbService.executeStaticQuery(sqlQuery.toString());\n UtilidadesLog.debug(\"resultado query: \" + r);\n\n if ((r != null) && (r.getRowCount() > 0) && \n (r.getRowCount() == 1)) {\n \n resu = new Periodo();\n\n Object o = null;\n Date fechaInicio = (Date) r.getValueAt(0, \"FEC_INIC\");\n Date fechaFin = (Date) r.getValueAt(0, \"FEC_FINA\");\n\n resu.setCodperiodo(((o = r.getValueAt(0, \"COD_PERI\")) != null)\n ? (String) o : null);\n resu.setFechaDesde(fechaInicio);\n resu.setFechaHasta(fechaFin);\n resu.setOidCanal(((o = r.getValueAt(0, \"CANA_OID_CANA\")) \n != null) ? new Long(((BigDecimal) o).toString()) : null);\n resu.setOidMarca(((o = r.getValueAt(0, \"MARC_OID_MARC\")) \n != null) ? new Long(((BigDecimal) o).toString()) : null);\n resu.setOidPais(((o = r.getValueAt(0, \"PAIS_OID_PAIS\")) \n != null) ? new Long(((BigDecimal) o).toString()) : null);\n resu.setOidPeriodo(((o = r.getValueAt(0, \"PERD_OID_PERI\")) \n != null) ? new Long(((BigDecimal) o).toString()) : null);\n }\n } catch (Exception ex) {\n UtilidadesLog.error(\"ERROR \", ex);\n\n String sCodigoError = CodigosError\n .ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(ex,\n UtilidadesError.armarCodigoError(sCodigoError));\n }\n\n UtilidadesLog.info(\"DAOConcursosRanking.obtenerPrimerContactoCliente(\"\n +\"Long oidCliente):Salida\");\n\n return resu;\n }", "private boolean isValidPeriod(int period) {\r\n\t\treturn (period > 0 && period < 366); \r\n\t}", "@Test\n void deve_retornar_o_periodo_second_period_in() {\n List<LocalTime> localTimes = Arrays.asList(LocalTime.parse(\"10:30:00\"), LocalTime.parse(\"10:30:00\"));\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.SECOND_PERIOD_IN, response);\n }", "protected final int calculateInterst1(int pr){\n\t\t return pr*10*1/100;\n\t }", "@Test\n public void firstRatingsIsLate() {\n LocalDateTime firstTime = LocalDateTime.of(2017, Month.JANUARY, 1, 0, 0);\n\n //start with creating tp (proportional)\n // |------|\n TimePeriod tp = new TimePeriod(firstTime.plusHours(0), firstTime.plusHours(7));\n\n\n /**match tp with ratings and chunkEnd so we have (proportional scale)\n * ratings |--o----||\n * tp: |-------|\n *\n */\n ScoreTime rStart = new ScoreTime(firstTime.plusHours(2), 3);\n LocalDateTime chunkEnd = firstTime.plusHours(7); //=> same as tp.end\n\n //this is the method we are testing\n double[] avgscoreAndWeight = RatingTime.calcAvgAndWeight(tp, Arrays.asList(rStart),\n chunkEnd);\n assertEquals(3.0, avgscoreAndWeight[0]);\n\n /* weight should equal durationOfRatingsInScopeOfTp/tp.duration\n timeOfRatingsInScopeOfTp = 5 hours\n tp.duration = 7 hours.\n weight should be 5/7\n */\n\n assertEquals(5. / 7., avgscoreAndWeight[1], 0.01);\n }", "int existsSame(String startDate1,String endDate1,String startDate2,String endDate2) throws SQLException, ParseException {\n Connection con = db.connection();\n PreparedStatement stmt = con.prepareStatement(\"select id from rateplan where rp1startdate = ? and rp1enddate = ? and rp2startdate = ? and rp2enddate = ?\");\n stmt.setDate(1,getDate(startDate1));\n stmt.setDate(2,getDate(endDate1));\n stmt.setDate(3,getDate(startDate2));\n stmt.setDate(4,getDate(endDate2));\n\n ResultSet rs = stmt.executeQuery();\n if (rs.next())\n return rs.getInt(1);\n return -1;\n\n }", "Constant getCyclePeriodConstant();", "@Test\n public void firstRatingAfterTpStartANDChunkEndBeforeTpEndTest() {\n LocalDateTime firstTime = LocalDateTime.of(2017, Month.JANUARY, 1, 0, 0);\n\n //start with creating tp (proportional)\n // |-----|\n TimePeriod tp = new TimePeriod(firstTime, firstTime.plusHours(6));\n\n /**match tp with ratings so we have (proportional scale)\n * ratings |-o--||\n * tp: |-----|\n *\n */\n ScoreTime rStart = new ScoreTime(firstTime.plusHours(2), 4);\n LocalDateTime chunkEnd = firstTime.plusHours(5); //=> 1 hour before tp.end\n\n //this is the method we are testing\n double[] avgscoreAndWeight = RatingTime.calcAvgAndWeight(tp, Arrays.asList(rStart),\n chunkEnd);\n assertEquals(4.0, avgscoreAndWeight[0]);\n\n /* weight should equal durationOfRatingsInScopeOfTp/tp.duration\n ratingsInScopeOfTp = 3 hours\n tp.duration = 6 hours.\n weight should be 3/6 = 1/2 = 0.5...\n */\n\n assertEquals(0.5, avgscoreAndWeight[1]);\n }", "public Boolean checkPeriod( ){\r\n\r\n Date dstart = new Date();\r\n Date dend = new Date();\r\n Date dnow = new Date();\r\n\r\n\r\n\r\n // this part will read the openndate file in specific formate\r\n try (BufferedReader in = new BufferedReader(new FileReader(\"opendate.txt\"))) {\r\n String str;\r\n while ((str = in.readLine()) != null) {\r\n // splitting lines on the basis of token\r\n String[] tokens = str.split(\",\");\r\n String [] d1 = tokens[0].split(\"-\");\r\n String [] d2 = tokens[1].split(\"-\");\r\n \r\n int a = Integer.parseInt(d1[0]);\r\n dstart.setDate(a);\r\n a = Integer.parseInt(d1[1]);\r\n dstart.setMonth(a);\r\n a = Integer.parseInt(d1[2]);\r\n dstart.setYear(a);\r\n\r\n a = Integer.parseInt(d2[0]);\r\n dend.setDate(a);\r\n a = Integer.parseInt(d2[1]);\r\n dend.setMonth(a);\r\n a = Integer.parseInt(d2[2]);\r\n dend.setYear(a);\r\n\r\n }\r\n } catch (Exception e) {\r\n System.out.println(\"File Read Error\");\r\n }\r\n\r\n \r\n\r\n if ( dnow.before(dend) && dnow.after(dstart) )\r\n return true; \r\n\r\n return true;\r\n }", "Integer getTenYear();", "public org.drip.analytics.cashflow.CompositePeriod firstPeriod()\n\t{\n\t\treturn periods().get (0);\n\t}", "@Override // com.google.android.exoplayer2.source.AbstractConcatenatedTimeline\n public int getFirstPeriodIndexByChildIndex(int i) {\n if (i == 0) {\n return 0;\n }\n return this.sourcePeriodOffsets[i - 1];\n }", "@Test\n public void testHeterogeneousSegment() throws SqlParseException {\n\n val project = \"heterogeneous_segment\";\n val dfId = \"747f864b-9721-4b97-acde-0aa8e8656cba\";\n val expectedRanges = Lists.<Pair<String, String>> newArrayList();\n val segmentRange1 = Pair.newPair(\"2012-01-01\", \"2012-01-02\");\n val segmentRange2 = Pair.newPair(\"2012-01-02\", \"2012-01-03\");\n val segmentRange3 = Pair.newPair(\"2012-01-03\", \"2012-01-04\");\n val segmentRange4 = Pair.newPair(\"2012-01-04\", \"2012-01-05\");\n val segmentRange5 = Pair.newPair(\"2012-01-05\", \"2012-01-06\");\n val layout_20000000001 = 20000000001L;\n val layout_20001 = 20001L;\n val layout_10001 = 10001L;\n\n val sql = \"select cal_dt, sum(price) from test_kylin_fact inner join test_account on test_kylin_fact.seller_id = test_account.account_id \";\n\n val no_filter = sql + \"group by cal_dt\";\n assertNoRealizationFound(project, no_filter);\n\n val sql1_date = sql\n + \"where cal_dt = DATE '2012-01-01' or (cal_dt >= DATE '2012-01-02' and cal_dt < DATE '2012-01-04') group by cal_dt\";\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n expectedRanges.add(segmentRange3);\n assertPrunedSegmentsRange(project, sql1_date, dfId, expectedRanges, layout_20001, null);\n\n val sql1_date_string = sql\n + \"where cal_dt = '2012-01-01' or (cal_dt >= '2012-01-02' and cal_dt < '2012-01-04') group by cal_dt\";\n assertPrunedSegmentsRange(project, sql1_date_string, dfId, expectedRanges, layout_20001, null);\n\n val sql2_date = sql + \"where cal_dt >= DATE '2012-01-03' and cal_dt < DATE '2012-01-10' group by cal_dt\";\n expectedRanges.clear();\n expectedRanges.add(segmentRange3);\n expectedRanges.add(segmentRange4);\n expectedRanges.add(segmentRange5);\n assertPrunedSegmentsRange(project, sql2_date, dfId, expectedRanges, layout_10001, null);\n\n val sql2_date_string = sql + \"where cal_dt >= '2012-01-03' and cal_dt < '2012-01-10' group by cal_dt\";\n assertPrunedSegmentsRange(project, sql2_date_string, dfId, expectedRanges, layout_10001, null);\n\n // pruned segments do not have capable layout to answer\n val sql3_no_layout = \"select trans_id from test_kylin_fact \"\n + \"inner join test_account on test_kylin_fact.seller_id = test_account.account_id \"\n + \"where cal_dt > '2012-01-03' and cal_dt < '2012-01-05'\";\n assertNoRealizationFound(project, sql3_no_layout);\n\n expectedRanges.clear();\n expectedRanges.add(segmentRange1);\n expectedRanges.add(segmentRange2);\n val sql4_table_index = \"select trans_id from test_kylin_fact \"\n + \"inner join test_account on test_kylin_fact.seller_id = test_account.account_id \"\n + \"where cal_dt > '2012-01-01' and cal_dt < '2012-01-03'\";\n assertPrunedSegmentsRange(project, sql4_table_index, dfId, expectedRanges, layout_20000000001, null);\n\n // pruned segments do not have capable layout to answer\n val sql5 = \"select trans_id, sum(price) \"\n + \"from test_kylin_fact inner join test_account on test_kylin_fact.seller_id = test_account.account_id \"\n + \"where cal_dt > '2012-01-03' and cal_dt < '2012-01-06' group by trans_id\";\n\n assertNoRealizationFound(project, sql5);\n }", "@Test\n void deve_retornar_o_periodo_first_period_out() {\n List<LocalTime> localTimes = Arrays.asList(LocalTime.parse(\"10:30:00\"));\n TimeCourseEnum response = timeService.addPeriod(localTimes);\n Assert.assertEquals(TimeCourseEnum.FIRST_PERIOD_OUT, response);\n }", "@Test\n\tpublic void testConvertToDocument() throws Exception {\n\n\t\tISource source = new Source();\n\t\tsource.setShortTitle(\"shortTitle\");\n\t\tsource.setSourceType(\"sourceType\");\n\t\tsource.setShortRef(\"shortRef\");\n\t\tsource.setUrl(\"url\");\n\t\tsource.setProductCode(\"productCode\");\n\t\tsource.setAuthor(\"author\");\n\t\tsource.setCitation(\"citation\");\n\t\tsource.setLongTitle(\"longTitle\");\n\t\tsource.setCopyright(\"copyright\");\n\t\tsource.setDescription(\"Description\");\n\t\tsource.setDescriptionMarkup(\"default\");\n\t\tsource.setColor(0x123456);\n\t\tsource.setCreated(1L);\n\t\tsource.setModified(2L);\n\n\t\tList<IPeriod> list = new ArrayList<>();\n\n\t\t// add a few periods\n\t\tIPeriod period1 = new Period();\n\t\tperiod1.setFromEntry(\"1.1585\");\n\t\tperiod1.setToEntry(\"2.1585\");\n\t\tperiod1.setCreated(1L);\n\t\tperiod1.setModified(2L);\n\t\tlist.add(period1);\n\n\t\tIPeriod period2 = new Period();\n\t\tperiod2.setFromEntry(\"1929\");\n\t\tperiod2.setToEntry(\"1930\");\n\t\tperiod2.addFuzzyFromFlag('c');\n\t\tperiod2.addFuzzyToFlag('?');\n\t\tperiod2.setCreated(1L);\n\t\tperiod2.setModified(2L);\n\t\tlist.add(period2);\n\n\t\tIPeriod period3 = new Period();\n\t\tperiod3.setFromEntry(\"1.1.1700\");\n\t\tperiod3.setToEntry(\"5.6.1702\");\n\t\tperiod3.setCreated(1L);\n\t\tperiod3.setModified(2L);\n\t\tlist.add(period3);\n\n\t\tIPeriod period4 = new Period();\n\t\tperiod4.setFromEntry(null);\n\t\tperiod4.setToEntry(\"1596\");\n\t\tperiod4.addFuzzyToFlag('c');\n\t\tperiod4.setCreated(1L);\n\t\tperiod4.setModified(2L);\n\t\tlist.add(period4);\n\n\t\tIPeriod period5 = new Period();\n\t\tperiod5.setFromEntry(\"5.1.901\");\n\t\tperiod5.setToEntry(null);\n\t\tperiod5.addFuzzyFromFlag('?');\n\t\tperiod5.setCreated(1L);\n\t\tperiod5.setModified(2L);\n\t\tlist.add(period5);\n\n\t\tIPeriod period6 = new Period();\n\t\tperiod6.setFromEntry(\"19.6.1601\");\n\t\tperiod6.setToEntry(\"19.6.1601\");\n\t\tperiod6.setCreated(1L);\n\t\tperiod6.setModified(2L);\n\t\tlist.add(period6);\n\n\t\t// add periods\n\t\tsource.setPeriods(list);\n\n\t\t// first without id\n\t\tODocument document = repository.convertToDocument(source);\n\n\t\tassertEquals(\"shortTitle\", document.field(\"shortTitle\"));\n\t\tassertEquals(\"sourceType\", document.field(\"sourceType\"));\n\t\tassertEquals(\"shortRef\", document.field(\"shortRef\"));\n\t\tassertEquals(\"url\", document.field(\"url\"));\n\t\tassertEquals(\"productCode\", document.field(\"productCode\"));\n\t\tassertEquals(\"author\", document.field(\"author\"));\n\t\tassertEquals(\"citation\", document.field(\"citation\"));\n\t\tassertEquals(\"longTitle\", document.field(\"longTitle\"));\n\t\tassertEquals(\"copyright\", document.field(\"copyright\"));\n\t\tassertEquals(\"Description\", document.field(\"description\"));\n\t\tassertEquals(\"default\", document.field(\"descriptionMarkup\"));\n\t\tassertEquals(new Integer(0x123456), document.field(\"color\", Integer.class));\n\t\tassertEquals(new Long(1L), document.field(\"created\", Long.class));\n\t\tassertEquals(new Long(2L), document.field(\"modified\", Long.class));\n\n\t\tassertEquals(period5.getFromJD(), document.field(\"minJD\"));\n\t\tassertEquals(period2.getToJD(), document.field(\"maxJD\"));\n\t\tassertEquals(period5.getFromEntry(), document.field(\"minEntry\"));\n\t\tassertEquals(period2.getToEntry(), document.field(\"maxEntry\"));\n\t\tassertEquals(period5.getFromEntryCalendar(), document.field(\"minEntryCalendar\"));\n\t\tassertEquals(period2.getToEntryCalendar(), document.field(\"maxEntryCalendar\"));\n\t\tassertEquals(\"?\", document.field(\"minFuzzyFlags\"));\n\t\tassertEquals(\"?\", document.field(\"maxFuzzyFlags\"));\n\n\t\t// save document to get id\n\t\tdocument.save();\n\t\tString id = document.getIdentity().toString();\n\n\t\t// set id and test conversion\n\t\tsource.setId(id);\n\n\t\tODocument newDocument = repository.convertToDocument(source);\n\n\t\tassertEquals(document.getIdentity().toString(), newDocument.getIdentity().toString());\n\t}", "public void lookUpNextDate(int i) throws IllegalCommandArgumentException {\n if (i < wordsOfInput.length-2) { \n if (wordsOfInput[i+2].toLowerCase().matches(Constants.DAYS)) {\n // by next (day)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(wordsOfInput[i+2], 1);\n \n // by next day (starttime)\n if (i < wordsOfInput.length-3 && wordsOfInput[i+3].toLowerCase().matches(timePattern)) {\n containsStartTime = true;\n startTime = wordsOfInput[i+3];\n \n // by next day starttime (endtime)\n if (i < wordsOfInput.length - 5 && \n wordsOfInput[i+4].toLowerCase().matches(Constants.DATE_END_PREPOSITION)) {\n checkForEndTimeInput(i+5);\n }\n } \n } else if (wordsOfInput[i+2].toLowerCase().matches(\"week|wk\")) {\n // by next (week)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 2);\n } else if (wordsOfInput[i+2].toLowerCase().matches(\"month|mth\")) {\n // by next (month)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 3);\n } else if (wordsOfInput[i+2].toLowerCase().matches(\"year|yr\")) {\n // by next (year)\n containsStartDate = true;\n index = tpsIndex > i ? i : tpsIndex ;\n produceDateFromDay(null, 4);\n }\n }\n }", "@Test\n public void monthly_firstMonday_recursEveryFirstMonday() {\n assertTrue(firstMondayEveryMonth.includes(firstMondayOfApril));\n assertTrue(firstMondayEveryMonth.includes(firstMondayOfMarch));\n assertTrue(firstMondayEveryMonth.includes(firstMondayOfJan2018));\n assertFalse(firstMondayEveryMonth.includes(firstTuesdayOfMarch));\n }", "private void setStudAccPeriod() throws IOException {\n\n Scanner sc = new Scanner(System.in);\n\n String startDateTime,endDateTime=null;\n Calendar startCal = null, endCal = null;\n String[] dateTimeSplit;\n\n do {\n System.out.println(\"\\nPlease enter start date and time (yyyy MM dd HH mm):\");\n startDateTime = sc.nextLine();\n while(!startDateTime.matches(\"^\\\\d{4} \\\\d{2} \\\\d{2} \\\\d{2} \\\\d{2}$\"))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"\\nPlease enter start date and time (yyyy MM dd HH mm):\");\n startDateTime = sc.nextLine();\n }\n dateTimeSplit = startDateTime.split(\" \");\n startDateTime = dateTimeSplit[0]+\"-\"+dateTimeSplit[1]+\"-\"+dateTimeSplit[2]+\" \"+dateTimeSplit[3]+\":\"+dateTimeSplit[4];\n\n startCal = DateTimeManager.convertAccessStringToCalendar(startDateTime);\n\n if(startCal == null){\n System.out.println(\"Invalid input! Please enter again!\");\n continue;\n }\n\n System.out.println(\"Please enter end date and time (yyyy MM dd HH mm):\");\n endDateTime = sc.nextLine();\n while(!endDateTime.matches(\"^\\\\d{4} \\\\d{2} \\\\d{2} \\\\d{2} \\\\d{2}$\"))\n {\n System.out.println(\"Invalid input! Please enter again!\");\n System.out.println(\"Please enter end date and time (yyyy MM dd HH mm):\");\n endDateTime = sc.nextLine();\n }\n dateTimeSplit = endDateTime.split(\" \");\n endDateTime = dateTimeSplit[0]+\"-\"+dateTimeSplit[1]+\"-\"+dateTimeSplit[2]+\" \"+dateTimeSplit[3]+\":\"+dateTimeSplit[4];\n endCal = DateTimeManager.convertAccessStringToCalendar(endDateTime);\n if (endCal==null){\n System.out.println(\"Invalid input! Please enter again!\");\n continue;\n }\n\n if((endCal.before(startCal))||(endCal.equals(startCal)))\n System.out.println(\"Start access period can't be later than equal to end access period!\");\n }while(endCal.before(startCal)||(endCal == null)||(startCal == null)||endCal.equals(startCal));\n\n\n this.adminManager.addAccessPeriod(startDateTime, endDateTime);\n\n System.out.println(\"\\nSet student access period successfully!\\n\");\n\n }", "private int getFirstRepresentingDay() {\n\t\tint firstRepresentingDay;\r\n\t\tGregorianCalendar myCalendar = new GregorianCalendar(year, month, 1);\r\n\r\n\t\tint daysofMonth = myCalendar.getActualMaximum(Calendar.DAY_OF_MONTH);\r\n\t\tint firstDayMonth = myCalendar.get(Calendar.DAY_OF_WEEK); // First day of month (relative to the week)\r\n\t\tint globalFirstDayMonth = myCalendar.get(Calendar.DAY_OF_YEAR);\r\n\r\n\t\tif (settings.getBoolean(\"firstDayofWeek\", true)) { //The default option is the week starting on monday\r\n\t\t\tfirstDayMonth = firstDayMonth - 1;\r\n\t\t\tif (firstDayMonth == 0)\r\n\t\t\t\tfirstDayMonth = 7;\r\n\t\t\tfirstRepresentingDay = globalFirstDayMonth - (firstDayMonth - 1);\r\n\t\t}\r\n\t\telse { //else we start the week on Sunday\r\n\t\t\tfirstRepresentingDay = globalFirstDayMonth - (firstDayMonth - 1);\r\n\t\t}\r\n\t\tif (firstDayMonth + daysofMonth < 37)\r\n\t\t\tcount = RingActivity.five_week_calendar;\r\n\t\telse\r\n\t\t\tcount = RingActivity.six_week_calendar;\r\n\r\n\t\treturn firstRepresentingDay;\r\n\t}", "@Test\n public void test19() throws Throwable {\n double[] doubleArray0 = new double[5];\n PolynomialFunctionLagrangeForm polynomialFunctionLagrangeForm0 = new PolynomialFunctionLagrangeForm(doubleArray0, doubleArray0);\n try { \n UnivariateRealSolverUtils.bracket((UnivariateRealFunction) polynomialFunctionLagrangeForm0, 0.5, (-843.9991788437867), 1.0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // Abscissa 0 is duplicated at both indices 1 and 1\n //\n assertThrownBy(\"org.apache.commons.math.analysis.polynomials.PolynomialFunctionLagrangeForm\", e);\n }\n }", "private void givenExchangeRateExistsForABaseAndDate() {\n }", "@Test\n public void lab6() {\n StudentService ss = new StudentService();\n Utils.fillStudents(ss);\n\n List<Student> students = ss.getAllStudents();\n\n long count = students.stream()\n .filter(s -> s.getDob().until(LocalDate.now(), ChronoUnit.YEARS) > 20)\n .collect(counting());\n\n }", "public interface IFlexiblePeriod <DATATYPE> extends IPeriodProvider, IHasStartAndEnd <DATATYPE>, Serializable\r\n{\r\n /**\r\n * Check if this object is valid for this specific date.\r\n * \r\n * @param aDate\r\n * The date to be checked. May not be <code>null</code>.\r\n * @return <code>true</code> if this object is valid for this date,\r\n * <code>false</code> otherwise.\r\n */\r\n boolean isValidFor (@Nonnull DATATYPE aDate);\r\n\r\n /**\r\n * This is a shortcut method for checking the validity of the object for the\r\n * current date and time.\r\n * \r\n * @return <code>true</code> if this object is valid for the current date,\r\n * <code>false</code> otherwise.\r\n */\r\n boolean isValidForNow ();\r\n}", "private void verifyPeriod(Date start, Date end){\n List dates = logRepositoy.findAllByDateGreaterThanEqualAndDateLessThanEqual(start, end);\n if(dates.isEmpty()){\n throw new ResourceNotFoundException(\"Date range not found\");\n }\n }", "@Override // com.google.android.exoplayer2.source.AbstractConcatenatedTimeline\n public int getChildIndexByPeriodIndex(int i) {\n return Util.binarySearchFloor(this.sourcePeriodOffsets, i, true, false) + 1;\n }", "public static void main(String[] args) {\r\n\t Scanner in = new Scanner(System.in);\r\n\t int d1 = in.nextInt();\r\n\t int m1 = in.nextInt();\r\n\t int y1 = in.nextInt();\r\n\t int d2 = in.nextInt();\r\n\t int m2 = in.nextInt();\r\n\t int y2 = in.nextInt();\r\n\t LocalDate returnDate=LocalDate.of(y1,m1,d1);\r\n\t LocalDate dueDate=LocalDate.of(y2,m2,d2);\r\n\t long fine=0;\r\n\t if(returnDate.isBefore(dueDate)||returnDate.equals(dueDate))fine=0;\r\n\t else if(returnDate.isAfter(dueDate)){\r\n\t \tif(returnDate.getYear()==dueDate.getYear()){\r\n\t \t\tif(returnDate.getMonth()==dueDate.getMonth()){\r\n\t \t\t\tfine=(returnDate.getDayOfYear()-dueDate.getDayOfYear())*15;\r\n\t \t\t}else{\r\n\t \t\t\t\tfine=(returnDate.getMonthValue()-dueDate.getMonthValue())*500;\r\n\t \t\t\r\n\t \t}\r\n\t \t\t\r\n\t \t\t\r\n\t } else fine=10000;\r\n\t }else fine=10000;\r\n\t System.out.println(fine);\r\n\t }" ]
[ "0.61014295", "0.59070873", "0.5706494", "0.56654197", "0.54985666", "0.5348566", "0.5152741", "0.51298404", "0.51269376", "0.5108698", "0.50232583", "0.5003782", "0.49896067", "0.4987303", "0.498727", "0.4982002", "0.49371168", "0.49167654", "0.48957014", "0.48879114", "0.4883687", "0.48547193", "0.48457074", "0.48356128", "0.4835427", "0.47900283", "0.47603285", "0.47563356", "0.4751829", "0.4741373", "0.47396043", "0.47360626", "0.47119102", "0.4700488", "0.46795464", "0.46781155", "0.46773165", "0.4676948", "0.46716118", "0.46698788", "0.46664354", "0.46625718", "0.46566188", "0.4652468", "0.46519765", "0.46436495", "0.46374708", "0.46233922", "0.4618163", "0.4613007", "0.45980418", "0.45957425", "0.45945528", "0.45921898", "0.45873496", "0.45836824", "0.45784235", "0.45783597", "0.45732138", "0.45698458", "0.4569447", "0.4566443", "0.45608687", "0.4558498", "0.4557774", "0.4553555", "0.4551234", "0.45482412", "0.4546878", "0.45435625", "0.45380706", "0.45179832", "0.45109975", "0.45089495", "0.4494078", "0.4492635", "0.44857085", "0.4485217", "0.44796115", "0.44691294", "0.44628996", "0.44599292", "0.4459599", "0.4457789", "0.4450994", "0.44501677", "0.44495612", "0.4449508", "0.44480354", "0.4438997", "0.44378847", "0.44371545", "0.44344404", "0.4434267", "0.4432579", "0.44291037", "0.44290924", "0.44160149", "0.441525", "0.44100615" ]
0.49327877
17
What you want to schedule goes here
@Override public void run() { if (config.DebugLogging) { getLogger().info("Reverting Ice to Water to prevent server overload"); } Block fixblock = getServer().getWorld(blockloc.getWorld().getName()).getBlockAt(blockloc); fixblock.setType(Material.STATIONARY_WATER); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void schedule();", "private void scheduleJob() {\n\n }", "private void beginSchedule(){\n\t\tDivaApp.getInstance().submitScheduledTask(new RandomUpdater(this), RandomUpdater.DELAY, RandomUpdater.PERIOD);\n\t}", "public void generateSchedule(){\n\t\t\n\t}", "public void scheduleJobs();", "@Override\r\n\tpublic void doInitialSchedules() {\n\t}", "@Override\n public void run() {\n schedule();\n }", "abstract public void computeSchedule();", "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 }", "protected void runEachDay() {\n \n }", "public void startScheduling() {\n new Thread(new Runnable() {\n public void run() {\n while(true) {\n try {\n Thread.sleep(30000);\n Calendar c = Calendar.getInstance();\n int min = c.get(Calendar.MINUTE);\n if (((min % 10) == 0) || (min == 0)) {\n boolean action = getLightOnWhenMovementDetectedSchedule().getCurrentSchedule();\n if (action) {\n configureSwitchOnWhenMovement(true);\n } else {\n configureSwitchOnWhenMovement(false);\n }\n action = getLightSchedule().getCurrentSchedule();\n if (action) {\n switchOn();\n } else {\n switchOff();\n }\n saveHistoryData();\n }\n Thread.sleep(30000);\n } catch (InterruptedException e) {\n return;\n } catch (RemoteHomeConnectionException e) {\n e.printStackTrace();\n } catch (RemoteHomeManagerException e) {\n e.printStackTrace();\n }\n }\n }\n }).start(); \n }", "private void schedule() {\n service.scheduleDelayed(task, schedulingInterval);\n isScheduled = true;\n }", "@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 }", "@Override\n public void periodic() {\n // This method will be called once per scheduler 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 public void run() {\n createScheduleFile();\n createWinnerScheduleFile();\n }", "protected void runEach10Minutes() {\n try {\n saveHistoryData();\n if (isEnabledScheduler()) {\n boolean action = getLightSchedule().getCurrentSchedule();\n if (action) {\n if (!currentState) switchOn();\n } else {\n if (currentState) switchOff();\n }\n }\n } catch (RemoteHomeManagerException e) {\n RemoteHomeManager.log.error(44,e);\n } catch (RemoteHomeConnectionException e) {\n RemoteHomeManager.log.error(45,e);\n }\n }", "@Override\n public void mySchedule(String date) {\n FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULEV2, RequestMethod.POST);\n request.add(\"username\", application.getSystemUtils().getDefaultUsername());\n request.add(\"token\", application.getSystemUtils().getToken());\n request.add(\"date\", date);\n request.add(MethodCode.DEVICEID, application.getSystemUtils().getSn());\n request.add(MethodCode.DEVICETYPE, SystemUtils.deviceType);\n request.add(MethodCode.APPVERSION, SystemUtils.getVersionName(context));\n addQueue(MethodCode.EVENT_MYSCHEDULE, request);\n\n\n// startQueue();\n }", "@Override\n public void autonomousPeriodic() {\n \n Scheduler.getInstance().run();\n \n }", "protected abstract void scheduleSuspicions();", "void schedule(ScheduledJob job);", "public abstract void maintenanceSchedule() ;", "protected void runEachMinute() {\n \n }", "public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n }", "public void buildSchedule() {\n class SimulationStep extends BasicAction {\n public void execute() {\n SimUtilities.shuffle(rabbitList);\n for (int i = 0; i < rabbitList.size(); i++) {\n RabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n rabbit.step();\n }\n\n reapDeadRabbits();\n\n displaySurf.updateDisplay();\n }\n }\n schedule.scheduleActionBeginning(0, new SimulationStep());\n\n class GrassGrowth extends BasicAction {\n public void execute() {\n space.spreadGrass(grassGrowthRate);\n }\n }\n schedule.scheduleActionBeginning(0, new GrassGrowth());\n\n class UpdatePopulationPlot extends BasicAction {\n public void execute() {\n populationPlot.step();\n }\n }\n schedule.scheduleActionAtInterval(5, new UpdatePopulationPlot());\n }", "public void initAlgorithm() {\n executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 1, 5,TimeUnit.MINUTES);\n// executor.scheduleAtFixedRate(scheduledThoughtsProducer::periodicalThoughtsCheck, 2, 10,TimeUnit.SECONDS);\n\n // every day perform random thought dice roll\n // also roll for random time: 10am - 9pm\n Cron4j.scheduler.schedule(Cron4j.EVERY_DAY_AT_10_AM, () -> {\n int produceThoughtDice = (int) (Math.random() * 3); // 66% yes, 33% no\n if (produceThoughtDice < 2) {\n int timeShift = (int) (Math.random() * 12); // 0-11\n executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, timeShift, TimeUnit.HOURS);\n } else {\n System.out.println(\"Thought not produced today because of the dice: \" + produceThoughtDice);\n }\n });\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n// executor.schedule(scheduledThoughtsProducer::periodicalThoughtProduceSuitable, 0, TimeUnit.SECONDS);\n// });\n\n // every week perform a statistical overview\n // should be not very long and with a lot of variations\n Cron4j.scheduler.schedule(Cron4j.EVERY_WEEK_SUNDAY_18_PM, () -> {\n// Cron4j.scheduler.schedule(Cron4j.EVERY_MINUTE, () -> {\n executor.schedule(scheduledThoughtsProducer::periodicalWeeklyThoughts, 0, TimeUnit.SECONDS);\n });\n\n // start the scheduler\n Cron4j.scheduler.start();\n }", "public void autonomousPeriodic() {\r\n Scheduler.getInstance().run();\r\n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n rumbleInYourPants();\n turnSpindleIfNeeded();\n turnWinchIfNeeded();\n if (arcadeDrive != null) \n arcadeDrive.start();\n }", "public void run(){\n Timer time = new Timer(); // Instantiate Timer Object\n\n ScheduledClass st = new ScheduledClass(this.job,this.shm,time,this.stopp); // Instantiate SheduledTask class\n time.schedule(st, 0, this.periodicwait); // Create Repetitively task for every 1 secs\n }", "@Override\n public void autonomousPeriodic() {\n Scheduler.getInstance().run();\n }", "@Override\n\tpublic void autonomousPeriodic() {\n\t\tScheduler.getInstance().run();\t\n\t}", "public void teleopPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\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 }", "@Override\n public void autonomousPeriodic()\n {\n Scheduler.getInstance().run();\n }", "@Override\n public void teleopPeriodic() {\n Scheduler.getInstance().run();\n \n }", "@Override\n public void teleopPeriodic()\n {\n Scheduler.getInstance().run();\n }", "private void buildSchedule() {\n\t\tclass RabbitsGrassSimulationStep extends BasicAction {\n\t\t\tpublic void execute() {\n\t\t\t\tSimUtilities.shuffle(rabbitList);\n\t\t\t\tfor (int i = 0; i < rabbitList.size(); i++) {\n\t\t\t\t\tRabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n\t\t\t\t\trabbit.step();\n\t\t\t\t}\n\n\t\t\t\treapDeadRabbits();\n\t\t\t\tgiveBirthToRabbits();\n\n\t\t\t\trabbitSpace.spreadGrass(growthRateGrass);\n\n\t\t\t\tdisplaySurf.updateDisplay();\n\t\t\t}\n\t\t}\n\n\t\tschedule.scheduleActionBeginning(0, new RabbitsGrassSimulationStep());\n\n\t\tclass UpdateNumberOfRabbitsInSpace extends BasicAction {\n\t\t\tpublic void execute() {\n\t\t\t\trabbitsAndGrassInSpace.step();\n\t\t\t}\n\t\t}\n\n\t\tschedule.scheduleActionAtInterval(1, new UpdateNumberOfRabbitsInSpace());\n\n\t}", "protected void runEachHour() {\n \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 teleopPeriodic() {\n Scheduler.getInstance().run();\n }", "public void doInitialSchedules() {\r\n\r\n\t\t// create the servicer, here make a vancarrier\r\n\t\tfor (int i = 0; i < vcNumber; i++) {\r\n\t\t\tVC vancarrier = new VC(this, \"Van Carrier\", true);\r\n\r\n\t\t\t// put the vancarrier on duty with placing it on the event-list\r\n\t\t\t// first\r\n\t\t\t// it will deactivate itself into waiting status\r\n\t\t\t// for the first truck right after activation\r\n\t\t\tvancarrier.activate();\r\n\t\t}\r\n\r\n\t\t// create a truck spring\r\n\t\tTruckGenerator firstarrival = new TruckGenerator(this, \"TruckArrival\", false);\r\n\r\n\t\t// place the truck generator on the event-list, in order to\r\n\t\t// start producing truck arrivals when the first truck comes\r\n\t\t// therefore we must use \"schedule\" instead of \"activate\"\r\n\t\tfirstarrival.schedule(new TimeSpan(getTruckArrivalTime()));\r\n\r\n\t}", "void cronScheduledProcesses();", "public void teleopPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "public void autonomousPeriodic() {\r\n\t\tScheduler.getInstance().run();\r\n\t}", "@Override\n public void teleopPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "@Scheduled(fixedDelay=5000) //indicamos que esta tarea se repetira cada 5 segundos \n\tpublic void doTask() {\n\t\tLOGGER.info(\"Time is: \"+ new Date());\n\t}", "void deschedule(ScheduledJob job);", "private void scheduleRecurringTasks() {\n\t\t//created directories expected by the system to exist\n\t\tUtil.initializeDataDirectories();\n\n\t\tTestManager.initializeTests();\n\n\t\t// Gets all the periodic tasks and runs them.\n\t\t// If you need to create a new periodic task, add another enum instance to PeriodicTasks.PeriodicTask\n\t\tSet<PeriodicTasks.PeriodicTask> periodicTasks = EnumSet.allOf(PeriodicTasks.PeriodicTask.class);\n\t\tfor (PeriodicTasks.PeriodicTask task : periodicTasks) {\n\t\t\tif (R.IS_FULL_STAREXEC_INSTANCE || !task.fullInstanceOnly) {\n\t\t\t\ttaskScheduler.scheduleWithFixedDelay(task.task, task.delay, task.period.get(), task.unit);\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tPaginationQueries.loadPaginationQueries();\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"unable to correctly load pagination queries\");\n\t\t\tlog.error(e.getMessage(), e);\n\t\t}\n\t}", "@Override\n public void autonomousPeriodic() {\n \tbeginPeriodic();\n Scheduler.getInstance().run();\n endPeriodic();\n }", "@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}", "@Test\n public void testTask() throws InterruptedException {\n\n SchedulingRunnable task1 = new SchedulingRunnable(\"demoTask\", \"taskWithParams\", \"aaa\",\"111\");\n cronTaskRegistrar.addCronTask(task1, \"0/15 * * * * ?\");\n Thread.sleep(10000);\n\n SchedulingRunnable task2 = new SchedulingRunnable(\"demoTask\", \"taskWithParams\", \"aaa\",\"111\");\n cronTaskRegistrar.addCronTask(task2, \"0/8 * * * * ?\");\n // 便于观察\n\n Thread.sleep(3000000);\n }", "protected abstract String scheduler_next();", "public boolean generateSchedule(){\r\n return true;\r\n }", "@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}", "public void autonomousPeriodic()\n\t{\n\t\tScheduler.getInstance().run();\n\t}", "@Override\n public void teleopPeriodic() {\n\tupdateDiagnostics();\n\tScheduler.getInstance().run();\n }", "@Override\n public void autonomousPeriodic() {\n\t// updateDiagnostics();9\n\tScheduler.getInstance().run();\n }", "public void scheduleMarathon()\n\t{\n\n\t\t//Create new threads\n\t\tThread h = new Thread(new ThreadRunner(HARE,H_REST,H_SPEED)); \n\t\tThread t = new Thread(new ThreadRunner(TORTOISE,T_REST,T_SPEED)); \n\n\t\tArrayList<Thread> runnerList = new ArrayList<Thread>();\n\t\trunnerList.add(h);\n\t\trunnerList.add(t);\n\n\t\tSystem.out.println(\"Get set...Go! \");\n\t\t//Start threads\n\t\tfor (Thread i: runnerList){\n\t\t\ti.start();\n\t\t}\n\n\t\twaitMarathonFinish(runnerList);\n\t}", "@Scheduled(cron = \"0 0 10 17 8 ?\")\n\tpublic void scheduleTaskYearly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 10:00 o'clock in 17 August - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "@Scheduled(cron = \"${toil1.schedule1}\")\n\tpublic void toiL1Schedule1() {\n\t\tlog.info(\"Running toiL1Schedule1\");\n\t\trunToiL1Schedule();\n\t\trunToiBlogsL1Schedule();\n\t}", "@Scheduled(cron = \"0 0 8-10 * * *\")\n\tpublic void scheduleTaskHourly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 8 - 10 O'clock Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "private void scheduleTasks() {\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// Prepare JSON Ping Message\n\t\t\t\ttry {\n\t\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\t\tObjectNode objectNode = mapper.createObjectNode();\n\t\t\t\t\tobjectNode.put(\"type\", \"PING\");\n\n\t\t\t\t\twebSocket.sendText(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(objectNode));\n\n\t\t\t\t\tlog.debug(\"Send Ping to Twitch PubSub. (Keep-Connection-Alive)\");\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlog.error(\"Failed to Ping Twitch PubSub. ({})\", ex.getMessage());\n\t\t\t\t\treconnect();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}, 7000, 282000);\n\t}", "public void activateTimers(){\n\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tThread.sleep(FIVE_SECONDS);\n\t\t\t\t//System.out.print(\".\");\n\t\t\t\tSystem.out.println(jobscheduler.getSchedulerStatus());\n\t\t\t\t//if the props list changes\n\t\t\t\tif(poller.inspect()!=0){\n\t\t\t\t\tschedule(this.poller.refresh());\n\t\t\t\t}\n\n\t\t\t\t/*\n\t\t\t\tfor (String k : trigs.keySet()){\n\t\t\t\t\tSystem.out.println(k+\"//\"+formatCalendar(Calendar.getInstance())+\"->\"+trigs.get(k).getNextFireTime());\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t}\n\t\t\tcatch(InterruptedException ie){\n\t\t\t\tSystem.err.println(\"Interrupted Exception : \" + ie);\n\t\t\t\tthrow new RuntimeException(ie);\n\t\t\t}\n\t\t\tcatch(SchedulerException se){\n\t\t\t\tSystem.err.println(\"Scheduler Exception : \" + se);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void autonomousPeriodic() {\n\n }", "public void autonomousPeriodic()\r\n {\r\n \r\n }", "@Override\n public void autonomousPeriodic() {\n teleopPeriodic();\n //Scheduler.getInstance().run();\n }", "@Override\npublic void run() {\n\tCalendar oFecha = Calendar.getInstance();\n \n\tint minuto = 25;\n\t\n\tSystem.out.println(\n\t\t\toFecha.getTime().toLocaleString() + \n\t\t\t\" MinJob trigged by scheduler - \" + minuto );\n\t\n\ttry {\n\t\tSystem.out.println(Configuracion.getInstance().getProperty(\"clave\") );\n\t} catch(Exception e) {\n\t\te.printStackTrace();\n\t}\n\t\n\tif (oFecha.get(Calendar.MINUTE) == minuto)\t\n\t\tHourlyJob.realizarBackup();\n \n }", "@Override\n public void autonomousPeriodic() {\n \n }", "public void schedule() {\n\t\tnew Timer().schedule(getTask(), TIME);\n\t}", "@Override\r\n\tpublic void startCron() {\n\t\tlog.info(\"Start Schedule Manager.\");\r\n\t\tmainThread = new Thread(new Runnable() {\r\n\t\t\t\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIMSScheduleManager.super.startCron();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tmainThread.start();\r\n\t}", "void doIt() throws RBEConfigObjectException, IOException\n\t{\n\t\t// Create a schedules\n\t\tSchedules schedules = new Schedules();\n\n\t\t// add a schedule that include a period for 8:00am to 6:00pm every Monday\n\t\taddMondayOnly(schedules);\n\n\t\t// Save it to a file\n\t\tsave(schedules, SAMPLE_SCHEDULES_NAME+schedules.getFileExtension());\n\n\t\t// load the schedules from and check if it is equals to the original.\n\t\tSchedules schedulesLoaded = load(SAMPLE_SCHEDULES_NAME+schedules.getFileExtension());\n\t\tif (!schedules.equals(schedulesLoaded))\n\t\t\tprintln(\"Error saving schedules to file!\");\n\t}", "@Override\r\n\tpublic void social() {\n\t\tSystem.out.println(\"Social class is once every 2 weeks. Class schedule TBD\");\r\n\t\t\r\n\t}", "@Scheduled(cron = \"0 0/30 8-9 * * *\")\n\tpublic void scheduleTaskCustomHourly() {\n\t\tlog.info(\"Cron Task :: Execution Time Every 8:00, 8:30, 9:00, 9:30 O'clock Every Day - {}\", dateTimeFormatter.format(LocalDateTime.now()));\n\t}", "public void run() {\r\n\t\t// Get current date/time and format it for output\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat format = \r\n\t\t\tnew SimpleDateFormat(\"dd.mm.yyyy hh:mm:ss\");\r\n\t\tString current_time = format.format(date);\r\n\r\n\t\t// Output to user the name of the objecet and the current \r\n\t\t// time\r\n\t\tSystem.out.println(objectName + \" - Current time: \" + \r\n\t\t\t\tcurrent_time);\r\n\t\t\r\n\t\t// notify each observer of timer expiry\r\n\t\tnotifyObservers();\r\n\t}", "public void autonomousPeriodic() {\n // RobotMap.helmsman.trackPosition();\n Scheduler.getInstance().run();\n }", "public void update(Schedule arg0) {\n\t\t\n\t}", "@Override\n public void run() {\n List<Event> events = mDatabase.eventDao().getEventsFromToTimeList(\n Calendar.getInstance().getTimeInMillis(), mDueDateCalendar.getTimeInMillis());\n mScheduler.setEvents(events); //sets events to mScheduler\n Event eventWithTime = mScheduler.scheduleEvent(event, timeLengthInMillis);\n// //if an event couldn't be scheduled\n if(eventWithTime == null){\n toast.show();\n }\n //if a new event is being created\n else if (mEventId == DEFAULT_EVENT_ID) {\n // insert new event\n mDatabase.eventDao().insertEvent(eventWithTime);\n } else {\n //update event\n eventWithTime.setId(mEventId);\n mDatabase.eventDao().updateEvent(eventWithTime);\n }\n finish(); //closes activity\n }", "@Scheduled(fixedRateString = \"PT120M\")\n\tvoid someJob(){\n//\t\tString s = \"Testing message.\\nNow time is : \"+new Date();\n////\t\tSystem.out.println(s);\n//\t\tPushNotificationOptions.sendMessageToAllUsers(s);\n//\n\t\t//get all schedules in current dayOfWeek\n\t\tCollection<Notification> notifications = notificationService.findAllByDayOfWeekAndTime();\n\t\tfor(Notification notification : notifications){\n//\t\t\tSystem.out.println(notification.toString());\n//\t\t\tSystem.out.println(!notification.getStatus());\n////\t\t\tSystem.out.println(check(notification.getStartTime()));\n//\t\t\t//check for already not sent notifications , also check for time difference < TIME_CONSTANT\n//\t\t\tif(!notification.getStatus() && check(notification.getStartTime())){\n//\t\t\t\t//send push notification\n//\t\t\t\tPushNotificationOptions.sendMessageToAllUsers(notification.getMessage());\n//\t\t\t\t//mark the notification as sent\n//\t\t\t\tnotificationService.setStatus(notification.getNotificationId());\n//\t\t\t}\n\t\t\tif(checkForDayTime()){\n\t\t\t\tPushNotificationOptions.sendMessageToAllUsers(notification.getMessage());\n\t\t\t\tnotificationService.setStatus(notification.getNotificationId());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}", "Schedule createSchedule();", "public void scheduleDisbursementReport() {\n Log.logBanner(\"Scheduling Disbursement Report\");\n pageVerification();\n schedule();\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "@Override\n public void autonomousPeriodic() {\n }", "private void scheduleCPU() {\n\t\ttry {\t\t\t\n\t\t\t//cpu.scheduleCPU();// set the running and computing of the CPU\t\t\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tthreadRun = false;\n\t\t\tneedReset = true;\n\t\t\ttimer.stop();\n\t\t\tcpu.PC=(cpu.PC-1);\n\t\t\tupdateGUI();\n\t\t\tupdateConsole(e.toString());\n\t\t}\n\t\tuartDlg.checkChange(cpu);\n\t}", "public void teleopPeriodic() {\n \t//getInstance().run();;\n \t//RobotMap.robotDrive1.arcadeDrive(oi.stickRight); //This line drives the robot using the values of the joystick and the motor controllers selected above\n \tScheduler.getInstance().run();\n\t\n }", "@Override\n public void periodic() {\n UpdateDashboard();\n }", "@Override\n public void autonomousPeriodic() \n {\n Scheduler.getInstance().run();\n log();\n }", "public void run() {\n\t\t\tCalendar c = new GregorianCalendar();\n\t\t\tcurrHour = c.get(Calendar.HOUR);\n\t\t\tcurrMin = String.valueOf(c.get(Calendar.MINUTE));\n\t\t\tif(currMin.length()==1) {\n\t\t\t\tcurrMin = \"0\"+currMin;\n\t\t\t}\n\t\t\tcheckAlarm();\n\t\t}", "public void autonomousPeriodic() {\n\n }" ]
[ "0.7880016", "0.7759114", "0.76883227", "0.7651211", "0.74005765", "0.73698074", "0.7190184", "0.71644485", "0.7125583", "0.71167356", "0.71008193", "0.7069954", "0.6988312", "0.6940508", "0.6936707", "0.6918463", "0.69145155", "0.6895466", "0.68876684", "0.681916", "0.6805956", "0.6774389", "0.67522067", "0.6722187", "0.6719563", "0.67059267", "0.66946924", "0.668154", "0.66740316", "0.6673807", "0.6655879", "0.6649892", "0.66490585", "0.66490585", "0.66490585", "0.66490585", "0.66490585", "0.66490585", "0.6647187", "0.66255057", "0.6611379", "0.66024905", "0.6600282", "0.65968454", "0.65968454", "0.65968454", "0.65968454", "0.6587316", "0.65850914", "0.6555448", "0.65478045", "0.6534628", "0.65344894", "0.65318495", "0.65300775", "0.6520185", "0.649753", "0.649753", "0.649753", "0.6487984", "0.6473052", "0.6463726", "0.6460218", "0.6460218", "0.6460218", "0.6460218", "0.6451084", "0.6441018", "0.64246184", "0.64198536", "0.6409262", "0.64058155", "0.639674", "0.6379196", "0.6379163", "0.63744146", "0.63655525", "0.63635886", "0.63629127", "0.6362127", "0.634398", "0.6340054", "0.63377", "0.63329965", "0.63145787", "0.63074917", "0.6303411", "0.62970734", "0.62913555", "0.62904686", "0.6286525", "0.6282012", "0.62810105", "0.62810105", "0.62810105", "0.627437", "0.6264885", "0.6262044", "0.6246082", "0.62443185", "0.6242364" ]
0.0
-1
/ Check if a plugin is loaded/enabled. Returns the plugin and print message to console if so, returns null otherwise
private Plugin loadPlugin(String p) { Plugin plugin = this.getServer().getPluginManager().getPlugin(p); if (plugin != null && plugin.isEnabled()) { getLogger().info(" Using " + plugin.getDescription().getName() + " (v" + plugin.getDescription().getVersion() + ")"); return plugin; } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean hasPlugin() {\n return plugin != null;\n }", "private boolean pluginLoading(String pluginName) {\n return pm.getPlugin(pluginName) != null;\n }", "public boolean isPluginInstalled() {\n return Bukkit.getPluginManager().isPluginEnabled(Library.MCRPG.getInternalPluginName());\n }", "public boolean isSetPlugin() {\n return this.plugin != null;\n }", "boolean isSetPluginstate();", "@Override\r\n public boolean isPluginEnabled()\r\n {\n return true;\r\n }", "Plugin getPlugin();", "Plugin getPlugin( );", "public boolean arePluginsLoaded() {\n return pluginsLoaded.get();\n }", "private boolean loadPlugin(PluginCommandManager manager, CommandSender player, String pluginName) {\r\n PluginManager pluginManager = Bukkit.getServer().getPluginManager();\r\n // load and enable the given plugin\r\n File pluginFolder = manager.getPlugin().getDataFolder().getParentFile();\r\n File pluginFile = new File(pluginFolder + File.separator + pluginName);\r\n \r\n boolean fileExists = false;\r\n for (File actualPluginFile : pluginFolder.listFiles()) {\r\n if (actualPluginFile.getAbsolutePath().equalsIgnoreCase(pluginFile.getAbsolutePath())) {\r\n fileExists = true;\r\n pluginFile = actualPluginFile;\r\n break;\r\n }\r\n }\r\n \r\n if (!fileExists) {\r\n // plugin does not exist\r\n manager.sendMessage(player, \"A plugin with the name '\" + pluginName + \"' could not be found at location:\");\r\n manager.sendMessage(player, pluginFile.getAbsolutePath());\r\n return true;\r\n }\r\n // Try and load the plugin\r\n Plugin plugin = null;\r\n try {\r\n plugin = pluginManager.loadPlugin(pluginFile);\r\n } catch (InvalidPluginException e) {\r\n // Something went wrong so set the plugin to null\r\n plugin = null;\r\n } catch (InvalidDescriptionException e) {\r\n // Something went wrong so set the plugin to null\r\n plugin = null;\r\n } catch (UnknownDependencyException e) {\r\n // Something went wrong so set the plugin to null\r\n plugin = null;\r\n }\r\n if (plugin == null) {\r\n // The plugin failed to load correctly\r\n manager.sendMessage(player, \"The plugin '\" + pluginName + \"' failed to load correctly.\");\r\n return true;\r\n }\r\n // plugin loaded and enabled successfully\r\n pluginManager.enablePlugin(plugin);\r\n manager.sendMessage(player, \"The plugin '\" + pluginName + \"' has been succesfully loaded and enabled.\");\r\n m_plugin.cachePluginDetails();\r\n return true;\r\n }", "private boolean pluginInformation(PluginCommandManager manager, CommandSender player, String pluginName) {\r\n Plugin plugin = getPlugin(pluginName);\r\n if (plugin == null) {\r\n manager.sendMessage(player, \"A plugin with the name '\" + pluginName + \"' could not be found.\");\r\n return true;\r\n }\r\n\r\n PluginDescriptionFile discription = plugin.getDescription();\r\n String authors = \"\";\r\n List<String> authorsList = discription.getAuthors();\r\n for (int authorIndex = 0; authorIndex < authorsList.size(); ++authorIndex) {\r\n String author = authorsList.get(authorIndex);\r\n authors += author + \", \";\r\n }\r\n if (authorsList.size() > 0) {\r\n authors = authors.substring(0, authors.length() - 2);\r\n } else {\r\n authors = \"Unknown\";\r\n }\r\n \r\n String key = \"plugin.\" + m_plugin.pluginNameToKey(plugin.getName());\r\n boolean showUrl = m_plugin.getSetting(key + \".webpage.url\", true);\r\n String url = m_plugin.getSetting(key + \".webpage.url\", discription.getWebsite());\r\n \r\n manager.sendMessage(player, ChatColor.GOLD + \"||======================================||\");\r\n manager.sendMessage(player, ChatColor.DARK_GREEN + \"Name: \" + ChatColor.WHITE + plugin.getName());\r\n manager.sendMessage(player, ChatColor.DARK_GREEN + \"Version: \" + ChatColor.WHITE + discription.getVersion());\r\n manager.sendMessage(player, ChatColor.DARK_GREEN + \"Authors: \" + ChatColor.WHITE + authors);\r\n if (showUrl) { manager.sendMessage(player, ChatColor.DARK_GREEN + \"Website: \" + ChatColor.BLUE + url); }\r\n manager.sendMessage(player, ChatColor.DARK_GREEN + \"Enabled: \" + ChatColor.WHITE + (plugin.isEnabled() ? \"True\" : \"False\"));\r\n manager.sendMessage(player, ChatColor.GOLD + \"||======================================||\");\r\n return true;\r\n }", "public boolean contains() {\n return (Bukkit.getServer().getPluginManager().getPlugin(this.name) != null);\n }", "java.lang.String getPluginstate();", "protected abstract void onPluginEnable();", "public boolean isLoaded() {\n\t\treturn lib != null;\n\t}", "@Override\n public boolean isWorking() {\n return working && hasPlugin();\n }", "public static final boolean libraryLoaded(){\n return PS3_Library.loaded();\n }", "private Plugin getPlugin(String pluginName) {\r\n PluginManager pluginManager = Bukkit.getServer().getPluginManager();\r\n for (Plugin plugin : pluginManager.getPlugins()) {\r\n if (plugin.getName().toLowerCase().equals(pluginName.toLowerCase())) {\r\n return plugin;\r\n }\r\n }\r\n return null;\r\n }", "public void test_DefaultDebugPluginIsReturnedWhenError() {\n\n Context appContext = getAppContext();\n\n PluginManager pluginManager = new PluginManager(appContext);\n\n DebugManager debugManager = pluginManager.getDebugToolManager();\n\n // Check the debugPlugin is not null\n assertNotNull(debugManager);\n\n Class<DefaultDebugPlugin> defaultDebugPluginClass = DefaultDebugPlugin.class;\n\n DebugPlugin debugPluginInstance = debugManager.getDebugPlugin();\n\n // Check a debugPlugin class instance was returned\n assertEquals(defaultDebugPluginClass, debugPluginInstance.getClass());\n }", "public boolean isScriptingPlugin() {\n\t\treturn scriptingPlugin;\n\t}", "public Plugin getPlugin()\r\n\t{\r\n\t\treturn plugin;\r\n\t}", "boolean isInstalled();", "@Test\n public void test_NoDefaultDebugPluginIsReturned() {\n\n Context appContext = getAppContext();\n\n PluginManager pluginManager = new PluginManager(appContext);\n\n DebugManager debugManager = pluginManager.getDebugToolManager();\n\n // Check the debugPlugin is not null\n assertNotNull(debugManager);\n\n Class<DefaultDebugPlugin> defaultDebugPluginClass = DefaultDebugPlugin.class;\n\n DebugPlugin debugPluginInstance = debugManager.getDebugPlugin();\n\n // Check the debugPlugin class instance does not match the De\n assertNotEquals(defaultDebugPluginClass, debugPluginInstance.getClass());\n }", "private void initPlugin() {\n if (bluetoothAdapter == null) {\n Log.e(LOG_TAG, \"Bluetooth is not supported\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is supported\");\n\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.hasBT = true;\");\n\n //test if BLE supported\n if (!mcordova.getActivity().getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Log.e(LOG_TAG, \"BluetoothLE is not supported\");\n } else {\n Log.e(LOG_TAG, \"BluetoothLE is supported\");\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.hasBTLE = true;\");\n }\n \n // test if BT is connected to a headset\n \n if (bluetoothAdapter.getProfileConnectionState(BluetoothProfile.HEADSET) == BluetoothProfile.STATE_CONNECTED ) {\n Log.e(LOG_TAG, \" Bluetooth connected to headset\");\n sendJS(\"javascript:cordova.fireWindowEvent('BluetoothStatus.connected');\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is not connected to a headset \" + bluetoothAdapter.getProfileConnectionState(BluetoothProfile.HEADSET));\n }\n\n //test if BT enabled\n if (bluetoothAdapter.isEnabled()) {\n Log.e(LOG_TAG, \"Bluetooth is enabled\");\n\n sendJS(\"javascript:cordova.plugins.BluetoothStatus.BTenabled = true;\");\n sendJS(\"javascript:cordova.fireWindowEvent('BluetoothStatus.enabled');\");\n } else {\n Log.e(LOG_TAG, \"Bluetooth is not enabled\");\n }\n }\n }", "private boolean checkHook(PluginHook name)\n\t{\n\t\tif (hooks.containsKey(name))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public static Plugin getPlugin() {\n return plugin;\n }", "public boolean isLoaded() {\n return m_module.isLoaded();\n }", "public APlugin getPlugin() {\n return plugin;\n }", "public boolean isValidPlugin(MartinPlugin plugin, MartinAPITestResult testLevel);", "boolean hasPlayready();", "public final <C extends IOpipePluginExecution> C plugin(Class<C> __cl)\n\t\tthrows ClassCastException, NoSuchPluginException, NullPointerException\n\t{\n\t\tC rv = this.optionalPlugin(__cl);\n\t\tif (rv == null)\n\t\t\tthrow new NoSuchPluginException(\"No plugin exists, it is disabled, \" +\n\t\t\t\t\"or it failed to initialize for execution class \" + __cl);\n\t\treturn rv;\n\t}", "boolean isLoaded();", "boolean hasScript();", "public Object GetPlugin()\r\n\t{\r\n\t\tif (_isSingleton)\r\n\t\t{\r\n\t\t\tif (_singletonPlugin == null)\r\n\t\t\t{\r\n\t\t\t\ttry {\r\n\t\t\t\t\t_singletonPlugin = ClassFactory.CreateObject(_pluginType);\r\n\t\t\t\t} catch (Exception 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 if (_configuration != null && !_configuration.equals(\"\"))\r\n {\r\n \tPathUtilities.PushFilename(_filename);\r\n \ttry\r\n \t{\r\n XmlFramework.DeserializeXml(_configuration, _singletonPlugin);\r\n \t}\r\n catch(Exception e)\r\n {\r\n _singletonPlugin = null;\r\n }\r\n \tfinally\r\n \t{\r\n \t\tPathUtilities.PopFilename(_filename);\r\n \t}\r\n }\r\n\t\t\t}\r\n\t\t\treturn _singletonPlugin;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tObject plugin = null;\r\n\t\t\ttry {\r\n\t\t\t\tplugin = ClassFactory.CreateObject(_pluginType);\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n if (_configuration != null && !_configuration.equals(\"\"))\r\n {\r\n \tPathUtilities.PushFilename(_filename);\r\n try\r\n {\r\n XmlFramework.DeserializeXml(_configuration, plugin);\r\n }\r\n catch(Exception e)\r\n {\r\n plugin = null;\r\n }\r\n \tfinally\r\n \t{\r\n \tPathUtilities.PopFilename(_filename);\r\n \t}\r\n }\r\n return plugin;\r\n\t\t}\r\n\t}", "public void loadPluginsStartup();", "private static URL findPluginBaseWithoutLoadingPlugin(Plugin plugin) {\r\n \ttry {\r\n \t\tURL url = plugin.getClass().getResource(\".\");\r\n \t\ttry {\r\n \t\t\t// Plugin test with OSGi plugin need to resolve bundle resource\r\n\t\t\t\turl = FileLocator.resolve(url);\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t\t// junit non plugin test, OSGi plugin is not loaded\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// junit non plugin test\r\n\t\t\t}\r\n\t\t\tjava.io.File currentFile = new java.io.File(url.toURI());\t//$NON-NLS-1$\r\n\t\t\tdo {\r\n\t\t\t\tcurrentFile = currentFile.getParentFile();\r\n\t\t\t\tif (currentFile.getName().equals(\"bin\") || currentFile.getName().equals(\"src\")) {\t//$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\t\t\tif (new File(currentFile.getParentFile(), \"plugin.xml\").exists()) {\t\t//$NON-NLS-1$\r\n\t\t\t\t\t\t// Eclipse project should have plugin.xml at root\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\treturn currentFile.getParentFile().toURI().toURL();\r\n\t\t\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t\t\t// give up and just bail out to null like before\r\n\t\t\t\t\t\t\treturn null;\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} while (currentFile.getParentFile() != null);\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\t// give up and just bail out to null like before\r\n\t\t\treturn null;\r\n\t\t}\r\n \treturn null;\r\n }", "public synchronized Optional<Plugin> getPluginByName(final String pluginName) {\n return pluginMetadata.values().stream()\n // Find the matching metadata\n .filter(pluginMetadata -> pluginName.equalsIgnoreCase(pluginMetadata.getName()))\n .findAny()\n // Find the canonical name for this plugin\n .map(PluginMetadata::getCanonicalName)\n // Finally, find the plugin\n .flatMap(canonicalName -> Optional.ofNullable(pluginsLoaded.get(canonicalName)));\n }", "public native void loadPlugin(final String plugin);", "public static APLDebugCorePlugin getDefault() {\r\n\t\tif (plugin == null) {\r\n\t\t\tthrow new NullPointerException(\"Probably in test code relying on running outside of OSGi\");\r\n\t\t}\r\n\t\treturn plugin;\r\n\t}", "public boolean isLoaded();", "public MusterCull getPluginInstance() {\n\t\treturn pluginInstance;\n\t}", "@Override\n public void onPluginEnable(PluginEnableEvent event) {\n if (!this.Methods.hasMethod()) {\n if(this.Methods.setMethod(event.getPlugin())) {\n // You might want to make this a public variable inside your MAIN class public Method Method = null;\n // then reference it through this.plugin.Method so that way you can use it in the rest of your plugin ;)\n ConnectFour.Method = this.Methods.getMethod();\n Log.info(\"Using: \" + ConnectFour.Method.getName() + \" - \" + ConnectFour.Method.getVersion());\n }\n }\n }", "public static boolean isLoaded() {\n\t\ttry {\n\t\t\tPlayer.getRSPlayer();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "boolean hasConsole();", "public interface Plugin\n{\n\tpublic String getPluginName();\n}", "public static TeleportalsPlugin getInstance() {\n try {\n return Objects.requireNonNull(instance);\n // return (TeleportalsPlugin) Objects.requireNonNull(Bukkit.getPluginManager().getPlugin(\"Teleportals\"));\n }\n catch (NullPointerException | ClassCastException | IllegalArgumentException ex) {\n throw new IllegalStateException(\"plugin not yet enabled\");\n }\n }", "boolean isInjected();", "boolean hasTheme();", "public void load(Maussentials plugin);", "public boolean isPluginConsistencyActivated()\n {\n boolean activation = getPreferenceStore().getBoolean(CONSISTENCY_ACTIVATION);\n return activation;\n }", "public interface Plugin {\n void doUsefil();\n}", "public static boolean waitForJStoLoad() \n\t{\n\t WebDriverWait wait = new WebDriverWait(driver, 30);\n\t ExpectedCondition<Boolean> jQueryLoad = new ExpectedCondition<Boolean>() {\n\t public Boolean apply(WebDriver Wdriver){\n\t \t JavascriptExecutor js1 = (JavascriptExecutor) driver;\n\t try {\n\t return ((Long)js1.executeScript(\"return jQuery.active\") == 0);\n\t }\n\t catch (Exception e) {\n\t return true;\n\t }\n\t }\n\t };\n\n\t \t return wait.until(jQueryLoad);\n\t}", "public static boolean loadPlugin(Class pluginClass, CytoscapeObj cytoscapeObj,\n CyWindow cyWindow) {\n if (pluginClass == null) {return false;}\n\n\n //System.out.println( \"AbstractPlugin loading: \"+pluginClass );\n\n //look for constructor with CyWindow argument\n if (cyWindow != null) {\n Constructor ctor = null;\n try {\n Class[] argClasses = new Class[1];\n argClasses[0] = CyWindow.class;//cyWindow.getClass();\n ctor = pluginClass.getConstructor(argClasses);\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n\n\n// (SecurityException se) {\n// System.err.println(\"In AbstractPlugin.loadPlugin:\");\n// System.err.println(se.getMessage());\n// se.printStackTrace();\n// return false;\n// } catch (NoSuchMethodException nsme) {\n// //ignore, there are other constructors to look for\n// }\n\n \n\n if (ctor != null) {\n try {\n Object[] args = new Object[1];\n args[0] = cyWindow;\n return ctor.newInstance(args) != null;\n } catch (Exception e) {\n System.err.println(\"In AbstractPlugin.loadPlugin:\");\n System.err.println(\"Exception while constructing plugin instance:\");\n System.err.println(e.getMessage());\n e.printStackTrace();\n return false;\n }\n }\n }\n return false;\n }", "public boolean isPluginTransitive(String pluginName) {\n DependencyDescriptor dd = pluginNameToDescriptorMap.get(pluginName);\n return dd == null || dd.isTransitive();\n }", "public String getPlugin() {\n\t\treturn adaptee.getPlugin();\n\t}", "public static IP_Main getPluginInstance() { return pluginInstance; }", "<T> T getPluginInstance(Class<T> type, String className, ClassLoader classLoader) throws PluginLoadingException;", "public boolean isOnline ( ) {\n\t\treturn getBukkitPlayerOptional ( ).isPresent ( );\n\t}", "private boolean pptIsAvailable() {\n try {\n pinpoint = new pinpointInterface(true);\n } catch (NoConnectionException ex) {\n JOptionPane.showMessageDialog(RACApp.getApplication().getMainFrame(),\n \"No PIN Points were found.\\nPlease make sure it is plugged in and turned on.\",\n \"PIN POINT NOT FOUND\",\n JOptionPane.ERROR_MESSAGE);\n return false;\n } catch (Exception ex) {\n return false;\n }\n return true;\n }", "public boolean isHotLoadable();", "public static boolean isInstalled()\n\t{\n\t\treturn PackageUtils.exists(General.PKG_MESSENGERAPI);\n\t}", "public final boolean pluginUsesTranslator() {\r\n\t\treturn this.usesTranslation;\r\n\t}", "boolean isInitializeDevio();", "public Optional<LibraryHook> getHook() {\n if (hook == null) {\n try {\n hook = libraryClass.getDeclaredConstructor().newInstance();\n } catch (Exception | NoClassDefFoundError exception) {\n Bukkit.getConsoleSender().sendMessage(\"Could not grab hook of \" + this.getHumanPluginName());\n exception.printStackTrace();\n return Optional.empty();\n }\n }\n\n return Optional.of(hook);\n }", "public interface FJPluginInterface\r\n{\r\n\t/**\r\n\t * When the plugin is loaded, the pluin's implementation of this method\r\n\t * will be invoked. If nothing needs to be done on startup in a plugin,\r\n\t * keep the method empty. For instance you might do all the work in the\r\n\t * constructor, or you could wait for user input, which will make this\r\n\t * method unnecessary.\r\n\t */\r\n\tpublic void start();\r\n\t\r\n\t/**\r\n\t * Invoked when a plugin is unloaded and another plugin is loaded or when\r\n\t * Flask Jaws is terminated. Useful for shutting down sockets and readers\r\n\t * when you exit your plugin. If nothing needs to be done upon exit or no\r\n\t * cleaning needs to be done, this method may be left empty.\r\n\t * <p>\r\n\t * If a plugin supports networking of any kind, it should call\r\n\t * {@link se.mansehr.flaskjaws.pluginclasses.FJNetwork#close()} in this method.\r\n\t */\r\n\tpublic void stop();\r\n\t\r\n\t/**\r\n\t * Whenever there's a plugin loaded and you select a menu item from the\r\n\t * menu bar, this method will be called. It should pause the plugin\r\n\t * implementing this method. If no pausing is neccessary, it can be\r\n\t * implemented as an emtpy method.\r\n\t */\r\n\tpublic void pause();\r\n\t\r\n\t/**\r\n\t * Has the opposite function as {@link #pause()}, it resumes the plugin\r\n\t * once the actions invoked by selecting a menu item is done.\r\n\t */\r\n\tpublic void resume();\r\n}", "public String getPluginClass() {\n return pluginClass;\n }", "public static NatpPlugin getDefault() {\r\n\t\treturn plugin;\r\n\t}", "public PluginConsistency getPluginConsistency()\n {\n return getPluginConsistency(true, true);\n }", "public boolean hasWG() {\n Plugin plugin = getServer().getPluginManager().getPlugin(\"WorldGuard\");\n return plugin != null;\n }", "boolean supportsExternalTool();", "public interface Plugin {\n\n /**\n * Invoked when plugin is loaded\n */\n void Initialize();\n\n /**\n * Get plugin name\n * @return plugin name\n */\n String getName();\n\n /**\n * Show the issue management window\n * @param pmsIssue Notification for which the window should be displayed\n * @see PMSIssue\n * @param pmsUser User data\n * @see PMSUser\n *\n * @return window instance\n * @see Stage\n */\n Stage getIssueWindow(PMSIssue pmsIssue, PMSUser pmsUser);\n\n /**\n * Get a PMSManage object to control the project management system\n * @return PMSManage object\n */\n PMSManage getPMSManage();\n\n\n /**\n * When program is shutting down\n */\n void Free();\n}", "public boolean isLoaded() {\n return parser != null;\n }", "public interface Plugin {\n /**\n * What is the name of this plugin?\n *\n * The framework will use this name when storing the versions\n * (code version and schema version) in the database, and, if\n * this is the Application Plugin, in the help menu, main frame\n * title bar, and other displays wherever the application name\n * is shown.\n *\n * The column used to store this in the database is 40\n * characters wide.\n *\n * @return the name of this plugin\n */\n String getName();\n\n /**\n * What is the version number of this plugin's code?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the code version of this plugin\n */\n String getVersion();\n\n /**\n * Allow a plugin to provide any plugin-specific application\n * context files.\n *\n * Can return null or an empty list if there are none.\n * The elements of the list are paths to resources inside the\n * plugin's jar, e.g. org/devzendo/myapp/app.xml\n *\n * @return a list of any application contexts that the plugin\n * needs to add to the SpringLoader, or null, or empty list.\n */\n List<String> getApplicationContextResourcePaths();\n\n /**\n * Give the SpringLoader to the plugin, after the\n * application contexts for all plugins have been loaded\n * @param springLoader the SpringLoader\n */\n void setSpringLoader(final SpringLoader springLoader);\n\n /**\n * Obtain the SpringLoader for plugin use\n * @return the SpringLoader\n */\n SpringLoader getSpringLoader();\n\n /**\n * What is the database schema version of this plugin?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the database schema version of this plugin\n */\n String getSchemaVersion();\n\n /**\n * Shut down the plugin, freeing any resources. Called by the\n * framework upon system shutdown.\n */\n void shutdown();\n}", "public void onEnable() {\n PluginDescriptionFile pdfFile = this.getDescription();\n\n // Setup permissions\n Plugin permissionsPlugin = this.getServer().getPluginManager().getPlugin(\"Permissions\");\n\n if (permissionsPlugin == null) {\n log.info(\"[\" + pdfFile.getName() + \"] Permission system not detected, defaulting to all users\");\n usePermissions = false;\n } else {\n log.info(\"[\" + pdfFile.getName() + \"] Permission system detected\");\n usePermissions = true;\n this.permissionHandler = ((Permissions) permissionsPlugin).getHandler();\n }\n\n // Register commands\n getCommand(\"tradewolf\").setExecutor(new TradeWolfCommand(this));\n\n // Output to console that plugin is enabled\n log.info(pdfFile.getName() + \" version \" + pdfFile.getVersion() + \" enabled!\");\n }", "public static boolean isAvailable() {\n\n CommandLineExecutorService cles = Framework.getService(CommandLineExecutorService.class);\n CommandAvailability ca = cles.getCommandAvailability(WebpageToBlob.COMMANDLINE_DEFAULT_wkhtmltopdf);\n return ca.isAvailable();\n }", "public String loadNewPlugin(final String extPointId);", "boolean isForceLoaded();", "public Type getPluginType()\r\n\t{\r\n\t\treturn _pluginType; \r\n\t}", "public String getPluginClass() {\n return pluginClass;\n }", "private String[] detectPlugins() {\n \t\t\tchangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tparent.changeStampIsValid = false;\n \t\t\tparent.pluginsChangeStampIsValid = false;\n \n \t\t\tplugins = new ArrayList();\n \n \t\t\tif (!supportsDetection(resolvedURL))\n \t\t\t\treturn new String[0];\n \n \t\t\t// locate plugin entries on site\n \t\t\tFile root = new File(resolvedURL.getFile().replace('/', File.separatorChar) + PLUGINS);\n \t\t\tString[] list = root.list();\n \t\t\tString path;\n \t\t\tFile plugin;\n \t\t\tfor (int i = 0; list != null && i < list.length; i++) {\n \t\t\t\tpath = list[i] + File.separator + PLUGIN_XML;\n \t\t\t\tplugin = new File(root, path);\n \t\t\t\tif (!plugin.exists()) {\n \t\t\t\t\tpath = list[i] + File.separator + FRAGMENT_XML;\n \t\t\t\t\tplugin = new File(root, path);\n \t\t\t\t\tif (!plugin.exists())\n \t\t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\tplugins.add(PLUGINS + \"/\" + path.replace(File.separatorChar, '/')); //$NON-NLS-1$\n \t\t\t}\n \t\t\tif (DEBUG) {\n \t\t\t\tdebug(resolvedURL.toString() + \" located \" + plugins.size() + \" plugin(s)\"); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t\t}\n \n \t\t\treturn (String[]) plugins.toArray(new String[0]);\n \t\t}", "protected void pluginInitialize() {}", "public boolean limeAvailable();", "public boolean isAwake();", "public void onEnable() {\n PluginDescriptionFile pdfFile = this.getDescription();\n System.out.println( pdfFile.getName() + \" version \" + pdfFile.getVersion() + \" is enabled!\" );\n }", "public void loadWorldGuardSupport()\n\t{\n\t\tif (worldGuardListener == null)\n\t\t{\n\t\t\tPlugin wg = getServer().getPluginManager().getPlugin(\"WorldGuard\");\n\t\t\tPlugin wgFlag = getServer().getPluginManager().getPlugin(\"WGCustomFlags\");\n\t\t\tif (wg != null)\n\t\t\t{\n\t\t\t\tif (wgFlag != null)\n\t\t\t\t{\n\t\t\t\t\tlogger().info(\"WorldGuard support loaded\");\n\t\t\t\t\tworldGuardListener = new WorldGuardSupport(this);\n\t\t\t\t\tsupportHandler.register(worldGuardListener);\n\t\t\t\t\tgetServer().getPluginManager().registerEvents(this.worldGuardListener, this);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlogger().info(\"WGCustomFlags plugin not installed! Skipping WorldGuard support!\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlogger().info(\"WorldGuard plugin not installed! Skipping WorldGuard support!\");\n\t\t\t}\n\t\t}\n\t}", "boolean hasConfiguration();", "boolean hasSettings();", "boolean hasSettings();", "boolean isSiteCatalystPluginEnabled(final Page currentPage);", "@java.lang.Override\n public boolean hasPlayready() {\n return playready_ != null;\n }", "@Override\n public void onPluginEnable(PluginEnableEvent event) {\n if (!EconServerListener.Methods.hasMethod()) {\n if(EconServerListener.Methods.setMethod(event.getPlugin())) {\n // You might want to make this a public variable inside your MAIN class public Method Method = null;\n // then reference it through this.plugin.Method so that way you can use it in the rest of your plugin ;)\n this.plugin.Method = EconServerListener.Methods.getMethod();\n System.out.println(\"[\" + plugin.name + \"] Payment method found (\" + this.plugin.Method.getName() + \" version: \" + this.plugin.Method.getVersion() + \")\");\n EconomyHandler.currencyEnabled = true;\n }\n }\n }", "public Hook getHook(PluginHook name) throws NoPluginRegisteredException\n\t{\n\t\tif (!checkHook(name))\n\t\t\tthrow new NoPluginRegisteredException(\"Hook not registered: \" + name);\n\t\t\n\t\treturn this.hooks.get(name);\n\t}", "public PluginVersion getMinSupported() {\n return minSupported;\n }", "boolean hasPokemonDisplay();", "public void enable(CommonPlugin plugin);", "boolean hasProvider();", "boolean hasIngestJobSettingsPanel();", "@Override\n public PluginInformation getPluginInformation() {\n return super.getPluginInformation();\n }", "public static RAPCorePlugin getDefault() {\n\t\treturn plugin;\n\t}", "QuestionPlugin getQuestionPlugin(String type);" ]
[ "0.7278444", "0.7242645", "0.6907504", "0.67314655", "0.6588454", "0.65236634", "0.64336747", "0.6429663", "0.6355158", "0.59772533", "0.5963721", "0.5876522", "0.5870799", "0.5832607", "0.58300424", "0.5758233", "0.5753462", "0.56470585", "0.5621739", "0.5584605", "0.5579363", "0.5558975", "0.5558107", "0.5546354", "0.5544323", "0.5519338", "0.5507251", "0.54833275", "0.546661", "0.5461387", "0.5459027", "0.54473627", "0.5441237", "0.54337806", "0.54276663", "0.54239583", "0.5405452", "0.5392694", "0.53834826", "0.5370925", "0.5365171", "0.5331856", "0.5328248", "0.5315369", "0.5245328", "0.52354056", "0.52050227", "0.51800513", "0.5178206", "0.5156309", "0.5152866", "0.5141079", "0.51362175", "0.51140374", "0.5107348", "0.5106821", "0.51015294", "0.5092392", "0.5073662", "0.5068406", "0.5064439", "0.5045589", "0.50437844", "0.5038706", "0.5038511", "0.5027231", "0.50223404", "0.50155205", "0.5010137", "0.49857768", "0.49779806", "0.4968494", "0.4956773", "0.49564183", "0.49508506", "0.49473965", "0.49473765", "0.4938613", "0.49360922", "0.49282756", "0.49239236", "0.49117777", "0.49107355", "0.49101326", "0.4907688", "0.48938018", "0.4885228", "0.4885228", "0.48794284", "0.48662597", "0.48646688", "0.48629838", "0.48597977", "0.48544776", "0.48465243", "0.48458114", "0.48413628", "0.4830003", "0.48298547", "0.48277587" ]
0.68698263
3
/ init initializes the variables which store the DNS of your database instances
private void init() { /* Add the DNS of your database instances here */ databaseInstances[0] = "ec2-52-0-167-69.compute-1.amazonaws.com"; databaseInstances[1] = "ec2-52-0-247-64.compute-1.amazonaws.com"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\n DatabaseInitializer databaseInitializer = new DatabaseInitializer();\n try {\n for (int i = 0; i < DEFAULT_POOL_SIZE; i++) {\n ProxyConnection connection = new ProxyConnection(databaseInitializer.getConnection());\n connections.put(connection);\n }\n } catch (InterruptedException e) {\n logger.log(Level.ERROR, e);\n }\n }", "public static void init()\n\t{\n\t\tMongoClient mongoClient = new MongoClient(new MongoClientURI(\"mongodb://111.111.111.111:27017\"));\n\t\tdatabase=mongoClient.getDatabase(\"mydb\");\n\t}", "public static void init()\n {\n try\n {\n // The newInstance() call is a work around for some broken Java implementations\n Class.forName(\"com.mysql.jdbc.Driver\").newInstance();\n\n // Create a new configuration object\n BoneCPConfig config = new BoneCPConfig();\n\n // Setup the configuration\n config.setJdbcUrl(\"jdbc:mysql://cs304.c0mk5mvcjljr.us-west-2.rds.amazonaws.com/cs304\"); // jdbc url specific to your database, eg jdbc:mysql://127.0.0.1/yourdb\n config.setUsername(\"cs304\");\n config.setPassword(\"ubccs304\");\n config.setConnectionTestStatement(\"SELECT 1\");\n config.setConnectionTimeout(10, TimeUnit.SECONDS);\n config.setMinConnectionsPerPartition(5);\n config.setMaxConnectionsPerPartition(10);\n config.setPartitionCount(1);\n\n // Setup the connection pool\n _pool = new BoneCP(config);\n\n // Log\n LogManager.getLogger(DatabasePoolManager.class).info(\"Database configuration initialized\");\n }\n catch (Exception ex)\n {\n // Log\n LogManager.getLogger(DatabasePoolManager.class).fatal(\"Could not initialize Database configuration\", ex);\n }\n\n }", "public void init() {\n\n try {\n Context initCtx = new InitialContext();\n Context envCtx = (Context) initCtx.lookup(\"java:comp/env\");\n ds = (DataSource) envCtx.lookup(\"jdbc/QuotingDB\");\n// dbCon = ds.getConnection();\n }\n catch (javax.naming.NamingException e) {\n System.out.println(\"A problem occurred while retrieving a DataSource object\");\n System.out.println(e.toString());\n }\n\n }", "void init(){\n \tRootServers = new String[15];\r\n RootServers[0] = \"198.41.0.4\";\r\n RootServers[1] = \"199.9.14.201\";\r\n RootServers[2] = \"192.33.4.12\";\r\n RootServers[3] = \"199.7.91.13[\";\r\n RootServers[4] = \"192.203.230.10\";\r\n RootServers[5] = \"192.5.5.241\";\r\n RootServers[6] = \"192.112.36.4\";\r\n RootServers[7] = \"198.97.190.53\";\r\n RootServers[8] = \"192.36.148.17\";\r\n RootServers[9] = \"192.58.128.30\";\r\n RootServers[10] = \"193.0.14.129\";\r\n RootServers[11] = \"199.7.83.42\";\r\n RootServers[12] = \"202.12.27.33\";\r\n }", "public void init() {\r\n \tconnection = Connect.initConnexion();\r\n \tSystem.out.println(\"connexion :\"+connection);\r\n }", "private void initConnection() {\n\t\tMysqlDataSource ds = new MysqlDataSource();\n\t\tds.setServerName(\"localhost\");\n\t\tds.setDatabaseName(\"sunshine\");\n\t\tds.setUser(\"root\");\n\t\tds.setPassword(\"sqlyella\");\n\t\ttry {\n\t\t\tConnection c = ds.getConnection();\n\t\t\tSystem.out.println(\"Connection ok\");\n\t\t\tthis.setConn(c);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void init() {\n\t\tProperties prop = new Properties();\n\t\tInputStream propStream = this.getClass().getClassLoader().getResourceAsStream(\"db.properties\");\n\n\t\ttry {\n\t\t\tprop.load(propStream);\n\t\t\tthis.host = prop.getProperty(\"host\");\n\t\t\tthis.port = prop.getProperty(\"port\");\n\t\t\tthis.dbname = prop.getProperty(\"dbname\");\n\t\t\tthis.schema = prop.getProperty(\"schema\");\n\t\t\tthis.passwd=prop.getProperty(\"passwd\");\n\t\t\tthis.user=prop.getProperty(\"user\");\n\t\t} catch (IOException e) {\n\t\t\tString message = \"ERROR: db.properties file could not be found\";\n\t\t\tSystem.err.println(message);\n\t\t\tthrow new RuntimeException(message, e);\n\t\t}\n\t}", "private void InitConnexion() {\n\t\n\t\n\t\ttry {\n\t\t\tannuaire = new LDAPConnection(adresseIP, 389, bindDN+\",\"+baseDN, pwd);\n\t\t\tinitialise = true;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Exception \" + e.getMessage() );\n\t\t}\n\t\n\t\t\t}", "public static void init() throws SQLException{\n dbController = DBController.getInstance();\n billingController = BillingController.getInstance();\n employeeController = EmployeeController.getInstance();\n customerServiceController = CustomerServiceController.getInstance();\n parkingController = ParkingController.getInstance();\n orderController = OrderController.getInstance();\n subscriptionController = SubscriptionController.getInstance();\n customerController = CustomerController.getInstance();\n reportController = ReportController.getInstance();\n complaintController = ComplaintController.getInstance();\n robotController = RobotController.getInstance();\n }", "public void init() {\n\r\n\t\ttry {\r\n\r\n\t\t\t//// 등록한 bean 에 있는 datasource를 가져와서 Connection을 받아온다\r\n\t\t\tcon = ds.getConnection();\r\n\r\n\t\t} catch (Exception 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}", "private void init() {\r\n\t\tif (cn == null) {\r\n\t\t\ttry {\r\n\t\t\t\tcn = new XGConnection(url,login,passwd); // Etape 2 : r�cup�ration de la connexion\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.MINUTES.sleep(1);\r\n\t\t\t\t} catch (InterruptedException e2) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tcn.close();// lib�rer ressources de la m�moire.\r\n\t\t\t\t} catch (SQLException e1) {\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}", "private void init() {\n\t\tJedisPoolConfig config = new JedisPoolConfig();\r\n\t\tconfig.setMaxTotal(1024);\r\n\t\tconfig.setMaxIdle(200);\r\n\t\tconfig.setMaxWaitMillis(1000);\r\n\t\tconfig.setTestOnBorrow(false);\r\n\t\tconfig.setTestOnReturn(true);\r\n\t\tString ip = \"sg-redis-new.jo1mjq.0001.apse1.cache.amazonaws.com\";\r\n\t\tint port = 6379;\r\n\t\tjedisPool = new JedisPool(config, ip, port);\r\n\t\tlog.info(\"init redis pool[ip:\" + ip + \",port:\" + port + \"]\");\r\n\t}", "private DBConnection() \n {\n initConnection();\n }", "public void initConnection() throws SQLException{\n\t\tuserCon = new UserDBHandler(\"jdbc:mysql://127.0.0.1:3306/users\", \"admin\", \"admin\");\n\t\tproductCon = new ProductDBHandler(\"jdbc:mysql://127.0.0.1:3306/products\", \"admin\", \"admin\");\n\t}", "public void Initialize() throws DBException {\n // Divide jndi and url\n StringTokenizer st = new StringTokenizer(m_dbURL, \",\");\n m_jndiName \t= st.nextToken();\n m_dbURL \t= st.nextToken();\n \n if (m_jndiName != null) {\n try {\n Context ctx = new InitialContext();\n s_ds = (DataSource) ctx.lookup(m_jndiName); \n } catch (Exception e) {\n System.out.println(\"err\"+e);\n SystemLog.getInstance().getErrorLog().error(\"ERR,HSQLDBTomCTRL,getInit-JNDI,\" + e, e);\n }\n }\n\t \n\t\t//\t\tLoad class incase faliure\n\t\t try {\n\t\t\tClass.forName(\"org.hsqldb.jdbcDriver\");\t\t\t\n\t\t} catch (ClassNotFoundException e1) {\t\t\t\n\t\t\te1.printStackTrace();\n\t\t}\t\t\n\t}", "public static void initialize() {\r\n\t\tif (!connectionByProjectIdMap.isEmpty()) {\r\n\t\t\tcloseAllMsiDb();\r\n\t\t\tconnectionByProjectIdMap.clear();\r\n\t\t}\r\n\t\tif (udsDbConnection != null) {\r\n\t\t\tinitializeUdsDb();\r\n\t\t}\r\n\t}", "private void connect() throws UnknownHostException {\n mongoClient = new MongoClient(configurationFile.getHost(),configurationFile.getPort());\r\n db = mongoClient.getDB(configurationFile.getDatabaseName());\r\n }", "private ConnectionPool() {\r\n\t\tResourceManagerDB resourceManager = ResourceManagerDB.getInstance();\r\n\t\tthis.driver = resourceManager.getValue(ParameterDB.DRIVER_DB);\r\n\t\tthis.url = resourceManager.getValue(ParameterDB.URL_DB);\r\n\t\tthis.user = resourceManager.getValue(ParameterDB.USER_DB);\r\n\t\tthis.password = resourceManager.getValue(ParameterDB.PASSWORD_DB);\r\n\t\tthis.poolsize = Integer.parseInt(resourceManager.getValue(ParameterDB.POOLSIZE_DB));\r\n\t}", "public AddressDatabase() {\n\t\ttimes=new Vector ();\n\t\tcids=new Vector ();\n\t\taddresses=new Hashtable();\n\t\ttseqnums=new Hashtable();\n\t}", "public void setup_connections()\n {\n setup_servers();\n setup_clients();\n }", "private DBMaster() {\r\n\t\t//The current address is localhost - needs to be changed at a later date\r\n\t\t_db = new GraphDatabaseFactory().newEmbeddedDatabase(\"\\\\etc\\\\neo4j\\\\default.graphdb\");\r\n\t\tregisterShutdownHook();\r\n\t}", "void init() throws CouldNotInitializeConnectionPoolException;", "private void initializeNA(){\n name = \"N/A\";\n key = \"N/A\";\n serverIpString = \"N/A\";\n serverPort = 0;\n clientListenPort = 0;\n }", "@Override\n\tpublic void init() throws ServletException {\n\t\tsuper.init();\n\t\t\n\t\ttry{\n\t\t\tpostdb = new postDBUtil(datasource);\n\t\t\tfriendb = new FriendDBUtil(datasource);\n\t\t}catch(Exception e){\n\t\t\tthrow new ServletException(e);\n\t\t}\n\t}", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "public static MongoDatabase init() {\n\n\t\tMongoClientURI connectionString = new MongoClientURI(\n\t\t\t\t\"mongodb+srv://xxxxx:[email protected]/test\");\n\t\tMongoClient mongoClient = new MongoClient(connectionString);\n\n\t\tMongoDatabase database = mongoClient.getDatabase(\"city\");\n\n\t\treturn database;\n\n\t}", "public void init() {\n configuration.init();\n \n //Connections connections = configuration.getBroker().getConnections(\"topic\");\n Connections connections = configuration.getBrokerPool().getBroker().getConnections(\"topic\");\n \n if (connections == null) {\n handleException(\"Couldn't find the connection factor: \" + \"topic\");\n }\n \n sensorCatalog = new SensorCatalog();\n clientCatalog = new ClientCatalog();\n \n nodeCatalog = new NodeCatalog();\n \n updateManager = new UpdateManager(configuration, sensorCatalog, this);\n updateManager.init();\n \n endpointAllocator = new EndpointAllocator(configuration, nodeCatalog);\n\n registry = new JCRRegistry(this);\n registry.init();\n\n // Initialize Public-End-Point\n if(!isPublicEndPointInit) {\n \tinitPublicEndpoint();\n }\n }", "public InitialValuesConnectionCenter() \n\t{\n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(PORT);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException ServerConnectionCenter.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void init(){\n if(solicitudEnviadaDAO == null){\n solicitudEnviadaDAO = new SolicitudEnviadaDAO(getApplicationContext());\n }\n if(solicitudRecibidaDAO == null){\n solicitudRecibidaDAO = new SolicitudRecibidaDAO(getApplicationContext());\n }\n if(solicitudContestadaDAO == null){\n solicitudContestadaDAO = new SolicitudContestadaDAO(getApplicationContext());\n }\n if(preguntaEnviadaDAO == null){\n preguntaEnviadaDAO = new PreguntaEnviadaDAO(getApplicationContext());\n }\n if(preguntaRecibidaDAO == null){\n preguntaRecibidaDAO = new PreguntaRecibidaDAO(getApplicationContext());\n }\n if(preguntaContestadaDAO == null){\n preguntaContestadaDAO = new PreguntaContestadaDAO(getApplicationContext());\n }\n if(puntuacionRecibidaDAO == null){\n puntuacionRecibidaDAO = new PuntuacionRecibidaDAO(getApplicationContext());\n }\n }", "@PostConstruct\n public void init() {\n try {\n this.host = config.getConnectionHost();\n this.port = config.getConnectionPort();\n this.uri = config.getConnectionUri();\n } catch (final Exception e) {\n throw new IllegalStateException(\"Test failure: \" + e.getMessage(), e);\n }\n }", "public final void init() {\n connectDB();\n\n initMainPanel();\n\n initOthers();\n }", "private void initSingletons() {\n\t\tModel.getInstance();\n\t\tSocialManager.getInstance();\n\t\tMensaDataSource.getInstance();\n\t}", "private void initDB() {\n dataBaseHelper = new DataBaseHelper(this);\n }", "public void initConnection(){\n \t String HOST = \"jdbc:mysql://10.20.63.22:3306/cloud\";\n String USERNAME = \"root\";\n String PASSWORD = \"test\";\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n }\n \n try {\n conn = DriverManager.getConnection(HOST, USERNAME, PASSWORD);\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public static void initialize()\n\t{\n\t\tProperties props = new Properties();\n\t\tFileInputStream in = new fileInputStream(\"database.properties\");\n\t\tprops.load(in);\n\t\tin.close();\n\t\tString drivers = props.getProperty(\"jdbc.drivers\");\n\t\tif (drivers != null)\n\t\t\tSystem.setProperty(\"jdbc.drivers\", drivers);\n\t\tString url = props.getProperty(\"jdbc.url\");\n\t\tString username = props.getProperty(\"jdbc.username\");\n\t\tString password = props.getProperty(\"jdbc.password\");\n\t\t\n\t\tSystem.out.println(\"url=\"+url+\" user=\"+username+\" password=\"+password);\n\n\t\tdbConnect = DriverManager.getConnection( url, username, password);\n\t\t\n\t\tinitializeDatabase();\n\t}", "private void setupDBs()\n {\n\t mSetupDBTask = new SetupDBTask(this);\n\t\tmSetupDBTask.execute((Void[])null);\n }", "public DBManager(){\r\n connect(DBConstant.driver,DBConstant.connetionstring);\r\n }", "private static void init() {\n System.setProperty(\"java.net.preferIPv4Stack\", \"true\");\r\n }", "static void init() {\n\t\tuserDatabase = new HashMap<String, User>();\n\t}", "@PostConstruct\n\tpublic void init() {\t\t\n\t\tsql = new String (\"select * from ip_location_mapping order by ip_from_long ASC\");\n\t\tipLocationMappings = jdbcTemplate.query(sql, new IpLocationMappingMapper());\n\t\t\n\t\t//print all beans initiated by container\n\t\t\t\tString[] beanNames = ctx.getBeanDefinitionNames();\n\t\t\t\tSystem.out.println(\"鎵�浠eanNames涓暟锛�\"+beanNames.length);\n\t\t\t\tfor(String bn:beanNames){\n\t\t\t\t\tSystem.out.println(bn);\n\t\t\t\t}\n\n\t}", "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 }", "public void initAsg(){\n\t\tConfigure conf = Configure.getConf();\n\t\tint min = conf.getMaxNum();\n\t\t\n\t\t//launch min number of instances\n\t\tTimeManager.PrintCurrentTime(\"Init Cluster, launching %d DC\\n\", min);\n\t\tfor(int i=0; i < min; i++){\n\t\t\tConnToDC dc = nova.launchOne(conf.getInatanceName());\n\t\t\tif(dc != null){\n\t\t\t\tdcList.offer(dc);\n\t\t\t\tlb.addDC(dc.getIp());\n\t\t\t\tTimeManager.PrintCurrentTime(\"Successfully launch 1 DC [%s:%s]\\n\", \n\t\t\t\t\t\tdc.getIp(), dc.getId());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn ;\n\t}", "public void initialize()\r\n\t{\r\n\t\tdatabaseHandler = DatabaseHandler.getInstance();\r\n\t\tfillPatientsTable();\r\n\t}", "private void init() {\n\t\tinitProtocol();\n\t\tinitResultStorage();\n\t}", "public void connect() {\n\n DatabaseGlobalAccess.getInstance().setEmf(Persistence.createEntityManagerFactory(\"PU_dashboarddb\"));\n DatabaseGlobalAccess.getInstance().setEm(DatabaseGlobalAccess.getInstance().getEmf().createEntityManager());\n DatabaseGlobalAccess.getInstance().getDatabaseData();\n DatabaseGlobalAccess.getInstance().setDbReachable(true);\n }", "public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }", "private void init() throws SQLException, MalformedURLException {\n\t\tconnection = connect();\n\t\tstmt = connection.createStatement();\n\t\tstmt.setQueryTimeout(30);\n\t}", "@PostConstruct\r\n public void init() {\n File database = new File(applicationProps.getGeodb());\r\n try {\r\n reader = new DatabaseReader.Builder(database).withCache(new CHMCache()).build();\r\n } catch (IOException e) {\r\n log.error(\"Error reading maxmind DB, \", e);\r\n }\r\n }", "private static void initializeDatabase() {\n\t\tArrayList<String> data = DatabaseHandler.readDatabase(DATABASE_NAME);\n\t\tAbstractSerializer serializer = new CineplexSerializer();\n\t\trecords = serializer.deserialize(data);\n\t}", "protected void init(Iterable<String> servers) {}", "private static void init() {\n\t\ttry {\n\t\t\tlocalAddr = InetAddress.getLocalHost();\n\t\t\tlogger.info(\"local IP:\" + localAddr.getHostAddress());\n\t\t} catch (UnknownHostException e) {\n\t\t\tlogger.info(\"try again\\n\");\n\t\t}\n\t\tif (localAddr != null) {\n\t\t\treturn;\n\t\t}\n\t\t// other way to get local IP\n\t\tEnumeration<InetAddress> localAddrs;\n\t\ttry {\n\t\t\t// modify your network interface name\n\t\t\tNetworkInterface ni = NetworkInterface.getByName(networkInterface);\n\t\t\tif (ni == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlocalAddrs = ni.getInetAddresses();\n\t\t\tif (localAddrs == null || !localAddrs.hasMoreElements()) {\n\t\t\t\tlogger.error(\"choose NetworkInterface\\n\" + getNetworkInterface());\n\t\t\t\treturn;\n\t\t\t}\n\t\t\twhile (localAddrs.hasMoreElements()) {\n\t\t\t\tInetAddress tmp = localAddrs.nextElement();\n\t\t\t\tif (!tmp.isLoopbackAddress() && !tmp.isLinkLocalAddress() && !(tmp instanceof Inet6Address)) {\n\t\t\t\t\tlocalAddr = tmp;\n\t\t\t\t\tlogger.info(\"local IP:\" + localAddr.getHostAddress());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Failure when init ProxyUtil\", e);\n\t\t\tlogger.error(\"choose NetworkInterface\\n\" + getNetworkInterface());\n\t\t}\n\t}", "private void init() {\r\n final List<VCSystem> vcs = datastore.createQuery(VCSystem.class)\r\n .field(\"url\").equal(Parameter.getInstance().getUrl())\r\n .asList();\r\n if (vcs.size() != 1) {\r\n logger.error(\"Found: \" + vcs.size() + \" instances of VCSystem. Expected 1 instance.\");\r\n System.exit(-1);\r\n }\r\n vcSystem = vcs.get(0);\r\n\r\n project = datastore.getByKey(Project.class, new Key<Project>(Project.class, \"project\", vcSystem.getProjectId()));\r\n\r\n }", "public void init() {\r\n\t\tlog.info(\"init()\");\r\n\t\tobjIncidencia = new IncidenciaSie();\r\n\t\tobjObsIncidencia = new ObservacionIncidenciaSie();\r\n\t\tobjCliente = new ClienteSie();\r\n\t\tobjTelefono = new TelefonoPersonaSie();\r\n\t}", "public void initializeConnections(){\n cc = new ConnectorContainer();\n cc.setLayout(null);\n cc.setAutoscrolls(true);\n connections = new LinkedList<JConnector>();\n agents = new LinkedList<JConnector>();\n }", "public static void initConnection() throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException{\r\n\t\t//create database connection only once\r\n\t\tif(dbCon == null){\t\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tdbCon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/wip?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC\",\"root\",\"\");\r\n\t\t}\r\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n DBHandler = DBConnection.getConnection();\n }", "public void init() {\n\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\n\t\ttry {\n\n\t\t\tconnection = DatabaseInteractor.getConnection();\n\t\t\tstatement = connection.createStatement();\n\n\t\t} catch (SQLException exception) {\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException exception) {\n\t\t\texception.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\n\t\t\tDatabaseInteractor.createTable(StringConstants.USERS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.QUESTIONS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.ANSWERS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.TOPICS_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_QUESTION_VOTES_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_ANSWER_VOTES_TABLE, statement);\n\t\t\tDatabaseInteractor.createTable(StringConstants.USER_TOPIC_RANKS_TABLE, statement);\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\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}", "private static MongoClient initMongoClient() {\n\n\t\tServerAddress sa = new ServerAddress(DomainConstans.mongodb_host, DomainConstans.mongodb_port);\n\t\tList<MongoCredential> mongoCredentialList = Lists\n\t\t\t\t.newArrayList(MongoCredential.createCredential(DomainConstans.mongodb_userName, DomainConstans.mongodb_databaseName, DomainConstans.mongodb_password.toCharArray()));\n\t\treturn new MongoClient(sa, mongoCredentialList);\n//\t\treturn new MongoClient(sa);\n\t}", "public void init() {\r\n\t\tthis.initWebAndSocketServer();\r\n\r\n\t\t/*\r\n\t\t * Set/update server info\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tServerInfo serverInfo = Info.getServerInfo();\r\n\t\t\tserverInfo.setPort(Integer.parseInt(SettingsManager.getStringValue(GeneralController.getInstance().getIdentifier(), GeneralController.Settings.NET_HTTP_PORT.get())));\r\n\t\t\tserverInfo.setName(SettingsManager.getStringValue(GeneralController.getInstance().getIdentifier(), GeneralController.Settings.SERVER_NAME.get(), \"Home server\"));\r\n\t\t\tserverInfo.setVersion(BuildConfig.VERSION);\r\n\t\t\tInfo.writeServerInfo(serverInfo);\r\n\t\t} catch (IOException | JSONException e1) {\r\n\t\t\tServer.log.error(\"Could not update server info. Designer might not work as expected: \" + e1.getMessage());\r\n\t\t}\r\n\r\n\t\tRuleManager.init();\r\n\t}", "public DataBaseConnector()\n {\n dataSource = new SQLServerDataSource();\n dataSource.setServerName(\"EASV-DB2\");\n dataSource.setPortNumber(1433);\n dataSource.setDatabaseName(\"AutistMovies\");\n dataSource.setUser(\"CS2017A_15\");\n dataSource.setPassword(\"Bjoernhart1234\");\n }", "public DatabaseController()\n\t{\n\t\tconnectionString = \"jdbc:mysql://localhost/?user=root\";\n\t\tcheckDriver();\n\t\tsetupConnection();\n\t}", "@Override\n\tpublic void contextInitialized(ServletContextEvent ctx) {\n\t\tDBConnectionPool.init();\n//\t\tConfig.loadConfig();\n\t}", "public DatabaseManager() {\n try {\n con = DriverManager.getConnection(DB_URL, \"root\", \"marko\");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "private void setupDatabase() {\r\n\t\tDatabaseHelperFactory.init(this);\r\n\t\tdatabase = DatabaseHelperFactory.getInstance();\r\n\t}", "public DummyDNS() {\n\n\t\ttry {\n\t\t\tonlyOne = InetAddress.getByName(\"127.0.0.1\").getAddress();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// impossible\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void initGenerateOfflineTestData(){\n dbInstance = Database.newInstance();\n initPlayer();\n initMatches();\n }", "public RemoteSiteDAO () throws Exception {\r\n\t\tconn = DatabaseConnection.connect();\r\n\t}", "public void init() throws ServletException {\n\t\n\tString dbURL2 = \"jdbc:postgresql://10.5.0.45/cs387\";\n String user = \"sgondala\";\n String pass = \"x\";\n\n try {\n\t\tClass.forName(\"org.postgresql.Driver\");\n\t\n\t\tconn1 = DriverManager.getConnection(dbURL2, user, pass);\n\t\tst = conn1.createStatement();\n\t\tSystem.out.println(\"init\"+conn1);\n \t} catch (Exception e) {\n\t\t// TODO Auto-generated catch block\n \t\te.printStackTrace();\n \t}\n }", "private NetworkTables() {\n inst = NetworkTableInstance.getDefault();\n\n }", "public ConexionDB() {\n\n\t\tconn = null;\n\n\t}", "public DBManager() {\n\t\t\n\t}", "private void init() {\n if (adminConnectionFactory != null) {\n throw new IllegalStateException(\"Provider already initialized.\");\n }\n\n // setup admin connection pool\n LdapConnectionConfig cc = createConnectionConfig();\n String bindDN = config.getBindDN();\n if (bindDN != null && !bindDN.isEmpty()) {\n cc.setName(bindDN);\n cc.setCredentials(config.getBindPassword());\n }\n adminConnectionFactory = new ValidatingPoolableLdapConnectionFactory(cc);\n if (config.getAdminPoolConfig().lookupOnValidate()) {\n adminConnectionFactory.setValidator(new LookupLdapConnectionValidator());\n } else {\n adminConnectionFactory.setValidator(new DefaultLdapConnectionValidator());\n }\n if (config.getAdminPoolConfig().getMaxActive() != 0) {\n adminPool = new LdapConnectionPool(adminConnectionFactory);\n adminPool.setTestOnBorrow(true);\n adminPool.setMaxTotal(config.getAdminPoolConfig().getMaxActive());\n adminPool.setBlockWhenExhausted(true);\n adminPool.setMinEvictableIdleTimeMillis(config.getAdminPoolConfig().getMinEvictableIdleTimeMillis());\n adminPool.setTimeBetweenEvictionRunsMillis(config.getAdminPoolConfig().getTimeBetweenEvictionRunsMillis());\n adminPool.setNumTestsPerEvictionRun(config.getAdminPoolConfig().getNumTestsPerEvictionRun());\n }\n\n // setup unbound connection pool. let's create a new version of the config\n cc = createConnectionConfig();\n\n userConnectionFactory = new PoolableUnboundConnectionFactory(cc);\n if (config.getUserPoolConfig().lookupOnValidate()) {\n userConnectionFactory.setValidator(new UnboundLookupConnectionValidator());\n } else {\n userConnectionFactory.setValidator(new UnboundConnectionValidator());\n }\n if (config.getUserPoolConfig().getMaxActive() != 0) {\n userPool = new UnboundLdapConnectionPool(userConnectionFactory);\n userPool.setTestOnBorrow(true);\n userPool.setMaxTotal(config.getUserPoolConfig().getMaxActive());\n userPool.setBlockWhenExhausted(true);\n userPool.setMinEvictableIdleTimeMillis(config.getUserPoolConfig().getMinEvictableIdleTimeMillis());\n userPool.setTimeBetweenEvictionRunsMillis(config.getUserPoolConfig().getTimeBetweenEvictionRunsMillis());\n userPool.setNumTestsPerEvictionRun(config.getUserPoolConfig().getNumTestsPerEvictionRun());\n }\n\n log.info(\"LdapIdentityProvider initialized: {}\", config);\n }", "private void initData() {\n requestServerToGetInformation();\n }", "public SRWDatabasePool() {\n }", "public void init() throws ServletException {\n studentDAO = new StudentDAO();\n instituteDAO = new InstituteDAO();\n majorDAO = new MajorDAO();\n classDAO = new ClassDAO();\n }", "private void initialize() throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\tuserCatalog = CatalogoUsuarios.getInstance();\n\t\tcontactDAO = AdaptadorContacto.getInstance();\n\t\tmessageDAO = AdaptadorMensajes.getInstance();\n\t}", "public void initialize() {\n\n getStartUp();\n }", "private DatabaseConnectionService() {\n ds = new HikariDataSource();\n ds.setMaximumPoolSize(20);\n ConfigProperties configProperties = ConfigurationLoader.load();\n if (configProperties == null) {\n throw new RuntimeException(\"Unable to read the config.properties.\");\n }\n ds.setDriverClassName(configProperties.getDatabaseDriverClassName());\n ds.setJdbcUrl(configProperties.getDatabaseConnectionUrl());\n ds.addDataSourceProperty(\"user\", configProperties.getDatabaseUsername());\n ds.addDataSourceProperty(\"password\", configProperties.getDatabasePassword());\n ds.setAutoCommit(false);\n }", "@PostConstruct\n public void initPool() {\n SpringHelper.setApplicationContext(applicationContext);\n if (!initialized) {\n try {\n final File configDirectory = ConfigDirectory.setupTestEnvironement(\"OGCRestTest\");\n final File dataDirectory2 = new File(configDirectory, \"dataCsw2\");\n dataDirectory2.mkdir();\n\n try {\n serviceBusiness.delete(\"csw\", \"default\");\n serviceBusiness.delete(\"csw\", \"intern\");\n } catch (ConfigurationException ex) {}\n\n final Automatic config2 = new Automatic(\"filesystem\", dataDirectory2.getPath());\n config2.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"default\", config2, null);\n\n writeProvider(\"meta1.xml\", \"42292_5p_19900609195600\");\n\n Automatic configuration = new Automatic(\"internal\", (String)null);\n configuration.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"intern\", configuration, null);\n\n initServer(null, null, \"api\");\n pool = GenericDatabaseMarshallerPool.getInstance();\n initialized = true;\n } catch (Exception ex) {\n Logger.getLogger(OGCRestTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "protected void initializeInstances() {\n if (mUser == null) {\n mUser = new User(getApplicationContext());\n }\n if (mUserCache == null) {\n mUserCache = new UserCache();\n }\n if(mGlobalGroupContainer == null) {\n mGlobalGroupContainer = new GroupContainer(getApplicationContext());\n }\n if(mGlobalHistoryContainer == null) {\n mGlobalHistoryContainer = new HistoryContainer(getApplicationContext());\n }\n\n if(mGlobalContactContainer == null) {\n mGlobalContactContainer = new ContactContainer(getApplicationContext());\n mGlobalContactContainer.setContactSortKey(Contact.UserSortKey.USER_FIRST_NAME);\n }\n }", "public void init()\n {\n this.tripDict = new HashMap<String, Set<Trip>>();\n this.routeDict = new HashMap<String, Double>();\n this.tripList = new LinkedList<Trip>();\n this.computeAllPaths();\n this.generateDictionaries();\n }", "public void initializeConnection() {\n\n cluster = Cluster.builder().addContactPoint(host).build();\n session = cluster.connect(keyspaceName);\n session.execute(\"USE \".concat(keyspaceName));\n }", "private void initialize() {\n try {\n Class.forName(\"org.postgresql.Driver\");\n } catch (ClassNotFoundException e) {\n LOGGER.error(\"DB: Unable to find sql driver.\", e);\n throw new AppRuntimeException(\"Unable to find sql driver\", e);\n }\n\n DbCred cred = getDbCred();\n this.connection = getConnection(cred);\n this.isInitialized.set(Boolean.TRUE);\n }", "private void init() {\n myNodeDetails = new NodeDetails();\n try {\n //port will store value of port used for connection\n //eg: port = 5554*2 = 11108\n String port = String.valueOf(Integer.parseInt(getMyNodeId()) * 2);\n //nodeIdHash will store hash of nodeId =>\n // eg: nodeIdHash = hashgen(5554)\n String nodeIdHash = genHash(getMyNodeId());\n myNodeDetails.setPort(port);\n myNodeDetails.setNodeIdHash(nodeIdHash);\n myNodeDetails.setPredecessorPort(port);\n myNodeDetails.setSuccessorPort(port);\n myNodeDetails.setSuccessorNodeIdHash(nodeIdHash);\n myNodeDetails.setPredecessorNodeIdHash(nodeIdHash);\n myNodeDetails.setFirstNode(true);\n\n if (getMyNodeId().equalsIgnoreCase(masterPort)) {\n chordNodeList = new ArrayList<NodeDetails>();\n chordNodeList.add(myNodeDetails);\n }\n\n } catch (Exception e) {\n Log.e(TAG,\"**************************Exception in init()**********************\");\n e.printStackTrace();\n }\n }", "private NodeDB() {\n\t\tNodeInfo me = new NodeInfo();\n\t\tme.alive = true;\n\t\tme.nodecomms = ConfigManager.get().node_interface;\n\t\tme.nodehash = ConfigManager.get().nodehash;\n\t\tme.timestamp = System.currentTimeMillis();\n\t\tthis.update(new NodeDB.NodeInfo[] { me });\n\t\tthis.random = new Random();\n\t\tthis.random.setSeed(System.currentTimeMillis());\n\t}", "public DatabaseConnector() {\n String dbname = \"jdbc/jobs\";\n\n try {\n ds = (DataSource) new InitialContext().lookup(\"java:comp/env/\" + dbname);\n } catch (NamingException e) {\n System.err.println(dbname + \" is missing: \" + e.toString());\n }\n }", "void smem_init_db() throws SoarException, SQLException, IOException\n {\n smem_init_db(false);\n }", "@Before\n public void init() {\n pool=ShardedJedisSentinelPoolSinglton.getPool();\n }", "public void init(){\n\t\tmultiplexingClientServer = new MultiplexingClientServer(selectorCreator);\n\t}", "void init() throws ConnectionPoolDataSourceException;", "private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}", "private void loadProperties() {\n driver = JiveGlobals.getXMLProperty(\"database.defaultProvider.driver\");\n serverURL = JiveGlobals.getXMLProperty(\"database.defaultProvider.serverURL\");\n username = JiveGlobals.getXMLProperty(\"database.defaultProvider.username\");\n password = JiveGlobals.getXMLProperty(\"database.defaultProvider.password\");\n String minCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.minConnections\");\n String maxCons = JiveGlobals.getXMLProperty(\"database.defaultProvider.maxConnections\");\n String conTimeout = JiveGlobals.getXMLProperty(\"database.defaultProvider.connectionTimeout\");\n // See if we should use Unicode under MySQL\n mysqlUseUnicode = Boolean.valueOf(JiveGlobals.getXMLProperty(\"database.mysql.useUnicode\")).booleanValue();\n try {\n if (minCons != null) {\n minConnections = Integer.parseInt(minCons);\n }\n if (maxCons != null) {\n maxConnections = Integer.parseInt(maxCons);\n }\n if (conTimeout != null) {\n connectionTimeout = Double.parseDouble(conTimeout);\n }\n }\n catch (Exception e) {\n Log.error(\"Error: could not parse default pool properties. \" +\n \"Make sure the values exist and are correct.\", e);\n }\n }", "public DB() {\r\n\t\r\n\t}", "public DatabaseConnector() {\n HikariConfig config = new HikariConfig();\n config.setJdbcUrl(\"jdbc:postgresql://localhost:5547/go_it_homework\");\n config.setUsername(\"postgres\");\n config.setPassword(\"Sam@64hd!+4\");\n this.ds = new HikariDataSource(config);\n ds.setMaximumPoolSize(5);\n }", "public DBConn(){\n\t\t//Create a variable for the connection string.\n\t\tthis.connectionUrl = \"jdbc:sqlserver://localhost:1433;\" +\n\t\t \"databaseName=CSE132B; username=sa; password=cse132b\";\t\t//Daniel: integratedSecurity=true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Kalvin: username=sa; password=cse132b\n\n\t\t// Declare the JDBC objects.\n\t\tthis.conn = null;\n\t\tthis.stmt = null;\n\t\tthis.rs = null;\n\t}", "public void init() throws ServletException{\n\t\tmongo = new MongoClient(\"localhost\", 27017);\n\t}", "@Override\n public void init() throws LifecycleException {\n logger.info(\"Start to parse and config Web Server ...\");\n configParse();\n\n // TODO web server 是否应该关心 database 的状态? 当 database 连接断开后,相关接口返回 HTTP-Internal Server Error 是不是更合理一些\n // step 2: check database state\n\n // 注册为EventBus的订阅者\n Segads.register(this);\n }", "public PoolNYCH() {\n\t\tinicializarDataSource();\n\t}", "void init() throws ConnectionPoolException {\r\n\t\tfreeConnection = new ArrayBlockingQueue<Connection>(poolsize);\r\n\t\tbusyConnection = new ArrayBlockingQueue<Connection>(poolsize);\r\n\t\ttry {\r\n\t\t\tClass.forName(driver);\r\n\t\t\tfor(int i = 0; i < poolsize; i++){\r\n\t\t\t\tConnection connection = DriverManager.getConnection(url, user, password);\r\n\t\t\t\tfreeConnection.add(connection);\r\n\t\t\t}\r\n\t\t\tflag = true;\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tlogger.error(ErrorMessageDAO.ERROR_DB_DRIVER + e);\r\n\t\t\tthrow new ConnectionPoolException(ErrorMessageDAO.ERROR_DB_DRIVER);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(ErrorMessageDAO.ERROR_SQL + e);\r\n\t\t\tthrow new ConnectionPoolException(ErrorMessageDAO.ERROR_SQL);\r\n\t\t}\r\n\t}" ]
[ "0.7065684", "0.693799", "0.6933944", "0.67551976", "0.67503023", "0.6608659", "0.6603418", "0.6569918", "0.6568747", "0.6558243", "0.64010054", "0.63838995", "0.6345114", "0.6332942", "0.63328224", "0.6309618", "0.629717", "0.62714314", "0.62695646", "0.6264441", "0.62617296", "0.6252466", "0.6233528", "0.62015134", "0.619711", "0.6189399", "0.6151379", "0.61270624", "0.611767", "0.6109747", "0.61095345", "0.6104734", "0.60845554", "0.6072569", "0.60661817", "0.6042482", "0.60218656", "0.6019964", "0.6002609", "0.59980613", "0.5997446", "0.5989767", "0.5989201", "0.5981429", "0.5946084", "0.5943228", "0.5942738", "0.5938211", "0.5937186", "0.593047", "0.59279734", "0.5922592", "0.59191394", "0.5897848", "0.5885375", "0.5882839", "0.5873428", "0.5862056", "0.58581585", "0.58340436", "0.5832896", "0.5826933", "0.58259606", "0.5824991", "0.58205986", "0.58199", "0.581929", "0.5819216", "0.5815456", "0.5809186", "0.580086", "0.58007866", "0.57961655", "0.57949746", "0.5789251", "0.5788482", "0.5788376", "0.5787273", "0.57866204", "0.57861066", "0.5783851", "0.57836527", "0.57766753", "0.5773502", "0.57722205", "0.5771718", "0.57706547", "0.57687026", "0.5766892", "0.5766167", "0.5763075", "0.57595515", "0.57571083", "0.57551175", "0.5752568", "0.5743819", "0.5739564", "0.5739445", "0.57388335", "0.5734268" ]
0.8800176
0
/ checkBackend verifies that the DCI are running before starting this server
private boolean checkBackend() { try{ if(sendRequest(generateURL(0,"1")) == null || sendRequest(generateURL(1,"1")) == null) return true; } catch (Exception ex) { System.out.println("Exception is " + ex); return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void checkContainer() {\n // http://stackoverflow.com/questions/2976884/detect-if-running-in-servlet-container-or-standalone\n try {\n new InitialContext().lookup(\"java:comp/env\");\n log.info(\"Running inside servlet container. Explicit server creation skipped\");\n return;\n } catch (NamingException ex) {\n // Outside of container\n }\n\n }", "private Boolean isExternalBackendRunning() {\n\t\ttry {\n\t\t\tHttpResponse response = this.http.get(this.guid);\n\t\t\tif (HTTP.getCode(response) != 200) {\n\t\t\t\tHTTP.release(response);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\treturn HTTP.getString(response).equals(Backend.OUTPUT_GUID);\n\t\t} catch (IOException exception) {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean initializeEmptyBackend() { return true; }", "public void start() {\n \t\tinit();\n\t\tif(!checkBackend()){\n\t\t\tvertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {\n\t\t\t\tpublic void handle(HttpServerRequest req) {\n\t\t\t\t String query_type = req.path();\t\t\n\t\t\t\t req.response().headers().set(\"Content-Type\", \"text/plain\");\n\t\t\t\t\n\t\t\t\t if(query_type.equals(\"/target\")){\n\t\t\t\t\t String key = req.params().get(\"targetID\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequest(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t else {\n\t\t\t\t\t String key = \"1\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequestRange(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t } \n\t\t\t}).listen(80);\n\t\t} else {\n\t\t\tSystem.out.println(\"Please make sure that both your DCI are up and running\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "boolean runsServer();", "public static boolean start()\n\t{\n\t\tClient.getInstance();\n\t\treturn false;\n\t}", "public boolean isRunning ()\n {\n return server == null ? false : true;\n }", "private void checkState() throws DDEException\n {\n if (nativeDDEServer == 0)\n throw new DDEException(\"Server was not started.\");\n }", "boolean shouldPrecreateServerService(EffectiveServerSpec server) {\n if (Boolean.TRUE.equals(server.isPrecreateServerService())) {\n // skip pre-create if admin server and managed server are both shutting down\n return ! (domain.getAdminServerSpec().isShuttingDown() && server.isShuttingDown());\n }\n return false;\n }", "private boolean checkServiceIsRunning(){\r\n if (CurrentLocationUtil.isRunning()){\r\n doBindService();\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "boolean isInitializeDevio();", "private static final boolean isRunning() {\r\n /*\r\n * LogUtil.isRunning : shutdown detected : java.lang.Throwable at\r\n * org.ivoa.util.LogUtil.isRunning(LogUtil.java:151) at\r\n * org.ivoa.util.LogUtil.getLoggerDev(LogUtil.java:177) at\r\n * org.ivoa.web.servlet.BaseServlet.<clinit>(BaseServlet.java:69) at\r\n * sun.misc.Unsafe.ensureClassInitialized(Native Method) at\r\n * sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)\r\n * at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122) at\r\n * java.lang.reflect.Field.acquireFieldAccessor(Field.java:918) at\r\n * java.lang.reflect.Field.getFieldAccessor(Field.java:899) at\r\n * java.lang.reflect.Field.set(Field.java:657) at\r\n * org.apache.catalina.loader.WebappClassLoader.clearReferences(WebappClassLoader.java:1644) at\r\n * org.apache.catalina.loader.WebappClassLoader.stop(WebappClassLoader.java:1524) at\r\n * org.apache.catalina.loader.WebappLoader.stop(WebappLoader.java:707) at\r\n * org.apache.catalina.core.StandardContext.stop(StandardContext.java:4557) at\r\n * org.apache.catalina.manager.ManagerServlet.stop(ManagerServlet.java:1298) at\r\n * org.apache.catalina.manager.HTMLManagerServlet.stop(HTMLManagerServlet.java:622) at\r\n * org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:131)\r\n */\r\n if (LOGGING_DIAGNOSTICS && isShutdown) {\r\n if (SystemLogUtil.isDebugEnabled()) {\r\n SystemLogUtil.debug(\"LogUtil.isRunning : shutdown detected : \");\r\n }\r\n }\r\n\r\n return !isShutdown;\r\n }", "private static boolean isFirstLaunch() {\n if (new File(\"couchbase-sync.state\").exists()) {\n return false;\n }\n return true;\n }", "private boolean checkServer(Context mContext) {\n\t\t\t\tConnectivityManager cm = (ConnectivityManager) mContext\n\t\t\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\t\tNetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\t\t\tif (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "public void startServer() {\n URLClassLoader loader = createClasspath(opts);\n X_Process.runInClassloader(loader, appServer\n .map(DevAppServer::doStartServer, getAppName() + \"Server\", getPort())\n .ignoreOut1().unsafe());\n }", "boolean hasServer();", "public Backend() {\t\t\n\t\tthis.rpc = new HttpPost(Backend.URL_BASE + Backend.URL_PATH_RPC);\n\t\tthis.rpc.setHeader(Backend.HEADER_CONTENT_TYPE, Backend.HEADER_VALUE_CONTENT_TYPE);\n\t\t\n\t\tthis.shutdown = new HttpGet(Backend.URL_BASE + Backend.URL_PATH_SHUTDOWN);\n\t\tthis.ping = new HttpGet(Backend.URL_BASE + Backend.URL_PATH_PING);\n\t\tthis.guid = new HttpGet(Backend.URL_BASE + Backend.URL_PATH_GUID);\n\t\t\n\t\tFile basePath = new File(\"\");\n\t\ttry {\n\t\t\tbasePath = new File(FileLocator.toFileURL(Activator.getDefault().getBundle().getEntry(\"/\")).toURI());\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Could not resolve bundle absolute path.\");\n\t\t\tSystem.err.print(e);\n\t\t}\n\t\t\n\t\tthis.processRunner.setProcessPath(new File(basePath, Backend.NODE_PATH).getAbsolutePath());\n\t\tthis.processRunner.setArguments(\n\t\t\tnew File(basePath, Backend.APPLICATION_ENTRY_PATH).getAbsolutePath(),\n\t\t\tBackend.APPLICATION_OPTIONS\n\t\t);\n\t}", "public void backend (String backend) {\n if (isRunning ())\n throw new IllegalArgumentException (\"Can not change the backend of a running server\");\n\n this.backend = backend;\n }", "boolean initializeStart() {\n if (state != PlatformState.STOPPED) {\n return false;\n }\n state = PlatformState.STARTING;\n return true;\n }", "public boolean startAll() throws ServerException;", "private void CheckIfServiceIsRunning() {\n\t\tLog.i(\"Convert\", \"At isRunning?.\");\n\t\tif (eidService.isRunning()) {\n//\t\t\tLog.i(\"Convert\", \"is.\");\n\t\t\tdoBindService();\n\t\t} else {\n\t\t\tLog.i(\"Convert\", \"is not, start it\");\n\t\t\tstartService(new Intent(IDManagement.this, eidService.class));\n\t\t\tdoBindService();\n\t\t}\n\t\tLog.i(\"Convert\", \"Done isRunning.\");\n\t}", "public void run() throws Exception {\n try{\n dataService.getServiceBinding(key);\n logger.log(Level.INFO, \"[META SERVICE] got backend binding\");\n // does not need to be rebuilt\n rebuildDB = false;\n }\n catch(Exception e){\n // binding was not present. rebuild DB, set binding.\n logger.log(Level.INFO, \"[META SERVICE] did not get backend binding: \" + e);\n\n rebuildDB = true;\n }\n logger.log(Level.INFO, \"[META SERVICE] completed backend check\");\n }", "public boolean isRunning(){\r\n try{\r\n List<String> dbNames = mongo.getDatabaseNames();\r\n if(!dbNames.isEmpty()){\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n } catch (MongoException e){\r\n// e.printStackTrace();\r\n return false;\r\n }\r\n }", "public static boolean isServerRunning() {\n\t\treturn serverSettings.getBoolean(isServerRunning, false);\n\n\t}", "public boolean requiresActiveSys() {\n\t\treturn false;\n\t}", "public boolean startVBClone() {\n\n String out = RapidUtils\n .executeCommand(\"/usr/local/bin/VBoxManage startvm \" + this.name + \" --type headless\");\n\n if (out.contains(\"has been successfully started.\")) {\n return true;\n }\n\n return false;\n }", "@Override\n public boolean isRunning() {\n if (lumenClient == null || spine == null || !spine.isRunning()) {\n return false;\n } else {\n return true;\n }\n }", "boolean hasServerState();", "public abstract void startup();", "public static boolean hasCustomDockerDB( final BioModule module ) {\n\t\ttry {\n\t\t\tLog.info( DockerUtil.class, Constants.LOG_SPACER );\n\t\t\tLog.info( DockerUtil.class, \"Check for Custom Docker DB\" );\n\t\t\tLog.info( DockerUtil.class, Constants.LOG_SPACER );\n\t\t\tif( inDockerEnv() ) \n\t\t\t\tLog.info( DockerUtil.class, \"Verified BLJ is running INSIDE the Docker biolockj_controller Container\" );\n\t\t\telse {\n\t\t\t\tLog.info( DockerUtil.class, \"LOOKS LIKE BLJ is <<< NOT >>> running INSIDE the Docker biolockj_controller Container - run extra tests!\" );\n\t\t\t\tfinal File testFile = new File( \"/.dockerenv\" );\n\t\t\t\tif( testFile.isFile() )\n\t\t\t\t\tLog.info( DockerUtil.class, \"testFile.isFile() == TRUE! --> WHY FAIL ON INIT ATTEMPT? BLJ is running INSIDE the Docker biolockj_controller Container\" );\n\t\t\t\telse if( testFile.exists() )\n\t\t\t\t\tLog.info( DockerUtil.class, \"testFile.exists() == TRUE! --> WHY FAIL ON INIT ATTEMPT? BLJ is running INSIDE the Docker biolockj_controller Container\" );\n\t\t\t}\n\t\t\t\n\t\t\tif( module instanceof DatabaseModule )\n\t\t\t\tLog.info( DockerUtil.class, module.getClass().getSimpleName() + \" is a DB Module!\" );\n\t\t\telse\n\t\t\t\tLog.info( DockerUtil.class, module.getClass().getSimpleName() + \" is NOT DB Module!\" );\n\t\t\t\n\t\t\tLog.info( DockerUtil.class, Constants.LOG_SPACER );\n\t\t\t\t\n\t\t\tif( inDockerEnv() && module instanceof DatabaseModule ) {\n\t\t\t\tfinal File db = ( (DatabaseModule) module ).getDB();\n\t\t\t\tif( db == null ) Log.info( DockerUtil.class, module.getClass().getSimpleName() + \" db ==> NULL \" );\n\t\t\t\tif( db != null ) Log.info( DockerUtil.class, module.getClass().getSimpleName() + \" db ==> \" + db.getAbsolutePath() );\n\t\t\t\tif( db != null ) return !db.getAbsolutePath().startsWith( DOCKER_DEFAULT_DB_DIR );\n\t\t\t}\n\t\t} catch( ConfigPathException | ConfigNotFoundException | DockerVolCreationException ex ) {\n\t\t\tLog.error( DockerUtil.class,\n\t\t\t\t\"Error occurred checking database path of module: \" + module.getClass().getName(), ex );\n\t\t} \n\t\treturn false;\n\t}", "@Test\n\tpublic void testBasicDevStartup() throws InterruptedException, ClassNotFoundException, ExecutionException, TimeoutException {\n\t\ttestArgSetup(\"test\");\n\t\t\n\t\t//really just making sure we don't throw an exception...which catches quite a few mistakes\n\t\tDevelopmentServer server = new DevelopmentServer(true);\n\t\t//In this case, we bind a port\n\t\tserver.start();\n\t\t//we should depend on http client and send a request in to ensure operation here...\n\t\t\n\t\tserver.stop();\n\t}", "@Override\n public void init() throws LifecycleException {\n logger.info(\"Start to parse and config Web Server ...\");\n configParse();\n\n // TODO web server 是否应该关心 database 的状态? 当 database 连接断开后,相关接口返回 HTTP-Internal Server Error 是不是更合理一些\n // step 2: check database state\n\n // 注册为EventBus的订阅者\n Segads.register(this);\n }", "@Test\n public void testGetBackendInstance() throws EiBackendInstancesException {\n utils.setBackendInstances(instances);\n String nameToGet = instances.get(0).getAsJsonObject().get(\"name\").getAsString();\n BackendInstance result = utils.getBackendInstance(nameToGet);\n\n assertEquals(\"Expected instance data:\\n\" + instances.get(0).getAsJsonObject() + \"\\nBut got data:\\n\"\n + result.getAsJsonObject(), instances.get(0).getAsJsonObject(), result.getAsJsonObject());\n\n // No back end data exist\n exceptionRule.expect(EiBackendInstancesException.class);\n utils.setBackendInstances(new JsonArray());\n utils.getBackendInstance(\"does not exist\");\n }", "private StateChange checkBeforeStart() {\n PayaraServerStatus status = PayaraState.getStatus(instance);\n String msgKey = null;\n switch (status.getStatus()) {\n case ONLINE:\n TaskState result;\n TaskEvent event;\n if (PayaraModule.PROFILE_MODE.equals(instance.getProperty(PayaraModule.JVM_MODE))) {\n result = TaskState.FAILED;\n event = TaskEvent.CMD_FAILED;\n } else {\n result = TaskState.COMPLETED;\n event = TaskEvent.CMD_COMPLETED;\n }\n return new StateChange(this, result, event,\n \"StartTask.startDAS.alreadyRunning\");\n case OFFLINE:\n if (ServerUtils.isAdminPortListening(\n instance, NetUtils.PORT_CHECK_TIMEOUT)) {\n msgKey = \"StartTask.startDAS.adminPortOccupied\";\n } else {\n final int httpPort = instance.getPort();\n if (httpPort >= 0 && httpPort <= 65535\n && NetUtils.isPortListeningLocal(\n instance.getHost(), httpPort)) {\n msgKey = \"StartTask.startDAS.httpPortOccupied\";\n }\n }\n break;\n case SHUTDOWN:\n msgKey = \"StartTask.startDAS.shutdown\";\n break;\n case STARTUP:\n msgKey = \"StartTask.startDAS.startup\";\n }\n return msgKey != null\n ? new StateChange(this, TaskState.FAILED,\n TaskEvent.CMD_FAILED, msgKey, this.instance.getDisplayName())\n : null;\n }", "public boolean checkEngineStatus(){\r\n return isEngineRunning;\r\n }", "private void runBaseInit(HttpServletRequest request, HttpServletResponse response) throws Exception {\n SimApi.initBaseSim();\n }", "boolean isStartup();", "public boolean isNotNullBackendMid() {\n return genClient.cacheValueIsNotNull(CacheKey.backendMid);\n }", "@Test\r\n\tpublic void startapp() {\n\t\tdriver.get(\"http://q.door.fund/\");\r\n\t\tdriver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\r\n\t\tString currentURL = driver.getCurrentUrl();\r\n\t\tAssert.assertTrue(currentURL.contains(\"q.door.fund\"));\r\n\t\tSystem.out.println(\"Application loaded\");\r\n\t}", "@Override\n public void initialize() {\n\n try {\n /* Bring up the API server */\n logger.info(\"loading API server\");\n apiServer.start();\n logger.info(\"API server started. Say Hello!\");\n /* Bring up the Dashboard server */\n logger.info(\"Loading Dashboard Server\");\n if (dashboardServer.isStopped()) { // it may have been started when Flux is run in COMBINED mode\n dashboardServer.start();\n }\n logger.info(\"Dashboard server has started. Say Hello!\");\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public DoesBatchExistServer() {\r\n\t\tsuper();\r\n\t}", "@BeforeSuite\r\n\tvoid start() throws ClassNotFoundException, SQLException\r\n\t{\r\n\t\t//Database obj = new Database();\r\n\t\t//Database.database();\r\n\t\t\r\n\t\tstartServer();\r\n\t\tobj_phoneno = new PageObject_phonenumber(androidDriver) ;\r\n\t\tLog4j.info(\"SERVER START--log\");\r\n\t\t//Log4j.info();\r\n\t\t/*obj_otp=new PageObject_OTP(androidDriver);\r\n\t\tobj_setupprofile=new PageObject_setupprofile(androidDriver);*/\r\n\t}", "boolean hasCloudRunConfig();", "public Boolean isRunning() {\n\t\t// We don't know if it is an external process or not yet ---------------\n\t\t// (first check in the program or after a stop)\n\n\t\tif (this.isManagedExternally == null) {\n\t\t\tif (this.isExternalBackendRunning()) {\n\t\t\t\tthis.isManagedExternally = true;\n\t\t\t\treturn true; // to avoid unnecessary duplicate request below\n\t\t\t} else {\n\t\t\t\tthis.isManagedExternally = false;\n\t\t\t}\n\t\t}\n\n\t\t// Externally managed --------------------------------------------------\n\n\t\tif (this.isManagedExternally) {\n\t\t\treturn this.isExternalBackendRunning();\n\t\t}\n\n\t\t// We manage the process ourself ---------------------------------------\n\n\t\treturn this.processRunner.isRunning();\n\t}", "public void start( BundleContext bc ) throws Exception\n {\n String configLocation = \"file://\"+System.getProperty(\"settings.folder.location\")+\"snomed-db.properties\";\n logger.debug(\"configLocation = \" + configLocation);\n logger.info( \"STARTING Terminology DAO Service\" );\n }", "public boolean hasBackendMid() {\n return genClient.cacheHasKey(CacheKey.backendMid);\n }", "@BeforeAll\n static void initClass() {\n // start the program\n server = MpSecurityClientMain.startTheServer();\n }", "public void check() {\r\n logger.info(\"ADIT monitor - Checking database and application.\");\r\n\r\n checkApplication();\r\n\r\n checkDBConnection();\r\n checkDBRead(this.getMonitorConfiguration().getTestDocumentId());\r\n }", "@Override\r\n public Integer start(String[] strings) {\r\n //Load configuration from file \"app.conf\"\r\n IS.loadConfig();\r\n //Start Embedded DB Server\r\n IS.startDB();\r\n //start socket Server\r\n IS.startSocketServer();\r\n //start web server\r\n IS.startWebServer();\r\n\r\n //start CallbackController scheduler\r\n IS.startCallbackController();\r\n\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n try {\r\n //Subscribe for All Notifications via notification producer\r\n if (!IS.resumeCctConnection()) {\r\n IS.startCCT();\r\n }\r\n } finally {\r\n //Attach CCT Connection Monitor\r\n IS.attachCctSessionMonitor();\r\n }\r\n }\r\n }).start();\r\n\r\n return null;\r\n }", "@Test\n public void serverStarts() {\n }", "public void run() {\n Runtime.getRuntime().addShutdownHook(new MNOSManagerShutdownHook(this));\n\n OFNiciraVendorExtensions.initialize();\n\n this.startDatabase();\n\n try {\n final ServerBootstrap switchServerBootStrap = this\n .createServerBootStrap();\n\n this.setServerBootStrapParams(switchServerBootStrap);\n\n switchServerBootStrap.setPipelineFactory(this.pfact);\n final InetSocketAddress sa = this.ofHost == null ? new InetSocketAddress(\n this.ofPort) : new InetSocketAddress(this.ofHost,\n this.ofPort);\n this.sg.add(switchServerBootStrap.bind(sa));\n }catch (final Exception e){\n throw new RuntimeException(e);\n }\n\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please type in the License Server\");\n else {\n \t//TODO add more checks\n \tok();\n }\n }", "protected void check() throws IOException, ServletException {\n if(value.length()==0)\n error(\"please specify a configuration\");\n else {\n \t\t//TODO add more checks\n \t\tok();\n }\n }", "@Override\n public void validate() throws Exception {\n if (caller != null) {\n caller.callSampleApp();\n }\n\n // hit the mocked server to validate to if it receives data\n callMockedServer();\n }", "@BeforeClass\n public void setUp() {\n\n service = AppiumDriverLocalService.buildDefaultService();\n\n service.start();\n\n if (service == null || !service.isRunning()) {\n throw new AppiumServerHasNotBeenStartedLocallyException(\"Failed to start the Appium Server\");\n }\n path = AppUtility.getInstance().getPath();\n }", "private void startServer() {\n\t\ttry {\n//\t\t\tserver = new Server();\n//\t\t\tserver.start();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: add message in UI for user\n\t\t}\n\t}", "@Override\n public void start() throws LifecycleException {\n logger.info(\"Start http server ... \");\n\n\n try {\n // create a resource config that scans for JAX-RS resources and providers\n final ResourceConfig rc = new ResourceConfig()\n .packages(PACKAGES_SCAN) // packages path for resources loading\n .property(MvcFeature.TEMPLATE_BASE_PATH, FREEMARKER_BASE) // config freemarker view files's base path\n .register(LoggingFeature.class)\n .register(FreemarkerMvcFeature.class)\n .register(JettisonFeature.class)\n .packages(\"org.glassfish.jersey.examples.multipart\")\n .register(MultiPartFeature.class)\n .registerInstances(new ApplicationBinder()); //\n\n // create and start a new instance of grizzly http server\n // exposing the Jersey application at BASE_URI\n httpServer = GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc);\n\n // Set StaticHttpHandler to handle http server's static resources\n String htmlPath = this.getClass().getResource(HTML_BASE).getPath(); // TODO, 部署后要根据实际目录修正!classes 同级目录下的 html 目录\n HttpHandler handler = new StaticHttpHandler(htmlPath);\n httpServer.getServerConfiguration().addHttpHandler(handler, \"/\");\n\n logger.info(\"Jersey app started with WADL available at {} application.wadl\\n \", BASE_URI);\n } catch (Exception e) {\n throw new LifecycleException(e); // just convert to self defined exception\n }\n }", "public void CheckConnection() {\n\t\tconn = SqlConnection.DbConnector();\n\t\tif (conn == null) {\n\t\t\tSystem.out.println(\"Connection Not Successful\");\n\t\t\tSystem.exit(1);\n\t\t} else {\n\t\t\tSystem.out.println(\"Connection Successful\");\n\t\t}\n\t}", "private synchronized void startRuntimeIfNeeded() {\n if (childProcess != null) {\n return;\n }\n\n // If JSII_DEBUG is set, enable traces.\n final String jsiiDebug = System.getenv(\"JSII_DEBUG\");\n final boolean traceEnabled = jsiiDebug != null\n && !jsiiDebug.isEmpty()\n && !jsiiDebug.equalsIgnoreCase(\"false\")\n && !jsiiDebug.equalsIgnoreCase(\"0\");\n\n // If JSII_RUNTIME is set, use it to find the jsii-server executable\n // otherwise, we default to \"jsii-runtime\" from PATH.\n final String jsiiRuntimeEnv = System.getenv(\"JSII_RUNTIME\");\n final List<String> jsiiRuntimeCommand = jsiiRuntimeEnv == null\n ? Arrays.asList(\"node\", BundledRuntime.extract(getClass()))\n : Collections.singletonList(jsiiRuntimeEnv);\n\n if (traceEnabled) {\n System.err.println(\"jsii-runtime: \" + String.join(\" \", jsiiRuntimeCommand));\n }\n\n try {\n final ProcessBuilder pb = new ProcessBuilder()\n .command(jsiiRuntimeCommand)\n .redirectError(ProcessBuilder.Redirect.PIPE)\n .redirectOutput(ProcessBuilder.Redirect.PIPE)\n .redirectInput(ProcessBuilder.Redirect.PIPE);\n pb.environment().put(\"JSII_AGENT\", String.format(\"Java/%s\", System.getProperty(\"java.version\")));\n if (jsiiDebug != null) {\n pb.environment().put(\"JSII_DEBUG\", jsiiDebug);\n }\n\n this.childProcess = pb.start();\n\n this.stdin = new OutputStreamWriter(this.childProcess.getOutputStream(), StandardCharsets.UTF_8);\n this.stdout = new BufferedReader(new InputStreamReader(this.childProcess.getInputStream(), StandardCharsets.UTF_8));\n\n this.errorStreamSink = new ErrorStreamSink(this.childProcess.getErrorStream());\n this.errorStreamSink.start();\n } catch (final IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n\n this.shutdownHook = new Thread(this::terminate, \"Terminate jsii client\");\n Runtime.getRuntime().addShutdownHook(this.shutdownHook);\n\n handshake();\n\n this.client = new JsiiClient(this);\n }", "public static boolean isSolrLocalWebappStarted() {\n return ScipioSolrInfoServlet.isServletInitStatusReached();\n }", "@Override\n public void start() throws WebServerException {\n }", "@Override\n\tpublic void onStartup(ServletContext servletContext)\n\t\t\tthrows ServletException {\n\t\tsuper.onStartup(servletContext);//master line where whole framework works\n\t\t//configure global objects/tasks if required\n\t}", "@Override\n\tprotected String getServerAdapter() {\n\t\treturn \"Container Development Environment 3.2\";\n\t}", "@SuppressLint(\"LongLogTag\")\n public static boolean isIpfsRuning() {\n if (IpfsRunning != null)\n return IpfsRunning;\n\n try {\n IPFS ipfs = new IPFS(IPFS_PROXY_URL);\n IpfsRunning = true;\n } catch (Exception e) {\n Log.e(\"Failed to connnect IPFS service:\", e.toString());\n IpfsRunning = false;\n }\n\n return IpfsRunning;\n }", "protected void serverStarting(final ComponentManager manager) {\n OpenGammaComponentServerMonitor.create(manager.getRepository());\n }", "private boolean createLauncher(int deploymentNameSuffix, String reason) {\n boolean depCreated = runtimeClient.createDeployment(deploymentNameSuffix, rootDomainName, reason);\n boolean svcCreated = runtimeClient.createService(deploymentNameSuffix, rootDomainName, reason);\n\n return depCreated && svcCreated;\n }", "public void setupWebServers(){\n if(rwsServer == null || csaServer == null){\n String serverURL = getFirstAttribute(cn,FRONTEND_ADDRESS_TAG);\n setupWebServers(serverURL);\n }\n }", "boolean k2h_load_debug_env();", "boolean needSeparateConnectionForDdl();", "public boolean isConnected() {\r\n\t\treturn backend != null;\r\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tObject server = serverDefinition.getServerFlag().getFlag();\n\t\t\t\t\tif (server == null) {\n\t\t\t\t\t\tshowPanel(CONNECTING_PANEL);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowPanel(CONNECTED_PANEL);\n\t\t\t\t\t}\n\t\t\t\t}", "@java.lang.Override\n public boolean hasCloudSqlInstance() {\n return stepInfoCase_ == 19;\n }", "public boolean isRunning()\n\t{\n\t\tif(mBoundService != null){\t// Service already started\n\t\t\tif(mBoundService.testThread != null && mBoundService.testThread.isAlive())\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}else{\n\t\t\tLog.v(\"4G Test\", \"mBoundService null not running\");\n\t\t\treturn false;\n\t\t}\n\t}", "protected boolean enableDNSAndTestConfigUpdate() throws Throwable {\n if (enableDNS() &&\n rebootAndWait(\"all\") &&\n verifyHivecfg() //&&\n //upgradeChecker()\n ) {\n okToProceed = true;\n return true;\n }\n return false;\n }", "public void initEasyJWeb() {\r\n\t\tlogger.info(I18n.getLocaleMessage(\"core.execute.EasyJWeb.initialization.applications\"));\r\n\t\tif (resourceLoader == null) {\r\n\t\t\tif (servletContext != null)\r\n\t\t\t\tresourceLoader = new ServletContextResourceLoader(\r\n\t\t\t\t\t\tservletContext);\r\n\t\t\telse\r\n\t\t\t\tresourceLoader = new FileResourceLoader();\r\n\t\t}\r\n\t\tinitContainer();\r\n\t\tFrameworkEngine.setWebConfig(webConfig);// 初始化框架工具\r\n\t\tFrameworkEngine.setContainer(container);// 在引擎中安装容器\r\n\t\tAjaxUtil.setServiceContainer(new AjaxServiceContainer(container));// 初始化Ajax容器服务\r\n\t\tinitTemplate(); // 初始化模版\r\n\t\tinvokeApps();// 在应用启动的时候启动一些配置好的应用\r\n\t\thaveInitEasyJWeb = true;\r\n\t\tlogger.info(I18n.getLocaleMessage(\"core.EasyJWeb.initialized\"));\r\n\t}", "@PostConstruct\n public void init() {\n rest.put(\"http://authenticationServer:8080/bot\", info);\n AuthServerChecker checker = new AuthServerChecker(name);\n checker.start();\n }", "protected void checkCanRun() throws BuildException {\n \n }", "@Override\n public final void contextInitialized(final ServletContextEvent sce) {\n context = sce.getServletContext();\n\n String apiSrvDaemonPath = context.getRealPath(PS);\n System.setProperty(\"APISrvDaemonPath\", context.getRealPath(\"/\"));\n System.setProperty(\"APISrvDaemonVersion\",\n \"v.0.0.2-22-g2338f25-2338f25-40\");\n\n // Notify execution\n System.out.println(\"--- \" + \"Starting APIServerDaemon \"\n + System.getProperty(\"APISrvDaemonVersion\") + \" ---\");\n System.out.println(\"Java vendor : '\" + VN + \"'\");\n System.out.println(\"Java vertion: '\" + VR + \"'\");\n System.out.println(\"Running as : '\" + US + \"' username\");\n System.out.println(\"Servlet path: '\" + apiSrvDaemonPath + \"'\");\n\n // Initialize log4j logging\n String log4jPropPath =\n apiSrvDaemonPath + \"WEB-INF\" + PS + \"log4j.properties\";\n File log4PropFile = new File(log4jPropPath);\n\n if (log4PropFile.exists()) {\n System.out.println(\"Initializing log4j with: \" + log4jPropPath);\n PropertyConfigurator.configure(log4jPropPath);\n } else {\n System.err.println(\n \"WARNING: '\" + log4jPropPath\n + \" 'file not found, so initializing log4j \"\n + \"with BasicConfigurator\");\n BasicConfigurator.configure();\n }\n\n // Make a test with jdbc/geApiServerPool\n // jdbc/UserTrackingPool\n // jdbc/gehibernatepool connection pools\n String currentPool = \"not yet defined!\";\n String poolPrefix = \"java:/comp/env/\";\n String[] pools = {\"jdbc/fgApiServerPool\",\n \"jdbc/UserTrackingPool\",\n \"jdbc/gehibernatepool\"};\n Connection[] connPools = new Connection[pools.length];\n\n for (int i = 0; i < pools.length; i++) {\n try {\n Context initContext = new InitialContext();\n Context envContext =\n (Context) initContext.lookup(\"java:comp/env\");\n\n currentPool = pools[i];\n\n // DataSource ds =\n // (DataSource)initContext.lookup(poolPrefix+currentPool);\n DataSource ds = (DataSource) envContext.lookup(currentPool);\n\n connPools[i] = ds.getConnection();\n System.out.println(\"PERFECT: \" + currentPool + \" was ok\");\n } catch (Exception e) {\n System.err.println(\"WARNING: \" + currentPool + \" failed\" + LS\n + e.toString());\n } finally {\n try {\n connPools[i].close();\n } catch (Exception e) {\n System.err.println(\"WARNING: \" + currentPool\n + \" failed to close\" + LS + e.toString());\n }\n }\n }\n\n // Register MySQL driver\n APIServerDaemonDB.registerDriver();\n\n // Initializing the daemon\n if (asDaemon == null) {\n asDaemon = new APIServerDaemon();\n }\n\n asDaemon.startup();\n }", "@Override\n\tpublic boolean isInit() {\n\t\tFile path = new File(initService.defaultAddr);\n\t\tif(!path.exists()) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tFile set = new File(initService.defaultAddr+initFile);\n\t\tif(!set.exists()) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void startServer() {\n System.out.println(\"Inicie\");\n httpServer = new HttpServer();\n httpServer.registerProessor(\"/App\", this);\n try {\n httpServer.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void setUpGUI()\n\t{\n\t\tgetContentPane().setLayout(new BorderLayout());\n\n\t\t//center panel (project and developer dropdown lists, and state of\n\t\t//server label)\n\t\tJPanel centerPanel = new JPanel();\n\t\tcenterPanel.setLayout(new GridLayout(3, 2));\n\n\t\tcenterPanel.add(new JLabel(\"Choose a project\"));\n\t\tprojectsComboBox = new JComboBox<String>(selectADBString);\n\t\tcenterPanel.add(projectsComboBox);\n\n\t\tcenterPanel.add(new JLabel(\"Choose a developer group\"));\n\t\tdevNamesComboBox = new JComboBox<String>(selectADBString);\n\t\tcenterPanel.add(devNamesComboBox);\n\n\t\tstateOfServerLabel = new JLabel(\"The server is NOT running\");\n\t\tcenterPanel.add(stateOfServerLabel);\n\n\t\tgetContentPane().add(centerPanel, BorderLayout.CENTER);\n\n\t\t//south panel (start the server)\n\t\tJPanel southPanel = new JPanel();\n\t\tsouthPanel.setLayout(new FlowLayout());\n\n\t\tstartStopServerButton = new JButton(START_SERVER_BUTTON_TEXT);\n\t\tstartStopServerButton.addActionListener(this);\n\n\t\topenPlaybackInBrowserCheckbox = new JCheckBox(\"Open the playback in the browser?\");\n\n\t\tsouthPanel.add(startStopServerButton);\n\t\tsouthPanel.add(openPlaybackInBrowserCheckbox);\n\n\t\tgetContentPane().add(southPanel, BorderLayout.SOUTH);\n\n\t\t//create the north panel by looking for the last used db file\n\t\tJPanel northPanel = createNorthPanel();\n\n\t\tgetContentPane().add(northPanel, BorderLayout.NORTH);\n\n\t\t//window controls\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetSize(800, 250);\n\t\tsetVisible(true);\n\t}", "private void tryInitialize() throws IOException, ParseException, org.apache.commons.cli.ParseException {\n log.log(Level.FINE, MessageNames.STARTER_SERVICE_DEPLOYER_STARTING, myName);\n\n /*\n Establish the deployment directory.\n */\n deploymentDirectoryFile = fileUtility.getProfileDirectory().resolveFile(deployDirectory);\n if (deploymentDirectoryFile == null\n || deploymentDirectoryFile.getType() != FileType.FOLDER) {\n log.log(Level.WARNING, MessageNames.NO_DEPLOYMENT_DIRECTORY,\n new Object[]{deployDirectory, fileUtility.getProfileDirectory()});\n }\n /*\n * Find the name of the client we need to deploy. \n */\n /* First argument was the profile name. Second argument is the name of \n * the client app to run. All the rest are parameters to the client\n * app.\n */\n if (clientAppName == null && commandLineArguments.length < 2) {\n System.out.println(messages.getString(MessageNames.CLIENT_APP_USAGE));\n System.exit(1);\n }\n String[] clientAppArgs = new String[0];\n String additionalApps = Strings.EMPTY;\n if (clientAppName == null) {\n String[] argsWithoutProfile = new String[commandLineArguments.length - 1];\n System.arraycopy(commandLineArguments, 1, argsWithoutProfile, 0,\n argsWithoutProfile.length);\n CommandLine cl = CommandLineParsers.parseCommandLineAppRunnerLine(argsWithoutProfile);\n // At this point, any remaining args after -with are in getArgs()\n // The first of those is the app name.\n clientAppName = cl.getArgs()[0];\n clientAppArgs = new String[cl.getArgs().length - 1];\n System.arraycopy(cl.getArgs(), 1, clientAppArgs, 0, clientAppArgs.length);\n if (cl.hasOption(CommandLineParsers.WITH)) {\n additionalApps = cl.getOptionValue(CommandLineParsers.WITH);\n }\n } else {\n clientAppArgs = new String[commandLineArguments.length - 1];\n System.arraycopy(commandLineArguments, 1, clientAppArgs, 0,\n clientAppArgs.length);\n }\n if (!Strings.EMPTY.equals(additionalApps)) {\n startAdditionalApps(additionalApps);\n }\n\n /*\n See if the clientAppName happens to be a 'jar' name and refers to a \n jar file. If so, that's the service archive.\n */\n FileObject serviceArchive = null;\n if (isAppArchive(clientAppName)) {\n serviceArchive = fileUtility.resolveFile(clientAppName);\n } else {\n serviceArchive = findServiceArchiveForName(clientAppName);\n }\n\n if (serviceArchive == null) {\n System.err.println(MessageFormat.format(messages.getString(MessageNames.NO_SUCH_CLIENT_APP), clientAppName));\n System.exit(1);\n }\n // Deploy the service\n deployServiceArchive(serviceArchive, clientAppArgs);\n // Run the main method with the remaining command line parameters.\n }", "public boolean isListenerRunning(){\n\t\tsynchronized (httpServerMutex) {\n\t\t\tif( webServer == null )\n\t\t\t\treturn false;\n\t\t\telse{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}", "public void checkApplication() {\r\n logger.info(\"ADIT monitor - Checking application.\");\r\n List<String> errorMessages = new ArrayList<String>();\r\n double duration = 0;\r\n DecimalFormat df = new DecimalFormat(\"0.000\");\r\n\r\n Date start = new Date();\r\n long startTime = start.getTime();\r\n\r\n // 1. Check temporary folder\r\n try {\r\n\r\n String tempDir = this.getConfiguration().getTempDir();\r\n File tempDirFile = new File(tempDir);\r\n String randomFileName = Util.generateRandomFileName();\r\n File temporaryFile = new File(tempDirFile.getAbsolutePath() + File.separator + randomFileName);\r\n temporaryFile.createNewFile();\r\n\r\n } catch (Exception e) {\r\n logger.error(\"Error checking application - temporary directory not defined or not writable: \", e);\r\n errorMessages.add(\"Error checking application - temporary directory not defined or not writable: \"\r\n + e.getMessage());\r\n }\r\n\r\n // 3. Check test document ID\r\n try {\r\n\r\n Long testDocumentID = this.getMonitorConfiguration().getTestDocumentId();\r\n if (testDocumentID == null) {\r\n throw new Exception(\"Test document ID not defined.\");\r\n }\r\n\r\n } catch (Exception e) {\r\n logger.error(\"Error checking application - test document ID not defined.\");\r\n errorMessages.add(\"Error checking application - test document ID not defined.\");\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\r\n // Errors were detected\r\n if (errorMessages.size() > 0) {\r\n String combinedErrorMessage = \"\";\r\n for (int i = 0; i < errorMessages.size(); i++) {\r\n if (i != 0) {\r\n combinedErrorMessage = combinedErrorMessage + \", \";\r\n }\r\n combinedErrorMessage = combinedErrorMessage + errorMessages.get(i);\r\n }\r\n\r\n this.getNagiosLogger().log(ADIT_APP + \" \" + FAIL + \" \",\r\n new Exception(\"Errors found: \" + combinedErrorMessage));\r\n } else {\r\n this.getNagiosLogger().log(ADIT_APP + \" \" + OK + \" \" + df.format(duration) + \" \" + SECONDS);\r\n }\r\n\r\n }", "private boolean canStartServer() {\n\n\t\tfinal ConnectivityManager connMgr = (ConnectivityManager) this\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n\t\tfinal android.net.NetworkInfo wifi =\n\n\t\tconnMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI);\n\n\t\tfinal android.net.NetworkInfo mobile = connMgr\n\t\t\t\t.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);\n\n\t\treturn wifi.isAvailable() || mobile.isAvailable();\n\t}", "@Override\n public void canWorkerRun(Map<Class<?>, Object> ejbs) throws ServiceExecutionFailedException {\n }", "public static boolean isSolrWebappReady(HttpSolrClient client) throws Exception {\n return isSystemInitialized() && isSolrWebappPingOk(client);\n }", "boolean hasServerHello();", "@Override\n\tpublic void contextInitialized(ServletContextEvent arg0) {\n\t\tserverAPP.start();\n\t}", "public void init() {\r\n\t\tthis.initWebAndSocketServer();\r\n\r\n\t\t/*\r\n\t\t * Set/update server info\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tServerInfo serverInfo = Info.getServerInfo();\r\n\t\t\tserverInfo.setPort(Integer.parseInt(SettingsManager.getStringValue(GeneralController.getInstance().getIdentifier(), GeneralController.Settings.NET_HTTP_PORT.get())));\r\n\t\t\tserverInfo.setName(SettingsManager.getStringValue(GeneralController.getInstance().getIdentifier(), GeneralController.Settings.SERVER_NAME.get(), \"Home server\"));\r\n\t\t\tserverInfo.setVersion(BuildConfig.VERSION);\r\n\t\t\tInfo.writeServerInfo(serverInfo);\r\n\t\t} catch (IOException | JSONException e1) {\r\n\t\t\tServer.log.error(\"Could not update server info. Designer might not work as expected: \" + e1.getMessage());\r\n\t\t}\r\n\r\n\t\tRuleManager.init();\r\n\t}", "public void startup(){}", "private void isSystemReady() {\n\tif ((moStore.getAuthenticationDefinition().getQuery() == null)\n\t\t|| moStore.getJdbcConnectionDetails() == null) {\n\t moSessionStore.setSystemToHaltState();\n\n\t return;\n\t}// if ((moStore.getAuthenticationDefinition().getQuery() == null)\n\n\tmoSessionStore.setSystemToReadyState();\n }", "@Override\n protected Result check()\n {\n return this.gitLabModeInfos.isEmpty() ? Result.unhealthy(\"No GitLab modes available\") : Result.healthy();\n }", "@java.lang.Override\n public boolean hasCloudSqlInstance() {\n return stepInfoCase_ == 19;\n }", "public boolean isServiceRunning();", "@PostConstruct\r\n\t public void initApplication() {\r\n\t log.info(\"Running with Spring profile(s) : {}\", Arrays.toString(env.getActiveProfiles()));\r\n\t Collection<String> activeProfiles = Arrays.asList(env.getActiveProfiles());\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_PRODUCTION)) {\r\n\t log.error(\"You have misconfigured your application! It should not run \" +\r\n\t \"with both the 'dev' and 'prod' profiles at the same time.\");\r\n\t }\r\n\t if (activeProfiles.contains(Constants.SPRING_PROFILE_DEVELOPMENT) && activeProfiles.contains(Constants.SPRING_PROFILE_CLOUD)) {\r\n\t log.error(\"You have misconfigured your application! It should not\" +\r\n\t \"run with both the 'dev' and 'cloud' profiles at the same time.\");\r\n\t }\r\n\t }", "private void initialize() throws IOException, ServletException, URISyntaxException {\n\n LOG.info(\"Initializing the internal Server\");\n Log.setLog(new Slf4jLog(Server.class.getName()));\n\n /*\n * Create and configure the server\n */\n this.server = new Server();\n this.serverConnector = new ServerConnector(server);\n this.serverConnector.setReuseAddress(Boolean.TRUE);\n\n LOG.info(\"Server configure ip = \" + DEFAULT_IP);\n LOG.info(\"Server configure port = \" + DEFAULT_PORT);\n\n this.serverConnector.setHost(DEFAULT_IP);\n this.serverConnector.setPort(DEFAULT_PORT);\n this.server.addConnector(serverConnector);\n\n /*\n * Setup the basic application \"context\" for this application at \"/iop-node\"\n */\n this.servletContextHandler = new ServletContextHandler(ServletContextHandler.SESSIONS);\n this.servletContextHandler.setContextPath(JettyEmbeddedAppServer.DEFAULT_CONTEXT_PATH);\n this.server.setHandler(servletContextHandler);\n\n /*\n * Initialize webapp layer\n */\n WebAppContext webAppContext = new WebAppContext();\n webAppContext.setContextPath(JettyEmbeddedAppServer.DEFAULT_CONTEXT_PATH);\n\n URL webPath = JettyEmbeddedAppServer.class.getClassLoader().getResource(\"web\");\n LOG.info(\"webPath = \" + webPath.getPath());\n\n webAppContext.setResourceBase(webPath.toString());\n webAppContext.setContextPath(JettyEmbeddedAppServer.DEFAULT_CONTEXT_PATH+\"/web\");\n webAppContext.addBean(new ServletContainerInitializersStarter(webAppContext), true);\n webAppContext.setWelcomeFiles(new String[]{\"index.html\"});\n webAppContext.addFilter(AdminRestApiSecurityFilter.class, \"/rest/api/v1/admin/*\", EnumSet.of(DispatcherType.REQUEST));\n webAppContext.setInitParameter(\"org.eclipse.jetty.servlet.Default.dirAllowed\", \"false\");\n servletContextHandler.setHandler(webAppContext);\n server.setHandler(webAppContext);\n\n /*\n * Initialize restful service layer\n */\n ServletHolder restfulServiceServletHolder = new ServletHolder(new HttpServlet30Dispatcher());\n restfulServiceServletHolder.setInitParameter(\"javax.ws.rs.Application\", JaxRsActivator.class.getName());\n restfulServiceServletHolder.setInitParameter(\"resteasy.use.builtin.providers\", \"true\");\n restfulServiceServletHolder.setAsyncSupported(Boolean.TRUE);\n webAppContext.addServlet(restfulServiceServletHolder, \"/rest/api/v1/*\");\n\n this.server.dump(System.err);\n\n }", "protected void init()\n {\n context.setConfigured(false);\n ok = true;\n\n if (!context.getOverride())\n {\n processContextConfig(\"context.xml\", false);\n processContextConfig(getHostConfigPath(org.apache.catalina.startup.Constants.HostContextXml), false);\n }\n // This should come from the deployment unit\n processContextConfig(context.getConfigFile(), true);\n }", "public void checkStatusWithPhantomJS() throws TechnicalException {\n\t\t PhantomJSDriver driver=null;\n\t\t String baseUrl;\n\t\t StringBuffer verificationErrors = new StringBuffer();\n\t\ttry {\n\t\t\tDesiredCapabilities caps = new DesiredCapabilities();\n\t\t\tcaps.setCapability(\"phantomjs.binary.path\", statusProperties.getPhantom_path());\n\t\t\tdriver = new PhantomJSDriver(caps);\n\t\t\tbaseUrl = statusProperties.getInter_pbl_url();\n\t\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\t\t\t//Connection \n\t\t\tdriver.get(baseUrl);\n\t\t\t//specific login for developement environement\n\t\t\tif (driver.getTitle().equals(pblinkProperties.getIndex_title())) {\n\t\t\t\tdriver.findElement(By.cssSelector(\"input[type=\\\"image\\\"]\")).click();\n\t\t\t}else{\n\t\t\t\t//UAt environnement\n\t\t\t\tif (driver.getTitle().equals(pblinkProperties.getSso_title())) {\n\t\t\t\t\t//get ther form\n\t\t\t\t\tlogInSSO(driver, baseUrl);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t//check Iframe menu\n\t\t\tcheckScnarioUserListe(driver);\n\t\t} catch (Exception exp) {\n\t\t\tTechnicalException techExp = new TechnicalException(exp);\n\t\t\tif(logger.isErrorEnabled())\n\t\t\t\tlogger.error(techExp.getStrstackTrace());\n\t\t\tthrow techExp; \n\t\t}\n\t\tfinally{\n\t\t\tif (driver !=null)\n\t\t\tdriver.quit();\n\t\t\tString verificationErrorString = verificationErrors.toString();\n\t\t\tif (!\"\".equals(verificationErrorString)) {\n\t\t\t\tif(logger.isErrorEnabled())\n\t\t\t\t\tlogger.error(\"ERROR : there are some verifications errors : \"+verificationErrorString);\n\t\t\t\tthrow new TechnicalException(\"ERROR : PBL Internet checking/there are some verifications errors with phantom driver : \"+verificationErrorString);\n\t\t\t}\n\t\t}\n\t}", "@Test(groups = { \"Integration\" })\n public void canStartupAndShutdown() throws Exception {\n redis = app.createAndManageChild(EntitySpec.create(RedisStore.class));\n app.start(ImmutableList.of(loc));\n\n EntityAsserts.assertAttributeEqualsEventually(redis, Startable.SERVICE_UP, true);\n\n redis.stop();\n\n EntityAsserts.assertAttributeEqualsEventually(redis, Startable.SERVICE_UP, false);\n }" ]
[ "0.6243478", "0.6177775", "0.58085287", "0.58069104", "0.54960936", "0.5402883", "0.53822994", "0.53582746", "0.5314971", "0.52967036", "0.52573335", "0.5207524", "0.51878124", "0.51840615", "0.5171106", "0.51344746", "0.51338094", "0.5133332", "0.5113421", "0.5108959", "0.51039344", "0.50969064", "0.5096769", "0.50727123", "0.5071918", "0.5064281", "0.506083", "0.50497746", "0.50466526", "0.50353235", "0.5026159", "0.50182694", "0.5010544", "0.49985522", "0.49974397", "0.49721754", "0.4969272", "0.4959054", "0.49543327", "0.49512595", "0.4941759", "0.49411547", "0.49404633", "0.49363208", "0.49359542", "0.49348688", "0.49265963", "0.4926437", "0.4915221", "0.49115232", "0.49077174", "0.48990276", "0.48837814", "0.48648116", "0.48590073", "0.4824131", "0.48196176", "0.48123622", "0.48117495", "0.4811308", "0.48107272", "0.48104945", "0.48085392", "0.48041698", "0.47990072", "0.47911793", "0.47867206", "0.47830233", "0.47787568", "0.47761512", "0.47733492", "0.47674453", "0.47638866", "0.4757641", "0.4757288", "0.47526497", "0.47506562", "0.47503746", "0.47499642", "0.47459713", "0.47428772", "0.4742703", "0.4738575", "0.473772", "0.4735235", "0.4726073", "0.4717258", "0.4711275", "0.47109035", "0.47069722", "0.47033697", "0.47022772", "0.47017106", "0.47008264", "0.46985933", "0.46974227", "0.46960393", "0.46955812", "0.4689664", "0.46866855" ]
0.6349695
0
/ sendRequest Input: URL Action: Send a HTTP GET request for that URL and get the response Returns: The response
private String sendRequest(String requestUrl) throws Exception { URL url = new URL(requestUrl); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestMethod("GET"); connection.setRequestProperty("User-Agent", "Mozilla/5.0"); BufferedReader in = new BufferedReader( new InputStreamReader(connection.getInputStream(), "UTF-8")); String responseCode = Integer.toString(connection.getResponseCode()); if(responseCode.startsWith("2")){ String inputLine; StringBuffer response = new StringBuffer(); while ((inputLine = in.readLine()) != null) { response.append(inputLine); } in.close(); connection.disconnect(); return response.toString(); } else { System.out.println("Unable to connect to "+requestUrl+ ". Please check whether the instance is up and also the security group settings"); connection.disconnect(); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getRequest(String url);", "private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}", "public void sendRequest() {\n\t\tURL obj;\n\t\ttry {\n\t\t\t// Instantiating HttpURLConnection object for making GET request.\n\t\t\tobj = new URL(REQUEST_URL);\n\t\t HttpURLConnection connection = (HttpURLConnection) obj.openConnection();\n\t\t connection.setRequestMethod(REQUEST_METHOD);\n\t\t connection.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t connection.setInstanceFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\tHttpURLConnection.setFollowRedirects(FOLLOW_REDIRECTS);\n\t\t\n\t\t\t// Checking response code for successful request.\n\t\t\t// If responseCode==200, read the response,\n\t\t\t// if responseCode==3xx, i.e., a redirect, then make the request to \n\t\t\t// new redirected link, specified by 'Location' field. \n\t\t\t// NOTE: Only one level of redirection is supported for now. \n\t\t\t// Can be modified to support multiple levels of Redirections.\n\t\t\tint responseCode = connection.getResponseCode();\n\t\t\tif(responseCode == HttpURLConnection.HTTP_MOVED_PERM ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_MOVED_TEMP ||\n\t\t\t\t\tresponseCode == HttpURLConnection.HTTP_SEE_OTHER) {\n\t\t\t\tlogger.info(\"Redirect received in responseCode\");\n\t\t\t\tString newUrl = connection.getHeaderField(\"Location\");\n\t\t\t\tconnection = (HttpURLConnection) new URL(newUrl).openConnection();\n\t\t\t}\n\t\t\tresponseCode = connection.getResponseCode();\n\t\t\t\n\t\t\t// process response message if responseCode==200 i.e., success.\n\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) {\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tconnection.getInputStream()));\n\t\t\t\tString inputLine;\n\t\t\t\tStringBuffer response = new StringBuffer();\n\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t}\n\t\t\t\tin.close();\n\t\t\t\t//Uncomment following line to log response data.\n\t\t\t\t//logger.info(response.toString());\n\t\t\t} else {\n\t\t\t\tlogger.warning(\"Http GET request was unsuccessful!\");\n\t\t\t}\n\t\t} catch (MalformedURLException e) {\n\t\t\tlogger.severe(\"MalformedURLException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tlogger.severe(\"IOException: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n }", "public String sendGet(String url)\n\t{\n\t\t//Getting most relevant user-agent from robots.txt\n\t\tbest_match = findBestMatch();\n\t\t//Deicing whether or not to skip\n\t\tif (shouldSkip(url))\n\t\t{\n\t\t\treturn \"skipped\";\n\t\t}\n\t\tif (url.startsWith((\"https\")))\n\t\t{\n\t\t\treturn sendGetSecure(url);\n\t\t}\n\t\ttry \n\t\t{\n\t\t\t//Creating URL objects\n\t\t\tURL http_url = new URL(url);\n\t\t\t//Delaying visit if directed to by robots.txt\n\t\t\tcrawlDelay();\n\t\t\tHttpURLConnection secure_connection = (HttpURLConnection)http_url.openConnection();\n\t\t\t//Setting request method\n\t\t\tsecure_connection.setRequestMethod(\"GET\");\n\t\t\t//Sending all headers except for host (since URLConnection will take care of this)\n\t\t\tfor (String h: headers.keySet())\n\t\t\t{\n\t\t\t\tif (!h.equals(\"Host\"))\n\t\t\t\t{\n\t\t\t\t\tsecure_connection.setRequestProperty(h, headers.get(h));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Getting ResponseParser object to read in page content\n\t\t\tp = new ResponseParser(new BufferedReader(new InputStreamReader(secure_connection.getInputStream())));\n\t\t\t\n\t\t\t//Parsing all response headers from returned object\n\t\t\tMap<String,String> p_headers = p.getHeaders();\n\t\t\tMap<String, List<String>> response_headers = secure_connection.getHeaderFields();\n\t\t\tfor (Map.Entry<String, List<String>> entry : response_headers.entrySet()) \n\t\t\t{\n\t\t\t\tif (entry.getKey() == null)\n\t\t\t\t{\n\t\t\t\t\tp.setResponse(entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tp_headers.put(entry.getKey(),entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//If we didn't get any headers in the response, the URL was invalid\n\t\t\tif (p.getHeaders().size() == 0)\n\t\t\t{\n\t\t\t\treturn (\"invalid url\");\n\t\t\t}\n\t\t\t\n\t\t\t//Otherwise return the contents of the returned document\n\t\t\treturn p.getData();\n\t\t\t\n\t\t} \n\t\tcatch (IOException | IllegalArgumentException e) \n\t\t{\n\t\t\treturn \"invalid url\";\n\t\t}\t\t\n//\t\ttry\n//\t\t{\n//\t\t\t//Deals with secure request\n//\t\t\tif (url.startsWith((\"https\")))\n//\t\t\t{\n//\t\t\t\treturn sendGetSecure(url);\n//\t\t\t}\n//\t\t\t//Parsing host and port from URL\n//\t\t\tURLInfo url_info = new URLInfo(url);\n//\t\t\thost = url_info.getHostName();\n//\t\t\tport = url_info.getPortNo();\n//\t\t\t\n//\t\t\t//Changing Host header if necessary\n//\t\t\theaders.put(\"Host\", host + \":\" + port);\n//\t\t\t\n//\t\t\t//Getting file path of URL\n//\t\t\tString file_path = url_info.getFilePath();\n//\t\t\t\n//\t\t\t//If we weren't able to find a host, URL is invalid\n//\t\t\tif (host == null)\n//\t\t\t{\n//\t\t\t\treturn \"invalid url\";\n//\t\t\t}\n//\t\t\t\n//\t\t\t//Delaying visits based on robots.txt crawl delay\n//\t\t\tcrawlDelay();\n//\t\t\t\n//\t\t\t//Otherwise, opening up socket and sending request with all headers\n//\t\t\tsocket = new Socket(host, port);\n//\t\t\tout = new PrintWriter(socket.getOutputStream(), true);\n//\t\t\tString message = \"GET \" + file_path + \" HTTP/1.1\\r\\n\";\n//\t\t\tfor (String header: headers.keySet())\n//\t\t\t{\n//\t\t\t\tString head = header + \": \" + headers.get(header) + \"\\r\\n\";\n//\t\t\t\tmessage = message + head;\n//\t\t\t}\n//\t\t\tout.println(message);\n//\n//\t\t\t//Creating ResponseParser object to parse the Response\n//\t\t\tp = new ResponseParser(socket);\n//\t\t\t\n//\t\t\t//If we didn't get any headers in the response, the URL was invalid\n//\t\t\tif (p.getHeaders().size() == 0)\n//\t\t\t{\n//\t\t\t\treturn (\"invalid url\");\n//\t\t\t}\n//\t\t\t//Otherwise return the contents of the returned document\n//\t\t\treturn p.getData();\n//\t\t} \n//\t\tcatch (UnknownHostException e) \n//\t\t{\n//\t\t\tSystem.err.println(\"Unknown Host Exception\");\n//\t\t\tSystem.err.println(\"Problem url is: http://www.youtube.com/motherboardtv?feature=watch&trk_source=motherboard\");\n//\t\t} \n//\t\tcatch (IOException | IllegalArgumentException e) \n//\t\t{\n//\t\t\tSystem.err.println(\"IO Exception\");;\n//\t\t}\n//\t\t//Return null for all caught exceptions (Servlet will deal with this)\n//\t\treturn null;\n\t}", "private static String executeRequest(String url) throws IOException {\n\n\t\tLog.d(RiotJsonRequest.class.getSimpleName() , url);\n\t\t\n\t\tSocket s = new Socket(IP, PORT);\n\t\tPrintStream ps = new PrintStream(s.getOutputStream());\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"PS OPENED\");\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(\n\t\t\t\ts.getInputStream()));\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"BR OPENED\");\n\t\tps.println(url);\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"URL PRNTED\");\n\t\tString response = r.readLine();\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"RESPONSE: \" + response);\n\t\treturn response;\n\n\t\t// boolean unsuccessful = true;\n\t\t// int tries = 0;\n\t\t// String response = \"\";\n\t\t// while(unsuccessful && tries != 3){\n\t\t// unsuccessful = false;\n\t\t// URL requestUrl = new URL(url);\n\t\t// HttpsURLConnection connection = (HttpsURLConnection)\n\t\t// requestUrl.openConnection();\n\t\t// try{\n\t\t// Log.d(RiotJsonRequest.class.getSimpleName() , url);\n\t\t// connection.setRequestMethod(\"GET\");\n\t\t// connection.getResponseCode();\n\t\t//\n\t\t// //connection.\n\t\t//\n\t\t// connection.connect();\n\t\t//\n\t\t//\n\t\t//\n\t\t//\n\t\t// //Needs error checking on connection\n\t\t//\n\t\t// InputStream in = new\n\t\t// BufferedInputStream(connection.getInputStream());\n\t\t// BufferedReader reader = new BufferedReader(new\n\t\t// InputStreamReader(in));\n\t\t// StringBuffer buffer = new StringBuffer();\n\t\t// String line;\n\t\t//\n\t\t// //reads response in and appends it to buffer\n\t\t// do{\n\t\t// line = reader.readLine();\n\t\t// buffer.append(line);\n\t\t// }while (line != null);\n\t\t//\n\t\t// //disconnects the HttpURLConnection so other requests can be made\n\t\t// connection.disconnect();\n\t\t// //Log.d(RiotJsonRequest.class.getSimpleName() , \"RECEIVED: \" +\n\t\t// buffer.toString());\n\t\t// response = buffer.toString();\n\t\t// }catch(Exception e){\n\t\t// String code = Integer.toString(connection.getResponseCode());\n\t\t// Log.d(RiotJsonRequest.class.getSimpleName() , \"CODE: \" + code);\n\t\t// if(code.equals(\"404\")){\n\t\t// return code;\n\t\t// }\n\t\t// unsuccessful = true;\n\t\t// tries++;\n\t\t// connection.disconnect();\n\t\t// connection = null;\n\t\t// requestUrl = null;\n\t\t// try {\n\t\t// Thread.sleep(1000);\n\t\t// } catch (InterruptedException e1) {\n\t\t// e1.printStackTrace();\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t// return response;\n\t}", "public String receive(String URL)\n {\n try\n {\n HttpGet httpGet = new HttpGet(URL);\n return EntityUtils.toString(HttpClients.createDefault().execute(httpGet).getEntity());\n }catch(IOException e) \n {\n System.out.println(\"Error requesting string from \" + URL);\n }\n return \"\";\n }", "private String getRequest(String requestUrl) throws IOException {\n URL url = new URL(requestUrl);\n \n Log.d(TAG, \"Opening URL \" + url.toString());\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setDoInput(true);\n urlConnection.connect();\n String response = streamToString(urlConnection.getInputStream());\n \n return response;\n }", "static String sendGET(String GET_URL) throws IOException, JSONException {\n\t\t// Check URL is valid or not.\n\t\tif (isValidURL(GET_URL)) {\n\t\t\ttry {\n\t\t\t\tURL obj = new URL(GET_URL);\n\t\t\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\t\tcon.setRequestProperty(\"User-Agent\", USER_AGENT);\n\t\t\t\tint responseCode = con.getResponseCode();\n\t\t\t\tSystem.out.println(\"GET Response Code :: \" + responseCode);\n\t\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\t\t\tString inputLine;\n\t\t\t\t\tStringBuffer response = new StringBuffer();\n\n\t\t\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\t\t\tresponse.append(inputLine);\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\t// Convert to json object and get specified data from it. Then you can print if the response is json type.\n\t\t\t\t\tString list = getList(response.toString());\n\t\t\t\t\tSystem.out.println(list);\n\t\t\t\t\t// print result\n\t\t\t\t\tSystem.out.println(response.toString());\n\t\t\t\t\treturn \"GET request worked\"; // Added for testing.\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t\t\t\treturn \"GET request not worked\";\n\t\t\t\t}\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\treturn \"URL is valid but connection could not be established.\";\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn \"URL is valid but connection could not be established.\";\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"URL is not valid.\";\n\t\t}\n\t}", "HttpGet getRequest(HttpServletRequest request, String address) throws IOException;", "public static Response doGetRequest(String url) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n try {\n Request request = new Request.Builder()\n .url(url).addHeader(\"Content-Type\", \"text/plain\")\n .build();\n Response response = client.newCall(request).execute();\n return response;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "public static String httpRequest(String requestUrl){\r\n\t\t\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\ttry{\r\n\t\t\tURL url = new URL (requestUrl);\r\n\t\t\tHttpURLConnection httpUrlConn = (HttpURLConnection)url.openConnection();\r\n\t\t\thttpUrlConn.setDoInput(true);\r\n\t\t\thttpUrlConn.setDoOutput(false);\r\n\t\t\thttpUrlConn.setUseCaches(false);\r\n\t\t\t\r\n\t\t\thttpUrlConn.setRequestMethod(\"GET\");\r\n\t\t\thttpUrlConn.connect();\r\n\t\t\t\r\n\t\t\t//transfer the inputStream returned into string\r\n\t\t\tInputStream inputStream = httpUrlConn.getInputStream();\r\n\t\t\tInputStreamReader inputStreamReader = new InputStreamReader(inputStream,\"utf-8\");\r\n\t\t\tBufferedReader bufferedReader = new BufferedReader(inputStreamReader);\r\n\t\t\t\r\n\t\t\tString str = null;\r\n\t\t\twhile((str=bufferedReader.readLine())!=null){\r\n\t\t\t\t\r\n\t\t\t\tbuffer.append(str);\r\n\t\t\t}\r\n\t\t\tbufferedReader.close();\r\n\t\t\tinputStreamReader.close();\r\n\t\t\tinputStream.close();\r\n\t\t\tinputStream=null;\r\n\t\t\thttpUrlConn.disconnect();\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn buffer.toString();\r\n\t\t\r\n\t}", "public ServiceResponse getRequest(String url) throws IOException {\n HttpClient client = HttpClientBuilder.create().build();\n HttpGet request = new HttpGet(url);\n HttpResponse httpResponse = client.execute(request);\n ServiceResponse response = new ServiceResponse(httpResponse.getStatusLine().getStatusCode());\n response.setReader(new BufferedReader(new InputStreamReader(httpResponse.getEntity().getContent())));\n return response;\n }", "String getRequestURL();", "public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}", "public static void sendGetWebservice(Activity activity, String url, Response.Listener responseListener, Response.ErrorListener errorListener) {\n StringRequest stringRequest = new StringRequest(Request.Method.GET, url, responseListener, errorListener);\n// Add the request to the RequestQueue.\n handler.addToRequestQueue(stringRequest);\n }", "@Override\n\tpublic InputStream doGet(String url) {\n\t\tInputStream in = null;\n\t\tHttpGet getRequest = new HttpGet(url);\n\t\tgetRequest.addHeader(\"charset\", HTTP.UTF_8);\n\t\tHttpClient client = new DefaultHttpClient();\n\t\tclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 6000);\n\t\tclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, 8000);\n\t\tHttpResponse response = null;\n\t\ttry {\n\t\t\tresponse = client.execute(getRequest);\n\t\t\tif(null != response && response.getStatusLine().getStatusCode() == HttpStatus.SC_OK){\n\t\t\t\tin = response.getEntity().getContent();\n\t\t\t}\n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\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\t\n\t\treturn in;\n\t}", "String postRequest(String url);", "private String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.connect();\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n return jsonResponse;\n }\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem Http Request\", e);\n } catch (Exception e) {\n Log.e(LOG_TAG, \"Problem Http Request\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // function must handle java.io.IOException here\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "static String request(String requestMethod, String input, String endURL)\n {\n StringBuilder result;\n result = new StringBuilder();\n try\n {\n String targetURL = firstURL + endURL;\n URL ServiceURL = new URL(targetURL);\n HttpURLConnection httpConnection = (HttpURLConnection) ServiceURL.openConnection();\n httpConnection.setRequestMethod(requestMethod);\n httpConnection.setRequestProperty(\"Content-Type\", \"application/json; charset=UTF-8\");\n httpConnection.setDoOutput(true);\n\n switch (requestMethod) {\n case \"POST\":\n\n httpConnection.setDoInput(true);\n OutputStream outputStream = httpConnection.getOutputStream();\n outputStream.write(input.getBytes());\n outputStream.flush();\n\n result = new StringBuilder(\"1\");\n break;\n case \"GET\":\n\n BufferedReader responseBuffer = new BufferedReader(new InputStreamReader((httpConnection.getInputStream())));\n String tmp;\n while ((tmp = responseBuffer.readLine()) != null) {\n result.append(tmp);\n }\n break;\n }\n\n if (httpConnection.getResponseCode() != 200)\n throw new RuntimeException(\"HTTP GET Request Failed with Error code : \" + httpConnection.getResponseCode());\n\n httpConnection.disconnect();\n\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n return result.toString();\n }", "public HTTPGetUtility(String requestURL) {\n super(requestURL, \"GET\");\n }", "private static String getURL(String url) {\r\n\t\t//fixup the url\r\n\t\tURL address;\r\n\t\ttry {\r\n\t\t\taddress = new URL(url);\r\n\t\t}\r\n\t\tcatch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\t\t\r\n\t\t//make the hookup\r\n\t\tHttpURLConnection con;\r\n\t\ttry {\r\n\t\t\tcon = (HttpURLConnection) address.openConnection();\r\n\t\t}\r\n\t\tcatch(IOException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\r\n\t\t// optional default is GET\r\n\t\ttry {\r\n\t\t\tcon.setRequestMethod(\"GET\");\r\n\t\t}\r\n\t\tcatch (ProtocolException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\r\n\t\t//this executes the get? - maybe check with wireshark if ever important\r\n//\t\tint responseCode = 0; \r\n//\t\ttry {\r\n//\t\t\tresponseCode = con.getResponseCode();\r\n//\t\t}\r\n//\t\tcatch(IOException e) {\r\n//\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n//\t\t\treturn new String();\r\n//\t\t}\r\n\t\t\r\n\t\t//TODO handle bad response codes\r\n\r\n\t\t//read the response\r\n\t\tStringBuffer response = new StringBuffer();\r\n\t\ttry {\r\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\r\n\t\t\tString inputLine = new String();\r\n\t\r\n\t\t\t//grab each line from the response\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n\t\t\t\tresponse.append(inputLine);\r\n\t\t\t}\r\n\t\t\t//fix dangling\r\n\t\t\tin.close();\r\n\t\t}\r\n\t\tcatch(IOException e) {\r\n\t\t\tSystem.out.println(\"====>\" + e.getMessage());\r\n\t\t\treturn new String();\r\n\t\t}\r\n\t\t\r\n\t\t//convert to a string\r\n\t\treturn response.toString();\r\n\t}", "public static String executeGet(String targetURL) {\t\n\t\t HttpURLConnection connection = null; \n\t\t try {\n\t\t //Create connection\n\t\t URL url = new URL(targetURL);\n\t\t connection = (HttpURLConnection)url.openConnection();\n\t\t connection.setRequestMethod(\"GET\");\n\t\t connection.setRequestProperty(\"Content-Type\", \"application/json\");\n\t\t connection.setRequestProperty(\"Content-Language\", \"en-US\"); \n\n\t\t connection.setUseCaches(false);\n\t\t connection.setDoOutput(true);\n\n\n\t\t //Get Response \n\t\t InputStream is = connection.getInputStream();\n\t\t BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\t\t StringBuilder response = new StringBuilder(); // or StringBuffer if not Java 5+ \n\t\t String line;\n\t\t while((line = rd.readLine()) != null) {\n\t\t response.append(line);\n\t\t response.append('\\r');\n\t\t }\n\t\t rd.close();\n\t\t return response.toString();\n\t\t } catch (Exception e) {\n\t\t return e.getMessage();\n\t\t } finally {\n\t\t if(connection != null) {\n\t\t connection.disconnect(); \n\t\t }\n\t\t }\n\t\t}", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n // if the url is null, return the response early;\n if (url == null) {\n return jsonResponse;\n }\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.connect();\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code \" + urlConnection.getResponseCode());\n }\n\n } catch (IOException e) {\n // TODO: Handle the exception\n Log.e(LOG_TAG, \"Problem retrieving from the url\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // function must handle java.io.IOException here\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "public String callGET(String urlStr) {\n StringBuilder strB = new StringBuilder();\n this.LOGGER.debug(\"urlStr: {}\" + urlStr);\n \n try {\n URL url = new URL(urlStr);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(this.STR_GET);\n conn.setRequestProperty(this.STR_ACCEPT, this.STR_APPLICATION_HTML);\n\n if (conn.getResponseCode() != this.RET_OK) {\n throw new RuntimeException(\"Failed with HTTP error code: \" + conn.getResponseCode());\n }\n\n BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n\n String output;\n while ((output = br.readLine()) != null) {\n strB.append(output);\n }\n\n conn.disconnect();\n }\n catch (MalformedURLException exc) {\n exc.printStackTrace(System.err);\n }\n catch (IOException exc) {\n exc.printStackTrace(System.err);\n }\n \n System.out.println(\"Output from Server .... \\n\");\n System.out.println(strB.toString());\n \n return strB.toString();\n }", "public void sendGetRequest(String urlResource,RequestCallback callback){\t\t\r\n\t\trequestBuilder = new RequestBuilder(RequestBuilder.GET, dispatcherURL + urlResource);\r\n\t\trequestBuilder.setHeader(\"Content-Type\", \"application/x-www-form-urlencoded\");\r\n\t\ttry {\t\t\t\r\n\t\t\trequestBuilder.sendRequest(\"\", callback);\r\n\t\t} catch (RequestException e) {\r\n\t\t\tWindow.alert(e.getMessage());\r\n\t\t}\r\n\t}", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000);\n urlConnection.setConnectTimeout(15000);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the Guardian JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "private String gatewayRequestCmd(String url) {\n final ProgressDialog pDialog = new ProgressDialog(mCtx);\n pDialog.setMessage(\"Sending...\");\n pDialog.show();\n\n JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.GET,\n url, null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n Log.d(TAG, \"Response\");\n Log.d(TAG, response.toString());\n pDialog.hide();\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Error: \" + error.getMessage());\n // hide the progress dialog\n pDialog.hide();\n }\n });\n HttpHandler.getInstance(mCtx).addToRequestQueue(jsonObjReq);\n return \"\";\n\n }", "public static String getHTTP(String urlToRead) throws Exception {\n // reference: https://stackoverflow.com/questions/34691175/how-to-send-httprequest-and-get-json-response-in-android/34691486\n HttpClient httpclient = new DefaultHttpClient();\n HttpGet httpget = new HttpGet(urlToRead);\n\n HttpResponse response = httpclient.execute(httpget);\n\n if (response.getStatusLine().getStatusCode() == 200) {\n String server_response = EntityUtils.toString(response.getEntity());\n return server_response;\n } else {\n System.out.println(\"no response from server\");\n }\n return \"\";\n }", "public InputStream sendGetRequest(String url) throws MCDSException {\n\t\tInputStream xmlDataStream = null;\n\t\tTransporter transporter = new Transporter();\n\t\txmlDataStream = transporter.execute(url);\n\t\treturn xmlDataStream;\n\t}", "private synchronized String execute(final HttpUriRequest request) {\n request.setParams(params);\n\n // Set the request's headers\n for (Entry<String, String> header : headers.entrySet()) {\n request.setHeader(header.getKey(), header.getValue());\n }\n\n // Execute the request and get it's content\n HttpResponse response;\n String content;\n try {\n\n // Execute the request\n response = getClient().execute(request);\n\n // Get the response content\n content = EntityUtils.toString(response.getEntity(), charset);\n } catch (IOException e) {\n throw new JsogClientException(\"Get request failed.\", e);\n }\n\n // Check the response code\n StatusLine sl = response.getStatusLine();\n if (sl.getStatusCode() != 200) {\n throw new Non200ResponseCodeException(\n sl.getStatusCode(),\n sl.getReasonPhrase(),\n content);\n }\n\n return content;\n }", "private static String makeHTTPRequest(URL url) throws IOException {\n\n // Create an empty json string\n String jsonResponse = \"\";\n\n //IF url is null, return early\n if (url == null) {\n return jsonResponse;\n }\n\n // Create an Http url connection, and an input stream, making both null for now\n HttpURLConnection connection = null;\n InputStream inputStream = null;\n\n try {\n\n // Try to open a connection on the url, request that we GET info from the connection,\n // Set read and connect timeouts, and connect\n connection = (HttpURLConnection) url.openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setReadTimeout(10000 /*Milliseconds*/);\n connection.setConnectTimeout(15000 /*Milliseconds*/);\n connection.connect();\n\n // If response code is 200 (aka, working), then get and read from the input stream\n if (connection.getResponseCode() == 200) {\n\n Log.v(LOG_TAG, \"Response code is 200: Aka, everything is working great\");\n inputStream = connection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n\n } else {\n // if response code is not 200, Log error message\n Log.v(LOG_TAG, \"Error Response Code: \" + connection.getResponseCode());\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error making http request: \" + e);\n } finally {\n // If connection and inputStream are NOT null, close and disconnect them\n if (connection != null) {\n connection.disconnect();\n }\n\n if (inputStream != null) {\n // Closing the input stream could throw an IOException, which is why\n // the makeHttpRequest(URL url) method signature specifies that an IOException\n // could be thrown.\n inputStream.close();\n }\n }\n\n return jsonResponse;\n }", "String wget(String url);", "public void GetCall(String url) throws ClientProtocolException, IOException {\n\t\tCloseableHttpClient httpclient=HttpClients.createDefault();\n\t\tHttpGet httpget=new HttpGet(url);\n\t//lohith\n\t\tCloseableHttpResponse closeablehttpresponse=httpclient.execute(httpget);\n\t\tint responsestatuscode=closeablehttpresponse.getStatusLine().getStatusCode();\n\t\tSystem.out.println(\"responsestatuscode: \"+responsestatuscode);\n\t\t\n\t\tString response=EntityUtils.toString(closeablehttpresponse.getEntity(),\"UTF-8\");\n\t\tSystem.out.println(\"ClientResponse: \"+response);\n\t\tJSONObject jsonobject= new JSONObject(response);\n\t\t\n\t\tSystem.out.println(\"jsonobject: \"+jsonobject);\n\t\t\n\t\t\n\t}", "private HttpResponse executeHttpGet(String apiUrl) throws OAuthMessageSignerException,\r\n\t\t\tOAuthExpectationFailedException, OAuthCommunicationException, IOException {\r\n\t\tHttpGet httprequest = new HttpGet(apiUrl);\r\n\t\tgetOAuthConsumer().sign(httprequest);\r\n\t\tHttpClient client = new DefaultHttpClient();\r\n\t\tHttpResponse httpresponse = client.execute(httprequest);\r\n\t\tint statusCode = httpresponse.getStatusLine().getStatusCode();\r\n\t\tSystem.out.println(statusCode + \":\" + httpresponse.getStatusLine().getReasonPhrase());\r\n\t\treturn httpresponse;\r\n\t}", "public ClientResponse performGetRequest(String clientRegistrationID, URL url, Map<String, String> headers, Map<String, String> queryParameters);", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the earthquake JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n // Closing the input stream could throw an IOException, which is why\n // the makeHttpRequest(URL url) method signature specifies than an IOException\n // could be thrown.\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "private static String getHTTPResponse(URL url){\n\t\t\n\t\tStringBuilder response = new StringBuilder();\n\t\t\n\t\ttry{\n\t\t\tURLConnection connection = url.openConnection();\n\t\t\tBufferedReader res = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t\tString responseLine;\n\t\t\t\n\t\t\twhile((responseLine = res.readLine()) != null)\n\t\t\t\tresponse.append(responseLine);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t\treturn response.toString();\n\t}", "static String getResponseFromHttpUrl(URL url) throws IOException {\n HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();\n try {\n InputStream in = urlConnection.getInputStream();\n\n Scanner scanner = new Scanner(in);\n scanner.useDelimiter(\"\\\\A\");\n\n boolean hasInput = scanner.hasNext();\n String response = null;\n if (hasInput) {\n response = scanner.next();\n }\n scanner.close();\n return response;\n } finally {\n urlConnection.disconnect();\n }\n }", "@Test\n\tpublic void testRequest() throws Exception {\n\t\tURI uri=new URIBuilder().setScheme(\"http\")\n\t\t\t\t.setHost(\"www.google.com\")\n\t\t\t\t//.setPort(8080)\n\t\t\t\t.setPath(\"/search\")\n\t\t\t\t.setParameter(\"q\", \"httpclient\")\n\t\t\t\t.setParameter(\"btnG\", \"Google Search\")\n\t\t\t\t.setParameter(\"aq\", \"f\")\n\t\t\t\t.setParameter(\"oq\", \"\")\n\t\t\t\t.build();\n\t\tHttpGet httpGet = new HttpGet(uri);\n\t\tSystem.out.println(httpGet.getURI());\n\t\t\n\t}", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (url == null) {\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem retrieving the posts JSON results.\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n }\n }\n\n\n return jsonResponse;\n }", "@Test\n public void doRequestURL() throws IOException, NoSuchAlgorithmException, KeyManagementException {\n doRequest(\"https://login.cloud.huawei.com/oauth2/v2/token\");\n\n\n //doRequestWithOutHttps(\"https://124.74.46.118:7012/business/service\");\n //doRequestWithOutHttpsPool(\"https://124.74.46.118:7012/business/service\");\n }", "public static String httpGet(String url) throws Exception {\r\n \t\tDefaultHttpClient client = new DefaultHttpClient();\r\n \t\tHttpResponse response = null;\r\n \t\tString responseString = null;\r\n \t\tHttpUriRequest request = new HttpGet(url);\r\n \t\trequest.setHeader(\"Accept-Encoding\", \"gzip\");\r\n \t\trequest.setHeader(\"User-Agent\", \"gzip\");\r\n\t\tresponse = client.execute(request);\r\n \t\tif (response.getStatusLine().getStatusCode() != 200) {\r\n \t\t\tthrow new HttpException(\"Server error: \"\r\n \t\t\t\t\t+ response.getStatusLine().getStatusCode());\r\n \t\t} else {\r\n \t\t\tresponseString = parseResponse(response);\r\n \r\n \t\t}\r\n \t\treturn responseString;\r\n \t}", "@GET\n Call<Post> getByDirectUrlRequest(@Url String url);", "private static HttpResponse sendGet() throws Exception {\n // Create the Call using the URL\n HttpGet http = new HttpGet(url);\n // Set the credentials set earlier into the headers\n Header header = new BasicScheme(StandardCharsets.UTF_8).authenticate(creds, http, null);\n // Set the header into the HTTP request\n http.addHeader(header);\n // Print the response\n return httpClient.execute(http);\n }", "private static String makeHttpRequest(URL url) throws IOException {\n String JSONResponse = null;\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setRequestMethod(Constants.URL_REQUEST_METHOD);\n urlConnection.setReadTimeout(Constants.URL_READ_TIME_OUT);\n urlConnection.setConnectTimeout(Constants.URL_CONNECT_TIME_OUT);\n urlConnection.connect();\n\n if (urlConnection.getResponseCode() == Constants.URL_SUCCESS_RESPONSE_CODE) {\n inputStream = urlConnection.getInputStream();\n JSONResponse = readFromStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Response code : \" + urlConnection.getResponseCode());\n // If received any other code(i.e 400) return null JSON response\n JSONResponse = null;\n }\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Error Solving JSON response : makeHttpConnection() block\");\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null) {\n inputStream.close();\n // Input stream throws IOException when trying to close, that why method signature\n // specify about IOException\n }\n }\n return JSONResponse;\n }", "private static InputStream performNetworkRequest(URL url) {\n if (url == null) {\n Log.e(LOG_TAG, \"Provided URL is null, exiting method early\");\n return null;\n }\n\n HttpURLConnection connection = null;\n InputStream responseStream = null;\n\n try {\n connection = (HttpURLConnection) url.openConnection();\n connection.setConnectTimeout(10000);\n connection.setReadTimeout(90000);\n connection.setRequestMethod(\"GET\");\n connection.connect();\n\n int responseCode = connection.getResponseCode();\n if (responseCode != 200) {\n Log.e(LOG_TAG, \"Response code different from expected code 200. Received code: \" + responseCode + \", exiting method early\");\n return null;\n }\n responseStream = connection.getInputStream();\n\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Problem occured while performing network request\");\n e.printStackTrace();\n }\n return responseStream;\n }", "public static String GET(String url)\t{\t\t\t\t\n\t\tInputStream inputStream = null;\t\t\t\t\t\t\t\n\t\tString result = \"\";\t\t\t\t\t\t\t\n\t\ttry\t{\t\t\t\t\t\t\n\t\t\t// create HttpClient\t\t\t\t\t\t\n\t\t\tHttpClient httpClient = new DefaultHttpClient();\t\t\t\t\t\t\n\n\t\t\t// make GET request to the given URL\t\t\t\t\t\t\n\t\t\tHttpResponse httpResponse = httpClient.execute(new HttpGet(url));\t\t\t\t\t\t\n\n\t\t\t// receive response as inputStream\t\t\t\t\t\t\n\t\t\tinputStream = httpResponse.getEntity().getContent();\t\t\t\t\t\t\t\t\n\n\t\t\t// convert inputstream to string\t\t\t\t\t\t\t\t\n\t\t\tif(inputStream != null)\t\t\t{\t\t\t\t\t\n\t\t\t\tresult = convertInputStreamToString(inputStream);\t\t\t\t\t\t\t\t\n\t\t\t}\telse\t{\t\t\t\t\t\t\n\t\t\t\tresult = \"Did not work!\";\t\t\t\t\t\t\t\t\n\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t}catch (Exception e)\t{\t\t\t\t\t\n\t\t\tLog.d(\"InputStream\", e.getLocalizedMessage());\t\t\t\t\t\t\n\t\t}\t\t\t\t\t\t\t\n\n\t\treturn result;\t\t\t\t\t\t\t\n\t}", "private OCSPResp performRequest(String urlString)\n throws IOException, OCSPException, URISyntaxException\n {\n OCSPReq request = generateOCSPRequest();\n URL url = new URI(urlString).toURL();\n HttpURLConnection httpConnection = (HttpURLConnection) url.openConnection();\n try\n {\n httpConnection.setRequestProperty(\"Content-Type\", \"application/ocsp-request\");\n httpConnection.setRequestProperty(\"Accept\", \"application/ocsp-response\");\n httpConnection.setRequestMethod(\"POST\");\n httpConnection.setDoOutput(true);\n try (OutputStream out = httpConnection.getOutputStream())\n {\n out.write(request.getEncoded());\n }\n\n int responseCode = httpConnection.getResponseCode();\n if (responseCode == HttpURLConnection.HTTP_MOVED_TEMP ||\n responseCode == HttpURLConnection.HTTP_MOVED_PERM ||\n responseCode == HttpURLConnection.HTTP_SEE_OTHER)\n {\n String location = httpConnection.getHeaderField(\"Location\");\n if (urlString.startsWith(\"http://\") &&\n location.startsWith(\"https://\") &&\n urlString.substring(7).equals(location.substring(8)))\n {\n // redirection from http:// to https://\n // change this code if you want to be more flexible (but think about security!)\n LOG.info(\"redirection to \" + location + \" followed\");\n return performRequest(location);\n }\n else\n {\n LOG.info(\"redirection to \" + location + \" ignored\");\n }\n }\n if (responseCode != HttpURLConnection.HTTP_OK)\n {\n throw new IOException(\"OCSP: Could not access url, ResponseCode \"\n + httpConnection.getResponseCode() + \": \"\n + httpConnection.getResponseMessage());\n }\n // Get response\n try (InputStream in = (InputStream) httpConnection.getContent())\n {\n return new OCSPResp(in);\n }\n }\n finally\n {\n httpConnection.disconnect();\n }\n }", "public String sendGetSecure(String url)\n\t{\n\t\ttry \n\t\t{\n\t\t\t//Creating URL objects\n\t\t\tURL https_url = new URL(url);\n\t\t\t//Delaying visit if directed to by robots.txt\n\t\t\tcrawlDelay();\n\t\t\tHttpsURLConnection secure_connection = (HttpsURLConnection)https_url.openConnection();\n\t\t\t//Setting request method\n\t\t\tsecure_connection.setRequestMethod(\"GET\");\n\t\t\t//Sending all headers except for host (since URLConnection will take care of this)\n\t\t\tfor (String h: headers.keySet())\n\t\t\t{\n\t\t\t\tif (!h.equals(\"Host\"))\n\t\t\t\t{\n\t\t\t\t\tsecure_connection.setRequestProperty(h, headers.get(h));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Getting ResponseParser object to read in page content\n\t\t\tp = new ResponseParser(new BufferedReader(new InputStreamReader(secure_connection.getInputStream())));\n\t\t\t\n\t\t\t//Parsing all response headers from returned object\n\t\t\tMap<String,String> p_headers = p.getHeaders();\n\t\t\tMap<String, List<String>> response_headers = secure_connection.getHeaderFields();\n\t\t\tfor (Map.Entry<String, List<String>> entry : response_headers.entrySet()) \n\t\t\t{\n\t\t\t\tif (entry.getKey() == null)\n\t\t\t\t{\n\t\t\t\t\tp.setResponse(entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tp_headers.put(entry.getKey(),entry.getValue().get(0));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//If we didn't get any headers in the response, the URL was invalid\n\t\t\tif (p.getHeaders().size() == 0)\n\t\t\t{\n\t\t\t\treturn (\"invalid url\");\n\t\t\t}\n\t\t\t\n\t\t\t//Otherwise return the contents of the returned document\n\t\t\treturn p.getData();\n\t\t\t\n\t\t} \n\t\tcatch (IOException | IllegalArgumentException e) \n\t\t{\n\t\t\treturn \"invalid url\";\n\t\t}\t\t\n\t}", "public static String makeHTTPRequest(URL url, Context context) throws IOException {\n // If the url is empty, return early\n String jsonResponse = null;\n if (url == null) {\n return jsonResponse;\n }\n final Context mContext = context;\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n\n try {\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n\n // If the request was successful, the response code should be 200. Read the input stream and\n // parse the response.\n if (urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromInputStream(inputStream);\n } else {\n Log.e(LOG_TAG, \"Error response code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e) {\n //use a handler to create a toast on the UI thread\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(mContext, \"Error: Issue with fetching JSON results from Guardian API.\", Toast\n .LENGTH_SHORT)\n .show();\n }\n });\n\n Log.e(LOG_TAG, \"Error: Issue with fetching JSON results from Guardian API. \", e);\n } finally {\n // Close connection\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n // Close stream\n if (inputStream != null) {\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "private String sendGetRequest() throws IOException {\n\t\tString inline = \"\";\n\t\tURL url = new URL(COUNTRYAPI);\n\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\tconn.setRequestMethod(\"GET\");\n\t\tconn.connect();\n\t\tint responsecode = conn.getResponseCode();\n\t\tif (responsecode != 200) {\n\t\t\tthrow new RuntimeException(\"HttpResponseCode: \" + responsecode);\n\t\t} else {\n\t\t\tScanner sc = new Scanner(url.openStream());\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tinline += sc.nextLine();\n\t\t\t}\n\t\t\tsc.close();\n\t\t}\n\t\treturn inline.toString();\n\t}", "public static String doHttpURLConnectionAction(String envoyURL, String action) throws MalformedURLException, IOException{\n URL url = null;\n BufferedReader reader = null;\n StringBuilder stringBuilder;\n String responseMessage = \"\";\n\n try {\n // create the HttpURLConnection\n url = new URL(envoyURL);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\n // set the HTTP request method here\n conn.setRequestMethod(action);\n\n // conn.setRequestProperty(\"\", \"\");\n\n System.out.println(\"Request Method \" + conn.getRequestMethod());\n\n // give envoy admin server 15 seconds to respond\n conn.setReadTimeout(15*1000);\n conn.connect();\n\n // read the output from the server\n responseMessage = conn.getResponseMessage();\n reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n stringBuilder = new StringBuilder();\n\n String line = null;\n while ((line = reader.readLine()) != null) {\n stringBuilder.append(line + \"\\n\");\n }\n System.out.println(stringBuilder.toString());\n\n System.out.println(\"Status Code: \" + conn.getResponseCode());\n\n } catch (MalformedURLException error) {\n // output expected MalformedURLExceptions.\n Logging.log(error);\n // throw new AssertionError(error);\n } catch (Exception exception) {\n // output unexpected Exceptions.\n Logging.log(exception, false);\n }\n return responseMessage;\n }", "private String downloadUrl(String myUrl) throws IOException {\n InputStream is = null;\n\n try {\n URL url = new URL(myUrl);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setReadTimeout(10000 /* milliseconds */);\n conn.setConnectTimeout(15000 /* milliseconds */);\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the QUERY\n conn.connect();\n //int response = conn.getResponseCode();\n //Log.d(\"JSON\", \"The response is: \" + response);\n is = conn.getInputStream();\n\n // Convert the InputStream into a string\n return readIt(is);\n\n // Makes sure that the InputStream is closed after the app is\n // finished using it.\n } finally {\n if (is != null) {\n is.close();\n }\n }\n }", "public static void GET(String url, RequestParams params, RestResponseHandler responseHandler) {\n client.get(getAbsoluteUrl(url), params, responseHandler);\n }", "@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "@Test\n public void getRequest1() {\n str = METHOD_GET + \"/JavaPower.gif \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": www.devresource.org\" + ENDL +\n ACCEPT + \": text/html\" + ENDL +\n \"Range-Unit: 3388 | 1024\";\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n\n assertEquals(request.getMethod(), HttpMethod.GET);\n assertEquals(request.getUrn(), \"/JavaPower.gif\");\n assertEquals(request.getHeader(ACCEPT), \"text/html\");\n assertEquals(request.getHeader(\"Range-Unit\"), \"3388 | 1024\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "@Override\npublic void get(String url) {\n\t\n}", "@NotNull\n @Generated\n @Selector(\"request\")\n public native NSURLRequest request();", "public static String requestURL(String url) {\n return \"\";\n }", "public void notifyHTTPRequest(String url);", "private static String makeHttpRequest(URL newsUrl) throws IOException{\n String jsonResponse = \"\";\n\n // If the URL is null, then return early.\n if (newsUrl == null) {\n //returns no data\n return jsonResponse;\n }\n\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n\n //Create the connection\n try {\n urlConnection = (HttpURLConnection) newsUrl.openConnection();\n urlConnection.setReadTimeout(10000 /* milliseconds */);\n urlConnection.setConnectTimeout(15000 /* milliseconds */);\n urlConnection.setRequestMethod(\"GET\");\n //Establish an HTTP connection with the server\n urlConnection.connect();\n\n //Test to see what response we get\n // If the request was successful (response code 200),\n // then read the input stream and parse the response.\n if (urlConnection.getResponseCode() == 200){\n //Valid connection\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n } else {\n Log.e(TAG, \"makeHttpRequest: Error Code: \" + urlConnection.getResponseCode());\n }\n } catch (IOException e){\n Log.e(TAG, \"makeHttpRequest: Problem retrieving the news JSON results\", e);\n } finally {\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n if (inputStream != null){\n // Closing the input stream could throw an IOException, which is why\n // the makeHttpRequest(URL url) method signature specifies than an IOException\n // could be thrown.\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "public String doHttpGet(String url, final String ...head);", "private static String makeHttpRequest(URL url) throws IOException {\n String jsonResponse = \"\";\n\n // if url null, return\n if(url == null) {\n return jsonResponse;\n }\n HttpURLConnection urlConnection = null;\n InputStream inputStream = null;\n try {\n urlConnection= (HttpURLConnection)url.openConnection();\n urlConnection.setReadTimeout(10000/*milliseconds*/);\n urlConnection.setConnectTimeout(15000/*milliseconds*/);\n urlConnection.setRequestMethod(\"GET\");\n urlConnection.connect();\n Log.v(LOG_TAG,\"Network request made\");\n\n // if the request was successful(response code 200)\n //then read the input stream and parse the output\n if(urlConnection.getResponseCode() == 200) {\n inputStream = urlConnection.getInputStream();\n jsonResponse = readFromStream(inputStream);\n }\n else{\n Log.e(LOG_TAG,\"Error Response code: \" + urlConnection.getResponseCode());\n }\n }\n catch (IOException e) {\n Log.e(LOG_TAG,\"Problem retrieving the earthquake JSON results\",e);\n }\n finally {\n if(urlConnection != null) {\n urlConnection.disconnect();\n }\n if(inputStream != null) {\n inputStream.close();\n }\n }\n return jsonResponse;\n }", "public String requestContent(String urlStr) {\n String result = null;\n HttpURLConnection urlConnection;\n try {\n URL url = new URL(urlStr);\n urlConnection = (HttpURLConnection) url.openConnection();\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n try {\n InputStream in = new BufferedInputStream(urlConnection.getInputStream());\n result = convertStreamToString(in);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n urlConnection.disconnect();\n }\n return result;\n }", "public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }", "@org.junit.Ignore\n\t@Test\n\tpublic void simpleGET() {\n\t\tString url = \"http://www.google.com/search?hl=pl\";\n\t\tHttpRequestFactory requestFactory = new HttpRequestFactoryImpl();\n\t\tHttpRequest request = requestFactory.createRequest(url);\n\t\tString response = request.doGet();\n\t\tassertTrue(\"Unexpected HTTP response.\", isGooglePage(response));\n\t}", "@Test\n public void getRequest2() {\n str = METHOD_GET + \"/wiki/page.html \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": ru.wikipedia.org\" + ENDL +\n USER_AGENT + \": Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5\" + ENDL +\n ACCEPT + \": text/html\" + ENDL +\n CONNECTION_CLOSE;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n\n assertEquals(request.getMethod(), HttpMethod.GET);\n assertEquals(request.getUrn(), \"/wiki/page.html\");\n assertEquals(request.getHeader(HOST_HEADER), \"ru.wikipedia.org\");\n assertEquals(request.getHeader(USER_AGENT),\n \"Mozilla/5.0 (X11; U; Linux i686; ru; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5\");\n assertEquals(request.getHeader(ACCEPT), \"text/html\");\n assertEquals(request.getHeader(CONNECTION), CLOSE_STR);\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "GetResponse() {\n\t}", "String getRequest();", "public static Response request(String urlString) {\n HttpURLConnection urlConnection = null;\n InputStream in = null;\n try {\n URL url = new URL(urlString);\n urlConnection = (HttpURLConnection)url.openConnection();\n urlConnection.setConnectTimeout(CONNECT_TIMEOUT);\n urlConnection.setReadTimeout(READ_TIMEOUT);;\n // prefer json to text\n urlConnection.setRequestProperty(\"Accept\", \"application/json,text/plain;q=0.2\");\n in = urlConnection.getInputStream();\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String line = null;\n StringBuilder sb = new StringBuilder();\n while ((line = br.readLine()) != null) {\n sb.append(line).append(\"\\n\");\n }\n int statusCode = urlConnection.getResponseCode();\n String result = sb.toString().trim();\n if (statusCode == INTERNAL_SERVER_ERROR) {\n JSONObject errorObj = JSON.parseObject(result);\n if (errorObj.containsKey(\"errorMsg\")) {\n return new Response(errorObj.getString(\"errorMsg\"), false);\n }\n return new Response(result, false);\n }\n return new Response(result);\n } catch (IOException e) {\n return new Response(e.getMessage(), false);\n } finally {\n IOUtils.close(in);\n if (urlConnection != null) {\n urlConnection.disconnect();\n }\n }\n }", "private Optional<String> executeHttpGet(String url) {\n CloseableHttpClient httpClient = getHttpClient();\n HttpUriRequest httpRequest = new HttpGet(url);\n try {\n HttpResponse httpResponse = httpClient.execute(httpRequest);\n int statusCode = httpResponse.getStatusLine().getStatusCode();\n if (statusCode == 200) {\n return Optional.of(EntityUtils.toString(httpResponse.getEntity()));\n } else if (statusCode == 404) {\n return Optional.empty();\n } else {\n throw new DataRetrievalFailureException(\"Unexpected status code\");\n }\n } catch (IOException ex) {\n throw new DataRetrievalFailureException(\"HTTP request failed\");\n }\n }", "private HttpResponse httpRequest(URL url, List<Header> headers, String method) throws IOException {\n\n BufferedReader streamReader;\n\n HttpURLConnection connection = setupConnection(url,headers,method);\n connection.setDoOutput(false);\n connection.connect();\n\n final int httpResponseCode = connection.getResponseCode();\n final List<Header> responseHeaders = Header.getHeaders(connection.getHeaderFields());\n\n try {\n streamReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n }\n catch (IOException e) {\n streamReader = new BufferedReader(new InputStreamReader(connection.getErrorStream()));\n }\n\n StringBuilder sb = new StringBuilder();\n String currentLine;\n\n while((currentLine = streamReader.readLine()) != null) {\n sb.append(currentLine).append(\"\\n\");\n }\n\n connection.disconnect();\n\n try {\n Objects.requireNonNull(streamReader).close();\n }\n catch (IOException ignored){ }\n\n return new HttpResponse(responseHeaders,httpResponseCode,sb.toString().trim());\n }", "public void get(Context context, String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {\n sendRequest(mHttpClient, true, new HttpGet(getUrlWithQueryString(url, params)), null, responseHandler, context);\n }", "private Response makeRequest(String url) throws IOException, IllegalStateException {\n // Make the request\n Request req = new Request.Builder()\n .url(url)\n .addHeader(\"token\", NOAA.KEY)\n .build();\n Response res = client.newCall(req).execute();\n return res;\n }", "private String getUrlContents(String theUrl) {\n StringBuilder content = new StringBuilder();\n try {\n URL url = new URL(theUrl);\n URLConnection urlConnection = url.openConnection();\n //reads the response\n BufferedReader br = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()), 8);\n String line;\n while ((line = br.readLine()) != null) {\n content.append(line + \"\\n\");\n }\n br.close();\n }catch (Exception e) {\n //error occured, usually network related\n e.printStackTrace();\n }\n return content.toString();\n }", "public BufferedReader reqGet(final String route,\n final String userAgent)\n throws ServerStatusException, IOException {\n System.out.println(\"reqGet\");\n URL inputUrl = new URL(domain + route);\n HttpURLConnection con = (HttpURLConnection) inputUrl.openConnection();\n System.out.println(con);\n con.setRequestMethod(\"GET\");\n con.setRequestProperty(\"User-Agent\", userAgent);\n System.out.println(inputUrl);\n return readRes(con);\n }", "@RequestMapping(method=RequestMethod.GET)\n public @ResponseBody void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException, JSONException, ParserConfigurationException {\n LOG.debug(\"doGet wgetproxy\");\n createWGET(request, response);\n }", "@Test\r\n\tpublic void doGetWithParams() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tURIBuilder uriBuilder = new URIBuilder(\"http://www.google.com/search\");\r\n\t\turiBuilder.addParameter(\"query\", \"Bingyang Wei\");\r\n\t\tHttpGet get = new HttpGet(uriBuilder.build());\r\n\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}", "private String getResponseFromHttpUrl(URL url) throws IOException {\n HttpsURLConnection urlConnection = (HttpsURLConnection) url.openConnection();\n urlConnection.addRequestProperty(\"Authorization\",\"Bearer JVNDXWXVDDQN2IJUJJY7NQXCPS23M7DX\");\n try{\n InputStream in = urlConnection.getInputStream();\n\n Scanner scanner = new Scanner(in);\n scanner.useDelimiter(\"\\\\A\");\n boolean hasInput = scanner.hasNext();\n if(hasInput){\n return scanner.next();\n }else{\n return null;\n }\n }finally {\n urlConnection.disconnect();\n }\n }", "public int GET(String post_url) throws JSONException, IOException {\n httpclient = HttpClients.createDefault();\n HttpGet httpget = new HttpGet(post_url);\n CloseableHttpResponse response = httpclient.execute(httpget);\n return response.getStatusLine().getStatusCode();\n }", "private InputStream downloadUrl(String urlString) throws IOException {\n URL url = new URL(urlString);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n //conn.setReadTimeout(10000 /* milliseconds */);\n // conn.setConnectTimeout(15000 /* milliseconds */);\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n conn.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 ( compatible ) \");\n conn.setRequestProperty(\"Accept\", \"*/*\");\n // Starts the query\n conn.connect();\n\n return conn.getInputStream();\n }", "private String downloadURL(String myurl) {\n\t\ttry {\n\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\tHttpGet request = new HttpGet(myurl);\n\t\t\t// Get the response\n\t\t\tResponseHandler<String> responseHandler = new BasicResponseHandler();\n\t\t\tString response_str = client.execute(request, responseHandler);\n\t\t\treturn response_str;\n\n\t\t\t// Makes sure that the InputStream is closed after the app is\n\t\t\t// finished using it.\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"WL\", \"Error\");\n\t\t\treturn \"Error\";\n\t\t}\n\t}", "public Get(String url){\n\t\tthis.setUrl(url);\n\t}", "private InputStream downloadUrl(String urlString) throws IOException {\n \tSystem.out.println(\"Inside downloadURL\");\n URL url = new URL(urlString);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n \n conn.setReadTimeout(10000 /* milliseconds */);\n conn.setConnectTimeout(15000 /* milliseconds */);\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n // Starts the query\n conn.connect();\n InputStream stream = conn.getInputStream();\n return stream;\n }", "public String request(String method, String url, String data) {\n HttpURLConnection connection = null;\n try {\n if ((method.compareTo(\"GET\") == 0) && (data != null) && (!data.isEmpty())) {\n if (url.contains(\"?\"))\n url = url.concat(\"&\");\n else\n url = url.concat(\"?\");\n url = url.concat(data);\n }\n // Create connection\n URL requestUrl = new URL(url);\n connection = (HttpURLConnection) requestUrl.openConnection();\n connection.setRequestProperty(\"Veridu-Client\", this.key);\n if ((this.storage.getSessionToken() != null) && (!this.storage.getSessionToken().isEmpty()))\n connection.setRequestProperty(\"Veridu-Session\", this.storage.getSessionToken());\n connection.setRequestMethod(method);\n connection.setConnectTimeout(10000);\n connection.setReadTimeout(10000);\n connection.setUseCaches(false);\n connection.setDoOutput(true);\n // Send request\n if ((method.compareTo(\"GET\") != 0) && (data != null) && (!data.isEmpty())) {\n connection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n connection.setRequestProperty(\"Content-Length\", Integer.toString(data.getBytes().length));\n connection.setDoInput(true);\n DataOutputStream wr = new DataOutputStream(connection.getOutputStream());\n wr.writeBytes(data);\n wr.flush();\n wr.close();\n }\n\n // Get Response\n this.lastCode = connection.getResponseCode();\n InputStream is;\n if (this.lastCode >= 400)\n is = connection.getErrorStream();\n else\n is = connection.getInputStream();\n BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n String line;\n StringBuilder response = new StringBuilder();\n while ((line = rd.readLine()) != null) {\n response.append(line);\n response.append('\\r');\n }\n rd.close();\n return response.toString();\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (connection != null)\n connection.disconnect();\n }\n return null;\n }", "private String downloadURL(String url) {\n\t\ttry {\n\t\t\tHttpClient client = new DefaultHttpClient();\n\t\t\tHttpGet request = new HttpGet(url);\n\t\t\t// Get the response\n\t\t\tResponseHandler<String> responseHandler = new BasicResponseHandler();\n\t\t\tString response_str = client.execute(request, responseHandler);\n\t\t\treturn response_str;\n\n\t\t\t// Makes sure that the InputStream is closed after the app is\n\t\t\t// finished using it.\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"WL\", \"Error\");\n\t\t\te.printStackTrace();\n\t\t\treturn \"Error\";\n\t\t}\n\t}", "public void get(IRequest request, IHttpListener listener) {\n if (request != null) {\n request.getParams().getGetBuilder().url(request.getUrl()).id(request.getRequestId()).\n build().execute(new HttpResponse(listener, request.getParserType()));\n } else {\n throw new RuntimeException(\"Request param is null\");\n }\n }", "public StringBuffer getRequestURL() {\n return new StringBuffer(url);\n }", "public static Response doGetRequest(String url, String token, String app_type) throws IOException, CertificateException, KeyStoreException, NoSuchAlgorithmException, KeyManagementException {\n try {\n Request request = new Request.Builder()\n .url(url).addHeader(\"cache-control\", \"no-cache\").\n addHeader(\"Authorization\", token).addHeader(\"app_type\", app_type).\n addHeader(\"access_token\", RestTags.PUBLIC_KEY)\n .build();\n Response response = client.newCall(request).execute();\n Log.e(\"RESPONSE:\", response.body() + \"Code:\" + response.code() + \"Message:\" + response.message());\n return response;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "@Step(\"<url> sayfasına git\")\n public void geturl(String url) {\n Driver.webDriver.get(url + \"/\");\n }", "public JSONObject sendHTTPCall(final String urlString, final String requestType, final AbstractBuild<?, ?> build,\n final BuildListener listener, int numberOfAttempts) throws IOException {\n final RemoteJenkinsServer remoteServer = this.findRemoteHost(this.getRemoteJenkinsName());\n final int retryLimit = this.getConnectionRetryLimit();\n\n if (remoteServer == null) {\n this.failBuild(new Exception(\"No remote host is defined for this job.\"), listener);\n return null;\n }\n\n listener.getLogger()\n .printf(\"Try sending HTTP call: '%s' (%s))\\n\", urlString, requestType);\n\n HttpURLConnection connection = null;\n\n JSONObject responseObject = null;\n\n final URL buildUrl = new URL(urlString);\n connection = (HttpURLConnection) buildUrl.openConnection();\n\n // if there is a username + apiToken defined for this remote host, then\n // use it\n String usernameTokenConcat;\n\n if (this.getOverrideAuth()) {\n usernameTokenConcat = this.getAuth()[0].getUsername() + \":\" + this.getAuth()[0].getPassword();\n } else {\n usernameTokenConcat = remoteServer.getAuth()[0].getUsername()\n + \":\"\n + remoteServer.getAuth()[0].getPassword();\n }\n\n if (!usernameTokenConcat.equals(\":\")) {\n // token-macro replacment\n try {\n usernameTokenConcat = TokenMacro.expandAll(build, listener, usernameTokenConcat);\n } catch (final MacroEvaluationException e) {\n this.failBuild(e, listener);\n } catch (final InterruptedException e) {\n this.failBuild(e, listener);\n }\n\n final byte[] encodedAuthKey = Base64.encodeBase64(usernameTokenConcat.getBytes());\n connection.setRequestProperty(\"Authorization\", \"Basic \" + new String(encodedAuthKey));\n }\n\n try {\n connection.setDoInput(true);\n connection.setRequestProperty(\"Accept\", \"application/json\");\n connection.setRequestMethod(requestType);\n // wait up to 5 seconds for the connection to be open\n connection.setConnectTimeout(5000);\n connection.connect();\n\n InputStream is;\n try {\n is = connection.getInputStream();\n } catch (final FileNotFoundException e) {\n // In case of a e.g. 404 status\n is = connection.getErrorStream();\n }\n\n final BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n String line;\n // String response = \"\";\n final StringBuilder response = new StringBuilder();\n\n while ((line = rd.readLine()) != null) {\n response.append(line);\n }\n rd.close();\n\n // JSONSerializer serializer = new JSONSerializer();\n // need to parse the data we get back into struct\n // listener.getLogger().println(\"Called URL: '\" + urlString + \"',\n // got response: '\" + response.toString() + \"'\");\n\n // Solving issue reported in this comment:\n // https://github.com/jenkinsci/parameterized-remote-trigger-plugin/pull/3#issuecomment-39369194\n // Seems like in Jenkins version 1.547, when using \"/build\" (job API\n // for non-parameterized jobs), it returns a string indicating the\n // status.\n // But in newer versions of Jenkins, it just returns an empty\n // response.\n // So we need to compensate and check for both.\n if (JSONUtils.mayBeJSON(response.toString())) {\n responseObject = (JSONObject) JSONSerializer.toJSON(response.toString());\n } else {\n listener.getLogger()\n .println(\n \"Remote Jenkins server returned empty response or invalid JSON - but we can still proceed with the remote build.\");\n }\n } catch (final IOException e) {\n listener.getLogger()\n .println(e.getMessage());\n // If we have connectionRetryLimit set to > 0 then retry that many\n // times.\n if (numberOfAttempts <= retryLimit) {\n listener.getLogger()\n .println(\"Connection to remote server failed, waiting for to retry - \"\n + this.pollInterval\n + \" seconds until next attempt.\");\n e.printStackTrace();\n\n // Sleep for 'pollInterval' seconds.\n // Sleep takes miliseconds so need to convert this.pollInterval\n // to milisecopnds (x 1000)\n try {\n // Could do with a better way of sleeping...\n Thread.sleep(this.pollInterval * 1000);\n } catch (final InterruptedException ex) {\n this.failBuild(ex, listener);\n }\n\n listener.getLogger()\n .println(\"Retry attempt #\" + numberOfAttempts + \" out of \" + retryLimit);\n numberOfAttempts++;\n responseObject = sendHTTPCall(urlString, requestType, build, listener, numberOfAttempts);\n } else if (numberOfAttempts > retryLimit) {\n // reached the maximum number of retries, time to fail\n this.failBuild(new Exception(\"Max number of connection retries have been exeeded.\"), listener);\n } else {\n // something failed with the connection and we retried the max\n // amount of times... so throw an exception to mark the build as\n // failed.\n this.failBuild(e, listener);\n }\n\n } finally {\n // always make sure we close the connection\n if (connection != null) {\n connection.disconnect();\n }\n // and always clear the query string and remove some \"global\" values\n this.clearQueryString();\n // this.build = null;\n // this.listener = null;\n\n }\n return responseObject;\n }", "private HttpResponse httpRequest(URL url, List<Header> headers, String method, byte[] data) throws IOException {\n\n BufferedReader streamReader;\n\n HttpURLConnection connection = setupConnection(url,headers,method);\n connection.setDoOutput(true);\n connection.connect();\n\n OutputStream outputStream = connection.getOutputStream();\n outputStream.write(data);\n outputStream.flush();\n outputStream.close();\n\n final int httpResponseCode = connection.getResponseCode();\n final List<Header> responseHeaders = Header.getHeaders(connection.getHeaderFields());\n\n try {\n streamReader = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n }\n catch (IOException e) {\n streamReader = new BufferedReader(new InputStreamReader(connection.getErrorStream()));\n }\n\n StringBuilder sb = new StringBuilder();\n String currentLine;\n\n while((currentLine = streamReader.readLine()) != null) {\n sb.append(currentLine).append(\"\\n\");\n }\n\n connection.disconnect();\n\n try {\n Objects.requireNonNull(streamReader).close();\n }\n catch (IOException ignored){ }\n\n return new HttpResponse(responseHeaders,httpResponseCode,sb.toString().trim());\n }", "public static String callURL(String myURL) {\n StringBuilder sb = new StringBuilder();\n URLConnection urlConn;\n InputStreamReader in = null;\n try {\n URL url = new URL(myURL);\n urlConn = url.openConnection();\n if (urlConn != null)\n urlConn.setReadTimeout(60 * 1000);\n if (urlConn != null && urlConn.getInputStream() != null) {\n in = new InputStreamReader(urlConn.getInputStream(),\n Charset.defaultCharset());\n BufferedReader bufferedReader = new BufferedReader(in);\n if (bufferedReader != null) {\n int cp;\n while ((cp = bufferedReader.read()) != -1) {\n sb.append((char) cp);\n }\n bufferedReader.close();\n }\n }\n in.close();\n } catch (Exception e) {\n throw new RuntimeException(\"Exception while calling URL:\" + myURL, e);\n }\n\n return sb.toString();\n }", "public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }", "public void get(String url, RequestParams params, AsyncHttpResponseHandler responseHandler) {\n get(null, url, params, responseHandler);\n }", "public String makeServiceCall(String reqUrl) {\n String response = null;\n try {\n URL url = new URL(reqUrl);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n // read the response\n InputStream in = new BufferedInputStream(conn.getInputStream());\n response = convertStreamToString(in);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"MalformedURLException: \" + e.getMessage());\n } catch (ProtocolException e) {\n Log.e(TAG, \"ProtocolException: \" + e.getMessage());\n } catch (IOException e) {\n Log.e(TAG, \"IOException: \" + e.getMessage());\n } catch (Exception e) {\n Log.e(TAG, \"Exception: \" + e.getMessage());\n }\n return response;\n }", "private String gatewayRequest(String url) {\n final ProgressDialog pDialog = new ProgressDialog(mCtx);\n pDialog.setMessage(\"Loading...\");\n pDialog.show();\n\n JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.GET,\n url, null,\n new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n manageResponse(response);\n //manageResponse(getDevicesMoke());\n\n pDialog.hide();\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"Error: \" + error.getMessage());\n // hide the progress dialog\n pDialog.hide();\n }\n });\n HttpHandler.getInstance(mCtx).addToRequestQueue(jsonObjReq);\n return \"\";\n\n }", "public static String GET(String urlString) {\n\t\ttry {\n\t\t\tURL url = new URL(urlString);\n\t\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\t\tconn.connect();\n\t\t\tInputStream inputStream = conn.getInputStream();\n\t\t\treturn convertInputStreamToString(inputStream);\n\t\t} catch (MalformedURLException e) {\n\t\t\t// e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// e.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public JSONObject sendHTTPCall(final String urlString, final String requestType, final AbstractBuild<?, ?> build,\n final BuildListener listener) throws IOException {\n\n return sendHTTPCall(urlString, requestType, build, listener, 1);\n }", "String getQueryRequestUrl();" ]
[ "0.73576474", "0.7114992", "0.701352", "0.68498325", "0.6821989", "0.66925997", "0.66921943", "0.6684492", "0.6580162", "0.65612864", "0.6544653", "0.6539436", "0.6504566", "0.64835227", "0.6456326", "0.6423724", "0.63938874", "0.6312987", "0.63085616", "0.63062054", "0.63006794", "0.6282351", "0.62754965", "0.6261797", "0.625737", "0.623923", "0.62382036", "0.622482", "0.6203149", "0.6179297", "0.6170743", "0.61603546", "0.61417496", "0.61002", "0.6070988", "0.60462207", "0.6043932", "0.60387725", "0.6012593", "0.60123056", "0.6", "0.5993731", "0.5977522", "0.59567595", "0.59364957", "0.5930021", "0.5929482", "0.59293765", "0.59273297", "0.5924227", "0.5909627", "0.5896313", "0.58909404", "0.5888357", "0.58807504", "0.5878068", "0.58541554", "0.58492947", "0.58464", "0.5845395", "0.5843713", "0.58406603", "0.5831284", "0.58312184", "0.5827332", "0.5817828", "0.58050257", "0.5800448", "0.5795019", "0.5780385", "0.57729477", "0.5769644", "0.5757814", "0.5734537", "0.57294", "0.5713186", "0.5708975", "0.5684673", "0.5681059", "0.5676933", "0.56684554", "0.56679326", "0.56659174", "0.56634605", "0.5659836", "0.5653958", "0.5653412", "0.5644101", "0.56350017", "0.5625904", "0.5625426", "0.56212944", "0.5619934", "0.56186575", "0.5611318", "0.5610628", "0.56099594", "0.56044745", "0.56011164", "0.559998" ]
0.6566738
9
/ generateURL Input: Instance ID of the Data Center targetID Returns: URL which can be used to retrieve the target's details from the data center instance Additional info: the target's details are cached on backend instance
private String generateURL(Integer instanceID, String key) { return "http://" + databaseInstances[instanceID] + "/target?targetID=" + key; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Returns(\"targetId\")\n String createTarget(@ParamName(\"url\") String url);", "protected String getTargetUrl() {\n // Get the next target URL\n String target = this.endpointUrls.get(this.nextTarget);\n LOGGER.trace(\"Current nextTarget: \\\"{}\\\", targetUrl: \\\"{}\\\"\", this.nextTarget, target);\n // Update next pointer\n this.nextTarget = this.nextTarget == this.endpointUrls.size() - 1 ? 0 : this.nextTarget + 1;\n LOGGER.trace(\"New nextTarget: \\\"{}\\\"\", this.nextTarget);\n return target;\n }", "public String getTargetUrl() {\n return targetUrl;\n }", "protected String buildLink(Node targetNode) {\r\n if (targetNode == null) {\r\n return null;\r\n }\r\n return requestContext.getHstLinkCreator()\r\n .create(targetNode, requestContext, ContainerConstants.MOUNT_ALIAS_SITE)\r\n .toUrlForm(requestContext, false);\r\n }", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "private String generateRangeURL(Integer instanceID, Integer startRange, Integer endRange) {\n\t\treturn \"http://\" + databaseInstances[instanceID] + \"/range?start_range=\"\n\t\t\t\t+ Integer.toString(startRange) + \"&end_range=\" + Integer.toString(endRange);\n\t}", "public final String getURL(final String id) {\n\t\tString url = \"\";\n\t\turl += \"http://\";\n\t\turl += CONFIGURATION.PENTAHO_IP;\n\t\turl += \":\";\n\t\turl += CONFIGURATION.PENTAHO_PORTNUMBER;\n\t\turl += CONFIGURATION.CDASOLUTION_ADDRESS;\n\t\turl += CONFIGURATION.CDA_METHOD;\n\t\turl += \"?\";\n\t\turl += \"solution=\";\n\t\turl += CONFIGURATION.CDA_SOLUTION;\n\t\turl += \"&\";\n\t\turl += \"path=\";\n\t\turl += CONFIGURATION.CDA_PATH.replace(\"/\", \"%2F\");\n\t\turl += \"&\";\n\t\turl += \"file=\";\n\t\turl += CONFIGURATION.CDA_FILEFULLNAME;\n\t\turl += \"&\";\n\t\turl += \"dataAccessId=\";\n\t\turl += id;\n\t\treturn url;\n\t}", "public abstract String getOutputUrl();", "URL getTarget();", "@Returns(\"targetId\")\n String createTarget(\n @ParamName(\"url\") String url,\n @Optional @ParamName(\"width\") Integer width,\n @Optional @ParamName(\"height\") Integer height,\n @Optional @ParamName(\"browserContextId\") String browserContextId,\n @Experimental @Optional @ParamName(\"enableBeginFrameControl\") Boolean enableBeginFrameControl,\n @Optional @ParamName(\"newWindow\") Boolean newWindow,\n @Optional @ParamName(\"background\") Boolean background);", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "public String makeURL(String destlat, String destlog) {\n return \"https://maps.googleapis.com/maps/api/directions/json\" + \"?origin=\" + String.valueOf(mLastLocation.getLatitude()) + \",\" + String.valueOf(mLastLocation.getLongitude()) + \"&destination=\" + destlat + \",\" + destlog + \"&sensor=false&mode=walking&alternatives=true&key=\" + getResources().getString(R.string.google_map_key_for_server);\n }", "T setUrlTarget(String urlTarget);", "protected String generatePreviewUrl(final HttpServletRequest httpRequest, final PreviewDataModel previewDataModel)\n\t{\n\t\tString generatedPreviewUrl = StringUtils.EMPTY;\n\t\tif (previewDataModel != null)\n\t\t{\n\n\t\t\tif (StringUtils.isBlank(generatedPreviewUrl))\n\t\t\t{\n\t\t\t\tfinal AbstractPageModel abstractPageModel = previewDataModel.getPage();\n\t\t\t\tif (abstractPageModel != null)\n\t\t\t\t{\n\t\t\t\t\tgeneratedPreviewUrl = getURLMappingHanlder(httpRequest).getPageUrl(httpRequest, previewDataModel);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\n\t\t\t\t\tgeneratedPreviewUrl = previewDataModel.getResourcePath();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tif (StringUtils.isBlank(generatedPreviewUrl))\n\t\t{\n\t\t\tgeneratedPreviewUrl = UrlUtils.extractHostInformationFromRequest(httpRequest, getCMSSiteService(httpRequest)\n\t\t\t\t\t.getCurrentSite());\n\t\t}\n\t\tgeneratedPreviewUrl = StringUtils.removeStart(generatedPreviewUrl, \"/\");\n\t\treturn generatedPreviewUrl;\n\t}", "public static String getTestInstanceURL() {\n\n\t\treturn baseURL + login_required_string + \"/rest/domains/\" + domain + \"/projects/\" + project + \"/test-instances\";\n\t}", "@Test\n\tpublic void checkDetailedURLGeneration() {\n\t\tint neoID=1234;\n\t\tString expected = genDetailedURL(neoID);\n\t\tString result = urlHelper.getDetailedNeoInfoURL(neoID);\n\t\tassertEquals(expected,result);\n\t}", "public StringBuilder getDemandSearchURLForDemandId() {\n\t\tStringBuilder url = new StringBuilder(configs.getBillingServiceHost());\n\t\turl.append(configs.getDemandSearchEndPoint());\n\t\turl.append(\"?\");\n\t\turl.append(\"tenantId=\");\n\t\turl.append(\"{1}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"businessService=\");\n\t\turl.append(\"{2}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"consumerCode=\");\n\t\turl.append(\"{3}\");\n\t\turl.append(\"&\");\n\t\turl.append(\"isPaymentCompleted=false\");\n\t\treturn url;\n\t}", "public String targetId() {\n return this.targetId;\n }", "public String getUnproxiedFieldDataServerUrl() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\tString hostName = prefs.getString(\"serverHostName\", \"\");\n\t\tString context = \"bdrs-core\";//prefs.getString(\"contextName\", \"\");\n\t\tString path = prefs.getString(\"path\", \"\");\n\t\t\n\t\tStringBuilder url = new StringBuilder();\n\t\turl.append(\"http://\").append(hostName).append(\"/\").append(context);\n\t\t\n\t\tif (path.length() > 0) {\n\t\t\turl.append(\"/\").append(path);\n\t\t}\n\t\t\n\t\treturn url.toString();\n\t}", "private static URL buildURL(List<String> args) throws MalformedURLException {\n\n\t\tfinal String IDList = args.stream().map(id -> id.toString() + \",\").reduce(\"\", String::concat);\n\n\t\treturn new URL(String.format(BASE_URL, IDList));\n\t}", "public static String UrlToHit(){\n\t\treturn BaseURL;\n\t}", "public String generateURL(XYDataset dataset, int series, int item) { return getURL(series, item); }", "public String makeURL(double sourcelat, double sourcelog, double destlat,\n\t\t\tdouble destlog) {\n\t\tStringBuilder urlString = new StringBuilder();\n\t\turlString.append(\"http://maps.googleapis.com/maps/api/directions/json\");\n\t\turlString.append(\"?origin=\");// from\n\t\turlString.append(Double.toString(sourcelat));\n\t\turlString.append(\",\");\n\t\turlString.append(Double.toString(sourcelog));\n\t\turlString.append(\"&destination=\");// to\n\t\turlString.append(Double.toString(destlat));\n\t\turlString.append(\",\");\n\t\turlString.append(Double.toString(destlog));\n\t\turlString.append(\"&sensor=false&mode=driving&alternatives=true\");\n\t\treturn urlString.toString();\n\t}", "private URL createURL() {\n try {\n Log.d(\"URL\", \"create\");\n String urlString = \"http://cs262.cs.calvin.edu:8084/cs262dCleaningCrew/task/cjp27\";\n return new URL(urlString);\n } catch (Exception e) {\n Toast.makeText(this, getString(R.string.connection_error), Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "public StockEvent setUrlTarget(String urlTarget) {\n this.urlTarget = urlTarget;\n return this;\n }", "public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}", "@Override\n\tpublic void generateMigsPunchUrl() {\n\n\t}", "java.lang.String getClickURL();", "public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}", "WebURL createURL()\n {\n String url = getDir().getURL().getString() + \"!/\" + _cmt._rev.getId().getName();\n return WebURL.getURL(url);\n }", "String getVmUrl();", "public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }", "String getServerUrl();", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "protected abstract String getUrl();", "public String getURL(){\r\n\t\tString url = \"rmi://\";\r\n\t\turl += this.getAddress()+\":\"+this.getPort()+\"/\";\r\n\t\treturn url;\r\n\t}", "private String getUrl(LatLng origin, LatLng dest) {\n\n // Origin of route\n String str_origin = \"origin=\" + origin.latitude + \",\" + origin.longitude;\n\n // Destination of route\n String str_dest = \"destination=\" + dest.latitude + \",\" + dest.longitude;\n\n // Sensor enabled\n String sensor = \"sensor=false\";\n\n // Building the parameters to the web service\n String parameters = str_origin + \"&\" + str_dest + \"&\" + sensor;\n\n // Output format\n String output = \"json\";\n\n// Log.e(\"URL\", \"https://maps.googleapis.com/maps/api/directions/\" + output + \"?\" + parameters);\n\n // Building the url to the web service\n return \"https://maps.googleapis.com/maps/api/directions/\" + output + \"?\" + parameters;\n }", "public DvEHRURI getTarget() {\n return target;\n }", "public abstract URI target();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getURL();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "public String formURL(){\n String target = feedURL + \"?s=\" + marketInformation.getTickers().stream().reduce( (a, b) -> a + \",\" + b).get();\n // p0 is just the prices ordered the same as the request\n target += \"&f=p0\";\n return target;\n }", "@Override\n public String getUiDirectUrl(String instance, String application, String endpoint) {\n InstanceStateRecord state = getDeploymentStates(instance);\n InstanceManifest im = InstanceManifest.load(hive, instance, state.activeTag);\n\n String nodeName = null;\n InstanceNodeConfiguration ic = null;\n ApplicationConfiguration app = null;\n\n for (Map.Entry<String, Manifest.Key> entry : im.getInstanceNodeManifests().entrySet()) {\n InstanceNodeManifest inmf = InstanceNodeManifest.of(hive, entry.getValue());\n InstanceNodeConfiguration inc = inmf.getConfiguration();\n\n for (ApplicationConfiguration ac : inc.applications) {\n if (ac.id.equals(application)) {\n app = ac;\n break;\n }\n }\n\n if (app != null) {\n ic = inc;\n nodeName = entry.getKey();\n break;\n }\n }\n\n if (app == null || ic == null || nodeName == null) {\n throw new WebApplicationException(\"Cannot find application or node for \" + application + \" in instance \" + instance,\n Status.NOT_FOUND);\n }\n\n Optional<HttpEndpoint> ep = app.endpoints.http.stream().filter(e -> e.id.equals(endpoint)).findAny();\n\n if (ep.isEmpty()) {\n throw new WebApplicationException(\n \"Cannot find endpoint \" + endpoint + \" for application \" + application + \" in instance \" + instance,\n Status.NOT_FOUND);\n }\n\n Map<String, MinionDto> minions = getMinionConfiguration(instance, state.activeTag);\n MinionDto node = minions.get(nodeName);\n\n // note that we cannot resolve deployment paths here, but this *should* not matter for calculating a URI.\n CompositeResolver list = new CompositeResolver();\n list.add(new InstanceAndSystemVariableResolver(ic));\n list.add(new ConditionalExpressionResolver(list));\n list.add(new ApplicationVariableResolver(app));\n list.add(new ApplicationParameterValueResolver(app.id, ic));\n list.add(new ParameterValueResolver(new ApplicationParameterProvider(ic)));\n list.add(new OsVariableResolver());\n\n HttpEndpoint processed = CommonEndpointHelper.processEndpoint(list, ep.get());\n if (processed == null) {\n throw new WebApplicationException(\n \"Endpoint not enabled: \" + endpoint + \" for application \" + application + \" in instance \" + instance,\n Status.PRECONDITION_FAILED);\n }\n\n return CommonEndpointHelper.initUri(processed, node.remote.getUri().getHost(), processed.contextPath.getPreRenderable());\n }", "@Override\n\tpublic String generateUrl(String keyName) {\n\t\treturn null;\n\t}", "public String target(String target)\n {\n return target + \":\" + this.getPort();\n }", "java.lang.String getApiUrl();", "public DIDURL build() {\n\t\t\treturn url.deepClone(true);\n\t\t}", "public String getIdGeneratorDatabaseConnectionUrl(){\n \t\treturn getProperty(\"org.sagebionetworks.id.generator.database.connection.url\");\n \t}", "String getQueryResultsUrl();", "public abstract String getURL();", "String getJoinUrl();", "public String getTaskUrl(NodeDto nodeDto) {\n List<TemplateAttribute> templateAttributes = templateAttributeMapperExt.selectByTemplateIdAndRoleId(nodeDto.getTemplateId(), nodeDto.getRoleId());\n TemplateAttribute templateAttribute = templateAttributes.get(nodeDto.getExecuteOrder());\n return templateAttribute.getUrl();\n }", "public void setTargetUrl(String targetUrl) {\n this.targetUrl = targetUrl == null ? null : targetUrl.trim();\n }", "public String getTarget() {\n return target;\n }", "public String getTarget() {\n return target;\n }", "public String getToRefid() {\n return targetid;\n }", "public String getAbstractTarget(int targetId) {\r\n \tString abs = \"\";\r\n \tfor (String edge :jungCompleteGraph.getOutEdges(targetId)){\r\n \t\t\tif(edge.contains(\"http://dbpedia.org/ontology/abstract\")){\r\n \t\t\t\tabs = getURI(jungCompleteGraph.getDest(edge)); \r\n \t\t\t}\r\n \t\t}\r\n \treturn abs;\r\n }", "private URL createUrl(String movieId) {\n URL url = null;\n try {\n Uri.Builder builder = new Uri.Builder();\n builder.scheme(\"https\")\n .authority(\"api.themoviedb.org\")\n .appendPath(\"3\")\n .appendPath(\"movie\")\n .appendPath(movieId)\n .appendQueryParameter(\"api_key\", getString(R.string.moviedb_api_key));\n url = new URL(builder.build().toString());\n } catch (Exception exception) {\n Log.e(LOG_TAG, \"Error with creating URL\", exception);\n return null;\n }\n return url;\n }", "String getServiceUrl();", "public static String executeGet(String targetURL) {\t\n\t\t HttpURLConnection connection = null; \n\t\t try {\n\t\t //Create connection\n\t\t URL url = new URL(targetURL);\n\t\t connection = (HttpURLConnection)url.openConnection();\n\t\t connection.setRequestMethod(\"GET\");\n\t\t connection.setRequestProperty(\"Content-Type\", \"application/json\");\n\t\t connection.setRequestProperty(\"Content-Language\", \"en-US\"); \n\n\t\t connection.setUseCaches(false);\n\t\t connection.setDoOutput(true);\n\n\n\t\t //Get Response \n\t\t InputStream is = connection.getInputStream();\n\t\t BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\t\t StringBuilder response = new StringBuilder(); // or StringBuffer if not Java 5+ \n\t\t String line;\n\t\t while((line = rd.readLine()) != null) {\n\t\t response.append(line);\n\t\t response.append('\\r');\n\t\t }\n\t\t rd.close();\n\t\t return response.toString();\n\t\t } catch (Exception e) {\n\t\t return e.getMessage();\n\t\t } finally {\n\t\t if(connection != null) {\n\t\t connection.disconnect(); \n\t\t }\n\t\t }\n\t\t}", "public void setTargetServiceURL(java.lang.String targetServiceURL) {\r\n this.targetServiceURL = targetServiceURL;\r\n }", "public String getTarget() {\n return JsoHelper.getAttribute(jsObj, \"target\");\n }", "public java.lang.String getTargetServiceURL() {\r\n return targetServiceURL;\r\n }", "String makePlanCommunityUrl();", "public static String getCreateTestRunURL() {\n\n\t\treturn baseURL + login_required_string + \"/rest/domains/\" + domain + \"/projects/\" + project + \"/runs\";\n\t}", "public String getPictureUrl()\n\t{\n\t\treturn \"http://cdn-0.nflximg.com/us/headshots/\" + id + \".jpg\";\n\t}", "String getTarget();", "String getTarget();", "public String getTarget()\r\n\t{\r\n\t\treturn _target;\r\n\t}", "private static URL generateUrl(String requestedUrlString) {\n URL url = null;\n\n try {\n url = new URL(requestedUrlString);\n } catch (MalformedURLException e) {\n Log.e(LOG_TAG, \"Error creating a URL object : generateURL() block\", e);\n }\n return url;\n }", "String getRequestedUrl();", "private String makeJspUrl(String result) {\n String path = this.jspUrlPattern\n .replaceAll(\"\\\\$\\\\{action\\\\}\", id.getActionName())\n .replaceAll(\"\\\\$\\\\{method\\\\}\", id.getMethodName())\n .replaceAll(\"\\\\$\\\\{result\\\\}\", result);\n logger.debug(\"path for target: '{}', result: '{}' is '{}'\", id, result, path);\n return path;\n }", "@Experimental\n @Returns(\"targetInfo\")\n TargetInfo getTargetInfo(@Optional @ParamName(\"targetId\") String targetId);", "private String calculateTargetHref(URL clickUrl) {\n\t\tString resourceHref = clickUrl.toString();\n\t\ttry {\n\t\t\tresourceHref = URLDecoder.decode(resourceHref,\n\t\t\t\t\tConstants.CHARACTER_ENCODING);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tlog.error(e.getMessage());\n\t\t}\n\t\tresourceHref = resourceHref.substring(ImageLoaderCache.IMAGE_URL_PREFIX\n\t\t\t\t.length());\n\n\t\tif (resourceHref.startsWith(\"#\")) {\n\t\t\treturn resourceHref;\n\t\t}\n\t\tif (currentResource != null\n\t\t\t\t&& StringUtils.isNotBlank(currentResource.getHref())) {\n\t\t\tint lastSlashPos = currentResource.getHref().lastIndexOf('/');\n\t\t\tif (lastSlashPos >= 0) {\n\t\t\t\tresourceHref = currentResource.getHref().substring(0,\n\t\t\t\t\t\tlastSlashPos + 1)\n\t\t\t\t\t\t+ resourceHref;\n\t\t\t}\n\t\t}\n\t\treturn resourceHref;\n\t}", "public void setToRefid(String targetid) {\n this.targetid = targetid;\n }", "public abstract String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "@Override\n public String createEndpointUri() {\n \n Properties scProps = utils.obtainServerConfig();\n String baseUri = scProps.getProperty(TARGET_SERVER_PROPERTY_NAME);\n String accessToken = scProps.getProperty(AUTH_TOKEN_PROPERTY_NAME);\n String sourceName = scProps.getProperty(SOURCES_PROPERTY_NAME);\n String sendPings = scProps.getProperty(SEND_PING_PROPERTY_NAME);\n if (StringUtils.isEmpty(baseUri) || StringUtils.isEmpty(accessToken)) {\n throw new IllegalArgumentException(\"source.config file is missing or does not contain sufficient \" +\n \"information from which to construct an endpoint URI.\");\n }\n if (StringUtils.isEmpty(sourceName) || sourceName.contains(\",\")) {\n throw new IllegalArgumentException(\"Default vantiq: endpoints require a source.config file with a single\" +\n \" source name. Found: '\" + sourceName + \"'.\");\n }\n \n try {\n URI vantiqURI = new URI(baseUri);\n this.setEndpointUri(baseUri);\n String origScheme = vantiqURI.getScheme();\n \n StringBuilder epString = new StringBuilder(vantiqURI.toString());\n epString.append(\"?sourceName=\").append(sourceName);\n this.sourceName = sourceName;\n epString.append(\"&accessToken=\").append(accessToken);\n this.accessToken = accessToken;\n if (sendPings != null) {\n epString.append(\"&sendPings=\").append(sendPings);\n this.sendPings = Boolean.parseBoolean(sendPings);\n }\n if (origScheme.equals(\"http\") || origScheme.equals(\"ws\")) {\n epString.append(\"&noSsl=\").append(\"true\");\n noSsl = true;\n }\n epString.replace(0, origScheme.length(), \"vantiq\");\n URI endpointUri = URI.create(String.valueOf(epString));\n return endpointUri.toString();\n } catch (URISyntaxException mue) {\n throw new IllegalArgumentException(TARGET_SERVER_PROPERTY_NAME + \" from server config file is invalid\",\n mue);\n }\n }", "public java.lang.String getTarget() {\n return target;\n }", "private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://localhost:8093/mockCustomerBinding\";\r\n\t}", "public abstract String getRequestTarget(final int requestNumber);", "URL getUrl();", "public void setTargetid(Integer targetid) {\n this.targetid = targetid;\n }", "private String makeServerUrl(){\n\t\tURL url = null;\n\t\t\n\t\t//Make sure we have a valid url\n\t\tString complete = this.preferences.getString(\"server\", \"\");\n\t\ttry {\n\t\t\turl = new URL( complete );\n\t\t} catch( Exception e ) {\n\t\t\tonCreateDialog(DIALOG_INVALID_URL).show();\n\t\t\treturn null;\n\t\t}\n\t\treturn url.toExternalForm();\n\t}", "public String getTarget() {\n return this.target;\n }", "protected Anchor getDistanceHyperlink(LocationResult locationResult, String target) {\n String val = getDistanceDisplay(locationResult);\n Anchor distanceLabel = new Anchor(val, target);\n distanceLabel.setStyleName(\"distance\");\n return distanceLabel;\n }" ]
[ "0.620329", "0.6172255", "0.60999584", "0.6034626", "0.58843434", "0.58286864", "0.57995725", "0.57772774", "0.57051367", "0.5598019", "0.55671644", "0.55671644", "0.55069405", "0.5454752", "0.5394895", "0.5391621", "0.53414243", "0.53194916", "0.5318202", "0.52906954", "0.52714455", "0.5258611", "0.5255012", "0.52495676", "0.52417564", "0.5216215", "0.5191724", "0.51748085", "0.51447415", "0.51443535", "0.5137392", "0.5110977", "0.510737", "0.51054245", "0.5097376", "0.50853425", "0.5084781", "0.50688636", "0.50670964", "0.5064392", "0.50628895", "0.50628895", "0.50628895", "0.50628895", "0.5061646", "0.5047395", "0.5047395", "0.5047395", "0.5047395", "0.5047395", "0.5047395", "0.5040831", "0.5037138", "0.50357115", "0.5031187", "0.50293213", "0.5022187", "0.5016822", "0.5014853", "0.5010205", "0.50069916", "0.49983636", "0.49982822", "0.49981257", "0.49981257", "0.49951142", "0.49928233", "0.49868038", "0.497556", "0.49681067", "0.49633142", "0.49626723", "0.49624267", "0.49587324", "0.4957854", "0.49574286", "0.4952748", "0.4952748", "0.49464294", "0.49457636", "0.4945095", "0.4940416", "0.4932937", "0.4922084", "0.49198154", "0.49175557", "0.49087083", "0.49087083", "0.49087083", "0.49087083", "0.49087083", "0.48994437", "0.48992565", "0.4898252", "0.48972908", "0.489203", "0.48912495", "0.48895338", "0.488708", "0.4871855" ]
0.78612113
0