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
Default constructor with initial values
public Transformation(double values[][]) { super(4, 4, values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "defaultConstructor(){}", "void DefaultConstructor(){}", "private Default()\n {}", "DefaultConstructor(int a){}", "ConstructorPractice () {\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "private Instantiation(){}", "public AllDifferent()\n {\n this(0);\n }", "public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}", "public Constructor(){\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "@Test\n public void constructorDefault() {\n final CourseType courseType = new CourseType();\n\n assertNull(courseType.getId());\n assertNull(courseType.getName());\n assertNull(courseType.getPicture());\n assertNull(courseType.getPosition());\n assertNull(courseType.getStatus());\n assertNull(courseType.getCourses());\n assertNull(courseType.getAllowedDishes());\n }", "public void initDefaultValues() {\n }", "public InitialData(){}", "public Employee(){\r\n this(\"\", \"\", \"\", 0, \"\", 0.0);\r\n }", "public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }", "public Generic(){\n\t\tthis(null);\n\t}", "public Basic() {}", "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 Shape() { this(X_DEFAULT, Y_DEFAULT); }", "DefaultAttribute()\n {\n }", "private ARXDate() {\r\n this(\"Default\");\r\n }", "public DefaultImpl() {\n this(DEFAULT_DATE_FORMAT);\n }", "public User() {\r\n this(\"\", \"\");\r\n }", "default void init() {\n }", "public Person() {\n\t\tname \t= \"\";\n\t\taddress = \"\";\n\t\tcity \t= \"\";\n\t\tage \t= 0;\n\t}", "public Orbiter() {\n }", "public Account() {\n // special case of the word \"this\"\n this(\"01234\", 0.00, \"Default Name\", \"Default Email\", \"Default Phone\");\n System.out.println(\"Empty constructor called\"); // only called once when instantiated.\n }", "private Value() {\n\t}", "public State()\n {\n this(\"\");\n }", "public MyInteger( )\n {\n this( 0 );\n }", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "public Int() {\n this(0);\n }", "Employees() { \r\n\t\t this(100,\"Hari\",\"TestLeaf\");\r\n\t\t System.out.println(\"default Constructor\"); \r\n\t }", "public Demo3() {}", "public Counter()\n {\n this(0);\n }", "public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}", "TypesOfConstructor(){\n System.out.println(\"This is default constructor\");\n }", "public Value() {}", "public Value() {\n }", "public Waschbecken() {\n this(0, 0);\n }", "Reproducible newInstance();", "public MyPractice()\n\t{\n\t\t//Unless we specify values all data members\n\t\t//are a zero, false, or null\n\t}", "public BabbleValue() {}", "public Overview() {\n\t\t// It will work whenever i create object with using no parameter const\n\t\tSystem.out.println(\"This is constructor\");\n\t}", "public User(){\n this(null, null);\n }", "public Pasien() {\r\n }", "public Account() {\n this(0, 0.0, \"Unknown name\"); // Invole the 2-param constructor\n }", "public Stack() {\r\n this(20);\r\n }", "public Demo() {\n\t\t\n\t}", "public TennisCoach () {\n\t\tSystem.out.println(\">> inside default constructor.\");\n\t}", "@Test\n public void testDefaultConstructor() {\n final ConfigSearchResult<?> result = new ConfigSearchResult<>();\n assertTrue(result.getDocuments().isEmpty());\n assertNull(result.getPaging());\n assertEquals(result.getVersionCorrection(), VersionCorrection.LATEST);\n }", "public Complex() {\n this(0);\n }", "public Data() {}", "public Node(){\n this(9);\n }", "public Candy() {\n\t\tthis(\"\");\n\t}", "public Test05() {\n this(0);\n n2 = \"n2\";\n n4 = \"n4\";\n }", "public Pitonyak_09_02() {\r\n }", "public DefaultNashRequestImpl() {\n\t\t\n\t}", "public Data() {\n \n }", "public Dog() {\n // Default constructor\n }", "public Lanceur() {\n\t}", "public Value(){}", "public DefaultObjectModel ()\n {\n this (new Schema ());\n }", "public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }", "public Data() {\n }", "public Data() {\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "public Aanbieder() {\r\n\t\t}", "@Test\n\tpublic void testDefaultConstructor() {\n\t\tassertThat(\"Expect not null.\", testling, is(notNullValue()));\n\t}", "public Curso() {\r\n }", "public D() {}", "public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }", "public InitialState() {\r\n\t\t}", "public Point()\n\t{ \n\t\t// Instantiate default properties\n\t\tx = 0;\n\t\ty = 0;\n\t}", "public Person() {\n\t\t\n\t}", "public Vector() {\n construct();\n }", "public MyDate(){\t\n\t\tthis(\"00/00/0000\");\n\t}", "private ARXOrderedString(){\r\n this(\"Default\");\r\n }", "public Player()\n // POST: A default Player object is created with all class members set to 0\n\t{\n\t\tthis(2000, 0);\n\t}", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public Property() {\n this(0, 0, 0, 0);\n }", "public Chauffeur() {\r\n\t}", "@Override public void init()\n\t\t{\n\t\t}", "public Parameters() {\n\t}", "public Naive() {\n\n }", "public DefaultSortParameters() {\n\t\tthis(null, null, null, null, null);\n\t}", "public Main() {\n this(DEFAULT_SIZE);\n }", "public Main() {\n this(DEFAULT_SIZE);\n }", "public Model() {\n\t}", "public Model() {\n\t}", "public Employee()\n\t{\n\t\tthis(\"(2)Invoke Employee's overload constructor\");\n\t\tSystem.out.println(\"(3)Employee's no-arg constructor is invoked\");\n\t}", "public Log() { //Null constructor is adequate as all values start at zero\n\t}", "public Person()\n {\n //intentionally left empty\n }", "public JsonFactory() { this(null); }", "@Override\n\t\tpublic void init() {\n\t\t}", "public ZTest1() {\n this(\"z_test1\", null);\n }", "public Student()\r\n {\r\n //This is intended to be empty\r\n }", "public Person() {}", "public Identity() {\n\n\t}" ]
[ "0.8029128", "0.7813856", "0.7683762", "0.72234905", "0.71914095", "0.7145142", "0.69815224", "0.6972747", "0.69544166", "0.69268465", "0.67860734", "0.6782512", "0.67685837", "0.67585987", "0.67558306", "0.6755673", "0.6753713", "0.6734648", "0.6711416", "0.67016083", "0.6689412", "0.6681287", "0.66600025", "0.6656958", "0.66395724", "0.66313297", "0.66234547", "0.6617021", "0.66089064", "0.65897137", "0.6586658", "0.65845907", "0.6584048", "0.6579355", "0.65737855", "0.65718967", "0.65706015", "0.65693045", "0.6569029", "0.6555083", "0.6549723", "0.6548031", "0.6543678", "0.6534671", "0.6526783", "0.65208554", "0.6516551", "0.65001976", "0.64867634", "0.64842814", "0.6477759", "0.64694804", "0.64575374", "0.6443512", "0.6442252", "0.6436815", "0.64355785", "0.6431384", "0.64296544", "0.6423596", "0.642196", "0.6404756", "0.6404536", "0.6402361", "0.6397311", "0.6382963", "0.63795495", "0.63795495", "0.63706964", "0.63705105", "0.63602763", "0.63602436", "0.6352283", "0.63496405", "0.63493794", "0.63440984", "0.6328984", "0.63245994", "0.63227683", "0.6321483", "0.6320478", "0.6319729", "0.63183093", "0.63171643", "0.6287581", "0.62874967", "0.6286205", "0.628615", "0.62860966", "0.62860966", "0.6283865", "0.6283865", "0.62813234", "0.6281234", "0.6280099", "0.6269149", "0.62664545", "0.62539864", "0.6253228", "0.6250303", "0.6249231" ]
0.0
-1
Combines this transformation with another, returns new one
public Transformation mult(Transformation a) { Transformation result = new Transformation(); super.mult(a, result); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Transform compose(Transform other){\n float[][] ans = new float[4][4];\n for(int row = 0; row < 4; row++){\n for(int col = 0; col < 4; col++){\n for(int i = 0; i < 3; i++){\n ans[row][col] += this.values[row][i] * other.values[i][col];\n }\n }\n ans[row][3] += this.values[row][3];\n }\n return new Transform(ans);\n }", "Transform<A, B> getTransform();", "public Model3DAction combine(Model3DAction newAction) {\n\t\tif(newAction instanceof Model3DActionRotation) {\r\n\t\t\t// Set the new rotations old to this ones old, bypassing it.\r\n\t\t\t((Model3DActionRotation)newAction).oldRotation = oldRotation;\r\n\t\t\treturn newAction;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "O transform(R result);", "Concat createConcat();", "@Override\n public BinaryOperator<TradeAccumulator> combiner() {\n return (accum1, accum2) -> {return accum1.addAll(accum2);};\n }", "public <R> R transform(Function<AllBuilder2<T1, T2>, R> body) {\n Objects.requireNonNull(body);\n return body.apply(this);\n }", "public void transformToSecondXml();", "private SimilarityTransformation3D getCombinedTransfo3D(Document document,double sourcescale,double targetscale) {\n\t\tElement root = XMLUtil.getRootElement(document);\n\n\t\tArrayList<Element> transfoElementArrayList = XMLUtil.getElements(root,\n\t\t\t\t\"MatrixTransformation\");\n\t\t// int nbtransfo=transfoElementArrayList.size();\n\t\tArrayList<Matrix> listoftransfo = new ArrayList<Matrix>();\n\t\t\n\t\t//Matrix ScaleSourcetransfo=Matrix.identity(4, 4).times(sourcescale);\n\t\t//Matrix Scaletargettransfo=Matrix.identity(4, 4).times(1.0/targetscale);\n\t\tMatrix ScaleSourcetransfo=Matrix.identity(4, 4).times(sourcescale);\n\t\tScaleSourcetransfo.set(3,3,1.0);\n\t\tScaleSourcetransfo.set(2,2,1.0);//do not touch z\n\t\tMatrix Scaletargettransfo=Matrix.identity(4, 4).times(1.0/targetscale);\n\t\tScaletargettransfo.set(3,3,1.0);\n\t\tScaletargettransfo.set(2,2,1.0);//do not touch z\n\t\t//listoftransfo.add(ScaleSourcetransfo);\n\t\t// the default value of orisizex has to the actual pixel size:\n\t\t// otherwise during the initialisation (i.e the first tranform \n\t\t//when getcombined transform has nothing to return\n\t\tdouble orisizex=source.getValue().getPixelSizeX();\n\t\tdouble orisizey=source.getValue().getPixelSizeY();\n\t\tdouble orisizez=source.getValue().getPixelSizeZ();\n\t\tElement transfoElementf=transfoElementArrayList.get(0);\n\t\tdouble orisizexbinned=XMLUtil.getAttributeDoubleValue(transfoElementf, \"formerpixelsizeX\", 0);\n\t\t//double orisizeybinned=XMLUtil.getAttributeDoubleValue(transfoElementf, \"formerpixelsizeY\", 0);\n\t\t//double orisizezbinned=XMLUtil.getAttributeDoubleValue(transfoElementf, \"formerpixelsizeZ\", 0);\n\t\tif ((orisizex==orisizexbinned)&&(sourcescale!=1)){\n\t\t\tlistoftransfo.add(ScaleSourcetransfo);\n\t\t\tSystem.out.println(\"Warning something strange happened to your metadata. Check your binned metadata and these one.\");\n\t\t}\n\t\tfor (Element transfoElement : transfoElementArrayList) {\n\t\t\tdouble[][] m = new double[4][4];\n\t\t\t// int order = XMLUtil.getAttributeIntValue( transfoElement, \"order\"\n\t\t\t// , -1 ); //to be check for now only: has to be used!!!\n\t\t\t// the only different pixel size (i.e the orginal source size) is given only at the first transformation\n\t\t\t\n\t\t\t\n\t\t\tm[0][0] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m00\", 0);\n\t\t\tm[0][1] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m01\", 0);\n\t\t\tm[0][2] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m02\", 0);\n\t\t\tm[0][3] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m03\", 0);\n\n\t\t\tm[1][0] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m10\", 0);\n\t\t\tm[1][1] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m11\", 0);\n\t\t\tm[1][2] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m12\", 0);\n\t\t\tm[1][3] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m13\", 0);\n\n\t\t\tm[2][0] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m20\", 0);\n\t\t\tm[2][1] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m21\", 0);\n\t\t\tm[2][2] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m22\", 0);\n\t\t\tm[2][3] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m23\", 0);\n\n\t\t\tm[3][0] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m30\", 0);\n\t\t\tm[3][1] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m31\", 0);\n\t\t\tm[3][2] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m32\", 0);\n\t\t\tm[3][3] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m33\", 0);\n\t\t\t\n\t\t\tMatrix T = new Matrix(m);\n\t\t\tlistoftransfo.add(T);\n\n\t\t}\n\t\tlistoftransfo.add(Scaletargettransfo);\n\t\tMatrix CombinedTransfo = Matrix.identity(4, 4);\n\t\tfor (int i = 0; i < listoftransfo.size(); i++) {\n\t\t\tCombinedTransfo = listoftransfo.get(i).times(CombinedTransfo);\n\t\t}\n\t\t\n\t\t\n\t\tSimilarityTransformation3D resulttransfo=new SimilarityTransformation3D(CombinedTransfo,orisizex,orisizey,orisizez);\n\t\treturn resulttransfo;\n\t\n}", "private NFA combine(NFA nfa1, NFA nfa2) {\n // must use a set for multiple final states\n Set<State> nfa1FinalStates = nfa1.getFinalStates();\n //add states from nfa2 to base\n nfa1.addNFAStates(nfa2.getStates());\n nfa1.addAbc(nfa2.getABC());\n\n Iterator<State> itr = nfa1FinalStates.iterator();\n while (itr.hasNext()) {\n State state = itr.next();\n //states are now non-final nfa states\n ((NFAState) state).setNonFinal();\n //empty transition used to rach start of nfa2\n nfa1.addTransition(state.getName(), 'e', nfa2.getStartState().getName());\n }\n return nfa1;\n }", "public default StreamPlus<DATA> mergeWith(Stream<DATA> anotherStream) {\n val streamPlus = streamPlus();\n val iteratorA = streamPlus.iterator();\n val iteratorB = StreamPlus.from(anotherStream).iterator();\n val resultStream = StreamPlusHelper.doMerge(iteratorA, iteratorB);\n resultStream.onClose(() -> {\n funcUnit0(() -> streamPlus.close()).runCarelessly();\n funcUnit0(() -> anotherStream.close()).runCarelessly();\n });\n return resultStream;\n }", "Object transform(Object o);", "@Override\n public BinaryOperator<List<Integer>> combiner() {\n return (resultList1, resultList2) -> {\n Integer currentTotal1 = resultList1.get(0);\n Integer currentTotal2 = resultList2.get(0);\n currentTotal1 += currentTotal2;\n resultList1.set(0, currentTotal1);\n return resultList1;\n };\n }", "@SuppressWarnings(\"unchecked\")\n public static Transformation<?> apply(\n StreamExecutionEnvironment env, Transformation<?> transformation) throws Exception {\n if (env.getConfiguration().get(PythonOptions.PYTHON_OPERATOR_CHAINING_ENABLED)) {\n final Field transformationsField =\n StreamExecutionEnvironment.class.getDeclaredField(\"transformations\");\n transformationsField.setAccessible(true);\n final List<Transformation<?>> transformations =\n (List<Transformation<?>>) transformationsField.get(env);\n final Tuple2<List<Transformation<?>>, Transformation<?>> resultTuple =\n optimize(transformations, transformation);\n transformationsField.set(env, resultTuple.f0);\n return resultTuple.f1;\n } else {\n return transformation;\n }\n }", "private TreeNode<K> combine(TreeNode<K> x, TreeNode<K> y) {\n TreeNode<K> z = new TreeNode<K>();\n z.left = x;\n z.right = y;\n z.rank = x.rank + 1;\n sift(z);\n return z;\n }", "void merge();", "public static <A, B, C> Function<A, C> combine(Function<A, B> functionOne, Function<B, C> functionTwo) {\n// return functionTwo.compose(functionOne);\n return (A a) -> functionTwo.apply(functionOne.apply(a));\n }", "private NFA union(NFA nfa1, NFA nfa2) {\n NFA result = new NFA();\n\n String startState = String.valueOf(stateInc++);\n result.addStartState(startState);\n result.addNFAStates(nfa1.getStates());\n result.addNFAStates(nfa2.getStates());\n result.addTransition(startState, 'e', nfa1.getStartState().getName());\n result.addTransition(startState, 'e', nfa2.getStartState().getName());\n result.addAbc(nfa1.getABC());\n result.addAbc(nfa2.getABC());\n\n return result;\n\n }", "protected abstract void concatenateTransformationMatrix(\n final AffineTransform at);", "public Builder mergeTransformValue(godot.wire.Wire.Transform value) {\n if (transformValueBuilder_ == null) {\n if (typeCase_ == 14 &&\n type_ != godot.wire.Wire.Transform.getDefaultInstance()) {\n type_ = godot.wire.Wire.Transform.newBuilder((godot.wire.Wire.Transform) type_)\n .mergeFrom(value).buildPartial();\n } else {\n type_ = value;\n }\n onChanged();\n } else {\n if (typeCase_ == 14) {\n transformValueBuilder_.mergeFrom(value);\n }\n transformValueBuilder_.setMessage(value);\n }\n typeCase_ = 14;\n return this;\n }", "@Override\r\n\tpublic ATokVisitor<IGrammarSymbol, Object> makeCombinedVisitor(ATokVisitor<IGrammarSymbol, Object> other) {\r\n\t\treturn new ATokVisitor<IGrammarSymbol, Object>(other) {\r\n\t\t\t{\r\n\t\t\t\t//addCmdTo(this);\r\n\t\t\t\tthis.setCmd(getName(), makeCmd());\r\n\t\t\t}\r\n\t\t};\r\n\t}", "private Combined() {}", "public Item merge(Item other);", "public <R> R transform(Function<AllBuilder<T1>, R> body) {\n Objects.requireNonNull(body);\n return body.apply(this);\n }", "@Override\n Map<String, Integer> apply(Map<String, Integer> x, Map<String, Integer> y)\n {\n y.entrySet().forEach(e->x.merge(e.getKey(),e.getValue(),(v,w)->v+w));\n return x;\n\n }", "@Override\n public BinaryOperator<ObjectNode> combiner() {\n return (l, r) -> {\n Iterator<Map.Entry<String, JsonNode>> it = r.fields();\n while (it.hasNext()) {\n Map.Entry<String, JsonNode> entry = it.next();\n l.set(entry.getKey(), entry.getValue());\n }\n return l;\n };\n }", "public Transform getTransform(){\n switch (this){\n case promote_terminals: return new SubexpressionTransformation.TerminalChain();\n case promote_redundant: return new SubexpressionTransformation.RedundantChain();\n case promote_summary: return new SubexpressionTransformation.SummarisingChain();\n case promote_chomsky: return new SubexpressionTransformation.ChomskyChain();\n case filter: return new RelationFilterTransformation();\n case order: return new EvaluationOrderTransformation(true, true);\n default: throw new RuntimeException(\"Unreachable\");\n }\n }", "public static Seq plus(Jumble j1, Jumble j2){\n int new_size = (j1.count < j2.count) ? j1.count : j2.count;\n int new_arr[] = new int[new_size];\n for(int i = 0; i < new_size; i++) {\n new_arr[i] = j1.values[i] + j2.values[i]; //add each corresponding element\n }\n return new Jumble(new_arr); // the Jumble constructor does copy \n }", "@Override\n public void testTransform() {\n BinaryStringStringPipe b1 = randomInstance();\n Expression newExpression = randomValueOtherThan(b1.expression(), () -> randomBinaryStringStringExpression());\n BinaryStringStringPipe newB = new BinaryStringStringPipe(\n b1.source(),\n newExpression,\n b1.left(),\n b1.right(),\n b1.operation());\n assertEquals(newB, b1.transformPropertiesOnly(v -> Objects.equals(v, b1.expression()) ? newExpression : v, Expression.class));\n \n BinaryStringStringPipe b2 = randomInstance();\n Source newLoc = randomValueOtherThan(b2.source(), () -> randomSource());\n newB = new BinaryStringStringPipe(\n newLoc,\n b2.expression(),\n b2.left(),\n b2.right(),\n b2.operation());\n assertEquals(newB,\n b2.transformPropertiesOnly(v -> Objects.equals(v, b2.source()) ? newLoc : v, Source.class));\n }", "public void fromTransformations(Transformations transformations);", "public void transform() {\n\t\tOrganism newOrg;\n\t\t\n\t\tfor (int i=0; i < 1; i++) {\n\t\t\tnewOrg = new Organism(_world);\n\t\t\tif (newOrg.inheritTransformation(this, i==0)) {\n\t\t\t\t// It can be created\n\t\t\t\t_world.addOrganism(newOrg,this);\n\t\t\t}\n\t\t}\n\t}", "void transform() {\n\t\tint oldline, newline;\n\t\tint oldmax = oldinfo.maxLine + 2; /* Count pseudolines at */\n\t\tint newmax = newinfo.maxLine + 2; /* ..front and rear of file */\n\n\t\tfor (oldline = 0; oldline < oldmax; oldline++)\n\t\t\toldinfo.other[oldline] = -1;\n\t\tfor (newline = 0; newline < newmax; newline++)\n\t\t\tnewinfo.other[newline] = -1;\n\n\t\tscanunique(); /* scan for lines used once in both files */\n\t\tscanafter(); /* scan past sure-matches for non-unique blocks */\n\t\tscanbefore(); /* scan backwards from sure-matches */\n\t\tscanblocks(); /* find the fronts and lengths of blocks */\n\t}", "public default <ANOTHER, TARGET> StreamPlus<TARGET> zipWith(Stream<ANOTHER> anotherStream, BiFunction<DATA, ANOTHER, TARGET> combinator) {\n return zipWith(anotherStream, RequireBoth, combinator);\n }", "public Shingle union(final Shingle other) {\n List<Double> union = new ArrayList<Double>(this.size() + other.size());\n for (Double f : data) {\n union.add(f);\n }\n for (Double f : other.getData()) {\n union.add(f);\n }\n Shingle shingle = new Shingle(union);\n shingle.unique();\n return shingle;\n }", "public abstract Route combineWith(Route other, double ratio);", "default Stream<T> union(Stream<T> other) {\n return union(Arrays.asList(other));\n }", "public Computation merge(ComputationTemplate template, ComputationTask task);", "@Override\n\tprotected void merge(Object in1, Object in2, Object out) {\n\t\t\n\t}", "private static <R, I, T> SerializableFunction<R, T> compose(\n SerializableFunction<R, I> f1, SerializableFunction<I, T> f2) {\n return r -> f2.apply(f1.apply(r));\n }", "public static Transformer chainedTransformer(Transformer transformer1, Transformer transformer2) {\n Transformer[] trs = new Transformer[] {transformer1, transformer2};\n validate(trs);\n return new ChainedTransformer(trs);\n }", "public void combine(List<T> parents, List<T> result) {\n assert (parents.size() == 2);\n\n List<T> list1 = Cut(parents.get(0));// A B\n List<T> list2 = Cut(parents.get(1));// C D\n\n /*\n * insert flipped list2 in the middle of list1 so there will be A D C B\n */\n if (list2.size() < 2) {\n list1.add(1, list2.get(0));\n } else {\n list1.add(1, list2.get(0));\n list1.add(1, list2.get(1));\n }\n\n Splice(list1, result);\n }", "List<IMotion> combineMotion(IMotion other);", "int getCombine();", "protected abstract void recombineNext();", "public Builder mergeTransform2DValue(godot.wire.Wire.Transform2D value) {\n if (transform2DValueBuilder_ == null) {\n if (typeCase_ == 9 &&\n type_ != godot.wire.Wire.Transform2D.getDefaultInstance()) {\n type_ = godot.wire.Wire.Transform2D.newBuilder((godot.wire.Wire.Transform2D) type_)\n .mergeFrom(value).buildPartial();\n } else {\n type_ = value;\n }\n onChanged();\n } else {\n if (typeCase_ == 9) {\n transform2DValueBuilder_.mergeFrom(value);\n }\n transform2DValueBuilder_.setMessage(value);\n }\n typeCase_ = 9;\n return this;\n }", "ASTFoldCombine() { super(null); }", "protected abstract Object transform(Object o);", "private OpN rewriteOpN(final OpN source, final OpN dest) {\n final OpRewriter rewriter = new OpRewriter(securityEvaluator, graphIRI);\n for (final Op o : source.getElements()) {\n o.visit(rewriter.reset());\n dest.add(rewriter.getResult());\n }\n return dest;\n }", "public Matrix getCombinedTransfo(Document document,double sourcescale,double targetscale){\n\t\tElement root = XMLUtil.getRootElement(document);\n\n\n\n\n\t\tArrayList<Element> transfoElementArrayList = XMLUtil.getElements( root , \"MatrixTransformation\" );\n\n\t\tArrayList<Matrix> listoftransfo=new ArrayList<Matrix>();\n\t\tMatrix ScaleSourcetransfo=Matrix.identity(4, 4).times(1*sourcescale);\n\t\tScaleSourcetransfo.set(3,3,1.0);\n\t\tScaleSourcetransfo.set(2,2,1.0);//do not touch z\n\t\tMatrix Scaletargettransfo=Matrix.identity(4, 4).times(1.0/targetscale);\n\t\tScaletargettransfo.set(3,3,1.0);\n\t\tScaletargettransfo.set(2,2,1.0);//do not touch z\n\t\tlistoftransfo.add(ScaleSourcetransfo);\n\t\tfor ( Element transfoElement : transfoElementArrayList )\n\t\t{\n\t\t\tdouble[][] m=new double[4][4];\n\n\n\t\t\tm[0][0] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m00\" , 0 );\n\t\t\tm[0][1] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m01\" , 0 );\n\t\t\tm[0][2] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m02\" , 0 );\t\n\t\t\tm[0][3] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m03\" , 0 );\n\n\t\t\tm[1][0] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m10\" , 0 );\n\t\t\tm[1][1] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m11\" , 0 );\n\t\t\tm[1][2]= XMLUtil.getAttributeDoubleValue( transfoElement, \"m12\" , 0 );\t\n\t\t\tm[1][3] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m13\" , 0 );\n\n\t\t\tm[2][0]= XMLUtil.getAttributeDoubleValue( transfoElement, \"m20\" , 0 );\n\t\t\tm[2][1] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m21\" , 0 );\n\t\t\tm[2][2] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m22\" , 0 );\t\n\t\t\tm[2][3] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m23\" , 0 );\n\n\t\t\tm[3][0] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m30\" , 0 );\n\t\t\tm[3][1] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m31\" , 0 );\n\t\t\tm[3][2] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m32\" , 0 );\t\n\t\t\tm[3][3] = XMLUtil.getAttributeDoubleValue( transfoElement, \"m33\" , 0 );\n\n\n\t\t\tMatrix T=new Matrix(m);\n\t\t\tlistoftransfo.add(T);\n\n\n\t\t}\n\t\tlistoftransfo.add(Scaletargettransfo);\n\t\tMatrix CombinedTransfo=Matrix.identity(4, 4);\n\t\tfor (int i=0;i<listoftransfo.size();i++){\n\t\t\tCombinedTransfo=listoftransfo.get(i).times(CombinedTransfo);\n\t\t}\n\t\t//CombinedTransfo.times(1.0/CombinedTransfo.get(3, 3));\n\t\treturn CombinedTransfo;\n\t}", "public abstract void merge (org.apache.spark.sql.expressions.MutableAggregationBuffer buffer1, org.apache.spark.sql.Row buffer2) ;", "String combine(String pattern1, String pattern2);", "public <R> R transform(Function<AllBuilder3<T1, T2, T3>, R> body) {\n Objects.requireNonNull(body);\n return body.apply(this);\n }", "public RequestMappingInfo combine(RequestMappingInfo other)\n/* */ {\n/* 175 */ String name = combineNames(other);\n/* 176 */ PatternsRequestCondition patterns = this.patternsCondition.combine(other.patternsCondition);\n/* 177 */ RequestMethodsRequestCondition methods = this.methodsCondition.combine(other.methodsCondition);\n/* 178 */ ParamsRequestCondition params = this.paramsCondition.combine(other.paramsCondition);\n/* 179 */ HeadersRequestCondition headers = this.headersCondition.combine(other.headersCondition);\n/* 180 */ ConsumesRequestCondition consumes = this.consumesCondition.combine(other.consumesCondition);\n/* 181 */ ProducesRequestCondition produces = this.producesCondition.combine(other.producesCondition);\n/* 182 */ RequestConditionHolder custom = this.customConditionHolder.combine(other.customConditionHolder);\n/* */ \n/* 184 */ return new RequestMappingInfo(name, patterns, methods, params, headers, consumes, produces, custom\n/* 185 */ .getCondition());\n/* */ }", "public T transform(T item) {\n T result = item;\n for (SimpleTransformation<T> transformation : transformations) {\n result = transformation.transform(result);\n }\n\n return result;\n }", "public <S, T> T transform(S source, Class<? extends Rule<S, T>> with);", "@Override\n public UnitConverter concatenate(final UnitConverter converter) {\n ArgumentChecks.ensureNonNull(\"converter\", converter);\n if (equals(converter.inverse())) {\n return IdentityConverter.INSTANCE;\n }\n // Delegate to c1 and c2 because they may provide more intelligent 'concatenate' implementations.\n return c2.concatenate(c1.concatenate(converter));\n }", "public RegexNode ReduceConcatenation()\n\t{\n\t\t// Eliminate empties and concat adjacent strings/chars\n\n\t\tboolean wasLastString;\n\t\tRegexOptions optionsLast;\n\t\tRegexOptions optionsAt;\n\t\tint i;\n\t\tint j;\n\n\t\tif (_children == null)\n\t\t{\n\t\t\treturn new RegexNode(RegexNode.Empty, _options);\n\t\t}\n\n\t\twasLastString = false;\n\t\toptionsLast = RegexOptions.forValue(0);\n\n\t\tfor (i = 0, j = 0; i < _children.size(); i++, j++)\n\t\t{\n\t\t\tRegexNode at;\n\t\t\tRegexNode prev;\n\n\t\t\tat = _children.get(i);\n\n\t\t\tif (j < i)\n\t\t\t{\n\t\t\t\t_children.set(j, at);\n\t\t\t}\n\n\t\t\tif (at._type == RegexNode.Concatenate && ((at._options.getValue() & RegexOptions.RightToLeft.getValue()) == (_options.getValue() & RegexOptions.RightToLeft.getValue())))\n\t\t\t{\n\t\t\t\tfor (int k = 0; k < at._children.size(); k++)\n\t\t\t\t{\n\t\t\t\t\tat._children.get(k)._next = this;\n\t\t\t\t}\n\n\t\t\t\t//_children.InsertRange(i + 1, at._children);\n\t\t\t\t_children.addAll(i + 1 , at._children);\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse if (at._type == RegexNode.Multi || at._type == RegexNode.One)\n\t\t\t{\n\t\t\t\t// Cannot merge strings if L or I options differ\n\t\t\t\toptionsAt = RegexOptions.forValue(at._options.getValue() & (RegexOptions.RightToLeft.getValue() | RegexOptions.IgnoreCase.getValue()));\n\n\t\t\t\tif (!wasLastString || optionsLast != optionsAt)\n\t\t\t\t{\n\t\t\t\t\twasLastString = true;\n\t\t\t\t\toptionsLast = optionsAt;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tprev = _children.get(--j);\n\n\t\t\t\tif (prev._type == RegexNode.One)\n\t\t\t\t{\n\t\t\t\t\tprev._type = RegexNode.Multi;\n\t\t\t\t\tprev._str = String.valueOf(prev._ch);\n\t\t\t\t}\n\n\t\t\t\tif ((optionsAt.getValue() & RegexOptions.RightToLeft.getValue()) == 0)\n\t\t\t\t{\n\t\t\t\t\tif (at._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str += (new Character(at._ch)).toString();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str += at._str;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (at._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str = (new Character(at._ch)).toString() + prev._str;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprev._str = at._str + prev._str;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse if (at._type == RegexNode.Empty)\n\t\t\t{\n\t\t\t\tj--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\twasLastString = false;\n\t\t\t}\n\t\t}\n\n\t\tif (j < i)\n\t\t{\n\t\t\t//_children.removeRange(j, i - j + j);\n\t\t\tArrayExt.removeRange(_children, j, i - j + j);\n\t\t}\n\n\t\treturn StripEnation(RegexNode.Empty);\n\t}", "T merge(T x);", "public interface Transform<INPUT, OUTPUT> {\n\n\tOUTPUT transform(INPUT input);\n\t\n}", "@Override\n protected DataSet<GraphHead> computeNewGraphHeads() {\n return firstCollection.getGraphHeads()\n .union(secondCollection.getGraphHeads())\n .groupBy(new Id<GraphHead>())\n .reduceGroup(new GroupCountEquals<GraphHead>(2));\n }", "public Report combine(Report r) {\r\n \tif(substitution.isCompatible(r.getSubstitutions())) {\r\n \t\tSubstitutions combinedSubs = substitution.union(r.getSubstitutions());\r\n \t\tPropositionSet combinedSupport = new PropositionSet();\r\n \t\ttry {\r\n\t\t\t\tcombinedSupport = support.union(r.getSupport());\r\n\t\t\t} catch (NotAPropositionNodeException |\r\n\t\t\t\t\tNodeNotFoundInNetworkException e1) {\r\n\t\t\t}\r\n\r\n \t\tInferenceTypes resultingType;\r\n \t\tif(inferenceType.equals(InferenceTypes.FORWARD) ||\r\n\t\t\t\t\tr.getInferenceType().equals(InferenceTypes.FORWARD))\r\n\t\t\t\tresultingType = InferenceTypes.FORWARD;\r\n\t\t\telse\r\n\t\t\t\tresultingType = InferenceTypes.BACKWARD;\r\n\r\n \t\treturn new Report(combinedSubs,\r\n\t\t\t\t\tcombinedSupport, sign, resultingType);\r\n \t}\r\n\r\n \treturn null;\r\n }", "public void concatenate(AffineTransform3D Tx) {\r\n\t\tthis.set(MatrixMult(this, Tx));\r\n\t}", "public void setConcatTransforms(boolean flag) {\n concatTransforms = flag;\n }", "public synchronized void transform() {\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n String entity = it.next();\n double wx = entity_to_wxy.get(entity).getX(),\n wy = entity_to_wxy.get(entity).getY();\n int sx, sy;\n entity_to_sxy.put(entity, (sx = wxToSx(wx)) + BundlesDT.DELIM + (sy = wyToSy(wy)));\n entity_to_sx.put(entity, sx); entity_to_sy.put(entity, sy);\n }\n transform_id++;\n }", "public TransformDesign duplicate() {\n TransformLayerPool tNew = new TransformLayerPool();\n \n for (Iterator<TransformLayer> itr = tLayerPool.values().iterator(); itr.hasNext(); ) {\n TransformLayer tLayer = itr.next();\n tNew.add(tLayer.duplicate());\n }\n \n return new TransformDesign(tNew);\n }", "protected Matrix4 computeTransform() {\n return super.computeTransform();\n }", "void merge(T other);", "public Object transform(Object input) {\n return input;\n }", "public String merge (Context context) throws Exception;", "public default <ANOTHER, TARGET> StreamPlus<TARGET> zipWith(Stream<ANOTHER> anotherStream, ZipWithOption option, BiFunction<DATA, ANOTHER, TARGET> combinator) {\n val iteratorA = streamPlus().iterator();\n val iteratorB = IteratorPlus.from(anotherStream.iterator());\n return StreamPlusHelper.doZipWith(option, combinator, iteratorA, iteratorB);\n }", "public static Transform wrap(Transform outer, Transform inner) {\n\t\treturn mult(inverse(outer), mult(inner, outer));\n\t}", "public T plus( T B ) {\n convertType.specify(this, B);\n T A = convertType.convert(this);\n B = convertType.convert(B);\n\n T ret = A.createMatrix(mat.getNumRows(), mat.getNumCols(), A.getType());\n\n A.ops.plus(A.mat, B.mat, ret.mat);\n\n return ret;\n }", "public default <ANOTHER> StreamPlus<Tuple2<DATA, ANOTHER>> zipWith(Stream<ANOTHER> anotherStream) {\n return zipWith(anotherStream, RequireBoth, Tuple2::of);\n }", "default DiscreteDoubleMap2D plus(DiscreteDoubleMap2D other) {\r\n\t\treturn (x, y) -> this.getValueAt(x, y) + other.getValueAt(x, y);\r\n\t}", "private GenericTransformer<Tweet, PoliticalTweet> transformToPoliticalTweet(){\t\r\n\t\treturn tweet -> {\r\n\t\t\tPoliticalTweet polTweet = new PoliticalTweet();\r\n\t\t\tpolTweet.setTweet(tweet);\r\n\t\t\treturn polTweet;\r\n\t\t};\r\n\t}", "public interface Combine<T> {\n\n public T combineWith(T other);\n\n public void mergeFrom(T other);\n\n}", "public FStream merge(List<FStream> intermed) {\n\t\tFStream n = new FStream(null, this, FStream.NodeType.MERGE);\n\t\t\n\t\t_graph.addVertex(n);\n\t\t\n\t\tfor (FStream node : intermed) {\n\t\t\tlink(node, n);\n\t\t}\n\t\t\n\t\treturn n;\n\t}", "public Optional<Mask> combineWith(Mask other) {\r\n\r\n\t\tif (other == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"'null' value passed as mask.\");\r\n\t\t}\r\n\r\n\t\tif (this.values.length != other.values.length) {\r\n\t\t\tthrow new IllegalArgumentException(\"Masks are not the same length\");\r\n\t\t}\r\n\r\n\t\tbyte[] newValues = new byte[this.values.length];\r\n\t\tint differenceCount = 0;\r\n\t\tfor (int i = 0, len = this.values.length; i < len; i++) {\r\n\r\n\t\t\tif (values[i] == 2 && !(other.values[i] == 2)\r\n\t\t\t\t\t|| !(values[i] == 2) && other.values[i] == 2) {\r\n\t\t\t\treturn Optional.empty();\r\n\t\t\t}\r\n\r\n\t\t\tif (values[i] != other.values[i]) {\r\n\t\t\t\tdifferenceCount++;\r\n\t\t\t\tif (differenceCount > 1)\r\n\t\t\t\t\treturn Optional.empty();\r\n\r\n\t\t\t\tnewValues[i] = (byte) 2;\r\n\t\t\t} else\r\n\t\t\t\tnewValues[i] = values[i];\r\n\t\t}\r\n\r\n\t\tSet<Integer> newMintermSet = new TreeSet<>();\r\n\t\tnewMintermSet.addAll(indexes);\r\n\t\tnewMintermSet.addAll(other.indexes);\r\n\t\tMask newMask = new Mask(newValues, newMintermSet,\r\n\t\t\t\tdontCare && other.dontCare);\r\n\r\n\t\tthis.setCombined(true);\r\n\t\tother.setCombined(true);\r\n\r\n\t\treturn Optional.of(newMask);\r\n\t}", "public static Transform mult(Transform t1, Transform t2) {\n\t\treturn transpose(t1.a * t2.a + t1.c * t2.b, t1.a * t2.c + t1.c * t2.d, t1.a * t2.tx + t1.c * t2.ty + t1.tx,\n\t\t\t\t\t\t t1.b * t2.a + t1.d * t2.b, t1.b * t2.c + t1.d * t2.d, t1.b * t2.tx + t1.d * t2.ty + t1.ty);\n\t}", "@Override\n\t\tpublic ImmutableSequentialGraph copy() {\n\t\t\treturn new ComposedGraph( g0, g1.copy() );\n\t\t}", "private void addOutgoingTransform() {\n TransformTableNodeGroupLink outgoingTransform = new TransformTableNodeGroupLink();\n outgoingTransform.setTransformPoint(TransformPoint.LOAD);\n outgoingTransform.setTransformId(\"stress_test_outgoing_transform\");\n outgoingTransform.setSourceTableName(STRESS_TEST_ROW_OUTGOING);\n outgoingTransform.setTargetTableName(STRESS_TEST_ROW_OUTGOING);\n outgoingTransform.setColumnPolicy(ColumnPolicy.IMPLIED);\n outgoingTransform.setNodeGroupLink(engine.getConfigurationService().getNodeGroupLinkFor(SERVER_NODE_GROUP, CLIENT_NODE_GROUP, true));\n\n TransformColumn outgoingInsertCol = new TransformColumn(\"INSERT_SYNC_TIME\", \"INSERT_SYNC_TIME\", false, \"variable\",\n \"system_timestamp\");\n outgoingInsertCol.setTransformId(outgoingTransform.getTransformId());\n outgoingInsertCol.setTransformOrder(1);\n outgoingInsertCol.setIncludeOn(IncludeOnType.ALL);\n outgoingTransform.addTransformColumn(outgoingInsertCol);\n\n engine.getTransformService().saveTransformTable(outgoingTransform, true);\n }", "@Nonnull \r\n\tpublic static <T, U> Observable<U> concat(\r\n\t\t\t@Nonnull final Observable<? extends Observable<? extends T>> sources,\r\n\t\t\t@Nonnull Func2<? super Observable<? extends T>, ? super Integer, ? extends Observable<? extends U>> resultSelector\r\n\t) {\r\n\t\treturn new Concat.FromObservable.IndexedSelector<T, U>(sources, resultSelector);\r\n\t}", "@Nonnull \r\n\tpublic static <T, U> Observable<U> concat(\r\n\t\t\t@Nonnull final Observable<? extends Observable<? extends T>> sources,\r\n\t\t\t@Nonnull Func1<? super Observable<? extends T>, ? extends Observable<? extends U>> resultSelector\r\n\t) {\r\n\t\treturn new Concat.FromObservable.Selector<T, U>(sources, resultSelector);\r\n\t}", "<R> R join(Function<First, R> mapFirst);", "protected static TraceableFloat recombineGenes(TraceableFloat a, TraceableFloat b, float new_a_value){\n\n // of aVal = bVal = newVal, both genes should have 50% impact\n double influence_factor_a = 0.5;\n double influence_factor_b = 0.5;\n\n if(a.getValue() == new_a_value && b.getValue() != new_a_value) //return a if it has 100% influence. Faster and avoids 0.0 impact traceTuples\n return a;\n if(b.getValue() == new_a_value && a.getValue() != new_a_value) //return b if it has 100% influence. Faster and avoids 0.0 impact traceTuples\n return b;\n if(a.getValue() != new_a_value && b.getValue() != new_a_value) { //compute the new values if non of them are equal\n //if you don't cast here, the resulting values are integers and will be roundet!\n influence_factor_a = 1.0 - (double)Math.abs(a.getValue() - new_a_value) / (double)(Math.abs(a.getValue() - new_a_value) + Math.abs(b.getValue() - new_a_value));\n influence_factor_b = 1.0 - (double)Math.abs(b.getValue() - new_a_value) / (double)(Math.abs(a.getValue() - new_a_value) + Math.abs(b.getValue() - new_a_value));\n }\n\n int i = 0; //index for trace vector a\n int j = 0; //index for trace vector b\n\n List<TraceTuple> new_traceVector = new ArrayList<TraceTuple>();\n\n while(true){ //this iterates over the traceVector of this individual\n if(i >= a.getTraceVector().size() && j >= b.getTraceVector().size()) //stop if both vectors are empty\n break;\n else if(i >= a.getTraceVector().size() && !(j >= b.getTraceVector().size())){//append if the a vector is empty and b vector is not.\n int currentBID = b.getTraceVector().get(j).getTraceID();\n double currentBImpact = b.getTraceVector().get(j).getImpact();\n new_traceVector.add(new TraceTuple(currentBID, influence_factor_b * currentBImpact));\n j++;\n }\n else if(!(i >= a.getTraceVector().size()) && j >= b.getTraceVector().size()){//append if the b vector is empty and a vector is not.\n int currentAID = a.getTraceVector().get(i).getTraceID();\n double currentAImpact = a.getTraceVector().get(i).getImpact();\n new_traceVector.add(new TraceTuple(currentAID, influence_factor_a * currentAImpact));\n i++;\n }\n else {//if both arrays are not empty, append the next traceID:\n int currentAID = a.getTraceVector().get(i).getTraceID();\n int currentBID = b.getTraceVector().get(j).getTraceID();\n\n double currentAImpact = a.getTraceVector().get(i).getImpact();\n double currentBImpact = b.getTraceVector().get(j).getImpact();\n\n if (currentAID == currentBID) {//combine the two if equal\n new_traceVector.add(new TraceTuple(currentAID, influence_factor_a * currentAImpact + influence_factor_b * currentBImpact));\n i++;\n j++;\n }\n\n if (currentAID < currentBID) {//add the traceID of a if its smaller than the traceID of b\n new_traceVector.add(new TraceTuple(currentAID, influence_factor_a * currentAImpact));\n i++;\n }\n\n if (currentBID < currentAID) {//add the traceID of b if its smaller than the traceID of a\n new_traceVector.add(new TraceTuple(currentBID, influence_factor_b * currentBImpact));\n j++;\n }\n }\n }\n\n return new TraceableFloat(new_a_value, new_traceVector);\n }", "public Exec mergeWith(Exec toMerge) throws MojoExecutionException {\n super.mergeWith(toMerge);\n if(toMerge.getCommands() != null)\n setCommands(toMerge.getCommands());\n if(toMerge.getCommandSeparator() != null)\n setCommandSeparator(toMerge.getCommandSeparator());\n return this;\n }", "public P merge(final P payload) {\n\t\tfor (final Map<Combination.Key, Combination<P>> row: rows) {\n\t\t\tfor (final Combination<P> combination: row.values()) {\n\t\t\t\tpayload.merge(combination.getPayload());\n\t\t\t}\n\t\t}\n\t\treturn payload;\n\t}", "private int transform(Set<String> wordSet, String beginWord, String endWord) {\n int minTransforms = Integer.MAX_VALUE - 1;\n\n if (wordSet.isEmpty()) {\n return minTransforms;\n }\n\n wordSet.remove(beginWord); // we do not want to re-use this word - else will run into cycles\n\n if (beginWord.equals(endWord)) {\n return 0;\n }\n\n Set<String> validTransforms = findValidTransforms(wordSet, beginWord);\n\n // instead of having 2 options, here we have multiple options\n // we need to minimize on these multiple options\n for(String newBeginWord : validTransforms) {\n\n int newTransforms = 1 + transform(wordSet, newBeginWord, endWord);\n\n // minTransforms = Math.min(minTransforms, newTransforms);\n if (newTransforms < minTransforms) {\n minTransforms = newTransforms;\n System.out.print(\"(\" + (newTransforms) + \") \" + newBeginWord + \"* <- \");\n }\n }\n\n return minTransforms;\n }", "public LatentImage transform(ColorTransformer t) {\n\t\tpendingOperations.add(t);\n\t\treturn this;\n\t}", "public Builder mergeImageByTransform(com.yahoo.xpathproto.TransformTestProtos.ContentImage value) {\n if (imageByTransformBuilder_ == null) {\n if (((bitField0_ & 0x00001000) == 0x00001000) &&\n imageByTransform_ != com.yahoo.xpathproto.TransformTestProtos.ContentImage.getDefaultInstance()) {\n imageByTransform_ =\n com.yahoo.xpathproto.TransformTestProtos.ContentImage.newBuilder(imageByTransform_).mergeFrom(value).buildPartial();\n } else {\n imageByTransform_ = value;\n }\n onChanged();\n } else {\n imageByTransformBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00001000;\n return this;\n }", "@Nonnull\r\n\tpublic static <T> Observable<T> concat(\r\n\t\t\t@Nonnull Observable<? extends T> first,\r\n\t\t\t@Nonnull Observable<? extends T> second) {\r\n\t\tList<Observable<? extends T>> list = new ArrayList<Observable<? extends T>>();\r\n\t\tlist.add(first);\r\n\t\tlist.add(second);\r\n\t\treturn concat(list);\r\n\t}", "public static <T extends Vector> T Add(T a, T b,T result){\n if(Match(a,b)) {\n for (int i = 0; i < result.axis.length; i++) {\n result.axis[i] = a.axis[i] + b.axis[i];\n }\n return result;\n }\n return result;\n }", "public T merge ( T object );", "public void mergeResults(DefaultResults other) {\n for (int i=0; i<other.iterations; i++) {\n addCycle(\n (Long)other.maximalCc.get(i),\n (Long)other.totalCc.get(i),\n (Long)other.maximalBytes.get(i),\n (Long)other.totalBytes.get(i),\n (Long)other.maximalMemory.get(i)\n );\n }\n }", "public <R> R transform(Function<? super Builder<?>, ? extends R> f) {\n return f.apply(this);\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 GridCollector merge(GridCollector other) {\n\t\t// cell-wise merge\n\t\tIntStream.range(0, cells.size())\n\t\t .forEach(i -> cells.get(i).addAll(other.cells.get(i)));\n\t\treturn this;\n\t}", "public static Transformer cloneTransformer() {\n return CLONE_TRANSFORMER;\n }", "public RegexNode ReduceAlternation()\n\t{\n\t\t// Combine adjacent sets/chars\n\n\t\tboolean wasLastSet;\n\t\tboolean lastNodeCannotMerge;\n\t\tRegexOptions optionsLast;\n\t\tRegexOptions optionsAt;\n\t\tint i;\n\t\tint j;\n\t\tRegexNode at;\n\t\tRegexNode prev;\n\n\t\tif (_children == null)\n\t\t{\n\t\t\treturn new RegexNode(RegexNode.Nothing, _options);\n\t\t}\n\n\t\twasLastSet = false;\n\t\tlastNodeCannotMerge = false;\n\t\toptionsLast = RegexOptions.forValue(0);\n\n\t\tfor (i = 0, j = 0; i < _children.size(); i++, j++)\n\t\t{\n\t\t\tat = _children.get(i);\n\n\t\t\tif (j < i)\n\t\t\t{\n\t\t\t\t_children.set(j, at);\n\t\t\t}\n\n\t\t\tfor (;;)\n\t\t\t{\n\t\t\t\tif (at._type == Alternate)\n\t\t\t\t{\n\t\t\t\t\tfor (int k = 0; k < at._children.size(); k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tat._children.get(k)._next = this;\n\t\t\t\t\t}\n\n\t\t\t\t\t//_children.InsertRange(i + 1, at._children);\n\t\t\t\t\t_children.addAll(i + 1, at._children);\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\telse if (at._type == Set || at._type == One)\n\t\t\t\t{\n\t\t\t\t\t// Cannot merge sets if L or I options differ, or if either are negated.\n\t\t\t\t\toptionsAt = RegexOptions.forValue(at._options.getValue() & (RegexOptions.RightToLeft.getValue() | RegexOptions.IgnoreCase.getValue()));\n\n\n\t\t\t\t\tif (at._type == Set)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!wasLastSet || optionsLast != optionsAt || lastNodeCannotMerge || !RegexCharClass.IsMergeable(at._str))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twasLastSet = true;\n\t\t\t\t\t\t\tlastNodeCannotMerge = !RegexCharClass.IsMergeable(at._str);\n\t\t\t\t\t\t\toptionsLast = optionsAt;\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\telse if (!wasLastSet || optionsLast != optionsAt || lastNodeCannotMerge)\n\t\t\t\t\t{\n\t\t\t\t\t\twasLastSet = true;\n\t\t\t\t\t\tlastNodeCannotMerge = false;\n\t\t\t\t\t\toptionsLast = optionsAt;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\n\n\t\t\t\t\t// The last node was a Set or a One, we're a Set or One and our options are the same.\n\t\t\t\t\t// Merge the two nodes.\n\t\t\t\t\tj--;\n\t\t\t\t\tprev = _children.get(j);\n\n\t\t\t\t\tRegexCharClass prevCharClass;\n\t\t\t\t\tif (prev._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprevCharClass = new RegexCharClass();\n\t\t\t\t\t\tprevCharClass.AddChar(prev._ch);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprevCharClass = RegexCharClass.Parse(prev._str);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (at._type == RegexNode.One)\n\t\t\t\t\t{\n\t\t\t\t\t\tprevCharClass.AddChar(at._ch);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tRegexCharClass atCharClass = RegexCharClass.Parse(at._str);\n\t\t\t\t\t\tprevCharClass.AddCharClass(atCharClass);\n\t\t\t\t\t}\n\n\t\t\t\t\tprev._type = RegexNode.Set;\n\t\t\t\t\tprev._str = prevCharClass.ToStringClass();\n\n\t\t\t\t}\n\t\t\t\telse if (at._type == RegexNode.Nothing)\n\t\t\t\t{\n\t\t\t\t\tj--;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\twasLastSet = false;\n\t\t\t\t\tlastNodeCannotMerge = false;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (j < i)\n\t\t{\n\t\t\t//_children.removeRange(j, i - j + j);\n\t\t\tArrayExt.removeRange(_children, j, i - j + j);\n\t\t}\n\n\t\treturn StripEnation(RegexNode.Nothing);\n\t}", "public Transform apply(Transform transform) {\n\n setPosition(transform.getTransformedPosition());\n setRotation(transform.getTransformedRotation());\n setScale(transform.getScale());\n\n return this;\n }" ]
[ "0.6331596", "0.6147592", "0.5760125", "0.5572666", "0.5475338", "0.5416517", "0.536545", "0.53519744", "0.5337426", "0.5271406", "0.5243893", "0.52284807", "0.5222999", "0.5217783", "0.5202247", "0.5130237", "0.5125593", "0.5119421", "0.51119196", "0.5082457", "0.50791276", "0.5061105", "0.5038264", "0.5018461", "0.5017568", "0.49821582", "0.49543527", "0.49503732", "0.49488002", "0.49359933", "0.49122658", "0.49090835", "0.49076873", "0.49046403", "0.49020892", "0.48920205", "0.48872986", "0.4880583", "0.4878976", "0.48771927", "0.48683727", "0.48517144", "0.484763", "0.483214", "0.48293614", "0.4824972", "0.48187193", "0.48184967", "0.48029864", "0.47777933", "0.47771943", "0.47731978", "0.476803", "0.4755959", "0.47364017", "0.4735973", "0.47298625", "0.47294334", "0.47092822", "0.47043118", "0.47026432", "0.4700943", "0.46951267", "0.46935573", "0.46875858", "0.46753168", "0.466749", "0.4664131", "0.46502048", "0.46335196", "0.4628259", "0.46254066", "0.46227503", "0.46102428", "0.46084508", "0.4607405", "0.46020368", "0.45996776", "0.45968658", "0.4593288", "0.45913604", "0.4585175", "0.45814317", "0.4580718", "0.45804983", "0.45708212", "0.45666844", "0.45646298", "0.45586845", "0.45413274", "0.45399714", "0.45360368", "0.45327738", "0.45254028", "0.4521824", "0.45211", "0.45145363", "0.45136222", "0.45112312", "0.4507995" ]
0.47891435
49
Applies transformation to a point, returns resulting point
public Point mult(Point a) { Point result = new Point(); super.mult(a, result); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Point transform(double x, double y, double z) {\n\t\t\n\t\n\t\tdouble uIso = (x * xToU) + (y * yToU) + (z * zToU);\n\t\tdouble vIso = (x * xToV) + (y * yToV) + (z * zToV);\n\t\t\n\t\tint uDraw = xOffset + (int)(scale * uIso);\n\t\tint vDraw = yOffset + (int)(scale * vIso);\n\t\t\n\t\treturn new Point(uDraw, vDraw);\n\t}", "public Point transform(Point vector) {\n double _00 = this.matrix[0][0];\n double _01 = this.matrix[0][1];\n double _02 = this.matrix[0][2];\n double _03 = this.matrix[0][3];\n double _10 = this.matrix[1][0];\n double _11 = this.matrix[1][1];\n double _12 = this.matrix[1][2];\n double _13 = this.matrix[1][3];\n double _20 = this.matrix[2][0];\n double _21 = this.matrix[2][1];\n double _22 = this.matrix[2][2];\n double _23 = this.matrix[2][3];\n double _30 = this.matrix[3][0];\n double _31 = this.matrix[3][1];\n double _32 = this.matrix[3][2];\n double _33 = this.matrix[3][3];\n\n double x = vector.x * _00 + vector.y * _10 + vector.z * _20 + vector.w * _30;\n double y = vector.x * _01 + vector.y * _11 + vector.z * _21 + vector.w * _31;\n double z = vector.x * _02 + vector.y * _12 + vector.z * _22 + vector.w * _32;\n double h = vector.x * _03 + vector.y * _13 + vector.z * _23 + vector.w * _33;\n\n return new Point(x, y, z, h);\n }", "@Override\t\t\t\n\tpublic final myPointf transformPoint(myPointf A, int transformIDX, float t) {\treturn trans[transformIDX].transformPoint(A, t);}", "@NonNull\n @Override\n public PointF transformMeteringPoint(@NonNull PointF point) {\n PointF scaled = new PointF();\n scaled.x = -1000F + (point.x / previewSize.getWidth()) * 2000F;\n scaled.y = -1000F + (point.y / previewSize.getHeight()) * 2000F;\n\n // Apply rotation to this point.\n // https://academo.org/demos/rotation-about-point/\n PointF rotated = new PointF();\n double theta = ((double) displayToSensor) * Math.PI / 180;\n rotated.x = (float) (scaled.x * Math.cos(theta) - scaled.y * Math.sin(theta));\n rotated.y = (float) (scaled.x * Math.sin(theta) + scaled.y * Math.cos(theta));\n LOG.i(\"scaled:\", scaled, \"rotated:\", rotated);\n return rotated;\n }", "public static Vector2f transformPoint(Transform t, Vector2f p) {\n\t\treturn t.transformPoint(p);\n\t}", "public java.awt.geom.Point2D.Double transformedPoint(double x, double y)\n {\n double[] position = {x,y}; \n getGraphicsState().getCurrentTransformationMatrix().createAffineTransform().transform(position, 0, position, 0, 1);\n position[1] = fixY(position[1]);\n\n\t_pageAffineTransform.transform(position,0, position, 0, 1);\n return new Point2D.Double(position[0],position[1]);\n }", "private static Point3d transformPoint(Matrix4d transformMat, Point3d originalPoint) {\n Point3d tempPoint = new Point3d();\n transformMat.transform(new Point3d(originalPoint.getX(), originalPoint.getY(), originalPoint.getZ()), tempPoint);\n return tempPoint;\n }", "public Point applyToPoint(Point p) {\n double newX, newY;\n Point newP;\n //the new x\n newX = p.getX() + this.dx;\n //the new y\n newY = p.getY() + this.dy;\n //the new point\n newP = new Point((newX), (newY));\n return newP;\n }", "private Point transform(Point pt1) {\n Point pt2 = new Point(0,0) ;\n pt2.x = pos.x + new Double(pt1.x*Math.cos(heading)+pt1.y*Math.sin(heading)).intValue() ;\n pt2.y = pos.y + new Double(-pt1.x*Math.sin(heading)+pt1.y*Math.cos(heading)).intValue() ;\n return pt2 ;\n }", "public static Point mapPoint(Point point) {\n\t\treturn point;\n\t}", "public Point applyToPoint(Point p) {\n return new Point(this.dx + p.getX(), this.dy + p.getY());\n }", "public Point applyToPoint(Point p) {\r\n return new Point(p.getX() + this.dx, p.getY() + this.dy);\r\n }", "protected IPoint scalePointIntoCoordinates(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() / getPixelsPerX();\n\t\tdouble newY = point.getY() / getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}", "public Point applyToPoint(Point p) {\n double newX = p.getX() + this.dx;\n double newY = p.getY() + this.dy;\n return new Point(newX, newY);\n }", "public Point applyToPoint(Point p) {\r\n double newX = p.getX() + this.dx;\r\n double newY = p.getY() + this.dy;\r\n Point newP = new Point(newX, newY);\r\n return newP;\r\n }", "public Point2D translatePoint( Figure f, Point2D p, Point2D dir);", "public Point applyToPoint(Point p) {\n Point newP;\n double x = p.getX() + this.dxVelocity;\n double y = p.getY() + this.dyVelocity;\n newP = new Point(x, y);\n return newP;\n }", "public Point apply(Point point)\n {\n assert(_index >= 0);\n assert(_index < _pattern.length);\n\n point.move(_pattern[_index]);\n\n return point;\n }", "public Point transform(int x, int y) {\n\t\tdouble pixelWidth = this.plainWidth / this.resolutionX;\n\n\t\tdouble rightFactor = pixelWidth * (x - (this.resolutionX / 2.0));\n\t\tdouble upFactor = pixelWidth * ((this.resolutionY / 2.0) - y);\n\n\t\treturn plainCenterPoint\n\t\t\t\t.add(upVec.mult(upFactor))\n\t\t\t\t.add(rightVec.mult(rightFactor));\n\t}", "private Point2D.Float transformPoint(Point2D p1) throws NoninvertibleTransformException {\n Point2D.Float p2 = new Point2D.Float();\n transform.inverseTransform(p1, p2); // create a destination p2 from the Point p1\n return p2;\n }", "public final Shape translate(Vector fromPoint, Vector toPoint) {\n\t\treturn transform(new Translation(fromPoint, toPoint));\n\t}", "public Point convertPointCoordinate(Point point)\n\t{\n\t\tpoint.y = this.getHeight() - point.y;\n\t\treturn point;\n\t}", "@NonNull\n @Override\n public PointF transformMeteringPoint(@NonNull PointF point) {\n final PointF referencePoint = new PointF(point.x, point.y);\n Size referenceSize = previewSize;\n\n // 1. Account for cropping.\n // This will enlarge the preview size so that aspect ratio matches.\n referenceSize = applyPreviewCropping(referenceSize, referencePoint);\n\n // 2. Scale to the preview stream coordinates.\n // This will move to the preview stream coordinates by scaling.\n referenceSize = applyPreviewScale(referenceSize, referencePoint);\n\n // 3. Rotate to the stream coordinate system.\n // This leaves us with sensor stream coordinates.\n referenceSize = applyPreviewToSensorRotation(referenceSize, referencePoint);\n\n // 4. Move to the crop region coordinate system.\n // The crop region is the union of all currently active streams.\n referenceSize = applyCropRegionCoordinates(referenceSize, referencePoint);\n\n // 5. Move to the active array coordinate system.\n referenceSize = applyActiveArrayCoordinates(referenceSize, referencePoint);\n LOG.i(\"input:\", point, \"output (before clipping):\", referencePoint);\n\n // 6. Probably not needed, but make sure we clip.\n if (referencePoint.x < 0) referencePoint.x = 0;\n if (referencePoint.y < 0) referencePoint.y = 0;\n if (referencePoint.x > referenceSize.getWidth()) referencePoint.x = referenceSize.getWidth();\n if (referencePoint.y > referenceSize.getHeight()) referencePoint.y = referenceSize.getHeight();\n LOG.i(\"input:\", point, \"output (after clipping):\", referencePoint);\n return referencePoint;\n }", "public void transform(float a11, float a12, float a21, float a22, float x, float y);", "@Override\r\n\tprotected AffineTransform getPointTransformation() {\n\t\treturn null;\r\n\t}", "void turnToPoint(float x, float y) {\n _rotVector.set(x - _x, y - _y, 0);\n _rotVector.setMag(1);\n }", "@Override\r\n\tpublic Point2D.Double transform(Point2D.Double p) {\r\n\t\tRealVector s = new ArrayRealVector(new double[] { p.x, p.y, 1 }, false);\r\n\t\tRealVector t = H.operate(s);\r\n\t\tp.x = t.getEntry(0) / t.getEntry(2);\r\n\t\tp.y = t.getEntry(1) / t.getEntry(2);\r\n\t\treturn p;\r\n\t}", "public Tuple3d getClosestPoint(final Tuple3d point) {\n // A' = A - (A . n) * n\n final Vector3d aprime = new Vector3d(point);\n final double adotn = TupleMath.dot(point, this.normal);\n final Vector3d scaledNormal = new Vector3d(this.normal);\n scaledNormal.scale(adotn);\n aprime.subtract(scaledNormal);\n\n return aprime;\n }", "public Tuple2d getProjectedPoint(final Tuple3d point) {\n return new Tuple2d(TupleMath.dot(point, this.projectionX), TupleMath.dot(point, this.projectionY));\n }", "public Point2D.Double toOriginal(Point2D point){\n return new Point2D.Double(\n (point.getX() - offsetX) / scale,\n (point.getY() - offsetY) / scale);\n }", "public Point applyToPoint(Point p, double dt) {\r\n p.setX(p.getX() + dt * this.dx);\r\n p.setY(p.getY() + dt * this.dy);\r\n return p;\r\n }", "public Point2D.Double detransform (Point2D.Double point) {\n Point2D.Double detransformedPoint = new Point2D.Double ();\n inverse.transform (point, detransformedPoint);\n return detransformedPoint;\n }", "public void translate(Point p){\n a.translate(p);\n b.translate(p);\n c.translate(p);\n }", "protected IPoint scalePointIntoPixels(IPoint point) {\n\t\t\n\t\tdouble newX = point.getX() * getPixelsPerX();\n\t\tdouble newY = point.getY() * getPixelsPerY();\n\t\treturn new Point(newX, newY, point.getTime());\n\t}", "public PointData translate(PointData data) {\n return data;\n }", "public Point2D.Double fromOriginal(Point2D point){\n return new Point2D.Double(\n point.getX() * scale + offsetX,\n point.getY() * scale + offsetY);\n }", "private ECPoint convertECPoint(java.security.spec.ECPoint point) {\n return domainParams.getCurve().createPoint(point.getAffineX(), point.getAffineY());\n }", "public Point2D userToDeviceSpace(\n Point2D point\n )\n {return ctm.transform(point, null);}", "int apply(int x, int y, int origin);", "public void setTransform(float a11, float a12, float a21, float a22, float x, float y);", "public Point project() {\n Point tempPoint = new Point();\n double newAngle = movement.project(angle);\n tempPoint.x = (int)(length * Math.sin(newAngle));\n tempPoint.y = (int)(length * Math.cos(newAngle));\n return tempPoint;\n }", "private Point toInnerPoint(Point punto){\r\n \treturn punto.add(-coord.X(), -coord.Y());\r\n// return new Point(punto.getRow() - coord.getRow(), punto.getCol() - coord.getCol());\r\n }", "public RMPoint convertPointFromShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(-getX(), -getY()); return point; }\n return getTransformFromShape(shape).transform(point);\n}", "public RMPoint convertPointToShape(RMPoint point, RMShape shape)\n{\n if(shape==_parent && !isRSS()) { point.offset(getX(), getY()); return point; }\n return getTransformToShape(shape).transform(point);\n}", "public final Shape getTranslated(Vector fromPoint, Vector toPoint) {\n\t\treturn getCopy().translate(fromPoint, toPoint);\n\t}", "public RMPoint convertedPointToShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointToShape(new RMPoint(aPoint), aShape);\n}", "public Vector3f getPoint(float t) {\r\n\t\tVector3f point = new Vector3f();\r\n\t\tpoint.scaleAdd(t, mDirection, mOrigin);\r\n\t\treturn point;\r\n\t}", "public void translate(float x, float y);", "private Point translatePoint(Point start, double angle, double distance) {\n\t\tif (distance==0)\n\t\t\treturn start;\n\t\tangle = angle*0.0174532778; //Convert to radians = pi/180\n\t\tPoint p = new Point(start.x+distance*Math.sin(angle), start.y-distance*Math.cos(angle) );\n\t\treturn p;\n\t}", "public Point translate(int x, int y) {\n return new Point(\n this.x + x,\n this.y + y\n );\n }", "public void translate(int x, int y);", "static PointDouble translate(PointDouble p, Vec v) {\n return new PointDouble(p.x + v.x , p.y + v.y);\n }", "@Override\r\n\t\tpublic void translate(Point3D vec) {\r\n\t\t\t// TODO Auto-generated method stub \r\n\t\t\tMyCoords mc= new MyCoords();\r\n\t\t\tPoint3D p=new Point3D(vec);\r\n\t\t\tPoint3D newPoint=mc.add(p, vec);\r\n\t\t\tthis.point=newPoint;\r\n\t\t}", "public Point toOuterPoint(Point punto){\r\n \treturn punto.add(coord);\r\n// return new Point(punto.getRow() + coord.getRow(), punto.getCol() + coord.getCol());\r\n }", "@SuppressWarnings(\"unchecked\")\n public AnimatorType position(PointF point)\n {\n addTransformer(new PositionTransformer(getShape(), point));\n return (AnimatorType) this;\n }", "Transform<A, B> getTransform();", "abstract void translate(double x, double y, double z);", "@Override\n public double getScale(LatLonPoint point) {\n return 1 / Math.cos(Math.toRadians(point.getLat()));\n }", "private void addTransformPoint(double x, double y, int index, GraphicObject curr, double radiansAngle) {\n /** If the object is rotated, the transform point also has to be rotated.\n * Here we calculate the new coordinates acording to the rotation angle. */\n if(radiansAngle != 0.0) {\n GeoVector vect = new GeoVector(x, y, curr.getCenterX(), curr.getCenterY());\n vect.rotate(radiansAngle);\n vect.addPoint(curr.getCenterX(), curr.getCenterY());\n x = vect.getX();\n y = vect.getY();\n }\n /** If it's the rotation point, then it creates a green circle */\n if(index==0) {\n Circle aux = new Circle(2);\n aux.setFillColor(Color.GREEN);\n aux.setStroke(Color.GRAY, 1);\n\n this.transformPoints.add(aux);\n\t\t this.transformPointers[index] = aux;\n\t\t aux.translate((int)x, (int)y);\n /** Otherwise it just creates a normal white rectangle */\n } else {\n Rect aux = new Rect(4,4);\n aux.setFillColor(Color.WHITE);\n aux.setStroke(Color.GRAY, 1);\n\n this.transformPoints.add(aux);\n\t\t this.transformPointers[index] = aux;\n\t\t aux.translate((int)x-2, (int)y-2);\n }\n\t}", "private static void transformPoint(Point3D position, Point3D srcOrigin, int angle, Point3D destOrigin)\n \t{\n \t\t\n \t\tint tx = position.getX() - srcOrigin.getX();\n \t\tint ty = position.getY() - srcOrigin.getY();\n \t\tint tz = position.getZ() - srcOrigin.getZ();\n \t\t\n \t\t//\"int angle\" specifies a rotation consistent with Minecraft's orientation system.\n \t\t//That means each increment of 1 in angle would be a 90-degree clockwise turn.\n \t\t//Given a starting direction A and a destination direction B, the rotation would be\n \t\t//calculated by (B - A).\n \n \t\t//Adjust angle into the expected range\n \t\tif (angle < 0)\n \t\t{\n \t\t\tint correction = -(angle / 4);\n \t\t\tangle = angle + 4 * (correction + 1);\n \t\t}\n \t\tangle = angle % 4;\n \t\t\n \t\tint rx;\n \t\tint rz;\n \t\tswitch (angle)\n \t\t{\n \t\t\tcase 0: //No rotation\n \t\t\t\trx = tx;\n \t\t\t\trz = tz;\n \t\t\t\tbreak;\n \t\t\tcase 1: //90 degrees clockwise\n \t\t\t\trx = -tz;\n \t\t\t\trz = tx;\n \t\t\t\tbreak;\n \t\t\tcase 2: //180 degrees\n \t\t\t\trx = -tx;\n \t\t\t\trz = -tz;\n \t\t\t\tbreak;\n \t\t\tcase 3: //270 degrees clockwise\n \t\t\t\trx = tz;\n \t\t\t\trz = -tx;\n \t\t\t\t\n \t\t\t\tbreak;\n \t\t\tdefault: //This should never happen\n \t\t\t\tthrow new IllegalStateException(\"Invalid angle value. This should never happen!\");\n \t\t}\n \t\t\n \t\tposition.setX( rx + destOrigin.getX() );\n \t\tposition.setY( ty + destOrigin.getY() );\n \t\tposition.setZ( rz + destOrigin.getZ() );\n \t}", "public PVector getTransformedPosition(){\n\t\treturn gui.getTransform().transform(position);\n\t}", "private double transform(Point_dt range, double x, Point_dt new_range) {\n\t\tdouble dx1 = range.y() - range.x();\n\t\tdouble dx2 = new_range.y() - new_range.x();\n\n\t\tdouble scale = (x - range.x()) / dx1;\n\t\tdouble ans = new_range.x() + dx2 * scale;\n\t\treturn ans;\n\t}", "Point rotate (double angle, Point result);", "public static ECPoint compressPoint(ECPoint point) {\n return getPointWithCompression(point, true);\n }", "public RMPoint convertedPointFromShape(RMPoint aPoint, RMShape aShape)\n{\n return convertPointFromShape(new RMPoint(aPoint), aShape);\n}", "public void apply(Position p);", "public void moveToPoint(double x, double y, double z);", "public void translate(double x, double y, double z){\n \n \tMatrix trans = new Matrix();\n \ttrans.identity();\n \ttrans.set(1,4,x);\n \ttrans.set(2,4,y);\n \ttrans.set(3,4,x);\n \tthis.leftMultiply(trans);\n\n /* this doesn't work yet\n this.temp.identity();\n temp.set(1,4,x);\n temp.set(2,4,y);\n temp.set(3,4,x);\n this.leftMultiply(temp); */\n }", "public Vector3D transform(Vector3D vector) {\n\t\tdouble x = vector.x;\n\t\tdouble y = vector.y;\n\t\tdouble z = vector.z;\n\t\t\n\t\treturn new Vector3D(a11*x + a12*y + a13*z + a14, \n\t\t\t\t\t\t a21*x + a22*y + a23*z + a24,\n\t\t\t\t\t\t a31*x + a32*y + a33*z + a34);\n\t}", "static PointDouble reflectionPoint(Line l, PointDouble p) {\n PointDouble b = projection(l, p); // get projection b, of p onto l\n Vec v = vector(p, b); // create a vector v = vector(pb)\n return translate(translate(p, v), v); // return p translated twice by v\n }", "void getPosRelPoint(double px, double py, double pz, DVector3 result);", "public void crossInto(final WB_Point3d p, final WB_Normal3d result) {\r\n\t\tresult.x = y * p.z - z * p.y;\r\n\t\tresult.y = z * p.x - x * p.z;\r\n\t\tresult.z = x * p.y - y * p.x;\r\n\t}", "static void setViewPointRelevantTo(Point point) {\n point.translate(-1 * viewPoint.x, -1 * viewPoint.y);\n point.x /= Map.zoom;\n point.y /= Map.zoom;\n point.translate(viewPoint.x, viewPoint.y);\n viewPoint.setLocation(point.x - GAME_WIDTH / 2, point.y - GAME_HEIGHT / 2);\n verifyViewPoint();\n }", "public final void setToPoint(Vector toPoint) {\n\t\ttransform.setToPoint(toPoint);\n\t}", "public void moveTo(Point point){\n updateUndoBuffers(new LinkedList<>());\n xPos = point.getMyX()+myGrid.getWidth()/ HALF;\n yPos = myGrid.getHeight()/ HALF-point.getMyY();\n }", "private static Vector2f transform(Rect2f srcRc, Rect2f dstRc, BaseVector2f pt) {\n\n // TODO: move this to a better place\n\n float x = (pt.getX() - srcRc.minX()) / srcRc.width();\n float y = (pt.getY() - srcRc.minY()) / srcRc.height();\n\n x = dstRc.minX() + x * dstRc.width();\n y = dstRc.minY() + y * dstRc.height();\n\n return new Vector2f(x, y);\n }", "void pointScaleFree() {\n\t\t// offsetP = PVector.sub(P, beginOffsetP); // get the offset (because\n\t\t// mouse isnt' exatly at the pressed point, there a little offset)\n\t\toffset = PVector.sub(P, beginOffset); // calculate the offset made by\n\t\t\t\t\t\t\t\t\t\t\t\t// mouseDrag -- subtract\n\t\t\t\t\t\t\t\t\t\t\t\t// beginOffset from P\n\t\toffsetP = PVector.add(beginOffsetP, offset); // reposition point A based\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the offset made\n\n\t\tleftOppositeLine.detectX(offsetP); // update X (dot product magic)\n\t\t\t\t\t\t\t\t\t\t\t// constantly\n\t\trightOppositeLine.detectX(offsetP); // update X (dot product magic)\n\t\t\t\t\t\t\t\t\t\t\t// constantly\n\n\t\tfloat scaleFactorRight, scaleFactorLeft;\n\t\tscaleFactorRight = rightOppositeLine.X.dist(offsetP) / rightOppositeLine.beginX.dist(beginOffsetP);\n\t\tscaleFactorLeft = leftOppositeLine.X.dist(offsetP) / leftOppositeLine.beginX.dist(beginOffsetP);\n\n\t\t// needs exaplainin drawing\n\t\tPVector tmpR = new PVector();\n\t\tPVector tmpL = new PVector();\n\n\t\tif (rightOppositeLine.isOnThisSideOfLine == rightOppositeLine.checkLineSide(offsetP)) {\n\t\t\tif (leftOppositeLine.isOnThisSideOfLine == leftOppositeLine.checkLineSide(offsetP)) {\n\t\t\t\ttmpR = PVector.sub(rightOppositeLine.beginStart, rightOppositeLine.beginEnd);\n\t\t\t\ttmpL = PVector.sub(leftOppositeLine.beginStart, leftOppositeLine.beginEnd);\n\t\t\t} else {\n\t\t\t\ttmpR = PVector.sub(rightOppositeLine.beginEnd, rightOppositeLine.beginStart);\n\t\t\t\ttmpL = PVector.sub(leftOppositeLine.beginStart, leftOppositeLine.beginEnd);\n\t\t\t}\n\t\t} else {\n\t\t\tif (leftOppositeLine.isOnThisSideOfLine == leftOppositeLine.checkLineSide(offsetP)) {\n\t\t\t\ttmpR = PVector.sub(rightOppositeLine.beginStart, rightOppositeLine.beginEnd);\n\t\t\t\ttmpL = PVector.sub(leftOppositeLine.beginEnd, leftOppositeLine.beginStart);\n\t\t\t} else {\n\t\t\t\ttmpR = PVector.sub(rightOppositeLine.beginEnd, rightOppositeLine.beginStart);\n\t\t\t\ttmpL = PVector.sub(leftOppositeLine.beginEnd, leftOppositeLine.beginStart);\n\t\t\t}\n\t\t}\n\n\t\t// needs exaplainin drawing\n\n\t\ttmpL.mult(scaleFactorRight);\n\t\ttmpL.add(leftOppositeLine.end);\n\n\t\ttmpR.mult(scaleFactorLeft);\n\t\ttmpR.add(rightOppositeLine.end);\n\n\t\t// set left neigbor point\n\t\tpoint[neighbor(selectedPoint)[0]].position.set(tmpL);\n\n\t\t// set right neighbor point\n\t\tpoint[neighbor(selectedPoint)[1]].position.set(tmpR);\n\t\tpoint[selectedPoint].position.set(offsetP);\n\t\tselectedLine = -1; // disable line focus\n\t\tupdateGlobalLines();\n\t}", "private Point2D mapMouseEvent(MouseEvent mouseEvent) {\n AffineTransform tr = createTransform();\n try {\n tr.invert();\n } catch (NoninvertibleTransformException e) {\n throw new RuntimeException(e);\n }\n Point point = mouseEvent.getPoint();\n return tr.transform(point, null);\n }", "public Point(Point point) {\n this.x = point.x;\n this.y = point.y;\n }", "public abstract Shape transform(Transformation t);", "public T setPoint(@NonNull PointF point) {\n return setPoint(point.x, point.y);\n }", "Point mult (double s, Point result);", "protected Point PTtoXY(double pressure, double temperature) {\n Coordinate xy = world.map(WxMath.getSkewTXY(pressure, temperature));\n\n return new Point((int) Math.round(xy.x), (int) Math.round(xy.y));\n }", "public static Point getnewRotatedPoint(Point point, Point center, float rotation)\n\t{\n double rot = Math.toRadians(rotation);\n \n double newX = center.x + (point.x-center.x)*Math.cos(rot) - (point.y-center.y)*Math.sin(rot);\n\n double newY = center.y + (point.x-center.x)*Math.sin(rot) + (point.y-center.y)*Math.cos(rot);\n\n return new Point((int)newX,(int) newY);\n\t}", "public void translate( float x, float y )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.set( new Vector3f( x, y, 0 ) );\n\t\tmat.mul( opMat );\n\t}", "public void setTransform(Transform transform);", "public Point evaluate(double x, double y, double z) {\n\t\t// x=(-(yn(y-y0)+zn(z-z0))+xn*x0)/xn\n\t\tif (x != x) {\n\t\t\tx = (-(normal.y * (y - origin.y) + normal.z * (z - origin.z)) + normal.x\n\t\t\t\t\t* origin.x)\n\t\t\t\t\t/ normal.x;\n\t\t\treturn new Point(x, y, z);\n\t\t} else if (y != y) {\n\t\t\ty = (-(normal.x * (x - origin.x) + normal.z * (z - origin.z)) + normal.y\n\t\t\t\t\t* origin.y)\n\t\t\t\t\t/ normal.y;\n\t\t\treturn new Point(x, y, z);\n\t\t} else if (z != z) {\n\t\t\tz = (-(normal.y * (y - origin.y) + normal.x * (x - origin.x)) + normal.z\n\t\t\t\t\t* origin.z)\n\t\t\t\t\t/ normal.z;\n\t\t\treturn new Point(x, y, z);\n\t\t}\n\t\treturn null;\n\t}", "public Transform apply(Transform transform) {\n\n setPosition(transform.getTransformedPosition());\n setRotation(transform.getTransformedRotation());\n setScale(transform.getScale());\n\n return this;\n }", "public synchronized void transform() {\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n String entity = it.next();\n double wx = entity_to_wxy.get(entity).getX(),\n wy = entity_to_wxy.get(entity).getY();\n int sx, sy;\n entity_to_sxy.put(entity, (sx = wxToSx(wx)) + BundlesDT.DELIM + (sy = wyToSy(wy)));\n entity_to_sx.put(entity, sx); entity_to_sy.put(entity, sy);\n }\n transform_id++;\n }", "@SuppressWarnings(\"unchecked\")\n public static Transformation<?> apply(\n StreamExecutionEnvironment env, Transformation<?> transformation) throws Exception {\n if (env.getConfiguration().get(PythonOptions.PYTHON_OPERATOR_CHAINING_ENABLED)) {\n final Field transformationsField =\n StreamExecutionEnvironment.class.getDeclaredField(\"transformations\");\n transformationsField.setAccessible(true);\n final List<Transformation<?>> transformations =\n (List<Transformation<?>>) transformationsField.get(env);\n final Tuple2<List<Transformation<?>>, Transformation<?>> resultTuple =\n optimize(transformations, transformation);\n transformationsField.set(env, resultTuple.f0);\n return resultTuple.f1;\n } else {\n return transformation;\n }\n }", "public void applyTransform() {\n\t\tglRotatef(xaxisrot, 1.0f, 0.0f, 0.0f);\n\t\tglRotatef(yaxisrot, 0.0f, 1.0f, 0.0f);\n\t\tglRotatef(tilt, 0.0f, 0.0f, 1.0f);\n\t\tglTranslatef(-pos.geti(), -pos.getj(), -pos.getk());\n\t}", "public Transform getTransform() {return transform;}", "public double getPoint() {\r\n return point;\r\n }", "public double getPoint() {\r\n return point;\r\n }", "public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }", "public Vector transform(Vector v) {\n\t\treturn new Vector(a * v.x + c, b * v.y + d);\n\t}", "private Point getCorrectedPoint(Point p) {\n\n final Point ret = new Point(p.x, p.y);\n\n ret.x -= getLeft();\n ret.y -= getTop();\n\n return ret;\n }", "public TextureCoord2D texFor (final Point3 point) {\n\n if (point == null)throw new IllegalArgumentException(\"The Point cannot be null!\");\n\n\n double teta = Math.acos(point.y);\n double phi = Math.atan2(point.x, point.z);\n\n return new TextureCoord2D(phi / (Math.PI*2), -teta/Math.PI);\n }", "public void relocateToPoint (Point2D p) {\n\n\t\t//relocates the object to a point that has been converted to\n\t\t//scene coordinates\n\t\tPoint2D localCoords = getParent().sceneToLocal(p);\n\n\t\tdouble x = localCoords.getX() - (getBoundsInLocal().getWidth() / 2);\n\t\tdouble y = localCoords.getY() - (getBoundsInLocal().getHeight() / 2);\n\n\t\trelocate ( (int) (x), (int) (y) );\n\t}", "public void calculatePointTemp(Point point) {\n WorldItem containedItem = point.getContainedItem();\n\n // Maintain temperature if the item here is flammable and on fire\n if (containedItem instanceof FlammableItem) {\n if (((FlammableItem) containedItem).isOnFire()) {\n return;\n }\n }\n\n // Temperature factors\n double radQDot = calcRadQDot(point);\n double convQDot = calcConvQDot(point);\n double totalQDot = radQDot + convQDot;\n\n point.setCurrentTemp(point.getCurrentTemp() + (KW_DEGREE_INCREASE * totalQDot));\n }", "abstract double apply(double x, double y);" ]
[ "0.6990819", "0.6953299", "0.69452", "0.694162", "0.6792063", "0.6789732", "0.67674226", "0.6668801", "0.6617503", "0.6587727", "0.6570811", "0.6552235", "0.65514106", "0.65448546", "0.65217334", "0.65162474", "0.64678997", "0.64418054", "0.63695693", "0.6296592", "0.62493676", "0.6211113", "0.61903936", "0.6179627", "0.61581725", "0.6154964", "0.61195475", "0.60065734", "0.60002065", "0.59899026", "0.5988111", "0.59714735", "0.59645003", "0.5961836", "0.59612495", "0.59271", "0.59259796", "0.5899308", "0.58949924", "0.5873829", "0.5861854", "0.58579826", "0.5838876", "0.5831435", "0.58039635", "0.57717764", "0.5743894", "0.5734803", "0.5686809", "0.56465423", "0.56430364", "0.55991673", "0.5594943", "0.5580531", "0.55567366", "0.5532162", "0.55248976", "0.5508211", "0.55062336", "0.54938084", "0.5472145", "0.5455817", "0.54508746", "0.54314756", "0.53888774", "0.5382497", "0.5382239", "0.5379422", "0.5377921", "0.5367066", "0.53539443", "0.53342766", "0.53333324", "0.5307118", "0.5291702", "0.5278326", "0.527407", "0.5265501", "0.5257607", "0.5237834", "0.5235639", "0.52217954", "0.5204119", "0.52009547", "0.5186179", "0.51593924", "0.5156334", "0.51533365", "0.51488715", "0.5145988", "0.51421773", "0.51416755", "0.51391554", "0.51391554", "0.5137838", "0.51351005", "0.5133095", "0.5121676", "0.5111031", "0.5108608", "0.509761" ]
0.0
-1
description: Created by Kris on 2021/1/31
@Repository public interface PermissionDao { Set<Permission> findPermissionsByRoleId(Integer roleId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "@Override\n public String getDescription() {\n return description;\n }", "@Override\n protected String getDescription() {\n return DESCRIPTION;\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void autoDetails() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "@Override\n public void memoria() {\n \n }", "@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }", "@Override\n public String getDescription() {\n return \"Asset issuance\";\n }", "@Override\n public int describeContents()\n {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "public String getDescription(){ return description; }", "public String getDescription(){return description;}", "public String getDescription(){return description;}", "public final void mo51373a() {\n }", "@Override\n public String getDescription() {\n return name;\n }", "public void mo38117a() {\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 public int describeContents() { return 0; }", "Petunia() {\r\n\t\t}", "@Override\n protected String getDescription() {\n return null;\n }", "@Override\n\t\t\tpublic int describeContents() {\n\t\t\t\treturn 0;\n\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n public int describeContents() {\r\n return 0;\r\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}", "public Pitonyak_09_02() {\r\n }", "private UsineJoueur() {}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public String getDescription()\n {\n return null;\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic String getDescription() {\n\t\treturn \"\";\r\n\t}", "private TMCourse() {\n\t}", "@Override\n public String describe() {\n return null;\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public String description(){\n return this.DESCRIPTION;\n }", "@Override\n protected void getExras() {\n }", "public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }", "public void mo4359a() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private DittaAutonoleggio(){\n \n }", "@Override\n public void func_104112_b() {\n \n }", "public abstract String description();", "public abstract String description();", "@Override\n public void author()\n {\n }", "@Override\n public Date getCreated()\n {\n return null;\n }", "@Override\n public String toString() {\n return \"\";\n }", "@Override\n public String getDescription() {\n return description;\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public Ludo() {\n this.status = \"Created\";\n }", "@Override\r\n\tpublic String description() {\n\t\treturn null;\r\n\t}", "CreationData creationData();", "@Override\r\n\tpublic void description() {\n\t\tSystem.out.println(\"Seorang yang mengendarai kendaraan dan bekerja\");\r\n\t}", "@Override\n\tpublic String description() {\n\t\treturn null;\n\t}", "public static void listing5_14() {\n }" ]
[ "0.6097628", "0.59425557", "0.5906998", "0.58471745", "0.5792916", "0.57630074", "0.5741695", "0.57392454", "0.57197756", "0.5701751", "0.5625615", "0.5625225", "0.5616141", "0.56030726", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55971354", "0.55965513", "0.55680424", "0.55680424", "0.5564413", "0.55560476", "0.5541198", "0.5524423", "0.5524423", "0.5524423", "0.5524423", "0.5524423", "0.5524423", "0.5524423", "0.55229956", "0.5519761", "0.5508785", "0.5497001", "0.54944485", "0.5492841", "0.5491013", "0.5491013", "0.54901993", "0.54825443", "0.54771227", "0.54749316", "0.5468213", "0.5467263", "0.54633373", "0.5451075", "0.5439501", "0.5437597", "0.54353535", "0.54322916", "0.542716", "0.5424058", "0.5423848", "0.5413125", "0.54107", "0.54065883", "0.5402128", "0.54008615", "0.5388656", "0.5387448", "0.5387448", "0.53857005", "0.53833383", "0.5375809", "0.5360434", "0.535862", "0.53494185", "0.5344321", "0.5335893", "0.53264046", "0.5324161", "0.5320081", "0.53146017", "0.53136784" ]
0.0
-1
Mapper for the entity Usuario and its DTO UsuarioDTO.
@Mapper(componentModel = "spring", uses = {OrgaoMapper.class, PermissaoMapper.class}) public interface UsuarioMapper { @Mapping(target = "orgao", ignore = true) UsuarioDTO usuarioToUsuarioDTO(Usuario usuario); List<UsuarioDTO> usuariosToUsuarioDTOs(List<Usuario> usuarios); Usuario usuarioDTOToUsuario(UsuarioDTO usuarioDTO); List<Usuario> usuarioDTOsToUsuarios(List<UsuarioDTO> usuarioDTOs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public UsuarioDTO obtener(String login) throws ReizzelException;", "public Usuario fromDTO(NovoUsuarioDTO objDto){\n Usuario user = new Usuario(null, objDto.getEmail(), objDto.getNome(), passwordEncoder.encode(objDto.getSenha()));\n return user;\n }", "public UsuarioDTO consultarUsuario(String idUsuario);", "public static UserDTO mapEntityIntoDTO(UserEntity entity) {\n \tif (entity == null) {\n \t\treturn null;\n \t}\n \n \tUserDTO dto = new UserDTO();\n \t\n \tdto.setLogin(entity.getLogin());\n\n \tdto.setPassword(entity.getPassword());\n \t// mapValue(entity, dto, \"password\");\n\n \t//dto.setQuota(entity.getQuota());\n \tModelDTOMapper.readEntityFieldToDto(dto, \"quota\", entity, \"quota\", new ConvertIntToLong());\n \t\n \t// dto.setEnabled(entity.getEnabled());\n \tModelDTOMapper.readEntityFieldToDto(dto, entity, \"enabled\");\n return dto;\n }", "public UsuarioDTO conocerUsuario(String usuario) {\n UsuarioDTO u = null;\n Conexion c = new Conexion();\n ResultSet rs = null;\n PreparedStatement ps = null;\n String sql = \"SELECT * FROM usuario WHERE usuario.usuario = ?\";\n try {\n ps = c.getConexion().prepareStatement(sql);\n u = new UsuarioDTO();\n ps.setString(1, usuario);\n rs = ps.executeQuery();\n while (rs.next()) {\n u.setID(rs.getInt(1));\n u.setNombre(rs.getString(2));\n u.setApellido(rs.getString(3));\n u.setDescripcion(rs.getString(4));\n u.setTelefono(rs.getString(5));\n u.setDireccion(rs.getString(6));\n u.setUsuario(rs.getString(7));\n u.setEmail(rs.getString(8));\n u.setPassword(rs.getString(9));\n u.setFecha_Nacimiento(rs.getString(10));\n u.setFecha_Creacion(rs.getString(11));\n u.setSexo(rs.getString(12));\n u.setImagen(rs.getAsciiStream(13));\n }\n\n } catch (Exception ex) {\n System.out.println(ex.getMessage());\n } finally {\n try {\n ps.close();\n rs.close();\n c.cerrarConexion();\n } catch (Exception ex) {\n }\n }\n return u;\n }", "public GetUsuarioDTO convierteDTO(Integer id){\n Optional<Usuario> usuario = usuarioRepository.findById(id);\n return usuario.map(usuarioDTOConverter::convertToDTO).orElseThrow(()->new UsuarioNotFoundException(id));\n }", "private UserDto mapFromUserToDto(User user) {\n UserDto userDto = new UserDto();\n userDto.setId(user.getId());\n userDto.setUsername(user.getUserName());\n userDto.setName(String.format(\"%s %s\", user.getFirstName(), user.getLastName()));\n userDto.setEmail(user.getEmail());\n userDto.setAvatar(user.getAvatar());\n return userDto;\n }", "public UsuarioDTO consultarUsuario(String idAfiliado);", "@Test\n public void whenMapUsertoUserDto_thenOk() {\n\n User user = InstanceFactory.user;\n\n UserDTO userDTO = UserMapper.INSTANCE.entityToDto(user);\n\n assertEquals(user.getId(), userDTO.getId());\n assertEquals(user.getLogin(), userDTO.getLogin());\n assertEquals(user.getPassword(), userDTO.getPassword());\n\n }", "@SuppressWarnings(\"OptionalUsedAsFieldOrParameterType\")\n@Mapper(componentModel = \"spring\",\n unmappedTargetPolicy = ReportingPolicy.IGNORE,\n nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)\npublic interface UserMapper {\n\n /**\n * Convert a {@link UpdateUserCommand} to a {@link CreateUserCommand}\n *\n * Used to create instead of replacing a {@link User}\n * in the {@link UserService}\n *\n * @param command Command to be converted\n * @return The associated command\n */\n CreateUserCommand toCreateUserCommand(UpdateUserCommand command);\n\n /**\n * Convert a {@link User} to a {@link UserDetailsDto}\n *\n * @param user Entity to be converted\n * @return The associated DTO\n */\n UserDetailsDto toDetailsDto(User user);\n\n /**\n * Convert a {@link User} entity to a {@link UserDto}\n *\n * @param user Entity to be converted\n * @return The associated DTO\n */\n UserDto toDto(User user);\n\n /**\n * Convert {@link User} entities to a list of {@link UserDto}\n *\n * @param users Entities to be converted\n * @return A list containing the associated DTOs\n */\n List<UserDto> toDtoList(List<User> users);\n\n /**\n * Convert a {@link CreateUserCommand} to a {@link User}\n *\n * @param command Command to be converted\n * @return The associated User\n */\n User toUser(CreateUserCommand command);\n\n /**\n * Convert a {@link PatchUserCommand} to a {@link User}\n * Optional.Empty fields will be converted to null\n *\n * @param command Command to be converted\n * @return The associated User\n */\n @Mapping(source = \"age\", target = \"age\", qualifiedByName = \"unwrap\")\n @Mapping(source = \"firstname\", target = \"firstname\", qualifiedByName = \"unwrap\")\n @Mapping(source = \"name\", target = \"name\", qualifiedByName = \"unwrap\")\n User toUser(PatchUserCommand command);\n\n /**\n * Replace the content of a {@link User} by the values held by the {@link UpdateUserCommand}\n *\n * @param command Payload holding the new values used to replace the existing ones\n * @param user User to be replaced\n */\n void updateFromCommand(UpdateUserCommand command, @MappingTarget User user);\n\n /**\n * Replace the content of a {@link User} by the values held by another {@link User}\n *\n * @param source User from which picking values\n * @param target User to be replaced\n */\n void updateFromUser(User source, @MappingTarget User target);\n\n /**\n * Custom MapStruct un-wrapper\n * see: https://stackoverflow.com/a/58313504/6152689\n *\n * @param optional Value of the optional type to unwrap\n * @param <T> Type of the optional target\n * @return The unwrapped value if present; null otherwise\n */\n @Named(\"unwrap\")\n default <T> T unwrap(Optional<T> optional) {\n return optional.orElse(null);\n }\n\n}", "@Test\n public void whenMapUserDtoToUser_thenOk() {\n\n UserDTO userDTO = InstanceFactory.userDTO;\n User user = UserMapper.INSTANCE.dtoToEntity(userDTO);\n\n assertEquals(user.getId(), userDTO.getId());\n assertEquals(user.getLogin(), userDTO.getLogin());\n assertEquals(user.getPassword(), userDTO.getPassword());\n\n }", "public BUserDto convertEntityToDto(BUser entity){\n\t\tBUserDto dto = new BUserDto();\n\t\tif(entity!=null){\n\t\t\tdto.setId(entity.getId());\n\t\t\tdto.setUsername(entity.getUsername());\n\t\t}\n\t\treturn dto;\n\t}", "public ResultadoDTO crearUsuario(UsuarioDTO UsuarioDTO)throws EntityExistsException, IllegalArgumentException;", "public List<UsuarioDTO> consultarUsuarios();", "public List<UsuarioDTO> consultarUsuarios();", "@Mapper\npublic interface UserMapper {\n @Options(useGeneratedKeys = true, keyProperty = \"id\") //回写自增的主键ID\n @Insert(\"INSERT INTO users (userName,vpsName,port,months,transfer,speedPort,speedThread,userNum) VALUES (#{userName},#{vpsName},#{port},#{months},#{transfer},#{speedPort},#{speedThread},#{userNum})\")\n Integer addUser(User user);\n\n @Delete(\"DELETE FROM users WHERE username = #{userName}\")\n Integer deleteUser(String userName);\n\n @Select(\"SELECT * FROM users\")\n List<User> findAllUser();\n\n @Update(\"UPDATE users SET #{willUpdate} = #{updateContent} WHERE username = #{userName}\")\n Integer updateUser(String willUpdate, String userName, String updateContent);\n\n @Select(\"SELECT * FROM users WHERE username = #{username}\")\n User findByUserName(@Param(\"username\") String condition);\n\n @Delete(\"DELETE FROM users\")\n void deleteAll();\n}", "@Mapper\npublic interface UserMapper {\n\n User selectById(Long id);\n\n //用户列表\n List<User> select(User user);\n\n //更新\n int update(User user);\n\n //插入\n int insert(User account);\n\n //删除\n int delete(String email);\n\n}", "@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target = \"depotId\")\n UtilisateurDepotPKDTO toDto(UtilisateurDepotPK utilisateurDepotPK);\n\n @Mapping(source = \"utilisateurId\", target = \"utilisateur\")\n @Mapping(source = \"depotId\", target = \"depot\")\n UtilisateurDepotPK toEntity(UtilisateurDepotPKDTO utilisateurDepotPKDTO);\n\n default UtilisateurDepotPK fromId(Long id) {\n if (id == null) {\n return null;\n }\n UtilisateurDepotPK utilisateurDepotPK = new UtilisateurDepotPK();\n utilisateurDepotPK.setId(id);\n return utilisateurDepotPK;\n }\n}", "@Mapper\npublic interface UserConvert {\n\n UserConvert INSTANCE = Mappers.getMapper(UserConvert.class);\n\n static UserConvertConvertor instance() {\n return INSTANCE;\n }\n\n @Mappings({})\n User toUser(UserDTO userDTO);\n\n @Mappings({})\n UserDTO toUserDTO(User user);\n\n List<UserDTO> toUserDTOs(List<User> users);\n\n List<User> toUsers(List<UserDTO> userDTOs);\n}", "@Bean\n public TypeMap<User, User> getUserUserTypeMap() {\n return getModelMapper().createTypeMap(User.class, User.class)\n .addMappings(mapper -> mapper.skip(User::setId))\n .addMappings(mapper -> mapper.skip(User::setPassword))\n .addMappings(mapper -> mapper.when(isNotNull()).map(User::getRole, User::setRole))\n .addMappings(mapper -> mapper.skip(User::setCreateDate))\n .addMappings(mapper -> mapper.skip(User::setUpdateDate))\n .addMappings(mapper -> mapper.when(isNotNull()).map(User::getAvatar, User::setAvatar));\n }", "public UserDTO(String username, String password){\n this.username = username;\n this.password = password;\n }", "public List<UsuarioDTO> listarUsuarios() {\n\t\treturn null;\n\n\t}", "@Mapper\npublic interface UserDAO {\n String TABLE_NAME = \"user\";\n\n String INSERT_FIELDS = \" username , password , salt, telephone, address \";\n\n String SELECT_FIELDS = \" id, \" + INSERT_FIELDS;\n\n @Insert({\"insert into \", TABLE_NAME, \"(\", INSERT_FIELDS, \") Values (#{name}, #{password}, #{salt}\" +\n \", #{telephone}, #{address})\"})\n int addUser(User user);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where id=#{id}\"})\n User selectById(int id);\n\n @Select({\"select \", SELECT_FIELDS, \" from \", TABLE_NAME, \" where username=#{name}\"})\n User selectByName(String name);\n\n @Update({\"update \", TABLE_NAME, \" set username = #{username} where id=#{id}\"})\n void updateUsername(User user);\n\n @Update({\"update \", TABLE_NAME, \" set telephone = #{telephone} where id=#{id}\"})\n void updateTelephone(User user);\n\n @Update({\"update \", TABLE_NAME, \" set address = #{address} where id=#{id}\"})\n void updateAddress(User user);\n\n @Delete({\"delete from \", TABLE_NAME, \" where id = #{id}\"})\n void deleteById(int id);\n}", "public interface UserMapper {\n\n\t/**\n\t * 根据实体类条件查询数据(分页)\n * Querying data based on entity class conditions.(pagination)\n\t * @param user\n * @return Data mapping entity list\n\t */\n\tList<User> queryUserListByCondition(User user, RowBounds rb);\n\n\t/**\n\t * 根据实体类条件查询数据(无分页)\n\t * Querying data based on entity class conditions.(no pagination)\n * @param user\n * @return Data mapping entity list\n\t */\n\tList<User> queryUserListByConditionNoPage(User user);\n\n\t/**\n\t * 根据实体类条件查询数据总条数\n * Querying data count based on entity class conditions.\n * @param user\n * @return Total Data\n\t */\n\tInteger queryUserNumByCondition(User user);\n\n\t/**\n\t * 根据实体类属性进行数据添加\n\t * Add data based on entity class attributes.\n\t * @param user\n\t */\n\tvoid addUser(User user);\n\n\t/**\n\t * 根据主键删除数据\n\t * Delete data according to the primary key.\n\t * @param id PrimaryKey\n\t */\n\tvoid deleteUser(String id);\n\n\t/**\n\t * 根据主键获取数据实体\n\t * Querying Data entity based on primary key.\n\t * @param id PrimaryKey\n\t * @return Data mapping entity\n\t */\n\tUser getUser(String id);\n\n\t/**\n\t * 根据实体类属性修改数据\n\t * Modify data based on entity class attributes.\n\t * @param user\n\t */\n\tvoid editUser(User user);\n\n\t/**\n\t * 查询所有数据\n\t * Querying all data.\n\t * @return Data mapping entity list\n\t */\n\tList<User> queryAllUser();\n\t\n}", "public interface UserMapper {\n long insert(User user);\n\n long delete(long id);\n\n long update(User uer);\n\n User findUser(long id);\n\n List<User> findAllUsers();\n}", "public GrupoUsuarioDTO() {\n }", "@Mapper\npublic interface UserMapper {\n\n // 插入用户\n int insert(User user);\n\n // 删除用户\n int delete(String id);\n\n // 更新用户\n int update(User user);\n\n // 按标识符查询用户\n User findById(String id);\n\n List<User> findAll();\n\n User login(@Param(\"username\") String username, @Param(\"password\") String password);\n\n int findAllCount();\n\n List<User> PageUser(@Param(\"param1\")Integer param1,@Param(\"param2\") Integer param2);\n\n}", "@Mapper\npublic interface UserMapper {\n void insert(@Param(\"user\") User user);\n\n User findByEmail(@Param(\"email\") String email);\n\n User findByUsername(@Param(\"username\") String username);\n\n void update(@Param(\"user\") User user);\n}", "UserDTO findUserById(Long id);", "public interface UsuarioDao {\n\t\n\tUsuario consultarUsuario (Usuario usuario);\n\tvoid cargarUsuario();\n\tvoid crearUsuario(Usuario usuario);\n\tvoid guardarTexto(Long id,String texto);\n\tboolean validarCambiarPassword(Long id,String oldPass, String newPass);\n\tList<Registro> obtenerRegistros(Long id);\n\tList<Usuario> obtenerUsuarios();\n\tList<Registro> obtenerRegistrosUsuarios(String email);\n\tvoid switchUsuario(String email);\n\tUsuario recuperarPassConsulta(String email);\n\tUsuario consultarUsuarioLogin(Usuario usuario);\n\tboolean autentificarUsuario(String auth,String fecha);\n\tvoid recuperarClave(Usuario usuario);\n\tboolean validarSetNewPassword(String newPass1, String newPass2);\n\tAutentificacion autentificarSetNewPassword(String auth, String fecha);\n\tvoid saveNewPassword(Long id, String email, String newPass1);\n}", "@Mapper(componentModel = \"spring\", uses = {})\npublic interface TipoTelaMapper {\n\n @Mapping(source = \"direccionamientoTela.id\", target = \"direccionamientoTelaId\")\n @Mapping(source = \"direccionamientoTela.nombre\", target = \"direccionamientoTelaNombre\")\n TipoTelaDTO tipoTelaToTipoTelaDTO(TipoTela tipoTela);\n\n @Mapping(source = \"direccionamientoTelaId\", target = \"direccionamientoTela\")\n @Mapping(target = \"telaCrudas\", ignore = true)\n TipoTela tipoTelaDTOToTipoTela(TipoTelaDTO tipoTelaDTO);\n\n default DireccionamientoTela direccionamientoTelaFromId(Long id) {\n if (id == null) {\n return null;\n }\n DireccionamientoTela direccionamientoTela = new DireccionamientoTela();\n direccionamientoTela.setId(id);\n return direccionamientoTela;\n }\n}", "public AuthenticatedUserDTO( int id, String firstName, String lastName, String email, String username,\n Timestamp lastLogin )\n {\n super();\n this.id = id;\n this.firstName = firstName;\n this.lastName = lastName;\n this.email = email;\n this.username = username;\n this.lastLogin = lastLogin;\n }", "public UserDTO(int id, String fName, String lName, String email, String username, Date birthdate, Date created){\n this.id = id;\n this.firstName = fName;\n this.lastName = lName;\n this.email = email;\n this.username = username;\n this.birthdate = birthdate;\n this.created = created;\n }", "public ec.com.smx.frameworkv2.security.dto.UserDto getUsuarioCreacion() {\n\t\treturn this.usuarioCreacion;\n\t}", "public interface UserMapper {\n int getUserByName(@Param(\"username\")String username);\n User getUser(@Param(\"username\")String username,@Param(\"password\")String password);\n List<User> selectAllUser();\n int addUser(User user);\n int editUser(User user);\n int deleteUser(@Param(\"id\")String id);\n int userAddRole(@Param(\"userId\")String userId,@Param(\"roleId\")String roleId);\n String selectUserRoleIdByUser(@Param(\"userId\")String userId);\n int userUpdateRole(@Param(\"userId\")String userId,@Param(\"roleId\")String roleId);\n int userClearRole(@Param(\"userId\")String userId);\n User queryUser(@Param(\"username\")String username,@Param(\"password\")String password,@Param(\"id\")String id);\n}", "@Mapper\npublic interface UserMapper {\n User selectUserById(Long id);\n\n List<User> selectAll();\n\n void insert(User user);\n\n Long update(User user);\n\n Long delete(Long id);\n}", "@Mappings({\n @Mapping(source = \"address\", target = \"addressDto\"),\n @Mapping(target = \"skills\", ignore = true)\n })\n UserDto toDTO(UserEntity userEntity);", "@Mapper(componentModel = \"spring\", uses = {TipoDocumentoMapper.class, GeneroMapper.class, AseguradoraMapper.class, GrupoEtnicoMapper.class, RegimenMapper.class, MunicipioMapper.class, TipoResidenciaMapper.class})\npublic interface PacienteMapper extends EntityMapper<PacienteDTO, Paciente> {\n\n @Mapping(source = \"tipoDocumento.id\", target = \"tipoDocumentoId\")\n @Mapping(source = \"tipoDocumento.nombre\", target = \"tipoDocumentoNombre\")\n @Mapping(source = \"genero.id\", target = \"generoId\")\n @Mapping(source = \"genero.nombre\", target = \"generoNombre\")\n @Mapping(source = \"aseguradora.id\", target = \"aseguradoraId\")\n @Mapping(source = \"aseguradora.nombre\", target = \"aseguradoraNombre\")\n @Mapping(source = \"grupoEtnico.id\", target = \"grupoEtnicoId\")\n @Mapping(source = \"grupoEtnico.nombre\", target = \"grupoEtnicoNombre\")\n @Mapping(source = \"regimen.id\", target = \"regimenId\")\n @Mapping(source = \"regimen.nombre\", target = \"regimenNombre\")\n @Mapping(source = \"municipio.id\", target = \"municipioId\")\n @Mapping(source = \"municipio.nombre\", target = \"municipioNombre\")\n @Mapping(source = \"tipoResidencia.id\", target = \"tipoResidenciaId\")\n @Mapping(source = \"tipoResidencia.nombre\", target = \"tipoResidenciaNombre\")\n PacienteDTO toDto(Paciente paciente);\n\n @Mapping(target = \"aplicacions\", ignore = true)\n @Mapping(target = \"acudientes\", ignore = true)\n @Mapping(source = \"tipoDocumentoId\", target = \"tipoDocumento\")\n @Mapping(source = \"generoId\", target = \"genero\")\n @Mapping(source = \"aseguradoraId\", target = \"aseguradora\")\n @Mapping(source = \"grupoEtnicoId\", target = \"grupoEtnico\")\n @Mapping(source = \"regimenId\", target = \"regimen\")\n @Mapping(source = \"municipioId\", target = \"municipio\")\n @Mapping(source = \"tipoResidenciaId\", target = \"tipoResidencia\")\n Paciente toEntity(PacienteDTO pacienteDTO);\n\n default Paciente fromId(Long id) {\n if (id == null) {\n return null;\n }\n Paciente paciente = new Paciente();\n paciente.setId(id);\n return paciente;\n }\n}", "public interface UserMapper {\n\n public User findById(int id);\n public int insertUser(User user);\n public void updateUser(User user);\n public void deleteUser(int id);\n public List<User> findAll();\n}", "public interface UserMapper {\n int addUser(TBUser tbUser);\n int alterUser(TBUser tbUser);\n TBUser getUserByAccount(String account);\n TBUser getUserPasswordByAccount(String account);\n int alterUserPassword(TBUser tbUser);\n}", "public static UserDto getUserDtoById(Integer id) {\n\t\t// create a new UserDaoImpl\n\t\tud = new UserDaoImpl();\n\t\tlogger.info(\"UserDaoImpl created\");\n\n\t\t// get the record that with id as the primary key as a User Object\n\t\tUser user = ud.selectUserById(id);\n\t\tlogger.info(\"User selected from database\");\n\t\tlogger.debug(\"User: \" + user);\n\t\t// create the UserDto\n\t\tUserDto usr = new UserDto(user.getId(), user.getUsername(), user.getfName(), user.getlName(), user.getPriv(),\n\t\t\t\tuser.getActivation());\n\t\tlogger.info(\"UserDto created\");\n\t\tlogger.debug(\"UserDto: \" + usr);\n\t\tlogger.info(\"Returning UserDto\");\n\t\t// return the UserDto\n\t\treturn usr;\n\n\t}", "public void grabarUsuario(UsuarioDto dto){\n\t\tUsuario usuario = new Usuario();\n\t\t\n\t\t// Setarle los valores que vienen del dto\n\t\tusuario.setNombre(dto.getNombre());\n\t\tusuario.setApellido(dto.getApellido());\n\t\t\n\t\t// Grabo el producto\n\t\tusuarioDao.saveOrUpdate(usuario);\n\t\t\n\t\tlog.info(\"Se grabó el producto: \" + usuario.getId());\n\t\t\n\t\t// Le seto el id en el dto\n\t\tdto.setId(usuario.getId());\n\t}", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface PeopleMapper extends EntityMapper <PeopleDTO, People> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.firstName\", target = \"userFirstName\")\n @Mapping(source = \"user.lastName\", target = \"userLastName\")\n PeopleDTO toDto(People people);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(target = \"seminarsPresenteds\", ignore = true)\n @Mapping(target = \"seminarsAttendeds\", ignore = true)\n @Mapping(target = \"specialGuestAts\", ignore = true)\n People toEntity(PeopleDTO peopleDTO);\n default People fromId(Long id) {\n if (id == null) {\n return null;\n }\n People people = new People();\n people.setId(id);\n return people;\n }\n\n default String peopleName(People people) {\n String name = \"\";\n if (people == null) {\n return null;\n }\n if (people.getUser() == null) {\n return null;\n }\n String firstName = people.getUser().getFirstName();\n if (firstName != null) {\n name += firstName;\n }\n String lastName = people.getUser().getLastName();\n if (lastName != null) {\n name += \" \" + lastName;\n }\n return name;\n }\n}", "public static UsuarioEntidad getUsuarioEntidad(){\n return getUsuarioTemporal().convertirAUsuarioEntidad();\n }", "@Mapper\npublic interface UserMapper {\n User getUser(@Param(\"id\")int id);\n\n String getPwd(@Param(\"name\")String name);\n\n List<Role> getRoles(@Param(\"user\")User user);\n}", "public UserDTO(String fName, String lName, String email, String username, String password, Date birthdate) {\n this.firstName = fName;\n this.lastName = lName;\n this.email = email;\n this.username = username;\n this.password = password;\n this.birthdate = birthdate;\n }", "@Mapper\npublic interface UserInfoDao {\n\n void create(UserInfo userInfo);\n //正常注册用户查询\n UserInfo findByLoginName(@Param(\"loginName\") String loginName);\n //扒取用户信息查询\n UserInfo findByLoginNameCrawler(@Param(\"loginName\") String loginName);\n\n void updateState(UserInfo userInfo);\n\n void updateCreateTime(UserInfo userInfo);\n\n void changePassword(UserInfo userInfo);\n\n UserInfo findByUserId(@Param(\"userId\") String userId);\n\n UserInfo findByUserIdAll(@Param(\"userId\") String userId);\n\n int friend(@Param(\"userId\")String userId,@Param(\"friendId\") String friendId);\n\n List<UserInfo> findByUserName(@Param(\"userName\") String userName);\n\n List<String> allLoginNames();\n}", "UserDTO getUserByUsername(String username);", "UserDTO getUserByUsername(String username);", "@Component\npublic interface UserMapper {\n\n int insert(User user);\n\n int delete(Long id);\n\n User findById(Long id);\n\n User findByName(String name);\n\n List<User> listAll();\n}", "public interface UserMapper {\n\n public int insertUser(User user) throws Exception;\n\n public int updateUser (User user,int id) throws Exception;\n\n public int deleteUser(int id) throws Exception;\n\n public User selectUserById(int id) throws Exception;\n\n public List<User> selectAllUser() throws Exception;\n}", "public ec.com.smx.framework.security.dto.UserDto getUsuarioModificacion() {\n\t\treturn this.usuarioModificacion;\n\t}", "UserDTO findUserByUseridAndPassword ( String userid , String password);", "public interface UserMapper {\n void save(User user);\n List<User> selectAll();\n User selectById(int id);\n}", "public interface LoginMapper {\n\n\t/**\n\t * 注册时查询用户是否已存在\n\t * \n\t * @param username\n\t * @return\n\t */\n\tpublic User findUserName(String username);\n\n\tpublic User findUserByU_P(@Param(\"username\") String username, @Param(\"password\") String password);\n\n\tpublic int finUserState(String userId);\n\n\tpublic String findMailById(String userId);\n\n\tpublic User findUserById(String id);\n\n\tpublic User findUserById(@Param(\"userId\") String id, @Param(\"username\") String username);\n\n\tpublic void updateUserState(@Param(\"userId\") String userId, @Param(\"state\") int state);\n\n\t// hgy\n\tpublic List<UserInfo> getFriendsByuserId(String userId);\n\n\tpublic void updateLoginTime(@Param(\"userId\") String userId,@Param(\"date\") Date date);\n\n}", "public Usuario getUsuario(String usuario) {\r\n\t\tUsuario user = null;\r\n\t\ttry\r\n\t\t{\t\t\t\r\n\t\t\tuser = jdbcTemplate.queryForObject(\r\n\t\t\t\t\tSQL_SELECT_USUARIO, \r\n\t\t\t\t\tnew RowMapper<Usuario>() {\r\n\t\t\t\t public Usuario mapRow(ResultSet rs, int rowNum) throws SQLException {\r\n\t\t\t\t Usuario user = new Usuario();\r\n\t\t\t\t user.setId(rs.getLong(\"id\"));\r\n\t\t\t\t user.setUsuarioAlias(rs.getString(\"usuario\"));\r\n\t\t\t\t user.setUsuarioPwd(rs.getString(\"clave\"));\r\n\t\t\t\t user.setUsuarioEstatus(rs.getBoolean(\"estatus\"));\r\n\t\t\t\t return user;\r\n\t\t\t\t }\r\n\t\t\t\t },\r\n\t\t\t\t\tusuario);\t\t\t\r\n\t\t}\r\n\t\tcatch(EmptyResultDataAccessException e)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tRol rol = new Rol();\r\n\t\trol.setId(100);\r\n\t\trol.setDescripcion(\"inatec\");\r\n\t\trol.setNombre(\"inatec\");\r\n\t\trol.setEstatus(true);\t\t\r\n\t\tuser.setRol(rol);\r\n\t\treturn user;\r\n\t}", "public interface SysUserMapper {\n\n @Select(\"select * from sys_user where user_name=#{username}\")\n public SysUser getUserByName(@Param(\"username\")String username);\n\n @Select(\"select * from sys_user where user_id=#{userId}\")\n public SysUser getUserById(@Param(\"userId\")int userId);\n\n @Select(\"select * from sys_user\")\n public List<SysUser> getAllUsers();\n\n @Update(\"update sys_user set online = #{online} where user_name = #{username}\")\n public void setUserOnlineStatusByName(@Param(\"username\")String username, @Param(\"online\")boolean online);\n\n @Select(\"select count(user_id) from sys_user where online = #{online}\")\n public int getUserCountByStatus(@Param(\"online\")boolean online);\n\n @Insert(\"insert into sys_user values(default, #{username}, #{password}, #{enabled}, #{online})\")\n public void addUser(@Param(\"username\")String username, @Param(\"password\")String password, @Param(\"enabled\")boolean enabled, @Param(\"online\")boolean online);\n\n @Update(\"update sys_user set enabled = #{isEnabled} where user_id = #{user_id}\")\n public void setUserEnabledStatusById(@Param(\"user_id\") int user_id, @Param(\"isEnabled\") boolean isEnabled);\n}", "public List<UsuarioDTO> obtener() throws ReizzelException;", "public interface UsuarioDao {\n\t\n\tUsuario consultarUsuario (Usuario usuario);\n\n\tvoid guardarUsuario(Usuario usuario);\n\n\tList<Usuario> traerTodosLosUsuarios();\n\n\tvoid guardarAdministrador(Usuario admin);\n\n\tUsuario traerUnUsuarioPorSuId(Long id);\n\n\tvoid actualizarUsuario(Usuario usuario);\n\n\tUsuario consultarCorreoUsuario(Usuario usuario);\n}", "private User getUserDto(String userName, String role){\n User user = new User();\n user.setRole(role);\n user.setUserName(userName);\n return user;\n }", "public void setUserMap() {\n ResultSet rs = Business.getInstance().getData().getAllUsers();\n try {\n while (rs.next()) {\n userMap.put(rs.getString(\"username\"), new User(rs.getInt(\"id\"),\n rs.getString(\"name\"),\n rs.getString(\"username\"),\n rs.getString(\"password\"),\n rs.getBoolean(\"log\"),\n rs.getBoolean(\"medicine\"),\n rs.getBoolean(\"appointment\"),\n rs.getBoolean(\"caseAccess\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Mapper\npublic interface UserMapper {\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param appUser\n * @return int\n */\n int registerAppUser(AppUser appUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param baseUser\n * @return int\n */\n int registerBaseUser(BaseUser baseUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param appUser\n * @return com.example.app.entity.BaseUser\n */\n AppUser loginAppUser(AppUser appUser);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param\n * @return java.util.List<com.example.app.entity.College>\n */\n @Select(\"select * from col\")\n List<College> allCollege();\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param user\n * @return int\n */\n int hasUser(BaseUser user);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param col_id\n * @return int\n */\n int hasCol(int col_id);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param sms\n * @return int\n */\n int registerCode(SMS sms);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param code\n * @return int\n */\n int getCode(@Param(\"code\") Integer code);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param order\n * @return int\n */\n int insertOrder(Order order);\n /**\n * 功能描述\n * @author xgl\n * @date 2019/12/12\n * @param order\n * @return int\n */\n int insertOrderCount(Order order);\n\n}", "@Override\n\tpublic Usuario mostrar() {\n\t\tLOG.info(\"Mostrar los datos del usuario\");\n\t\treturn usuario;\n\t}", "@Mapper(componentModel = \"spring\", uses = {UserMapper.class, CustomerMapper.class})\npublic interface WorkDayMapper extends EntityMapper<WorkDayDTO, WorkDay> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.login\", target = \"userLogin\")\n @Mapping(source = \"customer.id\", target = \"customerId\")\n WorkDayDTO toDto(WorkDay workDay);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(source = \"customerId\", target = \"customer\")\n WorkDay toEntity(WorkDayDTO workDayDTO);\n\n default WorkDay fromId(Long id) {\n if (id == null) {\n return null;\n }\n WorkDay workDay = new WorkDay();\n workDay.setId(id);\n return workDay;\n }\n}", "public interface UserMapper {\n\n List<User> getAll();\n\n int insert(User user);\n\n int deleteById(String id);\n\n int updateById(User user);\n\n User getUserById(String id);\n\n int insertSelective(User user);\n\n int updateByIdSelective(User user);\n\n List<User> queryUserListByPage(Map<String,Object> parameter);\n}", "@Mapper(componentModel = \"spring\", uses = {AuthorityMapper.class, })\npublic interface BizUserMapper {\n\n BizUserDTO bizUserToBizUserDTO(BizUser bizUser);\n\n List<BizUserDTO> bizUsersToBizUserDTOs(List<BizUser> bizUsers);\n\n @Mapping(target = \"companies\", ignore = true)\n @Mapping(target = \"products\", ignore = true)\n BizUser bizUserDTOToBizUser(BizUserDTO bizUserDTO);\n\n List<BizUser> bizUserDTOsToBizUsers(List<BizUserDTO> bizUserDTOs);\n\n default Authority authorityFromId(Long id) {\n if (id == null) {\n return null;\n }\n Authority authority = new Authority();\n authority.setId(id);\n return authority;\n }\n}", "public void crearUsuario(UsuarioDTO usuarioNuevo) throws Exception;", "@Repository\npublic interface UserMapper {\n\n User findById(@Param(\"id\") Integer id);\n User findBypassword(User user);\n void addUser(User user);\n\n}", "private UserDTO getUserDTO(String username) {\n\t\tUserDTO userDTO = userRepository.getUserDTO(username);\n\t\tuserDTO.setUserTournaments(userRepository.getUserTournamentsByUserName(username));\n\t\tuserDTO.setUserGames(gameUserRepository.getAllGameUserByUsername(username));\n\t\treturn userDTO;\n\t}", "@Repository\npublic interface UserMapper extends Serializable{\n\n /**\n * get the user info by the user id\n * @param user_id\n * @return\n */\n UserInfo getUserById(Integer user_id);\n\n /**\n * you want to get the user id list by the user nick name\n * @param nick_name the nick name\n * @return the user id list\n */\n List<Integer> getUsersByNickName(String nick_name);\n\n /**\n * you want to get the user info list by the id list\n * @param idList the id list\n * @return the user info list\n */\n List<UserInfo> getUserListByIdLists(List<Integer> idList);\n\n /**\n * you want to get the user info by the user nickname and the sex\n * @param map keys = {'nickname','sex'}\n * @return the result list\n */\n List<UserInfo> getUserByNickNameAndSex(Map<String,String> map);\n\n /**\n * you want to get your friends by your user id\n * @param user_id the user id\n * @return a list contains the friends of you\n */\n List<UserInfo> getFriendsOfMine(Integer user_id);\n\n /**\n * get the user's friends details\n * @param user_id the user id\n * @return the friends list\n */\n UserFriendsEntry getUserFriendsList(Integer user_id);\n\n /**\n * get the friends' friends\n * @param user_id the user id\n * @return the object of com.hujian.mvc.model.UserFriendsFriends\n */\n UserFriendsFriendsEntry getFriendsFriends(Integer user_id);\n\n /**\n * insert an user\n * @param userEntry\n * @return\n */\n Integer insertUser(InsertUserEntry userEntry);\n\n /**\n * remove an user from database\n * @param user_id\n * @return\n */\n Integer removeUserByUserId(Integer user_id);\n\n /**\n * update the user info\n * @param updateEntry the new user info\n * @return -1 means update error\n */\n Integer updateUserInfo(UpdateEntry updateEntry);\n\n\n}", "public TUser toTUser() {\n TUser tUser = new TUser();\n\n if (username != null) {\n tUser.setUsername(username);\n }\n\n if (password != null) {\n tUser.setPassword(password);\n }\n\n if (enabled != null) {\n tUser.setEnabled(enabled);\n }\n\n if (roles != null) {\n tUser.setRoles(getRoles().stream().map(UserRole::toTUserRole).collect(Collectors.toSet()));\n }\n\n if (robots != null) {\n tUser.setRobots(getRobots().stream().map(Robot::toTRobot).collect(Collectors.toSet()));\n }\n\n return tUser;\n }", "@SuppressWarnings(\"unchecked\")\n public UsuarioDto obtenerUsuarioPorNombre(String nombre) {\n HashMap<String, Object> params = new HashMap<>();\n params.put(\"V_NOMBRE\", nombre);\n List<UsuarioDto> list = (List<UsuarioDto>) executeList(UsuarioDto.class, \"PRC_LOGIN_SPRING\", params);\n if (list.isEmpty())\n return null;\n return list.get(0);\n }", "public ResultadoDTO modificarUsuario(String id, String nombre, UsuarioDTO usuarioDTO)throws IllegalArgumentException;", "UserDTO findUserByUsername(String username);", "public interface MysqlUserMapper {\n List<MysqlUser> getAll();\n\n MysqlUser getOne(Long id);\n\n void insert(MysqlUser user);\n\n void update(MysqlUser user);\n\n void delete(Long id);\n}", "public Usuario getUsuario() {\n return usuario;\n }", "public Usuario getUsuario() {\n return usuario;\n }", "@Transactional\n public UserDto getUser(Long id) {\n User user = userRepository.findById(id).orElse(new User());\n\n return userConverter.entityToDto(user);\n }", "List<Usuario> obtenerUsuarios() throws Exception;", "@Mapper(componentModel = \"spring\")\npublic interface UserMapper {\n\n /**\n * Convert from user to user response\n *\n * @param user User need convert\n * @return User response\n */\n @Mapping(source = \"user\", target = \"roles\")\n UserResponse toUserResponse(User user);\n\n default List<String> toRoles(User user) {\n List<String> roles = user.getRoles().stream()\n .map(Role::name)\n .collect(Collectors.toList());\n\n return roles;\n }\n\n /**\n * Convert from user to user response\n *\n * @param users User need convert\n * @return User response\n */\n List<UserResponse> toUserResponses(List<User> users);\n}", "public interface UserMapper {\n\n //根据id查询用户信息\n User findUserById(int id);\n\n}", "public static UserDTO getUserDTO(UserEntity userEntity) {\n\t\tUserDTO dto = null;\n\t\tif (userEntity != null) {\n\t\t\tdto = new UserDTO();\n\n\t\t\tdto.setUserId(userEntity.getUserId());\n\t\t\tdto.setInsertDate(userEntity.getInsertDate());\n\t\t\tdto.setUpdateDate(userEntity.getUpdateDate());\n\t\t\tdto.setName(userEntity.getUserName());\n\t\t\tdto.setEmail(userEntity.getUserEmail());\n\t\t\tdto.setPassword(userEntity.getUserPassword());\n\t\t\tdto.setIsActive(userEntity.getIsActive());\n\t\t\tdto.setLastLogin(userEntity.getLastLogin());\n\t\t}\n\t\treturn dto;\n\t}", "public interface UsuarioService {\n List<Usuario> getUsuariosByRol(Rol rol);\n List<Usuario> getUsuariosByPerfil(Perfil perfil);\n Usuario getUsuarioById(String id);\n String addUsuario(Integer rol,String nombre,Integer avatar, String procedencia, Integer perfil);\n String addHuesped (String nombre,Integer avatar, String procedencia, String perfil);\n void deleteUsuario(Usuario usuario);\n void updateUsuario(Usuario usuario, String nombre, String password, int avatar);\n void updateHuesped(Usuario usuario, String nombre, String password, String procedencia, int avatar);\n}", "@Mapper\npublic interface AyUserMapper {\n// @Select(\"SELECT * FROM ay_user WHERE name='name' AND password='password'\")\n //Param注意是哪个包的\n User findByNameAndPassword(@Param(\"name\") String name,@Param(\"password\") String password);\n}", "public UserDto() {\n }", "@Mapper\npublic interface UserMapper {\n\n User findByUserName(@Param(\"username\") String username);\n\n int insert(@Param(\"username\") String username);\n\n\n}", "public List<UsuarioDTO> obterListaUsuarios() throws RemoteException;", "public GrupoUsuarioDTO(Long idGrupoUsuario, String descripcion, String estado ) {\n super();\n this.idGrupoUsuario = idGrupoUsuario;\n this.descripcion = descripcion;\n this.estado = estado;\n }", "@ManyToOne\r\n\t@JoinColumn(name=\"idusuario\")\r\n\tpublic Usuario getUsuario() {\r\n\t\treturn this.usuario;\r\n\t}", "@ManyToOne\r\n\t@JoinColumn(name=\"idusuario\")\r\n\tpublic Usuario getUsuario() {\r\n\t\treturn this.usuario;\r\n\t}", "@ManyToOne\r\n\t@JoinColumn(name=\"idusuario\")\r\n\tpublic Usuario getUsuario() {\r\n\t\treturn this.usuario;\r\n\t}", "@ManyToOne\r\n\t@JoinColumn(name=\"idusuario\")\r\n\tpublic Usuario getUsuario() {\r\n\t\treturn this.usuario;\r\n\t}", "public interface UserMapper {\n\n User getUser(Integer id);\n\n int updateOrSaveUser(User user);\n}", "public interface UserMapper {\n User findById(int id);\n}", "@OneToOne(mappedBy = \"persona\")\n\tpublic Usuario getUsuario() {\n\t\treturn usuario;\n\t}", "@DaoMaster\npublic interface UserMapper {\n\n public UserEntity selectUserByID(int id);\n\n public UserEntity login(String userName, String passWord);\n\n\n\n}", "@Override\n\tpublic User buscarUsuario(Long id) {\n\t\treturn repository.findOne(id);\n\t}", "public UserInfoEntity toUserInfoEntity(){\n UserInfoEntity userInfoEntity = new UserInfoEntity();\n userInfoEntity.setUserId(IdGen.getNewUserID());\n userInfoEntity.setCreateBy(name);\n userInfoEntity.setCreateOn(DateUtils.getDate());\n return toUserInfoEntity(userInfoEntity);\n }", "public Usuario(int idUsuario, String nome, String email, String telefone, int motorista){\n\t\tthis.idUsuario = idUsuario;\n\t\tthis.nome = nome;\n\t\tthis.email = email;\n\t\tthis.telefone = telefone;\n\t\tthis.motorista = motorista;\n\t}", "@Override\r\n public List<User> darUsers() {\r\n Query q = em.createQuery(\"SELECT u FROM UserEntity u\");\r\n List<UserEntity> l = q.getResultList();\r\n List<User> ltr = new ArrayList();\r\n for(UserEntity te: l)\r\n {\r\n ltr.add(TransformadorEntityDto.getInstance().entityADtoUser(te));\r\n }\r\n return ltr;\r\n }" ]
[ "0.67002785", "0.6573722", "0.6561499", "0.6558716", "0.6424734", "0.64172906", "0.63926643", "0.6363179", "0.6352857", "0.63057023", "0.6287379", "0.62614375", "0.62073475", "0.6169765", "0.6169765", "0.6161582", "0.6157276", "0.6141776", "0.6079339", "0.606788", "0.6063428", "0.6059591", "0.605899", "0.6055687", "0.60447925", "0.6030873", "0.60188854", "0.6002", "0.5976513", "0.5974776", "0.5963526", "0.5961667", "0.59593326", "0.59295255", "0.59154713", "0.59092283", "0.5896578", "0.58848035", "0.5871711", "0.5870109", "0.5867601", "0.58565664", "0.58481735", "0.58432126", "0.5804975", "0.5794426", "0.5785143", "0.57761353", "0.57761353", "0.57431304", "0.57382107", "0.57185805", "0.57092005", "0.56997144", "0.5694902", "0.5694585", "0.5693991", "0.56736064", "0.56630594", "0.56630015", "0.5660859", "0.56582433", "0.5654177", "0.5634571", "0.56207556", "0.56154346", "0.56108356", "0.5562519", "0.55540216", "0.55533403", "0.55529386", "0.55510205", "0.5550584", "0.5549558", "0.5542908", "0.55344456", "0.55344456", "0.5531693", "0.55269605", "0.55240977", "0.5517089", "0.5516453", "0.5516151", "0.5513085", "0.5511051", "0.5503121", "0.5498494", "0.5498228", "0.54900026", "0.54900026", "0.54900026", "0.54900026", "0.5489858", "0.54887664", "0.54876554", "0.5486065", "0.54846036", "0.5479513", "0.5479056", "0.5474743" ]
0.7212182
0
Evaluate in a general context
public CalendarValue evaluateItem(XPathContext context) throws XPathException { CalendarValue in = (CalendarValue)argument[0].evaluateItem(context); if (in==null) { return null; } int nargs = argument.length; if (nargs==1) { return in.adjustTimezone(context.getImplicitTimezone()); } else { AtomicValue av2 = (AtomicValue)argument[1].evaluateItem(context); if (av2==null) { return in.removeTimezone(); } return adjustToExplicitTimezone(in, (DayTimeDurationValue)av2, context); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Value evaluate();", "public abstract Object eval();", "Result evaluate();", "public abstract void interpret(EvaluationContext context);", "public double evaluate(Context context);", "public Const evaluate();", "double eval();", "String evaluate();", "public interface IExpressionRuntime\n{\n Object evaluate();\n}", "Hojas eval();", "public Object eval (Object expression);", "void evaluate()\n\t{\n\t\toperation.evaluate();\n\t}", "public interface Evaluable {\n HarrObject eval(Context context) throws HarrException;\n}", "public abstract double evaluate(double value);", "public boolean evaluate();", "public ASTNode visitEvaluate(EvaluateContext ctx) {\n ASTExpr expr = (ctx.expr() == null) ? null : (ASTExpr)visit(ctx.expr());\n return new ASTEval(ctx, expr);\n }", "protected abstract SoyValue compute();", "private Object eval(Fact expr) {\n if (expr.getBool() != null) {\n if (\"true\".equals(expr.getBool())) {\n return true;\n } else {\n return false;\n }\n } else if (expr.getString() != null) {\n return expr.getString();\n } else if (expr.getIdent() != null) {\n if (RESULT_TYPE_VARIABLE.equals(resultType)) {\n return expr.getIdent();\n }\n return scope.getVariable(expr.getIdent());\n } else if (expr.getExpr() != null) {\n return eval(expr.getExpr(), resultType);\n } else if (expr.getLocator() != null) {\n return evalLocator(expr.getLocator());\n } else {\n return expr.getNumber();\n }\n }", "public abstract double evaluate(Point p);", "public Object eval(Environment e) \n {\n return val;\n }", "public double evaluate(double x);", "public void evaluate() {\r\n Statistics.evaluate(this);\r\n }", "private void evalExpression () {\n\tif (expr.type != null) {\n\t // Expression ist wie vorgesehen getypt\n\t if (expr.type instanceof M_Bool) {\n\t\t// Expression ist eine boolesche, also :\n\t\tdebug.addMsg(\"# expression to evaluate is boolean.\",3);\n\t\tSimulatorBoolEvaluator boolExpr = new SimulatorBoolEvaluator(process, expr);\n\t\tvalue = new SimulatorBoolValue ( boolExpr.giveResult() );\n\t }\n\t else if (expr.type instanceof M_Int) {\n\t\t// Expression ist eine zu Integer evaluierende, also :\n\t\tdebug.addMsg(\"# expression to evaluate is integer.\",3);\n\t\tSimulatorIntEvaluator intExpr = new SimulatorIntEvaluator(process, expr);\n\t\tvalue = new SimulatorIntValue ( intExpr.giveResult() ); \n\t }\n\t else {\n\t /* Platz für Exception, da Expression falsch getypt */\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not properly typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:1 \",0);\n\t }\n\n\t} //--------- end if(1) ------------\n\telse {\n\t // Expression ist nicht getypt also :\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:2 \",0);\n\t} //-------- end else --------------\n }", "@Override\n void execute(RolapEvaluator evaluator) {\n }", "public R evaluate(T t, V v);", "public String evaluate(String expression);", "public MathObject evaluate(Function input);", "@Override\r\n\tpublic double eval() {\r\n\t\tresult = op.apply(arg.eval());\r\n\t\treturn result;\r\n\t}", "protected Sequence actuallyEvaluate(XPathContext context, Component<GlobalVariable> target) throws XPathException {\n final Controller controller = context.getController();\n assert controller != null;\n final Bindery b = controller.getBindery(getPackageData());\n //System.err.println(\"EVAL GV \" + this + \" \" + getVariableQName().getDisplayName() + \" in slot \" + getBinderySlotNumber());\n\n try {\n // This is the first reference to a global variable; try to evaluate it now.\n // But first check for circular dependencies.\n setDependencies(this, context);\n\n // Set a flag to indicate that the variable is being evaluated. This is designed to prevent\n // (where possible) the same global variable being evaluated several times in different threads\n boolean go = b.setExecuting(this);\n if (!go) {\n // some other thread has evaluated the variable while we were waiting\n return b.getGlobalVariable(getBinderySlotNumber());\n }\n\n Sequence value = getSelectValue(context, target);\n if (indexed) {\n value = controller.getConfiguration().obtainOptimizer().makeIndexedValue(value.iterate());\n }\n return b.saveGlobalVariableValue(this, value);\n\n } catch (XPathException err) {\n b.setNotExecuting(this);\n if (err instanceof XPathException.Circularity) {\n String errorCode;\n if (getPackageData().getHostLanguage() == Configuration.XSLT) {\n errorCode = \"XTDE0640\";\n } else if (getPackageData().getXPathVersion() >= 30) {\n errorCode = \"XQDY0054\";\n } else {\n errorCode = \"XQST0054\";\n }\n err.setErrorCode(errorCode);\n err.setXPathContext(context);\n // Detect it more quickly the next time (in a pattern, the error is recoverable)\n SingletonClosure closure = new SingletonClosure(new ErrorExpression(err), context);\n b.setGlobalVariable(this, closure);\n err.setLocation(getLocation());\n throw err;\n } else {\n throw err;\n }\n }\n }", "EvaluationResult evalExpression(ValueExp expr) { return evalExpression(expr, true); }", "public double evaluate() throws Exception {\r\n // this expression compare from variable\r\n throw new Exception(\"this expression contains a variable\");\r\n }", "public Object eval(String expression) throws Exception;", "public void evaluate() throws Throwable {\n }", "public Object evaluate(IVariableValueProvider variableValueProvider, ExpressionRegistry registry)\r\n\t{\r\n\t\treturn expressionPart.evaluate(variableValueProvider, registry);\r\n\t}", "@Test\n\tpublic void simple() throws Exception {\n\t\tEvalImpl t = new EvalImpl();\n\t\tassertEquals(3.0, t.eval(\"1 + 2\"), 0d);\n\t}", "public interface Evaluator\n{\n /**\n * Return true if the given object is valid as an expression to\n * the evaluator. If an object is a valid expression, then the\n * evaluator is, in general, able to <code>eval()</code> it into\n * a result (or at least reasonably attempt to do so).\n *\n * @param value the value to check\n * @return true if it is valid as an expression, false if not\n */\n public boolean isExpression (Object value);\n\n /**\n * Return true if the given object is a possible result of evaluation.\n * If this returns true, then it is conceivable that the given object\n * was the result of a call to <code>eval()</code> on this evaluator.\n *\n * @param value the value to check\n * @return true if it is a possible result, false if not\n */\n public boolean isResult (Object value);\n\n /**\n * Evaluate the given value as an expression, yielding some result\n * value.\n *\n * @param expression the thing to evaluate\n * @return the result of evaluation\n */\n public Object eval (Object expression);\n}", "@Override\n public void visit(VariableEvalNode variableEvalNode) {\n }", "boolean isEvaluable();", "public PrimObject primitiveEval(PrimContext context) {\n Object[] values = (Object[]) javaValue();\n // Context is invocation context while values[1] is context of the creator of the block.\n context.setupCallContext((PrimContext) values[1]);\n PrimObject receiver = ((PrimContext) values[1]).receiver();\n return ((LambdaBlock) values[0]).apply(this, receiver, context);\n }", "boolean evaluate(E input);", "@Override\n\tpublic int evaluate(){\n\t\treturn term.evaluate() + exp.evaluate();\n\t}", "@Override\n public void doEvaluation(Individual sample, boolean isTrain) {\n mainEvaluator.doEvaluation(sample, isTrain);\n }", "public String eval()\r\n\t{\r\n\t\treturn eval(null, null);\r\n\t}", "public boolean evaluate(Substitution sub);", "@Override\n\tpublic double evaluate() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "public abstract double evaluer(SolutionPartielle s);", "public double eval(Environment env) throws EvalException {\n\treturn env.put(id,expr.eval(env));\n }", "public interface Expression {\n public boolean interpret(String context);\n}", "public interface Expression {\n public boolean interpret(String context);\n}", "public void evaluate(ContainerValue cont, Value value, List<Value> result);", "public void performEvaluation(){\n if(validateExp(currentExp)){\n try {\n Double result = symbols.eval(currentExp);\n currentExp = Double.toString(result);\n calculationResult.onExpressionChange(currentExp,true);\n count=0;\n }catch (SyntaxException e) {\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n e.printStackTrace();\n }\n }\n\n }", "public interface EvalHandler {\n\tString getExpression();\n\tvoid handleResult(EvalResult er);\n}", "public final double evaluate(double x,double[] pars){ return value(x,pars); }", "public String eval(String p1 ) {\n\t}", "public abstract Object evaluate( Feature feature ) throws FilterEvaluationException;", "public MathEval() {\r\n super();\r\n\r\n constants=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n setConstant(\"E\" ,Math.E);\r\n setConstant(\"Euler\" ,0.577215664901533D);\r\n setConstant(\"LN2\" ,0.693147180559945D);\r\n setConstant(\"LN10\" ,2.302585092994046D);\r\n setConstant(\"LOG2E\" ,1.442695040888963D);\r\n setConstant(\"LOG10E\",0.434294481903252D);\r\n setConstant(\"PHI\" ,1.618033988749895D);\r\n setConstant(\"PI\" ,Math.PI);\r\n\r\n variables=new TreeMap<String,Double>(String.CASE_INSENSITIVE_ORDER);\r\n\r\n functions=new TreeMap<String,FunctionHandler>(String.CASE_INSENSITIVE_ORDER);\r\n\r\n offset=0;\r\n isConstant=false;\r\n }", "@Test\n void scEvaluate() {\n StandardCalc sc = new StandardCalc();\n String expression = (\"( 5 * ( 6 + 7 ) ) - 2\");\n float result = 0f;\n try {\n result = sc.evaluate(expression);\n } catch (InvalidExpressionException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n assertEquals(result, 63);\n }", "public interface Expression {\n public boolean interpret(String context);\n}", "public Integer getEvaluate() {\n return evaluate;\n }", "public interface Program {\n\n static EvalResult newEvalResult(Val val, EvalDetails evalDetails) {\n return new EvalResult(val, evalDetails);\n }\n\n /**\n * Eval returns the result of an evaluation of the Ast and environment against the input vars.\n *\n * <p>The vars value may either be an `interpreter.Activation` or a `map[string]interface{}`.\n *\n * <p>If the `OptTrackState` or `OptExhaustiveEval` flags are used, the `details` response will be\n * non-nil. Given this caveat on `details`, the return state from evaluation will be:\n *\n * <ul>\n * <li>`val`, `details`, `nil` - Successful evaluation of a non-error result.\n * <li>`val`, `details`, `err` - Successful evaluation to an error result.\n * <li>`nil`, `details`, `err` - Unsuccessful evaluation.\n * </ul>\n *\n * <p>An unsuccessful evaluation is typically the result of a series of incompatible `EnvOption`\n * or `ProgramOption` values used in the creation of the evaluation environment or executable\n * program.\n */\n EvalResult eval(Object vars);\n\n final class EvalResult {\n private final Val val;\n private final EvalDetails evalDetails;\n\n private EvalResult(Val val, EvalDetails evalDetails) {\n this.val = val;\n this.evalDetails = evalDetails;\n }\n\n public Val getVal() {\n return val;\n }\n\n public EvalDetails getEvalDetails() {\n return evalDetails;\n }\n }\n}", "float getEvaluationResult();", "protected abstract int evaluate(GameState state, String playername);", "boolean evaluate(T target);", "public abstract int evalFunction(Player nodePlayer);", "public double evaluate(boolean pSave) {\r\n \t\tdouble result = 0.0;\r\n \t\tEnumeration args = getAllArguments().elements();\r\n \t\twhile (args.hasMoreElements()) {\r\n \t\t\tArgument arg = (Argument) args.nextElement();\r\n \t\t\t// System.out.println(\"relevant argument: \" + arg.toString());\r\n \t\t\tresult += arg.evaluate();\r\n \t\t}\r\n \r\n \t\t// should we take into account anyone pre-supposing or opposing us?\r\n \t\tRationaleDB db = RationaleDB.getHandle();\r\n \t\tVector dependent = db.getDependentAlternatives(this, ArgType.OPPOSES);\r\n \t\tIterator depI = dependent.iterator();\r\n \t\twhile (depI.hasNext()) {\r\n \t\t\tAlternative depA = (Alternative) depI.next();\r\n \t\t\tif (depA.getStatus() == AlternativeStatus.ADOPTED) {\r\n \t\t\t\tresult += -10; // assume amount is MAX\r\n \t\t\t}\r\n \t\t}\r\n \t\tdependent = db.getDependentAlternatives(this, ArgType.PRESUPPOSES);\r\n \t\tdepI = dependent.iterator();\r\n \t\twhile (depI.hasNext()) {\r\n \t\t\tAlternative depA = (Alternative) depI.next();\r\n \t\t\tif (depA.getStatus() == AlternativeStatus.ADOPTED) {\r\n \t\t\t\tresult += 10; // assume amount is MAX\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// System.out.println(\"setting our evaluation = \" + new\r\n \t\t// Double(result).toString());\r\n \t\tsetEvaluation(result);\r\n \r\n \t\tif (pSave) {\r\n \t\t\t// /\r\n \t\t\t// TODO This was added to get the integrated editors\r\n \t\t\t// updating correctly, however would be better suited\r\n \t\t\t// in a seperate function which is then refactored\r\n \t\t\t// outward so other places in SEURAT use it.\r\n \t\t\tConnection conn = db.getConnection();\r\n \t\t\tStatement stmt = null;\r\n \t\t\tResultSet rs = null;\r\n \t\t\ttry {\r\n \t\t\t\tstmt = conn.createStatement();\r\n \r\n \t\t\t\t// TODO Function call here is really hacky, see\r\n \t\t\t\t// the function inDatabase()\r\n \t\t\t\tif (inDatabase()) {\r\n \t\t\t\t\tString updateParent = \"UPDATE alternatives \"\r\n \t\t\t\t\t\t+ \"SET evaluation = \"\r\n \t\t\t\t\t\t+ new Double(evaluation).toString() + \" WHERE \"\r\n \t\t\t\t\t\t+ \"id = \" + this.id + \" \";\r\n \t\t\t\t\tstmt.execute(updateParent);\r\n \r\n \t\t\t\t\t// Broadcast Notification That Score Has Been Recomputed\r\n \t\t\t\t\tm_eventGenerator.Updated();\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// If The RationaleElement Wasn't In The Database There\r\n \t\t\t\t\t// Is No Reason To Attempt To Save The Evaluation Score\r\n \t\t\t\t\t// Or Broadcast A Notification About It\r\n \t\t\t\t}\r\n \t\t\t} catch (Exception e) {\r\n \t\t\t\tSystem.out.println(\"Exception while saving evaluation score to database\");\r\n \t\t\t} finally {\r\n \t\t\t\tRationaleDB.releaseResources(stmt, rs);\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\treturn result;\r\n \t}", "public Object evaluate (Interpreter interp, List sexp)\n throws RunTimeException\n {\n Map<String,Object> shadowed = new HashMap<String,Object>();\n\n for (int i = 0; i < _args.size(); i++) {\n String name = ((Name)_args.elementAt(i)).toString();\n Object val = sexp.elementAt(i);\n\n // shadow this variable\n Object oval = interp.env.get(name);\n if (oval != null) shadowed.put(name, oval);\n else shadowed.put(name, NO_VAL);\n\n // evaluate the argument and bind it to the variable\n interp.env.put(name, interp.evaluateSExp(val));\n }\n\n // evaluate the sexps that constitute this function\n Object result = interp.interpret(_progn);\n\n // copy the values of the shadowed variables back into the environment\n for (Map.Entry<String,Object> entry : shadowed.entrySet()) {\n Object oval = entry.getValue();\n if (oval == NO_VAL) interp.env.remove(entry.getKey());\n else interp.env.put(entry.getKey(), oval);\n }\n\n return result;\n }", "@Test\r\n public void testEval__call__1() throws ScriptException {\r\n Object value = engine.eval(\"java.lang.String()\");\r\n Assert.assertEquals(\"\", value);\r\n }", "abstract public Vertex getEvaluationResult();", "protected abstract Object concreteEval(MBeanServerConnection mbeanServer, Map<String, ?> context,\n ObjectInstance discoveredObject, String attributeName, boolean optional)\n throws Exception;", "public interface IEval {\n String Evaluate(Integer otherChoice);\n\n\n}", "protected abstract Object evalValue() throws JspException;", "abstract public IValue executeRVMFunctionInVisit(Frame root);", "@Override\n\tpublic void evaluar(int resistencia, int capacidad, int velocidad) {\n\t\t\n\t}", "public void interpreter(Context context){\n System.out.println(\"abstract interpr of context \" +\n \"and call teminal or not terminal context\");\n context.arrayOfActions.get(0).interpreter(context);\n context.arrayOfNumbers.get(0).interpreter(context);\n\n }", "@Test\r\n public void testEval__declare_call__1() throws ScriptException {\r\n Object value = engine.eval(\"#() true\");\r\n Assert.assertTrue(value instanceof Function);\r\n Object result = ((Function) value).invoke(engine.createBindings());\r\n Assert.assertTrue((Boolean)result);\r\n }", "public String getEvaluate() {\r\n return evaluate;\r\n }", "@Override\r\n public Evaluation getEvaluation ()\r\n {\r\n return evaluation;\r\n }", "protected Object subEval(EvalContext ctx, boolean forValue) {\n T.fail(\"A DelayedExpr isn't eval-able\");\n return null; //make compiler happy\n }", "public String getEvaluate() {\n return evaluate;\n }", "default Value eval(String script, boolean interactive) throws Exception {\n return eval(script, \"<eval>\", interactive);\n }", "@Override\n protected double doEvaluate(InfoBundle info, List<ASTNode> params) {\n for (int i = 0; i < getNumParams(); ++i) {\n ASTNumberLiteral value = new ASTNumberLiteral(params.get(i).evaluate(info));\n info.setVariable(parameterNames.get(i), value);\n }\n\n return body.evaluate(info);\n }", "public String evaluate(Node root){\n\t\tObject[] args;\n\t\tClass[] types;\n\t\tint i= 0;\n\t\tNode nxt;\n\t\tString fun;\n\t\tfun = root.getValue();\n\t\tClass c=null;\n\t\t\n\t\tLinkedList<Node> children = root.getChildren();\n\n\t\tIterator<Node> iter = children.listIterator();\n\t\tif (!iter.hasNext()){\n\t\t\treturn fun;\n\t\t}\n\t\ttypes= new Class[children.size()];\n\t\targs = new Object[children.size()];\n\t\t\n\t\t//populates types[] for getmethod and args[] for invoke\n\t\twhile (iter.hasNext()) {\n\t\t\tnxt = iter.next();\n\t\t\tfun = evaluate(nxt);\n\t\t\tswitch ( root.getReturnType()[i+1] & 0b1111 ) {\n\t\t\t\t//the argument should be a string\n\t\t\t\tcase STRING:\n\t\t\t\t\tc=String.class;\n\t\t\t\t\targs[i]=fun.replace(\"\\\"\",\"\");\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a float primitive\n\t\t\t\tcase FLOAT:\n\t\t\t\t\tc=float.class;\n\t\t\t\t\targs[i]=new Float(Float.parseFloat(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a int primitive\n\t\t\t\tcase INTEGER:\n\t\t\t\t\tc=int.class;\n\t\t\t\t\targs[i]=new Integer(Integer.parseInt(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be a Float class\n\t\t\t\tcase BIGFLOAT:\n\t\t\t\t\tc=Float.class;\n\t\t\t\t\targs[i]=new Float(Float.parseFloat(fun));\n\t\t\t\t\tbreak;\n\t\t\t\t//the argument should be an Integer class\n\t\t\t\tcase BIGINTEGER:\n\t\t\t\t\tc=Integer.class;\n\t\t\t\t\targs[i]=new Integer(Integer.parseInt(fun));\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\n\t\t\ttypes[i]=c;\n\t\t\ti ++;\n\t\t\t\n\t\t}\n\t\tfun = root.getValue();\n\t\t\n\t\ttry {\n\t\t\t//get the method at this node and apply it to the evaluation of its children\n\t\t\tfun = \"\" + coms.getMethod(fun, types).invoke(coms, args);\n\t\t}catch (Exception e){\n\t\t\t//this will never ever happen\n\t\t}\n\t\t\n\t\treturn fun;\n\t}", "public T evaluate(String expr, Map<String, Expression> dataSet) {\n List<Token> tokens = ExpressionParser.parse(expr);\n Expression expression = ExpressionBuilder.build(tokens);\n Visitor<T> visitor = new ExpressionVisitor<>(dataSet);\n return visitor.visit(expression);\n }", "private Object eval(Term expr) {\n Object res = eval(expr.getExpr().get(0));\n\n for (int i = 1; i < expr.getExpr().size(); i++) {\n Object res2 = eval(expr.getExpr().get(i));\n String opt = expr.getOpt().get(i - 1);\n\n if (\"*\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res * (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: Term error\");\n }\n } else if (\"/\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res / (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: Term error\");\n }\n } else if (\"%\".equals(opt)) {\n if (res instanceof Double && res2 instanceof Double) {\n res = (Double) res % (Double) res2;\n } else {\n throw new RaydenScriptException(\"Expression error: Term error\");\n }\n } else {\n throw new RaydenScriptException(\"Expression error: Invalid operator '\" + opt + \"'.\");\n }\n }\n\n return res;\n }", "public interface Evaluation<T, V, R> {\n\t/**\n\t * Evaluates the state of object <b><code>T</code></b> against the value of <b><code>V</code></b>,\n\t * returning a result of type <b><code>E</code></b> \n\t * @param t The object whose state is being evaluated\n\t * @param v The value which the evaluation is being made against\n\t * @return the result of the evaluation\n\t */\n\tpublic R evaluate(T t, V v);\n}", "private Boolean evaluateBooleanExpression(Expression expr, InMemoryExpressionEvaluator eval)\n {\n try\n {\n Object result = expr.evaluate(eval);\n return (result instanceof InMemoryFailure) ? Boolean.FALSE : (Boolean)result;\n }\n catch (VariableNotSetException vnse)\n {\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021024\", vnse.getVariableExpression().getId(), StringUtils.objectArrayToString(vnse.getValues())));\n }\n\n // TODO The iteration through possible variable values needs improving. We currently just drop out\n // to here with the possible values of a variable when first encountered (and not yet set), which\n // then starts the iteration process. This likely would fail if 2 or more variables (unchecked)\n if (vnse.getValues() == null || vnse.getValues().length == 0)\n {\n // No values available for this variable, so just put null and see the result\n eval.setVariableValue(vnse.getVariableExpression().getId(), null);\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021025\", vnse.getVariableExpression().getId(), \"(null)\"));\n }\n if (Boolean.TRUE.equals(evaluateBooleanExpression(expr, eval)))\n {\n return Boolean.TRUE;\n }\n }\n else\n {\n // Set this variable and start iteration over the possible variable values\n for (int i=0;i<vnse.getValues().length;i++)\n {\n eval.setVariableValue(vnse.getVariableExpression().getId(), vnse.getValues()[i]);\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021025\", vnse.getVariableExpression().getId(), vnse.getValues()[i]));\n }\n if (Boolean.TRUE.equals(evaluateBooleanExpression(expr, eval)))\n {\n return Boolean.TRUE;\n }\n }\n }\n\n // No variable value was successful so return FALSE\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021026\", vnse.getVariableExpression().getId()));\n }\n eval.removeVariableValue(vnse.getVariableExpression().getId());\n return Boolean.FALSE;\n }\n }", "abstract public void execute(FunctionContext context) throws Exception;", "public String evaluateExpression(ValueExpression expr,CodeExecutionContext execCtx) throws JavascribeException;", "public abstract double evaluateFitness();", "default Value eval(String script) throws Exception {\n return eval(script, false);\n }", "public interface FunctionEvaluator {\n\t/*\n\t * Evaluate the given function if possible. Otherwise should return null.\n\t */\n\tpublic MathObject evaluate(Function input);\n}", "@Test\n public void test01(){\n Object result = FelEngine.instance.eval(\"5000*12+7500\");\n System.out.println(result);\n }", "protected abstract Object doCalculations();", "public boolean evaluate() {\r\n\t\t\tif (this.isKnownValue()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t// handle the case when this.getValue() is null\r\n\t\t\tif (this.getValue() == null) {\r\n\t\t\t\t// if the value is null, then we just need to see if expected evaluation is also null\r\n\t\t\t\treturn this.getCurrentEvaluation() == null;\r\n\t\t\t}\r\n\t\t\t// if entities have the same name, they are equals.\r\n\t\t\tif (this.getCurrentEvaluation().getName().equalsIgnoreCase(this.getValue().getName())) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\treturn false;\r\n\t\t}", "double evaluate(double[] argument);", "protected E eval()\n\t\t{\n\t\tE e=this.e;\n\t\tthis.e=null;\n\t\treturn e;\n\t\t}", "public void setEvaluate(Integer evaluate) {\n this.evaluate = evaluate;\n }", "protected abstract String evalDefault() throws JspException;", "public abstract void compute();", "@Override\r\n public double eval() {\r\n return (this.child == null) ? 0.0 : this.child.eval();\r\n }", "private boolean evaluate(final String input) {\n return evaluate(input, true);\n}" ]
[ "0.7905488", "0.7582837", "0.75094026", "0.7429694", "0.7164438", "0.71469045", "0.70540375", "0.69183254", "0.6725247", "0.6678821", "0.6647357", "0.66446334", "0.65943015", "0.6590806", "0.6557438", "0.6546679", "0.6533808", "0.65099305", "0.6475638", "0.64075243", "0.63694334", "0.6348987", "0.6339853", "0.63279694", "0.62871104", "0.6257675", "0.6249481", "0.6245156", "0.62399906", "0.6218298", "0.6199134", "0.61889654", "0.61790323", "0.6151162", "0.61254466", "0.6113283", "0.6104025", "0.60958207", "0.6089128", "0.6050429", "0.6046812", "0.60294425", "0.6013974", "0.60052353", "0.59535426", "0.59436584", "0.59420455", "0.5930571", "0.5930571", "0.5926963", "0.5926622", "0.59244144", "0.5905072", "0.5903355", "0.5883734", "0.58789283", "0.58771414", "0.5873388", "0.586448", "0.5854639", "0.5845316", "0.5838156", "0.58330095", "0.58297956", "0.58023185", "0.58007056", "0.57952315", "0.57826793", "0.57753575", "0.5774671", "0.5774122", "0.577113", "0.576802", "0.5765912", "0.57535094", "0.5749946", "0.5715132", "0.5712517", "0.5701108", "0.56743", "0.5669572", "0.566868", "0.5666756", "0.56597495", "0.56579846", "0.5650776", "0.5643916", "0.5620935", "0.5619673", "0.5614773", "0.5611462", "0.56097376", "0.5609493", "0.56094635", "0.5609332", "0.5608482", "0.5603943", "0.55802816", "0.5579553", "0.5576806", "0.5573805" ]
0.0
-1
Construtor default da classe ConcelhosInterior
public ConcelhosInterior(){ this.concelhos = new HashMap<>(); this.concelhos.put("PENALVA DO CASTELO", 0.1); this.concelhos.put("VINHAIS", 0.08); this.concelhos.put("RESENDE", 0.09); this.concelhos.put("RIBEIRA DE PENA", 0.07); this.concelhos.put("BAIÃO", 0.1); this.concelhos.put("CELORICO DE BASTOS", 0.1); this.concelhos.put("TABUAÇO", 0.08); this.concelhos.put("CINFÃES", 0.07); this.concelhos.put("MIRANDELA", 0.06); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInteriorColor(PDColor ic) {\n/* 425 */ getCOSObject().setItem(COSName.IC, (COSBase)ic.toCOSArray());\n/* */ }", "public abstract boolean isInterior();", "@Override\n public boolean isGoodForInterior()\n {\n return false;\n }", "public PDColor getInteriorColor() {\n/* 435 */ return getColor(COSName.IC);\n/* */ }", "public boolean isInterior() {\n return true;\n }", "public boolean isInterior() {\n return false;\n }", "public ZonaFasciculataCells() {\r\n\r\n\t}", "void drawInterior(DrawContext dc, Object shape);", "public EmpleadoPOI() {//Constructor\n\t\t// TODO Auto-generated constructor stub\n\t}", "public LineaAbstract() {\n super();\n this.ColorRelleno=Color.BLACK;\n ColorRelleno=null;\n this.width=1.0F;\n isRelleno=false;\n isContinuo=true;\n isGradiente=false;\n }", "public Bordereau() {\n\t\tsuper();\n\t}", "protected boolean mustDrawInterior()\n {\n return this.getActiveAttributes().isDrawInterior();\n }", "public RegularGrid() {\r\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public Corrida(){\n\n }", "public boolean isInterior() {\n\t\tif (this.eltZero != null && this.eltOne != null && this.eltTwo != null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public HorasTrabalhadasFaces() {\n }", "public ColorClass setConstraint(Interval newconstr) {\n return setConstraint(new Interval[] {newconstr} );\n }", "public Cell(){}", "public CarrierShape(int x,int y)\n {\n super(x,y);\n }", "public MuestraColores() {\n\t\tenableEvents(64L);\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tinitialize();\n\t}", "protected SheetCollate(int paramInt) {\n/* 182 */ super(paramInt);\n/* */ }", "public InterfazBienvenida() {\n\n initComponents();\n setLocationRelativeTo(null);\n\n this.ButtonBuscarImagen.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());\n this.ButtonIndexarImagen.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());\n this.ButtonComoFunciona.putClientProperty(SubstanceLookAndFeel.BUTTON_SHAPER_PROPERTY, new StandardButtonShaper());\n }", "public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public salida()\r\n { \r\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\r\n super(600, 400, 1); \r\n }", "public Conway(AutomataCelular ac,int fila, int columna)\n {\n super(ac,fila,columna);\n automata = ac;\n this.fila = fila;\n this.columna= columna;\n color=Color.blue;\n estadoActual='v';\n }", "@Override\n public Shape getCelkoveHranice() {\n return new Rectangle2D.Double(super.getX() + 22, super.getY() + 45, 45, 45);\n }", "public CarrierShape()\n {\n super();\n }", "private void construireGrilleParDefaut() {\r\n\t\tthis.m_builder = new BuilderHerbe();\r\n\t\tCircuit.getInstance().clearElements();\r\n\t\t\r\n\t\tfor(int x=0;x<this.m_nbLignes;x++) {\r\n\t\t\tfor(int y=0;y<this.m_nbColonnes;y++) {\r\n\t\t\t\tthis.m_builder.creerElement(this,x+\"_\"+y);\r\n\t\t\t\tthis.m_builder.getElement().setBorderElement(new PointillerBorder(Color.GRAY,1));\r\n\t\t\t\tthis.m_panelGrid.add((Element)this.m_builder.getElement());\r\n\t\t\t\t\r\n\t\t\t\tCircuit.getInstance().addElement(this.m_builder.getElement());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Cohete() {\n\n\t}", "public ContourEntity(Shape area, String toolTipText) { super(area, toolTipText); }", "@Override\n\tpublic void createConseille(Conseille c) {\n\t\t\n\t}", "public abstract Regionlike getGridBounds();", "public MatteIcon() {\r\n this(32, 32, null);\r\n }", "public Fill() { }", "public Cell()\n\t{\n\t}", "public Figura(int x, int y, int ancho, int alto, int incx, int incy, Color color) {\n\t\tsuper();\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t\tthis.ancho = ancho;\n\t\tthis.alto = alto;\n\t\tthis.incx = incx;\n\t\tthis.incy = incy;\n\t\tthis.color = color;\n\t}", "public Celula() {\n this(null);\n }", "public INICIOTENDENCIAS() {\n initComponents();\n setResizable(false);\n }", "public ColorClass setConstraint(Interval[] newconstr) {\n int l =newconstr.length;\n ColorClass c = null;\n if (l == this.constraints.length) \n c = l > 1 ? new ColorClass(name(), newconstr) : new ColorClass(name(), newconstr[0], this.ordered);\n \n return c;\n }", "public interface CoGeometryConstants\n{\n\t// edge masks\n\tpublic static final int LEFT_EDGE_MASK = 1; // snap against left grid lines\n\tpublic static final int RIGHT_EDGE_MASK = 2; // snap against right grid lines\n\tpublic static final int TOP_EDGE_MASK = 4; // snap against top grid lines\n\tpublic static final int BOTTOM_EDGE_MASK = 8; // snap against bottom grid lines\n\tpublic static final int CENTER_EDGE_MASK = 16; // snap against center grid lines\n\n\tpublic static final int HORIZONTAL_EDGE_MASK = TOP_EDGE_MASK | BOTTOM_EDGE_MASK;\n\tpublic static final int VERTICAL_EDGE_MASK = LEFT_EDGE_MASK | RIGHT_EDGE_MASK | CENTER_EDGE_MASK;\n\n\tpublic static final int NO_EDGE_MASK = 0;\n\tpublic static final int ALL_EDGE_MASK = VERTICAL_EDGE_MASK | HORIZONTAL_EDGE_MASK;\n\n\t// direction mask\n\tpublic static final int TO_LEFT_MASK = 1; // snap in left direction\n\tpublic static final int TO_RIGHT_MASK = 2; // snap in right direction\n\tpublic static final int DOWN_MASK = 4; // snap in down direction\n\tpublic static final int UP_MASK = 8; // snap in up direction\n\tpublic static final int ALL_DIRECTIONS_MASK = TO_LEFT_MASK | TO_RIGHT_MASK | DOWN_MASK | UP_MASK;\n}", "public BoardCell(int x, int y){\n xCor=x;\n yCor=y;\n }", "@SuppressWarnings(\"unchecked\")\n public TCS defaultEdging() {\n cellStyle_p.setBorderBottom(BORDER_THIN);\n cellStyle_p.setBottomBorderColor(BLACK.getIndex());\n cellStyle_p.setBorderLeft(BORDER_THIN);\n cellStyle_p.setLeftBorderColor(BLACK.getIndex());\n cellStyle_p.setBorderRight(BORDER_THIN);\n cellStyle_p.setRightBorderColor(BLACK.getIndex());\n cellStyle_p.setBorderTop(BORDER_THIN);\n cellStyle_p.setTopBorderColor(BLACK.getIndex());\n\n return (TCS) this;\n }", "public Exo2_Editeurpolylignes() {\n valeur_maximum = 5;\n initComponents();\n Tools.windowsInit(this);\n Tools.setIcone(\"./src/Icones/Icone_Lines.bmp\", this);\n this.setTitle(\"Editeur de poly-Lignes\");\n etat = Etat.Init;\n //rien\n initNombrePoints();\n\n }", "public InterfazdelJuego() {\n super(\"Batalla de acorazados 1.0\");\n initComponents();\n stickers=new JLabel[10][10];\n setLocationRelativeTo(null);\n llenarMapa();\n cajaDeTexto.setBackground(Color.BLACK);\n cajaDeTexto.setForeground(Color.CYAN);\n \n \n }", "public ColorClass (int ide, Interval interval) {\n this(ide , interval , false);\n }", "Centimeter createCentimeter();", "public Rectangulo()\n\t{\n\t\tthis.alto = 0;\n\t\tthis.ancho = 0;\n\t\tthis.area = 0;\n\t}", "public BuiltInStyle(int xfind, int sn)\r\n/* 10: */ {\r\n/* 11:46 */ super(Type.STYLE);\r\n/* 12: */ \r\n/* 13:48 */ this.xfIndex = xfind;\r\n/* 14:49 */ this.styleNumber = sn;\r\n/* 15: */ }", "public ListaColores() {\n initComponents();\n buscaColor();\n\n }", "public CssBackgroundClip() {\r\n\tbgclip = border;\r\n }", "public MotifCellFactoryObservable() {\r\n\t\tsuper();\r\n\t}", "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}", "public GridColormap(double min, double max)\n {\n setMinMax(min, max);\n }", "public ContasCorrentes(){\n this(0,\"\",0.0,0.0,0);\n }", "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 }", "public Cgg_jur_anticipo(){}", "public Cifrador(Manejador m){\n manejador = m;\n setTitle(\"Cifrador\");\n setResizable(false);\n setBounds(400,100, 400, 400);\n iniciarComponentes();\n setDefaultCloseOperation(EXIT_ON_CLOSE);\n\n }", "public Bout()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n CreaBoutique();\n\n }", "public CadastroComplemento() {\n initComponents();\n \n }", "public CellStyle createCellStyle() {\n\t\treturn null;\n\t}", "public ROWCFIN21SOG00() \r\n {\r\n super();\r\n }", "public Poi() {\n }", "public Interfaz() {\n initComponents();\n }", "public Interfaz() {\n initComponents();\n }", "public Interfaz() {\n initComponents();\n }", "public Shape() { this(X_DEFAULT, Y_DEFAULT); }", "public Coup(int ligne, int colonne) {\n this.ligne = ligne;\n this.colonne = colonne;\n }", "public Sijainti() {\n this.x = 0;\n this.y = 0;\n }", "public CentrosTrabajo() {\n initComponents();\n }", "abstract public void colorize(TCell c);", "public Coche() {\n super();\n }", "public CetakPenjualan() {\n initComponents();\ntampilDataPen();\nthis.setResizable(false);\n }", "public Chromosome(){\n super();\n }", "public VoronoiVisualization()\n\t \t{\n\t\t super();\n\t \t}", "Cellule(Cellule [][]grille, int x, int y, boolean vivante)\n {\n this.grille = grille;\n this.vivante = vivante;\n this.x = x; this.y = y;\n vientDeChanger = true;\n }", "public PanCoperti() {\n /* rimanda al costruttore della superclasse */\n super(Layout.ORIENTAMENTO_ORIZZONTALE);\n\n\n try { // prova ad eseguire il codice\n\n /* regolazioni iniziali di riferimenti e variabili */\n this.inizia();\n\n } catch (Exception unErrore) { // intercetta l'errore\n new Errore(unErrore);\n }// fine del blocco try-catch\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 }", "private PolygonEditor()\n {\n this(null, 1.0f);\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 ColorClass(int ide, Interval[] intervals ) {\n this (ide, intervals, false );\n }", "public LinearConstraint() {\n\n }", "protected SimpleHeatmapNodeModel() {\r\n\t\tsuper(1, 0);\r\n\t}", "public Conway(AutomataCelular ac,int fila,int columna){\r\n super(ac,fila,columna);\r\n estadoActual=VIVA;\r\n //decida();\r\n estadoSiguiente=VIVA;\r\n edad=0;\r\n automata.setElemento(fila,columna,(Elemento)this); \r\n color=Color.blue;\r\n }", "public ContribuintesIndividuais() {\n super();\n this.dependentes=0;\n this.nifs = new ArrayList<String>();\n this.coeffiscal=0;\n this.codigos = new ArrayList<String>();\n this.numFilhos = 0;\n }", "public HorizontalCoords() {\n }", "public Coche (String color, String modelo) {\r\n\t super(color, modelo);\r\n\t numeroDeRuedas = 4;\r\n\t }", "protected Green() {\n\n super();\n }", "boolean isDrawInterior(DrawContext dc, Object shape);", "public Coordenada() {\n }", "public G20ConstraintFunction_h8() {\n }", "public JAnnotationCheckBox(){\n super();\n this.setOpaque(true);\n /*//this.setVerticalTextPosition(0);\n selectionBorderColor = UIManager.getColor(\"Tree.selectionBorderColor\");\n selectionForeground = UIManager.getColor(\"Tree.selectionForeground\");\n selectionBackground = UIManager.getColor(\"Tree.selectionBackground\");\n textForeground = UIManager.getColor(\"Tree.textForeground\");\n textBackground = UIManager.getColor(\"Tree.textBackground\");\n\n if (isHighlighted){\n\n this.setForeground(selectionForeground);\n this.setBackground(selectionBackground);\n } else {\n this.setForeground(textForeground);\n this.setBackground(textBackground);\n }*/\n\n }", "public BaseDatos() {\r\n super();\r\n listaNumeros.add(6.0f);\r\n }", "public interface GridBagConstraints {\n\n\t/** The HORIZONTAL. */\n\tpublic static Object HORIZONTAL = null;\n\t\n\t/** The BOTH. */\n\tpublic static Object BOTH = null;\n\t\n\t/** The EAST. */\n\tpublic static Object EAST = null;\n\t\n\t/**\n\t * Sets the fill.\n\t * \n\t * @param both2\n\t * the new fill\n\t */\n\tvoid setFill(Object both2);\n\t\n\t/**\n\t * Sets the grid x.\n\t * \n\t * @param i\n\t * the new grid x\n\t */\n\tvoid setGridX(int i);\n\t\n\t/**\n\t * Sets the grid y.\n\t * \n\t * @param i\n\t * the new grid y\n\t */\n\tvoid setGridY(int i);\n\t\n\t/**\n\t * Sets the insets.\n\t * \n\t * @param insets\n\t * the new insets\n\t */\n\tvoid setInsets(Insets insets);\n\t\n\t/**\n\t * Sets the anchor.\n\t * \n\t * @param east2\n\t * the new anchor\n\t */\n\tvoid setAnchor(Object east2);\n\t\n}", "Rey(){\r\n \r\n color_rey=Color.BLANCO;\r\n posicion_rey.fila=1;\r\n posicion_rey.columna='e';\r\n \r\n }", "public GridMapCompassMoves() {\n super();\n }", "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}", "public TelaAbigo() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n }", "public Coloca_imagen(){\n \n \n }", "@Override\r\n\tpublic void setMinCoordinates() {\n\t\t\r\n\t}" ]
[ "0.61015856", "0.60568863", "0.6032549", "0.5996937", "0.5984248", "0.5894258", "0.58142924", "0.5796848", "0.5792032", "0.5626455", "0.5524097", "0.5491005", "0.54729843", "0.54564977", "0.54528373", "0.54097414", "0.5373575", "0.5337574", "0.53155243", "0.5308101", "0.52923036", "0.5283018", "0.526001", "0.5246565", "0.5245055", "0.5210272", "0.52039564", "0.5203327", "0.51609313", "0.515917", "0.51491183", "0.5148189", "0.51444954", "0.5134887", "0.5123169", "0.5119215", "0.5112538", "0.51071155", "0.50971144", "0.5087662", "0.5071637", "0.5071447", "0.5058254", "0.5057126", "0.50566816", "0.5046298", "0.50447124", "0.50388795", "0.5038577", "0.50331366", "0.50288403", "0.50266635", "0.50209415", "0.50168663", "0.501011", "0.50086063", "0.50038433", "0.50033325", "0.5001096", "0.50000924", "0.4989805", "0.4987344", "0.49829826", "0.49820533", "0.49820533", "0.49820533", "0.49768597", "0.4974962", "0.4973374", "0.4972505", "0.49688792", "0.4968201", "0.4965067", "0.4963969", "0.49636826", "0.4963314", "0.4960407", "0.49569675", "0.49460855", "0.4944875", "0.4944742", "0.49298367", "0.49290863", "0.49284795", "0.49273217", "0.49238202", "0.4908527", "0.49072137", "0.4905691", "0.48981178", "0.4897087", "0.48967916", "0.48935804", "0.48934844", "0.48921728", "0.4889224", "0.48873147", "0.48857066", "0.4884765", "0.4884471" ]
0.69228595
0
Created by cxspace on 161117.
public interface CurrentCompetitionDao extends BaseDao<CurrentCompetition> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void mo38117a() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "protected boolean func_70814_o() { return true; }", "public void mo4359a() {\n }", "private stendhal() {\n\t}", "private void m50366E() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\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 }", "public void mo12628c() {\n }", "public void gored() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void skystonePos4() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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 final void mo91715d() {\n }", "protected void mo6255a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void m23075a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo12930a() {\n }", "private void m50367F() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo21779D() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void init() {\n\n\t}", "public abstract void mo70713b();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo115190b() {\n }", "protected boolean func_70041_e_() { return false; }", "public void skystonePos6() {\n }", "@Override\n public void memoria() {\n \n }", "public abstract void mo56925d();", "public void mo9848a() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {\n\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "private zza.zza()\n\t\t{\n\t\t}", "public void mo21877s() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n public void init() {\n }", "public void Tyre() {\n\t\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n public void init() {}", "public void skystonePos3() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "private void init() {\n\n\n\n }", "public void mo21878t() {\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 initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n protected void getExras() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void mo21783H() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "public void mo21782G() {\n }", "public void mo21791P() {\n }", "public void method_4270() {}", "public void mo21793R() {\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private final zzgy zzgb() {\n }" ]
[ "0.60930604", "0.5840824", "0.5838617", "0.58243406", "0.58180344", "0.580751", "0.580045", "0.5771903", "0.57428175", "0.57409954", "0.5734205", "0.5734205", "0.569417", "0.5690267", "0.56707495", "0.56707495", "0.56707495", "0.56707495", "0.56707495", "0.56707495", "0.56707495", "0.5664782", "0.5647509", "0.56315285", "0.5600522", "0.55967605", "0.55788547", "0.55724657", "0.55699444", "0.5558993", "0.5547581", "0.55246776", "0.55246776", "0.55246776", "0.55246776", "0.55246776", "0.5521025", "0.55204713", "0.55141246", "0.54965603", "0.5488655", "0.5480321", "0.54785365", "0.54558873", "0.5454902", "0.5450161", "0.54480666", "0.54470545", "0.5442721", "0.54385126", "0.54314667", "0.54227924", "0.54180664", "0.5417607", "0.5408631", "0.5408037", "0.54070294", "0.54064584", "0.5404684", "0.539839", "0.5396914", "0.53860056", "0.5384842", "0.5375299", "0.5372895", "0.5372895", "0.5372895", "0.5371317", "0.5370016", "0.5365218", "0.5358594", "0.53564644", "0.53556466", "0.53551656", "0.5352618", "0.53495336", "0.5344385", "0.5339455", "0.5339455", "0.5339455", "0.5334366", "0.5334366", "0.5334042", "0.5325806", "0.53168374", "0.5315275", "0.5314676", "0.5314393", "0.53132695", "0.53119147", "0.53118026", "0.53106457", "0.5308758", "0.53084457", "0.5304324", "0.5303628", "0.5301158", "0.5301158", "0.5301158", "0.529813", "0.5290257" ]
0.0
-1
Point point1 = new Point(1,2); Point point4 = new Point(1,2); Circle testCirc1 = new Circle(5.0, point1, Color.red, true); Circle testCirc2 = new Circle(5.0, point4, Color.red, true); Circle testCirc3 = new Circle(5.0, point1, Color.red, false); System.out.println(Color.red.equals(Color.red)); System.out.println(testCirc1.equals(testCirc2)); System.out.println(testCirc2.equals(testCirc3)); Rectangle testRect1 = new Rectangle(5.0, 3.0, point1, Color.red, true); Rectangle testRect2 = new Rectangle(5.0, 3.0, point1, Color.red, true); Rectangle testRect3 = new Rectangle(5.0, 3.0, point1, Color.red, false); System.out.println(testRect1.equals(testRect2)); System.out.println(testRect2.equals(testRect3)); Point point2 = new Point(0,0); Point point3 = new Point(1,0); Triangle testTri1 = new Triangle(point1, point2, point3, Color.red, true); Triangle testTri2 = new Triangle(point1, point2, point3, Color.red, true); Triangle testTri3 = new Triangle(point1, point2, point3, Color.red, false); System.out.println(testTri1.getArea()); System.out.println(testTri1.equals(testTri2)); System.out.println(testTri2.equals(testTri3)); System.out.println(testTri1.getClass().equals(Triangle.class));
public static void main(String[] args) { Triangle tri; Point a = new Point(4, 0); Point b = new Point(-2, -1); Point c = new Point(1, 4); tri = new Triangle(a, b, c, Color.cyan, false); System.out.println(tri.getArea()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testEqualsTrue() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n }", "@Override\n public boolean equals( Object o ) { \n if (o!=null && this.getClass() == (o.getClass()) && \n getP1().equals(((Triangle)o).getP1()) && \n getP2().equals(((Triangle)o).getP2()) && \n getP3().equals(((Triangle)o).getP3())){\n return true;\n }\n return false;//if not equal to each other\n\n }", "public static void main(String[] args) {\n Circle c1 = new Circle(1.0f);\n Circle c2 = new Circle(1.0f);\n\n System.out.println(c1 == c2); // false!\n\n System.out.println(c1.equals(c2)); // true!\n\n List<Circle> arr = new ArrayList();\n arr.add(c1);\n boolean c = arr.contains(new Circle(1.0f)); // true\n // c would be false if we did not override the equals method\n System.out.println(c);\n }", "public void testEquals() {\r\n\t\t// direct circle\r\n\t\tCircleArc2D arc0 = new CircleArc2D();\r\n\t\tCircle2D circle = new Circle2D(0, 0, 1, true);\r\n\t\tCircleArc2D arc1 = new CircleArc2D(circle, 0, PI/2);\r\n\t\tCircleArc2D arc2 = new CircleArc2D(circle, 0, PI/2, true);\r\n\t\tCircleArc2D arc3 = new CircleArc2D(0, 0, 1, 0, PI/2);\r\n\t\tCircleArc2D arc4 = new CircleArc2D(0, 0, 1, 0, PI/2, true);\r\n\t\tassertTrue(arc1.equals(arc0));\r\n\t\tassertTrue(arc1.equals(arc2));\r\n\t\tassertTrue(arc1.equals(arc3));\r\n\t\tassertTrue(arc1.equals(arc4));\r\n\r\n\t\t// direct circle, with different angles\r\n\t\tcircle = new Circle2D(0, 0, 1, true);\r\n\t\tarc1 = new CircleArc2D(circle, PI/2, PI/2);\r\n\t\tarc2 = new CircleArc2D(circle, PI/2, PI, true);\r\n\t\tarc3 = new CircleArc2D(0, 0, 1, PI/2, PI/2);\r\n\t\tarc4 = new CircleArc2D(0, 0, 1, PI/2, PI, true);\r\n\t\tassertTrue(arc1.equals(arc2));\r\n\t\tassertTrue(arc1.equals(arc3));\r\n\t\tassertTrue(arc1.equals(arc4));\r\n\t\t\r\n\t\t// indirect circle, with different angles\r\n\t\tcircle = new Circle2D(0, 0, 1, true);\r\n\t\tarc1 = new CircleArc2D(circle, PI/2, -PI/2);\r\n\t\tarc2 = new CircleArc2D(circle, PI/2, 2*PI, false);\r\n\t\tarc3 = new CircleArc2D(0, 0, 1, PI/2, -PI/2);\r\n\t\tarc4 = new CircleArc2D(0, 0, 1, PI/2, 2*PI, false);\r\n\t\tassertTrue(arc1.equals(arc2));\r\n\t\tassertTrue(arc1.equals(arc3));\r\n\t\tassertTrue(arc1.equals(arc4));\r\n\t}", "public static void main(String[] args) {\n\t\tShape s=new Shape();\n\t\ts.getArea();\n\t\tShape[] shape=new Shape[]{new Rectangle(3.0,4.0), new RightTriangle(6.0,4.0), new Circle(2.0)};\n\t\tfor(int i=0;i<3;i++){\n\t\t\tSystem.out.println(shape[i].getArea());\n\t\t\t}\n\t\tSystem.out.println(\"Triangle Rectangle: \"+ shape[0].equals(shape[1]));\n\t\tSystem.out.println(\"Triangle Circle: \"+ shape[1].equals(shape[2]));\n\t\tSystem.out.println(\"Circle Rectangle: \"+ shape[2].equals(shape[0]));\n\t\tSystem.out.println(\"Rectangle: \"+ shape[0].toString());\n\t\tSystem.out.println(\"Triangle: \"+ shape[1].toString());\n\t\tSystem.out.println(\"Circle: \"+ shape[2].toString());\n\t}", "@Override\n\tpublic boolean equals(Object other) {\n\t\tif (other == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (this.getClass() != other.getClass()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tCircle otherObject = (Circle) other;\n\t\treturn approx(this.radius, otherObject.radius) && \n\t\t\t\tthis.color.equals(otherObject.color) &&\n\t\t\t\tthis.position.equals(otherObject.position) &&\n\t\t\t\tthis.filled == otherObject.filled;\n\t\t\n\t}", "public static void main(final String[] args) {\n\n final var point = new Point(10, 20);\n final var bluePoint = new ColorPoint(10, 20, Color.BLUE);\n final var redPoint = new ColorPoint(10, 20, Color.RED);\n\n System.out.println(bluePoint.equals(point));\n System.out.println(point.equals(redPoint));\n System.out.println(bluePoint.equals(redPoint));\n }", "@Override public boolean equals(Object o) {\r\n\t\tif (o instanceof Shape) {\r\n\t\t\treturn this.area() == ((Shape)o).area();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Test\n void contains() {\n Cuboid cuboid1 = new Cuboid(4, 4, 4);\n Point3D point1 = new Point3D(0,0,0);\n assertEquals(true, cuboid1.contains(point1));\n\n Point3D point2 = new Point3D(0,0,2);\n assertEquals(true, cuboid1.contains(point2));\n\n Point3D point3 = new Point3D(0,0,-2);\n assertEquals(true, cuboid1.contains(point3));\n\n Point3D point4 = new Point3D(0,2,0);\n assertEquals(true, cuboid1.contains(point4));\n\n Point3D point5 = new Point3D(0,-2,0);\n assertEquals(true, cuboid1.contains(point5));\n\n Point3D point6 = new Point3D(2,0,0);\n assertEquals(true, cuboid1.contains(point6));\n\n Point3D point7 = new Point3D(-2,0,0);\n assertEquals(true, cuboid1.contains(point7));\n\n Point3D point8 = new Point3D(-2,-2,-2);\n assertEquals(true, cuboid1.contains(point8));\n\n Point3D point9 = new Point3D(-2,-2,-3);\n assertEquals(false, cuboid1.contains(point9));\n\n\n //Arbitary orientation\n Cuboid cuboid2 = new Cuboid(4, 5, 7, new Ray(new Point3D(-2,-2,-2), new Vector3D(1,1,1)));\n Point3D point21 = new Point3D(-1,-1,-1);\n assertEquals(true, cuboid2.contains(point21));\n\n Cuboid cuboid3 = new Cuboid(4, 5, 6, new Ray(new Point3D(-2,-2,-2), new Vector3D(1,1,1)));\n Point3D point31 = new Point3D(0,0,0);\n assertEquals(false, cuboid3.contains(point31));\n\n Cuboid cuboid4 = new Cuboid(4, 5, 6, new Ray(new Point3D(0,0,0), new Vector3D(1,1,1)));\n Point3D point41 = new Point3D(2.5,2.5,2.5);\n assertEquals(false, cuboid4.contains(point41));\n\n Cuboid cuboid5 = new Cuboid(4, 5, 6, new Ray(new Point3D(-2,-2,-2), new Vector3D(0,0,1)));\n Point3D point51 = new Point3D(-2,-2,3.5);\n assertEquals(false, cuboid5.contains(point51));\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\tPen p1 = new Pen(\"Abc\", \"blue\",1);\r\n\t\tPen p2 = new Pen(\"Dbc\", \"Black\",1);\r\n\t\tPen p3 = new Pen(\"abc\", \"blue\",2);\r\n\t\tPen p4 = new Pen(\"Abc\", \"blue\",1);\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"Details of P1\" + p1 + \"...\" + p1.hashCode());\r\n\t\tSystem.out.println(\"Details of P2\" + p2 + \"...\" + p2.hashCode());\r\n\t\tSystem.out.println(\"Details of P3\" + p3 + \"...\" + p3.hashCode());\r\n\t\tSystem.out.println(\"Details of P4\" + p4 + \"...\" + p4.hashCode());\r\n\t\t\r\n\t\t/*\t Step 2 - BEfore overriding Equals Method :\r\n\t \t\t\t\t\t\tDetails of [email protected]\r\n\t\t\t\t\t\t\tDetails of [email protected]\r\n\t\t\t\t\t\t\tDetails of [email protected]\r\n\t\t\t\t\t\t\t[Comparisons p1 && p2 ::] false\r\n\t\t \t\t\t\t\t[Comparisons p2 && p3 ::] false\r\n\t\t \t\t\t\t\t[Comparisons p1 && p3 ::] false \t\t\t\t\t\t\t\t\t*/\r\n\r\n\t\t /* Step 3 - Contradicts to real Time Scenario i.e Two pens are same if they have same color and same Brand.\r\n\t\t \t So, To avoid Contradiction We Override Equals Method.\r\n\t\t \t Override equals Method in such a way that objects are equal if they have same State. */\r\n\r\n\t\t/* Step 4 - After Overriding Equals Method :\r\n\t\t \t\t\t\t\tDetails of [email protected]\r\n\t\t\t\t\t\t\tDetails of [email protected]\r\n\t\t\t\t\t\t\tDetails of [email protected]\r\n\t\t\t\t\t\t\t[Comparisons p1 && p2 ::] false\r\n\t\t \t\t\t\t\t[Comparisons p2 && p3 ::] false\r\n\t\t \t\t\t\t\t[Comparisons p1 && p3 ::] true\t\t\t\t\t\t\t\t\t\t\t\t*/\r\n\r\n\t\t\r\n\t\t/* Step 5 -\tWe got the desired Output as P1 and p3 are Equal . are we good now ? we aren't. \r\n\t\t\t\tStep 1 statement Fails . \r\n\t\t \t\ti.e as hashCode is different but objects are equal, which is illegal.\r\n\t\t\t\tTo avoid such conflicts we override HashCode method.\r\n\t\t\t\tHence we can conclude and proved that,if Two objects are equal,then they should have same HashCode.\r\n\t\t\t\tThis is the First Statement of HashCode and Equals Contract. */\r\n\t\t\r\n\t\t/* Step 6 - \tNow the Converse Statement.. If Two Objects have same HashCode then can we say that Objects are Equal?? \r\n\t\t \t\tdoesnt the statement seems Silly !! How can we conclude the equality of two objects based on their \r\n\t\t \t\thashCode(which is just a Memory Location and no concept of Object pooling here)\r\n\t\t \t\twithout comparing their state ?? */\r\n\t\t\r\n\t\t/* Step 7 - Finally, If Two Objects have Same HashCode then objects may or may not be Equal */\r\n\t}", "@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null) {\n return false;\n }\n AbstractShape that = (AbstractShape) o;\n return Double.compare(that.x, x) == 0 &&\n Double.compare(that.y, y) == 0 &&\n Double.compare(that.w, w) == 0 &&\n Double.compare(that.h, h) == 0 &&\n Double.compare(that.r, r) == 0 &&\n Double.compare(that.g, g) == 0 &&\n Double.compare(that.b, b) == 0 &&\n name.equals(that.name);\n }", "@Test\n public void testCircleGetArea()\n {\n Circle c = new Circle(5.678, new Point(2, 3), Color.BLACK);\n\n assertEquals(101.2839543, c.getArea(), DELTA);\n }", "@Test\n public void testHashCode() {\n Rectangle r5 = new Rectangle(7, 4, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 255),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, -75));\n Rectangle r8 = new Rectangle(0, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n\n assertEquals(r1, r5);\n assertEquals(r2, r6);\n assertEquals(r3, r7);\n assertEquals(r4, r8);\n\n assertEquals(r1.hashCode(), r5.hashCode());\n assertEquals(r2.hashCode(), r6.hashCode());\n assertEquals(r3.hashCode(), r7.hashCode());\n assertEquals(r4.hashCode(), r8.hashCode());\n }", "public static void main(String[] args) {\n\n Rectangle myGarden=new Rectangle(7,8);\n System.out.println(myGarden.toString());\n\n System.out.println(myGarden.getArea());\n\n Rectangle hisGarden= new Rectangle();\n hisGarden.setLenght(12);\n hisGarden.setWidths(5);\n\n hisGarden.equals(myGarden);\n\n System.out.println(myGarden.hashCode());\n\n System.out.println(Rectangle.getArea(10, 8));\n\n TriangleFactory factory = new TriangleFactory();\n Triangle fourth = TriangleFactory.create(10,1,1);\n }", "@Test\n public void isTriangle() {\n\t\tPoint a = new Point(1, 3);\n Point b = new Point(2, -5);\n Point c = new Point(-8, 4);\n Triangle triangle = new Triangle(a, b, c);\n\t\tdouble result = triangle.area();\n\t\tdouble expected = 35.5;\n\t\tassertThat(result, is(expected));\n }", "public static void main(String[] args) {\n Rectangle rectangle = new Rectangle(\"red \",4,3);\n// System.out.println(rectangle.area());\n\n Square square = new Square(\"green \",3);\n// System.out.println(square.area());\n Circle circle = new Circle(\"blue \", 4);\n\n// System.out.println(square.getColor());\n\n Shape[] shapes = {rectangle, square, circle};\n for (Shape shape: shapes) {\n shape.showColorAndArea();\n }\n\n }", "@Override\n public boolean equals(Object o) {\n if (!(o instanceof Point)) {\n return false;\n }\n if(!(o instanceof ColorPoint2)) {\n return o.equals(this);\n }\n return super.equals(o) && ((ColorPoint2) o).color == color;\n }", "@Override\n public boolean equals(Object other) {\n assert (other instanceof Circle);\n Circle something = (Circle) other;\n return (this.origin.equals(something.origin) && this.radius == something.radius);\n }", "public boolean equals( Object o ){\n\t\tif (o instanceof Circle) {\n Circle other = (Circle) o;\n return radius == other.radius;\n } else {\n return false;\n } \n\t}", "@Test\n public void getColor() {\n // Testing for Color Rectangle that mutates its Color and see the Color matches.\n assertEquals(defaultColor1, defaultShape1.getColor());\n Color newRectangleColor = new Color(33, 33, 33);\n defaultShape1 = new Rectangle(newRectangleColor, defaultPosition1, defaultSize1);\n assertEquals(newRectangleColor, defaultShape1.getColor());\n assertNotEquals(defaultColor1, defaultShape1.getColor());\n // Testing for OvalShape that mutates and see it matches.\n assertEquals(defaultColor2, defaultShape2.getColor());\n Color newOvalColor = new Color(15, 15, 15);\n defaultShape2 = new Oval(newOvalColor, defaultPosition2, defaultSize2);\n assertEquals(newOvalColor, defaultShape2.getColor());\n assertNotEquals(defaultColor2, defaultShape2.getColor());\n }", "public static void main(String[] args) {\n // Reflexive\n System.out.println(o.equals(o));\n System.out.println(r.equals(r));\n\n // Symmetric\n System.out.println(o.equals(p) + \" = \" + p.equals(o));\n System.out.println(r.equals(s) + \" = \" + s.equals(r));\n\n // Transitive\n System.out.println(o.equals(p) + \" = \" + p.equals(q) + \" = \" + o.equals(q));\n System.out.println(r.equals(s) + \" = \" + s.equals(t) + \" = \" + r.equals(t));\n\n // Comparing Point to ColorPoint\n System.out.println(p.equals(s.asPoint()));\n System.out.println(s.asPoint().equals(p));\n }", "static void testTriangle(Point a, Point b, Point c){\n Triangle tri1 = new Triangle(a,b,c);\n System.out.printf(\"Perimeter of triangle=%.2f\",tri1.calculatePerimeter());\n System.out.printf(\"->%b\\n\", String.format(\"%.2f\", tri1.calculatePerimeter()).equals(\"13.66\"));\n System.out.printf(\"Area of triangle=%.2f\", tri1.calculateArea());\n System.out.printf(\"->%b\\n\", String.format(\"%.2f\", tri1.calculateArea()).equals(\"8.00\"));\n System.out.print(tri1); //prints the return value from tri1.toString()\n }", "@Override\n public boolean equals(Object other) {\n if (this == other) return true; \n \n if (other instanceof Coord3) { // if other is a Coord3 type\n return x == ((Coord3) other).x && y == ((Coord3) other).y && z == ((Coord3) other).z;\n }\n return false;\n }", "@Test\n public void evaluate() {\n Circle circle = new BlueCircle();\n\n Square square = new RedSquare();\n\n assertNotNull(\"Circle object is not created!\", circle);\n\n circle.applyColor();\n\n assertNotNull(\"Square object is not created!\", circle);\n\n square.applyColor();\n }", "public void testEquals() {\n StandardXYBarPainter p1 = new StandardXYBarPainter();\n StandardXYBarPainter p2 = new StandardXYBarPainter();\n }", "@Test\r\n\tpublic void testGetListOfShapesEnclosingGivenPoint() {\r\n\t\t\r\n\t\t// Create a first shape square\r\n\t\tPoint origin = new Point(25, 100); \r\n\t\tList<Double> list = new ArrayList<Double>(); \t\t\r\n double side = 5.0; \t\t\r\n list.add(side); \t\t\t\t\t\t\t\t\t\t \t\t\r\n\t\tShape square = ShapeFactory.createShape(0, origin, list); \t\t // 0 for creation of square\r\n\t\tscreen.shapesOnScreen.add(square);\t\t\t\t\t\t \t\t\r\n\t\t\r\n\t\t// Create a second shape square\r\n\t\tPoint secondOrigin = new Point(500,500); \r\n\t\tList<Double> secondList = new ArrayList<Double>(); \r\n double secondSide = 5.0; \r\n secondList.add(secondSide); \t\t\t\t\t\t\t\t \r\n\t\tShape secondSquare = ShapeFactory.createShape(0, secondOrigin, secondList); \r\n\t\tscreen.shapesOnScreen.add(secondSquare);\t\t\t\t\t\r\n\t\t\r\n\t\t// Create a third shape circle\r\n\t\tPoint thirdOrigin = new Point(25,100); \r\n\t\tList<Double> thirdList = new ArrayList<Double>(); \r\n double radius = 14.0; \r\n thirdList.add(radius); \t\t\t\t\t\t\t\t\t\t \r\n\t\tShape circle = ShapeFactory.createShape(3, thirdOrigin, thirdList); // 3 for creation of circle\r\n\t\tscreen.shapesOnScreen.add(circle);\t\t\r\n\t\t\r\n\t\t// Point to check for shapes enclosing it\r\n\t\tPoint point = new Point(26, 101);\r\n\t\tList<Shape> shapesEnclosingPoint = screen.getListOfShapesEnclosingGivenPoint(point);\r\n\t\t\r\n\t\t// Expected shapes in the list\r\n\t\tList<Shape> expectedList = new ArrayList<Shape>();\r\n\t\texpectedList.add(square);\r\n\t\texpectedList.add(circle);\r\n\t\t\r\n\t\tassertEquals( expectedList, shapesEnclosingPoint );\t\r\n\t}", "public static void main(String[] args) {\n\t\tPoint point1=new Point(10,20);\r\n\t\tPoint point2=new Point(10,20);\r\n\t\tPoint point3=point2;\r\n\t\t\r\n\t\t\r\n\t\t//==연산자에서 두개의 항이 객체 참조 변수 인 경우\r\n\t\t//두 객체의 동일 여부(동일성)\r\n\t\tSystem.out.println(point1==point2);\r\n\t\tSystem.out.println(point2==point3);\r\n\t\t\r\n\t\t//두 객체의 동질성 비교를 할때에는 equals메소드를 사용\r\n\t\t//equals가 오버라이드가 안된경우에는 == 와 완전히 동일(해쉬코드를 비교하기때문에)\r\n\t\tSystem.out.println(point1.equals(point2));\r\n\t\tSystem.out.println(point2.equals(point3));\r\n\t\t\r\n\t\tSystem.out.println(\"=================\");\r\n\t\t\r\n\t\t/*String 객체와 비교*/\r\n\t\tString s1=new String(\"hello\");\r\n\t\tString s2=new String(\"hello\");\r\n\t\tString s3=s2;\r\n\t\tSystem.out.println(s1==s2);\r\n\t\tSystem.out.println(s2==s3);\r\n\t\t\r\n\t\tSystem.out.println(s1.equals(s2));//오버라이드 되었기에 내용비교\r\n\t\tSystem.out.println(s2.equals(s3));\r\n\t\t\r\n\t\t\r\n\t\t//hashcode()비교\r\n\t\tSystem.out.println(s1.hashCode());\r\n\t\tSystem.out.println(s2.hashCode());\r\n\t\tSystem.out.println(System.identityHashCode(s1));//override했을때 hashcode의 참조값을 보고싶을떄\r\n\t\tSystem.out.println(System.identityHashCode(s2));\r\n\t\t\r\n\t\t//String Literal\r\n\t\tString str1=\"hello\";\r\n\t\tString str2=\"hello\";\r\n\t\tString str3=str2;\r\n\t\t\r\n\t\tSystem.out.println(str1==str2);//true로 나오는 이유는 String특성상 문자열상수pool에서 같은 값이 있는지 찾아보고 있으면 같은 hashcode를 써버림//Integer도 마찬가지 정수형 상수 Pool\r\n\t\tSystem.out.println(str2==str3);\r\n\t}", "public static void main(String[] args) {\n\t\tCircle a = new Circle();\n\t\tSystem.out.println(a);\n\t\t\n\t\t//Rectangle\n\t\tRectangle b = new Rectangle(33.3, 22.2, \"green\", false);\n\t\tSystem.out.println(b);\n\t\t\n\t\t//compare a & b's areas\n\t\tSystem.out.println(equalArea(a, b)? \"\":\"not\" + \" equal\");\n\t\t\n\t\t\n\t}", "public boolean equals(Circle circle) {\r\n return radius == circle.getRadius();\r\n }", "@Test\r\n public void testGetEnclosingShapes() {\r\n List<Shape> expectedOutput = new ArrayList<Shape>();\r\n expectedOutput.add(circle);\r\n expectedOutput.add(square);\r\n assertEquals(expectedOutput, screen.getEnclosingShapes(new Point(5, 5)));\r\n }", "@Test\n public void testEquals04() {\n System.out.println(\"equals\");\n\n Set<City> cities = new HashSet<>();\n cities.add(new City(new Pair(41.243345, -8.674084), \"city0\", 28));\n cities.add(new City(new Pair(41.237364, -8.846746), \"city1\", 72));\n cities.add(new City(new Pair(40.519841, -8.085113), \"city2\", 81));\n cities.add(new City(new Pair(41.118700, -8.589700), \"city3\", 42));\n cities.add(new City(new Pair(41.467407, -8.964340), \"city4\", 64));\n cities.add(new City(new Pair(41.337408, -8.291943), \"city5\", 74));\n cities.add(new City(new Pair(41.314965, -8.423371), \"city6\", 80));\n cities.add(new City(new Pair(40.822244, -8.794953), \"city7\", 11));\n cities.add(new City(new Pair(40.781886, -8.697502), \"city8\", 7));\n cities.add(new City(new Pair(40.851360, -8.136585), \"city9\", 65));\n\n Object otherObject = new SocialNetwork(new HashSet(), cities);\n boolean result = sn10.equals(otherObject);\n assertFalse(result);\n }", "static void testCircle(){\n List<Circle> cArr = new ArrayList<>(Arrays.asList(new Circle(new Point(0, 0), new Point(0, 1)),\n new Circle(new Point(0,0),new Point(0,4)),\n new Circle(new Point(0,0),new Point(0,2))));\n\n System.out.println(cArr);\n System.out.printf(\"Circle class->%b\\n\", cArr.toString().equals(\n \"[[radius = 1.00, area = 3.14, perimeter = 6.28], \" +\n \"[radius = 4.00, area = 50.27, perimeter = 25.13], \" +\n \"[radius = 2.00, area = 12.57, perimeter = 12.57]]\"));\n }", "public static void main(String[] args) {\n\t\tPoint p = new Point();\n\t\tSystem.out.println(p.getClass());\n\t\tSystem.out.println(p.hashCode());\n\t\tSystem.out.println(p.toString());\n\t\tSystem.out.println(p);\n\t\tSystem.out.println(0x15db9742);\n\t\t\n\t\tPoint p2 = new Point();\n\t\tSystem.out.println(p2.getClass());\n\t\tSystem.out.println(p2.hashCode());\n\t\tSystem.out.println(p2.toString());\n\t\tSystem.out.println(p2);\n\t\tSystem.out.println();\n\t\t\n\t\tSystem.out.println(p2.getClass().getName()+\" \"+ Integer.toHexString(p2.hashCode()));\n\t\t\n\t\tPoint p3 =new Point();\n\t\tif(p.hashCode() == p3.hashCode()) {\n\t\t\tSystem.out.println(\"same\");\n\t\t} else {\n\t\t\tSystem.out.println(\"diff\");\n\t\t}\n\t\t//\n\t\t//\n\t\tPoint p4;\n\t\tp4 = p;\n\t\tif(p.hashCode() == p4.hashCode()) {\n\t\t\tSystem.out.println(\"same\");\n\t\t} else {\n\t\t\tSystem.out.println(\"diff\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public boolean equals(Object other) {\n if (this == other) {\n return true;\n }\n if (!(other instanceof Rectangle)) {\n return false;\n }\n Rectangle r = (Rectangle) other;\n return (this.name.equals(r.name))\n && (this.color.equals(r.color))\n && (this.xPos == r.xPos)\n && (this.yPos == r.yPos)\n && (Double.compare(this.width, r.width) == 0)\n && (Double.compare(this.height, r.height) == 0)\n && this.startTime == r.startTime\n && this.endTime == r.endTime;\n }", "@Override\n public boolean equals( GeoShape shape, double epsilon ){\n boolean response;\n if (!(shape instanceof GeoLine)){\n response = false;\n }\n else {\n response = super.equals(shape,epsilon);\n }\n return response;\n }", "public boolean equals(Circle c) {\r\n return this.center.equals(c.center) && this.radius == c.radius;\r\n }", "public void testEqualsObject() {\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.0\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.1\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.2\")); //$NON-NLS-1$\n\t\t\tif (tipo1 != tipo1)\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.3\")); //$NON-NLS-1$\n\t\t\tif (!tipo1.equals(tipo2))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.4\"));\t\t\t //$NON-NLS-1$\n\t\t\tif (tipo1.equals(tipo3))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.5\"));\t //$NON-NLS-1$\n\t\t}", "public static void main(final String[] args) {\r\n Shape myRec = new Rectangle(10.0f, 20.0f);\r\n System.out.println(\"Rectangle\");\r\n printAreaOf(myRec);\r\n printPerimeterOf(myRec);\r\n Shape mySqu = new Square(10.0f);\r\n System.out.println(\"Square\");\r\n printAreaOf(mySqu);\r\n printPerimeterOf(mySqu);\r\n System.out.println(\"Circle\");\r\n Shape myCir = new Circle(10.0f);\r\n printAreaOf(myCir);\r\n printPerimeterOf(myCir);\r\n System.out.println(\"Triangle\");\r\n Shape myTri = new Triangle(3.0f, 4.0f, 5.0f);\r\n printAreaOf(myTri);\r\n printPerimeterOf(myTri);\r\n System.out.println(\"Regular polygon 3 sides\");\r\n Shape rp1 = new RegularPolygon(10.0f, 3);\r\n printAreaOf(rp1);\r\n printPerimeterOf(rp1);\r\n System.out.println(\"Regular polygon 4 sides\");\r\n Shape rp2 = new RegularPolygon(new Float(5 * Math.sqrt(2f) / 2), 4);\r\n printAreaOf(rp2);\r\n printPerimeterOf(rp2);\r\n System.out.println(\"Regular polygon 999 sides\");\r\n Shape rp3 = new RegularPolygon(1f, 999);\r\n printAreaOf(rp3);\r\n printPerimeterOf(rp3);\r\n System.out.println(Math.PI * 2);\r\n try {\r\n Shape tr = new Triangle(0f, 1f, 2f);\r\n } catch (IllegalArgumentException e) {\r\n System.out.format(\"Erreur during creation of shape: %s\\n\"\r\n + e.getMessage());\r\n }\r\n\r\n }", "@Test\n public void testEqualsFalse() {\n Rectangle r5 = new Rectangle(7, 5, new Color(255, 0, 0), new Position2D(50, 75));\n Rectangle r6 = new Rectangle(0, 4, new Color(255, 255, 254),\n new Position2D(-50, 75));\n Rectangle r7 = new Rectangle(0, 4, new Color(255, 155, 255),\n new Position2D(-50, 75));\n Rectangle r8 = new Rectangle(0, 4, new Color(0, 255, 255),\n new Position2D(-50, 75));\n Rectangle r9 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(50, 75));\n Rectangle r10 = new Rectangle(7, 0, new Color(255, 255, 0), new Position2D(51, -75));\n Rectangle r11 = new Rectangle(1, 0, new Color(200, 150, 133),\n new Position2D(-50, -75));\n Rectangle r12 = new Rectangle(1, 100, new Color(199, 155, 13),\n new Position2D(50, 0));\n\n assertNotEquals(r1, r5);\n assertNotEquals(r2, r6);\n assertNotEquals(r2, r7);\n assertNotEquals(r2, r8);\n assertNotEquals(r3, r9);\n assertNotEquals(r3, r10);\n assertNotEquals(r4, r11);\n assertNotEquals(r4, r12);\n }", "public boolean equals(Circle c) {\n boolean outcome;\n\n if (this.getOrigin().equals(c.getOrigin()) &&\n (this.getRadius() == c.getRadius())) {\n return outcome = true;\n }\n else {\n return outcome = false;\n }\n }", "@Override\n public boolean equals(Object o) {\n if (!(o instanceof Arrow)) return false;\n\n Arrow a = (Arrow) o;\n return from.equals(a.from) && to.equals(a.to) && color.equals(a.color);\n }", "public static void main(String[] args){ Rectangle box1 = new Rectangle(5,4);\n// System.out.println(box1.getArea());\n// System.out.println(box1.getPerimeter());\n//// Rectangle box2 = new Square(5);\n// System.out.println(box2.getArea());\n// System.out.println(box2.getPerimeter());\n//\n Measurable box1 = new Square(5);\n System.out.println(\"Square \" + box1.getPerimeter());\n System.out.println(\"Square \" + box1.getArea());\n box1 = new Rectangle(4,5);\n System.out.println(\"Rectangle \" + box1.getPerimeter());\n System.out.println(\"Rectangle \" + box1.getArea());\n }", "@Override\n public boolean equals (Object o) {\n ColorClass c;\n return this == o || o instanceof ColorClass && (c = (ColorClass)o).name().equals( name() ) && \n this.ordered == c.ordered && Arrays.equals(this.constraints, c.constraints);\n }", "public void testEquals() {\n assertTrue(RectangleAnchor.TOP.equals(RectangleAnchor.TOP));\n }", "public static void main(String[] args) \n\t{\n\t\t\n\t\tRectangle rec5=new Rectangle(4,5);\n\t\tRectangle rec6=new Rectangle(4,5);\n\t\tSystem.out.println(\"hashcodes \"+rec5.hashCode() +\" \"+rec6.hashCode());\n\t\tSystem.out.println(\"objects equals check \"+rec5.equals(rec6));\n\t\tSystem.out.println(\"objects equals check \"+ (rec5==rec6));\n\t\t\n\t\t/*Rectangle rec7=new Rectangle(4,5);\n\t\tRectangle rec8=rec7;\n\t\tSystem.out.println(\"objects equals check \"+rec7.equals(rec8));\n\t\tSystem.out.println(\"objects equals check \"+ (rec7==rec8));\n\t\t*/\n\t\t\n\t\n\t\t\n\t}", "@Test\r\n public void testCircleDoubler() {\r\n System.out.println(\"testCircleDoubler\");\r\n ad = new AreaDoubler();\r\n c.accept(ad);\r\n \r\n Circle dc = (Circle)ad.getFigureDoubled();\r\n double r2 = c.getRadius()* Math.sqrt(2.0);\r\n assertEquals(r2, dc.getRadius(), 0.02);\r\n\r\n }", "public static void main(String[] args) {\n\n Quadrilateral myShape = new Rectangle(7,6);\n\n System.out.println(\"myShape.getArea() = \" + myShape.getArea());\n System.out.println(\"myShape.getPerimeter() = \" + myShape.getPerimeter());\n\n\n\n\n// System.out.println(\"~~~~~~~~~~~~~~~~~~~~\");\n//\n// Rectangle box1 = new Rectangle(5, 4);\n// System.out.println(box1.getPerimeter());\n// System.out.println(box1.getArea());\n//\n// System.out.println(\"~~~~~~~~~~~~~~~~~~~~\");\n//\n// Rectangle box2 = new Square(5);\n// System.out.println(box2.getPerimeter());\n// System.out.println(box2.getArea());\n//\n// System.out.println(\"~~~~~~~~~~~~~~~~~~~~\");\n//\n// Rectangle box3 = new Rectangle(6, 9);\n// System.out.println(box3.getPerimeter());\n// System.out.println(box3.getArea());\n//\n// System.out.println(\"~~~~~~~~~~~~~~~~~~~~\");\n//\n// Rectangle box4 = new Square(8);\n// System.out.println(box4.getPerimeter());\n// System.out.println(box4.getArea());\n\n }", "public boolean equals(Object obj) {\n/* 432 */ if (obj == this) {\n/* 433 */ return true;\n/* */ }\n/* 435 */ if (!(obj instanceof StatisticalLineAndShapeRenderer)) {\n/* 436 */ return false;\n/* */ }\n/* 438 */ StatisticalLineAndShapeRenderer that = (StatisticalLineAndShapeRenderer)obj;\n/* */ \n/* 440 */ if (!PaintUtilities.equal(this.errorIndicatorPaint, that.errorIndicatorPaint))\n/* */ {\n/* 442 */ return false;\n/* */ }\n/* 444 */ if (!ObjectUtilities.equal(this.errorIndicatorStroke, that.errorIndicatorStroke))\n/* */ {\n/* 446 */ return false;\n/* */ }\n/* 448 */ return super.equals(obj);\n/* */ }", "static void testRectangle(Point a, Point b, Point c, Point d){\n Rectangle rect1 = new Rectangle(a,b,c,d);\n System.out.print(\"Perimeter of rectangle=\"+rect1.calculatePerimeter());\n System.out.printf(\"->%b\\n\", String.format(\"%.2f\", rect1.calculatePerimeter()).equals(\"16.00\"));\n System.out.print(\"Area of rectangle=\"+rect1.calculateArea());\n System.out.printf(\"->%b\\n\", String.format(\"%.2f\", rect1.calculateArea()).equals(\"16.00\"));\n System.out.println(rect1); //prints the return value from rect1.toString()\n }", "public static void main(String[] args){\n\n Measurable myShape1 = new Square(5,5);\n System.out.println(myShape1.getPerimeter());\n Measurable myShape2 = new Rectangle(5,10);\n System.out.println(myShape2.getPerimeter());\n\n System.out.println(myShape2.getArea()+ \" \" + \"is the area of rectangle and , \" + myShape1.getArea()+ \" \" + \"is the area of my square.\");\n\n\n\n }", "public void describeEqualSides() {\n for (Shape shape : shapes) {\n if ((shape instanceof Triangle && ((Triangle) shape).isEquilateral‬‬())\n || shape instanceof Rectangle && ((Rectangle) shape).isSquare‬‬())\n System.out.println(shape.toString());\n }\n }", "@Override\n public boolean isEqualTo(CollisionShape otherCollisionShape) {\n ConeShape otherShape = (ConeShape) otherCollisionShape;\n return (radius == otherShape.radius && halfHeight == otherShape.halfHeight);\n }", "@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tif(obj.equals(radius)){\r\n\t\treturn super.equals(obj);\r\n\t\t}else {\r\n\t\t\treturn !super.equals(obj);\r\n\t\t}\r\n\t}", "public boolean isEqual(Triangle t){\n return((a==t.a)&&(b==t.b)&&(c==t.c));\n }", "boolean equals(Point other) {\n //System.out.println(\"Calling our equals method now!\");\n return (this.x == other.x) && (this.y == other.y);\n }", "public void testHashCode() {\r\n System.out.println(\"hashCode\");\r\n\r\n ParametricLine2d instance = new ParametricLine2d();\r\n ParametricLine2d instanceTwo = new ParametricLine2d();\r\n\r\n assertEquals(instance.hashCode(), instanceTwo.hashCode());\r\n\r\n instance.point.x += Double.MIN_VALUE;\r\n assertTrue(instance.hashCode() != instanceTwo.hashCode());\r\n }", "public static void main(String[] args) {\n\n Sviesoforas s1 = new Sviesoforas(44,55,Color.RED);\n Sviesoforas s2 = new Sviesoforas(44,55,Color.GREEN);\n Sviesoforas s3 = new Sviesoforas(44,55,Color.YELLOW);\n\n System.out.println(Color.RED);\n\n// Color.red = Color.yellow;\n// System.out.println(Color.red);\n\n// class ColorEx extends Color {\n//\n// public ColorEx() {\n// }\n// }\n s1.setTipas(Tipas.A);\n s2.setTipas(Tipas.B);\n s3.setTipas(Tipas.C);\n\n// if ( s3.getTipas().equals(Tipas.C)) {\n if ( s3.getTipas() == Tipas.C) {\n System.out.println(\"s3 yra tipo C \");\n\n }\n }", "public static void main(String[] args) {\n Circle circle1 = new Circle(1);\n System.out.println(circle1.toString());\n circle1.printCircle();\n System.out.println(circle1.getArea() + \" \" + circle1.getPerimeter() );\n\n System.out.println();\n System.out.println();\n\n Rectangle rec1 = new Rectangle(2,2);\n System.out.println(rec1.toString());\n System.out.println(rec1.getHeight() + \" \" + rec1.getWidth());\n System.out.println(rec1.getPerimeter() + \" \" + rec1.getArea());\n\n\n\n\n }", "public void testEquals() {\n XYBlockRenderer r1 = new XYBlockRenderer();\n XYBlockRenderer r2 = new XYBlockRenderer();\n r1.setBlockHeight(2.0);\n r2.setBlockHeight(2.0);\n r1.setBlockWidth(2.0);\n r2.setBlockWidth(2.0);\n r1.setPaintScale(new GrayPaintScale(0.0, 1.0));\n r2.setPaintScale(new GrayPaintScale(0.0, 1.0));\n }", "public void equalsCheck() {\n System.out.println(\"\\nTesting TreeNode.equals with simple objects\");\n\n //Create two simple objects for testing\n TreeNode testOne = new TreeNode(new Data(\"Test\", 1) );\n TreeNode testTwo = new TreeNode(new Data(\"Test\", 1) );\n\n //Test that a simple object equals itself.\n assertTrue(testOne.equals(testOne));\n assertTrue(testTwo.equals(testTwo));\n\n // Create to objects simple that should be the same \n assertTrue(testOne.equals(testTwo));\n assertTrue(testTwo.equals(testOne));\n\n //-------------------------------------------------------\n\n System.out.println(\"Testing TreeNode.equals with complex objects\");\n \n //Complex node 1\n TreeNode child1One = new TreeNode(new Data(\"Child1\", 2));\n TreeNode child2One = new TreeNode(new Data(\"Child2\", 3));\n TreeNode child3One = new TreeNode(new Data(\"Child3\", 4));\n testOne.insert(child1One);\n testOne.insert(child2One);\n testOne.insert(child3One);\n\n TreeNode child12One = new TreeNode(new Data(\"Child2Child1\", 5) );\n child2One.insert(child12One);\n\n //Complex node 2\n TreeNode child1Two = new TreeNode(new Data(\"Child1\", 2));\n TreeNode child2Two = new TreeNode(new Data(\"Child2\", 3));\n TreeNode child3Two = new TreeNode(new Data(\"Child3\", 4));\n testTwo.insert(child1Two);\n testTwo.insert(child2Two);\n testTwo.insert(child3Two);\n\n TreeNode child12Two = new TreeNode(new Data(\"Child2Child1\", 5) );\n child2Two.insert(child12Two);\n\n //Test that a complex object equals itself.\n assertTrue(testOne.equals(testOne));\n assertTrue(testTwo.equals(testTwo));\n\n // Create to complex simple that should be the same\n assertTrue(testOne.equals(testTwo));\n assertTrue(testTwo.equals(testOne));\n\n\n // --------------------------------------\n System.out.println(\"Testing TreeNode.equals (not Equal) with complex objects\");\n\n child2One.getNodeData().setId(10);\n \n // Check that to not equal objects return false\n assertFalse(testOne.equals(testTwo));\n assertFalse(testTwo.equals(testOne));\n\n // Test that it return false with different parents\n child2One.getNodeData().setId(1);\n child12One.remove(child12One);\n\n\n // Check that to not equal objects return false\n assertFalse(testOne.equals(testTwo));\n assertFalse(testTwo.equals(testOne));\n\n\n }", "public boolean equals(Circle circle) {\n return this.radius == circle.getRadius();\n }", "@Test\n\tpublic void testContains() {\n\t\tLine l1 = new Line(0, 0, 1, 0);\n\t\tLine l2 = new Line(0, 0, 0, 1);\n\t\tLine l3 = new Line(0, 0, 1, 1);\n\t\tLine l4 = new Line(2.65, 0.3, 2.65, 0.9);\n\n\t\tassertTrue(\"l1 does not contain point (0.5, 0)\",\n\t\t\t\tl1.contains(new Coord(0.5, 0)));\n\t\tassertTrue(\"l2 does not contain point (0, 0.5)\",\n\t\t\t\tl2.contains(new Coord(0, 0.5)));\n\t\tassertTrue(\"l3 does not contain point (0.5, 0.5)\",\n\t\t\t\tl3.contains(new Coord(0.5, 0.5)));\n\n\t\tassertTrue(\n\t\t\t\t\"l4 does not contain (2.6499999999999995, 0.46083784792155075)\",\n\t\t\t\tl4.contains(new Coord(2.6499999999999995, 0.46083784792155075)));\n\n\t\t// Check endpoints for l1\n\t\tassertTrue(\"l1 does not contain point (0, 0)\",\n\t\t\t\tl1.contains(new Coord(0, 0)));\n\t\tassertTrue(\"l1 does not contain point (1, 0)\",\n\t\t\t\tl1.contains(new Coord(1, 0)));\n\t}", "public void testArea() {\n\t CircleArc2D whole = new CircleArc2D(-10, -10, 5, 0, 4*PI);\r\n\t double expectedAreaWhile = PI*25; // \\pi * 5^2\r\n\r\n\t assertEquals(expectedAreaWhile, whole.getArea());\r\n\r\n\t // TODO: Pull in JCheck to supercharge this.\r\n\t Random r = new Random();\r\n\t double sweepExtent = r.nextDouble();\r\n\t CircleArc2D partial = new CircleArc2D(-10, -10, 5, 45, (4*PI)/sweepExtent);\r\n\t double expectedAreaParial = expectedAreaWhile / sweepExtent;\r\n\r\n\t assertEquals(expectedAreaParial, partial.getArea(), 0.0001);\r\n\t }", "@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (super.equals(obj)) return true;\r\n\t\tif (!obj.getClass().equals(this.getClass())) return false;\r\n\t\tPoint p = (Point) obj;\r\n\t\tif ((this.x == p.x) && (this.y == p.y)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean equals(Object other) {\n System.out.println(\"Calling our equals method now!\");\n\n if (other == null) {\n return false;\n }\n\n if (!(other instanceof Point)) {\n return false;\n }\n\n // other must be a Point here\n Point p = (Point) other;\n return (this.x == p.x) && (this.y == p.y);\n }", "protected abstract boolean isShapeSimple();", "@Override\n public boolean equals(Object o) {\n if (o == this) { \n return true; \n } \n \n /* Check if o is an instance of Complex or not \n \"null instanceof [type]\" also returns false */\n if (!(o instanceof Path)) { \n return false; \n } \n \n // typecast o to Complex so that we can compare data members \n Path p = (Path) o; \n \n // Compare the data members and return accordingly \n return (this.startingPointIndex == p.startingPointIndex && this.distance == p.distance);\n }", "@Test\n public void testToString() {\n assertEquals(\n \"Type: RECTANGLE\\n\"\n + \"Color: (10,10,10)\\n\"\n + \"Position: (0.00, 100.00)\\n\"\n + \"Size: Width: 20.00, Height: 20.00\",\n defaultShape1.toString());\n // Mutating\n Color defaultSetColor = new Color(0, 0, 0);\n Position defaultPosition = new Position(20, 30);\n Size defaultSize = new Size(50, 50);\n defaultShape1 = new Oval(defaultSetColor, defaultPosition, defaultSize);\n assertEquals(\n \"Type: OVAL\\n\"\n + \"Color: (0,0,0)\\n\"\n + \"Position: (20.00, 30.00)\\n\"\n + \"Size: Width: 50.00, Height: 50.00\",\n defaultShape1.toString());\n\n // Testing toString on the OvalObject.\n assertEquals(\n \"Type: OVAL\\n\"\n + \"Color: (100,100,100)\\n\"\n + \"Position: (50.00, 50.00)\\n\"\n + \"Size: Width: 25.00, Height: 25.00\",\n defaultShape2.toString());\n // Mutating\n Color newDefaultSetColor = new Color(3, 3, 3);\n Position newDefaultPosition = new Position(23, 32);\n Size newDefaultSize = new Size(1, 11);\n defaultShape2 = new Oval(newDefaultSetColor, newDefaultPosition, newDefaultSize);\n assertEquals(\n \"Type: OVAL\\n\"\n + \"Color: (3,3,3)\\n\"\n + \"Position: (23.00, 32.00)\\n\"\n + \"Size: Width: 1.00, Height: 11.00\",\n defaultShape2.toString());\n }", "@Test\r\n public void testDrawingDoubler() {\r\n System.out.println(\"testDrawingDoubler\");\r\n ad = new AreaDoubler();\r\n d.accept(ad);\r\n \r\n Drawing dd = (Drawing)ad.getFigureDoubled();\r\n Circle dd_c = (Circle) dd.getComponents().get(0);\r\n Rectangle dd_r = (Rectangle) dd.getComponents().get(1);\r\n \r\n \r\n Circle c_doubled = (Circle)d.getComponents().get(0);\r\n double c_radius_doubled = c_doubled.getRadius()* Math.sqrt(2.0);\r\n \r\n assertEquals(c_radius_doubled, dd_c.getRadius(), 0.02);\r\n \r\n Rectangle r_doubled = (Rectangle)d.getComponents().get(1);\r\n double r_height_doubled = r_doubled.getHeight()* Math.sqrt(2.0);\r\n double r_width_doubled= r_doubled.getWidth()*Math.sqrt(2.0);\r\n \r\n assertEquals(r_height_doubled, dd_r.getHeight(), 0.02);\r\n assertEquals(r_width_doubled, dd_r.getWidth(), 0.02);\r\n \r\n }", "public boolean equals(Cuboid c) {\n\tif (getHeight() == c.getHeight() && getWidth() == c.getWidth() && depth == c.depth) {\n\t return true;\n\t}\n\telse {\n\t return false;\n\t}\n }", "@Test\n public void testEquals() {\n Coctail c1 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n Coctail c2 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n assertEquals(c1, c2);\n }", "@Test\n\tpublic void testEquals() {\n\t\tPMUser user = new PMUser(\"Smith\", \"John\", \"[email protected]\");\n\t\tPark a = new Park(\"name\", \"address\", user);\n\t\tPark b = new Park(\"name\", \"address\", user);\n\t\tPark c = new Park(\"name\", \"different address\", user);\n\t\tassertEquals(a, a);\n\t\tassertEquals(a, b);\n\t\tassertEquals(b, a);\n\t\tassertFalse(a.equals(c));\n\t}", "@Test\n public void testEquals() {\n System.out.println(\"Animal.equals\");\n Animal newAnimal = new Animal(252, \"Candid Chandelier\", 10, \"Cheetah\", 202);\n assertTrue(animal1.equals(newAnimal));\n assertFalse(animal2.equals(newAnimal));\n }", "public static void main(String[] args) {\n\n Color color = new Color();\n color.setIntensity(10);\n color.setName(\"Green\");\n Shape.color = color; // aici se modifica campul color la nivel de clasa\n // Shape.color - variabilele si methodele se acceseaza cu numele clasei iar schimbarea este vizibila in toate instantele clasei\n// shape.setColor(color); // bad practice , nu e ok sa avem getteri si setteri pentru variabile statice\n// shape1.setAria(1); // aici se modifica valoarea campului aria numai in obiectul shape1\n\n// System.out.println(shape1.getAria());\n// System.out.println(Shape.color);\n// System.out.println(shape1.color1);\n\n// System.out.println(shape2.color1);\n// Color color2 = new Color();\n// color2.setIntensity(110);\n// color2.setName(\"Red\");\n// shape2.color = color2; // e acelasi lucru ca si atunci cand schimbam valoarea campului static cu numele clasei, tot la nivel de clasa se schimba si asa pentru ca e static\n // cum e aici schimbat nu e ok- (bad practice) pentru ca ne poate induce in eroare, color fiid un camp static el trebuie accesat cu numele clasei\n // chiar si cand folosim numele unei instante a clasei , schimbarea este vizibila in toate celelalte intante ale clasei\n// System.out.println(shape2.color);\n// System.out.println(shape3.color);\n// System.out.println(shape4.color);\n }", "@Override\n public boolean equals(Object obj) {\n // this code provided by Dave Houtman [2020] personal communication\n if (!(obj instanceof Property))\n return false;\n Property prop = (Property) obj;\n return this.getXLeft() == prop.getXLeft() && this.getYTop() == prop.getYTop() && hasSameSides(prop);\n }", "@Test\n public void getColorTest() {\n assertTrue(red_piece.getColor() == Piece.Color.RED);\n assertTrue(white_piece.getColor() == Piece.Color.WHITE);\n }", "@Test\r\n public void testSortShapeWithArea()\r\n {\r\n // Screen screen = new Screen();\r\n \r\n Point originOfSquare = new Point(1,1);\r\n List<Double> listOne = new ArrayList<Double>();\r\n listOne.add(2.0);\r\n Shape square = ShapeFactory.createShape(0, originOfSquare, listOne); \r\n \r\n Point originOfCircle = new Point(1,1);\r\n List<Double> listTwo = new ArrayList<Double>();\r\n listTwo.add(2.0);\r\n Shape circle = ShapeFactory.createShape(3, originOfCircle, listTwo);\r\n \r\n Point orignOfTriangle = new Point(1,1);\r\n List<Double> listThree = new ArrayList<Double>();\r\n listThree.add(4.0);\r\n listThree.add(3.0);\r\n listThree.add(4.0);\r\n listThree.add(5.0);\r\n Shape triangle = ShapeFactory.createShape(2, orignOfTriangle, listThree);\r\n \r\n screen.addNewShapeToScreen(square);\r\n screen.addNewShapeToScreen(circle);\r\n screen.addNewShapeToScreen(triangle);\r\n \r\n screen.sortShapesOnCriteria(SortCriteria.AREA); // Sort list on the basis of area\r\n \r\n assertEquals(4.0, screen.shapesOnScreen.get(0).getArea(), 0);\r\n assertEquals(6.0, screen.shapesOnScreen.get(1).getArea(), 0);\r\n assertEquals(12.56, screen.shapesOnScreen.get(2).getArea(), 0);\r\n \r\n }", "public boolean isCircle();", "@Override\n public boolean equals(Object o) {\n\t// TODO\n\tif(o == null)\n\t\treturn false;\n\tif(o instanceof Square){\n\t //test if they have the same side and whether their upperleft\n\t //points point to the same reference\n\t return super.equals((Square)o) &&\n\t\tthis.getSide() == ((Square)o).getSide();\n\t}\n\treturn false;\n }", "@Test\n public void equalsFalseDifferentPiece() {\n Player player1 = new Player(PlayerColor.BLACK, \"\");\n player1.addPiece(new Piece(PlayerColor.BLACK, 1));\n\n Player player2 = new Player(PlayerColor.BLACK, \"\");\n player2.addPiece(new Piece(PlayerColor.BLACK, 2));\n\n assertFalse(player1.equals(player2));\n }", "public static void main(String[] args) {\n Pair first = new Pair(\"Pesho\", \"Gosho\");\r\n Pair second = new Pair(\"Pesho\", \"Gosho\");\r\n Pair third = new Pair(\"Pesho\", \"Mariika\");\r\n \r\n System.out.println(first.equals(second));\r\n System.out.println(first.equals(third));\r\n }", "@Test\n public void testEquality() {\n final Decimal P1 = new Decimal(700);\n final Decimal A1 = new Decimal(15.2);\n final int C1 = 5;\n Order o1 = new Order(P1, A1, C1);\n assertFalse(o1.equals(null));\n Order o2 = new Order(P1, A1, C1);\n assertTrue(o1.equals(o2));\n \n final Decimal P2 = new Decimal(0.0000000007);\n final Decimal A2 = new Decimal(15.2);\n final int C2 = 4;\n o2 = new Order(P2, A2, C2);\n assertFalse(o1.equals(o2));\n assertFalse(o2.equals(o1));\n o1 = new Order(P2, A2, C2);\n assertTrue(o1.equals(o2));\n\n // Try null count\n o2 = new Order(P2, A2, null);\n assertFalse(o1.equals(o2));\n assertFalse(o2.equals(o1));\n \n o1 = new Order(P2, A2, 0);\n assertFalse(o1.equals(o2));\n assertFalse(o2.equals(o1));\n o1 = new Order(P2, A2, -1);\n assertFalse(o1.equals(o2));\n assertFalse(o2.equals(o1));\n \n // Try both with null count\n o1 = new Order(P2, A2, null);\n assertTrue(o2.equals(o1));\n \n }", "@Test\n public void equals() {\n float[] a = new float[] {1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n float[] b = new float[] {2.0f, 1.0f, 6.0f, 3.0f, 4.0f, 5.0f, 6.0f}; \n assertTrue(Vec4f.equals(a, 2, b, 3));\n assertTrue(! Vec4f.equals(a, 0, b, 0));\n \n float[] a4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f}; \n \n float[] b4 = new float[] {1.0f, 2.0f, 3.0f, 4.0f};\n float[] c4 = new float[] {2.0f, 2.0f, 3.0f, 4.0f};\n float[] d4 = new float[] {1.0f, 4.0f, 3.0f, 4.0f};\n float[] e4 = new float[] {1.0f, 2.0f, 6.0f, 4.0f};\n float[] f4 = new float[] {1.0f, 2.0f, 3.0f, 5.0f};\n assertTrue(Vec4f.equals(a4,b4));\n assertTrue(!Vec4f.equals(a4,c4));\n assertTrue(!Vec4f.equals(a4,d4));\n assertTrue(!Vec4f.equals(a4,e4));\n assertTrue(!Vec4f.equals(a4,f4)); \n }", "public static void main(String[] args) {\n\n Shape circle = new Circle(5);\n System.out.println(circle.getArea());\n System.out.println(circle.getCircuit());\n Shape triangle = new Triangle(3,5,4,3);\n System.out.println(triangle.getCircuit());\n System.out.println(triangle.getArea());\n Shape square = new Square(5);\n System.out.println(square.getArea());\n System.out.println(square.getCircuit());\n\n Person person = new Person(\"Grzegorz\",40,new Medical(1111,\"Kierowanie Karetką\"));\n System.out.println(person.getResponsibilities());\n\n }", "public void testEquals() throws Exception {\n State state1 = new State();\n state1.setCanJump(1);\n state1.setDirection(1);\n state1.setGotHit(1);\n state1.setHeight(1);\n state1.setMarioMode(1);\n state1.setOnGround(1);\n state1.setEnemiesSmall(new boolean[3]);\n state1.setObstacles(new boolean[4]);\n state1.setDistance(1);\n state1.setStuck(1);\n\n State state2 = new State();\n state2.setCanJump(1);\n state2.setDirection(1);\n state2.setGotHit(1);\n state2.setHeight(1);\n state2.setMarioMode(1);\n state2.setOnGround(1);\n state2.setEnemiesSmall(new boolean[3]);\n state2.setObstacles(new boolean[4]);\n state2.setStuck(1);\n\n State state3 = new State();\n state3.setCanJump(1);\n state3.setDirection(1);\n state3.setGotHit(1);\n state3.setHeight(1);\n state3.setMarioMode(2);\n state3.setOnGround(1);\n state3.setEnemiesSmall(new boolean[3]);\n state3.setObstacles(new boolean[4]);\n assertEquals(state1,state2);\n assertTrue(state1.equals(state2));\n assertFalse(state1.equals(state3));\n Set<State> qTable = new HashSet<State>();\n qTable.add(state1);\n qTable.add(state2);\n assertEquals(1,qTable.size());\n qTable.add(state3);\n assertEquals(2,qTable.size());\n\n }", "public static void main(String[] args) {\n\t\tArrayList<Shape> list = new ArrayList<Shape>();\r\n\t\tRectangle rt1 = new Rectangle(4, 7, 5);\r\n\t\tRectangle rt2 = new Rectangle(5, 4, 6);\r\n\t\tCircle cir1 = new Circle(6, 6, 7);\r\n\t\tCircle cir2 = new Circle(7, 8, 3);\r\n\t\t\r\n\t\tlist.add(rt1);\r\n\t\tlist.add(rt2);\r\n\t\tlist.add(cir1);\r\n\t\tlist.add(cir2);\r\n\t\t\r\n\t\tSystem.out.println(\"구분 \\t\\t 길이 \\tx좌표\\t y좌료\\t Area\\t Circumference\");\r\n\t\tfor(Shape s : list){\r\n\t\t\tif(s instanceof Rectangle){\r\n\t\t\t\tRectangle rt = (Rectangle)s;\r\n\t\t\tSystem.out.println(rt.getClass().getSimpleName()+ \"\\t\"+\r\n\t\t\t\t\trt.wideth+\"\\t\"+rt.point.x+\"\\t\"+rt.point.y+\r\n\t\t\t\t\t\"\\t\"+rt.getArea()+\"\\t\"+rt.getCircumference());\r\n\t\t\t}else if(s instanceof Circle){\r\n\t\t\t\tCircle cir = (Circle) s;\r\n\t\t\t\tSystem.out.println(cir.getClass().getSimpleName()+ \"\\t\\t\"+\r\n\t\t\t\t\t\tcir.radius+\"\\t\"+cir.point.x+\"\\t\"+cir.point.y+\r\n\t\t\t\t\t\t\"\\t\"+cir.getArea()+\"\\t\"+cir.getCircumference());\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tfor(Shape s : list){\r\n\t\t\tif(s instanceof Rectangle){\r\n\t\t\t\tRectangle rt = (Rectangle)s;\r\n\t\t\t\trt.move(10, 10);\r\n\t\t\t}else if(s instanceof Circle){\r\n\t\t\t\tCircle cir = (Circle) s;\r\n\t\t\t\tcir.move(10, 10);\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tfor(Shape s : list){\r\n\t\t\tif(s instanceof Rectangle){\r\n\t\t\t\tRectangle rt = (Rectangle)s;\r\n\t\t\tSystem.out.println(rt.getClass().getSimpleName()+ \"\\t\"+\r\n\t\t\t\t\trt.wideth+\"\\t\"+rt.point.x+\"\\t\"+rt.point.y);\r\n\t\t\t}else if(s instanceof Circle){\r\n\t\t\t\tCircle cir = (Circle) s;\r\n\t\t\t\tSystem.out.println(cir.getClass().getSimpleName()+ \"\\t\\t\"+\r\n\t\t\t\t\t\tcir.radius+\"\\t\"+cir.point.x+\"\\t\"+cir.point.y);\r\n\t\t\t}\t\r\n\t\t}\r\n\t}", "public static boolean circleCircle(GameObject obj1, GameObject obj2) {\r\n\t\r\n\t\t//get both objects radii\r\n\t\tfloat obj1_radius = obj1.getScale() * EnvironmentVariables.getMeter() / 2;\r\n\t\tfloat obj2_radius = obj2.getScale() * EnvironmentVariables.getMeter() / 2;\r\n\t\t\r\n\t\t//check if distance between centers is less that combined radii\r\n\t\tif(Math.abs((obj1.getX() - obj2.getX()) * (obj1.getX() - obj2.getX()) + (obj1.getY() - obj2.getY()) * (obj1.getY() - obj2.getY())) <=\r\n\t\t\t\t(obj1_radius + obj2_radius) * (obj1_radius + obj2_radius)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n public void testEquals01() {\n System.out.println(\"equals\");\n Object otherObject = new SocialNetwork();\n SocialNetwork sn = new SocialNetwork();\n boolean result = sn.equals(otherObject);\n assertTrue(result);\n }", "public boolean insideTriangle(Node p1, Node p2, Node p3) {\n\t\tboolean b1, b2, b3;\n\n\t\tb1 = sign(this, p1, p2) < 0.0f;\n\t\tb2 = sign(this, p2, p3) < 0.0f;\n\t\tb3 = sign(this, p3, p1) < 0.0f;\n\n\t\treturn ((b1 == b2) && (b2 == b3));\n\n\t}", "@Test\n public void testGetColor() {\n assertEquals(r1.getColor(), new Color(255, 0, 0));\n assertEquals(r2.getColor(), new Color(255, 255, 255));\n assertEquals(r3.getColor(), new Color(255, 255, 0));\n assertEquals(r4.getColor(), new Color(200, 150, 133));\n }", "public void testEquals()\r\n\t{\r\n\t\tIrClassType irClassType1 = new IrClassType();\r\n\t\tirClassType1.setName(\"irClassTypeName\");\r\n\t\tirClassType1.setDescription(\"irClassTypeDescription\");\r\n\t\tirClassType1.setId(55l);\r\n\t\tirClassType1.setVersion(33);\r\n\t\t\r\n\t\tIrClassType irClassType2 = new IrClassType();\r\n\t\tirClassType2.setName(\"irClassTypeName2\");\r\n\t\tirClassType2.setDescription(\"irClassTypeDescription2\");\r\n\t\tirClassType2.setId(55l);\r\n\t\tirClassType2.setVersion(33);\r\n\r\n\t\t\r\n\t\tIrClassType irClassType3 = new IrClassType();\r\n\t\tirClassType3.setName(\"irClassTypeName\");\r\n\t\tirClassType3.setDescription(\"irClassTypeDescription\");\r\n\t\tirClassType3.setId(55l);\r\n\t\tirClassType3.setVersion(33);\r\n\t\t\r\n\t\tassert irClassType1.equals(irClassType3) : \"Classes should be equal\";\r\n\t\tassert !irClassType1.equals(irClassType2) : \"Classes should not be equal\";\r\n\t\t\r\n\t\tassert irClassType1.hashCode() == irClassType3.hashCode() : \"Hash codes should be the same\";\r\n\t\tassert irClassType2.hashCode() != irClassType3.hashCode() : \"Hash codes should not be the same\";\r\n\t}", "public boolean equals(Object other){\n\t\t\n\t\t\n\t\tif(other instanceof Wall)\n\t\t{\n\t\t\t\n\t\t\tWall that = (Wall) other;\n\t\t\t\n\t\t\tif(this.startx == that.startx && this.starty == that.starty && this.endx == that.endx && this.endy == that.endy){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if(this.startx == that.endx && this.starty == that.endy && this.endx == that.startx && this.endy == that.starty){\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t\n\t\t}\n\t\t\n\t\treturn false;\n\t\t\n\t}", "@Test\n\tpublic void test2() {\n\t\tTriangleType type = TriangleClassifier.classify(5,5,4);\n\t\tassertEquals(type,TriangleType.ISOSCELES);\n\t}", "@Test(expected = IllegalArgumentException.class)\n public void testNoShapeWithSameName() {\n model1.addShape(Rectangle.createRectangle(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n model1.addShape(Oval.createOval(\"R\", new Point.Double(500, 200),\n new Color(0, 0, 0), 0, 10, 10, 10));\n }", "@Override\n public boolean equals (Object object) {\n if (! (object instanceof BoxPhotography) ) {return false;}\n if (this.getRow() != ((BoxPhotography) object).getRow()) {return false;}\n if (this.getColumn() != ((BoxPhotography) object).getColumn()) {return false;}\n if (this.getLevel() != ((BoxPhotography) object).getLevel()) {return false;}\n if(this.isOccupied() != ((BoxPhotography) object).isOccupied()) {return false;}\n if (this.getColor() != ((BoxPhotography) object).getColor()) {return false;}\n return this.isDomed() == ((BoxPhotography) object).isDomed();\n }", "@Test\n public void equalsFalseDifferentColor() {\n Player player1 = new Player(PlayerColor.BLACK, \"\");\n Player player2 = new Player(PlayerColor.WHITE, \"\");\n assertFalse(player1.equals(player2));\n }", "public boolean equals(Object o) {\n\t\tSquare s = (Square) o;\n\t\tif (this.x == s.x && this.y == s.y && this.z == s.z)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "@Test\n\tpublic void test1() {\n\t\tTriangleType type = TriangleClassifier.classify(2,2, 1);\n\t\tassertEquals(type,TriangleType.ISOSCELES);\n\t}", "@Test\n public void Test13_3() {\n component = new DamageEffectComponent(EffectEnum.DAMAGE_BUFF, 3, 40);\n DamageEffectComponent another = new DamageEffectComponent(EffectEnum.DAMAGE_BUFF, 3, 50);\n // Then test the method\n assertFalse(component.equals(another));\n }", "public boolean equals( Object other ) {\n if ( super.equals( other ) && ( other instanceof Point ) ) {\n \tPoint p = (Point)other;\n boolean flagEq = Math.abs( getX() - p.getX() ) < mute &&\n \t \t\t\t Math.abs( getY() - p.getY() ) < mute;\n if ( getCoordinateDimension() == 3 ) {\n \tflagEq = flagEq && Math.abs( getZ() - p.getZ() ) < mute;\n }\n return flagEq;\n }\n\n return false;\n }", "@Override\n public boolean equals(Object object){\n if(object!=null && object instanceof Figure){\n return 0 == ((Figure)object).compare(this);\n }else\n return false;\n }" ]
[ "0.7072435", "0.6751566", "0.656788", "0.6535545", "0.65235364", "0.65108967", "0.64767265", "0.6458702", "0.6455921", "0.64195246", "0.63836217", "0.63363236", "0.63173497", "0.63059705", "0.6231705", "0.6221541", "0.6206214", "0.6181295", "0.61615", "0.6146274", "0.6126148", "0.6115047", "0.6075299", "0.6063874", "0.60592604", "0.6015651", "0.6001766", "0.6000835", "0.5992959", "0.59851396", "0.5962365", "0.59622175", "0.59605944", "0.59207594", "0.5903649", "0.58998466", "0.58972025", "0.5893491", "0.5888503", "0.5884189", "0.5859283", "0.5839003", "0.58357143", "0.5823495", "0.5815695", "0.5807798", "0.5788936", "0.5786988", "0.5784291", "0.5754491", "0.57536733", "0.57523775", "0.5733378", "0.5721109", "0.5717514", "0.5715686", "0.57102096", "0.56791943", "0.56790024", "0.5676924", "0.5675594", "0.566876", "0.56483096", "0.5646615", "0.5640264", "0.5637495", "0.5635847", "0.56334203", "0.5630362", "0.5625733", "0.5565853", "0.5558606", "0.5549078", "0.55347764", "0.5533039", "0.55291164", "0.55124557", "0.54943115", "0.5489884", "0.54847115", "0.5484534", "0.5482731", "0.54594976", "0.5456916", "0.5455775", "0.54548657", "0.5451071", "0.544865", "0.54350513", "0.54295295", "0.54277766", "0.54213774", "0.54142106", "0.5409136", "0.54023457", "0.5391667", "0.5388894", "0.53867066", "0.5385408", "0.5385394", "0.53802925" ]
0.0
-1
Creates a new N_TIME_BEAR01MQuery.
public N_TIME_BEAR01MQuery() { super(); // Add design-time configured components. initComponents(); Empsn_DscField.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub doQuery(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Builder clearQueryTimeNsec() {\n bitField0_ = (bitField0_ & ~0x00000100);\n queryTimeNsec_ = 0;\n onChanged();\n return this;\n }", "public TimeMap() {\n\n }", "public Builder setQueryTimeNsec(int value) {\n bitField0_ |= 0x00000100;\n queryTimeNsec_ = value;\n onChanged();\n return this;\n }", "private MetaSparqlRequest createQueryMT2() {\n\t\treturn createQueryMT1();\n\t}", "protected JPAQuery<T> createQuery() {\n\t\tJPAQuery<T> query = new JPAQuery<>(entityManager);\n\t\tquery.from(getDslRoot());\n\t\treturn query;\n\t}", "public static C4924a m83577Hm() {\n C4924a c4924a = new C4924a();\n c4924a.xDb = new Field[2];\n c4924a.columns = new String[3];\n StringBuilder stringBuilder = new StringBuilder();\n c4924a.columns[0] = \"logId\";\n c4924a.xDd.put(\"logId\", \"INTEGER PRIMARY KEY \");\n stringBuilder.append(\" logId INTEGER PRIMARY KEY \");\n stringBuilder.append(\", \");\n c4924a.xDc = \"logId\";\n c4924a.columns[1] = \"liftTime\";\n c4924a.xDd.put(\"liftTime\", \"LONG\");\n stringBuilder.append(\" liftTime LONG\");\n c4924a.columns[2] = \"rowid\";\n c4924a.sql = stringBuilder.toString();\n return c4924a;\n }", "private TimeRange(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "public Query() {\r\n }", "public TimeConstraint() {\n\t\t// Start of user code constructor for TimeConstraint)\n\t\tsuper();\n\t\t// End of user code\n\t}", "public FreeTime() {}", "QueryType createQueryType();", "public TimeField() {\n\t\tsuper('t', \"0 0\");\n\t}", "public TimeBlock() {\n name = \"To be assigned\";\n startingTime = \"00:00\";\n endingTime = \"00:00\";\n duration = 0;\n }", "private MetaSparqlRequest createQueryMT3() {\n\t\t\treturn createQueryMT1();\n\t\t}", "HumidityQuery createHumidityQuery();", "private TimeUtil() {}", "public Query() {\n\n// oriToRwt = new HashMap();\n// oriToRwt.put(); // TODO\n }", "public Query createQuery() {\n\n String queryString = getQueryString();\n\n if (debug == true) {\n logger.info( \"Query String: {0}\", queryString);\n logger.info( \"Parameters: Max Results: {0}, First result: {1}, Order By: {2}, Restrictions: {3}, Joins: {4}\", new Object[]{maxResults, firstResult, orderBy, normalizedRestrictions, joins});\n }\n\n Query query = entityManager.createQuery(queryString);\n\n List<QueryParameter> parameters = getQueryParameters();\n for (QueryParameter parameter : parameters) {\n //dates (Date and Calendar)\n if (parameter.getTemporalType() != null && (parameter.getValue() instanceof Date || parameter.getValue() instanceof Calendar)) {\n if (parameter.getValue() instanceof Date) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Date) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Date) parameter.getValue(), parameter.getTemporalType());\n }\n }\n } else if (parameter.getValue() instanceof Calendar) {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), (Calendar) parameter.getValue(), parameter.getTemporalType());\n }\n }\n }\n } else {\n if (parameter.getPosition() != null) {\n query.setParameter(parameter.getPosition(), parameter.getValue());\n } else {\n if (parameter.getProperty() != null) {\n query.setParameter(parameter.getProperty(), parameter.getValue());\n }\n }\n }\n }\n\n if (maxResults != null) {\n query.setMaxResults(maxResults);\n }\n if (firstResult != null) {\n query.setFirstResult(firstResult);\n }\n return query;\n }", "public ResultSet construct(String szQuery) {\n\t\treturn null;\n\t}", "TimeConstant createTimeConstant();", "public Builder clearSinceTimeMs() {\n sinceTimeMs_ = emptyLongList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }", "public static TimePickerBuilder create() {\n\t\treturn new TimePickerBuilder();\n\t}", "public Builder clearQueryTimeSec() {\n bitField0_ = (bitField0_ & ~0x00000080);\n queryTimeSec_ = 0L;\n onChanged();\n return this;\n }", "public io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder getDesiredTimeBuilder() {\n \n onChanged();\n return getDesiredTimeFieldBuilder().getBuilder();\n }", "public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getCreateTimeFieldBuilder().getBuilder();\n }", "public PseudoQuery() {\r\n\t}", "MessageQuery createMessageQuery();", "public abstract T newEmptyValue(long timeMillis);", "public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getCreateTimeFieldBuilder().getBuilder();\n }", "public TimeUnit() {\n localTime = LocalDateTime.now();\n }", "protected abstract T create(final double idealStartTime);", "@NonNull\n Tomato newTomato(long startTime, long endTime);", "private com.google.protobuf.SingleFieldBuilderV3<\n io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder> \n getDesiredTimeFieldBuilder() {\n if (desiredTimeBuilder_ == null) {\n desiredTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.opencannabis.schema.temporal.TemporalInstant.Instant, io.opencannabis.schema.temporal.TemporalInstant.Instant.Builder, io.opencannabis.schema.temporal.TemporalInstant.InstantOrBuilder>(\n getDesiredTime(),\n getParentForChildren(),\n isClean());\n desiredTime_ = null;\n }\n return desiredTimeBuilder_;\n }", "private Moment() {}", "public static RwjlTmTjmx.Builder builder() {\n return new RwjlTmTjmx.Builder();\n }", "public Time( int minutes ) {\n this.minutes = minutes;\n }", "public Builder clearTimeBoltABoltB() {\n bitField0_ = (bitField0_ & ~0x00400000);\n timeBoltABoltB_ = 0L;\n \n return this;\n }", "public TimeMap() {\n timeMap = new HashMap<>();\n }", "public void testInstance() throws ParseException {\n DateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n Date date = df.parse(\"2008-08-08 12:34:56.789\");\n \n QueryObject n = new MockTemporalLiteral(date);\n assertTrue(n instanceof AbstractTemporalLiteral);\n assertTrue(n instanceof AbstractLiteral);\n assertTrue(n instanceof Literal);\n assertTrue(n instanceof AbstractExpression);\n assertTrue(n instanceof Expression);\n }", "public CTime() {\n\t\n}", "public TimeMap2() {\n map = new HashMap<>();\n }", "public static TimeTableFragment newInstance() {\n TimeTableFragment fragment = new TimeTableFragment();\n\n return fragment;\n }", "public Time_table() {\n initComponents();\n }", "@Override\n\tpublic TypedQuery<Plan> constructQuery(Map<String, String> customQuery) {\n\t\tCriteriaBuilder cb = null;\n\t\ttry {\n\t\t\tcb = em.getCriteriaBuilder();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tCriteriaQuery<Plan> cq = cb.createQuery(Plan.class);\n\t\tRoot<Plan> plan = cq.from(Plan.class);\n\t\tPredicate existingpredicate = null;\n\t\tint predicateCount=0;\n\t\tPredicate masterPredicate=null;\n\n\t\ttry {\n\n\t\t\tfor (Map.Entry<String,String> entry : customQuery.entrySet()) \n\t\t\t{\n\t\t\t\tif(plan.get(entry.getKey().toString()) != null)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\t//Query for range values with comma(,) as delimiter\n\t\t\t\t\tif(entry.getValue().contains(\",\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tint minRange=Integer.parseInt(customQuery.get(entry.getKey().toString()).split(\",\")[0]);\n\t\t\t\t\t\tint maxRange=Integer.parseInt(customQuery.get(entry.getKey().toString()).split(\",\")[1]);\n\t\t\t\t\t\tif(predicateCount==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmasterPredicate = cb.between(plan.get(entry.getKey().toString()),minRange, maxRange );\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\texistingpredicate = cb.between(plan.get(entry.getKey().toString()),minRange, maxRange );\n\t\t\t\t\t\t\tmasterPredicate=cb.and(masterPredicate,existingpredicate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpredicateCount++;\n\t\t\t\t\t}\n\t\t\t\t\t//Query for equals values\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(predicateCount==0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmasterPredicate = cb.equal(plan.get(entry.getKey().toString()), customQuery.get(entry.getKey().toString()));\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\texistingpredicate = cb.equal(plan.get(entry.getKey().toString()), customQuery.get(entry.getKey().toString()));\n\t\t\t\t\t\t\tmasterPredicate=cb.and(masterPredicate,existingpredicate);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpredicateCount++;\n\t\t\t\t\t\t//cq.where(predicate);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcq.where(masterPredicate);\n\t\tTypedQuery<Plan> query = em.createQuery(cq);\n\t\treturn query;\n\t}", "public Builder() {\n this.obj = new RwjlTmTjmx();\n }", "protected Time() {\n\t}", "@SuppressWarnings(\"unchecked\")\n \tpublic <T> QueryImpl<T> createTypedQuery(EntityManagerImpl entityManager) {\n \t\tif (this.lastUsed != Long.MAX_VALUE) {\n \t\t\tthis.lastUsed = System.currentTimeMillis();\n \t\t}\n \n \t\tfinal QueryImpl<T> typedQuery = new QueryImpl<T>((BaseQuery<T>) this.q, entityManager);\n \n \t\tif (this.lockMode != null) {\n \t\t\ttypedQuery.setLockMode(this.lockMode);\n \t\t}\n \n \t\tif (this.hints != null) {\n \t\t\tfor (final Entry<String, Object> entry : this.hints.entrySet()) {\n \t\t\t\ttypedQuery.setHint(entry.getKey(), entry.getValue());\n \t\t\t}\n \t\t}\n \n \t\treturn typedQuery;\n \t}", "public QueryBO() {\r\n }", "private void initTimerTask() {\n\t\t\n\t\ttimerTask = new TimerTask() { \n\t\t @Override \n\t\t public void run() { \n\t\t // TODO Auto-generated method stub \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 } \n\t\t}; \n\t\tif (timer == null) {\n\t\t\ttimer = new Timer();\n\t\t}\n\t\t\n\t\ttimer.schedule(timerTask, 10000, 5000);//延迟10秒查询,每5秒执行一次\n\t}", "@org.junit.Test\n public void cbclMultiplyYearMonthDuration001() {\n final XQuery query = new XQuery(\n \"\\n\" +\n \" declare function local:yearMonthDuration($years as xs:integer) as xs:yearMonthDuration { xs:yearMonthDuration(concat(\\\"P\\\", $years, \\\"Y\\\")) };\\n\" +\n \" local:yearMonthDuration(2) * 0\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"P0M\")\n );\n }", "Query createQuery(final String query);", "ShipmentTimeEstimate createShipmentTimeEstimate();", "Builder addTimeRequired(String value);", "public MMTMeasurement(){\n }", "public Time() {\n this(System.currentTimeMillis());\n }", "public Builder clearTime() {\n \n time_ = getDefaultInstance().getTime();\n onChanged();\n return this;\n }", "public void constructQuery(String query) {\n\t\tQuery q = QueryFactory.create(query);\n\t\tQueryExecution qe = QueryExecutionFactory.create(q, model);\n\t\tModel result = qe.execConstruct();\n\t\tprintModel(result);\n\t\tmodel.add(result);\n\t\tqe.close();\n\t}", "public static AbsTime factory() throws Time.Ex_TimeNotAvailable\n {\n return new AbsTime();\n }", "QueryConstraintType createQueryConstraintType();", "net.opengis.gml.x32.TimeInstantPropertyType addNewBegin();", "private DbQuery() {}", "@Override\n\tpublic <T> TypedQuery<T> createQuery(CriteriaQuery<T> criteriaQuery) {\n\t\treturn null;\n\t}", "public Builder clearTime() {\n \n time_ = getDefaultInstance().getTime();\n onChanged();\n return this;\n }", "TemperatureQuery createTemperatureQuery();", "public Builder clearTimeBoltDBoltH() {\n bitField0_ = (bitField0_ & ~0x02000000);\n timeBoltDBoltH_ = 0L;\n \n return this;\n }", "public AppointmentTM() {\n }", "public Builder clearCreateTime() {\n bitField0_ = (bitField0_ & ~0x00000008);\n createTime_ = 0;\n onChanged();\n return this;\n }", "public MutableBlock createMutableBlock(TimeParameter timeType, int start, int end) {\r\n String type = timeType.getTextField();\r\n ExpressionBuilder exp = new ExpressionBuilder();\r\n exp.value(type).greaterEquals().value(start).and().value(type).lessEquals().value(end);\r\n return createMutableBlock(exp);\r\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration9() {\n final XQuery query = new XQuery(\n \"fn:string((xs:yearMonthDuration(\\\"P01Y01M\\\") * 2.0)) and fn:string((xs:yearMonthDuration(\\\"P02Y03M\\\") * 2.0))\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertBoolean(true)\n );\n }", "@org.junit.Test\n public void kYearMonthDurationMultiply9() {\n final XQuery query = new XQuery(\n \"3 * xs:duration(\\\"P1Y3M\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XPTY0004\")\n );\n }", "public ConditionWithSymptoms(String name, Long onsetTime, Long endTime) {\n this.conditionName = name;\n this.onsetTime = onsetTime;\n this.endTime = endTime;\n this.symptoms = new ConcurrentHashMap<String, List<Integer>>();\n }", "public Builder clearTimeRecord() {\n bitField0_ = (bitField0_ & ~0x00000040);\n timeRecord_ = 0F;\n onChanged();\n return this;\n }", "public List<MatHang> getAllMatHangNhapTheoNgay(String timeBegin, String timeEnd) throws SQLException {\r\n rs = connectionNormal(\"select * from mathangnhap as mhn where mhn.ngaynhap between '\" + timeBegin + \"' and '\" + timeEnd + \"'\");\r\n ArrayList<MatHang> listMh;\r\n if (rs != null) {\r\n listMh = new ArrayList<MatHang>() {\r\n {\r\n while (rs.next()) {\r\n add(new MatHang(rs.getString(\"MAMH\"), rs.getString(\"TENMH\"), rs.getString(\"SOLUONG\"), rs.getString(\"NGAYNHAP\"), rs.getString(\"MANN\")));\r\n }\r\n rs.close();\r\n stm.close();\r\n con.close();\r\n }\r\n };\r\n return listMh;\r\n }\r\n return null;\r\n }", "public Query(){\n this(new MongoQueryFilter.MongoQueryFilterBuilder());\n }", "public Time4() \r\n { \r\n this.setTime( 0, 0, 0 ); \r\n }", "public SlowQueryReport() {\n super();\n }", "public static AbsTime factory(String t) throws NumberFormatException, Time.Ex_TimeNotAvailable\n {\n // The value to return.\n AbsTime result;\n\n // Check for ASAP and NEVER.\n if (t.equals(\"ASAP\")) {\n // No need to make a new object.\n result = ASAP;\n } else if (t.equals(\"NEVER\")) {\n // No need to make a new object.\n result = NEVER;\n } else if (t.equals(\"NOW\")) {\n // Make a new object using null constructor.\n result = new AbsTime();\n } else {\n // Not a special case. Need to make a new object.\n result = new AbsTime(t);\n }\n\n return result;\n }", "@org.junit.Test\n public void cbclMultiplyYearMonthDuration004() {\n final XQuery query = new XQuery(\n \"\\n\" +\n \" declare function local:yearMonthDuration($years as xs:integer) as xs:yearMonthDuration { xs:yearMonthDuration(concat(\\\"P\\\", $years, \\\"Y\\\")) };\\n\" +\n \" 0 * local:yearMonthDuration(2)\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"P0M\")\n );\n }", "@org.junit.Test\n public void opMultiplyYearMonthDuration8() {\n final XQuery query = new XQuery(\n \"(xs:yearMonthDuration(\\\"P10Y01M\\\") * -2.0)\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertStringValue(false, \"-P20Y2M\")\n );\n }", "@Test\n\tpublic void testCreate() throws Exception {\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\");\n\t\tDate startDate = new Date();\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tcalendar.setTime(startDate);\n\t\tcalendar.add(Calendar.MONTH, 2);\n\t\t//\"name\":\"mizehau\",\"introduction\":\"dkelwfjw\",\"validityStartTime\":\"2015-12-08 15:06:21\",\"validityEndTime\":\"2015-12-10 \n\n\t\t//15:06:24\",\"cycle\":\"12\",\"industry\":\"1202\",\"area\":\"2897\",\"remuneration\":\"1200\",\"taskId\":\"TVRRME9UVTFPRE0zT0RBeU1EQXdNRFkyTVRnMU9EQTU=\"\n\t\tProject a = new Project();\n\t\tDate endDate = calendar.getTime();\n\t\tString name = \"mizehau\";\n\t\tString introduction = \"dkelwfjw\";\n\t\tString industry = \"1202\";\n\t\tString area = \"test闫伟旗创建项目\";\n\t\t//String document = \"test闫伟旗创建项目\";\n\t\tint cycle = 12;\n\t\tString taskId = \"TVRRME9UVTFPRE0zT0RBeU1EQXdNRFkyTVRnMU9EQTU=\";\n\t\tdouble remuneration = 1200;\n\t\tTimestamp validityStartTime = Timestamp.valueOf(sdf.format(startDate));\n\t\tTimestamp validityEndTime = Timestamp.valueOf(sdf.format(endDate));\n\t\ta.setArea(area);\n\t\ta.setName(name);\n\t\ta.setIntroduction(introduction);\n\t\ta.setValidityStartTime(validityStartTime);\n\t\ta.setValidityEndTime(validityEndTime);\n\t\ta.setCycle(cycle);\n\t\ta.setIndustry(industry);\n\t\ta.setRemuneration(remuneration);\n\t\ta.setDocument(taskId);\n\t\tProject p = projectService.create(a);\n\t\tSystem.out.println(p);\n\t}", "public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {\n bitField0_ |= 0x00000400;\n onChanged();\n return getUpdateTimeFieldBuilder().getBuilder();\n }", "public final void mT__219() throws RecognitionException {\n try {\n int _type = T__219;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:217:8: ( 'longtime' )\n // InternalMyDsl.g:217:10: 'longtime'\n {\n match(\"longtime\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "GroupQuery createQuery();", "protected static TimeExtent filterToTimeInfo(BinaryTemporalOperator temporalFilter)\n {\n TimeExtent time = new TimeExtent();\n \n if (temporalFilter != null)\n {\n TemporalPrimitive timePrimitive = (TemporalPrimitive) ((Literal)temporalFilter.getExpression2()).getValue();\n \n if (timePrimitive instanceof Instant)\n {\n time.setBaseTime(((Instant)timePrimitive).getPosition().getDate().getTime()/1000.0); \n }\n else if (timePrimitive instanceof Period)\n {\n time.setStartTime(((Period)timePrimitive).getBeginning().getPosition().getDate().getTime()/1000.0); \n time.setStopTime(((Period)timePrimitive).getEnding().getPosition().getDate().getTime()/1000.0); \n }\n }\n \n return time;\n }", "public static Query empty() {\n return new Query();\n }", "public Builder clearTime() {\n bitField0_ = (bitField0_ & ~0x00000008);\n time_ = 0L;\n onChanged();\n return this;\n }", "public query convertNewQueryComposition() {\n int index = listDocumentRetrievedForThisQuery.getQuery().getIndex();\n StringBuffer queryContent = new StringBuffer();\n for (Map.Entry m : newQueryComposition.entrySet()) {\n String keyTerm = (String) m.getKey();\n queryContent.append(keyTerm + \" \");\n }\n query Query = new query(index,queryContent.toString());\n return Query;\n }", "@org.junit.Test\n public void kYearMonthDurationMultiply11() {\n final XQuery query = new XQuery(\n \"xs:yearMonthDuration(\\\"P3Y3M\\\") * xs:dayTimeDuration(\\\"P3D\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XPTY0004\")\n );\n }", "public Builder clearCreateTime() {\n bitField0_ = (bitField0_ & ~0x00000200);\n createTime_ = null;\n if (createTimeBuilder_ != null) {\n createTimeBuilder_.dispose();\n createTimeBuilder_ = null;\n }\n onChanged();\n return this;\n }", "private Matcher() {\n super(querySpecification());\n }", "public edu.pa.Rat.Builder clearTime() {\n fieldSetFlags()[0] = false;\n return this;\n }", "public Builder clearCreateTime() {\n bitField0_ = (bitField0_ & ~0x00000002);\n createTime_ = null;\n if (createTimeBuilder_ != null) {\n createTimeBuilder_.dispose();\n createTimeBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public Builder clearTimeBoltBBoltC() {\n bitField0_ = (bitField0_ & ~0x00800000);\n timeBoltBBoltC_ = 0L;\n \n return this;\n }", "public Timeslot() {\n }", "public Builder createTime(String createTime) {\n obj.setCreateTime(createTime);\n return this;\n }", "public Builder createTime(String createTime) {\n obj.setCreateTime(createTime);\n return this;\n }", "public Builder setTime(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n time_ = value;\n onChanged();\n return this;\n }", "public M csmiAddTimeNull(){if(this.get(\"csmiAddTimeNot\")==null)this.put(\"csmiAddTimeNot\", \"\");this.put(\"csmiAddTime\", null);return this;}", "public Month () {\n monthNumber = 1;\n }", "public Exact_Period_Count create_query(String word, Date min, Date max)\r\n\t{\r\n\t\tExact_Period_Count query = new Exact_Period_Count(word, min, max);\r\n\t\tif(!m_table.containsKey(word))\r\n\t\t\tm_table.put(word, new LinkedList<Exact_Period_Count>());\r\n\t\t\r\n\t\tm_table.get(word).add(query);\r\n\t\tm_queryList.add(query);\r\n\t\treturn query;\r\n\t}" ]
[ "0.523723", "0.49386904", "0.4911706", "0.49104196", "0.49101734", "0.48618644", "0.479165", "0.47270426", "0.47257", "0.4723191", "0.47212353", "0.4679877", "0.46750116", "0.4652706", "0.46199477", "0.460081", "0.4599348", "0.45769107", "0.45511776", "0.45402613", "0.4536789", "0.45327693", "0.4518694", "0.45145062", "0.44992664", "0.44848898", "0.44835392", "0.4452381", "0.4447727", "0.44358945", "0.44288924", "0.4414082", "0.43884587", "0.43679288", "0.43638754", "0.4359743", "0.43541184", "0.43500182", "0.43409166", "0.4335219", "0.43329546", "0.43227172", "0.43184325", "0.43167037", "0.43146953", "0.43142527", "0.43123552", "0.43119866", "0.43016812", "0.4299838", "0.42935854", "0.42800096", "0.42788646", "0.4277747", "0.42776707", "0.42726347", "0.4269377", "0.42667827", "0.4266195", "0.42536357", "0.42504695", "0.4243772", "0.42416248", "0.42402992", "0.4238222", "0.42288232", "0.4225613", "0.42253217", "0.42225885", "0.42195836", "0.42177418", "0.42045775", "0.41940826", "0.41876763", "0.41794994", "0.4168172", "0.41667137", "0.41583902", "0.41555828", "0.41529638", "0.41507673", "0.41501272", "0.41477096", "0.41461515", "0.41432104", "0.4140518", "0.41400275", "0.41370508", "0.4131355", "0.41295597", "0.4128776", "0.41163945", "0.4114545", "0.4112292", "0.41107148", "0.41107148", "0.40994793", "0.40933082", "0.40921578", "0.40921512" ]
0.6149315
0
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { doQuery(); }
{ "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
Configures initial state of component. WARNING: AUTOGENERATED METHOD. Contents will be overwritten.
private void initComponents() { rootLayout = new Grid(); rootLayout.setWidth(new Extent(100, Extent.PERCENT)); rootLayout.setSize(2); add(rootLayout); Empsn_Label= new nextapp.echo2.app.Label(); Empsn_Label.setText("N_TIME_BEAR.EMPSN"); rootLayout.add(Empsn_Label); Empsn_DscField = new dsc.echo2app.component.DscField(); Empsn_DscField.setId("Empsn_DscField"); Empsn_DscField.setWidth(new Extent(4, Extent.CM)); rootLayout.add(Empsn_DscField); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initcomponent() {\n\r\n\t}", "@Override\n public void initState() {\n \n\t//TODO: Complete Method\n\n }", "@Override\n public void initComponent() {\n }", "@Override\n public void initComponent() {\n }", "@Override\r\n public void initComponent() {\n }", "public void initialize() {\r\n\t\tsetValue(initialValue);\r\n\t}", "@Override\r\n\tpublic void config() {\n\t\tinter.setState(inter.getConfig());\r\n\t}", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "public InitialState() {\r\n\t\t}", "protected void setInitialStates() {\n\n\t\tchar[][] states = gridConfig.getCellConfiguration();\n\n\t\tfor (int i = 0; i < numRows; i++) {\n\t\t\tfor (int j = 0; j < numCols; j++) {\n\t\t\t\tCell c = simMap.get(states[i][j]).copy();\n\t\t\t\tinitializeCell(i, j, c);\n\t\t\t}\n\t\t}\n\t\troot.getChildren().add(pane);\n\t}", "private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}", "public Completable init() {\n\t\tLocalConfigModel localConfigModel = new LocalConfigModel()\n\t\t\t.setReadOnly(meshOptions.isStartInReadOnly());\n\t\treturn setActiveConfig(localConfigModel).ignoreElement();\n\t}", "protected void initialize()\n {\n uiFactory.configureUIComponent(this, UI_PREFIX);\n\n initializeFields();\n initializeLabels();\n initLayout();\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "void initializeImpl() {\n // note that these methods can be overridden by the user and\n // can return some strange values like null.\n setBackground(target.getBackground());\n setForeground(target.getForeground());\n setFont(target.getFont());\n setBounds(target.getBounds());\n setEnabled(target.isEnabled());\n }", "@FXML protected void initialize() {\n\t\tinitConfigVar();\n\t\tapplyStyle();\n\t}", "private void init() {\n StateManager.setState(new MenuState());\n }", "private void initiateInternal() {\n\n //define adaptation listener\n this.addComponentListener(new ComponentAdapter() {\n @Override\n public void componentResized(ComponentEvent e) {\n adapt(e);\n }\n });\n\n //solve problem with unloading of internal components\n setExtendedState(ICONIFIED | MAXIMIZED_BOTH);\n //the set visible must be the last thing called \n pack();\n setExtendedState(MAXIMIZED_BOTH);\n setVisible(true);\n }", "private void initialize() {\r\n\r\n // add default buttons\r\n addButton(getToggleButton(),\"toggle\");\r\n addButton(getFinishButton(),\"finish\");\r\n addButton(getCancelButton(),\"cancel\");\r\n addActionListener(new ActionListener() {\r\n\r\n public void actionPerformed(ActionEvent e) {\r\n String cmd = e.getActionCommand();\r\n if(\"toggle\".equalsIgnoreCase(cmd)) change();\r\n else if(\"finish\".equalsIgnoreCase(cmd)) finish();\r\n else if(\"cancel\".equalsIgnoreCase(cmd)) cancel();\r\n }\r\n\r\n });\r\n\r\n }", "private void initialize() {\n\t\troot = new Group();\n\t\tgetProperties();\n\t\tsetScene();\n\t\tsetStage();\n\t\tsetGUIComponents();\n\t}", "@Override\n public final void init() {\n super.init();\n UIUtils.clearAllFields(upperPane);\n changeStatus(Status.NONE);\n intCombo();\n }", "public void initialConfig() {\n }", "public void initialize() {\r\n\t\t\tsetTextValue(!updateNoteEnabled);\r\n\t\t}", "public void initialize() {\n \n super.initialize();\n \n PreferredSizeX = this.getPreferredSizeX();\n PreferredSizeY = this.getPreferredSizeY();\n this.setPreferredSize(new Dimension(PreferredSizeX, PreferredSizeY));\n \n this.createParameterPanel();\n \n }", "private void init() {\n\t\n\t\tthis.setSize(DEFAULT_W, DEFAULT_H);\n\t\tthis.setLocation(DEFAULT_X, DEFAULT_X);\n\t\tthis.setTitle(DEFAULT_TITLE);\n\n\t}", "public void initialState() {\n\t\t//empty\n\t}", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public void initialState() {\r\n\t\tfor (int i = 0; i < checkBoxes.length; i++) {\r\n\t\t\tamountBoxes[i].setSelectedIndex(0);\r\n\t\t\tcheckBoxes[i].setSelected(false);\r\n\t\t}\r\n\t}", "private void init() {\n\t\t\n\t\tsetEnabled(true);\n\t}", "public config() {\n initComponents();\n }", "public void init() {\n if (getConfig().isEnabled()) {\n super.init();\n }\n }", "public abstract void setupComponent();", "protected void restoreDefaultsToComponents() {\r\n periodTimeComponent.setValue( new Long( DEFAULT_PERIOD_TIME ) );\r\n maxNumberOfPlayersComponent.setValue( new Integer( DEFAULT_MAX_NUMBER_OF_PLAYERS ) );\r\n mapWidthComponent.setSelectedItem( Integer.toString( DEFAULT_MAP_WIDTH ) );\r\n mapHeightComponent.setValue( new Integer( DEFAULT_MAP_HEIGHT ) );\r\n welcomeMessageComponent.setText( DEFAULT_WELCOME_MESSAGE );\r\n gameTypeComponent.setSelectedIndex( DEFAULT_GAME_TYPE );\r\n isKillLimitComponent.setSelected( DEFAULT_IS_KILL_LIMIT );\r\n killLimitComponent.setValue( new Integer( DEFAULT_KILL_LIMIT ) );\r\n isTimeLimitComponent.setSelected( DEFAULT_IS_TIME_LIMIT );\r\n timeLimitComponent.setValue( new Integer( DEFAULT_TIME_LIMIT ) );\r\n passwordComponent.setText( DEFAULT_PASSWORD );\r\n amountOfWallRubblesComponent.setValue( new Integer( DEFAULT_AMOUNT_OF_WALL_RUBBLES ) );\r\n amountOfBloodComponent.setValue( new Integer( DEFAULT_AMOUNT_OF_BLOOD ) );\r\n amountOfWallComponent.setValue( new Integer( DEFAULT_AMOUNT_OF_WALL ) );\r\n amountOfStoneComponent.setValue( new Integer( DEFAULT_AMOUNT_OF_STONE ) );\r\n amountOfWaterComponent.setValue( new Integer( DEFAULT_AMOUNT_OF_WATER ) );\r\n }", "private void initialize() {\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setBounds(new Rectangle(0, 0, 393, 177));\r\n\t\tthis.add(getBasePanel(), BorderLayout.CENTER);\r\n\r\n\t}", "public abstract void initialSettings();", "public abstract void init() throws ComponentInitializationException;", "@Override\n\tpublic void initial() {\n\t\t\n\t}", "protected void init() {\n currentState.bgColor = appliedState.bgColor = gc.getBackground();\n currentState.fgColor = appliedState.fgColor = gc.getForeground();\n currentState.font = appliedState.font = gc.getFont();\n currentState.lineAttributes = gc.getLineAttributes();\n appliedState.lineAttributes = clone(currentState.lineAttributes);\n currentState.graphicHints |= gc.getLineStyle();\n currentState.graphicHints |= gc.getAdvanced() ? ADVANCED_GRAPHICS_MASK\n : 0;\n currentState.graphicHints |= gc.getXORMode() ? XOR_MASK : 0;\n\n appliedState.graphicHints = currentState.graphicHints;\n\n currentState.relativeClip = new RectangleClipping(gc.getClipping());\n currentState.alpha = gc.getAlpha();\n }", "public void initialize() {\n\t\ttoolBar.setDrawingPanel(this.drawingPanel);\r\n\t\t//component initialize\r\n\t\tmenuBar.initialize();\r\n\t\ttoolBar.initialize();\r\n\t\tdrawingPanel.initialize();\r\n\t\t\r\n\t}", "public ConfEGTaskPanel() {\n initComponents();\n initListenerButton(); \n initState();\n initApplyCellCheckBox();\n }", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "private void setComponentStatus() {}", "private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "private void initValues()\n {\n this.viewToolBar.setSelected(\n ConfigurationUtils.isChatToolbarVisible());\n\n this.viewSmileys.setSelected(\n ConfigurationUtils.isShowSmileys());\n\n this.chatSimpleTheme.setSelected(\n ConfigurationUtils.isChatSimpleThemeEnabled());\n }", "private void initialize() {\r\n this.setSize(new Dimension(374, 288));\r\n this.setContentPane(getJPanel());\r\n this.setResizable(false);\r\n this.setModal(true);\r\n this.setTitle(\"颜色选择面板\");\r\n addJPanel();\r\n\t}", "public void initComponent(){\n\t\t\n\t\tpanelMiddle.setCaption(\"PROSES:\");\n\t\t\n\t\t//INIT COMPONENT BAWAH\t\n\t\tlabelNotes.setContentMode(ContentMode.HTML);\n\t\tlabelNotes.setValue(\"Notes: <br> Perubahan pada Calender Kerja akan mempengaruhi seluruh sistem <br>.\" );\n\t}", "public void initialise() {\r\n this.lockGui.setDisplay(\"Open\");\r\n this.isLocked = false;\r\n this.lockGui.setLocked(isLocked);\r\n this.code = \"\";\r\n this.entered = \"\";\r\n //Ticking lets the timer know if it should be counting ticks.\r\n //Used when entering a code to lock/unlock.\r\n this.ticking = false;\r\n this.ticks = 0;\r\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n \n }", "public void setInitialParameters() {\n /** DO NOTHING */\n }", "@Override\r\n public void initialize(){\r\n initialize(\"\");\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "public void setInitialState(State initial) {\n model.setInitialState(initial);\n model.setDeterministic(false);\n model.restoreInvariant();\n }", "public void initComponents();", "private void initComponents() {\n\n setLayout(new java.awt.BorderLayout());\n }", "public void initialize() {\n\t\tcompartmentName = new SimpleStringProperty(compartment.getName());\t\t\n\t\tcompartmentId = new SimpleStringProperty(compartment.getId());\n\t\tcompartmentSBOTerm = new SimpleStringProperty(compartment.getSBOTermID());\n\t}", "public void initialize() {\r\n }", "private void initialize() {\n\t\tthis.setLayout(null);\n\t\tthis.setBackground(Color.white);\n\t\tthis.setBounds(new Rectangle(0, 0, 943, 615));\n this.setPreferredSize(new Dimension(890,570));\n this.setMinimumSize(new Dimension(890,570));\n\n\t\tm_GraphControlGradient = new GraphControl();\n\t\tm_GraphControlGradient.setBounds(new Rectangle(4, 16, 461, 285));\n\t\tm_GraphControlGradient.setControlsEnabled(false);\n\n\t\tm_GraphControlFlowRate = new GraphControl();\n\t\tm_GraphControlFlowRate.setBounds(new Rectangle(3, 16, 462, 241));\n\t\tm_GraphControlFlowRate.setControlsEnabled(false);\n\n\t\tthis.add(getJbtnPreviousStep(), null);\n\t\tthis.add(getJpanelGradientProfile(), null);\n\t\tthis.add(getJpanelFlowProfile(), null);\n\t\tthis.setVisible(true);\n\t\tthis.add(getJbtnHelp(), null);\n\t\tthis.add(getJpanelStep5(), null);\n\t\t\n\t\tthis.tmOutputModel.addTableModelListener(this);\n\t\tthis.addComponentListener(this);\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n public void initialize() {\n initialColor = m_colorWheel.getColor();\n initialColorString = m_colorWheel.getColorString(initialColor);\n rotationCount = 0;\n seesNewColor = false;\n m_colorWheel.wheelSpin(1.0);\n isDone = false;\n System.out.println(\"auto color spin starting\");\n }", "@Override public void init()\n\t\t{\n\t\t}", "public void initialize() {\n // TODO\n }", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "public void initialize()\n {\n }", "protected void initialize() {\r\n }", "protected void initialize() {\r\n }", "private static void setNormalState() {\n InitialClass.arduino.serialWrite('0');\n InitialClass.arduino.serialWrite('6');\n InitialClass.arduino.serialWrite('2');\n InitialClass.arduino.serialWrite('8');\n InitialClass.arduino.serialWrite('C');\n InitialClass.arduino.serialWrite('A');\n InitialClass.arduino.serialWrite('4');\n /// hide animated images of scada\n pumpForSolutionOn.setVisible(false);\n pumpForTitrationOn.setVisible(false);\n mixerOn.setVisible(false);\n valveTitrationOpened.setVisible(false);\n valveSolutionOpened.setVisible(false);\n valveWaterOpened.setVisible(false);\n valveOutOpened.setVisible(false);\n\n log.append(\"Клапана закрыты\\nдвигатели выключены\\n\");\n\n }", "public void init() {\n /**\n * If clicked call changeValue to rotate the state of the checkbox based\n * on its mode.\n */\n addHandler(new ClickHandler() {\n public void onClick(ClickEvent event) {\n changeValue();\n event.stopPropagation();\n }\n }, ClickEvent.getType());\n\n /**\n * If Enter key hit while focused call changeValue to rotate the state\n * of the checkbox based on its mode.\n */\n addHandler(new KeyDownHandler() {\n public void onKeyDown(KeyDownEvent event) {\n if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) \n changeValue();\n }\n }, KeyDownEvent.getType());\n \n addFocusHandler(new FocusHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onFocus(FocusEvent event) {\n\t\t\t\tif(isEnabled())\n\t\t\t\t\taddStyleName(css.Focus());\n\t\t\t}\n\t\t});\n \n addBlurHandler(new BlurHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onBlur(BlurEvent event) {\n\t\t\t\tremoveStyleName(css.Focus());\n\t\t\t}\n\t\t});\n \n setCSS(UIResources.INSTANCE.checkbox());\n \n }", "private void initialize() {\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tthis.setTitle(\"Extremum Values\");\r\n\t\tthis.setSize(300,180);\r\n\t\tthis.setLocation(300, 100);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.getRootPane().setDefaultButton(getOkButton());\r\n\t\tthis.setVisible(true);\r\n\t}", "public void init() {\n initComponents();\n initData();\n }", "private void initialize()\n\t{\n\t\tthis.setModal(true);\t\t\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(450,400);\n\t\tScreenResolution.centerComponent(this);\n\t}", "public void performInitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "private void initialize()\n {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(549,426));\n this.add(getComboBox(), com.ulcjava.base.application.ULCBorderLayoutPane.NORTH);\n }", "public void init() {\n setLayout(new BorderLayout());\n }", "@Override\n public void initialize() {\n \n }", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "public void initialize() throws ComponentException\n\t{\n\t\t; // do nothing\n\t}", "void setupAppState() {\n // Attempt to load existing config\n app_state = new AppState();\n app_state.loadConfiguration();\n\n // Force user to select a folder where journal will be stored (if not selected already)\n if (!app_state.configurationExists()) {\n DirectoryChooser directory_chooser = new DirectoryChooser();\n directory_chooser.setTitle(\"Journal location\");\n\n // We have to use new window\n StackPane root = new StackPane();\n Stage stage = new Stage();\n stage.setTitle(\"New Stage Title\");\n stage.setScene(new Scene(root, 150, 150));\n\n File selected_directory = directory_chooser.showDialog(stage.getScene().getWindow());\n if (selected_directory != null) {\n Path dir = selected_directory.toPath();\n app_state.changeConfiguration(dir.toString(), \"Journal\");\n } else {\n Helpers.alertErrorExit(\"No journal directory was selected!\");\n }\n\n stage.close();\n }\n\n app_state.loadTree();\n TreeItem<FileTree> root = new TreeItem<>(app_state.file_tree);\n note_tree.setRoot(root);\n\n try {\n fillTreeView(root);\n } catch (IOException e) {\n Helpers.alertErrorExit(\"Couldn't load a note image!\");\n }\n }", "public void init() {\n \n }", "private void initialize() {\n\t\tjLabel3 = new JLabel();\n\t\tjLabel = new JLabel();\n\t\tthis.setLayout(null);\n\t\tthis.setBounds(new java.awt.Rectangle(0, 0, 486, 377));\n\t\tjLabel.setText(PluginServices.getText(this,\n\t\t\t\t\"Areas_de_influencia._Introduccion_de_datos\") + \":\");\n\t\tjLabel.setBounds(5, 20, 343, 21);\n\t\tjLabel3.setText(PluginServices.getText(this, \"Cobertura_de_entrada\")\n\t\t\t\t+ \":\");\n\t\tjLabel3.setBounds(6, 63, 190, 21);\n\t\tthis.add(jLabel, null);\n\t\tthis.add(jLabel3, null);\n\t\tthis.add(getLayersComboBox(), null);\n\t\tthis.add(getSelectedOnlyCheckBox(), null);\n\t\tthis.add(getMethodSelectionPanel(), null);\n\t\tthis.add(getResultSelectionPanel(), null);\n\t\tthis.add(getExtendedOptionsPanel(), null);\n\t\tconfButtonGroup();\n\t\tlayersComboBox.setSelectedIndex(0);\n\t\tinitSelectedItemsJCheckBox();\n\t\tdistanceBufferRadioButton.setSelected(true);\n\t\tlayerFieldsComboBox.setEnabled(false);\n\t\tverifyTypeBufferComboEnabled();\n\t}", "public void initialize()\r\n {\r\n isImageLoaded=false; \r\n isInverted=false;\r\n isBlured=false;\r\n isChanged=false;\r\n isCircularCrop= false;\r\n isRectangularCrop = false;\r\n isReadyToSave = false;\r\n didUndo = false;\r\n brightnessLevel=0.0f;\r\n }", "protected void initialize() {\n\t\tsetBodyColor(Color.BLACK);\r\n\t\tsetGunColor(Color.BLACK);\r\n\t\tsetRadarColor(Color.BLACK);\r\n\t\tsetScanColor(Color.BLUE);\r\n\t\tsetBulletColor(Color.RED);\r\n\t}", "private void initializeProblemState()\r\n {\r\n\r\n problemState = new JTextArea(problem.getCurrentState().toString());\r\n problemState.setFont(new Font(Font.MONOSPACED, Font.BOLD, 24));\r\n finalProblemState = new JTextArea(problem.getFinalState().toString());\r\n finalProblemState.setFont(problemState.getFont());\r\n finalStateLabel.setBorder(new TitledBorder(\"Final State\"));\r\n finalStateLabel.setLayout(new FlowLayout());\r\n stateLabel.setBorder(new TitledBorder(\"Current State\"));\r\n stateLabel.setLayout(new FlowLayout());\r\n\r\n if (canvas != null)\r\n {\r\n stateLabel.add(canvas);\r\n canvas.render();\r\n stateLabel.setPreferredSize(new Dimension(canvas.getPreferredSize().width\r\n + DEFAULT_BUTTON_SPACING * 5,\r\n canvas.getPreferredSize().height + DEFAULT_BUTTON_SPACING * 5\r\n ));\r\n } else\r\n {\r\n stateLabel.add(problemState);\r\n stateLabel.setPreferredSize(new Dimension(problemState.getPreferredSize().width\r\n + (problemState.getFont().getSize() / 2),\r\n problemState.getPreferredSize().height + problemState.getFont().getSize() * 5 / 4));\r\n }\r\n if (finalStateCanvas != null)\r\n {\r\n finalStateLabel.add(finalStateCanvas);\r\n finalStateCanvas.render();\r\n finalStateLabel.setPreferredSize(stateLabel.getPreferredSize());\r\n } else\r\n {\r\n finalStateLabel.add(finalProblemState);\r\n finalStateLabel.setPreferredSize(stateLabel.getPreferredSize());\r\n }\r\n }", "public BindingConfigurationPanel() {\n initComponents();\n initGUI();\n }", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "public void autonomousInit() {\n \n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n\tpublic void autonomousInit() {\n\t}", "private void initComponents()\n {\n //LAYOUT\n initLayoutComponents();\n \n //TRANSITION COMPONENTS\n initTransitionComponents();\n \n //SEARCH PANE COMPONENTS\n initSearchComponents();\n \n //RESULTS PANE COMPONENTS\n initResultComponents();\n \n // CRAWLER CONTROLS\n initCrawlerControlsComponents();\n \n // KEYWORD BAR\n initKeywordBarComponents();\n \n //WORKER CONTROLS\n initWorkerComponents();\n \n //URL COMPONENTS\n initURLMenuComponents();\n\n //BASE LAYOUT COMPONENTS\n initBaseLayout();\n }", "protected void initialize()\r\n {\n }", "protected void initControl() {\n\t\t\r\n\t}", "@Override\n public void disabledInit()\n {\n }", "public void initialize() {\n }" ]
[ "0.6861117", "0.6851904", "0.68248504", "0.68248504", "0.68088204", "0.67616415", "0.6596949", "0.65548056", "0.65548056", "0.64922655", "0.64731604", "0.6451677", "0.64340264", "0.63434523", "0.63319576", "0.63271534", "0.63205767", "0.6289299", "0.6250172", "0.6238679", "0.62260205", "0.6212505", "0.61969835", "0.61896205", "0.61407053", "0.61406475", "0.6139738", "0.6139557", "0.61236537", "0.6121267", "0.61035216", "0.6097384", "0.6088318", "0.6072711", "0.606385", "0.6063647", "0.6055735", "0.60456425", "0.6040574", "0.6036218", "0.6036153", "0.60030985", "0.6001067", "0.59942174", "0.599016", "0.5974777", "0.5971783", "0.5964234", "0.59542227", "0.5940017", "0.59392923", "0.59392923", "0.5938218", "0.5934936", "0.59345645", "0.59338015", "0.5931547", "0.59299004", "0.59293765", "0.59284604", "0.59170127", "0.5911592", "0.5905288", "0.5896858", "0.5895185", "0.5894855", "0.58932203", "0.58910424", "0.5881272", "0.5875957", "0.5875957", "0.58749384", "0.58726686", "0.5870914", "0.586965", "0.58535224", "0.58502233", "0.584777", "0.5846789", "0.58400697", "0.58326954", "0.5832664", "0.5829997", "0.5819339", "0.58187413", "0.5814574", "0.58139855", "0.5812385", "0.5809631", "0.58093435", "0.580418", "0.58041567", "0.58041394", "0.58041394", "0.58041394", "0.58023417", "0.58006716", "0.57971025", "0.5793568", "0.5791836", "0.57868564" ]
0.0
-1
Created by sathvik on 11/4/2017.
public interface GetOrderDetails { @FormUrlEncoded @POST("/getorderdetails") Call<List<OrderCustomerDetails>> getOrderDetails( @Field("OrderId") String OrderId ); @FormUrlEncoded @POST("/canceluser") Call<Updatepending> canceluser( @Field("OrderId") String OrderId ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "private void m50366E() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void init() {\n\n }", "@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}", "public void mo38117a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "protected boolean func_70814_o() { return true; }", "public void gored() {\n\t\t\n\t}", "public void mo4359a() {\n }", "private void init() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n void init() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void anularFact() {\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\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 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 public void init() {}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n protected void init() {\n }", "@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}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\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 protected void getExras() {\n }", "@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 Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "public void m23075a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo6081a() {\n }", "@Override\n public void initialize() { \n }", "public abstract void mo70713b();", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n public int retroceder() {\n return 0;\n }", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "public final void mo91715d() {\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "private void m50367F() {\n }" ]
[ "0.60269445", "0.58597374", "0.5845663", "0.5805552", "0.57818675", "0.57667434", "0.5715117", "0.5715117", "0.56575906", "0.5656734", "0.56227404", "0.56103", "0.56065077", "0.5601555", "0.55976915", "0.5590958", "0.5576248", "0.5570412", "0.5560291", "0.5555884", "0.5555884", "0.5555884", "0.5555884", "0.5555884", "0.5551261", "0.55494905", "0.55489045", "0.55281645", "0.5522556", "0.5506696", "0.55038667", "0.5497413", "0.54887116", "0.54837257", "0.54792285", "0.5479226", "0.5478177", "0.54660046", "0.54555386", "0.544864", "0.54462355", "0.54462355", "0.5441563", "0.5441563", "0.54391354", "0.54391354", "0.54391354", "0.54391354", "0.54391354", "0.54391354", "0.54336536", "0.54332006", "0.54317975", "0.5420256", "0.5415192", "0.5415192", "0.5415192", "0.54142565", "0.54088503", "0.54021996", "0.54021996", "0.5397734", "0.5397734", "0.5397734", "0.5395954", "0.5390458", "0.5390458", "0.5390458", "0.53866285", "0.5379843", "0.53640074", "0.5358955", "0.5354707", "0.53508127", "0.535033", "0.5345387", "0.53328013", "0.53149325", "0.5312291", "0.53065115", "0.5305981", "0.5297644", "0.5297644", "0.5297644", "0.5297644", "0.5297644", "0.5297644", "0.5297644", "0.5290231", "0.5289379", "0.5288683", "0.52821237", "0.52811044", "0.5279879", "0.5272635", "0.52685386", "0.5254396", "0.5252565", "0.525159", "0.525159", "0.52465624" ]
0.0
-1
returns a string with all the data in the tree in LNR order with an space in between them. Uses the toArrayList method in MorseCodeTree It should return the data in this order:"h s v i f u e l r a p w j b d x n c k y t z g q m o"
public static String printTree() { String tree = ""; ArrayList<String> letters = converter.toArrayList(); for(int i = 0; i < letters.size(); i++) { tree += letters.get(i); if(i + 1 < letters.size()) tree += " "; } return tree; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTree ( ) {\n\n String tree;\n StringWriter s = new StringWriter();\n PrintWriter out = null;\n\n try {\n out = new PrintWriter(s);\n } catch ( Exception ex ) {};\n\n program.printIndividual(param.Parameters.STATE, out);\n\n tree = s.toString();\n String list2[] = tree.split(\"\\n\");\n\n out.close();\n try { s.close(); } catch ( Exception e ) {};\n\n return list2[list2.length - 1];\n\n }", "public static String printTree()\r\n {\r\n String result = \"\";\r\n for (String s: tree.toArrayList())\r\n result = result + \" \" + s;\r\n return result;\r\n }", "public String toString(){\n //return myString(root);\n printInOrder(root);\n return \"\";\n }", "private String toSortedString( Node n ){\n String s = \"\";\n if(n != null){\n s += toSortedString(n.left);\n s += n.data + \"\";\n s += toSortedString(n.right);\n }\n return s;\n }", "@Override\n public String toString() { // display subtree in order traversal\n String output = \"[\";\n LinkedList<Node<T>> q = new LinkedList<>();\n q.add(this);\n while(!q.isEmpty()) {\n Node<T> next = q.removeFirst();\n if(next.leftChild != null) q.add(next.leftChild);\n if(next.rightChild != null) q.add(next.rightChild);\n output += next.data.toString();\n if(!q.isEmpty()) output += \", \";\n }\n return output + \"]\";\n }", "@Override\r\n\tpublic synchronized String toString(){\r\n\r\n\t\tString result = String.valueOf(numberOfSplittedGroups);\r\n\r\n\t\tif(!hierarchy.isEmpty()){\r\n\t\t\tresult = result + Constants.A3_SEPARATOR + hierarchy.get(0);\r\n\t\t\tfor(int i = 1; i < hierarchy.size(); i ++){\r\n\t\t\t\tresult = result + Constants.A3_SEPARATOR + hierarchy.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public String toString() {\n\t\t\n\t\tStringBuilder tree = new StringBuilder();\n\t\t\n\t\tQueue<AVLNode> queue = new LinkedList<>();\n\t\tqueue.add(root);\n\t\t\n\t\twhile(!queue.isEmpty()) {\n\t\t\tAVLNode node = queue.poll();\n\t\t\ttree.append(node.num);\n\n\t\t\tif(node.left!=null)\n\t\t\t\tqueue.add(node.left);\n\t\t\t\n\t\t\tif(node.right!=null)\n\t\t\t\tqueue.add(node.right);\n\t\t}\n\t\t\n\t\treturn tree.toString();\n\t}", "@Override\n public String toString() {\n String result = \"\";\n\n for (int position = 0; position < 64; position++) {\n if (position > 0) {\n if (position % 16 == 0) { // New level\n result += '|';\n } else if (position % 4 == 0) {\n result += ' '; // New row\n }\n }\n result += get(position);\n }\n return result;\n }", "public String returnList() {\n\n String str = \"\";\n Node<T> currentNode = head;\n\n while (currentNode.next != null) {\n\n str += currentNode.data + \" \";\n currentNode = currentNode.next;\n\n }\n\n str = str + currentNode.data;\n return str;\n\n }", "public String preOrderToString(TreeNode tn){\n \tif (tn==null) return \"\";\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(tn.val);\n \tsb.append(\",\");\n \tif (tn.left==null){\n \t\tsb.append(\"#,\");\n \t}else{\n \t\tsb.append(preOrderToString(tn.left));\n \t}\n \tif (tn.right==null){\n \t\tsb.append(\"#,\");\n \t}else{\n \t\tsb.append(preOrderToString(tn.right));\n \t}\n \treturn sb.toString();\n }", "public String toTextList() {\r\n Iterator<Match> itr = this.resultsTree.iterator();\r\n Match m;\r\n StringBuilder str = new StringBuilder();\r\n \r\n while (itr.hasNext()) {\r\n m = itr.next();\r\n //Match without results\r\n if (m.getScore1() == -1) {\r\n str\r\n .append(this.leftAlign(m.getTeam1().getName(), 10))\r\n .append(this.centerAlign(\" vs \", 10))\r\n .append(this.leftAlign(m.getTeam2().getName(), 10))\r\n .append(this.centerAlign(\"*** no results yet ***\", 30))\r\n .append(System.lineSeparator());\r\n }\r\n else {\r\n str\r\n .append(this.leftAlign(m.getTeam1().getName(), 10))\r\n .append(\" \")\r\n .append(m.getScore1())\r\n .append(\" \")\r\n .append(this.leftAlign(m.getTeam2().getName(), 10))\r\n .append(\" \")\r\n .append(m.getScore2())\r\n .append(System.lineSeparator());\r\n }\r\n }\r\n \r\n return str.toString();\r\n }", "public String toString(){\n String str = \"\";\n for(int i = level; i>0; i--){\n str+=\"\\t\";\n }\n str += getClass().toString();\n if(noOfChildren != 0){\n str+=\" containing\\n\";\n for (int i = 0; i<this.noOfChildren; i++)\n str += getChild(i).toString();\n }\n else{\n str+=\"\\n\";\n }\n return str;\n }", "List<String> getTrees();", "public String toString(){\n String result = \"{\";\n for(LinkedList<E> list : this.data){\n for(E item : list){\n result += item.toString() + \", \";\n }\n }\n result = result.substring(0, result.length() -2);\n return result + \"}\";\n }", "@Override\r\n public String toString() {\r\n \r\n StringBuilder sb = new StringBuilder();\r\n HTreeNode listrunner = getHeadNode();\r\n while (listrunner != null) {\r\n sb.append(listrunner.getCharacter());\r\n //no comma after the final element\r\n if (listrunner.getNext() != null) {\r\n sb.append(',');\r\n sb.append(' ');\r\n }\r\n listrunner = listrunner.getNext();\r\n }\r\n return sb.toString();\r\n }", "@Override\n public String toString() {\n StringBuilder outString = new StringBuilder();\n int currentTreeIndex = this.indexCorrespondingToTheFirstElement;\n if (treeSize > 0) {\n while (currentTreeIndex != -1) {\n Node<T> currentNode = getHelper(currentTreeIndex);\n outString.append(currentNode.data).append(\", \");\n currentTreeIndex = currentNode.nextIndex;\n }\n }\n\n if (outString.length() != 0) {\n outString.deleteCharAt(outString.length() - 1); // \", \"\n outString.deleteCharAt(outString.length() - 1);\n }\n return \"[\" + outString.toString() + \"]\";\n }", "public String toString()\n\t{\n\t\tString stringList = \"\";\n\t\tNode temp = front;\n\t\twhile(temp != null)\n\t\t{\n\t\t\tstringList += String.valueOf(temp.data) + \" \"; //places the data from the Node into the empty string\n\t\t\ttemp = temp.next; //moevs onto the next Node in the list\n\t\t}\n\t\treturn stringList;\n\t}", "public String toSortedString(){\n return toSortedString(root);\n }", "public String makeTree() {\r\n // Create a stack to store the files/directories in the tree\r\n Stack<DirectoryTreeNode> itemStack = new Stack<>();\r\n // Initialize a string variable to store the tree diagram\r\n String tree = \"\";\r\n // Push the root directory into the stack\r\n itemStack.push(this.rootDir);\r\n\r\n // Loop through the items in the Stack until all the items have been\r\n // traversed (this is similar to the pre-order traversal of the tree)\r\n while (!itemStack.isEmpty()) {\r\n // Get the item on the top of the stack and store it in current\r\n DirectoryTreeNode current = (DirectoryTreeNode) itemStack.pop();\r\n // Get the number of tabs required in the output for this item\r\n int numTabs = this.getNumberOfAncestors((E) current);\r\n // Get the string of tabs needed to put before current's name\r\n String tabs = this.getNumberOfTabs(numTabs);\r\n // Add the required number of tabs, the current item's of name and a\r\n // newline\r\n tree += tabs + current.getName() + \"\\n\";\r\n\r\n // Check if current is a Directory (in which case it may have\r\n // sub directories and files)\r\n if (current instanceof Directory) {\r\n // Get the list of files and directories of current directory\r\n ArrayList<DirectoryTreeNode> contents =\r\n ((Directory) current).getContents();\r\n // Loop through the contents of current and add them to the stack\r\n for (int i = contents.size() - 1; i >= 0; i--) {\r\n itemStack.add(contents.get(i));\r\n }\r\n }\r\n }\r\n // Return the generated tree diagram\r\n return tree;\r\n }", "@Override\n public String toString() {\n StringBuilder devPlaceArt = new StringBuilder();\n StringBuilder[] devString = new StringBuilder[3];\n devString[0] = new StringBuilder();\n devString[1] = new StringBuilder();\n devString[2] = new StringBuilder();\n int i = 0;\n String space = \" \";\n String emptyCard =\n \"\"\"\n ┌─────────────────┐\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n │ │\n └─────────────────┘\n \"\"\";\n String emptySpace = \"\"\"\n \\s\n \\s\n \\s\n \"\"\";\n String[] temp1;\n String[] temp2;\n String[] temp3;\n\n for (ObservableList<DevelopmentCard> stacks : devStack) {\n if (stacks.isEmpty()) {\n devString[i].append(emptyCard);\n devString[i].append(emptySpace).append(emptySpace);\n } else {\n devString[i].append(stacks.get(stacks.size() - 1).toString());\n switch (stacks.size()) {\n case 1 -> devString[i].append(emptySpace).append(emptySpace);\n case 2 -> {\n int l = stacks.get(0).toString().length();\n devString[i].append(stacks.get(0).toString(), l - 58, l);\n devString[i].append(emptySpace);\n }\n case 3 -> {\n int len = stacks.get(0).toString().length();\n devString[i].append(stacks.get(0).toString(), len - 58, len);\n devString[i].append(stacks.get(1).toString(), len - 58, len);\n }\n }\n\n }\n i++;\n }\n temp1 = devString[0].toString().split(\"\\n\");\n temp2 = devString[1].toString().split(\"\\n\");\n temp3 = devString[2].toString().split(\"\\n\");\n\n for (int j = 0; j < 14; j++) {\n devPlaceArt.append(temp1[j]).append(space).append(temp2[j]).append(space).append(temp3[j]);\n devPlaceArt.append(\"\\n\");\n }\n return devPlaceArt.toString();\n }", "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 String toString(){\r\n\t\tString output = \"\";\r\n\t\tfor(String s: this.data){\r\n\t\t\toutput = output + s + \"\\t\";\r\n\t\t}\r\n\r\n\t\treturn output;\r\n\t}", "private ArrayList<String> convertToStringArrayList() {\r\n\t\tArrayList<String> strList = new ArrayList<String>();\r\n\t\tStringBuilder strBuilder = new StringBuilder();\r\n\t\tfor (int i = 0; i < gameBoard.getmBoard().length; i++) {\r\n\t\t\tfor (int j = 0; j < gameBoard.getmBoard()[0].length; j++) {\r\n\t\t\t\tstrBuilder.append(gameBoard.getIdValue(gameBoard.genId(i, j)));\r\n\t\t\t}\r\n\t\t\tstrList.add(strBuilder.toString());\r\n\t\t\tstrBuilder.setLength(0);\r\n\t\t}\r\n\r\n\t\tif (gameBoard.isPlayerBlackTurn()) {\r\n\t\t\tstrList.add(\"t\");\r\n\t\t} else {\r\n\t\t\tstrList.add(\"f\");\r\n\t\t}\r\n\r\n\t\tstrList.add(((Integer) gameBoard.getBlackScore()).toString());\r\n\t\tstrList.add(((Integer) gameBoard.getRedScore()).toString());\r\n\t\treturn strList;\r\n\t}", "public String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int key: levelOrder())\n\t\t\tsb.append (key + \" \");\n\t\treturn sb.toString ();\n\t}", "public String toString() {\n\t\t//TO DO\n\t\tStringBuilder s = new StringBuilder();\n\t\t\n\t\tNode<ArrayList<Book>> current = head;\n\t\t\n\t\twhile (current != null) {\n\t\t\t//System.out.print(current.letter );\n\t\t\t\n\t\t\ts.append(current.letter + \":\");\n\t\t\tfor(int i = 0; i < current.data.size(); i++) {\n\t\t\t\ts.append(current.data.get(i).getTitle());\n\t\t\t\tif (i != current.data.size() -1 ) {\n\t\t\t\t\ts.append(\", \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//s.append(current.data.toString());//current.data is an array list of books\n\t\t\t\n\t\t\ts.append(System.getProperty(\"line.separator\"));\n\t\t\tcurrent = current.next;\n\t\t\t\n\t\t}\n\t\t\n\t\treturn s.toString();\n\n\t}", "public String toString()\n\t{\n\t\tString answer;\n\t\t//if the size not 0, indent 9 spaces to make room for the \"(null)<--\" that backwards will print\n\t\tif (size() != 0)\n\t\t\tanswer = \" \";\n\t\telse\n\t\t\tanswer = \"\";\n\n\t\tDLLNode cursor = head;\n\t\twhile (cursor != null)\n\t\t{\n\t\t\tanswer = answer + cursor.data + \"-->\";\n\t\t\tcursor = cursor.next;\n\t\t}\n\n\t\tanswer = answer + \"(null)\";\n\t\treturn answer;\n\t}", "public String toString() {\n\t\tString r = \"\";\n\t\tchar[][] a = toMatrix();\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tif (a[i][j] == '\\0')\n\t\t\t\t\tr += \"-\";\n\t\t\t\telse\n\t\t\t\t\tr += a[i][j];\n\t\t\t}\n\t\t\tr += \"\\n\";\n\t\t}\n\t\treturn r.substring(0, r.length() - 1);\n\t}", "@Override\r\n public String toString() {\r\n Queue<List<Node>> queue = new LinkedList<List<Node>>();\r\n queue.add(Arrays.asList(root));\r\n StringBuilder sb = new StringBuilder();\r\n while (!queue.isEmpty()) {\r\n Queue<List<Node>> nextQueue = new LinkedList<List<Node>>();\r\n while (!queue.isEmpty()) {\r\n List<Node> nodes = queue.remove();\r\n sb.append('{');\r\n Iterator<Node> it = nodes.iterator();\r\n while (it.hasNext()) {\r\n Node node = it.next();\r\n sb.append(node.toString());\r\n if (it.hasNext())\r\n sb.append(\", \");\r\n if (node instanceof BPTree.InternalNode)\r\n nextQueue.add(((InternalNode) node).children);\r\n }\r\n sb.append('}');\r\n if (!queue.isEmpty())\r\n sb.append(\", \");\r\n else {\r\n sb.append('\\n');\r\n }\r\n }\r\n queue = nextQueue;\r\n }\r\n return sb.toString();\r\n }", "public String getDataAsString()\n\t{\n\t\tString listAsString = \"\";\n\t\t\n\t\tfor (int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tlistAsString += list[i] + \" \";\n\t\t}\n\t\t\n\t\tlistAsString += \"\\nFront: \" + front + \"\\nRear: \" +\n\t\t\t\trear + \"\\nEntries: \" + counter;\n\t\t\n\t\treturn listAsString;\n\t}", "public @Override String toString() {\n String res= \"[\";\n // invariant: res = \"[s0, s1, .., sk\" where sk is the object before node n\n for (Node n = sentinel.succ; n != sentinel; n= n.succ) {\n if (n != sentinel.succ)\n res= res + \", \";\n res= res + n.data;\n }\n return res + \"]\";\n }", "public void printStringsInLexicoOrder() {\n\t\t// ***** method code to be added in this class *****\n\t\t// now we just have a dummy method that prints a message.\n\n\t\tTreeNode node = root;\n\t\t\n\t\tprintStringsInLexicoOrder(node);\n\t}", "public String toString()\n {\n if(this.head == null)\n return \"Lista je prazna!\";\n\n Vaspitac v = this.head;\n\n String str = \"[ \";\n while(v != null)\n {\n str += \"\\n\" + v.ime + \"\\n\\t\" + v + \"\\n\";\n v = v.next;\n }\n str += \"]\";\n return str;\n }", "public String toString() {\n String toReturn = \"\";\n\n Node walker = this.first;\n while(walker != null) {\n toReturn += walker.data + \"\\t\";\n walker = walker.next;\n }\n\n return toReturn;\n }", "private String toTreeString(PhyloTreeNode node) {\n if(node == null) {\n return \"\";\n }\n if(node.isLeaf()) {\n if(node.getParent() != null)\n builderTree.append(node.getLabel() + \":\" + String.format(\"%.5f\", node.getParent().getDistanceToChild()));\n else{\n builderTree.append(node.getLabel() + \":0.0\");\n }\n }\n else{\n builderTree.append(\"(\");\n toTreeString(node.getRightChild());\n builderTree.append(\",\");\n toTreeString(node.getLeftChild());\n builderTree.append(\")\");\n if(node.getParent() != null) {\n builderTree.append(\":\" + String.format(\"%.5f\", node.getParent().getDistanceToChild()));\n }\n }\n return builderTree.toString();\n }", "public String toString() {\n String s = \" 1 2 3 4 5 6 7 8\";\n\n\n s += \"\\n --------------------\\n1 |\";\n\n for(int i=0; i < this.TAILLEX; i++){\n for(int k=0; k < this.TAILLEY; k++){\n s += this.plateau[i][k] + \"|\";\n }\n if(i<7) s += \"\\n --------------------\\n\" + (i+2) + \" |\";\n else s += \"\\n --------------------\\n\";\n }\n\n return s;\n }", "public String toString()\n { \t\n \t//initialize String variable to return \n \tString listString = \"\";\n \t//create local node variable to update in while loop\n LinkedListNode<T> localNode = getFirstNode();\n \n //concatenate String of all nodes in list\n while(localNode != null)\n {\n listString += localNode.toString();\n localNode = localNode.getNext();\n }\n \n //return the string to the method\n return listString;\n }", "private void make_string(ArrayList node_block , TObj parrentNode, String prefix) {\n\t\tint seq = 0;\n\t\tint end_seq = 0;\n\t\tint prev_seq = 0;\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int j =0 ; j < node_block.size() ; j ++) {\n\t\t\tnode_line_data text = (node_line_data)node_block.get(j);\n\t\t\tif (j == 0) {\n\t\t\t\tseq = text.seq;\n\t\t\t\tprev_seq = text.seq; // 2014.09.16\n\t\t\t}\n\t\t\tif(j == node_block.size()-1)\n\t\t\t\tend_seq = text.seq;\n\t\t\t//sb.append(text.line_data.trim()).append(\"\\n\");\n\t\t\t// 2014.5.21\n\n\t\t\tif(prev_seq != text.seq) { // 2014.09.16\n\t\t\t\tprev_seq = text.seq;\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tsb.append(text.line_data.trim());\n\n/*\t\t\tif(j < node_block.size() -1 ) {\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}*/\n\n\n\n\n\t\t\tlocallog.trace(\" TEXT ::: \" , text.line_data);\n\t\t}\n\t\t// 2014.01.08\n\t\tif(sb.toString().trim().length() > 0) {\n\t\t\tTObj newnodedata = new TObj(_TEXT_TYPE, make_path(prefix, \"text\"), sb.toString(), 100, new TLocation(seq+1, end_seq+1, 0,0, \"\") );\n\t\t\tparrentNode.add(newnodedata);\n\t\t}\n\t\tnode_block.clear();\n\t}", "public String toString() {\r\n\t\tString result = \"[ \";\r\n\t\tLinkedNode nextNode = firstNode;\r\n\t\twhile (nextNode != null) {\r\n\t\t\tresult = result + nextNode.getKey() + \"\\n\";\r\n\t\t\tnextNode = nextNode.getNextNode();\r\n\t\t}\r\n\t\tresult = result + \" ]\";\r\n\t\treturn result;\r\n\t}", "public String toTreeString() {\n return toTreeString(overallRoot);\n }", "public String toString(){\r\n\t\tString str = \"|\";\r\n\t\tArrayNode<T> temp = beginMarker.next;\r\n\t\twhile (temp != endMarker){\r\n\t\t\tstr+= temp.toString() + \"|\";\r\n\t\t\ttemp = temp.next;\r\n\t\t}\r\n\t\treturn str;\r\n\t}", "public String toString() {\n\t\tString temp;\n\t\tint i;\n\n\t\ttemp = new String(\"\");\n\n\t\t//Seperate each word by a space (leave off \"_start_node_\" and \"_end_node_\")\n\t\tfor (i = 1; i < wc.size() - 1; i++) {\n\t\t\ttemp = temp.concat(((String) wc.elementAt(i)));\n\t\t\tif (i < wc.size() - 2) {\n\t\t\t\ttemp = temp.concat(\" \");\n\t\t\t}\n\t\t}\n\t\tif (temp.length() <= 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn temp;\n\t}", "public String toSortString() {\r\n\t\t\r\n\t\t// to seperate between each attribute.\r\n\t\tString separator = (char) 0 + \"\"; \r\n\t\t\r\n\t\tString line = this.getLastName() + separator\r\n\t\t\t+this.getFirstName() + separator\t\t\t\r\n\t\t\t+this.getPhoneNumber();\r\n\t\t\r\n\t\treturn line;\r\n\t}", "public String toString() { \r\n\t\tString Sresult = \"(\" + lChild.toString() + \" / \" + rChild.toString() + \")\";\r\n\t\treturn Sresult; \r\n\t}", "public String toString()\r\n\t\t{\r\n\t\t\tString str = \" \" ;\r\n\t\t\tif (this.num.size() == 0)\r\n\t\t\t\tstr = \"<vacia>\";\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\tfor (int i = 0; i < this.num.size(); i++) \r\n\t\t\t\t\tstr = str + this.num.get(i) + \" \";\r\n\t\t\t}\r\n\t\t\treturn str;\r\n\t\t}", "public String serialize(TreeNode root) {\n if (root == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n\n preOrderSerialize(root, sb);\n\n // remove last delimiter from output\n sb.setLength(sb.length() - 1);\n return sb.toString();\n }", "public String toString() {\n\t\t// Anmerkung: StringBuffer wäre die bessere Lösung.\n\t\tString text = \"\";\n\t\tListNode<E> p = head;\n\t\twhile (p != null) {\n\t\t\ttext += p.toString() + \" \";\n\t\t\tp = p.getTail();\n\t\t}\n\t\treturn \"( \" + text + \") \";\n\t}", "private void preorderTraverseForToString(Node node) {\n\t\tif (node == null)\n\t\t\treturn;\n\n\t\tthis.order += node + \"\\n\";\n\n\t\t// walk trough left sub-tree\n\t\tpreorderTraverseForToString(node.left);\n\t\t// walk trough right sub-tree\n\t\tpreorderTraverseForToString(node.right);\n\t}", "public static String generatePreOrderStringParenthesization(BinaryTree.Node root){\n StringBuffer strTree = generatePreOrderStringParenthesization(root, new StringBuffer(\"(\"));\n strTree.append(\")\");\n return strTree.toString();\n }", "public String toString()\r\n {\r\n String str = toString(root);\r\n if (str.endsWith(\", \"))\r\n str = str.substring(0, str.length() - 2);\r\n return \"[\" + str + \"]\";\r\n }", "public String toString() {\r\n\t\tString output = \"\";\r\n\t\tfor (int n = 0; n < parts.size(); n++){\r\n\t\t\toutput = output + parts.get(n) + \", \";\r\n\t\t}\r\n\t\t\r\n\t\tint toAdd = 5 - parts.size(); \r\n\t\t\t\r\n\t\tfor( int i = 0; i < toAdd; i++ ) {\r\n \t\r\n\t\toutput = output + \"[ ], \";\r\n \r\n\t\t} \r\n\t\t\r\n\t\treturn output;\r\n\t\t\t\r\n\t}", "public String toString() {\n\t\tString s = new String(\"\");\n\t\tfor(int i=0; i<numeros.size(); i++) {\n\t\t\ts += numeros.get(i) + \" \";\n\t\t}\n\t\ts += \"| \";\n\t\tfor(int i=0; i<n_chances.size(); i++) {\n\t\t\ts += n_chances.get(i) + \" \";\n\t\t}\n\t\ts += \"\\n\";\n\t\treturn s;\n\t}", "@Override\n\tpublic String toString() {\n\t\tString string = \"\";\n\t\tfor (int i = list.size() - 1; i >= 0; i--) {\n\t\t\tstring += list.get(i) + \" \";\n\t\t}\n\t\treturn string;\n\t}", "public String toString() {\n return toString(root) + \" \";//call helper method for in-order traversal representation\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n int startIndex = 0;\n while (startIndex < total - laneSize - 1) {\n startIndex = printOddLane(sb, startIndex);\n startIndex = printEvenLane(sb, startIndex + laneSize);\n }\n\n return sb.toString();\n }", "@Override\n\tpublic String toString()\n\t{\n\n\t\tStringBuffer sb = new StringBuffer(\"top->\");\n\t\tif (!isEmpty())\n\t\t{\n for(int i = getSize() - 1; i >= 0; i--)\n {\n if(i == getSize() - 1)\n {\n sb.append(list.get(i));\n }\n else \n {\n sb.append( \"->\" + list.get(i));\n }\n }\n //System.out.println(sb.toString());\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String toString()\n\t{\t\n\t\tString a = \"\";\n\t\tint counter = 0; //counting how many points we have added to one line so far\n\t\tfor(int i = 0; i < hullVertices.length; i++) //iterate through the whole array\n\t\t{\n\t\t\tif(counter == 5) //go to a new line if you have added 5 points\n\t\t\t{\n\t\t\t\ta += \"\\n\";\n\t\t\t\tcounter = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//add point as a string and increment the counter\n\t\t\t\tString point = hullVertices[i].toString();\n\t\t\t\ta += point;\n\t\t\t\ta += \" \";\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\treturn a; \n\t}", "public String toString() {\n if (size == 0) {\n return \"Empty tree\";\n }\n\n\n StringBuilder sb = new StringBuilder();\n Node<T> right = root.getRight();\n Node<T> left = root.getLeft();\n\n if (right != null) {\n right.buildBranch(true, \"\", sb);\n }\n\n sb.append(root.getData() + \"\\n\");\n\n if (left != null)\n left.buildBranch(false, \"\", sb);\n\n return sb.toString();\n }", "@Override\n\tpublic String toString() {\n\t\t//Invert the Stack by pushing Nodes to a new Stack\n\t\tMyStack<T> invertedStack = new MyStack<T>(this.size());\n\t\twhile(!this.isEmpty()) {\n\t\t\tinvertedStack.push(this.pop());\n\t\t}\n\t\t\n\t\t//Create empty String for returning\n\t\tString returnString = \"\";\n\t\t\n\t\t//Create an iterator for traversing the Stack\n\t\tNode iteratorNode = invertedStack.topNode;\n\t\t\n\t\t//Traverse the Stack and append the individual data Strings to the return String\n\t\tfor(int i = 0; i < invertedStack.size(); i++) {\n\t\t\treturnString += iteratorNode.data.toString();\n\t\t\titeratorNode = iteratorNode.nextNode;\n\t\t}\n\t\t\n\t\t//Restore the original Stack so that it isn't destroyed\n\t\twhile(!invertedStack.isEmpty()) {\n\t\t\tthis.push(invertedStack.pop());\n\t\t}\n\t\t\n\t\t//Return the finished String to the function caller\n\t\treturn returnString;\n\t}", "public CodeTree toCodeTree() {\n List<Node> nodes = new ArrayList<Node>();\n for (int i = max(codeLengths); i >= 0; i--) { // Descend through code lengths\n List<Node> newNodes = new ArrayList<Node>();\n\n // Add leaves for symbols with positive code length i\n if (i > 0) {\n for (int j = 0; j < codeLengths.length; j++) {\n if (codeLengths[j] == i)\n newNodes.add(new Leaf(j)); //Isidedame ASCII reiksmes ilgiausio kodo\n }\n }\n\n // Merge pairs of nodes from the previous deeper layer\n for (int j = 0; j < nodes.size(); j += 2) {\n newNodes.add(new InternalNode(nodes.get(j), nodes.get(j + 1))); //Sujungia lapus i InternalNodes\n }\n nodes = newNodes;\n }\n return new CodeTree((InternalNode)nodes.get(0), codeLengths.length);\n }", "public String toString() {\r\n \r\n String resultn = \"\";\r\n int index = 0;\r\n while (index < list.size()) {\r\n resultn += \"\\n\" + list.get(index) + \"\\n\"; \r\n index++; \r\n } \r\n return getName() + \"\\n\" + resultn + \"\\n\";\r\n \r\n }", "public String toString() {\n if (subTrees.isEmpty()) return rootToString();\n StringBuilder result = new StringBuilder(rootToString() + \"(\" + subTrees.get(0).toString());\n for (int i = 1; i < subTrees.size(); i++) result.append(\",\").append(subTrees.get(i).toString());\n return result + \")\";\n }", "private String traverseForToString() {\n\t\tif (this.root != null)\n\t\t\tpreorderTraverseForToString(this.root);\n\n\t\treturn this.order;\n\t}", "public String toString()\n\t{\n\t\tchar [] ToStringChar = new char[length];\n recursiveToString(0, ToStringChar, firstC);\n String contents = new String(ToStringChar);\n return contents;\n\t\t\n\t}", "@Override\n\tpublic String toString() {\n\t\tTrieNode node = parent;\n\t\tStringBuilder s = new StringBuilder();\n\t\ts.append(character);\n\t\t\n\t\twhile(node != null)\n\t\t{\n\t\t\ts.append(node.character);\n\t\t\tnode = node.parent;\n\t\t}\n\t\t\n\t\treturn s.reverse().toString(); \n\t}", "@Override\r\n public String allCodes() {\r\n String allCodeStr = \"\";\r\n if (root == null || root.getChildrenMap().size() == 0) {\r\n return null;\r\n }\r\n List<String> answer = new ArrayList<String>();\r\n allCodesHelper(root, \"\", answer);\r\n for (String string : answer) {\r\n allCodeStr += string + \"\\n\";\r\n }\r\n return allCodeStr;\r\n }", "public String toString()\r\n\t{\r\n\t\tString s=\"\";\r\n\t\tfor(int i=0;i<n;i++)\r\n\t\t{\r\n\t\t\ts+=a[i]+\" \";\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public static String levelToString(char[][] level) \n\t{\n\t\tStringBuffer sb = new StringBuffer();\n\t\tint i = 0;\n\t\tfor (char[] zeile : level) \n\t\t{\n\t\t\tfor (char zeichen : zeile)\n\t\t\t\tsb.append(zeichen);\n\t\t\t\n\t\t\ti++;\n\t\t\tif(i!=level.length){\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\n\t}", "public String toString () {\n\t\tString s =\"\";\n\t\tString finalStr =\"\";\n\n\t\t// for all the chords in this verse\n\t\tfor (int j=0; j<chords.size(); j++){\n\t\t\t\n\t\t\t// print each element of the chord \n\t\t\tfor (int i=0; i<chords.get(j).length; i++){\n\t\t\t\ts+=chords.get(j)[i]+ \"|\";\n\t\t\t}\n\t\t\tfinalStr+=s+ \"\\n \";\n\t\t\ts =\"\";\n\t\t}\n\t\treturn finalStr;\n\t}", "public String toString(){\n\t\tString list=\"\";\n\t\tif(isEmpty()==false){\n\t\t\tDoubleNode temp=head;\n\t\t\twhile(temp!=null){\n\t\t\tlist += temp.getC();\n\t\t\ttemp=temp.getNext();\n\t\t\t}\n\t\t\treturn list;\n\t\t}\n\t\telse{\n\t\t\treturn list;\n\t\t}\n\t}", "public String toString() {\r\n String result = \"\";\r\n result += \"My Genealogy contains \" + size() + \" members:\\n\";\r\n\r\n for (int i = 0; i < SIZE; i++) {\r\n // i below is used to check for exponentiation, and create newlines for readability\r\n if (((i+1) & -(i+1)) == (i+1)) {\r\n result += \"\\n\";\r\n }\r\n\r\n result += tree[i] + \" \";\r\n }\r\n\r\n return result;\r\n }", "public String toString() {\n return tree.toString();\n }", "public String pantallasToString(){\n\t\tif(null == this.pantallas){\n\t\t\treturn \"\";\n\t\t}else{\n\t\t\tfinal StringBuilder grupos = new StringBuilder();\n\t\t\tfor (int i = 0; i < this.pantallas.size(); i++) {\n\t\t\t\tif(i == (this.pantallas.size()-1)){\n\t\t\t\t\tgrupos.append(this.pantallas.get(i).getNombrePantalla());\n\t\t\t\t}else{\n\t\t\t\t\tgrupos.append(this.pantallas.get(i).getNombrePantalla()).append(\", \");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn grupos.toString();\n\t\t}\n\t}", "public String printTree() {\n printSideways();\n return \"\";\n }", "public String getPantallasToString(){\n\t\tif(null == grupos){\n\t\t\treturn \"\";\n\t\t}else{\n\t\t\tStringBuilder grupos = new StringBuilder();\n\t\t\tfor (int i = 0; i < this.grupos.size(); i++) {\n\t\t\t\tif(i == (this.grupos.size()-1)){\n\t\t\t\t\tgrupos.append(this.grupos.get(i).pantallasToString());\n\t\t\t\t}else{\n\t\t\t\t\tgrupos.append(this.grupos.get(i).pantallasToString()).append(\", \");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn grupos.toString();\n\t\t}\n\t}", "public String toString() {\n // TODO: implement this method\n ListNode curr = nil.next();\n String retVal = \"[\";\n\n while(curr != nil){\n\n if(curr.isActive()){\n retVal += \" *\" + curr.value().toString() + \"*\" ;\n }else{\n retVal += \" \" + curr.value().toString() ;\n }\n\n curr = curr.next();\n }\n\n return retVal + \" ]\";\n }", "public String toStringRev() {\n String res= \"[\";\n // invariant: res = \"[s0, s1, .., sk\" where sk is the object after node n\n for (Node n = sentinel.pred; n != sentinel; n= n.pred) {\n if (n != sentinel.pred)\n res= res + \", \";\n res= res + n.data;\n }\n return res + \"]\";\n }", "public static String alienOrder(String[] words) {\n if(words.length==0){\n return \"\";\n }\n else if(words.length==1){\n return words[0];\n }\n else{\n HashMap<Character,HashSet<Character>> graph = new HashMap<Character,HashSet<Character>>();\n //Use this array to denote each node's indegree\n int[] indegree = new int[26];\n Arrays.fill(indegree,-1);\n //****Initialize indegree array, '0' means exits****\n for(String x : words){\n for(char c : x.toCharArray()){\n indegree[c-'a'] = 0;\n }\n }\n int first = 0;\n int second = 1;\n //****Build the graph****\n while(second<words.length){\n int minLen = Math.min(words[first].length(),words[second].length());\n for(int i = 0; i<minLen; i++){\n char f = words[first].charAt(i);\n char s = words[second].charAt(i);\n if(f!=s){\n if(graph.containsKey(s)==true){\n HashSet<Character> hs = graph.get(s);\n if(hs.contains(f)==false){\n indegree[f-'a']++;\n hs.add(f);\n graph.replace(s,hs);\n }\n }\n else{\n HashSet<Character> hs = new HashSet<Character>();\n hs.add(f);\n graph.put(s,hs);\n indegree[f-'a']++;\n }\n break;\n }\n }\n first++;\n second++;\n }\n StringBuilder result = new StringBuilder();\n Queue<Character> topo = new LinkedList<Character>();\n int numOfChar = 0;\n for(int i = 0; i<26; i++){\n if(indegree[i]>=0){\n numOfChar++;\n if(indegree[i]==0){\n topo.offer((char)('a'+i));\n } \n }\n }\n if(topo.size()==0){\n return \"\";\n //Means circle exits\n }\n while(topo.size()>0){\n char c = topo.poll();\n result.append(c);\n if(graph.containsKey(c)==false){\n \tcontinue;\n }\n HashSet<Character> hs = graph.get(c);\n for(char x : hs){\n indegree[x-'a']--;\n if(indegree[x-'a']<0){\n return \"\";\n }\n else if(indegree[x-'a']==0){\n topo.offer(x);\n }\n }\n }\n return result.reverse().toString();\n //return result.length()==numOfChar?result.reverse().toString():\"HAHA\";\n }\n }", "public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"<\" + mainList.input);\n for (MainNode n = mainList.mainNext; n != null; n = n.mainNext) {\n if (n.next == null) {\n sb.append(\", \" + n.input);\n } else {\n for (NextNode m = n.next; m != null; m = m.next) {\n sb.append(\", \" + m.input);\n }\n sb.append(n.input);\n }\n }\n sb.append(\">\");\n return sb.toString();\n }", "@Override\r\n public String toString() {\r\n String toReturn = \"\";\r\n for (ListNode n : wordList) {\r\n toReturn += n.toString();\r\n }\r\n return toReturn;\r\n }", "public String toString() {\n\t\tStringBuilder tmpStringBuilder = new StringBuilder(\"(\");\n\t\tint frontIndex = theFrontIndex;\n\t\tfor (int j = 0; j < theSize; j++) {\n\t\t\tif (j > 0)\n\t\t\t\ttmpStringBuilder.append(\", \");\n\t\t\ttmpStringBuilder.append(theData[frontIndex]);\n\t\t\tfrontIndex = (frontIndex + 1) % theData.length;\n\t\t}\n\t\ttmpStringBuilder.append(\")\");\n\t\treturn tmpStringBuilder.toString();\n\t}", "public String printBFSTree(){\n if(root==null)return \"\";\n String binstr=\"\";\n String valuestr=\"\";\n String codestr=\"\";\n LinkedList<HCNode> list=new LinkedList<HCNode>();\n root.code=\"\";\n list.add(root);\n HCNode node;\n while(list.size()>0){\n node=list.getFirst();\n if(node.left==null && node.right==null){\n binstr=binstr+\"0\";\n valuestr=valuestr+((byte)node.str.charAt(0))+\"\\n\";\n codestr=codestr+node.code;\n }else{\n binstr=binstr+\"1\";\n }\n if(node.left!=null){node.left.code=node.left.parent.code+\"0\";list.addLast(node.left);}\n if(node.right!=null){node.right.code=node.right.parent.code+\"1\";list.addLast(node.right);}\n list.removeFirst();\n }\n String res=binstr+\"\\n\"+valuestr+codestr+\"\\n\";\n System.out.println(binstr);\n System.out.print(valuestr);\n System.out.println(codestr);\n return res;\n }", "public void tradOra(){\r\n leerOracion();\r\n String res=\"\";\r\n for(int i=0; i<orac.size(); i++){\r\n res+=tradPal(rz, orac.get(i).trim())+\" \";\r\n }\r\n System.out.println(res);\r\n }", "public String toString() {\n\t\tString str = \"\";\n\t\tfor (int i = 1 ; i < size - 1; i++ ){\n\t\t\tstr = str + getBlock(i);\n\t\t}\n\t\treturn str;\n\t}", "public String toListString() {\n\t\treturn head.toListString(); \n\t}", "@Override\r\n public String toString() {\n String processString = \"\";\r\n if (isEmpty()) {\r\n return \" \";\r\n }\r\n\r\n for (int i = 0; i < data.length; i++) {\r\n if (data[i] == null) {\r\n return processString;\r\n }\r\n processString += data[i].toString() + \" \";\r\n\r\n }\r\n return processString;\r\n\r\n }", "public String toString(){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tTList<T> root = this.getRoot();\n\t\tif (root == this) \n\t\t\tsb.append(\"*\");\n\t\tif (root.visited())\n\t\t\tsb.append(\"-\");\n\t\tsb.append(root.getValue());\n\t\twhile (root.hasNext()) {\n\t\t\tsb.append(\" -> \");\n\t\t\troot = root.getNext();\n\t\t\tif (root == this) \n\t\t\t\tsb.append(\"*\");\n\t\t\tif (root.visited())\n\t\t\t\tsb.append(\"-\");\n\t\t\tsb.append(root.getValue());\n\t\t}\n\t\treturn sb.toString();\n\t}", "StringBuffer generateVc(){\n\n StringBuffer r = new StringBuffer();\n\n for(int i = 0; i <= sons.size() - 1; i++)\n r.append(getChildAt(i).toDot());\n \n return r;\n }", "public static void main(String [] args) {\n ArrayList<String> all;\n LinkedList<String> ll;\n CircularlyLinkedList<String> sll = new CircularlyLinkedList<>();\n\n String[] alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\".split(\"\");\n\n for (String s : alphabet) {\n sll.addFirst(s);\n sll.addLast(s);\n }\n System.out.println(sll.toString());\n\n sll.rotate();\n sll.rotate();\n\n for (String s : sll) {\n System.out.print(s + \", \");\n }\n\n }", "@Override\r\n \tpublic String toString() {\r\n \t\tStringBuilder result = new StringBuilder();\r\n \t\tresult.append('[');\r\n \t\tif(numItems > 0) {\r\n \t\t\tresult.append(items[0].toString());\r\n \t\t\t// We want number of spaces to be equal to numItems - 1\r\n \t\t\tfor(int i=1; i<numItems; i++) {\r\n \t\t\t\tresult.append(' ');\r\n \t\t\t\tresult.append(items[i].toString());\r\n \t\t\t}\r\n \t\t}\r\n \t\tresult.append(']');\r\n \t\treturn result.toString();\r\n \t}", "public String toString(){\n int nNodes=Integer.parseInt(rows.get(0));\n content=\"[NUMBER NODES] \\n\"+nNodes+\"\\n\";\n content+=\"[NODE] [SERVICE TIME] [READY TIME] [DUE DATE]\\n\";\n for(int i=0;i<nNodes*4;i+=4){\n for(int j=1;j<5;j++){\n content+=rows.get(i+j)+\"\\t\";\n }\n content+=\"\\n\";\n }\n content+=\"[START NODE][END NODE][DISTANCE] \\n\";\n //limit:filas (n*(n-1)) por la 3 columnas\n //\t\tmas lo que ya se leyo nodos por las 4 columnas\n int limit = ((nNodes*(nNodes-1))*3)+(nNodes*4);\n\n for(int i=(nNodes*4); i<limit;i+=3){\n for(int j=1;j<4;j++){\n //content+=rows.get(i+j)+\" [\"+(i+j)+\"]\\t\";\n content+=rows.get(i+j)+\"\\t\";\n }\n content+=\"\\n\";\n }\n return content;\n }", "public String topologicalSort() {\n\t\t\n\t\tboolean[] visited = new boolean[V];\n\t\tStack<Integer> stack = new Stack<Integer>();\n\t\t\n\t\tfor(int i=0;i< V;i++) {\n\t\t\tif(!visited[i]) {\t\t\t\n\t\t\t\ttopologicalSortRec(list, list.get(i), stack, visited, i);\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tString result = \"\";\n\t\twhile(!stack.isEmpty()) {\n\t\t\tresult = result + (char)(stack.pop() + 'a');\n\t\t}\n//\t\tSystem.out.println(result);\n\t\treturn result;\n\t}", "@Override\n\tpublic String toString() {\n\t\tArrayList<Integer> elements = new ArrayList<Integer>();\n\n\t\tfillInOrderElements(_root, elements);\n\n\t\treturn elements.toString();\n\t}", "@Override public String toString(){\r\n StringBuilder output = new StringBuilder();\r\n for (Iterator<NoteToken> i = NotesList.iterator(); i.hasNext();){\r\n output.append(i.next().toString());\r\n output.append(\" \");\r\n \r\n }\r\n return output.toString();\r\n }", "public String toString() {\n\t\treturn \"[\" + left + \",\" + right + \")\";\n\t}", "private String getPacketData(){\n\t\tString str = \"\";\n\t\tfor(int i=0;i<lenth_get/5;i++){\n\t\t\tstr = str + originalUPLMN[i];\n\t\t}\n\t\tif(DBUG){\n\t\t\tif(DEBUG) Log.d(LOG_TAG, \"getPacketData---str=\"+str);\n\t\t}\n\t\treturn str;\n\t}", "public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(n + System.lineSeparator());\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n sb.append(tiles[i][j] + \" \");\n }\n sb.append(System.lineSeparator());\n }\n return sb.toString();\n }", "@Override\n public String toString()\n {\n String res = \"\";\n int teller = 1;\n res += \"\\nrij: \" + ANSI_RED + \"1\" + ANSI_RESET + \" 2 \" + ANSI_RED + \"3\" + ANSI_RESET + \" 4 \" + ANSI_RED + \"5\" + ANSI_RESET + \" 6 \" + ANSI_RED + \"7\" + ANSI_RESET + \" \\n\";\n for (Gangkaart gg[] : gangkaarten)\n {\n res += \" \";\n for (Gangkaart g : gg)\n {\n res += String.format(\"%s \", g.toStringRij1());\n }\n res += \"\\n\";\n res += \" \" + teller + \" \";\n for (Gangkaart g : gg)\n {\n res += String.format(\"%s \", g.toStringRij2());\n }\n res += \" \" + teller;\n res += \"\\n\";\n res += \" \";\n for (Gangkaart g : gg)\n {\n res += String.format(\"%s \", g.toStringRij3());\n }\n res += \"\\n\";\n teller++;\n }\n res += \"\\nrij: \" + ANSI_RED + \"1\" + ANSI_RESET + \" 2 \" + ANSI_RED + \"3\" + ANSI_RESET + \" 4 \" + ANSI_RED + \"5\" + ANSI_RESET + \" 6 \" + ANSI_RED + \"7\" + ANSI_RESET + \" \\n\";\n return res;\n }", "public String toString()\r\n {\r\n String result = \"\";\r\n \r\n for (int index=0; index < top; index++) \r\n result = result + stack[index].toString() + \"\\n\";\r\n \r\n return result;\r\n }", "public String toString() {\n if (N == 0) return \"[ ]\";\n String s = \"\";\n s = s + \"[ \";\n for (int i = 0; i <= N; i++)\n s = s + a[i] + \" \";\n s = s + \"]\";\n return s;\n }", "@Override\n\tpublic String toString()\n\t{\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tfor (int i = 0; i < 2 * size + 1; i++)\n\t\t{\n\t\t\tstringBuilder.append(\"-\");\n\t\t}\n\t\tstringBuilder.append(\"\\n|\");\n\t\tfor (int i = 0; i < state.size(); i++)\n\t\t{\n\t\t\tstringBuilder.append(state.get(i)).append(\"|\");\n\t\t\tif (i % size == size - 1 && i < state.size() - 1)\n\t\t\t{\n\t\t\t\tstringBuilder.append(\"\\n|\");\n\t\t\t}\n\t\t}\n\t\tstringBuilder.append(\"\\n\");\n\t\tfor (int i = 0; i < 2 * size + 1; i++)\n\t\t{\n\t\t\tstringBuilder.append(\"-\");\n\t\t}\n\t\treturn stringBuilder.toString();\n\t}" ]
[ "0.6306336", "0.6092393", "0.59960836", "0.5976841", "0.5836935", "0.5832466", "0.58128923", "0.579502", "0.57042485", "0.5701243", "0.570055", "0.5679644", "0.56758785", "0.56536466", "0.5631412", "0.5629755", "0.5628997", "0.5596531", "0.5588813", "0.5553578", "0.55510205", "0.55265087", "0.5473862", "0.5463948", "0.54601157", "0.5432705", "0.5425812", "0.53811425", "0.53727376", "0.5367706", "0.53634757", "0.5359968", "0.53597015", "0.5357369", "0.53561884", "0.53535587", "0.5346963", "0.5344948", "0.5337364", "0.53326756", "0.5329439", "0.52951026", "0.5290051", "0.528825", "0.52865374", "0.5285882", "0.5285603", "0.52814966", "0.527426", "0.5269005", "0.52627766", "0.52549136", "0.52537215", "0.52522427", "0.5250575", "0.524842", "0.52431744", "0.52344656", "0.52302784", "0.5224805", "0.52243763", "0.5223446", "0.5218881", "0.5214149", "0.52137005", "0.521359", "0.52067405", "0.5202733", "0.5195807", "0.5193042", "0.5190423", "0.51894647", "0.5189455", "0.5188414", "0.5182054", "0.51770955", "0.51719165", "0.51695925", "0.51695335", "0.51634324", "0.5159754", "0.51540625", "0.5152252", "0.5148856", "0.5142226", "0.5141521", "0.5141176", "0.5138537", "0.51384586", "0.51379806", "0.5133756", "0.5132617", "0.51325065", "0.5126268", "0.5119796", "0.51066184", "0.5106532", "0.51004183", "0.5098523", "0.5098039" ]
0.6937409
0
Renders our pixel array to the screen...
public void render(Graphics graphics) { // for(int index = 0; index < pixels.length; index++) { // pixels[index] = (int)(Math.random() * 0xFFFFFF); // } graphics.drawImage(view, 0, 0, view.getWidth(), view.getHeight(), null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void render () {\n image (img, xC, yC, xLength * getPixelSize(), yLength * getPixelSize());\n }", "private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }", "public abstract void render(PixelImage canvas);", "public void render() { image.drawFromTopLeft(getX(), getY()); }", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}", "private void render() {\n\t\tBufferStrategy bs = this.getBufferStrategy();\r\n\t\tif (bs == null) {\r\n\t\t\tcreateBufferStrategy(3);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//Initiates Graphics class using bufferStrategy\r\n\t\tGraphics g = bs.getDrawGraphics();\r\n\t\t\r\n\t\t//displays img on screen\r\n\t\tg.drawImage(img, 0, 0, null);\r\n\t\t\r\n\t\tg.setColor(Color.CYAN);\r\n\t\tg.drawString(fps + \" FPS\", 10, 10);\r\n\t\tg.setFont(new Font(\"Arial\", 0, 45));\r\n\r\n\t\tg.dispose();//clears graphics\r\n\t\tbs.show();//shows graphics\r\n\t}", "public void render() {\n\t\tscreen.background(255);\n\t\thandler.render();\n\t}", "private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}", "public native void updateRendering(int width, int height);", "public native void updateRendering(int width, int height);", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "public void render() {\n int pixel = getPixelSize();\n for (int xx = x; xx<x+w; xx += pixel) {\n for (int yy = y; yy<y+h; yy += pixel) {\n Location next = getLocation(xx, yy);\n if (next != null) { // This way if a wall is spawned at the edge it's ok\n next.setColor(color(255,255,255));\n next.setType(LocationType.WALL);\n getGridCache().add(next);\n }\n }\n }\n }", "public void draw() {\r\n\t\tfor(int i=0; i<2; i++) {\r\n\t\t\trenderer[i].setView(camera[i]);\r\n\t\t\trenderer[i].render();\r\n\t\t}\r\n\t}", "public void render(int x, int y, Screen screen) {\n }", "public void renderImage() {\r\n\r\n\t\tfinal int nX = _imageWriter.getNx();\r\n\t\tfinal int nY = _imageWriter.getNy();\r\n\t\tfinal double dist = _scene.get_screenDistance();\r\n\t\tfinal double width = _imageWriter.getWidth();\r\n\t\tfinal double height = _imageWriter.getHeight();\r\n\t\tfinal Camera camera = _scene.get_camera();\r\n\r\n\t\tfinal Pixel thePixel = new Pixel(nY, nX);\r\n\r\n// Generate threads\r\n\t\tThread[] threads = new Thread[_threads];\r\n\t\tfor (int i = _threads - 1; i >= 0; --i) {\r\n\t\t\tthreads[i] = new Thread(() -> {\r\n\t\t\t\tPixel pixel = new Pixel();\r\n\r\n\t\t\t\twhile (thePixel.nextPixel(pixel)) {\r\n\t\t\t\t\tif (_imageWriter.getAcceleration()) {\r\n\r\n\t\t\t\t\t\tColor generalColor = renderMini2(pixel.col, pixel.row);\r\n\t\t\t\t\t\t_imageWriter.writePixel(pixel.row, pixel.col, generalColor.getColor());\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tColor avgColor = renderHelp(pixel.col, pixel.row);\r\n\t\t\t\t\t\t_imageWriter.writePixel(pixel.row, pixel.col, avgColor.getColor());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n// Start threads\r\n\t\tfor (Thread thread : threads)\r\n\t\t\tthread.start();\r\n\r\n// Wait for all threads to finish\r\n\t\tfor (Thread thread : threads)\r\n\t\t\ttry {\r\n\t\t\t\tthread.join();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t}\r\n\t\tif (_print)\r\n\t\t\tSystem.out.printf(\"\\r100%%\\n\");\r\n\t}", "private void render() {\n\n\tbs=display.getCanvas().getBufferStrategy();\t\n\t\n\tif(bs==null) \n\t {\t\n\t\tdisplay.getCanvas().createBufferStrategy(3);\n\t\treturn ;\n\t }\n\t\n\tg=bs.getDrawGraphics();\n\n\t//Clear Screen\n\tg.clearRect(0, 0, width, height);\n\t\n\tif(State.getState()!=null )\n\t\tState.getState().render(g);\n\t\n\t//End Drawing!\n\tbs.show();\n\tg.dispose();\n\t\n\t}", "public void draw() {\t\t\n\t\ttexture.draw(x, y);\n\t\tstructure.getTexture().draw(x,y);\n\t}", "void render(GraphicsContext gc, double xOffSet, double yOffSet);", "public void render() {\r\n\t\t\r\n\t\tif (page >= 0 && page < pages.length) {\r\n\t\t\tTextures.renderQuad(pages[page][(updates / 90) % pages[page].length], 32, 32, 1024, 512);\r\n\t\t}\r\n\t}", "public native void renderFrame();", "public native void renderFrame();", "public void render(Screen screen) {\n\t\tscreen.renderInterface(x, y, width, height, button, clicked); //renders all 4 pieces of the 32x32 sprite. Modifying the x or y will change where the screen is centered.\n\t}", "@Override\n\tpublic void draw() {\n\t\tSystem.out.println(\"绘制矩形\");\n\t\t\n\t}", "public void render(){\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthis.screen.renderBackground();\n\t\t\n\t\t\n\t\tfor(int i=0;i<this.obstacles.size();i++){\n\t\t\tobstacles.get(i).render(screen);\n\t\t}\n\t\t\n\t\tthis.screen.renderGround();\n\t\t\n\t\t\n\t\tthis.bird.render(screen);\n\n\t\tscreen.renderLeftLim();\n\t\t\n\t\tfor(int i= 0;i<this.pixels.length;i++){\n\t\t\tthis.pixels[i] = this.screen.getPixel(i);\n\t\t}\n\t\n\n\t\t\n\t\tGraphics g = bs.getDrawGraphics();\n\t\tg.drawImage(image,0,0,getWidth(),getHeight(),null);\n\t\tg.setColor(Color.WHITE);\n\t\tg.setFont(new Font(\"Verdana\",0,30));\n\t\tg.drawString(\"\"+this.numGoals, 300, 60);\n\t\tif(this.gameOver){\n\t\t\tif(this.begin){\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,50));\n\t\t\t\tg.drawString(GAMEOVER_MESSAGE, (WIDTH-300)/2, 200);\n\t\t\t\t\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,20));\n\t\t\t\tg.drawString(\"press down key to restart\", (WIDTH-250)/2, 300);\n\t\t\t\tg.drawString(\"Best score:\"+this.bestScore, (WIDTH-135)/2, 350);\n\t\t\t}else{\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,50));\n\t\t\t\tg.drawString(\"OPEN BIRD\", (WIDTH-270)/2, 200);\n\t\t\t\t\n\t\t\t\tg.setFont(new Font(\"Verdana\",0,20));\n\t\t\t\tg.drawString(\"press down key to start\", (WIDTH-250)/2, 300);\n\t\t\t}\n\t\t}\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the graphics that can be drawn to\n\t\tg = bs.getDrawGraphics();\n\t\t\n\t\t// Set the Graphics2D\n\t\tg2d = (Graphics2D)g;\n\t\t\n\t\t// Create a black rectangle to fill the canvas as a base background\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\tif (screenLoaded)\n\t\t{\n\t\t\t// Draw the static background\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawStaticBackground(g);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(game.getCamera().getxPos(), \n\t\t\t\t\t\t \t game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the background layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawBackground(g);\n\t\t\t\n\t\t\t// Render all of the Tiles\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesWorld())\n\t\t\t\tgame.getWorldHandler().renderTiles(g);\n\t\t\t\n\t\t\t// Render all of the GameObjects\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesGameObjects())\n\t\t\t\tgame.getObjectHandler().renderGameObjects(g);\n\t\t\t\n\t\t\t// Draw the foreground layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawForeground(g);\n\t\t\t\n\t\t\t// Draw the lighting\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesLighting())\n\t\t\tg.drawImage(game.getLightHandler().getLightmap(), -1500, -3100, null);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(-game.getCamera().getxPos(), \n\t\t\t\t\t\t \t -game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the gui layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawGui(g);\n\t\t\t\n\t\t\t// Draw the debug layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null\n\t\t\t\t&& game.getDebugScreen() != null\n\t\t\t\t&& game.isDebugShown())\n\t\t\t\tgame.getDebugScreen().showDebug(g);\n\t\t\t\n\t\t\t// Draw the loading \"curtain\" if the screen is still loading\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null &&\n\t\t\t\t!screenLoaded)\n\t\t\t{\n\t\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dispose of all graphics\n\t\t\tg.dispose();\n\t\t\t// Show all graphics prepared on the BufferStrategy\n\t\t\tbs.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\n\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Dispose of all graphics\n\t\tg.dispose();\n\t\t// Show all graphics prepared on the BufferStrategy\n\t\tbs.show();\n\t}", "public void render() {\r\n\r\n }", "public void render();", "public void render(){\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Sets graphics in screen and clears them\n\t\tGraphics g = bs.getDrawGraphics();\n\t\tscreen.graphics(g);\n\t\tscreen.clear();\n\t\t\n\t\tGraphics2D graphics2d = (Graphics2D) g;\n\t\t\n\t\t//Adds antialiasing to text\n\t\tgraphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\n\t\tmanager.render(screen);\n\t\t\n\t\tfor(int i = 0; i < WIDTH*HEIGHT; i++){\n\t\t\tpixels[i] = screen.getPixels()[i];\n\t\t}\n\t\tg.drawImage(image, 0, 0, getWidth(), getHeight(), null);\n\t\t\n\t\t//Draw text from string buffer\n\t\tfor(StringObject so : screen.stringBuffer){\n\t\t\tString s = so.string;\n\t\t\tg.setColor(so.color);\n\t\t\tg.setFont(so.font);\n\t\t\tg.drawString(s, so.xp, so.yp);\n\t\t}\n\t\tscreen.stringBuffer.clear();\n\t\t\n\t\t//Draws pause graphics\n\t\tif(screen.pause && manager.getState() == 2){\n\t\t\tg.setColor(new Color((0xcc00aa & 0xff0000) >> 16, (0xcc00aa & 0xff00) >> 8, (0xcc00aa & 0xff), 255));\n\t\t\tg.fillRect(0, 290, screen.getWidth(), 170);\n\t\t\tg.setColor(new Color((0x222222 & 0xff0000) >> 16, (0x222222 & 0xff00) >> 8, (0x222222 & 0xff), 255));\n\t\t\tg.fillRect(0, 300, screen.getWidth(), 150);\n\t\t\t\n\t\t\tg.setColor(Color.WHITE);\n\t\t\tg.setFont(new Font(\"Audiowide\", Font.PLAIN, 90));\n\t\t\tg.drawString(\"PAUSED\", 330, 380);\n\t\t\tg.setFont(new Font(\"Audiowide\", Font.PLAIN, 30));\n\t\t\tg.drawString(\"Press Escape to Resume\", 340, 420);\n\t\t}\n\t\t\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\tif (display != null && GeneticSimulator.updateRendering)\n\t\t{\n\t\t\tg.drawImage(display, 0, 0, getWidth(), getHeight(), this);\n\t\t}\n\n\t\tWorld world = GeneticSimulator.world();\n\n\t\tworld.draw((Graphics2D) g, view);\n\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawString(String.format(\"view: [%2.1f, %2.1f, %2.1f, %2.1f, %2.2f]\", view.x, view.y, view.width, view.height, view.PxToWorldScale), (int) 10, (int) 15);\n\n\t\tg.drawString(String.format(\"world: [time: %2.2f pop: %d]\", world.getTime() / 100f, World.popCount), 10, 30);\n\n\t\tg.drawRect(view.pixelX, view.pixelY, view.pixelWidth, view.pixelHeight);\n//\t\tp.render(g);\n//\t\tc.render(g);\n\n\n\t\t//g.drawImage(player,100,100,this);\n\n\t\t//////////////////////////////\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void DrawScreen() {\r\n DrawScreen(0, false, null);\r\n }", "@Override\r\n\tpublic void draw() {\n\t\tPoint p = this.getP();\r\n\t\tint start_point = p.getX();\r\n\t\tint end_point = p.getY();\r\n\t\t\r\n\t\tint width = this.getWidth();\r\n\t\tint height = this.getHeight();\r\n\t\t\r\n\t\tSystem.out.println(\"�l�p�`��`�� �_(\" + start_point +\",\"+ end_point + \")����Ƃ��āA��\"+ width +\"����\"+ height +\"�̎l�p�`\");\r\n\t}", "public void render () \n\t{ \n\t\trenderWorld(batch);\n\t\trenderGui(batch);\n\t}", "public void render()\r\n\t{\n\t}", "public void drawImage(float x, float y, float width, float height);", "public void render (Graphics2D g);", "private final void \n renderIt( ) {\n \t\n \tif( this.mImageCount > 0 || this.mLineCount > 0 || this.mRectCount > 0 || this.mTriangleCount > 0 ) {\n\t \n \t\tthis.mVertexBuffer.clear(); //clearing the buffer\n\t GLES11.glEnableClientState( GLES11.GL_VERTEX_ARRAY );\n\n\t //if there are images to render\n\t if( this.mImageCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mImageCount * 16 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer );\n\t\t this.mIndexBuffer.limit(this.mImageCount * 6); //DESKTOP VERSION ONLY\n\t\t GLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mImageCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t \tGLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t //if there are lines to render\n\t if( this.mLineCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mLineCount * 4 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 0, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glDrawArrays( GLES11.GL_LINES, 0, this.mLineCount * 2 ); //* 2 because every line got 2 points\n\t }\n\n\t //if there are rects to render\n\t if( this.mRectCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mRectCount * 8 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t this.mIndexBuffer.limit(this.mRectCount * 6); //DESKTOP VERSION ONLY\n\t \t GLES11.glVertexPointer(2, GLES11.GL_FLOAT, 0, this.mVertexBuffer); //copy the vertices into the GPU\t \t \n\t \t \tGLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mRectCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t }\n\t \n\t //if there are triangles to render\n\t if( this.mTriangleCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mTriangleCount * 12 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //16 == byteoffset -> es liegen 2 werte dazwischen\n\t\t GLES11.glDrawArrays( GLES11.GL_TRIANGLES, 0, this.mTriangleCount * 3 ); //* 2 because every line got 2 points\t \t\n\t\t GLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t GLES11.glDisableClientState( GLES11.GL_VERTEX_ARRAY );\n \t\t\n\t //resetting counters\n\t this.mBufferIndex = 0;\n\t \tthis.mImageCount = 0;\n\t \tthis.mLineCount = 0;\n\t \tthis.mRectCount = 0;\n\t \tthis.mTriangleCount = 0;\n \t}\n }", "public void draw() {\n \n // TODO\n }", "public void render() {\n }", "private void displayBoard()\n {\n GreenfootImage toDisplay;\n \n for( int r = 0; r < board.length; r ++ )\n {\n for( int c = 0; c < board[r].length; c ++ )\n {\n toDisplay = new GreenfootImage( board[r][c], 100, Color.BLACK, new Color(0,0,0,0) ); \n getBackground().drawImage( toDisplay, c * getWidth()/3 + (getWidth()/3 - toDisplay.getWidth() )/2 , r * getHeight()/3 + (getHeight()/3 - toDisplay.getHeight() )/2 );\n }\n }\n }", "static void draw()\n {\n for (Viewport viewport : viewports)\n viewport.draw(renderers);\n }", "@Override\n\tpublic void render() {\n\t\tScreen.render();\n\t}", "private void renderTex() {\n final float\n w = xdim(),\n h = ydim(),\n x = xpos(),\n y = ypos() ;\n GL11.glBegin(GL11.GL_QUADS) ;\n GL11.glTexCoord2f(0, 0) ;\n GL11.glVertex2f(x, y + (h / 2)) ;\n GL11.glTexCoord2f(0, 1) ;\n GL11.glVertex2f(x + (w / 2), y + h) ;\n GL11.glTexCoord2f(1, 1) ;\n GL11.glVertex2f(x + w, y + (h / 2)) ;\n GL11.glTexCoord2f(1, 0) ;\n GL11.glVertex2f(x + (w / 2), y) ;\n GL11.glEnd() ;\n }", "public void drawPixel(int x, int y, int color);", "public void renderImage(BufferedImage image, int xPosition, int yPosition)\n {\n int[] imagePixels = ((DataBufferInt) image.getRaster().getDataBuffer()).getData();\n\n for(int y = 0; y < image.getHeight(); y++ ) \n {\n for(int x = 0; x < image.getWidth(); x++ ) \n {\n pixels[(x + xPosition) + (y + yPosition) * view.getWidth() ] = imagePixels[x + y * image.getWidth()];\n }\n }\n }", "private void drawToScreen() {\n \n Graphics g2 = getGraphics();\n /*g2.drawImage(image, 0, 0, \n WIDTH * SCALE, HEIGHT * SCALE, \n 0, 0, WIDTH, HEIGHT, \n this);*/\n g2.drawImage(image,\n (int)gsm.getAttribute(\"CAMERA_X1\"),\n (int)gsm.getAttribute(\"CAMERA_Y1\"),\n (int)gsm.getAttribute(\"CAMERA_X1\") + WIDTH*SCALE,\n (int)gsm.getAttribute(\"CAMERA_Y1\") + HEIGHT*SCALE,\n (int)gsm.getAttribute(\"WORLD_X1\"),\n (int)gsm.getAttribute(\"WORLD_Y1\"),\n (int)gsm.getAttribute(\"WORLD_X1\") + WIDTH,\n (int)gsm.getAttribute(\"WORLD_Y1\") + HEIGHT,\n this);\n\t\t/*g2.drawImage(image, 0, 0,\n\t\t\t\tWIDTH * SCALE, HEIGHT * SCALE,\n\t\t\t\tnull);*/\n\t\tg2.dispose();}", "public void renderImage()\n {\n for (int i = 0; i < _imageWriter.getNx(); i++)\n {\n for (int j = 0; j < _imageWriter.getNy(); j++)\n {\n Ray ray;\n ray = new Ray(_scene.getCamera().constructRayThroughPixel(_imageWriter.getNx(), _imageWriter.getNy(),j,i,\n _scene.getScreenDistance(), _imageWriter.getWidth(),_imageWriter.getHeight()));\n\n if(i==255 && j==255)\n System.out.print(\"111\");\n Map<Geometry, List<Point3D>> intersectionPoints = new HashMap<>(getSceneRayIntersections(ray));\n\n if(intersectionPoints.isEmpty())\n _imageWriter.writePixel(j, i, _scene.getBackground());\n else\n {\n Map<Geometry, Point3D> closestPoint = getClosestPoint(intersectionPoints);\n Map.Entry<Geometry,Point3D> entry;\n Iterator<Entry<Geometry, Point3D>> it = closestPoint.entrySet().iterator();\n entry = it.next();\n _imageWriter.writePixel(j, i, calcColor(entry.getKey(), entry.getValue(), ray));\n }\n\n }\n }\n //printGrid(1);\n\n }", "private void render() {\n\n if (state == STATE.PAUSE) {\n\n return;\n }\n\n\n if (state == STATE.MENU) {\n\n menu.draw();\n arrow.render();\n return;\n\n }\n\n if (state == STATE.INSTRUCTIONS) {\n instructions.draw();\n return;\n }\n\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).render();\n }\n\n\n for (Enemy enemy : enemies) {\n enemy.render();\n }\n\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).render();\n }\n\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).render();\n }\n\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).render();\n }\n\n topBar.render();\n bottomBar.render();\n fps.render();\n score.render();\n\n\n }", "public void paintFinalScreen() {\n\t\tapp.image(end, 0, 0);\n\t}", "public void render() {\n this.canvas.repaint();\n }", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }", "public void draw(){\n StdDraw.picture(this.xCoordinate,this.yCoordinate,this.img);\n }", "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "public void drawImage() {\n mTextureRender.drawFrame(mSurfaceTexture);\n }", "public native void renderOneFrame();", "public boolean render(int Nr, ARECTANGLE r, float[] color, float dms);", "private void render()\n {\n //Applicazione di un buffer \"davanti\" alla tela grafica. Prima di disegnare \n //sulla tela grafica il programma disegnerà i nostri oggetti grafici sul buffer \n //che, in seguito, andrà a disegnare i nostri oggetti grafici sulla tela\n bufferStrategico = display.getTelaGrafica().getBufferStrategy();\n \n //Se il buffer è vuoto (== null) vengono creati 3 buffer \"strategici\"\n if(bufferStrategico == null)\n {\n display.getTelaGrafica().createBufferStrategy(3);\n return;\n }\n \n //Viene definito l'oggetto \"disegnatore\" di tipo Graphic che disegnerà i\n //nostri oggetti grafici sui nostri buffer. Può disegnare qualsiasi forma\n //geometrica\n disegnatore = bufferStrategico.getDrawGraphics();\n \n //La riga seguente pulisce lo schermo\n disegnatore.clearRect(0, 0, larghezza, altezza);\n \n //Comando per cambiare colore dell'oggetto \"disegnatore\". Qualsiasi cosa\n //disengata dal disegnatore dopo questo comando avrà questo colore.\n \n /*disegnatore.setColor(Color.orange);*/\n \n //Viene disegnato un rettangolo ripieno. Le prime due cifre indicano la posizione \n //da cui il nostro disegnatore dovrà iniziare a disegnare il rettangolo\n //mentre le altre due cifre indicano le dimensioni del rettangolo\n \n /*disegnatore.fillRect(10, 50, 50, 70);*/\n \n //Viene disegnato un rettangolo vuoto. I parametri hanno gli stessi valori\n //del comando \"fillRect()\"\n \n /*disegnatore.setColor(Color.blue);\n disegnatore.drawRect(0,0,10,10);*/\n \n //I comandi seguenti disegnano un cerchio seguendo la stessa logica dei\n //rettangoli, di colore verde\n \n /*disegnatore.setColor(Color.green);\n disegnatore.fillOval(50, 10, 50, 50);*/\n \n /*Utilizziamo il disegnatore per caricare un'immagine. Il primo parametro\n del comando è l'immagine stessa, il secondo e il terzo parametro sono \n le coordinate dell'immagine (x,y) mentre l'ultimo parametro è l'osservatore\n dell'immagine (utilizzo ignoto, verrà impostato a \"null\" in quanto non\n viene usato)*/\n //disegnatore.drawImage(testImmagine,10,10,null);\n \n /*Comando che disegna uno dei nostri sprite attraverso la classe \"FoglioSprite\".*/\n //disegnatore.drawImage(foglio.taglio(32, 0, 32, 32), 10, 10,null);\n \n /*Viene disegnato un albero dalla classe \"Risorse\" attraverso il disegnatore.*/\n //disegnatore.drawImage(Risorse.omino, x, y,null);\n \n /*Se lo stato di gioco esiste eseguiamo la sua renderizzazione.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().renderizzazione(disegnatore);\n }\n \n //Viene mostrato il rettangolo\n bufferStrategico.show();\n disegnatore.dispose();\n }", "public void render() {\r\n glPushMatrix();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glVertexPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glColorPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBindTexture(GL_TEXTURE_2D, 1);\r\n glTexCoordPointer(2, GL_FLOAT, 0, 0l);\r\n glDrawArrays(GL_QUADS, 0, CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 24);\r\n glPopMatrix();\r\n }", "public void display (Graphics2D g, double x, double y);", "void render(Graphics2D brush);", "private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }", "public void render(BufferedImage canvas) {\n IntStream.range(0,canvas.getWidth()).parallel().forEach(x->{\n for (int y = 0; y < canvas.getHeight(); ++y) {\n Ray ray = camera.getRayForPixel(x, y);\n LightIntensity intensity = traceRay(ray, 0);\n Color pixelColor = intensity.translateToRGB(1.0 / exposure);\n canvas.setRGB(x, y, pixelColor.getRGB());\n }\n });\n }", "public void directCompute() {\r\n\t\t\tshort[] rgb = new short[3];\r\n\t\t\tint offset = yMin * width;\r\n\t\t\tfor (int y = yMin; y < yMax; y++) {\r\n\t\t\t\tfor (int x = 0; x < width; x++) {\r\n\t\t\t\t\tPoint3D screenPoint = screenCorner.add(xAxis.scalarMultiply(x * 1.0 / (width - 1) * horizontal))\r\n\t\t\t\t\t\t\t.sub(yAxis.scalarMultiply(y * 1.0 / (height - 1) * vertical));\r\n\r\n\t\t\t\t\tRay ray = Ray.fromPoints(eye, screenPoint);\r\n\t\t\t\t\ttracer(scene, ray, rgb);\r\n\t\t\t\t\t// applying color to pixel\r\n\t\t\t\t\tred[offset] = rgb[0] > 255 ? 255 : rgb[0];\r\n\t\t\t\t\tgreen[offset] = rgb[1] > 255 ? 255 : rgb[1];\r\n\t\t\t\t\tblue[offset] = rgb[2] > 255 ? 255 : rgb[2];\r\n\r\n\t\t\t\t\toffset++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}", "public void RenderObject(int[] obj_pixel_data, int obj_xPos, int obj_yPos, int obj_width, int obj_height) {\n\t\t// Go through the objects pixel data blending it with the current screen back buffer pixel data\n\t\tfor (int y = 0; y < obj_height; y++) {\n\t\t\tint screenY = y + obj_yPos + camera_yPos;\n\t\t\tfor (int x = 0; x < obj_width; x++) {\n\t\t\t\tint screenX = x + obj_xPos + camera_xPos;\n\t\t\t\t// calculate the pixel indexes for both the obj and the back buffer\n\t\t\t\tint obj_pixelIndex = x + y * obj_width,\n\t\t\t\t\tbuff_pixelIndex = screenX + screenY * width;\n\t\t\t\t// make sure this value is within the screen\n\t\t\t\tif ((screenY >= 0 && screenY < height && screenX >= 0 && screenX < width)) {\n\t\t\t\t\t// extra sanity check to make sure the buffer is not exceeded\n\t\t\t\t\tif (buff_pixelIndex >= 0 && buff_pixelIndex < pixel_data.length) {\n\t\t\t\t\t\tpixel_data[buff_pixelIndex] = Blend(pixel_data[buff_pixelIndex], obj_pixel_data[obj_pixelIndex]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic String drawForConsole() {\n\t\tString[][] output = new String[this.getWidth()][this.getHeight()];\n\t\tString image = \"\";\n\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\t\tif (x == 0 || x == this.getWidth() - 1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (y == 0 || y == this.getHeight() -1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (this.isFilledIn()) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\toutput[x][y] = \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\t\timage += output[x][y];\n\t\t\t\tif (x == this.getWidth() - 1) {\n\t\t\t\t\timage += \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn image;\n\t}", "public void drawImage()\n {\n imageMode(CORNERS);\n //image(grayImgToFit, firstCellPosition[0], firstCellPosition[1]);\n image(canvas, firstCellPosition[0], firstCellPosition[1]);\n //image(tileMiniaturesV[0],10,250);\n //if(avaragedImgs.length > 4)\n // image(avaragedImgs[3],200,200);\n //getTileIntensityAtIndex(15,15);\n //println(tiles[7].getEndBrightness());\n \n }", "public void draw() {\n \n }", "void render() {\n smooth();\n for (int x = 0; x < yvalues.length; x++) {\n noStroke();\n fill(0,0,255,100);\n ellipseMode(CENTER);\n ellipse(x*xspacing,yvalues[x],16,16);\n }\n }", "private void drawImages() {\n\t\t\r\n\t}", "public void draw();", "public void draw();", "public void draw();", "public abstract WorldImage drawBoard(int blocks);", "private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n }else{\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n \n \n if(!gameover){\n player.render(g);\n borrego.render(g);\n rayo.render(g);\n \n for (Enemy brick : enemies) {\n brick.render(g);\n //bomba.render(g);\n }\n \n for (Fortaleza fortaleza : fortalezas) {\n fortaleza.render(g);\n }\n \n for (Bomba bomba: bombas){\n bomba.render(g);\n }\n \n drawScore(g);\n drawLives(g,vidas);\n }else if(gameover){\n drawGameOver(g);\n }\n \n\n if (lost && !gameover){\n drawLost(g);\n }\n if (pause && !lost && !gameover){\n drawPause(g);\n }\n if(win && !lost && !pause && !lost &&!gameover){\n \n drawWin(g);\n }\n \n bs.show();\n g.dispose();\n }\n }", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "@Override\n\tpublic void draw() {\n\t\t\n\t}", "public void render() {\r\n\t\t //Draw all of the sprites in the game\r\n\t background.draw(0,backgroudY1);\r\n\t\tbackground.draw(0,backgroudY2);\r\n\t\tbackground.draw(0,backgroudY3);\r\n\t\tbackground.draw(WIDTH/2,backgroudY1);\r\n\t\tbackground.draw(WIDTH/2,backgroudY2);\r\n\t background.draw(WIDTH/2,backgroudY3);\r\n\t \r\n\t // call this method from Player class, to draw the plane.\r\n\t player.render();\r\n\t \r\n\t \r\n\t // loop through every enemy, draw enemy if it's not killed\r\n\t for(int i=0; i<enemy.length; i++) {\r\n\t \t\r\n \tif(enemy[i] != null && enemyKilled[i] == true) {\r\n \t\t\r\n\t \t\t\r\n\t enemy[i].render();\r\n\t \r\n\t \t}\r\n\t \r\n\t }\r\n\t // loop through every laser, if it has not made contact with any enemy,\r\n\t // call its render method to draw it\r\n\t for (int i = 0; i < arr_size; i++) {\r\n\t \tif (lasers[i] != null && laserUsed[i] == true) {\r\n\t lasers[i].render();\r\n \t}\r\n\t \t\r\n\t }\r\n\t \r\n\t}", "void render(Graphics g);", "public final void run() {\r\n run(new PixelFormat(), null);\r\n }", "void display(DisplayInfo info, Coordinates position, Graphics2D g, ImageObserver io);", "public abstract void render(Graphics2D graphics);", "public void render (DrawingCanvas canvas){\n //System.out.println(\"drawing \"+wd+\"*\"+ht+\" at (\"+x+\",\"+y+\")\");\n canvas.setForeground(col);\n canvas.drawString(str, x, y, false);\n canvas.setForeground(Color.lightGray);\n canvas.drawRect(x,y-13,(str.length()*8),16);\n }", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "@Override\n\tpublic void draw() {\n\t}", "public void draw() {\n }", "void draw();", "@Override\r\n public void display(DirectMediaPlayer mediaPlayer, Memory[] nativeBuffers, BufferFormat bufferFormat) {\r\n if (writable_image == null) {\r\n return;\r\n }\r\n Platform.runLater(() -> {\r\n Memory nativeBuffer = mediaPlayer.lock()[0];\r\n try {\r\n ByteBuffer byteBuffer = nativeBuffer.getByteBuffer(0, nativeBuffer.size());\r\n getPW().setPixels(0, 0, bufferFormat.getWidth(), bufferFormat.getHeight(), pixel_format, byteBuffer, bufferFormat.getPitches()[0]);\r\n }\r\n finally {\r\n mediaPlayer.unlock();\r\n }\r\n });\r\n }", "private void render() {\n final int numBuffers = 3;\n BufferStrategy bs = this.getBufferStrategy(); // starts value at null\n if (bs == null) {\n this.createBufferStrategy(numBuffers); // 3: buffer creations\n return;\n }\n Graphics g = bs.getDrawGraphics();\n\n g.setColor(Color.black); // stops flashing background\n g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n handler.render(g);\n\n if (gameStart == GAME_STATE.Game) {\n hud.render(g);\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.Help || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.render(g);\n }\n\n g.dispose();\n bs.show();\n }", "public void draw() {\r\n\t\tif (active_)\r\n\t\t\tGlobals.getInstance().getCamera().drawImageOnHud(posx_, posy_, currentImage());\r\n\t}", "@Override\r\n public void draw() {\n }", "public void draw() {\n\t\t\r\n\t\tSystem.out.println(\"drawing...\");\r\n\t\t\r\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void draw() {\n\n\t}", "@Override\n\tpublic void render(Bitmap map) {\n\t\t\n\t}", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "public void drawLine(byte[] screen, int width, int x1, int x2, int y) \n\t{\n int pos1 = y*width + x1; // starting position, in terms of bits/pixels\n int pos2 = y*width + x2; // ending position, in terms of bits/pixels\n \n int start = pos1;\n \n while (start <= pos2)\n {\n int row = start / 8; // in terms of bytes\n int col = start % 8; // in terms of bits/pixels\n \n // the \"coloring\" process of each byte is actually started from right to left in terms of bits/pixels \n screen[row] = (byte) (screen[row] | (1<<col));\n start++; // increment in terms of bits/pixels\n } \n\t}", "public void draw() {\r\n background(255);\r\n\r\n float mouseXFactor = map(mouseX, 0, width, 0.05f, 1);\r\n float mouseYFactor = map(mouseY, 0, height, 0.05f, 1);\r\n\r\n for (int gridX = 0; gridX < img.width; gridX++) {\r\n for (int gridY = 0; gridY < img.height; gridY++) {\r\n // grid position + tile size\r\n float tileWidth = width / (float) img.width;\r\n float tileHeight = height / (float) img.height;\r\n float posX = tileWidth * gridX;\r\n float posY = tileHeight * gridY;\r\n\r\n // get current color\r\n int c = pixelArray[gridX][gridY];\r\n\r\n // greyscale conversion\r\n int greyscale = round(red(c) * 0.222f + green(c) * 0.707f + blue(c) * 0.071f);\r\n\r\n if (drawMode == 1) {\r\n // greyscale to ellipse area\r\n fill(0);\r\n noStroke();\r\n float r2 = 1.1284f * sqrt(tileWidth * tileWidth * (1 - greyscale / 255.0f));\r\n r2 = r2 * mouseXFactor * 3;\r\n ellipse(posX, posY, r2, r2);\r\n } else if (drawMode == 2) {\r\n // greyscale to rotation, line length and stroke weight\r\n stroke(0);\r\n float w4 = map(greyscale, 0, 255, 10, 0);\r\n strokeWeight(w4 * mouseXFactor + 0.1f);\r\n float l4 = map(greyscale, 0, 255, 35, 0);\r\n l4 = l4 * mouseYFactor;\r\n pushMatrix();\r\n translate(posX, posY);\r\n rotate(greyscale / 255.0f * PI);\r\n line(0, 0, 0 + l4, 0 + l4);\r\n popMatrix();\r\n } else if (drawMode == 3) {\r\n // greyscale to line relief\r\n float w5 = map(greyscale, 0, 255, 5, 0.2f);\r\n strokeWeight(w5 * mouseYFactor + 0.1f);\r\n // get neighbour pixel, limit it to image width\r\n int /* color */ c2 = img.get(min(gridX + 1, img.width - 1), gridY);\r\n stroke(c2);\r\n int greyscale2 = (int) (red(c2) * 0.222f + green(c2) * 0.707f + blue(c2) * 0.071f);\r\n float h5 = 50 * mouseXFactor;\r\n float d1 = map(greyscale, 0, 255, h5, 0);\r\n float d2 = map(greyscale2, 0, 255, h5, 0);\r\n line(posX - d1, posY + d1, posX + tileWidth - d2, posY + d2);\r\n } else if (drawMode == 4) {\r\n // pixel color to fill, greyscale to ellipse size\r\n float w6 = map(greyscale, 0, 255, 25, 0);\r\n noStroke();\r\n fill(c);\r\n ellipse(posX, posY, w6 * mouseXFactor, w6 * mouseXFactor);\r\n // TODO 2: Add the following: if(Math.random()<0.1) {pixelArray[gridX][gridY] = lerpColor(c,0xff0000, 0.1f);}\r\n } else if (drawMode == 5) {\r\n stroke(c);\r\n float w7 = map(greyscale, 0, 255, 5, 0.1f);\r\n strokeWeight(w7);\r\n fill(255, 255 * mouseXFactor);\r\n pushMatrix();\r\n translate(posX, posY);\r\n rotate(greyscale / 255.0f * PI * mouseYFactor);\r\n rect(0, 0, 15, 15);\r\n popMatrix();\r\n }\r\n /*\r\n * TODO 3: Add a drawMode == 6 case. \r\n * Try modifying the pixelArray \r\n * Try drawing shapes or colors depending on c and grayscale variables \r\n * Try adding other forms of animation\r\n */\r\n }\r\n }\r\n }", "@Override\r\n public void renderScreenImage(Object context, Object size) {\r\n\t\tDisplay.renderScreenImage(vwr, context, size);\r\n\t}" ]
[ "0.74150664", "0.7160165", "0.70355797", "0.6939384", "0.67979354", "0.6688349", "0.6633655", "0.6614947", "0.65597147", "0.6534052", "0.6534052", "0.651242", "0.64749736", "0.6463154", "0.64514375", "0.645019", "0.6448873", "0.64096713", "0.6405751", "0.6387859", "0.63383234", "0.63383234", "0.63288087", "0.6320451", "0.6308328", "0.62842494", "0.6266207", "0.6263661", "0.62617105", "0.6247014", "0.62468994", "0.6241747", "0.62335396", "0.62245136", "0.62235695", "0.6208806", "0.62071323", "0.6206463", "0.6200637", "0.6199136", "0.6194464", "0.61904186", "0.618698", "0.61846733", "0.6165394", "0.6151658", "0.6144044", "0.61310834", "0.61294895", "0.61160946", "0.61106163", "0.6104944", "0.6102698", "0.60941523", "0.6088918", "0.6080126", "0.6063646", "0.60573596", "0.60440636", "0.6034624", "0.6027679", "0.6027143", "0.6024171", "0.60199577", "0.60199577", "0.60190517", "0.6013041", "0.60119396", "0.6011383", "0.60046464", "0.59846264", "0.5967746", "0.5967746", "0.5967746", "0.5964441", "0.5951089", "0.59465295", "0.59465295", "0.5940537", "0.59281015", "0.59248817", "0.59227", "0.5919792", "0.59172857", "0.59155035", "0.5915406", "0.5913033", "0.59122235", "0.59058756", "0.5899934", "0.5894379", "0.58924866", "0.5888479", "0.5888414", "0.5888414", "0.58831114", "0.5882323", "0.5881231", "0.5880418", "0.5879991" ]
0.646299
14
Render an image to our array of pixels.
public void renderImage(BufferedImage image, int xPosition, int yPosition) { int[] imagePixels = ((DataBufferInt) image.getRaster().getDataBuffer()).getData(); for(int y = 0; y < image.getHeight(); y++ ) { for(int x = 0; x < image.getWidth(); x++ ) { pixels[(x + xPosition) + (y + yPosition) * view.getWidth() ] = imagePixels[x + y * image.getWidth()]; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void render () {\n image (img, xC, yC, xLength * getPixelSize(), yLength * getPixelSize());\n }", "public abstract void render(PixelImage canvas);", "public void render() { image.drawFromTopLeft(getX(), getY()); }", "public void drawImage(float x, float y, float width, float height);", "public void drawImage()\n {\n imageMode(CORNERS);\n //image(grayImgToFit, firstCellPosition[0], firstCellPosition[1]);\n image(canvas, firstCellPosition[0], firstCellPosition[1]);\n //image(tileMiniaturesV[0],10,250);\n //if(avaragedImgs.length > 4)\n // image(avaragedImgs[3],200,200);\n //getTileIntensityAtIndex(15,15);\n //println(tiles[7].getEndBrightness());\n \n }", "public void renderImage() {\r\n\r\n\t\tfinal int nX = _imageWriter.getNx();\r\n\t\tfinal int nY = _imageWriter.getNy();\r\n\t\tfinal double dist = _scene.get_screenDistance();\r\n\t\tfinal double width = _imageWriter.getWidth();\r\n\t\tfinal double height = _imageWriter.getHeight();\r\n\t\tfinal Camera camera = _scene.get_camera();\r\n\r\n\t\tfinal Pixel thePixel = new Pixel(nY, nX);\r\n\r\n// Generate threads\r\n\t\tThread[] threads = new Thread[_threads];\r\n\t\tfor (int i = _threads - 1; i >= 0; --i) {\r\n\t\t\tthreads[i] = new Thread(() -> {\r\n\t\t\t\tPixel pixel = new Pixel();\r\n\r\n\t\t\t\twhile (thePixel.nextPixel(pixel)) {\r\n\t\t\t\t\tif (_imageWriter.getAcceleration()) {\r\n\r\n\t\t\t\t\t\tColor generalColor = renderMini2(pixel.col, pixel.row);\r\n\t\t\t\t\t\t_imageWriter.writePixel(pixel.row, pixel.col, generalColor.getColor());\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tColor avgColor = renderHelp(pixel.col, pixel.row);\r\n\t\t\t\t\t\t_imageWriter.writePixel(pixel.row, pixel.col, avgColor.getColor());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n// Start threads\r\n\t\tfor (Thread thread : threads)\r\n\t\t\tthread.start();\r\n\r\n// Wait for all threads to finish\r\n\t\tfor (Thread thread : threads)\r\n\t\t\ttry {\r\n\t\t\t\tthread.join();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t}\r\n\t\tif (_print)\r\n\t\t\tSystem.out.printf(\"\\r100%%\\n\");\r\n\t}", "public PixImage toPixImage() {\n // Replace the following line with your solution.\n\t PixImage image=new PixImage(getWidth(),getHeight());\n\t \n\t DList<int[]> runs_new=new DList<int[]>();\n\t\t\t for(RunIterator i=this.iterator();i.hasNext();) {\n\t\t\t int[] run = i.next();\n\t\t\t for (int t= 0; t < run[0]; t++) {\n\t\t\t \t runs_new.addLast(run);\n\t\t\t System.out.print(\"(\" + run[1]+\" \"+ run[2]+\" \"+run[3]+\")\");\n\t\t } \n\t }\t\n int position=1;\n for(int j=0;j<height;j++) {\n\t for(int i=0;i<width;i++) {\n\t\t\n\t\t DListNode<int[]> run_new=runs_new.nth(position);\n\t\t position++;\n\t\t \n\t\t image.setPixel(i, j, (short) run_new.item[1], (short) run_new.item[2], (short) run_new.item[3]);\n\t }\n }\n\t\t \n\t\t \n\t return image;\n }", "public void render(BufferedImage canvas) {\n IntStream.range(0,canvas.getWidth()).parallel().forEach(x->{\n for (int y = 0; y < canvas.getHeight(); ++y) {\n Ray ray = camera.getRayForPixel(x, y);\n LightIntensity intensity = traceRay(ray, 0);\n Color pixelColor = intensity.translateToRGB(1.0 / exposure);\n canvas.setRGB(x, y, pixelColor.getRGB());\n }\n });\n }", "Image createImage(List<List<Pixel>> pixelArray);", "public int[] getPixels() {\n\t\treturn pixels;\n\t}", "public void drawImage(float x, float y, float width, float height,\n\t\t\tColor color);", "public void renderImage()\n {\n for (int i = 0; i < _imageWriter.getNx(); i++)\n {\n for (int j = 0; j < _imageWriter.getNy(); j++)\n {\n Ray ray;\n ray = new Ray(_scene.getCamera().constructRayThroughPixel(_imageWriter.getNx(), _imageWriter.getNy(),j,i,\n _scene.getScreenDistance(), _imageWriter.getWidth(),_imageWriter.getHeight()));\n\n if(i==255 && j==255)\n System.out.print(\"111\");\n Map<Geometry, List<Point3D>> intersectionPoints = new HashMap<>(getSceneRayIntersections(ray));\n\n if(intersectionPoints.isEmpty())\n _imageWriter.writePixel(j, i, _scene.getBackground());\n else\n {\n Map<Geometry, Point3D> closestPoint = getClosestPoint(intersectionPoints);\n Map.Entry<Geometry,Point3D> entry;\n Iterator<Entry<Geometry, Point3D>> it = closestPoint.entrySet().iterator();\n entry = it.next();\n _imageWriter.writePixel(j, i, calcColor(entry.getKey(), entry.getValue(), ray));\n }\n\n }\n }\n //printGrid(1);\n\n }", "@Override\r\n public int[] grabPixels(Object canvas, int width, int height, \r\n int[] pixels, int startRow, int nRows) {\r\n\t {}\r\n int[] buf = Image.grabPixels(Image.getGraphics(canvas), width, height); \r\n /**\r\n * @j2sNative\r\n * \r\n * canvas.buf32 = buf;\r\n * \r\n */\r\n {}\r\n return buf;\r\n\t}", "@Override\r\n public void draw(final BufferedImage image) {\r\n for (int i = xStart; i < xStart + length; i++) {\r\n for (int j = yStart; j < yStart + height; j++) {\r\n if (i >= image.getWidth()) {\r\n break;\r\n } else if (j >= image.getHeight()) {\r\n break;\r\n }\r\n if (i == xStart) {\r\n image.setRGB(i, j, rgbaLat.getRGB());\r\n continue;\r\n } else if (j == yStart) {\r\n image.setRGB(i, j, rgbaLat.getRGB());\r\n continue;\r\n } else if (i == xStart + length - 1) {\r\n image.setRGB(i, j, rgbaLat.getRGB());\r\n continue;\r\n } else if (j == yStart + height - 1) {\r\n image.setRGB(i, j, rgbaLat.getRGB());\r\n continue;\r\n }\r\n image.setRGB(i, j, rgbaInt.getRGB());\r\n }\r\n }\r\n }", "public void onImageRendered (RenderedImage renderedImage);", "private void drawImages() {\n\t\t\r\n\t}", "public native void constituteImage(int width, int height, String map,\n\t\t\tint[] pixels) throws MagickException;", "public void drawImage() {\n mTextureRender.drawFrame(mSurfaceTexture);\n }", "BufferedImage outputImage();", "public void doImageRendering( int frame )\n\t{\n\t\tArrayColormap cmap = new ArrayColormap();\n\t\tColor color1 = new Color((int)red1.get(frame), (int)green1.get(frame), (int)blue1.get(frame) );\n\t\tColor color2 = new Color((int)red2.get(frame), (int)green2.get(frame), (int)blue2.get(frame) );\n\t\tColor color3 = new Color((int)red3.get(frame), (int)green3.get(frame), (int)blue3.get(frame) );\n\n\t\tcmap.setColor( 0, color2.getRGB() );\n\t\tcmap.setColor( 255, color1.getRGB() );\n\t\tcmap.setColorInterpolated(middleValue.get(), 0, 255, color3.getRGB() );\n\n\t\tfor( int j = 0; j < 256; j++ )\n\t\t\trbgLook[ j ] = cmap.getColor( (float) j / 255.0f ) & alpha_mask;\n\n\t\t//--- Do color replacement.\n\t\tBufferedImage source = getFlowImage();\n\t\tint[] pix = getBank( source );\n\t\tint rbg;\n\t\tint lumaValue;\n\t\tint a;\n\t\tint r;\n\t\tint g;\n\t\tint b;\n\n\t\tfor( int i = 0; i < pix.length; i++ )\n\t\t{\n\t\t\ta = ( pix[ i ] >> alpha ) & 0xff;\n\t\t\tr = ( pix[ i ] >> red ) & 0xff;\n\t\t\tg = ( pix[ i ] >> green ) & 0xff;\n\t\t\tb = ( pix[ i ] & 0xff );\n\n\t\t\tlumaValue = (( r + g + b ) * 255 ) / MAX_RGB;\n\t\t\trbg = rbgLook[ lumaValue ];\n\n\t\t\tpix[ i ] = a << alpha | rbg;\n\t\t}\n\n\t\tsendFilteredImage( source, frame );\n\n\t}", "@Override\n public void drawImage(Image image, double x, double y, double width, double height) {\n Object nativeImage = graphicsEnvironmentImpl.drawImage(canvas, image, x, y, width, height, image.getCached());\n image.cache(nativeImage);\n }", "@Override\n public void drawImage(Image image, double x, double y) {\n Object nativeImage = graphicsEnvironmentImpl.drawImage(canvas, image, x, y, image.getCached());\n image.cache(nativeImage);\n }", "private void drawImage(PImage image, int row, int col, int type) {\r\n\t\t//The type parameter decides whether the image should be drawn to the\r\n\t\t//screen (if it's 0), or to the background buffer (if it's 1)\r\n\t\tif (type == 0) {\r\n\t\t\t image(image, getColPixelCoords(col, row), getRowPixelCoords(row),\r\n\t\t\t\t HEX_WIDTH, HEX_HEIGHT);\r\n\t\t} else if (type == 1) {\r\n\t\t\tthis.backgroundBuffer.image(image, getColPixelCoords(col, row), \r\n\t\t\t\t\t\t\t\t \t\tgetRowPixelCoords(row), \r\n\t\t\t\t\t\t\t\t \t\tHEX_WIDTH, HEX_HEIGHT);\r\n\t\t}\r\n\t}", "void imageData(int width, int height, int[] rgba);", "@Override\n public void drawImage(Image image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh) {\n Object nativeImage = graphicsEnvironmentImpl.drawImage(canvas, image, sx, sy, sw, sh, dx, dy, dw, dh, image.getCached());\n image.cache(nativeImage);\n }", "public void drawImage(ImageResource imageResource, float destinationX, float destinationY);", "public Color[][] getPixels() {\r\n return pixels;\r\n }", "private static int[][][] getImagePixels(Image img) {\n\n // Get the raw pixel data \n iObserver observer = new iObserver();\n int width1 = img.getWidth(observer);\n int height1 = img.getHeight(observer);\n int[] rawPixels = utils.getPixels(img,width1,height1);\n\n // Each pixel is represented by 32 bits. Separate the tH32 bits into\n // four 8-bit values (red, green, blue, offset).\n int[][] rgbPixels = new int[rawPixels.length][4];\n for(int j=0; j<rawPixels.length; j++) {\n rgbPixels[j][0] = ((rawPixels[j]>>16)&0xff);\n rgbPixels[j][1] = ((rawPixels[j]>>8)&0xff);\n rgbPixels[j][2] = (rawPixels[j]&0xff);\n rgbPixels[j][3] =((rawPixels[j]>>24)&0xff);\n } // for j\n\n // Arrange the data by rows and columns\n int[][][] imagePixels = new int[height1][width1][4];\n int index=0;\n for(int row=0; row<imagePixels.length; row++) {\n for(int col=0; col<imagePixels[0].length; col++) {\n for(int rgbo=0; rgbo<4; rgbo++) {\n imagePixels[row][col][rgbo]=rgbPixels[index][rgbo];\n } // for rgbo\n index++;\n } // for col\n } // for row\n return imagePixels;\n }", "public void renderImage(BufferedImage image, int xPosition, int yPosition,\n\tint xZoom, int yZoom, boolean fixed){\n\t\tint[] imagePixels = ( (DataBufferInt)\n\t\timage.getRaster().getDataBuffer()).getData();\n\t\trenderArray(imagePixels, image.getWidth(), image.getHeight(), xPosition,\n\t\tyPosition, xZoom, yZoom, fixed);\n\t}", "private void pix2img() {\r\n int g;\r\n img = new BufferedImage(pixels[0].length, pixels.length, BufferedImage.TYPE_INT_ARGB);\r\n // copy the pixels values\r\n for (int row = 0; row < pixels.length; ++row) {\r\n for (int col = 0; col < pixels[row].length; ++col) {\r\n g = pixels[row][col];\r\n img.setRGB(col, row, ((255 << 24) | (g << 16) | (g << 8) | g));\r\n }\r\n }\r\n }", "public void toRed(BufferedImage img, int startX, int startY, int endX, int endY) throws IOException{\r\n int pixels[] = new int[3];\r\n double ww[]=new double[3];\r\n WritableRaster raster = img.getRaster();\r\n \r\n for(int i=startX;i<endX;i++) {\r\n for(int j=startY;j<endY;j++){\r\n \r\n \r\n raster.getPixel(i, j, pixels);\r\n \r\n ww[0] = pixels[0];\r\n ww[1] = 0*pixels[1];\r\n ww[2] = 0*pixels[2];\r\n \r\n raster.setPixel(i, j, ww);\r\n \r\n }\r\n \r\n }\r\n\r\n \r\n\r\n }", "public void drawImage(ImageResource imageResource, float destinationX, float destinationY, float destinationWidth, float destinationHeight);", "public native void constituteImage(int width, int height, String map,\n\t\t\tfloat[] pixels) throws MagickException;", "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "@Override\n \tpublic Object[] getImageArray() {\n \t\t// Release 3 times an RGB stack with this dimensions.\n \t\tlayers.get(0).getProject().getLoader().releaseToFit((long)(getSize() * getWidth() * getHeight() * 4 * 3));\n \t\tfinal Object[] ia = new Object[getSize()];\n \t\tfor (int i=0; i<ia.length; i++) {\n \t\t\tia[i] = getProcessor(i+1).getPixels(); // slices 1<=slice<=n_slices\n \t\t}\n \t\treturn ia;\n \t}", "public void draw(){\n StdDraw.picture(this.xCoordinate,this.yCoordinate,this.img);\n }", "public void render(Graphics graphics)\n {\n // for(int index = 0; index < pixels.length; index++) { \n // pixels[index] = (int)(Math.random() * 0xFFFFFF);\n // }\n graphics.drawImage(view, 0, 0, view.getWidth(), view.getHeight(), null);\n }", "private void draw() {\n Graphics2D g2 = (Graphics2D) image.getGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_LCD_HRGB);\n\n AffineTransform transform = AffineTransform.getTranslateInstance(0, height);\n transform.concatenate(AffineTransform.getScaleInstance(1, -1));\n g2.setTransform(transform);\n\n int width = this.width;\n int height = this.height;\n if (scale != 1) {\n g2.scale(scale, scale);\n width = (int) Math.round(width / scale);\n height = (int) Math.round(height / scale);\n }\n AbstractGraphics g = new GraphicsSWT(g2);\n\n g.setScale(scale);\n if (background != null) {\n g.drawImage(background, 0, 0, width, height);\n }\n\n synchronized (WFEventsLoader.GLOBAL_LOCK) {\n for (Widget widget : widgets) {\n if (widget != null) widget.paint(g, width, height);\n }\n }\n // draw semi-transparent pixel in top left corner to workaround famous OpenGL feature\n g.drawRect(0, 0, 1, 1, Color.WHITE, .5, PlateStyle.RectangleType.SOLID);\n\n g2.dispose();\n }", "@Override\n public ImageData createPixelMap(double x, double y, int[] data) {\n return graphicsEnvironmentImpl.createPixelMap(canvas, x, y, data);\n }", "public void ToImage(){\n\t\tint row=SL.length;\n\t\tint col=SL[0].length;\n\t\tint cr=0;\n\t\tint cb=0;\n\t\t// System.out.println(row+\" \"+col);\n\t\tint[] intArray = new int[3*row*col];\n\t\tint w=row;\n\t int h=col;\n\t BufferedImage image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB);\n\t\tint pixel = 0;\n\t\tfor(int x=0;x<row;x++){\n\t\t\tfor(int y=0;y<col;y++){\n\t\t\t\tint rByte = (int)(SL[x][y]);\n\t\t int gByte = (int)(SL[x][y]);\n\t\t int bByte = (int)(SL[x][y]);\n\t\t \n\t\t // int rByte = (int)(SL[x][y]+1.402*(cr-128));\n\t\t // int gByte = (int)(SL[x][y]-0.3414*(cb-128)-0.71414*(cr-128));\n\t\t // int bByte = (int)(SL[x][y]+1.772*(cb-128));\n\t\t int rgb = (rByte *65536) + (gByte * 256) + bByte;\n\t\t image.setRGB(x,y,rgb);\n\t \t}\n\t\t}\n\t try {\n\t ImageIO.write(image, \"bmp\", new File(\"\"+picture_num+\".png\"));\n\t } catch (Exception e) {\n\t e.printStackTrace();\n\t }\n\t}", "private Color[] imageToArray(BufferedImage image){\n Color[] pixels = new Color[image.getWidth() * image.getWidth()];\n for (int i = 0; i < image.getHeight(); i++) {\n for (int j = 0; j < image.getWidth(); j++) {\n Color color = new Color(image.getRGB(j,i));\n pixels[i*image.getWidth() + j] = color;\n }\n }\n return pixels;\n }", "private void render(){\n planeImage.draw(currPos.x,currPos.y, drawOps);\n }", "public native void constituteImage(int width, int height, String map,\n\t\t\tbyte[] pixels) throws MagickException;", "@Override\n protected void putImageBuffer(BufferedImage input) \n {\n // Load data in. \n for (int y = 0; y < height; y++) \n {\n for (int x = 0; x < width; x++) \n {\n\t\tdouble h = getHeight(input, x, y);\n\t\tdouble du = 0;\n\t\tdouble dv = 0;\n\t\t\n\t\tif(x > 0)\n\t\t{\t\n\t\t du += h - getHeight(input, x-1, y);\n\t\t}\n\t\tif(x < width - 1)\n\t\t{\n\t\t du += getHeight(input, x+1, y) - h;\n\t\t}\n\t\tif(y > 0)\n\t\t{\n\t\t dv += h - getHeight(input, x , y-1);\n\t\t}\n\t\tif(y < height - 1)\n\t\t{\n\t\t dv += getHeight(input, x, y+1) - h;\n\t\t}\n\t\t\n\t\tdouble u = -du;\n\t\tdouble v = -dv;\n\t\tdouble w = 0.25;\n \n\t\tdouble n = Math.sqrt(u*u + v*v + w*w);\n\n byte a = (byte)(h * 255.0);\n byte r = (byte)((u / n + 1.0) / 2.0 * 255.0);\n byte g = (byte)((v / n + 1.0) / 2.0 * 255.0);\n byte b = (byte)((w / n + 1.0) / 2.0 * 255.0);\n \n int index = (x + y * allocatedWidth) * 4;\n pixelData.put(index++, r);\n pixelData.put(index++, g);\n pixelData.put(index++, b);\n pixelData.put(index , a);\n }\n }\n }", "private void initImage() {\n this.image = (BufferedImage)this.createImage(DisplayPanel.COLS, DisplayPanel.ROWS);\n this.r.setRect(0, 0, DisplayPanel.ROWS, DisplayPanel.COLS);\n this.paint = new TexturePaint(this.image,\n this.r);\n }", "private void bufferImageGrey()\n {\n int col = 0;\n int[][] heightmap = parent.normaliseMap(parent.getPreviewMap(), 255);\n \n bufferedImage = createImage(heightmap.length, heightmap[0].length);\n Graphics bg = bufferedImage.getGraphics();\n for(int i = 0; i < heightmap.length; i ++) {\n for(int j = 0; j < heightmap[i].length - 1; j++) {\n col = heightmap[i][j];\n if(col > 255)\n col = 255;\n bg.setColor(new Color(col, col, col));\n bg.drawLine(i, j, i, j);\n }\n }\n }", "public byte[] encode(RenderedImage image) throws java.io.IOException;", "public void printImage() {\n\t System.out.print(\"\\n\");\n for (int i=0; i<width*height; i++) {\n if (i % width==0) System.out.print(\"\\n\");\n System.out.print(image[i]+ \" \");\n }\n System.out.print(\"\\n\\n\");\n }", "public void renderImage(BufferedImage image, int x, int y, int xZoom, int yZoom, boolean fixed)\r\n\t{\r\n\t\tint[] imagePixels = ((DataBufferInt)image.getRaster().getDataBuffer()).getData();\r\n\t\tthis.renderArray(imagePixels, image.getWidth(), image.getHeight(), x, y, xZoom, yZoom, fixed);\r\n\t}", "public void setPixels(int[] pix) {\n\t\t\tMemoryImageSource source = new MemoryImageSource(_width, _height, pix, 0, _width);\n\t\t\t_image = createImage(source);\n\t\t}", "private BufferedImage user_space(BufferedImage image) {\n // create new_img with the attributes of image\n BufferedImage new_img = new BufferedImage(image.getWidth(),\n image.getHeight(), BufferedImage.TYPE_3BYTE_BGR);\n Graphics2D graphics = new_img.createGraphics();\n graphics.drawRenderedImage(image, null);\n graphics.dispose(); // release all allocated memory for this image\n return new_img;\n }", "public native boolean dispatchImage(int x, int y, int width, int height,\n\t\t\tString map, int[] pixels) throws MagickException;", "private void render() {\n\t\tBufferStrategy bs = this.getBufferStrategy();\r\n\t\tif (bs == null) {\r\n\t\t\tcreateBufferStrategy(3);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//Initiates Graphics class using bufferStrategy\r\n\t\tGraphics g = bs.getDrawGraphics();\r\n\t\t\r\n\t\t//displays img on screen\r\n\t\tg.drawImage(img, 0, 0, null);\r\n\t\t\r\n\t\tg.setColor(Color.CYAN);\r\n\t\tg.drawString(fps + \" FPS\", 10, 10);\r\n\t\tg.setFont(new Font(\"Arial\", 0, 45));\r\n\r\n\t\tg.dispose();//clears graphics\r\n\t\tbs.show();//shows graphics\r\n\t}", "public void divideImage() {\n\n int chunkWidth = 70;\n int chunkHeight = 70;\n int count = 0;\n imgs = new BufferedImage[100];\n for (int x = 0; x < 10; x++)\n for (int y = 0; y < 10; y++) {\n\n try{\n\n imgs[count] = new BufferedImage(chunkWidth, chunkHeight, img.getType());\n Graphics2D gr = imgs[count++].createGraphics();\n gr.drawImage(img, 0, 0, chunkWidth, chunkHeight, chunkWidth * y, chunkHeight * x, chunkWidth * y + chunkWidth, chunkHeight * x + chunkHeight, null);\n gr.dispose();\n\n } catch (Exception e){\n\n // e.printStackTrace();\n\n }\n\n }\n\n }", "public void drawImage(ImageResource imageResource, float destinationX, float destinationY, float destinationWidth, float destinationHeight,\n float sourceX, float sourceY, float sourceWidth, float sourceHeight);", "public static void putGraphicsPixel(int[] inputPixels, int inputWidth, int pixelRowStart, int pixelRowEnd,\n int pixelColStart, int pixelColEnd, int[] outputPixels) {\n int i = 0;\n for (int y = pixelRowStart; y < pixelRowEnd; y++) {\n for (int x = pixelColStart; x < pixelColEnd; x++) {\n int val = getXYCoord(inputPixels, x, y, inputWidth);\n if (val != -1) {\n outputPixels[i] = val;\n }\n i++;\n }\n }\n }", "public void toBlue(BufferedImage img, int startX, int startY, int endX, int endY) throws IOException{\r\n int pixels[] = new int[3];\r\n double ww[]=new double[3];\r\n WritableRaster raster = img.getRaster();\r\n \r\n for(int i=startX;i<endX;i++) {\r\n \r\n for(int j=startY;j<endY;j++){\r\n \r\n raster.getPixel(i, j, pixels);\r\n \r\n ww[0] = 0*pixels[0];\r\n ww[1] = 0*pixels[1];\r\n ww[2] = pixels[2];\r\n \r\n raster.setPixel(i, j, ww);\r\n \r\n }\r\n \r\n }\r\n\r\n \r\n\r\n }", "public static void renderImageOnTop(int[] inputArray, int inputWidth, int inputHeight, int xStart, int yStart, int[] outputArray, int outputWidth) {\n for (int row = 0; row < inputHeight; row++) {\n for (int col = 0; col < inputWidth; col++) {\n int val = getXYCoord(inputArray, col, row, inputWidth);\n if (val != -1) {\n replaceXYCoord(val, outputArray,\n outputWidth, xStart + col, yStart + row);\n }\n }\n }\n }", "@Override\n public void renderNextImage() {\n }", "public void toGreen(BufferedImage img, int startX, int startY, int endX, int endY) throws IOException{\r\n int pixels[] = new int[3];\r\n double ww[]=new double[3];\r\n WritableRaster raster = img.getRaster();\r\n \r\n for(int i=startX;i<endX;i++) {\r\n \r\n for(int j=startY;j<endY;j++){\r\n \r\n raster.getPixel(i, j, pixels);\r\n \r\n ww[0] = 0*pixels[0];\r\n ww[1] = pixels[1];\r\n ww[2] = 0*pixels[2];\r\n \r\n raster.setPixel(i, j, ww);\r\n \r\n }\r\n \r\n }\r\n\r\n \r\n\r\n }", "public void render() {\n int pixel = getPixelSize();\n for (int xx = x; xx<x+w; xx += pixel) {\n for (int yy = y; yy<y+h; yy += pixel) {\n Location next = getLocation(xx, yy);\n if (next != null) { // This way if a wall is spawned at the edge it's ok\n next.setColor(color(255,255,255));\n next.setType(LocationType.WALL);\n getGridCache().add(next);\n }\n }\n }\n }", "void drawImage(Graphics g, Image i, int index, int x, int y, int width, int height){\n\t\tg.drawImage(images.get(i).get(index), (int) (x*worldScale), (int) (y*worldScale), (int) (width*worldScale), (int) (height*worldScale), this);\n\t}", "private int[][] readPixels() throws IOException {\n \t\tif (!imageFile.exists()) {\n \t\t\tSystem.err.println(\"No such image: \" + imageFile.getPath());\n \t\t\tSystem.exit(2);\n \t\t}\n \n \t\t// read and scale input image\n \t\tfinal BufferedImage image =\n \t\t\tscale(ImageIO.read(imageFile), CAL_WIDTH, CAL_HEIGHT);\n \n \t\t// convert to 2-bit grayscale data\n \t\tfinal int[][] pix = new int[CAL_HEIGHT][CAL_WIDTH];\n \t\tfor (int y = 0; y < CAL_HEIGHT; y++) {\n \t\t\tfor (int x = 0; x < CAL_WIDTH; x++) {\n \t\t\t\tfinal int rgb = image.getRGB(x, y);\n \t\t\t\t// CTR CHECK\n \t\t\t\tfinal int r = 0xff & rgb;\n \t\t\t\tfinal int g = 0xff & (rgb >> 8);\n \t\t\t\tfinal int b = 0xff & (rgb >> 16);\n \n \t\t\t\t// convert RGB to 8-bit grayscale\n \t\t\t\tfinal int gray = (int) Math.round(0.299 * r + 0.587 * g + 0.114 * b);\n \n \t\t\t\t// convert 8-bit to 2-bit (4 possible values)\n \t\t\t\tpix[y][x] = gray / 64;\n \t\t\t}\n \t\t}\n \t\treturn pix;\n \t}", "void drawStuff () {drawStuff (img.getGraphics ());}", "public ByteBuffer getPixels() {\n\t\t\treturn pixels;\n\t\t}", "public abstract WorldImage drawBoard(int blocks);", "public BufferedImage getImage(int[][] data) {\n BufferedImage image = new BufferedImage(IMGSIZEX, IMGSIZEY,\n BufferedImage.TYPE_INT_RGB);\n for (int x = 0; x < IMGSIZEX; x++) {\n for (int y = 0; y < IMGSIZEY; y++) {\n int pixelColor = data[x][y];\n // Set Colors based on Binary Image value\n if (pixelColor == 0) {\n pixelColor = Color.ORANGE.getRGB();\n } else {\n pixelColor = Color.CYAN.getRGB();\n }\n image.setRGB(x, y, pixelColor);\n } // End for y.\n } // End for x.\n return image;\n }", "public void directCompute() {\r\n\t\t\tshort[] rgb = new short[3];\r\n\t\t\tint offset = yMin * width;\r\n\t\t\tfor (int y = yMin; y < yMax; y++) {\r\n\t\t\t\tfor (int x = 0; x < width; x++) {\r\n\t\t\t\t\tPoint3D screenPoint = screenCorner.add(xAxis.scalarMultiply(x * 1.0 / (width - 1) * horizontal))\r\n\t\t\t\t\t\t\t.sub(yAxis.scalarMultiply(y * 1.0 / (height - 1) * vertical));\r\n\r\n\t\t\t\t\tRay ray = Ray.fromPoints(eye, screenPoint);\r\n\t\t\t\t\ttracer(scene, ray, rgb);\r\n\t\t\t\t\t// applying color to pixel\r\n\t\t\t\t\tred[offset] = rgb[0] > 255 ? 255 : rgb[0];\r\n\t\t\t\t\tgreen[offset] = rgb[1] > 255 ? 255 : rgb[1];\r\n\t\t\t\t\tblue[offset] = rgb[2] > 255 ? 255 : rgb[2];\r\n\r\n\t\t\t\t\toffset++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public void draw(){\n\t\tString filename = \"images/\" + this.imgFileName;\n\t\tStdDraw.picture(this.xxPos, this.yyPos, filename);\n\t}", "public int[][] getImage() {\n return m_img;\n }", "public native boolean dispatchImage(int x, int y, int width, int height,\n\t\t\tString map, float[] pixels) throws MagickException;", "public void draw(PApplet p){\n p.image(img, x, y, width, height);\n }", "@Override\r\n\tpublic void render(GameContainer gc, Graphics g) {\n\r\n\t\tg.drawImage(image, drawX - 16, drawY - 24); \r\n\t}", "public native boolean dispatchImage(int x, int y, int width, int height,\n\t\t\tString map, byte[] pixels) throws MagickException;", "private void drawArray(ArrayList<NormalFishCollect> images, GraphicsContext gc) {\n\t\tgc.save();\n\t\tfor (int i = 0; i < images.size(); i++) {\n\t\t\tgc.drawImage(images.get(i).img, images.get(i).x, images.get(i).y);\n\n\t\t}\n\t\tgc.restore();\n\n\t}", "public static void renderImage(Image image , double x , double y , double width , double height , double imageX , double imageY ,\n\t\t\tdouble imageWidth , double imageHeight) {\n\t\t//Find out what rendering mode to use\n\t\tif (! Settings.Android && Settings.Video.OpenGL)\n\t\t\t//Render the image using OpenGL\n\t\t\tBasicRendererOpenGL.renderImage(image , x , y , width , height , imageX , imageY , imageWidth , imageHeight);\n\t\telse if (! Settings.Android && ! Settings.Video.OpenGL)\n\t\t\t//Render the image using Java\n\t\t\tBasicRendererJava.renderImage(image , x , y , width , height , imageX , imageY , imageWidth , imageHeight);\n\t\telse if (Settings.Android && ! Settings.Video.OpenGL)\n\t\t\t//Render the image using Android\n\t\t\tBasicRendererAndroid.renderImage(image , x , y , width , height , imageX , imageY , imageWidth , imageHeight);\n\t}", "public void draw() {\r\n background(255);\r\n\r\n float mouseXFactor = map(mouseX, 0, width, 0.05f, 1);\r\n float mouseYFactor = map(mouseY, 0, height, 0.05f, 1);\r\n\r\n for (int gridX = 0; gridX < img.width; gridX++) {\r\n for (int gridY = 0; gridY < img.height; gridY++) {\r\n // grid position + tile size\r\n float tileWidth = width / (float) img.width;\r\n float tileHeight = height / (float) img.height;\r\n float posX = tileWidth * gridX;\r\n float posY = tileHeight * gridY;\r\n\r\n // get current color\r\n int c = pixelArray[gridX][gridY];\r\n\r\n // greyscale conversion\r\n int greyscale = round(red(c) * 0.222f + green(c) * 0.707f + blue(c) * 0.071f);\r\n\r\n if (drawMode == 1) {\r\n // greyscale to ellipse area\r\n fill(0);\r\n noStroke();\r\n float r2 = 1.1284f * sqrt(tileWidth * tileWidth * (1 - greyscale / 255.0f));\r\n r2 = r2 * mouseXFactor * 3;\r\n ellipse(posX, posY, r2, r2);\r\n } else if (drawMode == 2) {\r\n // greyscale to rotation, line length and stroke weight\r\n stroke(0);\r\n float w4 = map(greyscale, 0, 255, 10, 0);\r\n strokeWeight(w4 * mouseXFactor + 0.1f);\r\n float l4 = map(greyscale, 0, 255, 35, 0);\r\n l4 = l4 * mouseYFactor;\r\n pushMatrix();\r\n translate(posX, posY);\r\n rotate(greyscale / 255.0f * PI);\r\n line(0, 0, 0 + l4, 0 + l4);\r\n popMatrix();\r\n } else if (drawMode == 3) {\r\n // greyscale to line relief\r\n float w5 = map(greyscale, 0, 255, 5, 0.2f);\r\n strokeWeight(w5 * mouseYFactor + 0.1f);\r\n // get neighbour pixel, limit it to image width\r\n int /* color */ c2 = img.get(min(gridX + 1, img.width - 1), gridY);\r\n stroke(c2);\r\n int greyscale2 = (int) (red(c2) * 0.222f + green(c2) * 0.707f + blue(c2) * 0.071f);\r\n float h5 = 50 * mouseXFactor;\r\n float d1 = map(greyscale, 0, 255, h5, 0);\r\n float d2 = map(greyscale2, 0, 255, h5, 0);\r\n line(posX - d1, posY + d1, posX + tileWidth - d2, posY + d2);\r\n } else if (drawMode == 4) {\r\n // pixel color to fill, greyscale to ellipse size\r\n float w6 = map(greyscale, 0, 255, 25, 0);\r\n noStroke();\r\n fill(c);\r\n ellipse(posX, posY, w6 * mouseXFactor, w6 * mouseXFactor);\r\n // TODO 2: Add the following: if(Math.random()<0.1) {pixelArray[gridX][gridY] = lerpColor(c,0xff0000, 0.1f);}\r\n } else if (drawMode == 5) {\r\n stroke(c);\r\n float w7 = map(greyscale, 0, 255, 5, 0.1f);\r\n strokeWeight(w7);\r\n fill(255, 255 * mouseXFactor);\r\n pushMatrix();\r\n translate(posX, posY);\r\n rotate(greyscale / 255.0f * PI * mouseYFactor);\r\n rect(0, 0, 15, 15);\r\n popMatrix();\r\n }\r\n /*\r\n * TODO 3: Add a drawMode == 6 case. \r\n * Try modifying the pixelArray \r\n * Try drawing shapes or colors depending on c and grayscale variables \r\n * Try adding other forms of animation\r\n */\r\n }\r\n }\r\n }", "synchronized\n public final void getFrame(int pixels[]){\n// synchronized (this){\n System.arraycopy(pixels_, 0, pixels, 0, pixels_.length);\n// }\n }", "@Override\r\n\tpublic void render(Graphics g) {\n\t\tg.drawImage(image, (int) (x - handler.getGameCamera().getxOffset()), \r\n\t\t\t\t(int) (y - handler.getGameCamera().getyOffset()), width, height, null);\r\n\t}", "public static void renderImage(Image image , double x , double y) {\n\t\t//Find out what rendering mode to use\n\t\tif (! Settings.Android && Settings.Video.OpenGL)\n\t\t\t//Render the image using OpenGL\n\t\t\tBasicRendererOpenGL.renderImage(image , x , y);\n\t\telse if (! Settings.Android && ! Settings.Video.OpenGL)\n\t\t\t//Render the image using Java\n\t\t\tBasicRendererJava.renderImage(image , x , y);\n\t\telse if (Settings.Android && ! Settings.Video.OpenGL)\n\t\t\t//Render the image using Android\n\t\t\tBasicRendererAndroid.renderImage(image , x , y);\n\t}", "private static PixImage array2PixImage(int[][] pixels) {\n int width = pixels.length;\n int height = pixels[0].length;\n PixImage image = new PixImage(width, height);\n\n for (int x = 0; x < width; x++) {\n for (int y = 0; y < height;y++) {\n image.setPixel(x, y, (short) pixels[x][y], (short) pixels[x][y],\n (short) pixels[x][y]);\n }\n }\n\n return image;\n }", "public static void forEachPixel(final Image img, final PixelAction action) {\n\t\tfinal int width = (int) img.getWidth();\n\t\tfinal int height = (int) img.getHeight();\n\t\tforEachPixel(0, width, 0, height, action);\n\t}", "@Test\n void writeToImage() {\n String imagename = \"img\";\n int width = 1600;\n int height = 1000;\n int nx =500;\n int ny =800;\n ImageWriter imageWriter = new ImageWriter(imagename, width, height, nx, ny);\n for (int col = 0; col < ny; col++) {\n for (int row = 0; row < nx; row++) {\n if (col % 10 == 0 || row % 10 == 0) {\n imageWriter.writePixel(row, col, Color.blue);\n }\n }\n }\n imageWriter.writeToImage();\n }", "public void draw(){\n\t\tStdDraw.picture(this.xxPos,this.yyPos,\"images/\"+this.imgFileName);\n\t}", "private void setPixels() {\n\t\t\tfinal byte[] dest = new byte[(int) (getMetadata().get(0).getAxisLength(\n\t\t\t\tAxes.X) * getMetadata().get(0).getAxisLength(Axes.Y))];\n\t\t\tlong lastImage = -1;\n\n\t\t\t// fill in starting image contents based on last image's dispose\n\t\t\t// code\n\t\t\tif (getMetadata().getLastDispose() > 0) {\n\t\t\t\tif (getMetadata().getLastDispose() == 3) { // use image before last\n\t\t\t\t\tfinal long n = getMetadata().get(0).getPlaneCount() - 2;\n\t\t\t\t\tif (n > 0) lastImage = n - 1;\n\t\t\t\t}\n\n\t\t\t\tif (lastImage != -1) {\n\t\t\t\t\tfinal byte[] prev = getMetadata().getImages().get((int) lastImage);\n\t\t\t\t\tSystem.arraycopy(prev, 0, dest, 0, (int) (getMetadata().get(0)\n\t\t\t\t\t\t.getAxisLength(Axes.X) * getMetadata().get(0).getAxisLength(\n\t\t\t\t\t\t\tAxes.Y)));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// copy each source line to the appropriate place in the destination\n\n\t\t\tint pass = 1;\n\t\t\tint inc = 8;\n\t\t\tint iline = 0;\n\t\t\tfor (int i = 0; i < getMetadata().getIh(); i++) {\n\t\t\t\tint line = i;\n\t\t\t\tif (getMetadata().isInterlace()) {\n\t\t\t\t\tif (iline >= getMetadata().getIh()) {\n\t\t\t\t\t\tpass++;\n\t\t\t\t\t\tswitch (pass) {\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tiline = 4;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\tiline = 2;\n\t\t\t\t\t\t\t\tinc = 4;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\tiline = 1;\n\t\t\t\t\t\t\t\tinc = 2;\n\t\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\tline = iline;\n\t\t\t\t\tiline += inc;\n\t\t\t\t}\n\t\t\t\tline += getMetadata().getIy();\n\t\t\t\tif (line < getMetadata().get(0).getAxisLength(Axes.Y)) {\n\t\t\t\t\tfinal int k = line * (int) getMetadata().get(0).getAxisLength(Axes.X);\n\t\t\t\t\tint dx = k + getMetadata().getIx(); // start of line in dest\n\t\t\t\t\tint dlim = dx + getMetadata().getIw(); // end of dest line\n\t\t\t\t\tif ((k + getMetadata().get(0).getAxisLength(Axes.X)) < dlim) dlim =\n\t\t\t\t\t\tk + (int) getMetadata().get(0).getAxisLength(Axes.X);\n\t\t\t\t\tint sx = i * getMetadata().getIw(); // start of line in\n\t\t\t\t\t// source\n\t\t\t\t\twhile (dx < dlim) {\n\t\t\t\t\t\t// map color and insert in destination\n\t\t\t\t\t\tfinal int index = getMetadata().getPixels()[sx++] & 0xff;\n\t\t\t\t\t\tdest[dx++] = (byte) index;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tgetMetadata().getColorTables().add(getMetadata().getAct());\n\t\t\tgetMetadata().getImages().add(dest);\n\t\t}", "public void drawPixel(int x, int y, int color);", "public void displayImageToConsole();", "private final void \n renderIt( ) {\n \t\n \tif( this.mImageCount > 0 || this.mLineCount > 0 || this.mRectCount > 0 || this.mTriangleCount > 0 ) {\n\t \n \t\tthis.mVertexBuffer.clear(); //clearing the buffer\n\t GLES11.glEnableClientState( GLES11.GL_VERTEX_ARRAY );\n\n\t //if there are images to render\n\t if( this.mImageCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mImageCount * 16 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer );\n\t\t this.mIndexBuffer.limit(this.mImageCount * 6); //DESKTOP VERSION ONLY\n\t\t GLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mImageCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t \tGLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t //if there are lines to render\n\t if( this.mLineCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mLineCount * 4 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 0, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glDrawArrays( GLES11.GL_LINES, 0, this.mLineCount * 2 ); //* 2 because every line got 2 points\n\t }\n\n\t //if there are rects to render\n\t if( this.mRectCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mRectCount * 8 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t this.mIndexBuffer.limit(this.mRectCount * 6); //DESKTOP VERSION ONLY\n\t \t GLES11.glVertexPointer(2, GLES11.GL_FLOAT, 0, this.mVertexBuffer); //copy the vertices into the GPU\t \t \n\t \t \tGLES11.glDrawElements( GLES11.GL_TRIANGLES, this.mRectCount * BitsGLImage.INDICES_PER_SPRITE, GLES11.GL_UNSIGNED_SHORT, this.mIndexBuffer );\n\t }\n\t \n\t //if there are triangles to render\n\t if( this.mTriangleCount > 0 ) {\n\t\t this.mVertexBuffer.put( this.mVertices, 0, this.mTriangleCount * 12 ); //put available points into the buffer\n\t\t this.mVertexBuffer.flip(); //flipping buffer\n\t\t GLES11.glVertexPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //copy the vertices into the GPU\n\t\t GLES11.glEnableClientState( GLES11.GL_TEXTURE_COORD_ARRAY ); //copy the texture coordinates into the GPU\n\t\t GLES11.glEnable(GLES11.GL_TEXTURE_2D);\n\t\t this.mVertexBuffer.position( 2 ); //put buffer position to the texture coordinates\n\t\t GLES11.glTexCoordPointer( 2, GLES11.GL_FLOAT, 16, this.mVertexBuffer ); //16 == byteoffset -> es liegen 2 werte dazwischen\n\t\t GLES11.glDrawArrays( GLES11.GL_TRIANGLES, 0, this.mTriangleCount * 3 ); //* 2 because every line got 2 points\t \t\n\t\t GLES11.glDisable(GLES11.GL_TEXTURE_2D);\n\t\t GLES11.glDisableClientState( GLES11.GL_TEXTURE_COORD_ARRAY );\n\t }\n\t \n\t GLES11.glDisableClientState( GLES11.GL_VERTEX_ARRAY );\n \t\t\n\t //resetting counters\n\t this.mBufferIndex = 0;\n\t \tthis.mImageCount = 0;\n\t \tthis.mLineCount = 0;\n\t \tthis.mRectCount = 0;\n\t \tthis.mTriangleCount = 0;\n \t}\n }", "public abstract BufferedImage applyTo(BufferedImage image);", "public RenderedImage[] getRenderedImage() {\n if (isLiveOrCompiled())\n if(!this.getCapability(ImageComponent.ALLOW_IMAGE_READ))\n throw new CapabilityNotSetException(J3dI18N.getString(\"ImageComponent3D3\"));\n\treturn ((ImageComponent3DRetained)this.retained).getRenderedImage();\n }", "public final void run() {\r\n run(new PixelFormat(), null);\r\n }", "public static void renderImage(Image image , double x , double y , double width , double height) {\n\t\t//Find out what rendering mode to use\n\t\tif (! Settings.Android && Settings.Video.OpenGL)\n\t\t\t//Render the image using OpenGL\n\t\t\tBasicRendererOpenGL.renderImage(image , x , y , width , height);\n\t\telse if (! Settings.Android && ! Settings.Video.OpenGL)\n\t\t\t//Render the image using Java\n\t\t\tBasicRendererJava.renderImage(image , x , y , width , height);\n\t\telse if (Settings.Android && ! Settings.Video.OpenGL)\n\t\t\t//Render the image using Android\n\t\t\tBasicRendererAndroid.renderImage(image , x , y , width , height);\n\t}", "private void drawImage(){\n Integer resourceId = imageId.get(this.name);\n if (resourceId != null) {\n drawAbstract(resourceId);\n } else {\n drawNone();\n }\n }", "private static BufferedImage toBufferedImage(final Image image) {\n final BufferedImage buffered = new BufferedImage(image.getWidth(null),\n image.getHeight(null), BufferedImage.TYPE_INT_ARGB);\n buffered.getGraphics().drawImage(image, 0, 0, null);\n return buffered;\n }", "public abstract BufferedImage transform();", "@Override\r\n public void paintComponent(Graphics2D g) {\r\n g.drawImage(img, x, y, null);\r\n }", "private void drawToScreen() {\n \n Graphics g2 = getGraphics();\n /*g2.drawImage(image, 0, 0, \n WIDTH * SCALE, HEIGHT * SCALE, \n 0, 0, WIDTH, HEIGHT, \n this);*/\n g2.drawImage(image,\n (int)gsm.getAttribute(\"CAMERA_X1\"),\n (int)gsm.getAttribute(\"CAMERA_Y1\"),\n (int)gsm.getAttribute(\"CAMERA_X1\") + WIDTH*SCALE,\n (int)gsm.getAttribute(\"CAMERA_Y1\") + HEIGHT*SCALE,\n (int)gsm.getAttribute(\"WORLD_X1\"),\n (int)gsm.getAttribute(\"WORLD_Y1\"),\n (int)gsm.getAttribute(\"WORLD_X1\") + WIDTH,\n (int)gsm.getAttribute(\"WORLD_Y1\") + HEIGHT,\n this);\n\t\t/*g2.drawImage(image, 0, 0,\n\t\t\t\tWIDTH * SCALE, HEIGHT * SCALE,\n\t\t\t\tnull);*/\n\t\tg2.dispose();}" ]
[ "0.7562374", "0.7055417", "0.6879184", "0.6777522", "0.65387917", "0.639521", "0.6273812", "0.6257916", "0.6217269", "0.6205429", "0.620285", "0.6184646", "0.6174692", "0.61297387", "0.6111359", "0.6087081", "0.60538346", "0.6042873", "0.60135484", "0.60068697", "0.59945714", "0.59588397", "0.5927808", "0.59212136", "0.59203845", "0.5914486", "0.5909649", "0.58927536", "0.58893555", "0.58699006", "0.5855087", "0.5836626", "0.5804023", "0.57933325", "0.57933325", "0.57933325", "0.5793239", "0.5778599", "0.5765561", "0.57560104", "0.5754393", "0.5745498", "0.5745084", "0.5742579", "0.57400525", "0.57280153", "0.57212996", "0.57162446", "0.5714899", "0.5702615", "0.5692193", "0.567634", "0.5673307", "0.56541985", "0.56426287", "0.5632969", "0.5620865", "0.5620338", "0.5617355", "0.56160665", "0.56141734", "0.560579", "0.55689853", "0.55586076", "0.5553756", "0.55529076", "0.55509835", "0.5545791", "0.55414534", "0.55329543", "0.5502848", "0.5501947", "0.55004776", "0.54998344", "0.5484199", "0.5479611", "0.54676545", "0.5457868", "0.5455867", "0.5452865", "0.5445864", "0.5438391", "0.54268056", "0.54265046", "0.5424352", "0.5422199", "0.5419724", "0.54123133", "0.5393567", "0.53871614", "0.5384499", "0.5383835", "0.53766406", "0.53706217", "0.5368016", "0.5367553", "0.53608406", "0.5357056", "0.5355141", "0.5347862" ]
0.7340986
1
private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyMMdd HH:mm:ss");
public void setPaymentTime(String paymentTime) { this.paymentTime = paymentTime; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private TodoData() {\n //nastavenie formatovania\n formatter = DateTimeFormatter.ofPattern(\"dd-MM-yyyy\");\n }", "private static void m1() {\n\n String d = \"2019/03/22 10:00-11:00\";\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd HH:mm-HH:mm\");\n try {\n Date parse = df.parse(d);\n System.out.println(df.format(parse));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "public static DateTimeFormatter getDateTimeFormatter() {\n return getDateTimeFormatter(\"dd.MM.yyyy\", \"dd. MM. yyyy\", \"yyyy-MM-dd\");\n }", "public static void main(String[] args) {\n\t\tLocalDate date1 = LocalDate.of(2020, Month.JANUARY, 20);\r\n\t\tLocalTime time = LocalTime.of(11, 12, 34); \r\n\t\tLocalDate date = LocalDate.of(2020, Month.JANUARY, 20);\r\n\t\tLocalDateTime dateTime = LocalDateTime.of(date1, time);\r\n\t\t DateTimeFormatter shortDateTime = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT);\r\n\t // System.out.println(shortDateTime);\r\n\t System.out.println(shortDateTime.format(dateTime)); // 1/20/20 \r\n\t System.out.println(shortDateTime.format(date1)); // 1/20/20 \r\n\t DateTimeFormatter shortDateTime1 = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT);\r\n\t System.out.println(dateTime.format(shortDateTime1)); \r\n\t System.out.println(date.format(shortDateTime1));\r\n\t DateTimeFormatter shortDateTime2 = DateTimeFormatter.ofLocalizedTime(FormatStyle.SHORT);\r\n\t /* System.out.println(time.format(shortDateTime1)); // UnsupportedTemporalTypeException\r\n\t System.out.println( shortDateTime1.format(time)); // UnsupportedTemporalTypeException\r\n\t */ System.out.println(time.format(shortDateTime2)); \r\n\t System.out.println( shortDateTime2.format(time));\r\n\t DateTimeFormatter shortF = DateTimeFormatter .ofLocalizedDateTime(FormatStyle.SHORT);\r\n\t DateTimeFormatter mediumF = DateTimeFormatter .ofLocalizedDateTime(FormatStyle.MEDIUM);\r\n\t System.out.println(shortF.format(dateTime)); // 1/20/20 11:12 AM \r\n\t System.out.println(mediumF.format(dateTime)); // Jan 20, 2020 11:12:34 AM\r\n\r\n\r\n\r\n\t}", "public static DateTimeFormatter forStrptimePattern(String pattern) {\n if (pattern == null || pattern.length() == 0)\n throw new IllegalArgumentException(\"Empty date time pattern specification\");\n\n DateTimeFormatterBuilder builder = new DateTimeFormatterBuilder();\n parseToBuilder(builder, pattern);\n DateTimeFormatter formatter = builder.toFormatter();\n\n return formatter;\n }", "@Bean(name = \"dateFormatter\")\n public SimpleDateFormat dateFormatter() {\n return new SimpleDateFormat(\"dd/MM/yyyy\");\n }", "public void formatDateTime() {\n // Check if type of parsing is for display or not. \n // If it is for display, no need to check if date has already passed.\n if (parseType != 2) {\n startDate = dtFormat.formatDate(startDate,0);\n endDate = dtFormat.formatDate(endDate,0);\n } else {\n startDate = dtFormat.formatDate(startDate,1);\n endDate = dtFormat.formatDate(endDate,1);\n }\n \n startTime = dtFormat.formatTime(startTime);\n endTime = dtFormat.formatTime(endTime);\n }", "@Override // override for Javadoc and performance\n public String format(DateTimeFormatter formatter) {\n Objects.requireNonNull(formatter, \"formatter\");\n return formatter.format(this);\n }", "@Test\n public void generatedFormatIsParsable()\n {\n Date originalDate = new Date();\n String dateAsString = DateTimeAdapter.printDate( originalDate );\n Date parsedDate = DateTimeAdapter.parseDate( dateAsString );\n \n assertThat( parsedDate, equalTo( originalDate ) );\n }", "@Test void testShortTimestampLiteral() {\n sql(\"select timestamp '1969-07-20'\")\n .ok(\"SELECT TIMESTAMP '1969-07-20 00:00:00'\");\n // PostgreSQL allows the following. We should too.\n sql(\"select ^timestamp '1969-07-20 1:2'^\")\n .fails(\"Illegal TIMESTAMP literal '1969-07-20 1:2': not in format \"\n + \"'yyyy-MM-dd HH:mm:ss'\"); // PostgreSQL gives 1969-07-20 01:02:00\n sql(\"select ^timestamp '1969-07-20:23:'^\")\n .fails(\"Illegal TIMESTAMP literal '1969-07-20:23:': not in format \"\n + \"'yyyy-MM-dd HH:mm:ss'\"); // PostgreSQL gives 1969-07-20 23:00:00\n }", "@Test\n public void datetimeTest() {\n assertEquals(OffsetDateTime.parse(\"2020-08-12T07:59:11Z\"), authResponse.getDatetime());\n }", "public static DateTimeFormatter getDateTimeFormatter(String... patterns) {\n DateTimeFormatterBuilder builder = new DateTimeFormatterBuilder();\n for (String pattern : patterns) {\n builder.appendOptional(DateTimeFormatter.ofPattern(pattern));\n }\n return builder.toFormatter();\n }", "@BeforeEach\n\tprotected void setUp()\n\t{\n\t\tformatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n\t}", "public NSDateIntervalFormatter() {}", "public static void main(String[] args) {\n\t\t LocalDate ldt = LocalDate.of(2016,12,21);\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"yyyy-MMM-dd\");\n DateTimeFormatter format1 = DateTimeFormatter.ofPattern(\"YYYY-mmm-dd\");\n System.out.println(ldt.format(format));\n System.out.println(ldt.format(format1));\n\t}", "public static void main(String[] args) {\n LocalDate date = LocalDate.of(1986, 02, 12);\n LocalTime time = LocalTime.of(12, 30);\n LocalDateTime localDateTime = LocalDateTime.of(date, time);\n System.out.println(localDateTime);\n\n// Exercise 16\n String customizedDate = localDateTime.format(DateTimeFormatter.ofPattern(\"YYYY-MM-dd\"));\n System.out.println(customizedDate);\n LocalDate getDate = LocalDate.parse(customizedDate);\n System.out.println(getDate);\n String customizedTime = localDateTime.format(DateTimeFormatter.ofPattern(\"HH:mm\"));\n System.out.println(customizedTime);\n LocalTime getTime = LocalTime.parse(customizedTime);\n System.out.println(getTime);\n }", "public static DateFormat urlDateFormatter() {\n return Iso8601Formatter.dateTimeMillisFormatter();\n }", "@Test\n public void shouldCorrectWhenSettingObjectMapperDateFormat() throws Exception {\n SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy hh:mm\");\n\n String toParse = \"20-12-2014 02:30\";\n Date date = df.parse(toParse );\n Event event = new Event(\"party\", date);\n\n ObjectMapper mapper = new ObjectMapper();\n mapper.setDateFormat(df);\n\n String result = mapper.writeValueAsString(event);\n assertThat(result, containsString(toParse));\n }", "private static void parseToBuilder(DateTimeFormatterBuilder builder, String pattern) {\n int length = pattern.length();\n int[] indexRef = new int[1];\n\n for (int i=0; i<length; i++) {\n indexRef[0] = i;\n String token = parseToken(pattern, indexRef);\n i = indexRef[0];\n\n int tokenLen = token.length();\n if (tokenLen == 0) {\n break;\n }\n char c = token.charAt(0);\n\n if (c == '%' && token.charAt(1) != '%') {\n c = token.charAt(1);\n switch(c) {\n case 'a':\n builder.appendDayOfWeekShortText();\n break;\n case 'A':\n builder.appendDayOfWeekText();\n break;\n case 'b':\n case 'h':\n builder.appendMonthOfYearShortText();\n break;\n case 'B':\n builder.appendMonthOfYearText();\n break;\n case 'c':\n builder.appendDayOfWeekShortText();\n builder.appendLiteral(' ');\n builder.appendMonthOfYearShortText();\n builder.appendLiteral(' ');\n builder.appendDayOfMonth(2);\n builder.appendLiteral(' ');\n builder.appendHourOfDay(2);\n builder.appendLiteral(':');\n builder.appendMinuteOfHour(2);\n builder.appendLiteral(':');\n builder.appendSecondOfMinute(2);\n builder.appendLiteral(' ');\n builder.appendYear(4,4);\n break;\n case 'C':\n builder.appendCenturyOfEra(1,2);\n break;\n case 'd':\n builder.appendDayOfMonth(2);\n break;\n case 'D':\n builder.appendMonthOfYear(2);\n builder.appendLiteral('/');\n builder.appendDayOfMonth(2);\n builder.appendLiteral('/');\n builder.appendTwoDigitYear(2019);\n break;\n case 'e':\n builder.appendOptional(DateTimeFormat.forPattern(\"' '\").getParser());\n builder.appendDayOfMonth(2);\n break;\n case 'F':\n builder.appendYear(4,4);\n builder.appendLiteral('-');\n builder.appendMonthOfYear(2);\n builder.appendLiteral('-');\n builder.appendDayOfMonth(2);\n break;\n case 'g':\n case 'G':\n break; //for output only, accepted and ignored for input\n case 'H':\n builder.appendHourOfDay(2);\n break;\n case 'I':\n builder.appendClockhourOfHalfday(2);\n break;\n case 'j':\n builder.appendDayOfYear(3);\n break;\n case 'k':\n builder.appendOptional(DateTimeFormat.forPattern(\"' '\").getParser());\n builder.appendHourOfDay(2);\n break;\n case 'l':\n builder.appendOptional(DateTimeFormat.forPattern(\"' '\").getParser());\n builder.appendClockhourOfHalfday(2);\n break;\n case 'm':\n builder.appendMonthOfYear(2);\n break;\n case 'M':\n builder.appendMinuteOfHour(2);\n break;\n case 'n':\n break;\n case 'p':\n builder.appendHalfdayOfDayText();\n break;\n case 'r':\n builder.appendClockhourOfHalfday(2);\n builder.appendLiteral(':');\n builder.appendMinuteOfHour(2);\n builder.appendLiteral(':');\n builder.appendSecondOfMinute(2);\n builder.appendLiteral(' ');\n builder.appendHalfdayOfDayText();\n break;\n case 'R':\n builder.appendHourOfDay(2);\n builder.appendLiteral(':');\n builder.appendMinuteOfHour(2);\n break;\n case 'S':\n builder.appendSecondOfMinute(2);\n break;\n case 't':\n break;\n case 'T':\n builder.appendHourOfDay(2);\n builder.appendLiteral(':');\n builder.appendMinuteOfHour(2);\n builder.appendLiteral(':');\n builder.appendSecondOfMinute(2);\n break;\n/* case 'U': //FIXME Joda does not support US week start (Sun), this will be wrong\n builder.appendWeekOfYear(2);\n break;\n case 'u':\n builder.appendDayOfWeek(1);\n break;*/\n case 'V':\n break; //accepted and ignored\n/* case 'w': //FIXME Joda does not support US week start (Sun), this will be wrong\n builder.appendDayOfWeek(1);\n break;\n case 'W':\n builder.appendWeekOfYear(2);\n break;*/\n case 'x':\n builder.appendTwoDigitYear(2019);\n builder.appendLiteral('/');\n builder.appendMonthOfYear(2);\n builder.appendLiteral('/');\n builder.appendDayOfMonth(2);\n break;\n/* case 'X': //Results differ between OSX and Linux\n builder.appendHourOfDay(2);\n builder.appendLiteral(':');\n builder.appendMinuteOfHour(2);\n builder.appendLiteral(':');\n builder.appendSecondOfMinute(2);\n break;*/\n case 'y': //POSIX 2004 & 2008 says 69-99 -> 1900s, 00-68 -> 2000s\n builder.appendTwoDigitYear(2019);\n break;\n case 'Y':\n builder.appendYear(4,4);\n break;\n case 'z':\n builder.appendTimeZoneOffset(null, \"z\", false, 2, 2);\n break;\n case 'Z':\n break; //for output only, accepted and ignored for input\n default: // No match, ignore\n builder.appendLiteral('\\'');\n builder.appendLiteral(token);\n throw new IllegalArgumentException(token + \"is not acceptted as a parse token, treating as a literal\");\n }\n } else {\n if (c == '\\'') {\n String sub = token.substring(1);\n if (sub.length() > 0) {\n // Create copy of sub since otherwise the temporary quoted\n // string would still be referenced internally.\n builder.appendLiteral(new String(sub));\n }\n } else throw new IllegalArgumentException(\"Unexpected token encountered parsing format string:\" + c);\n }\n }\n }", "public String getTimestamp() \n{\n Calendar now = Calendar.getInstance();\n return String.format(\"20%1$ty-%1$tm-%1$td_%1$tHh%1$tMm%1$tSs\", now);\n}", "public static void main(String[] args) {\n\t\t\n\t\tLocalDate date = LocalDate.now();\n\t\t\n\t\tSystem.out.println(\"date: \" + date);\n\t\tSystem.out.println(\"DateTimeFormatter.ISO_DATE: \" + date.format(DateTimeFormatter.ISO_DATE));\n\t\t\n\t\tLocalDateTime datetime = LocalDateTime.now();\n\t\t\t\t\n\t\tSystem.out.println(\"datetime: \" + datetime);\n\t\tSystem.out.println(\"DateTimeFormatter.ISO_DATE_TIME: \" + datetime.format(DateTimeFormatter.ISO_DATE_TIME));\n\t\t\n\t\ttry {\n\t\t\tString strDateTime = date.format(DateTimeFormatter.ISO_DATE_TIME); \n\t\t\tSystem.out.println(\"strDateTime: \" + strDateTime);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tString strDate = datetime.format(DateTimeFormatter.ISO_DATE); \n\t\t\tSystem.out.println(\"strDate: \" + strDate);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tLocalDate date1 = LocalDate.parse(\"2020-01-31T12:30:59\", DateTimeFormatter.ISO_DATE_TIME); \n\t\t\tSystem.out.println(\"strDate: \" + date1);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public String formatDateAndTime(String date){\n\n return dateTimeFormatter.parse(date).toString();\n\n }", "private DateTimeAdjusters() {\n\n }", "public static String checkDateTime(String dateTimeDetails) {\n try {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MMM d yyyy HH:mm\");\n LocalDateTime dateTime = LocalDateTime.parse(dateTimeDetails);\n dateTimeDetails = dateTime.format(formatter);\n } catch (java.time.format.DateTimeParseException e) {\n Ui.printInvalidDateTimeErrorMessage();\n }\n return dateTimeDetails;\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "@Override\n public void postConfig() {\n Locale locale = new Locale(localeLanguage, localeCountry);\n try {\n formatter = DateTimeFormatter.ofPattern(dateFormat, locale);\n } catch (IllegalArgumentException e) {\n throw new PropertyException(e,\"\",\"dateFormat\",\"dateFormat could not be parsed by DateTimeFormatter\");\n }\n }", "public String formatDateTime(ZonedDateTime dateTime) {\n\t\treturn dateFormatter.format(dateTime);\n\t}", "public CustomObjectMapper(){\n this.setDateFormat(new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\"));\n }", "public static String format(DateTime dateTime){\n return formatDate(dateTime) + \" \" + formatTime(dateTime);\n }", "private void constructVssDateTimeFormat() {\n vssDateTimeFormat = new SimpleDateFormat(\"'Date: '\" + this.dateFormat + \" 'Time: 'hh:mma\"); \n }", "private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }", "public void testFormatDateStringFromTimestamp_todayDoubleMinutePm() {\n calendar.set(Calendar.HOUR_OF_DAY, 22);\n calendar.set(Calendar.MINUTE, 18);\n assertEquals(\"10:18 PM\",\n ContactInteractionUtil.formatDateStringFromTimestamp(calendar.getTimeInMillis(),\n getContext()));\n }", "public Formatter() {\n\t\t// locale the locale for weekday names.\n\t\tfinal Locale locale = Locale.ENGLISH;\n\t\tdateFormatter = DateTimeFormatter.ofPattern(\"dd.MM.yyyy 'at' HH:mm\", locale);\n\t\tweekdayFormatter = DateTimeFormatter.ofPattern(\"EEEE\", locale);\n\t}", "public String getDateTimeFormated(Context context){\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\"\n , context.getResources().getConfiguration().locale);\n sdf.setTimeZone(TimeZone.getDefault());\n return sdf.format(new Date(mDateTime));\n //setting the dateformat to dd/MM/yyyy HH:mm:ss which is how the date is displayed when a dream is saved\n }", "private static\n DateTimeFormatter getDateTimeFormatter(String pattern,\n boolean withZoneUTC,\n boolean optionalFracSecond,\n boolean optionalOffsetId,\n int nFracSecond) {\n\n DateTimeFormatterBuilder dtfb = new DateTimeFormatterBuilder();\n dtfb.appendPattern(pattern);\n if (optionalFracSecond) {\n dtfb.optionalStart();\n dtfb.appendFraction(ChronoField.NANO_OF_SECOND,\n 0, MAX_PRECISION, true);\n dtfb.optionalEnd();\n } else {\n if (nFracSecond > 0) {\n dtfb.appendFraction(ChronoField.NANO_OF_SECOND,\n nFracSecond, nFracSecond, true);\n }\n }\n if (optionalOffsetId) {\n dtfb.optionalStart();\n dtfb.appendOffset(\"+HH:MM\",\"Z\");\n dtfb.optionalEnd();\n }\n return dtfb.toFormatter().withZone\n (withZoneUTC ? UTCZone : ZoneId.systemDefault());\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tString date=\"2021/02/04\";//default date format\r\n\t\tLocalDate today=LocalDate.now();\r\n\t\t\r\n\t\tDateTimeFormatter pattern1=DateTimeFormatter.ofPattern(\"yyyy/MMM/dd\");\r\n\t\tDateTimeFormatter pattern2=DateTimeFormatter.ofPattern(\"yyyy/MM/dd\");\r\n\t\t\r\n\t\tSystem.out.println(\"Default format \"+today);\r\n\t\t\r\n\t\tSystem.out.println(\"my format \"+today.format(pattern2));\r\n\t\tSystem.out.println(\"my format \"+today.format(pattern1));\r\n\t\t\r\n\t\tSystem.out.println(\"====================================================\");\r\n\t\t\r\n\t\t\tLocalDate ld=LocalDate.parse(date,pattern2);\r\n\t\t\tSystem.out.println(ld);\r\n\t}", "private String formatTimeToICS(LocalDateTime date) {\n return DateTimeFormatter.ofPattern(\"YYYYMMddTHHmmss\").format(date);\n }", "private String formatDateTime(String inputDateTime) throws ParseException {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n simpleDateFormat.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n Date myDate = simpleDateFormat.parse(inputDateTime);\n DateFormat outputFormat = new SimpleDateFormat(\"M/d/yy, h:mm aa\");\n DateFormat todayFormat = new SimpleDateFormat(\"h:mm aa\");\n String outputDateStr = \"\";\n if (isToday(inputDateTime.split(\" \")[0])){\n outputDateStr = \"Today, \" + todayFormat.format(myDate);\n } else {\n outputDateStr = outputFormat.format(myDate);\n }\n return outputDateStr;\n }", "public DateTime(Date date) {\r\n\t\tthis.timeString = YYYY_MMT_DD_T_HH_MM_SS_FORMATTER.format(date);\r\n\t}", "@Test\n\tpublic void testPrintingDayNameShortForm() throws Exception {\n\t DateTime oneSunnyWednesday = new DateTime(2014, 10, 15, 0, 0);\n DateTimeFormatter format = DateTimeFormat.forPattern(\"E, d MMM y\");\n String dayNameAndDate = format.print(oneSunnyWednesday);\n \n assertEquals(\"Wed, 15 Oct 2014\", dayNameAndDate);\n\t}", "@Override\n\tpublic String[] getFormats() {\n\t\treturn new String[] {\"yyyy-MM-dd'T'HH:mm:ss\",\"yyyy-MM-dd HH:mm:ss\",\"yyyy-MM-dd HH:mm\",\"yyyy-MM-dd'T'HH:mm\",\"yyyy-MM-dd HH\", \"yyyy-MM-dd\" };\n\t}", "public InvalidDateTimeFormatException(String dateOrTime, String format) {\n super(String.format(\"%s should be in the form of <%s>\", dateOrTime, format));\n }", "public static String datetimeNow(){\n return now(DATETIME_FORMAT_PATTERN);\n }", "private String getFormattedDate(Integer format) {\n Date date = new Date(format * 1000L);\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss.SSS\");\n dateFormat.setTimeZone(TimeZone.getTimeZone(\"Etc/UTC\"));\n Log.e(\"time\",dateFormat.format(date));\n return dateFormat.format(date);\n }", "static String createNormalDateTimeString() {\n return NORMAL_STROOM_TIME_FORMATTER.format(ZonedDateTime.now(ZoneOffset.UTC));\n }", "private String getTimeFormat() {\r\n return mData.getConfiguration(\"x-labels-time-format\", \"yyyy-MM-dd\");\r\n }", "public static void dateFormat() {\n }", "private static LocalDateTime readDateTimeFromConsole() {\n\t\tLocalDate date = readDateFromConsole();\n\t\tLocalTime time = readTimeFromConsole();\n\t\treturn date.atTime(time); \n\t}", "private static java.text.SimpleDateFormat getFormatter() {\r\n\r\n\t\treturn getDBLayer().getDateFormatter();\r\n\t}", "public static void main(String[] args) {\n\t\tLocalDateTime currentTime = LocalDateTime.now();\r\n\t\tSystem.out.println(\"Current DateTime: \" + currentTime);\r\n\r\n\t\tLocalDate date1 = currentTime.toLocalDate();\r\n\t\tSystem.out.println(\"date1: \" + date1);\r\n\r\n\t\tMonth month = currentTime.getMonth();\r\n\t\tint day = currentTime.getDayOfMonth();\r\n\t\tint seconds = currentTime.getSecond();\r\n\r\n\t\tSystem.out.println(\"Month: \" + month + \", Day: \" + day + \", Seconds: \" + seconds);\r\n\r\n\t\tLocalDateTime date2 = currentTime.withDayOfMonth(10).withYear(2012);\r\n\t\tSystem.out.println(\"date2: \" + date2);\r\n\r\n\t\t// 12 december 2014\r\n\t\tLocalDate date3 = LocalDate.of(2014, Month.DECEMBER, 12);\r\n\t\tSystem.out.println(\"date3: \" + date3);\r\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyyMMdd\");\r\n\t\tSystem.out.println(\"date3 in yyyyMMdd format: \" + date3.format(formatter));\r\n\r\n\t\t// 22 hour 15 minutes\r\n\t\tLocalTime date4 = LocalTime.of(22, 15);\r\n\t\tSystem.out.println(\"date4: \" + date4);\r\n\r\n\t\t// parse a string\r\n\t\tLocalTime date5 = LocalTime.parse(\"20:15:30\");\r\n\t\tSystem.out.println(\"date5: \" + date5);\r\n\r\n\t\t/**\r\n\t\t * Result :\r\n\t\t * \r\n\t\t * Current DateTime: 2020-12-30T15:53:50.256 \r\n\t\t * date1: 2020-12-30 \r\n\t\t * Month: DECEMBER, Day: 30, Seconds: 50 \r\n\t\t * date2: 2012-12-10T15:53:50.256 \r\n\t\t * date3: 2014-12-12 \r\n\t\t * date3 in yyyyMMdd format: 20141212 \r\n\t\t * date4: 22:15 \r\n\t\t * date5: 20:15:30\r\n\t\t */\r\n\t}", "@Test\n @DisplayName(\"convert string to LocaleDate\")\n void convertStringToLocaleDate() {\n String date = \"10 13 2020\";\n LocalDate localDate = DateTimeFormatter.convertStringToLocaleDate(date);\n\n //agenda.addDanceClass(\"Tango Argentin\", \"Tokyo\", date);\n // assertEquals(localDate, );\n }", "public DateGraphFormat(String pattern){\n\t((SimpleDateFormat) dateFormat).applyPattern(pattern);\n }", "@NonNull\n private static String formattedDurationFromNow(DateTime dateTime) {\n Duration duration = new Duration(DateTime.now(), dateTime);\n return new StringBuilder().append(\n new DecimalFormat(\"##\").format(duration.getStandardMinutes())).toString();\n }", "public static void main(String[] args) throws ParseException {\n\t Long t = Long.parseLong(\"1540452984\");\r\n Timestamp ts = new Timestamp(1540453766);\r\n DateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n //方法一:优势在于可以灵活的设置字符串的形式。\r\n String tsStr = sdf.format(ts);// 2017-01-15 21:17:04\r\n System.out.println(tsStr);\r\n\t}", "OffsetDateTime createdDateTime();", "DateTimeField parse(Chronology chronology);", "private ThreadLocal<SimpleDateFormat> getDateFormatter() {\n\n return madisDateFormat;\n }", "private static DateFormat getTimestampFormat(ConfigurationObject config) {\r\n // Get timestamp format to be used in the email\r\n String timestampFormatStr = Helper.getPropertyValue(config, TIMESTAMP_FORMAT_KEY, false, false);\r\n\r\n try {\r\n return new SimpleDateFormat((timestampFormatStr == null) ? DEFAULT_TIME_FORMAT : timestampFormatStr);\r\n } catch (IllegalArgumentException e) {\r\n throw new LateDeliverablesTrackerConfigurationException(\"Invaid timestamp format value.\", e);\r\n }\r\n }", "public interface Format {\n public static final String PATTERN_DATE = \"yyyy-MM-dd\";\n public static final String PATTERN_DATE_YEAR = \"yyyy\";\n}", "public static void main(String[] args) {\n\n\t\t\n\t\tLocalDateTime Idt = LocalDateTime.now();\n\t\t\n\t\tSystem.out.println(Idt); //2021-03-19T23:06:48.913604300\n\t\tSystem.out.println(Idt.toString());//2021-03-19T23:06:48.913604300\n\t\t\n\t\tString time = Idt.toString();\n\t\t\n\t\tSystem.out.println(time.startsWith(\"2021\")); //true\n\t\t\n\t\t\n\t\t\n\t}", "@RequiresApi(api = Build.VERSION_CODES.N)\n private String getDateTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n return dateFormat.format(date);\n }", "private String getTimeText(LocalDateTime dateTime) {\n return dateTime.format(DateTimeFormatter.ofPattern(FORMAT_TIME));\n }", "public static String format(Date dateTime) {\r\n String dot = new SimpleDateFormat(\"yyyy-MM-dd.HH:mm:ss\").format(dateTime);\r\n return dot.replaceAll(\"[.]\", \"T\");\r\n }", "public static void main(String[] args) throws ParseException {\n LocalDate dataAtual = LocalDate.now(); //temos a data atual aqui\n\n System.out.println(\"Data Atual: \" + dataAtual);\n\n LocalTime horaAtual = LocalTime.now(); //hora de agora\n\n System.out.println(\"Hora atual: \" + horaAtual.format(DateTimeFormatter.ofPattern(\"HH:mm:ss\")));\n\n LocalDateTime dataAutalHoraAtual = LocalDateTime.now();\n\n System.out.println(\"Hora e data atual: \" + dataAutalHoraAtual.format(DateTimeFormatter.ofPattern(\"dd/MM/yyyy HH:mm\")));\n }", "public interface DateTime extends Comparable, Cloneable\n{\n DateFormat STD_DATE_FORMAT = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);\n\n /**\n * Returns the DateTimeStruct that this object represents\n * @deprecated This method exists primarily for backwards compatability reasons. Please use the wrapper objects\n * whenever possible.\n */\n DateTimeStruct getDateTimeStruct();\n\n /**\n * Returns the date\n */\n Date getDate();\n\n /**\n * Returns the time\n */\n Time getTime();\n\n /**\n * Returns the date in Calendar format\n */\n Calendar getCalendar();\n\n /**\n * Returns the time as UTC milliseconds from the epoch\n */\n long getTimeInMillis();\n}", "public void setTimestampFormatPattern(String timestampFormatPattern) {\r\n this.timestampFormatPattern = timestampFormatPattern;\r\n }", "public String getTimestampFormatPattern() {\r\n return timestampFormatPattern;\r\n }", "public static void main(String[] args) {\n\t\tDate today = new Date();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy:MM:dd hh:MM:ss\");\n\t\tString s= sdf.format(today);\n\t\tSystem.out.println(s);\n\t}", "private String getFecha() {\n\t\tLocalDateTime myDateObj = LocalDateTime.now();\n\t\tDateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"dd-MM-yyyy HH:mm:ss\");\n\t\tString formattedDate = myDateObj.format(myFormatObj);\n \n\t\treturn formattedDate;\n }", "private String stringFormattedTime(Instant instant){\n ZonedDateTime zonedDateTime = instant.atZone(ZoneOffset.UTC);\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\n return formatter.format(zonedDateTime);\n }", "public String getDatetime() {\n return datetime;\n }", "public static void main(String[] args) {\n System.out.println(new Date().getTime());\n\n // 2016-12-16 11:48:08\n Calendar calendar = Calendar.getInstance();\n calendar.set(2016, 11, 16, 12, 0, 1);\n System.out.println(calendar.getTime());\n Date date=new Date();\n SimpleDateFormat simpleDateFormat=new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n System.out.println(simpleDateFormat.format(date));\n\n\n }", "public static void main(String[] args) {\n\t\tLocalDate today=LocalDate.now();\n\t\t\n\t\tDateTimeFormatter dtf=DateTimeFormatter.ofPattern(\"YYYY/MM/DD\");\n\t\tDateTimeFormatter dtf1=DateTimeFormatter.ofPattern(\"YYYY MM DD\");\n\t\t\n\t\tDateTimeFormatter dtfull=DateTimeFormatter.ofLocalizedDate(FormatStyle.FULL);\n\t\tDateTimeFormatter dtm=DateTimeFormatter.ofLocalizedDate(FormatStyle.MEDIUM);\n\t\tDateTimeFormatter dts=DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT);\n\t\t\n\t\t\n\t\tString afterformat=today.format(dtf);\n\t\tSystem.out.println(afterformat);\n\t\tString afterformat1=today.format(dtf1);\n\t\tSystem.out.println(afterformat1);\n\t\tString fd=today.format(dtfull);\n\t\tSystem.out.println(fd);\n\t\tString md=today.format(dtm);\n\t\tSystem.out.println(md);\n\t\tString sd=today.format(dts);\n\t\tSystem.out.println(sd);\n\t\t\n\t\t\n\n\t}", "long getDateTime();", "private String getDateTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy HH:mm\");\n Date date = new Date();\n return dateFormat.format(date);\n }", "public String getFileFormattedDateTime() {\n return this.optionalTime.map(x -> getFileFormattedDate() + \" | \" + x.format(DateTimeFormatter.ofPattern(\n \"HHmm\"))).orElse(getFileFormattedDate());\n }", "String getCreated_at();", "DateTimeStruct getDateTimeStruct();", "public static void main(String[] args)\r\n/* 96: */ {\r\n/* 97:104 */ SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n/* 98:105 */ String qiandaotime = df.format(new Date());\r\n/* 99:106 */ System.out.println(qiandaotime);\r\n/* 100: */ }", "public interface DateFormatting {\n\n LocalDateTime getLDT (String s);\n\n}", "public void setPatternSeparator(String timestampSeparator)\r\n\t{\r\n\t\tthis.patternSeparator = timestampSeparator;\r\n\t}", "public final /* synthetic */ Object initialValue() {\n return new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\", Locale.US);\n }", "private String formatTime(LocalDateTime time){\n return time.getYear() + \"-\" + time.getMonthValue() + \"-\" + time.getDayOfMonth()\n + \" \" + time.getMinute() + \":\" + time.getSecond();\n }", "public static SimpleDateFormat createDateFormat() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSS\");\n TimeZone myTimeZone = TimeZone.getTimeZone(ZoneId.of(\"UTC\"));\n dateFormat.setTimeZone(myTimeZone);\n dateFormat.setLenient(false);\n return dateFormat;\n }", "public String getSQLTimestampFormat();", "public static void main(String[] args) {\r\n\t\tDate now = new Date();\r\n\t\tSimpleDateFormat sdf = \r\n\t\tnew SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\tString str = sdf.format(now);\r\n\tSystem.out.println(str);\r\n\tlong time = now.getTime();\r\n\ttime += 48954644;\r\n\tnow.setTime(time);\r\n\tSystem.out.println(sdf.format(now));\r\n\tDate dat = null;\r\n\ttry {\r\n\t\tdat = sdf.parse(str);\r\n\t} catch (ParseException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n\tSystem.out.println(dat);\r\n\t\r\n\r\n}", "public DateTimeFormatRenderer(DateTimeFormat format) {\n this(format, null);\n }", "@Test\n public void testInvalidHttpDateTime() {\n assertNull(DateTimeHelper.parseHttpDateTime(null));\n\n // \"\" is not a date\n assertNull(DateTimeHelper.parseHttpDateTime(\"\"));\n\n // wrong format\n assertNull(DateTimeHelper.parseHttpDateTime(\"1111111111111111\"));\n\n // invalid year\n assertNull(DateTimeHelper.parseHttpDateTime(\"Mon, 24 Dec abcd 09:10:11 GMT\"));\n\n // invalid month\n assertNull(DateTimeHelper.parseHttpDateTime(\"Mon, 24 abc 2012 09:10:11 GMT\"));\n\n // invalid day\n assertNull(DateTimeHelper.parseHttpDateTime(\"Mon, xy Dec 2012 09:10:11 GMT\"));\n }", "public static void main(String[] args) {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssX\"); // Quoted \"Z\" to indicate UTC, no timezone offset\n// df.setTimeZone(tz);\n// String nowAsISO = df.format(\"2017-04-21T21:25:35+05:00\");\n try {\n Date date = df.parse(\"2017-04-21T21:25:35+05:00\");\n System.out.println(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }", "public void m3() {\n\t\t\r\n\t\tLocalDate dob = LocalDate.parse(\"1991::09::17\",DateTimeFormatter.BASIC_ISO_DATE);\r\n\tSystem.out.println(dob);\r\n\t}", "public DateTimeFormatterBuilder append(DateTimeParser parser) {\r\n checkParser(parser);\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[19]++;\r\n return append0(null, parser);\r\n }", "private String syncTimeStamp(String timestamp){\r\n StringBuilder dateBuilder = new StringBuilder(timestamp);\r\n String time = dateBuilder.toString().split(\"T\")[1].substring(0, 8);\r\n String[] timeArr = time.split(\":\");\r\n String seconds = timeArr[2];\r\n String dd = dateBuilder.toString().split(\"T\")[0].split(\"-\")[2];\r\n String mm = dateBuilder.toString().split(\"T\")[0].split(\"-\")[1];\r\n String yyyy = dateBuilder.toString().split(\"T\")[0].split(\"-\")[0];\r\n int hour = Integer.parseInt(timeArr[0]);\r\n int minutes = Integer.parseInt(timeArr[1]);\r\n minutes += 30;\r\n hour+=5;\r\n if (minutes>=60){\r\n hour += 1;\r\n minutes -= 60;\r\n }\r\n if (hour >= 24){\r\n hour -= 24;\r\n dd = Integer.toString(Integer.parseInt(dd) + 1);\r\n if (Integer.parseInt(dd) < 10)\r\n dd = \"0\" + dd;\r\n }\r\n String minutesString;\r\n if (minutes < 10)\r\n minutesString = \"0\" + Integer.toString(minutes);\r\n else\r\n minutesString = Integer.toString(minutes);\r\n\r\n String hoursString;\r\n if (hour < 10)\r\n hoursString = \"0\" + Integer.toString(hour);\r\n else\r\n hoursString = Integer.toString(hour);\r\n String finalTime = hoursString + \":\" + minutesString + \":\" + seconds;\r\n String finalDate = dd + \"-\" + mm + \"-\" + yyyy;\r\n\r\n return (finalDate + \" \" + finalTime);\r\n }", "@Test\n public void shouldSerializeToTimestampWhenSerializingDateWithJackson() throws ParseException, JsonProcessingException {\n SimpleDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy hh:mm\");\n df.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n\n Date date = df.parse(\"01-01-1970 01:00\");\n Event event = new Event(\"party\", date);\n\n ObjectMapper objectMapper = new ObjectMapper();\n String result = objectMapper.writeValueAsString(event);\n\n assertThat(result, containsString(\"party\"));\n assertThat(result, containsString(\"3600000\"));\n }", "public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}", "public String getFormattedTimeOnly(DateTime date) {\n String datePattern = context.getString(R.string.general_date_pattern_time_only);\n DateTimeFormatter dtfOut = DateTimeFormat.forPattern(datePattern);\n return dtfOut.print(date);\n }", "@Test\n public void createdAtTest() {\n // TODO: test createdAt\n }", "public static String getDateTime(){\n String pattern = \"MM/dd/yyyy HH:mm:ss\";\n DateFormat df = new SimpleDateFormat(pattern);\n Date today = Calendar.getInstance().getTime();\n String todayAsString = df.format(today);\n return todayAsString;\n }", "@Override\r\n\tpublic String format(LogRecord record) {\n\t\tDate date = new Date(record.getMillis());\r\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\treturn format.format(date)+\" \" + record.getLevel()+\": \\n\" + record.getMessage()+\"\\n\";\r\n\t\t\r\n\t}", "public static String formatDateToDateTimePickerView(Date date) {\r\n if (date != null) {\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy hh:mm:ss\");\r\n return formatter.format(date);\r\n }\r\n return \"\";\r\n }", "private static String getStamp() {\n\t\t\t return new SimpleDateFormat(\"yyyyMMddHHmmss\").format(new Date());\r\n\t\t}" ]
[ "0.6166982", "0.6069459", "0.601484", "0.5680025", "0.5678567", "0.56751", "0.5639671", "0.56133276", "0.5580653", "0.55692434", "0.5549412", "0.5532551", "0.552485", "0.5520321", "0.54783607", "0.5456099", "0.5455857", "0.5370131", "0.5358988", "0.52944124", "0.5281013", "0.52769035", "0.5265648", "0.52509123", "0.5239397", "0.5239397", "0.5213902", "0.521298", "0.5212408", "0.52042085", "0.5202424", "0.5199054", "0.5198022", "0.5194245", "0.5173853", "0.51517093", "0.51499504", "0.51486206", "0.51160884", "0.5115039", "0.50890136", "0.5083535", "0.5080584", "0.5074271", "0.506508", "0.50621", "0.505679", "0.50456524", "0.50413114", "0.5039882", "0.5030626", "0.502224", "0.5019767", "0.5012386", "0.5005451", "0.4985506", "0.49789056", "0.4976043", "0.49630213", "0.49546728", "0.4945023", "0.49431545", "0.4942013", "0.49392912", "0.49371845", "0.49312842", "0.4928196", "0.49249437", "0.49195373", "0.49143407", "0.4913254", "0.49102423", "0.49035087", "0.48958609", "0.48930216", "0.48908436", "0.48870337", "0.48791817", "0.48764557", "0.48740622", "0.48734176", "0.48728478", "0.48713696", "0.48675346", "0.4862175", "0.4851748", "0.4838757", "0.4836105", "0.4833847", "0.48250103", "0.4823165", "0.4820998", "0.48139545", "0.48125643", "0.48113602", "0.48046482", "0.47990477", "0.47968844", "0.47824335", "0.47810268", "0.47766832" ]
0.0
-1
postOrder without recursive solution.
public ArrayList<Integer> postorderTraversal(TreeNode root) { ArrayList<Integer> list = new ArrayList<>(); Stack<TreeNode> stack = new Stack<>(); if (root == null) return list; stack.push(root); while (!stack.empty()) { TreeNode current = stack.pop(); if (current.left != null) { stack.push(current.left); list.add(current.left.val); current.left = null; } else if (current.right != null) { stack.push(current.right); list.add(current.right.val); current.right = null; } else { stack.pop(); list.add(current.val); } } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void postorder() {\n\n\t}", "public void postOrderTraversal(){\n System.out.println(\"postOrderTraversal\");\n //TODO: incomplete\n\n }", "public void postorder()\r\n {\r\n postorder(root);\r\n }", "public void postorder()\n {\n postorder(root);\n }", "public void postorder()\n {\n postorder(root);\n }", "public void postorder() {\n\t\tpostorder(root);\n\t}", "public void postOrder() {\n postOrder(root);\n }", "public void postOrder() {\r\n\t\tSystem.out.print(\"POST: \");\r\n\t\tpostOrder(root);\r\n\t\tSystem.out.println();\r\n\t}", "public void PostOrder() {\n\t\tPostOrder(root);\n\t}", "public void postOrder(){\n postOrder(root);\n System.out.println();\n }", "public void postOrderTraversal(Node<T> aRoot, List<T> postOrder)\n\t{\n\t\tif (aRoot != null)\n\t\t{\n\t\t\tpostOrderTraversal(aRoot.left, postOrder);\n\t\t\tpostOrderTraversal(aRoot.right, postOrder);\n\t\t\tpostOrder.add(aRoot.X);\n\t\t}\n\t}", "public ArrayList<E> postorderNoRecursion()\n {\n ArrayList<E> nonRecursivePostorder= new ArrayList<>();\n\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE POST ORDER TRAVERSAL OF THE TREE WITHOUT USING RECURSION AND RETURN THE RESULT TRAVEL SEQUENCE IN ARRAYLIST nonRecursivePostorder\n */\n\n return nonRecursivePostorder;\n }", "void postOrderOperation(PortfolioNode portfolioNode);", "private void postOrder() {\n postOrderTraversal(0);\n System.out.println(); // jump to next line\n }", "public void postOrderTraversal() {\n beginAnimation();\n treePostOrderTraversal(root);\n stopAnimation();\n\n }", "public void visitPostorder(Visitor<T> visitor) { if (root != null) root.visitPostorder(visitor); }", "@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPost(raiz, lista);\r\n\t}", "private void postOrder(OpTree t, ArrayList<String> rlist)\n\t{\n\t\tif (t == null) return;\n\t\tpostOrder(t.left, rlist);\n\t\tpostOrder(t.right, rlist);\n\t\trlist.add(rlist.size(),(t.op != null? t.op : t.dval.toString()));\n\t}", "public void postOrderTraversal() {\n postOrderThroughRoot(root);\n System.out.println();\n }", "public void postorderTraversal() \n { \n postorderTraversal(header.rightChild); \n }", "private <E> void postOrder(Node root,Action<Integer,E> action) {\n\t\tif(root==null)\n\t\t\treturn;\n\t\t\n\t\t\n\t\tpostOrder(root.left,action);\n\t\t\n\t\tpostOrder(root.right,action);\n\t\t//System.out.println(root.value,action);\n\t\taction.execute(root.value);\n\t\t\n\t}", "private void postOrder(Node root) {\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tpostOrder(root.getlChild());\r\n\t\tpostOrder(root.getrChild());\r\n\t\tif (postOrderCount < 20) {\r\n\t\t\tpostOrderCount++;\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + postOrderCount);\r\n\r\n\t\t}\r\n\r\n\t}", "private List<T> postOrderHelper(Node<T> current, List<T> result) {\n\t\tif (current != null) {\n\t\t\tresult = postOrderHelper(current.getLeft(), result);\n\t\t\tresult = postOrderHelper(current.getRight(), result);\n\t\t\tresult.add(current.getData());\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void postorderTraverse(){\n\t\tpostorderHelper(root);\n\t\tSystem.out.println();\n\t}", "public myList<T> my_postorder();", "private void traversePostOrder(BSTNode<T> node, LinkedList<T> list) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif(node!= null) {\r\n\t\t\t//left\r\n\t\t\tthis.traversePostOrder(node.left, list);\r\n\t\t\t//right\r\n\t\t\tthis.traversePostOrder(node.right, list);\r\n\t\t\t//visit node\r\n\t\t\tlist.add(node.data);\r\n\t\t}\r\n\t}", "public void printPostorder() {\n System.out.print(\"postorder:\");\n printPostorder(overallRoot);\n System.out.println();\n }", "void postOrderOperation(PortfolioNode parentNode, Position position);", "public void visitPostorder(Visitor<T> visitor) {\n if (left != null) left.visitPostorder(visitor);\n if (right != null) right.visitPostorder(visitor);\n visitor.visit(root.value);\n }", "private void postOrder(Node<T> node){\n if(node != null){\n postOrder(node.left);\n postOrder(node.right);\n System.out.print(node.data + \" ,\");\n }\n }", "void printPostorder() { \n\t\tprintPostorder(root);\n\t}", "private static <N> void postOrderTraversal(TreeNode<N> node, TreeNodeVisitor<N> visitor) throws TreeNodeVisitException {\r\n\t\tif(node.hasChildren()){\r\n\t\t\tfor(TreeNode<N> childNode : node.getChildren()){\r\n\t\t\t\tpostOrderTraversal(childNode, visitor);\r\n\t\t\t}\r\n\t\t\tvisitor.visitNode(node);\r\n\t\t}else{\r\n\t\t\tvisitor.visitNode(node);\r\n\t\t}\r\n\t}", "protected void postorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tpostorder(root.left);\r\n\t\tpostorder(root.right);\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t}", "public void postOrder(Node node) {\n\n if (node == null) {\n System.out.println(\"Tree is empty\");\n return;\n }\n\n Stack<Node> stack1 = new Stack<>();\n Stack<Node> stack2 = new Stack<>();\n\n stack1.push(node);\n\n while (!stack1.empty()) {\n\n node = stack1.pop();\n\n stack2.push(node);\n\n if (node.left != null) {\n stack1.push(node.left);\n }\n\n if (node.right != null) {\n stack1.push(node.right);\n }\n }\n\n while (!stack2.empty()) {\n node = stack2.pop();\n System.out.print(node.value + \" \");\n }\n }", "List<Integer> traversePostOrder(List<Integer> oList) \n\t{\n\t\tif(this.left != null)\n\t\t{\n\t\t\tthis.left.traversePostOrder(oList);\n\t\t}\n\t\n\t\tif(this.right != null)\n\t\t{\n\t\t\tthis.right.traversePostOrder(oList);\n\t\t}\n\t\t\n\t\toList.add(this.key);\n\t\t\n\t\treturn oList;\n\t}", "private void postOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n postOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n postOrderTraversal(2 * index + 2);\n // print the node\n System.out.print(array[index] + \", \");\n }", "private void postOrder(HomogeneusNode root) {\n if (root != null) {\n postOrder(root.getLeft());\n postOrder(root.getRight());\n System.out.printf(\"%d\", root.getData());\n }\n }", "public List<T> postorder() {\n ArrayList<T> list = new ArrayList<T>();\n if (root != null) {\n postorderHelper(list, root);\n }\n return list;\n }", "public void postOrder(BinarySearchTreeNode<T> node)\r\n {\r\n if(node==null)\r\n {\r\n return;\r\n }\r\n postOrder(node.getLeft());\r\n postOrder(node.getRight());\r\n System.out.println(node.getElement());\r\n\r\n }", "private static boolean postOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the left child, then the right child, then finally the current node\n else{\n postOrderTraversal(current.getLeftChild());\n postOrderTraversal(current.getRightChild());\n postorder.add(current);\n }\n return true;\n }", "private void postOrder(BSTNode<K,V> node, List<Entry<K,V>> list) throws NullPointerException {\n\t\tif (root == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (root != null) {\n\t\t\t\n\t\t\tif (node.left != null) {\n\t\t\t\tpostOrder(node.left, list);\n\t\t\t}\n\t\t\t\n\t\t\tif (node.right != null) {\n\t\t\t\tpostOrder(node.right, list);\n\t\t\t}\n\t\t\t\n\t\t\tlist.add(new Entry<K,V>(node.key, node.value));\n\t\t}\n\t}", "protected void postorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n postorder(root.left);\n postorder(root.right);\n System.out.print(root.element + \" \");\n }", "private void postOrderTraversal(StringBuilder sb) {\n if (left != null) {\n left.postOrderTraversal(sb);\n }\n\n if (right != null) {\n right.postOrderTraversal(sb);\n }\n\n sb.append(data + \" \");\n }", "private void postorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tpostorderHelper(root.left);\n\t\t\tpostorderHelper(root.right);\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t}\n\t}", "void postOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tpostOrderTraversal(node.getLeftNode());\n\t\tpostOrderTraversal(node.getRightNode());\n\t\tSystem.out.print(node.getValue() + \" \");\n\t}", "private void postorderHelper(ArrayList<T> list, BSTNode<T> current) {\n if (current.getLeft() != null) {\n postorderHelper(list, current.getLeft());\n }\n if (current.getRight() != null) {\n postorderHelper(list, current.getRight());\n }\n list.add(current.getData());\n }", "public static void main(String[] args) {\n\t\tNode root = new Node(30);\n\t\troot.right = new Node(40);\n\t\troot.left = new Node(20);\n\t\troot.left.right=new Node(25);\n\t\troot.left.left = new Node(10);\n\t\troot.right.left = new Node(35);\n\t\troot.right.right = new Node(45);\n\t\t\n\t\tpostOrderTraversal(root);\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tpostOrderRecursion(root);\n\t}", "public static void postorder(Node root){\n\t\tif(root != null){\n\t\t\tinorder(root.getLeft());\n\t\t\tinorder(root.getRight());\n\t\t\tSystem.out.println(root.toString());\n\n\t\t}\n\t}", "public void postOrder(Node root) {\n if (root != null) {\n postOrder(root.getLeftChild());\n postOrder(root.getRightChild());\n System.out.print(root.getData() + \" \");\n }\n }", "private ArrayList<String> postOrder()\n\t{\n\t\tArrayList<String> rlist = new ArrayList<String>();\n\t\tpostOrder(this,rlist);\n\t\treturn rlist;\n\t}", "public static void main(String[] args) {\n TreeNode one = new TreeNode(1);\n TreeNode three = new TreeNode(3);\n three.right = one;\n TreeNode two = new TreeNode(2);\n two.right = three;\n new BinaryTreePostorderTraversal_145().postorderTraversal(two);\n }", "public void postOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tpostOrderTraversal(root.getLeftChild());\n\t\t\tpostOrderTraversal(root.getRightChild());\n\t\t\tSystem.out.println(root);\n\t\t}\n\t}", "public void postOrderTravel(Node node) {\n\t\tif(node != null) {\r\n\t\t\tpostOrderTravel(node.leftChild);\r\n\t\t\tpostOrderTravel(node.rightChild);\r\n\t\t\tSystem.out.println(node);\r\n\t\t}\r\n\t}", "public static void postOrder(Node node) {\n if (node == null) {\n return;\n }\n postOrder(node.left);\n postOrder(node.right);\n System.out.print(node.data + \" \");\n }", "void postorder(Node root){\n if(root!=null){\n postorder(root.left);\n postorder(root.right);\n System.out.print(root.data+\" \");\n }\n\n }", "private void postOrdertraverse(Node root){\n for(var child : root.getChildren())\n postOrdertraverse(child); //recursively travels other childrens in current child\n\n //finally visit root\n System.out.println(root.value);\n\n }", "public void decrementOrder() {\n mOrder--;\n }", "public void postOrder(Node localRoot)\r\n\t{\r\n\t\tif(localRoot != null)\r\n\t\t{\r\n\t\t\tpostOrder(localRoot.leftChild);\r\n\t\t\tpostOrder(localRoot.rightChild);\r\n\t\t\tSystem.out.print(localRoot.data+ \" \");\r\n\t\t}\r\n\t}", "@Override\n\tpublic void preorder() {\n\n\t}", "public static void postOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\n\t\tpostOrder(node.left);\n\t\tpostOrder(node.right);\n\t\tSystem.out.print(node.value + \" \");\t\n\t}", "public void postOrderDepthFirstTraversal(NodeVisitor action){\n\t\tif(this.getElement()==null)\n\t\t\treturn;\n\t\t\n\t\tthis.left.postOrderDepthFirstTraversal(action);\n\t\tthis.right.postOrderDepthFirstTraversal(action);\n\t\taction.visit(this.getElement());\t\t\t\n\t}", "public void printIterativePostOrderTraversal() {\r\n\t\tprintIterativePostOrderTraversal(rootNode);\r\n\t}", "public void postOrder(Node root) {\n if(root!=null) {\n postOrder(root.left);\n postOrder(root.right);\n System.out.print(root.data + \" \");\n }\n }", "private void postOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n postOrderTraversalRec(root.getLeft());\n postOrderTraversalRec(root.getRight());\n System.out.print(root.getData() + \" \");\n }", "public List<T> postOrder(Node root, List<T> nodeValue) {\n if(root == null) {\n return nodeValue;\n } else {\n postOrder(root.getLeftChildNode(), nodeValue);\n postOrder(root.getRightChildNode(), nodeValue);\n nodeValue.add((T)root.getData());\n }\n return nodeValue;\n }", "public QueueADT<QuadNode> postOrder(QuadNode node,QueueADT<QuadNode> queue){\n\t\tif(node==null) { return queue;}\n\t\telse\n\t\t{\n\t\t\tqueue=postOrder(node.getNorthEast(),queue);\n\t\t\tqueue=postOrder(node.getNorthWest(),queue);\n\t\t\tqueue=postOrder(node.getSouthEast(),queue);\n\t\t\tqueue=postOrder(node.getSouthWest(),queue);\n\t\t\tif(isLeaf(node)) { queue.enqueue(node); return queue;}\n\t\t\treturn queue;\n\t\t}\n\t}", "public List<Integer> postOrder(TreeNode root) {\n\n List<Integer> ans = new ArrayList<>();\n\n if(root==null){\n return ans;\n }\n\n Deque<TreeNode> stack = new LinkedList<>();\n stack.push(root);\n TreeNode pre = new TreeNode(0);\n\n while(!stack.isEmpty()) {\n\n if (stack.peek().left != null && stack.peek().left != pre && stack.peek().right != pre) {\n stack.push(stack.peek().left);\n continue;\n }\n\n if (stack.peek().right != null && stack.peek().right != pre) {\n stack.push(stack.peek().right);\n continue;\n }\n pre = stack.poll();\n ans.add(pre.key);\n }\n\n return ans;\n\n }", "public void postOrder(MyBinNode<Type> r){\n if(r != null){\n this.postOrder(r.right);\n this.postOrder(r.left);\n System.out.print(r.value.toString() + \" \");\n }\n }", "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}", "@Override\n\tpublic void inorder() {\n\n\t}", "static void postOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n postOrderTraversal(root.left);\n postOrderTraversal(root.right);\n System.out.print(root.data + \" \");\n }", "public static void postOrderTraverse2(TreeNode head){\n if(head == null) return;\n Stack<TreeNode> stack = new Stack<>();\n stack.push(head);\n TreeNode node;\n while (!stack.isEmpty()){\n while (( node = stack.peek()) != null){\n if(node.lChild != null && node.lChild.visited == true){\n stack.push(null);\n break;\n }\n stack.push(node.lChild);\n }\n stack.pop(); //空指针出栈\n if(!stack.isEmpty()){\n node = stack.peek();\n if(node.rChild == null || node.rChild.visited == true){\n System.out.print(node.val + \" \");\n node.visited = true;\n stack.pop();\n }else {\n stack.push(node.rChild);\n }\n }\n }\n }", "static void postOrderIterative(BinaryTreeNode root)\n {\n // Create two stacks\n Stack<BinaryTreeNode> s1 = new Stack<BinaryTreeNode>();\n Stack<BinaryTreeNode> s2 = new Stack<BinaryTreeNode>();\n\n // push root to first stack\n s1.push(root);\n BinaryTreeNode node;\n\n // Run while first stack is not empty\n while(!s1.isEmpty()){\n // Pop an item from s1 and push it to s2\n node = s1.pop();\n s2.push(node);\n\n // Push left and right children of removed item to s1\n if(node.getLeft()!=null){\n s1.push(node.getLeft());\n }\n if(node.getRight() != null){\n s1.push(node.getRight());\n }\n }\n\n\n // Print all elements of second stack\n while (!s2.isEmpty()) {\n node = s2.pop();\n System.out.print(node.getData() + \"->\");\n }\n }", "public String postorder() {\n \tresult = \"\";\n \ttraversal(root);\n return result;\n }", "public void postOrder2(BinaryTreeNode root) {\n\t\tBinaryTreeNode cur = root;\n\t\tBinaryTreeNode pre = root;\n\t\tStack<BinaryTreeNode> s = new Stack<BinaryTreeNode>();\n\n\t\tif (root != null)\n\t\t\ts.push(root);\n\n\t\twhile (!s.isEmpty()) {\n\t\t\tcur = s.peek();\n\t\t\t// traversing down the tree\n\t\t\tif (cur == pre || cur == pre.getLeft() || cur == pre.getRight()) {\n\t\t\t\tif (cur.getLeft() != null) {\n\t\t\t\t\ts.push(cur.getLeft());\n\t\t\t\t} else if (cur.getRight() != null) {\n\t\t\t\t\ts.push(cur.getRight());\n\t\t\t\t}\n\t\t\t\tif (cur.getLeft() == null && cur.getRight() == null) {\n\t\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// traversing up the tree from the left\n\t\t\telse if (pre == cur.getLeft()) {\n\t\t\t\tif (cur.getRight() != null) {\n\t\t\t\t\ts.push(cur.getRight());\n\t\t\t\t} else if (cur.getRight() == null) {\n\t\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\t// we are traversing up the tree from the right\n\t\t\telse if (pre == cur.getRight()) {\n\t\t\t\tSystem.out.print(s.pop().getData() + \" \");\n\t\t\t}\n\t\t\tpre = cur;\n\t\t}\n\t}", "@Override\n\tpublic void postProcess(NodeCT node) {\n\t}", "public void traversePostOrder(Node node) {\n\t\tif (node != null) {\n\t\t\ttraversePostOrder(node.left);\n\t\t\ttraversePostOrder(node.right);\n\t\t\tSystem.out.print(\" \" + node.value);\n\t\t}\n\t}", "private void postorderHelper(TreeNode<T> node){\n\n if (node == null)\n return;\n\n postorderHelper(node.leftNode);\n postorderHelper(node.rightNode);\n System.out.printf(\"%s \", node.data);\n }", "private void postorder(String[] content, Node current)\r\n\t{\r\n\t\tif(current != null)\r\n\t\t{\r\n\t\t\t// Left recursive traversal\r\n\t\t\tpostorder(content, current.getLeftChild());\r\n\t\t\t// Right recursive traversal\r\n\t\t\tpostorder(content, current.getRightChild());\r\n\t\t\t\r\n\t\t\t// Write the name of the current Node into the String array\r\n\t\t\tcontent[getArrayCounter()] = current.getName();\r\n\t\t\tincrementArrayCounter();\r\n\t\t}\r\n\t}", "void postProcess();", "void postProcess();", "public static void postOrder(Node root) {\n if (root == null)\n return;\n postOrder(root.left);\n postOrder(root.right);\n System.out.print(root.data + \" \");\n }", "public static List<Node> postOrderTraversal(BinarySearchTree BST) {\n postorder = new LinkedList<Node>();\n postOrderTraversal(BST.getRoot());\n return postorder;\n }", "public void post() {\n//\t\tif(!supercachequery){\n//\t\t\thandlePostReset();\n//\t\t}\n//\t\tsupercachequery = false;\n\t}", "private void postOrderTraverse(Node<String> node,StringBuilder sb) {\n\n\t\t\t\tif (node != null) {\t\n\t\t\t\t\tpostOrderTraverse(node.left, sb);\n\t\t\t\t\tpostOrderTraverse(node.right,sb);\n\t\t\t\t\tsb.append(node.toString());\n\t\t\t\t\tsb.append(\" \");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "@Override\r\n\tpublic Iterator<T> iteratorPostOrder() {\r\n\t\tLinkedList<T> list = new LinkedList<T>();\r\n\t\tthis.traversePostOrder(this.root, list);\r\n\t\treturn list.iterator();\r\n\t}", "private boolean postops() {\r\n return OPT(GO() && postop() && postops());\r\n }", "private TreeNode helper(int[] inorder, int[] inIdx, int[] postorder, int[] postIdx, TreeNode finish) {\n if (postIdx[0] < 0 || (finish != null && inorder[inIdx[0]] == finish.val)) {\n return null;\n }\n\n TreeNode root = new TreeNode(postorder[postIdx[0]--]);\n\n root.right = helper(inorder, inIdx, postorder, postIdx, root);\n\n inIdx[0]--;\n\n root.left = helper(inorder, inIdx, postorder, postIdx, finish);\n\n return root;\n }", "public static void main(String[] args) {\n\n TreeNode<Integer> node = new TreeNode<>(7);\n node.left = new TreeNode<>(2);\n node.left.left = new TreeNode<>(1);\n node.left.right = new TreeNode<>(3);\n node.right = new TreeNode<>(5);\n node.right.left = new TreeNode<>(4);\n node.right.right = new TreeNode<>(8);\n node.right.left.left = new TreeNode<>(0);\n\n List<TreeNode<Integer>> list = TreeNode.linearize_postOrder_1(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n list = TreeNode.linearize_postOrder_2(node);\n for (TreeNode<Integer> n : list) {\n System.out.printf(\"%d, \", n.value);\n }\n System.out.printf(\"\\n\");\n\n Map<Integer, Deque<Integer>> adjacencyList = new HashMap<>();\n Deque<Integer> children = new ArrayDeque<>();\n children.add(2); children.add(5);\n adjacencyList.put(7, children);\n children = new ArrayDeque<>();\n children.add(1); children.add(3);\n adjacencyList.put(2, children);\n children = new ArrayDeque<>();\n children.add(4); children.add(8);\n adjacencyList.put(5, children);\n //adjacencyList.put(1, new ArrayDeque<>());\n //adjacencyList.put(3, new ArrayDeque<>());\n children = new ArrayDeque<>();\n children.add(0);\n adjacencyList.put(4, children);\n //adjacencyList.put(0, new ArrayDeque<>());\n //adjacencyList.put(8, new ArrayDeque<>());\n GraphUtils.postOrderTraverse(adjacencyList, new Consumer<Integer>() {\n @Override\n public void accept(Integer integer) {\n System.out.printf(\"%d, \", integer);\n }\n });\n System.out.printf(\"\\n\");\n }", "public void preOrder() {\n preOrder(root);\n }", "public static ArrayList<String> postOrder(Node treeRoot) {\r\n\t\tArrayList<String> traversal = new ArrayList<String>(0);\r\n\t\t\r\n\t\tif (treeRoot == null) {\r\n\t\t\treturn new ArrayList<String>(0);\r\n\t\t}\r\n\t\t\r\n\t\ttraversal.addAll(postOrder(treeRoot.left));\r\n\t\ttraversal.addAll(postOrder(treeRoot.right));\r\n\t\ttraversal.add(treeRoot.root);\r\n\t\t\r\n\t\treturn traversal;\r\n\t}", "static void postOrderTwoStacks(Node root) {\n Stack<Node> stack = new Stack<>();\n Stack<Node> stack2 = new Stack<>();\n if (root == null) {\n return;\n } else {\n stack.push(root);\n while (!stack.isEmpty()) {\n Node temp = stack.pop();\n stack2.push(temp);\n if (temp.left != null) {\n stack.push(temp.left);\n }\n if (temp.right != null) {\n stack.push(temp.right);\n }\n }\n while (!stack2.isEmpty()) {\n Node temp = stack2.pop();\n System.out.print(temp.data + \" \");\n }\n }\n }", "@Override\n public Iterator<E> getPostorderIterator() {\n return new PostorderIterator();\n }", "public static void main(String args[]){\n BinaryTreeNode root = new BinaryTreeNode();\n root.setData(1);\n\n BinaryTreeNode left = new BinaryTreeNode();\n left.setData(2);\n\n BinaryTreeNode right = new BinaryTreeNode();\n right.setData(3);\n\n BinaryTreeNode leftleft = new BinaryTreeNode();\n leftleft.setData(4);\n\n BinaryTreeNode leftright = new BinaryTreeNode();\n leftright.setData(5);\n\n root.setLeft(left);\n root.setRight(right);\n left.setLeft(leftleft);\n left.setRight(leftright);\n\n\n postOrderIterative(root);\n\n }", "public void traversePreOrder() {\n\t\tpreOrder(this);\n\t}", "public void postTrav(ObjectTreeNode tree) {\n if (tree != null) {\n postTrav(tree.getLeft());\n postTrav(tree.getRight());\n ((TreeComparable)tree.getInfo()).visit();\n }\n }", "public void postOrderPrint() {\n\t\tpostOrderPrint(root);\n\t\tSystem.out.println();\n\t}", "public List<Integer> postorderTraversal(TreeNode root) {\n List<Integer> traversal = new ArrayList<>();\n\n visit(root, traversal);\n\n return traversal;\n }", "private void treePostOrderTraversal(Node currNode) {\n int numChildren = getNumChildren();\n\n // Returns if currNode is null.\n if (currNode == null) return;\n\n // Adds this Node to the stack.\n queueStackAddAnimation(currNode, \"Exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Explores left subtree.\n for (int i = 0; i < numChildren / 2; ++i)\n treePostOrderTraversal(currNode.children[i]);\n\n // Explores right subtree.\n for (int i = numChildren / 2; i < numChildren; ++i)\n treePostOrderTraversal(currNode.children[i]);\n\n // Highlights the current Node.\n queueNodeSelectAnimation(currNode, \"Current Node \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n // Removes this Node from the stack.\n queueListPopAnimation(\"Finished exploring \" + currNode.key,\n AnimationParameters.ANIM_TIME);\n\n }", "public TreeNode reconstruct(int[] inOrder, int[] postOrder) {\n if(inOrder == null || postOrder == null) {\n return null;\n }\n Map<Integer,Integer> postionInOrder = new HashMap<Integer, Integer>();\n for (int i = 0; i < inOrder.length; i++){\n postionInOrder.put(inOrder[i], i);\n }\n return reconstruct(inOrder, postOrder, postionInOrder, 0, inOrder.length - 1, 0, inOrder.length - 1);\n }", "public void PreOrder() {\n\t\tPreOrder(root);\n\t}" ]
[ "0.8049212", "0.78907126", "0.77809674", "0.7757606", "0.7757606", "0.77253515", "0.76755375", "0.7594107", "0.74808383", "0.72450143", "0.71312946", "0.7029075", "0.700318", "0.69766515", "0.69558495", "0.694014", "0.68870085", "0.6877325", "0.6789278", "0.6751034", "0.6748206", "0.66683316", "0.66585225", "0.6647356", "0.65977967", "0.65737665", "0.6556385", "0.65209424", "0.646652", "0.6452387", "0.64483917", "0.64209837", "0.64185923", "0.64068955", "0.64061135", "0.6398137", "0.6393656", "0.6387358", "0.63850385", "0.6366341", "0.63594913", "0.63515073", "0.6350754", "0.6278851", "0.6261114", "0.6260537", "0.6255695", "0.62437713", "0.6243532", "0.6241858", "0.6209898", "0.6203045", "0.61584234", "0.6154065", "0.6136531", "0.6110088", "0.6099768", "0.6094599", "0.6093849", "0.6092361", "0.6087161", "0.60788345", "0.6074361", "0.6062746", "0.60493374", "0.6028327", "0.6024628", "0.6024449", "0.6008953", "0.6001081", "0.5988695", "0.5983952", "0.5972233", "0.5971229", "0.59640557", "0.59625256", "0.59570634", "0.5936205", "0.5929504", "0.5909438", "0.5909438", "0.58911484", "0.5880992", "0.5856137", "0.5842913", "0.579708", "0.5770003", "0.5758364", "0.5738758", "0.5737127", "0.57028395", "0.5687902", "0.5686886", "0.56660575", "0.5650545", "0.5619291", "0.5613144", "0.56069124", "0.56048506", "0.55919665", "0.5580659" ]
0.0
-1
preOrder without recursive solution.
public ArrayList<Integer> preorderTraversal(TreeNode root) { ArrayList<Integer> list = new ArrayList<>(); Stack<TreeNode> stack = new Stack<>(); if (root == null) return list; stack.push(root); list.add(root.val); while (!stack.empty()) { TreeNode current = stack.peek(); if (current.left == null && current.right == null) { stack.pop(); } if (current.left != null) { stack.push(current.left); list.add(current.left.val); current.left = null; } else if (current.right != null) { stack.push(current.right); list.add(current.right.val); current.right = null; } } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void traversePreOrder() {\n\t\tpreOrder(this);\n\t}", "public void preOrder() {\n preOrder(root);\n }", "public void preorder()\n {\n preorder(root);\n }", "public void preorder()\n {\n preorder(root);\n }", "public void preorder()\r\n {\r\n preorder(root);\r\n }", "public void preorder() {\n\t\tpreorder(root);\n\t}", "@Override\n\tpublic void preorder() {\n\n\t}", "public void PreOrder() {\n\t\tPreOrder(root);\n\t}", "public void preOrder() {\r\n\t\tSystem.out.print(\"PRE: \");\r\n\r\n\t\tpreOrder(root);\r\n\t\tSystem.out.println();\r\n\r\n\t}", "public void preorder() {\n root.preorder();\n System.out.println(\"\");\n }", "public void preOrder(){\n preOrder(root);\n System.out.println();\n }", "@Override\r\n\tpublic List<Node<T>> getPreOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// La lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPre(raiz, lista);\r\n\t}", "private E[] getPreOrderLeftSubTree(E[] inOrderTraversal,E[] preOrderTraversal) {\n\t\treturn null;\n\t}", "public void preOrderTraversal() {\n beginAnimation();\n treePreOrderTraversal(root);\n stopAnimation();\n\n }", "public void preOrderTraversal(){\n System.out.println(\"preOrderTraversal\");\n\n Stack<Node> stack = new ArrayStack();\n\n if(root!=null){\n stack.push(root);\n }\n while(!stack.isEmpty()) {\n Node node = stack.pop();\n System.out.print(node.getData() + \" \");\n\n if (node.getRight() != null) {\n stack.push(node.getRight());\n }\n if (node.getLeft() != null) {\n stack.push(node.getLeft());\n }\n }\n System.out.println();\n }", "private List<T> preOrderHelper(Node<T> current, List<T> result) {\n\t\tif (current != null) {\n\t\t\tresult.add(current.getData());\n\t\t\tresult = preOrderHelper(current.getLeft(), result);\n\t\t\tresult = preOrderHelper(current.getRight(), result);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void preOrderTraversal() {\n preOrderThroughRoot(root);\n System.out.println();\n }", "@Test\n\tvoid tesPreorder() {\n\t\tHeap<Integer, Integer> treap = createTreeHeap();\n\t\t//root, left, right\n\t\tassertEquals(\"[5, 4, 2, 1, 3]\", treap.preOrder());\n\t}", "public myList<T> my_preorder();", "public void preOrder(BinarySearchTreeNode<T> node)\r\n {\r\n if(node==null)\r\n {\r\n return;\r\n }\r\n System.out.println(node.getElement());\r\n preOrder(node.getLeft());\r\n preOrder(node.getRight());\r\n }", "public void preOrder (Node root)\n\t{\n\t \n\t if(root == null)\n\t {\n\t\t return;\n\t }\n\t \n\t addValToPreorder(root);\n\t \n\t //get all of the left nodes\n\t preOrder(root.leftNode());\n\t //get all of the right nodes\n\t preOrder(root.rightNode()); \n\t \n\t}", "public static void preorder(Node root){\n\t\tif(root != null){\n\t\t\tSystem.out.println(root.toString());\n\t\t\tinorder(root.getLeft());\n\t\t\tinorder(root.getRight());\n\t\t}\n\t}", "private void preOrder(int node, int[] parents) {\n currTour.add(node + 1);\n Queue<Integer> children = findChildren(node, parents);\n while(!children.isEmpty()) {\n preOrder(children.remove(), parents);\n }\n }", "public void preOrder(TreeNode root){\n\t\t//Change place of temp\n\t\tSystem.out.println(root.toString());\n\t\tif(root.getLeft()!= null){\n\t\t\tpreOrder(root.getLeft());\n\t\t}\n\t\tif(root.getMiddle()!=null){\n\t\t\tpreOrder(root.getMiddle());\n\t\t}\n\t\tif(root.getRight()!= null){\n\t\t\tpreOrder(root.getRight());\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}", "static void preOrderWithoutRecursion(Node root) {\n Stack<Node> stack = new Stack<>();\n stack.push(root);\n while (!stack.isEmpty()) {\n Node node = stack.peek();\n System.out.print(node.data + \" \");\n stack.pop();\n\n if (node.right != null) {\n stack.push(node.right);\n }\n if (node.left != null) {\n stack.push(node.left);\n }\n }\n }", "public void preorderTraverse(){\n\t\tpreorderHelper(root);\n\t\tSystem.out.println();\n\t}", "public static void preOrder(Node n) {\n\t\tif (n == null)\n\t\t\treturn;\n\t\tSystem.out.println(n.getData());\n\t\tpreOrder(n.getLeft());\n\t\tpreOrder(n.getRight());\n\t}", "void preOrder(Node node) \n { \n if (node != null) \n { \n System.out.print(node.key + \" \"); \n preOrder(node.left); \n preOrder(node.right); \n } \n }", "private void preOrder(Node root) {\r\n\r\n\t\tif (root == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (preOrderCount < 20) {\r\n\r\n\t\t\tSystem.out.print(\"< \" + root.getData() + \" > \");\r\n\t\t\t//System.out.println(\" Count: \" + preOrderCount);\r\n\t\t\tpreOrderCount++;\r\n\t\t\tpreOrder(root.getlChild());\r\n\t\t\tpreOrder(root.getrChild());\r\n\t\t}\r\n\r\n\t}", "List<Integer> traversePreOrder(List<Integer> oList) \n\t{\t\t\n\t\toList.add(this.key);\n\t\t\n\t\tif(this.left != null)\n\t\t{\n\t\t\tthis.left.traversePreOrder(oList);\n\t\t}\n\t\t\n\t\tif(this.right != null)\n\t\t{\n\t\t\tthis.right.traversePreOrder(oList);\n\t\t}\n\t\t\n\t\treturn oList;\t\t\n\t}", "private void preOrder(HomogeneusNode root) {\n\n if (root != null) {\n System.out.printf(\"%d\", root.getData());\n preOrder(root.getLeft());\n preOrder(root.getRight());\n }\n }", "private void preorderHelper(ArrayList<T> list, BSTNode<T> current) {\n // look at data, left, right\n if (current.getLeft() != null) {\n list.add(current.getLeft().getData());\n preorderHelper(list, current.getLeft());\n }\n if (current.getRight() != null) {\n list.add(current.getRight().getData());\n preorderHelper(list, current.getRight());\n }\n }", "private E[] getInOrderLeftSubTree(E[] inOrderTraversal,\n\t\t\tE[] preOrderTraversal) {\n\t\treturn null;\n\t}", "public List<T> preorder() {\n ArrayList<T> list = new ArrayList<T>();\n if (root != null) {\n list.add(root.getData());\n preorderHelper(list, root);\n }\n return list;\n }", "private static void preOrder(Node root) {\n\t\tif (root == null)\n\t\t\treturn;\n\t\tSystem.out.print(root.data + \" \");\n\t\tpreOrder(root.left);\n\t\tpreOrder(root.right);\n\t}", "private static boolean preOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the current node, then the left child, then finally the right child\n else {\n preorder.add(current);\n preOrderTraversal(current.getLeftChild());\n preOrderTraversal(current.getRightChild());\n }\n return true;\n }", "private void preOrder(Node node) {\n\t\tif(null == node) return;\n\t\t\n\t\t//Print node\n\t\tSystem.out.println(node.data);\n\t\t\n\t\t//Go to left child node\n\t\tpreOrder(node.left);\n\t\t\n\t\t//Go to right child node\n\t\tpreOrder(node.right);\n\t}", "private void preorderHelper(Node<E> root){\n\t\tif(root != null){\n\t\t\tSystem.out.print(root.item.toString() + \" \");\n\t\t\tpreorderHelper(root.left);\n\t\t\tpreorderHelper(root.right);\n\t\t}\n\t}", "public void visitPreorder(Visitor<T> visitor) { if (root != null) root.visitPreorder(visitor); }", "protected void preorder(TreeNode<E> root) {\n if (root == null) {\n return;\n }\n System.out.print(root.element + \" \");\n preorder(root.left);\n preorder(root.right);\n }", "protected void preorder(TreeNode<E> root) {\r\n\t\tif (root == null)\r\n\t\t\treturn;\r\n\t\tSystem.out.print(root.element + \" \");\r\n\t\tpreorder(root.left);\r\n\t\tpreorder(root.right);\r\n\t}", "public void preOrder(Visitor v) {\r\n\t\tpreOrder(root, v);\r\n\t}", "public static List<Node> preOrderTraversal(BinarySearchTree BST) {\n preorder = new LinkedList<Node>();\n preOrderTraversal(BST.getRoot());\n return preorder;\n }", "public void preorderTraversal() \n { \n preorderTraversal(header.rightChild); \n }", "void preOrderOperation(PortfolioNode portfolioNode);", "public void printPreorder() {\n System.out.print(\"preorder:\");\n printPreorder(overallRoot);\n System.out.println();\n }", "public static void preOrder(Node node) {\n if (node == null) {\n return;\n }\n System.out.print(node.data + \" \");\n preOrder(node.left);\n preOrder(node.right);\n }", "public void preOrderTraversal(TreeNode<T> root) {\n\t\tif (null == root) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tSystem.out.println(root);\n\t\t\tpreOrderTraversal(root.getLeftChild());\n\t\t\tpreOrderTraversal(root.getRightChild());\n\t\t}\n\t}", "private void preOrder(BSTNode<K,V> node, List<Entry<K,V>> list) throws NullPointerException {\n\t\tif (root == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\tif (root != null) {\n\t\t\tlist.add(new Entry<K,V>(node.key, node.value));\n\t\t\t\n\t\t\tif (node.left != null) {\n\t\t\t\tpreOrder(node.left, list);\n\t\t\t}\n\t\t\t\n\t\t\tif (node.right != null) {\n\t\t\t\tpreOrder(node.right, list);\n\t\t\t}\n\t\t}\n\t}", "private <E> void preOrder(Node root,Action<Integer,E> action) {\n\t\tif(root==null)\n\t\t\treturn;\n\t\t\n\t\t//System.out.println(root.value);\n\t\taction.execute(root.value);\n\n\t\tpreOrder(root.left,action);\n\t\t\n\t\tpreOrder(root.right,action);\n\t\t\n\t}", "void preorder(Node root){\n if(root!=null){\n System.out.print(root.data+\" \");\n preorder(root.left);\n preorder(root.right);\n }\n\n }", "public void preOrder(Node root) {\n if (root != null) {\n System.out.print(root.getData() + \" \");\n preOrder(root.getLeftChild());\n preOrder(root.getRightChild());\n }\n }", "public static void preOrder(Node root) {\n if (root == null)\n return;\n System.out.print(root.data + \" \");\n preOrder(root.left);\n preOrder(root.right);\n\n }", "public static void main(String[] args) {\n TreeNode root = new TreeNode(3);\n root.left = new TreeNode(9);\n root.right = new TreeNode(20);\n root.right.left = new TreeNode(15);\n root.right.right = new TreeNode(7);\n System.out.println(new Solution().preorderTraversal(null));\n }", "public static void preorderBinaryTree(BinaryTreeNode t) {\n p = t;\r\n top = -1;\r\n i = 0;\r\n\r\n while (p != null || top != -1) {\r\n if (p != null) {\r\n visitBinTreeNode(p);\r\n\r\n s[++top] = p; //push(p,s)\r\n if (p.getLeftTree() != null) {\r\n p = p.getLeftTree();\r\n } else {\r\n System.out.print(\")\");\r\n i++;\r\n p = p.getRightTree();\r\n }\r\n } else {\r\n do {\r\n q = s[top];\r\n top--;\r\n if (top != -1) {//is s is not empty\r\n BinaryTreeNode newTop = s[top];\r\n rtptr = newTop.getRightTree();\r\n } else {\r\n rtptr = null;\r\n }\r\n } while (top != -1 && q == rtptr);\r\n\r\n p = rtptr;\r\n\r\n if (i < n) {\r\n i++;\r\n System.out.print(\")\");\r\n }\r\n }\r\n }\r\n }", "public void preorder(Node node){\n\t\tif(node == nil){\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\" ID: \" + node.id + \" Colour: \" + node.colour + \" Count: \" + node.count);\n\t\tpreorder(node.left);\n\t\tpreorder(node.right);\n\t}", "private void preOrdertraverse(Node root){\n System.out.println(root.value);\n for(var child : root.getChildren())\n preOrdertraverse(child); //recursively travels other childrens in current child\n }", "void preOrderTraversal(OO8BinaryTreeNode node) {\n\t\tif(node==null)\n\t\t\treturn;\n\t\tSystem.out.print(node.getValue() + \" \");\n\t\tpreOrderTraversal(node.getLeftNode());\n\t\tpreOrderTraversal(node.getRightNode());\n\t}", "protected void preorder(node root){\n if(root == null)\n return;\n\n System.out.print(root.data + \" \");\n preorder(root.left);\n preorder(root.right);\n }", "public void preOrder(Node root) {\n if(root!=null) {\n System.out.print(root.data + \" \");\n preOrder(root.left);\n preOrder(root.right);\n }\n }", "static void preOrderTraversal(Node root) {\n if (root == null) {\n return;\n }\n System.out.print(root.data + \" \");\n preOrderTraversal(root.left);\n preOrderTraversal(root.right);\n }", "void preOrder(Node Node) {\n if (Node != null) {\n System.out.print(Node.key + \" \");\n preOrder(Node.left);\n preOrder(Node.right);\n }\n }", "public void preOrder(Node localRoot)\r\n\t{\r\n\t\tif(localRoot != null)\r\n\t\t{\r\n\t\t\tSystem.out.print(localRoot.data+\" \");\r\n\t\t\tpreOrder(localRoot.leftChild);\r\n\t\t\tpreOrder(localRoot.rightChild);\r\n\t\t}\r\n\t}", "public void preTraverse() {\n // ensure not an empty tree\n while (root != null) {\n \n }\n }", "void preOrderOperation(PortfolioNode parentNode, Position position);", "private String traversePreOrder(BinaryNode<T> root) {\n preOrderTrav += root.getData() + \" -> \";\n if (root.getLeftNode() != null) { // traverse left\n traversePreOrder(root.getLeftNode());\n }\n if (root.getRightNode() != null) { // traverse right\n traversePreOrder(root.getRightNode());\n }\n return preOrderTrav;\n }", "private void preOrderTraversal(StringBuilder sb) {\n sb.append(data + \" \");\n\n if (left != null) {\n left.preOrderTraversal(sb);\n }\n\n if (right != null) {\n right.preOrderTraversal(sb);\n }\n }", "@Override\n public Iterator<E> getPreorderIterator() {\n return new PreorderIterator();\n }", "public static void preOrder(TreeNode node) {\n if (node == null) {\n return;\n }\n System.out.print(node.data + \" \");\n preOrder(node.left);\n preOrder(node.right);\n }", "@Override\n\tpublic void inorder() {\n\n\t}", "public void visitPreorder(Visitor<T> visitor) {\n visitor.visit(value);\n if (left != null) left.visitPreorder(visitor);\n if (right != null) right.visitPreorder(visitor);\n }", "public void preorder(TreeNode root) {\n\n\t\tTreeNode current = root;\n\n\t\twhile (current != null) {\n\n\t\t\t// no elements on the left that are less than the current; add it to result.\n\t\t\tif (current.left == null) {\n\t\t\t\tcurrent = current.right;\n\t\t\t}\n\n\t\t\t// start processing the left subtree.\n\t\t\telse {\n\n\t\t\t\tTreeNode predecessor = current.left;\n\n\t\t\t\t// find rightmost value of current's left subtree.\n\t\t\t\twhile (predecessor.right != null && predecessor.right != current.right) {\n\t\t\t\t\tpredecessor = predecessor.right;\n\t\t\t\t}\n\n\t\t\t\t// if no thread between current and its predecessor, add it and add current\n\t\t\t\t// val to the result.\n\t\t\t\tif (predecessor.right == null) {\n\t\t\t\t\tpredecessor.right = current.right;\n\t\t\t\t\tcurrent.right = current.left;\n\t\t\t\t\tcurrent.left = null;\n\t\t\t\t\tcurrent = current.right;\n\t\t\t\t}\n\t\t\t\t// current's left subtree has been processed; remove the thread.\n\t\t\t\telse {\n\t\t\t\t\tcurrent = current.right;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "private void preorderSubtree(Position<E> p, List<Position<E>> snapshot) {\n snapshot.add(p);\n for (Position<E> c : children(p)) {\n preorderSubtree(c, snapshot); \n \n }\n }", "public static void preOrder(TreeNode node) {\n\t\tif(node == null) return;\n\t\t\n\t\tSystem.out.print(node.value + \" \");\n\t\tpreOrder(node.left);\n\t\tpreOrder(node.right);\t\n\t}", "ArrayList<Integer> preOrder(Node root)\n {\n // Code\n ArrayList<Integer> result = new ArrayList<Integer>();\n\n if (root == null) {\n return null;\n }\n Stack<Node> stack = new Stack<Node>();\n stack.push(root);\n // Node newNode = root;\n\n while (stack.empty() == false) {\n Node mynode = stack.peek();\n result.add(mynode.data);\n //System.out.print(mynode.data + \" \");\n stack.pop();\n\n if (mynode.right != null) {\n stack.push(mynode.right);\n }\n if(mynode.left != null){\n stack.push(mynode.left);\n }\n\n }\n return result;\n }", "private static <N> void preOrderTraversal(TreeNode<N> node, TreeNodeVisitor<N> visitor) throws TreeNodeVisitException {\r\n\t\t\r\n\t\tvisitor.visitNode(node);\r\n\t\r\n\t\tif(node.hasChildren()){\r\n\t\t\tfor(TreeNode<N> childNode : node.getChildren()){\r\n\t\t\t\tpreOrderTraversal(childNode, visitor);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void inorder()\n {\n inorderRec(root);\n }", "private static BinaryTreeNode<String> reconstructPreorderSubtree(\n List<String> inOrder,boolean left) {\n String subtreeKey=null;\n if(left && leftsubtreeldx>0) {\n subtreeKey = inOrder.get(leftsubtreeldx);\n --leftsubtreeldx;\n }\n if(!left && rightsubtreeldx<inOrder.size()){\n subtreeKey = inOrder.get(rightsubtreeldx);\n rightsubtreeldx++;\n }\n if (subtreeKey == null) {\n return null;\n }\n\n BinaryTreeNode<String> leftSubtree = reconstructPreorderSubtree(inOrder,true);\n BinaryTreeNode<String> rightSubtree = reconstructPreorderSubtree(inOrder,false);\n BinaryTreeNode bn=new BinaryTreeNode(subtreeKey, leftSubtree, rightSubtree);\n return bn;\n }", "private void inorder() {\n inorder(root);\n }", "public static void preorderTraversal(Node root)\r\n {\r\n if (root == null) {\r\n return;\r\n }\r\n \r\n System.out.print(root.data + \" \");\r\n preorderTraversal(root.left);\r\n preorderTraversal(root.right);\r\n }", "public String getPreorder(Node root)\n\t{\n\t\tpreOrder(root);\n\t\t//return the string\n\t\treturn preorder;\n\t}", "public Iterator<T> preorderIterator() { return new PreorderIterator(root); }", "public List<Integer> preorderTraversal(TreeNode root) {\n ArrayList<Integer> returnList = new ArrayList<Integer>();\n LinkedList<TreeNode> stack = new LinkedList<TreeNode>();\n \n while(root !=null || !stack.isEmpty()){\n if(root != null){\n stack.push(root);\n returnList.add(root.val);\n root = root.left;\n }else{\n root = stack.pop();\n root = root.right;\n }\n }\n return returnList;\n }", "public List<Integer> preorderTraversalRecursive(TreeNode root) {\n if(root == null){\n return rst;\n }\n\n rst.add(root.val);\n preorderTraversalRecursive(root.left);\n preorderTraversalRecursive(root.right);\n return rst;\n }", "private void traversePreOrder(BinaryNode<AnyType> curr, int indent) {\n\t\tfor(int i = 0; i < indent; i++) {\n\t\t\tSystem.out.print(\"\\t\");\n\t\t}\n\t\tSystem.out.println(curr.element);\n\t\tfor (int i = 0; i < curr.duplicate.size(); i++) {\n\t\t\tSystem.out.println(curr.duplicate.get(i).element);\n\t\t}\n\t\tif (curr.left != null) {\n\t\t\ttraversePreOrder(curr.left, indent + 1);\n\t\t}\n\n\t\tif (curr.right != null) {\n\t\t\ttraversePreOrder(curr.right, indent + 1);\n\t\t}\n\t}", "static ArrayList<Integer> preorder(Node root)\n {\n ArrayList<Integer> output_arr=new ArrayList<>();\n if(root==null){\n return null;\n }\n Stack<Node> stack=new Stack<>();\n stack.add(root);\n \n while(!stack.isEmpty()){\n Node currentnode=stack.pop();\n output_arr.add(currentnode.data);\n if(currentnode.right!=null){\n stack.add(currentnode.right);\n }\n if(currentnode.left!=null){\n stack.add(currentnode.left);\n }\n \n }\n return output_arr;\n }", "private void preOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n // print the node\n System.out.print(array[index] + \", \");\n //call recursively the method on left child\n preOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n preOrderTraversal(2 * index + 2);\n }", "private void inorder() {\r\n\t\t\tinorder(root);\r\n\t\t}", "private void preorderH(BSTNode<T> p, List<T> list) {\n list.add(p.getData());\n if (p.getLeft() != null) {\n preorderH(p.getLeft(), list);\n }\n\n if (p.getRight() != null) {\n preorderH(p.getRight(), list);\n }\n }", "private void preOrderTraversalRec(final Node root){\n if(root == null){\n return;\n }\n System.out.print(root.getData() + \" \");\n preOrderTraversalRec(root.getLeft());\n preOrderTraversalRec(root.getRight());\n }", "private void preorderHelper(TreeNode<T> node){\n if(node == null)\n return;\n\n System.out.printf(\"%s \" , node.data);\n preorderHelper(node.leftNode);\n preorderHelper(node.rightNode);\n }", "public List<T> preOrder(Node root, List<T> nodeValue) {\n if(root == null) {\n return nodeValue;\n }\n else {\n nodeValue.add((T) root.getData());\n preOrder(root.getLeftChildNode(), nodeValue);\n preOrder(root.getRightChildNode(), nodeValue);\n }\n return nodeValue;\n }", "static void preOrderTraversalStackOptimised(Node root) {\n Stack<Node> stack = new Stack<>();\n Node curr = root;\n while (curr != null || !stack.isEmpty()) {\n\n while (curr != null) {\n System.out.print(curr.data + \" \");\n if (curr.right != null) {\n stack.push(curr.right);\n }\n curr = curr.left;\n }\n\n if (!stack.isEmpty()) {\n curr = stack.pop();\n }\n }\n }", "public ArrayList<Integer> preOrderPrint () {\n\t\tArrayList<Integer> preOrder = new ArrayList<Integer>();\n\t\tpreOrderPrint(root, preOrder);\n\t\treturn preOrder;\n\t}", "public void inOrder() {\r\n \r\n // call the private inOrder method with the root\r\n inOrder(root);\r\n }", "public void preOrderDepthFirstTraversal(NodeVisitor action){\n\t\tif(this.getElement()==null)\n\t\t\treturn;\n\n\t\taction.visit(this.getElement());\n\t\tthis.left.preOrderDepthFirstTraversal(action);\n\t\tthis.right.preOrderDepthFirstTraversal(action);\n\t}", "public void postOrderTraversal(){\n System.out.println(\"postOrderTraversal\");\n //TODO: incomplete\n\n }", "public void preOrderTraverseTree(Node focusNode) {\n if (focusNode != null) { // recursively traverse left child nodes first than right\n\n System.out.println(focusNode); // print recursively pre-order traversal (or return!)\n\n preOrderTraverseTree(focusNode.leftChild);\n\n preOrderTraverseTree(focusNode.rightChild);\n\n }\n }", "public static void main(String[] args) {\n\n\t\tTreeNode node1 = new TreeNode(1);\n TreeNode node2 = new TreeNode(2);\n TreeNode node3 = new TreeNode(3);\n TreeNode node4 = new TreeNode(4);\n TreeNode node5 = new TreeNode(5);\n TreeNode node6 = new TreeNode(6);\n TreeNode node7 = new TreeNode(7);\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node3.left = node6;\n node4.left = node7;\n \n System.out.println(preorderTraversalIterative(node1));\n System.out.println(preorderTraversalRecursive(node1));\n \n\t\t\n\t\t\n\t\t\n\t}", "private void preorderLeftOnly(Node root) {\r\n if (this != null && !ifLeaf(root))\r\n System.out.print(root.value + \">\");\r\n if (root.left != null)\r\n preorderLeftOnly(root.left);\r\n }" ]
[ "0.8121096", "0.8012689", "0.7982617", "0.7982617", "0.79598397", "0.78906333", "0.78742665", "0.77802205", "0.76809627", "0.75168335", "0.7446423", "0.7358815", "0.72390854", "0.71611106", "0.71069264", "0.70993626", "0.7036948", "0.70344824", "0.70335394", "0.7017599", "0.7005652", "0.6990939", "0.69460535", "0.69199884", "0.6901324", "0.6887029", "0.68725026", "0.6866223", "0.68537253", "0.6844576", "0.6840646", "0.6829359", "0.68120635", "0.67956775", "0.67772734", "0.6740346", "0.6726629", "0.6721723", "0.67175066", "0.67162454", "0.67091477", "0.66994655", "0.6698661", "0.66972715", "0.6667703", "0.66674954", "0.666606", "0.6657753", "0.66576785", "0.6657369", "0.6654213", "0.6648772", "0.664613", "0.6629616", "0.6585681", "0.65785706", "0.6573426", "0.65682364", "0.6564541", "0.65625286", "0.6551996", "0.65434355", "0.6538069", "0.65346014", "0.649997", "0.6499378", "0.64907324", "0.6478085", "0.64747983", "0.6471404", "0.6459372", "0.6452928", "0.6437743", "0.64332694", "0.6409083", "0.6406694", "0.6400826", "0.6389723", "0.6389078", "0.6386295", "0.63850486", "0.6381967", "0.6379672", "0.6376107", "0.63515323", "0.6343628", "0.633567", "0.6317102", "0.63160837", "0.63125676", "0.6308945", "0.63039166", "0.6293778", "0.62902445", "0.6248176", "0.62455064", "0.6232603", "0.6231672", "0.62212247", "0.62142706", "0.6196573" ]
0.0
-1
This method encrypting a file according to the giving data when this Object was created
public void encrypt() throws Exception { LogWriter = new BufferedWriter(new FileWriter(localWorkingDirectoryPath + "\\Log_Encryption.txt")); FileOutputStream configurationFileOutputStream = null; // Loading the store with the giving arguments writeToLog("Step 1: Loading the store with the giving arguments"); loadStore(); // Getting the receiver's public-key writeToLog("Step 2: Getting the receiver's public-key"); Certificate receiverCert = keyStore.getCertificate(receiverSelfSignedCertAlias); if (receiverCert == null) { writeToLog("The entered certificate alias: \"" + receiverSelfSignedCertAlias + "\" dose not exist in the keys store."); LogWriter.close(); throw new Exception("The entered certificate alias: \"" + receiverSelfSignedCertAlias + "\" dose not exist in the keys store."); } PublicKey receiverPublicKey = receiverCert.getPublicKey(); // Getting my private key in order to generate a signature writeToLog("Step 3: Getting the encryptor's private-key"); PrivateKey myPrivateKey = getMyPrivateKey(); // Generating a symmetric key writeToLog("Step 4: Generating a symmetric key"); KeyGenerator kg = KeyGenerator.getInstance("AES"); SecretKey semetricKey = kg.generateKey(); // Generating a random IV writeToLog("Step 5: Generating a random IV"); byte[] iv = generateRandomIV(); // Initializing the cipher writeToLog("Step 6: Initilatzing the cipher Object"); try { myCipher = createCipher(); myCipher.init(Cipher.ENCRYPT_MODE, semetricKey, new IvParameterSpec(iv)); }catch(Exception e) { writeToLog("Error While tring to Initializing the cipher with the giving arguments: " + e.getMessage()); LogWriter.close(); throw new Exception("Error: While tring to Initializing the cipher with the giving arguments",e); } // Initializing the signature with my private-key writeToLog("Step 7: Initilatzing the signature Object with the encryptor's private-key"); Signature dataSigner = Signature.getInstance("SHA256withRSA"); dataSigner.initSign(myPrivateKey); // Encrypting writeToLog("Step 8: Encrypting... "); File fileToEncrrypt = new File(fileToEncryptPath); encryptingData(fileToEncrrypt, dataSigner); // Signing on the encrypted data writeToLog("Step 9: Signing on the encrypted data "); byte[] mySignature = dataSigner.sign(); // Encrypt the symmetric key with the public of the receiver writeToLog("Step 10: Encrypt the symmetric key with the public of the receiver "); byte[] encryptedSymmetricKey = encryptSymmetricKey(receiverPublicKey, semetricKey); // Saving the IV, Encrypted Symmetric-Key and Signature to the configurations file writeToLog("Step 11: Saving the IV, Encrypted Semetric-Key and Signature to the configurations file "); savingToConfigurationsFile(configurationFileOutputStream, iv, encryptedSymmetricKey, mySignature); LogWriter.write("Encryption completed, No Errors Were Found"); LogWriter.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "OutputFile encryptingOutputFile();", "private void encryptingData(File fileToEncrrypt, Signature dataSigner) throws Exception {\n\t\tFileOutputStream fos = null;\n\t\tFileInputStream fis = null;\n\t\tCipherInputStream cis = null;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(localWorkingDirectoryPath + \"\\\\Encrypted_File.txt\");\n\t\t\tfis = new FileInputStream(fileToEncrrypt);\n\t\t\tbyte[] encryptedDataByteArray = new byte[8];\n\t\t\tcis = new CipherInputStream(fis, myCipher);\n\t\t\tint i = cis.read(encryptedDataByteArray);\n\t\t\twhile (i != -1) {\n\t\t\t\t// Updating the data inside the Signer\n\t\t\t\tdataSigner.update(encryptedDataByteArray);\n\t\t\t\t// writing the encrypted data to the file\n\t\t\t\tfos.write(encryptedDataByteArray, 0, i);\n\t\t\t\ti = cis.read(encryptedDataByteArray);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\twriteToLog(\"Error While trying to encrypt the data: \" + e.getMessage());\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"Error: While trying to encrypt the data\", e);\n\t\t} finally {\n\t\t\tcis.close();\n\t\t\tfis.close();\n\t\t\tfos.close();\n\t\t}\n\t}", "private void encryptFile() {\r\n\t\tisEncryptComplete = false;\r\n\t\tlogger.encryStart = System.currentTimeMillis();\r\n\t\tif(file == null || !file.exists())\r\n\t\t\treturn;\r\n\t\t\r\n\t\tMDFSEncoder encoder = new MDFSEncoder(file, n1, n2, k1, k2);\r\n\t\t/*\r\n\t\t * n1=4;n2=4;k1=3;k2=4; MDFSEncoder encoder = new MDFSEncoder(file, 4,\r\n\t\t * 4, 3, 2);\r\n\t\t */\r\n\t\tif (!encoder.encode()) {\r\n\t\t\tlistener.onError(\"File Encryption Failed\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.encryStop = System.currentTimeMillis();\r\n\t\tList<FragmentInfo> fragInfos = encoder.getFileFragments();\r\n\t\tkeyShares = encoder.getKeyShares();\r\n\r\n\t\t// Store the file fragments in local SDCard\r\n\t\tFile fragsDir = AndroidIOUtils.getExternalFile(Constants.DIR_ROOT + \"/\"\r\n\t\t\t\t+ MDFSFileInfo.getDirName(file.getName(), file.lastModified()));\r\n\r\n\t\tMDFSDirectory directory = serviceHelper.getDirectory();\r\n\t\t// Create file fragments\r\n\t\tfor (FragmentInfo frag : fragInfos) {\r\n\t\t\tFile tmp = IOUtilities.createNewFile(fragsDir, frag.getFileName()\r\n\t\t\t\t\t+ \"__frag__\" + frag.getFragmentNumber());\r\n\t\t\tif (IOUtilities.writeObjectToFile(frag, tmp)) {\r\n\t\t\t\tdirectory.addFileFragment(file.lastModified(),\r\n\t\t\t\t\t\tfrag.getFragmentNumber());\r\n\t\t\t}\r\n\t\t}\r\n\t\tlistener.statusUpdate(\"Encryption Complete\");\r\n\t\tisEncryptComplete = true;\r\n\t\tdistributeFragments();\r\n\t}", "private void encryptionAlgorithm() {\n\t\ttry {\n\t\t\t\n\t\t\tFileInputStream fileInputStream2=new FileInputStream(\"D:\\\\program\\\\key.txt\");\n\t\t\tchar key=(char)fileInputStream2.read();\n\t\t\tSystem.out.println(key);\n\t\t\tFileInputStream fileInputStream1=new FileInputStream(\"D:\\\\program\\\\message.txt\");\n\t\t\tint i=0;\n\t\t\t\n\t\t\tStringBuilder message=new StringBuilder();\n\t\t\twhile((i= fileInputStream1.read())!= -1 )\n\t\t\t{\n\t\t\t\tmessage.append((char)i);\n\t\t\t}\n\t\t\tString s=message.toString();\n\t\t\tchar[] letters=new char[s.length()];\n\t\t\tStringBuilder en=new StringBuilder();\n\t\t\tfor(int j = 0;j < letters.length;j++)\n\t\t\t{\n\t\t\t\ten.append((char)(byte)letters[j]+key);\n\t\t\t}\t\t\n\t\t\tFileOutputStream fileoutput=new FileOutputStream(\"D:\\\\program\\\\encryptedfile.txt\");\n\t\t\t\n\t\t\tfileInputStream1.close();\n\t\t\tfileInputStream2.close();\n\t\t\t\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t}", "public static void encrypt() throws IOException{\n\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(inFilename));\n\t\tBufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(outFilename));\n\n\t\tSecureRandom randomGen = new SecureRandom(); //used for the salt and the padding\n\t\tbyte[] key; //holds the encryption key\n\n\t\t//get the file length\n\t\tlong fileLength = (new File(inFilename)).length();\n\n\t\t//write the file header marker\n\t\tout.write(FILE_HEADER);\n\n\t\t/* STAGE 1 - generate encryption key */\n\t\t//find the number of bytes we have to pad and write it to the file\n\t\tint numPad;\n\t\tif (fileLength % 8 == 0)\n\t\t\tnumPad = 0;\n\t\telse\n\t\t\tnumPad = (int)(8 - (fileLength % 8));\n\t\tout.write(numPad);\n\t\t//generate a 128-byte random salt and write it to the file\n\t\tbyte[] salt = new byte[128];\n\t\trandomGen.nextBytes(salt);\n\t\tout.write(salt);\n\t\t//generate the message for CubeHash: (password + #padded bits + random salt)\n\t\tbyte[] message = new byte[password.length + 1 + salt.length];\n\t\tSystem.arraycopy(password, 0, message, 0, password.length); //add the password\n\t\tmessage[password.length] = (byte)numPad; //add #padded bits\n\t\tSystem.arraycopy(salt, 0, message, password.length + 1, salt.length); //add random salt\n\t\t//finally, generate the encryption key\n\t\tkey = CryptoLib.CubeHash.doCubeHash(message);\n\n\t\t/* STAGE 2 - apply encryption */\n\t\tint currPiece = 0; //keeps track of which piece of the key is being used\n\t\tbyte[] currData = new byte[8]; //holds the piece of data currently being encrypted\n\n\t\t//split the key into 4 pieces of 128 bits each\n\t\tbyte[][] keyPieces = new byte[4][16];\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tSystem.arraycopy(key, i*16, keyPieces[i], 0, 16);\n\t\t}\n\n\t\t//loop through the file (except the last block), 8 bytes at a time\n\t\tfor (long i = 0; i < fileLength - 8; i += 8){\n\t\t\t//put a chunk of data in currData\n\t\t\tin.read(currData);\n\n\t\t\t//do TEA(key, RC4(key, data)), then write to file\n\t\t\tout.write(CryptoLib.TEA.doTEA(keyPieces[currPiece],\n\t\t\t\t\t\tCryptoLib.RC4.doRC4(keyPieces[currPiece], currData)));\n\n\t\t\t//increment currPiece\n\t\t\tcurrPiece = (currPiece + 1) % 4;\n\t\t}\n\n\t\t//deal with the last block of data:\n\t\t//first, read it..\n\t\tin.read(currData);\n\t\t//..pad it with random data..\n\t\tfor (int i = 7; i >= (8 - numPad); i--){\n\t\t\tcurrData[i] = (byte)randomGen.nextInt();\n\t\t}\n\t\t//..then encrypt it\n\t\tout.write(CryptoLib.TEA.doTEA(keyPieces[currPiece],\n\t\t\t\t\tCryptoLib.RC4.doRC4(keyPieces[currPiece], currData)));\n\n\t\t/* STAGE 3 - done! */\n\t\tin.close();\n\t\tout.close();\n\t\tSystem.out.println(\"\\nEncryption complete.\");\n\t}", "public static void encryptFile(File in, File out, Key pubKey) throws Exception {\n FileInputStream fin;\n FileOutputStream fout;\n int nread = 0; \n byte[] inbuf = new byte[1024];\n fout = new FileOutputStream(out);\n fin = new FileInputStream(in);\n\n SecureRandom random = new SecureRandom();\n // symmetric wrapping\n Key sKey = createKeyForAES(Config.SYM_CRYPTO_STR, random);\n IvParameterSpec sIvSpec = createCtrIvForAES(0, random);\n\n // encrypt symmetric key with RSA/pub key\n Cipher xCipher = Cipher.getInstance(Config.RSA_INSTANCE);\n xCipher.init(Cipher.ENCRYPT_MODE, pubKey, random);\n byte[] keyBlock = xCipher.doFinal(packKeyAndIv(sKey, sIvSpec));\n\n fout.write(keyBlock);\n\n // encrypt data with symmetric key\n Cipher sCipher = Cipher.getInstance(Config.AES_INSTANCE);\n sCipher.init(Cipher.ENCRYPT_MODE, sKey, sIvSpec);\n\n // Now read our file and encrypt it.\n while((nread = fin.read(inbuf)) > 0) {\n fout.write(sCipher.update(inbuf, 0, nread)); // cannot be null, by construction\n }\n // NB doFinal() cannot return null, but can return a zero-length array, which is benign below.\n fout.write(sCipher.doFinal());\n\n fout.flush();\n fin.close();\n fout.close();\n}", "public interface IFileCrypter\n{\n\tpublic void encrypt( int pPartNumber , byte[] pData , int pOffset , int pLength );\n\t\n\tpublic void decrypt( int pPartNumber , byte[] pData , int pOffset , int pLength );\n}", "public void encryptFile(String fitxer, SecretKey clau) throws FileNotFoundException, InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, IOException, IllegalBlockSizeException, BadPaddingException {\r\n //Creamos el FileInput Stream para leer el archivo.\r\n FileInputStream fis = new FileInputStream(fitxer);\r\n //Creamos el FileOutputStream para escribir en el fichero.\r\n FileOutputStream fos = new FileOutputStream(new File(\"mensajeCifrado.txt\"));\r\n \r\n //Creamos un cifrador para cifrar el texto.\r\n Cipher cifrador = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\r\n IvParameterSpec iv = new IvParameterSpec(cadena_iv.getBytes());\r\n cifrador.init(Cipher.ENCRYPT_MODE, clau);\r\n \r\n //Creamos un buffer que es un array de bytes donde almacenaremos el texto.\r\n byte[] buffer = new byte[1024];\r\n \r\n int bytes;\r\n //Utilizamos un bucle para ir leyendo el archivo de texto que le hemos pasado.\r\n while((bytes = fis.read(buffer, 0, buffer.length))!=-1){\r\n byte [] update = cifrador.update(buffer, 0, bytes);\r\n fos.write(cifrador.doFinal());\r\n }\r\n \r\n //Cerramos recursos.\r\n fos.write(cifrador.doFinal());\r\n fis.close();\r\n fos.close();\r\n \r\n \r\n }", "private static void crypting(boolean encrypt, String filename, String cryptedFilename) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tSystem.out.println(\"Please provide password as hex-encoded text (16 bytes, i.e. 32 hex-digits): \");\n\t\tSystem.out.print(\">\");\n\t\tString keyText = sc.nextLine();\n\n\t\tSystem.out.println(\"Please provide initialization vector as hex-encoded text (32 hex-digits): \");\n\t\tSystem.out.print(\">\");\n\t\tString ivText = sc.nextLine();\n\t\tsc.close();\n\n\t\tSecretKeySpec keySpec = new SecretKeySpec(Util.hextobyte(keyText), \"AES\");\n\t\tAlgorithmParameterSpec paramSpec = new IvParameterSpec(Util.hextobyte(ivText));\n\t\tCipher cipher = null;\n\n\t\ttry {\n\t\t\tcipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t\t\tcipher.init(encrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE, keySpec, paramSpec);\n\n\t\t} catch (NoSuchAlgorithmException | NoSuchPaddingException exc) {\n\t\t\tSystem.out.println(\"Transformation is in invalid format or contains padding scheme that is unavailable. \");\n\t\t\tSystem.exit(1);\n\t\t} catch (InvalidKeyException | InvalidAlgorithmParameterException exc) {\n\t\t\tSystem.out.println(\"Given key or algorithm is invalid for this cipher.\");\n\t\t\tSystem.exit(1);\n\n\t\t}\n\n\t\ttry (InputStream inputStream = new BufferedInputStream(new FileInputStream(filename));\n\t\t\t\tOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(cryptedFilename))) {\n\n\t\t\tint nRead;\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tbyte[] inputfile = null;\n\n\t\t\twhile ((nRead = inputStream.read(buffer, 0, buffer.length)) != -1) {\n\t\t\t\tinputfile = cipher.update(buffer, 0, nRead);\n\t\t\t\toutputStream.write(inputfile);\n\t\t\t}\n\n\t\t\tinputfile = cipher.doFinal();\n\t\t\toutputStream.write(inputfile);\n\n\t\t} catch (FileNotFoundException exc) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"File does not exist, is a directory rather than a regular file, or cannot be opened for reading because of some other reason. \");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"Input stream couldn't be initialized.\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IllegalBlockSizeException | BadPaddingException e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Encryption algorithm is unable to process the input data provided or the decrypted data is not bounded by the appropriate padding bytes. \");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tif (encrypt) {\n\t\t\tSystem.out.printf(\"Encryption completed. Generated file %s based on file %s.\\n\", cryptedFilename, filename);\n\t\t} else {\n\t\t\tSystem.out.printf(\"Decryption completed. Generated file %s based on file %s.\\n\", cryptedFilename, filename);\n\t\t}\n\n\t}", "String encode(File message, File key,File crypted);", "private static void encryptFile(String fileInput, String publicKeyFilename) throws Exception {\n\n\t\t// Load the public key bytes\n\t\tFileInputStream fis = new FileInputStream(publicKeyFilename);\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\n\t\tint theByte = 0;\n\t\twhile ((theByte = fis.read()) != -1) {\n\t\t\tbaos.write(theByte);\n\t\t}\n\t\tfis.close();\n\n\t\tbyte[] keyBytes = baos.toByteArray();\n\t\tbaos.close();\n\n\t\t// Turn the encoded key into a real RSA public key.\n\t\t// Public keys are encoded in X.509.\n\t\tX509EncodedKeySpec keySpec = new X509EncodedKeySpec(keyBytes);\n\t\tKeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n\t\tPublicKey publicKey = keyFactory.generatePublic(keySpec);\n\n\t\t// Open up an output file for the output of the encryption\n\t\tString fileOutput = fileInput + ENCRYPTED_FILENAME_SUFFIX;\n\t\tDataOutputStream output = new DataOutputStream(new FileOutputStream(fileOutput));\n\n\t\t// Create a cipher using that key to initialize it\n\t\tCipher rsaCipher = Cipher.getInstance(\"RSA/ECB/PKCS1Padding\");\n\t\trsaCipher.init(Cipher.ENCRYPT_MODE, publicKey);\n\n\t\t// Now create a new 256 bit Rijndael key to encrypt the file itself.\n\t\t// This will be the session key.\n\t\tKeyGenerator rijndaelKeyGenerator = KeyGenerator.getInstance(\"Rijndael\");\n\t\trijndaelKeyGenerator.init(256);\n\t\tSystem.out.println(\"Generating session key...\");\n\t\tKey rijndaelKey = rijndaelKeyGenerator.generateKey();\n\t\tSystem.out.println(\"Done generating key.\");\n\n\t\t// Encrypt the Rijndael key with the RSA cipher\n\t\t// and write it to the beginning of the file.\n\t\tbyte[] encodedKeyBytes = rsaCipher.doFinal(rijndaelKey.getEncoded());\n\t\toutput.writeInt(encodedKeyBytes.length);\n\t\toutput.write(encodedKeyBytes);\n\n\t\t// Now we need an Initialization Vector for the symmetric cipher in CBC mode\n\t\tSecureRandom random = new SecureRandom();\n\t\tbyte[] iv = new byte[16];\n\t\trandom.nextBytes(iv);\n\n\t\t// Write the IV out to the file.\n\t\toutput.write(iv);\n\t\tIvParameterSpec spec = new IvParameterSpec(iv);\n\n\t\t// Create the cipher for encrypting the file itself.\n\t\tCipher symmetricCipher = Cipher.getInstance(\"Rijndael/CBC/PKCS5Padding\");\n\t\tsymmetricCipher.init(Cipher.ENCRYPT_MODE, rijndaelKey, spec);\n\n\t\tCipherOutputStream cos = new CipherOutputStream(output, symmetricCipher);\n\n\t\tSystem.out.println(\"Encrypting the file...\");\n\n\t\tFileInputStream input = new FileInputStream(fileInput);\n\n\t\ttheByte = 0;\n\t\twhile ((theByte = input.read()) != -1) {\n\t\t\tcos.write(theByte);\n\t\t}\n\t\tinput.close();\n\t\tcos.close();\n\t\tSystem.out.println(\"File encrypted.\");\n\t\treturn;\n\t}", "void encryptFile(String path) throws IOException {\n try (BufferedReader reader = new BufferedReader(new FileReader(path))) {\n PrintWriter writer = new PrintWriter(System.out);\n encryptFile(reader, writer);\n } catch (FileNotFoundException e) {\n System.out.println(\"Error: Input file not found\");\n }\n }", "private static void crypto(String filePath1, String filePath2) {\n\n\t\t// Retrieve the cipher\n\t\tCipher cipher;\n\t\ttry {\n\t\t\tcipher = obtainCipher();\n\n\t\t} catch (InvalidKeyException | InvalidAlgorithmParameterException | NoSuchAlgorithmException\n\t\t\t\t| NoSuchPaddingException e) {\n\t\t\tSystem.out.println(\"Exception while obtaining cypher: \" + e.getMessage());\n\t\t\treturn;\n\t\t}\n\n\t\tPath p = Paths.get(filePath1);\n\t\tPath p2 = Paths.get(filePath2);\n\n\t\t// Open the file input and output stream\n\t\ttry (InputStream is = Files.newInputStream(p); OutputStream os = Files.newOutputStream(p2)) {\n\t\t\tbyte[] buff = new byte[4096];\n\n\t\t\twhile (true) {\n\t\t\t\tint r = is.read(buff);\n\n\t\t\t\tif (r == -1) {\n\t\t\t\t\t// Finishing the cipher\n\t\t\t\t\ttry {\n\t\t\t\t\t\tos.write(cipher.doFinal());\n\t\t\t\t\t} catch (IllegalBlockSizeException | BadPaddingException e) {\n\t\t\t\t\t\tSystem.out.println(\"Exception while finalizaing cipher: \" + e.getMessage());\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Update cipher and write into new file\n\t\t\t\tos.write(cipher.update(buff, 0, r));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Exception while opening the file: \" + e.getMessage());\n\t\t\tSystem.exit(1);\n\n\t\t}\n\n\t\tSystem.out.println((encrypt ? \"Encryption\" : \"Decryption\") + \" completed. Generated file \" + filePath2\n\t\t\t\t+ \" based on file \" + filePath1 + \".\");\n\n\t}", "public void readDataFromFile(View view) throws GeneralSecurityException, IOException {\n encryptedFile = new EncryptedFile.Builder(\n context,\n new File(MainActivity.this.getFilesDir(),\"test.txt\"), // File want to read\n mainKey, // Master key for encryption\n EncryptedFile.FileEncryptionScheme.AES256_GCM_HKDF_4KB) // Algorithm or FileEncryptionScheme for encryption\n .build();\n\n\n InputStream inputStream = encryptedFile.openFileInput(); // Open the encrypted file to read\n int next = inputStream.read(); // Read the encrypted file\n\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); // ByteArrayOutputStream to print the content of file to read\n\n while (next != -1){\n byteArrayOutputStream.write(next); // Write the file content in byteArrayOutputStream object\n next = inputStream.read(); // Read the next character until it encounter the end (-1)\n }\n\n byte[] plainText = byteArrayOutputStream.toByteArray(); // Convert into byte array\n\n String textString = new String(plainText); // Create a new string with converted plain text byte array\n\n textView.setText(textString); // display the file content in textView\n }", "Encryption encryption();", "public static void encryptFile(File inFile, String pass) throws IOException, GeneralSecurityException {\n\t\tbyte[] decData;\n\t\tbyte[] encData;\n\n\t\tCipher cipher = FileEncryptor.makeCipher(pass, true);\n\t\tif (cipher == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tFileInputStream inStream = new FileInputStream(inFile);\n\t\tint blockSize = 8;\n\t\tint paddedCount = blockSize - ((int) inFile.length() % blockSize);\n\t\tint padded = (int) inFile.length() + paddedCount;\n\n\t\tdecData = new byte[padded];\n\t\tinStream.read(decData);\n\t\tinStream.close();\n\n\t\tfor (int i = (int) inFile.length(); i < padded; ++i) {\n\t\t\tdecData[i] = (byte) paddedCount;\n\t\t}\n\n\t\tencData = cipher.doFinal(decData);\n\t\tFileOutputStream outStream = new FileOutputStream(inFile);\n\t\toutStream.write(encData);\n\t\toutStream.close();\n\t}", "private static AlgorithmParameters fileEncryption(File fileToEncrypt, SecretKey symmetricKey, File fileAfterEncrypt)\n\t{\n\t\tCipherOutputStream cipherOutputStream = null;\n\t\tAlgorithmParameters algoParams = null;\n\t\tCipher cipher;\n\n\t\ttry\n\t\t{\n\t\t\tif (inputProviderForFile.equals(\"non\"))\n\t\t\t{\n\t\t\t\tcipher = Cipher.getInstance(inputAlgorithmForFileEncryption + \"/\" + inputAlgorithmMode + \"/\" + inputAlgorithmPadding);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcipher = Cipher.getInstance(inputAlgorithmForFileEncryption + \"/\" + inputAlgorithmMode + \"/\" + inputAlgorithmPadding, inputProviderForFile);\n\t\t\t}\n\t\t\tif (cipher != null && symmetricKey != null)\n\t\t\t{\n\t\t\t\tcipher.init(Cipher.ENCRYPT_MODE, symmetricKey);\n\t\t\t\tcipherOutputStream = new CipherOutputStream(new FileOutputStream(fileAfterEncrypt), cipher);\n\t\t\t\tPath path = Paths.get(fileToEncrypt.getPath());\n\t\t\t\tbyte[] dataFromFile = Files.readAllBytes(path);\n\t\t\t\tcipherOutputStream.write(dataFromFile);\n\t\t\t\talgoParams = cipher.getParameters();\n\t\t\t}\n\t\t} catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IOException | NoSuchProviderException e2)\n\t\t{\n\t\t\te2.printStackTrace();\n\t\t} finally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (cipherOutputStream != null)\n\t\t\t\t{\n\t\t\t\t\tcipherOutputStream.flush();\n\t\t\t\t\tcipherOutputStream.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn algoParams;\n\t}", "void encryptFile(String inPath, String outPath) throws IOException {\n try (BufferedReader reader = new BufferedReader(new FileReader(inPath))) {\n try (PrintWriter writer = new PrintWriter(outPath)) {\n encryptFile(reader, writer);\n } catch (FileNotFoundException e) {\n System.out.println(\"Error: Output file not found\");\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"Error: Input file not found\");\n }\n }", "protected void setEncrypted() {\n content = this.aesKey.encrypt(this.content);\n }", "public interface CryptoService {\n /**\n * Read encrypted password file.\n *\n * @param file Encrypted file instance.\n * @param password Password to decrypt file.\n *\n * @return file content.\n *\n * */\n String readFile(File file, String password);\n\n /**\n * Write and encrypt content to file.\n *\n * @param file encrypted file location.\n * @param password password which will be used to encrypt file.\n * @param cnt file content.\n * */\n void writeFile(File file, String password, String cnt);\n\n /**\n * Encrypt content\n *\n * @param password password which will be used to encrypt file.\n * @param textToEncrypt text which will be encrypted\n * @return encrypted content\n * */\n String encrypt(String password, String textToEncrypt);\n\n /**\n * Decrypt content\n *\n * @param password password which will be used to encrypt file.\n * @param textToDecrypt text which will be decrypted\n * @return decrypted content\n * */\n String decrypt(String password, String textToDecrypt);\n\n /**\n * Write and encrypt the password database.\n *\n * @param passwordDatabase passwords database which will be saved to encrypted file.\n * */\n void writeFile(PasswordDatabase passwordDatabase) throws JsonConversionException;\n}", "public void encryptFile(File textInputFile, File cipherOutputFile) throws FileNotFoundException{\n Scanner in = new Scanner(textInputFile);\n PrintStream out = new PrintStream(cipherOutputFile);\n\n while (in.hasNextLine()) {\n String line = in.nextLine() + NEW_LINE;\n out.print(encrypt(line));\n }\n }", "String encryption(Long key, String encryptionContent);", "public void encryptChkFile(User user, String inputFile)\n\t\t\tthrows NoSuchAlgorithmException, NoSuchPaddingException,\n\t\t\tInvalidKeyException, InvalidAlgorithmParameterException,\n\t\t\tIOException, NoSuchProviderException {// same as above but for singular file, for creating\n\t\t\t\t\t\t\t// consistant files to check against\n\t\tFile ivread = new File(user.name + \"_iv\");\n\t\tboolean exists = ivread.exists();\n\t\tCipher cipher = generateCipher();\n\t\tif (exists) {\n\t\t\tFileInputStream in = new FileInputStream(ivread);\n\t\t\tbyte[] iv = new byte[(int) ivread.length()];\n\t\t\tin.read(iv);\n\t\t\tcipher.init(Cipher.ENCRYPT_MODE, user.passwordKey,\n\t\t\t\t\tnew IvParameterSpec(iv));\n\t\t\tin.close();\n\t\t} else {\n\t\t\tcipher.init(Cipher.ENCRYPT_MODE, user.passwordKey);\n\t\t\tbyte[] iv = cipher.getIV();\n\t\t\tFileOutputStream ivout = new FileOutputStream(user.configDirectory + \"\\\\\" + user.name + \"_iv\");\n\t\t\tivout.write(iv);\n\t\t\tivout.close();\n\t\t}\n\t\tfinal Charset ENCODING = StandardCharsets.UTF_8;\n\t\tFile usersFile = user.referenceFile;// possibly gets sent\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to the wrong\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// directory, write\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// test to check\n\t\tBufferedWriter ow = Files.newBufferedWriter(usersFile.toPath(),//output stream is all wrong should be using cpher output stream/\n\t\t\t\tENCODING);\n\t\tow.write(inputFile);\n\t\tow.close();\n\t\t\n\t\tint i = cipher.getBlockSize();\n\t\tBufferedInputStream is = new BufferedInputStream(new FileInputStream(user.referenceFile));\n\t\tCipherOutputStream os = new CipherOutputStream(new FileOutputStream(user.referenceFile+\".out\"), cipher);\n\t\tcopy(is, os);\n\t\tis.close();\n\t\tos.close();\n\n\t\t// TODO insert code to create then encrypt a simple phrase e.g. 1234567\n\t}", "private static java.io.File a(java.io.File r8, java.lang.String r9, java.lang.String r10) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = r8.getName();\t Catch:{ Exception -> 0x006b, all -> 0x0067 }\n r3 = \".decrypt\";\n r4 = r8.getParentFile();\t Catch:{ Exception -> 0x006b, all -> 0x0067 }\n r2 = java.io.File.createTempFile(r2, r3, r4);\t Catch:{ Exception -> 0x006b, all -> 0x0067 }\n r3 = new javax.crypto.spec.IvParameterSpec;\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r4 = \"UTF-8\";\n r10 = r10.getBytes(r4);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r3.<init>(r10);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r10 = new javax.crypto.spec.SecretKeySpec;\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r4 = \"UTF-8\";\n r9 = r9.getBytes(r4);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r4 = \"AES\";\n r10.<init>(r9, r4);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r9 = \"AES/CBC/PKCS7PADDING\";\n r9 = javax.crypto.Cipher.getInstance(r9);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r4 = 2;\n r9.init(r4, r10, r3);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r10 = new java.io.FileInputStream;\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r10.<init>(r8);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r3 = new javax.crypto.CipherInputStream;\t Catch:{ Exception -> 0x005e, all -> 0x005a }\n r3.<init>(r10, r9);\t Catch:{ Exception -> 0x005e, all -> 0x005a }\n r9 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x0057, all -> 0x0054 }\n r9.<init>(r2);\t Catch:{ Exception -> 0x0057, all -> 0x0054 }\n r4 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;\n r4 = new byte[r4];\t Catch:{ Exception -> 0x0052 }\n L_0x0045:\n r5 = r3.read(r4);\t Catch:{ Exception -> 0x0052 }\n r6 = -1;\n if (r5 == r6) goto L_0x0050;\n L_0x004c:\n r9.write(r4, r0, r5);\t Catch:{ Exception -> 0x0052 }\n goto L_0x0045;\n L_0x0050:\n r0 = 1;\n goto L_0x007e;\n L_0x0052:\n r4 = move-exception;\n goto L_0x0070;\n L_0x0054:\n r8 = move-exception;\n r9 = r1;\n goto L_0x008f;\n L_0x0057:\n r4 = move-exception;\n r9 = r1;\n goto L_0x0070;\n L_0x005a:\n r8 = move-exception;\n r9 = r1;\n r3 = r9;\n goto L_0x008f;\n L_0x005e:\n r4 = move-exception;\n r9 = r1;\n r3 = r9;\n goto L_0x0070;\n L_0x0062:\n r4 = move-exception;\n r9 = r1;\n r10 = r9;\n r3 = r10;\n goto L_0x0070;\n L_0x0067:\n r8 = move-exception;\n r9 = r1;\n r3 = r9;\n goto L_0x0090;\n L_0x006b:\n r4 = move-exception;\n r9 = r1;\n r10 = r9;\n r2 = r10;\n r3 = r2;\n L_0x0070:\n r5 = \"DecryptUtils\";\n r6 = \"decryptByPair decrypt hotfix patch file error\";\n r7 = new java.lang.Object[r0];\t Catch:{ all -> 0x008e }\n com.taobao.sophix.e.d.a(r5, r6, r4, r7);\t Catch:{ all -> 0x008e }\n if (r2 == 0) goto L_0x007e;\n L_0x007b:\n r2.delete();\t Catch:{ all -> 0x008e }\n L_0x007e:\n com.taobao.sophix.e.b.a(r10);\n com.taobao.sophix.e.b.a(r3);\n com.taobao.sophix.e.b.a(r9);\n if (r0 == 0) goto L_0x008d;\n L_0x0089:\n r8.delete();\n return r2;\n L_0x008d:\n return r1;\n L_0x008e:\n r8 = move-exception;\n L_0x008f:\n r1 = r10;\n L_0x0090:\n com.taobao.sophix.e.b.a(r1);\n com.taobao.sophix.e.b.a(r3);\n com.taobao.sophix.e.b.a(r9);\n throw r8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.sophix.e.a.a(java.io.File, java.lang.String, java.lang.String):java.io.File\");\n }", "public void opentextfile(String path1)\n {\n FileInputStream fin,fin1;\n \tint i,j=0;\n String s=JOptionPane.showInputDialog(this,\"Enter key with 16 letters\");\n char ch[]=new char[s.length()];\n ch=s.toCharArray();\n try\n {\n FileOutputStream f=new FileOutputStream(\"key1.txt\");\n for(i=0;i<ch.length;i++)\n f.write(ch[i]);\n f.close();\n ideaalgo a=new ideaalgo(path1);\n a.procedure();\n a.encrypt();\n BufferedReader d;\n StringBuffer sb=new StringBuffer();\n d=new BufferedReader(new FileReader(path1));\n String line;\n while((line=d.readLine())!=null)\n sb.append(line+\"\\n\");\n ta.setText(sb.toString());\n d.close();\n fin=new FileInputStream(\"enc.txt\");\n do\n \t {\n\t i=fin.read();\n \t if(i!=-1)\n \t\t{\n bytes[j++]=i;\n }\n } while(i!=-1);\n max=j;\n fin.close();\n binarycon();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n }", "public static void main(String[] args) \r\n {\r\n /*\r\n String data = \"This is a very important statement.\";\r\n String key = \"How old is my computer?\";\r\n KeyGenerator kGen = new KeyGenerator(key);\r\n String nK = kGen.getNumericKey();\r\n \r\n ArmstrongManager aMgr = new ArmstrongManager(nK);\r\n ColorManager cMgr = new ColorManager(nK);\r\n \r\n String encData =\"\";\r\n int temp;\r\n int i;\r\n for(i =0 ; i < data.length(); i++)\r\n {\r\n temp = aMgr.encrypt(data.charAt(i));\r\n temp = cMgr.encrypt(temp);\r\n encData = encData + (char)temp;\r\n }\r\n \r\n String decData= \"\";\r\n for(i =0 ; i < encData.length(); i++)\r\n {\r\n temp = cMgr.decrypt(encData.charAt(i));\r\n temp = aMgr.decrypt(temp);\r\n \r\n decData = decData + (char)temp;\r\n }\r\n \r\n \r\n System.out.println(\"data: \"+ data + \" \" + data.length());\r\n System.out.println(\"enc data: \"+ encData + \" \" + encData.length());\r\n System.out.println(\"dec data: \"+ decData + \" \" + decData.length());\r\n */\r\n \r\n try\r\n {\r\n //String src = \"d:/a.txt\";//images/kids.jpg\";\r\n //String enc = \"d:/e_a.txt\";//images/e_kids.jpg\";\r\n //String dec = \"d:/d_a.txt\";//images/d_kids.jpg\";\r\n String src = \"d:/images/kids.jpg\";\r\n String enc = \"d:/images/e_kids.jpg\";\r\n String dec = \"d:/images/d_kids.jpg\";\r\n\r\n String key = \"How old is my computer?\";\r\n\r\n Encryptor objEnc = new Encryptor(key);\r\n Decryptor objDec = new Decryptor(key);\r\n\r\n objEnc.encrypt(src, enc);\r\n System.out.println(\"Encryption Done\");\r\n \r\n objDec.decrypt(enc, dec);\r\n System.out.println(\"Decryption Done\");\r\n \r\n\r\n }\r\n catch(Exception ex)\r\n {\r\n System.out.println(\"Err: \" +ex.getMessage());\r\n }\r\n }", "public byte[] encriptarArchivo (String nombreArchivo, String key, String ruta) throws Exception{\n\n \n FileInputStream fileInputStream = null;\n byte[] encrypted = null;\n File file = new File(nombreArchivo);\n byte[] archivo = new byte[(int) file.length()];\n\n //Convertir archivo a bytes[]\n fileInputStream = new FileInputStream(file);\n fileInputStream.read(archivo);\n //llamada a libreria de encriptacion\n encrypted = encrypt(archivo, key);\n Path archivo_enc = Paths.get(ruta);\n //Creacion de archivo encriptado \n Files.write(archivo_enc, encrypted);\n \n return encrypted;\n \n }", "public void encryptFile(User user) throws InvalidKeyException,\n\t\t\tInvalidAlgorithmParameterException, NoSuchAlgorithmException,\n\t\t\tNoSuchPaddingException, IOException, NoSuchProviderException {\n\t\t\n\t\tCipher cipher = generateCipher();\n\t\t/*if (ivread.exists()) {\n\t\t\tFileInputStream in = new FileInputStream(ivread);\n\t\t\tbyte[] iv = new byte[(int) ivread.length()];\n\t\t\tin.read(iv);\n\t\t\tcipher.init(Cipher.ENCRYPT_MODE, user.passwordKey,\n\t\t\t\t\tnew IvParameterSpec(iv));\n\t\t\tin.close();\n\t\t} else {\n\t\t\tcipher.init(Cipher.ENCRYPT_MODE, user.passwordKey);\n\t\t\tbyte[] iv = cipher.getIV();\n\t\t\tFileOutputStream ivout = new FileOutputStream(user.configDirectory + \"\\\\\" + user.name + \".iv\");\n\t\t\tivout.write(iv);\n\t\t\tivout.close();\n\t\t}*/\n\t\tfor (int counter = 0; counter < user.unencryptedDirectory.containedFiles\n\t\t\t\t.size(); counter++) {// Iterates through directory and ignores a file if it is a directory\n\t\t\tif(!user.unencryptedDirectory.containedFiles.get(counter).isDirectory()){\n\t\t\t\tcipher.init(Cipher.ENCRYPT_MODE, user.passwordKey);\n\t\t\t\tbyte[] iv = cipher.getIV();\n\t\t\t\tFileOutputStream ivout = new FileOutputStream(user.configDirectory + \"\\\\\" + user.unencryptedDirectory.containedFiles.get(counter).toPath().getFileName() + user.name + \"_iv\");\n\t\t\t\tSystem.out.println(user.unencryptedDirectory.containedFiles.get(counter).toPath().getFileName());\n\t\t\t\tivout.write(iv);\n\t\t\t\tivout.close();\n\t\t\t\tBufferedInputStream is = new BufferedInputStream(\n\t\t\t\t\t\tnew FileInputStream(\tuser.unencryptedDirectory.containedFiles.get(counter)));\n\t\t\t\tCipherOutputStream os = new CipherOutputStream(\tnew FileOutputStream(\tuser.encryptedDirectory.location.toAbsolutePath()\t+ \"\\\\\"\n\t\t\t\t\t\t\t\t\t\t+ user.unencryptedDirectory.containedFiles\t.get(counter).getName() + \"\"), cipher);\n\t\t\t\tcopy(is, os);\n\t\t\t\tis.close();\n\t\t\t\tos.close();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "private void encrypt(final String path, final String password, PasswordDeriveData keyData) {\r\n File file = null;\r\n if (path.contains(Environment.getExternalStorageDirectory().getAbsolutePath())) {\r\n file = new File(path);\r\n } else {\r\n file = new File(Environment.getExternalStorageDirectory(), path);\r\n }\r\n System.out.println(file.getAbsolutePath());\r\n\r\n if (!file.exists()) {\r\n showUserInfo(\"file / folder doesn't exist\");\r\n return;\r\n }\r\n\r\n if (password.isEmpty()) {\r\n showUserInfo(\"password cant be empty\");\r\n return;\r\n }\r\n\r\n // if no key is given\r\n if (keyData == null) {\r\n // BUG 1: Key derivation should not be performed outside a foreach block that is using its return value.\r\n // Otherwise all operations in \"encrypt directory\" have the same encryption key\r\n // TODO changed a little bit\r\n try {\r\n keyData = WeakPasswordDerivation.DerivePassword(password);\r\n } catch (NoSuchAlgorithmException | InvalidKeySpecException e) {\r\n showUserInfo(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n if (file.isDirectory()) {\r\n for (File child : file.listFiles()) {\r\n encrypt(child.getAbsolutePath(), password, keyData);\r\n }\r\n } else /* file isn't directory */ {\r\n try {\r\n CryptoWrapper.EncryptFileWithPassword(file, password);\r\n } catch (Throwable e) {\r\n showUserInfo(e.getClass().getSimpleName() + \": \" + e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "public String encryptFile(String fileToEncrypt, String filename) {\n\t\tEncryption encryptFile = new Encryption();\r\n\t\tencryptFile.encrypt(fileToEncrypt, directoryPath + filename);\r\n\t\tencryptedFilePath = directoryPath + filename;\r\n\t\treturn encryptedFilePath;\r\n\t}", "public EncryptorReturn encrypt(String in) throws CustomizeEncryptorException;", "private void prga(){\n int i = 0;\n int a = 0;\n int b = 0;\n StringBuilder sb = new StringBuilder();\n fileEncrypted.clear();\n\n byte[] code = new byte[filePlain.size()];\n while (i<filePlain.size()){\n a = (a + 1) % 256;\n b = (b + s_box.get(a)) % 256;\n Collections.swap(s_box, a, b);\n\n int key_int = s_box.get((s_box.get(a) + s_box.get(b))% 256);\n byte cypher = (byte) (key_int^filePlain.get(i));\n\n fileEncrypted.add(cypher);\n sb.append((char)cypher);\n code[i] = cypher;\n i++;\n }\n\n System.out.println(\"aaa\");\n// export file\n Helper.exportFile(code, extension, true);\n }", "public CryptFile(File file, CryptFile parentFile) {\n this.file = file;\n this.parentFile = parentFile;\n users = new Properties();\n }", "public static byte[] encrypt(byte[] plainFile, String key) throws Exception {\n\n // Generacion IV (Vector de inicializacion)\n int ivSize = 16;\n byte[] iv = new byte[ivSize];\n SecureRandom random = new SecureRandom();\n random.nextBytes(iv);\n IvParameterSpec ivParameterSpec = new IvParameterSpec(iv);\n\n // Generacion de hash de la clave secreta.\n MessageDigest digest = MessageDigest.getInstance(\"SHA-256\"); // SHA-256: Algoritmo de Hashing que genera una clave de 256 bits\n digest.update(key.getBytes(\"UTF-8\"));\n byte[] keyBytes = new byte[16];\n System.arraycopy(digest.digest(), 0, keyBytes, 0, keyBytes.length);\n SecretKeySpec secretKeySpec = new SecretKeySpec(keyBytes, \"AES\");\n\n // Llamado a libreria de cifrado de java.\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec);\n byte[] encrypted = cipher.doFinal(plainFile);\n\n // Agrega IV al vector del archivo encriptado \n byte[] encryptedIVAndText = new byte[ivSize + encrypted.length];\n System.arraycopy(iv, 0, encryptedIVAndText, 0, ivSize);\n System.arraycopy(encrypted, 0, encryptedIVAndText, ivSize, encrypted.length);\n\n return encryptedIVAndText;\n }", "public static void decrypt() throws IOException{\n\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(inFilename));\n\t\tBufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(outFilename));\n\n\t\tbyte[] key; //holds the encryption key\n\n\t\t//get the file length\n\t\tlong fileLength = (new File(inFilename)).length();\n\n\t\t//check the file header marker\n\t\tbyte[] actualHeader = new byte[FILE_HEADER.length];\n\t\tin.read(actualHeader); //read header from the file\n\t\tif (!Arrays.equals(actualHeader, FILE_HEADER)){\n\t\t\tSystem.out.println(\"The file was not encrypted with this program.\");\n\t\t\tSystem.exit(-1); //-1 is an error code\n\t\t}\n\n\t\t/* STAGE 1 - generate decryption key */\n\t\t//read the #padded bits and random salt from the file\n\t\tbyte[] dataFromFile = new byte[129]; //1 byte for #padded bits + 128 bytes for salt\n\t\tin.read(dataFromFile);\n\t\t//separate the #padded bits for use later\n\t\tint numPad = (int)(dataFromFile[0]);\n\t\t//next, generate the message for CubeHash: (password + dataFromFile)\n\t\tbyte[] message = new byte[password.length + dataFromFile.length];\n\t\tSystem.arraycopy(password, 0, message, 0, password.length); //add the password\n\t\tSystem.arraycopy(dataFromFile, 0, message, password.length, dataFromFile.length); //add dataFromFile\n\t\t//finally, (re)generate the encryption key\n\t\tkey = CryptoLib.CubeHash.doCubeHash(message);\n\n\t\t/* STAGE 2 - apply decryption */\n\t\tint currPiece = 0; //keeps track of which piece of the key is being used\n\t\tbyte[] currData = new byte[8]; //holds the data currently being decrypted\n\n\t\t//split the key into 4 pieces of 128 bits each\n\t\tbyte[][] keyPieces = new byte[4][16];\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tSystem.arraycopy(key, i*16, keyPieces[i], 0, 16);\n\t\t}\n\n\t\t//loop through the rest of the file (except the last block), 8 bytes at a time\n\t\tfor (long i = FILE_HEADER.length + 129; i < fileLength - 8; i += 8){\n\t\t\t//put a chunk of data in currData\n\t\t\tin.read(currData);\n\n\t\t\t//do RC4(key, unTEA(key, data)), then write to file\n\t\t\tout.write(CryptoLib.RC4.doRC4(keyPieces[currPiece],\n\t\t\t\t\t\tCryptoLib.TEA.doUnTEA(keyPieces[currPiece], currData)));\n\n\t\t\t//increment currPiece\n\t\t\tcurrPiece = (currPiece + 1) % 4;\n\t\t}\n\n\t\t//deal with the last chunk of data:\n\t\t//first, read it..\n\t\tin.read(currData);\n\t\t//..decrypt it..\n\t\tcurrData = CryptoLib.RC4.doRC4(keyPieces[currPiece],\n\t\t\t\tCryptoLib.TEA.doUnTEA(keyPieces[currPiece], currData));\n\t\t//..then write it to the file\n\t\tout.write(currData, 0, (8 - numPad));\n\n\t\t/* STAGE 3 - done! */\n\t\tin.close();\n\t\tout.close();\n\t\tSystem.out.println(\"\\nDecryption complete.\");\n\t}", "public String dcryptFile(String filename) {\n\t\tEncryption encryptFile = new Encryption();\r\n\t\tencryptFile\r\n\t\t\t\t.decrypt(directoryPath + filename, directoryPath2 + filename);\r\n\t\tdcryptedFilePath = directoryPath2 + filename;\r\n\t\t\r\n\t\tFileService service=new FileService();\r\n\t\tservice.delete(directoryPath+filename);//deleting old encrypted file from server.\r\n\t\t\r\n\t\treturn dcryptedFilePath;\r\n\t}", "public static void encryptFile(File raw, File encryptedFile, String password) throws IOException {\n byte[] b = readBytes(raw);\n String encodedImage = Base64.encodeToString(b, Base64.DEFAULT);\n byte[] encryptedBytes = new RNCryptorNative().encrypt(encodedImage, password);\n writeBytes(encryptedFile, encryptedBytes);\n }", "public static void execEnkripsi(File fileTemp, String pathTempFileEncryptName, String pathEncryptedSecretKeyFile, String pemContent, SimpleDateFormat sdf, String outputFileNameZip) throws Exception{\n String secretKey=RandomStringUtils.randomAlphanumeric(16);\r\n System.out.println(\"Generated Secret Key :\"+secretKey);\r\n File exportedFile;\r\n CompressingUtils compressingUtils = new CompressingUtils();\r\n String tmpPlainZipped = lokasiHasil+\"/tmp\"+outputFileNameZip;\r\n List<File> lsFile = new ArrayList<>();\r\n lsFile.add(fileTemp);\r\n if(compressingUtils.createZipWithoutPassword(lsFile, tmpPlainZipped)){\r\n exportedFile = new File(tmpPlainZipped);\r\n //delete file awal yang telah dikompresi\r\n for(File dfile : lsFile){\r\n dfile.delete();\r\n }\r\n }else{\r\n throw new Exception(\"gagal melakukan kompresi file\");\r\n }\r\n System.out.println(\"file kompresi berhasil dibuat \"+ outputFileNameZip);\r\n\r\n /*Step 3 : enkripsi file dengan kunci acak */\r\n System.out.println(\"Step 3 : enkripsi file dengan kunci acak\");\r\n\r\n\r\n String fileOutputEcnryptedname = lokasiHasil+\"/\"+outputFileNameZip;\r\n\r\n File tempFileEncryptName = new File(pathTempFileEncryptName);\r\n try {\r\n CryptoUtils.encrypt(secretKey, exportedFile, tempFileEncryptName);\r\n } catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi file gagal : \" + e.getMessage());\r\n }\r\n\r\n EncryptionUtils utils = new EncryptionUtils();\r\n PublicKey publicKey = utils.getPublicKeyFromX509(pemContent);\r\n\r\n /*Step 4 : Enkripsi kunci acak dengan public key dari DJP*/\r\n System.out.println(\"Step 4 : enkripsi kunci acak dengan public key dari DJP\");\r\n\r\n String encryptedSecretKey;\r\n try{\r\n encryptedSecretKey = CryptoUtils.encrypt(secretKey, publicKey);\r\n }catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi kunci gagal : \" + e.getMessage());\r\n }\r\n File encryptedSecretKeyFile = new File(pathEncryptedSecretKeyFile);\r\n try {\r\n FileOutputStream outputStream = new FileOutputStream(encryptedSecretKeyFile);\r\n outputStream.write(encryptedSecretKey.getBytes());\r\n outputStream.close();\r\n }catch (FileNotFoundException e){\r\n throw new Exception(\"kunci yang dienkripsi tidak ditemukan : \" + pathEncryptedSecretKeyFile);\r\n } catch (IOException e) {\r\n throw new Exception(\"gagal membentuk kunci enkripsi\");\r\n }\r\n\r\n /*Step 5: Compress data dan key kedalam file zip dan menjadi hasil akhir*/\r\n System.out.println(\"Step 5: Compress enkripsi file dan kunci kedalam file zip\");\r\n\r\n List<File> listFiles = new ArrayList<File>();\r\n listFiles.add(tempFileEncryptName);\r\n listFiles.add(encryptedSecretKeyFile);\r\n\r\n if(listFiles.size() != 2){\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n throw new Exception(\"file enkripsi dan/atau key enkripsi salah satunya tidak ada\");\r\n }\r\n\r\n compressingUtils = new CompressingUtils();\r\n if (compressingUtils.createZip(listFiles, fileOutputEcnryptedname)) {\r\n /*Step 6 : hapus file data dan key, hasil dari step 3 dan 4 */\r\n System.out.println(\"Step 6 : hapus file data dan key, hasil dari step 3 dan 4\");\r\n\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n /*Step 7: hapus file zip, hasil dari step 2 */\r\n System.out.println(\"Step 7: hapus file zip, hasil dari step 2\");\r\n\r\n exportedFile.delete();\r\n }\r\n\r\n System.out.println(\"Proses enkripsi selesai, nama file : \" + fileOutputEcnryptedname);\r\n }", "protected void writeCipherAndIVToFileBase64(CipherIV data, String filename) throws IOException {\n super.saveBytesToFileBase64(filename + CIPHER_PART, data.getCipher());\n super.saveBytesToFileBase64(filename + IV_PART, data.getIv());\n }", "public void runDecrypt(String filePath) {\n try {\n byte[] paramArrayOfbyte = Files.readAllBytes(Paths.get(filePath));\n if (paramArrayOfbyte.length >= 1024 && ((paramArrayOfbyte[0] == 73 && paramArrayOfbyte[1] == 71\n && paramArrayOfbyte[2] == 69 && paramArrayOfbyte[3] == 70)\n || (paramArrayOfbyte[0] == 67 && paramArrayOfbyte[1] == 68 && paramArrayOfbyte[2] == 69\n && paramArrayOfbyte[3] == 70))) {\n // TODO: figure out why it only selects 1024 bytes.\n if (paramArrayOfbyte.length != 1024) {\n byte[] arrayOfByte = new byte[1024];\n System.arraycopy(paramArrayOfbyte, 0, arrayOfByte, 0, 1024);\n paramArrayOfbyte = arrayOfByte;\n }\n\n // Not sure why needing this section?\n byte[] arrayOfByte1 = new byte[12];\n byte[] arrayOfByte2 = new byte[12];\n System.arraycopy(paramArrayOfbyte, 4, arrayOfByte1, 0, 12);\n System.arraycopy(paramArrayOfbyte, 16, arrayOfByte2, 0, 12);\n\n // Init the most important object.\n com.b.a.b.aa.a h = new com.b.a.b.aa.a(new com.b.a.b.aa.b() {\n public byte[] a() {\n return null;\n }\n\n public int b() {\n return 3;\n }\n });\n\n String str1 = (new String(paramArrayOfbyte, 28, 32)).intern();\n // String str2 = a.a(this.n, str1);\n String str2 = Decrypt.DECRYPTION_KEY;\n int i = h.a(str2.getBytes());\n byte[] guessResult = h.b();\n h.b(guessResult); // Digest, this also sets com.b.a.a.aa.a.b. (The hashmap)\n if (i != 0)\n System.out.println(Dumper.dump(h.a(i)));\n else\n System.out.println(\"error in i.\");\n\n // Using the official file reader.\n net.zamasoft.reader.book.a.b randomAccessFile = new net.zamasoft.reader.book.a.b(new File(filePath));\n System.out.println(\"file length: \" + randomAccessFile.length());\n System.out.println(\"key: \" + com.b.a.a.a.c.a.getBLatest());\n ArrayList<Byte> bytes = new ArrayList<>();\n while (!randomAccessFile.isEOF()) {\n byte b = (byte) randomAccessFile.read();\n bytes.add(b);\n }\n assert randomAccessFile.length() == bytes.size();\n byte[] bs = new byte[bytes.size()];\n for (int ii = 0; ii < bs.length; ii++) {\n bs[ii] = bytes.get(ii);\n }\n System.out.println(\"bytes length: \" + bytes.size());\n System.out.println(new String(bs, \"utf-8\"));\n } else {\n System.out.println(\"NOOOOOOOO!\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public void writeKeyData(File f) throws IOException;", "public void runAES(String infoFilePath) {\n System.out.println(\"test\");\n try {\n FileInputStream fileInputStream = new FileInputStream(infoFilePath);\n StringBuffer stringBuffer = new StringBuffer();\n for (int i = fileInputStream.read(); i != 19; i = fileInputStream.read())\n stringBuffer.append((char) i);\n // long l = Long.parseLong(stringBuffer.toString());\n\n // This is the Long object in the `info` file.\n // byte[] builtSecretKey = buildSecretKey(-345585222195293739L);\n byte[] builtSecretKey = buildSecretKey(6874628185188049249L);\n\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n SecretKeySpec secretKeySpec = new SecretKeySpec(messageDigest.digest(builtSecretKey), \"AES\");\n Cipher cipher = Cipher.getInstance(\"AES\");\n cipher.init(2, secretKeySpec);\n ObjectInputStream objectInputStream = new ObjectInputStream(new CipherInputStream(fileInputStream, cipher));\n\n long secretKey = objectInputStream.readLong();\n HashMap<String, com.b.a.b.a> n = (HashMap<String, com.b.a.b.a>) objectInputStream.readObject();\n String k = (String) objectInputStream.readObject();\n String l = (String) objectInputStream.readObject();\n Boolean p = ((Boolean) objectInputStream.readObject()).booleanValue();\n Boolean o = ((Boolean) objectInputStream.readObject()).booleanValue();\n\n // Print everything\n System.out.println(secretKey);\n System.out.println(\"key_info:\");\n for (String key : n.keySet()) {\n com.b.a.b.a a = n.get(key);\n System.out.println(\" \" + key + \":\");\n System.out.println(\" a.a: \" + a.a.a());\n System.out.println(\" b: \" + a.a.b());\n System.out.println(\" c: \" + a.a.c());\n System.out.println(\" d: \" + a.a.d());\n System.out.println(\" e: \" + a.a.e().toString());\n System.out.println(\" f: \" + a.a.f());\n System.out.println(\" a.b: \" + a.b); // This is my key, existing in every file.\n System.out.println(\" a.c: \" + a.c);\n }\n System.out.println(k);\n System.out.println(l);\n System.out.println(p);\n System.out.println(o);\n\n objectInputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "static void encryptCBC(String filename, String key, String IV) {\n try {\n Scanner s = new Scanner(new File(filename + EXT), \"UTF-8\");\n File newFile = new File(filename + \"_CBC\" + EXT);\n newFile.delete();\n newFile.createNewFile();\n PrintWriter w = new PrintWriter(newFile);\n processHeader(s, w);\n cipherBlock = hexStringToBits(IV);\n while (s.hasNext()) {\n readBlock(s);\n block = xor(block, cipherBlock);\n block = stateToBits(AES.encrypt(bitsToHexString(block), key));\n for (int i = 0; i < block.length; i++) {\n cipherBlock[i] = block[i];\n }\n writeBlock(w);\n }\n w.flush();\n w.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void encryptXml(File xmlDocument, File jks, String nazivCert) throws IOException {\n\t\tSecurity.addProvider(new BouncyCastleProvider());\n\t\torg.apache.xml.security.Init.init();\n\n\t\tDocument doc = loadDocument(xmlDocument.getCanonicalPath());\n\t\t// generise tajni kljuc\n\n\t\tSecretKey secretKey = generateDataEncryptionKey();\n\t\t// ucitava sertifikat za kriptovanje tajnog kljuca\n\t\tCertificate cert = readCertificate(jks.getCanonicalPath(), nazivCert);\n\t\t// kriptuje se dokument\n\n\t\tdoc = encrypt(doc, secretKey, cert);\n\t\t// snima se tajni kljuc\n\t\t// snima se dokument\n\t\tsaveDocument(doc, xmlDocument.getCanonicalPath());\n\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtContent.setText(\"\");\n\t\t\t\tif (filename == null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"You haven't selected any files yet!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (cbOption.getSelectedItem().toString() == \"Encrypt\") {\n\t\t\t\t\tswitch (cbAlgorithm.getSelectedItem().toString()) {\n\t\t\t\t\tcase \"AES\":\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tAES.encrypt(keyStr, filename, new File(\"document.encrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.encrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t \ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t} catch (CryptoException | IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong key size. Your key must contain exactly \" + String.valueOf(keyLength/4) +\n\t\t\t\t\t\t\t\t\t\" characters including WS!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"DES\":\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tDES.encrypt(keyStr, filename, new File(\"document.encrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.encrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t \ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t} catch (InvalidKeySpecException | CryptoException | IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong key size. Your key must contain exactly 16 characters including WS!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tkeyPath = cbSelectKey.getSelectedItem().toString();\n\t\t\t\t\t\t\tkeyStr = Base64.getEncoder().encodeToString(RSA.loadPublicKey(URL_DIR + keyPath).getEncoded());\n\t\t\t\t\t\t\tRSA.encrypt(keyStr, filename, new File(\"document.encrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.encrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t\t\ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tswitch (cbAlgorithm.getSelectedItem().toString()) {\n\t\t\t\t\tcase \"AES\":\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tAES.decrypt(keyStr, filename, new File(\"document.decrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.decrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t\t\ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t \thMACLine = line;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t\ttxtFileMac.setText(hMACLine.substring(hMACLine.length() - 64));\n\t\t\t\t\t\t\ttxtCalculatedMac.setText(HMAC.hmacDigestDecrypt(new File(\"document.decrypted\"), keyStr));\n\t\t\t\t\t\t\tlblPercent.setVisible(true);\n\t\t\t\t\t\t\tlblPercent.setText(Integer.toString(ByteDifference(txtFileMac.getText().toCharArray(), txtCalculatedMac.getText().toCharArray())) + \"%\");\n\t\t\t\t\t\t\trewritingHashedFile(new File(\"document.decrypted\"));\n\t\t\t\t\t\t} catch (CryptoException | IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong key size. Your key must contain exactly \" + String.valueOf(keyLength/4) +\n\t\t\t\t\t\t\t\t\t\" characters including WS!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"DES\":\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tDES.decrypt(keyStr, filename, new File(\"document.decrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.decrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t\t\ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t \thMACLine = line;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t\ttxtFileMac.setText(hMACLine.substring(hMACLine.length() - 64));\n\t\t\t\t\t\t\ttxtCalculatedMac.setText(HMAC.hmacDigestDecrypt(new File(\"document.decrypted\"), keyStr));\n\t\t\t\t\t\t\tlblPercent.setVisible(true);\n\t\t\t\t\t\t\tlblPercent.setText(Integer.toString(ByteDifference(txtFileMac.getText().toCharArray(), txtCalculatedMac.getText().toCharArray())) + \"%\");\n\t\t\t\t\t\t\trewritingHashedFile(new File(\"document.decrypted\"));\n\t\t\t\t\t\t} catch (InvalidKeySpecException | CryptoException | IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong key size. Your key must contain exactly 16 characters including WS!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tkeyPath = cbSelectKey.getSelectedItem().toString();\n\t\t\t\t\t\t\tkeyStr = Base64.getEncoder().encodeToString(RSA.loadPrivateKey(URL_DIR + keyPath).getEncoded());\n\t\t\t\t\t\t\tpubKeyStr = Base64.getEncoder().encodeToString(RSA.loadPublicKey(URL_DIR + keyPath.replace(\"PrivateKey\", \"PublicKey\")).getEncoded());\n\t\t\t\t\t\t\tRSA.decrypt(keyStr, filename, new File(\"document.decrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.decrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t \ttxtContent.append(line);\n\t\t\t\t\t\t \ttxtContent.append(\"\\n\");\n\t\t\t\t\t\t \thMACLine = line;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t\ttxtFileMac.setText(hMACLine.substring(hMACLine.length() - 64));\n\t\t\t\t\t\t\ttxtCalculatedMac.setText(HMAC.hmacDigestDecrypt(new File(\"document.decrypted\"), pubKeyStr));\n\t\t\t\t\t\t\tlblPercent.setVisible(true);\n\t\t\t\t\t\t\tlblPercent.setText(Integer.toString(ByteDifference(txtFileMac.getText().toCharArray(), txtCalculatedMac.getText().toCharArray())) + \"%\");\n\t\t\t\t\t\t\trewritingHashedFile(new File(\"document.decrypted\"));\n\t\t\t\t\t\t} catch (InvalidKeySpecException | CryptoException | IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public static void main(String[] args){\n\n String mode = \"enc\";\n String data = \"\";\n String out = \"\";\n String path;\n String alg = \"unicode\";\n int key = 0;\n\n try {\n for (int i = 0; i < args.length; i++) {\n if (args[i].equals(\"-data\") || args[i].equals(\"-in\")) {\n data = args[i + 1];\n }\n if (args[i].equals(\"-mode\")) {\n mode = args[i + 1];\n }\n if (args[i].equals(\"-key\")) {\n key = Integer.parseInt(args[i + 1]);\n }\n if (args[i].equals(\"-out\")) {\n out = args[i + 1];\n }\n if (args[i].equals(\"-alg\")) {\n alg = args[i + 1];\n }\n }\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Missing option\");\n }\n\n File file = new File(data);\n\n if (file.exists() && !file.isDirectory()) {\n path = data;\n\n switch (mode){\n case \"enc\":\n EncryptionContext encryptionContext = new EncryptionContext();\n if(alg.equals(\"shift\")) {\n encryptionContext.setMethod(new ShiftEncryptionMethod());\n } else {\n encryptionContext.setMethod(new UnicodeTableEncryptionMethod());\n }\n data = encryptionContext.encryptFromFile(path, key);\n break;\n\n case \"dec\":\n DecryptionContext decryptionContext = new DecryptionContext();\n if(alg.equals(\"shift\")) {\n decryptionContext.setMethod(new ShiftDecryptionMethod());\n } else {\n decryptionContext.setMethod(new UnicodeTableDecryptionMethod());\n }\n data = decryptionContext.decryptFromFile(path,key);\n break;\n }\n\n } else {\n switch (mode){\n case \"enc\":\n EncryptionContext encryptionContext = new EncryptionContext();\n if(alg.equals(\"shift\")) {\n encryptionContext.setMethod(new ShiftEncryptionMethod());\n } else {\n encryptionContext.setMethod(new UnicodeTableEncryptionMethod());\n }\n data = encryptionContext.encrypt(key, data);\n break;\n\n case \"dec\":\n DecryptionContext decryptionContext = new DecryptionContext();\n if(alg.equals(\"shift\")) {\n decryptionContext.setMethod(new ShiftDecryptionMethod());\n } else {\n decryptionContext.setMethod(new UnicodeTableDecryptionMethod());\n }\n data = decryptionContext.decrypt(key, data);\n break;\n }\n }\n\n if (out.isEmpty()) {\n System.out.println(data);\n } else {\n writeIntoFile(out, data);\n }\n\n }", "byte[] encrypt(final byte[] dataToEncrypt) throws RegBaseCheckedException;", "private void encryptFile(BufferedReader reader, PrintWriter writer) throws IOException {\n while (reader.ready()) {\n String msg = reader.readLine();\n String encMsg = encryptMsg(msg);\n writer.println(encMsg);\n }\n }", "@Override\r\n public void encryptPdf(String src, String dest) throws IOException, DocumentException {\n\r\n }", "public CryptoThread(File file,SecretKeySpec skeySpec) {\r\n\t\tthis.simmetricKey = skeySpec;\r\n\t\tthis.fileToEncrypt = file;\r\n\t\tif (fileToEncrypt!= null) {\r\n\t\t\tthis.start();\r\n\t\t}\r\n\t}", "public static String encrypt(String data){\n\t\tif (data.equals(\"\") || data.equals(\"null\"))\n\t\t\treturn data;\n\t\ttry{\n\t\t\tjavax.crypto.Cipher cipher = javax.crypto.Cipher.getInstance(CIPHER);\n\t\t\tcipher.init(javax.crypto.Cipher.ENCRYPT_MODE, new SecretKeySpec(ENCRYPTION_KEY.getBytes(Charset.forName(\"UTF-8\")), \"AES\"), new IvParameterSpec(new byte[16]));\n\t\t\tbyte[] encryptedBytes = cipher.doFinal(data.getBytes(Charset.forName(\"UTF-8\")));\n\t\t\treturn ENCRYPTION_PREFIX + new String(Base64.encodeBase64(encryptedBytes), Charset.forName(\"UTF-8\"));\n\t\t}catch (Exception e) {\n\t\t\tSystem.err.println( \"Error in EncryptionUtil.encrypt: \" + e );\n\t\t\treturn data;\n\t\t}\n\t}", "public AES(String filePath, boolean isShred)\r\n throws UnsupportedEncodingException, NoSuchAlgorithmException, Exception\r\n {\r\n AES.filePath = filePath;\r\n AES.isShred = isShred;\r\n SecureRandom rand = new SecureRandom(SecureRandom.getSeed((int)System.currentTimeMillis()));\r\n key = keyGen(hash(String.valueOf(rand.nextLong())));\r\n }", "public String encrypt() throws LRException\n\t{\n\t\treturn LUEncrypt.encrypt(getFields(),\n\t\t\t((DataHRecordData)getData()).encryptKey.getStringValue());\n\t}", "Update withEncryption(Encryption encryption);", "@Override\n public InputStream encrypt(InputStream in, EncryptionKey publicKey) throws IOException {\n KeyEncapsulationMechanism.KeyAndCiphertext<SymmetricKey> keyAndCiphertext = kem.encaps(publicKey);\n\n //Serialize the encapsulated key\n byte[] encapsulatedKey = new JSONConverter().serialize(keyAndCiphertext.encapsulatedKey.getRepresentation())\n .getBytes(StandardCharsets.UTF_8);\n\n //Prepare the encapsulated key length as the first four bytes of the ciphertext. That ought to be enough for\n // everybody.\n byte[] keyLenBytes = ByteBuffer.allocate(4).putInt(encapsulatedKey.length).array();\n\n //Return resulting stream that concatenates: keyLenBytes || encapsulatedKey || ciphertextFromSymmetricScheme\n return new SequenceInputStream(new ByteArrayInputStream(keyLenBytes),\n new SequenceInputStream(new ByteArrayInputStream(encapsulatedKey),\n symmetricScheme.encrypt(in, keyAndCiphertext.key)));\n }", "static void encryptECB(String filename, String key) {\n try {\n Scanner s = new Scanner(new File(filename + EXT), \"UTF-8\");\n File newFile = new File(filename + \"_ECB\" + EXT);\n newFile.delete();\n newFile.createNewFile();\n PrintWriter w = new PrintWriter(newFile);\n processHeader(s, w);\n while (s.hasNext()) {\n readBlock(s);\n block = stateToBits(AES.encrypt(bitsToHexString(block), key));\n writeBlock(w);\n }\n w.flush();\n w.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void desencriptarArchivo (String rutaEncriptado, String key, String ruta) throws Exception{\n \n FileInputStream fileInputStream = null;\n File file = new File(rutaEncriptado);\n byte[] archivoEnBytes = new byte[(int) file.length()];\n fileInputStream = new FileInputStream(file);\n fileInputStream.read(archivoEnBytes);\n \n // Llamada a libreria de encriptacion\n byte[] decrypted = decrypt(archivoEnBytes,key);\n \n try {\n // Generacion del archivo desencriptado\n Path archivo = Paths.get(ruta);\n Files.write(archivo, decrypted);\n } catch (IOException e) {\n e.printStackTrace();\n } \n \n }", "public static void Encrypt(File file, Boolean sign, PGPSecretKey secretKey, char[] pass, Boolean encrpyt, PGPPublicKey publicKey)\n {\n\tSecurity.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());\n\t\n\t// fajl koji kriptujem\n\tInputStream fileToEncrypt = null;\n\ttry {\n\t\tfileToEncrypt = new FileInputStream(file);\n\t} catch (FileNotFoundException e) {\n\t}\n\t// fajl u koji cemo smestiti kriptovanu poruku\n\tOutputStream targetFileStream = null;\n\ttry {\n\t\ttargetFileStream = new FileOutputStream(new File(\"C:\\\\Users\\\\Korisnik\\\\Desktop\\\\test.pgp\"));\n\t} catch (FileNotFoundException e) {\n\n\t}\n\t\n\tString targetFileName = \"decript.txt\";\n\tString outputFileName = \"test.pgp\";\n\t\n\t\n\ttry {\n\t\tfEncryptOnePassSignatureLocal(file.getName(), outputFileName, \n\t\t\t\tsecretKey, targetFileStream, pass, publicKey, fileToEncrypt);\n\t} catch (Exception e) {\n // TODO Auto-generated catch block\n\n\t}\n }", "public byte[] encrypt(byte[] input, String publicKeyFilePath) throws Exception {\n\t\treturn encrypt(input, getPublicKey(publicKeyFilePath));\n\t}", "void decryption(String file)\n {\n try\n {\n fdec=new DataOutputStream(new FileOutputStream(\"dec.txt\"));\n fenc1=new FileInputStream(file);\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n try\n {\n size=fenc1.available();\n np=0;\n p=size%8;\n if(p!=0)\n np=8-p;\n size+=np;\n if(p==0)\n nl=size/8;\n else\n nl=size/8+1;\n buf1=new byte[size+10];\n buf=new byte[8];\n fenc1.read(buf1);\n mark=-8;\n int arr[]=new int [8];\n for(k1=0;k1<nl;k1++)\n {\n mark+=8;\n for(int k2=0;k2<8;k2++)\n buf[k2]=buf1[mark+k2];\n for(int k2=0;k2<8;k2++)\n\t {\n\t arr[k2]=0;\n\t if(buf[k2]>=0)\n\t arr[k2]=buf[k2];\n\t else\n\t arr[k2]=buf[k2]+256;\n }\n\t j1=0;i1=0;\n while( i1<=3)\n\t\t {\n\t\t if((j1+1)%2==0)\n\t {\n x[i1]|=arr[j1]; // dividing 64 bit cypher block into four 16 bit registers\n\t i1++;\n\t\t }\n\t else\n\t {\n\t \t x[i1]=arr[j1];\n\t x[i1]<<=8;\n\t }\n\t j1++;\n\t }\n for(int t=0;t<4;t++)\n {\n\t ft1 =x[t]&255;\n\t ft=x[t]>>8;\n\t }\n step1=mul( x[0] , minverse( z[48] ));\n step2=( x[1] + ainverse( z[49] )) % 65536;\n step3=( x[2] + ainverse( z[50] )) % 65536;\n step4=mul( x[3] , minverse( z[51] ));\n step5=step1^step3;\n step6=step2^step4;\n step7=mul(step5,z[46]);\n step8=(step6+step7)%65536;\n step9=mul(step8,z[47]);\n step10=(step7+step9)%65536;\n step11=step1^step9;\n step12=step3^step9;\n step13=step2^step10;\n step14=step4^step10;\n x[0]=step11;\n x[1]=step12;\n x[2]=step13;\n x[3]=step14;\n// 2nd round\n\tint j2=40;\n\t\tfor(j1=1;j1<=7;j1++)\n \t\t {\n step1=mul( x[0] , minverse( z[j2+2] ));\n step2=( x[1] + ainverse( z[j2+4] )) % 65536;\n step3=( x[2] + ainverse( z[j2+3] )) % 65536;\n t=step2;\n step2=step3;\n step3=t;\n step4=mul( x[3] , minverse( z[j2+5] ));\n step5=step1^step3;\n step6=step2^step4;\n step7=mul(step5,z[j2+0]);\n step8=(step6+step7)%65536;\n step9=mul(step8,z[j2+1]);\n step10=(step7+step9)%65536;\n step11=step1^step9;\n step12=step3^step9;\n step13=step2^step10;\n step14=step4^step10;\n x[0]=step11;\n x[1]=step12;\n x[2]=step13;\n x[3]=step14;\n j2=j2-6;\n }\n x[0]=mul(x[0],minverse(z[0]));\n x[1]=(x[1]+ainverse(z[2]))%65536;\n x[2]=(x[2]+ainverse(z[1]))%65536;\n x[3]=mul(x[3],minverse(z[3]));\n t=x[1];\n x[1]=x[2];\n x[2]=t;\n\t for(int t=0;t<4;t++)\n {\n\t ft1 =x[t]&255;\n\t ft=x[t]>>8;\n\t fdec.write((char)ft);\n\t fdec.write((char)ft1);\n\t }\n }\n\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n }", "public static void main(String[] args)\n\t\t\tthrows FileNotFoundException, IOException {\n\t\tFileReader reader=new FileReader();\n\t\tEncryptDencrypt enDencrypt=new EncryptDencrypt();\n\t\tFileWriter writer=new FileWriter();\n\t\t\n\t\tSystem.out.println(\"加密文件:\");\n\t\tString plainStr=reader.read(\"src.txt\");\n\t\tString encryptStr=enDencrypt.encrypt(plainStr);\n\t\twriter.write(encryptStr, \"desprotype.txt\");\n\t\t\n\t\tSystem.out.println(\"解密文件:\");\n\t\tString enStr=reader.read(\"desprotype.txt\");\n\t\tString proStr=enDencrypt.deencrypyt(enStr);\n\t\twriter.write(proStr, \"srcprotype.txt\");\n\t}", "byte[] encrypt(String plaintext);", "private static int[] encrypt(File fileToEncrypt, File keystoreFile)\n\t{\n\n\t\tSecretKey symmetricKey = createSymmetricKey();\n\t\tAlgorithmParameters algoParams = fileEncryption(fileToEncrypt, symmetricKey, fileAfterEncryption);\n\t\treturn createConfigurationFile(fileToEncrypt, configFile, keystoreFile, symmetricKey, algoParams);\n\t}", "public String encrypt(final String clearText)\n throws GeneralSecurityException, IOException {\n final String methodName = \":encrypt\";\n Logger.v(TAG + methodName, \"Starting encryption\");\n\n if (StringExtensions.isNullOrBlank(clearText)) {\n throw new IllegalArgumentException(\"Input is empty or null\");\n }\n\n // load key for encryption if not loaded\n mKey = loadSecretKeyForEncryption();\n mHMACKey = getHMacKey(mKey);\n\n Logger.i(TAG + methodName, \"\", \"Encrypt version:\" + mBlobVersion);\n final byte[] blobVersion = mBlobVersion.getBytes(AuthenticationConstants.ENCODING_UTF8);\n final byte[] bytes = clearText.getBytes(AuthenticationConstants.ENCODING_UTF8);\n\n // IV: Initialization vector that is needed to start CBC\n final byte[] iv = new byte[DATA_KEY_LENGTH];\n mRandom.nextBytes(iv);\n final IvParameterSpec ivSpec = new IvParameterSpec(iv);\n\n // Set to encrypt mode\n final Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM);\n final Mac mac = Mac.getInstance(HMAC_ALGORITHM);\n cipher.init(Cipher.ENCRYPT_MODE, mKey, ivSpec);\n\n final byte[] encrypted = cipher.doFinal(bytes);\n\n // Mac output to sign encryptedData+IV. Keyversion is not included\n // in the digest. It defines what to use for Mac Key.\n mac.init(mHMACKey);\n mac.update(blobVersion);\n mac.update(encrypted);\n mac.update(iv);\n final byte[] macDigest = mac.doFinal();\n\n // Init array to store blobVersion, encrypted data, iv, macdigest\n final byte[] blobVerAndEncryptedDataAndIVAndMacDigest = new byte[blobVersion.length\n + encrypted.length + iv.length + macDigest.length];\n System.arraycopy(blobVersion, 0, blobVerAndEncryptedDataAndIVAndMacDigest, 0,\n blobVersion.length);\n System.arraycopy(encrypted, 0, blobVerAndEncryptedDataAndIVAndMacDigest,\n blobVersion.length, encrypted.length);\n System.arraycopy(iv, 0, blobVerAndEncryptedDataAndIVAndMacDigest, blobVersion.length\n + encrypted.length, iv.length);\n System.arraycopy(macDigest, 0, blobVerAndEncryptedDataAndIVAndMacDigest, blobVersion.length\n + encrypted.length + iv.length, macDigest.length);\n\n final String encryptedText = new String(Base64.encode(blobVerAndEncryptedDataAndIVAndMacDigest,\n Base64.NO_WRAP), AuthenticationConstants.ENCODING_UTF8);\n Logger.v(TAG + methodName, \"Finished encryption\");\n\n return getEncodeVersionLengthPrefix() + ENCODE_VERSION + encryptedText;\n }", "public static void main(String[] args) {\n\t\tFileEncryptor fe = new FileEncryptor();\n\t\tfe.encryptMessage();\n\t}", "public String encrypt(String plainText);", "public CryptObject reencrypt(Ciphertext ciphertext);", "@Override\n\tpublic void Encrypt(Object key) {\n\n\t}", "public EncryptedAttachmentOutputStream(OutputStream out, byte[] key, byte[] iv)\n throws InvalidAlgorithmParameterException, InvalidKeyException, IOException {\n super(out);\n\n // Don't change under our feet\n byte[] keyCopy = Arrays.copyOf(key, key.length);\n byte[] ivCopy = Arrays.copyOf(iv, iv.length);\n\n try {\n\n // Be sure Cipher is valid with passed parameters before writing anything\n Cipher c = Cipher.getInstance(EncryptionConstants.CIPHER);\n c.init(Cipher.ENCRYPT_MODE,\n new SecretKeySpec(keyCopy, EncryptionConstants.KEY_ALGORITHM),\n new IvParameterSpec(ivCopy));\n\n // Write header\n out.write(new byte[]{EncryptionConstants.ATTACHMENT_DISK_VERSION});\n out.write(ivCopy);\n\n // Ready to write the encrypted body\n cipherOutputStream = new CipherOutputStream(out, c);\n\n } catch (NoSuchPaddingException ex) {\n // Should not happen, padding should be supported by every JCE, so wrap in RuntimeEx\n throw new RuntimeException(\"Couldn't initialise crypto engine\", ex);\n } catch (NoSuchAlgorithmException ex) {\n // Should not happen, AES should be supported by every JCE, so wrap in RuntimeException\n throw new RuntimeException(\"Couldn't initialise crypto engine\", ex);\n }\n }", "public interface EncryptorInterface {\n\n\t/**\n\t * Encrypts given string and returns assistant class EncryptorReturn object\n\t * with encrypted strings - to display and to save in file.\n\t * \n\t * @param in\n\t * String to encrypt\n\t * @return EncryptorReturn object with encrypted strings - to display and to\n\t * save in file.\n\t * @throws CustomizeEncryptorException\n\t */\n\tpublic EncryptorReturn encrypt(String in) throws CustomizeEncryptorException;\n\n\t/**\n\t * Decrypts given string and returns assistant class EncryptorReturn object\n\t * with decrypted strings - to display and to save in file.\n\t * \n\t * @param in\n\t * String to decrypt\n\t * @return EncryptorReturn object with decrypted strings - to display and to\n\t * save in file.\n\t * @throws CustomizeEncryptorException\n\t */\n\tpublic EncryptorReturn decrytp(String in) throws CustomizeEncryptorException;\n\n\t/**\n\t * Preprocessing of read from file string intended to be encrypted for\n\t * making it available to display.\n\t * \n\t * @param in\n\t * String which shoul be processed.\n\t * @return Preprocessed string.\n\t */\n\tpublic String preprocessingEncryptToDisplay(String in);\n\n\t/**\n\t * Preprocessing of read from file string intended to be decrypted for\n\t * making it available to display.\n\t * \n\t * @param in\n\t * String which shoul be processed.\n\t * @return Preprocessed string.\n\t */\n\tpublic String preprocessingDecryptToDisplay(String in);\n\n\t/**\n\t * Prepares JDialog widged for customizing this encryptor for being\n\t * available to encrypt file, like providing a password.\n\t * \n\t * @param master\n\t * Master frame on which widget will be displayed.\n\t * @return JDialog with fields needed for customizing encryptor.\n\t */\n\tpublic JDialog getParametersWidget(JFrame master);\n\n}", "private String encrypt(String plainData) throws Exception {\n Key key = generateKey();\n Cipher c = Cipher.getInstance(ALGO);\n c.init(Cipher.ENCRYPT_MODE, key);\n byte[] encValue = c.doFinal(plainData.getBytes());\n return Base64.getEncoder().encodeToString(encValue);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n filePanel.getFrame().getController().decrypt(filePanel.getSource(), filePanel.getDestination());\n }", "public String encrypt(String text) {\n return content.encrypt(text);\n }", "public static byte[] encryptText(String plainText,SecretKey secKey) throws Exception{\n\r\n Cipher aesCipher = Cipher.getInstance(\"AES\");\r\n\r\n aesCipher.init(Cipher.ENCRYPT_MODE, secKey);\r\n\r\n byte[] byteCipherText = aesCipher.doFinal(plainText.getBytes());\r\n\r\n return byteCipherText;\r\n\r\n}", "public static void execEnkripsiBulk(List<File> lsFileTemp, String pathZippedFile, String pathTempFileEncryptName, String pathEncryptedSecretKeyFile, SimpleDateFormat sdf, String pemContent) throws Exception{\r\n /*Step 2 : kompresi file*/\r\n// System.out.println(\"Step 2 : kompresi file\");\r\n\r\n //Generate Secret Key untuk setiap file yang dienkripsi\r\n /**\r\n * Kunci acak 16 Digit, dan setiap pengekripsian harus beda\r\n * contoh : A1b2C3D4E5F6G7h8\r\n * */\r\n String secretKey=RandomStringUtils.randomAlphanumeric(16);\r\n System.out.println(\"Generated Secret Key :\"+secretKey);\r\n\r\n File exportedFile;\r\n CompressingUtils compressingUtils = new CompressingUtils();\r\n String outputTmpFileNameZip = pathZippedFile.replace(\".\",\"\")+\"Tmp.zip\";\r\n String outputFileNameZip = pathZippedFile.replace(\".\",\"\")+sdf.format(new Date())+\".zip\";\r\n\r\n compressingUtils = new CompressingUtils();\r\n if(compressingUtils.createZipWithoutPassword(lsFileTemp, outputTmpFileNameZip)){\r\n exportedFile = new File(outputTmpFileNameZip);\r\n }else{\r\n throw new Exception(\"gagal melakukan kompresi file tanpa password\");\r\n }\r\n\r\n\r\n //delete file hasil enkripsi per file yang telah dimasukan ke dalam file kompresi untuk enkripsi tahap gabungan file\r\n for(File file : lsFileTemp){\r\n file.delete();\r\n }\r\n\r\n System.out.println(\"file kompresi berhasil dibuat \"+ outputFileNameZip);\r\n\r\n /*Step 3 : enkripsi file dengan kunci acak */\r\n System.out.println(\"Step 3 : enkripsi file dengan kunci acak\");\r\n\r\n\r\n String fileOutputEcnryptedname = outputFileNameZip;\r\n\r\n File tempFileEncryptName = new File(pathTempFileEncryptName);\r\n try {\r\n CryptoUtils.encrypt(secretKey, exportedFile, tempFileEncryptName);\r\n } catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi file gagal : \" + e.getMessage());\r\n }\r\n\r\n\r\n EncryptionUtils utils = new EncryptionUtils();\r\n PublicKey publicKey = utils.getPublicKeyFromX509(pemContent);\r\n\r\n /*Step 4 : Enkripsi kunci acak dengan public key dari DJP*/\r\n System.out.println(\"Step 4 : enkripsi kunci acak dengan public key dari DJP\");\r\n\r\n String encryptedSecretKey;\r\n try{\r\n encryptedSecretKey = CryptoUtils.encrypt(secretKey, publicKey);\r\n }catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi kunci gagal : \" + e.getMessage());\r\n }\r\n File encryptedSecretKeyFile = new File(pathEncryptedSecretKeyFile);\r\n try {\r\n FileOutputStream outputStream = new FileOutputStream(encryptedSecretKeyFile);\r\n outputStream.write(encryptedSecretKey.getBytes());\r\n outputStream.close();\r\n }catch (FileNotFoundException e){\r\n throw new Exception(\"kunci yang dienkripsi tidak ditemukan : \" + pathEncryptedSecretKeyFile);\r\n } catch (IOException e) {\r\n throw new Exception(\"gagal membentuk kunci enkripsi\");\r\n }\r\n\r\n /*Step 5: Compress data dan key kedalam file zip dan menjadi hasil akhir*/\r\n System.out.println(\"Step 5: Compress enkripsi file dan kunci kedalam file zip\");\r\n\r\n List<File> listFiles = new ArrayList<File>();\r\n listFiles.add(tempFileEncryptName);\r\n listFiles.add(encryptedSecretKeyFile);\r\n\r\n if(listFiles.size() != 2){\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n throw new Exception(\"file enkripsi dan/atau key enkripsi salah satunya tidak ada\");\r\n }\r\n\r\n compressingUtils = new CompressingUtils();\r\n if (compressingUtils.createZip(listFiles, fileOutputEcnryptedname)) {\r\n /*Step 6 : hapus file data dan key, hasil dari step 3 dan 4 */\r\n System.out.println(\"Step 6 : hapus file data dan key, hasil dari step 3 dan 4\");\r\n\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n /*Step 7: hapus file zip, hasil dari step 2 */\r\n System.out.println(\"Step 7: hapus file zip, hasil dari step 2\");\r\n\r\n exportedFile.delete();\r\n }\r\n\r\n System.out.println(\"Proses enkripsi selesai, nama file : \" + fileOutputEcnryptedname);\r\n }", "@Override\n public <T> byte[] serialize( final T obj )\n throws IOException\n {\n final byte[] unencrypted = serializer.serialize(obj);\n return encrypt(unencrypted);\n }", "public EnigmaFile() throws Exception\n {\n\n String path = Main.class.getClassLoader().getResource(\"filein.txt\").getPath();\n File currentDirectory=new File(path);\n finstream = new FileInputStream(currentDirectory);\n\n\n String pathToWrite = path.replaceFirst(\"filein.txt\",\"fileout.txt\");\n File outputFile = new File(pathToWrite);\n br = new BufferedReader(new InputStreamReader(finstream));\n outputFile.createNewFile();\n FileWriter fileWrite = new FileWriter(outputFile.getAbsoluteFile());\n writer = new BufferedWriter(fileWrite);\n\n\n }", "public void loadKey(File in, File privateKeyFile) throws GeneralSecurityException, IOException {\n\t byte[] encodedKey = new byte[(int)privateKeyFile.length()];\n\t FileInputStream is = new FileInputStream(privateKeyFile);\n\t is.read(encodedKey);\n\t \n\t // create private key\n\t PKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(encodedKey);\n\t KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n\t PrivateKey pk = kf.generatePrivate(privateKeySpec);\n\t \n\t // read AES key\n\t pkCipher.init(Cipher.DECRYPT_MODE, pk);\n\t aesKey = new byte[256/8];\n\t CipherInputStream cis = new CipherInputStream(new FileInputStream(in), pkCipher);\n\t cis.read(aesKey);\n\t aesKeySpec = new SecretKeySpec(aesKey, \"AES\");\n\t cis.close();\n\t is.close();\n\t }", "public String encryptWithUser(String data){\n String userId = getUserService().getCurrentUser().getUid();\n Pair pair = new Pair(data, userId);\n\n //Encrypt pair\n String strData;\n try {\n strData = mapper.writeValueAsString(pair);\n SecureToken secureToken = new SecureToken(strData, System.currentTimeMillis());\n return getSecureTokenService().encryptData(secureToken);\n } catch (JsonProcessingException e) {\n LOG.error(e);\n }\n return null;\n }", "public String encrypt() {\n StringBuilder encryptedText = new StringBuilder();\n //Make sure the key is valid.\n if (key < 0 || key > 25) {\n Log.d(\"TAG\", \"encrypt: Error in Keu=y \");\n return \"Key Must be 0 : 25\";\n }\n if (plaintext.length() <= 0) {\n Log.d(\"TAG\", \"encrypt: Error in Plain\");\n return \"Error in Plaintext\";\n }\n //Eliminates any whitespace and non alpha char's.\n plaintext = plaintext.trim();\n plaintext = plaintext.replaceAll(\"\\\\W\", \"\");\n if (plaintext.contains(\" \")) {\n plaintext = plaintext.replaceAll(\" \", \"\");\n }\n //Makes sure that all the letters are uppercase.\n plaintext = plaintext.toUpperCase();\n Log.i(\"Caesar\", \"encrypt: plainis : \" + plaintext);\n for (int i = 0; i < plaintext.length(); i++) {\n char letter = plaintext.charAt(i);\n if (charMap.containsKey(letter) && charMap.get(letter) != null) {\n int lookUp = (charMap.get(letter) + key) % 26;\n encryptedText.append(encryptionArr[lookUp]);\n }\n }\n Log.d(\"Caesar.java\", \"encrypt: the Data is \" + encryptedText.toString());\n return encryptedText.toString();\n }", "public synchronized void encryptText() {\n setSalt(ContentCrypto.generateSalt());\n try {\n mText = ContentCrypto.encrypt(mText, getSalt(), Passphrase.INSTANCE.getPassPhrase().toCharArray());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public abstract void setEncryptMode();", "public String encrypt(String geheimtext);", "@Override\n public void encrypt() {\n algo.encrypt();\n String cypher = vigenereAlgo(true);\n this.setValue(cypher);\n }", "public boolean encrypt(FileInputStream inputStream, FileOutputStream destinationStream) throws IOException {\r\n\t\tint read;\r\n\t\tCipherInputStream cis = null;\r\n\t\ttry {\r\n\t\t\tCipher encipher = Cipher.getInstance(\"AES\");\r\n\t\t\tencipher.init(Cipher.ENCRYPT_MODE, simmetricKey);\r\n\t\t\tcis = new CipherInputStream(inputStream, encipher);\r\n\t\t\t// Reads until reaches end of file\r\n\t\t\tsynchronized (cis) {\r\n\t\t\t\twhile ((read = cis.read()) != -1) {\r\n\t\t\t\t\tdestinationStream.write((char) read);\r\n\t\t\t\t\t//destinationStream.flush(); it bugs everything,cipher calls it automatic\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException | NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(500);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tif (cis != null) {\r\n\t\t\t\tcis.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public File decryptFile(File input) throws IOException, NoSuchProviderException {\n return input;\n }", "public void decrypt() {\n try {\n // Create input and output streams\n System.out.println(\"Loading files\");\n FileInputStream in = new FileInputStream(this.input);\n FileOutputStream out = new FileOutputStream(this.output);\n\n // Skip IV values\n in.getChannel().position(cipher.getBlockSize());\n\n /*\n Using CipherInputStream object to read from encrypted file\n cipherIn reads data from input stream and and returns the decrypted value\n */\n System.out.println(\"Creating cipher stream\");\n CipherInputStream cipherIn = new CipherInputStream(in, this.cipher);\n\n System.out.println(\"Starting file decryption\");\n byte[] buffer = new byte[Common.BLOCK_SIZE];\n int len;\n // Reading from the input stream\n while ((len = cipherIn.read(buffer)) != -1)\n // Write the decrypted message to output stream\n out.write(buffer, 0, len);\n\n // Close all streams\n System.out.println(\"Closing file streams\");\n cipherIn.close();\n out.flush();\n out.close();\n\n System.out.println(\"Decryption complete\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "public static String encrypt(String data, Keys keys) throws GeneralSecurityException {\n Cipher cipher = Cipher.getInstance(ENC_SYSTEM);\n\n // Generate a random IV\n SecureRandom rng = new SecureRandom();\n byte[] ivBytes = new byte[ENC_BLOCKSIZE];\n rng.nextBytes(ivBytes);\n String iv = encodeToBase64(ivBytes);\n\n // Encrypt\n cipher.init(Cipher.ENCRYPT_MODE, keys.getEncKey(), new IvParameterSpec(ivBytes));\n byte[] bytes = data.getBytes();\n String cipherText = encodeToBase64(cipher.doFinal(bytes));\n\n // Calculate the MAC for the ciphertext and IV\n String dataToAuth = iv + \":\" + cipherText;\n String mac = computeMac(dataToAuth, keys.getMacKey());\n\n return mac + \":\" + dataToAuth;\n }", "WithCreate withEncryption(Encryption encryption);", "public void setOwnerKey(byte[] o) throws IOException\n {\n COSString owner = new COSString();\n owner.append( o );\n encryptionDictionary.setItem( COSName.getPDFName( \"O\" ), owner );\n }", "void encrypt()\n {\n try\n {\n size=fin.available();\n p=size%8;\n if(p!=0)\n np=8-p;\n size+=np;\n if(p==0)\n nl=size/8;\n else\n nl=size/8+1;\n buf=new byte[8];\n buf1=new byte[size+10];\n fin.read(buf1);\n int enc[]=new int[size];\n mark=-8;\n k2=0;\n for(k=0;k<nl;k++)\n {\n mark+=8;\n for(int k1=0;k1<8;k1++)\n buf[k1]=buf1[mark+k1];\n i=0;\n\t for(i=0;i<4;i++)\n x[i]=0;\n\t j1=0;i1=0;\n while( i1<=3)\n {\n\t if((j1+1)%2==0)\n\t {\n\t x[i1]|=buf[j1]; // dividing 64 bit cipher block into four 16 bit registers\n\t i1++;\n\t\t }\n\t else\n {\n\t x[i1]=buf[j1];\n\t x[i1]<<=8;\n }\n j1++;\n\t }\n // 7 rounds and 14 steps\n for(i=0 ; i <48 ; )\n {\n step1=mul(x[0],z[i+0]);\n step2=(x[1]+z[i+1])%65536;\n step3=(x[2]+z[i+2])%65536;\n step4=mul(x[3],z[i+3]);\n step5=step1^step3;\n step6=step2^step4;\n step7=mul(step5,z[i+4]);\n step8=(step6+step7)%65536;\n step9=mul(step8,z[i+5]);\n step10=(step7+step9)%65536;\n step11=step1^step9;\n step12=step3^step9;\n step13=step2^step10;\n step14=step4^step10;\n x[0]=step11;\n x[1]=step13;\n x[2]=step12;\n x[3]=step14;\n i=i+6;\n }\n x[0]=mul(x[0],z[48]);\n x[1]=(x[1]+z[49])%65536;\n x[2]=(x[2]+z[50])%65536;\n x[3]=mul(x[3],z[51]);\n for(int t=0;t<4;t++)\n {\n ft1 =x[t]&255;\n ft=x[t]>>8;\n fenc.write((char)ft);\n fenc.write((char)ft1);\n }\n}\nfin.close();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n}", "@Test\n\tpublic void doEncrypt() {\n\t\tString src = \"18903193260\";\n\t\tString des = \"9oytDznWiJfLkOQspiKRtQ==\";\n\t\tAssert.assertEquals(Encryptor.getEncryptedString(KEY, src), des);\n\n\t\t/* Encrypt some plain texts */\n\t\tList<String> list = new ArrayList<String>();\n\t\tlist.add(\"18963144219\");\n\t\tlist.add(\"13331673185\");\n\t\tlist.add(\"18914027730\");\n\t\tlist.add(\"13353260117\");\n\t\tlist.add(\"13370052053\");\n\t\tlist.add(\"18192080531\");\n\t\tlist.add(\"18066874640\");\n\t\tlist.add(\"15357963496\");\n\t\tlist.add(\"13337179174\");\n\t\tfor (String str : list) {\n\t\t\tSystem.out.println(Encryptor.getEncryptedString(KEY, str));\n\t\t}\n\t}", "public static void main(String[] args) throws Exception {\n\n String inFile = args[0];\n String outFile = args[1];\n\n CryptoEngine cryptoEngine = new CryptoEngine(inFile, outFile);\n cryptoEngine.encrypt();\n cryptoEngine.decrypt();\n }", "public String encrypt(String input) throws Throwable {\n\n byte[] inputByteArray = input.getBytes();\n String keyString = \"\";\n\n // reading the public key\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(\n new InputStreamReader(context.getAssets().open(\"Put your public key in assets and Enter its name here\"), \"UTF-8\"));\n String line;\n while ((line = reader.readLine()) != null) {\n keyString += line;\n }\n reader.close();\n }catch (IOException e){\n Toast.makeText(context, \"Couldn't create file reader\", Toast.LENGTH_SHORT).show();\n }\n\n // fetching the key from public key\n keyString = keyString.replaceAll(NEW_LINE_CHARACTER, EMPTY_STRING)\n .replaceAll(PUBLIC_KEY_START_KEY_STRING, EMPTY_STRING)\n .replaceAll(PUBLIC_KEY_END_KEY_STRING, EMPTY_STRING);\n\n byte[] publicKey = keyString.getBytes();\n\n Key generatePublic = KeyFactory.getInstance(\"RSA\").\n generatePublic(new X509EncodedKeySpec(Base64.getDecoder().decode(publicKey)));\n\n // create RSA Cipher instance\n Cipher cipherInstance = Cipher.getInstance(\"RSA/None/PKCS1Padding\");\n cipherInstance.init(Cipher.ENCRYPT_MODE, generatePublic);\n\n // encrypt string\n byte[] encryptedByteArray = cipherInstance.doFinal(inputByteArray);\n return Base64.getEncoder().encodeToString(encryptedByteArray);\n }", "@Override\n int doCryptoOperation(byte[] arrby, byte[] object) throws BadPaddingException, IllegalBlockSizeException {\n if (this.encrypting) {\n if (!this.usingPrivateKey) return NativeCrypto.RSA_public_encrypt(arrby.length, arrby, (byte[])object, this.key.getNativeRef(), this.padding);\n return NativeCrypto.RSA_private_encrypt(arrby.length, arrby, (byte[])object, this.key.getNativeRef(), this.padding);\n }\n try {\n if (!this.usingPrivateKey) return NativeCrypto.RSA_public_decrypt(arrby.length, arrby, (byte[])object, this.key.getNativeRef(), this.padding);\n return NativeCrypto.RSA_private_decrypt(arrby.length, arrby, (byte[])object, this.key.getNativeRef(), this.padding);\n }\n catch (SignatureException signatureException) {\n object = new IllegalBlockSizeException();\n ((Throwable)object).initCause(signatureException);\n throw object;\n }\n }", "public void setEncryptedData(java.lang.String encryptedData) {\r\n this.encryptedData = encryptedData;\r\n }", "public void decryptFile(String fitxerEncriptat, SecretKey clave, String fitxerDesencriptat) throws FileNotFoundException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IOException, IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterException {\r\n //Creamos el FileInputStream\r\n FileInputStream fis = new FileInputStream(fitxerEncriptat);\r\n //Creamos el FileOutputStream para escribir en el fichero.\r\n FileOutputStream fos = new FileOutputStream(new File(fitxerDesencriptat));\r\n \r\n //Creamos un descifrador para descifrar el texto del fichero Encriptado.\r\n Cipher descifrador = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\r\n IvParameterSpec iv = new IvParameterSpec(cadena_iv.getBytes());\r\n descifrador.init(Cipher.DECRYPT_MODE, clave, iv);\r\n\r\n byte[] buffer = new byte[1024];\r\n int bytes;\r\n \r\n //Utilizamos un bucle para ir leyendo el archivo de texto Encriptado que le hemos pasado.\r\n while((bytes = fis.read(buffer, 0, buffer.length))!=-1){\r\n byte [] update = descifrador.update(buffer, 0, bytes);\r\n fos.write(descifrador.doFinal());\r\n }\r\n \r\n //Cerramos recursos.\r\n fos.write(descifrador.doFinal());\r\n fis.close();\r\n fos.close();\r\n \r\n \r\n }", "public void encrypt(byte[] vanillaInformation){\n SecretKey symmetricKey = getSymmetricEncryption().createSecretKey();\n getSymmetricEncryption().encrypt(symmetricKey, vanillaInformation);\n setEncryptedInformation(getSymmetricEncryption().getEncryptedInformation());\n\n //encrypt symmetric key with user public key\n try {\n Cipher symmetricKeyEncryption = Cipher.getInstance(\"RSA\");\n symmetricKeyEncryption.init(Cipher.ENCRYPT_MODE, getPublicKey());\n setEncryptedSymmetricKey(symmetricKeyEncryption.doFinal(symmetricKey.getEncoded()));\n } catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IllegalBlockSizeException | BadPaddingException e) {\n e.printStackTrace();\n }\n }", "public String encrypt(String plaintext) {\n\t\tCipher rsaCipher, aesCipher;\n\t\ttry {\n\t\t\t// Create AES key\n\t\t\tKeyGenerator keyGen = KeyGenerator.getInstance(\"AES\");\n\t\t\tkeyGen.init(AES_BITS);\n\t\t\tKey aesKey = keyGen.generateKey();\n\n\t\t\t// Create Random IV\n\t\t\tbyte[] iv = SecureRandom.getSeed(16);\n\t\t\tIvParameterSpec ivSpec = new IvParameterSpec(iv);\n\n\t\t\t// Encrypt data using AES\n\t\t\taesCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t\t\taesCipher.init(Cipher.ENCRYPT_MODE, aesKey, ivSpec);\n\t\t\tbyte[] data = aesCipher.doFinal(plaintext.getBytes());\n\n\t\t\t// Encrypt AES key using RSA public key\n\t\t\trsaCipher = Cipher.getInstance(\"RSA/NONE/PKCS1Padding\");\n\t\t\trsaCipher.init(Cipher.ENCRYPT_MODE, this.pubKey);\n\t\t\tbyte[] encKey = rsaCipher.doFinal(aesKey.getEncoded());\n\n\t\t\t// Create output\n\t\t\tString keyResult = new String(Base64.encodeBytes(encKey, 0));\n\t\t\tString ivResult = new String(Base64.encodeBytes(iv, 0));\n\t\t\tString dataResult = new String(Base64.encodeBytes(data, 0));\n\t\t\tString result = FORMAT_ID + \"|\" + VERSION + \"|\" + this.keyId + \"|\"\n\t\t\t\t\t+ keyResult + \"|\" + ivResult + \"|\" + dataResult;\n\t\t\treturn Base64.encodeBytes(result.getBytes(), Base64.URL_SAFE);\n\t\t} catch (InvalidKeyException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchPaddingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalBlockSizeException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (BadPaddingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidAlgorithmParameterException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn \"Encryption_Failed\";\n\t}", "public void encrypt(String key, InputStream inputDataStream, OutputStream outDataStream) throws IOException, InvalidCipherTextException {\n bcAES = new BouncyCastleAPI_AES_CBC(key.getBytes(), initializationVector);\n bcAES.InitCiphers();\n bcAES.CBCEncrypt(inputDataStream, outDataStream);\n }" ]
[ "0.7590779", "0.74889916", "0.6948923", "0.66403896", "0.66238797", "0.65312135", "0.64785975", "0.6444758", "0.6433625", "0.64292634", "0.6344537", "0.62394446", "0.6223398", "0.6196672", "0.61700046", "0.6112123", "0.6070471", "0.6002381", "0.59916097", "0.5973589", "0.5961214", "0.5941417", "0.58779895", "0.5876971", "0.58623", "0.58268607", "0.5812448", "0.5800854", "0.5794665", "0.5772575", "0.57660747", "0.57479936", "0.57294965", "0.57113606", "0.5691334", "0.5625828", "0.5557155", "0.55454326", "0.5530787", "0.55073166", "0.5506001", "0.54769987", "0.5459083", "0.5436327", "0.5427507", "0.54172117", "0.540653", "0.5384399", "0.5375626", "0.5374233", "0.53663224", "0.5365277", "0.5356082", "0.5349675", "0.53461915", "0.5337455", "0.53166664", "0.53149205", "0.5313131", "0.5310941", "0.5306128", "0.5292232", "0.5291163", "0.5268135", "0.5258186", "0.5254644", "0.524964", "0.5236799", "0.52352273", "0.5221586", "0.52205527", "0.520728", "0.52030635", "0.5202666", "0.5200565", "0.5197337", "0.5194461", "0.5145662", "0.51412463", "0.51183164", "0.5116874", "0.51158094", "0.51058555", "0.50922793", "0.5084576", "0.508364", "0.50713605", "0.5065626", "0.5063636", "0.50528705", "0.5048092", "0.5036295", "0.5032501", "0.5027258", "0.50204974", "0.5012916", "0.50053936", "0.500032", "0.49964362", "0.49906594" ]
0.52898574
63
This method returns an instance of Cipher according to the input giving for algorithm and its provider
private Cipher createCipher() throws NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException { if (algorithmProvider != null && !(algorithmProvider.equals("")) && algorithm != null && !(algorithm.equals(""))) { /* if there is an entered algorithm and its provider, * return the Cipher's instance of it */ return Cipher.getInstance(algorithm, algorithmProvider); } else if (algorithm != null && !(algorithm.equals(""))) { /* if there is only algorithm entered, * return the Cipher's instance of it using default provider */ return Cipher.getInstance(algorithm); } else { /* if there is isn't an algorithm entered, * return an AES in CBC mode Cipher as default */ return Cipher.getInstance("AES//CBC//PKCS5Padding"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Optional<Cipher> getCipher(int mode, byte[] iv) {\n Optional<Cipher> result = Optional.empty();\n\n Cipher cipher = null;\n try {\n cipher = Cipher.getInstance(this.algorithmMode);\n\n IvParameterSpec ivParameterSpec = new IvParameterSpec(iv);\n AlgorithmParameters parameters =\n AlgorithmParameters.getInstance(this.algorithm);\n parameters.init(ivParameterSpec);\n\n cipher.init(mode, this.key, parameters);\n result = Optional.of(cipher);\n } catch (NoSuchAlgorithmException e) {\n log.error(\"Could not find cipher mode: `{}`\", e.getMessage());\n log.debug(e.toString());\n } catch (NoSuchPaddingException e) {\n log.error(\"Could not find padding type: `{}`\", e.getMessage());\n log.debug(e.toString());\n } catch (InvalidKeyException e) {\n log.error(\"Encryption key is invalid: `{}`\", e.getMessage());\n log.debug(e.toString());\n } catch (InvalidParameterSpecException e) {\n log.error(\"Algorithm parameter spec invalid: `{}`\", e.getMessage());\n log.debug(e.toString());\n } catch (InvalidAlgorithmParameterException e) {\n log.error(\"Algorithm parameters invalid: `{}`\", e.getMessage());\n log.debug(e.toString());\n }\n\n return result;\n}", "public interface Cipher {\n\n /*\n return key of the cipher\n */\n int getKey();\n\n /*\n set key of the cipher\n */\n void setKey(int key);\n\n /*\n cipher text/char based on the key\n */\n char cipher(int charToCipher);\n\n /*\n decipher text/char based on the key\n */\n char decipher(int charToDeCipher);\n}", "private static Cipher getCipher(int mode, String key) {\n\t\tCipher mCipher;\r\n\t\tbyte[] keyPtr = new byte[KEYSIZEAES128];\r\n\t\tIvParameterSpec ivParam = new IvParameterSpec(keyPtr);\r\n\t\tbyte[] passPtr = key.getBytes();\r\n\t\ttry {\r\n\t\t\tmCipher = Cipher.getInstance(TYPE + \"/CBC/PKCS5Padding\");\r\n\t\t\tfor (int i = 0; i < KEYSIZEAES128; i++) {\r\n\t\t\t\tif (i < passPtr.length)\r\n\t\t\t\t\tkeyPtr[i] = passPtr[i];\r\n\t\t\t\telse\r\n\t\t\t\t\tkeyPtr[i] = 0;\r\n\t\t\t}\r\n\t\t\tSecretKeySpec keySpec = new SecretKeySpec(keyPtr, TYPE);\r\n\t\t\tmCipher.init(mode, keySpec, ivParam);\r\n\t\t\treturn mCipher;\r\n\t\t} catch (InvalidKeyException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NoSuchAlgorithmException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (NoSuchPaddingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (InvalidAlgorithmParameterException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public Cipher()\n {\n CodecInterface base64UriCodec = new Base64UriCodec();\n AsymmetricBlockCipher rsaCipher = new OAEPEncoding(\n new RSAEngine(),\n new SHA1Digest()\n );\n BufferedBlockCipher aesCipher = new PaddedBufferedBlockCipher(\n new CBCBlockCipher(new AESEngine()),\n new PKCS7Padding()\n );\n Digest sha1Digest = new SHA1Digest();\n SecureRandom random = new SecureRandom();\n\n this.encryptionCipher = new EncryptionCipher(\n base64UriCodec,\n rsaCipher,\n aesCipher,\n sha1Digest,\n random\n );\n this.decryptionCipher = new DecryptionCipher(\n base64UriCodec,\n rsaCipher,\n aesCipher,\n sha1Digest\n );\n }", "default Cipher cipher() {\n return null;\n }", "public Cipher generateCipher() throws NoSuchAlgorithmException,\n\t\t\tNoSuchPaddingException, NoSuchProviderException {\n\t\tCipher cipher = Cipher.getInstance(\"AES/GCM/NoPadding\", \"BC\");\n\t\treturn cipher;\n\t}", "public AEADBlockCipher newInstance()\n {\n final BlockCipher blockCipher = new BlockCipherSpec(algorithm).newInstance();\n AEADBlockCipher aeadBlockCipher;\n if (\"GCM\".equals(mode)) {\n aeadBlockCipher = new GCMBlockCipher(blockCipher);\n } else if (\"CCM\".equals(mode)) {\n aeadBlockCipher = new CCMBlockCipher(blockCipher);\n } else if (\"OCB\".equals(mode)) {\n aeadBlockCipher = new OCBBlockCipher(blockCipher, new BlockCipherSpec(algorithm).newInstance());\n } else if (\"EAX\".equals(mode)) {\n aeadBlockCipher = new EAXBlockCipher(blockCipher);\n } else {\n throw new IllegalStateException(\"Unsupported mode \" + mode);\n }\n return aeadBlockCipher;\n }", "public interface EncryptionAlgorithm {\n\n public String encrypt(String plaintext);\n\n}", "public CaesarCipherOne(int key) {this.key=key;}", "public void CreateCipher() {\n String key = \"IWantToPassTAP12\"; // 128 bit key\n aesKey = new javax.crypto.spec.SecretKeySpec(key.getBytes(), \"AES\");\n try {\n this.cipher = Cipher.getInstance(\"AES\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "Algorithm createAlgorithm();", "public interface CipherAlgorithm<\n Self extends CipherAlgorithm<Self>\n > extends CryptoAlgorithm {\n\n String name();\n\n Cipher<Self> defaultCipherAlgorithm();\n}", "public IDetectionAlgorithm createInstance();", "public interface ICryptoEngine \n{\n\t/**\n\t * Initialize the \n\t * \n\t * @param forEncryption should the engine be initialized for encryption (true) or decryption (false)\n\t * @param key - symmetric encryption key\n\t * \n\t * @throws IllegalStateException - if any initialization parameters are invalid\n\t */\n\tpublic void init(boolean forEncryption, byte[] key) throws IllegalStateException;\n\t\n\t/**\n\t * @return name of the encryption algorithm\n\t */\n\tpublic String getAlgorithmName();\n\t\n\t/**\n\t * @return block size of the encryption algorithm\n\t */\n\tpublic int getBlockSize();\n\t\n\t/**\n\t * Performs an encryption or decryption of a block.\n\t * The amount of processed data depends on the actual algorithm's block size \n\t * \n\t * @param in - buffer with the data to be processed\n\t * @param inOff - starting position of the data at 'in'\n\t * @param out - preallocated buffer to store the processed data\n\t * @param outOff - starting position at 'out'\n\t * \n\t * @return size of processed data (typically algorithm's block size)\n\t * \n\t * @throws IllegalStateException if engine was not initialized or buffers are invalid\n\t */\n\tpublic int processBlock(byte[] in, int inOff, byte[] out, int outOff) throws IllegalStateException;\n\t\n\t/**\n\t * Resets the encryption engine (if required by the implementation)\n\t */\n\tpublic void reset();\n}", "public interface ICrypto\n{\n\t/**\n\t *\n\t * @return\ttrue for Public/Private key and false for password style encryption\n\t */\n\tboolean isPublic();\n\n\t/**\n\t * @param clearText\t\tClear text\n\t * @return\t\t\t\tStringized (BasicBase64) version of the cipher for the clear text\n\t */\n\tString encrypt(String clearText);\n\n\t/**\n\t * @param cipherText\tClear text\n\t * @return\t\t\t\tClear text from the stringized (BasicBase64) version of the cipherTetxt\n\t */\n\tString decrypt(String cipherText);\n\n\t/**\n\t * @return\tThe cryptography algorithm\n\t */\n\tString getAlgorithm();\n\n\t/**\n\t *\n\t * @return\tThe name by which this combination algorithm/key are known.\n\t */\n\tString getAliasName();\n}", "public EncryptorReturn decrytp(String in) throws CustomizeEncryptorException;", "public static Cipher getCypher(int mode) throws NoSuchAlgorithmException, NoSuchPaddingException,\r\n InvalidKeyException {\n Key aesKey = new SecretKeySpec(ENC_KEY.getBytes(), \"AES\");\r\n Cipher cipher = Cipher.getInstance(\"AES\");\r\n // encrypt the text\r\n cipher.init(mode, aesKey);\r\n return cipher;\r\n }", "public static CipherAlgorithm getCipherAlgorithm(UUID cipherUuid) {\n for (CipherAlgorithm ca : values()) {\n if (ca.getCipherUuid().equals(cipherUuid)) {\n return ca;\n }\n }\n throw new IllegalArgumentException(\"Unknown Cipher UUID\");\n }", "@Test\n public void determine_what_provider_JRE_selected_for_our_Cipher() throws Exception {\n Cipher cipher = Cipher.getInstance(\"Blowfish/ECB/NoPadding\");\n System.out.println(cipher.getProvider());\n /**\n * Or we can create our Cipher asking the JRE to get a specific implementation\n * of an algorithim from a given provider, e.g. BC\n */\n Cipher bc = Cipher.getInstance(\"Blowfish/ECB/NoPadding\", \"BC\"); //or\n // Cipher bc = Cipher.getInstance(\"Blowfish/ECB/NoPadding\", Security.getProvider(\"BC\")); //or\n System.out.println(bc.getProvider());\n }", "static Algorithm createSystem(String sys, Config cfg) {\n switch (sys.toLowerCase()) {\n case \"shift\":\n return new CaesarCipher(cfg.getKey());\n case \"unicode\":\n return new UnicodeCipher(cfg.getKey());\n default:\n throw new IllegalArgumentException(String.format(\"Invalid algorithm %s\\n\", sys));\n }\n }", "public Cipher getCipherAES() throws NoSuchPaddingException, NoSuchAlgorithmException {\n return Cipher.getInstance(\"AES_256/ECB/PKCS5Padding\");\n }", "private static BlockCipherFactory getBlockCipherFactory() {\n\t\tBlockCipherFactory[] factories = AES.factories;\n\n\t\tif (factories == null) {\n\t\t\t// A single instance of each well-known BlockCipherFactory\n\t\t\t// implementation will be initialized i.e. the attempt to initialize\n\t\t\t// BlockCipherFactory instances will be made once only.\n\t\t\tAES.factories = factories = new BlockCipherFactory[FACTORY_CLASSES.length];\n\n\t\t\tint i = 0;\n\n\t\t\tfor (Class<?> clazz : FACTORY_CLASSES) {\n\t\t\t\ttry {\n\t\t\t\t\tif (BlockCipherFactory.class.isAssignableFrom(clazz)) {\n\t\t\t\t\t\tBlockCipherFactory factory;\n\n\t\t\t\t\t\tif (BouncyCastleBlockCipherFactory.class.equals(clazz))\n\t\t\t\t\t\t\tfactory = BOUNCYCASTLE_FACTORY;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tfactory = (BlockCipherFactory) clazz.newInstance();\n\n\t\t\t\t\t\tfactories[i++] = factory;\n\t\t\t\t\t}\n\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\tif (t instanceof InterruptedException)\n\t\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t\telse if (t instanceof ThreadDeath)\n\t\t\t\t\t\tthrow (ThreadDeath) t;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tRandom random = AES.random;\n\t\tbyte[] key = AES.key;\n\t\tbyte[] in = AES.in;\n\n\t\trandom.nextBytes(key);\n\t\trandom.nextBytes(in);\n\n\t\tCipherParameters params = new KeyParameter(key);\n\t\tint blockSize = BLOCK_SIZE;\n\t\tint inEnd = in.length - blockSize + 1;\n\t\tbyte[] out = AES.out;\n\t\tlong minTime = Long.MAX_VALUE;\n\t\tBlockCipherFactory minFactory = null;\n\n\t\tfor (int f = 0; f < factories.length; ++f) {\n\t\t\tBlockCipherFactory factory = factories[f];\n\n\t\t\ttry {\n\t\t\t\tBlockCipher cipher = factory.createBlockCipher();\n\n\t\t\t\tif (cipher == null) {\n\t\t\t\t\t// The BlockCipherFactory failed to initialize a new\n\t\t\t\t\t// BlockCipher instance. We will not use it again because\n\t\t\t\t\t// the failure may persist.\n\t\t\t\t\tfactories[f] = null;\n\t\t\t\t} else {\n\t\t\t\t\tcipher.init(true, params);\n\n\t\t\t\t\tlong startTime = System.nanoTime();\n\n\t\t\t\t\tfor (int inOff = 0; inOff < inEnd; inOff = inOff + blockSize) {\n\t\t\t\t\t\tcipher.processBlock(in, inOff, out, 0);\n\t\t\t\t\t}\n\t\t\t\t\t// We do not invoke the method BlockCipher.reset() so we do\n\t\t\t\t\t// not need to take it into account in the benchmark.\n\n\t\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\t\tlong time = endTime - startTime;\n\n\t\t\t\t\tif (time < minTime) {\n\t\t\t\t\t\tminTime = time;\n\t\t\t\t\t\tminFactory = factory;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Throwable t) {\n\t\t\t\tif (t instanceof InterruptedException)\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\telse if (t instanceof ThreadDeath)\n\t\t\t\t\tthrow (ThreadDeath) t;\n\t\t\t}\n\t\t}\n\t\treturn minFactory;\n\t}", "java.lang.String getCryptProvider();", "@FunctionalInterface\npublic interface CipherDecryptor {\n\t//Used to decrypt with a provided key\n\tpublic String decrypt(String key);\n\t\n}", "public static BlockCipher createBlockCipher() {\n\t\tBlockCipherFactory factory;\n\n\t\tsynchronized (AES.class) {\n\t\t\tlong now = System.currentTimeMillis();\n\n\t\t\tfactory = AES.factory;\n\t\t\tif ((factory != null) && (now > factoryTimestamp + FACTORY_TIMEOUT))\n\t\t\t\tfactory = null;\n\t\t\tif (factory == null) {\n\t\t\t\ttry {\n\t\t\t\t\tfactory = getBlockCipherFactory();\n\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\tif (t instanceof InterruptedException) {\n\t\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t\t} else if (t instanceof ThreadDeath) {\n\t\t\t\t\t\tthrow (ThreadDeath) t;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlogger.warn(\"Failed to initialize an optimized AES\" + \" implementation: \" + t.getLocalizedMessage());\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tif (factory == null) {\n\t\t\t\t\t\tfactory = AES.factory;\n\t\t\t\t\t\tif (factory == null)\n\t\t\t\t\t\t\tfactory = BOUNCYCASTLE_FACTORY;\n\t\t\t\t\t}\n\n\t\t\t\t\tAES.factory = factory;\n\t\t\t\t\tAES.factoryTimestamp = now;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\treturn factory.createBlockCipher();\n\t\t} catch (Exception ex) {\n\t\t\tif (ex instanceof RuntimeException)\n\t\t\t\tthrow (RuntimeException) ex;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(ex);\n\t\t}\n\t}", "public Encryptor(){\n\t\tSecurity.addProvider(new BouncyCastleProvider());\n\t}", "Encryption encryption();", "char cipher(int charToCipher);", "@org.junit.Test\n public void testCipher() {\n Assert.assertEquals(\"DITISGEHEIM\", Vigenere.cipher(\"DITISGEHEIM\", \"A\", true));\n Assert.assertEquals(\"DITISGEHEIM\", Vigenere.cipher(\"DITISGEHEIM\", \"A\", false));\n\n Assert.assertEquals(\"B\", Vigenere.cipher(\"A\", \"B\", true));\n Assert.assertEquals(\"A\", Vigenere.cipher(\"B\", \"B\", false));\n\n String plain = \"DUCOFIJMA\";\n String key = \"ABC\";\n String shouldEncryptTo = \"DVEOGKJNC\";\n String actualEncrypted = Vigenere.cipher(plain, key, true);\n Assert.assertEquals(shouldEncryptTo, actualEncrypted);\n String decrypted = Vigenere.cipher(shouldEncryptTo, key, false);\n Assert.assertEquals(plain, decrypted);\n }", "public interface EncryptionMethod {\n /**\n * Returns the algorithm applied to the cipher data.\n *\n * @return the encryption algorithm.\n */\n String getAlgorithm();\n\n /**\n * Returns the key size of the key of the algorithm applied to the cipher\n * data.\n *\n * @return the key size.\n */\n int getKeySize();\n\n /**\n * Sets the size of the key of the algorithm applied to the cipher data.\n *\n * @param size the key size.\n */\n void setKeySize(int size);\n\n /**\n * Returns the OAEP parameters of the algorithm applied applied to the\n * cipher data.\n *\n * @return the OAEP parameters.\n */\n byte[] getOAEPparams();\n\n /**\n * Sets the OAEP parameters.\n *\n * @param parameters the OAEP parameters.\n */\n void setOAEPparams(byte[] parameters);\n\n /**\n * Set the Digest Algorithm to use\n * @param digestAlgorithm the Digest Algorithm to use\n */\n void setDigestAlgorithm(String digestAlgorithm);\n\n /**\n * Get the Digest Algorithm to use\n * @return the Digest Algorithm to use\n */\n String getDigestAlgorithm();\n\n /**\n * Set the MGF Algorithm to use\n * @param mgfAlgorithm the MGF Algorithm to use\n */\n void setMGFAlgorithm(String mgfAlgorithm);\n\n /**\n * Get the MGF Algorithm to use\n * @return the MGF Algorithm to use\n */\n String getMGFAlgorithm();\n\n /**\n * Returns an iterator over all the additional elements contained in the\n * <code>EncryptionMethod</code>.\n *\n * @return an <code>Iterator</code> over all the additional information\n * about the <code>EncryptionMethod</code>.\n */\n Iterator<Element> getEncryptionMethodInformation();\n\n /**\n * Adds encryption method information.\n *\n * @param information additional encryption method information.\n */\n void addEncryptionMethodInformation(Element information);\n\n /**\n * Removes encryption method information.\n *\n * @param information the information to remove from the\n * <code>EncryptionMethod</code>.\n */\n void removeEncryptionMethodInformation(Element information);\n}", "public Algorithm getAlgorithm(String type)\n\t{\n\t\tif(type.equalsIgnoreCase(\"PCC\"))\n\t\t\treturn new AlgorithmPCC();\n\t\telse if(type.equalsIgnoreCase(\"Cosine\"))\n\t\t\treturn new AlgorithmCosine();\n\t\telse if(type.equalsIgnoreCase(\"DotProduct\"))\n\t\t\treturn new AlgorithmDotProduct();\n\t\t\n\t\telse \n\t\t\treturn null;\n\t}", "public CryptoProvider() {\n super(\"Crypto\", 1.0, \"HARMONY (SHA1 digest; SecureRandom; SHA1withDSA signature)\");\n put(\"SecureRandom.SHA1PRNG\",\n \"org.apache.harmony.security.provider.crypto.SHA1PRNG_SecureRandomImpl\");\n put(\"SecureRandom.SHA1PRNG ImplementedIn\", \"Software\");\n }", "public CryptoProvider() {\n super(\"Crypto\", 1.0, \"HARMONY (SHA1 digest; SecureRandom; SHA1withDSA signature)\");\n put(\"SecureRandom.SHA1PRNG\",\n \"org.apache.harmony.security.provider.crypto.SHA1PRNG_SecureRandomImpl\");\n put(\"SecureRandom.SHA1PRNG ImplementedIn\", \"Software\");\n }", "public CryptoProvider() {\n super(\"Crypto\", 1.0, \"HARMONY (SHA1 digest; SecureRandom; SHA1withDSA signature)\");\n put(\"SecureRandom.SHA1PRNG\",\n \"org.apache.harmony.security.provider.crypto.SHA1PRNG_SecureRandomImpl\");\n put(\"SecureRandom.SHA1PRNG ImplementedIn\", \"Software\");\n }", "public Cipher(\n EncryptionCipherInterface encryptionCipher,\n DecryptionCipherInterface decryptionCipher\n ) {\n this.encryptionCipher = encryptionCipher;\n this.decryptionCipher = decryptionCipher;\n }", "WithCreate withEncryption(Encryption encryption);", "private void generateCipher()\n {\n for (int i = 0; i < 26; i++)\n {\n if (((i + shiftKey) < 26) && ((i + shiftKey) >= 0))\n {\n cipherAlphabet[i] = Alphabet[i + shiftKey];\n }\n else\n {\n cipherAlphabet[i] = Alphabet[(i + shiftKey) - 26];\n }\n } \n }", "public Cryptor(int xcryptMode){\n this(AUTO_DETECT_ALGORITHM,xcryptMode);\n }", "public EncryptionCipherInterface encryptionCipher()\n {\n return this.encryptionCipher;\n }", "public EncryptorReturn encrypt(String in) throws CustomizeEncryptorException;", "public String rotationCipherCrack(String cipher, String alphabet);", "public static String breakCipher(String input) {\n int key = getKey(input);\n System.out.println(\"Found key: \"+key);\n CaesarCipherOne cc = new CaesarCipherOne(key);\n return cc.decrypt(input);\n \n }", "public interface Cipher<R, E> {\n\n /**\n * Encrypts a message.\n *\n * @param raw the message to be encrypted\n * @return the encrypted message\n */\n E encrypt(R raw);\n\n /**\n * Decrypts a message.\n *\n * @param encrypted the encrypted message\n * @return the decrypted message\n */\n R decrypt(E encrypted);\n}", "private static Cipher getEncryptionCipher(byte[] salt, byte[] iv)\n throws GeneralSecurityException, IOException {\n\n // key is a static password + random salt, iv is random\n byte[] password = InputOperations\n .cryptPassword(Constants.CIPHER_PASSWORD + new String(salt, Constants.FILE_ENCODING));\n SecretKey secretKey = new SecretKeySpec(password, Constants.CIPHER);\n\n Cipher cipher = Cipher.getInstance(Constants.CIPHER_PADDING);\n if (iv == null) {\n cipher.init(Cipher.ENCRYPT_MODE, secretKey);\n } else {\n cipher.init(Cipher.DECRYPT_MODE, secretKey, new IvParameterSpec(iv));\n }\n return cipher;\n }", "public SunJCEBlockCipherFactory() {\n\t\t\tsuper(\"AES_128/ECB/NoPadding\", \"SunJCE\");\n\t\t}", "public org.bouncycastle.crypto.BlockCipher getUnderlyingCipher() {\n\t}", "private static Map<CryptoAlgorithm, String> createExactCipherMapping() {\n HashMap<CryptoAlgorithm, String> map = new HashMap<>();\n map.put(CryptoAlgorithm.AES_CBC, \"AES/CBC/PKCS5PADDING\");\n return Collections.unmodifiableMap(map);\n }", "public static Crypto getInstance() throws UnsupportedEncodingException, NoSuchAlgorithmException{\n\t\tsynchronized(lock){\n\t\t\tif(instance==null){\n\t\t\t\tinstance = new Crypto();\n\t\t\t}\n\t\t\treturn instance;\n\t\t}\n\t}", "protected CryptoProvider() {\n\n super(\"Crypto\", 1.0, \"HARMONY (SHA1 digest; SecureRandom; SHA1withDSA signature)\");\n put(\"SecureRandom.SHA1PRNG\",\"org.apache.harmony.security.provider.crypto.SHA1PRNG_SecureRandomImpl\");\n put(\"SecureRandom.SHA1PRNG ImplementedIn\", \"Software\");\n }", "public PLEncrypterDecrypter( String textParms )\n {}", "private static synchronized Provider getProvider() throws Exception {\n\t\t\tProvider provider = SunPKCS11BlockCipherFactory.provider;\n\n\t\t\tif ((provider == null) && useProvider) {\n\t\t\t\ttry {\n\t\t\t\t\tClass<?> clazz = Class.forName(\"sun.security.pkcs11.SunPKCS11\");\n\n\t\t\t\t\tif (Provider.class.isAssignableFrom(clazz)) {\n\t\t\t\t\t\tConstructor<?> contructor = clazz.getConstructor(String.class);\n\n\t\t\t\t\t\t// The SunPKCS11 Config name should be unique in order\n\t\t\t\t\t\t// to avoid repeated initialization exceptions.\n\t\t\t\t\t\tString name = null;\n\t\t\t\t\t\tPackage pkg = AES.class.getPackage();\n\n\t\t\t\t\t\tif (pkg != null)\n\t\t\t\t\t\t\tname = pkg.getName();\n\t\t\t\t\t\tif (name == null || name.length() == 0)\n\t\t\t\t\t\t\tname = \"org.jitsi.impl.neomedia.transform.srtp\";\n\n\t\t\t\t\t\tprovider = (Provider) contructor.newInstance(\"--name=\" + name + \"\\\\n\" + \"nssDbMode=noDb\\\\n\" + \"attributes=compatibility\");\n\t\t\t\t\t}\n\t\t\t\t} finally {\n\t\t\t\t\tif (provider == null)\n\t\t\t\t\t\tuseProvider = false;\n\t\t\t\t\telse\n\t\t\t\t\t\tSunPKCS11BlockCipherFactory.provider = provider;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn provider;\n\t\t}", "char decipher(int charToDeCipher);", "private Decryptor createDecryptor(String decryptorClass) {\n\t\tif(decryptor != null) {\n\t\t\treturn decryptor;\n\t\t}\n\n\t\tif (logger.isTraceEnabled()) {\n\t\t\tlogger.trace(\"creating decryptor {}\", decryptorClass);\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tClass<?> typeClass = Class.forName(decryptorClass);\n\t\t\t\n\t\t\tif (!typeClass.isInterface()) {\n\t\t\t\treturn (Decryptor) typeClass.getConstructor().newInstance();\n\t\t\t}else {\n\t\t\t\tlogger.error(\"Please specify an implementing class of com.networknt.decrypt.Decryptor.\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\tthrow new RuntimeException(\"Unable to construct the decryptor due to lack of decryption password.\", e);\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "String getAlgorithm();", "org.openxmlformats.schemas.presentationml.x2006.main.STAlgClass xgetCryptAlgorithmClass();", "public Cryptor(int algorithm, int xcryptMode) {\n //Checks if the algorithm supplied is valid\n ALGORITHM = algorithm;\n MODE = xcryptMode;\n if (algorithm != DES_ALGORITHM && algorithm != T3DES_ALGORITHM & algorithm != AUTO_DETECT_ALGORITHM) {\n throw new RuntimeException(\"Invalid Algorithm Mode Supplied\");\n }\n if (xcryptMode != ENCRYPT_MODE && xcryptMode != DECRYPT_MODE) {\n throw new RuntimeException(\"Invalid Cipher Mode Supplied\");\n }\n\n }", "org.openxmlformats.schemas.presentationml.x2006.main.STAlgClass.Enum getCryptAlgorithmClass();", "private static Cipher obtieneCipher(boolean paraCifrar, String clave) throws Exception {\r\n // final String frase = \"FraseLargaConDiferentesLetrasNumerosYCaracteresEspeciales_áÁéÉíÍóÓúÚüÜñÑ1234567890!#%$&()=%_NO_USAR_ESTA_FRASE!_\";\r\n final MessageDigest digest = MessageDigest.getInstance(\"SHA-1\");\r\n digest.update(clave.getBytes(\"UTF-8\"));\r\n final SecretKeySpec key = new SecretKeySpec(digest.digest(), 0, 16, \"AES\");\r\n\r\n final Cipher aes = Cipher.getInstance(\"AES/ECB/PKCS5Padding\");\r\n if (paraCifrar) {\r\n aes.init(Cipher.ENCRYPT_MODE, key);\r\n } else {\r\n aes.init(Cipher.DECRYPT_MODE, key);\r\n }\r\n\r\n return aes;\r\n }", "public Cipher getCipherRSA() throws NoSuchPaddingException, NoSuchAlgorithmException {\n return Cipher.getInstance(\"RSA/NONE/PKCS1Padding\");\n }", "public SunPKCS11BlockCipherFactory() throws Exception {\n\t\t\tsuper(\"AES_128/ECB/NoPadding\", getProvider());\n\t\t}", "@Deprecated\r\n\tpublic NewCipher(String key)\r\n\t{\r\n\t\tthis(key.getBytes());\r\n\t}", "private EncryptionKey() {\n }", "public DecryptionCipherInterface decryptionCipher()\n {\n return this.decryptionCipher;\n }", "private AES() {\r\n\r\n }", "public VigenereCipher(String password,Alphabet alphabet) {\n super(alphabet); //call to parent class\n this.password = password;\n }", "public void setup(Map attributes) {\n // find out which cipher algorithm to use\n boolean newCipher = true;\n String underlyingCipher = (String) attributes.get(CIPHER);\n if (underlyingCipher == null) {\n if (cipher == null) { // happy birthday\n // ensure we have a reliable implementation of this cipher\n cipher = CipherFactory.getInstance(Registry.RIJNDAEL_CIPHER);\n } else { // we already have one. use it as is\n newCipher = false;\n }\n } else { // ensure we have a reliable implementation of this cipher\n cipher = CipherFactory.getInstance(underlyingCipher);\n }\n\n // find out what block size we should use it in\n int cipherBlockSize = 0;\n Integer bs = (Integer) attributes.get(IBlockCipher.CIPHER_BLOCK_SIZE);\n if (bs != null) {\n cipherBlockSize = bs.intValue();\n } else {\n if (newCipher) { // assume we'll use its default block size\n cipherBlockSize = cipher.defaultBlockSize();\n } // else use as is\n }\n\n // get the key material\n byte[] key = (byte[]) attributes.get(IBlockCipher.KEY_MATERIAL);\n if (key == null) {\n throw new IllegalArgumentException(IBlockCipher.KEY_MATERIAL);\n }\n\n // now initialise the cipher\n HashMap map = new HashMap();\n if (cipherBlockSize != 0) { // only needed if new or changed\n map.put(IBlockCipher.CIPHER_BLOCK_SIZE, new Integer(cipherBlockSize));\n }\n map.put(IBlockCipher.KEY_MATERIAL, key);\n try {\n cipher.init(map);\n } catch (InvalidKeyException x) {\n throw new IllegalArgumentException(IBlockCipher.KEY_MATERIAL);\n }\n\n // at this point we have an initialised (new or otherwise) cipher\n // ensure that remaining params make sense\n\n cipherBlockSize = cipher.currentBlockSize();\n BigInteger counterRange = TWO_FIFTY_SIX.pow(cipherBlockSize);\n\n // offset, like the underlying cipher key is not cloneable\n // always look for it and throw an exception if it's not there\n Object obj = attributes.get(OFFSET);\n // allow either a byte[] or a BigInteger\n BigInteger r;\n if (obj instanceof BigInteger) {\n r = (BigInteger) obj;\n } else { // assume byte[]. should be same length as cipher block size\n byte[] offset = (byte[]) obj;\n if (offset.length != cipherBlockSize) {\n throw new IllegalArgumentException(OFFSET);\n }\n\n r = new BigInteger(1, offset);\n }\n\n int wantBlockNdxLength = -1; // number of octets in the block index\n Integer i = (Integer) attributes.get(BLOCK_INDEX_LENGTH);\n if (i != null) {\n wantBlockNdxLength = i.intValue();\n if (wantBlockNdxLength < 1) {\n throw new IllegalArgumentException(BLOCK_INDEX_LENGTH);\n }\n }\n\n int wantSegmentNdxLength = -1; // number of octets in the segment index\n i = (Integer) attributes.get(SEGMENT_INDEX_LENGTH);\n if (i != null) {\n wantSegmentNdxLength = i.intValue();\n if (wantSegmentNdxLength < 1) {\n throw new IllegalArgumentException(SEGMENT_INDEX_LENGTH);\n }\n }\n\n // if both are undefined check if it's a reuse\n if ((wantBlockNdxLength == -1) && (wantSegmentNdxLength == -1)) {\n if (blockNdxLength == -1) { // new instance\n throw new IllegalArgumentException(BLOCK_INDEX_LENGTH+\", \"+SEGMENT_INDEX_LENGTH);\n } // else reuse old values\n } else { // only one is undefined, set it to BLOCK_LENGTH/2 minus the other\n int limit = cipherBlockSize / 2;\n if (wantBlockNdxLength == -1) {\n wantBlockNdxLength = limit - wantSegmentNdxLength;\n } else if (wantSegmentNdxLength == -1) {\n wantSegmentNdxLength = limit - wantBlockNdxLength;\n } else if ((wantSegmentNdxLength + wantBlockNdxLength) > limit) {\n throw new IllegalArgumentException(BLOCK_INDEX_LENGTH+\", \"+SEGMENT_INDEX_LENGTH);\n }\n // save new values\n blockNdxLength = wantBlockNdxLength;\n segmentNdxLength = wantSegmentNdxLength;\n }\n\n // get the segment index as a BigInteger\n BigInteger s = (BigInteger) attributes.get(SEGMENT_INDEX);\n if (s == null) {\n if (segmentNdx == null) { // segment index was never set\n throw new IllegalArgumentException(SEGMENT_INDEX);\n }\n // reuse; check if still valid\n if (segmentNdx.compareTo(TWO_FIFTY_SIX.pow(segmentNdxLength)) > 0) {\n throw new IllegalArgumentException(SEGMENT_INDEX);\n }\n } else {\n if (s.compareTo(TWO_FIFTY_SIX.pow(segmentNdxLength)) > 0) {\n throw new IllegalArgumentException(SEGMENT_INDEX);\n }\n segmentNdx = s;\n }\n\n // The initial counter of the keystream segment with segment index s is\n // defined as follows, where r denotes the Offset:\n //\n // C[0] = (s * (256^BLOCK_INDEX_LENGTH) + r) modulo (256^BLOCK_LENGTH)\n //\n C0 = segmentNdx\n .multiply(TWO_FIFTY_SIX.pow(blockNdxLength))\n .add(r)\n .modPow(BigInteger.ONE, counterRange);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic CollaborativeDecryption (DCOPProblemInterface<?, C> problem, Element parameters)\n\tthrows ClassNotFoundException, NoSuchMethodException {\n\t\t\n\t\tthis.problem = problem;\n\t\t\n\t\tClass<? extends CryptoScheme<C,E,K>> cryptoClass;\n\t\t\n\t\t// Create the CryptoScheme\n\t\tif (parameters == null) {\n\t\t\tSystem.err.println(\"Warning! No CryptoScheme specified; using the FakeCryptoScheme that does not actually protect privacy.\");\n\t\t\tcryptoClass = (Class<? extends CryptoScheme<C, E, K>>) FakeCryptoScheme.class;\n\t\t}else {\n\t\t\tElement cryptoParams = parameters.getChild(\"cryptoScheme\");\n\t\t\tif (cryptoParams == null) {\n\t\t\t\tSystem.err.println(\"Warning! No CryptoScheme specified; using the FakeCryptoScheme that does not actually protect privacy.\");\n\t\t\t\tcryptoClass = (Class<? extends CryptoScheme<C, E, K>>) FakeCryptoScheme.class;\n\t\t\t} else {\n\t\t\t\tcryptoClass = (Class<? extends CryptoScheme<C, E, K>>) Class.forName(cryptoParams.getAttributeValue(\"className\"));\n\t\t\t\tthis.cryptoParameter = cryptoParams;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthis.cryptoConstr = cryptoClass.getConstructor(Element.class);\n\t}", "private AES() {\n }", "public abstract StandaloneAlgorithm createAlgorithm();", "public String cipher() {\n int[] r1taps = {13, 16, 17, 18};\n int[] r2taps = {20, 21};\n int[] r3taps = {7, 20, 21, 22};\n\n // Set register size and majority bits\n final int R1 = 19;\n final int R1M = 8;\n final int R2 = 22;\n final int R2M = 10;\n final int R3 = 23;\n final int R3M = 10;\n\n // Initialize variables\n String bs = \"\";\n byte[] key = HexStringToBytes(symKey);\n BitSet keySet = new BitSet();\n BitSet keyStream = new BitSet();\n BitSet messageSet = new BitSet();\n\n // Create a byte array length of sample message\n byte[] messageArray = new byte[message.length()];\n\n // Convert the sample message to a byte array\n try {\n messageArray = message.getBytes(\"ISO-8859-1\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n\n // Convert message sample byte array to string\n String as = \"\";\n for (int i = 0; i < messageArray.length; i++) {\n byte b1 = messageArray[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n as += s;\n }\n\n // Convert string of bits to a BitSet\n messageSet = BitStringToBitSet(as);\n\n // Creates string from key byte array\n for (int i = 0; i < 8; i++) {\n byte b1 = key[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n bs += s;\n }\n\n // Convert string of bits to a BitSet\n keySet = BitStringToBitSet(bs);\n\n // Initialize registers\n BitSet r1 = new BitSet();\n BitSet r2 = new BitSet();\n BitSet r3 = new BitSet();\n\n // Process key into registers\n for (int i = 0; i < 64; i++) {\n r1 = ShiftSet(r1, R1, keySet.get(i) ^ Tap(r1, r1taps));\n r2 = ShiftSet(r2, R2, keySet.get(i) ^ Tap(r2, r2taps));\n r3 = ShiftSet(r3, R3, keySet.get(i) ^ Tap(r3, r3taps));\n }\n\n // Clock additional 100 times for additional security (GSM standard)\n for (int i = 0; i < 100; i++) {\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n }\n\n // Create keystream as long as the sample message\n for (int i = 0; i < message.length() * 8; i++) {\n\n // Get keystream bit\n keyStream.set(i, r1.get(R1 - 1) ^ r2.get(R2 - 1) ^ r3.get(R3 - 1));\n\n // Shift majority registers\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n\n }\n\n // XOR the message with the created keystream and return as string\n messageSet.xor(keyStream);\n return BitStringToText(ReturnSet(messageSet, message.length() * 8));\n }", "public EncryptionAlgorithms()\n\t{\n\t\tkexAlgs = new LinkedList<KexAlgs>();\n\t\tcipherAlgs = new LinkedList<Ciphers>();\n\t\thmacAlgs = new LinkedList<Hmacs>();\n\t\tcompAlgs = new LinkedList<CompAlgs>();\n\t}", "public static java.security.AlgorithmParameterGenerator getInstance(java.lang.String r1) throws java.security.NoSuchAlgorithmException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.AlgorithmParameterGenerator.getInstance(java.lang.String):java.security.AlgorithmParameterGenerator, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.getInstance(java.lang.String):java.security.AlgorithmParameterGenerator\");\n }", "public Vigenere(EncryptionDecorator encrypt) {\n algo = encrypt;\n }", "@Component\npublic interface Crypto {\n // returns a new secret key\n String newKey();\n\n // encrypts a plain text\n byte[] encrypt(String plaintext);\n\n // decrypts a cipher\n byte[] decrypt(byte[] encryptedData, short keyIx);\n\n // gets the index of the encryption key to use - 0 = no key, 1 or 2 for the two available keys\n short getKeyIx();\n\n // gets the index of the default key\n short getDefaultKeyIx();\n\n // gets the date after which the default key is no longer valid\n String getDefaultKeyExpiry();\n}", "private static byte[] crypt(byte[] input, byte[] key, int mode) throws Exception {\n Provider sunJce = new net.munki.util.security.SunJCE();\r\n Security.addProvider(sunJce);\r\n \r\n javax.crypto.KeyGenerator kgen = javax.crypto.KeyGenerator.getInstance(\"Blowfish\");\r\n\r\n kgen.init(448);\r\n SecretKey skey = kgen.generateKey();\r\n\r\n byte[] raw = key;\r\n SecretKeySpec skeySpec = new SecretKeySpec(raw, \"Blowfish\");\r\n \r\n Cipher cipher = Cipher.getInstance(\"Blowfish/ECB/PKCS5Padding\");\r\n cipher.init(mode, skeySpec);\r\n\r\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\r\n ByteArrayInputStream bis = new ByteArrayInputStream(input);\r\n CipherOutputStream cos = new CipherOutputStream(bos, cipher);\r\n\r\n int length = 0;\r\n byte[] buffer = new byte[8192];\r\n\r\n while ((length = bis.read(buffer)) != -1) {\r\n cos.write(buffer, 0, length);\r\n }\r\n\r\n bis.close();\r\n cos.close();\r\n\r\n return bos.toByteArray();\r\n }", "public interface AsymmetricBlockCipher {\n /**\n * initialise the cipher.\n *\n * @param forEncryption if true the cipher is initialised for\n * encryption, if false for decryption.\n * @param param the key and other data required by the cipher.\n */\n public void init(boolean forEncryption, CipherParameters param);\n\n /**\n * returns the largest size an input block can be.\n *\n * @return maximum size for an input block.\n */\n public int getInputBlockSize();\n\n /**\n * returns the maximum size of the block produced by this cipher.\n *\n * @return maximum size of the output block produced by the cipher.\n */\n public int getOutputBlockSize();\n\n /**\n * process the block of len bytes stored in in from offset inOff.\n *\n * @param in the input data\n * @param inOff offset into the in array where the data starts\n * @param len the length of the block to be processed.\n * @return the resulting byte array of the encryption/decryption process.\n * @throws InvalidCipherTextException data decrypts improperly.\n * @throws DataLengthException the input data is too large for the cipher.\n */\n public byte[] processBlock(byte[] in, int inOff, int len)\n throws InvalidCipherTextException;\n}", "public NewCipher(byte[] blowfishKey)\r\n\t{\r\n\t\t_blowfishKey = blowfishKey;\r\n\t\t_crypt = new BlowfishEngine();\r\n\t\t_crypt.init(true, getBlowfishKey());\r\n\t\t_decrypt = new BlowfishEngine();\r\n\t\t_decrypt.init(false, getBlowfishKey());\r\n\t}", "public String decrypt(String cipherText);", "@Test\n public void testCipherNew() throws Exception {\n long start = System.currentTimeMillis();\n for(int i=0; i<max; i++) {\n Cipher cipher = Cipher.getInstance(\"AES/OFB8/NoPadding\"); // corresponds to the protection initialized above\n cipher.init(Cipher.ENCRYPT_MODE, key, iv); \n byte[] ciphertext = cipher.doFinal(plaintext);\n }\n long stop = System.currentTimeMillis();\n log.debug(\"testCipherNew {} ms\", stop-start);\n }", "public interface AES {\n\n public String encrypt(String strToEncrypt);\n\n public String decrypt(String strToDecrypt);\n\n public String getSecretKeyWord();\n}", "public VigenereCipher(String password) {\n super(Alphabet.DEFAULT); //call to parent with DEFAULT Alphabet\n this.password = password;\n }", "public String Crypt(String s);", "public interface CaptchaAlgorithm {\n\n Captcha generate();\n\n}", "public String getCipherSuite() {\n/* 176 */ return this.delegate.getCipherSuite();\n/* */ }", "public CryptographyKeysCreator() {\n Random random = new Random();\n BigInteger prime1 = BigInteger.probablePrime(256, random);\n BigInteger prime2 = BigInteger.probablePrime(256, random);\n primesMultiplied = prime1.multiply(prime2);\n BigInteger phi = prime1.subtract(BigInteger.ONE).multiply(prime2.subtract(BigInteger.ONE));\n encryptingBigInt = BigInteger.probablePrime(256, random);\n\n while (phi.gcd(encryptingBigInt).compareTo(BigInteger.ONE) > 0 && encryptingBigInt.compareTo(phi) < 0) {\n encryptingBigInt = encryptingBigInt.add(BigInteger.ONE);\n }\n\n decryptingBigInt = encryptingBigInt.modInverse(phi);\n }", "public static CryptoSunJCE getInstance() {\n\t\t// return instance;\n\t\treturn new CryptoSunJCE();\n\t}", "public final java.security.Provider getProvider() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.AlgorithmParameterGenerator.getProvider():java.security.Provider, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.getProvider():java.security.Provider\");\n }", "public static java.security.AlgorithmParameterGenerator getInstance(java.lang.String r1, java.lang.String r2) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: java.security.AlgorithmParameterGenerator.getInstance(java.lang.String, java.lang.String):java.security.AlgorithmParameterGenerator, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.AlgorithmParameterGenerator.getInstance(java.lang.String, java.lang.String):java.security.AlgorithmParameterGenerator\");\n }", "protected CipherIV instantiateCipherIV (byte[] cipher, byte[] iv) {\n return new CipherIV(cipher, iv);\n }", "public KeyEncryptionKeyInfo() {\n }", "public EnScrypt() {}", "public interface Encryptor {\n void encrypt();\n\n}", "@Test\r\n\tpublic void testSimple() throws IOException, URISyntaxException, IllegalKeyException{\r\n\t\tbyte data [] = {97,98,99,100};\r\n\t\tbyte [] keys = {50};\r\n\t\tEncryptionDecryptionManager man = new AlgoritemManaging();\r\n\t\tCaesarEncryption ce = new CaesarEncryption(man);\r\n\t\tbyte[] encData = ce.Encrypt(keys,data);\r\n\t\t\r\n\t\tCaesarDecryption c = new CaesarDecryption(man);\r\n\t\tbyte[] decData = c.Decrypt(keys,encData);\r\n\t\tassert decData [0] == (byte)(97);\r\n\t\tassert decData [1] == (byte)(98);\r\n\t\tassert decData [2] == (byte)(99);\r\n\t\tassert decData [3] == (byte)(100);\r\n\t}", "public String Decrypt(String s);", "@Override\n public String getAlgorithm()\n {\n return algorithm;\n }", "void setCryptAlgorithmClass(org.openxmlformats.schemas.presentationml.x2006.main.STAlgClass.Enum cryptAlgorithmClass);", "private static byte[] symmetricTemplate(final byte[] data,\n final byte[] key,\n final String algorithm,\n final String transformation,\n final byte[] iv,\n final boolean isEncrypt) {\n if (data == null || data.length == 0 || key == null || key.length == 0) return null;\n try {\n SecretKey secretKey;\n if (\"DES\".equals(algorithm)) {\n DESKeySpec desKey = new DESKeySpec(key);\n SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(algorithm);\n secretKey = keyFactory.generateSecret(desKey);\n } else {\n secretKey = new SecretKeySpec(key, algorithm);\n }\n Cipher cipher = Cipher.getInstance(transformation);\n if (iv == null || iv.length == 0) {\n cipher.init(isEncrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE, secretKey);\n } else {\n AlgorithmParameterSpec params = new IvParameterSpec(iv);\n cipher.init(isEncrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE, secretKey, params);\n }\n return cipher.doFinal(data);\n } catch (Throwable e) {\n e.printStackTrace();\n return null;\n }\n }", "CaesarCipher(int key) {\n this.key = key;\n }", "Conector createConector();", "@Test\r\n public void testEncrypt()\r\n {\r\n System.out.println(\"encrypt\");\r\n String input = \"Hello how are you?\";\r\n KeyMaker km = new KeyMaker();\r\n SecretKeySpec sks = new SecretKeySpec(km.makeKeyDriver(\"myPassword\"), \"AES\");\r\n EncyptDecrypt instance = new EncyptDecrypt();\r\n String expResult = \"0fqylTncsgycZJQ+J5pS7v6/fj8M/fz4bavB/SnIBOQ=\";\r\n String result = instance.encrypt(input, sks);\r\n assertEquals(expResult, result);\r\n }" ]
[ "0.66443074", "0.6607041", "0.65601504", "0.6512295", "0.65029174", "0.6381763", "0.6284571", "0.62058055", "0.6149015", "0.61293244", "0.6128134", "0.6073294", "0.6068222", "0.60451746", "0.60344255", "0.5952116", "0.5900617", "0.5839094", "0.58377105", "0.58168805", "0.5787954", "0.5785108", "0.57580245", "0.574977", "0.57494885", "0.5741982", "0.57361114", "0.57178336", "0.57120407", "0.5655041", "0.5642129", "0.56292856", "0.56292856", "0.56292856", "0.55850446", "0.55797756", "0.5566508", "0.5563832", "0.55587333", "0.55390334", "0.55317605", "0.5530117", "0.5515791", "0.5514587", "0.55000657", "0.548711", "0.54859984", "0.54833645", "0.54798806", "0.5479218", "0.5478426", "0.5452962", "0.54402405", "0.542581", "0.5403589", "0.539052", "0.5386527", "0.5386171", "0.5384697", "0.5363537", "0.53148293", "0.53094214", "0.52880234", "0.5286521", "0.52778846", "0.526788", "0.52529156", "0.52507025", "0.52446026", "0.52255595", "0.5221469", "0.52184385", "0.5205143", "0.5204675", "0.51895803", "0.51770407", "0.5176117", "0.51748353", "0.51694185", "0.5164189", "0.5133793", "0.51204437", "0.50861853", "0.50818276", "0.5081423", "0.50741774", "0.5073956", "0.5067213", "0.5053824", "0.5044198", "0.5043228", "0.5036066", "0.503225", "0.5030796", "0.50291", "0.5022879", "0.50228125", "0.5019187", "0.50115126", "0.5008082" ]
0.78506035
0
This private method is responsible to encrypt the data from the file and while doing so, updates the Signature Object with the encrypted data
private void encryptingData(File fileToEncrrypt, Signature dataSigner) throws Exception { FileOutputStream fos = null; FileInputStream fis = null; CipherInputStream cis = null; try { fos = new FileOutputStream(localWorkingDirectoryPath + "\\Encrypted_File.txt"); fis = new FileInputStream(fileToEncrrypt); byte[] encryptedDataByteArray = new byte[8]; cis = new CipherInputStream(fis, myCipher); int i = cis.read(encryptedDataByteArray); while (i != -1) { // Updating the data inside the Signer dataSigner.update(encryptedDataByteArray); // writing the encrypted data to the file fos.write(encryptedDataByteArray, 0, i); i = cis.read(encryptedDataByteArray); } } catch (Exception e) { writeToLog("Error While trying to encrypt the data: " + e.getMessage()); LogWriter.close(); throw new Exception("Error: While trying to encrypt the data", e); } finally { cis.close(); fis.close(); fos.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void encryptFile() {\r\n\t\tisEncryptComplete = false;\r\n\t\tlogger.encryStart = System.currentTimeMillis();\r\n\t\tif(file == null || !file.exists())\r\n\t\t\treturn;\r\n\t\t\r\n\t\tMDFSEncoder encoder = new MDFSEncoder(file, n1, n2, k1, k2);\r\n\t\t/*\r\n\t\t * n1=4;n2=4;k1=3;k2=4; MDFSEncoder encoder = new MDFSEncoder(file, 4,\r\n\t\t * 4, 3, 2);\r\n\t\t */\r\n\t\tif (!encoder.encode()) {\r\n\t\t\tlistener.onError(\"File Encryption Failed\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.encryStop = System.currentTimeMillis();\r\n\t\tList<FragmentInfo> fragInfos = encoder.getFileFragments();\r\n\t\tkeyShares = encoder.getKeyShares();\r\n\r\n\t\t// Store the file fragments in local SDCard\r\n\t\tFile fragsDir = AndroidIOUtils.getExternalFile(Constants.DIR_ROOT + \"/\"\r\n\t\t\t\t+ MDFSFileInfo.getDirName(file.getName(), file.lastModified()));\r\n\r\n\t\tMDFSDirectory directory = serviceHelper.getDirectory();\r\n\t\t// Create file fragments\r\n\t\tfor (FragmentInfo frag : fragInfos) {\r\n\t\t\tFile tmp = IOUtilities.createNewFile(fragsDir, frag.getFileName()\r\n\t\t\t\t\t+ \"__frag__\" + frag.getFragmentNumber());\r\n\t\t\tif (IOUtilities.writeObjectToFile(frag, tmp)) {\r\n\t\t\t\tdirectory.addFileFragment(file.lastModified(),\r\n\t\t\t\t\t\tfrag.getFragmentNumber());\r\n\t\t\t}\r\n\t\t}\r\n\t\tlistener.statusUpdate(\"Encryption Complete\");\r\n\t\tisEncryptComplete = true;\r\n\t\tdistributeFragments();\r\n\t}", "OutputFile encryptingOutputFile();", "public static void encryptFile(File in, File out, Key pubKey) throws Exception {\n FileInputStream fin;\n FileOutputStream fout;\n int nread = 0; \n byte[] inbuf = new byte[1024];\n fout = new FileOutputStream(out);\n fin = new FileInputStream(in);\n\n SecureRandom random = new SecureRandom();\n // symmetric wrapping\n Key sKey = createKeyForAES(Config.SYM_CRYPTO_STR, random);\n IvParameterSpec sIvSpec = createCtrIvForAES(0, random);\n\n // encrypt symmetric key with RSA/pub key\n Cipher xCipher = Cipher.getInstance(Config.RSA_INSTANCE);\n xCipher.init(Cipher.ENCRYPT_MODE, pubKey, random);\n byte[] keyBlock = xCipher.doFinal(packKeyAndIv(sKey, sIvSpec));\n\n fout.write(keyBlock);\n\n // encrypt data with symmetric key\n Cipher sCipher = Cipher.getInstance(Config.AES_INSTANCE);\n sCipher.init(Cipher.ENCRYPT_MODE, sKey, sIvSpec);\n\n // Now read our file and encrypt it.\n while((nread = fin.read(inbuf)) > 0) {\n fout.write(sCipher.update(inbuf, 0, nread)); // cannot be null, by construction\n }\n // NB doFinal() cannot return null, but can return a zero-length array, which is benign below.\n fout.write(sCipher.doFinal());\n\n fout.flush();\n fin.close();\n fout.close();\n}", "public static void encrypt() throws IOException{\n\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(inFilename));\n\t\tBufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(outFilename));\n\n\t\tSecureRandom randomGen = new SecureRandom(); //used for the salt and the padding\n\t\tbyte[] key; //holds the encryption key\n\n\t\t//get the file length\n\t\tlong fileLength = (new File(inFilename)).length();\n\n\t\t//write the file header marker\n\t\tout.write(FILE_HEADER);\n\n\t\t/* STAGE 1 - generate encryption key */\n\t\t//find the number of bytes we have to pad and write it to the file\n\t\tint numPad;\n\t\tif (fileLength % 8 == 0)\n\t\t\tnumPad = 0;\n\t\telse\n\t\t\tnumPad = (int)(8 - (fileLength % 8));\n\t\tout.write(numPad);\n\t\t//generate a 128-byte random salt and write it to the file\n\t\tbyte[] salt = new byte[128];\n\t\trandomGen.nextBytes(salt);\n\t\tout.write(salt);\n\t\t//generate the message for CubeHash: (password + #padded bits + random salt)\n\t\tbyte[] message = new byte[password.length + 1 + salt.length];\n\t\tSystem.arraycopy(password, 0, message, 0, password.length); //add the password\n\t\tmessage[password.length] = (byte)numPad; //add #padded bits\n\t\tSystem.arraycopy(salt, 0, message, password.length + 1, salt.length); //add random salt\n\t\t//finally, generate the encryption key\n\t\tkey = CryptoLib.CubeHash.doCubeHash(message);\n\n\t\t/* STAGE 2 - apply encryption */\n\t\tint currPiece = 0; //keeps track of which piece of the key is being used\n\t\tbyte[] currData = new byte[8]; //holds the piece of data currently being encrypted\n\n\t\t//split the key into 4 pieces of 128 bits each\n\t\tbyte[][] keyPieces = new byte[4][16];\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tSystem.arraycopy(key, i*16, keyPieces[i], 0, 16);\n\t\t}\n\n\t\t//loop through the file (except the last block), 8 bytes at a time\n\t\tfor (long i = 0; i < fileLength - 8; i += 8){\n\t\t\t//put a chunk of data in currData\n\t\t\tin.read(currData);\n\n\t\t\t//do TEA(key, RC4(key, data)), then write to file\n\t\t\tout.write(CryptoLib.TEA.doTEA(keyPieces[currPiece],\n\t\t\t\t\t\tCryptoLib.RC4.doRC4(keyPieces[currPiece], currData)));\n\n\t\t\t//increment currPiece\n\t\t\tcurrPiece = (currPiece + 1) % 4;\n\t\t}\n\n\t\t//deal with the last block of data:\n\t\t//first, read it..\n\t\tin.read(currData);\n\t\t//..pad it with random data..\n\t\tfor (int i = 7; i >= (8 - numPad); i--){\n\t\t\tcurrData[i] = (byte)randomGen.nextInt();\n\t\t}\n\t\t//..then encrypt it\n\t\tout.write(CryptoLib.TEA.doTEA(keyPieces[currPiece],\n\t\t\t\t\tCryptoLib.RC4.doRC4(keyPieces[currPiece], currData)));\n\n\t\t/* STAGE 3 - done! */\n\t\tin.close();\n\t\tout.close();\n\t\tSystem.out.println(\"\\nEncryption complete.\");\n\t}", "public void readDataFromFile(View view) throws GeneralSecurityException, IOException {\n encryptedFile = new EncryptedFile.Builder(\n context,\n new File(MainActivity.this.getFilesDir(),\"test.txt\"), // File want to read\n mainKey, // Master key for encryption\n EncryptedFile.FileEncryptionScheme.AES256_GCM_HKDF_4KB) // Algorithm or FileEncryptionScheme for encryption\n .build();\n\n\n InputStream inputStream = encryptedFile.openFileInput(); // Open the encrypted file to read\n int next = inputStream.read(); // Read the encrypted file\n\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); // ByteArrayOutputStream to print the content of file to read\n\n while (next != -1){\n byteArrayOutputStream.write(next); // Write the file content in byteArrayOutputStream object\n next = inputStream.read(); // Read the next character until it encounter the end (-1)\n }\n\n byte[] plainText = byteArrayOutputStream.toByteArray(); // Convert into byte array\n\n String textString = new String(plainText); // Create a new string with converted plain text byte array\n\n textView.setText(textString); // display the file content in textView\n }", "private void encryptionAlgorithm() {\n\t\ttry {\n\t\t\t\n\t\t\tFileInputStream fileInputStream2=new FileInputStream(\"D:\\\\program\\\\key.txt\");\n\t\t\tchar key=(char)fileInputStream2.read();\n\t\t\tSystem.out.println(key);\n\t\t\tFileInputStream fileInputStream1=new FileInputStream(\"D:\\\\program\\\\message.txt\");\n\t\t\tint i=0;\n\t\t\t\n\t\t\tStringBuilder message=new StringBuilder();\n\t\t\twhile((i= fileInputStream1.read())!= -1 )\n\t\t\t{\n\t\t\t\tmessage.append((char)i);\n\t\t\t}\n\t\t\tString s=message.toString();\n\t\t\tchar[] letters=new char[s.length()];\n\t\t\tStringBuilder en=new StringBuilder();\n\t\t\tfor(int j = 0;j < letters.length;j++)\n\t\t\t{\n\t\t\t\ten.append((char)(byte)letters[j]+key);\n\t\t\t}\t\t\n\t\t\tFileOutputStream fileoutput=new FileOutputStream(\"D:\\\\program\\\\encryptedfile.txt\");\n\t\t\t\n\t\t\tfileInputStream1.close();\n\t\t\tfileInputStream2.close();\n\t\t\t\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t}", "private static void encryptFile(String fileInput, String publicKeyFilename) throws Exception {\n\n\t\t// Load the public key bytes\n\t\tFileInputStream fis = new FileInputStream(publicKeyFilename);\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\n\t\tint theByte = 0;\n\t\twhile ((theByte = fis.read()) != -1) {\n\t\t\tbaos.write(theByte);\n\t\t}\n\t\tfis.close();\n\n\t\tbyte[] keyBytes = baos.toByteArray();\n\t\tbaos.close();\n\n\t\t// Turn the encoded key into a real RSA public key.\n\t\t// Public keys are encoded in X.509.\n\t\tX509EncodedKeySpec keySpec = new X509EncodedKeySpec(keyBytes);\n\t\tKeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n\t\tPublicKey publicKey = keyFactory.generatePublic(keySpec);\n\n\t\t// Open up an output file for the output of the encryption\n\t\tString fileOutput = fileInput + ENCRYPTED_FILENAME_SUFFIX;\n\t\tDataOutputStream output = new DataOutputStream(new FileOutputStream(fileOutput));\n\n\t\t// Create a cipher using that key to initialize it\n\t\tCipher rsaCipher = Cipher.getInstance(\"RSA/ECB/PKCS1Padding\");\n\t\trsaCipher.init(Cipher.ENCRYPT_MODE, publicKey);\n\n\t\t// Now create a new 256 bit Rijndael key to encrypt the file itself.\n\t\t// This will be the session key.\n\t\tKeyGenerator rijndaelKeyGenerator = KeyGenerator.getInstance(\"Rijndael\");\n\t\trijndaelKeyGenerator.init(256);\n\t\tSystem.out.println(\"Generating session key...\");\n\t\tKey rijndaelKey = rijndaelKeyGenerator.generateKey();\n\t\tSystem.out.println(\"Done generating key.\");\n\n\t\t// Encrypt the Rijndael key with the RSA cipher\n\t\t// and write it to the beginning of the file.\n\t\tbyte[] encodedKeyBytes = rsaCipher.doFinal(rijndaelKey.getEncoded());\n\t\toutput.writeInt(encodedKeyBytes.length);\n\t\toutput.write(encodedKeyBytes);\n\n\t\t// Now we need an Initialization Vector for the symmetric cipher in CBC mode\n\t\tSecureRandom random = new SecureRandom();\n\t\tbyte[] iv = new byte[16];\n\t\trandom.nextBytes(iv);\n\n\t\t// Write the IV out to the file.\n\t\toutput.write(iv);\n\t\tIvParameterSpec spec = new IvParameterSpec(iv);\n\n\t\t// Create the cipher for encrypting the file itself.\n\t\tCipher symmetricCipher = Cipher.getInstance(\"Rijndael/CBC/PKCS5Padding\");\n\t\tsymmetricCipher.init(Cipher.ENCRYPT_MODE, rijndaelKey, spec);\n\n\t\tCipherOutputStream cos = new CipherOutputStream(output, symmetricCipher);\n\n\t\tSystem.out.println(\"Encrypting the file...\");\n\n\t\tFileInputStream input = new FileInputStream(fileInput);\n\n\t\ttheByte = 0;\n\t\twhile ((theByte = input.read()) != -1) {\n\t\t\tcos.write(theByte);\n\t\t}\n\t\tinput.close();\n\t\tcos.close();\n\t\tSystem.out.println(\"File encrypted.\");\n\t\treturn;\n\t}", "private void signDataStream(InputStream data, String signatureFilename)\n throws CmsCadesException, GeneralSecurityException, IOException {\n CadesSignatureStream cmsSig = new CadesSignatureStream(data, SignedData.EXPLICIT);\n // CadesBESParameters params = new CadesBESParameters();\n CadesTParameters params = new CadesTParameters(\n \"http://tsp.iaik.tugraz.at/tsp/TspRequest\", null, null);\n params.setDigestAlgorithm(\"SHA512\");\n cmsSig.addSignerInfo(privKey_, certChain_, params);\n ByteArrayOutputStream signature = new ByteArrayOutputStream();\n cmsSig.encodeSignature(signature);\n byte[] signatureBytes = signature.toByteArray();\n signature.close();\n FileOutputStream os = new FileOutputStream(signatureFilename);\n os.write(signatureBytes);\n os.flush();\n os.close();\n }", "ReleaseFile parseClearSigned( InputStream is, InputStream keyStream ) throws IOException;", "ReleaseFile parseWithSignature( InputStream is, InputStream signStream, InputStream keyStream ) throws IOException;", "private void start(String filePath, String password) throws CmsCadesException,\n GeneralSecurityException, IOException, TspVerificationException {\n getKeyAndCerts(filePath, password);\n\n // sign some bytes\n byte[] somerandomdata = new byte[100];\n Random random = new Random();\n random.nextBytes(somerandomdata);\n byte[] signature = signData(somerandomdata);\n System.out.println(\"signed some random data\");\n\n System.out.println(\"verify the signature: \");\n verifyCadesSignature(signature, somerandomdata);\n\n // sign a file stream\n FileInputStream dataStream = new FileInputStream(fileToBeSigned);\n signDataStream(dataStream, signatureFile);\n dataStream.close();\n System.out.println(\n \"signed file \" + fileToBeSigned + \" and saved signature to \" + signatureFile);\n\n System.out.println(\"verify the signature contained in \" + signatureFile + \":\");\n FileInputStream sigStream = new FileInputStream(signatureFile);\n dataStream = new FileInputStream(fileToBeSigned);\n verifyCadesSignatureStream(sigStream, dataStream);\n sigStream.close();\n dataStream.close();\n }", "public static void readSignaturesFromFile() throws IOException {\n SigManager manager = new SigManager(new File(\"/path/to/Signatures\"));\n\n //Read signature from file in chosen directory\n Set<OWLEntity> sig = manager.readFile(\"signature.txt\");\n\n //Modify signature perhaps..\n\n //Write signature to file in same chosen directory\n manager.writeFile(sig, \"signature-modified.txt\");\n }", "public static void execEnkripsi(File fileTemp, String pathTempFileEncryptName, String pathEncryptedSecretKeyFile, String pemContent, SimpleDateFormat sdf, String outputFileNameZip) throws Exception{\n String secretKey=RandomStringUtils.randomAlphanumeric(16);\r\n System.out.println(\"Generated Secret Key :\"+secretKey);\r\n File exportedFile;\r\n CompressingUtils compressingUtils = new CompressingUtils();\r\n String tmpPlainZipped = lokasiHasil+\"/tmp\"+outputFileNameZip;\r\n List<File> lsFile = new ArrayList<>();\r\n lsFile.add(fileTemp);\r\n if(compressingUtils.createZipWithoutPassword(lsFile, tmpPlainZipped)){\r\n exportedFile = new File(tmpPlainZipped);\r\n //delete file awal yang telah dikompresi\r\n for(File dfile : lsFile){\r\n dfile.delete();\r\n }\r\n }else{\r\n throw new Exception(\"gagal melakukan kompresi file\");\r\n }\r\n System.out.println(\"file kompresi berhasil dibuat \"+ outputFileNameZip);\r\n\r\n /*Step 3 : enkripsi file dengan kunci acak */\r\n System.out.println(\"Step 3 : enkripsi file dengan kunci acak\");\r\n\r\n\r\n String fileOutputEcnryptedname = lokasiHasil+\"/\"+outputFileNameZip;\r\n\r\n File tempFileEncryptName = new File(pathTempFileEncryptName);\r\n try {\r\n CryptoUtils.encrypt(secretKey, exportedFile, tempFileEncryptName);\r\n } catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi file gagal : \" + e.getMessage());\r\n }\r\n\r\n EncryptionUtils utils = new EncryptionUtils();\r\n PublicKey publicKey = utils.getPublicKeyFromX509(pemContent);\r\n\r\n /*Step 4 : Enkripsi kunci acak dengan public key dari DJP*/\r\n System.out.println(\"Step 4 : enkripsi kunci acak dengan public key dari DJP\");\r\n\r\n String encryptedSecretKey;\r\n try{\r\n encryptedSecretKey = CryptoUtils.encrypt(secretKey, publicKey);\r\n }catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi kunci gagal : \" + e.getMessage());\r\n }\r\n File encryptedSecretKeyFile = new File(pathEncryptedSecretKeyFile);\r\n try {\r\n FileOutputStream outputStream = new FileOutputStream(encryptedSecretKeyFile);\r\n outputStream.write(encryptedSecretKey.getBytes());\r\n outputStream.close();\r\n }catch (FileNotFoundException e){\r\n throw new Exception(\"kunci yang dienkripsi tidak ditemukan : \" + pathEncryptedSecretKeyFile);\r\n } catch (IOException e) {\r\n throw new Exception(\"gagal membentuk kunci enkripsi\");\r\n }\r\n\r\n /*Step 5: Compress data dan key kedalam file zip dan menjadi hasil akhir*/\r\n System.out.println(\"Step 5: Compress enkripsi file dan kunci kedalam file zip\");\r\n\r\n List<File> listFiles = new ArrayList<File>();\r\n listFiles.add(tempFileEncryptName);\r\n listFiles.add(encryptedSecretKeyFile);\r\n\r\n if(listFiles.size() != 2){\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n throw new Exception(\"file enkripsi dan/atau key enkripsi salah satunya tidak ada\");\r\n }\r\n\r\n compressingUtils = new CompressingUtils();\r\n if (compressingUtils.createZip(listFiles, fileOutputEcnryptedname)) {\r\n /*Step 6 : hapus file data dan key, hasil dari step 3 dan 4 */\r\n System.out.println(\"Step 6 : hapus file data dan key, hasil dari step 3 dan 4\");\r\n\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n /*Step 7: hapus file zip, hasil dari step 2 */\r\n System.out.println(\"Step 7: hapus file zip, hasil dari step 2\");\r\n\r\n exportedFile.delete();\r\n }\r\n\r\n System.out.println(\"Proses enkripsi selesai, nama file : \" + fileOutputEcnryptedname);\r\n }", "public SignatureVerifier(String filePath) throws IOException, GeneralSecurityException {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"SignatureVerifier:\" + filePath);\n\t\t}\n\t\tthis.publicKey = (PublicKey) GeneralUtils.readObjectFromFile(filePath + \".pub\");\n\t}", "public void encryptFile(String fitxer, SecretKey clau) throws FileNotFoundException, InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException, IOException, IllegalBlockSizeException, BadPaddingException {\r\n //Creamos el FileInput Stream para leer el archivo.\r\n FileInputStream fis = new FileInputStream(fitxer);\r\n //Creamos el FileOutputStream para escribir en el fichero.\r\n FileOutputStream fos = new FileOutputStream(new File(\"mensajeCifrado.txt\"));\r\n \r\n //Creamos un cifrador para cifrar el texto.\r\n Cipher cifrador = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\r\n IvParameterSpec iv = new IvParameterSpec(cadena_iv.getBytes());\r\n cifrador.init(Cipher.ENCRYPT_MODE, clau);\r\n \r\n //Creamos un buffer que es un array de bytes donde almacenaremos el texto.\r\n byte[] buffer = new byte[1024];\r\n \r\n int bytes;\r\n //Utilizamos un bucle para ir leyendo el archivo de texto que le hemos pasado.\r\n while((bytes = fis.read(buffer, 0, buffer.length))!=-1){\r\n byte [] update = cifrador.update(buffer, 0, bytes);\r\n fos.write(cifrador.doFinal());\r\n }\r\n \r\n //Cerramos recursos.\r\n fos.write(cifrador.doFinal());\r\n fis.close();\r\n fos.close();\r\n \r\n \r\n }", "public static void Encrypt(File file, Boolean sign, PGPSecretKey secretKey, char[] pass, Boolean encrpyt, PGPPublicKey publicKey)\n {\n\tSecurity.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());\n\t\n\t// fajl koji kriptujem\n\tInputStream fileToEncrypt = null;\n\ttry {\n\t\tfileToEncrypt = new FileInputStream(file);\n\t} catch (FileNotFoundException e) {\n\t}\n\t// fajl u koji cemo smestiti kriptovanu poruku\n\tOutputStream targetFileStream = null;\n\ttry {\n\t\ttargetFileStream = new FileOutputStream(new File(\"C:\\\\Users\\\\Korisnik\\\\Desktop\\\\test.pgp\"));\n\t} catch (FileNotFoundException e) {\n\n\t}\n\t\n\tString targetFileName = \"decript.txt\";\n\tString outputFileName = \"test.pgp\";\n\t\n\t\n\ttry {\n\t\tfEncryptOnePassSignatureLocal(file.getName(), outputFileName, \n\t\t\t\tsecretKey, targetFileStream, pass, publicKey, fileToEncrypt);\n\t} catch (Exception e) {\n // TODO Auto-generated catch block\n\n\t}\n }", "@Override\r\n\tpublic byte[] sign(final byte[] data,\r\n final String algorithm,\r\n final PrivateKey key,\r\n final java.security.cert.Certificate[] certChain,\r\n final Properties xParams) throws AOException {\r\n\r\n final Properties extraParams = xParams != null ? xParams : new Properties();\r\n\r\n final String digestMethodAlgorithm = extraParams.getProperty(\"referencesDigestMethod\", DIGEST_METHOD); //$NON-NLS-1$\r\n final boolean useOpenOffice31Mode = \"true\".equalsIgnoreCase(extraParams.getProperty(\"useOpenOffice31Mode\")); //$NON-NLS-1$ //$NON-NLS-2$\r\n\r\n if (!isValidDataFile(data)) {\r\n throw new AOFormatFileException(\"Los datos introducidos no se corresponden con un documento ODF\"); //$NON-NLS-1$\r\n }\r\n\r\n String fullPath = MANIFEST_PATH;\r\n boolean isCofirm = false;\r\n\r\n try {\r\n // genera el archivo zip temporal a partir del InputStream de\r\n // entrada\r\n final File zipFile = File.createTempFile(\"sign\", \".zip\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n final FileOutputStream fos = new FileOutputStream(zipFile);\r\n fos.write(data);\r\n fos.flush();\r\n fos.close();\r\n\r\n // carga el fichero zip\r\n final ZipFile zf = new ZipFile(zipFile);\r\n\r\n // obtiene el archivo manifest.xml, que indica los ficheros que\r\n // contiene el ODF\r\n final InputStream manifest = zf.getInputStream(zf.getEntry(fullPath));\r\n final byte[] manifestData = AOUtil.getDataFromInputStream(manifest);\r\n\r\n if (manifest != null) {\r\n manifest.close();\r\n }\r\n\r\n // obtiene el documento manifest.xml y su raiz\r\n final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n dbf.setNamespaceAware(true);\r\n final Document docManifest = dbf.newDocumentBuilder().parse(new ByteArrayInputStream(manifestData));\r\n final Element rootManifest = docManifest.getDocumentElement();\r\n\r\n // recupera todos los nodos de manifest.xml\r\n final NodeList listFileEntry = rootManifest.getElementsByTagName(\"manifest:file-entry\"); //$NON-NLS-1$\r\n\r\n //\r\n // Datos necesarios para la firma\r\n //\r\n\r\n // MessageDigest\r\n final MessageDigest md;\r\n try {\r\n\t md = MessageDigest.getInstance(DIGEST_METHOD_ALGORITHM_NAME);\r\n }\r\n catch (final Exception e) {\r\n \tzf.close();\r\n \tthrow new AOException(\r\n \t\t\t\"No se ha podido obtener un generador de huellas digitales con el algoritmo \" + DIGEST_METHOD_ALGORITHM_NAME + \": \" + e, e //$NON-NLS-1$ //$NON-NLS-2$\r\n \t\t\t);\r\n }\r\n\r\n // XMLSignatureFactory\r\n final XMLSignatureFactory fac = XMLSignatureFactory.getInstance(\"DOM\"); //$NON-NLS-1$\r\n\r\n // DigestMethod\r\n final DigestMethod dm;\r\n try {\r\n dm = fac.newDigestMethod(digestMethodAlgorithm, null);\r\n }\r\n catch (final Exception e) {\r\n zf.close();\r\n throw new AOException(\r\n \"No se ha podido obtener un generador de huellas digitales con el algoritmo: \" + digestMethodAlgorithm, e //$NON-NLS-1$\r\n );\r\n }\r\n\r\n // Configuramos mediante reflexion las transformaciones y referencias\r\n\r\n final Class<?> canonicalizerClass = Class.forName(\"com.sun.org.apache.xml.internal.security.c14n.Canonicalizer\"); //$NON-NLS-1$\r\n final String algoIdC14nOmitComments =\r\n \t\t(String) canonicalizerClass.getField(\"ALGO_ID_C14N_OMIT_COMMENTS\").get(null); //$NON-NLS-1$\r\n\r\n // Transforms\r\n final List<Transform> transformList = new ArrayList<Transform>(1);\r\n transformList.add(\r\n \t\tfac.newTransform(\r\n \t\t\t\talgoIdC14nOmitComments,\r\n \t\t\t\t(TransformParameterSpec) null\r\n\t\t\t\t)\r\n \t\t);\r\n\r\n // References\r\n final List<Reference> referenceList = new ArrayList<Reference>();\r\n\r\n Class.forName(\"com.sun.org.apache.xml.internal.security.Init\").getMethod(\"init\").invoke(null); //$NON-NLS-1$ //$NON-NLS-2$\r\n\r\n final Object canonicalizer = canonicalizerClass.\r\n \t\tgetMethod(\"getInstance\", String.class).invoke(null, algoIdC14nOmitComments); //$NON-NLS-1$\r\n\r\n final Method canonicalizeSubtreeMethod =\r\n \t\tcanonicalizerClass.getMethod(\"canonicalizeSubtree\", org.w3c.dom.Node.class); //$NON-NLS-1$\r\n\r\n //\r\n // Anadimos tambien referencias manualmente al propio manifest.xml y\r\n // al mimetype\r\n //\r\n\r\n // manifest tiene una canonicalizacion. Solo en OOo 3.2 y superiores\r\n if (!useOpenOffice31Mode) {\r\n\r\n // mimetype es una referencia simple, porque no es XML\r\n referenceList.add(fac.newReference(\"mimetype\", dm, null, null, null, md.digest(AOUtil.getDataFromInputStream( //$NON-NLS-1$\r\n // Recupera el fichero\r\n zf.getInputStream(zf.getEntry(\"mimetype\")))))); //$NON-NLS-1$\r\n\r\n referenceList.add(\r\n \t\tfac.newReference(\r\n \t\t\t\tMANIFEST_PATH,\r\n \t\t\t\tdm,\r\n \t\t\t\ttransformList,\r\n \t\t\t\tnull,\r\n \t\t\t\tnull,\r\n \t\t\t\tmd.digest(\r\n \t\t\t\t\t\t(byte[]) canonicalizeSubtreeMethod.invoke(\r\n \t\t\t\t\t\t\t\tcanonicalizer,\r\n \t\t\t\t\t\t\t\t// Recupera el fichero y su raiz\r\n \t\t\t\t\t\t\t\tdbf.newDocumentBuilder().parse(\r\n \t\t\t\t\t\t\t\t\t\tnew ByteArrayInputStream(manifestData)\r\n \t\t\t\t\t\t\t\t\t).getDocumentElement()\r\n \t\t\t\t\t\t\t)\r\n \t\t\t\t\t\t)\r\n \t\t\t\t)\r\n \t\t);\r\n }\r\n\r\n // para cada nodo de manifest.xml\r\n Reference reference;\r\n for (int i = 0; i < listFileEntry.getLength(); i++) {\r\n fullPath = ((Element) listFileEntry.item(i)).getAttribute(\"manifest:full-path\"); //$NON-NLS-1$\r\n\r\n // si es un archivo\r\n if (!fullPath.endsWith(\"/\")) { //$NON-NLS-1$\r\n\r\n // y es uno de los siguientes archivos xml\r\n if (fullPath.equals(\"content.xml\") || fullPath.equals(\"meta.xml\") //$NON-NLS-1$ //$NON-NLS-2$\r\n || fullPath.equals(\"styles.xml\") //$NON-NLS-1$\r\n || fullPath.equals(\"settings.xml\")) { //$NON-NLS-1$\r\n\r\n // crea la referencia\r\n reference = fac.newReference(fullPath.replaceAll(\" \", \"%20\"), dm, transformList, null, null, //$NON-NLS-1$ //$NON-NLS-2$\r\n // Obtiene su forma canonica y su DigestValue\r\n \t\tmd.digest(\r\n \t\t\t\t(byte[]) canonicalizeSubtreeMethod.invoke(\r\n \t\t\t\t\t\tcanonicalizer,\r\n \t\t\t\t\t\t// Recupera el fichero y su raiz\r\n \t\t\t\t\t\tdbf.newDocumentBuilder().parse(zf.getInputStream(zf.getEntry(fullPath))).getDocumentElement()\r\n \t\t\t\t\t\t)\r\n \t\t\t\t)\r\n \t\t);\r\n }\r\n\r\n // si no es uno de los archivos xml\r\n else {\r\n\r\n // crea la referencia\r\n reference = fac.newReference(fullPath.replaceAll(\" \", \"%20\"), dm, null, null, null, md.digest(AOUtil.getDataFromInputStream( //$NON-NLS-1$ //$NON-NLS-2$\r\n // Recupera el fichero\r\n zf.getInputStream(zf.getEntry(fullPath)))));\r\n\r\n }\r\n\r\n if (!fullPath.equals(SIGNATURES_PATH)) {\r\n \treferenceList.add(reference);\r\n }\r\n else {\r\n // Para mantener la compatibilidad con OpenOffice 3.1?\r\n \tisCofirm = true;\r\n }\r\n }\r\n }\r\n\r\n // Si se encuentra el fichero de firmas en el documento, la nueva firma\r\n // se debe agregar a el\r\n if (!isCofirm && zf.getEntry(SIGNATURES_PATH) != null) {\r\n \tisCofirm = true;\r\n }\r\n\r\n final Document docSignatures;\r\n final Element rootSignatures;\r\n // si es cofirma\r\n if (isCofirm) {\r\n // recupera el documento de firmas y su raiz\r\n docSignatures = dbf.newDocumentBuilder().parse(zf.getInputStream(zf.getEntry(SIGNATURES_PATH)));\r\n rootSignatures = docSignatures.getDocumentElement();\r\n }\r\n else {\r\n // crea un nuevo documento de firmas\r\n docSignatures = dbf.newDocumentBuilder().newDocument();\r\n rootSignatures = docSignatures.createElement(\"document-signatures\"); //$NON-NLS-1$\r\n rootSignatures.setAttribute(\"xmlns\", OPENOFFICE); //$NON-NLS-1$\r\n docSignatures.appendChild(rootSignatures);\r\n\r\n // En OpenOffice 3.2 y superiores no anadimos la propia firma al\r\n // manifest para evitar referencias circulares\r\n if (useOpenOffice31Mode) {\r\n final Element nodeDocumentSignatures = docManifest.createElement(\"manifest:file-entry\"); //$NON-NLS-1$\r\n nodeDocumentSignatures.setAttribute(\"manifest:media-type\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n nodeDocumentSignatures.setAttribute(\"manifest:full-path\", SIGNATURES_PATH); //$NON-NLS-1$\r\n rootManifest.appendChild(nodeDocumentSignatures);\r\n\r\n // nuevo elemento de META-INF\r\n final Element nodeMetaInf = docManifest.createElement(\"manifest:file-entry\"); //$NON-NLS-1$\r\n nodeMetaInf.setAttribute(\"manifest:media-type\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n nodeMetaInf.setAttribute(\"manifest:full-path\", \"META-INF/\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n rootManifest.appendChild(nodeMetaInf);\r\n }\r\n }\r\n\r\n // Ids de Signature y SignatureProperty\r\n final String signatureId = UUID.randomUUID().toString();\r\n final String signaturePropertyId = UUID.randomUUID().toString();\r\n\r\n // referencia a SignatureProperty\r\n referenceList.add(fac.newReference(\"#\" + signaturePropertyId, dm)); //$NON-NLS-1$\r\n\r\n // contenido de SignatureProperty\r\n final Element content = docSignatures.createElement(\"dc:date\"); //$NON-NLS-1$\r\n content.setAttribute(\"xmlns:dc\", \"http://purl.org/dc/elements/1.1/\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n content.setTextContent(new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss,SS\").format(new Date())); //$NON-NLS-1$\r\n final List<XMLStructure> contentList = new ArrayList<XMLStructure>();\r\n contentList.add(new DOMStructure(content));\r\n\r\n // SignatureProperty\r\n final List<SignatureProperty> spList = new ArrayList<SignatureProperty>();\r\n spList.add(fac.newSignatureProperty(contentList, \"#\" + signatureId, signaturePropertyId)); //$NON-NLS-1$\r\n\r\n // SignatureProperties\r\n final List<SignatureProperties> spsList = new ArrayList<SignatureProperties>();\r\n spsList.add(fac.newSignatureProperties(spList, null));\r\n\r\n // Object\r\n final List<XMLObject> objectList = new ArrayList<XMLObject>();\r\n objectList.add(fac.newXMLObject(spsList, null, null, null));\r\n\r\n // Preparamos el KeyInfo\r\n final KeyInfoFactory kif = fac.getKeyInfoFactory();\r\n final List<Object> x509Content = new ArrayList<Object>();\r\n final X509Certificate cert = (X509Certificate) certChain[0];\r\n x509Content.add(cert.getSubjectX500Principal().getName());\r\n x509Content.add(cert);\r\n\r\n // genera la firma\r\n fac.newXMLSignature(\r\n // SignedInfo\r\n fac.newSignedInfo(\r\n // CanonicalizationMethod\r\n fac.newCanonicalizationMethod(\r\n CanonicalizationMethod.INCLUSIVE,\r\n (C14NMethodParameterSpec) null),\r\n fac.newSignatureMethod(SignatureMethod.RSA_SHA1, null),\r\n referenceList\r\n ),\r\n // KeyInfo\r\n kif.newKeyInfo(\r\n Collections.singletonList(kif.newX509Data(x509Content)),\r\n null\r\n ),\r\n objectList,\r\n signatureId,\r\n null\r\n ).sign(\r\n new DOMSignContext(key, rootSignatures)\r\n );\r\n\r\n // crea un nuevo fichero zip\r\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n final ZipOutputStream zos = new ZipOutputStream(baos);\r\n\r\n // copia el contenido del zip original en el nuevo excepto el\r\n // documento de firmas y manifest.xml\r\n final Enumeration<? extends ZipEntry> e = zf.entries();\r\n ZipEntry ze;\r\n ZipEntry zeOut;\r\n while (e.hasMoreElements()) {\r\n ze = e.nextElement();\r\n zeOut = new ZipEntry(ze.getName());\r\n if (!ze.getName().equals(SIGNATURES_PATH) && !ze.getName().equals(MANIFEST_PATH)) {\r\n zos.putNextEntry(zeOut);\r\n zos.write(AOUtil.getDataFromInputStream(zf.getInputStream(ze)));\r\n }\r\n }\r\n\r\n // anade el documento de firmas\r\n zos.putNextEntry(new ZipEntry(SIGNATURES_PATH));\r\n final ByteArrayOutputStream baosXML = new ByteArrayOutputStream();\r\n writeXML(baosXML, rootSignatures, false);\r\n zos.write(baosXML.toByteArray());\r\n zos.closeEntry();\r\n\r\n // anade manifest.xml\r\n zos.putNextEntry(new ZipEntry(MANIFEST_PATH));\r\n final ByteArrayOutputStream baosManifest = new ByteArrayOutputStream();\r\n writeXML(baosManifest, rootManifest, false);\r\n zos.write(baosManifest.toByteArray());\r\n zos.closeEntry();\r\n\r\n try {\r\n zos.close();\r\n }\r\n catch (final Exception t) {\r\n // Ignoramos los errores en el cierre\r\n }\r\n zf.close();\r\n return baos.toByteArray();\r\n\r\n }\r\n catch (final SAXException saxex) {\r\n throw new AOFormatFileException(\"Estructura de archivo no valida: \" + fullPath + \": \" + saxex); //$NON-NLS-1$ //$NON-NLS-2$\r\n }\r\n catch (final Exception e) {\r\n throw new AOException(\"No ha sido posible generar la firma ODF: \" + e, e); //$NON-NLS-1$\r\n }\r\n }", "public byte[] signData(String fitxer, PrivateKey priv) {\n byte[] signature = null;\n FileInputStream datafis;\n BufferedInputStream bufin = null;\n byte[] buffer = new byte[1024];\n int len;\n \n try {\n Signature signer = Signature.getInstance(\"SHA256withRSA\");\n signer.initSign(priv); //Inicialitzem la firma digital a partirde l’algorisme utilitzat\n \n datafis = new FileInputStream(fitxer);\n bufin = new BufferedInputStream(datafis);\n \n while (bufin.available() != 0) {\n len = bufin.read(buffer);\n signer.update(buffer, 0, len);//Li assignem a l’objecte firma les dades afirmar digitalment\n } \n\n bufin.close();\n signature = signer.sign();//Finalment generem la firma\n } catch (Exception ex) {\n System.err.println(\"Error signant les dades: \" + ex);\n }\n return signature;\n }", "public void valSig (String fileName) {\n javax.xml.parsers.DocumentBuilderFactory dbf =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n dbf.setNamespaceAware(true);\n javax.xml.parsers.DocumentBuilder db = null;\n\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n\n try {\n db = dbf.newDocumentBuilder();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n }\n try {\n Document doc =\n db.parse(new FileInputStream(fileName));\n\n XPathFactory xpf = XPathFactory.newInstance();\n XPath xpath = xpf.newXPath();\n xpath.setNamespaceContext(new DSNamespaceContext());\n String expression = \"//ds:Signature[1]\";\n Element sigElement =\n (Element) xpath.evaluate(expression, doc, XPathConstants.NODE);\n\n XMLSignature signature =\n new XMLSignature(sigElement, (new File(fileName)).toURI().toURL().toString());\n\n String expressionBody = \"//soapenv:Body\";\n Element bodyElement =\n (Element) xpath.evaluate(expressionBody, doc, XPathConstants.NODE);\n\n Attr id = bodyElement.getAttributeNode(\"Id\") ;\n IdResolver.registerElementById(bodyElement,id);\n //signature.addResourceResolver(new OfflineResolver());\n\n KeyInfo ki = signature.getKeyInfo();\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n String svStr = new String(signature.getSignatureValue());\n System.out.println(svStr);\n System.out.println(\"================================signature.getSignatureValue()================================\");\n\n if (ki != null) {\n if (ki.containsX509Data()) {\n System.out.println(\"Could find a X509Data element in the KeyInfo\");\n }\n X509Certificate cert = signature.getKeyInfo().getX509Certificate();\n if (cert != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(cert)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\"Did not find a Certificate\");\n PublicKey pk = signature.getKeyInfo().getPublicKey();\n if (pk != null) {\n System.out.println(\"The XML signature in file \"\n // + f.toURI().toURL().toString() + \" is \"\n + (signature.checkSignatureValue(pk)\n ? \"valid (good)\" : \"invalid !!!!! (bad)\"));\n } else {\n System.out.println(\n \"Did not find a public key, so I can't check the signature\");\n }\n }\n } else {\n System.out.println(\"Did not find a KeyInfo\");\n }\n\n\n\n\n\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (XPathExpressionException e) {\n e.printStackTrace();\n } catch (XMLSignatureException e) {\n e.printStackTrace();\n } catch (XMLSecurityException e) {\n e.printStackTrace();\n }\n\n }", "public static byte [] getStoredSign(String filePath)\n {\n byte[] keydata = getKeyData(filePath);\n System.out.println(keydata);\n\n return keydata;\n }", "private static AlgorithmParameters fileEncryption(File fileToEncrypt, SecretKey symmetricKey, File fileAfterEncrypt)\n\t{\n\t\tCipherOutputStream cipherOutputStream = null;\n\t\tAlgorithmParameters algoParams = null;\n\t\tCipher cipher;\n\n\t\ttry\n\t\t{\n\t\t\tif (inputProviderForFile.equals(\"non\"))\n\t\t\t{\n\t\t\t\tcipher = Cipher.getInstance(inputAlgorithmForFileEncryption + \"/\" + inputAlgorithmMode + \"/\" + inputAlgorithmPadding);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcipher = Cipher.getInstance(inputAlgorithmForFileEncryption + \"/\" + inputAlgorithmMode + \"/\" + inputAlgorithmPadding, inputProviderForFile);\n\t\t\t}\n\t\t\tif (cipher != null && symmetricKey != null)\n\t\t\t{\n\t\t\t\tcipher.init(Cipher.ENCRYPT_MODE, symmetricKey);\n\t\t\t\tcipherOutputStream = new CipherOutputStream(new FileOutputStream(fileAfterEncrypt), cipher);\n\t\t\t\tPath path = Paths.get(fileToEncrypt.getPath());\n\t\t\t\tbyte[] dataFromFile = Files.readAllBytes(path);\n\t\t\t\tcipherOutputStream.write(dataFromFile);\n\t\t\t\talgoParams = cipher.getParameters();\n\t\t\t}\n\t\t} catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IOException | NoSuchProviderException e2)\n\t\t{\n\t\t\te2.printStackTrace();\n\t\t} finally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (cipherOutputStream != null)\n\t\t\t\t{\n\t\t\t\t\tcipherOutputStream.flush();\n\t\t\t\t\tcipherOutputStream.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn algoParams;\n\t}", "private static void crypto(String filePath1, String filePath2) {\n\n\t\t// Retrieve the cipher\n\t\tCipher cipher;\n\t\ttry {\n\t\t\tcipher = obtainCipher();\n\n\t\t} catch (InvalidKeyException | InvalidAlgorithmParameterException | NoSuchAlgorithmException\n\t\t\t\t| NoSuchPaddingException e) {\n\t\t\tSystem.out.println(\"Exception while obtaining cypher: \" + e.getMessage());\n\t\t\treturn;\n\t\t}\n\n\t\tPath p = Paths.get(filePath1);\n\t\tPath p2 = Paths.get(filePath2);\n\n\t\t// Open the file input and output stream\n\t\ttry (InputStream is = Files.newInputStream(p); OutputStream os = Files.newOutputStream(p2)) {\n\t\t\tbyte[] buff = new byte[4096];\n\n\t\t\twhile (true) {\n\t\t\t\tint r = is.read(buff);\n\n\t\t\t\tif (r == -1) {\n\t\t\t\t\t// Finishing the cipher\n\t\t\t\t\ttry {\n\t\t\t\t\t\tos.write(cipher.doFinal());\n\t\t\t\t\t} catch (IllegalBlockSizeException | BadPaddingException e) {\n\t\t\t\t\t\tSystem.out.println(\"Exception while finalizaing cipher: \" + e.getMessage());\n\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t// Update cipher and write into new file\n\t\t\t\tos.write(cipher.update(buff, 0, r));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Exception while opening the file: \" + e.getMessage());\n\t\t\tSystem.exit(1);\n\n\t\t}\n\n\t\tSystem.out.println((encrypt ? \"Encryption\" : \"Decryption\") + \" completed. Generated file \" + filePath2\n\t\t\t\t+ \" based on file \" + filePath1 + \".\");\n\n\t}", "@Override\n\tpublic void encryptXml(File xmlDocument, File jks, String nazivCert) throws IOException {\n\t\tSecurity.addProvider(new BouncyCastleProvider());\n\t\torg.apache.xml.security.Init.init();\n\n\t\tDocument doc = loadDocument(xmlDocument.getCanonicalPath());\n\t\t// generise tajni kljuc\n\n\t\tSecretKey secretKey = generateDataEncryptionKey();\n\t\t// ucitava sertifikat za kriptovanje tajnog kljuca\n\t\tCertificate cert = readCertificate(jks.getCanonicalPath(), nazivCert);\n\t\t// kriptuje se dokument\n\n\t\tdoc = encrypt(doc, secretKey, cert);\n\t\t// snima se tajni kljuc\n\t\t// snima se dokument\n\t\tsaveDocument(doc, xmlDocument.getCanonicalPath());\n\n\t}", "public void writeKeyData(File f) throws IOException;", "protected byte[] getSignature() {\n return signatureImpl.calculate(content, null);\n }", "@Override\r\n\tpublic boolean isSign(final byte[] signData) throws IOException {\r\n if(!isValidDataFile(signData)) {\r\n \treturn false;\r\n }\r\n\r\n \tfinal File odfFile;\r\n \ttry {\r\n \t\todfFile = createTempFile(signData);\r\n \t\todfFile.deleteOnExit();\r\n \t}\r\n \tcatch (final Exception e) {\r\n \t\tLOGGER.warning(\"No se pudo crear una copia del fichero para su analisis, se devolvera false\"); //$NON-NLS-1$\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n \t// carga el fichero zip\r\n \tZipFile zf = null;\r\n \ttry {\r\n \t\tzf = new ZipFile(odfFile);\r\n \t}\r\n \tcatch (final Exception e) {\r\n \t\tif (zf != null) {\r\n \t\t\tzf.close();\r\n \t\t}\r\n \t\treturn false;\r\n \t}\r\n\r\n \t// obtiene el archivo mimetype\r\n \tfinal boolean ret = zf.getEntry(AOODFSigner.SIGNATURES_PATH) != null;\r\n \tzf.close();\r\n \treturn ret;\r\n }", "public void opentextfile(String path1)\n {\n FileInputStream fin,fin1;\n \tint i,j=0;\n String s=JOptionPane.showInputDialog(this,\"Enter key with 16 letters\");\n char ch[]=new char[s.length()];\n ch=s.toCharArray();\n try\n {\n FileOutputStream f=new FileOutputStream(\"key1.txt\");\n for(i=0;i<ch.length;i++)\n f.write(ch[i]);\n f.close();\n ideaalgo a=new ideaalgo(path1);\n a.procedure();\n a.encrypt();\n BufferedReader d;\n StringBuffer sb=new StringBuffer();\n d=new BufferedReader(new FileReader(path1));\n String line;\n while((line=d.readLine())!=null)\n sb.append(line+\"\\n\");\n ta.setText(sb.toString());\n d.close();\n fin=new FileInputStream(\"enc.txt\");\n do\n \t {\n\t i=fin.read();\n \t if(i!=-1)\n \t\t{\n bytes[j++]=i;\n }\n } while(i!=-1);\n max=j;\n fin.close();\n binarycon();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n }", "private static byte[] sign(KeyPair keyPair, Path path, String signatureAlgorithm)\n\t{\n\t\tbyte[] signature = null;\n\n\t\ttry\n\t\t{\n\t\t\tbyte[] dataFromFile = Files.readAllBytes(path);\n\t\t\tSignature sign = Signature.getInstance(signatureAlgorithm);\n\t\t\tsign.initSign(keyPair.getPrivate());\n\t\t\tsign.update(dataFromFile);\n\t\t\tsignature = sign.sign();\n\t\t} catch (IOException | InvalidKeyException | NoSuchAlgorithmException | SignatureException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn signature;\n\t}", "public void signToFile(File source, File signatureFile, ProgressListener listener) throws IOException, IllegalArgumentException, NoSuchAlgorithmException {\r\n\t\tString signature = this.sign(source, listener);\r\n\t\tFiles.write(signatureFile.toPath(), signature.getBytes(StandardCharsets.UTF_8));\r\n\t}", "public static void encryptFile(File inFile, String pass) throws IOException, GeneralSecurityException {\n\t\tbyte[] decData;\n\t\tbyte[] encData;\n\n\t\tCipher cipher = FileEncryptor.makeCipher(pass, true);\n\t\tif (cipher == null) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tFileInputStream inStream = new FileInputStream(inFile);\n\t\tint blockSize = 8;\n\t\tint paddedCount = blockSize - ((int) inFile.length() % blockSize);\n\t\tint padded = (int) inFile.length() + paddedCount;\n\n\t\tdecData = new byte[padded];\n\t\tinStream.read(decData);\n\t\tinStream.close();\n\n\t\tfor (int i = (int) inFile.length(); i < padded; ++i) {\n\t\t\tdecData[i] = (byte) paddedCount;\n\t\t}\n\n\t\tencData = cipher.doFinal(decData);\n\t\tFileOutputStream outStream = new FileOutputStream(inFile);\n\t\toutStream.write(encData);\n\t\toutStream.close();\n\t}", "protected void setEncrypted() {\n content = this.aesKey.encrypt(this.content);\n }", "public void encrypt() throws Exception {\n\t\tLogWriter = new BufferedWriter(new FileWriter(localWorkingDirectoryPath + \"\\\\Log_Encryption.txt\"));\n\t\tFileOutputStream configurationFileOutputStream = null;\n\n\t\t// Loading the store with the giving arguments\n\t\twriteToLog(\"Step 1: Loading the store with the giving arguments\");\n\t\tloadStore();\n\n\t\t// Getting the receiver's public-key\n\t\twriteToLog(\"Step 2: Getting the receiver's public-key\");\n\t\tCertificate receiverCert = keyStore.getCertificate(receiverSelfSignedCertAlias);\n\t\tif (receiverCert == null) {\n\t\t\twriteToLog(\"The entered certificate alias: \\\"\" + receiverSelfSignedCertAlias\n\t\t\t\t\t+ \"\\\" dose not exist in the keys store.\");\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"The entered certificate alias: \\\"\" + receiverSelfSignedCertAlias\n\t\t\t\t\t+ \"\\\" dose not exist in the keys store.\");\n\t\t}\n\t\tPublicKey receiverPublicKey = receiverCert.getPublicKey();\n\n\t\t// Getting my private key in order to generate a signature\n\t\twriteToLog(\"Step 3: Getting the encryptor's private-key\");\n\t\tPrivateKey myPrivateKey = getMyPrivateKey();\n\t\t\n\t\t// Generating a symmetric key\n\t\twriteToLog(\"Step 4: Generating a symmetric key\");\n\t\tKeyGenerator kg = KeyGenerator.getInstance(\"AES\");\n\t\tSecretKey semetricKey = kg.generateKey();\n\n\t\t// Generating a random IV\n\t\twriteToLog(\"Step 5: Generating a random IV\");\n\t\tbyte[] iv = generateRandomIV();\n\n\t\t// Initializing the cipher\n\t\twriteToLog(\"Step 6: Initilatzing the cipher Object\");\n\t\ttry {\n\t\t\tmyCipher = createCipher();\n\t\t\tmyCipher.init(Cipher.ENCRYPT_MODE, semetricKey, new IvParameterSpec(iv));\n\t\t}catch(Exception e) {\n\t\t\twriteToLog(\"Error While tring to Initializing the cipher with the giving arguments: \" + e.getMessage());\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"Error: While tring to Initializing the cipher with the giving arguments\",e);\n\t\t}\n\t\t\n\n\t\t// Initializing the signature with my private-key\n\t\twriteToLog(\"Step 7: Initilatzing the signature Object with the encryptor's private-key\");\n\t\tSignature dataSigner = Signature.getInstance(\"SHA256withRSA\");\n\t\tdataSigner.initSign(myPrivateKey);\n\n\t\t// Encrypting\n\t\twriteToLog(\"Step 8: Encrypting... \");\n\t\tFile fileToEncrrypt = new File(fileToEncryptPath);\n\t\tencryptingData(fileToEncrrypt, dataSigner);\n\n\t\t// Signing on the encrypted data\n\t\twriteToLog(\"Step 9: Signing on the encrypted data \");\n\t\tbyte[] mySignature = dataSigner.sign();\n\n\t\t// Encrypt the symmetric key with the public of the receiver\n\t\twriteToLog(\"Step 10: Encrypt the symmetric key with the public of the receiver \");\n\t\tbyte[] encryptedSymmetricKey = encryptSymmetricKey(receiverPublicKey, semetricKey);\n\n\t\t// Saving the IV, Encrypted Symmetric-Key and Signature to the configurations file\n\t\twriteToLog(\"Step 11: Saving the IV, Encrypted Semetric-Key and Signature to the configurations file \");\n\t\tsavingToConfigurationsFile(configurationFileOutputStream, iv, encryptedSymmetricKey, mySignature);\n\n\t\tLogWriter.write(\"Encryption completed, No Errors Were Found\");\n\t\tLogWriter.close();\n\t}", "public void runAES(String infoFilePath) {\n System.out.println(\"test\");\n try {\n FileInputStream fileInputStream = new FileInputStream(infoFilePath);\n StringBuffer stringBuffer = new StringBuffer();\n for (int i = fileInputStream.read(); i != 19; i = fileInputStream.read())\n stringBuffer.append((char) i);\n // long l = Long.parseLong(stringBuffer.toString());\n\n // This is the Long object in the `info` file.\n // byte[] builtSecretKey = buildSecretKey(-345585222195293739L);\n byte[] builtSecretKey = buildSecretKey(6874628185188049249L);\n\n MessageDigest messageDigest = MessageDigest.getInstance(\"MD5\");\n SecretKeySpec secretKeySpec = new SecretKeySpec(messageDigest.digest(builtSecretKey), \"AES\");\n Cipher cipher = Cipher.getInstance(\"AES\");\n cipher.init(2, secretKeySpec);\n ObjectInputStream objectInputStream = new ObjectInputStream(new CipherInputStream(fileInputStream, cipher));\n\n long secretKey = objectInputStream.readLong();\n HashMap<String, com.b.a.b.a> n = (HashMap<String, com.b.a.b.a>) objectInputStream.readObject();\n String k = (String) objectInputStream.readObject();\n String l = (String) objectInputStream.readObject();\n Boolean p = ((Boolean) objectInputStream.readObject()).booleanValue();\n Boolean o = ((Boolean) objectInputStream.readObject()).booleanValue();\n\n // Print everything\n System.out.println(secretKey);\n System.out.println(\"key_info:\");\n for (String key : n.keySet()) {\n com.b.a.b.a a = n.get(key);\n System.out.println(\" \" + key + \":\");\n System.out.println(\" a.a: \" + a.a.a());\n System.out.println(\" b: \" + a.a.b());\n System.out.println(\" c: \" + a.a.c());\n System.out.println(\" d: \" + a.a.d());\n System.out.println(\" e: \" + a.a.e().toString());\n System.out.println(\" f: \" + a.a.f());\n System.out.println(\" a.b: \" + a.b); // This is my key, existing in every file.\n System.out.println(\" a.c: \" + a.c);\n }\n System.out.println(k);\n System.out.println(l);\n System.out.println(p);\n System.out.println(o);\n\n objectInputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public abstract byte[] getSignature();", "public static void reSign() {\n\t\t//System.out.println(\"Data before resign: \" + dataList);\n\t\tfor(int i = 0 ; i < dataList.size() ; i++) {\n\t\t\t//there is char '-$'\n\t\t\tif(dataList.get(i).name.charAt(0)=='-') {\n\t\t\t\tData n = new Data(\"\"+dataList.get(i).name.charAt(1),dataList.get(i).value*(-1));\n\t\t\t\tdataList.remove(i);\n\t\t\t\tif(hasToken(n.name)) {\n\t\t\t\t\tint ind = getIndex(n.name);\n\t\t\t\t\tdataList.remove(ind);\n\t\t\t\t}\n\t\t\t\tdataList.add(n);\n\t\t\t}\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saved data: \" + dataList);\n\t}", "private static void crypting(boolean encrypt, String filename, String cryptedFilename) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tSystem.out.println(\"Please provide password as hex-encoded text (16 bytes, i.e. 32 hex-digits): \");\n\t\tSystem.out.print(\">\");\n\t\tString keyText = sc.nextLine();\n\n\t\tSystem.out.println(\"Please provide initialization vector as hex-encoded text (32 hex-digits): \");\n\t\tSystem.out.print(\">\");\n\t\tString ivText = sc.nextLine();\n\t\tsc.close();\n\n\t\tSecretKeySpec keySpec = new SecretKeySpec(Util.hextobyte(keyText), \"AES\");\n\t\tAlgorithmParameterSpec paramSpec = new IvParameterSpec(Util.hextobyte(ivText));\n\t\tCipher cipher = null;\n\n\t\ttry {\n\t\t\tcipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t\t\tcipher.init(encrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE, keySpec, paramSpec);\n\n\t\t} catch (NoSuchAlgorithmException | NoSuchPaddingException exc) {\n\t\t\tSystem.out.println(\"Transformation is in invalid format or contains padding scheme that is unavailable. \");\n\t\t\tSystem.exit(1);\n\t\t} catch (InvalidKeyException | InvalidAlgorithmParameterException exc) {\n\t\t\tSystem.out.println(\"Given key or algorithm is invalid for this cipher.\");\n\t\t\tSystem.exit(1);\n\n\t\t}\n\n\t\ttry (InputStream inputStream = new BufferedInputStream(new FileInputStream(filename));\n\t\t\t\tOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(cryptedFilename))) {\n\n\t\t\tint nRead;\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tbyte[] inputfile = null;\n\n\t\t\twhile ((nRead = inputStream.read(buffer, 0, buffer.length)) != -1) {\n\t\t\t\tinputfile = cipher.update(buffer, 0, nRead);\n\t\t\t\toutputStream.write(inputfile);\n\t\t\t}\n\n\t\t\tinputfile = cipher.doFinal();\n\t\t\toutputStream.write(inputfile);\n\n\t\t} catch (FileNotFoundException exc) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"File does not exist, is a directory rather than a regular file, or cannot be opened for reading because of some other reason. \");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"Input stream couldn't be initialized.\");\n\t\t\tSystem.exit(1);\n\n\t\t} catch (IllegalBlockSizeException | BadPaddingException e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Encryption algorithm is unable to process the input data provided or the decrypted data is not bounded by the appropriate padding bytes. \");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tif (encrypt) {\n\t\t\tSystem.out.printf(\"Encryption completed. Generated file %s based on file %s.\\n\", cryptedFilename, filename);\n\t\t} else {\n\t\t\tSystem.out.printf(\"Decryption completed. Generated file %s based on file %s.\\n\", cryptedFilename, filename);\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\n\t\tif (args.length != 5) {\n\t\t System.out.println(\"Usage: GenSig nameOfFileToSign keystore password sign publicKey\");\n\n\t\t }\n\t\telse try{\n\n\t\t KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t ks.load(new FileInputStream(args[1]), args[2].toCharArray());\n\t\t \n\t\t String alias = (String)ks.aliases().nextElement();\n\t\t PrivateKey privateKey = (PrivateKey) ks.getKey(alias, args[2].toCharArray());\n\n\t\t Certificate cert = ks.getCertificate(alias);\n\n\t\t // Get public key\t\n\t\t PublicKey publicKey = cert.getPublicKey();\n\n\t\t /* Create a Signature object and initialize it with the private key */\n\n\t\t Signature rsa = Signature.getInstance(\"SHA256withRSA\");\t\n\t\n\n\t\t rsa.initSign(privateKey);\n\n\t\t /* Update and sign the data */\n\n \t String hexString = readFile(args[0]).trim();\n\t\t byte[] decodedBytes = DatatypeConverter.parseHexBinary(hexString);\t\n\t\t InputStream bufin = new ByteArrayInputStream(decodedBytes);\n\n\n\t\t byte[] buffer = new byte[1024];\n\t\t int len;\n\t\t while (bufin.available() != 0) {\n\t\t\tlen = bufin.read(buffer);\n\t\t\trsa.update(buffer, 0, len);\n\t\t };\n\n\t\t bufin.close();\n\n\t\t /* Now that all the data to be signed has been read in, \n\t\t\t generate a signature for it */\n\n\t\t byte[] realSig = rsa.sign();\n\n\t\t \n\t\t /* Save the signature in a file */\n\n\t\t File file = new File(args[3]);\n\t\t PrintWriter out = new PrintWriter(file);\n\n\t\t\t// if file doesn't exists, then create it\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\n\t\t out.println(DatatypeConverter.printBase64Binary(realSig));\n\t\t out.close();\n\n\n\t\t /* Save the public key in a file */\n\t\t byte[] key = publicKey.getEncoded();\n\t\t FileOutputStream keyfos = new FileOutputStream(args[4]);\n\t\t keyfos.write(key);\n\n\t\t keyfos.close();\n\n\t\t} catch (Exception e) {\n\t\t System.err.println(\"Caught exception \" + e.toString());\n\t\t}\n\n\t}", "public void loadKey(File in, File privateKeyFile) throws GeneralSecurityException, IOException {\n\t byte[] encodedKey = new byte[(int)privateKeyFile.length()];\n\t FileInputStream is = new FileInputStream(privateKeyFile);\n\t is.read(encodedKey);\n\t \n\t // create private key\n\t PKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(encodedKey);\n\t KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n\t PrivateKey pk = kf.generatePrivate(privateKeySpec);\n\t \n\t // read AES key\n\t pkCipher.init(Cipher.DECRYPT_MODE, pk);\n\t aesKey = new byte[256/8];\n\t CipherInputStream cis = new CipherInputStream(new FileInputStream(in), pkCipher);\n\t cis.read(aesKey);\n\t aesKeySpec = new SecretKeySpec(aesKey, \"AES\");\n\t cis.close();\n\t is.close();\n\t }", "void encryptFile(String path) throws IOException {\n try (BufferedReader reader = new BufferedReader(new FileReader(path))) {\n PrintWriter writer = new PrintWriter(System.out);\n encryptFile(reader, writer);\n } catch (FileNotFoundException e) {\n System.out.println(\"Error: Input file not found\");\n }\n }", "@Override\r\n\tpublic void updateFileData(FileMetaDataEntity userInfo) {\n\t\t\r\n\t}", "@SuppressWarnings(\"all\")\n public static void main(String...args) throws Exception {\n FileInputStream pubKFile = new FileInputStream(\"C:\\\\Demo\\\\publicKey\");\n byte[] encKey = new byte[pubKFile.available()];\n pubKFile.read(encKey);\n pubKFile.close();\n\n // 2. decode the public key\n X509EncodedKeySpec spec = new X509EncodedKeySpec(encKey);\n PublicKey publicKey = KeyFactory.getInstance(\"DSA\").generatePublic(spec);\n\n // 3. read the signature\n FileInputStream signatureFile = new FileInputStream(\"C:\\\\Demo\\\\signature\");\n byte[] sigByte = new byte[signatureFile.available()];\n signatureFile.read(sigByte);\n signatureFile.close();\n\n // 4. generate the signature\n Signature signature = Signature.getInstance(\"SHA1withDSA\");\n signature.initVerify(publicKey);\n\n // 5. supply the data\n FileInputStream dataFile = new FileInputStream(\"C:\\\\Demo\\\\code\");\n BufferedInputStream dataStream = new BufferedInputStream(dataFile);\n byte[] tmpBuf = new byte[dataStream.available()];\n int len;\n while ((len = dataStream.read(tmpBuf)) >= 0) {\n signature.update(tmpBuf, 0, len);\n }\n dataStream.close();\n\n // 6. verify\n boolean result = signature.verify(sigByte);\n System.out.println(\"Result:\" + result);\n }", "public static void decrypt() throws IOException{\n\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(inFilename));\n\t\tBufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(outFilename));\n\n\t\tbyte[] key; //holds the encryption key\n\n\t\t//get the file length\n\t\tlong fileLength = (new File(inFilename)).length();\n\n\t\t//check the file header marker\n\t\tbyte[] actualHeader = new byte[FILE_HEADER.length];\n\t\tin.read(actualHeader); //read header from the file\n\t\tif (!Arrays.equals(actualHeader, FILE_HEADER)){\n\t\t\tSystem.out.println(\"The file was not encrypted with this program.\");\n\t\t\tSystem.exit(-1); //-1 is an error code\n\t\t}\n\n\t\t/* STAGE 1 - generate decryption key */\n\t\t//read the #padded bits and random salt from the file\n\t\tbyte[] dataFromFile = new byte[129]; //1 byte for #padded bits + 128 bytes for salt\n\t\tin.read(dataFromFile);\n\t\t//separate the #padded bits for use later\n\t\tint numPad = (int)(dataFromFile[0]);\n\t\t//next, generate the message for CubeHash: (password + dataFromFile)\n\t\tbyte[] message = new byte[password.length + dataFromFile.length];\n\t\tSystem.arraycopy(password, 0, message, 0, password.length); //add the password\n\t\tSystem.arraycopy(dataFromFile, 0, message, password.length, dataFromFile.length); //add dataFromFile\n\t\t//finally, (re)generate the encryption key\n\t\tkey = CryptoLib.CubeHash.doCubeHash(message);\n\n\t\t/* STAGE 2 - apply decryption */\n\t\tint currPiece = 0; //keeps track of which piece of the key is being used\n\t\tbyte[] currData = new byte[8]; //holds the data currently being decrypted\n\n\t\t//split the key into 4 pieces of 128 bits each\n\t\tbyte[][] keyPieces = new byte[4][16];\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tSystem.arraycopy(key, i*16, keyPieces[i], 0, 16);\n\t\t}\n\n\t\t//loop through the rest of the file (except the last block), 8 bytes at a time\n\t\tfor (long i = FILE_HEADER.length + 129; i < fileLength - 8; i += 8){\n\t\t\t//put a chunk of data in currData\n\t\t\tin.read(currData);\n\n\t\t\t//do RC4(key, unTEA(key, data)), then write to file\n\t\t\tout.write(CryptoLib.RC4.doRC4(keyPieces[currPiece],\n\t\t\t\t\t\tCryptoLib.TEA.doUnTEA(keyPieces[currPiece], currData)));\n\n\t\t\t//increment currPiece\n\t\t\tcurrPiece = (currPiece + 1) % 4;\n\t\t}\n\n\t\t//deal with the last chunk of data:\n\t\t//first, read it..\n\t\tin.read(currData);\n\t\t//..decrypt it..\n\t\tcurrData = CryptoLib.RC4.doRC4(keyPieces[currPiece],\n\t\t\t\tCryptoLib.TEA.doUnTEA(keyPieces[currPiece], currData));\n\t\t//..then write it to the file\n\t\tout.write(currData, 0, (8 - numPad));\n\n\t\t/* STAGE 3 - done! */\n\t\tin.close();\n\t\tout.close();\n\t\tSystem.out.println(\"\\nDecryption complete.\");\n\t}", "String encode(File message, File key,File crypted);", "public void run(boolean encrypted) throws Exception {\n InputStream inputStream = context.getContentResolver().openInputStream(uri);\n\n //read file\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n\n //initiate empty array list to store records retrieved\n ArrayList<Record> newRecords = new ArrayList<>();\n\n //initiate base64 for decoding\n CryptographyBase64 b64 = new CryptographyBase64();\n\n //check if file is encrypted\n if (encrypted){\n //read encrypted file\n String line;\n StringBuilder encryptedMessage = new StringBuilder();\n while ((line = reader.readLine()) != null ){\n encryptedMessage.append(line);\n }\n //decrypt message and add transactions to database\n String decrypted = new Cryptography(context).Decrypt(encryptedMessage.toString());\n for (String dataLine : decrypted.split(\"\\n\")){\n\n //separate data by delimiter\n String[] data = dataLine.split(delimiter);\n\n //decode images if not null\n byte[] decodedImg = (!data[6].equals(\"null\")) ? b64.b64ToBytes(data[6]) : null;\n\n //add record to arrayList\n newRecords.add(new Record(data[0], data[1],Double.parseDouble(data[2]), data[3], data[4],data[5], decodedImg, wallet.getWalletId()));\n }\n }\n else{\n //read file line by line\n String line;\n while ((line = reader.readLine()) != null ){\n String[] data = line.split(delimiter); //separate data by delimiter\n\n //decode images if not null\n byte[] decodedImg = (!data[6].equals(\"null\")) ? b64.b64ToBytes(data[6]) : null;\n\n //add record to arrayList\n newRecords.add(new Record(data[0], data[1],Double.parseDouble(data[2]), data[3], data[4],data[5], decodedImg, wallet.getWalletId()));\n }\n }\n\n //insert records to database in bulk when completed\n dbHandler.addRangeRecord(newRecords);\n Toast.makeText(context, \"File successfully imported\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public InputStream encrypt(InputStream in, EncryptionKey publicKey) throws IOException {\n KeyEncapsulationMechanism.KeyAndCiphertext<SymmetricKey> keyAndCiphertext = kem.encaps(publicKey);\n\n //Serialize the encapsulated key\n byte[] encapsulatedKey = new JSONConverter().serialize(keyAndCiphertext.encapsulatedKey.getRepresentation())\n .getBytes(StandardCharsets.UTF_8);\n\n //Prepare the encapsulated key length as the first four bytes of the ciphertext. That ought to be enough for\n // everybody.\n byte[] keyLenBytes = ByteBuffer.allocate(4).putInt(encapsulatedKey.length).array();\n\n //Return resulting stream that concatenates: keyLenBytes || encapsulatedKey || ciphertextFromSymmetricScheme\n return new SequenceInputStream(new ByteArrayInputStream(keyLenBytes),\n new SequenceInputStream(new ByteArrayInputStream(encapsulatedKey),\n symmetricScheme.encrypt(in, keyAndCiphertext.key)));\n }", "public void addFileEntryIntoFileKeys(\n String encKey, String publicKey, String fileName, int isOwner)\n throws InterruptedException {\n Log.i(\"addFileEntryIntoFK\", \"About to add entry with encKey \" + encKey + \",\" +\n \" publicKey \" + publicKey + \" fileName \" + fileName + \" isOwner \" + isOwner);\n ContentValues contentValues = new ContentValues();\n contentValues.put(\"EncKey\", encKey);\n contentValues.put(\"UserPublicKey\", publicKey);\n contentValues.put(\"File\", fileName);\n contentValues.put(\"isOwner\", isOwner);\n database.insert(\"FileKeys\", null, contentValues);\n AsyncTask.execute(new Runnable() {\n @Override\n public void run() {\n updateDatabaseFile();\n Log.i(\"AsyncTask\", \"database file updated\");\n finished = true;\n }\n });\n customWait();\n Log.i(\"addFileEntryIntoFK\", \"Added entry\");\n }", "public byte[] encrypt(byte[] input, String publicKeyFilePath) throws Exception {\n\t\treturn encrypt(input, getPublicKey(publicKeyFilePath));\n\t}", "public static void execEnkripsiBulk(List<File> lsFileTemp, String pathZippedFile, String pathTempFileEncryptName, String pathEncryptedSecretKeyFile, SimpleDateFormat sdf, String pemContent) throws Exception{\r\n /*Step 2 : kompresi file*/\r\n// System.out.println(\"Step 2 : kompresi file\");\r\n\r\n //Generate Secret Key untuk setiap file yang dienkripsi\r\n /**\r\n * Kunci acak 16 Digit, dan setiap pengekripsian harus beda\r\n * contoh : A1b2C3D4E5F6G7h8\r\n * */\r\n String secretKey=RandomStringUtils.randomAlphanumeric(16);\r\n System.out.println(\"Generated Secret Key :\"+secretKey);\r\n\r\n File exportedFile;\r\n CompressingUtils compressingUtils = new CompressingUtils();\r\n String outputTmpFileNameZip = pathZippedFile.replace(\".\",\"\")+\"Tmp.zip\";\r\n String outputFileNameZip = pathZippedFile.replace(\".\",\"\")+sdf.format(new Date())+\".zip\";\r\n\r\n compressingUtils = new CompressingUtils();\r\n if(compressingUtils.createZipWithoutPassword(lsFileTemp, outputTmpFileNameZip)){\r\n exportedFile = new File(outputTmpFileNameZip);\r\n }else{\r\n throw new Exception(\"gagal melakukan kompresi file tanpa password\");\r\n }\r\n\r\n\r\n //delete file hasil enkripsi per file yang telah dimasukan ke dalam file kompresi untuk enkripsi tahap gabungan file\r\n for(File file : lsFileTemp){\r\n file.delete();\r\n }\r\n\r\n System.out.println(\"file kompresi berhasil dibuat \"+ outputFileNameZip);\r\n\r\n /*Step 3 : enkripsi file dengan kunci acak */\r\n System.out.println(\"Step 3 : enkripsi file dengan kunci acak\");\r\n\r\n\r\n String fileOutputEcnryptedname = outputFileNameZip;\r\n\r\n File tempFileEncryptName = new File(pathTempFileEncryptName);\r\n try {\r\n CryptoUtils.encrypt(secretKey, exportedFile, tempFileEncryptName);\r\n } catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi file gagal : \" + e.getMessage());\r\n }\r\n\r\n\r\n EncryptionUtils utils = new EncryptionUtils();\r\n PublicKey publicKey = utils.getPublicKeyFromX509(pemContent);\r\n\r\n /*Step 4 : Enkripsi kunci acak dengan public key dari DJP*/\r\n System.out.println(\"Step 4 : enkripsi kunci acak dengan public key dari DJP\");\r\n\r\n String encryptedSecretKey;\r\n try{\r\n encryptedSecretKey = CryptoUtils.encrypt(secretKey, publicKey);\r\n }catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi kunci gagal : \" + e.getMessage());\r\n }\r\n File encryptedSecretKeyFile = new File(pathEncryptedSecretKeyFile);\r\n try {\r\n FileOutputStream outputStream = new FileOutputStream(encryptedSecretKeyFile);\r\n outputStream.write(encryptedSecretKey.getBytes());\r\n outputStream.close();\r\n }catch (FileNotFoundException e){\r\n throw new Exception(\"kunci yang dienkripsi tidak ditemukan : \" + pathEncryptedSecretKeyFile);\r\n } catch (IOException e) {\r\n throw new Exception(\"gagal membentuk kunci enkripsi\");\r\n }\r\n\r\n /*Step 5: Compress data dan key kedalam file zip dan menjadi hasil akhir*/\r\n System.out.println(\"Step 5: Compress enkripsi file dan kunci kedalam file zip\");\r\n\r\n List<File> listFiles = new ArrayList<File>();\r\n listFiles.add(tempFileEncryptName);\r\n listFiles.add(encryptedSecretKeyFile);\r\n\r\n if(listFiles.size() != 2){\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n throw new Exception(\"file enkripsi dan/atau key enkripsi salah satunya tidak ada\");\r\n }\r\n\r\n compressingUtils = new CompressingUtils();\r\n if (compressingUtils.createZip(listFiles, fileOutputEcnryptedname)) {\r\n /*Step 6 : hapus file data dan key, hasil dari step 3 dan 4 */\r\n System.out.println(\"Step 6 : hapus file data dan key, hasil dari step 3 dan 4\");\r\n\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n /*Step 7: hapus file zip, hasil dari step 2 */\r\n System.out.println(\"Step 7: hapus file zip, hasil dari step 2\");\r\n\r\n exportedFile.delete();\r\n }\r\n\r\n System.out.println(\"Proses enkripsi selesai, nama file : \" + fileOutputEcnryptedname);\r\n }", "public interface CryptoService {\n /**\n * Read encrypted password file.\n *\n * @param file Encrypted file instance.\n * @param password Password to decrypt file.\n *\n * @return file content.\n *\n * */\n String readFile(File file, String password);\n\n /**\n * Write and encrypt content to file.\n *\n * @param file encrypted file location.\n * @param password password which will be used to encrypt file.\n * @param cnt file content.\n * */\n void writeFile(File file, String password, String cnt);\n\n /**\n * Encrypt content\n *\n * @param password password which will be used to encrypt file.\n * @param textToEncrypt text which will be encrypted\n * @return encrypted content\n * */\n String encrypt(String password, String textToEncrypt);\n\n /**\n * Decrypt content\n *\n * @param password password which will be used to encrypt file.\n * @param textToDecrypt text which will be decrypted\n * @return decrypted content\n * */\n String decrypt(String password, String textToDecrypt);\n\n /**\n * Write and encrypt the password database.\n *\n * @param passwordDatabase passwords database which will be saved to encrypted file.\n * */\n void writeFile(PasswordDatabase passwordDatabase) throws JsonConversionException;\n}", "private void prga(){\n int i = 0;\n int a = 0;\n int b = 0;\n StringBuilder sb = new StringBuilder();\n fileEncrypted.clear();\n\n byte[] code = new byte[filePlain.size()];\n while (i<filePlain.size()){\n a = (a + 1) % 256;\n b = (b + s_box.get(a)) % 256;\n Collections.swap(s_box, a, b);\n\n int key_int = s_box.get((s_box.get(a) + s_box.get(b))% 256);\n byte cypher = (byte) (key_int^filePlain.get(i));\n\n fileEncrypted.add(cypher);\n sb.append((char)cypher);\n code[i] = cypher;\n i++;\n }\n\n System.out.println(\"aaa\");\n// export file\n Helper.exportFile(code, extension, true);\n }", "public void decryptAndEncryptData() throws KeyChangeException {\n // Validating the xml to avoid null pointers\n if (KeyChangeDataUtils.validateXML()) {\n // Set key store configurations\n initialize();\n // Decrypt and encrypt resource properties using new key store.\n changeEncryptedEntries();\n // Decrypt and encrypt data for DSS\n if (KeyChangeDataUtils.isDssDeployed(getKeyChangeXmlDocument())) {\n changeDSSDataSourceEncryptedEntries();\n }\n } else {\n throw new KeyChangeException(\"keyChange.xml validation error when getting tenant or registry data. Please\"\n + \" check your configurations\");\n }\n }", "public void testEncryptionSHA1SymmetricBytes() throws Exception {\n WSSecEncrypt builder = new WSSecEncrypt();\n builder.setKeyIdentifierType(WSConstants.ENCRYPTED_KEY_SHA1_IDENTIFIER);\n builder.setEphemeralKey(keyData);\n builder.setEncryptSymmKey(false);\n builder.setUseKeyIdentifier(true);\n \n LOG.info(\"Before Encrypting EncryptedKeySHA1....\");\n Document doc = unsignedEnvelope.getAsDocument();\n WSSecHeader secHeader = new WSSecHeader();\n secHeader.insertSecurityHeader(doc); \n Document encryptedDoc = builder.build(doc, crypto, secHeader);\n \n String outputString = \n org.apache.ws.security.util.XMLUtils.PrettyDocumentToString(encryptedDoc);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Encrypted message with ENCRYPTED_KEY_SHA1_IDENTIFIER:\");\n LOG.debug(outputString);\n }\n assertTrue(outputString.indexOf(\"#EncryptedKeySHA1\") != -1);\n \n LOG.info(\"After Encrypting EncryptedKeySHA1....\");\n verify(encryptedDoc);\n }", "public interface SignatureFactory \n{\n /** \n * initializes the implementation class \n */\n public void init()\n throws SignedDocException;\n \n /**\n * Method returns an array of strings representing the \n * list of available token names.\n * @return an array of available token names.\n * @throws SignedDocException if reading the token information fails.\n */\n public String[] getAvailableTokenNames()\n throws SignedDocException;\n \n /**\n * Method returns a digital signature. It finds the RSA private \n * key object from the active token and\n * then signs the given data with this key and RSA mechanism.\n * @param digest digest of the data to be signed.\n * @param token token index\n * @param pin users pin code\n * @return an array of bytes containing digital signature.\n * @throws SignedDocException if signing the data fails.\n */\n public byte[] sign(byte[] digest, int token, String pin) \n throws SignedDocException;\n \n /**\n * Method returns a X.509 certificate object readed \n * from the active token and representing an\n * user public key certificate value.\n * @return X.509 certificate object.\n * @throws SignedDocException if getting X.509 public key certificate \n * fails or the requested certificate type X.509 is not available in \n * the default provider package\n */\n public X509Certificate getCertificate(int token, String pin)\n throws SignedDocException;\n \n /**\n * Resets the previous session\n * and other selected values\n */\n public void reset() \n throws SignedDocException;\n \n\t/**\n\t * Method decrypts the data with the RSA private key\n\t * corresponding to this certificate (which was used\n\t * to encrypt it). Decryption will be done on the card.\n\t * This operation closes the possibly opened previous\n\t * session with signature token and opens a new one with\n\t * authentication token if necessary\n\t * @param data data to be decrypted.\n\t * @param token index of authentication token\n\t * @param pin PIN code\n\t * @return decrypted data.\n\t * @throws SignedDocException for all decryption errors\n\t */\n\tpublic byte[] decrypt(byte[] data, int token, String pin) \n\t\tthrows SignedDocException;\n\t\t\t\t\n}", "private final static void doRegenerateSecretKey1(SwiftConnections conn, SwiftConnectionResultHandler fileHandler)\n throws IOException {\n conn.generate_account_meta_temp_url_key(fileHandler);\n }", "private void updateDataFile(DataFile dataFile) {\n updateMeeting(dataFile.getMeeting());\n }", "@RequestMapping(value=\"/receiveFile\", method = RequestMethod.POST)\n public ResponseEntity<JsonResponse> receiveFile(@RequestBody JsonRequest request) {\n \n try{\n byte[] decodedContent = Base64.getDecoder().decode(request.getContent());\n\n PDFSecure pdfDoc = new PDFSecure(new ByteArrayInputStream(decodedContent), null);\n\n // Load the keystore that contains the digital id to use in signing\n FileInputStream pkcs12Stream = new FileInputStream (System.getenv(\"KEYSTORE_PATH\"));\n KeyStore store = KeyStore.getInstance(\"PKCS12\");\n \n store.load(pkcs12Stream, \"mypassword\".toCharArray());\n pkcs12Stream.close();\n\n // Create signing information\n SigningInformation signInfo = new SigningInformation (store, \"myalias\", \"mypassword\");\n\n // Customize the signature appearance\n SignatureAppearance signAppear = signInfo.getSignatureAppearance();\n\n // Create signature field on the first page\n Rectangle2D signBounds = new Rectangle2D.Double (36, 36, 144, 48);\n SignatureField signField = pdfDoc.addSignatureField(0, \"signature\", signBounds);\n\n // Apply digital signature\n pdfDoc.signDocument(signField, signInfo);\n \n ByteArrayOutputStream signedContent = new ByteArrayOutputStream();\n\n pdfDoc.saveDocument (signedContent);\n\n String encodedSignedContent = Base64.getEncoder().encodeToString(signedContent.toByteArray());\n\n log.info(request.getFileName());\n\n return new ResponseEntity<>(new JsonResponse(request.getFileName(), encodedSignedContent, \"sucess\"), HttpStatus.CREATED);\n } catch (Exception e) {\n \n e.printStackTrace();\n return new ResponseEntity<>(new JsonResponse(request.getFileName(), \"null\", \"exception\"), HttpStatus.INTERNAL_SERVER_ERROR);\n }\n\n }", "public byte[] packAllData1(byte[] data) {\n byte[] message = null;\n try{\n //CRC\n int crc16 = alisa.CRC.crc16(data, 0, data.length);\n byte hi = (byte)((crc16 >> 8) & 0xff);\n byte lo = (byte)(crc16 & 0xff);\n\n //crcData <- data + [hi][lo]\n byte[] crcData = new byte[data.length + 2];\n System.arraycopy(data, 0, crcData, 0, data.length);\n crcData[crcData.length-2] = hi;\n crcData[crcData.length-1] = lo;\n System.out.println(\"File-\" + this._id + \": key length = \" +this._key.length);\n byte[] secret = new Encode().encrypt(crcData, this._key);\n\n //check, can the encoded data be decode and crc?. before send it to server\n byte[] decode = new Encode().decrypt(secret, this._key);\n if(alisa.CRC.crc16(decode, 0, decode.length) != 0){\n System.out.println(\"File-\" + this._id + \": Wrong Encoding data!!\");\n return packAllData1(data);\n }\n\n System.out.println(\"File-\" + this._id + \": Password = \" +this._password + \"\\n\" + \"File-\" + this._id + \": Hash = \" + new String(this._key, \"ISO-8859-1\"));\n // //---------show crc data------------------------\n // String show2 = \"\";\n // for(int i =0; i < crcData.length; i++){\n // show2 += (int)crcData[i] + \" \";\n // }\n // System.out.println(\"File-\" + this._id + \" crcData: \" + show2);\n // //------------------------------------------\n // //---------show encnrypted data-----------------\n // String show3 = \"\";\n // for(int i =0; i < secret.length; i++){\n // show3 += (int)secret[i] + \" \";\n // }\n // System.out.println(\"File-\" + this._id + \" secret(no header): \" + show3);\n // //------------------------------------------\n // //---------show decnrypted data-----------------\n // String show4 = \"\";\n // for(int i =0; i < decode.length; i++){\n // show4 += (int)decode[i] + \" \";\n // }\n // System.out.println(\"File-\" + this._id + \" decodeed secret: \" + show4);\n // //------------------------------------------\n\n message = new byte[secret.length + 4];\n System.arraycopy(secret, 0, message, 3, secret.length);\n message[0] = (byte)255;\n message[1] = (byte)((this._id >> 8) & 0xff);\n message[2] = (byte)(this._id & 0xff);\n message[message.length-1] = (byte)254;\n }catch(Exception e){\n System.out.println(\"File-\" + this._id + \": packAllData Error\");\n try { Thread.sleep(this._interval); } catch (InterruptedException ex) { }\n return packAllData1(data);\n }\n return message;\n }", "public CryptoThread(File file,SecretKeySpec skeySpec) {\r\n\t\tthis.simmetricKey = skeySpec;\r\n\t\tthis.fileToEncrypt = file;\r\n\t\tif (fileToEncrypt!= null) {\r\n\t\t\tthis.start();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtContent.setText(\"\");\n\t\t\t\tif (filename == null) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"You haven't selected any files yet!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (cbOption.getSelectedItem().toString() == \"Encrypt\") {\n\t\t\t\t\tswitch (cbAlgorithm.getSelectedItem().toString()) {\n\t\t\t\t\tcase \"AES\":\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tAES.encrypt(keyStr, filename, new File(\"document.encrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.encrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t \ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t} catch (CryptoException | IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong key size. Your key must contain exactly \" + String.valueOf(keyLength/4) +\n\t\t\t\t\t\t\t\t\t\" characters including WS!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"DES\":\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tDES.encrypt(keyStr, filename, new File(\"document.encrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.encrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t \ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t} catch (InvalidKeySpecException | CryptoException | IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong key size. Your key must contain exactly 16 characters including WS!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tkeyPath = cbSelectKey.getSelectedItem().toString();\n\t\t\t\t\t\t\tkeyStr = Base64.getEncoder().encodeToString(RSA.loadPublicKey(URL_DIR + keyPath).getEncoded());\n\t\t\t\t\t\t\tRSA.encrypt(keyStr, filename, new File(\"document.encrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.encrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t\t\ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tswitch (cbAlgorithm.getSelectedItem().toString()) {\n\t\t\t\t\tcase \"AES\":\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tAES.decrypt(keyStr, filename, new File(\"document.decrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.decrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t\t\ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t \thMACLine = line;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t\ttxtFileMac.setText(hMACLine.substring(hMACLine.length() - 64));\n\t\t\t\t\t\t\ttxtCalculatedMac.setText(HMAC.hmacDigestDecrypt(new File(\"document.decrypted\"), keyStr));\n\t\t\t\t\t\t\tlblPercent.setVisible(true);\n\t\t\t\t\t\t\tlblPercent.setText(Integer.toString(ByteDifference(txtFileMac.getText().toCharArray(), txtCalculatedMac.getText().toCharArray())) + \"%\");\n\t\t\t\t\t\t\trewritingHashedFile(new File(\"document.decrypted\"));\n\t\t\t\t\t\t} catch (CryptoException | IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong key size. Your key must contain exactly \" + String.valueOf(keyLength/4) +\n\t\t\t\t\t\t\t\t\t\" characters including WS!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"DES\":\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tDES.decrypt(keyStr, filename, new File(\"document.decrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.decrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t\t\ttxtContent.append(line + \"\\n\");\n\t\t\t\t\t\t \thMACLine = line;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t\ttxtFileMac.setText(hMACLine.substring(hMACLine.length() - 64));\n\t\t\t\t\t\t\ttxtCalculatedMac.setText(HMAC.hmacDigestDecrypt(new File(\"document.decrypted\"), keyStr));\n\t\t\t\t\t\t\tlblPercent.setVisible(true);\n\t\t\t\t\t\t\tlblPercent.setText(Integer.toString(ByteDifference(txtFileMac.getText().toCharArray(), txtCalculatedMac.getText().toCharArray())) + \"%\");\n\t\t\t\t\t\t\trewritingHashedFile(new File(\"document.decrypted\"));\n\t\t\t\t\t\t} catch (InvalidKeySpecException | CryptoException | IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frame, \"Wrong key size. Your key must contain exactly 16 characters including WS!\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tkeyPath = cbSelectKey.getSelectedItem().toString();\n\t\t\t\t\t\t\tkeyStr = Base64.getEncoder().encodeToString(RSA.loadPrivateKey(URL_DIR + keyPath).getEncoded());\n\t\t\t\t\t\t\tpubKeyStr = Base64.getEncoder().encodeToString(RSA.loadPublicKey(URL_DIR + keyPath.replace(\"PrivateKey\", \"PublicKey\")).getEncoded());\n\t\t\t\t\t\t\tRSA.decrypt(keyStr, filename, new File(\"document.decrypted\"));\n\t\t\t\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"document.decrypted\"));\n\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\t\t \ttxtContent.append(line);\n\t\t\t\t\t\t \ttxtContent.append(\"\\n\");\n\t\t\t\t\t\t \thMACLine = line;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbr.close();\n\t\t\t\t\t\t\ttxtFileMac.setText(hMACLine.substring(hMACLine.length() - 64));\n\t\t\t\t\t\t\ttxtCalculatedMac.setText(HMAC.hmacDigestDecrypt(new File(\"document.decrypted\"), pubKeyStr));\n\t\t\t\t\t\t\tlblPercent.setVisible(true);\n\t\t\t\t\t\t\tlblPercent.setText(Integer.toString(ByteDifference(txtFileMac.getText().toCharArray(), txtCalculatedMac.getText().toCharArray())) + \"%\");\n\t\t\t\t\t\t\trewritingHashedFile(new File(\"document.decrypted\"));\n\t\t\t\t\t\t} catch (InvalidKeySpecException | CryptoException | IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "void setSignatureImage(byte[] signatureImage);", "void decryption(String file)\n {\n try\n {\n fdec=new DataOutputStream(new FileOutputStream(\"dec.txt\"));\n fenc1=new FileInputStream(file);\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n try\n {\n size=fenc1.available();\n np=0;\n p=size%8;\n if(p!=0)\n np=8-p;\n size+=np;\n if(p==0)\n nl=size/8;\n else\n nl=size/8+1;\n buf1=new byte[size+10];\n buf=new byte[8];\n fenc1.read(buf1);\n mark=-8;\n int arr[]=new int [8];\n for(k1=0;k1<nl;k1++)\n {\n mark+=8;\n for(int k2=0;k2<8;k2++)\n buf[k2]=buf1[mark+k2];\n for(int k2=0;k2<8;k2++)\n\t {\n\t arr[k2]=0;\n\t if(buf[k2]>=0)\n\t arr[k2]=buf[k2];\n\t else\n\t arr[k2]=buf[k2]+256;\n }\n\t j1=0;i1=0;\n while( i1<=3)\n\t\t {\n\t\t if((j1+1)%2==0)\n\t {\n x[i1]|=arr[j1]; // dividing 64 bit cypher block into four 16 bit registers\n\t i1++;\n\t\t }\n\t else\n\t {\n\t \t x[i1]=arr[j1];\n\t x[i1]<<=8;\n\t }\n\t j1++;\n\t }\n for(int t=0;t<4;t++)\n {\n\t ft1 =x[t]&255;\n\t ft=x[t]>>8;\n\t }\n step1=mul( x[0] , minverse( z[48] ));\n step2=( x[1] + ainverse( z[49] )) % 65536;\n step3=( x[2] + ainverse( z[50] )) % 65536;\n step4=mul( x[3] , minverse( z[51] ));\n step5=step1^step3;\n step6=step2^step4;\n step7=mul(step5,z[46]);\n step8=(step6+step7)%65536;\n step9=mul(step8,z[47]);\n step10=(step7+step9)%65536;\n step11=step1^step9;\n step12=step3^step9;\n step13=step2^step10;\n step14=step4^step10;\n x[0]=step11;\n x[1]=step12;\n x[2]=step13;\n x[3]=step14;\n// 2nd round\n\tint j2=40;\n\t\tfor(j1=1;j1<=7;j1++)\n \t\t {\n step1=mul( x[0] , minverse( z[j2+2] ));\n step2=( x[1] + ainverse( z[j2+4] )) % 65536;\n step3=( x[2] + ainverse( z[j2+3] )) % 65536;\n t=step2;\n step2=step3;\n step3=t;\n step4=mul( x[3] , minverse( z[j2+5] ));\n step5=step1^step3;\n step6=step2^step4;\n step7=mul(step5,z[j2+0]);\n step8=(step6+step7)%65536;\n step9=mul(step8,z[j2+1]);\n step10=(step7+step9)%65536;\n step11=step1^step9;\n step12=step3^step9;\n step13=step2^step10;\n step14=step4^step10;\n x[0]=step11;\n x[1]=step12;\n x[2]=step13;\n x[3]=step14;\n j2=j2-6;\n }\n x[0]=mul(x[0],minverse(z[0]));\n x[1]=(x[1]+ainverse(z[2]))%65536;\n x[2]=(x[2]+ainverse(z[1]))%65536;\n x[3]=mul(x[3],minverse(z[3]));\n t=x[1];\n x[1]=x[2];\n x[2]=t;\n\t for(int t=0;t<4;t++)\n {\n\t ft1 =x[t]&255;\n\t ft=x[t]>>8;\n\t fdec.write((char)ft);\n\t fdec.write((char)ft1);\n\t }\n }\n\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n }", "public void runDecrypt(String filePath) {\n try {\n byte[] paramArrayOfbyte = Files.readAllBytes(Paths.get(filePath));\n if (paramArrayOfbyte.length >= 1024 && ((paramArrayOfbyte[0] == 73 && paramArrayOfbyte[1] == 71\n && paramArrayOfbyte[2] == 69 && paramArrayOfbyte[3] == 70)\n || (paramArrayOfbyte[0] == 67 && paramArrayOfbyte[1] == 68 && paramArrayOfbyte[2] == 69\n && paramArrayOfbyte[3] == 70))) {\n // TODO: figure out why it only selects 1024 bytes.\n if (paramArrayOfbyte.length != 1024) {\n byte[] arrayOfByte = new byte[1024];\n System.arraycopy(paramArrayOfbyte, 0, arrayOfByte, 0, 1024);\n paramArrayOfbyte = arrayOfByte;\n }\n\n // Not sure why needing this section?\n byte[] arrayOfByte1 = new byte[12];\n byte[] arrayOfByte2 = new byte[12];\n System.arraycopy(paramArrayOfbyte, 4, arrayOfByte1, 0, 12);\n System.arraycopy(paramArrayOfbyte, 16, arrayOfByte2, 0, 12);\n\n // Init the most important object.\n com.b.a.b.aa.a h = new com.b.a.b.aa.a(new com.b.a.b.aa.b() {\n public byte[] a() {\n return null;\n }\n\n public int b() {\n return 3;\n }\n });\n\n String str1 = (new String(paramArrayOfbyte, 28, 32)).intern();\n // String str2 = a.a(this.n, str1);\n String str2 = Decrypt.DECRYPTION_KEY;\n int i = h.a(str2.getBytes());\n byte[] guessResult = h.b();\n h.b(guessResult); // Digest, this also sets com.b.a.a.aa.a.b. (The hashmap)\n if (i != 0)\n System.out.println(Dumper.dump(h.a(i)));\n else\n System.out.println(\"error in i.\");\n\n // Using the official file reader.\n net.zamasoft.reader.book.a.b randomAccessFile = new net.zamasoft.reader.book.a.b(new File(filePath));\n System.out.println(\"file length: \" + randomAccessFile.length());\n System.out.println(\"key: \" + com.b.a.a.a.c.a.getBLatest());\n ArrayList<Byte> bytes = new ArrayList<>();\n while (!randomAccessFile.isEOF()) {\n byte b = (byte) randomAccessFile.read();\n bytes.add(b);\n }\n assert randomAccessFile.length() == bytes.size();\n byte[] bs = new byte[bytes.size()];\n for (int ii = 0; ii < bs.length; ii++) {\n bs[ii] = bytes.get(ii);\n }\n System.out.println(\"bytes length: \" + bytes.size());\n System.out.println(new String(bs, \"utf-8\"));\n } else {\n System.out.println(\"NOOOOOOOO!\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "String process(File file) throws LocalizedSignatureException;", "byte[] encrypt(String message) throws SatispayException {\n\t\tString key;\n\t\tSignature privateSignature;\n\t\ttry {\n\t\t\tkey = new String(Files.readAllBytes(new File(privateKeyPath).toPath()), Charset.defaultCharset());\n\t\t\tString privateKeyPEM = key.replace(\"-----BEGIN PRIVATE KEY-----\", \"\").replaceAll(System.lineSeparator(), \"\")\n\t\t\t\t\t.replaceAll(\"\\\\R\", \"\").replace(\"-----END PRIVATE KEY-----\", \"\");\n\t\t\tbyte[] keyBytes = Base64.getDecoder().decode(privateKeyPEM);\n\t\t\tKeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n\t\t\tPKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(keyBytes);\n\t\t\t\n\t\t\tprivateSignature = Signature.getInstance(\"SHA256withRSA\");\n\t\t\tprivateSignature.initSign(keyFactory.generatePrivate(keySpec));\n\t privateSignature.update(message.getBytes(\"UTF-8\"));\n\t\t} catch (IOException e) {\n\t\t\tthrow new SatispayException(\"Cannot read key\", e.getCause());\n\t\t} catch (InvalidKeyException e) {\n\t\t\tthrow new SatispayException(\"Invalid key\", e.getCause());\n\t\t} catch (InvalidKeySpecException e) {\n\t\t\tthrow new SatispayException(\"Invalid spec\", e.getCause());\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tthrow new SatispayException(\"Wrong algorithm\", e.getCause());\n\t\t} catch (SignatureException e) {\n\t\t\tthrow new SatispayException(\"Wrong instance\", e.getCause());\n\t\t}\n\n\t\ttry {\n\t\t\treturn privateSignature.sign();\n\t\t} catch (SignatureException e) {\n\t\t\tthrow new SatispayException(\"error in sign\", e.getCause());\n\t\t}\n\t}", "byte[] getSignatureImage();", "private byte[] signData(byte[] data)\n throws CmsCadesException, GeneralSecurityException, IOException {\n CadesSignature cmsSig = new CadesSignature(data, SignedData.EXPLICIT);\n // CadesBESParameters params = new CadesBESParameters();\n CadesTParameters params = new CadesTParameters(\n \"http://tsp.iaik.tugraz.at/tsp/TspRequest\", null, null);\n params.setDigestAlgorithm(\"SHA512\");\n cmsSig.addSignerInfo(privKey_, certChain_, params);\n return cmsSig.encodeSignature();\n }", "public void setOwnerKey(byte[] o) throws IOException\n {\n COSString owner = new COSString();\n owner.append( o );\n encryptionDictionary.setItem( COSName.getPDFName( \"O\" ), owner );\n }", "private static void verifyDigitalSignature(byte[] decryptData, byte[] sign, KeyPair keyPair, String signatureAlgorithm)\n\t{\n\t\tBufferedWriter outputBuffer = null;\n\n\t\ttry\n\t\t{\n\t\t\tboolean verify = verify(decryptData, sign, keyPair, signatureAlgorithm);\n\t\t\toutputBuffer = new BufferedWriter(new FileWriter(fileAfterDecryption));\n\n\t\t\tif (verify)\n\t\t\t{\n\t\t\t\toutputBuffer.write(new String(decryptData));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\toutputBuffer.write(\"Error,attack\");\n\t\t\t\tSystem.err.println(\"Error,attack\");\n\t\t\t}\n\t\t} catch (InvalidKeyException | SignatureException | NoSuchAlgorithmException | IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} finally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (outputBuffer != null)\n\t\t\t\t{\n\t\t\t\t\toutputBuffer.flush();\n\t\t\t\t\toutputBuffer.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int button) {\n\t\t\t\t\tString newIdentityValue = edtName.getText()\n\t\t\t\t\t.toString().trim();\n\t\t\t\t\tif (newIdentityValue.length() > 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tFileInputStream fis = openFileInput(\"s\"\t+ encryptedIdName);\n\t\t\t\t\t\t\tProperties properties = new Properties();\n\t\t\t\t\t\t\tproperties.load(fis);\n\t\t\t\t\t\t\tfis.close();\n\n\t\t\t\t\t\t\tnumberOfId = Integer.parseInt(properties.getProperty(\"n\"));\n\t\t\t\t\t\t\tproperties.setProperty(\"n\", String.valueOf(++numberOfId));\n\t\t\t\t\t\t\tproperties.setProperty(\"i\" + numberOfId, StaticBox.keyCrypto.encrypt(newIdentityValue));\n\t\t\t\t\t\t\tproperties.setProperty(\"t\" + numberOfId, StaticBox.keyCrypto.encrypt(\"\"));\n\t\t\t\t\t\t\tproperties.setProperty(\"w\" + numberOfId, StaticBox.keyCrypto.encrypt(\"\"));\n\n\t\t\t\t\t\t\tFileOutputStream fos = openFileOutput(\"s\"+ encryptedIdName, Context.MODE_PRIVATE);\n\t\t\t\t\t\t\tproperties.store(fos, null);\n\t\t\t\t\t\t\tfos.flush();\n\t\t\t\t\t\t\tfos.close();\n\t\t\t\t\t\t\tToast.makeText(getBaseContext(), \"Identity created\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\trefreshIdentityList();\n\t\t\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tToast.makeText(getBaseContext(),\n\t\t\t\t\t\t\t\t\"Fail create identity\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}", "ISModifySignature createISModifySignature();", "public void update(byte[] paramArrayOfbyte) throws XMLSignatureException {\n/* 207 */ this.signatureAlgorithm.engineUpdate(paramArrayOfbyte);\n/* */ }", "@Override\r\n\tpublic byte[] getData(final byte[] signData) throws AOInvalidFormatException, IOException {\r\n\r\n // Si no es una firma ODF valida, lanzamos una excepcion\r\n if (!isSign(signData)) {\r\n throw new AOInvalidFormatException(\"El documento introducido no contiene una firma valida\"); //$NON-NLS-1$\r\n }\r\n\r\n // TODO: Por ahora, devolveremos el propio ODF firmado.\r\n return signData;\r\n }", "public interface IFileCrypter\n{\n\tpublic void encrypt( int pPartNumber , byte[] pData , int pOffset , int pLength );\n\t\n\tpublic void decrypt( int pPartNumber , byte[] pData , int pOffset , int pLength );\n}", "public static boolean isSigned_data() {\n return false;\n }", "public void signToFile(File source, ProgressListener listener) throws IOException, IllegalArgumentException, NoSuchAlgorithmException {\r\n\t\tthis.signToFile(source, new File(source, \".sig\"), listener);\r\n\t}", "public static byte[] encrypt(byte[] plainFile, String key) throws Exception {\n\n // Generacion IV (Vector de inicializacion)\n int ivSize = 16;\n byte[] iv = new byte[ivSize];\n SecureRandom random = new SecureRandom();\n random.nextBytes(iv);\n IvParameterSpec ivParameterSpec = new IvParameterSpec(iv);\n\n // Generacion de hash de la clave secreta.\n MessageDigest digest = MessageDigest.getInstance(\"SHA-256\"); // SHA-256: Algoritmo de Hashing que genera una clave de 256 bits\n digest.update(key.getBytes(\"UTF-8\"));\n byte[] keyBytes = new byte[16];\n System.arraycopy(digest.digest(), 0, keyBytes, 0, keyBytes.length);\n SecretKeySpec secretKeySpec = new SecretKeySpec(keyBytes, \"AES\");\n\n // Llamado a libreria de cifrado de java.\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec);\n byte[] encrypted = cipher.doFinal(plainFile);\n\n // Agrega IV al vector del archivo encriptado \n byte[] encryptedIVAndText = new byte[ivSize + encrypted.length];\n System.arraycopy(iv, 0, encryptedIVAndText, 0, ivSize);\n System.arraycopy(encrypted, 0, encryptedIVAndText, ivSize, encrypted.length);\n\n return encryptedIVAndText;\n }", "public static void encryptBytes() {\r\n\t\tBigInteger[] rArray = new BigInteger[1000000];\r\n\t\ttry {\r\n\t\t\tURL url = Encrypt.class.getResource(\"PrimeBank.txt\");\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\r\n\t\t\t\t\turl.getPath()));\r\n\t\t\tString line = null;\r\n\t\t\tfor(int i = 0; i < rArray.length; i++) {\r\n\t\t\t\tline = reader.readLine();\r\n\t\t\t\trArray[i] = new BigInteger((String) line);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tprime = rArray;\r\n\t\t\t\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t\tSystem.out.println(\"Probably no file found?\");\r\n\t\t\t\r\n\t\t} \r\n\t}", "private void encrypt(final String path, final String password, PasswordDeriveData keyData) {\r\n File file = null;\r\n if (path.contains(Environment.getExternalStorageDirectory().getAbsolutePath())) {\r\n file = new File(path);\r\n } else {\r\n file = new File(Environment.getExternalStorageDirectory(), path);\r\n }\r\n System.out.println(file.getAbsolutePath());\r\n\r\n if (!file.exists()) {\r\n showUserInfo(\"file / folder doesn't exist\");\r\n return;\r\n }\r\n\r\n if (password.isEmpty()) {\r\n showUserInfo(\"password cant be empty\");\r\n return;\r\n }\r\n\r\n // if no key is given\r\n if (keyData == null) {\r\n // BUG 1: Key derivation should not be performed outside a foreach block that is using its return value.\r\n // Otherwise all operations in \"encrypt directory\" have the same encryption key\r\n // TODO changed a little bit\r\n try {\r\n keyData = WeakPasswordDerivation.DerivePassword(password);\r\n } catch (NoSuchAlgorithmException | InvalidKeySpecException e) {\r\n showUserInfo(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n if (file.isDirectory()) {\r\n for (File child : file.listFiles()) {\r\n encrypt(child.getAbsolutePath(), password, keyData);\r\n }\r\n } else /* file isn't directory */ {\r\n try {\r\n CryptoWrapper.EncryptFileWithPassword(file, password);\r\n } catch (Throwable e) {\r\n showUserInfo(e.getClass().getSimpleName() + \": \" + e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "public void stringcon()\n {\n int i,j,k;\n int temp[]=new int[8];\n int a[]=new int[32];\n i=0;\n j=0;\n for(i=0;i<10000;i++)\n bytes[i]=0;\n i=0;\n maxbinary1=0;\n for(i=0;i<24;i++)\n a[i]=binary[i];\n for(i=0;i<24;i++)\n maxbinary1+=a[i]*Math.pow(2,23-i);\n maxbinary2=maxbinary1*8;\n ivalue=0;\n for(i=24,j=0;i<32;i++,j++)\n {\n a[j]=binary[i];\n ivalue+=a[j]*Math.pow(2,7-j);\n }\n if(ivalue==73)\n {\n i=32;\n while(i<maxbinary2)\n {\n for(k=0;k<=7;k++)\n temp[k]=binary[i++];\n for(k=0;k<=7;k++)\n bytes[j]+=temp[k]*Math.pow(2,7-k);\n j++;\n }\n String s=JOptionPane.showInputDialog(this,\"Enter key with 16 letters\");\n char ch[]=new char[s.length()];\n ch=s.toCharArray();\n try\n {\n FileOutputStream f=new FileOutputStream(\"key1.txt\");\n for(i=0;i<ch.length;i++)\n f.write(ch[i]);\n f.close();\n FileOutputStream fout=new FileOutputStream(\"enc1.txt\");\n DataOutputStream d=new DataOutputStream(fout);\n \t\ti=8;\n while(i<(maxbinary1))\n \t\t {\n \t\t\td.write(bytes[i]);\n\t\t i++;\n \t\t }\n fout.close();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n\n ideaalgo b=new ideaalgo();\n b.procedure();\n b.decryption(\"enc1.txt\");\n try\n {\n BufferedReader d;\n StringBuffer sb=new StringBuffer();\n d=new BufferedReader(new FileReader(\"dec.txt\"));\n String line;\n while((line=d.readLine())!=null)\n sb.append(line+\"\\n\");\n ta.setText(sb.toString());\n d.close();\n }\ncatch(Exception e)\n {\n System.out.println(e);\n }\n }\n}", "public byte[] encrypt3DES(byte[] key, byte[] data) {\n\n try {\n\n //method def in javadoc\n //arraycopy(Object src, int srcPos, Object dest, int destPos, int length)\n //byte[] keyToUse = new byte[24];\n //Pad the key if not yet 24 bytes\n /*if (key.length == 8) {\n System.arraycopy(key, 0, keyToUse, 0, 8);\n System.arraycopy(key, 0, keyToUse, 8, 8);\n System.arraycopy(key, 0, keyToUse, 16, 8);\n } else if (key.length == 16) {\n //keyToUse = key;\n System.arraycopy(key, 0, keyToUse, 0, 8);\n System.arraycopy(key, 0, keyToUse, 8, 8);\n System.arraycopy(key, 0, keyToUse, 16, 8);\n }*/\n\n // System.out.println(\"Key in is\"+ConvertUtils.bytesToHex(key)+\"\\tKey length is \\t\"+key.length+\"The final Key used for 3DES encrption is\\t\" + ConvertUtils.bytesToHex(key) + \"\\tPlease remove this statement\");\n\n SecretKey secretKey;\n SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(\"DESede\");\n DESedeKeySpec desedeKeySpec = new DESedeKeySpec(key);\n\n secretKey = keyFactory.generateSecret(desedeKeySpec);\n\n secretKey = keyFactory.translateKey(secretKey);\n\n Cipher cipher = Cipher.getInstance(\"DESede/ECB/NoPadding\");\n cipher.init(Cipher.ENCRYPT_MODE, secretKey);\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n CipherOutputStream cipherOS = new CipherOutputStream(bos, cipher);\n cipherOS.write(data);\n cipherOS.flush();\n cipherOS.close();\n bos.flush();\n bos.close();\n \n\n byte[] bytesEncrypted = bos.toByteArray();\n\n return bytesEncrypted;\n\n } catch (UnsupportedEncodingException ex) {\n System.out.println(\"UnsupportedEncodingException\\t\" + ex.getMessage());\n } catch (NoSuchAlgorithmException ex) {\n System.out.println(\"NoSuchAlgorithmException\\t\" + ex.getMessage());\n } catch (InvalidKeySpecException ex) {\n System.out.println(\"InvalidKeySpecException\\t\" + ex.getMessage());\n } catch (InvalidKeyException ex) {\n System.out.println(\"InvalidKeyException\\t\" + ex.getMessage());\n }/*catch(IllegalBlockSizeException ex)\n {\n System.out.println(\"IllegalBlockSizeException\\t\"+ex.getMessage());\n }catch(BadPaddingException ex){\n System.out.println(\"BadPaddingException\\t\"+ex.getMessage());\n }*/ catch (NoSuchPaddingException ex) {\n System.out.println(\"NoSuchPaddingException\\t\" + ex.getMessage());\n } catch (IOException ex) {\n System.out.println(\"IOException\\t\" + ex.getMessage());\n }\n return null;\n }", "public void writeKeysToFile(){\n if(d == null){\n calculateKeypair();\n }\n FileHandler fh = new FileHandler();\n fh.writeFile(sbPrivate.toString(), \"sk.txt\");\n fh.writeFile(sbPublic.toString(), \"pk.txt\");\n }", "private void savingToConfigurationsFile(FileOutputStream configurationFileOutputStream, byte[] iv,\n\t\t\tbyte[] encryptedSymmetricKey, byte[] mySignature) throws IOException {\n\n\t\tconfigurationFileOutputStream = new FileOutputStream(localWorkingDirectoryPath + \"\\\\Config.txt\");\n\n\t\t// Saving the IV to the configuration file\n\t\tconfigurationFileOutputStream.write(iv);\n\n\t\t// Saving the encrypted symmetric key to the configuration file\n\t\tconfigurationFileOutputStream.write(encryptedSymmetricKey);\n\n\t\t// Saving the my signature to the configuration file\n\t\tconfigurationFileOutputStream.write(mySignature);\n\n\t\t// Closing the output stream\n\t\tconfigurationFileOutputStream.close();\n\n\t}", "private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\t\ttry {\n\t\t\tioManager.writeToFile(FileDataWrapper.productMap.values(), new Product());\n\t\t\tioManager = null;\n\t\t} catch (Exception ex) {\n\t\t\tDisplayUtil.displayValidationError(buttonPanel, StoreConstants.ERROR + \" saving new product\");\n\t\t\tioManager = null;\n\t\t}\n\t}", "String saveData(MultipartFile md5File) throws IOException;", "@Override\n public byte[] generateSignature() throws CryptoException, DataLengthException {\n if (!forSigning) {\n throw new IllegalStateException(\"CL04 Signer not initialised for signature generation.\");\n }\n\n try {\n CL04SignSecretPairingKeySerParameter sk = (CL04SignSecretPairingKeySerParameter) pairingKeySerParameter;\n Pairing pairing = PairingFactory.getPairing(sk.getParameters());\n final Element alpha = pairing.getZr().newRandomElement().getImmutable();\n final Element a = sk.getG().powZn(alpha);\n final List<Element> A = sk.getZ().stream().map(a::powZn).collect(Collectors.toCollection(ArrayList::new));\n final Element b = a.powZn(sk.getY()).getImmutable();\n final List<Element> B = A.stream().map(Ai -> Ai.powZn(sk.getY())).collect(Collectors.toCollection(ArrayList::new));\n final Element xTimesY = alpha.mul(sk.getX().mul(sk.getY()));\n final Element c = a.powZn(sk.getX()).mul(commitment.powZn(xTimesY)).getImmutable();\n\n Element[] signElements = new Element[3 + 2 * messages.size()];\n signElements[0] = a;\n signElements[1] = b;\n signElements[2] = c;\n for (int i = 0; i < messages.size(); i++) {\n signElements[3 + i] = A.get(i);\n signElements[3 + messages.size() + i] = B.get(i);\n }\n return derEncode(signElements);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public String encrypt(final String clearText)\n throws GeneralSecurityException, IOException {\n final String methodName = \":encrypt\";\n Logger.v(TAG + methodName, \"Starting encryption\");\n\n if (StringExtensions.isNullOrBlank(clearText)) {\n throw new IllegalArgumentException(\"Input is empty or null\");\n }\n\n // load key for encryption if not loaded\n mKey = loadSecretKeyForEncryption();\n mHMACKey = getHMacKey(mKey);\n\n Logger.i(TAG + methodName, \"\", \"Encrypt version:\" + mBlobVersion);\n final byte[] blobVersion = mBlobVersion.getBytes(AuthenticationConstants.ENCODING_UTF8);\n final byte[] bytes = clearText.getBytes(AuthenticationConstants.ENCODING_UTF8);\n\n // IV: Initialization vector that is needed to start CBC\n final byte[] iv = new byte[DATA_KEY_LENGTH];\n mRandom.nextBytes(iv);\n final IvParameterSpec ivSpec = new IvParameterSpec(iv);\n\n // Set to encrypt mode\n final Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM);\n final Mac mac = Mac.getInstance(HMAC_ALGORITHM);\n cipher.init(Cipher.ENCRYPT_MODE, mKey, ivSpec);\n\n final byte[] encrypted = cipher.doFinal(bytes);\n\n // Mac output to sign encryptedData+IV. Keyversion is not included\n // in the digest. It defines what to use for Mac Key.\n mac.init(mHMACKey);\n mac.update(blobVersion);\n mac.update(encrypted);\n mac.update(iv);\n final byte[] macDigest = mac.doFinal();\n\n // Init array to store blobVersion, encrypted data, iv, macdigest\n final byte[] blobVerAndEncryptedDataAndIVAndMacDigest = new byte[blobVersion.length\n + encrypted.length + iv.length + macDigest.length];\n System.arraycopy(blobVersion, 0, blobVerAndEncryptedDataAndIVAndMacDigest, 0,\n blobVersion.length);\n System.arraycopy(encrypted, 0, blobVerAndEncryptedDataAndIVAndMacDigest,\n blobVersion.length, encrypted.length);\n System.arraycopy(iv, 0, blobVerAndEncryptedDataAndIVAndMacDigest, blobVersion.length\n + encrypted.length, iv.length);\n System.arraycopy(macDigest, 0, blobVerAndEncryptedDataAndIVAndMacDigest, blobVersion.length\n + encrypted.length + iv.length, macDigest.length);\n\n final String encryptedText = new String(Base64.encode(blobVerAndEncryptedDataAndIVAndMacDigest,\n Base64.NO_WRAP), AuthenticationConstants.ENCODING_UTF8);\n Logger.v(TAG + methodName, \"Finished encryption\");\n\n return getEncodeVersionLengthPrefix() + ENCODE_VERSION + encryptedText;\n }", "public static byte[] readFile(File file, int valueType) {\n if (!file.exists()) {\n Log.e(TAG, \"The file doesn't exist\");\n }\n try {\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream bufferedInputStream = new BufferedInputStream(fileInputStream);\n byte[] buf = new byte[4096];\n switch (valueType) {\n case 0:\n case 1:\n case 2:\n case 3:\n while (bufferedInputStream.read(buf) != -1) {\n byteArrayOutputStream.write(buf, 16 * valueType, 16);\n }\n break;\n case 4:\n if (!file.getName().equals(\"E_SK2\")) {\n if (!file.getName().equals(\"E_PIN2\")) {\n while (true) {\n int len = bufferedInputStream.read(buf);\n if (len == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, 16 * 1, (len - 32) - (16 * 1));\n }\n }\n } else {\n while (true) {\n int len2 = bufferedInputStream.read(buf);\n if (len2 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, 16 * 1, ((len2 - 32) - (16 * 1)) - PKLENGTH);\n }\n }\n }\n } else {\n while (true) {\n int len3 = bufferedInputStream.read(buf);\n if (len3 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, 16 * 4, (len3 - 32) - (16 * 4));\n }\n }\n }\n case 5:\n while (true) {\n int len4 = bufferedInputStream.read(buf);\n if (len4 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, len4 - 32, 32);\n }\n }\n case PUBLICKEY /* 7 */:\n while (true) {\n int len5 = bufferedInputStream.read(buf);\n if (len5 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, (len5 - 32) - PKLENGTH, PKLENGTH);\n }\n }\n case 8:\n while (true) {\n int len6 = bufferedInputStream.read(buf);\n if (len6 == -1) {\n break;\n } else {\n byteArrayOutputStream.write(buf, 0, len6 - 32);\n }\n }\n }\n byte[] buffer = byteArrayOutputStream.toByteArray();\n bufferedInputStream.close();\n fileInputStream.close();\n byteArrayOutputStream.close();\n return buffer;\n } catch (IOException e) {\n Log.e(TAG, \"read file exception!\" + e.getMessage());\n return new byte[0];\n }\n }", "private static String sign(String data, String key)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMac mac = Mac.getInstance(\"HmacSHA1\");\n\t\t\t\tmac.init(new SecretKeySpec(key.getBytes(), \"HmacSHA1\"));\n\t\t\t\treturn Base64.encodeBytes(mac.doFinal(data.getBytes(\"UTF-8\")));\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tthrow new RuntimeException(new SignatureException(\"Failed to generate signature: \" + e.getMessage(), e));\n\t\t\t}\n\t\t}", "public byte[] sign(byte[] data) throws EncryptingException {\n try {\n return RSA.sign(data, serverPrivateKey);\n } catch (Exception e) {\n throw new EncryptingException();\n }\n }", "public static String verifyFile3(String in, InputStream keyIn) throws Exception {\n\t\tkeyIn = PGPUtil.getDecoderStream(keyIn);\n\n\t\tPGPObjectFactory pgpFact = new PGPObjectFactory(keyIn);\n\n\t\tPGPSignatureList p1 = (PGPSignatureList) pgpFact.nextObject();\n\n\t\tPGPSignature ops = p1.get(0);\n\n\t\tint ch;\n\n\t\t// kljuc iz prstena kljuceva sa id istim kao signIn\n\t\tPGPPublicKey key = PrstenKljuceva.getPublicKeyByID(ops.getKeyID()); \n\n\t\tops.init(new JcaPGPContentVerifierBuilderProvider().setProvider(\"BC\"), key);\n\n\t\tfor (int i = 0; in.charAt(i) != '\\r'; i++) {\n\t\t\tops.update((byte) in.charAt(i));\n\t\t}\n\n\t\tif (ops.verify()) {\n\t\t\treturn new PPGPPJavniKljuc(key).toString();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "private static byte[] getKeyData(String filePath) {\n File file = new File(filePath);\n byte[] buffer = new byte[(int) file.length()];\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(file);\n fis.read(buffer);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fis != null)\n try {\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return buffer;\n }", "void encryptFile(String inPath, String outPath) throws IOException {\n try (BufferedReader reader = new BufferedReader(new FileReader(inPath))) {\n try (PrintWriter writer = new PrintWriter(outPath)) {\n encryptFile(reader, writer);\n } catch (FileNotFoundException e) {\n System.out.println(\"Error: Output file not found\");\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"Error: Input file not found\");\n }\n }", "private void distributeFragments() {\r\n\t\tif (!isOptComplete || !isEncryptComplete)\r\n\t\t\treturn;\r\n\r\n\t\t// Scan through all files in the folder and upload them\r\n\t\tFile fileFragDir = AndroidIOUtils.getExternalFile(Constants.DIR_ROOT + \"/\"\r\n\t\t\t\t+ MDFSFileInfo.getDirName(file.getName(), file.lastModified()));\r\n\t\tFile[] files = fileFragDir.listFiles();\r\n\t\tString name;\r\n\r\n\t\t// Distribute the key fragments\r\n\t\t/*\r\n\t\t * keyStorages = new ArrayList<Integer>(); keyStorages.add(2);\r\n\t\t * keyStorages.add(4); keyStorages.add(6); keyStorages.add(7);\r\n\t\t */\r\n\t\tfinal Node node = serviceHelper.getMyNode();\r\n\t\tint destNode;\r\n\t\t\r\n\t\t// Hack: Try to deliver the key multiple times...\r\n\t\tfor(int keyRun=0; keyRun < 1 ; keyRun++) {\r\n\t\tIterator<Integer> nodesIter = keyStorages.iterator();\r\n\t\tfor (KeyShareInfo key : keyShares) {\r\n\t\t\tif (nodesIter != null && nodesIter.hasNext()) {\r\n\t\t\t\tdestNode = nodesIter.next();\r\n\t\t\t\tif (destNode != node.getNodeId()) {\r\n\t\t\t\t\tfinal KeyFragPacket packet = new KeyFragPacket(node.getNodeId(),\r\n\t\t\t\t\t\t\tdestNode, key, file.lastModified());\r\n\t\t\t\t\t// This thread may not be necessary\r\n\t\t\t\t\t/*pool.execute(new Runnable(){\t\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t// Problem: There is no way to confirm that the key fragment is successfully sent ...\r\n\t\t\t\t\t\t\t// node.sendAODVDataContainer(packet);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});*/\r\n\t\t\t\t\tnode.sendAODVDataContainer(packet);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// Just store the key fragment locally.\r\n\t\t\t\t\tFile tmp = IOUtilities.createNewFile(fileFragDir,\r\n\t\t\t\t\t\t\tkey.getFileName() + \"__key__\" + key.getIndex());\r\n\t\t\t\t\tif (IOUtilities.writeObjectToFile(key, tmp)) {\r\n\t\t\t\t\t\tMDFSDirectory directory = serviceHelper.getDirectory();\r\n\t\t\t\t\t\tdirectory.addKeyFragment(file.lastModified(),\r\n\t\t\t\t\t\t\t\tkey.getIndex());\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}\r\n\t\t\r\n\t\t// Distribute the file fragments\r\n\t\t/*\r\n\t\t * fileStorages = new ArrayList<Integer>(); fileStorages.add(2);\r\n\t\t * fileStorages.add(4); fileStorages.add(6); fileStorages.add(7);\r\n\t\t */\r\n\t\tlogger.distStart = System.currentTimeMillis();\r\n\t\tfragCounter.set(0);\r\n\t\tIterator<Integer> nodesIter = fileStorages.iterator();\r\n\t\tfor (File f : files) {\r\n\t\t\tname = f.getName();\r\n\t\t\tif (name.contains(\"__frag__\")) {\r\n\t\t\t\t// Find the fragment Number\r\n\t\t\t\tif (nodesIter != null && nodesIter.hasNext()) {\r\n\t\t\t\t\tdestNode = nodesIter.next();\r\n\t\t\t\t\tif (destNode == node.getNodeId()){\r\n\t\t\t\t\t\tfragCounter.incrementAndGet();\r\n\t\t\t\t\t\tcontinue; // Don't need to send to myself again\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tpool.execute(new FileFragmentUploader(f, file\r\n\t\t\t\t\t\t\t.lastModified(), destNode, !nodesIter.hasNext()));\r\n\t\t\t\t}\r\n\t\t\t} else if (name.contains(\"__key__\")) {\r\n\t\t\t\t/*\r\n\t\t\t\t * This may only happens if the file creator is also chosen as\r\n\t\t\t\t * the key storage node and the key fragment is copied to this\r\n\t\t\t\t * folder faster than the files in the folder is read. Just\r\n\t\t\t\t * ignore it for now\r\n\t\t\t\t */\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tjTimer.start(); //jTimer.start();\r\n\t\tlistener.statusUpdate(\"Distributing file fragments\");\r\n\t}", "String encryption(Long key, String encryptionContent);", "private static java.io.File a(java.io.File r8, java.lang.String r9, java.lang.String r10) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = r8.getName();\t Catch:{ Exception -> 0x006b, all -> 0x0067 }\n r3 = \".decrypt\";\n r4 = r8.getParentFile();\t Catch:{ Exception -> 0x006b, all -> 0x0067 }\n r2 = java.io.File.createTempFile(r2, r3, r4);\t Catch:{ Exception -> 0x006b, all -> 0x0067 }\n r3 = new javax.crypto.spec.IvParameterSpec;\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r4 = \"UTF-8\";\n r10 = r10.getBytes(r4);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r3.<init>(r10);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r10 = new javax.crypto.spec.SecretKeySpec;\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r4 = \"UTF-8\";\n r9 = r9.getBytes(r4);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r4 = \"AES\";\n r10.<init>(r9, r4);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r9 = \"AES/CBC/PKCS7PADDING\";\n r9 = javax.crypto.Cipher.getInstance(r9);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r4 = 2;\n r9.init(r4, r10, r3);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r10 = new java.io.FileInputStream;\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r10.<init>(r8);\t Catch:{ Exception -> 0x0062, all -> 0x0067 }\n r3 = new javax.crypto.CipherInputStream;\t Catch:{ Exception -> 0x005e, all -> 0x005a }\n r3.<init>(r10, r9);\t Catch:{ Exception -> 0x005e, all -> 0x005a }\n r9 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x0057, all -> 0x0054 }\n r9.<init>(r2);\t Catch:{ Exception -> 0x0057, all -> 0x0054 }\n r4 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;\n r4 = new byte[r4];\t Catch:{ Exception -> 0x0052 }\n L_0x0045:\n r5 = r3.read(r4);\t Catch:{ Exception -> 0x0052 }\n r6 = -1;\n if (r5 == r6) goto L_0x0050;\n L_0x004c:\n r9.write(r4, r0, r5);\t Catch:{ Exception -> 0x0052 }\n goto L_0x0045;\n L_0x0050:\n r0 = 1;\n goto L_0x007e;\n L_0x0052:\n r4 = move-exception;\n goto L_0x0070;\n L_0x0054:\n r8 = move-exception;\n r9 = r1;\n goto L_0x008f;\n L_0x0057:\n r4 = move-exception;\n r9 = r1;\n goto L_0x0070;\n L_0x005a:\n r8 = move-exception;\n r9 = r1;\n r3 = r9;\n goto L_0x008f;\n L_0x005e:\n r4 = move-exception;\n r9 = r1;\n r3 = r9;\n goto L_0x0070;\n L_0x0062:\n r4 = move-exception;\n r9 = r1;\n r10 = r9;\n r3 = r10;\n goto L_0x0070;\n L_0x0067:\n r8 = move-exception;\n r9 = r1;\n r3 = r9;\n goto L_0x0090;\n L_0x006b:\n r4 = move-exception;\n r9 = r1;\n r10 = r9;\n r2 = r10;\n r3 = r2;\n L_0x0070:\n r5 = \"DecryptUtils\";\n r6 = \"decryptByPair decrypt hotfix patch file error\";\n r7 = new java.lang.Object[r0];\t Catch:{ all -> 0x008e }\n com.taobao.sophix.e.d.a(r5, r6, r4, r7);\t Catch:{ all -> 0x008e }\n if (r2 == 0) goto L_0x007e;\n L_0x007b:\n r2.delete();\t Catch:{ all -> 0x008e }\n L_0x007e:\n com.taobao.sophix.e.b.a(r10);\n com.taobao.sophix.e.b.a(r3);\n com.taobao.sophix.e.b.a(r9);\n if (r0 == 0) goto L_0x008d;\n L_0x0089:\n r8.delete();\n return r2;\n L_0x008d:\n return r1;\n L_0x008e:\n r8 = move-exception;\n L_0x008f:\n r1 = r10;\n L_0x0090:\n com.taobao.sophix.e.b.a(r1);\n com.taobao.sophix.e.b.a(r3);\n com.taobao.sophix.e.b.a(r9);\n throw r8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.sophix.e.a.a(java.io.File, java.lang.String, java.lang.String):java.io.File\");\n }", "void encrypt()\n {\n try\n {\n size=fin.available();\n p=size%8;\n if(p!=0)\n np=8-p;\n size+=np;\n if(p==0)\n nl=size/8;\n else\n nl=size/8+1;\n buf=new byte[8];\n buf1=new byte[size+10];\n fin.read(buf1);\n int enc[]=new int[size];\n mark=-8;\n k2=0;\n for(k=0;k<nl;k++)\n {\n mark+=8;\n for(int k1=0;k1<8;k1++)\n buf[k1]=buf1[mark+k1];\n i=0;\n\t for(i=0;i<4;i++)\n x[i]=0;\n\t j1=0;i1=0;\n while( i1<=3)\n {\n\t if((j1+1)%2==0)\n\t {\n\t x[i1]|=buf[j1]; // dividing 64 bit cipher block into four 16 bit registers\n\t i1++;\n\t\t }\n\t else\n {\n\t x[i1]=buf[j1];\n\t x[i1]<<=8;\n }\n j1++;\n\t }\n // 7 rounds and 14 steps\n for(i=0 ; i <48 ; )\n {\n step1=mul(x[0],z[i+0]);\n step2=(x[1]+z[i+1])%65536;\n step3=(x[2]+z[i+2])%65536;\n step4=mul(x[3],z[i+3]);\n step5=step1^step3;\n step6=step2^step4;\n step7=mul(step5,z[i+4]);\n step8=(step6+step7)%65536;\n step9=mul(step8,z[i+5]);\n step10=(step7+step9)%65536;\n step11=step1^step9;\n step12=step3^step9;\n step13=step2^step10;\n step14=step4^step10;\n x[0]=step11;\n x[1]=step13;\n x[2]=step12;\n x[3]=step14;\n i=i+6;\n }\n x[0]=mul(x[0],z[48]);\n x[1]=(x[1]+z[49])%65536;\n x[2]=(x[2]+z[50])%65536;\n x[3]=mul(x[3],z[51]);\n for(int t=0;t<4;t++)\n {\n ft1 =x[t]&255;\n ft=x[t]>>8;\n fenc.write((char)ft);\n fenc.write((char)ft1);\n }\n}\nfin.close();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n}", "public byte[] encrypt(String data, Key privatekey) {\r\n\t\tif (!presentkey) {\r\n\t\t\t//TODO\r\n\t\t\tkeyDiffieHellmanFirst();\r\n\t\t\t// need to send these values to other side\r\n\t\t\t// wait\r\n\t\t\tkeyDiffieHellmanFinal(//nummer uit packet from the other side);\r\n\t\t}\r\n\t\tbyte[] encrypt = OFB.EnDecrypt(data.getBytes(), diffie.getKey().toByteArray());\r\n\t\tString sign = ((Integer) data.hashCode()).toString();\r\n\t\tbyte[] signed = RSA.encrypt(sign, privatekey);\r\n\t\tbyte[] encrypted = new byte[encrypt.length + signed.length];\r\n\t\tSystem.arraycopy(encrypt, 0, encrypted, 0, encrypt.length);\r\n\t\tSystem.arraycopy(signed, 0, encrypted, encrypt.length, signed.length);\r\n\t\treturn encrypted;\r\n\t}", "@Override\r\n\tpublic byte[] cosign(final byte[] data,\r\n final byte[] sign,\r\n final String algorithm,\r\n final PrivateKey key,\r\n final java.security.cert.Certificate[] certChain,\r\n final Properties extraParams) throws AOException, IOException {\r\n return sign(sign, algorithm, key, certChain, extraParams);\r\n }", "@Test\n public void testPreSignDocumentIn() throws IOException, GeneralSecurityException\n {\n try ( InputStream resource = getClass().getResourceAsStream(\"document_in.pdf\");\n FileOutputStream os = new FileOutputStream(new File(RESULT_FOLDER, \"document_in-presigned.pdf\")) )\n {\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\n Certificate maincertificate = cf.generateCertificate(getClass().getResourceAsStream(\"Samson_aut.cer\"));\n Certificate[] chain = new Certificate[] { maincertificate };\n String hashAlgorithm = \"SHA-256\";\n\n PdfReader reader = new PdfReader(resource);\n PdfSigner signer = new PdfSigner(reader, os, new StampingProperties());\n signer.setFieldName(\"certification\"); // this field already exists\n signer.setCertificationLevel(PdfSigner.CERTIFIED_FORM_FILLING);\n PdfSignatureAppearance sap = signer.getSignatureAppearance();\n sap.setReason(\"Certification of the document\");\n sap.setLocation(\"On server\");\n sap.setCertificate(maincertificate);\n BouncyCastleDigest digest = new BouncyCastleDigest();\n PdfPKCS7 sgn = new PdfPKCS7(null, chain, hashAlgorithm, null, digest,false);\n PreSignatureContainer external = new PreSignatureContainer(PdfName.Adobe_PPKLite,PdfName.Adbe_pkcs7_detached);\n signer.signExternalContainer(external, 8192);\n byte[] hash=external.getHash();\n sgn.getAuthenticatedAttributeBytes(hash, PdfSigner.CryptoStandard.CMS, null, null);\n }\n }", "static void encryptECB(String filename, String key) {\n try {\n Scanner s = new Scanner(new File(filename + EXT), \"UTF-8\");\n File newFile = new File(filename + \"_ECB\" + EXT);\n newFile.delete();\n newFile.createNewFile();\n PrintWriter w = new PrintWriter(newFile);\n processHeader(s, w);\n while (s.hasNext()) {\n readBlock(s);\n block = stateToBits(AES.encrypt(bitsToHexString(block), key));\n writeBlock(w);\n }\n w.flush();\n w.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }" ]
[ "0.6726899", "0.58502597", "0.5793777", "0.5750083", "0.572597", "0.57241297", "0.5692778", "0.56467146", "0.56130916", "0.5568958", "0.5516839", "0.54985404", "0.5476427", "0.5426972", "0.54188603", "0.5406788", "0.538339", "0.5380012", "0.5341283", "0.53327733", "0.53161484", "0.53147477", "0.5282413", "0.5280134", "0.5236796", "0.5222765", "0.5214817", "0.5199586", "0.5196273", "0.5186943", "0.5178418", "0.51610535", "0.5146674", "0.5138244", "0.5114234", "0.50808585", "0.50656617", "0.5064226", "0.50630677", "0.5057258", "0.502904", "0.50270325", "0.50248486", "0.50155497", "0.5011287", "0.49830657", "0.49610695", "0.4950967", "0.494923", "0.49491313", "0.49472517", "0.49436268", "0.49330273", "0.49242803", "0.49136394", "0.4892421", "0.4886731", "0.48815534", "0.48768067", "0.48499218", "0.4827343", "0.48170862", "0.48143834", "0.48042697", "0.47961292", "0.47792527", "0.47724405", "0.47647297", "0.47571883", "0.47468662", "0.47399938", "0.4738472", "0.47367904", "0.4735667", "0.47353625", "0.47315973", "0.4726033", "0.47239372", "0.4717979", "0.4711407", "0.47087008", "0.4696961", "0.46808937", "0.4675651", "0.46754783", "0.46730447", "0.4670613", "0.4669782", "0.4661168", "0.46448156", "0.46404356", "0.46403873", "0.463753", "0.46369943", "0.4635802", "0.4635639", "0.46353203", "0.46285602", "0.4625468", "0.4624551" ]
0.7299873
0
This Private Method return the private key of the encryptor
private PrivateKey getMyPrivateKey() throws Exception { Key myKeyPair = null; try { myKeyPair = keyStore.getKey(keyPairAlias, keyPairPassword.toCharArray()); } catch (UnrecoverableKeyException | KeyStoreException | NoSuchAlgorithmException e) { writeToLog("The key: \"" + keyPairAlias + "\" cannot be recovered."); LogWriter.close(); throw new Exception("The key: \"" + keyPairAlias + "\" cannot be recovered.", e); } PrivateKey myPrivateKey; if (myKeyPair instanceof PrivateKey) { myPrivateKey = (PrivateKey) myKeyPair; } else { writeToLog("The key: " + keyPairAlias + " is not a private-key"); LogWriter.close(); throw new Exception("The key: " + keyPairAlias + " is not a private-key"); } return myPrivateKey; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public PrivateKey getKey();", "public String getKeyPrivate() throws LibMCryptException {\n\t\t\r\n\t\tString privateK = priK.getModulus().toString(16);\r\n\t\treturn privateK;\r\n\t}", "PrivateKey getPrivateKey();", "public String getPrivateKey();", "public String getPrivateKey();", "public PrivateKey getPrivateKey(){\n\t\treturn this.privatekey;\n\t}", "public PrivateKey getPrivateKey() {\n \tif(testingPrivateKey!=null){\n\t\t\t//for unit testing\n\t\t\treturn testingPrivateKey;\t\n\t\t}\n\t\treturn keypair.getPrivate();\n }", "public BigInteger getPrivateKey()\n {\n\treturn privateKey;\n }", "public PrivateKey getMyPrivateKey() {\n return myKeyPair.getPrivate();\n }", "public PrivateKey getPrivKey() {\r\n\t\treturn this.privKey;\r\n\t}", "public PrivateKey makePrivateKey() {\n return new PrivateKey(decryptingBigInt, primesMultiplied);\n }", "public final PrivateKey getPrivateKey() {\n return this.key;\n }", "private PrivateKey getUserKey() throws KeyChainException, InterruptedException {\n return KeyChain.getPrivateKey(getApplicationContext(), mCurrentProfile.getUserCertificateAlias());\n\n }", "public String getPrivateKey() {\n return privateKey;\n }", "public String getPrivateKey() {\n return privateKey;\n }", "public String getPrivateKey() {\n return privateKey;\n }", "public BigInteger getPrivKey() {\n if (priv == null)\n throw new MissingPrivateKeyException();\n return priv;\n }", "public final RSAPrivateKey getRSAPrivateKey() {\n return (RSAPrivateKey) encryptedRSAKeyPair.getRSAKeyPair().getPrivate();\n }", "public char[] getPrivateKey() {\n\t\treturn privateKey;\n\t}", "public CryptoKey getMyKey() {\n return myKey;\n }", "private synchronized PrivateKey getPrivateKey() throws Exception {\n if (privateKey == null) {\n KeyStore keyStore = loadKeyStore();\n privateKey = (PrivateKey)keyStore.getKey(aliasName, password.toCharArray());\n }\n\t\treturn privateKey;\n\t}", "@Accessor(qualifier = \"privateKey\", type = Accessor.Type.GETTER)\n\tpublic String getPrivateKey()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(PRIVATEKEY);\n\t}", "public Class<PRIV> getPrivateKeyClass() {\n return privKeyType;\n }", "public static String getPrivateKeyPath() {\n return privateKeyPath;\n }", "@NonNull\n public PrivateKey getPrivateKey() {\n return mPrivateKey;\n }", "public PrivateKey getPrivateKey() {\n File keyFile = new File(baseDirectory, pvtKeyFileName);\n if (!keyFile.exists()) {\n if (!generateKeys()) {\n return null;\n }\n }\n if (!keyFile.exists()) {\n return null;\n }\n try {\n byte[] bytes = FileUtils.readFileToByteArray(keyFile);\n PKCS8EncodedKeySpec ks = new PKCS8EncodedKeySpec(bytes);\n KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n PrivateKey pvt = kf.generatePrivate(ks);\n return pvt;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "java.lang.String getPublicEciesKey();", "public String getPrivateKeyPassword() {\n\t\treturn privateKeyPassword;\n\t}", "public String getSecretKey();", "public java.security.PrivateKey getPrivateKey() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: java.security.Signer.getPrivateKey():java.security.PrivateKey, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.getPrivateKey():java.security.PrivateKey\");\n }", "private static PrivateKey getPrivateKey(String keyStr)\n throws Exception\n {\n return KeyFactory.getInstance(RSA).generatePrivate(new PKCS8EncodedKeySpec(Base64.decode(keyStr)));\n }", "private static RSAPrivateKey getPrivateKey() throws GeneralSecurityException {\n String privateKeyPath = getPrivateKeyPath();\n String keyStorePath = getKeyStorePath();\n String keyStorePrivateKeyAlias = getKeyStoreAlias();\n if (privateKeyPath != null) {\n File privateKeyFile = new File(privateKeyPath);\n if (privateKeyFile.isFile()) {\n //load privateKey from file\n return loadPrivateKeyFromFile(privateKeyPath, passphrase);\n } else {\n throw new IllegalArgumentException(\n \"The specified privateKey path '\" + privateKeyPath + \"' is invalid\");\n }\n } else if (keyStorePath != null && keyStorePrivateKeyAlias != null) {\n return new KeyStoreManager()\n .getKeyStorePrivateKey(keyStorePath, getKeyStorePassword(), keyStorePrivateKeyAlias);\n } else {\n throw new IllegalArgumentException(\n \"Could not load the privateKey for authentication. Please check the privateKey parameters in your input.\");\n }\n }", "private String key() {\n return \"secret\";\n }", "public PGPPublicKey getEncryptionKey() {\n\t\tIterator iter = base.getPublicKeys();\n\t\tPGPPublicKey encKey = null;\n\t\twhile (iter.hasNext()) {\n\t\t\tPGPPublicKey k = (PGPPublicKey) iter.next();\n\t\t\tif (k.isEncryptionKey())\n\t\t\t\tencKey = k;\n\t\t}\n\n\t\treturn encKey;\n\t}", "private String exportkey() {\n\n\t\ttry {\n\t\t\tbyte[] keyBytes = serversharedkey.getEncoded();\n\t\t\tString encodedKey = new String(Base64.encodeBase64(keyBytes), \"UTF-8\");\n\t\t\tFile file = new File(\"serversharedKey\");\n\t\t\t//System.out.println(\"The server Private key: \" + encodedKey);\n\t\t\tPrintWriter writer = new PrintWriter(file, \"UTF-8\");\n\t\t\twriter.println(encodedKey);\n\t\t\twriter.close();\n\n\t\t\treturn encodedKey;\n\n\t\t} catch (UnsupportedEncodingException | FileNotFoundException ex) {\n\t\t\tLogger.getLogger(ClientTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\treturn null;\n\t}", "java.lang.String getPubkey();", "OpenSSLKey mo134201a();", "public byte[] getPrivKeyBytes() {\n return Utils.bigIntegerToBytes(getPrivKey(), 32);\n }", "protected final String getPrivateKeyLocation() {\n return this.privateKeyLocation;\n }", "public java.lang.String getEncryptedKey() {\n\t\treturn encryptedKey;\n\t}", "public PrivateKey getPrivateKey(String alias) {\n if (alias != null)\n\t\t System.out.println(\"==KeyManager. Get private key for \" + alias);\n\t\tPrivateKey pk = myKeyManager.getPrivateKey(alias);\n\t\treturn pk;\n\t}", "public static Key getUserKey() throws IOException {\n\t\tif (localKey.get() == null) {\n\t\t\ttry {\n\t\t\t\tlocalKey.set(cipherKeyProvider.loadKey());\n\t\t\t} catch (KeyLoadingException e) {\n\t\t\t\tthrow new IOException(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t\treturn localKey.get();\n\t}", "public Key getPrivateKey(String alias) throws CryptoException {\n\t\treturn getPrivateKey(alias, null);\n\t}", "public PrivateKey getPrivateList() {\n return this.privateList;\n }", "protected String getKey() {\n\t\treturn makeKey(host, port, transport);\n\t}", "String getEncryptionKeyId();", "private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }", "public byte[] getKey() {\n return this.key;\n }", "private KeyPair getPrivateKeyPair() throws IOException {\n final PEMParser pemParser = new PEMParser(new StringReader(sshKey));\n final PEMKeyPair keypair = (PEMKeyPair) pemParser.readObject();\n final JcaPEMKeyConverter converter = new JcaPEMKeyConverter();\n return new KeyPair(\n converter.getPublicKey(SubjectPublicKeyInfo.getInstance(keypair.getPublicKeyInfo())),\n converter.getPrivateKey(keypair.getPrivateKeyInfo()));\n }", "byte[] getKey();", "public static PrivateKey getPrivateKey(String privKey) {\n try {\n PemReader pemReader = new PemReader(new StringReader(privKey));\n byte[] content = pemReader.readPemObject().getContent();\n PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(content);\n KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n return kf.generatePrivate(spec);\n } catch (IOException | NoSuchAlgorithmException | InvalidKeySpecException ex) {\n return null;\n }\n }", "public static byte[] getKey() {\n return key;\n }", "public KeyEncryptionKeyInfo keyEncryptionKeyInfo() {\n return this.keyEncryptionKeyInfo;\n }", "public String getSecretKey() {\n return secretKey;\n }", "public static Key generarKey() throws Exception{\n Key key = new SecretKeySpec(keyvalue, instancia); \n return key;\n }", "public KeyPair generadorAleatori() {\n KeyPair keys = null;\n try {\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n keyGen.initialize(2048);\n keys = keyGen.genKeyPair();\n } catch (Exception e) {\n System.err.println(\"Generador no disponible.\");\n }\n return keys;\n }", "java.lang.String getClientKey();", "public abstract PrivateKey generatePrivate(KeySpec keySpec)\n\t throws InvalidKeySpecException;", "public ECP getPublicKGCKey(){return pkS;}", "public static SecretKey getAdminEncryptionKey() {\n return adminEncryptionKey;\n }", "private EncryptionKey() {\n }", "public KeyStore.PrivateKeyEntry getPrivateKeyEntry() throws Exception {\n KeyStore.Entry entry = keyStore.getEntry(aliasName, null);\n if (!(entry instanceof KeyStore.PrivateKeyEntry)) {\n return null;\n }\n else {\n return ((KeyStore.PrivateKeyEntry) entry);\n }\n }", "private static Key generateKey() throws NoSuchAlgorithmException {\r\n\t\tif (key == null) {\r\n\t\t\tgenerator = KeyGenerator.getInstance(\"DES\");\r\n\t\t\tgenerator.init(new SecureRandom());\r\n\t\t\tkey = generator.generateKey();\r\n\t\t}\r\n\t\treturn key;\r\n\t}", "public Key getKey()\r\n { \r\n return key; \r\n }", "public KeyProvider getKeyProvider() {\n return keystore; \n }", "@Override\n\tpublic String getKey() {\n\t\t LiuLiang_Key = Util.getMaiYuanConfig(\"LiuLiang_Key\");\n\t\treturn LiuLiang_Key;\n\t}", "public DecryptionCipherInterface decryptionCipher()\n {\n return this.decryptionCipher;\n }", "public final KeyPair generateKeyPair() {\n\t\tif (SECURE_RANDOM == null) {\n\t\t\tSECURE_RANDOM = new SecureRandom();\n\t\t}\n\t\t// for p and q we divide the bits length by 2 , as they create n, \n\t\t// which is the modulus and actual key size is depend on it\n\t\tBigInteger p = new BigInteger(STRENGTH / 2, 64, SECURE_RANDOM);\n\t\tBigInteger q;\n\t\tdo {\n\t\t\tq = new BigInteger(STRENGTH / 2, 64, SECURE_RANDOM);\n\t\t} while (q.compareTo(p) == 0);\n\n\t\t// lambda = lcm(p-1, q-1) = (p-1)*(q-1)/gcd(p-1, q-1)\n\t\tBigInteger lambda = p.subtract(BigInteger.ONE).multiply(q\n\t\t\t\t.subtract(BigInteger.ONE)).divide(p.subtract(BigInteger.ONE)\n\t\t\t\t.gcd(q.subtract(BigInteger.ONE)));\n\n\t\tBigInteger n = p.multiply(q); // n = p*q\n\t\tBigInteger nsquare = n.multiply(n); // nsquare = n*n\n\t\tBigInteger g;\n\t\tdo {\n\t\t\t// generate g, a random integer in Z*_{n^2}\n\t\t\tdo {\n\t\t\t\tg = new BigInteger(STRENGTH, 64, SECURE_RANDOM);\n\t\t\t} while (g.compareTo(nsquare) >= 0\n\t\t\t\t\t|| g.gcd(nsquare).intValue() != 1);\n\n\t\t\t// verify g, the following must hold: gcd(L(g^lambda mod n^2), n) =\n\t\t\t// 1,\n\t\t\t// where L(u) = (u-1)/n\n\t\t} while (g.modPow(lambda, nsquare).subtract(BigInteger.ONE).divide(n)\n\t\t\t\t.gcd(n).intValue() != 1);\n\n\t\t// mu = (L(g^lambda mod n^2))^{-1} mod n, where L(u) = (u-1)/n\n\t\tBigInteger mu = g.modPow(lambda, nsquare).subtract(BigInteger.ONE)\n\t\t\t\t.divide(n).modInverse(n);\n\n\t\tPaillierPublicKey publicKey = new PaillierPublicKey(n, g, nsquare);\n\t\tPaillierPrivateKey privateKey = new PaillierPrivateKey(lambda, mu,\n\t\t\t\tnsquare, n);\n\n\t\treturn new KeyPair(publicKey, privateKey);\n\t}", "public static SecretKey getAdminSigningKey() {\n return adminSigningKey;\n }", "public final String getInternalKey() {\n return CloudImageLoader.generateKey(getInternalUri(), getInternalDownloadType());\n }", "public int getRsaKeyB(){\n\treturn this.rsaKeyB;\n }", "public PrivateKey getPrivateKey(String file) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException{\n byte[] keyBytes = Files.readAllBytes(new File(file).toPath());\n PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(keyBytes);\n KeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n return keyFactory.generatePrivate(spec);\n }", "private byte[] getTokenKey() throws InternalSkiException {\n return sysKey(TOKEN_KEY);\n }", "public ECP getPublicEphemeralKey(){return epk;}", "MemberVdusKey getKey();", "public byte[] getConfKey() {\n return byteConfKey;\n }", "static KeyPair generateKeyPair() throws NoSuchAlgorithmException {\n\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(ALGORITHM);\n\n keyGen.initialize(2048);\n\n //Log.e(TAG, \"generateKeyPair: this is public key encoding \" + Arrays.toString(generateKeyPair.getPrivate().getEncoded()));\n\n return keyGen.generateKeyPair();\n }", "private void receiveKey() throws Exception {\n System.out.println(\"Receive Key\");\n DataInputStream dis = new DataInputStream(is);\n String keyBase64 = dis.readUTF();\n byte[] key = Util.convertBase64ToBytes(keyBase64);\n byte[] rc4key = Util.RSADecrypt(key, prikey);\n synchronized (GUITracker.onlinePeer) {\n GUITracker.RC4KeyByte = rc4key;\n }\n RC4Key = RC4.convertBytesToSecretKey(rc4key);\n encrypt = new RC4(RC4Key, RC4.ENCRYPT);\n decrypt = new RC4(RC4Key, RC4.DECRYPT);\n CipherInputStream cis = decrypt.getBindingInputStream(socket.getInputStream());\n CipherOutputStream cos = encrypt.getBindingOutputStream(socket.getOutputStream());\n is = cis;\n os = cos;\n System.out.println(\"Get symmetric key from: \" + addressPort);\n }", "public void generate(){\n\t\t//Key Generation\n\t\tint p = 41, q = 67; //two hard-coded prime numbers\n\t\tint n = p * q;\n\t\tint w = (p-1) * (q-1);\n\t\tint d = 83; //hard-coded number relatively prime number to w\n\t\t\n\t\tthis.privatekey = new PrivateKey(d,n); //public key generation completed\n\t\t\n\t\t//Extended Euclid's algorithm\n\t\tint \ta = w, \n\t\t\t\tb = d,\n\t\t\t\tv = a/b;\n\t\tArrayList<Integer> \tx = new ArrayList<Integer>(), \n\t\t\t\t\ty = new ArrayList<Integer>(),\n\t\t\t\t\tr = new ArrayList<Integer>();\n\t\t\n\t\t\n\t\t//Iteration 0\n\t\tint i = 0;\n\t\tx.add(1);\n\t\ty.add(0);\n\t\tr.add(a);\n\t\ti++;\n\t\t//Iteration 1\n\t\tx.add(0);\n\t\ty.add(1);\n\t\tr.add(b);\n\t\ti++;\n\t\t//Iteration 2\n\t\t //iteration counter\n\t\tint e = y.get(i-1);\n\t\tv = r.get(i-2) / r.get(i-1);\n\t\tx.add(x.get(i-2)-v*x.get(i-1));\n\t\ty.add(y.get(i-2) - v*y.get(i-1));\n\t\tr.add(a*(x.get(i-2)-v*x.get(i-1))\n\t\t\t\t+b*(y.get(i-2)-v*y.get(i-1))); \n\t\ti++;\n\t\t\n\t\t//Iterate until r == 0, then get the previous iteration's value of d\n\t\twhile(r.get(i-1) > 0){\n\t\t\te = y.get(i-1);\n\t\t\tv = r.get(i-2) / r.get(i-1);\n\t\t\tx.add(x.get(i-2)-v*x.get(i-1));\n\t\t\ty.add(y.get(i-2) - v*y.get(i-1));\n\t\t\tr.add(a*(x.get(i-2)-v*x.get(i-1))\n\t\t\t\t\t+b*(y.get(i-2) -(v*y.get(i-1))));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//if number is negative, add w to keep positive\n\t\tif (e < 0){\n\t\t\te = w+e;\n\t\t}\n\t\tthis.publickey = new PublicKey(e,n); //private key generation completed\n\t\t\n\t\t//print values to console\n\t\tSystem.out.println(\"Value of public key: \" + e + \", private key: \" + d + \", modulus: \" + n);\n\t\tSystem.out.println();\n\t}", "private PrivateKey generatePrivateKey(KeyFactory factory) throws IOException, InvalidKeySpecException {\n\n PemFile pemFile = new PemFile(RESOURCES_DIR + PRIVATE_KEY_FILE_NAME);\n byte[] content = pemFile.getPemObject().getContent();\n PKCS8EncodedKeySpec privKeySpec = new PKCS8EncodedKeySpec(content);\n return factory.generatePrivate(privKeySpec);\n }", "public SecretKey getSecretKey() {\n return secretKey;\n }", "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "public PrivateKey getPrivateKey(String keyFilePath) throws Exception {\n\t\tFileInputStream fis = new FileInputStream(keyFilePath);\n\t\tbyte[] encodedKey = new byte[fis.available()];\n\t\tfis.read(encodedKey);\n\t\tfis.close();\n\t\tPKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(encodedKey);\n\t\tPrivateKey privateKey = keyFactory.generatePrivate(privateKeySpec);\n\t\treturn privateKey;\n\t}", "public byte[] getIccPublicKeyRemainder()\n {\n return iccPublicKeyRemainder;\n }", "private KeyPair generateKeyPair() {\n try {\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\", \"SUN\");\n keyGen.initialize(2048, random);\n return keyGen.generateKeyPair();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n } catch (NoSuchProviderException e) {\n e.printStackTrace();\n }\n return null;\n }", "private BigInteger setPrivateKey(BigInteger modulus){\n BigInteger privateKey = null;\n \n do {\n \tprivateKey = BigInteger.probablePrime(N / 2, random);\n }\n /* n'a aucun autre diviseur que 1 */\n while (privateKey.gcd(phi0).intValue() != 1 ||\n /* qu'il est plus grand que p1 et p2 */\n privateKey.compareTo(modulus) != -1 ||\n /* qu'il est plus petit que p1 * p2 */\n privateKey.compareTo(p1.max(p2)) == -1);\n \n return privateKey;\n }", "public static byte[] getEncryptRawKey() {\n\n try {\n /*byte[] bytes64Key = App.RealmEncryptionKey.getBytes(\"UTF-8\");\n KeyGenerator kgen = KeyGenerator.getInstance(\"AES\");\n SecureRandom sr = SecureRandom.getInstance(\"SHA1PRNG\");\n sr.setSeed(bytes64Key);\n kgen.init(128, sr);\n SecretKey skey = kgen.generateKey();\n byte[] raw = skey.getEncoded();*/\n\n byte[] key = new BigInteger(App.RealmEncryptionKey, 16).toByteArray();\n return key;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "java.lang.String getCryptProvider();", "public SecretKey getSymmetricKey() {\n return symmetricKey;\n }", "public java.lang.String getKey(){\n return localKey;\n }", "public final byte[] secret() {\n try {\n ByteSequence seq = new ByteSequence(this.sequence());\n seq.append(this._domainNameSeq);\n seq.append(this._creatorCert.getEncoded());\n return seq.sequence();\n } catch (Exception ex) {\n ex.printStackTrace();\n return null;\n }\n }", "Object getAuthInfoKey();", "Encryption encryption();", "protected java.security.PrivateKey engineGeneratePrivate(\n\t java.security.spec.KeySpec keySpec)\n\t throws java.security.spec.InvalidKeySpecException {\n\n\tif (keySpec != null && !(keySpec instanceof KeySpec)) {\n\t if (keySpec instanceof java.security.spec.PKCS8EncodedKeySpec) {\n\t\tKeySpec encKeySpec = new PKCS8EncodedKeySpec(\n\t\t\t(java.security.spec.PKCS8EncodedKeySpec) keySpec);\n\t\treturn generatePrivate(encKeySpec);\n\t }\n\n\t throw new java.security.spec.InvalidKeySpecException();\n\t}\n\n\treturn generatePrivate((KeySpec) keySpec);\n }", "public static String keyRC4()\n {\n String key;\n key = ABSecurity.keyRC4;\n return key;\n }", "protected K getKey() {\n return this.key;\n }", "public byte[] getUserKey() throws IOException\n {\n byte[] u = null;\n COSString user = (COSString)encryptionDictionary.getDictionaryObject( COSName.getPDFName( \"U\" ) );\n if( user != null )\n {\n u = user.getBytes();\n }\n return u;\n }", "public ECP getKGCRandomKey(){return R;}", "public String getTlsKey();", "public interface DHPrivateKey extends DHKey, java.security.PrivateKey {\n \n /**\n * Returns the private value, <code>x</code>.\n *\n * @return the private value, <code>x</code>\n */\n BigInteger getX();\n}" ]
[ "0.82835644", "0.7930087", "0.7917694", "0.7861261", "0.7861261", "0.7634653", "0.75905704", "0.7583929", "0.7535633", "0.74439883", "0.7426453", "0.7423903", "0.73429084", "0.7204362", "0.7204362", "0.7204362", "0.71917903", "0.71766007", "0.717329", "0.71532595", "0.70399255", "0.7025701", "0.6996423", "0.6978206", "0.6952859", "0.6917827", "0.68936676", "0.68509895", "0.6844291", "0.6840452", "0.67520154", "0.67489815", "0.667763", "0.66366696", "0.6601042", "0.6573122", "0.65598565", "0.6552641", "0.6543801", "0.6497214", "0.64945066", "0.6486649", "0.6477374", "0.6456756", "0.6437969", "0.6425064", "0.6423192", "0.6391794", "0.6340141", "0.63178915", "0.6297591", "0.6281298", "0.62604594", "0.6230627", "0.6229166", "0.6223731", "0.62109333", "0.61963314", "0.61902404", "0.6183858", "0.61757624", "0.6158763", "0.6141908", "0.61242765", "0.61232054", "0.61168784", "0.61018574", "0.608289", "0.60811424", "0.60770917", "0.6068331", "0.6067906", "0.6055876", "0.60557467", "0.6052935", "0.6052744", "0.6048983", "0.60475075", "0.6039444", "0.6035099", "0.60315084", "0.6018654", "0.6012764", "0.6007888", "0.60005295", "0.59940904", "0.59934384", "0.59928846", "0.5973157", "0.5972752", "0.5970872", "0.5970355", "0.5968325", "0.5964161", "0.5958873", "0.5952151", "0.5948261", "0.59467024", "0.5916683", "0.59156126" ]
0.6866672
27
This Private Method responsible to load the keystore
private void loadStore() throws Exception { keyStore = KeyStore.getInstance(keyStoreType.toUpperCase()); FileInputStream fis = null; try { fis = new FileInputStream(keyStorePath); keyStore.load(fis, keyStorePass.toCharArray()); } catch (CertificateException | IOException e) { writeToLog("Error while trying to load the key-store"); LogWriter.close(); throw new Exception("Error while trying to load the key-store", e); } finally { if (fis != null) { fis.close(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initKeystore(Properties props) throws KeyStoreInitException {\n\t\tkeystorePassword = props.getProperty(\"keystorePassword\");\n\t\tkeystoreLocation = props.getProperty(\"keystoreLocation\");\n\t\tsecretKeyAlias = props.getProperty(\"secretKeyAlias\");\n\n\t\ttry {\n\t\t\tks = loadKeyStore();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t} catch (KeyStoreException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t} catch (CertificateException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t}\n\t}", "KeyStore loadKeystore(char[] keystorePassword) {\n try {\n // Load the keystore in the user's home directory\n bufferedInputStream.reset();\n keystore.load(bufferedInputStream, keystorePassword);\n return keystore;\n // TODO: EOFException might mean we're skipping guesses\n } catch (CertificateException | NoSuchAlgorithmException | FileNotFoundException e) {\n throw new KeystoreException(e);\n } catch (IOException e) {\n if ((e.getCause() instanceof UnrecoverableKeyException) &&\n (e.getCause().getMessage().contains(\"Password verification failed\"))) return null;\n\n throw new KeystoreException(e);\n }\n }", "private void loadTM() throws ERMgmtException{\n try{\n KeyStore ts = KeyStore.getInstance(KeyStore.getDefaultType());\n //random number generate to generated aliases for the new keystore\n Random generator = new Random();\n \n ts.load(null, null);\n \n if(mCertList.size() > 0){\n for(int i=0; i<mCertList.size(); i++){\n int randomInt = generator.nextInt();\n while(ts.containsAlias(\"certificate\"+randomInt)){\n randomInt = generator.nextInt();\n }\n ts.setCertificateEntry(\"certificate\"+randomInt, (X509Certificate) mCertList.get(i));\n } \n mTrustManagerFactory.init(ts); \n } else { \n mTrustManagerFactory.init((KeyStore) null);\n }\n \n TrustManager[] tm = mTrustManagerFactory.getTrustManagers();\n for(int i=0; i<tm.length; i++){\n if (tm[i] instanceof X509TrustManager) {\n mTrustManager = (X509TrustManager)tm[i]; \n break;\n }\n }\n \n } catch (Exception e){ \n throw new ERMgmtException(\"Trust Manager Error\", e);\n }\n \n }", "@Override\n public KeyStore loadKeyStore(File file, String keyStoreType, String password) {\n KeyStore keyStore;\n try {\n keyStore = KeyStore.getInstance(keyStoreType);\n } catch (KeyStoreException e) {\n throw new KeyStoreAccessException(\"Unable to get KeyStore instance of type: \" + keyStoreType, e);\n }\n\n try (InputStream keystoreAsStream = new FileInputStream(file)) {\n keyStore.load(keystoreAsStream, password.toCharArray());\n } catch (IOException e) {\n throw new ImportException(\"Unable to read KeyStore from file: \" + file.getName(), e);\n } catch (CertificateException | NoSuchAlgorithmException e) {\n throw new ImportException(\"Error while reading KeyStore\", e);\n }\n\n return keyStore;\n }", "private static KeyStore getLoadKeyStore(File keyStoreFile, String keyStorePwd) throws Exception {\n\t\tKeyStore ks = null;\n\t\tInputStream ksInput = null;\n\t\ttry {\n\t\t\t//ks = KeyStore.getInstance(DEFAULT_KEYSTORE_TYPE, new BouncyCastleProvider());\n\t\t\tks = KeyStore.getInstance(DEFAULT_KEYSTORE_TYPE);\n\t\t\tksInput = new BufferedInputStream(new FileInputStream(keyStoreFile));\n\t\t\tks.load(ksInput, keyStorePwd.toCharArray());\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tthrow new Exception(\"加载证书密钥库[\" + keyStoreFile.getName() + \"]失败,原因[\" + ex.getMessage() + \"]\");\n\t\t} finally {\n\t\t\t//IOUtils.closeQuietly(ksInput);\n\t\t}\n\t\treturn ks;\n\t}", "public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;", "@SuppressFBWarnings(value = \"EXS_EXCEPTION_SOFTENING_NO_CONSTRAINTS\",\n\t\t\tjustification = \"converting checked to unchecked exceptions that must not be thrown\")\n\tpublic static KeyStore loadKeyStore(final Path jksFilePath, final String password)\n\t\t\tthrows CertificateException, IOException {\n\t\ttry (InputStream inputStream = Files.newInputStream(jksFilePath)) {\n\t\t\tfinal KeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\t\t\tkeyStore.load(inputStream, password.toCharArray());\n\t\t\treturn keyStore;\n\t\t} catch (final KeyStoreException | NoSuchAlgorithmException e) {\n\t\t\tthrow new SneakyException(e);\n\t\t}\n\t}", "private KeyManager getKeyManager() {\n\t\tDefaultResourceLoader loader = new FileSystemResourceLoader();\n\t\tResource storeFile = loader.getResource(\"file:\" + samlProps.get(\"keyStoreFilePath\"));\n\t\tMap<String, String> keyPasswords = new HashMap<String, String>();\n\t\tkeyPasswords.put(samlProps.get(\"keyAlias\"), samlProps.get(\"keyPasswd\"));\n\n\t\treturn new JKSKeyManager(storeFile, samlProps.get(\"keyStorePasswd\"), keyPasswords, samlProps.get(\"keyAlias\"));\n\t}", "private void loadWalletFromKeystore(String password, String keyStoreFileName) {\n mCredentials = Web3jWalletHelper.onInstance(mContext).getWallet(password, walletSuffixDir, keyStoreFileName);\n SharedPref.write(WALLET_ADDRESS, mCredentials.getAddress());\n // SharedPref.write(PUBLIC_KEY, mCredentials.getEcKeyPair().getPublicKey().toString(16));\n SharedPref.write(PRIVATE_KEY, mCredentials.getEcKeyPair().getPrivateKey().toString(16));\n SharedPref.write(PUBLIC_KEY, ECDSA.getHexEncodedPoint(SharedPref.read(PRIVATE_KEY)));\n }", "public KeyStore getKeyStore();", "@Nonnull\n public static KeyStore loadKeyStore(String filename, String password)\n throws IOException, GeneralSecurityException {\n return loadKeyStore(FileUtil.getContextFile(filename), password);\n }", "public URL getKeyStore() {\n URL keyStore = null;\n if (keyStoreLocation != null) {\n try {\n keyStore = new URL(\"file:\" + keyStoreLocation);\n }\n catch (Exception e) {\n log.error(\"Keystore has a malformed name: \" + keyStoreLocation, e);\n }\n }\n return keyStore;\n }", "@Test\n public void testSslJks_loadTrustStoreFromFile() throws Exception {\n final InputStream inputStream = this.getClass().getResourceAsStream(\"/keystore.jks\");\n final String tempDirectoryPath = System.getProperty(\"java.io.tmpdir\");\n final File jks = new File(tempDirectoryPath + File.separator + \"keystore.jks\");\n final FileOutputStream outputStream = new FileOutputStream(jks);\n final byte[] buffer = new byte[1024];\n int noOfBytes = 0;\n while ((noOfBytes = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, noOfBytes);\n }\n\n final MockVault mockVault = new MockVault(200, \"{\\\"data\\\":{\\\"value\\\":\\\"mock\\\"}}\");\n final Server server = VaultTestUtils.initHttpsMockVault(mockVault);\n server.start();\n\n final VaultConfig vaultConfig = new VaultConfig()\n .address(\"https://127.0.0.1:9998\")\n .token(\"mock_token\")\n .sslConfig(new SslConfig().trustStoreFile(jks).build())\n .build();\n final Vault vault = new Vault(vaultConfig);\n final LogicalResponse response = vault.logical().read(\"secret/hello\");\n\n VaultTestUtils.shutdownMockVault(server);\n }", "protected static void setKeyStorePath(String keyStorePath) {\n Program.keyStorePath = keyStorePath;\n Program.authType = AUTH_TYPE.CERT;\n }", "public static KeyManagerFactory loadKeyStore( String keyStoreFile, String keyStorePasswordStr ) throws Exception\n {\n char[] keyStorePassword = Strings.isEmpty( keyStorePasswordStr ) ? null : keyStorePasswordStr.toCharArray();\n\n if ( !Strings.isEmpty( keyStoreFile ) )\n {\n // We have a provided KeyStore file: read it\n KeyStore keyStore = KeyStore.getInstance( KeyStore.getDefaultType() );\n\n try ( InputStream is = Files.newInputStream( Paths.get( keyStoreFile ) ) )\n {\n keyStore.load( is, keyStorePassword );\n }\n \n /*\n * Verify key store:\n * * Must only contain one entry which must be a key entry\n * * Must contain a certificate chain\n * * The private key must be recoverable by the key store password\n */\n Enumeration<String> aliases = keyStore.aliases();\n \n if ( !aliases.hasMoreElements() )\n {\n throw new KeyStoreException( \"Key store is empty\" );\n }\n \n String alias = aliases.nextElement();\n \n if ( aliases.hasMoreElements() )\n {\n throw new KeyStoreException( \"Key store contains more than one entry\" );\n }\n \n if ( !keyStore.isKeyEntry( alias ) )\n {\n throw new KeyStoreException( \"Key store must contain a key entry\" );\n }\n \n if ( keyStore.getCertificateChain( alias ) == null )\n {\n throw new KeyStoreException( \"Key store must contain a certificate chain\" );\n }\n \n if ( keyStore.getKey( alias, keyStorePassword ) == null )\n {\n throw new KeyStoreException( \"Private key must be recoverable by the key store password\" );\n }\n \n // Set up key manager factory to use our key store\n String algorithm = Security.getProperty( \"ssl.KeyManagerFactory.algorithm\" );\n \n if ( algorithm == null )\n {\n algorithm = KeyManagerFactory.getDefaultAlgorithm();\n }\n \n KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance( algorithm );\n \n keyManagerFactory.init( keyStore, keyStorePassword );\n \n return keyManagerFactory;\n }\n else\n {\n return null;\n }\n }", "public void init() throws Exception {\n\t\tString trustKeyStore = null;\n\t\tString trustKsPsword = null;\n\t\tString trustKsType = null;\n\t\t\n\t\t// Read ssl keystore properties from file\n\t\tProperties properties = new Properties();\n\t\tInputStream sslCertInput = Resources.getResourceAsStream(\"sslCertification.properties\");\n\t\ttry {\n\t\t\tproperties.load(sslCertInput);\n\t\t\ttrustKeyStore = properties.getProperty(\"trustKeyStore\");\n\t\t\ttrustKsPsword = properties.getProperty(\"trustKeyStorePass\");\n\t\t\ttrustKsType = properties.getProperty(\"trustKeyStoreType\");\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tsslCertInput.close();\n\t\t}\n \n // Set trust key store factory\n KeyStore trustKs = KeyStore.getInstance(trustKsType); \n FileInputStream trustKSStream = new FileInputStream(trustKeyStore);\n try {\n \ttrustKs.load(trustKSStream, trustKsPsword.toCharArray()); \n } catch (Exception e) {\n \tthrow e;\n } finally {\n \ttrustKSStream.close();\n }\n TrustManagerFactory trustKf = TrustManagerFactory.getInstance(\"SunX509\");\n trustKf.init(trustKs); \n \n // Init SSLContext\n SSLContext context = SSLContext.getInstance(\"TLSv1.2\"); \n context.init(null, trustKf.getTrustManagers(), null); \n sslFactory = context.getSocketFactory();\n \n\t\treturn;\n\t}", "public static KeyStore getKeyStoreFromFile(String keystoreName, String password,\n String home) throws Exception {\n Path tenantKeystorePath = Paths.get(home, \"repository\", \"resources\", \"security\", keystoreName);\n FileInputStream file = new FileInputStream(tenantKeystorePath.toString());\n KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());\n keystore.load(file, password.toCharArray());\n return keystore;\n }", "private SSLContext initSSLContext() {\n KeyStore ks = KeyStoreUtil.loadSystemKeyStore();\n if (ks == null) {\n _log.error(\"Key Store init error\");\n return null;\n }\n if (_log.shouldLog(Log.INFO)) {\n int count = KeyStoreUtil.countCerts(ks);\n _log.info(\"Loaded \" + count + \" default trusted certificates\");\n }\n\n File dir = new File(_context.getBaseDir(), CERT_DIR);\n int adds = KeyStoreUtil.addCerts(dir, ks);\n int totalAdds = adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n if (!_context.getBaseDir().getAbsolutePath().equals(_context.getConfigDir().getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n dir = new File(System.getProperty(\"user.dir\"));\n if (!_context.getBaseDir().getAbsolutePath().equals(dir.getAbsolutePath())) {\n dir = new File(_context.getConfigDir(), CERT_DIR);\n adds = KeyStoreUtil.addCerts(dir, ks);\n totalAdds += adds;\n if (adds > 0 && _log.shouldLog(Log.INFO))\n _log.info(\"Loaded \" + adds + \" trusted certificates from \" + dir.getAbsolutePath());\n }\n if (_log.shouldLog(Log.INFO))\n _log.info(\"Loaded total of \" + totalAdds + \" new trusted certificates\");\n\n try {\n SSLContext sslc = SSLContext.getInstance(\"TLS\");\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(ks);\n X509TrustManager defaultTrustManager = (X509TrustManager)tmf.getTrustManagers()[0];\n _stm = new SavingTrustManager(defaultTrustManager);\n sslc.init(null, new TrustManager[] {_stm}, null);\n /****\n if (_log.shouldLog(Log.DEBUG)) {\n SSLEngine eng = sslc.createSSLEngine();\n SSLParameters params = sslc.getDefaultSSLParameters();\n String[] s = eng.getSupportedProtocols();\n Arrays.sort(s);\n _log.debug(\"Supported protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledProtocols();\n Arrays.sort(s);\n _log.debug(\"Enabled protocols: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getProtocols();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default protocols: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getSupportedCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Supported ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = eng.getEnabledCipherSuites();\n Arrays.sort(s);\n _log.debug(\"Enabled ciphers: \" + s.length);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n s = params.getCipherSuites();\n if (s == null)\n s = new String[0];\n _log.debug(\"Default ciphers: \" + s.length);\n Arrays.sort(s);\n for (int i = 0; i < s.length; i++) {\n _log.debug(s[i]);\n }\n }\n ****/\n return sslc;\n } catch (GeneralSecurityException gse) {\n _log.error(\"Key Store update error\", gse);\n } catch (ExceptionInInitializerError eiie) {\n // java 9 b134 see ../crypto/CryptoCheck for example\n // Catching this may be pointless, fetch still fails\n _log.error(\"SSL context error - Java 9 bug?\", eiie);\n }\n return null;\n }", "@Bean\n public KeyManager keyManager() {\n final Resource storeFile\n = this.resourceLoader.getResource(\"classpath:\" + this.samlProperties.getKeystore().getName());\n final Map<String, String> passwords = new HashMap<>();\n passwords.put(\n this.samlProperties.getKeystore().getDefaultKey().getName(),\n this.samlProperties.getKeystore().getDefaultKey().getPassword()\n );\n return new JKSKeyManager(\n storeFile,\n this.samlProperties.getKeystore().getPassword(),\n passwords,\n this.samlProperties.getKeystore().getDefaultKey().getName()\n );\n }", "protected static String getKeyStorePath() {\n return keyStorePath;\n }", "private static KeyStore buildKeyStore(Context context, int certRawResId) throws KeyStoreException, CertificateException, NoSuchAlgorithmException, IOException {\n String keyStoreType = KeyStore.getDefaultType();\n KeyStore keyStore = KeyStore.getInstance(keyStoreType);\n keyStore.load(null, null);\n\n // read and add certificate authority\n Certificate cert = readCert(context, certRawResId);\n keyStore.setCertificateEntry(\"ca\", cert);\n\n return keyStore;\n }", "public KeyStore readKeyStore(File file, char[] password) {\n FileInputStream stream = null;\n try {\n stream = new FileInputStream(file);\n KeyStore ks = KeyStore.getInstance(\"JKS\"); \n ks.load(stream, password);\n return ks;\n } catch (RuntimeException | IOException | GeneralSecurityException e) {\n throw new RuntimeException(\"Failed to read keystore from [\"+file+\"]\", e);\n } finally {\n CloseablesExt.closeQuietly(stream);\n }\n }", "public URL getKeystoreLocation() {\n return keystoreLocation;\n }", "public KeyProvider getKeyProvider() {\n return keystore; \n }", "@Nonnull\n public static KeyStore loadKeyStore(File file, String password)\n throws IOException, GeneralSecurityException {\n KeyStore keyStore = KeyStore.getInstance(\"jks\");\n FileInputStream stream = new FileInputStream(file);\n try {\n keyStore.load(stream, password.toCharArray());\n } finally {\n stream.close();\n }\n return keyStore;\n }", "private void openKeystoreAndOutputJad() throws Exception {\n File ksfile;\n FileInputStream ksstream;\n\n if (alias == null) {\n usageError(command + \" requires -alias\");\n }\n\n if (outfile == null) {\n usageError(command + \" requires an output JAD\");\n }\n\n if (keystore == null) {\n keystore = System.getProperty(\"user.home\") + File.separator\n + \".keystore\";\n }\n\n try {\n ksfile = new File(keystore);\n // Check if keystore file is empty\n if (ksfile.exists() && ksfile.length() == 0) {\n throw new Exception(\"Keystore exists, but is empty: \" +\n keystore);\n }\n\n ksstream = new FileInputStream(ksfile);\n } catch (FileNotFoundException fnfe) {\n throw new Exception(\"Keystore does not exist: \" + keystore);\n }\n\n try {\n try {\n // the stream will be closed later\n outstream = new FileOutputStream(outfile);\n } catch (IOException ioe) {\n throw new Exception(\"Error opening output JAD: \" +\n outfile);\n }\n\n try {\n // load the keystore into the AppDescriptor\n appdesc.loadKeyStore(ksstream, storepass);\n } catch (Exception e) {\n throw new Exception(\"Keystore could not be loaded: \" +\n e.toString());\n }\n } finally {\n try {\n ksstream.close();\n } catch (IOException e) {\n // ignore\n }\n }\n }", "public PublicKeyStoreBuilderBase getKeystore() {\n return keystore;\n }", "public MEKeyTool() {\n keystore = new PublicKeyStoreBuilderBase();\n }", "protected void setupHttps(){\n try {\n if (!testKeystoreFile.exists()) {\n // Prepare a temporary directory for the tests\n BioUtils.delete(this.testDir, true);\n this.testDir.mkdir();\n // Copy the keystore into the test directory\n Response response = new Client(Protocol.CLAP)\n .handle(new Request(Method.GET,\n \"clap://class/org/restlet/test/engine/dummy.jks\"));\n\n if (response.getEntity() != null) {\n OutputStream outputStream = new FileOutputStream(\n testKeystoreFile);\n response.getEntity().write(outputStream);\n outputStream.flush();\n outputStream.close();\n } else {\n throw new Exception(\n \"Unable to find the dummy.jks file in the classpath.\");\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }", "public LocalRsaKeyLoader( CryptoService crypto, KeyStorageApi keyClient, DataStore dataStore )\n throws KodexException {\n if ( crypto == null || dataStore == null || keyClient == null ) {\n throw new KodexException(\n \"Crypto service, key network client, and data store are required to load from disk\" );\n }\n this.keyClient = keyClient;\n this.crypto = crypto;\n this.dataStore = dataStore;\n }", "private void Initiat_Service(Object serviceAdm,Utilisateur user_en_cours) {\n\t\tlog.debug(\"user_en_cours.trustedApplication:\"+user_en_cours.trustedApplication);\n\t\t\t\tString filename =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication));\n\t\t\t\tlog.debug(\"filename:\"+filename);\n\t\t\t\t//System.out.println(\"my file \"+filename);\n\t\t\t\tFileInputStream is=null;\n\t\t\t\ttry {\n\t\t\t\t\tis = new FileInputStream(filename);\n\t\t\t\t} catch (FileNotFoundException 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\tKeyStore myKeyStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\tString password =propIdentification.getProperty(Long.toString(user_en_cours.trustedApplication)+\".password\");\n\n\t\t\t\ttry {\n\t\t\t\t\tmyKeyStore.load(is, password.toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (CertificateException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tString filenameTrust =prop.getProperty(\"clienttrustore\");\n\t\t\t\tFileInputStream myKeys = null;\n\t\t\t\ttry {\n\t\t\t\t\tmyKeys = new FileInputStream(filenameTrust);\n\t\t\t\t} catch (FileNotFoundException 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// Load your TrustedStore\n\t\t\t\tKeyStore myTrustedStore=null;\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t\t} catch (KeyStoreException e2) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tmyTrustedStore.load(myKeys, prop.getProperty(\"clienttrustore.password\").toCharArray());\n\t\t\t\t} catch (NoSuchAlgorithmException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (CertificateException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\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\ttry {\n\t\t\t\t\tWSConnection.setupTLS(serviceAdm, myKeyStore, password, myTrustedStore);\n\t\t\t\t} catch (GeneralSecurityException 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}", "public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "public void setSslKeystore(String keystore) {\n\t\tsslKeystore = keystore;\n\t}", "public String getSslKeyStorePath()\n {\n return sslKeyStorePath;\n }", "@Override\n public void setKeyStore(KeyStore keyStore) {\n this.keyStore = keyStore;\n }", "public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;", "public void importKeyFromJcaKeystore(String jcakeystoreFilename,\n String keystorePassword,\n String alias, String domain)\n throws IOException, GeneralSecurityException {\n FileInputStream keystoreStream;\n KeyStore jcaKeystore;\n\n // Load the keystore\n keystoreStream = new FileInputStream(new File(jcakeystoreFilename));\n\n try {\n jcaKeystore = KeyStore.getInstance(KeyStore.getDefaultType());\n\n if (keystorePassword == null) {\n jcaKeystore.load(keystoreStream, null);\n } else {\n jcaKeystore.load(keystoreStream,\n keystorePassword.toCharArray());\n }\n } finally {\n keystoreStream.close();\n }\n\n importKeyFromJcaKeystore(jcaKeystore,\n alias,\n domain);\n }", "@Bean(name = \"keyManager\")\n\tpublic KeyManager keyManager() {\n\t\tDefaultResourceLoader loader = new DefaultResourceLoader();\n\t\tResource storeFile = loader\n\t\t\t\t.getResource(\"classpath:samlKeystoreDev.jks\");\n\t\tString storePass = \"nalle123\";\n\t\tMap<String, String> passwords = new HashMap<String, String>();\n\t\tpasswords.put(\"localhost\", \"nalle123\");\n\t\tString defaultKey = \"localhost\";\n\t\treturn new JKSKeyManager(storeFile, storePass, passwords, defaultKey);\n\t}", "public void importCA(File certfile){\n try {\n File keystoreFile = new File(archivo);\n \n //copia .cer -> formato manipulacion\n FileInputStream fis = new FileInputStream(certfile);\n DataInputStream dis = new DataInputStream(fis);\n byte[] bytes = new byte[dis.available()];\n dis.readFully(bytes);\n ByteArrayInputStream bais = new ByteArrayInputStream(bytes);\n bais.close();\n CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n Certificate certs = cf.generateCertificate(bais);\n //System.out.println(certs.toString());\n //inic keystore\n FileInputStream newib = new FileInputStream(keystoreFile);\n KeyStore keystore = KeyStore.getInstance(INSTANCE);\n keystore.load(newib,ksPass );\n String alias = (String)keystore.aliases().nextElement();\n newib.close();\n \n //recupero el array de certificado del keystore generado para CA\n Certificate[] certChain = keystore.getCertificateChain(alias);\n certChain[0]= certs; //inserto el certificado entregado por CA\n //LOG.info(\"Inserto certifica CA: \"+certChain[0].toString());\n //recupero la clave privada para generar la nueva entrada\n Key pk = (PrivateKey)keystore.getKey(alias, ksPass); \n keystore.setKeyEntry(alias, pk, ksPass, certChain);\n LOG.info(\"Keystore actualizado: [OK]\");\n \n FileOutputStream fos = new FileOutputStream(keystoreFile);\n keystore.store(fos,ksPass);\n fos.close(); \n \n } catch (FileNotFoundException ex) {\n LOG.error(\"Error - no se encuentra el archivo\",ex);\n } catch (IOException | NoSuchAlgorithmException | CertificateException | KeyStoreException ex) {\n LOG.error(\"Error con el certificado\",ex);\n } catch (UnrecoverableKeyException ex) {\n LOG.error(ex);\n }\n }", "private void initialiseSSLContext(KeyStore keystore, char[] password) throws NoSuchAlgorithmException, UnrecoverableKeyException, KeyStoreException, KeyManagementException{\n\t\tKeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());\n\t\tkmf.init(keystore, password);\n\t\tSSLContext sc = SSLContext.getInstance(\"TLS\");\n\t\t// TODO use trust factory?\n\t\tsc.init(kmf.getKeyManagers(), null, null);\t\t\n\t}", "private static void readPrivateKeyFromPKCS11() throws KeyStoreException {\n String configFileName = jarPath + \"pkcs11.cfg\";\r\n\r\n Provider p = null;\r\n try {\r\n p = new SunPKCS11(configFileName);\r\n Security.addProvider(p);\r\n } catch (ProviderException e) {\r\n LanzaError( \"no es correcto el fichero de configuración de la tarjeta\" );\r\n }\r\n \r\n KeyStore ks = null;\r\n try {\r\n ks = KeyStore.getInstance(\"pkcs11\", p);\r\n ks.load(null, clave );\r\n } catch (NoSuchAlgorithmException e) {\r\n LanzaError( \"leyendo la tarjeta (n.1)\" );\r\n } catch (CertificateException e) {\r\n LanzaError( \"leyendo la tarjeta (n.2)\" );\r\n } catch (IOException e) {\r\n LanzaError( \"leyendo la tarjeta (n.3)\" );\r\n }\r\n\r\n String alias = \"\";\r\n try {\r\n alias = (String) ks.aliases().nextElement();\r\n privateKey = (PrivateKey) ks.getKey(alias, clave);\r\n } catch (NoSuchElementException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.1)\" );\r\n } catch (NoSuchAlgorithmException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.2)\" );\r\n } catch (UnrecoverableKeyException e) {\r\n LanzaError( \"leyendo la clave de la tarjeta (n.3)\" );\r\n }\r\n certificateChain = ks.getCertificateChain(alias);\r\n }", "public KeyStore getKeyStore() {\n return keyStore;\n }", "@Test\n\tpublic void testAddX509CertificateToKeyStore() throws KeyStoreException, CertificateException, IOException, NoSuchAlgorithmException, InvalidKeySpecException {\n\t\t\n\t\tX509Certificate cert = DbMock.readCert(\"apache-tomcat.pem\");\n\t\t\n\t\tKeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\t\t//initialize keystore\n\t\tkeyStore.load(null, null);\n\t\t\n\t\tJcaUtils.addX509CertificateToKeyStore(keyStore, \"alias1\", cert);\n\t\t\n\t\t// Save the new keystore contents\n\t\tFileOutputStream out = new FileOutputStream(\"/Users/davide/Downloads/ks.dat\");\n\t\tkeyStore.store(out, \"davidedc\".toCharArray());\n\t\tout.close();\n\t}", "public MEKeyTool(File meKeystoreFile)\n throws FileNotFoundException, IOException {\n\n FileInputStream input;\n\n input = new FileInputStream(meKeystoreFile);\n\n try {\n keystore = new PublicKeyStoreBuilderBase(input);\n } finally {\n input.close();\n }\n }", "protected void loadStore() throws IOException {\n // auto create starting directory if needed\n if (!fileStore.exists()) {\n LOG.debug(\"Creating filestore: {}\", fileStore);\n File parent = fileStore.getParentFile();\n if (parent != null && !parent.exists()) {\n boolean mkdirsResult = parent.mkdirs();\n if (!mkdirsResult) {\n LOG.warn(\"Cannot create the filestore directory at: {}\", parent);\n }\n }\n boolean created = FileUtil.createNewFile(fileStore);\n if (!created) {\n throw new IOException(\"Cannot create filestore: \" + fileStore);\n }\n }\n\n LOG.trace(\"Loading to 1st level cache from state filestore: {}\", fileStore);\n\n cache.clear();\n try (Scanner scanner = new Scanner(fileStore, null, STORE_DELIMITER)) {\n while (scanner.hasNext()) {\n String line = scanner.next();\n int separatorIndex = line.indexOf(KEY_VALUE_DELIMITER);\n String key = line.substring(0, separatorIndex);\n String value = line.substring(separatorIndex + KEY_VALUE_DELIMITER.length());\n cache.put(key, value);\n }\n } catch (IOException e) {\n throw RuntimeCamelException.wrapRuntimeCamelException(e);\n }\n\n LOG.debug(\"Loaded {} to the 1st level cache from state filestore: {}\", cache.size(), fileStore);\n }", "public MEKeyTool(InputStream meKeystoreStream)\n throws IOException {\n keystore = new PublicKeyStoreBuilderBase(meKeystoreStream);\n }", "private void installTrustStore() {\n if (trustStoreType != null) {\n System.setProperty(\"javax.net.ssl.trustStore\", trustStore);\n if (trustStoreType != null) {\n System.setProperty(\"javax.net.ssl.trustStoreType\", trustStoreType);\n }\n if (trustStorePassword != null) {\n System.setProperty(\"javax.net.ssl.trustStorePassword\", trustStorePassword);\n }\n }\n }", "public MEKeyTool(String meKeystoreFilename)\n throws FileNotFoundException, IOException {\n\n FileInputStream input;\n\n input = new FileInputStream(new File(meKeystoreFilename));\n\n try {\n keystore = new PublicKeyStoreBuilderBase(input);\n } finally {\n input.close();\n }\n }", "public static PrivateKey loadPrivateKey(String path, String alias, String storepassword) {\n\n PrivateKey privateKey = null;\n try {\n KeyStore keyStore = KeyStore.getInstance(\"JKS\");\n keyStore.load(new FileInputStream(path), storepassword.toCharArray());\n KeyStore.PrivateKeyEntry prvKeyEntry = (KeyStore.PrivateKeyEntry) keyStore.getEntry(alias, new KeyStore.PasswordProtection(storepassword.toCharArray()));\n privateKey = prvKeyEntry.getPrivateKey();\n } catch (Exception e) {\n Logger.error(\"Error loading private key\");\n } finally {\n return privateKey;\n }\n }", "private void initializeStoreFromPersistedData() throws IOException\r\n {\r\n loadKeys();\r\n\r\n if (keyHash.isEmpty())\r\n {\r\n dataFile.reset();\r\n }\r\n else\r\n {\r\n final boolean isOk = checkKeyDataConsistency(false);\r\n if (!isOk)\r\n {\r\n keyHash.clear();\r\n keyFile.reset();\r\n dataFile.reset();\r\n log.warn(\"{0}: Corruption detected. Resetting data and keys files.\", logCacheName);\r\n }\r\n else\r\n {\r\n synchronized (this)\r\n {\r\n startupSize = keyHash.size();\r\n }\r\n }\r\n }\r\n }", "public SingleCertKeyStoreProvider() {\r\n super(\"PKCS7\", PROVIDER_VERSION, \"KeyStore for a PKCS7 or X.509 certificate\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n AccessController.doPrivileged(new java.security.PrivilegedAction<Object>() {\r\n \t/** {@inheritdoc} */\r\n @Override\r\n\t\t\tpublic Object run() {\r\n put(\"KeyStore.PKCS7\", \"es.gob.afirma.keystores.single.SingleCertKeyStore\"); //$NON-NLS-1$ //$NON-NLS-2$\r\n return null;\r\n }\r\n });\r\n }", "@Override\n public void run() throws Exception {\n InputStream in = getClass().getResourceAsStream(\"/keystore.p12\");\n char[] password = \"password\".toCharArray();\n KeyStore keystore = new JavaKeyStore(\"PKCS12\", in, password);\n System.out.println(\"Loaded keystore: \" + keystore);\n\n // create walletapi with loaded one\n WalletApi walletApi = new WalletApiFactory().create(keystore);\n System.out.println(\"Walletapi with loaded keystore: \" + walletApi);\n\n // unlocked key\n Authentication authentication = Authentication.of(new KeyAlias(\"keyalias\"), \"password\");\n boolean unlockResult = walletApi.unlock(authentication);\n System.out.println(\"Unlock result: \" + unlockResult);\n System.out.println(\"Unlocked account: \" + walletApi.getPrincipal());\n }", "public HwKeystoreManager getKeyStoreManager() {\n return this.mKeyStore;\n }", "@Override\n Map<SSLConfiguration, SSLContextHolder> loadSSLConfigurations() {\n return Collections.emptyMap();\n }", "public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }", "private void createSslStartTlsKeystoreSection( 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.SslStartTlsKeystore\" ) ); //$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( 3, false );\n composite.setLayout( glayout );\n section.setClient( composite );\n\n // Keystore File Text\n toolkit.createLabel( composite, Messages.getString( \"LdapLdapsServersPage.Keystore\" ) ); //$NON-NLS-1$\n keystoreFileText = toolkit.createText( composite, \"\" ); //$NON-NLS-1$\n setGridDataWithDefaultWidth( keystoreFileText, new GridData( SWT.FILL, SWT.CENTER, true, false ) );\n keystoreFileBrowseButton = toolkit.createButton( composite,\n Messages.getString( \"LdapLdapsServersPage.Browse\" ), SWT.PUSH ); //$NON-NLS-1$\n\n // Password Text\n toolkit.createLabel( composite, Messages.getString( \"LdapLdapsServersPage.Password\" ) ); //$NON-NLS-1$\n keystorePasswordText = toolkit.createText( composite, \"\" ); //$NON-NLS-1$\n keystorePasswordText.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false, 2, 1 ) );\n keystorePasswordText.setEchoChar( '\\u2022' );\n\n // Show Password Checkbox\n toolkit.createLabel( composite, \"\" ); //$NON-NLS-1$\n showPasswordCheckbox = toolkit.createButton( composite,\n Messages.getString( \"LdapLdapsServersPage.ShowPassword\" ), SWT.CHECK ); //$NON-NLS-1$\n showPasswordCheckbox.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, false ) );\n showPasswordCheckbox.setSelection( false );\n }", "protected static void setKeyStorePassword(String keyStorePassword) {\n Program.keyStorePassword = keyStorePassword;\n }", "private void loadDefaults() throws ERMgmtException{\n// \n\n try {\n //first try PKIX, works on 1.5 and 1.6\n mTrustManagerFactory = TrustManagerFactory.getInstance(mTrustManagerFactoryAlgorithm); \n } catch (NoSuchAlgorithmException nae1) {\n try{\n //trustManagerFactory should be using IBMJSSE2 in java1.4.2, or an exception will happen upon init\n Security.insertProviderAt(new IBMJSSEProvider2(), 1);\n //PKIX is called IbmPKIX on 1.4.2. running IBMJSSE2\n mTrustManagerFactory = TrustManagerFactory.getInstance(mTrustManagerFactoryBackupAlgorithm);\n }\n catch (NoSuchAlgorithmException nae2){\n //then try Ibm509 for 1.4.2 running JSSE\n try {\n mTrustManagerFactory = TrustManagerFactory.getInstance(mTrustManagerFactoryBackupAlgorithm2); \n }\n catch (NoSuchAlgorithmException nae3){\n throw new ERMgmtException(\"Trust Manager Error: \" , nae3);\n } \n }\n }\n loadTM(); \n X509Certificate[] defaultChain = mTrustManager.getAcceptedIssuers();\n for(int i=0; i<defaultChain.length; i++){\n mCertList.add(defaultChain[i]);\n }\n }", "public static void main(String args[]) throws Exception{\n\t KeyStore keyStore = KeyStore.getInstance(\"JCEKS\");\r\n\r\n //Cargar el objeto KeyStore \r\n char[] password = \"changeit\".toCharArray();\r\n java.io.FileInputStream fis = new FileInputStream(\r\n \t\t \"/usr/lib/jvm/java-11-openjdk-amd64/lib/security/cacerts\");\r\n \r\n keyStore.load(fis, password);\r\n \r\n //Crear el objeto KeyStore.ProtectionParameter \r\n ProtectionParameter protectionParam = new KeyStore.PasswordProtection(password);\r\n\r\n //Crear el objeto SecretKey \r\n SecretKey mySecretKey = new SecretKeySpec(\"myPassword\".getBytes(), \"DSA\");\r\n \r\n //Crear el objeto SecretKeyEntry \r\n SecretKeyEntry secretKeyEntry = new SecretKeyEntry(mySecretKey);\r\n keyStore.setEntry(\"AliasClaveSecreta\", secretKeyEntry, protectionParam);\r\n\r\n //Almacenar el objeto KeyStore \r\n java.io.FileOutputStream fos = null;\r\n fos = new java.io.FileOutputStream(\"newKeyStoreName\");\r\n keyStore.store(fos, password);\r\n \r\n //Crear el objeto KeyStore.SecretKeyEntry \r\n SecretKeyEntry secretKeyEnt = (SecretKeyEntry)keyStore.getEntry(\"AliasClaveSecreta\", protectionParam);\r\n\r\n //Crear el objeto SecretKey \r\n SecretKey mysecretKey = secretKeyEnt.getSecretKey(); \r\n System.out.println(\"Algoritmo usado para generar la clave: \"+mysecretKey.getAlgorithm()); \r\n System.out.println(\"Formato usado para la clave: \"+mysecretKey.getFormat());\r\n }", "public Map<String,KeystoreMetadata> getKeystores()\r\n {\r\n return _keystoreMap;\r\n }", "public void loadKey(File in, File privateKeyFile) throws GeneralSecurityException, IOException {\n\t byte[] encodedKey = new byte[(int)privateKeyFile.length()];\n\t FileInputStream is = new FileInputStream(privateKeyFile);\n\t is.read(encodedKey);\n\t \n\t // create private key\n\t PKCS8EncodedKeySpec privateKeySpec = new PKCS8EncodedKeySpec(encodedKey);\n\t KeyFactory kf = KeyFactory.getInstance(\"RSA\");\n\t PrivateKey pk = kf.generatePrivate(privateKeySpec);\n\t \n\t // read AES key\n\t pkCipher.init(Cipher.DECRYPT_MODE, pk);\n\t aesKey = new byte[256/8];\n\t CipherInputStream cis = new CipherInputStream(new FileInputStream(in), pkCipher);\n\t cis.read(aesKey);\n\t aesKeySpec = new SecretKeySpec(aesKey, \"AES\");\n\t cis.close();\n\t is.close();\n\t }", "public void setKeyStore(String keyStoreLocation) {\n if (!complete) {\n this.keyStoreLocation = keyStoreLocation;\n } else {\n log.warn(\"Connection Descriptor setter used outside of factory.\");\n }\n }", "public void newKeystore(String alias,String password, String bodyCert) {\n try {\n CertAndKeyGen keyGen = new CertAndKeyGen(\"RSA\", ALGORITHM, null);\n try {\n keyGen.generate(KEY_LEN);\n PrivateKey pk = keyGen.getPrivateKey();\n X509Certificate cert;\n cert = keyGen.getSelfCertificate(new X500Name(bodyCert), (long) EXPIRATION * 24 * 60 * 60);\n X509Certificate[] chain = new X509Certificate[1];\n chain[0]= cert;\n //creo el request PKCS10\n PKCS10 certreq = new PKCS10 (keyGen.getPublicKey());\n Signature signature = Signature.getInstance(ALGORITHM);\n signature.initSign(pk);\n certreq.encodeAndSign(new X500Name(bodyCert), signature);\n //-creo el archivo CSR-\n //FileOutputStream filereq = new FileOutputStream(\"C:\\\\test\\\\certreq.csr\");\n FileOutputStream filereq = new FileOutputStream(OUTPUTCERT_PATH);\n PrintStream ps = new PrintStream(filereq);\n certreq.print(ps);\n ps.close();\n filereq.close();\n \n this.ks = KeyStore.getInstance(INSTANCE);\n this.ksPass = password.toCharArray();\n try (FileOutputStream newkeystore = new FileOutputStream(archivo)) {\n ks.load(null,null);\n ks.setKeyEntry(alias, pk, ksPass, chain);\n ks.store(newkeystore, ksPass);\n }\n } catch (InvalidKeyException | IOException | CertificateException | SignatureException | KeyStoreException ex) {\n LOG.error(\"Error a manipular el archivo: \"+archivo,ex);\n }\n \n } \n catch (NoSuchAlgorithmException | NoSuchProviderException ex) {\n LOG.error(ex);\n }\n }", "public interface CertService {\n\n /**\n * Retrieves the root certificate.\n * \n * @return\n * @throws CertException\n */\n public X509Certificate getRootCertificate() throws CertException;\n\n /**\n * Sets up a root service to be used for CA-related services like certificate request signing and certificate\n * revocation.\n * \n * @param keystore\n * @throws CertException\n */\n public void setRootService(RootService rootService) throws CertException;\n\n /**\n * Retrieves a KeyStore object from a supplied InputStream. Requires a keystore password.\n * \n * @param userId\n * @return\n */\n public KeyStore getKeyStore(InputStream keystoreIS, String password) throws CertException;\n\n /**\n * Retrieves existing private and public key from a KeyStore.\n * \n * @param userId\n * @return\n */\n public KeyPair getKeyPair(KeyStore ks, String keyAlias, String certificateAlias, String keyPassword)\n throws CertException;\n\n /**\n * Retrieves an existing certificate from a keystore using keystore's certificate alias.\n * \n * @param userId\n * @return\n */\n public X509Certificate getCertificate(KeyStore keystore, String certificateAlias) throws CertException;\n\n /**\n * Generates a private key and a public certificate for a user whose X.509 field information was enclosed in a\n * UserInfo parameter. Stores those artifacts in a password protected keystore. This is the principal method for\n * activating a new certificate and signing it with a root certificate.\n * \n * @param userId\n * @return KeyStore based on the provided userInfo\n */\n\n public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;\n\n /**\n * Wraps a certificate object into an OutputStream object secured by a keystore password\n * \n * @param keystore\n * @param os\n * @param keystorePassword\n * @throws CertException\n */\n public void storeCertificate(KeyStore keystore, OutputStream os, String keystorePassword) throws CertException;\n\n /**\n * Extracts the email address from a certificate\n * \n * @param certificate\n * @return\n * @throws CertException\n */\n public String getCertificateEmail(X509Certificate certificate) throws CertException;\n\n}", "@Override\n public KeyStoreView fromKeyStore(KeyStore keyStore, Function<String, char[]> keyPassword) {\n return new DefaultKeyStoreView(\n new DefaultKeyStoreSourceImpl(metadataOper, keyStore, oper, keyPassword)\n );\n }", "public KeyPair loadKeystoreKeyPair(String privateKeyAlias) throws ProviderException {\n try {\n return HwUniversalKeyStoreProvider.loadAndroidKeyStoreKeyPairFromKeystore(this.mKeyStore, privateKeyAlias, this.mEntryUid);\n } catch (UnrecoverableKeyException e) {\n throw new ProviderException(\"Failed to load generated key pair from keystore\", e);\n }\n }", "private void getKeyAndCerts(String filePath, String pw)\n throws GeneralSecurityException, IOException {\n System.out\n .println(\"reading signature key and certificates from file \" + filePath + \".\");\n\n FileInputStream fis = new FileInputStream(filePath);\n KeyStore store = KeyStore.getInstance(\"PKCS12\", \"IAIK\");\n store.load(fis, pw.toCharArray());\n\n Enumeration<String> aliases = store.aliases();\n String alias = (String) aliases.nextElement();\n privKey_ = (PrivateKey) store.getKey(alias, pw.toCharArray());\n certChain_ = Util.convertCertificateChain(store.getCertificateChain(alias));\n fis.close();\n }", "private static void checkTrustStore(KeyStore store, Path path) throws GeneralSecurityException {\n Enumeration<String> aliases = store.aliases();\n while (aliases.hasMoreElements()) {\n String alias = aliases.nextElement();\n if (store.isCertificateEntry(alias)) {\n return;\n }\n }\n throw new SslConfigException(\"the truststore [\" + path + \"] does not contain any trusted certificate entries\");\n }", "Map<SSLConfiguration, SSLContextHolder> loadSSLConfigurations() {\n final Map<SSLConfiguration, SSLContextHolder> sslContextHolders = new HashMap<>();\n\n final Map<String, Settings> sslSettingsMap = new HashMap<>();\n sslSettingsMap.put(XPackSettings.HTTP_SSL_PREFIX, getHttpTransportSSLSettings(settings));\n sslSettingsMap.put(\"xpack.http.ssl\", settings.getByPrefix(\"xpack.http.ssl.\"));\n sslSettingsMap.putAll(getRealmsSSLSettings(settings));\n sslSettingsMap.putAll(getMonitoringExporterSettings(settings));\n sslSettingsMap.put(WatcherField.EMAIL_NOTIFICATION_SSL_PREFIX, settings.getByPrefix(WatcherField.EMAIL_NOTIFICATION_SSL_PREFIX));\n\n sslSettingsMap.forEach((key, sslSettings) -> loadConfiguration(key, sslSettings, sslContextHolders));\n\n final Settings transportSSLSettings = settings.getByPrefix(XPackSettings.TRANSPORT_SSL_PREFIX);\n final SSLConfiguration transportSSLConfiguration =\n loadConfiguration(XPackSettings.TRANSPORT_SSL_PREFIX, transportSSLSettings, sslContextHolders);\n this.transportSSLConfiguration.set(transportSSLConfiguration);\n Map<String, Settings> profileSettings = getTransportProfileSSLSettings(settings);\n profileSettings.forEach((key, profileSetting) -> loadConfiguration(key, profileSetting, sslContextHolders));\n\n for (String context : List.of(\"xpack.security.transport.ssl\", \"xpack.security.http.ssl\")) {\n validateServerConfiguration(context);\n }\n\n return Collections.unmodifiableMap(sslContextHolders);\n }", "public MyKeyManager(Parameters p) throws Exception {\n\t\tparms = p;\n\t\tKeyManager[] keymanager = null; \n\t\tint printKeyManager = parms.getPrintKeyStore(); // if the key store should be printed\n\t\tString keyStoreName = parms.getKeystoreName();\n\t\tString keyStorePassword = parms.getKeyStorePassword();\n\t\tString keyStoreType = parms.getKeystoreType();\n\t\t\n\t\tSystem.out.println(\"==KeyManager KeyStore name:\" +keyStoreName + \", type:\" + keyStoreType );\n\t\t// AlgorithmConstraints a = new AlgorithmConstraints();\n\t\ttry {\n\t\t\t// standard stuff \n\t\t\tkeyStore = KeyStore.getInstance(keyStoreType );\n\t\t\tkeyStore.load(new FileInputStream(keyStoreName), keyStorePassword.toCharArray());\n\t\t\t\n\t\t\tSystem.out.println(\"==KeyManager provider:\" + keyStore.getProvider().toString());\n\t\t\t// list all of the names in the keystore \n\t\t\tif (printKeyManager > 0 )\n\t\t\t\tprintKeyStore(printKeyManager);\n\t\t//\tsummariseKeyStore();\n\t\t\t// set it up - standard stuff\n\t\t\tKeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());\n\n\t\t\t// read the file into the key manager factory\n\t\t\tkeyManagerFactory.init(keyStore, keyStorePassword.toCharArray());\n\t\t\tkeymanager = keyManagerFactory.getKeyManagers();\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"NoSuchAlgorithmException EXCEPTION:\" + e);\n\t\t\t// e.printStackTrace();\n\t\t\tthrow e;\n\t\t} catch (UnrecoverableKeyException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tSystem.out.println(\"UnrecoverableKeyException EXCEPTION:\" + e);\n\t\t\t// e.printStackTrace();\n\t\t\tthrow e;\n\t\t} catch (KeyStoreException | CertificateException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t}\n\t\tmyKeyManager = (X509KeyManager) keymanager[0];\n\t}", "private synchronized PrivateKey getPrivateKey() throws Exception {\n if (privateKey == null) {\n KeyStore keyStore = loadKeyStore();\n privateKey = (PrivateKey)keyStore.getKey(aliasName, password.toCharArray());\n }\n\t\treturn privateKey;\n\t}", "public void saveKeystore(File meKeystoreFile) throws IOException {\n FileOutputStream output;\n\n output = new FileOutputStream(meKeystoreFile);\n\n keystore.serialize(output);\n output.close();\n }", "@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}", "public SSLConfig(@NonNull File jksFile, @NonNull String storePassword, @NonNull String keyPassword){\n this.sslCertificateType = JKS;\n this.jksFile = jksFile;\n this.storePassword = storePassword;\n this.keyPassword = keyPassword;\n }", "void onOk(SSLKeyStore store);", "void importPKCS12Certificate(InputStream is)\n {\n\tKeyStore myKeySto = null;\n\t// passord\n\tchar[] password = null;\n\t\n\ttry\n\t{\n\t myKeySto = KeyStore.getInstance(\"PKCS12\");\n\n\t // Pop up password dialog box\n Object dialogMsg = getMessage(\"dialog.password.text\");\n JPasswordField passwordField = new JPasswordField();\n\n Object[] msgs = new Object[2];\n msgs[0] = new JLabel(dialogMsg.toString());\n msgs[1] = passwordField;\n\n JButton okButton = new JButton(getMessage(\"dialog.password.okButton\"));\n JButton cancelButton = new JButton(getMessage(\"dialog.password.cancelButton\"));\n\n String title = getMessage(\"dialog.password.caption\");\n Object[] options = {okButton, cancelButton};\n int selectValue = DialogFactory.showOptionDialog(this, msgs, title, options, options[0]);\n\n\t // for security purpose, DO NOT put password into String. Reset password as soon as \n\t // possible.\n\t password = passwordField.getPassword();\n\n\t // User click OK button\n if (selectValue == 0)\n {\n\t // Load KeyStore based on the password\n\t myKeySto.load(is,password);\n\n\t // Get Alias list from KeyStore.\n\t Enumeration aliasList = myKeySto.aliases();\n\n\t while (aliasList.hasMoreElements())\n\t {\n\t\t\tX509Certificate cert = null;\n\n\t\t\t// Get Certificate based on the alias name\n\t\t\tString certAlias = (String)aliasList.nextElement();\n\t\t\tcert = (X509Certificate)myKeySto.getCertificate(certAlias);\n\n\t\t\t// Add to import list based on radio button selection\n\t\t\t\tif (getRadioPos() == mh.getMessage(\"SignedApplet_value\"))\n \t\t\t\t model.deactivateImpCertificate(cert);\n\t\t\t\telse if (getRadioPos() == mh.getMessage(\"SecureSite_value\"))\n \t\t\t\t model.deactivateImpHttpsCertificate(cert);\n\t }\n\t } // OK button\n\t}\n\tcatch(Throwable e)\n\t{\n\t // Show up Error dialog box if the user enter wrong password\n\t // Avoid to convert password array into String - security reason\n\t String uninitializedValue = \"uninitializedValue\";\n\t if (!compareCharArray(password, uninitializedValue.toCharArray()))\n\t {\n\t\t\tString errorMsg = getMessage(\"dialog.import.password.text\");\n\t\t\t\t\tString errorTitle = getMessage(\"dialog.import.error.caption\");\n\t \t\tDialogFactory.showExceptionDialog(this, e, errorMsg, errorTitle);\n\t }\n\t}\n\tfinally {\n\t\t// Reset password\n\t\tif(password != null) {\n\t\t\tjava.util.Arrays.fill(password, ' ');\n\t\t}\n\t}\n }", "public static void loadCryptoProviders() {\n }", "@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}", "public void validate(KeyStore keyStore, Certificate cert) throws CertificateException\n {\n if (cert != null && cert instanceof X509Certificate)\n {\n ((X509Certificate)cert).checkValidity();\n \n String certAlias = \"[none]\";\n try\n {\n certAlias = keyStore.getCertificateAlias((X509Certificate)cert);\n Certificate[] certChain = keyStore.getCertificateChain(certAlias);\n \n ArrayList<X509Certificate> certList = new ArrayList<X509Certificate>();\n for (Certificate item : certChain)\n {\n if (!(item instanceof X509Certificate))\n {\n throw new CertificateException(\"Invalid certificate type in chain\");\n }\n certList.add((X509Certificate)item);\n }\n \n if (certList.isEmpty())\n {\n throw new CertificateException(\"Invalid certificate chain\");\n \n }\n \n X509CertSelector certSelect = new X509CertSelector();\n certSelect.setCertificate(certList.get(0));\n \n // Configure certification path builder parameters\n PKIXBuilderParameters pbParams = new PKIXBuilderParameters(_trustStore, certSelect);\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(certList)));\n \n // Set static Certificate Revocation List\n if (_crls != null && !_crls.isEmpty())\n {\n pbParams.addCertStore(CertStore.getInstance(\"Collection\", new CollectionCertStoreParameters(_crls)));\n }\n \n // Enable revocation checking\n pbParams.setRevocationEnabled(true);\n \n // Set maximum certification path length\n pbParams.setMaxPathLength(_maxCertPathLength);\n \n // Build certification path\n CertPathBuilderResult buildResult = CertPathBuilder.getInstance(\"PKIX\").build(pbParams); \n \n // Validate certification path\n CertPathValidator.getInstance(\"PKIX\").validate(buildResult.getCertPath(),pbParams);\n }\n catch (Exception ex)\n {\n Log.debug(ex);\n throw new CertificateException(\"Unable to validate certificate for alias [\" +\n certAlias + \"]: \" + ex.getMessage());\n }\n } \n }", "public URL getTrustStore() {\n URL trustStore = null;\n if (trustStoreLocation != null) {\n try {\n trustStore = new URL(\"file:\" + trustStoreLocation);\n }\n catch (Exception e) {\n log.error(\"Truststore has a malformed name: \" + trustStoreLocation, e);\n }\n }\n return trustStore;\n }", "private KeyStore askForPin() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException {\n char newPin[] = PinDialog.getPIN(this.providerDesc);\n try {\n KeyStore ks = getKeyStore(newPin);\n pin = newPin;\n return ks;\n } catch (IOException e2) {\n e2.printStackTrace();\n if (e2.getCause() instanceof LoginException) {\n JOptionPane.showMessageDialog(null, \"Wrong PIN\", \"Cryptographic card\", JOptionPane.WARNING_MESSAGE);\n }\n throw e2;\n }\n }", "protected static void setKeyStoreAlias(String keyStoreAlias) {\n Program.keyStoreAlias = keyStoreAlias;\n }", "private void importKeyPair() {\n\t\t/*\n\t\t * Let the user choose a PKCS #12 file (keystore) containing a public\n\t\t * and private key pair to import\n\t\t */\n\t\tFile importFile = selectImportExportFile(\n\t\t\t\t\"PKCS #12 file to import from\", // title\n\t\t\t\tnew String[] { \".p12\", \".pfx\" }, // array of file extensions\n\t\t\t\t// for the file filter\n\t\t\t\t\"PKCS#12 Files (*.p12, *.pfx)\", // description of the filter\n\t\t\t\t\"Import\", // text for the file chooser's approve button\n\t\t\t\t\"keyPairDir\"); // preference string for saving the last chosen directory\n\n\t\tif (importFile == null)\n\t\t\treturn;\n\n\t\t// The PKCS #12 keystore is not a file\n\t\tif (!importFile.isFile()) {\n\t\t\tshowMessageDialog(this, \"Your selection is not a file\",\n\t\t\t\t\tALERT_TITLE, WARNING_MESSAGE);\n\t\t\treturn;\n\t\t}\n\n\t\t// Get the user to enter the password that was used to encrypt the\n\t\t// private key contained in the PKCS #12 file\n\t\tGetPasswordDialog getPasswordDialog = new GetPasswordDialog(this,\n\t\t\t\t\"Import key pair entry\", true,\n\t\t\t\t\"Enter the password that was used to encrypt the PKCS #12 file\");\n\t\tgetPasswordDialog.setLocationRelativeTo(this);\n\t\tgetPasswordDialog.setVisible(true);\n\n\t\tString pkcs12Password = getPasswordDialog.getPassword();\n\n\t\tif (pkcs12Password == null) // user cancelled\n\t\t\treturn;\n\t\telse if (pkcs12Password.isEmpty()) // empty password\n\t\t\t// FIXME: Maybe user did not have the password set for the private key???\n\t\t\treturn;\n\n\t\ttry {\n\t\t\t// Load the PKCS #12 keystore from the file\n\t\t\t// (this is using the BouncyCastle provider !!!)\n\t\t\tKeyStore pkcs12Keystore = credManager.loadPKCS12Keystore(importFile,\n\t\t\t\t\tpkcs12Password);\n\n\t\t\t/*\n\t\t\t * Display the import key pair dialog supplying all the private keys\n\t\t\t * stored in the PKCS #12 file (normally there will be only one\n\t\t\t * private key inside, but could be more as this is a keystore after\n\t\t\t * all).\n\t\t\t */\n\t\t\tNewKeyPairEntryDialog importKeyPairDialog = new NewKeyPairEntryDialog(\n\t\t\t\t\tthis, \"Credential Manager\", true, pkcs12Keystore, dnParser);\n\t\t\timportKeyPairDialog.setLocationRelativeTo(this);\n\t\t\timportKeyPairDialog.setVisible(true);\n\n\t\t\t// Get the private key and certificate chain of the key pair\n\t\t\tKey privateKey = importKeyPairDialog.getPrivateKey();\n\t\t\tCertificate[] certChain = importKeyPairDialog.getCertificateChain();\n\n\t\t\tif (privateKey == null || certChain == null)\n\t\t\t\t// User did not select a key pair for import or cancelled\n\t\t\t\treturn;\n\n\t\t\t/*\n\t\t\t * Check if a key pair entry with the same alias already exists in\n\t\t\t * the Keystore\n\t\t\t */\n\t\t\tif (credManager.hasKeyPair(privateKey, certChain)\n\t\t\t\t\t&& showConfirmDialog(this,\n\t\t\t\t\t\t\t\"The keystore already contains the key pair entry with the same private key.\\n\"\n\t\t\t\t\t\t\t\t\t+ \"Do you want to overwrite it?\",\n\t\t\t\t\t\t\tALERT_TITLE, YES_NO_OPTION) != YES_OPTION)\n\t\t\t\treturn;\n\n\t\t\t// Place the private key and certificate chain into the Keystore\n\t\t\tcredManager.addKeyPair(privateKey, certChain);\n\n\t\t\t// Display success message\n\t\t\tshowMessageDialog(this, \"Key pair import successful\", ALERT_TITLE,\n\t\t\t\t\tINFORMATION_MESSAGE);\n\t\t} catch (Exception ex) { // too many exceptions to catch separately\n\t\t\tString exMessage = \"Failed to import the key pair entry to the Keystore. \"\n\t\t\t\t\t+ ex.getMessage();\n\t\t\tlogger.error(exMessage, ex);\n\t\t\tshowMessageDialog(this, exMessage, ERROR_TITLE, ERROR_MESSAGE);\n\t\t}\n\t}", "@Override\n\tpublic PrivateKey readPrivateKey(String file, String alias, String password) {\n\t\tKeyStore ks;\n\t\ttry {\n\t\t\tks = KeyStore.getInstance(\"JKS\", \"SUN\");\n\t\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(file));\n\t\t\tks.load(in, password.toCharArray());\n\n\t\t\tif (ks.isKeyEntry(alias)) {\n\t\t\t\tPrivateKey pk = (PrivateKey) ks.getKey(alias, password.toCharArray());\n\t\t\t\treturn pk;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (KeyStoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchProviderException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (CertificateException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (UnrecoverableKeyException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}", "protected static String getKeyStoreAlias() {\n return keyStoreAlias;\n }", "private void loadCert(String certPath, long latestLastModified, \n Map newCertFileMap, Map newCertSubjectDNMap, \n String policyPath, long policyModified, \n Map newPolicyFileMap, Map newPolicyDNMap) {\n\n X509Certificate cert = null;\n \n if (this.certFileMap == null) {\n this.certFileMap = new HashMap();\n }\n\n if (this.policyFileMap == null) {\n this.policyFileMap = new HashMap();\n }\n\n TimestampEntry certEntry = \n (TimestampEntry)this.certFileMap.get(certPath);\n TimestampEntry policyEntry =\n (TimestampEntry)this.policyFileMap.get(policyPath);\n try {\n if (certEntry == null) {\n logger.debug(\"Loading \" + certPath + \" certificate.\");\n cert = CertUtil.loadCertificate(certPath);\n String caDN = cert.getSubjectDN().getName();\n certEntry = new TimestampEntry();\n certEntry.setValue(cert);\n certEntry.setLastModified(latestLastModified);\n certEntry.setDescription(caDN);\n this.changed = true;\n // load signing policy file\n logger.debug(\"Loading \" + policyPath + \" signing policy.\");\n policyEntry = getPolicyEntry(policyPath, policyModified, caDN);\n } else if (latestLastModified > certEntry.getLastModified()) {\n logger.debug(\"Reloading \" + certPath + \" certificate.\");\n cert = CertUtil.loadCertificate(certPath);\n String caDN = cert.getSubjectDN().getName();\n certEntry.setValue(cert);\n certEntry.setLastModified(latestLastModified);\n certEntry.setDescription(caDN);\n this.changed = true;\n if (policyModified > policyEntry.getLastModified()) {\n logger.debug(\"Reloading \" + policyPath \n + \" signing policy.\");\n policyEntry = getPolicyEntry(policyPath, policyModified, \n caDN);\n }\n } else {\n logger.debug(\"Certificate \" + certPath + \" is up-to-date.\");\n cert = (X509Certificate)certEntry.getValue();\n String caDN = cert.getSubjectDN().getName();\n if (policyModified > policyEntry.getLastModified()) {\n logger.debug(\"Reloading \" + policyPath \n + \" signing policy.\");\n policyEntry = getPolicyEntry(policyPath, policyModified, \n caDN);\n }\n }\n newCertFileMap.put(certPath, certEntry);\n newCertSubjectDNMap.put(certEntry.getDescription(), cert);\n newPolicyFileMap.put(policyPath, policyEntry);\n newPolicyDNMap.put(policyEntry.getDescription(), \n policyEntry.getValue());\n } catch (SigningPolicyParserException e) {\n logger.warn(\"Signing policy \" + policyPath + \" failed to load. \"\n + e.getMessage());\n logger.debug(\"Signing policy load error\", e);\n } catch (IOException e) {\n logger.warn(\"Certificate \" + certPath + \" failed to load.\" \n + e.getMessage());\n logger.debug(\"Certificate load error\", e);\n } catch (Exception e) {\n logger.warn(\"Certificate \" + certPath + \" or Signing policy \"\n + policyPath + \" failed to load. \" + e.getMessage());\n logger.debug(\"Certificate/Signing policy load error.\", e);\n }\n }", "private void loadProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Loading Properties from {}\", path.toString());\n try {\n FileInputStream fis = new FileInputStream(getSamplePropertiesPath().toFile());\n Properties properties = new Properties();\n properties.load(fis);\n\n String privateKey = properties.getProperty(PRIVATE_KEY);\n this.credentials = Credentials.create(privateKey);\n this.contract1Address = properties.getProperty(CONTRACT1_ADDRESS);\n this.contract2Address = properties.getProperty(CONTRACT2_ADDRESS);\n this.contract3Address = properties.getProperty(CONTRACT3_ADDRESS);\n this.contract4Address = properties.getProperty(CONTRACT4_ADDRESS);\n this.contract5Address = properties.getProperty(CONTRACT5_ADDRESS);\n this.contract6Address = properties.getProperty(CONTRACT6_ADDRESS);\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }", "public void setKeyStorePassword(String keyStorePassword) {\n this.keyStorePassword = keyStorePassword;\n }", "@Deprecated\n\tpublic KeyStore getKeyStore() {\n\t\treturn keystore;\n\t}", "private void load()\n {\n SharedPreferences sp = getActivity().getPreferences(Context.MODE_PRIVATE);\n if (sp.contains(\"passLength\") && passLenSB != null)\n passLenSB.setProgress(sp.getInt(\"passLength\", 0));\n\n if (sp.contains(\"minDigits\") && minDigSB != null)\n minDigSB.setProgress(sp.getInt(\"minDigits\", 0));\n\n for (int i=0; i<checkBoxes.size(); i++)\n {\n checkBoxes.get(i).setChecked(sp.getBoolean(\"chkbx\"+Integer.toString(i), false));\n if (checkBoxes.get(i).isChecked())\n runChkBxOption(i, checkBoxes.get(i), rootView, child); // this code makes app generate new pass each time\n\n }\n // this code will restore pass on rotation only\n if (savedInstanceState != null && savedInstanceState.containsKey(\"password\"))\n passTV.setText(colourCodePass(savedInstanceState.getString(\"password\")));\n }", "protected void loadKeys()\r\n {\r\n log.debug(\"{0}: Loading keys for {1}\", () -> logCacheName, () -> keyFile.toString());\r\n\r\n storageLock.writeLock().lock();\r\n\r\n try\r\n {\r\n // clear a key map to use.\r\n keyHash.clear();\r\n\r\n final HashMap<K, IndexedDiskElementDescriptor> keys = keyFile.readObject(\r\n new IndexedDiskElementDescriptor(0, (int) keyFile.length() - IndexedDisk.HEADER_SIZE_BYTES));\r\n\r\n if (keys != null)\r\n {\r\n log.debug(\"{0}: Found {1} in keys file.\", logCacheName, keys.size());\r\n\r\n keyHash.putAll(keys);\r\n\r\n log.info(\"{0}: Loaded keys from [{1}], key count: {2}; up to {3} will be available.\",\r\n () -> logCacheName, () -> fileName, keyHash::size, () -> maxKeySize);\r\n }\r\n\r\n if (log.isTraceEnabled())\r\n {\r\n dump(false);\r\n }\r\n }\r\n catch (final Exception e)\r\n {\r\n log.error(\"{0}: Problem loading keys for file {1}\", logCacheName, fileName, e);\r\n }\r\n finally\r\n {\r\n storageLock.writeLock().unlock();\r\n }\r\n }", "protected static String getKeyStorePassword() {\n Path userHomeDirectory = null;\n if (\"?\".equals(keyStorePassword)) {\n promptForKeystorePassword();\n } else if (keyStorePassword == null || keyStorePassword.isEmpty()) {\n // first try the password file\n try {\n userHomeDirectory = Paths.get(System.getProperty(\"user.home\")).toAbsolutePath();\n } catch (InvalidPathException e) {\n throw new BadSystemPropertyError(e);\n }\n File pwFile = new File(userHomeDirectory.toString(), Constants.PW_FILE_PATH_SEGMENT);\n if (pwFile.isFile()) {\n try {\n String rawPassword = readFileContents(pwFile);\n return EncodingUtils.decodeAndXor(rawPassword);\n } catch (FileNotFoundException | UnsupportedEncodingException e) {\n throw new IllegalArgumentException(\"Password file could not be read\");\n }\n } else {\n promptForKeystorePassword();\n }\n }\n return keyStorePassword;\n }", "public void load() {\n Boolean value = permanentStore.getBoolean(key);\n if (value != null) {\n set(value.booleanValue());\n log.info(\"Property \" + key + \" has the non-default value \" + value.booleanValue());\n } else {\n set(defaultValue);\n }\n }", "public static PrivateKey load3tierTestRootCAPrivateKey() {\n return loadPrivateKeyFromResourcePath(\"classpath:attestation/3tier/private/3tier-test-root-CA.der\");\n }", "public synchronized static void load()\n throws Exception\n { \n if (!isBootstrap) {\n String basedir = System.getProperty(JVM_OPT_BOOTSTRAP);\n load(basedir);\n SystemProperties.initializeProperties(\"com.iplanet.am.naming.url\",\n SystemProperties.getServerInstanceName() + \"/namingservice\");\n }\n }", "@Override\n\tpublic Path load(String keyName) {\n\t\treturn null;\n\t}", "public abstract T useTransportSecurity(File certChain, File privateKey);", "private void initialize() throws KeyChangeException {\n // Validating the xml to avoid null pointers\n if (KeyChangeDataUtils.validateXML()) {\n // Get config data from keyDataElement (keyChange.xml).\n KeyChangeData keyChangeData = KeyChangeDataUtils.getKeyChangeConfigData(getKeyChangeXmlDocument());\n ConfigData oldConfig = keyChangeData.getConfigDataMap().get(KeyChangeConstants.OLD_KEY_MAP_KEY);\n ConfigData newConfig = keyChangeData.getConfigDataMap().get(KeyChangeConstants.NEW_KEY_MAP_KEY);\n /*\n Set old config data. oldConfig can not be null because these data are taken from keyChange.xml and\n its validated through keyChange.xsd for null values.\n */\n oldKeyPath = oldConfig.getKeyPath();\n oldKeyPass = oldConfig.getKeyPass();\n oldKeyAlias = oldConfig.getKeyAlias();\n /*\n Set new config data. newConfig can not be null because these data are taken from keyChange.xml and\n its validated through keyChange.xsd for null values.\n */\n newKeyPath = newConfig.getKeyPath();\n newKeyPass = newConfig.getKeyPass();\n newKeyAlias = newConfig.getKeyAlias();\n } else {\n throw new KeyChangeException(\"keyChange.xml validation error when setting key store data. Please \"\n + \"check your configurations\");\n }\n }", "public static void createKeyStore(String filename,\n String password, String keyPassword, String alias,\n Key privateKey, Certificate cert)\n throws GeneralSecurityException, IOException {\n KeyStore ks = createEmptyKeyStore();\n ks.setKeyEntry(alias, privateKey, keyPassword.toCharArray(),\n new Certificate[]{cert});\n saveKeyStore(ks, filename, password);\n }", "public String getKeyStorePassword() {\n return keyStorePassword;\n }" ]
[ "0.72512084", "0.72370386", "0.69851303", "0.69717795", "0.67524946", "0.6715649", "0.66126513", "0.6514592", "0.6486059", "0.6442212", "0.63286734", "0.6302666", "0.62668544", "0.62573093", "0.62259907", "0.61479664", "0.6136774", "0.6119562", "0.609191", "0.60247535", "0.60145086", "0.5985399", "0.59566826", "0.59306526", "0.5916333", "0.5859519", "0.577917", "0.57735187", "0.57539964", "0.57459587", "0.5711636", "0.5707687", "0.57049567", "0.5678492", "0.5670728", "0.56478333", "0.56274366", "0.56257766", "0.56140953", "0.5571425", "0.5570866", "0.5563758", "0.556288", "0.5562311", "0.55520594", "0.5526345", "0.55180734", "0.55089945", "0.54622704", "0.5453543", "0.5448423", "0.54059756", "0.53936857", "0.53843904", "0.5362953", "0.53400755", "0.5320785", "0.53191006", "0.5316452", "0.5312589", "0.5300568", "0.52702516", "0.5268779", "0.52665746", "0.52638185", "0.5225527", "0.5208378", "0.5206268", "0.5201489", "0.51897365", "0.51613986", "0.5160909", "0.51567966", "0.51554483", "0.5155115", "0.51537913", "0.51415426", "0.5137796", "0.5126091", "0.51197964", "0.507978", "0.5067625", "0.5058072", "0.5042984", "0.5038666", "0.50355285", "0.50352824", "0.5024603", "0.50240725", "0.50053847", "0.5001815", "0.49997938", "0.49978966", "0.49857974", "0.49843886", "0.49597755", "0.49455482", "0.49353597", "0.49345794", "0.4925567" ]
0.74967855
0
This Private Method is responsible to save all the configuration data(IV,SemetricKey,Signature) to the configuration file That will be deliverd to the reciver
private void savingToConfigurationsFile(FileOutputStream configurationFileOutputStream, byte[] iv, byte[] encryptedSymmetricKey, byte[] mySignature) throws IOException { configurationFileOutputStream = new FileOutputStream(localWorkingDirectoryPath + "\\Config.txt"); // Saving the IV to the configuration file configurationFileOutputStream.write(iv); // Saving the encrypted symmetric key to the configuration file configurationFileOutputStream.write(encryptedSymmetricKey); // Saving the my signature to the configuration file configurationFileOutputStream.write(mySignature); // Closing the output stream configurationFileOutputStream.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void saveConfiguration() {\n }", "public void encrypt() throws Exception {\n\t\tLogWriter = new BufferedWriter(new FileWriter(localWorkingDirectoryPath + \"\\\\Log_Encryption.txt\"));\n\t\tFileOutputStream configurationFileOutputStream = null;\n\n\t\t// Loading the store with the giving arguments\n\t\twriteToLog(\"Step 1: Loading the store with the giving arguments\");\n\t\tloadStore();\n\n\t\t// Getting the receiver's public-key\n\t\twriteToLog(\"Step 2: Getting the receiver's public-key\");\n\t\tCertificate receiverCert = keyStore.getCertificate(receiverSelfSignedCertAlias);\n\t\tif (receiverCert == null) {\n\t\t\twriteToLog(\"The entered certificate alias: \\\"\" + receiverSelfSignedCertAlias\n\t\t\t\t\t+ \"\\\" dose not exist in the keys store.\");\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"The entered certificate alias: \\\"\" + receiverSelfSignedCertAlias\n\t\t\t\t\t+ \"\\\" dose not exist in the keys store.\");\n\t\t}\n\t\tPublicKey receiverPublicKey = receiverCert.getPublicKey();\n\n\t\t// Getting my private key in order to generate a signature\n\t\twriteToLog(\"Step 3: Getting the encryptor's private-key\");\n\t\tPrivateKey myPrivateKey = getMyPrivateKey();\n\t\t\n\t\t// Generating a symmetric key\n\t\twriteToLog(\"Step 4: Generating a symmetric key\");\n\t\tKeyGenerator kg = KeyGenerator.getInstance(\"AES\");\n\t\tSecretKey semetricKey = kg.generateKey();\n\n\t\t// Generating a random IV\n\t\twriteToLog(\"Step 5: Generating a random IV\");\n\t\tbyte[] iv = generateRandomIV();\n\n\t\t// Initializing the cipher\n\t\twriteToLog(\"Step 6: Initilatzing the cipher Object\");\n\t\ttry {\n\t\t\tmyCipher = createCipher();\n\t\t\tmyCipher.init(Cipher.ENCRYPT_MODE, semetricKey, new IvParameterSpec(iv));\n\t\t}catch(Exception e) {\n\t\t\twriteToLog(\"Error While tring to Initializing the cipher with the giving arguments: \" + e.getMessage());\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"Error: While tring to Initializing the cipher with the giving arguments\",e);\n\t\t}\n\t\t\n\n\t\t// Initializing the signature with my private-key\n\t\twriteToLog(\"Step 7: Initilatzing the signature Object with the encryptor's private-key\");\n\t\tSignature dataSigner = Signature.getInstance(\"SHA256withRSA\");\n\t\tdataSigner.initSign(myPrivateKey);\n\n\t\t// Encrypting\n\t\twriteToLog(\"Step 8: Encrypting... \");\n\t\tFile fileToEncrrypt = new File(fileToEncryptPath);\n\t\tencryptingData(fileToEncrrypt, dataSigner);\n\n\t\t// Signing on the encrypted data\n\t\twriteToLog(\"Step 9: Signing on the encrypted data \");\n\t\tbyte[] mySignature = dataSigner.sign();\n\n\t\t// Encrypt the symmetric key with the public of the receiver\n\t\twriteToLog(\"Step 10: Encrypt the symmetric key with the public of the receiver \");\n\t\tbyte[] encryptedSymmetricKey = encryptSymmetricKey(receiverPublicKey, semetricKey);\n\n\t\t// Saving the IV, Encrypted Symmetric-Key and Signature to the configurations file\n\t\twriteToLog(\"Step 11: Saving the IV, Encrypted Semetric-Key and Signature to the configurations file \");\n\t\tsavingToConfigurationsFile(configurationFileOutputStream, iv, encryptedSymmetricKey, mySignature);\n\n\t\tLogWriter.write(\"Encryption completed, No Errors Were Found\");\n\t\tLogWriter.close();\n\t}", "private void setAndWriteFiles()\n\t{\n\t\tSensorConfiguration config = new SensorConfiguration();\n\t\tString versionMajor = ConfigurationInterface_v1_0.VERSION.substring(0,\n\t\t\t\tConfigurationInterface_v1_0.VERSION.indexOf('.'));\n\t\tString versionMinor = ConfigurationInterface_v1_0.VERSION\n\t\t\t\t.substring(ConfigurationInterface_v1_0.VERSION.indexOf('.') + 1);\n\t\tconfig.setConfigurationInterfaceVersion(versionMajor, versionMinor);\n\n\t\tStartModes startModes = new StartModes();\n\t\t// set startMode for sensorConfiguration\n\t\tfor (StartMode element : startModes.getStartModeList())\n\t\t{\n\t\t\tif (element.getName().equals(\"DEFINED_TIME\"))\n\t\t\t{\n\t\t\t\tconfig.setStartMode(element);\n\t\t\t}\n\t\t}\n\n\t\tConfigurationSets configSets = new ConfigurationSets();\n\t\t// set configurationSet for sensorConfiguration\n\t\tfor (ConfigurationSet element : configSets.getConfigSetList())\n\t\t{\n\t\t\tif (element.getName().equals(\"mesana\"))\n\t\t\t{\n\n\t\t\t\tconfig.setConfigurationSet(element);\n\t\t\t}\n\t\t}\n\n\t\tif (config.getStartMode().getName().equals(\"DEFINED_TIME\"))\n\t\t{\n\n\t\t\tCalendar calendar = Calendar.getInstance();\n\t\t\tcalendar.set(Calendar.DAY_OF_MONTH, 10);\n\t\t\tcalendar.set(Calendar.HOUR_OF_DAY, 5);\n\t\t\tcalendar.set(Calendar.MINUTE, 11);\n\t\t\tDate date = calendar.getTime();\n\t\t\tconfig.setRecordingStartTime(date);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tconfig.setRecordingStartTime(null);\n\t\t}\n\t\t\n\t\tconfig.setRecordingDuration(12000);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnectionManager.getInstance().currentSensor(0).setSensorConfiguration(config);\n\t\t\t\n\t\t\tConnectionManager.getInstance().currentSensor(0).writeConfigFile();\n\t\t\t\n\t\t\t// write Encrypted data to sensor\n\t\t\tConnectionManager.getInstance().currentSensor(0).writeEncryptedParameters(\"123456789abcd12\");\n\t\t\t\n\t\t\tint index = customerList.getSelectionIndex();\n\t\t\tif (index >= 0 && index <= mCollect.getList().size())\n\t\t\t{\n\t\t\t\tString linkId = mCollect.getList().get(index).getLinkId();\n\t\t\t\tconfig.addParameter(\"LinkId\", linkId);\n\t\t\t}\n\t\t\t// write custom data to additional file in sensor\n\t\t\tConnectionManager.getInstance().currentSensor(0).writeCustomFile();\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\t}", "public void save() {\n try {\n ConfigurationProvider.getProvider(YamlConfiguration.class).save(this.configuration, this.getConfigurationFile());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void storeProperties() {\n Path path = getSamplePropertiesPath();\n LOG.info(\"Storing Properties to {}\", path.toString());\n try {\n final FileOutputStream fos = new FileOutputStream(path.toFile());\n final Properties properties = new Properties();\n String privateKey = this.credentials.getEcKeyPair().getPrivateKey().toString(16);\n properties.setProperty(PRIVATE_KEY, privateKey);\n properties.setProperty(CONTRACT1_ADDRESS, this.contract1Address);\n properties.setProperty(CONTRACT2_ADDRESS, this.contract2Address);\n properties.setProperty(CONTRACT3_ADDRESS, this.contract3Address);\n properties.setProperty(CONTRACT4_ADDRESS, this.contract4Address);\n properties.setProperty(CONTRACT5_ADDRESS, this.contract5Address);\n properties.setProperty(CONTRACT6_ADDRESS, this.contract6Address);\n properties.store(fos, \"Sample code properties file\");\n\n } catch (IOException ioEx) {\n // By the time we have reached the loadProperties method, we should be sure the file\n // exists. As such, just throw an exception to stop.\n throw new RuntimeException(ioEx);\n }\n }", "public void saveEAPConfig(String userName, String passString, String eapMethod, String phase2AuthMethod) {\n\t\t/******************************** Configuration Strings ****************************************************/\n\t\tString ENTERPRISE_EAP = \"TTLS\";//Should be one of - TLS/TTLS/PEAP/PWD/SIM/AKA/FAST/LEAP\n\t\tfinal String ENTERPRISE_CLIENT_CERT = \"keystore://USRCERT_CertificateName\";\n\t\tfinal String ENTERPRISE_PRIV_KEY = \"keystore://USRPKEY_CertificateName\";\n\t\t// CertificateName = Name given to the certificate while installing it\n\n\t\t/* Optional Params- My wireless Doesn't use these */\n\t\tString ENTERPRISE_PHASE2 = \"PAP\";//Should be one of - PAP/MSCHAP/MSCHAPV2/GTC\n\t\tfinal String ENTERPRISE_ANON_IDENT = \"ABC\";\n\t\tfinal String ENTERPRISE_CA_CERT = \"\";\n\t\t/******************************** Configuration Strings ****************************************************/\n\n\t\tif(eapMethod!= null && !eapMethod.equals(\"\")){\n\t\t\tENTERPRISE_EAP = eapMethod;\n\t\t}\n\t\t\n\t\tif(phase2AuthMethod!= null && !phase2AuthMethod.equals(\"\")){\n\t\t\tENTERPRISE_PHASE2 = phase2AuthMethod;\n\t\t}\n\t\t/* Create a WifiConfig */\n\t\tWifiConfiguration selectedConfig = new WifiConfiguration();\n\n\t\t/* AP Name */\n\t\tselectedConfig.SSID = \"\\\"SSID_Name\\\"\";\n\n\t\t/* Priority */\n\t\tselectedConfig.priority = 40;\n\n\t\t/* Enable Hidden SSID */\n\t\tselectedConfig.hiddenSSID = true;\n\n\t\t/* Key Mgmnt */\n\t\tselectedConfig.allowedKeyManagement.clear();\n\t\tselectedConfig.allowedKeyManagement\n\t\t\t\t.set(WifiConfiguration.KeyMgmt.IEEE8021X);\n\t\tselectedConfig.allowedKeyManagement\n\t\t\t\t.set(WifiConfiguration.KeyMgmt.WPA_EAP);\n\n\t\t/* Group Ciphers */\n\t\tselectedConfig.allowedGroupCiphers.clear();\n\t\tselectedConfig.allowedGroupCiphers\n\t\t\t\t.set(WifiConfiguration.GroupCipher.CCMP);\n\t\tselectedConfig.allowedGroupCiphers\n\t\t\t\t.set(WifiConfiguration.GroupCipher.TKIP);\n\t\tselectedConfig.allowedGroupCiphers\n\t\t\t\t.set(WifiConfiguration.GroupCipher.WEP104);\n\t\tselectedConfig.allowedGroupCiphers\n\t\t\t\t.set(WifiConfiguration.GroupCipher.WEP40);\n\n\t\t/* Pairwise ciphers */\n\t\tselectedConfig.allowedPairwiseCiphers.clear();\n\t\tselectedConfig.allowedPairwiseCiphers\n\t\t\t\t.set(WifiConfiguration.PairwiseCipher.CCMP);\n\t\tselectedConfig.allowedPairwiseCiphers\n\t\t\t\t.set(WifiConfiguration.PairwiseCipher.TKIP);\n\n\t\t/* Protocols */\n\t\tselectedConfig.allowedProtocols.clear();\n\t\tselectedConfig.allowedProtocols.set(WifiConfiguration.Protocol.RSN);\n\t\tselectedConfig.allowedProtocols.set(WifiConfiguration.Protocol.WPA);\n\n\t\t// Enterprise Settings\n\t\t// Reflection magic here too, need access to non-public APIs\n\t\ttry {\n\t\t\t// Let the magic start\n\t\t\tClass[] wcClasses = WifiConfiguration.class.getClasses();\n\t\t\t// null for overzealous java compiler\n\t\t\tClass wcEnterpriseField = null;\n\n\t\t\tfor (Class wcClass : wcClasses)\n\t\t\t\tif (wcClass.getName().equals(INT_ENTERPRISEFIELD_NAME)) {\n\t\t\t\t\twcEnterpriseField = wcClass;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tboolean noEnterpriseFieldType = false;\n\t\t\tif (wcEnterpriseField == null)\n\t\t\t\tnoEnterpriseFieldType = true; // Cupcake/Donut access enterprise\n\t\t\t\t\t\t\t\t\t\t\t\t// settings directly\n\n\t\t\tField wcefAnonymousId = null, wcefCaCert = null, wcefClientCert = null, wcefEap = null, wcefIdentity = null, wcefPassword = null, wcefPhase2 = null, wcefPrivateKey = null;\n\t\t\tField[] wcefFields = WifiConfiguration.class.getFields();\n\t\t\t// Dispatching Field vars\n\t\t\tfor (Field wcefField : wcefFields) {\n\t\t\t\tif (wcefField.getName().equals(INT_ANONYMOUS_IDENTITY))\n\t\t\t\t\twcefAnonymousId = wcefField;\n\t\t\t\telse if (wcefField.getName().equals(INT_CA_CERT))\n\t\t\t\t\twcefCaCert = wcefField;\n\t\t\t\telse if (wcefField.getName().equals(INT_CLIENT_CERT))\n\t\t\t\t\twcefClientCert = wcefField;\n\t\t\t\telse if (wcefField.getName().equals(INT_EAP))\n\t\t\t\t\twcefEap = wcefField;\n\t\t\t\telse if (wcefField.getName().equals(INT_IDENTITY))\n\t\t\t\t\twcefIdentity = wcefField;\n\t\t\t\telse if (wcefField.getName().equals(INT_PASSWORD))\n\t\t\t\t\twcefPassword = wcefField;\n\t\t\t\telse if (wcefField.getName().equals(INT_PHASE2))\n\t\t\t\t\twcefPhase2 = wcefField;\n\t\t\t\telse if (wcefField.getName().equals(INT_PRIVATE_KEY))\n\t\t\t\t\twcefPrivateKey = wcefField;\n\t\t\t}\n\n\t\t\tMethod wcefSetValue = null;\n\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\tfor (Method m : wcEnterpriseField.getMethods())\n\t\t\t\t\t// System.out.println(m.getName());\n\t\t\t\t\tif (m.getName().trim().equals(\"setValue\"))\n\t\t\t\t\t\twcefSetValue = m;\n\t\t\t}\n\n\t\t\t/* EAP Method */\n\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\twcefSetValue\n\t\t\t\t\t\t.invoke(wcefEap.get(selectedConfig), ENTERPRISE_EAP);\n\t\t\t} else {\n\t\t\t\twcefEap.set(selectedConfig, ENTERPRISE_EAP);\n\t\t\t}\n\t\t\t/* EAP Phase 2 Authentication */\n\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\twcefSetValue.invoke(wcefPhase2.get(selectedConfig),\n\t\t\t\t\t\tENTERPRISE_PHASE2);\n\t\t\t} else {\n\t\t\t\twcefPhase2.set(selectedConfig, ENTERPRISE_PHASE2);\n\t\t\t}\n\t\t\t/* EAP Anonymous Identity */\n\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\twcefSetValue.invoke(wcefAnonymousId.get(selectedConfig),\n\t\t\t\t\t\tENTERPRISE_ANON_IDENT);\n\t\t\t} else {\n\t\t\t\twcefAnonymousId.set(selectedConfig, ENTERPRISE_ANON_IDENT);\n\t\t\t}\n\t\t\t/* EAP CA Certificate */\n\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\twcefSetValue.invoke(wcefCaCert.get(selectedConfig),\n\t\t\t\t\t\tENTERPRISE_CA_CERT);\n\t\t\t} else {\n\t\t\t\twcefCaCert.set(selectedConfig, ENTERPRISE_CA_CERT);\n\t\t\t}\n\t\t\t/* EAP Private key */\n\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\twcefSetValue.invoke(wcefPrivateKey.get(selectedConfig),\n\t\t\t\t\t\tENTERPRISE_PRIV_KEY);\n\t\t\t} else {\n\t\t\t\twcefPrivateKey.set(selectedConfig, ENTERPRISE_PRIV_KEY);\n\t\t\t}\n\t\t\t/* EAP Identity */\n\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t wcefSetValue.invoke(wcefIdentity.get(selectedConfig), userName);\n\t\t\t} else {\n\t\t\t\twcefIdentity.set(selectedConfig, userName);\n\t\t\t}\n\t\t\t/* EAP Password */\n\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\twcefSetValue.invoke(wcefPassword.get(selectedConfig),\n\t\t\t\t\t\tpassString);\n\t\t\t} else {\n\t\t\t\twcefPassword.set(selectedConfig, passString);\n\t\t\t}\n\t\t\t/* EAp Client certificate */\n\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\twcefSetValue.invoke(wcefClientCert.get(selectedConfig),\n\t\t\t\t\t\tENTERPRISE_CLIENT_CERT);\n\t\t\t} else {\n\t\t\t\twcefClientCert.set(selectedConfig, ENTERPRISE_CLIENT_CERT);\n\t\t\t}\n\t\t\t// Adhoc for CM6\n\t\t\t// if non-CM6 fails gracefully thanks to nested try-catch\n\n\t\t\ttry {\n\t\t\t\tField wcAdhoc = WifiConfiguration.class.getField(\"adhocSSID\");\n\t\t\t\tField wcAdhocFreq = WifiConfiguration.class\n\t\t\t\t\t\t.getField(\"frequency\");\n\t\t\t\t// wcAdhoc.setBoolean(selectedConfig,\n\t\t\t\t// prefs.getBoolean(PREF_ADHOC,\n\t\t\t\t// false));\n\t\t\t\twcAdhoc.setBoolean(selectedConfig, false);\n\t\t\t\tint freq = 2462; // default to channel 11\n\t\t\t\t// int freq =\n\t\t\t\t// Integer.parseInt(prefs.getString(PREF_ADHOC_FREQUENCY,\n\t\t\t\t// \"2462\")); // default to channel 11\n\t\t\t\t// System.err.println(freq);\n\t\t\t\twcAdhocFreq.setInt(selectedConfig, freq);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t// FIXME As above, what should I do here?\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tWifiManager wifiManag = (WifiManager) this.context\n\t\t\t\t.getSystemService(Context.WIFI_SERVICE);\n\t\tboolean res1 = wifiManag.setWifiEnabled(true);\n\t\tint res = wifiManag.addNetwork(selectedConfig);\n\t\tLog.d(\"WifiPreference\", \"add Network returned \" + res);\n\t\tboolean b = wifiManag.enableNetwork(selectedConfig.networkId, false);\n\t\tLog.d(\"WifiPreference\", \"enableNetwork returned \" + b);\n\t\tboolean c = wifiManag.saveConfiguration();\n\t\tLog.d(\"WifiPreference\", \"Save configuration returned \" + c);\n\t\tboolean d = wifiManag.enableNetwork(res, true);\n\t\tLog.d(\"WifiPreference\", \"enableNetwork returned \" + d);\n\t}", "void store() {\n UserPreferences.setLogFileCount(Integer.parseInt(logFileCount.getText()));\n if (!agencyLogoPathField.getText().isEmpty()) {\n File file = new File(agencyLogoPathField.getText());\n if (file.exists()) {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, agencyLogoPathField.getText());\n }\n } else {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, \"\");\n }\n UserPreferences.setMaxSolrVMSize((int)solrMaxHeapSpinner.getValue());\n if (memField.isEnabled()) { //if the field could of been changed we need to try and save it\n try {\n writeEtcConfFile();\n } catch (IOException ex) {\n logger.log(Level.WARNING, \"Unable to save config file to \" + PlatformUtil.getUserDirectory() + \"\\\\\" + ETC_FOLDER_NAME, ex);\n }\n }\n }", "public void saveConfig () {\n if (fileConfiguration == null || config == null) {\n \n if (debug) {\n log.info(\"Can't save config - null\");\n }\n \n return;\n } else {\n try {\n getConfig().save(config);\n } catch (IOException e) {\n log.severe(\"Something happened while saving \" + configName);\n }\n if (debug) {\n log.info(\"Saved \" + configName + \" successfully.\");\n }\n }\n }", "public void save() {\n\t\tif (fileConfiguration == null || configFile == null)\n\t\t\treturn;\n\n\t\ttry {\n\t\t\tgetConfig().save(configFile);\n\t\t} catch (final IOException e) {\n\t\t\tplugin.getLogger().severe(String.format(\"[%s] Could not save config to %s : %s\", plugin.getName(), configFile, e));\n\t\t}\n\t}", "public void saveConnectionConfiguration(){\n\t\tProperties props = new Properties();\n\t\tif (connectionconfig!=null){\n\t\t\tprops.setProperty(\"server\", connectionconfig.getServer());\n\t\t\tprops.setProperty(\"user\", connectionconfig.getUser());\n\t\t\tprops.setProperty(\"passwd\", connectionconfig.getPasswd());\n\t\t}\n\t\ttry {\n\t\t\tFileOutputStream propOutFile = new FileOutputStream(getConnConfigFile());\n\t\t\ttry {\n\t\t\t\tprops.store(propOutFile, \"Jabber connection parameters\");\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e2) {\n\n\t\t\te2.printStackTrace();\n\t\t}\n\t}", "private synchronized void storeAppSettings() {\n\t \n\t\n \tif(_appSettings != null){\t\n \t\tAppLogger.debug2(\"AppFrame.storeAppSettings saving.\");\n\n \t\ttry {\t \n \t\t\tFileOutputStream oFile = new FileOutputStream(_configFile);\n\t\t\tOutputStream setupOutput = new DataOutputStream(oFile);\t\t \t\t\t\t\n\t\t\t_appSettings.store(setupOutput, \"\");\t\t\n \t\t}catch(Exception oEx){\n \t\tAppLogger.error(oEx);\n \t\t}\t\t \t\t\t\t\t\t\n\t}\t\t\t\t \t\n }", "public void save() {\n if (worldOreConfig == null) {\n return;\n }\n\n final WorldOreConfig worldOreConfig;\n\n if (!(this.worldOreConfig instanceof ConfigurationSerializable)) {\n worldOreConfig = new WorldOreConfigYamlImpl(this.worldOreConfig.getName(), this.worldOreConfig.getConfigType(), this.worldOreConfig.getOreSettings(), this.worldOreConfig.getBiomeOreSettings());\n } else {\n worldOreConfig = this.worldOreConfig;\n }\n\n final Config config = new Config(file);\n\n config.set(\"value\", worldOreConfig);\n\n try {\n config.options().header(\"This file is machine generated, please use the in game commands and gui to change values. \\nModifying this file per hand on your own risk.\").copyHeader(true);\n config.save(file);\n } catch (final IOException e) {\n throw new RuntimeException(\"Unexpected error while saving WorldOreConfig \" + worldOreConfig.getName() + \" to disk!\", e);\n }\n }", "public void writeToConfigFile() {\n if(properties == null) {\n return;\n }\n\n properties.put(\"MAN-LATITUDE\", String.valueOf(Location.getMan_latitude()));\n properties.put(\"MAN-LONGITUDE\", String.valueOf(Location.getMan_longitude()));\n properties.put(\"CURRENT-DESTINATION-NAME\", currentDestinationName);\n properties.put(\"CURRENT-DESTINATION-ADDRESS\", currentDestination.getCSVAddress());\n properties.put(\"EVENT-START-TIME\", ClockDriver.dfFull.format(Event.globalEventStartTime));\n double[] coefficients = Location.getAdjustmentCoefficients();\n String adjustmentCoefficients = String.valueOf(coefficients[0]) + ',' +\n String.valueOf(coefficients[1]) + ',' + String.valueOf(coefficients[2]) + ',' +\n String.valueOf(coefficients[3]);\n properties.put(\"ADJUSTMENT-COEFFICIENTS\", adjustmentCoefficients);\n StringBuilder blockStringBuilder = new StringBuilder();\n for(Object[] block : Location.getBlockDistances()) {\n if(block.length == 2) {\n blockStringBuilder.append(block[0]);\n blockStringBuilder.append(',');\n blockStringBuilder.append(block[1]);\n blockStringBuilder.append(';');\n }\n }\n properties.put(\"BLOCK-DISTANCES\", blockStringBuilder.toString());\n\n try {\n properties.store(new FileOutputStream(configPath), \"\");\n } catch(IOException e) {\n logger.warning(this.getClass(),\n \"IOException while writing to config file \\'\" + configPath + \"\\': \" + e.getMessage());\n }\n }", "public void writeKeysToFile(){\n if(d == null){\n calculateKeypair();\n }\n FileHandler fh = new FileHandler();\n fh.writeFile(sbPrivate.toString(), \"sk.txt\");\n fh.writeFile(sbPublic.toString(), \"pk.txt\");\n }", "public void saveFiBcoinPayconfig(FiBcoinPayconfig fiBcoinPayconfig);", "public void save() throws FileNotFoundException, IOException\n {\n settings.store(new FileOutputStream(FILE), \"N3TPD Config File\");\n }", "public void SaveKey(byte[] iv,String FileName) throws FileNotFoundException, IOException {\n\t\t\t\n\t\t\ttry (FileOutputStream out = new FileOutputStream(FileName)) {\n\t\t\t try {\n\t\t\t\t\tout.write(iv);\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}\n\t\t}", "public static void saveGameConfiguration() {\n exportJsonFile(new File(FileUtils.getRootFile(), Constant.CONFIG_FILE_NAME));\n }", "public void writeToStorage() throws Exception {\n TaggingDeviceRestTest.ensureDeviceExists(eKey);\n String baseUrl = REST_URL + \"/core/device\";\n TaggingDeviceRestTest\n .putSecurityIPs(baseUrl,\n eKey,\n Collections.singletonList(IPv4.fromIPv4Address(ip)));\n }", "private void saveConfiguration() {\r\n\tnew File(PROPERTIES_FILE).getParentFile().mkdirs();\r\n\tProperties props = new Properties();\r\n\ttry {\r\n\t props.setProperty(KEY_LAST_SOURCE_DIR, lastSourceDir);\r\n\t props.setProperty(KEY_LAST_TARGET_DIR, lastTargetDir);\r\n\t logger.debug(\"Speichere \" + props + \" nach \" + PROPERTIES_FILE);\r\n\t FileOutputStream stream = new FileOutputStream(PROPERTIES_FILE);\r\n\r\n\t props.store(stream, \"Do not change!\");\r\n\t stream.close();\r\n\t} catch (IOException e) {\r\n\t logger.error(\"Konfiguration konnte nicht gespeichert werden!\", e);\r\n\t}\r\n }", "public void save() { \n /*\n * Iterate over registry to pull box values\n * Creating new IOLoader for instance \n */\n for(UUID id : giftRegistry.keySet()) {\n GiftBox box = giftRegistry.get(id);\n\n String sId = id.toString();\n IOLoader<SecretSanta> config = new IOLoader<SecretSanta>(SecretSanta._this(), sId + \".yml\", \"Gifts\");\n\n FileConfiguration fCon = config.getCustomConfig();\n fCon.createSection(\"SecretSanta\");\n fCon.set(\"SecretSanta\", box.getConfig());\n\n try{\n fCon.save(config.getFile());\n } catch(IOException ex) {\n SecretSanta._this().logSevere(\"[GiftManager] Failed to save: \" + sId + \".yml\");\n continue;\n }\n }\n //SecretSanta._this().logDebug(\"[GiftManager] Gift Registry save successful.\");\n\n IOLoader<SecretSanta> pairedConfig = new IOLoader<SecretSanta>(SecretSanta._this(), \"PairedRegistry.yml\", \"Data\");\n FileConfiguration fPaired = pairedConfig.getCustomConfig();\n fPaired.createSection(\"paired\");\n fPaired.set(\"paired\", savePairs());\n\n try{\n fPaired.save(pairedConfig.getFile());\n //SecretSanta._this().logDebug(\"[GiftManager] PairedRegistry.yml save successful.\");\n } catch(IOException ex) {\n SecretSanta._this().logSevere(\"[GiftManager] Failed to save: PairedRegistry.yml\");\n }\n\n IOLoader<SecretSanta> playerConfig = new IOLoader<SecretSanta>(SecretSanta._this(), \"PlayerRegistry.yml\", \"Data\");\n FileConfiguration fPlayer = playerConfig.getCustomConfig();\n fPlayer.createSection(\"registered\");\n fPlayer.set(\"registered\", savePlayers());\n\n try{\n fPlayer.save(playerConfig.getFile());\n //SecretSanta._this().logDebug(\"[GiftManager] PlayerRegistry.yml save successful.\");\n } catch(IOException ex) {\n SecretSanta._this().logSevere(\"[GiftManager] Failed to save: PlayerRegistry.yml\");\n }\n\n IOLoader<SecretSanta> givenConfig = new IOLoader<SecretSanta>(SecretSanta._this(), \"GivenEmptyRegistry.yml\", \"Data\");\n FileConfiguration fGiven = givenConfig.getCustomConfig();\n fGiven.createSection(\"given\");\n fGiven.set(\"given\", saveGivens());\n\n try{\n fGiven.save(givenConfig.getFile());\n } catch(IOException ex) {\n SecretSanta._this().logSevere(\"[GiftManager] Failed to save: GivenEmptyRegistry.yml\");\n }\n\n SecretSanta._this().logDebug(\"[GiftManager] Saving complete.\");\n }", "public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }", "public synchronized static void writeConfiguration(PhotoConfiguration config) throws IOException {\r\n\t\t\r\n\t\tlog.info(\"Updating config\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tFile internalConfigFile = getInternalConfigurationFile(config.pathToApplication);\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tPropertiesConfiguration configurationFile = new PropertiesConfiguration(internalConfigFile);\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.PATH_TO_IMAGES_KEY , config.getPathToImages() );\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.PHOTO_FILE_FACTORY_CLASS_NAME_KEY , config.getPhotoFactoryClass() );\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.PHOTO_USER_FACTORY_CLASS_NAME_KEY , config.getPhotoUserFactoryClass() );\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.JDBC_DRIVER_KEY , config.getJDBCDriverName() );\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.JDBC_CONNECTION_URL_KEY , config.getJDBCConnectionUrl() );\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.DATABASE_LOGIN_KEY , config.getJDBCLogin() );\r\n\t\t\tconfigurationFile.setProperty( PhotoConfigurationConstants.DATABASE_PASSWORD_KEY , config.getJDBCPassword() );\r\n\t\t\tconfigurationFile.save();\r\n\t\t\t\r\n\t\t\tFile configFile = getConfigurationFile(config);\r\n\t\t\tconfigurationFile = new PropertiesConfiguration(configFile);\r\n\t\t\tif ( !configFile.exists()) {\r\n\t\t\t\tlog.info(\"Properties file not found; creating\"); //$NON-NLS-1$\r\n\t\t\t} \r\n\t \r\n\t configurationFile.setProperty( PhotoConfigurationConstants.DEFAULT_THEME_KEY, config.getDefaultTheme());\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.DEFAULT_COLUMNS_KEY, config.getDefaultColumns());\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.DEFAULT_GROUP_KEY, config.getDefaultGroup()); \r\n\t configurationFile.setProperty( PhotoConfigurationConstants.USER_TIMEOUT_KEY, config.getUserTimeout());\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.SUPPORTED_LOCALES_KEY, config.getSupportedLocales()); \r\n\t configurationFile.setProperty( PhotoConfigurationConstants.IMAGE_TIMEOUT_KEY, config.getImageTimeout());\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.SMTP_SERVER_KEY, config.getSMTPServer());\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.ADMINISTRATOR_EMAIL_NAME_KEY, config.getAdminEMailName());\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.ADMINISTRATOR_EMAIL_KEY, config.getAdminEMailAdress());\r\n\t configurationFile.setProperty( PhotoConfigurationConstants.SECURITY_MODE_KEY, config.isSecurityMode());\r\n\t configurationFile.save();\r\n\t \r\n\t\t} catch (ConfigurationException e) {\r\n\t\t\tthrow new IOException(PhotoConstants.CONFIG_IO_ERROR);\r\n\t\t}\r\n\t}", "public static void saveSettings() {\n\n Writer output = null;\n try {\n output = new BufferedWriter(new FileWriter(getConfigFile()));\n final Set<String> set = m_Settings.keySet();\n final Iterator<String> iter = set.iterator();\n while (iter.hasNext()) {\n final String sKey = iter.next();\n final String sValue = m_Settings.get(sKey);\n output.write(sKey + \"=\" + sValue + \"\\n\");\n }\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n finally {\n if (output != null) {\n try {\n output.close();\n }\n catch (final IOException e) {\n Sextante.addErrorToLog(e);\n }\n }\n }\n\n }", "private void saveData() {\n\t\tlogger.trace(\"saveData() is called\");\n\t\t\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFileOutputStream fileOut = new FileOutputStream(\"server-info.dat\");\n\t\t\tout = new ObjectOutputStream(fileOut);\n\t\t\tout.writeObject(jokeFile);\n\t\t\tout.writeObject(kkServerPort);\n\t\t\tout.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\t\n\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t} \n\t\tfinally {\n\t\t\tif (out != null){\n\t\t\t\ttry{\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void saveGlobalSigns()\n\t{\n\t\tplugin.fileio.saveGlobalSigns();\n\t}", "public void saveConfigXml() {\n // Save the xml object to disk\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,\n LocalizationLevel.SITE);\n\n LocalizationFile newXmlFile = pm.getLocalizationFile(lc,\n CONFIG_FILE_NAME);\n\n if (newXmlFile.getFile().getParentFile().exists() == false) {\n // System.out.println(\"Creating new directory\");\n\n if (newXmlFile.getFile().getParentFile().mkdirs() == false) {\n // System.out.println(\"Could not create new directory...\");\n }\n }\n\n try {\n // System.out.println(\"Saving -- \"\n // + newXmlFile.getFile().getAbsolutePath());\n jaxb.marshalToXmlFile(configXml, newXmlFile.getFile()\n .getAbsolutePath());\n newXmlFile.save();\n\n lf = newXmlFile;\n } catch (Exception e) {\n statusHandler.handle(Priority.ERROR, \"Couldn't save config file.\",\n e);\n }\n }", "public void saveAccountConfig () {\n\t\ttry {\n\t\t\tthis.accountConfig.store(new FileWriter(new File(this.accountAddress)), \"\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"[ERROR] Could not save initialization to account properties file: \" + accountAddress);\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t}", "@Override\n public void saveConfig() {\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext context = pm.getContext(\n LocalizationType.COMMON_STATIC, LocalizationLevel.SITE);\n String newFileName = getExistingConfigFilePath();\n ILocalizationFile locFile = pm.getLocalizationFile(context,\n newFileName);\n\n try {\n statusHandler.info(\"Saving -- \" + locFile.getPath());\n try (SaveableOutputStream os = locFile.openOutputStream()) {\n jaxb.marshalToStream(mesoCfgXML, os);\n os.save();\n }\n } catch (Exception e) {\n statusHandler.handle(Priority.PROBLEM,\n \"Failed to save \" + getExistingConfigFilePath(), e);\n }\n }", "private static void persistSettings() {\n\t\ttry {\n\t\t\tBufferedWriter userConf = new BufferedWriter(new FileWriter(\n\t\t\t\t\tconf.getAbsolutePath()));\n\t\t\tproperties.store(userConf, null);\n\t\t\t// flush and close streams\n\t\t\tuserConf.flush();\n\t\t\tuserConf.close();\n\t\t} catch (IOException e) {\n\t\t\tlog.severe(\"Couldn't save config file.\");\n\t\t}\n\t}", "void writeConfiguration(String fileName) throws IOException;", "private void saveSettings()\n {\n try\n {\n // If remember information is true then save the ip and port\n // properties to the projects config.properties file\n if ( rememberLoginIsSet_ )\n {\n properties_.setProperty( getString( R.string.saved_IP ), mIP_ );\n properties_.setProperty( getString( R.string.saved_Port ),\n mPort_ );\n }\n\n // Always save the remember login boolean\n properties_.setProperty( getString( R.string.saveInfo ),\n String.valueOf( rememberLoginIsSet_ ) );\n\n File propertiesFile =\n new File( this.getFilesDir().getPath().toString()\n + \"/properties.txt\" );\n FileOutputStream out =\n new FileOutputStream( propertiesFile );\n properties_.store( out, \"Swoop\" );\n out.close();\n }\n catch ( Exception ex )\n {\n System.err.print( ex );\n }\n }", "public void save() {\n try {\n yml.save(config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private static void commit() throws IOException {\n java.io.File out = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION + \".\"\n + Const.FILE_SAVING_FILE_EXTENSION);\n OutputStream str = new FileOutputStream(out);\n // Write the temporary file\n try {\n properties.store(str, \"User configuration\");\n } finally {\n str.flush();\n str.close();\n }\n // Commit with recovery support\n java.io.File finalFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.saveFileWithRecoverySupport(finalFile);\n Log.debug(\"Conf commited to : \" + finalFile.getAbsolutePath());\n }", "private static int[] createConfigurationFile(File fileToEncrypt, File configFile, File keystoreFile, SecretKey symmetricKey, AlgorithmParameters algorithmParams)\n\t{\n\t\tint[] elementsSizes = new int[4];\n\t\tKeyPair keyPair = getKeyPair(keystoreFile);\n\t\tString signatureAlgo = \"SHA256withRSA\";\n\n\t\t// create signature to the encrypt file\n\t\tPath path = Paths.get(fileToEncrypt.getPath());\n\t\tbyte[] sign = sign(keyPair, path, signatureAlgo);\n\n\t\t// encrypt symmetric key, using 'inputAlgorithmForKeyEncryption' algorithm\n\t\tif (symmetricKey != null)\n\t\t{\n\t\t\tFileOutputStream fileOutputStream = null;\n\t\t\tCipher cipherAsymmetric;\n\n\t\t\ttry\n\t\t\t{\n\t\t\t\tfileOutputStream = new FileOutputStream(configFile);\n\n\t\t\t\tif (inputProviderForKey.equals(\"non\"))\n\t\t\t\t{\n\t\t\t\t\tcipherAsymmetric = Cipher.getInstance(inputAlgorithmForKeyEncryption);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcipherAsymmetric = Cipher.getInstance(inputAlgorithmForKeyEncryption, inputProviderForKey);\n\t\t\t\t}\n\t\t\t\tcipherAsymmetric.init(Cipher.ENCRYPT_MODE, keyPair.getPublic());\n\t\t\t\tbyte[] encryptKey = cipherAsymmetric.doFinal(symmetricKey.getEncoded());\n\n\t\t\t\tfileOutputStream.write(algorithmParams.getEncoded());\n\t\t\t\tfileOutputStream.write(sign);\n\t\t\t\tfileOutputStream.write(encryptKey);\n\t\t\t\tfileOutputStream.write(signatureAlgo.getBytes());\n\n\t\t\t\telementsSizes[0] = sign.length;\n\t\t\t\telementsSizes[1] = encryptKey.length;\n\t\t\t\telementsSizes[2] = algorithmParams.getEncoded().length;\n\t\t\t\telementsSizes[3] = signatureAlgo.length();\n\t\t\t} catch (NoSuchAlgorithmException | NoSuchPaddingException | IOException | IllegalBlockSizeException | BadPaddingException | NoSuchProviderException | InvalidKeyException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t} finally\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (fileOutputStream != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tfileOutputStream.flush();\n\t\t\t\t\t\tfileOutputStream.close();\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException e)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn elementsSizes;\n\t}", "private void exportConfiguration() {\n if (!Files.exists(languageConfigPath)) this.saveResource(\"language.yml\", false);\n if (!Files.exists(propertiesConfigPath)) this.saveResource(\"properties.yml\", false);\n }", "private void saveProperties() throws IOException {\r\n\t\tsetProperties();\r\n\t\tOutputStream outputStream;\r\n\t\toutputStream = new FileOutputStream(configFile);\r\n\t\tconfigProps.store(outputStream, \"Lot Data Mapper Application\");\r\n\t\tString msg = \"SAVING PROPERTIES WITH VALUES: \\n\\t 1 \\t\" + dt.Root+\"\\n \\t 2 \\t\" + dt.Map+\" \\n\\t 3 \\t\" + dt.Out+\" \\n\\t 4 \\t\" + Trans.ReportTypeName+\" \\n\\t 5 \\t\"+Trans.ReportedByPersonName+\" \\n\\t 6\\t\"+Trans.ReportedDate + \"\\n PROPERTIIES SAVED\";\r\n\t\tlg.l(msg);\r\n\t\toutputStream.close();\r\n\t}", "protected void writeConfigurationParams(AVList params, FileStore fileStore)\n {\n String fileName = DataConfigurationUtils.getDataConfigFilename(params, \".xml\");\n if (fileName == null)\n {\n String message = Logging.getMessage(\"nullValue.FilePathIsNull\");\n Logging.logger().severe(message);\n throw new WWRuntimeException(message);\n }\n\n // Check if this component needs to write a configuration file. This happens outside of the synchronized block\n // to improve multithreaded performance for the common case: the configuration file already exists, this just\n // need to check that it's there and return. If the file exists but is expired, do not remove it - this\n // removes the file inside the synchronized block below.\n if (!this.needsConfigurationFile(fileStore, fileName, params, false))\n return;\n\n synchronized (this.fileLock)\n {\n // Check again if the component needs to write a configuration file, potentially removing any existing file\n // which has expired. This additional check is necessary because the file could have been created by\n // another thread while we were waiting for the lock.\n if (!this.needsConfigurationFile(fileStore, fileName, params, true))\n return;\n\n this.doWriteConfigurationParams(fileStore, fileName, params);\n }\n }", "public synchronized static void saveSettings() {\n try {\n ObjectOutputStream objectOutputStream = null;\n try {\n objectOutputStream = new ObjectOutputStream(new FileOutputStream(settingsfile));\n objectOutputStream.writeUnshared(transferITModel.getProperties());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getHostHistory());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getUsernameHistory());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getPasswordHistory());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getUsers());\n objectOutputStream.reset();\n objectOutputStream.writeUnshared(transferITModel.getUserRights());\n objectOutputStream.reset();\n objectOutputStream.flush();\n } catch (IOException ex1) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex1);\n }\n objectOutputStream.close();\n } catch (IOException ex) {\n Logger.getLogger(TransferIT.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void saveNewConfig() throws IOException {\n\t\tOutputStream os = new FileOutputStream(fileLocation);\n\t\tconfigurationFile.store(os, \"\");\n\t\tos.flush();\n\t\tos.close();\n\t\tupdateConfigFile();\n\t}", "private void valoresconfiguracion() {\n\n String file_ultimanotificacion = \"ultima_notificacion\";\n\n String file_ramdom = \"ramdom_number_file\";\n\n String file_vibrar = \"vibrar_file\";\n String file_sonido = \"sonido_file\";\n String file_notificar = \"notificar_file\";\n String file_tipo = \"tipo_file\";\n String file_ringtone = \"ring_tone_file\";\n\n\n String file_nombre_ringtone = \"nombre_ringtone__file\";\n\n\n String ultimanotificacion_val = \"notexist\";\n\n\n String vibrar_val = \"11111\";\n String sonido_val = \"A\";\n String notificacion_val = \"11111\";\n String ringtone_val = \"A\";\n\n String tiposonidoval = \"11111\";\n String nombre_ringtone_val = \"A\";\n\n\n try {\n // FileOutputStream fileOutputStream = openFileOutput(file_name, MODE_PRIVATE);\n //fileOutputStream.write(parametro1.getBytes());\n\n\n // fileOutputStream.write(parametro2.getBytes());\n // fileOutputStream.write(parametro3.getBytes());\n // fileOutputStream.write(parametro4.getBytes());\n // fileOutputStream.write(parametro5.getBytes());\n // fileOutputStream.write(parametro6.getBytes());\n\n FileOutputStream fileOutputStream_ultimanot = openFileOutput(file_ultimanotificacion, MODE_PRIVATE);\n fileOutputStream_ultimanot.write(ultimanotificacion_val.getBytes());\n\n\n\n FileOutputStream fileOutputStream_ramdom = openFileOutput(file_ramdom, MODE_PRIVATE);\n fileOutputStream_ramdom.write(vibrar_val.getBytes());\n\n FileOutputStream fileOutputStream_vibrar = openFileOutput(file_vibrar, MODE_PRIVATE);\n fileOutputStream_vibrar.write(vibrar_val.getBytes());\n\n\n FileOutputStream fileOutputStream_sonido = openFileOutput(file_sonido, MODE_PRIVATE);\n fileOutputStream_sonido.write(sonido_val.getBytes());\n\n\n FileOutputStream fileOutputStream_notificar = openFileOutput(file_notificar, MODE_PRIVATE);\n fileOutputStream_notificar.write(notificacion_val.getBytes());\n\n\n FileOutputStream fileOutputStream_sonidotipo = openFileOutput(file_tipo, MODE_PRIVATE);\n fileOutputStream_sonidotipo.write(tiposonidoval.getBytes());\n\n\n FileOutputStream fileOutputStream_ring_tone = openFileOutput(file_ringtone, MODE_PRIVATE);\n fileOutputStream_ring_tone.write(ringtone_val.getBytes());\n\n\n FileOutputStream fileOutputStream_nombre_ring_tone = openFileOutput(file_nombre_ringtone, MODE_PRIVATE);\n fileOutputStream_nombre_ring_tone.write(nombre_ringtone_val.getBytes());\n\n\n fileOutputStream_nombre_ring_tone.close();\n\n fileOutputStream_ring_tone.close();\n\n\n fileOutputStream_sonidotipo.close();\n\n fileOutputStream_notificar.close();\n\n fileOutputStream_vibrar.close();\n\n fileOutputStream_sonido.close();\n\n // fileOutputStream.close();\n // Toast.makeText(getApplicationContext(), \"Configurado\", Toast.LENGTH_LONG).show();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "static void saveAllPlayersToFiles(){\n \tfor( String playername : GoreaProtect.playersData.getKeys(false))\n \t{\n \t\tFile playerfile = new File(GoreaProtect.datafolder + File.separator + \"Protections\");\n \t\tFile fileplayer= new File(playerfile, playername + \".yml\");\n\n \t\tConfigurationSection playerdata = GoreaProtect.playersData.getConfigurationSection(playername);\n\n \t\tYamlConfiguration PlayersDatayml = new YamlConfiguration();\n\n \t\tfor (String aaa:playerdata.getKeys(false))\n \t\tPlayersDatayml.set(aaa, playerdata.get(aaa));\n \t\t\n \t\t\n \t\ttry {\n\t\t\t\tPlayersDatayml.save(fileplayer);\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} \n \t} \n }", "public void storeProperties() throws LogFile.LockException, IOException {\n // If the file has not been set, don't save.\n if (dataFile != null) {\n synchronized (dataFile) {\n if (!dataFile.isDirectory()) {\n if (dataFile.getName().endsWith(EtomoDirector.USER_CONFIG_FILE_EXT)) {\n dataFile.backupOnce();\n }\n else {\n dataFile.doubleBackupOnce();\n }\n }\n if (!dataFile.exists()) {\n dataFile.create();\n }\n LogFile.OutputStreamId outputStreamId = dataFile.openOutputStream();\n dataFile.store(properties, outputStreamId);\n dataFile.closeOutputStream(outputStreamId);\n }\n }\n }", "public void loadConfigurationFromDisk() {\r\n try {\r\n FileReader fr = new FileReader(CONFIG_FILE);\r\n BufferedReader rd = new BufferedReader(fr);\r\n\r\n String line;\r\n while ((line = rd.readLine()) != null) {\r\n if (line.startsWith(\"#\")) continue;\r\n if (line.equalsIgnoreCase(\"\")) continue;\r\n\r\n StringTokenizer str = new StringTokenizer(line, \"=\");\r\n if (str.countTokens() > 1) {\r\n String aux;\r\n switch (str.nextToken().trim()) {\r\n case \"system.voidchain.protocol_version\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.protocolVersion = aux;\r\n continue;\r\n case \"system.voidchain.transaction.max_size\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.transactionMaxSize = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.block.num_transaction\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.numTransactionsInBlock = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.storage.data_file_extension\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.dataFileExtension = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.walletFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.data_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.dataDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.blockFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.walletFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.memory.block_megabytes\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.memoryUsedForBlocks = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.sync.block_sync_port\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockSyncPort = Integer.parseInt(aux);\r\n }\r\n continue;\r\n case \"system.voidchain.crypto.ec_param\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.ecParam = aux;\r\n continue;\r\n case \"system.voidchain.core.block_proposal_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockProposalTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n case \"system.voidchain.blockchain.chain_valid_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockchainValidTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n }\r\n }\r\n }\r\n\r\n fr.close();\r\n rd.close();\r\n\r\n if (this.firstRun)\r\n this.firstRun = false;\r\n } catch (IOException e) {\r\n logger.error(\"Could not load configuration\", e);\r\n }\r\n }", "public void store() throws Exception\n {\n try\n {\n if (this.config == null)\n {\n Logger.info(\"creating ddv config\");\n this.config = DDVConfigFactory.create();\n }\n \n //////////////////////////////////////////////////////////////////////////\n // nicht konfigurierbare Werte\n this.config.setSoftPin(true); // Eingabe niemals ueber Kartenleser\n //\n //////////////////////////////////////////////////////////////////////////\n\n //////////////////////////////////////////////////////////////////////////\n // Sonstige Parameter\n \n // Kartenleser\n String reader = request.getParameter(\"reader\");\n if (reader == null || reader.length() == 0)\n throw new ApplicationException(i18n.tr(\"Bitte wähle ein Kartenleser-Modell aus\"));\n\n List<Reader> readers = this.getReaders();\n for (Reader r:readers)\n {\n if (r.getClass().getName().equals(reader))\n {\n this.config.setReaderPreset(r);\n this.config.setCTAPIDriver(r.getCTAPIDriver());\n break;\n }\n }\n \n if (this.config.getReaderPreset() == null)\n throw new ApplicationException(i18n.tr(\"Bitte wähle ein Kartenleser-Modell aus\"));\n if (this.config.getCTAPIDriver() == null)\n throw new ApplicationException(i18n.tr(\"Das Kartenleser-Modell wird vom Betriebssystem des Servers nicht unterstützt\"));\n \n // Bezeichnung\n this.config.setName(request.getParameter(\"name\"));\n \n // Port\n String port = request.getParameter(\"port\");\n if (port == null || port.length() == 0)\n throw new ApplicationException(i18n.tr(\"Bitte wähle einen Port aus\"));\n this.config.setPort(port);\n \n // HBCI-Version\n String hbciVersion = request.getParameter(\"hbciversion\");\n if (hbciVersion == null || port.length() == 0)\n throw new ApplicationException(i18n.tr(\"Bitte wähle eine HBCI-Version aus\"));\n this.config.setHBCIVersion(hbciVersion);\n\n // CT-Number\n try {\n this.config.setCTNumber(Integer.parseInt(request.getParameter(\"ctnumber\")));\n }\n catch (Exception e) {\n throw new ApplicationException(i18n.tr(\"Bitte wähle einen Wert für den Index des Lesers aus\"));\n }\n \n // Entry-Index\n try {\n this.config.setEntryIndex(Integer.parseInt(request.getParameter(\"entryindex\")));\n }\n catch (Exception e) {\n throw new ApplicationException(i18n.tr(\"Bitte wähle einen Wert für den Index des HBCI-Zugangs aus\"));\n }\n //\n //////////////////////////////////////////////////////////////////////////\n\n \n //////////////////////////////////////////////////////////////////////////\n // PIN-Checks\n String password = request.getParameter(\"pin\");\n String password2 = request.getParameter(\"pin2\");\n\n if (password == null || password.length() == 0)\n throw new ApplicationException(i18n.tr(\"Keine PIN angegeben\"));\n\n if (password2 == null || password2.length() == 0)\n throw new ApplicationException(i18n.tr(\"Bitte gib die PIN zur Kontrolle zweimal ein\"));\n\n if (!password.equals(password2))\n throw new ApplicationException(i18n.tr(\"PIN-Eingaben stimmen nicht überein.\"));\n\n Logger.info(\"saving pin in wallet\");\n de.willuhn.jameica.hbci.payment.Settings.setHBCIPassword(this.config.getId(),password);\n //\n //////////////////////////////////////////////////////////////////////////\n\n \n Logger.info(\"create passport handle\");\n PassportHandle handle = new PassportHandleImpl(this.config);\n \n Logger.info(\"fetch accounts\");\n Konto[] konten = readKonten(handle.open());\n if (konten != null)\n this.config.setKonten(Arrays.asList(konten)); // Konten fest verknuepfen\n DDVConfigFactory.store(this.config); // Config registrieren\n Application.getMessagingFactory().sendMessage(new StatusBarMessage(i18n.tr(\"Chipkarten-Einstellungen gespeichert und Konten angelegt.\"), StatusBarMessage.TYPE_SUCCESS));\n }\n catch (Exception e)\n {\n String msg = e.getMessage();\n if (!(e instanceof ApplicationException))\n {\n Logger.error(\"error while saving ddv config\",e);\n msg = i18n.tr(\"Fehler beim Speichern der Chipkarten-Einstellungen: {0}\",e.getMessage());\n }\n Application.getMessagingFactory().sendMessage(new StatusBarMessage(msg,StatusBarMessage.TYPE_ERROR));\n }\n\n }", "public void save() {\n // Convert the settings to a string\n String output = readSettings();\n \n try {\n // Make sure the file exists\n if (!settingsFile.exists()) {\n File parent = settingsFile.getParentFile();\n parent.mkdirs();\n settingsFile.createNewFile(); \n }\n \n // Write the data into the file\n BufferedWriter writer = new BufferedWriter(new FileWriter(settingsFile));\n writer.write(output);\n writer.close(); \n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private Log() {\r\n readFile(\"Save.bin\",allLogs);\r\n readFile(\"Tag.bin\", allTags);\r\n readFile(\"Password.bin\", userInfo);\r\n }", "public void saveConfiguration() throws AECexception{\n\t\tArrayList<ModelTextField> listInput = this.panelConfiguration.getListInput();\n\t\tboolean error=false;\n\t\terror|=this.saveAttributeCalibrationMaxSize(listInput.get(0));\n\t\terror|=this.saveAttributeSoftwareAliasInRam(listInput.get(1));\n\t\terror|=this.saveAttributePaddingByteValue(\tlistInput.get(2));\n\t\terror|=this.saveAttributeFirstMemoryValue(\tlistInput.get(3));\n\t\terror|=this.saveAttributeStructureName(\t\tlistInput.get(4));\n\t\terror|=this.saveStructureInformation();\n\t\tif(error){\n\t\t\tthrow new AECexception(\"text or number exception\", AECexception.TEXT_FIELD_EXCEPTION);\n\t\t}\n\t\tthis.setPanelConfiguration();\n\t}", "private final void configureKeys() {\n\t\t// SecretServer's public key\n\t\tString line = ComMethods.getValueFor(\"SecretServer\", pubkeysfn);\n\t\tint x = line.indexOf(',');\n\t\tmy_n = new BigInteger(line.substring(0,x));\n\t\tmy_e = new Integer(line.substring(x+1,line.length()));\n\n\t\t// SecretServer's private key\n\t\tline = ComMethods.getValueFor(\"SecretServer\", privkeysfn);\n\t\tx = line.indexOf(',');\n\t\tmy_d = new BigInteger(line.substring(x+1,line.length()));\n\n\t\t// Public keys for all registered Users\n\t\tusersPubKeys1 = new BigInteger[validUsers.length];\n\t\tusersPubKeys2 = new int[validUsers.length];\n\t\tfor (int i=0; i<validUsers.length; i++) {\n\t\t\tline = ComMethods.getValueFor(validUsers[i], pubkeysfn);\n\t\t\tx = line.indexOf(',');\n\t\t\tusersPubKeys1[i] = new BigInteger(line.substring(0,x));\n\t\t\tusersPubKeys2[i] = new Integer(line.substring(x+1,line.length()));\n\t\t}\n\t}", "protected void writeCipherAndIVToFileBase64(CipherIV data, String filename) throws IOException {\n super.saveBytesToFileBase64(filename + CIPHER_PART, data.getCipher());\n super.saveBytesToFileBase64(filename + IV_PART, data.getIv());\n }", "public void saveXMLConfig() {\n\n\t\t// Get the Carma namespace\n\t\tNamespace ns = Namespace.getNamespace(\"Carma\",\n\t\t\t\t\"http://www.mmarray.org\");\n\n\t\t// Update NameServers. First remove them all, then add since\n\t\t// the number of them could have changed\n\t\tElement nameserversElement = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"nameServers\", ns);\n\t\tnameserversElement.removeChildren(\"nameServer\", ns);\n\n\t\t// Set the new children one at a time\n\t\tfor (int i = 0; i < _nameservers.size(); i++) {\n\t\t\t nameserversElement.addContent( new Element(\"nameServer\", ns).\n\t\t\t addContent(new Element(\"identifier\", ns).\n\t\t\t\t setText((String)_nameservers.get(i))));\n\t\t}\n\n\t\t// Update NameServerPorts. First remove them all, then add since\n\t\t// the number of them could have changed\n\t\tElement nameserverPortsElement = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"nameServerPorts\", ns);\n\t\tnameserverPortsElement.removeChildren(\"nameServerPort\", ns);\n\n\t\t// Set the new children one at a time\n\t\tfor (int i = 0; i < _nameserverPorts.size(); i++) {\n\t\t\t nameserverPortsElement.addContent( new Element(\"nameServerPort\",\n\t\t\t ns).\n\t\t\t addContent(new Element(\"pidentifier\", ns).\n\t\t\t\t setText((String)_nameserverPorts.get(i))));\n\t\t}\n\n\t\t// Update obsRecord Event Channel Name\n\t\t_root.getChild(\"server\", ns)\n\t\t .getChild(\"obsRecordEventChannelName\", ns)\n\t\t .setText(_obsRecordEventChannelName);\n\t}", "public void saveDbConfig () {\n\t\ttry {\n\t\t\tthis.databaseConfig.store(new FileWriter(new File(this.databaseAddress)), \"\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"[ERROR] Could not save initialization to database properties file: \" + databaseAddress);\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\t}", "public void saveProperties()\n {\n _appContext.Configuration.save();\n }", "private void saveProperties()\n {\n PSConfigUtils.saveObjectToFile(m_props, getPropertiesFile());\n }", "public void apply() throws IOException, CertificateException, NoSuchAlgorithmException, InvalidKeyException, UnrecoverableEntryException, InvalidAlgorithmParameterException, NoSuchPaddingException, NoSuchProviderException, BadPaddingException, KeyStoreException, IllegalBlockSizeException {\n // Convert JSON object to string\n String jsonString = new Gson().toJson(mWalletConfigsJson);\n\n // Save the new WalletConfigurations in encrypted prefs\n String encrypted = new Cryptography(App.getAppContext()).encryptData(jsonString);\n PrefsUtil.edit().putString(PrefsUtil.WALLET_CONFIGS, encrypted).commit();\n }", "void saveKeys(String publicKeyFileLocation, String secretKeyFileLocation) throws IOException;", "public void readEAPConfig(BufferedWriter out) {\n\t\tcreateLogFile();\n\t\t/* Get the WifiService */\n\t\tWifiManager wifi = (WifiManager) this.context\n\t\t\t\t.getSystemService(context.WIFI_SERVICE);\n\t\t/* Get All WIfi configurations */\n\t\tList<WifiConfiguration> configList = wifi.getConfiguredNetworks();\n\t\t/*\n\t\t * Now we need to search appropriate configuration i.e. with name\n\t\t * SSID_Name\n\t\t */\n\t\tfor (int i = 0; i < configList.size(); i++) {\n\t\t\tif (configList.get(i).SSID.contentEquals(\"\\\"SSID_NAME\\\"\")) {\n\t\t\t\t/* We found the appropriate config now read all config details */\n\t\t\t\tIterator<WifiConfiguration> iter = configList.iterator();\n\t\t\t\tWifiConfiguration config = configList.get(i);\n\n\t\t\t\t/*\n\t\t\t\t * I dont think these fields have anything to do with EAP config\n\t\t\t\t * but still will print these to be on safe side\n\t\t\t\t */\n\t\t\t\ttry {\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[SSID]\"\n\t\t\t\t\t\t\t+ config.SSID);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\" + \"[SSID]\"\n\t\t\t\t\t\t\t+ config.SSID);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[BSSID]\"\n\t\t\t\t\t\t\t+ config.BSSID);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[BSSID]\" + config.BSSID);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[HIDDEN SSID]\" + config.hiddenSSID);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[HIDDEN SSID]\" + config.hiddenSSID);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[PASSWORD]\"\n\t\t\t\t\t\t\t+ config.preSharedKey);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[PASSWORD]\" + config.preSharedKey);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[ALLOWED ALGORITHMS]\");\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[ALLOWED ALGORITHMS]\");\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[LEAP]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedAuthAlgorithms\n\t\t\t\t\t\t\t\t\t\t\t.get(AuthAlgorithm.LEAP));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[LEAP]\"\n\t\t\t\t\t\t\t+ config.allowedAuthAlgorithms\n\t\t\t\t\t\t\t\t\t.get(AuthAlgorithm.LEAP));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[OPEN]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedAuthAlgorithms\n\t\t\t\t\t\t\t\t\t\t\t.get(AuthAlgorithm.OPEN));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[OPEN]\"\n\t\t\t\t\t\t\t+ config.allowedAuthAlgorithms\n\t\t\t\t\t\t\t\t\t.get(AuthAlgorithm.OPEN));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[SHARED]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedAuthAlgorithms\n\t\t\t\t\t\t\t\t\t\t\t.get(AuthAlgorithm.SHARED));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[SHARED]\"\n\t\t\t\t\t\t\t+ config.allowedAuthAlgorithms\n\t\t\t\t\t\t\t\t\t.get(AuthAlgorithm.SHARED));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[GROUP CIPHERS]\");\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[GROUP CIPHERS]\");\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[CCMP]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers.get(GroupCipher.CCMP));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\" + \"[CCMP]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers.get(GroupCipher.CCMP));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[TKIP]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers.get(GroupCipher.TKIP));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\" + \"[TKIP]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers.get(GroupCipher.TKIP));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[WEP104]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedGroupCiphers\n\t\t\t\t\t\t\t\t\t\t\t.get(GroupCipher.WEP104));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP104]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers\n\t\t\t\t\t\t\t\t\t.get(GroupCipher.WEP104));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WEP40]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers.get(GroupCipher.WEP40));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP40]\"\n\t\t\t\t\t\t\t+ config.allowedGroupCiphers.get(GroupCipher.WEP40));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[KEYMGMT]\");\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[KEYMGMT]\");\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[IEEE8021X]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedKeyManagement\n\t\t\t\t\t\t\t\t\t\t\t.get(KeyMgmt.IEEE8021X));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[IEEE8021X]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement\n\t\t\t\t\t\t\t\t\t.get(KeyMgmt.IEEE8021X));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[NONE]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement.get(KeyMgmt.NONE));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\" + \"[NONE]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement.get(KeyMgmt.NONE));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WPA_EAP]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement.get(KeyMgmt.WPA_EAP));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WPA_EAP]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement.get(KeyMgmt.WPA_EAP));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WPA_PSK]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement.get(KeyMgmt.WPA_PSK));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WPA_PSK]\"\n\t\t\t\t\t\t\t+ config.allowedKeyManagement.get(KeyMgmt.WPA_PSK));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[PairWiseCipher]\");\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[PairWiseCipher]\");\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[CCMP]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedPairwiseCiphers\n\t\t\t\t\t\t\t\t\t\t\t.get(PairwiseCipher.CCMP));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[CCMP]\"\n\t\t\t\t\t\t\t+ config.allowedPairwiseCiphers\n\t\t\t\t\t\t\t\t\t.get(PairwiseCipher.CCMP));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[NONE]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedPairwiseCiphers\n\t\t\t\t\t\t\t\t\t\t\t.get(PairwiseCipher.NONE));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[NONE]\"\n\t\t\t\t\t\t\t+ config.allowedPairwiseCiphers\n\t\t\t\t\t\t\t\t\t.get(PairwiseCipher.NONE));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[TKIP]\"\n\t\t\t\t\t\t\t\t\t+ config.allowedPairwiseCiphers\n\t\t\t\t\t\t\t\t\t\t\t.get(PairwiseCipher.TKIP));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[TKIP]\"\n\t\t\t\t\t\t\t+ config.allowedPairwiseCiphers\n\t\t\t\t\t\t\t\t\t.get(PairwiseCipher.TKIP));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[Protocols]\");\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[Protocols]\");\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[RSN]\"\n\t\t\t\t\t\t\t+ config.allowedProtocols.get(Protocol.RSN));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\" + \"[RSN]\"\n\t\t\t\t\t\t\t+ config.allowedProtocols.get(Protocol.RSN));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WPA]\"\n\t\t\t\t\t\t\t+ config.allowedProtocols.get(Protocol.WPA));\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\" + \"[WPA]\"\n\t\t\t\t\t\t\t+ config.allowedProtocols.get(Protocol.WPA));\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[PRE_SHARED_KEY]\" + config.preSharedKey);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[PRE_SHARED_KEY]\" + config.preSharedKey);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"[WEP Key Strings]\");\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP Key Strings]\");\n\t\t\t\t\tString[] wepKeys = config.wepKeys;\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WEP KEY 0]\"\n\t\t\t\t\t\t\t+ wepKeys[0]);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP KEY 0]\" + wepKeys[0]);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WEP KEY 1]\"\n\t\t\t\t\t\t\t+ wepKeys[1]);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP KEY 1]\" + wepKeys[1]);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WEP KEY 2]\"\n\t\t\t\t\t\t\t+ wepKeys[2]);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP KEY 2]\" + wepKeys[2]);\n\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\", \"[WEP KEY 3]\"\n\t\t\t\t\t\t\t+ wepKeys[3]);\n\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t+ \"[WEP KEY 3]\" + wepKeys[3]);\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLog.e(\"WRITE ERROR : \",\n\t\t\t\t\t\t\t\"Failed to write Logs to ReadConfigLog.txt\");\n\t\t\t\t\tLog.e(\"WRITE ERROR : \", \"Please take logs using Logcat\");\n\t\t\t\t\tLog.e(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"Could not write to ReadConfigLog.txt\"\n\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t}\n\t\t\t\t/* reflection magic */\n\t\t\t\t/* These are the fields we are really interested in */\n\t\t\t\ttry {\n\t\t\t\t\t// Let the magic start\n\t\t\t\t\tClass[] wcClasses = WifiConfiguration.class.getClasses();\n\t\t\t\t\t// null for overzealous java compiler\n\t\t\t\t\tClass wcEnterpriseField = null;\n\n\t\t\t\t\tfor (Class wcClass : wcClasses)\n\t\t\t\t\t\tif (wcClass.getName().equals(INT_ENTERPRISEFIELD_NAME)) {\n\t\t\t\t\t\t\twcEnterpriseField = wcClass;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\tboolean noEnterpriseFieldType = false;\n\t\t\t\t\tif (wcEnterpriseField == null)\n\t\t\t\t\t\tnoEnterpriseFieldType = true; // Cupcake/Donut access\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// enterprise settings\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// directly\n\n\t\t\t\t\tField wcefAnonymousId = null, wcefCaCert = null, wcefClientCert = null, wcefEap = null, wcefIdentity = null, wcefPassword = null, wcefPhase2 = null, wcefPrivateKey = null;\n\t\t\t\t\tField[] wcefFields = WifiConfiguration.class.getFields();\n\t\t\t\t\t// Dispatching Field vars\n\t\t\t\t\tfor (Field wcefField : wcefFields) {\n\t\t\t\t\t\tif (wcefField.getName().trim()\n\t\t\t\t\t\t\t\t.equals(INT_ANONYMOUS_IDENTITY))\n\t\t\t\t\t\t\twcefAnonymousId = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim().equals(INT_CA_CERT))\n\t\t\t\t\t\t\twcefCaCert = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim()\n\t\t\t\t\t\t\t\t.equals(INT_CLIENT_CERT))\n\t\t\t\t\t\t\twcefClientCert = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim().equals(INT_EAP))\n\t\t\t\t\t\t\twcefEap = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim()\n\t\t\t\t\t\t\t\t.equals(INT_IDENTITY))\n\t\t\t\t\t\t\twcefIdentity = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim()\n\t\t\t\t\t\t\t\t.equals(INT_PASSWORD))\n\t\t\t\t\t\t\twcefPassword = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim().equals(INT_PHASE2))\n\t\t\t\t\t\t\twcefPhase2 = wcefField;\n\t\t\t\t\t\telse if (wcefField.getName().trim()\n\t\t\t\t\t\t\t\t.equals(INT_PRIVATE_KEY))\n\t\t\t\t\t\t\twcefPrivateKey = wcefField;\n\t\t\t\t\t}\n\t\t\t\t\tMethod wcefValue = null;\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tfor (Method m : wcEnterpriseField.getMethods())\n\t\t\t\t\t\t\t// System.out.println(m.getName());\n\t\t\t\t\t\t\tif (m.getName().trim().equals(\"value\")) {\n\t\t\t\t\t\t\t\twcefValue = m;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t/* EAP Method */\n\t\t\t\t\tString result = null;\n\t\t\t\t\tObject obj = null;\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tobj = wcefValue.invoke(wcefEap.get(config), null);\n\t\t\t\t\t\tString retval = (String) obj;\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP METHOD]\" + retval);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP METHOD]\" + retval);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tobj = wcefEap.get(config);\n\t\t\t\t\t\tString retval = (String) obj;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* phase 2 */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefPhase2.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP PHASE 2 AUTHENTICATION]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP PHASE 2 AUTHENTICATION]\" + result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefPhase2.get(config);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Anonymous Identity */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefAnonymousId.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP ANONYMOUS IDENTITY]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP ANONYMOUS IDENTITY]\" + result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefAnonymousId.get(config);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* CA certificate */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefCaCert.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP CA CERTIFICATE]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP CA CERTIFICATE]\" + result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefCaCert.get(config);\n\n\t\t\t\t\t}\n\n\t\t\t\t\t/* private key */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefPrivateKey.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP PRIVATE KEY]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP PRIVATE KEY]\" + result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefPrivateKey.get(config);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Identity */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefIdentity.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP IDENTITY]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP IDENTITY]\" + result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefIdentity.get(config);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* Password */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefPassword.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP PASSWORD]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP PASSWORD]\" + result);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefPassword.get(config);\n\t\t\t\t\t}\n\n\t\t\t\t\t/* client certificate */\n\t\t\t\t\tif (!noEnterpriseFieldType) {\n\t\t\t\t\t\tresult = (String) wcefValue.invoke(\n\t\t\t\t\t\t\t\twcefClientCert.get(config), null);\n\t\t\t\t\t\tLog.d(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\t\"[EAP CLIENT CERT]\" + result);\n\t\t\t\t\t\tout.write(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\"\n\t\t\t\t\t\t\t\t+ \"[EAP CLIENT CERT]\" + result);\n\t\t\t\t\t\tLog.e(\"READ EROR : \",\n\t\t\t\t\t\t\t\t\"All config data logged to ReadConfigLog.txt\");\n\t\t\t\t\t\tLog.e(\"READ EROR : \",\n\t\t\t\t\t\t\t\t\"Extract ReadConfigLog.txt from SD CARD\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tresult = (String) wcefClientCert.get(config);\n\t\t\t\t\t}\n\n\t\t\t\t\tout.close();\n\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLog.e(\"LOGGING EROR : \",\n\t\t\t\t\t\t\t\"Failed to write Logs to ReadConfigLog.txt\");\n\t\t\t\t\tLog.e(\"LOGGING EROR : \", \"Please take logs using Logcat\");\n\t\t\t\t\tLog.e(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\t\t\"Could not write to ReadConfigLog.txt\"\n\t\t\t\t\t\t\t\t\t+ e.getMessage());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "public static void save()\n {\n try\n {\n FileOutputStream fOS = new FileOutputStream(propsFile); \n props.store(fOS, \"\");\n fOS.close();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }", "public static void saveProperties() {\n try {\n try (FileOutputStream out = new FileOutputStream(propFile)) {\n properties.store(out, \"BitcoinWallet Properties\");\n }\n } catch (Exception exc) {\n Main.logException(\"Exception while saving application properties\", exc);\n }\n }", "protected void printServerConfig(){\n\t\t/*String filePrefix = System.getProperty(\"user.dir\")+\"/src/server/\"+gameName;\n\t\tFile gameFolderServ = new File(filePrefix);\n\t\tString filePrefix2 = System.getProperty(\"user.dir\")+\"/src/auctions/\"+gameName;\n\t\tFile gameFolderAuct = new File(filePrefix2);\n\n\t\tFile server_config = new File(filePrefix+\"/Config_AuctionServer.txt\");\n\t\t*/\n\t\tFile server_config = new File(\"src/server/\"+\"Config_AuctionServer.txt\");\n\t\tif(!server_config.exists()){\n\n\t\t\t try{\n\n\t\t\t\t //gameFolderServ.mkdir();\n\t\t\t\t // gameFolderAuct.mkdir();\n\t\t\t\t server_config.createNewFile();\n\t\t\t\t FileWriter fstream = new FileWriter(server_config);\n\t\t\t\t BufferedWriter out = new BufferedWriter(fstream);\n\t\t\t\t if(localIP){\n\t\t\t\t\t out.write(\"Host_IP:local\\n\");\n\t\t\t\t }else{\n\t\t\t\t\t out.write(\"Host_IP:public\\n\");\n\t\t\t\t }\n\n\t\t\t\t out.write(\"Port_Number:\"+port+\"\\n\");\n\t\t\t\t //out.newLine();\n\n\t\t\t\t out.write(\"Min_Number_Clients:\"+minClients+\"\\n\");\n\t\t\t\t out.write(\"Max_Number_Clients:\"+maxClients+\"\\n\");\n\t\t\t\t out.write(\"Max_Wait_For_Clients:\"+maxWait+\"\\n\");\n\t\t\t\t out.write(\"Response_Time:\"+responseTime);\n\t\t\t\t out.newLine();\n\t\t\t\t if(respTime){\n\t\t\t\t\t out.write(\"Full_Response_Time:true\");\n\t\t\t\t }else{\n\t\t\t\t\t out.write(\"Full_Response_Time:false\");\n\t\t\t\t }\n\t\t\t\t out.newLine();\n\t\t\t\t out.write(\"Server_Log_File:Log_AuctionServer.txt\");\n\t\t\t\t out.newLine();\n\t\t\t\t out.write(\"Server_Results_File:Results_AuctionServer.txt\");\n\t\t\t\t out.newLine();\n\n\t\t\t\t if(maxSeq>1 && maxSim>1){\n\t\t\t\t\t out.write(\"Auction_Type:SequentialAuction\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t\t out.write(\"Auction_Config_File:Config_Sequential_of_Simultaneous.txt\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t }else if(maxSeq>1){\n\t\t\t\t\t out.write(\"Auction_Type:SequentialAuction\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t\t out.write(\"Auction_Config_File:Config_SequentialAuction_0.txt\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t }else if(maxSim>1){\n\t\t\t\t\t out.write(\"Auction_Type:SimultaneousAuction\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t\t out.write(\"Auction_Config_File:Config_SimultaneousAuction_0.txt\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t }else if(maxSeq==1 && maxSim==1){\n\t\t\t\t\t out.write(\"Auction_Type:\"+getAuctionName(auctionsSchedule[0])+\"\\n\");\n\t\t\t\t\t out.write(\"Auction_Config_File:Config_\"+getAuctionName(auctionsSchedule[0])+\"_0_0.txt\");\n\t\t\t\t\t out.newLine();\n\t\t\t\t }else{\n\t\t\t\t\t System.out.println(\"ERROR: no auctions\");\n\t\t\t\t }\n\n\t\t\t\t out.write(\"Valuation_Type:\"+valueFxn);\n\t\t\t\t out.newLine();\n\t\t\t\t out.write(\"Valuation_Config_File:Config_Valuation\"+valueFxn+\".txt\");\n\n\t\t\t\t out.close();\n\n\t\t\t }catch (IOException e){\n\t\t\t\t\tSystem.out.println(\"file error creating Server Config.\");\n\t\t\t}\n\t\t}\n\t}", "public static void execEnkripsi(File fileTemp, String pathTempFileEncryptName, String pathEncryptedSecretKeyFile, String pemContent, SimpleDateFormat sdf, String outputFileNameZip) throws Exception{\n String secretKey=RandomStringUtils.randomAlphanumeric(16);\r\n System.out.println(\"Generated Secret Key :\"+secretKey);\r\n File exportedFile;\r\n CompressingUtils compressingUtils = new CompressingUtils();\r\n String tmpPlainZipped = lokasiHasil+\"/tmp\"+outputFileNameZip;\r\n List<File> lsFile = new ArrayList<>();\r\n lsFile.add(fileTemp);\r\n if(compressingUtils.createZipWithoutPassword(lsFile, tmpPlainZipped)){\r\n exportedFile = new File(tmpPlainZipped);\r\n //delete file awal yang telah dikompresi\r\n for(File dfile : lsFile){\r\n dfile.delete();\r\n }\r\n }else{\r\n throw new Exception(\"gagal melakukan kompresi file\");\r\n }\r\n System.out.println(\"file kompresi berhasil dibuat \"+ outputFileNameZip);\r\n\r\n /*Step 3 : enkripsi file dengan kunci acak */\r\n System.out.println(\"Step 3 : enkripsi file dengan kunci acak\");\r\n\r\n\r\n String fileOutputEcnryptedname = lokasiHasil+\"/\"+outputFileNameZip;\r\n\r\n File tempFileEncryptName = new File(pathTempFileEncryptName);\r\n try {\r\n CryptoUtils.encrypt(secretKey, exportedFile, tempFileEncryptName);\r\n } catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi file gagal : \" + e.getMessage());\r\n }\r\n\r\n EncryptionUtils utils = new EncryptionUtils();\r\n PublicKey publicKey = utils.getPublicKeyFromX509(pemContent);\r\n\r\n /*Step 4 : Enkripsi kunci acak dengan public key dari DJP*/\r\n System.out.println(\"Step 4 : enkripsi kunci acak dengan public key dari DJP\");\r\n\r\n String encryptedSecretKey;\r\n try{\r\n encryptedSecretKey = CryptoUtils.encrypt(secretKey, publicKey);\r\n }catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi kunci gagal : \" + e.getMessage());\r\n }\r\n File encryptedSecretKeyFile = new File(pathEncryptedSecretKeyFile);\r\n try {\r\n FileOutputStream outputStream = new FileOutputStream(encryptedSecretKeyFile);\r\n outputStream.write(encryptedSecretKey.getBytes());\r\n outputStream.close();\r\n }catch (FileNotFoundException e){\r\n throw new Exception(\"kunci yang dienkripsi tidak ditemukan : \" + pathEncryptedSecretKeyFile);\r\n } catch (IOException e) {\r\n throw new Exception(\"gagal membentuk kunci enkripsi\");\r\n }\r\n\r\n /*Step 5: Compress data dan key kedalam file zip dan menjadi hasil akhir*/\r\n System.out.println(\"Step 5: Compress enkripsi file dan kunci kedalam file zip\");\r\n\r\n List<File> listFiles = new ArrayList<File>();\r\n listFiles.add(tempFileEncryptName);\r\n listFiles.add(encryptedSecretKeyFile);\r\n\r\n if(listFiles.size() != 2){\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n throw new Exception(\"file enkripsi dan/atau key enkripsi salah satunya tidak ada\");\r\n }\r\n\r\n compressingUtils = new CompressingUtils();\r\n if (compressingUtils.createZip(listFiles, fileOutputEcnryptedname)) {\r\n /*Step 6 : hapus file data dan key, hasil dari step 3 dan 4 */\r\n System.out.println(\"Step 6 : hapus file data dan key, hasil dari step 3 dan 4\");\r\n\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n /*Step 7: hapus file zip, hasil dari step 2 */\r\n System.out.println(\"Step 7: hapus file zip, hasil dari step 2\");\r\n\r\n exportedFile.delete();\r\n }\r\n\r\n System.out.println(\"Proses enkripsi selesai, nama file : \" + fileOutputEcnryptedname);\r\n }", "public static void saveBlockESPList(){\n try {\n \tCE_ForgeLoader.instance().log(\"Writting BlockESP block list configuration file...\");\n File file = new File( someDir, \"\" );\n BufferedWriter bufferedwritter = new BufferedWriter( new FileWriter( file ) );\n for( int i : BlockESP.espList ) {\n bufferedwritter.write( i + \"\\r\\n\" );\n }\n bufferedwritter.close( );\n\n } catch( Exception ex ) {\n \tCE_ForgeLoader.instance().log(\"Can't write BlockESP configuration file! Custom blocks for X-Ray will be disabled!\");\n \tCE_ForgeLoader.instance().log(\"Error in CE init: \" + ex.toString( ) );\n }\n }", "protected void saveKeys()\r\n {\r\n try\r\n {\r\n log.info(\"{0}: Saving keys to: {1}, key count: {2}\",\r\n () -> logCacheName, () -> fileName, keyHash::size);\r\n\r\n keyFile.reset();\r\n\r\n final HashMap<K, IndexedDiskElementDescriptor> keys = new HashMap<>(keyHash);\r\n if (!keys.isEmpty())\r\n {\r\n keyFile.writeObject(keys, 0);\r\n }\r\n\r\n log.info(\"{0}: Finished saving keys.\", logCacheName);\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: Problem storing keys.\", logCacheName, e);\r\n }\r\n }", "private static void initVoters() {\n\t\t try {\n\t\t\t FileWriter fw = new FileWriter(\"myfile.csv\");\n\t\t\t PrintWriter writer = new PrintWriter(fw);\n\t\t\t for(int i=0; i<10; i++) {\n\t\t\t \tKeyPair key = Crypto.generateKeys();\n\t\t\t \twriter.println(Crypto.getPrivateKeyasString(key)+\",\"+Crypto.getPublicKeyasString(key)+\"\\n\");\n\t\t\t }\n\t\t\t writer.close();\n\t\t\t}\n\t\t\tcatch (IOException ex) {\n\t\t\t System.out.println(\"An error occured :: \" + ex.getMessage());\n\t\t\t}\n\t\t }", "@Override\n\tpublic void saveData()\n\t{\n ssaMain.d1.pin = ssaMain.tmp_pin1;\n ssaMain.d1.balance = ssaMain.tmp_balance1;\n System.out.println(\"Your account has been established successfully.\");\n\t}", "protected void writeConfigurationFile(FileStore fileStore)\n {\n // TODO: configurable max attempts for creating a configuration file.\n\n try\n {\n AVList configParams = this.getConfigurationParams(null);\n this.writeConfigurationParams(configParams, fileStore);\n }\n catch (Exception e)\n {\n String message = Logging.getMessage(\"generic.ExceptionAttemptingToWriteConfigurationFile\");\n Logging.logger().log(java.util.logging.Level.SEVERE, message, e);\n }\n }", "public void saveSelf() {\n\t\tCRFileIOHelper.stringToFile(this.toString(), controller.getReportController().getCurrentFilePath() + \"parameters\");\n\t}", "protected void storeTestConf(Properties props) throws IOException\n {\n ByteArrayOutputStream arrayOutputStream = new ByteArrayOutputStream();\n DataOutputStream dataStream = new DataOutputStream(arrayOutputStream); \n createJobConf().write(dataStream); \n dataStream.flush();\n props.setProperty(\"test.conf\", new String(Base64.encodeBase64(arrayOutputStream.toByteArray())));\n }", "public interface Constants {\n String SERVER_ADDRESS = \"http://10.21.238.153:8080/encryptvideoweb\";\n String PUBLISH_ADDRESS = \"rtmp://10.21.238.153/live/[stream_name]\";\n //replace [stream_name] with real stream name\n String UPLOAD_ADDRESS = \"http://10.21.238.153/upload.php\";\n String EXECUTE_ADDRESS = \"http://10.21.238.153/execute_enc.php\";\n String ECCURVE_NAME = \"secp256k1\";\n SecP256K1Curve ECCURVE = new SecP256K1Curve();\n String SHARED_PREFERENCES = \"cookiework.encryptedvideopublish.sp\";\n int CONNECT_TIMEOUT = 8000;\n int READ_TIMEOUT = 8000;\n String DB_NAME = \"publisher_db\";\n int DB_VERSION = 2;\n String TIME_LOG_TAG = \"TIME_LOG\";\n}", "@Override\n public boolean configure(StaplerRequest req, JSONObject formData) throws FormException {\n\n iniLocation = formData.getString(\"iniLocation\");\n iniContents = formData.getString(\"iniContents\");\n commandG2Z = formData.getString(\"commandG2Z\");\n commandZ2G = formData.getString(\"commandZ2G\");\n\n String iniFullPath;\n\n if (System.getProperty(\"JENKINS_HOME\") != null) {\n iniFullPath = System.getProperty(\"JENKINS_HOME\") + \"/\" + iniLocation;\n } else {\n if (System.getProperty(\"user.home\") != null) {\n iniFullPath = System.getProperty(\"user.home\") + \"/\" + iniLocation;\n } else {\n iniFullPath = \"/var/lib/jenkins\" + \"/\" + iniLocation;\n }\n }\n\n File file = new File(iniFullPath);\n\n try {\n if (!file.exists()) {\n if (!(file.getParentFile().exists())) {\n if (!(file.getParentFile().mkdirs())) {\n throw new IOException(\"Unable to create directory \" + iniFullPath );\n }\n }\n if (!(file.createNewFile())) {\n throw new IOException(\"Unable to create file \" + iniFullPath );\n }\n }\n } catch (IOException e) {\n System.out.println(\"File could not be created or opened: \" + iniFullPath);\n e.printStackTrace();\n }\n\n if (file.exists()) {\n try (Writer fstream = new OutputStreamWriter(new FileOutputStream(iniFullPath), \"UTF8\");) {\n fstream.write(iniContents);\n fstream.flush();\n fstream.close();\n System.out.println(\"File written Succesfully: \" + iniFullPath);\n } catch (IOException e) {\n System.out.println(\"File write NOT Succesfully: \" + iniFullPath);\n e.printStackTrace();\n }\n }\n save();\n return super.configure(req,formData);\n }", "public interface ArchivaConfiguration\n{\n\n\n String USER_CONFIG_PROPERTY = \"archiva.user.configFileName\";\n String USER_CONFIG_ENVVAR = \"ARCHIVA_USER_CONFIG_FILE\";\n\n /**\n * Get the configuration.\n *\n * @return the configuration\n */\n Configuration getConfiguration();\n\n /**\n * Save any updated configuration.\n *\n * @param configuration the configuration to save\n * @throws org.apache.archiva.components.registry.RegistryException\n * if there is a problem saving the registry data\n * @throws IndeterminateConfigurationException\n * if the configuration cannot be saved because it was read from two sources\n */\n void save( Configuration configuration )\n throws RegistryException, IndeterminateConfigurationException;\n\n /**\n * Save any updated configuration. This method allows to add a tag to the thrown event.\n * This allows to verify the origin if the caller is the same as the listener.\n *\n * @param configuration the configuration to save\n * @param eventTag the tag to add to the thrown event\n * @throws org.apache.archiva.components.registry.RegistryException\n * if there is a problem saving the registry data\n * @throws IndeterminateConfigurationException\n * if the configuration cannot be saved because it was read from two sources\n */\n void save( Configuration configuration, String eventTag )\n throws RegistryException, IndeterminateConfigurationException;\n\n /**\n * Determines if the configuration in use was as a result of a defaulted configuration.\n *\n * @return true if the configuration was created from the default-archiva.xml as opposed\n * to being loaded from the usual locations of ${user.home}/.m2/archiva.xml or\n * ${appserver.base}/conf/archiva.xml\n */\n boolean isDefaulted();\n\n /**\n * Add a configuration listener to notify of changes to the configuration.\n *\n * @param listener the listener\n */\n void addListener( ConfigurationListener listener );\n\n /**\n * Remove a configuration listener to stop notifications of changes to the configuration.\n *\n * @param listener the listener\n */\n void removeListener( ConfigurationListener listener );\n\n /**\n * Add a registry listener to notify of events in spring-registry.\n *\n * @param listener the listener\n * TODO: Remove in future.\n */\n void addChangeListener( RegistryListener listener );\n\n void removeChangeListener( RegistryListener listener );\n\n /**\n * reload configuration from file included registry\n *\n * @since 1.4-M1\n */\n void reload();\n\n public Locale getDefaultLocale();\n\n public List<Locale.LanguageRange> getLanguagePriorities();\n\n public Path getAppServerBaseDir();\n\n /**\n * Returns the base directory for repositories that have a relative location path set.\n * @return\n */\n public Path getRepositoryBaseDir();\n\n /**\n * Returns the base directory for remote repositories\n * @return\n */\n public Path getRemoteRepositoryBaseDir();\n\n /**\n * Returns the base directory for repository group files.\n * @return\n */\n public Path getRepositoryGroupBaseDir();\n\n /**\n * Returns the data directory where repositories and metadata reside\n * @return\n */\n public Path getDataDirectory();\n\n /**\n * Return the used configuration registry\n * @return\n */\n Registry getRegistry( );\n}", "private void createConfigFile() {\n\t\tFile configFile = new File(projectRoot, SC_CONFIG_FILENAME);\n\t\tif (configFile.exists())\n\t\t\treturn;\n\n\t\tServiceCutterConfig config = createInitialServiceCutterConfig();\n\t\ttry {\n\t\t\tFileWriter writer = new FileWriter(configFile);\n\t\t\twriter.write(new Yaml().dumpAs(config, Tag.MAP, FlowStyle.BLOCK));\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\tthrow new ContextMapperApplicationException(\"Could not create '.servicecutter.yml' file!\", e);\n\t\t}\n\t}", "void saveConfig() {\r\n\t\ttry {\r\n\t\t\tPrintWriter out = new PrintWriter(new OutputStreamWriter(new BufferedOutputStream(new FileOutputStream(\"open-ig-mapeditor-config.xml\"), 64 * 1024), \"UTF-8\"));\r\n\t\t\ttry {\r\n\t\t\t\tout.printf(\"<?xml version='1.0' encoding='UTF-8'?>%n\");\r\n\t\t\t\tout.printf(\"<mapeditor-config>%n\");\r\n\t\t\t\tout.printf(\" <window x='%d' y='%d' width='%d' height='%d' state='%d'/>%n\", getX(), getY(), getWidth(), getHeight(), getExtendedState());\r\n\t\t\t\tout.printf(\" <language id='%s'/>%n\", ui.languageEn.isSelected() ? \"en\" : \"hu\");\r\n\t\t\t\tout.printf(\" <splitters main='%d' preview='%d' surfaces='%d'/>%n\", split.getDividerLocation(), toolSplit.getDividerLocation(), featuresSplit.getDividerLocation());\r\n\t\t\t\tout.printf(\" <editmode type='%s'/>%n\", ui.buildButton.isSelected());\r\n\t\t\t\tout.printf(\" <tabs selected='%d'/>%n\", propertyTab.getSelectedIndex());\r\n\t\t\t\tout.printf(\" <lights preview='%d' map='%s'/>%n\", alphaSlider.getValue(), Float.toString(alpha));\r\n\t\t\t\tout.printf(\" <filter surface='%s' building='%s'/>%n\", XML.toHTML(filterSurface.getText()), XML.toHTML(filterBuilding.getText()));\r\n\t\t\t\tout.printf(\" <allocation worker='%s' strategy='%d'/>%n\", ui.allocationPanel.availableWorkers.getText(), ui.allocationPanel.strategies.getSelectedIndex());\r\n\t\t\t\tout.printf(\" <view buildings='%s' minimap='%s' textboxes='%s' zoom='%s' standard-fonts='%s' placement-hints='%s'/>%n\", ui.viewShowBuildings.isSelected(), \r\n\t\t\t\t\t\tui.viewSymbolicBuildings.isSelected(), ui.viewTextBackgrounds.isSelected(), Double.toString(renderer.scale), ui.viewStandardFonts.isSelected()\r\n\t\t\t\t\t\t, ui.viewPlacementHints.isSelected());\r\n\t\t\t\tout.printf(\" <custom-surface-names>%n\");\r\n\t\t\t\tfor (TileEntry te : surfaceTableModel.rows) {\r\n\t\t\t\t\tout.printf(\" <tile id='%s' type='%s' name='%s'/>%n\", te.id, XML.toHTML(te.surface), XML.toHTML(te.name));\r\n\t\t\t\t}\r\n\t\t\t\tout.printf(\" </custom-surface-names>%n\");\r\n\t\t\t\tout.printf(\" <custom-building-names>%n\");\r\n\t\t\t\tfor (TileEntry te : buildingTableModel.rows) {\r\n\t\t\t\t\tout.printf(\" <tile id='%s' type='%s' name='%s'/>%n\", te.id, XML.toHTML(te.surface), XML.toHTML(te.name));\r\n\t\t\t\t}\r\n\t\t\t\tout.printf(\" </custom-building-names>%n\");\r\n\t\t\t\tout.printf(\" <recent>%n\");\r\n\t\t\t\tfor (int i = ui.fileRecent.getItemCount() - 1; i >= 2 ; i--) {\r\n\t\t\t\t\tout.printf(\" <entry file='%s'/>%n\", XML.toHTML(ui.fileRecent.getItem(i).getText()));\r\n\t\t\t\t}\r\n\t\t\t\tout.printf(\" </recent>%n\");\r\n\t\t\t\tout.printf(\"</mapeditor-config>%n\");\r\n\t\t\t} finally {\r\n\t\t\t\tout.close();\r\n\t\t\t}\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "public static void writeProperties() {\n\t\ttry {\n\t\t\tLogger.getLogger(Configuration.class).info(\"Write properties\");\n\t\t\tFileOutputStream fileOutputStream = new FileOutputStream(new File(configFileName));\n\t\t\tproperties.store(fileOutputStream, \"\");\n\t\t\tfileOutputStream.close();\n\n\t\t\t// externalToolParser.writeInFile(externalToolsList,\n\t\t\t// Configuration.extToolsConfigFileName);\n\t\t} catch (FileNotFoundException fne) {\n\t\t\tAlert.raise(fne, \"Cannot find configuration file: \" + fne.getMessage());\n\t\t} catch (IOException ioe) {\n\t\t\tAlert.raise(ioe, \"Cannot write configuration file: \" + ioe.getMessage());\n\t\t} catch (Exception ex) {\n\t\t\tAlert.raise(ex, \"Cannot write configuration file: \" + ex.getMessage());\n\t\t}\n\t}", "private void configStorage(){\n try {\n final StorageReference storageReference = FirebaseStorage.getInstance()\n .getReference(\"motolost/\"+ String.valueOf(Math.random()) + getFileExtension(filePath));\n storageReference.putFile(filePath)\n .continueWithTask(new Continuation<UploadTask.TaskSnapshot, Task<Uri>>() {\n @Override\n public Task<Uri> then(@NonNull Task<UploadTask.TaskSnapshot> task) throws Exception {\n if (!task.isSuccessful()) {\n throw task.getException();\n }\n return storageReference.getDownloadUrl();\n }\n }).addOnCompleteListener(new OnCompleteListener<Uri>() {\n @Override\n public void onComplete(@NonNull Task<Uri> task) {\n if (task.isSuccessful()) {\n Uri downloadUri = task.getResult();\n saveRegistry(downloadUri.toString());\n }\n }\n });\n } catch (Exception ex) {\n Constant.showMessage(\"Exception\", ex.getMessage(), this);\n }\n }", "public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n log(\"error saving resource to file\");\n }\n }", "private void saveGeneralData() {\n Settings.CRAWL_TIMEOUT = Integer.parseInt(spCrawlTimeout.getValue().toString()) * 1000;\n Settings.RETRY_POLICY = Integer.parseInt(spRetryPolicy.getValue().toString());\n Settings.RECRAWL_TIME = Integer.parseInt(spRecrawlInterval.getValue().toString()) * 3600000;\n Settings.RECRAWL_CHECK_TIME = Integer.parseInt(spRecrawlCheckTime.getValue().toString()) * 60000;\n\n Settings.saveSettings();\n }", "protected boolean configCert () {\n\t\t\n\t\tFile file = new File(\"confid\");\n\t\t\n\t\tif(!file.exists()) {\n\t\t\t\n\t\t\tfile.mkdir();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Directory created...\");\n\t\t\t\n\t\t}\n\n\t\t//File fl = new File();\n\t\t\n\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tKeyPairGenerator keygen = KeyPairGenerator.getInstance(\"RSA\");\n\t\t\t\t\n\t\t\t\tkeygen.initialize(4096, new SecureRandom());\n\t\t\t\t\n\t\t\t\tKeyPair key = keygen.generateKeyPair();\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tX509Certificate cert = new GenCert().selfSignedCert(key.getPublic(), key.getPrivate(),\"DeepDiveCA\", \"DeepDiveCA\");\n\t\t\t\t\n\t\t\t\tX509Certificate[] chain = new X509Certificate[1];\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\tKeyStore keystore = KeyStore.getInstance(\"jceks\");\n\t\t\t\t\n\t\t\t\tkeystore.load(null, \"winslygay\".toCharArray());\n\t\t\t\t\n\t\t\t\tchain[0] = cert;\n\t\t\t\t\n\t\t\t\tkeystore.setKeyEntry(\"rootPrivateKey\", key.getPrivate() , \"winslygay\".toCharArray(), chain );\n\t\t\t\t\t\t\t\n\t\t\t\tkeystore.store(new FileOutputStream(\"confid/keystore.jceks\"), \"winslygay\".toCharArray());\n\n\t\t\t\tif(keystore.size()!= 0||keystore.size()!=-1)\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"cert server all set up\");\n\t\t\t\t{\n\t\t\t\t\tisconfigured = true;\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (KeyStoreException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (CertificateException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn isconfigured;\n\t\t\n\n\t}", "public IntegrationRuntimeRegenerateKeyParameters() {\n }", "public interface Config {\n String SUCCESS = \"success\";\n String SUCCESS_CODE = \"10000\";\n String ERROR = \"error\";\n String ERROR_CODE = \"20000\";\n\n String ROLE_ADMIN = \"SYS_ADMIN\";\n String ROLE_GUEST = \"SYS_GUEST\";\n String IMG_FILE_PATH = \"upload/image\";\n String IMG_BANNER_TYPE = \"BANNER\";\n String IMG_ALBUM_TYPE = \"ALBUM\";\n String IMG_GLOBAL_TYPE = \"GLOBAL\";\n String GLOBAL_ABOUT_CODE=\"ABOUT\";\n String GLOBAL_REASON_CODE=\"REASON\";\n String AES_KEY = \"harlanking021109\";\n String HMAC_KEY = \"harlanking021109\";\n\n String CURRENT_USER_KEY = \"user\";\n}", "public void exportConfiguration(){\n\t\tcontroller.exportTestConfiguration();\n\t}", "public void Save() {\n try {\n ObjectOutputStream objUt = new ObjectOutputStream(\n new FileOutputStream(\"sparfil.txt\"));\n objUt.writeObject(this);\n } catch(Exception e) {\n System.out.println(e);}\n }", "public void save(File configFile) {\n configFile.getParentFile().mkdirs();\n\n try {\n this.getProperties().store(new FileWriter(configFile), \"Redis Credentials\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void run(int id) throws Exception {\n KeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\");\n keyGen.initialize(1024);\n KeyPair kp = keyGen.generateKeyPair();\n PublicKey puk = kp.getPublic();\n PrivateKey prk = kp.getPrivate();\n saveToFile(id,puk,prk);\n }", "private void saveProperties() {\n\n JiveGlobals.setXMLProperty(\"database.defaultProvider.driver\", driver);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.serverURL\", serverURL);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.username\", username);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.password\", password);\n\n JiveGlobals.setXMLProperty(\"database.defaultProvider.minConnections\",\n Integer.toString(minConnections));\n JiveGlobals.setXMLProperty(\"database.defaultProvider.maxConnections\",\n Integer.toString(maxConnections));\n JiveGlobals.setXMLProperty(\"database.defaultProvider.connectionTimeout\",\n Double.toString(connectionTimeout));\n }", "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 }", "private final void config() {\n\t\tfinal File configFile = new File(\"plugins\" + File.separator\n\t\t\t\t+ \"GuestUnlock\" + File.separator + \"config.yml\");\n\t\tif (!configFile.exists()) {\n\t\t\tthis.plugin.saveDefaultConfig();\n\t\t\tMain.INFO(\"Created default configuration-file\");\n\t\t}\n\t}", "private void encryptFile() {\r\n\t\tisEncryptComplete = false;\r\n\t\tlogger.encryStart = System.currentTimeMillis();\r\n\t\tif(file == null || !file.exists())\r\n\t\t\treturn;\r\n\t\t\r\n\t\tMDFSEncoder encoder = new MDFSEncoder(file, n1, n2, k1, k2);\r\n\t\t/*\r\n\t\t * n1=4;n2=4;k1=3;k2=4; MDFSEncoder encoder = new MDFSEncoder(file, 4,\r\n\t\t * 4, 3, 2);\r\n\t\t */\r\n\t\tif (!encoder.encode()) {\r\n\t\t\tlistener.onError(\"File Encryption Failed\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.encryStop = System.currentTimeMillis();\r\n\t\tList<FragmentInfo> fragInfos = encoder.getFileFragments();\r\n\t\tkeyShares = encoder.getKeyShares();\r\n\r\n\t\t// Store the file fragments in local SDCard\r\n\t\tFile fragsDir = AndroidIOUtils.getExternalFile(Constants.DIR_ROOT + \"/\"\r\n\t\t\t\t+ MDFSFileInfo.getDirName(file.getName(), file.lastModified()));\r\n\r\n\t\tMDFSDirectory directory = serviceHelper.getDirectory();\r\n\t\t// Create file fragments\r\n\t\tfor (FragmentInfo frag : fragInfos) {\r\n\t\t\tFile tmp = IOUtilities.createNewFile(fragsDir, frag.getFileName()\r\n\t\t\t\t\t+ \"__frag__\" + frag.getFragmentNumber());\r\n\t\t\tif (IOUtilities.writeObjectToFile(frag, tmp)) {\r\n\t\t\t\tdirectory.addFileFragment(file.lastModified(),\r\n\t\t\t\t\t\tfrag.getFragmentNumber());\r\n\t\t\t}\r\n\t\t}\r\n\t\tlistener.statusUpdate(\"Encryption Complete\");\r\n\t\tisEncryptComplete = true;\r\n\t\tdistributeFragments();\r\n\t}", "void saveKeys() throws IOException;", "public void save() {\r\n IniReader.write(FILE_NAME, \"x\", x, \"y\", y, \"fullscreen\", fullscreen, \"controlType\", controlType, \"vol\", volMul,\r\n \"keyUpMouse\", getKeyUpMouseName(), \"keyDownMouse\", getKeyDownMouseName(), \"keyUp\", getKeyUpName(), \"keyDown\", keyDownName,\r\n \"keyLeft\", keyLeftName, \"keyRight\", keyRightName, \"keyShoot\", keyShootName, \"keyShoot2\", getKeyShoot2Name(),\r\n \"keyAbility\", getKeyAbilityName(), \"keyEscape\", getKeyEscapeName(), \"keyMap\", keyMapName, \"keyInventory\", keyInventoryName,\r\n \"keyTalk\", getKeyTalkName(), \"keyPause\", getKeyPauseName(), \"keyDrop\", getKeyDropName(), \"keySellMenu\", getKeySellMenuName(),\r\n \"keyBuyMenu\", getKeyBuyMenuName(), \"keyChangeShipMenu\", getKeyChangeShipMenuName(), \"keyHireShipMenu\", getKeyHireShipMenuName());\r\n }", "public void run() {\n \t\t\tlogger.info(\"Saving settings ...\");\n \n \t\t\tif (exitSavables != null) {\n \t\t\t\tEnumeration enumeration = exitSavables.elements();\n \t\t\t\twhile (enumeration.hasMoreElements()) {\n \t\t\t\t\tSavable savable = (Savable) enumeration.nextElement();\n \t\t\t\t\ttry {\n \t\t\t\t\t\tsavable.save();\n \t\t\t\t\t} catch (StorageException se) {\n \t\t\t\t\t\tlogger.log(Level.SEVERE,\n \t\t\t\t\t\t\t\t\"Error while saving a resource inside the shutdown hook.\", se);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tFileAccess.cleanKeypool(MainFrame.keypool);\n \n \t\t\tlogger.info(\"Bye!\");\n \t\t}", "void storeApplicationConfig(AppConfig appConfig);", "private void saveData(){\n\t\tsynchronized(onlineAllInfoList){\n\t\t\tRecorder.save(onlineAllInfoList, onlineAllInfoListFileName);\n\t\t}\n\t\t//System.out.println(\"Saving onlineCompetitionInfoList...\");System.out.flush();\n\t\tsynchronized(onlineCompetitionInfoList){\n\t\t\tRecorder.save(onlineCompetitionInfoList, onlineCompetitionInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving competitionList...\");System.out.flush();\n\t\tsynchronized(competitionList){\n\t\t\tRecorder.save(competitionList, competitionInfoListFileName);\n\t\t}\n\t\t//System.out.println(\"Saving allAIInfoList...\");System.out.flush();\n\t\tsynchronized(allAIInfoList){\n\t\t\tRecorder.save(allAIInfoList, allInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving waitingInfoList...\");System.out.flush();\n\t\tsynchronized(waitingInfoList){\n\t\t\tRecorder.save(waitingInfoList, waitingInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving sortedAIInfoPool...\");System.out.flush();\n\t\tsynchronized(sortedAIInfoPool){\n\t\t\tRecorder.save(sortedAIInfoPool, sortedInfoListFileName);\t\t\t\n\t\t}\n\t}", "public String dumpConfig() \n\t\t\tthrows PermissionDeniedException, FileNotFoundException;", "private static void saveJsonFile() {\n Log.println(Log.INFO, \"FileAccessing\", \"Writing settings file.\");\n JsonObject toSave = new JsonObject();\n JsonArray mappingControls = new JsonArray();\n for (int i = 0; i < TaskDetail.actionToTask.size(); i++) {\n JsonObject individualMapping = new JsonObject();\n TaskDetail detail = TaskDetail.actionToTask.valueAt(i);\n byte combinedAction = (byte) TaskDetail.actionToTask.keyAt(i);\n assert detail != null;\n int outerControl = detail.getTask();\n individualMapping.addProperty(\"combinedAction\", combinedAction);\n individualMapping.addProperty(\"task\", outerControl);\n mappingControls.add(individualMapping);\n }\n toSave.add(\"mappingControls\", mappingControls);\n\n JsonArray generalSettings = new JsonArray();\n for (SettingDetail setting : SettingDetail.settingDetails) {\n JsonObject individualSetting = new JsonObject();\n int status = setting.getCurrentIdx();\n individualSetting.addProperty(\"status\", status);\n generalSettings.add(individualSetting);\n }\n toSave.add(\"generalSettings\", generalSettings);\n\n JsonArray deviceList = new JsonArray();\n for (DeviceDetail device : DeviceDetail.deviceDetails) {\n JsonObject individualDevice = new JsonObject();\n individualDevice.addProperty(\"name\", device.deviceName);\n individualDevice.addProperty(\"mac\", device.macAddress);\n deviceList.add(individualDevice);\n }\n toSave.add(\"devices\", deviceList);\n\n JsonArray sensitivityList = new JsonArray();\n for (SensitivitySetting sensitivity : SensitivitySetting.sensitivitySettings) {\n JsonObject individualSensitivity = new JsonObject();\n individualSensitivity.addProperty(\"factor\", sensitivity.multiplicativeFactor);\n individualSensitivity.addProperty(\"sensitivity\", sensitivity.sensitivity);\n sensitivityList.add(individualSensitivity);\n }\n toSave.add(\"sensitivities\", sensitivityList);\n\n toSave.addProperty(\"currentlySelected\", DeviceDetail.getIndexSelected());\n\n try {\n FileOutputStream outputStreamWriter = context.openFileOutput(\"settingDetails.json\", Context.MODE_PRIVATE);\n outputStreamWriter.write(toSave.toString().getBytes());\n outputStreamWriter.close();\n } catch (IOException e) {\n Log.println(Log.ERROR, \"FileAccessing\", \"Settings file writing error.\");\n }\n }", "private void serialize() {\r\n if (newFile) {\r\n this.newFile = this.serializeAs();\r\n } else if (!newFile && !path.equals(\"\")) {\r\n sr.save(this.path);\r\n }\r\n }", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\t // configures upload settings\n DiskFileItemFactory factory = new DiskFileItemFactory();\n // sets memory threshold - beyond which files are stored in disk\n factory.setSizeThreshold(MEMORY_THRESHOLD);\n // sets temporary location to store files\n factory.setRepository(new File(System.getProperty(\"java.io.tmpdir\")));\n\n ServletFileUpload upload = new ServletFileUpload(factory);\n \n \n // constructs the directory path to store upload file\n // this path is relative to application's directory\n String uploadPath = getServletContext().getRealPath(\"\") + File.separator + UPLOAD_DIRECTORY;\n // creates the directory if it does not exist\n File uploadDir = new File(uploadPath);\n if (!uploadDir.exists()) {\n uploadDir.mkdir();\n }\n int keySize= 0,iterationCount=0;\n String salt =\"\",passphrase=\"\",ciphertext=\"\",iv=\"\",fileData=\"\",Cdata=\"\",plainTextArea1=\"\";\n List<FileItem> formItems;\n String fileName =\"\";\n\t\ttry {\n\t\t\tformItems = upload.parseRequest(request);\n\t\t\tfor (FileItem item : formItems) {\n\t\t\t // processes only fields that are not form fields\n\t\t\t if (!item.isFormField()) {\n\t\t\t fileName = new File(item.getName()).getName();\n\t\t\t try {\n\t\t\t\t\t\tfileData = item.getString();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t } else {\n\t\t\t //here...\n\t\t\t String fieldname = item.getFieldName();\n\t\t\t String fieldvalue = item.getString();\n\t\t\t \n\t\t\t if (fieldname.equals(\"passphrase\")) {\n\t\t\t \tpassphrase = fieldvalue;\n\t\t\t } else if (fieldname.equals(\"plainTextArea\")) {\n\t\t\t \tciphertext = fieldvalue;\n\t\t\t }else if (fieldname.equals(\"plainTextArea1\")) {\n\t\t\t \tplainTextArea1 = fieldvalue;\n\t\t\t }else if (fieldname.equals(\"secretKeys\")) {\n\t\t\t \tCdata = fieldvalue;\n\t\t\t }\n\t\t\t }\n\t\t\t}\n\t\t} catch (FileUploadException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \n\t\ttry {\n\t\t\tSystem.out.println(Cdata);\n\t\t\tString keysData = RSACryptoUtil.decryptWebPIN(Cdata);\n\t\t\tSystem.out.println(keysData);\n\t\t\tString[] dataAry = keysData.split(\"@@@\"); \n\t\t\tkeySize = Integer.valueOf(dataAry[4]);\n\t\t\titerationCount = Integer.valueOf(dataAry[3]);\n\t\t\tsalt = String.valueOf(dataAry[0]);\n\t\t\tiv = String.valueOf(dataAry[1]);\n\t\t\tpassphrase = String.valueOf(dataAry[2]);\n\t\t}catch (Exception e) {\n\t response.setStatus(HttpServletResponse.SC_OK);\n\t response.getWriter().print(\"Security keys tampered!\");\n\t\t}\n\t\t\t\t\n\t AesUtil aesUtil = new AesUtil(keySize, iterationCount);\n\t String plaintext = aesUtil.decrypt(salt, iv, passphrase, ciphertext);\n\t String fileDataIs = aesUtil.decrypt(salt, iv, passphrase, fileData);\n\t String replaceStr = \"\";\n\t if(fileName.endsWith(\".txt\"))\n\t \treplaceStr =\"data:text/plain;base64,\";\n\t else if(fileName.endsWith(\".js\"))\n\t \treplaceStr =\"data:application/javascript;base64,\";\n\t else if(fileName.endsWith(\".jpeg\") || fileName.endsWith(\".jpg\") )\n\t \treplaceStr=\"data:image/jpeg;base64,\";\n\t else if(fileName.endsWith(\".png\"))\n\t \treplaceStr=\"data:image/png;base64,\";\n\t \n\t \n\t if(!fileName.endsWith(\".jpeg\") && !fileName.endsWith(\".jpg\") && !fileName.endsWith(\".png\"))\n\t FileUtils.writeStringToFile(new File(uploadPath+File.separator+fileName), new String(Base64.decodeBase64(fileDataIs.replaceAll(replaceStr, \"\").getBytes())));\n\t else{\n\t \tbyte[] data = Base64.decodeBase64(fileDataIs.replaceAll(replaceStr, \"\"));\n\t try (OutputStream stream = new FileOutputStream(\"D:/sudhakar/eclipse-jee-luna-R-win32-x86_64/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Encryption/image_upload/\"+fileName)) {\n\t \t\tstream.write(data);\n\t \t}\n\t }\n \n response.setStatus(HttpServletResponse.SC_OK);\n response.getWriter().print(plaintext+\":\"+plainTextArea1);\n }", "public void intiSettings()throws Exception{\r\n\r\n\t\tinputStream = new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\config.properties\");\r\n\t\tconfig.load(inputStream);\r\n\t\t\r\n\t\tprop.put(\"bootstrap.servers\", config.getProperty(\"bootstrap.servers\"));\r\n\t\tprop.put(\"key.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\r\n\t\tprop.put(\"value.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\r\n\r\n\t\ttopicName = config.getProperty(\"TopicName\");\r\n\t\ttopicName = createTopic(topicName);\r\n\t\t\r\n\t\tmessageList = Arrays.asList(config.getProperty(\"messages\").split(\"\\\\|\"));\r\n\t}", "protected void printSimConfig(int seqNum){\n\t\t/*File superAuctionFile = new File(System.getProperty(\"user.dir\")+\n\t\t\t\t\"/src/auctions/\"+gameName+\"/Config_SimultaneousAuction_\"+seqNum+\".txt\");*/\n\t\tFile superAuctionFile = new File(\"src/auctions/Config_SimultaneousAuction_\"+seqNum+\".txt\");\n\t\tif(!superAuctionFile.exists()){\n\t\t\ttry{\n\t\t\t\tsuperAuctionFile.createNewFile();\n\t\t\t\tFileWriter fstreamsuper = new FileWriter(superAuctionFile);\n\t\t\t\tBufferedWriter outSuper = new BufferedWriter(fstreamsuper);\n\n//\t\t\t\toutSuper.write(\"Valuation:\"+valueFxn +\" Config_File:Config_Valuation\"+valueFxn+\".txt\");\n//\t\t\t\tif(valueFxn.compareToIgnoreCase(\"contracts\")==0){\n//\t\t\t\t\toutSuper.write(\" Contracts_Per_Client:\"+numContracts);\n//\t\t\t\t}\n//\t\t\t\toutSuper.newLine();\n\n\n\t\t\t\t//String auctName = \"\";\n\t\t\t\t//for(int j = (maxSim*maxSeq)-1; j>0;){\n\t\t\t\tfor(int j = maxSim; j>0; j--){\n\t\t\t\t\t/* METHOD CREATED\n\t\t\t\t\tswitch(auctionsSchedule[maxSeq*(j-1)+(seqNum)]){\n\t\t\t\t\t\tcase 1: auctName = \"FirstPriceAuction\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2: auctName = \"SecondPriceAuction\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3: auctName = \"AscendingAuction\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4: auctName = \"DescendingAuction\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\t\t\t\t\toutSuper.write(\"Auction_Type:\"+ getAuctionName(auctionsSchedule[maxSeq*(j-1)+(seqNum)]));\n\t\t\t\t\toutSuper.write(\" Config_File:Config_\"+\n\t\t\t\t\t\t\tgetAuctionName(auctionsSchedule[maxSeq*(j-1)+(seqNum)])+\"_\"+seqNum+\"_\"+((maxSeq*(j-1)+(seqNum))/maxSeq)+\".txt\");\n\t\t\t\t\toutSuper.newLine();\n\n\n\n\t\t\t\t}\n\t\t\t\toutSuper.close();\n\t\t\t}catch(IOException e){\n\t\t\t\tSystem.out.println(\"File error creating Simultaneous Config.\");\n\t\t\t}\n\n\t\t}\n\n\t}" ]
[ "0.6592397", "0.60739464", "0.6008263", "0.5961772", "0.5890248", "0.58853555", "0.58666176", "0.5859791", "0.58551383", "0.5854346", "0.5824215", "0.56946915", "0.5679379", "0.56703764", "0.560865", "0.55911845", "0.55612046", "0.55426604", "0.5539078", "0.55237603", "0.54633045", "0.54304945", "0.54262596", "0.5422113", "0.5416865", "0.5402815", "0.5398451", "0.539049", "0.53778934", "0.5365411", "0.5338853", "0.53184366", "0.53105956", "0.52888936", "0.52657366", "0.52631944", "0.5260746", "0.52542365", "0.5232186", "0.5229602", "0.5209293", "0.52044094", "0.5202542", "0.5183166", "0.5173044", "0.5154283", "0.51480174", "0.5144877", "0.5142073", "0.5124019", "0.51175594", "0.5114532", "0.51140034", "0.51092327", "0.51070696", "0.5093784", "0.50836307", "0.5081833", "0.5078318", "0.5075615", "0.5073787", "0.50716215", "0.5065268", "0.506104", "0.506081", "0.50516874", "0.50447965", "0.5035457", "0.5017207", "0.5000128", "0.49920845", "0.49915093", "0.4990049", "0.49821442", "0.49612772", "0.4947095", "0.49374864", "0.49332893", "0.49312627", "0.49272245", "0.49219447", "0.49189147", "0.4907895", "0.48993126", "0.48950484", "0.48913783", "0.48656234", "0.48595443", "0.48583895", "0.48567873", "0.48549452", "0.48494327", "0.48430648", "0.48343456", "0.48341173", "0.48318234", "0.48285964", "0.48271924", "0.48222652", "0.48202586" ]
0.70520115
0
This Private Method generates a random IV dedicated for the Cipher if a seed was giving as an input, that seed will be used in the method setSeed
private byte[] generateRandomIV() { SecureRandom rand = new SecureRandom(); if (givingSecureRandomSeedText != null && !(givingSecureRandomSeedText.equals(""))) { rand.setSeed(Long.parseLong(givingSecureRandomSeedText)); } byte[] iv = new byte[16]; rand.nextBytes(iv); return iv; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static IvParameterSpec generateIV() {\n\t\t// Make a byte array with random bits\n\t byte[] iv = new byte[16];\n\t new SecureRandom().nextBytes(iv);\n\t return new IvParameterSpec(iv);\n\t}", "public static byte[] generateIv() throws GeneralSecurityException {\n return randomBytes(IV_LENGTH_BYTES);\n }", "private String generateIV(){\n \t String iv = \"\";\n \t \n \t Random randomGenerator = new Random();\n \t for (int idx = 1; idx <= 10; ++idx){\n \t int randomInt = randomGenerator.nextInt(72);\n \t if(randomInt == '\\\\') randomInt='c';\n \t iv = iv + \"\" + (char)(0x30+randomInt);\n \t }\n \t \n \t return iv;\n }", "public static byte[] generateIV() {\n\n byte[] bytes = new byte[ByteUtils.byteLength(IV_BIT_LENGTH)];\n JCASupportConfiguration.getInstance().getSecureRandom().nextBytes(bytes);\n return bytes;\n }", "public IvParameterSpec SecretKeyInit() {\n\t\t\tSystem.out.println(\"\");\n\t\t\tbyte[] iv = new byte[128/8];\n\t\t\tSystem.out.println(\"BEFORE:\"+iv);\n\t\t\tnew Random().nextBytes(iv);\n\t\t\tSystem.out.println(\"AFTER:\"+iv);\n\t\t\tIvParameterSpec I = new IvParameterSpec(iv);\n\t\t\t\n\t\t\tthis.ivspec = I;\n\t\t\t\n\t\t\treturn I;\n\t\t}", "public static byte[] getIv()\r\n/* 161: */ {\r\n/* 162: */ try\r\n/* 163: */ {\r\n/* 164:139 */ return getPropertyBytes(\"aesiv\");\r\n/* 165: */ }\r\n/* 166: */ catch (Exception e)\r\n/* 167: */ {\r\n/* 168:141 */ log.warning(\"Error getting secret: \" + e.getMessage());\r\n/* 169: */ }\r\n/* 170:143 */ return new byte[0];\r\n/* 171: */ }", "private static byte[] generateSalt() {\n byte[] salt = new byte[Constants.CIPHER_SALT_LENGTH];\n SecureRandom rand = new SecureRandom();\n rand.nextBytes(salt);\n return salt;\n }", "private void initializeCipherinitVector() {\n try {\n cipher = Cipher.getInstance(\"AES/CBC/NoPadding\");\n } catch (NoSuchAlgorithmException e) {\n\n e.printStackTrace();\n } catch (NoSuchPaddingException e) {\n e.printStackTrace();\n }\n\n /* set Application Master Key */\n bytesKey = KEY_APP_MASTER.getBytes();\n\n /* Initialize init vector of 16 bytes with 0xCD. It could be anything */\n byte[] ivSpec = new byte[16];\n Arrays.fill(ivSpec, (byte) 0xCD);\n iv = new IvParameterSpec(ivSpec);\n\n }", "private static byte[] genKeyWithSeed(String seed) throws Exception {\n\t\tKeyGenerator kg = KeyGenerator.getInstance(ALGORITHM);\n\t\tkg.init(256, new SecureRandom(seed.getBytes()));\n\n\t\tSecretKey secretKey = kg.generateKey();\n\t\treturn secretKey.getEncoded();\n\t}", "@SuppressWarnings(\"deprecation\")\n @Test\n public void AesWithIVBlock() throws IOException {\n byte[] bytes = \"hello, my name is inigo montoya\".getBytes();\n\n SecureRandom rand = new SecureRandom(entropySeed.getBytes());\n\n PaddedBufferedBlockCipher aesEngine = new PaddedBufferedBlockCipher(new CBCBlockCipher(new AESFastEngine()));\n\n byte[] key = new byte[32]; // 256bit key\n byte[] iv = new byte[aesEngine.getUnderlyingCipher().getBlockSize()];\n\n // note: the IV needs to be VERY unique!\n rand.nextBytes(key);\n rand.nextBytes(iv);\n\n\n byte[] encryptAES = CryptoAES.encryptWithIV(aesEngine, key, iv, bytes, logger);\n byte[] decryptAES = CryptoAES.decryptWithIV(aesEngine, key, encryptAES, logger);\n\n if (Arrays.equals(bytes, encryptAES)) {\n fail(\"bytes should not be equal\");\n }\n\n if (!Arrays.equals(bytes, decryptAES)) {\n fail(\"bytes not equal\");\n }\n }", "protected CipherIV instantiateCipherIV (byte[] cipher, byte[] iv) {\n return new CipherIV(cipher, iv);\n }", "private String getRandomSeed() {\n long newSeed = 0;\n Random randBoolean = new Random(randomSeed);\n for (int i = 0; i < 48; i++) {\n if (randBoolean.nextBoolean()) {\n newSeed += 1 << i;\n }\n }\n if (newSeed < 0) {\n newSeed = Math.abs(newSeed);\n }\n\n String s = \"\";\n if (newSeed == 0) {\n s += \"0\";\n } else {\n while (newSeed != 0) {\n long num = (newSeed & (0xF));\n if (num < 10) {\n s = num + s;\n } else {\n s = ((char) (num + 55)) + s;\n }\n newSeed = newSeed >> 4;\n }\n }\n return s;\n }", "void new_seed( Seed seed );", "protected SecretKey generateRandomAESKey() throws GeneralSecurityException {\n fixPrng();\n // Instantiante KeyGenerator\n KeyGenerator keyGenerator = KeyGenerator.getInstance(AES_INSTANCE);\n // Initialize generator with the desired keylength\n keyGenerator.init(AES_128);\n // Return new key\n return keyGenerator.generateKey();\n }", "private byte[] calculateRFC7905Iv(byte[] nonce, byte[] iv) {\n byte[] padding = new byte[] { 0x00, 0x00, 0x00, 0x00 };\n long nonceLong = ArrayConverter.bytesToLong(nonce);\n byte[] temp = ArrayConverter.concatenate(padding, ArrayConverter.longToUint64Bytes(nonceLong),\n (RecordAEADCipher.AEAD_IV_LENGTH - padding.length));\n\n for (int i = 0; i < RecordAEADCipher.AEAD_IV_LENGTH; ++i) {\n temp[i] ^= iv[i];\n }\n return temp;\n }", "public byte[] newSeed() {\r\n return engineSpi.newSeed();\r\n }", "public static SecretKeySpec key_from_seed(byte[] seed) {\n\t// compute SHA-1 hash of the seed\n\tbyte[] hashval = null;\n\ttry {\n\t MessageDigest sha1 = MessageDigest.getInstance(\"SHA1\");\n\t hashval = sha1.digest(seed);\n\t}\n\tcatch (Exception e) {\n\t e.printStackTrace();\n\t}\n\n\t// extract 1st AES_KEY_LEN bytes for the key material\n\tbyte[] key = new byte[AES_KEY_LEN];\n\tSystem.arraycopy(hashval, 0, key, 0, AES_KEY_LEN);\n\n\t// initialize the key\n\tSecretKeySpec keySpec = new SecretKeySpec(key, \"AES\");\n\treturn keySpec;\n }", "public void setInitializationVector(byte[] iv) {\n if (iv != null) {\n this.initialization_vector = iv;\n }\n }", "public static void setIv(byte[] bytes)\r\n/* 174: */ {\r\n/* 175: */ try\r\n/* 176: */ {\r\n/* 177:148 */ setPropertyBytes(\"aesiv\", bytes);\r\n/* 178: */ }\r\n/* 179: */ catch (Exception e)\r\n/* 180: */ {\r\n/* 181:150 */ log.warning(\"Error setting secret: \" + e.getMessage());\r\n/* 182: */ }\r\n/* 183: */ }", "private static byte[] actualIVOf(Cipher cipher) {\n\n GCMParameterSpec actualParams = actualParamsOf(cipher);\n\n byte[] iv = actualParams.getIV();\n int tLen = actualParams.getTLen();\n\n validate(iv, tLen);\n\n return iv;\n }", "public void setRNG(long seed);", "private static Cipher getEncryptionCipher(byte[] salt, byte[] iv)\n throws GeneralSecurityException, IOException {\n\n // key is a static password + random salt, iv is random\n byte[] password = InputOperations\n .cryptPassword(Constants.CIPHER_PASSWORD + new String(salt, Constants.FILE_ENCODING));\n SecretKey secretKey = new SecretKeySpec(password, Constants.CIPHER);\n\n Cipher cipher = Cipher.getInstance(Constants.CIPHER_PADDING);\n if (iv == null) {\n cipher.init(Cipher.ENCRYPT_MODE, secretKey);\n } else {\n cipher.init(Cipher.DECRYPT_MODE, secretKey, new IvParameterSpec(iv));\n }\n return cipher;\n }", "byte[] get_secure_random_bytes();", "public Vigenere(long seed, int length)\n\t{\n\t\tStringBuilder key = new StringBuilder();\n\t\tRandom rand = new Random(seed);\n\n\t\tfor (int i = 0; i < length; i++)\n\t\t{\n\t\t\tint nextValue = rand.nextInt(26);\n\t\t\tkey.append((char)(nextValue + 'A'));\n\t\t}\n\n\t\tthis.key = key.toString();\n\t}", "public static void main(String[] args) throws GeneralSecurityException, IOException {\n\n byte[] key = new byte[16];\n\n byte[] iv = new byte[32];\n\n\n Properties properties = new Properties();\n\n properties.put(CryptoRandomFactory.CLASSES_KEY,\n\n CryptoRandomFactory.RandomProvider.OPENSSL.getClassName());\n\n\n // Gets the 'CryptoRandom' instance.\n\n try (CryptoRandom random = CryptoRandomFactory.getCryptoRandom(properties)) {\n\n\n // Show the actual class (may be different from the one requested)\n\n System.out.println(random.getClass().getCanonicalName());\n\n\n // Generate random bytes and places them into the byte arrays.\n\n random.nextBytes(key);\n\n random.nextBytes(iv);\n\n\n }\n\n\n // Show the generated output\n\n System.out.println(Arrays.toString(key));\n\n System.out.println(Arrays.toString(iv));\n\n }", "public SecretKey generarClaveSecreta() throws NoSuchAlgorithmException {\n KeyGenerator keyGenerator = KeyGenerator.getInstance(\"AES\");\n keyGenerator.init(256);\n SecretKey secretKey = keyGenerator.generateKey();\n return secretKey;\n }", "public static byte[] generateRandomKey_AES128() {\n return ByteUtil.randomBytes(16);\n }", "public static byte[] initSalt() throws Exception {\n\n // Get a random number \n SecureRandom random = new SecureRandom();\n\n // generate the SALT\n return random.generateSeed(8);\n }", "String getSeed();", "public FlipCoin(int seed){\n this.rander = new Random(seed);\n }", "public byte[] generateSalt()\n\t{\n\t\tSecureRandom sr = new SecureRandom();\n\t\tbyte[] ret = new byte[256];\n\t\tsr.nextBytes(ret);\n\t\treturn ret;\n\t}", "@Test\n public void testCipherNew() throws Exception {\n long start = System.currentTimeMillis();\n for(int i=0; i<max; i++) {\n Cipher cipher = Cipher.getInstance(\"AES/OFB8/NoPadding\"); // corresponds to the protection initialized above\n cipher.init(Cipher.ENCRYPT_MODE, key, iv); \n byte[] ciphertext = cipher.doFinal(plaintext);\n }\n long stop = System.currentTimeMillis();\n log.debug(\"testCipherNew {} ms\", stop-start);\n }", "protected CipherIV encryptAES(byte[] plainText, SecretKey secretKey) throws GeneralSecurityException {\n fixPrng();\n // Instantiate Cipher with the AES Instance\n final Cipher cipher = Cipher.getInstance(AES_MODE);\n // Generate random bytes for the initialization vector\n final SecureRandom secureRandom = new SecureRandom();\n final byte[] initVector = new byte[IVECTOR_LENGTH_IN_BYTE];\n secureRandom.nextBytes(initVector);\n final IvParameterSpec initVectorParams = new IvParameterSpec(initVector);\n // Initialize cipher object with the desired parameters\n cipher.init(Cipher.ENCRYPT_MODE, secretKey, initVectorParams);\n // Encrypt\n byte[] cipherText = cipher.doFinal(plainText);\n // Return ciphertext and iv in CipherIV object\n return new CipherIV(cipherText, cipher.getIV());\n }", "public String generateVSVID();", "public static byte[] generateSalt() throws GeneralSecurityException { \n return CryptorFunctions.getRandomBytes(SECRETKEY_DERIVATION_SALT_SIZE_BYTE);\n }", "public byte[] getSeed() {\n return seed;\n }", "private byte[] getRandomSalt() {\n\t\tbyte[] randomSalt = new byte[SALT_LENGTH];\n\t\tSecureRandom secureRandom = new SecureRandom();\n\t\tsecureRandom.nextBytes(randomSalt);\n\t\treturn randomSalt;\n\t}", "void setSeed(final long seed);", "@SuppressWarnings(\"deprecation\")\n @Test\n public void AesWithIVBlockStream() throws IOException {\n byte[] originalBytes = \"hello, my name is inigo montoya\".getBytes();\n ByteArrayInputStream inputStream = new ByteArrayInputStream(originalBytes);\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\n SecureRandom rand = new SecureRandom(entropySeed.getBytes());\n\n PaddedBufferedBlockCipher aesEngine = new PaddedBufferedBlockCipher(new CBCBlockCipher(new AESFastEngine()));\n\n byte[] key = new byte[32];\n byte[] iv = new byte[16];\n\n // note: the IV needs to be VERY unique!\n rand.nextBytes(key); // 256bit key\n rand.nextBytes(iv); // 128bit block size\n\n\n boolean success = CryptoAES.encryptStreamWithIV(aesEngine, key, iv, inputStream, outputStream, logger);\n\n if (!success) {\n fail(\"crypto was not successful\");\n }\n\n byte[] encryptBytes = outputStream.toByteArray();\n\n inputStream = new ByteArrayInputStream(outputStream.toByteArray());\n outputStream = new ByteArrayOutputStream();\n\n success = CryptoAES.decryptStreamWithIV(aesEngine, key, inputStream, outputStream, logger);\n\n\n if (!success) {\n fail(\"crypto was not successful\");\n }\n\n byte[] decryptBytes = outputStream.toByteArray();\n\n if (Arrays.equals(originalBytes, encryptBytes)) {\n fail(\"bytes should not be equal\");\n }\n\n if (!Arrays.equals(originalBytes, decryptBytes)) {\n fail(\"bytes not equal\");\n }\n }", "public static byte[] generateRandomSalt() {\n byte[] sBytes = new byte[SALT_LENGTH];\n RANDOM.nextBytes(sBytes);\n return sBytes;\n }", "private String createSalt()\r\n {\r\n SecureRandom random = new SecureRandom();\r\n byte bytes[] = new byte[20];\r\n random.nextBytes(bytes);\r\n StringBuilder sb = new StringBuilder();\r\n\r\n for (int i = 0; i < bytes.length; i++)\r\n {\r\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n\r\n String salt = sb.toString();\r\n return salt;\r\n }", "public long getSeed()\n {\n return randomSeed;\n }", "public static ByteSource getSaltInByteSource()\n {\n //Always use a SecureRandom generator\n \tRandomNumberGenerator randomGenerator = new SecureRandomNumberGenerator();\n //Create array for salt\n \tByteSource salt = randomGenerator.nextBytes();\n //return salt\n return salt;\n }", "void setSeed(long seed);", "private static SecureRandomAndPad createSecureRandom() {\n byte[] seed;\n File devRandom = new File(\"/dev/urandom\");\n if (devRandom.exists()) {\n RandomSeed rs = new RandomSeed(\"/dev/urandom\", \"/dev/urandom\");\n seed = rs.getBytesBlocking(20);\n } else {\n seed = RandomSeed.getSystemStateHash();\n }\n return new SecureRandomAndPad(new SecureRandom(seed));\n }", "public void seed(long seed) {\n }", "public static String encrypt(String seed, String plain) throws Exception {\r\nbyte[] rawKey = getRawKey(seed.getBytes());\r\nbyte[] encrypted = encrypt(rawKey, plain.getBytes());\r\nreturn Base64.encodeToString(encrypted, Base64.DEFAULT);\r\n}", "public static byte[] encrypt(byte[] plaintext, SecretKey secretKey) throws GeneralSecurityException {\n Cipher aesCipher = Cipher.getInstance(SECRETKEY_CIPHER_WRAP_ALGORITHM);\n \n //geenrate initialization vector\n //byte[] iv = AESCBCIntegrity.generateIV();\n //In the case of AES, a block is 16 bytes, or 128 bits. \n byte[] iv = CryptorFunctions.getRandomBytes(aesCipher.getBlockSize());\n \n aesCipher.init(Cipher.ENCRYPT_MODE, secretKey, new IvParameterSpec(iv));\n\n \n // * Now we get back the IV that will actually be used. Some Android\n // * versions do funny stuff w/ the IV, so this is to workaround bugs:\n iv = aesCipher.getIV();\n \n //finalize encode\n byte[] encodedText = aesCipher.doFinal(plaintext);\n \n //add init vector \n byte[] ivCipherConcat = Functions.byteConcat(iv, encodedText);\n\n return ivCipherConcat;\n }", "public byte[] encrypt(byte[] data, byte[] dv) throws Exception {\n // check if there is data to encrypt\n if (data.length == 0) {\n throw new Exception(\"No data to encrypt\");\n }\n\n // create iv\n byte[] iv = new byte[BLOCK_SIZE_BYTES];\n byte[] randomNumber = (new BigInteger(BLOCK_SIZE_BITS, m_secureRandom)).toByteArray();\n int a;\n for (a = 0; a < randomNumber.length && a < BLOCK_SIZE_BYTES; a++)\n iv[a] = randomNumber[a];\n for (; a < BLOCK_SIZE_BYTES; a++)\n iv[a] = 0;\n\n // init cipher instance\n m_cipher.init(Cipher.ENCRYPT_MODE, m_keySpec, new IvParameterSpec(dv));\n\n // return concatenation of iv + encrypted data\n return ArrayUtils.addAll(dv, m_cipher.doFinal(data));\n }", "protected CipherIV getCipherAndIVFromSharedPref(String spAlias, String ciphIVAlias) throws DataNotAvailableException {\n byte[] cipher = super.loadFromSharedPrefBase64(spAlias, ciphIVAlias + CIPHER_PART);\n byte[] iv = super.loadFromSharedPrefBase64(spAlias, ciphIVAlias + IV_PART);\n return new CipherIV(cipher, iv);\n }", "public static byte[] decryptByte (byte[] cipherText, SecretKey key,byte[] IV) throws Exception\n {\n //Create cipher for AES with PKCS Padding\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n //Get the spec of the genetated key, required for ciper\n SecretKeySpec keySpec = new SecretKeySpec(key.getEncoded(), \"AES\");\n //Get the spec of the generated iv, reuired for ciper\n IvParameterSpec ivSpec = new IvParameterSpec(IV);\n \n //use cipher to decrypt\n cipher.init(Cipher.DECRYPT_MODE, keySpec, ivSpec);\n byte[] decryptedText = cipher.doFinal(cipherText);\n return decryptedText;\n }", "private String generateSecretKey(){\n SecureRandom random = new SecureRandom();\n byte[] bytes = new byte[20];\n\n random.nextBytes(bytes);\n Base32 base32 = new Base32();\n return base32.encodeToString(bytes);\n }", "@PUT( CONTROLLER + OBJECT_ID_PATH + VERSION_PATH + IV_PATH )\n Response setObjectIv( @Path( ID ) UUID objectId, @Path( VERSION ) long version, @Body byte[] iv );", "public String generateSalt()\r\n\t{\r\n\t\tfinal Random r = new SecureRandom();\r\n\t\tbyte[] byteSalt = new byte[32];\r\n\t\tr.nextBytes(byteSalt);\r\n\t\tsalt = DatatypeConverter.printBase64Binary(byteSalt);\r\n\r\n\t\treturn salt;\r\n\t}", "public static byte[] generateSaltCipher(String data) {\n byte[] salt = Security.generateRandomSalt();\n byte[] cipher = Security.encryptData(data,salt);\n byte[] enc = new byte[salt.length + cipher.length];\n System.arraycopy(salt, 0, enc, 0, salt.length);\n System.arraycopy(cipher, 0, enc, salt.length, cipher.length);\n return enc;\n }", "public long getSeed()\r\n {\r\n return this.randomSeed;\r\n }", "public static long getSeed() {\r\n return seed;\r\n }", "public static String decrypt(String seed, String encrypted)\r\nthrows Exception {\r\nbyte[] rawKey = getRawKey(seed.getBytes());\r\nbyte[] enc = Base64.decode(encrypted.getBytes(), Base64.DEFAULT);\r\nbyte[] result = decrypt(rawKey, enc);\r\nreturn new String(result);\r\n}", "public byte[] aesEncryptSecret(byte[] plainValue) throws InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, Base64DecodingException, UnsupportedEncodingException, NoSuchAlgorithmException, DecoderException {\n byte[] Iv = new byte[16]; // MUST be random\n randomize.nextBytes(Iv);\n byte[] secretBytes = Hex.decodeHex(new String(plainValue).trim().toCharArray());\n this.cipherParamSpec = new IvParameterSpec(Iv);\n this.aesCipher.init(Cipher.ENCRYPT_MODE, this.aesKey, this.cipherParamSpec);\n byte[] encryptedSecret = this.aesCipher.doFinal(secretBytes);\n return concatByteArrays(Iv, encryptedSecret);\n }", "public void setSeed(int seed){\n this.seed = seed; \n }", "private static byte[] getSalt() throws NoSuchAlgorithmException\n {\n SecureRandom sr = SecureRandom.getInstance(prngAlgo);\n //Create array for salt\n byte[] salt = new byte[16];\n //Get a random salt\n sr.nextBytes(salt);\n //return salt\n return salt;\n }", "private void generateSalt(Player player) throws NoSuchAlgorithmException {\n byte[] salt = SecureRandom.getInstance(\"SHA1PRNG\").generateSeed(32);\n player.setSalt(salt);\n }", "public static String getNewSalt() {\n // Don't use Random!\n SecureRandom random = null;\n try {\n random = SecureRandom.getInstance(\"SHA1PRNG\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n // NIST recommends minimum 4 bytes. We use 8.\n byte[] salt = new byte[8];\n random.nextBytes(salt);\n return Base64.getEncoder().encodeToString(salt);\n }", "public String initAesOperations() throws NoSuchAlgorithmException, NoSuchPaddingException, Base64DecodingException, DecoderException {\n byte[] aesKeyBytes = new byte[16];\n this.randomize.nextBytes(aesKeyBytes);\n this.aesKey = new SecretKeySpec(aesKeyBytes, \"AES\");\n this.aesCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n return Hex.encodeHexString(aesKeyBytes);\n }", "public int getSeed(){\n return this.seed; \n }", "@Override\n protected void engineSetSeed(byte[] seed) {\n return;\n }", "@Override\n\tprotected SessionKey generateSessionKey() {\n\n\t\tSessionKey sk = new SessionKey();\n\t\t\n\t\tSecureRandom random = null;\n\t\ttry {\n\t\t\trandom = SecureRandom.getInstance(\"SHA1PRNG\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tbyte bytes[] = new byte[16];\n\t\trandom.nextBytes(bytes);\n\n\t\tbyte transformation[] = \"AES/CBC/PKCS5Padding\".getBytes();\n\t\tsk.setTransformationName(transformation);\n\t\tsk.setKey(bytes); // 128 Bits\n\t\trandom.nextBytes(bytes);\n\t\tsk.setIV(bytes); // 128 Bits\n\n\t\t\n\t\treturn sk;\n\t}", "@Test\n public void testCipherCache() throws Exception {\n Cipher cipher = Cipher.getInstance(\"AES/OFB8/NoPadding\"); // corresponds to the protection initialized above\n long start = System.currentTimeMillis();\n for(int i=0; i<max; i++) {\n cipher.init(Cipher.ENCRYPT_MODE, key, iv); \n byte[] ciphertext = cipher.doFinal(plaintext);\n }\n long stop = System.currentTimeMillis();\n log.debug(\"testCipherCache {} ms\", stop-start);\n }", "protected SaltAndKey generateRandomAESKeyFromPasswordGetSalt(char[] password) throws GeneralSecurityException {\n fixPrng();\n // Generate random salt\n final byte [] salt = super.generateRandomBytes(PBE_SALT_LENGTH_BYTE);\n // Specifiy Key parameters\n final KeySpec keySpec = new PBEKeySpec(password, salt , PBE_ITERATIONS, AES_128);\n // Load the key factory\n final SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(PBE_ALGORITHM);\n // Generate random sequence for the key\n final byte[] temp = keyFactory.generateSecret(keySpec).getEncoded();\n // Return new key and salt the key was created with\n return new SaltAndKey(new SecretKeySpec(temp, AES_INSTANCE), salt);\n }", "protected CipherIV getCipherAndIVFromFile(String filename) throws IOException {\n byte[] cipher = super.readBytesFromFile(filename + CIPHER_PART);\n byte[] iv = super.readBytesFromFile(filename + IV_PART);\n return new CipherIV(cipher, iv);\n }", "protected AESCrypto(Context context, int iterations) throws NoAlgorithmAvailableException {\n // Call superclass\n super(context);\n // Check availability of provoders\n providerCheckAESCrypto();\n // Apply Googles fix for the pseudo random number generator for API-Levels 16-18\n prng = new AtomicBoolean(false);\n fixPrng();\n // set the iteration count\n PBE_ITERATIONS = iterations;\n }", "public void setSeed(int seed){\n\t\tmyRandom = new Random(seed);\n\t}", "public WB_RandomPoint setSeed(final long seed);", "public XorShiftRandom(final long seed) {\n\t\tthis.seed = seed;\n\t}", "public int getSeed() {\r\n return seed;\r\n }", "public Random(long seed) {\n real = new UniversalGenerator(seed);\n twister = new MersenneTwister(seed);\n }", "public String getSeed() {\n return m_randomSeed;\n }", "private void initIvAndEvStats() {\n int ivHp = Global.randomInt(0, 31);\n int ivAtk = Global.randomInt(0, 31);\n int ivDef = Global.randomInt(0, 31);\n int ivSpAtk = Global.randomInt(0, 31);\n int ivSpDef = Global.randomInt(0, 31);\n int ivSpd = Global.randomInt(0, 31);\n //ivStats = new Stats(ivHp, ivAtk, ivDef, ivSpAtk, ivSpDef, ivSpd);\n ivStats = new Stats(31, 31, 31, 31, 31, 31);\n\n //No effort values obtained\n evStats = new Stats(0, 0, 0, 0, 0, 0);\n }", "@Test\n public void testAesDecryptForInputKeyIv() throws Exception {\n//TODO: Test goes here... \n }", "public void setSeed(byte[] value) {\n this.seed = ((byte[]) value);\n }", "public static void setSeed( long seed ) {\n random = new Random( seed );\n }", "void generateSecretKey() {\n\n Random rand = new Random();\n \n // randomly generate alphabet chars\n this.secretKey.setCharAt(0, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(1, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(4, (char) (rand.nextInt(26) + 'a'));\n this.secretKey.setCharAt(5, (char) (rand.nextInt(26) + 'a'));\n\n // randomly generate special chars\n // special chars are between 33-47 and 58-64 on ASCII table\n if (rand.nextBoolean()) {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(15) + '!'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(15) + '!'));\n } else {\n this.secretKey.setCharAt(3, (char) (rand.nextInt(7) + ':'));\n this.secretKey.setCharAt(8, (char) (rand.nextInt(7) + ':'));\n }\n \n // randomly generate int between 2 and 5\n this.secretKey.setCharAt(7, (char) (rand.nextInt(4) + '2'));\n }", "@Override\n\tpublic String encryptAES(byte[] key, String plainText) {\n\t\ttry {\n\t\t\tbyte[] clean = plainText.getBytes();\n\t\n\t // Generating IV.\n\t int ivSize = 16;\n\t byte[] iv = new byte[ivSize];\n\t SecureRandom random = new SecureRandom();\n\t random.nextBytes(iv);\n\t IvParameterSpec ivParameterSpec = new IvParameterSpec(iv);\n\t Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t SecretKeySpec secretKeySpec = new SecretKeySpec(key, \"AES\");\n\t cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec);\n\t byte[] encrypted = cipher.doFinal(clean);\n\t byte[] encryptedIVAndText = new byte[ivSize + encrypted.length];\n\t System.arraycopy(iv, 0, encryptedIVAndText, 0, ivSize);\n\t System.arraycopy(encrypted, 0, encryptedIVAndText, ivSize, encrypted.length);\n\n\t return DatatypeConverter.printHexBinary(encryptedIVAndText);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "static Bytes96 random(Random rnd) {\n byte[] randomBytes = new byte[SIZE];\n rnd.nextBytes(randomBytes);\n return wrap(randomBytes);\n }", "public byte[] encrypto(String base) throws Exception {\n\t\tSecretKeyFactory keyFactory = SecretKeyFactory.getInstance(PBKDF2);\r\n\t\tKeySpec pbeKeySpec = new PBEKeySpec(\"password\".toCharArray(), \"salt\".getBytes(), 1023, 128);\r\n\t\tSecretKey pbeSecretKey = keyFactory.generateSecret(pbeKeySpec);\r\n\t\t// Create SecretKey for AES by KeyFactory-With-Hmac\r\n\t\tSecretKey aesSecretKey = new SecretKeySpec(pbeSecretKey.getEncoded(), AES);\r\n\t\t\r\n\t\tCipher cipher = Cipher.getInstance(AES_CBC_PKCS5PADDING);\r\n//\t\tcipher.init(Cipher.ENCRYPT_MODE, aesSecretKey, SecureRandom.getInstance(\"SHA1PRNG\"));\r\n\t\tcipher.init(Cipher.ENCRYPT_MODE, aesSecretKey);\r\n\t\tbyte[] encrypted = cipher.doFinal(base.getBytes());\r\n\r\n\t\tSystem.out.println(\"IV: \" + new String(cipher.getIV()));\r\n\t\tSystem.out.println(\"AlgorithmParameter: \" + cipher.getParameters().getEncoded());\r\n\t\tCipher decryptor = Cipher.getInstance(AES_CBC_PKCS5PADDING);\r\n\t\tdecryptor.init(Cipher.DECRYPT_MODE, aesSecretKey, new IvParameterSpec(cipher.getIV()));\r\n\t\tSystem.out.println(\"Decrypted: \" + new String(decryptor.doFinal(encrypted)));\r\n\t\t\r\n\t\treturn encrypted;\r\n\t}", "public DayTradeStrategy(int seed) {\r\n /* If you need some initialization of e.g., instance variables\r\n write here.\r\n */\r\n\r\n fRandom = new Random(seed); // Initialization of random sequence.\r\n }", "public Cipher generateCipher() throws NoSuchAlgorithmException,\n\t\t\tNoSuchPaddingException, NoSuchProviderException {\n\t\tCipher cipher = Cipher.getInstance(\"AES/GCM/NoPadding\", \"BC\");\n\t\treturn cipher;\n\t}", "public static String getRandomVowel()\n\t{\n\t\tint randNum = getRandomBetween(1,4);\n\n\t\tswitch(randNum)\n\t\t{\n\t\tcase 1:\n\t\t\treturn \"a\";\n\t\tcase 2:\n\t\t\treturn \"e\";\n\t\tcase 3:\n\t\t\treturn \"i\";\n\t\tcase 4:\n\t\t\treturn \"o\";\n\t\t}\n\n\t\treturn \"u\";\n\t}", "public long getSeed(){\n\t\treturn this.seed;\n\t}", "private static void allRandomTest()\r\n{\r\n\tpriv \t= hexStringToByteArray\t(\"111112222233333444445555566666777778888899999aaaaabbbbbcccccdddd\");\t // Priv.Key\r\n\tpub[0] \t= new BigInteger\t(\"CAD5E868FC3437CB26423166631D6DA9185991D37252AA6A5C898956BF288AA2\",16); // Pub.Key x\r\n\tpub[1] \t= new BigInteger\t(\"E5866FE1B7A9E0DB979F48A118B987148E97C50F76F585FAFD2D2A791164C74F\",16); // Pub.Key y\r\n\tfor(int i = 0; i<testRuns; i++) \r\n\t{\t\r\n\t\tRandom k = new Random();\r\n\t\trand = (new BigInteger(256, k)).toByteArray();\t\t\r\n\t\tRandom h = new Random();\r\n\t\thash = (new BigInteger(256, h)).toByteArray();\r\n\t\thash = Secp256k1.to_fixLength(hash,32);\r\n\t\tif(bouncastleSigTest() == false) break;\r\n\t\tif(maxwell_sigTest() == false) break;\r\n\t}\r\n\tVergleichsTest();\r\n\tsecp256k1_speed_Test(); // 3,0ms\r\n}", "private static byte[] generateSeed() {\n try {\n ByteArrayOutputStream seedBuffer = new ByteArrayOutputStream();\n DataOutputStream seedBufferOut = new DataOutputStream(seedBuffer);\n seedBufferOut.writeLong(System.currentTimeMillis());\n seedBufferOut.writeLong(System.nanoTime());\n seedBufferOut.writeInt(android.os.Process.myPid());\n seedBufferOut.writeInt(Process.myUid());\n seedBufferOut.write(BUILD_FINGERPRINT_AND_DEVICE_SERIAL);\n seedBufferOut.close();\n return seedBuffer.toByteArray();\n } catch (IOException e) {\n throw new SecurityException(\"Failed to generate seed\", e);\n }\n }", "static void encryptCBC(String filename, String key, String IV) {\n try {\n Scanner s = new Scanner(new File(filename + EXT), \"UTF-8\");\n File newFile = new File(filename + \"_CBC\" + EXT);\n newFile.delete();\n newFile.createNewFile();\n PrintWriter w = new PrintWriter(newFile);\n processHeader(s, w);\n cipherBlock = hexStringToBits(IV);\n while (s.hasNext()) {\n readBlock(s);\n block = xor(block, cipherBlock);\n block = stateToBits(AES.encrypt(bitsToHexString(block), key));\n for (int i = 0; i < block.length; i++) {\n cipherBlock[i] = block[i];\n }\n writeBlock(w);\n }\n w.flush();\n w.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public long getSeed() {\n return seed;\n }", "public String cbcEncrypt(String plaintext, String key, String IV) {\n\t\treturn AESCBC.AESEncrypt(plaintext, key, IV);\n\t}", "public byte[] generateSalt() throws NoSuchAlgorithmException {\n\t\t\t SecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\");\n\n\t\t\t // Generate a 8 byte (64 bit) salt as recommended by RSA PKCS5\n\t\t\t byte[] salt = new byte[8];\n\t\t\t random.nextBytes(salt);\n\n\t\t\t return salt;\n\t\t\t }", "protected static String generateSaltString() {\n Random rng = new Random();\n byte[] saltBytes = new byte[32];\n rng.nextBytes(saltBytes);\n return bytesToString(saltBytes);\n }", "public int getSeed() {\n return seed;\n }", "public int getSeed() {\n return seed;\n }", "public interface RandomSeed {\n\n\t/**\n\t * @return Uma semente randomica entre 0 e 1 inclusive.\n\t */\n\tpublic double getSeed();\n}", "public String encrypt(String plainText) {\n try {\n IvParameterSpec iv = new IvParameterSpec(initVector);\n SecretKeySpec skeySpec = new SecretKeySpec(privateKey, \"AES\");\n\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5PADDING\");\n cipher.init(Cipher.ENCRYPT_MODE, skeySpec, iv);\n\n byte[] encrypted = cipher.doFinal(plainText.getBytes());\n\n return new String(Base64Coder.encode(encrypted));\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n\n return null;\n }" ]
[ "0.7384926", "0.7152737", "0.71499836", "0.6941005", "0.6485109", "0.63395697", "0.62875783", "0.6214166", "0.60043555", "0.58926815", "0.58627", "0.5730749", "0.56898093", "0.56682086", "0.562826", "0.55945134", "0.55778867", "0.5537129", "0.55089456", "0.55014503", "0.5489742", "0.54596287", "0.54540765", "0.54494977", "0.54463005", "0.5421283", "0.5414834", "0.54051465", "0.5396997", "0.53956854", "0.5384348", "0.5341901", "0.5335362", "0.5317647", "0.5303716", "0.52929765", "0.52927184", "0.5269176", "0.52691513", "0.5267297", "0.52564836", "0.52418786", "0.5234518", "0.5229459", "0.5226769", "0.5205638", "0.5188392", "0.51881784", "0.5181563", "0.5156635", "0.5135159", "0.51180476", "0.511011", "0.51031196", "0.5100316", "0.5066388", "0.5054568", "0.50471526", "0.5045426", "0.5037134", "0.5032123", "0.50209075", "0.5016893", "0.500305", "0.49964896", "0.49947107", "0.49781445", "0.49710977", "0.49673995", "0.49632972", "0.49557444", "0.49468064", "0.49440736", "0.49384406", "0.4934232", "0.49140853", "0.48948747", "0.48903015", "0.48796234", "0.48783976", "0.4875945", "0.48751193", "0.48734927", "0.4865083", "0.48589227", "0.4853802", "0.48530337", "0.48482502", "0.48477003", "0.48219407", "0.4810976", "0.4809909", "0.480894", "0.48050678", "0.4796554", "0.4786803", "0.47850296", "0.47850296", "0.47794455", "0.47791734" ]
0.82169825
0
This Private Method encrypt the symmetric key that was in use in this program with the reciver's publickey
private byte[] encryptSymmetricKey(PublicKey receiverPublicKey, SecretKey semetricKey) throws Exception { try { myCipher = Cipher.getInstance("RSA"); myCipher.init(Cipher.ENCRYPT_MODE, receiverPublicKey); return myCipher.doFinal(semetricKey.getEncoded()); } catch (Exception e) { writeToLog("Error While trying to encrypt the semetric-key: " + e.getMessage()); LogWriter.close(); throw new Exception(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void encrypt(byte[] vanillaInformation){\n SecretKey symmetricKey = getSymmetricEncryption().createSecretKey();\n getSymmetricEncryption().encrypt(symmetricKey, vanillaInformation);\n setEncryptedInformation(getSymmetricEncryption().getEncryptedInformation());\n\n //encrypt symmetric key with user public key\n try {\n Cipher symmetricKeyEncryption = Cipher.getInstance(\"RSA\");\n symmetricKeyEncryption.init(Cipher.ENCRYPT_MODE, getPublicKey());\n setEncryptedSymmetricKey(symmetricKeyEncryption.doFinal(symmetricKey.getEncoded()));\n } catch (NoSuchAlgorithmException | NoSuchPaddingException | InvalidKeyException | IllegalBlockSizeException | BadPaddingException e) {\n e.printStackTrace();\n }\n }", "Encryption encryption();", "@Override\n public InputStream encrypt(InputStream in, EncryptionKey publicKey) throws IOException {\n KeyEncapsulationMechanism.KeyAndCiphertext<SymmetricKey> keyAndCiphertext = kem.encaps(publicKey);\n\n //Serialize the encapsulated key\n byte[] encapsulatedKey = new JSONConverter().serialize(keyAndCiphertext.encapsulatedKey.getRepresentation())\n .getBytes(StandardCharsets.UTF_8);\n\n //Prepare the encapsulated key length as the first four bytes of the ciphertext. That ought to be enough for\n // everybody.\n byte[] keyLenBytes = ByteBuffer.allocate(4).putInt(encapsulatedKey.length).array();\n\n //Return resulting stream that concatenates: keyLenBytes || encapsulatedKey || ciphertextFromSymmetricScheme\n return new SequenceInputStream(new ByteArrayInputStream(keyLenBytes),\n new SequenceInputStream(new ByteArrayInputStream(encapsulatedKey),\n symmetricScheme.encrypt(in, keyAndCiphertext.key)));\n }", "private void receiveKey() throws Exception {\n System.out.println(\"Receive Key\");\n DataInputStream dis = new DataInputStream(is);\n String keyBase64 = dis.readUTF();\n byte[] key = Util.convertBase64ToBytes(keyBase64);\n byte[] rc4key = Util.RSADecrypt(key, prikey);\n synchronized (GUITracker.onlinePeer) {\n GUITracker.RC4KeyByte = rc4key;\n }\n RC4Key = RC4.convertBytesToSecretKey(rc4key);\n encrypt = new RC4(RC4Key, RC4.ENCRYPT);\n decrypt = new RC4(RC4Key, RC4.DECRYPT);\n CipherInputStream cis = decrypt.getBindingInputStream(socket.getInputStream());\n CipherOutputStream cos = encrypt.getBindingOutputStream(socket.getOutputStream());\n is = cis;\n os = cos;\n System.out.println(\"Get symmetric key from: \" + addressPort);\n }", "public String encryptAESKey(String plainAESKey, PublicKey publicKey) throws Exception {\r\n Cipher cipher = Cipher.getInstance(\"RSA\");\r\n cipher.init(Cipher.ENCRYPT_MODE, publicKey);\r\n return Base64.getEncoder().encodeToString(cipher.doFinal(plainAESKey.getBytes()));\r\n }", "public static void main(String[] args) throws ClassNotFoundException, BadPaddingException, IllegalBlockSizeException,\n IOException, NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException {\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\");\n // Generate the keys — might take sometime on slow computers\n KeyPair myPair = kpg.generateKeyPair();\n\n /*\n * This will give you a KeyPair object, which holds two keys: a private\n * and a public. In order to make use of these keys, you will need to\n * create a Cipher object, which will be used in combination with\n * SealedObject to encrypt the data that you are going to end over the\n * network. Here’s how you do that:\n */\n\n // Get an instance of the Cipher for RSA encryption/decryption\n Cipher c = Cipher.getInstance(\"RSA\");\n // Initiate the Cipher, telling it that it is going to Encrypt, giving it the public key\n c.init(Cipher.ENCRYPT_MODE, myPair.getPublic());\n\n /*\n * After initializing the Cipher, we’re ready to encrypt the data.\n * Since after encryption the resulting data will not make much sense if\n * you see them “naked”, we have to encapsulate them in another\n * Object. Java provides this, by the SealedObject class. SealedObjects\n * are containers for encrypted objects, which encrypt and decrypt their\n * contents with the help of a Cipher object.\n *\n * The following example shows how to create and encrypt the contents of\n * a SealedObject:\n */\n\n // Create a secret message\n String myMessage = new String(\"Secret Message\");\n // Encrypt that message using a new SealedObject and the Cipher we created before\n SealedObject myEncryptedMessage= new SealedObject( myMessage, c);\n\n /*\n * The resulting object can be sent over the network without fear, since\n * it is encrypted. The only one who can decrypt and get the data, is the\n * one who holds the private key. Normally, this should be the server. In\n * order to decrypt the message, we’ll need to re-initialize the Cipher\n * object, but this time with a different mode, decrypt, and use the\n * private key instead of the public key.\n *\n * This is how you do this in Java:\n */\n\n // Get an instance of the Cipher for RSA encryption/decryption\n Cipher dec = Cipher.getInstance(\"RSA\");\n // Initiate the Cipher, telling it that it is going to Decrypt, giving it the private key\n dec.init(Cipher.DECRYPT_MODE, myPair.getPrivate());\n\n /*\n * Now that the Cipher is ready to decrypt, we must tell the SealedObject\n * to decrypt the held data.\n */\n\n // Tell the SealedObject we created before to decrypt the data and return it\n String message = (String) myEncryptedMessage.getObject(dec);\n System.out.println(\"foo = \"+message);\n\n /*\n * Beware when using the getObject method, since it returns an instance\n * of an Object (even if it is actually an instance of String), and not\n * an instance of the Class that it was before encryption, so you’ll\n * have to cast it to its prior form.\n *\n * The above is from: http:andreas.louca.org/2008/03/20/java-rsa-\n * encryption-an-example/\n *\n * [msj121] [so/q/13500368] [cc by-sa 3.0]\n */\n }", "private void sendPublicKey() {\n PublicKey publicKey = EncryptionUtils.getKeyPair(getApplicationContext()).getPublic();\n String encodedPublicKey = Base64.encodeToString(publicKey.getEncoded(),Base64.URL_SAFE);\n socket.emit(\"public_key\",encodedPublicKey);\n }", "@Override\n public OutputStream createEncryptor(OutputStream out, EncryptionKey publicKey) throws IOException {\n KeyEncapsulationMechanism.KeyAndCiphertext<SymmetricKey> keyAndCiphertext = kem.encaps(publicKey);\n\n //Serialize the encapsulated key\n byte[] encapsulatedKey = new JSONConverter().serialize(keyAndCiphertext.encapsulatedKey.getRepresentation())\n .getBytes(StandardCharsets.UTF_8);\n\n //Prepare the encapsulated key length as the first four bytes of the ciphertext. That ought to be enough for\n // everybody.\n byte[] keyLenBytes = ByteBuffer.allocate(4).putInt(encapsulatedKey.length).array();\n\n //Write keyLenBytes || encapsulatedKey to stream\n out.write(keyLenBytes);\n out.write(encapsulatedKey);\n\n //Return resulting stream that symmetrically encrypts any input and writes the ciphertext to out\n return symmetricScheme.createEncryptor(out, keyAndCiphertext.key);\n }", "@Override\n\tpublic void Encrypt(Object key) {\n\n\t}", "public void encrypt() throws Exception {\n\t\tLogWriter = new BufferedWriter(new FileWriter(localWorkingDirectoryPath + \"\\\\Log_Encryption.txt\"));\n\t\tFileOutputStream configurationFileOutputStream = null;\n\n\t\t// Loading the store with the giving arguments\n\t\twriteToLog(\"Step 1: Loading the store with the giving arguments\");\n\t\tloadStore();\n\n\t\t// Getting the receiver's public-key\n\t\twriteToLog(\"Step 2: Getting the receiver's public-key\");\n\t\tCertificate receiverCert = keyStore.getCertificate(receiverSelfSignedCertAlias);\n\t\tif (receiverCert == null) {\n\t\t\twriteToLog(\"The entered certificate alias: \\\"\" + receiverSelfSignedCertAlias\n\t\t\t\t\t+ \"\\\" dose not exist in the keys store.\");\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"The entered certificate alias: \\\"\" + receiverSelfSignedCertAlias\n\t\t\t\t\t+ \"\\\" dose not exist in the keys store.\");\n\t\t}\n\t\tPublicKey receiverPublicKey = receiverCert.getPublicKey();\n\n\t\t// Getting my private key in order to generate a signature\n\t\twriteToLog(\"Step 3: Getting the encryptor's private-key\");\n\t\tPrivateKey myPrivateKey = getMyPrivateKey();\n\t\t\n\t\t// Generating a symmetric key\n\t\twriteToLog(\"Step 4: Generating a symmetric key\");\n\t\tKeyGenerator kg = KeyGenerator.getInstance(\"AES\");\n\t\tSecretKey semetricKey = kg.generateKey();\n\n\t\t// Generating a random IV\n\t\twriteToLog(\"Step 5: Generating a random IV\");\n\t\tbyte[] iv = generateRandomIV();\n\n\t\t// Initializing the cipher\n\t\twriteToLog(\"Step 6: Initilatzing the cipher Object\");\n\t\ttry {\n\t\t\tmyCipher = createCipher();\n\t\t\tmyCipher.init(Cipher.ENCRYPT_MODE, semetricKey, new IvParameterSpec(iv));\n\t\t}catch(Exception e) {\n\t\t\twriteToLog(\"Error While tring to Initializing the cipher with the giving arguments: \" + e.getMessage());\n\t\t\tLogWriter.close();\n\t\t\tthrow new Exception(\"Error: While tring to Initializing the cipher with the giving arguments\",e);\n\t\t}\n\t\t\n\n\t\t// Initializing the signature with my private-key\n\t\twriteToLog(\"Step 7: Initilatzing the signature Object with the encryptor's private-key\");\n\t\tSignature dataSigner = Signature.getInstance(\"SHA256withRSA\");\n\t\tdataSigner.initSign(myPrivateKey);\n\n\t\t// Encrypting\n\t\twriteToLog(\"Step 8: Encrypting... \");\n\t\tFile fileToEncrrypt = new File(fileToEncryptPath);\n\t\tencryptingData(fileToEncrrypt, dataSigner);\n\n\t\t// Signing on the encrypted data\n\t\twriteToLog(\"Step 9: Signing on the encrypted data \");\n\t\tbyte[] mySignature = dataSigner.sign();\n\n\t\t// Encrypt the symmetric key with the public of the receiver\n\t\twriteToLog(\"Step 10: Encrypt the symmetric key with the public of the receiver \");\n\t\tbyte[] encryptedSymmetricKey = encryptSymmetricKey(receiverPublicKey, semetricKey);\n\n\t\t// Saving the IV, Encrypted Symmetric-Key and Signature to the configurations file\n\t\twriteToLog(\"Step 11: Saving the IV, Encrypted Semetric-Key and Signature to the configurations file \");\n\t\tsavingToConfigurationsFile(configurationFileOutputStream, iv, encryptedSymmetricKey, mySignature);\n\n\t\tLogWriter.write(\"Encryption completed, No Errors Were Found\");\n\t\tLogWriter.close();\n\t}", "String encryption(Long key, String encryptionContent);", "java.lang.String getPublicEciesKey();", "OpenSSLKey mo134201a();", "String publicKey();", "private byte[] encrypt(ECPoint point) {\n return point.multiply(privateKey.getS()).getEncoded(true);\n }", "public static byte [] encrypt(byte [] plainText, PublicKey encryptionKey) {\r\n\t\tif(plainText == null) return null;\r\n\t\t// needed len = wrappedKey + E[ encodedVerificationKey + Signature + plainText ]\r\n\t\tbyte [] outputBuffer = new byte[plainText.length+MIN_BUF_SIZE];\r\n\t\ttry {\r\n\t\t\t// generate a secret symmetric key\r\n\t\t\tKeyGenerator keyGenerator = KeyGenerator.getInstance(symmetricKeyAlgorithm);\r\n\t\t\tkeyGenerator.init(SYMMETRIC_KEY_LENGTH);\r\n\t\t\tSecretKey secretKey = keyGenerator.generateKey();\r\n\t\t\t// encrypt (wrap) the secret symmetric key using the public encryption key of the receiver\r\n\t\t\tCipher wrapper = Cipher.getInstance(encryptionAlgorithm);\r\n\t\t\twrapper.init(Cipher.WRAP_MODE, encryptionKey);\r\n\t\t\tbyte [] wrappedSecretKey = wrapper.wrap(secretKey);\r\n\r\n\t\t\t// place the length of the wrappedKey followed by the wrapped key into the output buffer at outputBuffer[0]\r\n\t\t\t// cursor points to the next available location in outputBuffer\r\n\t\t\tint cursor = packToByteArray(wrappedSecretKey, outputBuffer, 0);\r\n\t\t\tint encryptionCursor = cursor;\t// marker for start of encryption\r\n\r\n\t\t\t// add the length of the plain text to the message. We only push the length\r\n\t\t\t// of the message into the buffer, because we can do encryption in steps and avoid copies\r\n\t\t\toutputBuffer[cursor] = (byte)((plainText.length & 0xff00) >>> 8);\t// msb of plainText\r\n\t\t\toutputBuffer[cursor+1] = (byte)(plainText.length & 0xff);\t\t\t// lsb of plainText\r\n\t\t\tcursor += 2;\r\n\r\n\t\t\t// encrypt the message {PkLen,PublicKey,SLen,Signature,PtLen,PlainText}\r\n\t\t\tCipher encryptor = Cipher.getInstance(symmetricKeyAlgorithm);\r\n\t\t\tencryptor.init(Cipher.ENCRYPT_MODE, secretKey);\r\n\t\t\t// encrypt upto the cursor, and reset cursor to point to the end of the encrypted stream in the output buffer\r\n\t\t\tcursor = encryptionCursor + encryptor.update(outputBuffer,encryptionCursor,cursor-encryptionCursor,outputBuffer,encryptionCursor);\r\n\t\t\t// encrypt the plain text. Cursor points to the end of the output buffer\r\n\t\t\tcursor += encryptor.doFinal(plainText, 0, plainText.length, outputBuffer, cursor);\r\n\r\n\t\t\t// return the encrypted bytes\r\n\t\t\treturn Arrays.copyOfRange(outputBuffer, 0, cursor);\r\n\t\t} catch(Exception e){\r\n\t\t\tlogger.log(Level.WARNING,\"Unable to encrypt message \"+new String(Arrays.copyOf(plainText, 10))+\"...\",e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private static void encryptFile(String fileInput, String publicKeyFilename) throws Exception {\n\n\t\t// Load the public key bytes\n\t\tFileInputStream fis = new FileInputStream(publicKeyFilename);\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\n\t\tint theByte = 0;\n\t\twhile ((theByte = fis.read()) != -1) {\n\t\t\tbaos.write(theByte);\n\t\t}\n\t\tfis.close();\n\n\t\tbyte[] keyBytes = baos.toByteArray();\n\t\tbaos.close();\n\n\t\t// Turn the encoded key into a real RSA public key.\n\t\t// Public keys are encoded in X.509.\n\t\tX509EncodedKeySpec keySpec = new X509EncodedKeySpec(keyBytes);\n\t\tKeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n\t\tPublicKey publicKey = keyFactory.generatePublic(keySpec);\n\n\t\t// Open up an output file for the output of the encryption\n\t\tString fileOutput = fileInput + ENCRYPTED_FILENAME_SUFFIX;\n\t\tDataOutputStream output = new DataOutputStream(new FileOutputStream(fileOutput));\n\n\t\t// Create a cipher using that key to initialize it\n\t\tCipher rsaCipher = Cipher.getInstance(\"RSA/ECB/PKCS1Padding\");\n\t\trsaCipher.init(Cipher.ENCRYPT_MODE, publicKey);\n\n\t\t// Now create a new 256 bit Rijndael key to encrypt the file itself.\n\t\t// This will be the session key.\n\t\tKeyGenerator rijndaelKeyGenerator = KeyGenerator.getInstance(\"Rijndael\");\n\t\trijndaelKeyGenerator.init(256);\n\t\tSystem.out.println(\"Generating session key...\");\n\t\tKey rijndaelKey = rijndaelKeyGenerator.generateKey();\n\t\tSystem.out.println(\"Done generating key.\");\n\n\t\t// Encrypt the Rijndael key with the RSA cipher\n\t\t// and write it to the beginning of the file.\n\t\tbyte[] encodedKeyBytes = rsaCipher.doFinal(rijndaelKey.getEncoded());\n\t\toutput.writeInt(encodedKeyBytes.length);\n\t\toutput.write(encodedKeyBytes);\n\n\t\t// Now we need an Initialization Vector for the symmetric cipher in CBC mode\n\t\tSecureRandom random = new SecureRandom();\n\t\tbyte[] iv = new byte[16];\n\t\trandom.nextBytes(iv);\n\n\t\t// Write the IV out to the file.\n\t\toutput.write(iv);\n\t\tIvParameterSpec spec = new IvParameterSpec(iv);\n\n\t\t// Create the cipher for encrypting the file itself.\n\t\tCipher symmetricCipher = Cipher.getInstance(\"Rijndael/CBC/PKCS5Padding\");\n\t\tsymmetricCipher.init(Cipher.ENCRYPT_MODE, rijndaelKey, spec);\n\n\t\tCipherOutputStream cos = new CipherOutputStream(output, symmetricCipher);\n\n\t\tSystem.out.println(\"Encrypting the file...\");\n\n\t\tFileInputStream input = new FileInputStream(fileInput);\n\n\t\ttheByte = 0;\n\t\twhile ((theByte = input.read()) != -1) {\n\t\t\tcos.write(theByte);\n\t\t}\n\t\tinput.close();\n\t\tcos.close();\n\t\tSystem.out.println(\"File encrypted.\");\n\t\treturn;\n\t}", "public static byte [] encrypt(byte [] plainText, SecretKey key){\r\n\t\ttry {\r\n\t\t\tCipher cipher = Cipher.getInstance(symmetricKeyCryptoMode);\r\n\t\t\tcipher.init(Cipher.ENCRYPT_MODE, key);\r\n\t\t\tbyte [] initVector = cipher.getIV();\r\n\t\t\tbyte [] outputBuffer = new byte [cipher.getOutputSize(plainText.length)+initVector.length+2];\r\n\t\t\tint cursor = packToByteArray(initVector, outputBuffer, 0);\r\n\t\t\tcipher.doFinal(plainText, 0, plainText.length, outputBuffer,cursor);\r\n\t\t\treturn outputBuffer;\r\n\t\t} catch (Exception e){\r\n\t\t\tthrow new ModelException(\"Error encrypting plainText \"+plainText,e);\r\n\t\t}\r\n\t}", "public static void encryptFile(File in, File out, Key pubKey) throws Exception {\n FileInputStream fin;\n FileOutputStream fout;\n int nread = 0; \n byte[] inbuf = new byte[1024];\n fout = new FileOutputStream(out);\n fin = new FileInputStream(in);\n\n SecureRandom random = new SecureRandom();\n // symmetric wrapping\n Key sKey = createKeyForAES(Config.SYM_CRYPTO_STR, random);\n IvParameterSpec sIvSpec = createCtrIvForAES(0, random);\n\n // encrypt symmetric key with RSA/pub key\n Cipher xCipher = Cipher.getInstance(Config.RSA_INSTANCE);\n xCipher.init(Cipher.ENCRYPT_MODE, pubKey, random);\n byte[] keyBlock = xCipher.doFinal(packKeyAndIv(sKey, sIvSpec));\n\n fout.write(keyBlock);\n\n // encrypt data with symmetric key\n Cipher sCipher = Cipher.getInstance(Config.AES_INSTANCE);\n sCipher.init(Cipher.ENCRYPT_MODE, sKey, sIvSpec);\n\n // Now read our file and encrypt it.\n while((nread = fin.read(inbuf)) > 0) {\n fout.write(sCipher.update(inbuf, 0, nread)); // cannot be null, by construction\n }\n // NB doFinal() cannot return null, but can return a zero-length array, which is benign below.\n fout.write(sCipher.doFinal());\n\n fout.flush();\n fin.close();\n fout.close();\n}", "public byte[] encrypt(String data, Key privatekey) {\r\n\t\tif (!presentkey) {\r\n\t\t\t//TODO\r\n\t\t\tkeyDiffieHellmanFirst();\r\n\t\t\t// need to send these values to other side\r\n\t\t\t// wait\r\n\t\t\tkeyDiffieHellmanFinal(//nummer uit packet from the other side);\r\n\t\t}\r\n\t\tbyte[] encrypt = OFB.EnDecrypt(data.getBytes(), diffie.getKey().toByteArray());\r\n\t\tString sign = ((Integer) data.hashCode()).toString();\r\n\t\tbyte[] signed = RSA.encrypt(sign, privatekey);\r\n\t\tbyte[] encrypted = new byte[encrypt.length + signed.length];\r\n\t\tSystem.arraycopy(encrypt, 0, encrypted, 0, encrypt.length);\r\n\t\tSystem.arraycopy(signed, 0, encrypted, encrypt.length, signed.length);\r\n\t\treturn encrypted;\r\n\t}", "private static String encryptWithPublicKey(String plainData, RSAPublicKey rsaPublicKey, String keyFingerPrint, String requestContentType) throws JOSEException {\n\t\t\tfinal JWEHeader.Builder builder = new JWEHeader.Builder(ALG, ENC_MTHD);\n\t\t\tif(keyFingerPrint != null){\n\t\t\t\tbuilder.keyID(keyFingerPrint);\n\t\t\t}\n\t\t\tif(requestContentType != null){\n\t\t\t\tbuilder.contentType(requestContentType);\n\t\t\t}\n\t\t\tfinal JWEHeader jweHeader = builder.build();\n\t\t\tJWEObject jwe = new JWEObject(\n\t\t\t\t\tjweHeader,\n\t\t\t\t\tnew Payload(plainData));\n\n\t\t\tfinal RSAEncrypter encrypter = new RSAEncrypter(rsaPublicKey);\n\n\t\t\tjwe.encrypt(encrypter);\n\t\t\treturn jwe.serialize();\n\t\t}", "java.lang.String getPubkey();", "public SecretKey getSymmetricKey() {\n return symmetricKey;\n }", "@Override\n\tpublic void visit(SendSymmetricKey ssyk) {\n\t\t\n\t}", "private void negotiateSecurityParams(CommunicationChannel channel) throws Exception {\n channel.writeMessage(CryptoUtils.getBase64FromKey(keyPair.getPublic()));\n\n // read the symmetric key\n String encryptedSymmetricKey = channel.readMessage();\n String b64key = CryptoUtils.decrypt(encryptedSymmetricKey, keyPair.getPrivate());\n final byte[] key = Base64.getDecoder().decode(b64key.getBytes());\n\n DataTransformer inputTransformer = (input, length) -> CryptoUtils.symmetricEncrypt(new String(input), key).getBytes();\n DataTransformer outputTransformer = ((input, length) -> CryptoUtils.symmetricDecrypt(new String(input), key).getBytes());\n\n channel.withInputTransformer(inputTransformer);\n channel.withOutputTransformer(outputTransformer);\n }", "java.lang.String getPublicKey();", "public void testCaesar(){\n String msg = \"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\";\n \n /*String encrypted = encrypt(msg, key);\n System.out.println(\"encrypted \" +encrypted);\n \n String decrypted = encrypt(encrypted, 26-key);\n System.out.println(\"decrypted \" + decrypted);*/\n \n \n String encrypted = encrypt(msg, 15);\n System.out.println(\"encrypted \" +encrypted);\n \n }", "public String encrypt() throws LRException\n\t{\n\t\treturn LUEncrypt.encrypt(getFields(),\n\t\t\t((DataHRecordData)getData()).encryptKey.getStringValue());\n\t}", "public PGPPublicKey getEncryptionKey() {\n\t\tIterator iter = base.getPublicKeys();\n\t\tPGPPublicKey encKey = null;\n\t\twhile (iter.hasNext()) {\n\t\t\tPGPPublicKey k = (PGPPublicKey) iter.next();\n\t\t\tif (k.isEncryptionKey())\n\t\t\t\tencKey = k;\n\t\t}\n\n\t\treturn encKey;\n\t}", "short generateKeyAndWrap(byte[] applicationParameter, short applicationParameterOffset, byte[] publicKey, short publicKeyOffset, byte[] keyHandle, short keyHandleOffset, byte info);", "public String encrypt(final PublicKeyInterface key, final String data)\n {\n return this.encryptionCipher().encrypt(key, data);\n }", "private void generatePrivacyKeyPair(boolean clientMode) throws IOException, UnsupportedEncodingException, NoSuchAlgorithmException, SaslException {\n byte[] ccmagic = CLIENT_CONF_MAGIC.getBytes(encoding);\n byte[] scmagic = SVR_CONF_MAGIC.getBytes(encoding);\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\n int n;\n if (negotiatedCipher.equals(CIPHER_TOKENS[RC4_40])) {\n n = 5;\n } else if (negotiatedCipher.equals(CIPHER_TOKENS[RC4_56])) {\n n = 7;\n } else {\n n = 16;\n }\n byte[] keyBuffer = new byte[n + ccmagic.length];\n System.arraycopy(H_A1, 0, keyBuffer, 0, n);\n System.arraycopy(ccmagic, 0, keyBuffer, n, ccmagic.length);\n md5.update(keyBuffer);\n byte[] Kcc = md5.digest();\n System.arraycopy(scmagic, 0, keyBuffer, n, scmagic.length);\n md5.update(keyBuffer);\n byte[] Kcs = md5.digest();\n if (logger.isLoggable(Level.FINER)) {\n traceOutput(DP_CLASS_NAME, \"generatePrivacyKeyPair\", \"DIGEST24:Kcc: \", Kcc);\n traceOutput(DP_CLASS_NAME, \"generatePrivacyKeyPair\", \"DIGEST25:Kcs: \", Kcs);\n }\n byte[] myKc;\n byte[] peerKc;\n if (clientMode) {\n myKc = Kcc;\n peerKc = Kcs;\n } else {\n myKc = Kcs;\n peerKc = Kcc;\n }\n try {\n SecretKey encKey;\n SecretKey decKey;\n if (negotiatedCipher.indexOf(CIPHER_TOKENS[RC4]) > -1) {\n encCipher = Cipher.getInstance(\"RC4\");\n decCipher = Cipher.getInstance(\"RC4\");\n encKey = new SecretKeySpec(myKc, \"RC4\");\n decKey = new SecretKeySpec(peerKc, \"RC4\");\n encCipher.init(Cipher.ENCRYPT_MODE, encKey);\n decCipher.init(Cipher.DECRYPT_MODE, decKey);\n } else if ((negotiatedCipher.equals(CIPHER_TOKENS[DES])) || (negotiatedCipher.equals(CIPHER_TOKENS[DES3]))) {\n String cipherFullname, cipherShortname;\n if (negotiatedCipher.equals(CIPHER_TOKENS[DES])) {\n cipherFullname = \"DES/CBC/NoPadding\";\n cipherShortname = \"des\";\n } else {\n cipherFullname = \"DESede/CBC/NoPadding\";\n cipherShortname = \"desede\";\n }\n encCipher = Cipher.getInstance(cipherFullname);\n decCipher = Cipher.getInstance(cipherFullname);\n encKey = makeDesKeys(myKc, cipherShortname);\n decKey = makeDesKeys(peerKc, cipherShortname);\n IvParameterSpec encIv = new IvParameterSpec(myKc, 8, 8);\n IvParameterSpec decIv = new IvParameterSpec(peerKc, 8, 8);\n encCipher.init(Cipher.ENCRYPT_MODE, encKey, encIv);\n decCipher.init(Cipher.DECRYPT_MODE, decKey, decIv);\n if (logger.isLoggable(Level.FINER)) {\n traceOutput(DP_CLASS_NAME, \"generatePrivacyKeyPair\", \"DIGEST26:\" + negotiatedCipher + \" IVcc: \", encIv.getIV());\n traceOutput(DP_CLASS_NAME, \"generatePrivacyKeyPair\", \"DIGEST27:\" + negotiatedCipher + \" IVcs: \", decIv.getIV());\n traceOutput(DP_CLASS_NAME, \"generatePrivacyKeyPair\", \"DIGEST28:\" + negotiatedCipher + \" encryption key: \", encKey.getEncoded());\n traceOutput(DP_CLASS_NAME, \"generatePrivacyKeyPair\", \"DIGEST29:\" + negotiatedCipher + \" decryption key: \", decKey.getEncoded());\n }\n }\n } catch (InvalidKeySpecException e) {\n throw new SaslException(\"DIGEST-MD5: Unsupported key \" + \"specification used.\", e);\n } catch (InvalidAlgorithmParameterException e) {\n throw new SaslException(\"DIGEST-MD5: Invalid cipher \" + \"algorithem parameter used to create cipher instance\", e);\n } catch (NoSuchPaddingException e) {\n throw new SaslException(\"DIGEST-MD5: Unsupported \" + \"padding used for chosen cipher\", e);\n } catch (InvalidKeyException e) {\n throw new SaslException(\"DIGEST-MD5: Invalid data \" + \"used to initialize keys\", e);\n }\n }", "private void encryptionAlgorithm() {\n\t\ttry {\n\t\t\t\n\t\t\tFileInputStream fileInputStream2=new FileInputStream(\"D:\\\\program\\\\key.txt\");\n\t\t\tchar key=(char)fileInputStream2.read();\n\t\t\tSystem.out.println(key);\n\t\t\tFileInputStream fileInputStream1=new FileInputStream(\"D:\\\\program\\\\message.txt\");\n\t\t\tint i=0;\n\t\t\t\n\t\t\tStringBuilder message=new StringBuilder();\n\t\t\twhile((i= fileInputStream1.read())!= -1 )\n\t\t\t{\n\t\t\t\tmessage.append((char)i);\n\t\t\t}\n\t\t\tString s=message.toString();\n\t\t\tchar[] letters=new char[s.length()];\n\t\t\tStringBuilder en=new StringBuilder();\n\t\t\tfor(int j = 0;j < letters.length;j++)\n\t\t\t{\n\t\t\t\ten.append((char)(byte)letters[j]+key);\n\t\t\t}\t\t\n\t\t\tFileOutputStream fileoutput=new FileOutputStream(\"D:\\\\program\\\\encryptedfile.txt\");\n\t\t\t\n\t\t\tfileInputStream1.close();\n\t\t\tfileInputStream2.close();\n\t\t\t\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t}", "public static KeyPair GenrateandEncrypt(String keyname) throws NoSuchAlgorithmException, InvalidKeySpecException, IOException\n\t {\n\t \tKeyPairGenerator kpg;\n\t kpg = KeyPairGenerator.getInstance(\"RSA\");\n kpg.initialize(4096);\n \n KeyPair kp = kpg.genKeyPair();\n PublicKey publicKey = kp.getPublic();\n PrivateKey privateKey = kp.getPrivate();\n\n //save keys \n \n \n String sPublic = Base64.getEncoder().encodeToString( publicKey.getEncoded());\n String sPrivate = Base64.getEncoder().encodeToString( privateKey.getEncoded());\n\n File file1 = new File(keyname+\"public.txt\");\n\t\t\tFileWriter fileWriter1 = new FileWriter(file1);\n\t\t\tfileWriter1.write(sPublic);\n\t\t\t\n\t\t\t\n\t\t\tFile file2 = new File(keyname+\"private.txt\");\n\t\t\tFileWriter fileWriter2 = new FileWriter(file2);\n\t\t\tfileWriter2.write(sPrivate);\n\t\t\t \n fileWriter1.flush();\n fileWriter1.close();\n \n fileWriter2.flush();\n fileWriter2.close();\n ////////////\n \n return kp;\n\t }", "OctetString getPublicKey();", "String getPublicKey();", "public String cipher() {\n int[] r1taps = {13, 16, 17, 18};\n int[] r2taps = {20, 21};\n int[] r3taps = {7, 20, 21, 22};\n\n // Set register size and majority bits\n final int R1 = 19;\n final int R1M = 8;\n final int R2 = 22;\n final int R2M = 10;\n final int R3 = 23;\n final int R3M = 10;\n\n // Initialize variables\n String bs = \"\";\n byte[] key = HexStringToBytes(symKey);\n BitSet keySet = new BitSet();\n BitSet keyStream = new BitSet();\n BitSet messageSet = new BitSet();\n\n // Create a byte array length of sample message\n byte[] messageArray = new byte[message.length()];\n\n // Convert the sample message to a byte array\n try {\n messageArray = message.getBytes(\"ISO-8859-1\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n\n // Convert message sample byte array to string\n String as = \"\";\n for (int i = 0; i < messageArray.length; i++) {\n byte b1 = messageArray[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n as += s;\n }\n\n // Convert string of bits to a BitSet\n messageSet = BitStringToBitSet(as);\n\n // Creates string from key byte array\n for (int i = 0; i < 8; i++) {\n byte b1 = key[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n bs += s;\n }\n\n // Convert string of bits to a BitSet\n keySet = BitStringToBitSet(bs);\n\n // Initialize registers\n BitSet r1 = new BitSet();\n BitSet r2 = new BitSet();\n BitSet r3 = new BitSet();\n\n // Process key into registers\n for (int i = 0; i < 64; i++) {\n r1 = ShiftSet(r1, R1, keySet.get(i) ^ Tap(r1, r1taps));\n r2 = ShiftSet(r2, R2, keySet.get(i) ^ Tap(r2, r2taps));\n r3 = ShiftSet(r3, R3, keySet.get(i) ^ Tap(r3, r3taps));\n }\n\n // Clock additional 100 times for additional security (GSM standard)\n for (int i = 0; i < 100; i++) {\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n }\n\n // Create keystream as long as the sample message\n for (int i = 0; i < message.length() * 8; i++) {\n\n // Get keystream bit\n keyStream.set(i, r1.get(R1 - 1) ^ r2.get(R2 - 1) ^ r3.get(R3 - 1));\n\n // Shift majority registers\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n\n }\n\n // XOR the message with the created keystream and return as string\n messageSet.xor(keyStream);\n return BitStringToText(ReturnSet(messageSet, message.length() * 8));\n }", "public String getPublicKey();", "public byte[] encrypt(byte[] input, Key pubKey) throws Exception {\n\t\tcipher.init(Cipher.ENCRYPT_MODE, pubKey);\n\t\treturn cipher.doFinal(input);\n\t}", "public void calculateKeypair() {\n\n BigInteger nTotient = p.subtract(BigInteger.ONE).multiply(q.subtract(BigInteger.ONE));\n\n ExtendedEuclideanAlgorithm eea = new ExtendedEuclideanAlgorithm();\n d = eea.calculateEea(nTotient, e);\n\n while(d.signum() == -1) d = d.add(nTotient);\n\n sbPrivate.append(\"(\");\n sbPrivate.append(n.toString());\n sbPrivate.append(\",\");\n sbPrivate.append(d.toString());\n sbPrivate.append(\")\");\n\n sbPublic.append(\"(\");\n sbPublic.append(n.toString());\n sbPublic.append(\",\");\n sbPublic.append(e.toString());\n sbPublic.append(\")\");\n\n }", "public String encrypt(final PrivateKeyInterface key, final String data)\n {\n return this.encryptionCipher().encrypt(key, data);\n }", "String getEncryptionKeyId();", "private void generateIntegrityKeyPair(boolean clientMode) throws UnsupportedEncodingException, IOException, NoSuchAlgorithmException {\n byte[] cimagic = CLIENT_INT_MAGIC.getBytes(encoding);\n byte[] simagic = SVR_INT_MAGIC.getBytes(encoding);\n MessageDigest md5 = MessageDigest.getInstance(\"MD5\");\n byte[] keyBuffer = new byte[H_A1.length + cimagic.length];\n System.arraycopy(H_A1, 0, keyBuffer, 0, H_A1.length);\n System.arraycopy(cimagic, 0, keyBuffer, H_A1.length, cimagic.length);\n md5.update(keyBuffer);\n byte[] Kic = md5.digest();\n System.arraycopy(simagic, 0, keyBuffer, H_A1.length, simagic.length);\n md5.update(keyBuffer);\n byte[] Kis = md5.digest();\n if (logger.isLoggable(Level.FINER)) {\n traceOutput(DI_CLASS_NAME, \"generateIntegrityKeyPair\", \"DIGEST12:Kic: \", Kic);\n traceOutput(DI_CLASS_NAME, \"generateIntegrityKeyPair\", \"DIGEST13:Kis: \", Kis);\n }\n if (clientMode) {\n myKi = Kic;\n peerKi = Kis;\n } else {\n myKi = Kis;\n peerKi = Kic;\n }\n }", "public static byte[] encryptText(String plainText,SecretKey secKey) throws Exception{\n\r\n Cipher aesCipher = Cipher.getInstance(\"AES\");\r\n\r\n aesCipher.init(Cipher.ENCRYPT_MODE, secKey);\r\n\r\n byte[] byteCipherText = aesCipher.doFinal(plainText.getBytes());\r\n\r\n return byteCipherText;\r\n\r\n}", "public String encrypt() {\n StringBuilder encryptedText = new StringBuilder();\n //Make sure the key is valid.\n if (key < 0 || key > 25) {\n Log.d(\"TAG\", \"encrypt: Error in Keu=y \");\n return \"Key Must be 0 : 25\";\n }\n if (plaintext.length() <= 0) {\n Log.d(\"TAG\", \"encrypt: Error in Plain\");\n return \"Error in Plaintext\";\n }\n //Eliminates any whitespace and non alpha char's.\n plaintext = plaintext.trim();\n plaintext = plaintext.replaceAll(\"\\\\W\", \"\");\n if (plaintext.contains(\" \")) {\n plaintext = plaintext.replaceAll(\" \", \"\");\n }\n //Makes sure that all the letters are uppercase.\n plaintext = plaintext.toUpperCase();\n Log.i(\"Caesar\", \"encrypt: plainis : \" + plaintext);\n for (int i = 0; i < plaintext.length(); i++) {\n char letter = plaintext.charAt(i);\n if (charMap.containsKey(letter) && charMap.get(letter) != null) {\n int lookUp = (charMap.get(letter) + key) % 26;\n encryptedText.append(encryptionArr[lookUp]);\n }\n }\n Log.d(\"Caesar.java\", \"encrypt: the Data is \" + encryptedText.toString());\n return encryptedText.toString();\n }", "@Override\n public void encrypt() {\n algo.encrypt();\n String cypher = vigenereAlgo(true);\n this.setValue(cypher);\n }", "public String encodeKey() {\n byte[] keyByte = secretKey.getEncoded();\n return Base64.getEncoder().encodeToString(keyByte);\n }", "private String exportkey() {\n\n\t\ttry {\n\t\t\tbyte[] keyBytes = serversharedkey.getEncoded();\n\t\t\tString encodedKey = new String(Base64.encodeBase64(keyBytes), \"UTF-8\");\n\t\t\tFile file = new File(\"serversharedKey\");\n\t\t\t//System.out.println(\"The server Private key: \" + encodedKey);\n\t\t\tPrintWriter writer = new PrintWriter(file, \"UTF-8\");\n\t\t\twriter.println(encodedKey);\n\t\t\twriter.close();\n\n\t\t\treturn encodedKey;\n\n\t\t} catch (UnsupportedEncodingException | FileNotFoundException ex) {\n\t\t\tLogger.getLogger(ClientTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\treturn null;\n\t}", "private static SecretKey createSymmetricKey()\n\t{\n\t\tSecretKey secretKey = null;\n\n\t\ttry\n\t\t{\n\t\t\tKeyGenerator keyGen = KeyGenerator.getInstance(inputAlgorithmForFileEncryption);\n\t\t\tkeyGen.init(128);\n\t\t\tsecretKey = keyGen.generateKey();\n\t\t} catch (NoSuchAlgorithmException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn secretKey;\n\t}", "public byte[] encrypt(final PublicKeyInterface key, final byte[] data)\n {\n return this.encryptionCipher().encrypt(key, data);\n }", "public String encrypt(String input) throws Throwable {\n\n byte[] inputByteArray = input.getBytes();\n String keyString = \"\";\n\n // reading the public key\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(\n new InputStreamReader(context.getAssets().open(\"Put your public key in assets and Enter its name here\"), \"UTF-8\"));\n String line;\n while ((line = reader.readLine()) != null) {\n keyString += line;\n }\n reader.close();\n }catch (IOException e){\n Toast.makeText(context, \"Couldn't create file reader\", Toast.LENGTH_SHORT).show();\n }\n\n // fetching the key from public key\n keyString = keyString.replaceAll(NEW_LINE_CHARACTER, EMPTY_STRING)\n .replaceAll(PUBLIC_KEY_START_KEY_STRING, EMPTY_STRING)\n .replaceAll(PUBLIC_KEY_END_KEY_STRING, EMPTY_STRING);\n\n byte[] publicKey = keyString.getBytes();\n\n Key generatePublic = KeyFactory.getInstance(\"RSA\").\n generatePublic(new X509EncodedKeySpec(Base64.getDecoder().decode(publicKey)));\n\n // create RSA Cipher instance\n Cipher cipherInstance = Cipher.getInstance(\"RSA/None/PKCS1Padding\");\n cipherInstance.init(Cipher.ENCRYPT_MODE, generatePublic);\n\n // encrypt string\n byte[] encryptedByteArray = cipherInstance.doFinal(inputByteArray);\n return Base64.getEncoder().encodeToString(encryptedByteArray);\n }", "public byte[] encrypt(byte[] data, PublicKey publicUserKey) throws EncryptingException {\n try {\n return RSA.encrypt(data, publicUserKey);\n } catch (Exception e) {\n throw new EncryptingException();\n }\n }", "public CryptObject reencrypt(Ciphertext ciphertext);", "public byte[] encrypt(byte[] input, KeyPair keyPair) throws Exception {\n\t\treturn encrypt(input, keyPair.getPublic());\n\t}", "public PrivateKey getKey();", "byte[] encodePublicKey(PublicKey publicKey) throws IOException;", "@Override\n public byte[] generateKey() throws ProtocolException, IOException {\n BigInteger p, q, n, e, d;\n Polynomial pol;\n do {\n // we want e such that GCD(e, phi(p*q))=1. as e is actually fixed\n // below, then we need to search for suitable p and q\n p = generateCofactor();\n q = generateCofactor();\n n = computeModulus(p, q);\n e = generatePublicExponent(p, q);\n } while (!verifyCofactors(p, q, e));\n d = computePrivateExponent(p, q, e);\n pol = generatePolynomial(p, q, d);\n BigInteger[] shares = ProtocolUtil.generateShares(pol, tparams.getParties());\n RSAPrivateCrtKey[] packedShares = packShares(e, shares, n);\n try {\n storeShares(packedShares);\n } catch (SmartCardException ex) {\n throw new ProtocolException(\n \"Error while communicating with smart card: \" + ex.toString());\n }\n\n RSAPublicKey pk = SignatureUtil.RSA.paramsToRSAPublicKey(e, n);\n return pk.getEncoded();\n }", "private static String getEncryptedKey(String key) {\r\n\t\ttry {\r\n\t\t\treturn SimpleCrypto.encrypt(SimpleCrypto.getDeviceSeed(ctx), key);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new AndroidRuntimeException(\"Could not encrypt preference key\");\r\n\t\t}\r\n\t}", "public static byte[] getEncryptRawKey() {\n\n try {\n /*byte[] bytes64Key = App.RealmEncryptionKey.getBytes(\"UTF-8\");\n KeyGenerator kgen = KeyGenerator.getInstance(\"AES\");\n SecureRandom sr = SecureRandom.getInstance(\"SHA1PRNG\");\n sr.setSeed(bytes64Key);\n kgen.init(128, sr);\n SecretKey skey = kgen.generateKey();\n byte[] raw = skey.getEncoded();*/\n\n byte[] key = new BigInteger(App.RealmEncryptionKey, 16).toByteArray();\n return key;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "public void RSAyoyo() throws NoSuchAlgorithmException, GeneralSecurityException, IOException {\r\n\r\n KeyPairGenerator kPairGen = KeyPairGenerator.getInstance(\"RSA\");\r\n kPairGen.initialize(2048);\r\n KeyPair kPair = kPairGen.genKeyPair();\r\n publicKey = kPair.getPublic();\r\n System.out.println(publicKey);\r\n privateKey = kPair.getPrivate();\r\n\r\n KeyFactory fact = KeyFactory.getInstance(\"RSA\");\r\n RSAPublicKeySpec pub = fact.getKeySpec(kPair.getPublic(), RSAPublicKeySpec.class);\r\n RSAPrivateKeySpec priv = fact.getKeySpec(kPair.getPrivate(), RSAPrivateKeySpec.class);\r\n serializeToFile(\"public.key\", pub.getModulus(), pub.getPublicExponent()); \t\t\t\t// this will give public key file\r\n serializeToFile(\"private.key\", priv.getModulus(), priv.getPrivateExponent());\t\t\t// this will give private key file\r\n\r\n \r\n }", "public void testCaesar(){\n int key1 = 23;\n int key2 = 17;\n String encrypted = encrypt(\"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\", 15);\n System.out.println(\"key is 15\" + \"\\n\" + encrypted);\n String encrypted2 = encryptTwoKeys(\"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\", 8, 21);\n System.out.println(\"key are 8 and 21\" + \"\\n\" + encrypted2);\n }", "public String encrypt(String plaintext) {\n\t\tCipher rsaCipher, aesCipher;\n\t\ttry {\n\t\t\t// Create AES key\n\t\t\tKeyGenerator keyGen = KeyGenerator.getInstance(\"AES\");\n\t\t\tkeyGen.init(AES_BITS);\n\t\t\tKey aesKey = keyGen.generateKey();\n\n\t\t\t// Create Random IV\n\t\t\tbyte[] iv = SecureRandom.getSeed(16);\n\t\t\tIvParameterSpec ivSpec = new IvParameterSpec(iv);\n\n\t\t\t// Encrypt data using AES\n\t\t\taesCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t\t\taesCipher.init(Cipher.ENCRYPT_MODE, aesKey, ivSpec);\n\t\t\tbyte[] data = aesCipher.doFinal(plaintext.getBytes());\n\n\t\t\t// Encrypt AES key using RSA public key\n\t\t\trsaCipher = Cipher.getInstance(\"RSA/NONE/PKCS1Padding\");\n\t\t\trsaCipher.init(Cipher.ENCRYPT_MODE, this.pubKey);\n\t\t\tbyte[] encKey = rsaCipher.doFinal(aesKey.getEncoded());\n\n\t\t\t// Create output\n\t\t\tString keyResult = new String(Base64.encodeBytes(encKey, 0));\n\t\t\tString ivResult = new String(Base64.encodeBytes(iv, 0));\n\t\t\tString dataResult = new String(Base64.encodeBytes(data, 0));\n\t\t\tString result = FORMAT_ID + \"|\" + VERSION + \"|\" + this.keyId + \"|\"\n\t\t\t\t\t+ keyResult + \"|\" + ivResult + \"|\" + dataResult;\n\t\t\treturn Base64.encodeBytes(result.getBytes(), Base64.URL_SAFE);\n\t\t} catch (InvalidKeyException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (NoSuchPaddingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalBlockSizeException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (BadPaddingException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidAlgorithmParameterException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn \"Encryption_Failed\";\n\t}", "String getPublicKeyActorSend();", "public void sendKeys() throws Exception{\n ATMMessage atmMessage = (ATMMessage)is.readObject();\r\n System.out.println(\"\\nGot response\");\r\n \r\n //System.out.println(\"Received second message from the client with below details \");\r\n //System.out.println(\"Response Nonce value : \"+atmMessage.getResponseNonce());\r\n \r\n if(!verifyMessage(atmMessage))error(\" Nonce or time stamp does not match\") ;\r\n kSession = crypto.makeRijndaelKey();\r\n \r\n Key kRandom = crypto.makeRijndaelKey();\r\n byte [] cipherText = crypto.encryptRSA(kRandom,kPubClient);\r\n os.writeObject((Serializable)cipherText);\r\n System.out.println(\"\\nSending Accept and random key\");\r\n \r\n \r\n cipherText = crypto.encryptRSAPrivateKey(kSession,kPrivBank);\r\n atmMessage = new ATMMessage(); \r\n atmMessage.setEncryptedSessionKey(cipherText);\r\n cipherText = crypto.encryptRijndael(atmMessage,kRandom);\r\n currTimeStamp = System.currentTimeMillis();\r\n os.writeObject((Serializable)cipherText);\r\n //System.out.println(\"Session Key send to the client \");\r\n \r\n //SecondServerMessage secondServerMessage = new SecondServerMessage();\r\n //secondServerMessage.setSessionKey(kSession);\r\n \r\n //byte [] cipherText1;\r\n //cipherText = crypto.encryptRSAPrivateKey(kSession,kPrivBank);\r\n //cipherText1 = crypto.encryptRSA(cipherText,clientPublicKey);\r\n //os.writeObject((Serializable)cipherText1);\r\n \r\n //System.out.println(\"Second message send by the server which contains the session key. \");\r\n //System.out.println(\"\\n\\n\\n\");\r\n \r\n \r\n }", "public static void main(String[] args) throws Exception\n\t{\n\t\tSecurity.addProvider(new BouncyCastleProvider());\n\t\t//generate pub/prv keys \n\t\trsaGenerator rsa = new rsaGenerator();\n\t\trsa.generateRSAKey(\"server\");\n\n\t\t//Create a socket on port 3000\n\t\tServerSocket ss = new ServerSocket(3000);\t\n\t\tSystem.out.println(\"Waiting for client to connect...\");\n\t\tSocket s = ss.accept(); //Accept client connection \n\t\tSystem.out.println(\"Client connected\");\n\t\tObjectOutputStream dos = new ObjectOutputStream(s.getOutputStream()); //outputstream to send message to client\n\t\tdos.writeObject(\"You are connected\");\n\t\t\t\n\t\tObjectInputStream dis = new ObjectInputStream(s.getInputStream()); //input stream to recieve message from client\n\t\tSystem.out.println();\n\n //Recieve key and message from client\n SecretKey k = (SecretKey) dis.readObject(); //recieves the key\n byte[] iv = (byte[])dis.readObject(); //receives the iv\n byte[] received = (byte[])dis.readObject(); //recieves the encypted hash + message\n \n System.out.println(\"Received: \"+Base64.getEncoder().encodeToString(received));\n System.out.println();\n\n //decrypt the shared key using RSA\n System.out.println(\"Encoded Key: \"+ k);\n SecretKey decKey = rsa.decryptSharedKey(k.getEncoded());\n System.out.println(\"Decoded Key: \"+decKey);\n System.out.println();\n\n //decrypt using shared key \n\t\tbyte[] decryptCompByte = decryptByte(received,decKey,iv);\n System.out.println(\"Decrypted compressed concatenation: \"+Base64.getEncoder().encodeToString(decryptCompByte));\n System.out.println();\n \n //decompress\n String dcomp = decompress(decryptCompByte);\n \n \n //Separating the concatination\n String hash = dcomp.substring(0,dcomp.indexOf(\"|||\"));\n String message = dcomp.substring(dcomp.indexOf(\"|||\")+3);\n System.out.println(\"Encrypted hash: \"+hash);\n System.out.println();\n \n //decrypt hash using rsa\n hash = rsa.decryptHas(Base64.getDecoder().decode(hash));\n System.out.println(\"Decrypted hash: \"+hash);\n System.out.println();\n\n //create own hash to compare for authentication\n String myHash = Hash.hash(message);\n if(hash.equals(myHash))\n {\n System.out.println(\"---Message authenticated---\");\n System.out.println(message);\n System.out.println();\n System.out.println(\"Message received. Goodbye.\");\n }\n else\n {\n System.out.println(\"---Message NOT authenticated---\\nGoodbye.\");\n }\n \n s.close();\n ss.close();\n dos.close();\n dis.close();\n\t\t\t\n\n\t}", "public boolean isEncryptionKey()\n {\n int algorithm = publicPk.getAlgorithm();\n\n return ((algorithm == RSA_GENERAL) || (algorithm == RSA_ENCRYPT)\n || (algorithm == ELGAMAL_ENCRYPT) || (algorithm == ELGAMAL_GENERAL));\n }", "public CryptoKey getMyKey() {\n return myKey;\n }", "private void initKey() {\n String del = \":\";\n byte[] key;\n if (MainGame.applicationType == Application.ApplicationType.Android) {\n key = StringUtils.rightPad(Build.SERIAL + del + Build.ID + del, 32, \"~\").getBytes();\n } else if (MainGame.applicationType == Application.ApplicationType.Desktop) {\n key = new byte[]{0x12, 0x2d, 0x2f, 0x6c, 0x1f, 0x7a, 0x4f, 0x10, 0x48, 0x56, 0x17, 0x4b, 0x4f, 0x48, 0x3c, 0x17, 0x04, 0x06, 0x4b, 0x6d, 0x1d, 0x68, 0x4b, 0x52, 0x50, 0x50, 0x1f, 0x06, 0x29, 0x68, 0x5c, 0x65};\n } else {\n key = new byte[]{0x77, 0x61, 0x6c, 0x0b, 0x04, 0x5a, 0x4f, 0x4b, 0x65, 0x48, 0x52, 0x68, 0x1f, 0x1d, 0x3c, 0x4a, 0x5c, 0x06, 0x1f, 0x2f, 0x12, 0x32, 0x50, 0x19, 0x3c, 0x52, 0x04, 0x17, 0x48, 0x4f, 0x6d, 0x4b};\n }\n for (int i = 0; i < key.length; ++i) {\n key[i] = (byte) ((key[i] << 2) ^ magic);\n }\n privateKey = key;\n }", "static byte[] encrypt(String plainText, byte[] publicKeyEncoded) throws Exception {\n Cipher cipher = Cipher.getInstance(RSA__PADDING);\n\n PublicKey publicKey =\n KeyFactory.getInstance(\"RSA\").generatePublic(new X509EncodedKeySpec(publicKeyEncoded));\n\n //Initialize Cipher for ENCRYPT_MODE\n cipher.init(Cipher.ENCRYPT_MODE, publicKey);\n\n //Perform Encryption\n\n return cipher.doFinal(plainText.getBytes());\n }", "public byte[] encrypt(final PrivateKeyInterface key, final byte[] data)\n {\n return this.encryptionCipher().encrypt(key, data);\n }", "public short key();", "public CaesarCipherOne(int key) {this.key=key;}", "public static String encrypt(String str)\n {\n StringBuilder sb = new StringBuilder(str);\n\n int lenStr = str.length();\n int lenKey = key.length();\n\n //\n // For each character in our string, encrypt it...\n for ( int i = 0, j = 0; i < lenStr; i++, j++ )\n {\n if ( j >= lenKey ) j = 0; // Wrap 'round to beginning of key string.\n\n //\n // XOR the chars together. Must cast back to char to avoid compile error.\n //\n sb.setCharAt(i, (char)(str.charAt(i) ^ key.charAt(j)));\n }\n\n return sb.toString();\n }", "private static void keyExchange() throws IOException, NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException {\r\n\t\t//receive from server\r\n\t\tPublicKey keyserver = cryptoMessaging.recvPublicKey(auctioneer.getInputStream());\r\n\t\t//receive from clients\r\n\t\tPublicKey keyclients[] = new PublicKey[3];\r\n\t\tbiddersigs = new PublicKey[3];\r\n\t\tInputStream stream;\r\n\t\tfor (int i=0; i < bidders.size(); i++) {\r\n\t\t\tstream=(bidders.get(i)).getInputStream();\r\n\t\t\tkeyclients[i] = cryptoMessaging.recvPublicKey(stream);\r\n\t\t\tbiddersigs[i] = keyclients[i];\r\n\t\t}\r\n\t\t//send to auctioneer\r\n\t\tcryptoMessaging.sendPublicKey(auctioneer.getOutputStream(), keyclients[0]); \r\n\t\tcryptoMessaging.sendPublicKey(auctioneer.getOutputStream(), keyclients[1]); \r\n\t\tcryptoMessaging.sendPublicKey(auctioneer.getOutputStream(), keyclients[2]); \r\n\t\t//send to clients\r\n\t\tcryptoMessaging.sendPublicKey((bidders.get(0)).getOutputStream(), keyserver); \r\n\t\tcryptoMessaging.sendPublicKey((bidders.get(1)).getOutputStream(), keyserver); \r\n\t\tcryptoMessaging.sendPublicKey((bidders.get(2)).getOutputStream(), keyserver); \r\n\t\t\r\n\t\t\r\n\t\t// now receive paillier public keys from bidders and auctioneer\r\n\t\tauctioneer_pk = cryptoMessaging.recvPaillier(auctioneer.getInputStream());\r\n\t\tpk[0] = cryptoMessaging.recvPaillier((bidders.get(0)).getInputStream());\r\n\t\tpk[1] = cryptoMessaging.recvPaillier((bidders.get(1)).getInputStream());\r\n\t\tpk[2] = cryptoMessaging.recvPaillier((bidders.get(2)).getInputStream());\r\n\t}", "@Test\n @SuppressWarnings(\"ResultOfMethodCallIgnored\")\n public void passphraseIsNotSymmetricKey() {\n SymmetricKey secret = new SymmetricKey();\n SecureCell.Seal cellMK = SecureCell.SealWithKey(secret);\n SecureCell.Seal cellPW = SecureCell.SealWithPassphrase(secret.toByteArray());\n byte[] message = \"All your base are belong to us!\".getBytes(StandardCharsets.UTF_8);\n\n byte[] encryptedMK = cellMK.encrypt(message);\n byte[] encryptedPW = cellPW.encrypt(message);\n\n try {\n cellPW.decrypt(encryptedMK);\n fail(\"expected SecureCellException\");\n }\n catch (SecureCellException ignored) {}\n try {\n cellMK.decrypt(encryptedPW);\n fail(\"expected SecureCellException\");\n }\n catch (SecureCellException ignored) {}\n }", "public static String caesarCypherEncryptor(String str, int key) {\n /* StringBuilder cipher = new StringBuilder();\n for (char ch : str.toCharArray()) {\n char shiftedChar = (char) (((ch - 'a' + key) % 26) + 'a');\n cipher.append(shiftedChar);\n }\n return cipher.toString();*/\n\n return str.chars()\n .mapToObj(ch -> (char) (((ch - 'a' + key) % 26) + 'a'))\n .map(String::valueOf)\n .collect(Collectors.joining());\n }", "public CryptObject encrypt(BigIntegerMod message, BigIntegerMod r);", "@Override\n public byte[] encrypt(byte[] plaintext) {\n java.security.spec.ECPoint point = hashIntoTheCurveInternal(plaintext);\n return encrypt(convertECPoint(point));\n }", "public String getKeyPrivate() throws LibMCryptException {\n\t\t\r\n\t\tString privateK = priK.getModulus().toString(16);\r\n\t\treturn privateK;\r\n\t}", "com.google.cloud.video.livestream.v1.Encryption.Clearkey getClearkey();", "public ECP getPublicKGCKey(){return pkS;}", "OutputFile encryptingOutputFile();", "protected PublicKey getCAPublicKey(SOAPMessageContext smc) throws Exception {\n Certificate certCA = readCertificateFile(\"/home/dziergwa/Desktop/SD/T_27-project/transporter-ws/src/main/resources/UpaCA.cer\");\n return certCA.getPublicKey();\n }", "private void encode(){\r\n \r\n StringBuilder sb = new StringBuilder();\r\n \r\n /*\r\n *if a character code is >126 after adding the encryption key, subtract \r\n *95 to wrap\r\n */\r\n for(int i = 0; i < message.length(); i++){\r\n if(message.charAt(i) + key > 126){\r\n int wrappedKey = message.charAt(i) + key - 95;\r\n \r\n sb.append((char) wrappedKey);\r\n \r\n /*\r\n *if a character code ins't > 126 after adding the encryption key\r\n */\r\n } else{\r\n int wrappedKey = message.charAt(i) + key;\r\n sb.append( (char) wrappedKey);\r\n }\r\n }\r\n /*\r\n *case coded message to a string\r\n */\r\n codedMessage = sb.toString();\r\n }", "private native void dll_encrypt(String path_in, String path_out, byte[] npub, byte[] key, int alg);", "public byte[] encrypt(byte[] input, String publicKeyFilePath) throws Exception {\n\t\treturn encrypt(input, getPublicKey(publicKeyFilePath));\n\t}", "public void insertDeviceRSAPublicKey(int deviceID, String data) {\n Log.i(LOG_TAG, \"Writing RSA Public key of \"+deviceID);\n if (deviceID > -1) {\n connection.delete(\"RSA\",\"DeviceID = ?\",new String[]{deviceID+\"\"});\n ContentValues cv = new ContentValues();\n cv.put(\"DeviceID\", deviceID);\n cv.put(\"Key\",data);\n connection.insert(\"RSA\",null,cv);\n Log.i(LOG_TAG,\"New RSA Public key for device \"+deviceID);\n }\n }", "public String encrypt(String word){\n\tint modulus = rsaKeyA * rsaKeyB;\n\tint totient = (rsaKeyA - 1)*(rsaKeyB - 1);\n\tpublicE = calculateExponent(totient);\n\tprivateD = 1 + ((int)Math.random()*10)*totient;\n \n\tif(word == null||word.length()==0) throw new IllegalArgumentException();\n\tString result = \"\";\n\tString wordLower = word.toLowerCase();\n\n\tfor(int i=0; i<wordLower.length(); i++){\n\t if(wordLower.charAt(i)<97 || wordLower.charAt(i)>122)\n\t\tthrow new IllegalArgumentException();\n\t int a = (wordLower.charAt(i)-97);\n\t int b = (int)Math.pow(a,publicE);\n\t int k = (b%26)+97;\n\t result += Character.toString((char)k);\n\t}\n\treturn result;\n }", "public String getSecretKey();", "private static void keyPairGenerator() throws NoSuchAlgorithmException, IOException {\n KeyPairGenerator kpg = KeyPairGenerator.getInstance(\"RSA\");\n kpg.initialize(2048);\n KeyPair keyPair = kpg.generateKeyPair();\n\n //Get public and private keys\n Key publicKey = keyPair.getPublic();\n Key privateKey = keyPair.getPrivate();\n\n String outFile = files_path + \"/Client_public\";\n PrintStream out = null;\n out = new PrintStream(new FileOutputStream(outFile + \".key\"));\n out.write(publicKey.getEncoded());\n out.close();\n\n outFile = files_path + \"/Client_private\";\n out = new PrintStream(new FileOutputStream(outFile + \".key\"));\n out.write(privateKey.getEncoded());\n out.close();\n\n System.err.println(\"Private key format: \" + privateKey.getFormat());\n // prints \"Private key format: PKCS#8\" on my machine\n\n System.err.println(\"Public key format: \" + publicKey.getFormat());\n // prints \"Public key format: X.509\" on my machine\n\n }", "public static synchronized Object makeKey (byte[] k)\r\n throws InvalidKeyException {\r\nif (DEBUG) trace(IN, \"makeKey(\"+k+\")\");\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"Intermediate Session Key Values\");\r\nSystem.out.println();\r\nSystem.out.println(\"Raw=\"+toString(k));\r\n}\r\n //\r\n //...\r\n //\r\n Object sessionKey = null;\r\n\r\n frog_InternalKey intkey = new frog_InternalKey();\r\n \t /* Fill internal key with hashed keyMaterial */\r\n intkey.internalKey = frog_procs.hashKey( k );\r\n \t /* Convert internalKey into a valid format for encrypt and decrypt (see B.1.2.e) */\r\n intkey.keyE = frog_procs.makeInternalKey( frog_Algorithm.DIR_ENCRYPT, intkey.internalKey );\r\n intkey.keyD = frog_procs.makeInternalKey( frog_Algorithm.DIR_DECRYPT, intkey.internalKey );\r\n \r\n sessionKey = intkey;\r\n //\r\n // ...\r\n //\r\nif (DEBUG && debuglevel > 7) {\r\nSystem.out.println(\"...any intermediate values\");\r\nSystem.out.println();\r\n}\r\nif (DEBUG) trace(OUT, \"makeKey()\");\r\n return sessionKey;\r\n }", "@Override\n public byte[] reEncrypt(byte[] ciphertext) {\n ECPoint point = checkPointOnCurve(ciphertext);\n return encrypt(point);\n }", "public java.lang.String getEncryptedKey() {\n\t\treturn encryptedKey;\n\t}", "public String encrypt(String geheimtext);", "com.google.protobuf.ByteString getPublicKeyBytes();", "@PostMapping(\"/create\")\n public String createSymmetricKey() {\n\n AWSKMS kmsClient = new KmsClientBuilder().buildKmsClient();\n \n String creatingMasterKey = \"Creating Master Key\";\n CreateKeyRequest request = new CreateKeyRequest().withDescription(creatingMasterKey);\n CreateKeyResult result = kmsClient.createKey(request);\n\n return \"Object Type: Symmetric Key\\nuid: \"+ uid + \"\\n\";\n }", "@Override\n\tpublic ECKey toPublicJWK() {\n\n\t\treturn new ECKey(\n\t\t\tgetCurve(), getX(), getY(),\n\t\t\tgetKeyUse(), getKeyOperations(), getAlgorithm(), getKeyID(),\n\t\t\tgetX509CertURL(), getX509CertThumbprint(), getX509CertSHA256Thumbprint(), getX509CertChain(),\n\t\t\tgetKeyStore());\n\t}", "public static void execEnkripsi(File fileTemp, String pathTempFileEncryptName, String pathEncryptedSecretKeyFile, String pemContent, SimpleDateFormat sdf, String outputFileNameZip) throws Exception{\n String secretKey=RandomStringUtils.randomAlphanumeric(16);\r\n System.out.println(\"Generated Secret Key :\"+secretKey);\r\n File exportedFile;\r\n CompressingUtils compressingUtils = new CompressingUtils();\r\n String tmpPlainZipped = lokasiHasil+\"/tmp\"+outputFileNameZip;\r\n List<File> lsFile = new ArrayList<>();\r\n lsFile.add(fileTemp);\r\n if(compressingUtils.createZipWithoutPassword(lsFile, tmpPlainZipped)){\r\n exportedFile = new File(tmpPlainZipped);\r\n //delete file awal yang telah dikompresi\r\n for(File dfile : lsFile){\r\n dfile.delete();\r\n }\r\n }else{\r\n throw new Exception(\"gagal melakukan kompresi file\");\r\n }\r\n System.out.println(\"file kompresi berhasil dibuat \"+ outputFileNameZip);\r\n\r\n /*Step 3 : enkripsi file dengan kunci acak */\r\n System.out.println(\"Step 3 : enkripsi file dengan kunci acak\");\r\n\r\n\r\n String fileOutputEcnryptedname = lokasiHasil+\"/\"+outputFileNameZip;\r\n\r\n File tempFileEncryptName = new File(pathTempFileEncryptName);\r\n try {\r\n CryptoUtils.encrypt(secretKey, exportedFile, tempFileEncryptName);\r\n } catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi file gagal : \" + e.getMessage());\r\n }\r\n\r\n EncryptionUtils utils = new EncryptionUtils();\r\n PublicKey publicKey = utils.getPublicKeyFromX509(pemContent);\r\n\r\n /*Step 4 : Enkripsi kunci acak dengan public key dari DJP*/\r\n System.out.println(\"Step 4 : enkripsi kunci acak dengan public key dari DJP\");\r\n\r\n String encryptedSecretKey;\r\n try{\r\n encryptedSecretKey = CryptoUtils.encrypt(secretKey, publicKey);\r\n }catch (CryptoException e) {\r\n throw new Exception(\"Enkripsi kunci gagal : \" + e.getMessage());\r\n }\r\n File encryptedSecretKeyFile = new File(pathEncryptedSecretKeyFile);\r\n try {\r\n FileOutputStream outputStream = new FileOutputStream(encryptedSecretKeyFile);\r\n outputStream.write(encryptedSecretKey.getBytes());\r\n outputStream.close();\r\n }catch (FileNotFoundException e){\r\n throw new Exception(\"kunci yang dienkripsi tidak ditemukan : \" + pathEncryptedSecretKeyFile);\r\n } catch (IOException e) {\r\n throw new Exception(\"gagal membentuk kunci enkripsi\");\r\n }\r\n\r\n /*Step 5: Compress data dan key kedalam file zip dan menjadi hasil akhir*/\r\n System.out.println(\"Step 5: Compress enkripsi file dan kunci kedalam file zip\");\r\n\r\n List<File> listFiles = new ArrayList<File>();\r\n listFiles.add(tempFileEncryptName);\r\n listFiles.add(encryptedSecretKeyFile);\r\n\r\n if(listFiles.size() != 2){\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n throw new Exception(\"file enkripsi dan/atau key enkripsi salah satunya tidak ada\");\r\n }\r\n\r\n compressingUtils = new CompressingUtils();\r\n if (compressingUtils.createZip(listFiles, fileOutputEcnryptedname)) {\r\n /*Step 6 : hapus file data dan key, hasil dari step 3 dan 4 */\r\n System.out.println(\"Step 6 : hapus file data dan key, hasil dari step 3 dan 4\");\r\n\r\n for (File file : listFiles) {\r\n file.delete();\r\n }\r\n /*Step 7: hapus file zip, hasil dari step 2 */\r\n System.out.println(\"Step 7: hapus file zip, hasil dari step 2\");\r\n\r\n exportedFile.delete();\r\n }\r\n\r\n System.out.println(\"Proses enkripsi selesai, nama file : \" + fileOutputEcnryptedname);\r\n }", "public String encrypt(String plainText);", "public static void main(String[] args) {\n KeyPairGenerator keygen = null;\n try {\n keygen = KeyPairGenerator.getInstance(\"RSA\");\n SecureRandom secrand = new SecureRandom();\n // secrand.setSeed(\"17\".getBytes());//初始化随机产生器\n keygen.initialize(2048, secrand);\n KeyPair keys = keygen.genKeyPair();\n PublicKey publicKey = keys.getPublic();\n PrivateKey privateKey = keys.getPrivate();\n String pubKey = Base64.encode(publicKey.getEncoded());\n String priKey = Base64.encode(privateKey.getEncoded());\n System.out.println(\"pubKey = \" + new String(pubKey));\n System.out.println(\"priKey = \" + new String(priKey));\n\n/*\n X509EncodedKeySpec keySpec = new X509EncodedKeySpec(pubkey.getEncoded());\n KeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n PublicKey publicKey = keyFactory.generatePublic(keySpec);\n pubKey = Base64.encode(publicKey.getEncoded());\n System.out.println(\"pubKey = \" + new String(pubKey));\n*/\n\n/*\n PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(prikey.getEncoded());\n KeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n PrivateKey privateKey = keyFactory.generatePrivate(keySpec);\n priKey = Base64.encode(privateKey.getEncoded());\n System.out.println(\"priKey = \" + new String(priKey));\n*/\n //(N,e)是公钥\n RSAPublicKey rsaPublicKey = (RSAPublicKey) publicKey;\n System.out.println(\"RSAPublicKey:\");\n System.out.println(\"Modulus.length=\" +\n rsaPublicKey.getModulus().bitLength());\n System.out.println(\"Modulus=\" + rsaPublicKey.getModulus().toString());//n\n System.out.println(\"PublicExponent.length=\" +\n rsaPublicKey.getPublicExponent().bitLength());\n System.out.println(\"PublicExponent=\" + rsaPublicKey.getPublicExponent().toString());//e\n\n\n //(N,d)是私钥\n RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKey;\n System.out.println(\"RSAPrivateKey:\");\n System.out.println(\"Modulus.length=\" +\n rsaPrivateKey.getModulus().bitLength());\n System.out.println(\"Modulus=\" + rsaPrivateKey.getModulus().toString());//n\n System.out.println(\"PrivateExponent.length=\" +\n rsaPrivateKey.getPrivateExponent().bitLength());\n System.out.println(\"PrivateExponent=\" + rsaPrivateKey.getPrivateExponent().toString());//d\n\n String encodeData = encode(\" public static String encode(String toEncode,String D, String N) {\\n\" +\n \" // BigInteger var2 = new BigInteger(\\\"17369712262290647732768133445861332449863405383733306695896586821166245382729380222118948668590047591903813382253186640467063376463309880263824085810383552963627855603429835060435976633955217307266714318344160886538360012623239010786668755679438900124601074924850696725233212494777766999123952653273738958617798460338184668049410136792403729341479373919634041235053823478242208651592611582439749292909499663165109004083820192135244694907138372731716013807836312280426304459316963033144149631900633817073029029413556757588486052978078614048837784810650766996280232645714319416096306667876390555673421669667406990886847\\\");\\n\" +\n \" // BigInteger var3 = new BigInteger(\\\"65537\\\");\\n\" +\n \" int MAX_ENCRYPT_BLOCK = 128;\\n\" +\n \" int offSet = 0;\\n\" +\n \" byte[] cache;\\n\" +\n \" int i = 0;\\n\" +\n \" ByteArrayOutputStream out = new ByteArrayOutputStream();\\n\" +\n \" try {\\n\" +\n \" RSAPrivateKeySpec rsaPrivateKeySpec = new java.security.spec.RSAPrivateKeySpec(new BigInteger(N),new BigInteger(D));\\n\" +\n \" KeyFactory keyFactory = java.security.KeyFactory.getInstance(\\\"RSA\\\");\\n\" +\n \" PrivateKey privateKey = keyFactory.generatePrivate(rsaPrivateKeySpec);\\n\" +\n \" Cipher cipher = javax.crypto.Cipher.getInstance(\\\"RSA\\\");\\n\" +\n \" cipher.init(Cipher.ENCRYPT_MODE,privateKey);\\n\" +\n \"\\n\" +\n \" byte[] data = toEncode.getBytes(StandardCharsets.UTF_8);\\n\" +\n \" int inputLen = data.length;\\n\" +\n \" // 对数据分段加密\\n\" +\n \" while (inputLen - offSet > 0) {\\n\" +\n \" if (inputLen - offSet > MAX_ENCRYPT_BLOCK) {\\n\" +\n \" cache = cipher.doFinal(data, offSet, MAX_ENCRYPT_BLOCK);\\n\" +\n \" } else {\\n\" +\n \" cache = cipher.doFinal(data, offSet, inputLen - offSet);\\n\" +\n \" }\\n\" +\n \" out.write(cache, 0, cache.length);\\n\" +\n \" i++;\\n\" +\n \" offSet = i * MAX_ENCRYPT_BLOCK;\\n\" +\n \" }\\n\" +\n \" byte[] datas = out.toByteArray();\\n\" +\n \" out.close();\\n\" +\n \"\\n\" +\n \" //byte[] datas = datas = cipher.doFinal(toEncode.getBytes());\\n\" +\n \" datas = org.apache.commons.codec.binary.Base64.encodeBase64(datas);\\n\" +\n \" return new String(datas,StandardCharsets.UTF_8);\\n\" +\n \" } catch (NoSuchAlgorithmException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" } catch (InvalidKeySpecException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" } catch (NoSuchPaddingException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" } catch (InvalidKeyException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" } catch (BadPaddingException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" } catch (IllegalBlockSizeException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" } catch (IOException e) {\\n\" +\n \" e.printStackTrace();\\n\" +\n \" }\\n\" +\n \" return null;\\n\" +\n \" }\",rsaPrivateKey.getPrivateExponent().toString(),rsaPrivateKey.getModulus().toString());\n String decodeData = decode(encodeData,rsaPublicKey.getPublicExponent().toString(),rsaPublicKey.getModulus().toString());\n\n System.out.println(encodeData);\n System.out.println(decodeData);\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }/* catch (InvalidKeySpecException e) {\n e.printStackTrace();\n }*/\n }" ]
[ "0.67742884", "0.64988095", "0.6451145", "0.6439533", "0.6436589", "0.637664", "0.63726175", "0.63177794", "0.6312535", "0.6305379", "0.61977524", "0.61451226", "0.61161095", "0.6065475", "0.60447365", "0.60253036", "0.60213625", "0.5983228", "0.5936218", "0.5935392", "0.59043103", "0.59017223", "0.5901715", "0.5887578", "0.5885427", "0.5883231", "0.58814126", "0.58632773", "0.5855733", "0.58373505", "0.5817924", "0.5804839", "0.5798534", "0.5793227", "0.5790882", "0.5784558", "0.5781026", "0.5768827", "0.5760248", "0.5732958", "0.5720536", "0.5702322", "0.5689135", "0.5675829", "0.56702596", "0.566197", "0.5658712", "0.56478983", "0.5644897", "0.56407493", "0.5634223", "0.563126", "0.5630304", "0.5585548", "0.5583457", "0.55668205", "0.5565232", "0.55584556", "0.555277", "0.55383384", "0.5534507", "0.55055517", "0.5496689", "0.5495273", "0.54886854", "0.5477277", "0.54687756", "0.5467214", "0.5463913", "0.54623395", "0.54610384", "0.5457657", "0.5455428", "0.5454767", "0.5436546", "0.5428311", "0.5424621", "0.5421823", "0.54174215", "0.5410966", "0.5389283", "0.5385759", "0.537862", "0.53777814", "0.5376595", "0.5374285", "0.53667253", "0.5365164", "0.5361142", "0.5358362", "0.53539276", "0.534914", "0.53361315", "0.53265923", "0.53225106", "0.5320995", "0.53138554", "0.5311703", "0.53113556", "0.5308239" ]
0.7386564
0
This Private methods writes the steps\\errors to the log file
private void writeToLog(String logMessage) throws IOException { LogWriter.write(logMessage); LogWriter.newLine(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void toLogFile() {\n\t\tRetroTectorEngine.toLogFile(\"Error message from \" + THESTRINGS[0] + \":\");\n\t\tfor (int i=1; i<THESTRINGS.length; i++) {\n\t\t\tRetroTectorEngine.toLogFile(THESTRINGS[i]);\n\t\t}\n\t}", "private void log() {\n logger.error(\"insert queue (last {}, current {}, change {}/minute)\",\n insertQueueLast, insertQueueCurrent,\n insertQueueDelta);\n logger.error(\"commits (last {}, current {}, change {}/minute)\",\n commitLast, commitCurrent, commitDelta);\n logger.error(\"dropped (last {}, current {}, change {}/minute)\",\n droppedLast, droppedCurrent, droppedDelta);\n logger.error(\"total memory {}; free memory {}\",\n Runtime.getRuntime().totalMemory(),\n Runtime.getRuntime().freeMemory());\n }", "private void logError(String msg)\n {\n GlobeRedirector.errorLog.write(msg);\n }", "protected static void errorLog(float error){\n\n\t\tString logString = error + \"\\n\";\n\t\ttry {\n\t\t\tFiles.write(Paths.get(\"errorLog.txt\"), logString.getBytes(), StandardOpenOption.APPEND);\n\t\t}catch (IOException e) {\n\t\t\t//exception handling left as an exercise for the reader\n\t\t}\n\t}", "public static void printWriteFileError() {\n System.out.println(Message.WRITE_FILE_ERROR);\n }", "public static void error(String stepName, String description) \n\t{\n\t\ttry{\n\t\t\ttest.log(LogStatus.ERROR, stepName, description);\n\t\t\tReporter.blnStatus=false;\n\t\t}catch(Exception e){fnPrintException(e);}\t\n\t}", "public void errorFileEscenario() {\n\t\tvisorEscenario.errorFileEscenario();\t\n\t}", "public boolean writeErrorsToLog(ArrayList<StructuralError> errors) {\n boolean bState = false;\n try {\n //make new log file if it doesnt exit\n if (fLogFile == null) {\n this.newLogFile();\n }\n //build the error log object\n StructuralErrorLog sel = new StructuralErrorLog();\n sel.sourceFile = this.sourceDocument;\n sel.timeStamp = this.timeStamp;\n sel.structuralErrors = errors;\n //write the object to xml\n XStream xst = new XStream();\n FileWriter fwLogFile = new FileWriter(fLogFile);\n xst.toXML(sel, fwLogFile);\n bState = true;\n } catch (java.io.IOException ex) {\n log.error(\"writeErrorsToLog :\" + ex.getMessage());\n } catch (XStreamException ex) {\n log.error(\"writeErrorsToLog :\" + ex.getMessage());\n } finally {\n return bState;\n }\n }", "public static void printReadFileAddTaskError() {\n System.out.println(Message.READ_FILE_ADD_TASK_ERROR);\n }", "abstract void initiateErrorLog();", "private static void writeLog(Exception e) {\n if (logFile == null) createLogFile();\n LogTools.trace(e);\n LogTools.flush();\n }", "public void recordLog(){\r\n\t\tthis.finishLog(resourceFiles.getString(\"PathHepparIITestDirectory\") + \"/\" + TEST_FILE_NAME); \r\n\t}", "protected abstract void logError(Exception e);", "public final void printErrors() {\n for (ShadowException exception : errorList) LOGGER.error(exception.getMessage());\n }", "public void generateLogFile() {\n\t\tFileOperations operator = new FileOperations(path);\n\t\toperator.writeFile(buildLogContent());\n\t}", "private void showErrors() {\n \t\tfor (Iterator it = this.errors.iterator(); it.hasNext();) {\n \t\t\ttry {\n \t\t\t\tObject err = it.next();\n \t\t\t\t\n \t\t\t\t/* errors can be represented by PositionedError, UnpositionedError or String */\n \t\t\t\tif (err instanceof PositionedError) {\n \t\t\t\t\tPositionedError error = (PositionedError)err;\n \t\t\t\t\tTokenReference token = error.getTokenReference();\n \t\n \t\t\t\t log.debug(\"file: \" + token.getFile() + \", \" + \"line: \" //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n \t\t\t\t\t\t\t+ token.getLine() + \", \" + \"path: \" //$NON-NLS-1$//$NON-NLS-2$\n \t\t\t\t\t\t\t+ token.getPath());\n \n \t\t\t\t\tIResource resource = ProjectProperties.findResource(token\n \t\t\t\t\t\t\t.getPath().getAbsolutePath(), currentProject);\n \t\t\t\t\t\n \t\t\t\t\tIMarker marker = null;\n \t\t\t\t\tif (resource != null) {\n \t\t\t\t\t\tmarker = resource.createMarker(IMarker.PROBLEM);\n \t\t\t\t\t\tif (token.getLine() > 0) {\n \t\t\t\t\t\t\tmarker.setAttribute(IMarker.LINE_NUMBER, token.getLine());\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\t// for the cases, when error refers to a generated piece of code\n \t\t\t\t\t\tmarker = currentProject.createMarker(IMarker.PROBLEM);\n \t\t\t\t\t}\n \t\t\t\t\tmarker.setAttribute(IMarker.MESSAGE, error\n \t\t\t\t\t\t\t.getFormattedMessage().getMessage());\n \t\t\t\t\tmarker.setAttribute(IMarker.SEVERITY, new Integer(\n \t\t\t\t\t\t\tIMarker.SEVERITY_ERROR));\n \t\t\t\t}\n \t\t\t\telse { /* create unpositioned error at the scope of the project */\t\t\t\t\t\n \t\t\t\t\tString msg;\n \t\t\t\t\tif (err instanceof UnpositionedError) {\n \t\t\t\t\t\tmsg = ((UnpositionedError)err).getFormattedMessage().getMessage();\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tmsg = (String)err; // for internal errors\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tIMarker marker = currentProject.createMarker(IMarker.PROBLEM);\n \t\t\t\t\tmarker.setAttribute(IMarker.MESSAGE, msg);\n \t\t\t\t\tmarker.setAttribute(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_ERROR));\n \t\t\t\t}\n \t\t\t} \n \t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}", "private void logException(TestStepRunner testStepRunner)\n\t\t\tthrows AFTException {\n\t\tLOGGER.error(errorMessage);\n\n\t\tString onDbErrorValue = setOnDbErrorValue(testStepRunner);\n\n\t\tLOGGER.info(\"User has defined '\"\n\t\t\t\t+ ConfigProperties.ONERROR_DB_CONNECTION\n\t\t\t\t+ \"' to [\"\n\t\t\t\t+ onDbErrorValue\n\t\t\t\t+ \"]. This test case execution will be stopped and test execution will continue as per '\"\n\t\t\t\t+ ConfigProperties.ONERROR_DB_CONNECTION + \"' configuration.\");\n\t\tthrow new AFTException(errorMessage);\n\t}", "public static void printFileError() {\n printLine();\n System.out.println(\" Oops! Something went wrong with duke.txt\");\n printLine();\n }", "abstract void errorLogError(String error);", "public static void writeError(Throwable JError, String JFilePath) {\n /*\n try\n\t\t{\n\t\tString JSdcardPath = JFilePath;\n\t\tif(JFilePath == null)\n\t\t{\n\t\t\tJSdcardPath = FILE_ROOT + \".Error/\";\n\t\t}\n\t\tmkdirs(FILE_ROOT);\n\t\tmkdirs(JSdcardPath);\n\n\t\tint JTotalError = new File(JSdcardPath).listFiles().length;\n\t\tString JNewFileName = JTotalError + \".txt\" ;\n\t\twriteObject( getStackTrace(JError), FILE_ROOT + \".Error/\", JNewFileName);\n\t\t}catch(IOException JE)\n\t\t{ }\n\t */\n }", "public synchronized void addError(int stepId, Exception ex) {\n\t\terrors.add(stepId + \"\\n\" + getStacktraceFromException(ex));\n\t}", "void setupFileLogging();", "@Test\n public void localAction_stderrIsReported() throws Exception {\n if (OS.getCurrent() == OS.WINDOWS) {\n return;\n }\n write(\n \"BUILD\",\n \"genrule(\",\n \" name = 'foo',\",\n \" srcs = [],\",\n \" outs = ['out/foo.txt'],\",\n \" cmd = 'echo my-error-message > $@',\",\n \")\",\n \"genrule(\",\n \" name = 'foobar',\",\n \" srcs = [':foo'],\",\n \" outs = ['out/foobar.txt'],\",\n \" cmd = 'cat $(location :foo) >&2 && exit 1',\",\n \" tags = ['no-remote'],\",\n \")\");\n RecordingOutErr outErr = new RecordingOutErr();\n this.outErr = outErr;\n\n assertThrows(BuildFailedException.class, () -> buildTarget(\"//:foobar\"));\n\n assertOutputContains(outErr.errAsLatin1(), \"my-error-message\");\n }", "@Override\r\n public void onAssertFailure(IAssert<?> assertCommand, AssertionError error) {\r\n String fileName = Screenshots.takeScreenshot(BaseTest.driver);\r\n Reporter.log(\"Step \" + (assertMessages.size()+1) + \": FAILED - <a href='\" + fileName + \"' target='_blank'>\" + error.getMessage()+\"</a>\");\r\n System.out.println(\"Step \" + (assertMessages.size()+1) +\": FAILED - \" + error.getMessage());\r\n }", "private void logErrorMessage(String found, String expected)throws LexemeException {\n\t\tSystem.out.println(\"Error: (L\" + lexAnalyser.getLineCount()\n\t\t\t\t+ \") Error on token \\\"\" + found + \"\\\" Expected \" + expected);\n\n\t\tlogMessage(\"Error on token \\\"\" + found + \"\\\" Expected \" + expected);\n\t\tlog.closeLog();\n\t\tthrow new LexemeException(\"Error on token \\\"\" + found + \"\\\" Expected \"\n\t\t\t\t+ expected);\n\n\t}", "void recordExecutionError() {\n hadExecutionError = true;\n }", "abstract void logError(String error);", "private static void setupLogging(IATOptions iatOptions) {\n\t\tPrintStream logS = null;\n\t\t\n\t\ttry {\n\t\t\tFile path = new File(iatOptions.logFilePath_);\n\t\t\tpath.getParentFile().mkdirs();\n\t\t\tlogS = new PrintStream(new FileOutputStream(path));\n\t\t\tSystem.setErr(logS);\n\t\t} catch (Exception e) {\n\t\t\tLogging.Init_LOG.error(\"Cannot open log file\", e);\n\t\t}\n\t}", "private void logToFile() {\n }", "public void logClose() throws IOException {\n\t\t\t\tlong finish = System.currentTimeMillis();\n\t\t\t\tString time = getCurrentDateTimeFull();\n\t\t\t\t// Scanning Failure Counter record:\n\t\t\t\tint failed = 0;\n\t\t\t\tif (fileExist(\"failed.num\", false)) { failed = Integer.valueOf(fileScanner(\"failed.num\")); }\n\t\t\t\t// Scanning Test Counter record:\n\t\t\t\tint n = 1;\n\t\t\t\tif (fileExist(\"test.num\", false)) {\n\t\t\t\t\tif (!fileScanner(\"test.num\").equals(null)) { n = Integer.valueOf(fileScanner(\"test.num\")); }\n\t\t\t\t}\n\t\t\t\tif (n > 1) {\n\t\t\t\t\t// Scanning Initialization record:\n\t\t\t\t\tString startingTime = fileScanner(\"ini.time\");\n\t\t\t\t\tlong start = convertStringToLong(startingTime);\n\t\t\t\t\tfileWriterPrinter(\"TOTAL TESTS: \" + Integer.valueOf(fileScanner(\"test.num\")));\n\t\t\t\t\tfileWriterPrinter(\" FAILED: \" + failed);\n\t\t\t\t\tfileWriterPrinter(\"TEST START: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(start));\n\t\t\t\t\tfileWriterPrinter(\"TEST FINISH: \" + time);\n\t\t\t\t\tfileWriterPrinter(\"TOTAL TIME: \" + convertTimeMillisecondsAsLongToDuration(finish - start));\n\t\t\t\t\tfileWriterPrinter();\n\t\t\t\t\t// Final Log record:\n\t\t\t\t\tif (fileExist(\"run.log\")) { \n\t\t\t\t\t\tfileWriter(\"run.log\", \"\");\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TOTAL TESTS: \" + Integer.valueOf(fileScanner(\"test.num\")));\n\t\t\t\t\t\tfileWriter(\"run.log\", \" FAILED: \" + failed);\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TEST START: \" + convertCalendarMillisecondsAsLongToDateTimeHourMinSec(start));\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TEST FINISH: \" + time);\n\t\t\t\t\t\tfileWriter(\"run.log\", \"TOTAL TIME: \" + convertTimeMillisecondsAsLongToDuration(finish - start));\n\t\t\t\t\t\tfileWriter(\"run.log\", \"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Clean-up unnecessary file(s)\n\t\t\t\tfileCleaner(\"failed.num\");\n\t\t\t\tfileCleaner(\"finish.time\");\n\t\t\t\tfileCleaner(\"ini.time\");\n\t\t\t\tfileCleaner(\"start.time\");\n\t\t\t\tfileCleaner(\"stack.trace\");\n\t\t\t\tfileCleaner(\"test.num\");\n\t\t\t\tfileCleaner(\"xml.path\");\n\t\t\t}", "void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}", "public void logOpen() throws IOException {\n\t\t\t\t// Initialization:\n\t\t\t\tfileCleaner(\"failed.log\");\n\t\t\t\tfileCleaner(\"failed.num\");\n\t\t\t\tfileCleaner(\"finish.time\");\n\t\t\t\tfileCleaner(\"ini.time\");\n\t\t\t\tfileCleaner(\"run.log\");\n\t\t\t\tfileCleaner(\"print.log\");\n\t\t\t\tfileCleaner(\"start.time\");\n\t\t\t\tfileCleaner(\"stack.trace\");\n\t\t\t\tfileCleaner(\"test.num\");\n\t\t\t\tfileCleaner(\"wait.log\");\n\t\t\t\tfileCleaner(\"xml.path\");\n\t\t\t\tfileCleaner(\"source.html\");\n\t\t\t\tString time = getCurrentDateTimeFull(); // System.out.print(\" TEST START: \" + time + \"\\n\");\n\t\t\t\tfileWriter(\"ini.time\", convertLongToString(System.currentTimeMillis()));\n\t\t\t\t// Initial Log record:\n\t\t\t\tfileWriter(\"run.log\", \" TEST START: \" + time);\n\t\t\t\tfileWriter(\"run.log\", \"\");\n\t\t\t}", "private void logException(Exception e)\n throws Exception {\n\n FileWriter write = null;\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Date date = new Date();\n\n try {\n write = new FileWriter(\"c:\\\\temp\\\\CaseOperationException.log\", true);\n PrintWriter print_line = new PrintWriter(write);\n print_line.printf(dateFormat.format(date) + \"\\n\");\n e.printStackTrace(print_line);\n print_line.close();\n } catch (IOException exc) {\n }\n\n throw e;\n }", "public void writeLog(Exception e, String... data){\r\n // Print to console for us to read\r\n System.out.println(\"Error: \" + e);\r\n System.out.print(\"Log: \");\r\n for(int i = 0; i < data.length; i ++){\r\n System.out.println(data[i]);\r\n }\r\n System.out.println(\"\");\r\n \r\n // Write to file\r\n try{\r\n bw.append(\"Error: \" + e);\r\n bw.append(System.lineSeparator());\r\n bw.append(\"Log: \");\r\n for(int i = 0; i < data.length; i ++){\r\n bw.append(data[i]);\r\n bw.append(System.lineSeparator());\r\n }\r\n bw.append(System.lineSeparator());\r\n bw.close();\r\n }\r\n catch(IOException ioe){\r\n System.out.println(\"Error creating file in DLException.java\\nError: \" + ioe);\r\n }\r\n }", "public void writeToExceptionLog(String report);", "private void log(Throwable t) {\r\n StringWriter sw = new StringWriter();\r\n PrintWriter w = new PrintWriter(sw);\r\n t.printStackTrace(w);\r\n w.close();\r\n log(sw.toString(), Project.MSG_ERR);\r\n }", "private void logError(String msgText) {\n System.out.println (\"[ERROR] \" + msgText);\n \n }", "private Debugger(String fileName)\n {\n try\n { \n // Create a new log file\n FileOutputStream fos = new FileOutputStream(fileName, false);\n BufferedOutputStream bf = new BufferedOutputStream(fos);\n log = new PrintWriter(bf, true); \n \n // Set stderr to go to the log file\n System.setErr(new PrintStream(bf));\n }\n catch(IOException e)\n {\n System.out.println(\n \"[DEBUGGER] Error to generate log file\\n\" + e\n );\n e.printStackTrace();\n }\n }", "public void writeTo(XMLOutput writer) throws IOException {\n ArrayList<String> actualLines = new ArrayList<String>(30);\n for (String line: build().getLog(30)) {\n if (line.trim().isEmpty()) continue; // Skip empty line to save space\n if (line.contains(\"Building \") && line.contains(\" in workspace \")) {\n // Try to detect start of the build\n actualLines.clear();\n }\n\n actualLines.add(line);\n\n if (line.contains(\"' marked build as failure\")) break; // End of build, the rest it not interesting\n }\n\n final Writer wrtr = writer.asWriter();\n for (String line: actualLines) {\n wrtr.write(line);\n wrtr.write('\\n');\n }\n }", "private void _debugSystemOutAndErr() {\n try {\n File outF = new File(System.getProperty(\"user.home\") +\n System.getProperty(\"file.separator\") + \"out.txt\");\n FileWriter wo = new FileWriter(outF);\n final PrintWriter outWriter = new PrintWriter(wo);\n File errF = new File(System.getProperty(\"user.home\") +\n System.getProperty(\"file.separator\") + \"err.txt\");\n FileWriter we = new FileWriter(errF);\n final PrintWriter errWriter = new PrintWriter(we);\n System.setOut(new PrintStream(new edu.rice.cs.util.OutputStreamRedirector() {\n public void print(String s) {\n outWriter.print(s);\n outWriter.flush();\n }\n }));\n System.setErr(new PrintStream(new edu.rice.cs.util.OutputStreamRedirector() {\n public void print(String s) {\n errWriter.print(s);\n errWriter.flush();\n }\n }));\n }\n catch (IOException ioe) {}\n }", "public void createLogFile() {\n\t\tBufferedWriter out = null;\n\t\ttry {\n\t\t\tFile root = Environment.getExternalStorageDirectory();\n\t\t\tLog.e(\"SD CARD WRITE ERROR : \", \"SD CARD mounted and writable? \"\n\t\t\t\t\t+ root.canWrite());\n\t\t\tif (root.canWrite()) {\n\t\t\t\tFile gpxfile = new File(root, \"ReadConfigLog.txt\");\n\t\t\t\tFileWriter gpxwriter = new FileWriter(gpxfile);\n\t\t\t\tout = new BufferedWriter(gpxwriter);\n\t\t\t\tout.write(\"Hello world\");\n\t\t\t\t// out.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLog.e(\"SD CARD READ ERROR : \", \"Problem reading SD CARD\");\n\t\t\tLog.e(\"SD CARD LOG ERROR : \", \"Please take logs using Logcat\");\n\t\t\tLog.e(\"<<<<<<<<<<WifiPreference>>>>>>>>>>>>\",\n\t\t\t\t\t\"Could not write file \" + e.getMessage());\n\t\t}\n\t}", "public void writeLog(){\n\t\ttry\n\t\t{\n\t\t\tFileWriter writer = new FileWriter(\"toptrumps.log\");\n\t\t\twriter.write(log);\n\t\t\twriter.close();\n\t\t\tSystem.out.println(\"log saved to toptrumps.log\");\n\t\t\t\n\t\t\tDataBaseCon.gameInfo(winName, countRounds, roundWins);\n\t\t\tDataBaseCon.numGames();\n\t\t\tDataBaseCon.humanWins();\n\t\t\tDataBaseCon.aIWins();\n\t\t\tDataBaseCon.avgDraws();\n\t\t\tDataBaseCon.maxDraws();\n\t\t\t\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void logBugInstancesToCsvFile(String workspacePath) {\n\t File logFile = new File(String.format(\"%s/LogFile.csv\", workspacePath));\n\t \n\t try {\n\t\t //we create the log file, if it already exists, this method will do nothing\n\t\t logFile.createNewFile();\n\t } catch (IOException e) {\n\t\t e.printStackTrace();\n\t }\n\t \n\t \n\t try {\n\t\t PrintWriter writer = new PrintWriter(logFile);\n\t\t \n\t\t StringBuilder sb = new StringBuilder();\n\t\t \n\t\t //preparing the columns of the csv file\n\t\t sb.append(\"Project\");\n\t\t sb.append(\",\");\n\t\t sb.append(\"Class path\");\n\t\t sb.append(\",\");\n\t\t sb.append(\"Line of the catch clause\");\n\t\t sb.append(\",\");\n\t\t sb.append(\"Line of the statement that throws the exception of the other type\");\n\t\t sb.append(\",\");\n\t\t sb.append(\"Type of destructive wrapping instance\");\n\t\t sb.append(\",\");\n\t\t sb.append(\"Type of the exception initialy caught\");\n\t\t sb.append(\",\");\n\t\t sb.append(\"Type of the exception thrown\");\n\t\t sb.append(\"\\n\");\n\t\t \n\t\t for (String projectName : projectDestructiveWrappingInstancesMap.keySet()) {\n\t\t\t HashSet<DestructiveWrappingInstance> destructiveWrappingInstancesInProj =\n\t\t\t\t\t projectDestructiveWrappingInstancesMap.get(projectName);\n\t\t\t \n\t\t\t //adding the info of each destructive wrapping instance that was flagged during the analysis\n\t\t\t for (DestructiveWrappingInstance destructiveWrappingInstance : destructiveWrappingInstancesInProj) {\n\t\t\t\t sb.append(projectName);\n\t\t\t\t sb.append(\",\");\n\t\t\t\t sb.append(destructiveWrappingInstance.getClassPath());\n\t\t\t\t sb.append(\",\");\n\t\t\t\t sb.append(destructiveWrappingInstance.getCatchClauseStartLine());\n\t\t\t\t sb.append(\",\");\n\t\t\t\t sb.append(destructiveWrappingInstance.getProblematicLineStartLine());\n\t\t\t\t sb.append(\",\");\n\t\t\t\t sb.append(destructiveWrappingInstance.getTypeOfInstance());\n\t\t\t\t sb.append(\",\");\n\t\t\t\t sb.append(destructiveWrappingInstance.getInitialExceptionCaught());\n\t\t\t\t sb.append(\",\");\n\t\t\t\t sb.append(destructiveWrappingInstance.getNewExceptionCaught());\n\t\t\t\t sb.append(\"\\n\");\n\t\t\t }\n\t\t }\n\t\t \n\t\t //writing the string that contains the info of all the destructive wrapping instances in the csv file\n\t\t writer.write(sb.toString());\n\t\t \n\t\t writer.close();\n\t } catch (FileNotFoundException e) {\n\t\t e.printStackTrace();\n\t }\n }", "void completeLogs() throws IOException;", "abstract protected String getLogFileName();", "protected void writeLog() {\r\n\r\n // get the current date/time\r\n DateFormat df1 = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM);\r\n\r\n // write to the history area\r\n if (Preferences.is(Preferences.PREF_LOG) && completed) {\r\n\r\n if (destImage != null) {\r\n\r\n if (srcImage != null) {\r\n destImage.getHistoryArea().setText(srcImage.getHistoryArea().getText());\r\n }\r\n\r\n if (historyString != null) {\r\n destImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n } else if (srcImage != null) {\r\n\r\n if (historyString != null) {\r\n srcImage.getHistoryArea().append(\"[\" + df1.format(new Date()) + \"] \" + historyString);\r\n }\r\n }\r\n }\r\n }", "void logPrgStateExec() throws FileNotFoundException, IOException;", "public static void exceptionDescriptive(String errorCause, StackTraceElement l) throws IOException {\n\t\t\t String secondLine = \"Browser Shut-Down\", location = \"\";\n\t\t\t String packageNameOnly, classNameOnly, xml, detected, runtime, subtotal;\n\n\t\t\t packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t\t classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t\t location = packageNameOnly + File.separator + classNameOnly + File.separator + l.getMethodName() + \", line # \" + l.getLineNumber();\n\t\t xml = \"<class name=\\\"\" + packageNameOnly + \".\" + classNameOnly + \"\\\"><methods><include name=\\\"\" + l.getMethodName() + \"\\\"/></methods></class>\";\n\t\t detected = getCurrentDateTimeFull();\n\t\t runtime = testRunTime(\"start.time\", System.currentTimeMillis());\n\t\t subtotal = testRunTime(\"ini.time\", System.currentTimeMillis());\n\t\t \t \n\t\t // APPEND A NEW LOG RECORDS:\n\t\t fileWriterPrinter(\"\\nError Cause: ---> \" + errorCause + \"\\nDescription: ---> \" + secondLine + \"\\n Location: ---> \" + location);\t\n\t\t if (fileExist(\"run.log\", false)) {\n\t\t\t fileWriter(\"run.log\", \"Error Cause: ---> \" + errorCause);\n\t\t\t fileWriter(\"run.log\", \"Description: ---> \" + secondLine);\n\t\t\t fileWriter(\"run.log\", \" Location: ---> \" + location);\t \t \n\t\t }\n\t\t \n\t\t // APPEND AN ERROR RECORD:\n\t\t\t fileWriter(\"failed.log\", \" Failure: #\" + fileScanner(\"failed.num\"));\n\t\t\t fileWriter(\"failed.log\", \" Test: #\" + fileScanner(\"test.num\"));\n\t\t\t fileWriter(\"failed.log\", \" Start: \" + convertCalendarMillisecondsAsStringToDateTimeHourMinSec(fileScanner(\"start.time\")));\n fileWriter(\"failed.log\", \" XML Path: \" + xml);\n\t\t\t fileWriter(\"failed.log\", \"Error Cause: ---> \" + errorCause);\n\t\t\t fileWriter(\"failed.log\", \"Description: ---> \" + secondLine);\n\t\t\t fileWriter(\"failed.log\", \" Location: ---> \" + location);\n\t\t\t fileWriter(\"failed.log\", \" Detected: \" + detected);\n\t\t \t fileWriter(\"failed.log\", \" Runtime: \" + runtime);\n\t\t \t fileWriter(\"failed.log\", \" Subtotal: \" + subtotal);\n\t\t \t fileWriter(\"failed.log\", \"\");\n\t\t \t \n\t\t // APPEND DESCRIPTIVE RECORD:\n\t\t\t Assert.assertFalse(true, \"\\n Error Cause: ---> \" + errorCause\n\t\t\t\t\t + \"\\n Description: ---> \" + secondLine\n\t\t\t\t\t + \"\\n Location: ---> \" + location\n\t\t\t\t\t\t\t\t\t + \"\\n Detected: ---> \" + detected\n\t\t\t\t\t\t\t\t\t + \"\\n Runtime: ---> \" + runtime\n\t\t\t\t\t\t\t\t\t + \"\\n Subtotal: ---> \" + subtotal\n\t\t\t\t\t + \"\\n\"\n\t\t\t\t\t\t\t + xml\n\t\t\t\t\t\t\t + \"\\n\"\n\t\t\t\t \t + \"\\nStack Traces:\");\t\t\t \n\t\t }", "public void captureScreenshot(String filename, String keyword_execution_result,Integer testStepId) throws IOException {\n \n String file_name=filename.replaceAll(\"\\\\s\",\"\"); //added by Vikas\n \n if (CONFIG.getProperty(\"screenshot_everystep\").equals(\"Y\")) {\n File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n FileUtils.copyFile(scrFile, new File(System.getProperty(\"user.dir\") + \"//screenshots//\" + file_name + \".jpg\"));\n\n } else if (keyword_execution_result.startsWith(Constants.KEYWORD_FAIL) && CONFIG.getProperty(\"screenshot_error\").equals(\"Y\")) {\n\n try {\n File scrFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE);\n String user_directory=System.getProperty(\"user.dir\");\n String directory=user_directory.replaceAll(\"\\\\s\",\"\");\n File errorFile=new File(directory + \"//screenshots//\" + file_name + \".jpg\");\n FileUtils.copyFile(scrFile,errorFile );\n if(map.containsKey(testStepId))\n {\n map.put(testStepId+incremental_value, errorFile);\n incremental_value++;\n }\n else\n {\n map.put(testStepId, errorFile);\n \n }\n }\n catch (WebDriverException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n logger.debug(\"following exception occured while capturing the screenshot\\n\\n\" + e);\n }\n }\n }", "public DLException(Exception e, String... data){\r\n try{\r\n bw = new BufferedWriter(new FileWriter(\"ErrorLog.txt\", true));\r\n }\r\n catch(IOException ioe){\r\n System.out.println(\"Error creating file in DLException.java\\nError: \" + ioe);\r\n }\r\n writeLog(e, data);\r\n }", "private void writeErrorData(ComponentError error)\n throws TechnicalException\n {\n Sequence sequence = error.getSequence();\n XdmValue userdata = SaxonHelper.toXdmValue(sequence);\n if ( userdata != null ) {\n CalabashHelper.writeTo(myPipe, ERROR, userdata, myProcs);\n }\n }", "private void error(String message) {\n errors++;\n System.err.println(\"Line \" + token.line + \",\"\n + \" Col \" + token.col + \": \"\n + message);\n }", "private static void err(String msg) {\n System.err.println(PerfCakeAgent.class.getSimpleName() + \" > ERROR: \" + msg);\n }", "public void printErrors() {\n final int size = _errors.size();\n if (size > 0) {\n System.err.println(new ErrorMsg(ErrorMsg.COMPILER_ERROR_KEY));\n for (int i = 0; i < size; i++) {\n System.err.println(\" \" + _errors.get(i));\n }\n }\n }", "protected void setUp() throws Exception {\n String workingDir = getWorkDirPath();\n new File(workingDir).mkdirs();\n File outputFile = new File(workingDir + \"/output.txt\");\n outputFile.createNewFile();\n File errorFile = new File(workingDir + \"/error.txt\");\n errorFile.createNewFile();\n PrintWriter outputWriter = new PrintWriter(new FileWriter(outputFile));\n PrintWriter errorWriter = new PrintWriter(new FileWriter(errorFile));\n org.netbeans.jemmy.JemmyProperties.setCurrentOutput(new org.netbeans.jemmy.TestOut(System.in, outputWriter, errorWriter));\n }", "private static void createLogFile() {\n try {\n String date = new Date().toString().replaceAll(\":\", \"-\");\n logFile = new FileWriter(\"bio-formats-test-\" + date + \".log\");\n TestLogger log = new TestLogger(logFile);\n LogTools.setLog(log);\n }\n catch (IOException e) { }\n }", "@Test(groups={\"it\"})\r\n\tpublic void testReportDetailsWithBeforeConfigurationError() throws Exception {\r\n\t\t\r\n\t\texecuteSubTest(new String[] {\"com.seleniumtests.it.stubclasses.StubTestClassForConfigurationError1\"}); \r\n\t\t\r\n\t\tString mainReportContent = readSummaryFile();\r\n\t\t\r\n\t\t// check main result is skipped with step failed indicated as a link\r\n\t\tAssert.assertTrue(mainReportContent.contains(\"<td name=\\\"stepsTotal-1\\\">3<sup><a href=\\\"#\\\" data-toggle=\\\"tooltip\\\" class=\\\"failedStepsTooltip\\\" title=\\\"2 step(s) failed\\\">*</a></sup></td>\"));\r\n\t\t\r\n\t\t\r\n\t\tString detailedReportContent = readTestMethodResultFile(\"testWithABeforeMethodError\");\r\n\r\n\t\t// check test is skipped as before method failed\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"<header class='main-header header-skipped'>\"));\r\n\t\t\r\n\t\t// Check details of the configuration error is displayed in report (this behaviour is controled by TestNG which adds exception from BeforeXXX to test method throwable)\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"<div>class com.seleniumtests.customexception.ConfigurationException: Some error before method</div>\"));\r\n\t\t\r\n\t\t// check we have a step for BeforeMethod and it's marked as failed\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"<div class=\\\"box collapsed-box failed\\\"><div class=\\\"box-header with-border\\\"><button type=\\\"button\\\" class=\\\"btn btn-box-tool\\\" data-widget=\\\"collapse\\\"><i class=\\\"fas fa-plus\\\"></i></button><span class=\\\"step-title\\\"> Pre test step: beforeMethod\"));\r\n\t\t\r\n\t\t// Check details of the configuration error is displayed in report\r\n\t\tAssert.assertTrue(detailedReportContent.matches(\".*<div class=\\\"message-error\\\">\\\\s+class com.seleniumtests.customexception.ConfigurationException: Some error before method.*\"));\r\n\r\n\t\t// check that when test is skipped, a message on test status is displayed\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"[main] ScenarioLogger: Test has not started or has been skipped</div>\"));\r\n\t\t\t\t\r\n\t\t\r\n\t}", "public static void dumpLog() {\n\t\t\n\t\tif (log == null) {\n\t\t\t// We have no log! We must be accessing this entirely statically. Create a new log. \n\t\t\tnew Auditor(); // This will create the log for us. \n\t\t}\n\n\t\t// Try to open the log for writing.\n\t\ttry {\n\t\t\tFileWriter logOut = new FileWriter(log);\n\n\t\t\t// Write to the log.\n\t\t\tlogOut.write( trail.toString() );\n\n\t\t\t// Close the log writer.\n\t\t\tlogOut.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// Close the log file itself.\n\t\t// Apparently we can't? TODO: Look into this. \n\n\t}", "public static void fail(String stepName, String description) \n\t{\n\t\ttry{\n\t\t\t\tString strImagePath=\"./ScreenShot/\"+getScreenshot();\n\t\t\t\tString strMarkup=getMarkup(strImagePath);\n\t\t\t\ttest.log(LogStatus.FAIL, stepName, description +\"\\n\" + strMarkup);\t\t\t\t\t\t\n\t\t\t\tReporter.blnStatus=false;\n\t\t\t\tblnReportTempStatus=false;\n\t\t}catch(Exception e){fnPrintException(e);}\t\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }", "void outputError(String message) {\n\n fatalCount++;\n/*\n if (fatalCount == 1) {\n //fatalErrorsTable.addRow(ec.cr1ColRow(\n // \"Fatal errors\", true, \"red\", IHAlign.CENTER));\n TableRow row = new TableRow();\n row.addCell(new TableDataCell(\n \"<font color=red><b>Fatal errors</b></font>\").setHAlign(IHAlign.CENTER));\n fatalErrorsTable.addRow(row);\n } // if (fatalCount == 1)\n //fatalErrorsTable.addRow(ec.cr1ColRow(message));\n TableRow row = new TableRow();\n row.addCell(new TableDataCell(message));\n fatalErrorsTable.addRow(row);\n*/\n ec.writeFileLine(reportFile, message);\n if (dbg) System.out.println(\"<br>outputError: message = \" + message);\n }", "public void validationErr()\r\n\t{\n\t\tSystem.out.println(\"validation err\");\r\n\t}", "private void startLogFile() {\n try {\n createLogFile();\n // First line of file contains field names\n String [] header = new String [] {\"Job\", \"Step\", \"Total Residents\", \"Domestic\", \"Employed\", \"Student\", \"Rebel\", \"Heard original rumor\", \"Heard new rumor\", \"Run\"};\n dataCSVFile_identity.writeLine(header);\n\n // activity\n String [] header_actions = new String [] {\"Job\",\"Step\",\"total residents\", \"At Home\", \"Work\", \"Searching for Work\",\n \"School\", \"Socialiazing\", \"Church\", \"Getting Water\", \"Rebel\", \"Run\"};\n\n dataCSVFile_action.writeLine(header_actions);\n\n String [] header_network = new String [] {\"Job\", \"Step\", \"node1\", \"node2\", \"weight\"};\n dataCSVFile_network.writeLine(header_network);\n\n String [] header_working = new String [] {\"Job\", \"Step\", \"Business\", \"School\", \"Health Facility\", \"Religious Facility\", \n \"Formal\", \"Informal\", \"Searching\", \"Inactive\", \"Formal at home\", \"Informal at home\", \"Run\"};\n dataCSVFile_working.writeLine(header_working);\n \n String [] header_rebels = new String [] {\"Job\", \"Step\", \"AgeGroup\", \"HHDiscrepancy\", \"Identity\", \"Count\" };\n dataCSVFile_rebels.writeLine(header_rebels);\n\n String[] header_residents = new String [] {\"Job\", \"Step\", \"Resident\", \"Age\", \"Employment status\", \"Laid off\", \"Action\", \n \"Daily water use\", \"Remaining water\", \"Required water\",\n \"Identity\",\"Is initial rebel\", \n \"Heard original rumor\", \"Heard new rumor\", \"Energy\", \"Current Aggression\", \"Aggression Rate\", \"Formal Business Capacity\", \n \"Informal Business Capacity\", \"School Capacity\", \"Has School\", \"Has formal employer\", \"Has informal Employer\", \n \"Formal income\", \"Informal income\", \"Searching income\", \"Inactive income\", \"Household Income\", \"Has electricity\", \"Has sanitation\",\n \"Has water\", \"Household expenditures\", \"Rent cost\", \"Water cost\", \"Electric cost\", \"Sanitation cost\", \n \"Transportation cost\", \"Other cost\", \"Food cost\", \"Discrepancy\", \"Run\", \"Preference\"};\n \n \n dataCSVFile_residents.writeLine(header_residents);\n\n String [] header_degreestats = new String [] {\"Job\", \"Step\", \"max degree\", \"min degree\", \"mean degree\", \"sum degree\", \"mean connections\", \"Run\"};\n dataCSVFile_degreestats.writeLine(header_degreestats);\n\n }\n\n catch (IOException ex) {\n Logger.getLogger(Kibera.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void printErrors() {\r\n\t\tif (this.syntaxError) {\r\n\t\t\tSystem.err.println(\"\\nErrors found running the parser:\");\r\n\t\t\tfor (String error : errors) {\r\n\t\t\t\tSystem.err.println(\"\\t => \" + error);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private boolean printError(\n String message, ActionAnalysisMetadata action, @Nullable FileOutErr actionOutput) {\n message = action.describe() + \" failed: \" + message;\n return dumpRecordedOutErr(\n reporter, Event.error(action.getOwner().getLocation(), message), actionOutput);\n }", "public void writeErrorTable(String errorMessage) throws IOException;", "private static void LOG() {\n if (!RESULTFILE.exists()) {\n\n if (!RESULTFILE.getParentFile().exists()) {\n RESULTFILE.getParentFile().mkdirs();\n }\n\n try {\n RESULTFILE.createNewFile();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't create file \" + RESULTFILE.getName());\n System.err.println(\"ERROR\" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(RESULTFILE, true));\n bw.write(\"rank\" + \"\\t\" + \"DBID\" + \"\\n\");\n bw.close();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't write to file \" + RESULTFILE.getName());\n System.err.println(\"ERROR: \" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(RESULTFILE));\n out.writeObject(RESULTS);\n out.close();\n\n } catch (IOException ioe) {\n System.err.println(\"Couldn't write to file \" + RESULTFILE.getName());\n System.err.println(\"ERROR: \" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n }\n\n /**\n * print also SQL query into a sql file\n *\n */\n if (!SQLFILE.exists()) {\n if (!SQLFILE.getParentFile().exists()) {\n SQLFILE.getParentFile().mkdirs();\n }\n try {\n SQLFILE.createNewFile();\n } catch (IOException ioe) {\n System.err.println(\"Couldn't create file \" + SQLFILE.getName());\n System.err.println(\"ERROR\" + ioe.getLocalizedMessage());\n System.out.println(\"Exiting...\");\n System.exit(1);\n }\n try {\n BufferedWriter bw = new BufferedWriter(new FileWriter(SQLFILE, true));\n bw.write(UNKNOWN.getSortedQuery() + \"\\n\");\n bw.close();\n } catch (Exception e) {\n System.err.println(\"Konnte nicht in Datei \" + SQLFILE + \" schreiben!\");\n }\n }\n }", "public static void beginLogging(String fileName) throws IOException {\n\t\tfinal PrintStream stderr = System.err;\n\t\tFileOutputStream outStream = new FileOutputStream(fileName, true) {\n\t\t\t@Override\n\t\t\tpublic void write(byte[] b) throws IOException {\n\t\t\t\tstderr.write(b);\n\t\t\t\tsuper.write(b);\n\t\t\t}\n\t\t\t\n\t\t\tpublic void write(byte[] b, int off, int len) throws IOException {\n\t\t\t\tstderr.write(b, off, len);\n\t\t\t\tsuper.write(b, off, len);\n\t\t\t}\n\t\t\t\n\t\t\tpublic void write(int b) throws IOException { \n\t\t\t\tstderr.write(b);\n\t\t\t\tsuper.write(b);\n\t\t\t}\n\t\t};\n\t\tSystem.setErr(new PrintStream(outStream, true));\n\t}", "@ExceptionHandler(Exception.class)\n public void logErrors(Exception e) {\n errorLogger.logError(e.getMessage(), e);\n }", "private void errorLogButtonActionPerformed() {\n ImportExportLogDialog logDialog;\n\n if(ascopy != null && ascopy.isCopying()) {\n logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, ascopy.getCurrentProgressMessage());\n logDialog.setTitle(\"Current Data Transfer Errors\");\n } else {\n logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, migrationErrors);\n logDialog.setTitle(\"Data Transfer Errors\");\n }\n\n logDialog.showDialog();\n }", "public static void addErrorToReport(String message) {\n String messageWithStepNumber = addMessageToReport(message);\n ExtentTestManager.getTest().log(Status.FAIL, messageWithStepNumber);\n }", "private void dumpRecordedOutErr(\n EventHandler eventHandler, Action action, FileOutErr outErrBuffer) {\n Event event = Event.info(\"From \" + action.describe() + \":\");\n dumpRecordedOutErr(eventHandler, event, outErrBuffer);\n }", "public static void errorCheck(String[] token, String line, Song song, PrintWriter file) {\r\n\t\t\r\n\t\tif(token.length < 7) { //if the length is less than 7, means it doesn't have enough aspect values\r\n\t\t\tfile.println(line +\" Not enough aspect values\");\r\n\t\t\tsong.setSongStatus(false);\r\n\t\t}\r\n\t\t\r\n\t\telse if(token.length == 7) { //if the length is equal to 7, the possible errors are\r\n\t\t\t\t\t\t\t\t\t// that it may have decimal aspect value or an aspect value greater than 10\r\n\t\t\ttry {\r\n\t\t\t\tfor(int i=1; i<token.length; i++) {\r\n\t\t\t\t\tif(Integer.parseInt(token[i])>10) { //if the aspect isn't an integer, it will be \"caught\"\r\n\t\t\t\t\t\tfile.println(line +\" Aspect value isn't in the range of 0-10\"); //writes to error.txt\r\n\t\t\t\t\t\tsong.setSongStatus(false);\r\n\t\t\t\t\t\t}\t\r\n\t\t\t\t\t}\t\t\r\n\t\t\t\t}\r\n\t\t\tcatch(Exception E1) {\r\n\t\t\t\tfile.println(line +\" One of the aspect value isnt't an integer\"); //writes to error.txt\r\n\t\t\t\tsong.setSongStatus(false);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(token.length > 7) { //if the length is more than 7, possible errors are it has more than 6 aspect values or that there \r\n\t\t\t\t\t\t\t\t\t//is a comma in the song ID (since the the tokens are split by comma)\r\n\t\t\ttry {\r\n\t\t\t\tDouble.parseDouble(token[1]); //if there is an error in converting to double, the 2nd token isn't an aspect value and there is a comma in the ID,\r\n\t\t\t\tfile.println(line +\" Too many aspect values\");//writes to error.txt\r\n\t\t\t\tsong.setSongStatus(false);\r\n\t\t\t}\t\r\n\t\t\tcatch(NumberFormatException E2) {\r\n\t\t\t\tfile.println(line +\" Comma in ID\");//writes to error.txt\r\n\t\t\t\tsong.setSongStatus(false);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "private void _groupErrors(JUnitError[] errors) {\n _errors = errors;\n\n // Create positions if non-null file\n if (_file != null) {\n _createPositionsArray();\n }\n else {\n _positions = new Position[0];\n }\n\n\n // DEBUG:\n /*\n for (int i = 0; i < _errors.length; i++) {\n DrJava.consoleErr().println(\"errormodel: error #\" + i + \": \" + _errors[i]);\n }\n\n DrJava.consoleErr().println();\n for (int i = 0; i < _positions.length; i++) {\n DrJava.consoleErr().println(\"errormodel: POS #\" + i + \": \" + _positions[i]);\n }\n\n DrJava.consoleErr().println();\n for (int i = 0; i < _errorsWithoutPositions.length; i++) {\n DrJava.consoleErr().println(\"errormode: errorNOP #\" + i + \": \" + _errorsWithoutPositions[i]);\n }\n */\n }", "abstract void errorLogMessage(String message);", "@Test\n @Deployment(resources = \"org/camunda/bpm/engine/test/jobexecutor/delegateThrowsException.bpmn20.xml\")\n public void shouldLogFailingJobOnlyOnceReducedLogging() {\n processEngineConfiguration.setEnableCmdExceptionLogging(false);\n runtimeService.startProcessInstanceByKey(\"testProcess\");\n\n // when executing the job and wait\n JobExecutor jobExecutor = processEngineConfiguration.getJobExecutor();\n jobExecutor.start();\n testRule.waitForJobExecutorToProcessAllJobs();\n jobExecutor.shutdown();\n\n List<ILoggingEvent> jobLog = loggingRule.getFilteredLog(JOBEXECUTOR_LOGGER, \"Exception while executing job\");\n List<ILoggingEvent> ctxLog = loggingRule.getFilteredLog(CONTEXT_LOGGER, \"Exception while closing command context\");\n\n // then\n assertThat(jobLog.size()).isEqualTo(1);\n assertThat(ctxLog.size()).isEqualTo(0);\n }", "public void reportAnyErrors(DynamicModelHistory history){\n\t\tif(history.getStatus() == DynamicModelHistory.StatusType.ERROR && history.getErrorReport().getReport().size() > 0){\r\n\t\t\tErrorItem error = history.getErrorReport().getReport().get(0);\r\n\t\t\tif(error.getNodeId() != null){\r\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Error on node \\\"\" + error.getNodeId() + \"\\\". \" + error.getMessage(), \"Run Aborted\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tJOptionPane.showMessageDialog(this, error.getMessage(), \"Run Aborted\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t}\r\n\t\t\t// Don't leave the progress monitor hanging around on the screen\r\n\t\t\tprogressMonitor.close();\r\n\t\t}\r\n\t}", "public static void logException(Exception ex) {\n try {\n File exLog = new File(filePath);\n FileOutputStream outputStream = new FileOutputStream(exLog);\n ex.printStackTrace(new PrintStream(outputStream));\n outputStream.flush();\n outputStream.close();\n\n } catch (IOException ioE) {\n System.exit(1);\n }\n }", "public void log(String message)\n {\n try \n {\n BufferedWriter errorLogWriter = new BufferedWriter(new FileWriter(this.errorLog));\n errorLogWriter.write(Logger.dateFormat.format(Calendar.getInstance().getTime()));\n errorLogWriter.write(message);\n errorLogWriter.close();\n }\n catch (IOException ex)\n {\n System.err.println(\"Cannot write into log : \" + ex.getMessage());\n }\n }", "private void addError(final SAMValidationError error) {\n if (this.errorsToIgnore.contains(error.getType())) return;\n \n if (this.ignoreWarnings && error.getType().severity == SAMValidationError.Severity.WARNING) return;\n \n this.errorsByType.increment(error.getType());\n if (verbose) {\n out.println(error);\n out.flush();\n if (this.errorsByType.getCount() >= maxVerboseOutput) {\n throw new MaxOutputExceededException();\n }\n }\n }", "public void printFailure() {\n //\n }", "private void postErrorPage() throws IOException {\n out.println(OK);\n System.out.println(NO);\n out.println(htmlType);\n out.println(closed);\n out.println(\"Content-Length: \" + ERROR_FILE.length());\n out.println(ENDLINE);\n String htmlLine = ERROR_READER.readLine();\n while (htmlLine != null) {\n out.println(htmlLine);\n htmlLine = ERROR_READER.readLine();\n }\n ERROR_READER.close();\n }", "@Test(groups={\"it\"})\r\n\tpublic void testReportDetailsWithAfterConfigurationError() throws Exception {\r\n\t\t\r\n\t\texecuteSubTest(1, new String[] {\"com.seleniumtests.it.stubclasses.StubTestClassForConfigurationError2\"}, ParallelMode.NONE, new String[] {\"testWithAfterMethodError\"}); \r\n\t\t\r\n\t\tString mainReportContent = readSummaryFile();\r\n\t\t\r\n\t\t// check main result is skipped with step failed in red\r\n\t\tAssert.assertTrue(mainReportContent.contains(\"<td name=\\\"stepsTotal-1\\\">5<sup><a href=\\\"#\\\" data-toggle=\\\"tooltip\\\" class=\\\"failedStepsTooltip\\\" title=\\\"1 step(s) failed\\\">*</a></sup></td>\"));\r\n\t\t\r\n\t\tString detailedReportContent = readTestMethodResultFile(\"testWithAfterMethodError\");\r\n\t\t\r\n\t\t// Check details of the configuration error is displayed in report\r\n\t\tAssert.assertTrue(detailedReportContent.matches(\".*<div class=\\\"message-error\\\">\\\\s+class com.seleniumtests.customexception.ConfigurationException: Some error after method.*\"));\r\n\t\t\r\n\t\t// check test is still OK as only after method failed\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"<header class='main-header header-success'>\"));\r\n\t\t\r\n\t\t// check execution log does not contain our post configuration step\r\n\t\tAssert.assertFalse(detailedReportContent.contains(\"<div>class com.seleniumtests.customexception.ConfigurationException: Some error after method</div>\"));\r\n\t\t\r\n\t\t// check we have a step for AfterMethod and it's marked as failed\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"<div class=\\\"box collapsed-box failed\\\"><div class=\\\"box-header with-border\\\"><button type=\\\"button\\\" class=\\\"btn btn-box-tool\\\" data-widget=\\\"collapse\\\"><i class=\\\"fas fa-plus\\\"></i></button><span class=\\\"step-title\\\"> Post test step: afterMethod\"));\r\n\t\t\r\n\t\t// check logs written in @AfterXXX are present in execution logs\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"[main] ScenarioLogger: some warning</div>\"));\r\n\t\t\r\n\t\t// check that when test is OK, a message on test status is displayed\r\n\t\tAssert.assertTrue(detailedReportContent.contains(\"[main] ScenarioLogger: Test is OK\"));\r\n\t\t\r\n\t}", "public void error(String msg) {\n boolean doit = level == Level.NONE || level == Level.INFO;\n if (log != System.err || !doit) {\n System.err.println(msg);\n }\n if (!doit) return;\n write(\"ERROR\", msg); \n }", "public void logError(String message) {\n logger.logError(\"[\" + game.getName() + \"] \" + message);\n }", "private void createOutputFiles(){\n\t\tFile folder = new File(C.appFolderPath + C.DEBUG_FOLDER);\n\t\tboolean success = true;\n\t\tif(folder.exists()){\n\t\t\t// erase the folder\n\t\t\tDeleteRecursive(folder);\n\t\t}\n\t\t\n\t\t// create necessary folders\n\t\tif (!folder.exists()) {\n\t\t success = folder.mkdir();\n\t\t Log.d(C.LOG_TAG, \"folder is not existed, create one\");\n\t\t} else {\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: folder has not been deleted\");\n\t\t}\n\t\tFile monitorFolder = new File(C.appFolderPath + C.DEBUG_FOLDER + logFolder);\n\t\tmonitorFolder.mkdir();\n\n\t\ttry {\n\t\t\tmMatlabOutFile = new PrintWriter(new FileOutputStream(new File(C.appFolderPath+ C.DEBUG_FOLDER +\"matlab.txt\"),true));\n\t\t\tmMatlabOutFile.println(inputPrefix+audioSettingName);\n\t\t\tmMatlabOutFile.println(RECODER_CHANNEL_CNT);\n\t\t\tmMatlabOutFile.println(C.DEFAULT_VOL);\n\t\t\tmMatlabOutFile.close();\n\t\t\tmMatlabOutFile = null;\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(C.LOG_TAG, \"ERROR: can't open sensor file to write\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void writeError(\n \tString groupName,\n \tString baseDNGroups,\n \tList<String[]> validMembers,\n \tList<String[]> duplicateMembers,\n \tPrintWriter pw\n ) throws ServiceException {\n \tString dn = this.getDN(groupName, baseDNGroups);\n \tpw.println(\"DN: \" + (dn == null ? \"N/A\" : dn));\n \tpw.println();\n \tpw.println(\"Valid members:\");\n \tfor(String[] member: validMembers) {\n \t\tpw.println(member[0] + \": \" + member[1]);\n \t}\n \tpw.println();\n \tpw.println(\"Duplicate members:\");\n \tfor(String[] member: duplicateMembers) {\n \t\tpw.println(member[0] + \": \" + member[1]);\n \t}\n }", "public void logResult() {\r\n resTime = resTime * 1000;\r\n int b = (int) Math.round(resTime);\r\n resTime = (double) b / 1000;\r\n double averageTime = resTime / countTESTS;\r\n averageTime = averageTime * 1000;\r\n int i = (int) Math.round(averageTime);\r\n averageTime = (double) i / 1000;\r\n try (FileWriter writer = new FileWriter(\".//result.txt\")) {\r\n writer.write(resultOpen);\r\n writer.write(resultTitle);\r\n writer.write(resultSource);\r\n writer.write(resultLinkByName);\r\n writer.write(resultLinkByHref);\r\n writer.write(\"Total tests: \" + countTESTS + \"\\n\");\r\n writer.write(\"Passed/Failed: \" + PASSED_TEST + \"/\" + FAILED_TEST + \"\\n\");\r\n writer.write(\"Total time: \" + resTime + \"\\n\");\r\n writer.write(\"Average time: \" + averageTime + \"\\n\");\r\n writer.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void writeError( Exception e\n , String errorString\n , String sqlText) {\n\n StackTraceElement[] elements = e.getStackTrace();\n\n writeln();\n writeln(\"+---------------+\");\n writeln(\"| PROGRAM ERROR |\");\n writeln(\"+-------------------------------------------------------------------------------+\");\n writeln(\"| ERROR STRING : \" + errorString);\n writeln(\"| MESSAGE : \" + e.getMessage());\n writeln(\"| CAUSE : \" + e.getCause());\n writeln(\"| STACK TRACE : \");\n for (int i=0, n=elements.length; i<n; i++) {\n writeln(\n \"| at \" + \n elements[i].getClassName() + \".\" + elements[i].getMethodName() +\n \"()\" +\n \" [FILE -> \" +\n (elements[i].getFileName() == null \n ? \"Unknown Source File\" \n : (elements[i].isNativeMethod() \n ? \"Native Method\" \n : elements[i].getFileName() + \":\" + \n elements[i].getLineNumber()\n )\n ) +\n \"]\");\n }\n\n if (sqlText != null) {\n writeln(\"| SQL TEXT : \\n\" + sqlText);\n }\n\n writeln(\"+-------------------------------------------------------------------------------+\");\n writeln();\n stop();\n\n }", "@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public void setErr(PrintStream err);", "public void testLogAccuracy() {\r\n // log the message\r\n Exception cause = new Exception(\"some error\");\r\n String message = \"some message\";\r\n log.log(Level.ALL, cause, message);\r\n\r\n // check the result\r\n String result = AccuracyTestsHelper.getFileContent(FILE);\r\n assertTrue(result.indexOf(\"some message\") >= 0);\r\n assertTrue(result.indexOf(\"some error\") >= 0);\r\n }", "@Override\n public void onProcessError(Object item, Exception e) {\n logger.error(\"onProcessError\");\n }", "public void printInvalidTaskInFileMessage() {\n System.out.println(BORDER_LINE + System.lineSeparator()\n + \" INVALID TASK DETECTED\" + System.lineSeparator()\n + BORDER_LINE);\n }", "public static void loadLogFile() throws Exception {\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"accuracytests\" + File.separator + \"Logging.xml\");\n cm.add(\"Config.xml\");\n }", "protected void writeError(\n \tString groupName,\n \tString baseDNGroups,\n \tException e,\n \tPrintWriter pw\n ) throws ServiceException {\n \tString dn = this.getDN(groupName, baseDNGroups);\n \tpw.println(\"DN: \" + (dn == null ? \"N/A\" : dn));\n \tif(e != null) {\n\t \tpw.println(\"Error:\");\n\t \tServiceException e0 = new ServiceException(e);\n\t \te0.printStackTrace(pw);\n \t}\n }", "public void logStreams() {\n logger.debug(\"error stream:\");\n logStream(this.bufferedErrorStream, false);\n logger.debug(\"input stream:\");\n logStream(this.bufferedInputStream, true);\n }", "static PrintStream outputStream() {\n return System.err;\n }" ]
[ "0.68095815", "0.61534363", "0.60713464", "0.60193527", "0.5969758", "0.5953782", "0.59066534", "0.58734584", "0.5864531", "0.5863543", "0.58474326", "0.5809775", "0.579754", "0.5779621", "0.57562643", "0.575498", "0.5703425", "0.56635225", "0.5645338", "0.5637372", "0.56368446", "0.5613107", "0.5573282", "0.5542288", "0.55372095", "0.5526998", "0.54969203", "0.54893064", "0.54285973", "0.54231644", "0.5416074", "0.54091686", "0.53931874", "0.5363638", "0.53603476", "0.53519225", "0.5345027", "0.5335121", "0.5298359", "0.5286586", "0.52865547", "0.52824163", "0.5272934", "0.5270489", "0.5242984", "0.5234717", "0.52258384", "0.52253264", "0.5224831", "0.5224283", "0.5220766", "0.5220022", "0.52084374", "0.51894057", "0.5182737", "0.51790136", "0.51762104", "0.5174971", "0.516835", "0.5166285", "0.5166285", "0.5166285", "0.5162368", "0.5159306", "0.5156867", "0.5155105", "0.5150026", "0.51467067", "0.51449084", "0.5144588", "0.5141597", "0.51382583", "0.5135583", "0.51298636", "0.51291347", "0.51170665", "0.51153505", "0.5108138", "0.51030463", "0.50994897", "0.50972897", "0.50971", "0.50946873", "0.509209", "0.5073262", "0.5071125", "0.50635856", "0.5060496", "0.50600564", "0.5055041", "0.5037316", "0.5036638", "0.50356305", "0.5034955", "0.5029729", "0.5028884", "0.50227493", "0.5022184", "0.5019924", "0.5019073", "0.5007117" ]
0.0
-1
Use this factory method to create a new instance of this fragment using the provided parameters.
public static MapFragment newInstance(String param1) { MapFragment fragment = new MapFragment(); 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 view = inflater.inflate(R.layout.fragment_map, container, false); mGoogleApiClient = new GoogleApiClient.Builder(getActivity()) .addApi(LocationServices.API) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .build(); SupportMapFragment mapFragment = (SupportMapFragment) getChildFragmentManager() .findFragmentById(R.id.map); mapFragment.getMapAsync(this); bSatellite = (Button) view.findViewById(R.id.Satellite_button); bNormal = (Button) view.findViewById(R.id.Normal_button); bSatellite.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { setSatellite(view); } }); bNormal.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { setNormal(view); } }); // Marker HashSets pointsOfInterests = new ArrayList<Marker>(); return view; }
{ "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
Google Location Services callbacks Google API callbacks
@Override public void onConnected(Bundle connectionHint) { mLocationRequest = LocationRequest.create(); mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY); mLocationRequest.setInterval(4000); // Update location every 4 second //Retrieve current location LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest, this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onSuccess(Void aVoid) {\n Log.i(\"MainActivity\", \"requestLocationUpdatesWithCallback onSuccess\");\n }", "@Override\n public void onFailure(Exception e) {\n Log.e(\"MainActivity\", \"requestLocationUpdatesWithCallback onFailure:\" + e.getMessage());\n }", "public interface GoogleMapHelperListener {\n public void onGettingMyLocation();\n}", "public interface LocationCallback {\n\n void onLocationsFetched(List<Location> locations);\n\n void onLocationsError();\n}", "private void createLocationCallback() {\n mLocationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n\n mLastLocation = locationResult.getLastLocation();\n mRequestingLocationUpdate = false;\n\n startAddressLookupService();\n }\n };\n }", "void onNewLocationRecieved(LocationWrapper locationWrapper, LocationType type);", "public interface GGeocodeAdvancedResultListener\r\n{\r\n\t/**\r\n\t * Called when the geocode operation is successful, returns a set of \"matching\" results\r\n\t * @param result\r\n\t */\r\n\tpublic void onSuccess(GGeocodeResult result);\r\n\t\r\n\t/**\r\n\t * Called when the geocode operation fails\r\n\t *\r\n\t */\r\n\tpublic void onFail(int statusCode, String address);\r\n}", "@Override\n public void onSuccess(Location location) {\n }", "public interface LocationServicesListener {\r\n\r\n /**\r\n * Callback on device location turned ON\r\n */\r\n void onSuccess();\r\n }", "public interface ShopChangeLocationCallback {\n\tvoid onSuccess(ShopChangeLocationData shopChangeLocationData);\n\tvoid onFailure(String error);\n}", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n Toast.makeText(getContext(), \"location: \" + location, Toast.LENGTH_LONG).show();\n EventBus.getDefault().post(new LocationEvent(location));\n }\n }", "@Override\r\n public void onSuccess(Location location) {\n if (location != null) {\r\n onLocationChanged(location);\r\n }\r\n }", "public interface LocationCallBack {\n /**\n * location 定位服务\n */\n void Location(Location location, Boolean isChange);\n\n /**\n * baidu de return\n * @param location\n * @param isChange\n */\n void BaiduLocation(MyLocationData location, Boolean isChange);\n}", "private void getLocation() {\n //if you don't have permission for location services yet, ask\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_PERMISSION);\n //have the app ask for location permission\n } else {\n fusedLocationClient.requestLocationUpdates\n (getLocationRequest(), mLocationCallback,\n null /* Looper */);\n //uses the type of request and the location callback to update the location\n /**fusedLocationClient.getLastLocation().addOnSuccessListener(\n new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n TextView error = findViewById(R.id.errorMsg);\n error.setVisibility(View.VISIBLE);\n\n if (location != null) {\n lastLocation = location;\n error.setText(\"location: \" + lastLocation.getLatitude());\n } else {\n error.setText(\"location not available\");\n }\n }\n });**/\n }\n }", "void onLocationFound(LatLng location);", "public void onSuccess(GGeocodeResult result);", "public interface LocationCallback {\n \n void lacksPermission();\n void withLocation(Location location);\n}", "public void onSuccess(Location location) {\n if (location != null) {\n //onLocationChanged(location);\n }\n }", "@Override\n public void onConnected(Bundle connectionHint) {\n //LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, REQUEST, this); // LocationListener\n }", "@Override\n public void onMyLocationChange(Location arg0) {\n }", "@Override\n public void onConnected(@Nullable Bundle bundle) {\n Log.i(TAG, \"Location Services Connected\");\n requestLocationUpdates();\n }", "public void onLocationChanged(Location location) {\n sendResult(location);\n }", "public interface LocationCallback {\n\n void onSuccess(ArrayList<Library> result);\n}", "@Override\n public void onGetGeoCodeResult(GeoCodeResult arg0) {\n\n }", "@Override\n public void onSuccess(Location location) {\n Log.d(TAG, \"onSuccess: Location : \" + location);\n if (location != null) {\n Toast.makeText(MainActivity.this, \"Location : \" + location, Toast.LENGTH_SHORT).show();\n }\n }", "public interface IMapPresenterActivityCallback {\n\n public static enum LocationType{\n currentLocation,\n searchedLocation\n }\n\n /**\n * Notify the presenter that activity is ready\n * */\n void onActivityReady();\n\n\n /**\n * Notify the presenter about new coordinates that were received*/\n\n void onNewLocationRecieved(LocationWrapper locationWrapper, LocationType type);\n}", "public void onLocationChanged(Location location){\n\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n requestActualizarUbicacion(location.getLatitude(),location.getLongitude());\n\n }else{\n Toast.makeText(getActivity(), \"No fue posible obtener la ubicacion!\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onConnected(Bundle bundle) {\n Log.i(TAG, \"location service connected\");\n }", "private void createLocationCallback() {\n mLocationCallback = new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n\n app.mCurrentLocation = locationResult.getLastLocation();\n initCamera(app.mCurrentLocation);\n }\n };\n }", "public void startLocationUpdate() {\n if (locationCallback != null) {\n try {\n locationCallback = new LocationCallback() {//khoi tao dinh nghia (extent)\n\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n Log.d(TAG, \"onLocationResult: \");\n if (locationResult != null) {\n Log.d(TAG, \"onLocationResult: loaction!==null\");\n myLocation = locationResult.getLastLocation();\n showMarker();//de show hinh len\n }\n }\n };\n fusedLocationProviderClient.requestLocationUpdates(locationRequest, locationCallback, null);//dang ky voi he thong app lang nghe su thay doi cua location\n\n } catch (SecurityException e) {\n e.getMessage();\n\n }\n }\n }", "@Override\n public void onLocationResult(LocationResult locationResult) {\n Location location = locationResult.getLastLocation();\n if (location != null) {\n onLocationChanged(location);\n }\n }", "private void getLocation(LocationListener listener){\n FusedLocationProviderClient fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n try {\n if (locationPermissionGranted){\n Task<Location> locationResult = fusedLocationClient.getLastLocation();\n locationResult.addOnCompleteListener(this, task -> {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n listener.onSuccess(task.getResult());\n } else {\n Toast.makeText(this, task.getException().getMessage(), Toast.LENGTH_LONG).show();\n }\n progressBar.setVisibility(View.GONE);\n });\n }\n } catch (SecurityException e){\n Log.e(\"Exception: %s\", e.getMessage(), e);\n }\n }", "private void getLocation() {\n LocationRequest mLocationRequestHighAccuracy = new LocationRequest();\n mLocationRequestHighAccuracy.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequestHighAccuracy.setInterval(UPDATE_INTERVAL);\n mLocationRequestHighAccuracy.setFastestInterval(FASTEST_INTERVAL);\n\n\n // new Google API SDK v11 uses getFusedLocationProviderClient(this)\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"getLocation: stopping the location service.\");\n stopSelf();\n return;\n }\n Log.d(TAG, \"getLocation: getting location information.\");\n mFusedLocationClient.requestLocationUpdates(mLocationRequestHighAccuracy, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n Log.d(TAG, \"onLocationResult: got location result.\");\n Location location = locationResult.getLastLocation();\n if (location != null) {\n GeoPoint geoPoint = new GeoPoint(location.getLatitude(), location.getLongitude());\n userInfoDoc.get().addOnCompleteListener(task -> {\n Boolean av = (Boolean) task.getResult().get(\"Availability\");\n saveUserLocation(geoPoint , av);\n });\n saveDistance(geoPoint);\n\n }\n }\n },\n Looper.myLooper()); // Looper.myLooper tells this to repeat forever until thread is destroyed\n }", "@Override\n public void onSuccess(android.location.Location location) {\n if (location != null) {\n // Logic to handle location object\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n }\n }", "@Override\n public void onSuccess(Location location) {\n\n if (location != null) {\n // Logic to handle location object\n\n Geocoder gcd = new Geocoder(MainActivity.this, Locale.getDefault());\n List<Address> addresses = null;\n try {\n addresses = gcd.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (addresses.size() > 0) {\n System.out.println(addresses.get(0).getLocality());\n sp.set(SPConstants.location,addresses.get(0).getLocality()+\", \"+addresses.get(0).getCountryName());\n }\n else {\n sp.set(SPConstants.location,\"\");\n\n // do your stuff\n }\n\n }\n }", "@Override\n public void onConnected(Bundle bundle) {\n LocationRequest locationRequest = LocationRequest.create()\n .setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY)\n .setInterval(UPDATE_INTERVAL_MS)\n .setFastestInterval(FASTEST_INTERVAL_MS);\n\n\n // Send request for location updates\n LocationServices.FusedLocationApi\n .requestLocationUpdates(mGoogleApiClient, locationRequest, this)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(Status status) {\n if (status.getStatus().isSuccess()) {\n Log.d(\"YAY\", \"Successfully requested\");\n } else {\n Log.e(\"OH NOOOO\", status.getStatusMessage());\n }\n }\n });\n\n\n Location location = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n onLocationChanged(location);\n }", "void recyclerCallbackFn(MarkerLocation location);", "private void fetchLastLocation() {\n Task<Location> task = fusedLocationProviderClient.getLastLocation();\n Toast.makeText(MapActivity.this,\"fetchLastLocation method 2\",Toast.LENGTH_SHORT).show();\n task.addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n currentLoc = location;\n preLati = currentLoc.getLatitude();\n preLogi = currentLoc.getLongitude();\n\n\n SupportMapFragment supportMapFragment = (SupportMapFragment) getSupportFragmentManager().\n findFragmentById(R.id.map);\n\n supportMapFragment.getMapAsync(MapActivity.this);//should this activity class implement\n // OnMapReadyCsllback interface and should\n // implement all method\n // i think getMapAsync call the onMapReady\n\n }\n });\n task.addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Failed with\"+e.toString(),Toast.LENGTH_SHORT).show();\n Log.e(TAG, \"onFailure: \"+e.toString() );\n }\n });\n }", "public void onLocationChanged(Location location) {\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n mLastLocation = location;\n Log.wtf(\"-GPS\", \"getLocation 169 : \" + mLastLocation.getLatitude() + \",\" + mLastLocation.getLongitude());\n\n } else {\n Log.wtf(\"-GPS\", \"getLocation 171 : \" + mLastLocation);\n\n }\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n onLocationChanged(location);\n findNearbyHospitals(location);\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n this.googleMap = googleMap;\n this.addMarkers();\n\n\n fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n if (checkPermissions()) {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n current_location = location;\n markCurrentLocation(location);\n\n }\n });\n }\n\n\n }", "private void Location() {\n\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_ACCESS_FINE_LOCATION);\n }\n\n //Google Play Location stored in loc variable\n fusedLocationClient = LocationServices.getFusedLocationProviderClient(this);\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener(this, new OnSuccessListener<Location>() {\n\n\n @Override\n public void onSuccess(Location location) {\n\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n loc = location;\n getAddressFromLocation(loc.getLatitude(), loc.getLongitude());\n\n }\n }\n });\n }", "@Override\n\tpublic void onConnected(Bundle arg0) {\n\t\t Toast.makeText(context, \"Connected\", Toast.LENGTH_SHORT).show();\n\t\t mLocationClient.requestLocationUpdates(mLocationRequest,this);\n\t}", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n Toast.makeText(ATSLocationActivity.this, \"Location settings are satisfied\", Toast.LENGTH_SHORT).show();\n startLocationUpdates(locationRequest,locationCallback);\n }", "@Override\n public void onLocationChanged(Location location) {\n\n }", "@Override\n public void onLocationChanged(Location location) {\n\n }", "private static void geoLocationCallback(Position position) {\n\t\tgeoCallback.onLocation(position);\n\t}", "@Override\n\tpublic void onLocationChanged(android.location.Location arg0) {\n\t\t\n\t}", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n Toast.makeText(MainActivity.this,\n location.toString(),Toast.LENGTH_LONG).show();\n }\n else{\n Toast.makeText(MainActivity.this,\n \"Location object not received\",Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n //Toast.makeText(getApplicationContext(), String.valueOf(location.getLatitude()+\",\"+location.getLongitude()), Toast.LENGTH_SHORT).show();\n retrofitPegarOnibus(location.getLatitude() + \",\" + location.getLongitude());\n coord = location.getLatitude() + \",\" + location.getLongitude();\n } else {\n //Toast.makeText(getApplicationContext(), \"Location = null\", Toast.LENGTH_SHORT).show();\n }\n }", "public void onLocationChanged(Location location) {\n \n \t}", "public void callUpdateLocation( AppCompatActivity activity, final Context context, String collName, int recordId, LatLng newLocation ){\r\n\r\n ServiceRequest serviceRequest = new ServiceRequest( ServiceRequest.CORE_SEVICE_NAME, \"updateLocation\", context );\r\n serviceRequest.putParameterValue( \"database_name\", \"update_location\" );\r\n serviceRequest.putParameterValue( \"dataset_name\", \"gis\" );\r\n serviceRequest.putParameterValue( \"collection_name\", collName );\r\n serviceRequest.putParameterValue( \"record_id\", String.valueOf( recordId ) );\r\n serviceRequest.putParameterValue( \"location_x\", String.valueOf( newLocation.longitude ) );\r\n serviceRequest.putParameterValue( \"location_y\", String.valueOf( newLocation.latitude ) );\r\n serviceRequest.putParameterValue( \"username\", LoginAuthentificationHandlerContext.getInstance().getUsername( ) );\r\n serviceRequest.putParameterValue( \"password\", LoginAuthentificationHandlerContext.getInstance( ).getPassword( ) );\r\n L.m( serviceRequest.getServiceRequest( ) );\r\n\r\n SmallWorldServiceTask task = new SmallWorldServiceTask(\r\n serviceRequest.getServiceRequest( ),\r\n activity,\r\n \"Updating new location...\",\r\n new SetOnTaskCompleteListener< List< HashMap< String, String > > >( ){\r\n @Override\r\n public void onTaskComplete( List< HashMap< String, String > > result ) {\r\n HashMap< String, String > response = result.get( 0 );\r\n if( response.containsKey( \"login_response\" )){\r\n L.t( context, response.get( \"login_response\" ) );\r\n }else if( response.containsKey( \"result_update\" ) ){\r\n String updated = response.get( \"result_update\" );\r\n if( updated != null ){\r\n if( updated.equals( \"true\" )){\r\n MapEngine.refreshMap( MobileGatewayMapActivity.masterActivity.getMap( ), MobileGatewayMapActivity.masterActivity.getMap( ).getCameraPosition( ), context );\r\n L.t( context, \"Updated location complete\" );\r\n }else{\r\n L.t( context, \"Updated location failed!!!! \" + updated );\r\n }\r\n }\r\n }\r\n\r\n }\r\n } );\r\n task.execute( );\r\n }", "@Override\n public void onLocationResult(LocationResult locationResult) {\n Log.d(TAG, \"onSuccess: Location : \" + locationResult);\n if (locationResult == null) {\n return;\n }\n for (Location location : locationResult.getLocations()) {\n // Update UI with location data\n Toast.makeText(MainActivity.this, \"Location : \" + location, Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onConnected(Bundle connectionHint) {\n LocationServices.FusedLocationApi.requestLocationUpdates(mGoogleApiClient, mLocationRequest,\n this);\n }", "@Override\n public void Handle() {\n fusedLocationClient = LocationServices.getFusedLocationProviderClient(context);\n\n // Fetch the last location\n fusedLocationClient.getLastLocation()\n .addOnSuccessListener((Activity) context, new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n // Got last known location. In some rare situations this can be null.\n if (location != null) {\n // Logic to handle location object\n Map<String, Double> latlng = new HashMap<String, Double>();\n latlng.put(\"longitude\", location.getLongitude());\n latlng.put(\"latitude\", location.getLatitude());\n Log.d(\"Location\", \"Location retreived \" + latlng.toString());\n result.success(latlng);\n } else {\n Log.d(\"Location\", \"unable to retreive location\");\n result.success(null);\n }\n }\n });\n }", "@Override\n public void onLocationChanged(Location location) {\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n map = googleMap;\n GetLastKnownLocation();\n }", "public interface ResponseListener {\n void onResponce(GoogleResponse response);\n}", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n }\n }", "@Override\n public void onSuccess(Location location) {\n Log.e(\"onRequestPermissions\", \"Success\");\n if (location != null) {\n wayLatitude = location.getLatitude();\n wayLongitude = location.getLongitude();\n Log.e(\"getLocation\", String.valueOf(wayLongitude));\n }\n }", "private void getLocation() {\n LocationRequest mLocationRequestHighAccuracy = new LocationRequest();\n mLocationRequestHighAccuracy.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n mLocationRequestHighAccuracy.setInterval(UPDATE_INTERVAL);\n mLocationRequestHighAccuracy.setFastestInterval(FASTEST_INTERVAL);\n\n\n // new Google API SDK v11 uses getFusedLocationProviderClient(this)\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"getLocation: stopping the location service.\");\n stopSelf();\n return;\n }\n Log.d(TAG, \"getLocation: getting location information.\");\n mFusedLocationClient.requestLocationUpdates(mLocationRequestHighAccuracy, new LocationCallback() {\n @Override\n public void onLocationResult(LocationResult locationResult) {\n\n Log.d(TAG, \"onLocationResult: got location result.\");\n\n Location location = locationResult.getLastLocation();\n\n if (location != null) {\n\n saveUserLocation(new LatLng(location.getLatitude(),location.getLongitude()));\n }\n }\n },\n Looper.myLooper()); // Looper.myLooper tells this to repeat forever until thread is destroyed\n }", "@Override\n public void onLocationChanged(Location location) {\n }", "private GuidoLocationListener() {}", "public interface mapSearchPlacesListener\n{\n public void onMapPlacesLoaded(mapsPlacesLoaderModel mapsPlacesLoaderModel) ;\n public void onMapPlacesFailed (int code, String Error) ;\n}", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n lastLatitude = Double.toString(location.getLatitude());\n lastLongitude = Double.toString(location.getLongitude());\n //lastLocation = Double.toString(location.getLatitude()) + \",\" + Double.toString(location.getLongitude()) ;\n //String b = lastLocation;\n // Get into right format\n // Logic to handle location object\n }\n }", "@Override\n\t\tpublic void onConnected(Bundle arg0) {\n\t\t\tLocationServices.FusedLocationApi.removeLocationUpdates(mGoogleApiClient, appLocationService);\n\t\t\tstartLocationUpdates();\n\t\t}", "@Override\n\t\tpublic void onGetGeoCodeResult(GeoCodeResult arg0) {\n\t\t\t\n\t\t}", "private void locationRequests(){\n mFusedClient = LocationServices.getFusedLocationProviderClient(this);\n mLocationCallback = new LocationCallback(){\n @Override\n public void onLocationResult(LocationResult locationResult){\n List<Location> locationList = locationResult.getLocations();\n if(locationList.size() > 0){\n Location location = locationList.get(locationList.size() - 1);\n Log.i(TAG, \"Location: \" + location.getLatitude() + \" \" + location.getLongitude());\n mLatitude = String.valueOf(location.getLatitude());\n mLongitude = String.valueOf(location.getLongitude());\n }\n }\n };\n mLocationRequest = new LocationRequest();\n mLocationRequest.setInterval(UPDATE_INTERVAL_IN_MILLISECONDS);\n mLocationRequest.setFastestInterval(FASTEST_UPDATE_INTERVAL_IN_MILLISECONDS);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n mFusedClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());\n } else {\n getLocation();\n }\n } else {\n mFusedClient.requestLocationUpdates(mLocationRequest, mLocationCallback, Looper.myLooper());\n }\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n mLocation = location;\n sendLocationToFireBase();\n statusTextView.setText(location.toString());\n } else {\n statusTextView.setText(\"CUCUK\");\n }\n }", "@Override\n\t\t\tpublic void onGetGeoCodeResult(GeoCodeResult arg0) {\n\t\t\t\t\n\t\t\t}", "public void startLocationService(Context context){\n createLocationRequest();\n mGoogleApiClient = new GoogleApiClient.Builder(context)\n .addApi(LocationServices.API)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .build();\n mGoogleApiClient.connect();\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n Map<String, Double> latlng = new HashMap<String, Double>();\n latlng.put(\"longitude\", location.getLongitude());\n latlng.put(\"latitude\", location.getLatitude());\n Log.d(\"Location\", \"Location retreived \" + latlng.toString());\n result.success(latlng);\n } else {\n Log.d(\"Location\", \"unable to retreive location\");\n result.success(null);\n }\n }", "@Override\n\tpublic void onLocationChanged(Location arg0) {\n\n\t}", "@Override\n\tpublic void onLocationChanged(Location arg0) {\n\n\t}", "public void onLocationChanged(Location location) {\n\n if (net_connection_check()) {\n\n String message = String.format(\n\n \"New Location \\n Longitude: %1$s \\n Latitude: %2$s\",\n\n location.getLongitude(), location.getLatitude());\n\n // *************************** GPS LOCATION ***************************\n\n\n driveruserid = User_id;\n driverlat = location.getLatitude();\n driverlong = location.getLongitude();\n\n\n Location driverLocation = new Location(\"user location\");\n driverLocation.setLatitude(driverlat);\n driverLocation.setLongitude(driverlong);\n\n aController.setDriverLocation(driverLocation);\n\n String drivercurrentaddress = lattoaddress(driverlat, driverlong);\n\n\n if (!checktripend && mGoogleMap != null) {\n // mGoogleMap.clear();\n\n\n }\n LatLng mark1 = new LatLng(driverlat, driverlong);\n\n if (logoutcheck) {\n//\t\t\tDriverdetails();\n }\n\n LatLng target = new LatLng(driverlat, driverlong);\n\n String check = fullbutton.getText().toString();\n if (acc.equals(\"yes\") || check.equals(\"End Trip\")) {\n if (check.equals(\"End Trip\")) {\n // mGoogleMap.clear();\n // mGoogleMap.setTrafficEnabled(true);\n }\n origin = new LatLng(driverlat, driverlong);\n /* try{\n String url = getDirectionsUrl(origin, dest);\n drawMarker(dest);\n DownloadTask downloadTask = new DownloadTask();\n //Start downloading json data from Google Directions API\n downloadTask.execute(url);\n }catch (Exception e){\n\n }*/\n\n// checkOffRouteAndRedrwaRoute(location);\n\n }\n\n checkOffRouteAndRedrwaRoute(location);\n if (location.hasBearing() && mGoogleMap != null) {\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(target) // Sets the center of the map to current location\n .zoom(16)\n .bearing(location.getBearing()) // Sets the orientation of the camera to east\n .tilt(0) // Sets the tilt of the camera to 0 degrees\n .build(); // Creates a CameraPosition from the builder\n mGoogleMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n }\n }\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n loc = location;\n getAddressFromLocation(loc.getLatitude(), loc.getLongitude());\n\n }\n }", "@Override\n public void onLocationChanged(Location location) {\n if(!firstLocCheck){\n drive = new Drive(location.getLatitude(),location.getLongitude(),Car.carList.get(carIndex),startTime);\n firstLocCheck = true;\n } else {\n Drive.curLat = location.getLatitude();\n Drive.curLong = location.getLongitude();\n }\n System.out.println(\"Location has changed\");\n System.out.println(location.getLatitude() + \" | \" + location.getLongitude());\n\n //updateLoc(location);\n //locProvider = location.getProvider();\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n Toast.makeText(ATSLocationActivity.this, \"Last location is null\", Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(ATSLocationActivity.this, \"\"+location.getLatitude(), Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onLocationAvailability(LocationAvailability availability) {\n }", "@Override\n public void onConnected(Bundle bundle) {\n mLastLocation=LocationServices.FusedLocationApi.getLastLocation(mLocationClient);\n if(mLastLocation!=null){\n double latitude=mLastLocation.getLatitude();\n double longitude=mLastLocation.getLongitude();\n\n Geocoder geocoder=new Geocoder(this, Locale.ENGLISH);\n try{\n List<Address> addresses=geocoder.getFromLocation(latitude,longitude,1);\n if(addresses!=null){\n Address fetchedAddresses=addresses.get(0);\n label=\"Location: \"+fetchedAddresses.getFeatureName()+\", \"+fetchedAddresses.getSubLocality()+\", \"+fetchedAddresses.getLocality()+\", \"+fetchedAddresses.getPostalCode()+\", \"+fetchedAddresses.getAdminArea()+\", \"+fetchedAddresses.getCountryName();\n }\n else{\n tvLocationLabel.setText(\"Location Not Found\");\n Snackbar.make(findViewById(android.R.id.content),\"Location Not Found\",Snackbar.LENGTH_LONG).show();\n }\n }catch (Exception e){\n Snackbar.make(findViewById(android.R.id.content),\"Unable to Get Location\",Snackbar.LENGTH_SHORT).show();\n tvLocationLabel.setText(\"Location Not Found\");\n e.printStackTrace();\n }\n }\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n mLocation = location;\n try {\n\n if (commingFrom.equalsIgnoreCase(\"DIRECTION\")) {\n if (mObituaries != null && mLocation != null) {\n if (mLocation != null) {\n String uri = String.format(Locale.ENGLISH,\n \"http://maps.google.com/maps?saddr=%f,%f(%s)&daddr=%f,%f (%s)\",\n Double.valueOf(mObituaries.getObituaryLat()),\n Double.valueOf(mObituaries.getObituaryLng()),\n \"Your Location\",\n mLocation.getLatitude(), mLocation.getLongitude(),\n mObituaries.getObituaryName());\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));\n intent.setPackage(\"com.google.android.apps.maps\");\n startActivity(intent);\n } else {\n Toast.makeText(ObitiuariesDetailsActivity.this,\n \"Current location not available\",\n Toast.LENGTH_SHORT).show();\n }\n } else {\n Toast.makeText(ObitiuariesDetailsActivity.this,\n \"No contact number found\",\n Toast.LENGTH_SHORT).show();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public interface PlacementRequestListener {\n \n void onRequestComplete(boolean isFound, Placement placement);\n\n void onRequestError(String error);\n}", "public abstract void onLocationFound(@NonNull Location location);", "@Override\n public void onReceiveLocation(BDLocation location) {\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n }", "private void updateGPS(){\n fusedLocationProviderClient =\n\n //---------------------------------------------------------------------------------------------\n\n\n //get permission from the user to track GPS\n if(ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n //user provided the permission\n //if a location is found than the SuccessListener will create an other trigger to an other anonymous function it´s called\n fusedLocationProviderClient.getLastLocation().addOnSuccessListener(this, new OnSuccessListener<Location>(){\n @Override\n public void onSuccess(Location location) {\n //Update the UI\n updateUIValues(location);\n }\n });\n }\n else{\n //user permission not granted yet\n //checking valid OS\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M){\n requestPermissions(new String[] {Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_FINE_LOCATION);\n }\n }\n\n }", "private void getLastKnownLocation(final OnResultListener callback) {\n try {\n getLocationProvider().getLastLocation()\n .addOnSuccessListener(location -> callback.onResult(location))\n .addOnCanceledListener(() -> callback.onResult(null))\n .addOnFailureListener(exception -> callback.onResult(null));\n } catch (SecurityException e) {\n callback.onResult(null);\n }\n }", "@Override\r\n public void onLocationChanged(Location location) {\n\r\n sendLocationUpdates(location);\r\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n mLastLocation = location;\n Log.i(\"mLastLocation\", String.valueOf(mLastLocation.getLatitude()) + \" \" + String.valueOf(mLastLocation.getLongitude()));\n }\n }", "@SuppressLint(\"MissingPermission\")\n private void requestLocationUpdate() {\n }", "@Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n startLocationUpdates();\n }", "private void getLastLocation1() {\n if (checkPermissions()) {\n\n // check if location is enabled\n if (isLocationEnabled()) {\n\n // getting last\n // location from\n // FusedLocationClient\n // object\n\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mFusedLocationClient.getLastLocation().addOnCompleteListener(new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n Location location = task.getResult();\n if (location == null) {\n requestNewLocationData();\n } else {\n user_longitude = location.getLongitude();\n user_latitude = location.getLatitude();\n Toast.makeText(Customer_bottom_nav.this, \"Location Taken\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n } else {\n Toast.makeText(Customer_bottom_nav.this, \"Please turn on\" + \" your location...\", Toast.LENGTH_LONG).show();\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n }\n } else {\n // if permissions aren't available,\n // request for permissions\n requestPermissions();\n }\n }", "public void getDeviceLocation() {\n try {\n if (locationPermissionGranted) {\n Task<Location> locationResult = fusedLocationProviderClient.getLastLocation();\n locationResult.addOnCompleteListener(getActivity(), new OnCompleteListener<Location>() {\n @Override\n public void onComplete(@NonNull Task<Location> task) {\n if (task.isSuccessful()) {\n // Set the map's camera position to the current location of the device.\n lastKnownLocation = task.getResult();\n\n if (lastKnownLocation != null) {\n if (checkInLACounty(lastKnownLocation) != -1) {\n // geofenceHelper(getContext());\n lastKnownLocationInLA = true;\n sharedViewModel.setCountyData(\"Los Angeles County\");\n backLA.setVisibility(View.INVISIBLE);\n } else if (lastKnownLocationInLA) {\n lastKnownLocationInLA = false;\n sharedViewModel.setCountyData(\"Not in Los Angeles County\");\n\n backLA.setVisibility(View.VISIBLE);\n\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getContext());\n alertDialogBuilder.setTitle(\"Friendly Warning\");\n alertDialogBuilder.setMessage(\"Out of Los Angeles County \\n(Current Service Area)\");\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show(); // Show Dialog\n }\n } else {\n sharedViewModel.setCountyData(\"Los Angeles County\");\n }\n\n } else {\n Log.d(TAG, \"Current location is null. Using defaults.\");\n Log.e(TAG, \"Exception: %s\", task.getException());\n map.moveCamera(CameraUpdateFactory\n .newLatLngZoom(defaultLocation, DEFAULT_ZOOM));\n map.getUiSettings().setMyLocationButtonEnabled(false);\n }\n }\n });\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage(), e);\n }\n }", "private void requestLocationUpdates(){\n if(googleApiClient.isConnected()){\n try{\n setLocationRequest();\n LocationServices.FusedLocationApi.requestLocationUpdates(googleApiClient, locationRequest, this);\n } catch (SecurityException ex) {\n Log.e(TAG, \"requestLocationUpdates: no permissions\", ex);\n }\n }\n }", "public void getLocation() {\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_PERMISSION);\n } else {\n mFusedLocationClient.getLastLocation().addOnSuccessListener(\n location -> {\n if (location != null) {\n // Start the reverse geocode AsyncTask\n new FetchAddressTask(DetailsTextActivity.this,\n DetailsTextActivity.this).execute(location);\n txtLocation.setText(getString(R.string.loading));\n Log.d(\"myTag\", \"have location\");\n } else {\n txtLocation.setText(R.string.no_location);\n }\n }\n );\n }\n }", "@Override\n public void onSuccess(Location location) {\n if (location != null) {\n wayLatitude = location.getLatitude();\n wayLongitude = location.getLongitude();\n SharedStore.getInstance().save(Double.toString(wayLatitude),\"CurrentLat\");\n SharedStore.getInstance().save(Double.toString(wayLongitude),\"CurrentLong\");\n Log.e(\"getLocation\", String.valueOf(wayLatitude));\n }\n }", "@Override\n public void onLocationChanged(AMapLocation amaplocation) {\n if (amaplocation != null && mListener != null) {\n if (amaplocation.getErrorCode() == 0) {\n mListener.onLocationChanged(amaplocation);\n Log.d(TAG, \"onLocationChanged: \" + amaplocation.getAddress());\n } else {\n String errText = \"onLocationChanged\" + \"failed to locate,\" + amaplocation.getErrorCode() + \": \"\n + amaplocation.getErrorInfo();\n Log.e(\"error\", errText);\n }\n\n }\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n if (displayGpsStatus()) {\n\n Log.v(TAG, \"onClick\");\n\n\n locationListener = new MyLocationListener();\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED ) {\n locationMangaer.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, locationListener);\n\n }\n else{\n Toast.makeText(this,\"Kindly Provide Location Acces\",Toast.LENGTH_SHORT).show();\n }\n\n Log.v(TAG,latitudeUsers +\" , \"+longitudeUsers);\n\n } else {\n Toast.makeText(this,\"GPS not available!!\",Toast.LENGTH_SHORT).show();\n }\n\n }" ]
[ "0.75729257", "0.71959597", "0.6998202", "0.69012994", "0.6886797", "0.68468463", "0.6728579", "0.66722053", "0.6653567", "0.661564", "0.65996885", "0.65597993", "0.6555183", "0.6549444", "0.654704", "0.6504128", "0.64835024", "0.6483452", "0.64611405", "0.6423993", "0.6394166", "0.63910496", "0.637127", "0.63652647", "0.6339541", "0.6317921", "0.6308579", "0.62951326", "0.6293745", "0.6287844", "0.6277656", "0.6276458", "0.62686706", "0.62581706", "0.6243491", "0.62415284", "0.622537", "0.62232757", "0.62176055", "0.6214034", "0.6208431", "0.61903334", "0.6185927", "0.6177994", "0.6169989", "0.61582583", "0.61526805", "0.61526805", "0.61416715", "0.61415815", "0.6137866", "0.6134407", "0.6133048", "0.6131595", "0.61215925", "0.61212194", "0.61144906", "0.6110318", "0.61005986", "0.60958195", "0.6095788", "0.6087419", "0.608726", "0.60868984", "0.6066892", "0.6062752", "0.60496444", "0.6043707", "0.60408896", "0.6038126", "0.6034146", "0.60332346", "0.6026623", "0.6021639", "0.60075843", "0.60075843", "0.6001479", "0.6001469", "0.5988142", "0.5987007", "0.5986788", "0.5981743", "0.59799683", "0.59744537", "0.5969869", "0.5962632", "0.59623677", "0.59623677", "0.59607434", "0.5960582", "0.59598327", "0.5959575", "0.595662", "0.5956091", "0.5955282", "0.5952954", "0.59479016", "0.5947356", "0.5942732", "0.59412473", "0.59376687" ]
0.0
-1
On Location Change callback
@Override public void onLocationChanged(Location location) { Log.i(LOG_TAG, "Location Change"); Location target = new Location("target"); String closePoint; int closestIndex = -1;// Default to none float minDistance = 1000; // Default to high value // Focus camera on initial location if (mapReady == true && initialCameraSet == true) { LatLng initialLocation = new LatLng(location.getLatitude(), location.getLongitude()); gMap.moveCamera(CameraUpdateFactory.newLatLng(initialLocation)); initialCameraSet = false; // Initial location already displayed } // Check if spot is close for (int i = 0; i < LocationsClass.spotsCoordinates.length; ++i) { target.setLatitude(LocationsClass.spotsCoordinates[i].latitude); target.setLongitude(LocationsClass.spotsCoordinates[i].longitude); if (location.distanceTo(target) < minDistance) { closestIndex = i; //Save closes index minDistance = location.distanceTo(target); // update minDistance } } if (minDistance < 200 && minDistance > 20) { Toast.makeText(getActivity(), "Location: " + LocationsClass.spotNames[closestIndex] + " is within 200 meters!\n" + "Go check it out!", Toast.LENGTH_LONG).show(); // pointsOfInterests.get(closestIndex).showInfoWindow(); // gMap.getUiSettings().setMapToolbarEnabled(true); popNotification = true; // Allow notification to trigger when user reaches destination } else if (minDistance < 20) { if (closestIndex != currentUserLocation) { int locationId = getResources().getIdentifier("loc_"+closestIndex, "drawable", getActivity().getPackageName()); showArrivalNotification(locationId, LocationsClass.spotNames[closestIndex]); currentUserLocation = closestIndex; // Update user location } } if (hotspotIndex != -1) { pointsOfInterests.get(hotspotIndex).showInfoWindow(); gMap.getUiSettings().setMapToolbarEnabled(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\n\t\t}", "@Override\n public void onMyLocationChange(Location arg0) {\n }", "public void onLocationChanged(Location location) {\n \n \t}", "@Override\n \t\t\tpublic void onLocationChanged(Location loc) {\n \t \n \t\t\t}", "@Override\n\tpublic void onLocationChanged(Location arg0) {\n\n\t}", "@Override\n\tpublic void onLocationChanged(Location arg0) {\n\n\t}", "public void onLocationChanged(Location location) {\n \t \n \t }", "@Override\n\tpublic void onLocationChanged(Location loc)\n\t{\n\t}", "@Override\n public void onLocationChanged(Location location) {\n }", "public void onLocationChanged(Location location) {\n }", "@Override\n public void onLocationChanged(Location location) {\n }", "@Override\n \tpublic void onLocationChanged(Location location) {\n \t\tthis.location = location;\n \t}", "@Override\n public void onLocationChanged(Location location) {\n\n }", "@Override\n public void onLocationChanged(Location location) {\n\n }", "public void onLocationChanged(Location location){\n\n }", "@Override\n\tpublic void onLocationChanged(android.location.Location arg0) {\n\t\t\n\t}", "@Override\n public void onLocationChanged(@NonNull Location location) {\n }", "@Override\n public void onLocationChanged(Location location) {\n setChanged();\n notifyObservers(location);\n }", "@Override\n public void onLocationChanged(Location location) {\n mLastLocation = location;\n\n\n }", "@Override\n public void onLocationChanged(Location location) {\n updateLocation(location);\n }", "public void onLocationChanged(Location location) {\n sendResult(location);\n }", "@Override\n public void onLocationChanged(Location location) {\n Location location1 = location;\n\n }", "public void onLocationChanged(Location location) {\n lastKnownLocation = location;\n geofenceHelper(getContext());\n }", "@Override\n\tpublic void onLocationChange(AMapNaviLocation arg0) {\n\n\t}", "@Override\n public void onLocationChanged(Location location) {\n OnLocationChanged(location.getLatitude(), location.getLongitude());\n }", "@Override\r\n\tpublic void onLocationChange(AMapNaviLocation arg0) {\n\r\n\t}", "public void onLocationChange() {\n\t\tupdateWeather();\n\t\tgetLoaderManager().restartLoader(FORECAST_LOADER_ID, null, this);\n\t}", "@Override\r\n public void onLocationChanged(Location location) {\r\n Log.i(TAG, \"Location changed : \" + location);\r\n if (location != null) {\r\n mCurrentLocation = location;\r\n updateUI();\r\n }\r\n }", "@Override \n public void onLocationChanged(Location location) { \n mostRecentLocation = location; \n }", "@Override\n public void onLocationChanged(MapWidget v, Location location) {\n }", "public void onLocationChanged(Location location) {\n\t\t\t\tupdatenewlocation(location);\n\t\t\t\t\n\t\t\t}", "public void onLocationChanged(Location location) {\n \t\tprintMyCurrentLocationAsString(location);\n \t\t\n\t\t\n \t}", "@Override\n public final void onLocationChanged(@NonNull Location location) {\n Log.i(TAG, \"Location has changed, new location is \" + location);\n if( LocationTracker.sLocation == null){\n LocationTracker.sLocation = new Location(location);\n }\n mIsLocationFound = true;\n onLocationFound(location);\n }", "public void changed(LocationEvent arg0) {\n \t\t\t\t\t\t\n \t\t\t\t\t}", "@Override\n public void onLocationChanged(Location location) {\n if(!firstLocCheck){\n drive = new Drive(location.getLatitude(),location.getLongitude(),Car.carList.get(carIndex),startTime);\n firstLocCheck = true;\n } else {\n Drive.curLat = location.getLatitude();\n Drive.curLong = location.getLongitude();\n }\n System.out.println(\"Location has changed\");\n System.out.println(location.getLatitude() + \" | \" + location.getLongitude());\n\n //updateLoc(location);\n //locProvider = location.getProvider();\n }", "public void onLocationChanged(Location argLocation) {\n\t GeoPoint myGeoPoint = new GeoPoint(\r\n\t (int)(argLocation.getLatitude()*1000000),\r\n\t (int)(argLocation.getLongitude()*1000000));\r\n\t /*\r\n\t * it will show a message on \r\n\t * location change\r\n\t Toast.makeText(getBaseContext(),\r\n\t \"New location latitude [\" +argLocation.getLatitude() +\r\n\t \"] longitude [\" + argLocation.getLongitude()+\"]\",\r\n\t Toast.LENGTH_SHORT).show();\r\n\t */\r\n\r\n\t mapController.animateTo(myGeoPoint);\r\n\r\n\t }", "@Override\n\t\tpublic void onLocationChanged(Location args0) {\n\t\t\t mCurrentLocation = args0;\n\t mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n\t updateUI();\n\n\t\t}", "@Override\r\n public void onSuccess(Location location) {\n if (location != null) {\r\n onLocationChanged(location);\r\n }\r\n }", "@Override\n public void onLocationResult(LocationResult locationResult) {\n Location location = locationResult.getLastLocation();\n if (location != null) {\n onLocationChanged(location);\n }\n }", "@Override\r\n public void onLocationChanged(Location location) {\r\n // - Update local variables\r\n setLocationData(location);\r\n\r\n if (location != null) {\r\n Log.e(TAG, \"== location != null\");\r\n // - Send result through a broadcast\r\n sendBroadcastToActivity(currentLat, currentLng);\r\n }\r\n }", "@Override\r\n public void onLocationChanged(Location location) {\n\r\n sendLocationUpdates(location);\r\n }", "public void onLocationChanged(Location location) {\n Log.i(TAG, \"Location changed: \" + location);\n nativeLocationChanged(location, nativeObject);\n }", "public void onSuccess(Location location) {\n if (location != null) {\n //onLocationChanged(location);\n }\n }", "@Override\r\n\tpublic void onLocationChange(Location loc) {\n\t\tuser.setRelativePosition(loc.getX(), loc.getY());\r\n\t\tmap.addStep(new PointF(loc.getX(),loc.getY()));\r\n\t\tmessageHandler.sendEmptyMessage(MESSAGE_REFRESH);\r\n\t}", "@Override\n public void onLocationChanged(AMapLocation amaplocation) {\n if (amaplocation != null && mListener != null) {\n if (amaplocation.getErrorCode() == 0) {\n mListener.onLocationChanged(amaplocation);\n Log.d(TAG, \"onLocationChanged: \" + amaplocation.getAddress());\n } else {\n String errText = \"onLocationChanged\" + \"failed to locate,\" + amaplocation.getErrorCode() + \": \"\n + amaplocation.getErrorInfo();\n Log.e(\"error\", errText);\n }\n\n }\n }", "@Override\n public void onLocationChange(Location loc) {\n user.setRelativePosition(loc.getX(), loc.getY());\n map.addStep(new PointF(loc.getX(), loc.getY()));\n //messageHandler.sendEmptyMessage(MESSAGE_REFRESH);\n }", "@Override\n\tpublic void onLocationChanged(TencentLocation arg0, int arg1,\n\t\t\tString arg2) {\n\t\tif (arg1 == TencentLocation.ERROR_OK && mChangedListener != null) {\n\t\t\tLog.e(\"maplocation\", \"location: \" + arg0.getCity() + \" \" + arg0.getProvider());\n\t\t\tLocation location = new Location(arg0.getProvider());\n\t\t\tlocation.setLatitude(arg0.getLatitude());\n\t\t\tlocation.setLongitude(arg0.getLongitude());\n\t\t\tlocation.setAccuracy(arg0.getAccuracy());\n\t\t\tmChangedListener.onLocationChanged(location);\n\t\t\tif(mainActivity.isAlutoLocationAllow())\n\t\t\t\tmapControl.MoveCameraPosition(location.getLatitude(),location.getLongitude());\n\t\t}\n\t}", "public void onLocationChanged(Location location) {\n if (location != null) {\n Log.i(\"SuperMap\", \"Location changed : Lat: \" + location.getLatitude() + \" Lng: \" +\n location.getLongitude());\n }\n\n }", "@Override\n public void onLocationChanged(Location location) {\n currentLatitude = location.getLatitude();\n currentLongitude = location.getLongitude();\n\n }", "@Override\n public void onLocationChanged(Location location) {\n mCurrentLocation = location;\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n Toast.makeText(this, getResources().getString(R.string.location_updated_message),\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onLocationChanged(Location location) {\n mCurrentLocation = location;\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n updateUI();\n Toast.makeText(this, getResources().getString(R.string.location_updated_message),\n Toast.LENGTH_SHORT).show();\n }", "@Override\n\tpublic void onLocationChanged(Location location) {\n\n\n\n\n\t\t// Report to the UI that the location was updated\n\t\tmConnectionStatus.setText(R.string.location_updated);\n\n\t\t// In the UI, set the latitude and longitude to the value received\n\t\tmLatLng.setText(LocationUtils.getLatLng(this, location));\n\n\t\t//Changes only need to be done in getLocation to cosntantly update the location info\n\n\n\n\t}", "public void onLocationChanged(Location location) {\r\n currentLocation = new GeoPoint(location);\r\n DatabaseInteractor.sendPosition(act, PreferenceData.getUserId(act), currentLocation.getLatitude(), currentLocation.getLongitude());\r\n\t\tguidoMap.showMyLocation();\r\n }", "@Override\n\tpublic void onLocationChanged(Location arg0) {\n\t\t Location myLocation =mMap.getMyLocation();\n if( myLocation != null ){\n logger.debug( \"Latitude: \" + myLocation.getLatitude() + \"\\nLongitude: \" + myLocation.getLongitude() );\n } \n\t}", "@Override\n\tpublic void onLocationChanged(Location location) {\n\t\tphysAddr = this.initLocationManager();\n\t}", "@Override\n public void onLocationChanged(final Location location) {\n\n if(mLastLocation==null || location.distanceTo(mLastLocation)>getResources().getInteger(R.integer.min_distance_listen))\n {\n new GetNearBy().executePreHeavy();\n }\n\n mLastLocation=location;\n\n android.util.Log.e(\"onLocationChanged\",mLastLocation.getLatitude()+\" - \"+mLastLocation.getLongitude());\n\n\n\n }", "@Override\n public void onLocationChanged(final Location location) {\n // Lay vi tri hien tai cua minh\n myLocation = new LatLng(location.getLatitude(), location.getLongitude());\n if (firstLocation == true) {\n // Neu day la lan dau co thong tin vi tri thi chuyen camera ve vi tri nay\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 15));\n firstLocation = false;\n }\n // Gui vi tri cua minh len server\n String myLocationMessage = String.format(\"{\\\"COMMAND\\\":\\\"MEMBER_CURRENT_LOCATION\\\", \\\"LATITUDE\\\": \\\"%s\\\", \\\"LONGITUDE\\\": \\\"%s\\\"}\", myLocation.latitude, myLocation.longitude);\n OnlineManager.getInstance().sendMessage(myLocationMessage);\n // Refresh danh sach timesheet\n if (tourTimesheetAdapter != null) {\n tourTimesheetAdapter.notifyDataSetChanged();\n }\n }", "public void onLocationChanged(Location location) {\n btsLocation.one_time_refresh();\r\n serviceToken = btsLocation.getToken();\r\n verify(serviceToken, pollDatabases(serviceToken));\r\n \r\n }", "public void onPositionChanged() {\n\n currentLat = location.getLatitude();\n currentLng = location.getLongitude();\n\n }", "public void onPositionChanged() {\n\n currentLat = location.getLatitude();\n currentLng = location.getLongitude();\n\n }", "@Override\r\n\tpublic void onLocationChanged(Location location) {\n\t if(location!=null){\r\n\t //Toast.makeText(mContext,\"Location provider = \"+location.getProvider(), Toast.LENGTH_SHORT).show();\r\n if (LocationManager.GPS_PROVIDER.equals(location.getProvider())) {\r\n double [] latlng =Common.adjustLatLng(location.getLatitude(), location.getLongitude());\r\n location.setLatitude(latlng[0]);\r\n location.setLongitude(latlng[1]);\r\n Common.saveLocation(location);\r\n super.onLocationChanged(location);\r\n }else if(\"lbs\".equals(location.getProvider())){\r\n Common.saveLocation(location);\r\n super.onLocationChanged(location);\r\n }\r\n\t }\r\n\t}", "public interface LocationChange {\n void onLocationChanged(Location location);\n}", "public void onLocationChanged(Location location) {\n System.out.println(\"LAT: \" + location.getLatitude() + \" LONG: \" + location.getLongitude());\n locationListenerManager.trigger(location);\n }", "@Override\n public void onLocationChanged(Location location) {\n if (ActivityCompat.checkSelfPermission(TourTabsActivity.this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(TourTabsActivity.this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n // Bat gps thi di chuyen camera den vi tri cua minh\n myLocation = new LatLng(location.getLatitude(), location.getLongitude());\n if (firstLocation == true) {\n // Neu day la lan dau co thong tin vi tri thi chuyen camera ve vi tri nay\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 15));\n firstLocation = false;\n }\n // Gui vi tri cua minh len server\n String myLocationMessage = String.format(\"{\\\"COMMAND\\\":\\\"MEMBER_CURRENT_LOCATION\\\", \\\"LATITUDE\\\": \\\"%s\\\", \\\"LONGITUDE\\\": \\\"%s\\\"}\", myLocation.latitude, myLocation.longitude);\n OnlineManager.getInstance().sendMessage(myLocationMessage);\n // Refresh danh sach timesheet\n if(tourTimesheetAdapter != null){\n tourTimesheetAdapter.notifyDataSetChanged();\n }\n }\n }", "@Override\n public void onLocationChanged(Location location) {\n\n clientlat = location.getLatitude();\n clientlon = location.getLongitude();\n System.out.println(\"latitude is \"+clientlat);\n System.out.println(\"longitude is \"+clientlon);\n }", "@Override\r\n\t\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\tLog.d(\"demo\", \"Lat:\" + location.getLatitude() + \" Long:\"+location.getLongitude());\r\n\t\t\t}", "public void onLocationChanged(Location location) {\r\n double latitude = location.getLatitude();\r\n double longitude = location.getLongitude();\r\n controller.setLocation(new LatLng(latitude, longitude));\r\n }", "@Override\n public void onLocationChanged(Location location) {\n Toast.makeText(getApplicationContext(), location.toString() + \"\", Toast.LENGTH_SHORT).show();\n Log.i(TAG, \"onLocationChanged: \" + location.toString());\n }", "@Override\n\tpublic void onLocationChanged(android.location.Location arg0) {\n\t\tif(gmapFlag == true){\n\t\t\tmyLocation = new LatLng(arg0.getLatitude(), arg0.getLongitude());\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n public void onConnected(Bundle arg0) {\n mLastLocation=locationHelper.getLocation();\n }", "public void onLocationChanged(Location location) {\n \t StringBuilder buf=new StringBuilder(\"javascript:whereami(\"); \n buf.append(String.valueOf(location.getLatitude()));\n buf.append(\",\");\n buf.append(String.valueOf(location.getLongitude()));\n buf.append(\")\"); \n outputWindow.append(\"\\nStart to call JS:\" + buf.toString());\n browser.loadUrl(buf.toString());\n }", "public void onLocationChanged(Location loc) {\n\n\n loc.getLatitude();\n loc.getLongitude();\n latitude=loc.getLatitude()+\", \"+loc.getLongitude();\n String Text = \"\\n Lat = \" + loc.getLatitude() + \"\\n Long = \" + loc.getLongitude();\n mensaje1.setText(Text);\n this.mainActivity.setLocation(loc);\n }", "void onLocationChanged( String newLocation ) {\n Uri uri = mUri;\n if (null != uri) {\n long date = WeatherContract.WeatherEntry.getDateFromUri(uri);\n Uri updatedUri = WeatherContract.WeatherEntry.buildWeatherLocationWithDate(newLocation, date);\n mUri = updatedUri;\n getLoaderManager().restartLoader(DETAILED_WEATHER_LOADER, null, this);\n }\n }", "@Override\n public void onLocationChanged(Location loc)\n {\n \t\n \tint lat = (int) (loc.getLatitude() * 1E6);\n\t\t\tint lng = (int) (loc.getLongitude() * 1E6);\n\t\t\t point = new GeoPoint(lat, lng);\n\t\t\t \n\t\t\t /** remove the previous overlay so the another\n\t\t\t can be added **/\n\t\t\t itemizedOverlay.removeOverlay(0);\n\t\t\t \n\t\t\n\t\t\t //this follows the same steps in the OnCreate function at start up.\n\t\t\t // //Initialize a normal MapOVerlay item with new point.\n\t\t\t OverlayItem overlayitem = new OverlayItem(point, \"kiddda!\", \"sasri kal!\");\n\t\t \n\t\t itemizedOverlay.addOverlay(overlayitem);\n\t\t mapOverlays.add(itemizedOverlay);\n\t\t // move to new point.\n\t\t\tcontroller.animateTo(point); \n\t\t\t \n\t\n\t\t\t//debug message to say the location has been read.\n\t\t\tLog.i(\"Listener\", \"location read\");\n\t\t\t \n\t\t\n\n\t\t \n // String Text = \"My current location is: \" +\n\t\t\tLog.i(\"service check\",\" Latitude = \" + loc.getLatitude() +\n \" Longitude = \" + loc.getLongitude());\n \n // Toast.makeText( getApplicationContext(), Text, Toast.LENGTH_LONG).show();\n \n }", "public void onLocationChanged(Location location)\n {\n \tmLastLocation.set(location);\n \tmLocationAvailable = true;\n \n for (LocationServiceListener listener : mListeners)\n {\n listener.onLocationAvailable(location);\n }\n \n }", "public void onLocationChanged(Location location) {\n Log.d(\"Location\",location.toString());\n currentPosition.setAltitude(location.getAltitude());\n currentPosition.setCoordinate(new SKCoordinate(location.getLongitude(),location.getLatitude()));\n currentPosition.setSpeed(location.getSpeed());\n mapView.setPositionAsCurrent(currentPosition.getCoordinate(),1,true);\n }", "public void onLocationChanged(Location location) {\n if (location == null) {\n return;\n }\n\n // If not null, then set current location to changed location\n mCurrentLocation = location;\n }", "@Override\n \t\tpublic void onLocationChanged(Location location) {\n \t\t\tmobileLocation = location;\n \t\t\tif(!wasZoomed)\n \t\t\t{\n \t\t\tGeoPoint newPos = new GeoPoint(\n \t\t\t\t\t(int)(mobileLocation.getLatitude() * 1e6),\n \t\t\t\t\t(int)(mobileLocation.getLongitude() * 1e6));\n \t\t\t\n \t\t\tdouble latitudeSpan = Math.round(Math.abs(mobileLocation.getLatitude()*1e6- \n \t grave.getLatitudeE6()));\n \t\t\tdouble longitudeSpan = Math.round(Math.abs(mobileLocation.getLongitude()*1e6 - \n \t grave.getLongitudeE6()));\n \t\t\t\n \t\t\tmc.zoomToSpan((int)(latitudeSpan*2), (int)(longitudeSpan*2)); \n \t\t\t\t\t\n \t\t\tmc.animateTo(new GeoPoint\n \t\t\t\t\t((grave.getLatitudeE6()+newPos.getLatitudeE6())/2, \n \t\t\t \t\t\t(grave.getLongitudeE6()+newPos.getLongitudeE6())/2));\n \t\t\t\n \t\t\tmapView.invalidate();\n \t\t\twasZoomed = true;\n \t\t\t}\n \t\t\tLog.i(\"LOCATION\",\"LONG: \"+location.getLongitude()+ \" LAT:\"+location.getLatitude());\n \t\t}", "public void onLocationChanged(Location loc) {\n\tif (loc != null && !loc.equals(m_oldLoc)) {\n\t m_oldLoc = loc;\n\t if (m_mode == LOCK) {\n\t\tm_location = new GeoPoint((int)(loc.getLatitude() * 1E6),\n\t\t\t\t\t (int)(loc.getLongitude() * 1E6));\n\t\tm_controller.animateTo(m_location);\n\t }\n\t}\n }", "@Override\n public void onLocationChanged(AMapLocation amapLocation) {\n if (amapLocation != null && amapLocation.getErrorCode() == 0) {\n visitor_address_change.setText(amapLocation.getAddress());\n php_Address = amapLocation.getAddress();\n php_Lng = amapLocation.getLongitude() + \"\";\n php_Lat = amapLocation.getLatitude() + \"\";\n mOkTv.setText(\"完成\");\n }\n else if (amapLocation.getErrorCode() == 12) {\n BsPermissionUtils.getAddressInfo(mContext);\n }\n else {\n visitor_address_change.setText(\"(定位失败) 请选择位置\");\n }\n // AnimationUtil.setStopRotateAnimation(mAdressInco);// 停止旋转动画\n // mAdressInco.setVisibility(View.GONE);\n }", "void onNewLocationRecieved(LocationWrapper locationWrapper, LocationType type);", "public void onLocationChanged(Location newlocation) {\n\t\t\t\t\n\t\t\t\tif (newlocation != null) \n\t\t\t\t{\n\t\t\t\t\tlocationManager.removeUpdates(this);\n\t\t\t\t\tpoint=getGeoPoint(newlocation);\n\t\t\t\t\t//String altitiude = \"Altitiude: \" + newlocation.getAltitude();\n\t\t\t\t\t//String accuracy = \"Accuracy: \" + newlocation.getAccuracy();\n\t\t\t\t\t//String time = \"Time: \" + newlocation.getTime();\n\t\t\t\t\tmapController.animateTo(point);\n\t\t\t\t\t\n\t\t\t\t\tlatitudes= String.valueOf(newlocation.getLatitude() * 1E6);\n\t\t\t\t\tlongitudes= String.valueOf (newlocation.getLongitude() * 1E6);\n\t\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"latd\",latitudes));\n\t\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"lotd\",longitudes));\n\t\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"id\",LoginId));\n\t\t\t\t\tArrayList<NameValuePair> result=db.getServerData(nameValuePairs,\"updatecoordinates.php\");\n\t\t\t\t\tnameValuePairs.clear();\n\t\t\t\t\tfor(int i=0;i<result.size();i++)\n\t\t\t\t\t{\n\t\t\t\t\t\ts=result.get(i).getName();\n\t\t\t\t\t\tif(s.equals(\"Error\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tToast tt=Toast.makeText(MapViewActivity.this, \"Co-Ords Updated\", 3000);\n\t\t\t\t\t\t\ttt.setGravity(Gravity.CENTER, 0, 15);\n\t\t\t\t\t\t\ttt.show();\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\tToast tt=Toast.makeText(MapViewActivity.this, \"Co-Ords Updated Error\", 3000);\n\t\t\t\t\t\t\ttt.setGravity(Gravity.CENTER, 0, 15);\n\t\t\t\t\t\t\ttt.show();break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tresult.clear();\n\t\t\t\t\t\n\t\t\t\t\tmapView.invalidate();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\n public void onLocationChange(@NonNull Location location) {\n longitude = location.getLongitude();\n latitude = location.getLatitude();\n }", "public void updateLocation();", "public void onLocationChanged(Location location) {\n\t\t\tsendGPS(location);\r\n\t\t}", "@Override\n\tpublic void onLocationChanged(Location location) {\n\t\tmylat=location.getLatitude();\n\t\tmylong=location.getLongitude();\n\t\tgetData();\n\t\t\n\t}", "@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\tcurrent_location=location;\n\t\t\tlatitude=current_location.getLatitude();\n\t\t\tlongitude=current_location.getLongitude();\n\t\t\t//Toast.makeText(AgentSectionActivity.this,\"LATITUDE IS : \"+latitude+\"\\n LONGITUDE IS :\"+longitude+\"\",4000).show();\n\t\t\tsenddata(logged_user,Double.toString(latitude),Double.toString(longitude));\n\t\t}", "void onLocationChanged(Location location, @SuppressWarnings(\"UnusedParameters\") Date date);", "@Override\n public void onLocationAvailability(LocationAvailability availability) {\n }", "@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\n\t\t\tGeoPoint p = new GeoPoint((int) (location.getLatitude() * 1E6), (int) (location.getLongitude() * 1E6));\n\t\t\toverlayHome = new MyOverlayItem(p, getString(R.string.Casa),getString(R.string.HelloCasa));\n\t\t\titemizedoverlay.addOverlay(overlayHome);\n\t\t\tContentValues initialValues = new ContentValues();\n\t\t\tinitialValues.put(Home.LATITUDE, p.getLatitudeE6());\n\t\t\tinitialValues.put(Home.LONGITUDE, p.getLongitudeE6());\n\t\t\tgetContentResolver().insert(Home.CONTENT_URI, initialValues);\n\t\t\tmapView.invalidate();\n\t\t\tmapView.getController().animateTo(p);\n\t\t\tToast.makeText(Map.this, \"Localização Gps\", Toast.LENGTH_SHORT).show();\n\t\t}", "@Override\n public void handleLocationChange(Location newLocation) {\n super.handleLocationChange(newLocation);\n MainActivity mainActivity = (MainActivity) getActivity();\n mainActivity.getGeofenceMonitor().handleLocationChange(newLocation);\n setCamera();\n if(mainActivity.getGeofenceMonitor().currentLocation != null) {\n if(debugMode) {\n TextView txt_lat = (TextView) view.findViewById(R.id.txt_lat);\n TextView txt_long = (TextView) view.findViewById(R.id.txt_long);\n txt_lat.setVisibility(View.VISIBLE);\n txt_long.setVisibility(View.VISIBLE);\n txt_lat.setText(\"Latitude: \" + mainActivity.getGeofenceMonitor().currentLocation.getLatitude());\n txt_long.setText(\"Longitude: \" + mainActivity.getGeofenceMonitor().currentLocation.getLongitude());\n }\n setUpMapIfNeeded();\n }\n }", "@Override\n public void onLocationChanged(Location location) {\n setLocation(location);\n mLastUpdateTime = DateFormat.getTimeInstance().format(new Date());\n mTime = new SimpleDateFormat(K.TIMESTAMP_FORMAT_STRING).format(Calendar\n .getInstance().getTime()).toString();\n androidLocationUI.updateUI();\n if (application.isLogging()) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n saveData();\n }\n }).start();\n }\n }", "@Override\n public void onLocationChanged(Location location) {\n mMyLocationSubject.onNext(location);\n mPreferences.edit()\n .putString(PREFERENCES_KEY_POS_LAT, Double.toString(location.getLatitude()))\n .putString(PREFERENCES_KEY_POS_LONG, Double.toString(location.getLongitude()))\n .apply();\n }", "@Override\n public void onLocationChanged(Location location) {\n count++;\n }", "public void gotLocation(Location location){\r\n \tif(location!=null){\r\n\t \tConstants.gpslat = location.getLatitude()+\"\";\r\n\t Constants.gpslng = location.getLongitude()+\"\";\r\n\t Log.d(\"location changed: lattitue & longitude\",Constants.gpslat+\" & \"+Constants.gpslng);\r\n \t}\r\n }", "public void onLocationChanged(Location location) {\n mCurrentLocation = location;\n processUser(playerName, mCurrentLocation.getLatitude(), mCurrentLocation.getLongitude());\n }", "@Override\n public void onLocationChanged(Location location) {\n mPreviousLocation = mCurrentLocation;\n mCurrentLocation = location;\n //This causes the app to crash during first permission checks\n /* //Distance from current location to previous location\n mDistanceTravelled = mCurrentLocation.distanceTo(mPreviousLocation);*/\n //Distance from current location to waypoint location\n mDistanceFromWaypoint = mCurrentLocation.distanceTo(mWaypoint);\n mNum++;\n\n //Controls lap timer functionality based on location relative to the user and the waypoint\n isUserInStartZone();\n\n //mNumberUpdates++;\n updateLocationUI();\n\n }", "@SuppressLint(\"MissingPermission\")\n private void requestLocationUpdate() {\n }", "public void startLocationUpdate() {\n if (locationCallback != null) {\n try {\n locationCallback = new LocationCallback() {//khoi tao dinh nghia (extent)\n\n @Override\n public void onLocationResult(LocationResult locationResult) {\n super.onLocationResult(locationResult);\n Log.d(TAG, \"onLocationResult: \");\n if (locationResult != null) {\n Log.d(TAG, \"onLocationResult: loaction!==null\");\n myLocation = locationResult.getLastLocation();\n showMarker();//de show hinh len\n }\n }\n };\n fusedLocationProviderClient.requestLocationUpdates(locationRequest, locationCallback, null);//dang ky voi he thong app lang nghe su thay doi cua location\n\n } catch (SecurityException e) {\n e.getMessage();\n\n }\n }\n }", "public void addLocationObserver(String location);" ]
[ "0.85415626", "0.85415626", "0.85211265", "0.8455737", "0.84105915", "0.8390983", "0.8390983", "0.83530164", "0.8350979", "0.834238", "0.83340794", "0.8328063", "0.82270634", "0.8218223", "0.8218223", "0.8088455", "0.79689795", "0.7957753", "0.7926276", "0.7913967", "0.7882216", "0.7865354", "0.7855749", "0.7852328", "0.78290176", "0.77763194", "0.7776179", "0.7757715", "0.7715824", "0.76725924", "0.7667425", "0.7636292", "0.7586954", "0.75610334", "0.7552739", "0.7547605", "0.7505215", "0.7500982", "0.7493341", "0.7483216", "0.74779445", "0.74549055", "0.7420549", "0.7416806", "0.7411194", "0.73929065", "0.73900723", "0.7386552", "0.73757297", "0.73642355", "0.7355332", "0.7355332", "0.73435855", "0.7337779", "0.73263615", "0.73127323", "0.7307808", "0.7290705", "0.7276146", "0.721361", "0.721361", "0.720981", "0.71898556", "0.7183105", "0.71689034", "0.71663994", "0.71662843", "0.7156485", "0.7154138", "0.7142901", "0.7139913", "0.71355975", "0.71279263", "0.712298", "0.7108607", "0.7093694", "0.7080712", "0.7079475", "0.7072531", "0.7065244", "0.7050246", "0.7049899", "0.7036587", "0.70359236", "0.7033015", "0.70321345", "0.70249486", "0.7008961", "0.6983196", "0.69745165", "0.6957373", "0.6956536", "0.69548357", "0.6942445", "0.6940052", "0.69393", "0.69378054", "0.6923145", "0.6921738", "0.6905134", "0.6897675" ]
0.0
-1
UI interactive functions Sets the current view of the map to a satellite view
public void setSatellite(View view) { if (mapReady) { gMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mapIsClicked(View view) {\n Controller.viewMappa();\n }", "public void displayMap() {\n MapMenuView mapMenu = new MapMenuView();\r\n mapMenu.display();\r\n \r\n }", "public void viewOnMap(View view){\r\n changeToMapActivity();\r\n }", "private void setMapView()\n\t{\n\t\tMapContainer.mapView = new MapView(SubMainActivity.this, this.getString(R.string.apiKey));\n\t\tMapContainer.mapView.setClickable(true);\n\t\tMapContainer.mapView.setLayoutParams(new FrameLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));;\n\t}", "private void setView( boolean reset_zoom )\n {\n float azimuth = getAzimuthAngle();\n float altitude = getAltitudeAngle();\n float distance = getDistance();\n\n float r = (float)(distance * Math.cos( altitude * Math.PI/180.0 ));\n\n float x = (float)(r * Math.cos( azimuth * Math.PI/180.0 ));\n float y = (float)(r * Math.sin( azimuth * Math.PI/180.0 ));\n float z = (float)(distance * Math.sin( altitude * Math.PI/180.0 ));\n\n float vrp[] = getVRP().get();\n \n setCOP( new Vector3D( x + vrp[0], y + vrp[1], z + vrp[2] ) );\n\n apply( reset_zoom );\n }", "private void setupMapView(){\n Log.d(TAG, \"setupMapView: Started\");\n\n view_stage_map = VIEW_MAP_FULL;\n cycleMapView();\n\n }", "public void onStartup()\n/* 359: */ {\n/* 360:438 */ super.onStartup();\n/* 361: */ \n/* 362:440 */ this.mapPanel.addMouseListener(new MouseAdapter()\n/* 363: */ {\n/* 364: */ public void mouseClicked(MouseEvent e)\n/* 365: */ {\n/* 366:443 */ if (e.getButton() == 1)\n/* 367: */ {\n/* 368:444 */ Point p = e.getPoint();\n/* 369:445 */ if ((TileGIS.this.mapPanel.courtesyBounds != null) && (TileGIS.this.mapPanel.courtesyBounds.contains(p)))\n/* 370: */ {\n/* 371:446 */ TileGIS.this.getPresentation().openWebSite(TileGIS.this.mapPanel.tip.courtesyLnk);\n/* 372: */ }\n/* 373:447 */ else if ((TileGIS.this.mapPanel.courtesyImgBounds != null) && (TileGIS.this.mapPanel.courtesyImgBounds.contains(p)))\n/* 374: */ {\n/* 375:448 */ TileGIS.this.getPresentation().openWebSite(TileGIS.this.mapPanel.tip.courtesyLnk);\n/* 376: */ }\n/* 377: */ else\n/* 378: */ {\n/* 379:451 */ Point mP = TileGIS.this.mapPanel.panelToMap(p);\n/* 380:452 */ double lon = MercatorProj.XtoLon(mP.x, TileGIS.this.mapPanel.zoom);\n/* 381:453 */ double lat = MercatorProj.YtoLat(mP.y, TileGIS.this.mapPanel.zoom);\n/* 382:454 */ TileGIS.this.onClick(lat, lon);\n/* 383: */ }\n/* 384: */ }\n/* 385: */ }\n/* 386:458 */ });\n/* 387:459 */ getPresentation().getPanel().addContainerListener(new ContainerListener()\n/* 388: */ {\n/* 389: */ public void componentAdded(ContainerEvent e)\n/* 390: */ {\n/* 391:461 */ if (e.getChild() == TileGIS.this.placeholder.getJComponent()) {\n/* 392:462 */ TileGIS.this.getPresentation().getPanel().add(TileGIS.this.mapPanel);\n/* 393: */ }\n/* 394: */ }\n/* 395: */ \n/* 396: */ public void componentRemoved(ContainerEvent e)\n/* 397: */ {\n/* 398:467 */ if (e.getChild() == TileGIS.this.placeholder.getJComponent()) {\n/* 399:468 */ TileGIS.this.getPresentation().getPanel().remove(TileGIS.this.mapPanel);\n/* 400: */ }\n/* 401: */ }\n/* 402:472 */ });\n/* 403:473 */ this.placeholder.getJComponent().addComponentListener(new ComponentListener()\n/* 404: */ {\n/* 405: */ public void componentShown(ComponentEvent e) {}\n/* 406: */ \n/* 407: */ public void componentHidden(ComponentEvent e) {}\n/* 408: */ \n/* 409: */ public void componentResized(ComponentEvent e)\n/* 410: */ {\n/* 411:478 */ TileGIS.this.mapPanel.setSize(TileGIS.this.placeholder.getJComponent().getSize());\n/* 412: */ }\n/* 413: */ \n/* 414: */ public void componentMoved(ComponentEvent e)\n/* 415: */ {\n/* 416:482 */ TileGIS.this.mapPanel.setLocation(TileGIS.this.placeholder.getJComponent().getLocation());\n/* 417: */ }\n/* 418: */ });\n/* 419: */ }", "void display(Map m) {\r\n\t\tm.tour = this;\r\n\t\tm.update(m.getGraphics());\r\n\t}", "@OnClick(R.id.toggle_view_action)\n public void onToggleView() {\n logD(\"Be kind and implement map view of landmarks\");\n }", "public BorderPane getMapView() {\n final WebEngine webEngine = new WebEngine(getClass().getResource(\"/racesearcher/ui/map/map.html\").toString());\n final WebView webView = new WebView(webEngine);\n // create map type buttons\n final ToggleGroup mapTypeGroup = new ToggleGroup();\n final ToggleButton road = new ToggleButton(\"Road\");\n road.setSelected(true);\n road.setToggleGroup(mapTypeGroup);\n final ToggleButton satellite = new ToggleButton(\"Satellite\");\n satellite.setToggleGroup(mapTypeGroup);\n final ToggleButton hybrid = new ToggleButton(\"Hybrid\");\n hybrid.setToggleGroup(mapTypeGroup);\n final ToggleButton terrain = new ToggleButton(\"Terrain\");\n terrain.setToggleGroup(mapTypeGroup);\n mapTypeGroup.selectedToggleProperty().addListener(\n new ChangeListener<Toggle>() {\n\n public void changed(\n ObservableValue<? extends Toggle> observableValue,\n Toggle toggle, Toggle toggle1) {\n if (road.isSelected()) {\n webEngine.executeScript(\"document.setMapTypeRoad()\");\n } else if (satellite.isSelected()) {\n webEngine.executeScript(\n \"document.setMapTypeSatellite()\");\n } else if (hybrid.isSelected()) {\n webEngine.executeScript(\n \"document.setMapTypeHybrid()\");\n } else if (terrain.isSelected()) {\n webEngine.executeScript(\n \"document.setMapTypeTerrain()\");\n }\n }\n });\n\n Button zoomIn = new Button(\"Zoom In\");\n zoomIn.setOnAction(new EventHandler<ActionEvent>() {\n\n public void handle(ActionEvent actionEvent) {\n webEngine.executeScript(\"document.zoomIn()\");\n }\n });\n Button zoomOut = new Button(\"Zoom Out\");\n zoomOut.setOnAction(new EventHandler<ActionEvent>() {\n\n public void handle(ActionEvent actionEvent) {\n webEngine.executeScript(\"document.zoomOut()\");\n }\n });\n // create toolbar\n ToolBar toolBar = new ToolBar();\n toolBar.getStyleClass().add(\"map-toolbar\");\n toolBar.getItems().addAll(\n road, satellite, hybrid, terrain,\n createSpacer(),\n new Label(\"Location:\"), zoomIn, zoomOut);\n // create root\n BorderPane root = new BorderPane();\n root.getStyleClass().add(\"map\");\n root.setCenter(webView);\n root.setTop(toolBar);\n\n return root;\n }", "public void switchToMap()\n {\n feedbackLabel.setVisible(false);\n d.setVisible(false);\n a.setText(destinations[0].getName());\n b.setText(destinations[1].getName());\n c.setText(destinations[2].getName());\n currentClue=destinations[0].getRandClue();\n questionLabel.setText(currentClue);\n atQuestionStage=false;\n shuffleButtons();\n questionLabel.setBounds(650-questionLabel.getPreferredSize().width,120,600,30);\n mapImageLabel.setVisible(true);\n mapImageLabel.repaint();\n revalidate();\n }", "private void viewMap() {\r\n \r\n // Get the current game \r\n theGame = cityofaaron.CityOfAaron.getTheGame();\r\n \r\n // Get the map \r\n Map map = theGame.getMap();\r\n Location locations = null;\r\n \r\n // Print the map's title\r\n System.out.println(\"\\n*** Map: CITY OF AARON and Surrounding Area ***\\n\");\r\n // Print the column numbers \r\n System.out.println(\" 1 2 3 4 5\");\r\n // for every row:\r\n for (int i = 0; i < max; i++){\r\n // Print a row divider\r\n System.out.println(\" -------------------------------\");\r\n // Print the row number\r\n System.out.print((i + 1) + \" \");\r\n // for every column:\r\n for(int j = 0; j<max; j++){\r\n // Print a column divider\r\n System.out.print(\"|\");\r\n // Get the symbols and locations(row, column) for the map\r\n locations = map.getLocation(i, j);\r\n System.out.print(\" \" + locations.getSymbol() + \" \");\r\n }\r\n // Print the ending column divider\r\n System.out.println(\"|\");\r\n }\r\n // Print the ending row divider\r\n System.out.println(\" -------------------------------\\n\");\r\n \r\n // Print a key for the map\r\n System.out.println(\"Key:\\n\" + \"|=| - Temple\\n\" + \"~~~ - River\\n\" \r\n + \"!!! - Farmland\\n\" + \"^^^ - Mountains\\n\" + \"[*] - Playground\\n\" \r\n + \"$$$ - Capital \" + \"City of Aaron\\n\" + \"### - Chief Judge/Courthouse\\n\" \r\n + \"YYY - Forest\\n\" + \"TTT - Toolshed\\n\" +\"xxx - Pasture with \"\r\n + \"Animals\\n\" + \"+++ - Storehouse\\n\" +\">>> - Undeveloped Land\\n\");\r\n }", "public void update()\n\t{\n\t\tGViewMapManager gViewMapManager = this.guiController.getCurrentStyleMapManager();\n\t\tLayout layout = gViewMapManager.getLayout();\n\n\t\tswitch (layout)\n\t\t{\n\t\t\tcase LINEAR:\n\t\t\t\tthis.linear.setSelected(true);\n\t\t\t\tbreak;\n\t\t\tcase CIRCULAR:\n\t\t\t\tthis.circular.setSelected(true);\n\t\t\t\tbreak;\n default:\n break;\n\t\t}\n\t}", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tif(map.isSatellite()){\r\n\t\t\t\t\t\tmap.setSatellite(false);\r\n\t\t\t\t\t\tmap.setStreetView(true);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tmap.setSatellite(true);\r\n\t\t\t\t\t\tmap.setStreetView(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "private void updateLocationUi() {\n if (mMap == null) {\n return;\n }\n try {\n if (mPermissionCheck.locationPermissionGranted()) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n\n // Display the user selected map type\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n\n MapStyleOptions style = MapStyleOptions.loadRawResourceStyle(mContext, R.raw.map_style_night);\n mMap.setMapStyle(style);\n\n // Don't want to display the default location button because\n // we are already displaying using a FAB\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n\n mMap.setOnMyLocationClickListener(this);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "void setMapChanged();", "public void setMap2D(FXMap map);", "private void initUI() {\t\t\n\t\t\n\t\t/* Get a handle to the Map Fragment and to \n\t\t * the Map object */\t\t\t\t\n\t\tmvMap = ((MapFragment) getFragmentManager()\n\t\t\t\t.findFragmentById(R.id.frMap)).getMap();\n\t\t\n\t\t/* Enables the my-location layer in the map */\n\t\tmvMap.setMyLocationEnabled(true);\n\t\t\n\t\t/* Disable my-location button */\n\t\tmvMap.getUiSettings().setMyLocationButtonEnabled(false);\n\t\t\n\t}", "void switchToMapSelectActivity();", "public void map(View view) {\n Intent intent = new Intent(this, MapsActivity.class);\n startActivity(intent);\n }", "@Override\n protected void setUpMap() {\n super.setUpMap();\n // For showing a move to my location button and a blue\n // dot to show user's location\n MainActivity mainActivity = (MainActivity) getActivity();\n mMap.setMyLocationEnabled(mainActivity.checkIfGPSEnabled());\n }", "public void onClick(double lat, double lon)\n/* 60: */ {\n/* 61: 98 */ TileGIS self = this;\n/* 62: */ }", "public void onGoToEnghelab(View view) {\n if (!checkReady()) {\n return;\n }\n int height = 120;\n int width = 85;\n BitmapDrawable bitmapDrawable = (BitmapDrawable) getResources().getDrawable(R.drawable.map);\n Bitmap bitmap = bitmapDrawable.getBitmap();\n Bitmap smallerBitmap = Bitmap.createScaledBitmap(bitmap, width, height, false);\n mMap.addMarker(new MarkerOptions().icon(BitmapDescriptorFactory.fromBitmap(smallerBitmap))\n .position(Enghelab.target));\n changeCamera(CameraUpdateFactory.newCameraPosition(Enghelab), new GoogleMap.CancelableCallback() {\n @Override\n public void onFinish() {\n Toast.makeText(getBaseContext(), \"Animation to Sydney complete\", Toast.LENGTH_SHORT)\n .show();\n }\n @Override\n public void onCancel() {\n Toast.makeText(getBaseContext(), \"Animation to Sydney canceled\", Toast.LENGTH_SHORT)\n .show();\n }\n });\n }", "private void inicMapComponent() {\n\t\tmapView = ((MapFragment) getFragmentManager()\n\t\t\t\t.findFragmentById(R.id.map)).getMap();\n\t\t\n\n\t\tlocationService = new LocationService(MapPage.this);\n\t\tlocationService.getLocation();\n\t\t\n\t\tmapView.setMyLocationEnabled(true);\n\n\t Location location = mapView.getMyLocation();\n\t LatLng myLocation = null; //new LatLng(44.8167d, 20.4667d);\n\t \n\t\tif (location != null) {\n\t myLocation = new LatLng(location.getLatitude(),\n\t location.getLongitude());\n\t } else {\n\t \tLocationManager service = (LocationManager) getSystemService(LOCATION_SERVICE);\n\t\t\tCriteria criteria = new Criteria();\n\t\t\tString provider = service.getBestProvider(criteria, false);\n\t\t\tLocation lastKnownLocation = service.getLastKnownLocation(provider);\n\t\t\tmyLocation = new LatLng(lastKnownLocation.getLatitude(),lastKnownLocation.getLongitude());\n\t }\n\t\t\n\t\tmapView.animateCamera(CameraUpdateFactory.newLatLngZoom(myLocation, 13));\n\t\t\n\t\tmapView.setPadding(0, 0, 0, 80);\n\t\t\n\t\tmapView.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onInfoWindowClick(Marker marker) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t//onMapWindwosClick(marker.getId(),marker.getTitle());\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tmv.getController().animateTo(myLocationOverlay.getMyLocation());\n\t\t\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n //Add toolbar\n Toolbar myToolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(myToolbar);\n\n //The OS Map will act as a fragment that can be placed in the app\n MapFragment mf = ((MapFragment) getFragmentManager().findFragmentById(R.id.os_map_fragment));\n mMap = mf.getMap();\n\n //Create an empty list of tile sources\n ArrayList<OSTileSource> sources = new ArrayList<OSTileSource>();\n\n //Create a web tile source with the API details\n sources.add(mMap.webTileSource(OS_API_KEY, OS_IS_PRO, null));\n mMap.setTileSources(sources);//Define what happens when the app is opened\n\n //Add a current location indicator to the map\n mMap.setMyLocationEnabled(true);\n\n //Set the initial camera position to the extent of Scotland\n GridPoint scotland = new GridPoint(256798,827985);\n float mpp = 750;\n CameraPosition cameraPosition = new CameraPosition(scotland,mpp);\n mMap.moveCamera(cameraPosition,true);\n\n //Guide button\n mHelp = (ImageButton) findViewById(R.id.help);\n mHelp.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n //Start the guide\n Intent i = new Intent(MainActivity.this, Guide.class);\n startActivity(i);\n\n }\n\n });\n\n //Location button: zoom to current location\n mMyLocationButton = (ImageButton) findViewById(R.id.imagebutton_mylocation);\n mMyLocationButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n myLocationClick();\n\n }\n });\n\n //Digitiser button: place a marker at the current location\n mDigitiserButton = (Button) findViewById(R.id.button_digitise);\n mDigitiserButton.setOnClickListener(new View.OnClickListener(){\n\n @Override\n public void onClick(View v) {\n\n //AlertDialog to ask whether the user wants to collect coordinates at a location\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(android.R.drawable.ic_menu_myplaces)\n .setTitle(\"Collect GPS Point\")\n .setMessage(\"Is this the location where you would like to collect a GPS point?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n digitiseMarker(digitise());\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n\n }\n\n });\n\n //Finish button: complete boundary\n mFinishButton = (Button) findViewById(R.id.button_finish);\n mFinishButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n //AlertDialog to ask whether the user wants to complete their boundary\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(android.R.drawable.ic_menu_gallery)\n .setTitle(\"Complete Boundary\")\n .setMessage(\"Are you sure you want to complete your croft boundary?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n completePolygon();\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n\n }\n });\n\n //End button: finish evidence collection\n mSubmitButton = (Button) findViewById(R.id.button_submit);\n mSubmitButton.setOnClickListener(new View.OnClickListener(){\n\n @Override\n public void onClick(View v) {\n\n //AlertDialog to ask whether the user wants to stop collecting evidence\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(android.R.drawable.ic_menu_save)\n .setTitle(\"End Evidence Collection\")\n .setMessage(\"Are you sure you want to end collecting evidence?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n submit();\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n\n }\n\n });\n\n //Camera button\n mCameraButton = (ImageButton) findViewById(R.id.image_button_camera);\n mCameraButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n //AlertDialog to ask whether the user wants to take a picture at a location\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(android.R.drawable.ic_menu_camera)\n .setTitle(\"Take Picture\")\n .setMessage(\"Is this the location where you would like to take a picture?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n takePicture();\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n\n }\n\n });\n\n //Description button\n mTextButton = (ImageButton) findViewById(R.id.describe);\n mTextButton.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n\n //AlertDialog to ask whether the user wants to write a description at a location\n new AlertDialog.Builder(MainActivity.this)\n .setIcon(android.R.drawable.ic_menu_edit)\n .setTitle(\"Textual Description\")\n .setMessage(\"Is this the location where you would like to describe something?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n GridPoint gp = myGridPoint();\n MarkerOptions markerOptions = new MarkerOptions().gridPoint(gp);\n markerOptions.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED));\n Marker marker = mMap.addMarker(markerOptions);\n describe();\n\n }\n\n })\n .setNegativeButton(\"No\", null)\n .show();\n\n }\n\n });\n\n //Real-time latitude and longitude box\n mGPSon = (TextView) findViewById(R.id.gps_on);\n\n //Add an X and Y title to the collectedPoints list (for reading in a CSV file)\n collectedPoints.add(\"\\nX,Y\");\n\n }", "public void toMap(View view) {\n startActivity(new Intent(LaunchingActivity.this, MapsActivity.class));\n }", "public void showLocation(double lat, double lon) {\n IMapController mapController = mapView.getController();\n GeoPoint cl = new GeoPoint(lat, lon);\n mapController.animateTo(cl);\n settings.setZoomLevel(settings.getZoomLevel(), cl.getLatitude(), cl.getLongitude());\n }", "public void changeType(View view){\n if(mMap.getMapType() == GoogleMap.MAP_TYPE_NORMAL){\n mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n }else{\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n }\n\n }", "@FXML\n public final void openPlanetScreen() {\n ScreenNavigator.loadScreen(ScreenNavigator.PLANET);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mapView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "public void askMap() throws Exception{\n // Platform.runLater( () -> firstPage.closePrimaryStage());\n chooseMap = new ChooseMap();\n chooseMap.setRemoteController(senderRemoteController);\n Platform.runLater(\n () -> {\n // Update UI here.\n try {\n chooseMap.start(new Stage());\n }catch (Exception e){\n e.printStackTrace();\n }\n }\n );\n\n }", "public void onClick(View view) {\n View newView = null;\n ArgInfo newModel = new MapEntryArgInfo(componentTypes, activity, controller, view.getPaddingLeft() + padding);\n newModel.createView(\"\");\n subModels.add(newModel);\n newView = newModel.getMainView();\n views.add(newView);\n controller.addItems(newView);\n }", "private void updateUi() {\n final int numPoints = map.getPolyLinePoints(featureId).size();\n final MapPoint location = map.getGpsLocation();\n\n // Visibility state\n playButton.setVisibility(inputActive ? View.GONE : View.VISIBLE);\n pauseButton.setVisibility(inputActive ? View.VISIBLE : View.GONE);\n recordButton.setVisibility(inputActive && recordingEnabled && !recordingAutomatic ? View.VISIBLE : View.GONE);\n\n // Enabled state\n zoomButton.setEnabled(location != null);\n backspaceButton.setEnabled(numPoints > 0);\n clearButton.setEnabled(!inputActive && numPoints > 0);\n settingsView.findViewById(R.id.manual_mode).setEnabled(location != null);\n settingsView.findViewById(R.id.automatic_mode).setEnabled(location != null);\n\n if (intentReadOnly) {\n playButton.setEnabled(false);\n backspaceButton.setEnabled(false);\n clearButton.setEnabled(false);\n }\n // Settings dialog\n\n // GPS status\n boolean usingThreshold = isAccuracyThresholdActive();\n boolean acceptable = location != null && isLocationAcceptable(location);\n int seconds = INTERVAL_OPTIONS[intervalIndex];\n int minutes = seconds / 60;\n int meters = ACCURACY_THRESHOLD_OPTIONS[accuracyThresholdIndex];\n locationStatus.setText(\n location == null ? getString(org.odk.collect.strings.R.string.location_status_searching)\n : !usingThreshold ? getString(org.odk.collect.strings.R.string.location_status_accuracy, location.accuracy)\n : acceptable ? getString(org.odk.collect.strings.R.string.location_status_acceptable, location.accuracy)\n : getString(org.odk.collect.strings.R.string.location_status_unacceptable, location.accuracy)\n );\n locationStatus.setBackgroundColor(\n location == null ? getThemeAttributeValue(this, com.google.android.material.R.attr.colorPrimary)\n : acceptable ? getThemeAttributeValue(this, com.google.android.material.R.attr.colorPrimary)\n : getThemeAttributeValue(this, com.google.android.material.R.attr.colorError)\n );\n collectionStatus.setText(\n !inputActive ? getString(org.odk.collect.strings.R.string.collection_status_paused, numPoints)\n : !recordingEnabled ? getString(org.odk.collect.strings.R.string.collection_status_placement, numPoints)\n : !recordingAutomatic ? getString(org.odk.collect.strings.R.string.collection_status_manual, numPoints)\n : !usingThreshold ? (\n minutes > 0 ?\n getString(org.odk.collect.strings.R.string.collection_status_auto_minutes, numPoints, minutes) :\n getString(org.odk.collect.strings.R.string.collection_status_auto_seconds, numPoints, seconds)\n )\n : (\n minutes > 0 ?\n getString(org.odk.collect.strings.R.string.collection_status_auto_minutes_accuracy, numPoints, minutes, meters) :\n getString(org.odk.collect.strings.R.string.collection_status_auto_seconds_accuracy, numPoints, seconds, meters)\n )\n );\n }", "public void setARView(int viewSetting) {\n // rerender the view without recreate the object\n if(currentDisplayMode==DISPLAY_PLACE_DETAIL)\n generateWorld(mWorld, mPlaceDetail,viewSetting, false);\n else\n generateWorld(mWorld, mPlaceListMain,viewSetting, false);\n\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.map_minus_rl:\n mAMap.moveCamera(CameraUpdateFactory.zoomOut());\n break;\n case R.id.map_plus_rl:\n mAMap.moveCamera(CameraUpdateFactory.zoomIn());\n break;\n case R.id.locate_current_rl:\n mLocation = AllOnlineApp.getCurrentLocation();\n if (false/*mLocation != null*/) {\n LatLng cenpt = new LatLng(mLocation.getLatitude(), mLocation.getLongitude());\n mAMap.moveCamera(CameraUpdateFactory.changeLatLng(cenpt));\n } else {\n LatLng cenpt = new LatLng(GlobalParam.getInstance().get_lat(), GlobalParam.getInstance().get_lng());\n mAMap.moveCamera(CameraUpdateFactory.changeLatLng(cenpt));\n }\n break;\n default:\n break;\n }\n }", "private void updateLocationUI() {\n if (mMap == null) {\n return;\n }\n try {\n if (mLocationPermissionGranted) {\n mMap.setMyLocationEnabled(true);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n } else {\n mMap.setMyLocationEnabled(false);\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n mLastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "@Override\n public void displayMapTiles(MapTile[][] grid)\n {\n Platform.runLater(() -> {\n MapView mapArea = gui.getMapArea();\n mapArea.displayMapGrid(grid, -3, -3);\n });\n }", "public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }", "public void testMapping() {\n\t\ttry { Thread.sleep(1000); } catch (Exception e) { }\n\t\tPuzzleView view = app.getPuzzleView();\n\t\t\n\t\tapp.setVisible(true);\n\t\t\n\t}", "private void setupBoardViews(){ //This resets the view for use by the UI. Forces out of Design mode\n Log.d(TAG, \"setupBoardViews: Started\");\n view_stage_map = VIEW_MAP_START;\n cycleMapView();\n }", "public interface SearchMapView extends BaseView {\n\n void initOptions(String mapMode);\n\n void changeRadius(CameraPosition cameraPosition);\n\n void restoreMapPosition(MapPosition position, boolean animate);\n\n void addClusters(Set<LocationClusterItem> clusterItems);\n\n void setMapMode(String mode);\n\n void selectClusters(Set<LocationClusterItem> clusterItems);\n\n void enableLocationData(boolean enabled);\n}", "public void mapViewLayedOut() {\n if (mPointToGoTo != null) {\n setCenter(mPointToGoTo);\n mPointToGoTo = null;\n }\n if (mZoomToZoomTo != -1) {\n setZoom(mZoomToZoomTo);\n mZoomToZoomTo = -1;\n }\n\n }", "public void onAddByMapPressed( ) {\n Router.Instance().changeView(Router.Views.AddWithMap);\n }", "private void initializeMap() {\n // - Map -\n map = (MapView) this.findViewById(R.id.map);\n //map.setBuiltInZoomControls(true);\n map.setMultiTouchControls(true);\n map.setMinZoomLevel(16);\n // Tiles for the map, can be changed\n map.setTileSource(TileSourceFactory.MAPNIK);\n\n // - Map controller -\n IMapController mapController = map.getController();\n mapController.setZoom(19);\n\n // - Map overlays -\n CustomResourceProxy crp = new CustomResourceProxy(getApplicationContext());\n currentLocationOverlay = new DirectedLocationOverlay(this, crp);\n\n map.getOverlays().add(currentLocationOverlay);\n\n // - Location -\n locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);\n if(locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER) != null) {\n onLocationChanged(locationManager.getLastKnownLocation(LocationManager.GPS_PROVIDER));\n }\n else if (locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER) != null) {\n onLocationChanged(locationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER));\n }\n else {\n currentLocationOverlay.setEnabled(false);\n }\n }", "public void switchToViewLocations(View view) {\r\n Intent intent = new Intent(this, RouteMapActivity.class);\r\n intent.putExtra(\"ROUTE\", route);\r\n startActivity(intent);\r\n }", "@FXML\r\n private void changeLocationAction(ActionEvent event){\r\n \r\n showView2();\r\n }", "public void animateOnItaly(){\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(posItaly, 5));\n }", "private void maySetCurrentView(ProductSceneView view) {\n final String viewProductType = view.getProduct().getProductType();\n if (view != currentView &&\n !view.isRGB() &&\n viewProductType.equals(AbstractTimeSeries.TIME_SERIES_PRODUCT_TYPE) &&\n TimeSeriesMapper.getInstance().getTimeSeries(view.getProduct()) != null) {\n setCurrentView(view);\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_map, container, false);\n\n mapView = (MapViewEnvelope) rootView.findViewById(R.id.map);\n //mapView.setTileSource(TileSourceFactory.MAPNIK);\n //mapView.setTileSource(TileSourceFactory.CYCLEMAP);\n OnlineTileSourceBase tileSource = null;\n tileSource = TileSourceFactory.MAPNIK;//CYCLEMAP;//CLOUDMADESMALLTILES;//MAPQUESTAERIAL;//MAPQUESTOSM;//PUBLIC_TRANSPORT;\n\n Configuration.getInstance().setUserAgentValue(getContext().getPackageName());\n\n /*float scale = getContext().getResources().getDisplayMetrics().density/1.5f;\n if(scale <1) scale=1;\n\n final int newScale = (int) (256 * scale + 0.5);\n tileSource=new XYTileSource(\"Mapnik\",\n 0, 19, newScale, \".png\", new String[] {\n \"https://a.tile.openstreetmap.org/\",\n \"https://b.tile.openstreetmap.org/\",\n \"https://c.tile.openstreetmap.org/\" },\"© OpenStreetMap contributors\",\n new TileSourcePolicy(2,\n TileSourcePolicy.FLAG_NO_BULK\n | TileSourcePolicy.FLAG_NO_PREVENTIVE\n | TileSourcePolicy.FLAG_USER_AGENT_MEANINGFUL\n | TileSourcePolicy.FLAG_USER_AGENT_NORMALIZED\n ));//*/\n mapView.setTileSource(tileSource);\n //mapView.getZoomController().setVisibility(CustomZoomButtonsController.Visibility.NEVER);\n mapView.setBuiltInZoomControls(false);\n mapView.setMultiTouchControls(true);\n\n\n // My Location Overlay\n myLocationoverlay = new CurrentLocationOverlay(getActivity(), mapView);\n mapView.getOverlays().add(myLocationoverlay);\n\n // Compass overlay\n mCompassOverlay = new CompassOverlay(getActivity(), new InternalCompassOrientationProvider(getActivity()), mapView);\n mCompassOverlay.enableCompass();\n mapView.getOverlays().add(mCompassOverlay);\n\n // map scale bar\n mScaleBarOverlay = new CurrentScaleBarOverlay(mapView,unitUtils);\n mScaleBarOverlay.setCentred(true);\n mScaleBarOverlay.setAlignBottom(true);\n mapView.getOverlays().add(this.mScaleBarOverlay);\n\n // path overlay\n originalPath = new Polyline(mapView);\n originalPath.setColor(0xFFFF0000);\n originalPath.setWidth(3f);\n mapView.getOverlays().add(originalPath);\n\n smoothyPath = new Polyline(mapView);\n smoothyPath.setColor(0x7F7F3030);\n smoothyPath.setWidth(2f);\n mapView.getOverlays().add(smoothyPath);\n\n CompassOverlay compass = new CompassOverlay(getActivity(), mapView);\n mapView.getOverlays().add(compass);\n\n IMapController mapController = mapView.getController();\n mapController.setZoom(settings.getZoomLevel());\n GeoPoint c = new GeoPoint(settings.getLastLatitude(), settings.getLastLongitude());\n mapController.setCenter(c);\n\n mapView.setMapListener(new MapListener());\n\n textTrackInfo = (TextView) rootView.findViewById(R.id.textTrackInfo);\n textTrackInfo.setText(\"\");\n textCurrentSpeedInfo = (TextView) rootView.findViewById(R.id.textCurrentSpeedInfo);\n textCurrentSpeedInfo.setText(\"\");\n\n satelliteImageView = (ImageView) rootView.findViewById(R.id.satelliteImageView);\n satelliteImageView.setVisibility(View.INVISIBLE);\n satelliteImageView.setOnClickListener(this);\n\n activityImageView = (ImageView) rootView.findViewById(R.id.activityImageView);\n\n fileNameTextView = (TextView) rootView.findViewById(R.id.fileNameTextView);\n\n buttonStart = (Button) rootView.findViewById(R.id.buttonStart);\n buttonStart.setOnClickListener(this);\n buttonStart.setVisibility(View.GONE);\n\n buttonStop = (Button) rootView.findViewById(R.id.buttonStop);\n buttonStop.setOnClickListener(this);\n buttonStop.setVisibility(View.GONE);\n\n myLocationButton = (FloatingActionButton) rootView.findViewById(R.id.myLocationButton);\n myLocationButton.setOnClickListener(this);\n //myLocationButton.setRippleColor(0x90FFFFFF);\n myLocationButton.setBackgroundTintList(ColorStateList.valueOf(0x90FFFFFF));\n\n if (savedInstanceState != null) {\n\n }\n\n presenter = MapFragmentPresenter.getInstance(getActivity());\n\n if(settings.getReturnToMyLocation())\n startFollowingMyLocation();\n else\n stopFollowingMyLocation();\n\n onSettingsChanged();\n\n return rootView;\n }", "private void initViews(){\n map = findViewById(R.id.map);\n }", "@Override\n public void onMapViewSingleTapped(MapView mapView, MapPoint MapPoint) {\n settingZoomMarkMap(mapView);\n }", "@Override\n public void onMapViewInitialized(MapView mapView) {\n settingZoomMarkMap(mapView);\n }", "@Override\n public void run() {\n Map<String, Object> m = new HashMap<>();\n m.put(\"mAMapLocation\", \"mAMapLocation\");\n Graphic graphic = new Graphic(tapPoint, m, pinDestinationSymbol);\n\n finalMarkerOverlay.getGraphics().add(graphic);\n }", "private void updateLocationUI() {\n if (map == null) {\n return;\n }\n try {\n if (locationPermissionGranted) {\n map.setMyLocationEnabled(true);\n map.getUiSettings().setMyLocationButtonEnabled(true);\n } else {\n map.setMyLocationEnabled(false);\n map.getUiSettings().setMyLocationButtonEnabled(false);\n lastKnownLocation = null;\n getLocationPermission();\n }\n } catch (SecurityException e) {\n Log.e(\"Exception: %s\", e.getMessage());\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n// MapContainer = (LinearLayout) findViewById(R.id.testampmap);\n\n// if (USE_XML_LAYOUT) {\n// setContentView(R.layout.activity_map);\n//\n//// mMapView = (NMapView) findViewById(R.id.mapView);\n// }\n\n\n //네이버 지도 MapView를 생성해준다.\n mMapView = new NMapView(this);\n //지도에서 ZoomControll을 보여준다\n mMapView.setBuiltInZoomControls(true, null);\n //네이버 OPEN API 사이트에서 할당받은 KEY를 입력하여 준다.\n mMapView.setApiKey(API_KEY);\n //이 페이지의 레이아웃을 네이버 MapView로 설정해준다.\n// setContentView(mMapView);\n setContentView(R.layout.activity_map);\n mLinearLayout = (LinearLayout)findViewById(R.id.mapmap);\n mLinearLayout.addView(mMapView);\n //네이버 지도의 클릭이벤트를 처리 하도록한다.\n mMapView.setClickable(true);\n //맵의 상태가 변할때 이메소드를 탄다.\n mMapView.setOnMapStateChangeListener(new NMapView.OnMapStateChangeListener() {\n public void onZoomLevelChange(NMapView arg0, int arg1) {\n\n }\n\n public void onMapInitHandler(NMapView arg0, NMapError arg1) {\n\n if (arg1 == null) {\n // 표시해줄 위치\n mMapController.setMapCenter(new NGeoPoint(126.978371, 37.5666091), 11);\n } else {\n Toast.makeText(getApplicationContext(), arg1.toString(), Toast.LENGTH_SHORT).show();\n }\n }\n\n public void onMapCenterChangeFine(NMapView arg0) {\n\n }\n\n public void onMapCenterChange(NMapView arg0, NGeoPoint arg1) {\n\n }\n\n public void onAnimationStateChange(NMapView arg0, int arg1, int arg2) {\n\n }\n });\n //맵뷰의 이벤트리스너의 정의.\n mMapView.setOnMapViewTouchEventListener(new NMapView.OnMapViewTouchEventListener() {\n\n public void onTouchDown(NMapView arg0, MotionEvent arg1) {\n\n }\n\n @Override\n public void onTouchUp(NMapView nMapView, MotionEvent motionEvent) {\n\n }\n\n public void onSingleTapUp(NMapView arg0, MotionEvent arg1) {\n\n }\n\n public void onScroll(NMapView arg0, MotionEvent arg1, MotionEvent arg2) {\n\n }\n\n public void onLongPressCanceled(NMapView arg0) {\n\n }\n\n public void onLongPress(NMapView arg0, MotionEvent arg1) {\n\n }\n });\n mMapController = mMapView.getMapController();\n super.setMapDataProviderListener(new OnDataProviderListener() {\n\n public void onReverseGeocoderResponse(NMapPlacemark arg0, NMapError arg1) {\n\n }\n });\n }", "@Override\r\n public void onCreate(Bundle savedInstanceState)\r\n {\r\n\r\n super.onCreate(savedInstanceState);\r\n\r\n // This line sets the user agent, a requirement to download OSM maps\r\n Configuration.getInstance().load(this, PreferenceManager.getDefaultSharedPreferences(this));\r\n setContentView(R.layout.activity_main);\r\n\r\n mv = (MapView)findViewById(R.id.map1);\r\n\r\n mv.setBuiltInZoomControls(true);\r\n mv.getController().setZoom(14);\r\n mv.getController().setCenter(new GeoPoint(51.05,-0.72));\r\n markerGestureListener = new ItemizedIconOverlay.OnItemGestureListener<OverlayItem>()\r\n {\r\n public boolean onItemLongPress(int i, OverlayItem item)\r\n {\r\n Toast.makeText(MainActivity.this, item.getSnippet(), Toast.LENGTH_SHORT).show();\r\n return true;\r\n }\r\n\r\n public boolean onItemSingleTapUp(int i, OverlayItem item)\r\n {\r\n Toast.makeText(MainActivity.this, item.getSnippet(), Toast.LENGTH_SHORT).show();\r\n return true;\r\n }\r\n };\r\n }", "void tempInRegionUI();", "public void displaymap(AircraftData data);", "@Override\n public void onMapReady(final GoogleMap map) {\n map.moveCamera(CameraUpdateFactory.zoomTo(14));\n //map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n map.setMyLocationEnabled(true);\n map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n\n return true;\n }\n });\n map.setOnMyLocationChangeListener(new GoogleMap.OnMyLocationChangeListener() {\n @Override\n public void onMyLocationChange(Location location) {\n Log.d(\"map\", \"onMyLocationChange\");\n if (!isinit) {\n isinit = true;\n if (now_Location == null ||\n now_Location.getLatitude() != location.getLatitude() ||\n now_Location.getLongitude() != location.getLongitude()) {\n now_Location = location;\n initStreetView();\n }\n }\n LatLng sydney = new LatLng(location.getLatitude(), location.getLongitude());\n map.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }\n });\n }", "public interface MapsView {\n void showMessageOnFailure(String message);\n\n void showProgressDialog();\n\n void hideProgressDialog();\n\n void showDetails(String[] detail);\n\n void showEmptyRouteMessage();\n\n void showEmptyParkingMessage();\n}", "private void setUpMap() throws IOException {\n // Get last location which means current location\n lastKnownLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n\n if (lastKnownLocation != null) {\n // shift view to current location\n LatLng latlng = new LatLng(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude());\n Geocoder geocoder = new Geocoder(this);\n adminArea = geocoder.getFromLocation(latlng.latitude, latlng.longitude, 1).get(0).getAdminArea();\n CameraUpdate update = CameraUpdateFactory.newLatLngZoom(latlng, 12);\n mMap.moveCamera(update);\n } else {\n Toast.makeText(this, \"Current Location is not Available\", Toast.LENGTH_SHORT).show();\n }\n }", "private void configMap() {\n\n googleMap.getUiSettings().setMapToolbarEnabled(false);//an buton dieu huong bat snag map\n\n googleMap.getUiSettings().setMyLocationButtonEnabled(true);//nut vi tri cua minh tru se hien thi\n googleMap.getUiSettings().setZoomControlsEnabled(true);//co the zoom\n\n// b2\n googleMap.setInfoWindowAdapter(new MyInfoWindown());//cutom titlemap\n\n try {//them lenh nay de no cap location thì cai nut tren moi hoat dong\n\n googleMap.setMyLocationEnabled(true);//cung cap vi tri cua minh,can try cacth xin quyen\n } catch (SecurityException e) {\n\n }\n googleMap.setOnMyLocationButtonClickListener(this);//dNG KY\n\n\n }", "@Override \n protected void startup() {\n GretellaView view = new GretellaView(this);\n show( view );\n view.initView(); \n }", "protected abstract void setMarkers();", "void startView();", "public MapView(GameModel model){\n this.model = model;\n this.images = new Images(model);\n this.visualizer = new VisualizerVisitor(this, zoomFactor);\n this.debug = new DebugVisitor(this, zoomFactor);\n this.modelMid = new DoubleVec(model.getFieldSizeX()*0.5,model.getFieldSizeY()*0.5);\n this.refPoint = modelMid;\n this.smallVisualizer = new SmallVisitor(this, 3);\n updateBoxes();\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\n\t\tsetContentView(R.layout.mapview);\n\t\t\n\t\tthis.osmMapView = (OsmMapView) findViewById(R.id.osmmap);\n\t\tthis.zoomInButton = (ImageButton) findViewById(R.id.zoom_in);\n\t\tthis.zoomOutButton = (ImageButton) findViewById(R.id.zoom_out);\n\t\tthis.setStartButton = (Button) findViewById(R.id.setstart);\n\t\tthis.setDestButton = (Button) findViewById(R.id.setdest);\n\t\tthis.calcRouteButton = (Button) findViewById(R.id.calcroute);\n\t\tthis.searchButton = (Button) findViewById(R.id.search);\n\t\tthis.navigateButton = (Button) findViewById(R.id.navigate);\n\t\tthis.currSelectionView = (TextView) findViewById(R.id.curr_selection);\n\t\t\n\t\tthis.locationManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE);\n\t\t\n\t\t// Set the view which will show the name of the current selected item \n\t\tthis.osmMapView.setCurrentSelectionView(this.currSelectionView);\n\t\t\n\t\t// Default mode is plan on map\n\t\tthis.mapMode = MAP_MODE_PLAN_ON_MAP;\n\t\t\n\t\t// Set the click handlers\n\t\tthis.zoomInButton.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tosmMapView.zoomIn();\n\t\t\t}\n\t\t});\n\n\t\tthis.zoomOutButton.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tosmMapView.zoomOut();\n\t\t\t}\n\t\t});\n\n\t\tthis.setStartButton.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tosmMapView.setStartFlag();\n\t\t\t}\n\t\t});\n\n\t\tthis.setDestButton.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tosmMapView.setDestFlag();\n\t\t\t}\n\t\t});\n\n\t\tthis.calcRouteButton.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tosmMapView.calculateRoute();\n\t\t\t}\n\t\t});\n\n\t\tthis.searchButton.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(new Intent(\"com.google.code.osmandroid.SEARCH_ON_MAP\"));\n\t\t\t}\n\t\t});\n\n\t\tnavigateButton.setOnClickListener(new OnClickListener() {\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tif (mapMode == ViewMap.MAP_MODE_NAVIGATE) {\n\t\t\t\t\t\n\t\t\t\t\tmapMode = ViewMap.MAP_MODE_PLAN_ON_MAP;\n\t\t\t\t\tenablePanOnMap();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\tmapMode = ViewMap.MAP_MODE_NAVIGATE;\n\t\t\t\t\tenableNavigation();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tgetPreferences();\n\n\t\tthis.osmMapView.setRouteType(this.routeType);\n\t\tsetFocusPoint(getIntent().getExtras());\n\t\t\n\t\tFile gpxLogsDir = new File(this.gpx_dir);\n\t\tif (!gpxLogsDir.exists()) {\n\t\t\t\n\t\t\tboolean success = gpxLogsDir.mkdir();\n\t\t\tif (!success) {\n\t\t\t\tthis.recordTrack = false;\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tif (this.recordTrack == true) {\n\t\t\tstartGpxRecording();\n\t\t}\n\t\t\n\t\n\t}", "public void showmap() {\n MapForm frame = new MapForm(this.mapLayout);\n frame.setSize(750, 540);\n frame.setLocationRelativeTo(null);\n frame.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n frame.setVisible(true);\n }", "@Override\n\tpublic void mapInitialized() {\n\t\tfinal LatLong center = new LatLong(32.777, 35.0225);\n\t\tSystem.out.println(\"got here\");\n\t\tmapComponent.addMapReadyListener(() -> checkCenter(center));\n\t\t// lblClick.setText((center + \"\"));\n\t\tfinal MapOptions options = new MapOptions();\n\t\toptions.center(center).zoom(12).overviewMapControl(false).panControl(false).rotateControl(false)\n\t\t\t\t.scaleControl(true).streetViewControl(true).zoomControl(true).mapType(MapTypeIdEnum.ROADMAP);\n\n\t\tmap = mapComponent.createMap(options, false);\n\t\tmap.setHeading(123.2);\n\t\tmap.fitBounds(new LatLongBounds(center, new LatLong(32.779032, 35.024663)));\n\t\tmap.addUIEventHandler(UIEventType.click, (final JSObject obj) -> {\n\t\t\tLatLong newLat = new LatLong((JSObject) obj.getMember(\"latLng\"));\n\t\t\tnewLat = new LatLong(newLat.getLatitude(), newLat.getLongitude());\n\t\t\tlblClick.setText(newLat + \"\");\n\t\t\tmap.addMarker(createMarker(newLat, \"marker at \" + newLat));\n\t\t});\n\t\tmapTypeCombo.setDisable(false);\n\n\t\tmapTypeCombo.getItems().addAll(MapTypeIdEnum.ALL);\n\t\tdirectionsService = new DirectionsService();\n\t\tdirectionsPane = mapComponent.getDirec();\n\t\tscene.getWindow().sizeToScene();\n\t}", "public void setMap(String mn){\r\n mapName = mn;\r\n currentMap = new ImageIcon(mapName);\r\n }", "@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n\n //definiowanie button\n final Button Zoom = (Button) findViewById(R.id.Zoom);\n final Button wsp = (Button) findViewById(R.id.wsp);\n final TextView textView=(TextView)findViewById(R.id.textView);\n final Switch switch1 = (Switch) findViewById(R.id.switch1);\n\n // Lokalizacje\n LatLng spiz = new LatLng(51.110116, 17.031189);\n LatLng remontbar = new LatLng(51.111487, 17.058608);\n LatLng schody = new LatLng(51.109123, 17.028743);\n LatLng konty = new LatLng(51.108404, 17.031680);\n LatLng hops = new LatLng(51.107749, 17.036282);\n LatLng targowa = new LatLng(51.112773, 17.039792);\n LatLng szyn = new LatLng(51.1093501, 17.02503950);\n LatLng alebrowar = new LatLng(51.1096893, 17.0232094);\n LatLng lamus = new LatLng(51.0998333, 17.0302878);\n LatLng marynka = new LatLng(51.1073993, 17.0301364);\n LatLng stumostow = new LatLng(51.1317836, 17.0592778);\n LatLng dojutra = new LatLng(51.108413, 17.02634);\n LatLng naroznik = new LatLng(51.1196251, 17.032525);\n LatLng piwnica = new LatLng(51.1072946, 17.0253063);\n LatLng raj = new LatLng(51.1011168, 17.02487);\n LatLng pubguiness = new LatLng(51.109840, 17.029430);\n LatLng pubwedrowki = new LatLng(51.104097, 17.032771);\n LatLng przybijpiataka = new LatLng(51.110133, 17.042899);\n LatLng blackboardpub = new LatLng(51.099239, 17.046880);\n LatLng wicarzone = new LatLng(51.104863, 17.039626);\n LatLng przekret = new LatLng(51.111858, 17.059551);\n LatLng pubzadrzwiami = new LatLng(51.100346, 17.031007);\n LatLng grac = new LatLng(51.107607, 17.030119);\n LatLng setka = new LatLng(51.107743, 17.031341);\n LatLng fuga = new LatLng(51.110921, 17.056770);\n LatLng doctor = new LatLng(51.111407, 17.028938);\n LatLng podlat = new LatLng(51.110028, 17.028381);\n LatLng cyber = new LatLng(51.112953, 17.055629);\n LatLng hex = new LatLng(51.118340, 17.028940);\n\n //markery !!!!!! NIE ZMIENIAC KOLEJNOSCI MARKROW !!!!!!\n Marker mspiz =mMap.addMarker(new MarkerOptions()\n .position(spiz)\n .title(\"Spiż\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_spiz))\n .snippet(\"Restauracja z własnym browarem\"));\n Marker mremontbar =mMap.addMarker(new MarkerOptions().position(remontbar).title(\"Remont Bar\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_remont))\n .snippet(\"Polska kuchnia, piwo i studenckie ceny\"));\n Marker mschody =mMap.addMarker(new MarkerOptions().position(schody).title(\"Schody donikąd\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_schody))\n .snippet(\"Pub z klimatycznym wystrojem i niebagatelną muzyką\"));\n Marker mkonty =mMap.addMarker(new MarkerOptions().position(konty).title(\"Kontynuacja\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_konty))\n .snippet(\"Największy multitap we Wrocławiu\"));\n Marker mhops =mMap.addMarker(new MarkerOptions().position(hops).title(\"4Hops\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_hops))\n .snippet(\"Wybór piwa kraftowego oraz kuchni meksykańskiej\"));\n Marker mtargowa =mMap.addMarker(new MarkerOptions().position(targowa).title(\"Targowa\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_targowa))\n .snippet(\"Restaracja i multitap w jednym\"));\n Marker mszyn =mMap.addMarker(new MarkerOptions().position(szyn).title(\"Szynkarnia\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_szyn))\n .snippet(\"Lokalne jedzenie, multitap i piwo kraftowe\"));\n Marker malebrowar =mMap.addMarker(new MarkerOptions().position(alebrowar).title(\"AleBrowar\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_alebrowar))\n .snippet(\"Oficjalny pub AleBrowaru\"));\n Marker mlamus =mMap.addMarker(new MarkerOptions().position(lamus).title(\"Lamus\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_lamus))\n .snippet(\"Pub pod nasypem z kranami\"));\n Marker mmarynka =mMap.addMarker(new MarkerOptions().position(marynka).title(\"Marynka Piwo i Aperitivo\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_marynka))\n .snippet(\"Osiem kranów oraz pizza z Happy Little Truck\"));\n Marker mstumostow =mMap.addMarker(new MarkerOptions().position(stumostow).title(\"Browar Stu Mostów\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_stumostow))\n .snippet(\"Restauracja w działającym browarze kraftowym\"));\n Marker mdojutra =mMap.addMarker(new MarkerOptions().position(dojutra).title(\"DOJUTRA\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_dojutra))\n .snippet(\"Doskonała atmosfera, niezłe jedzenie i świetne piwo\"));\n Marker mnaroznik =mMap.addMarker(new MarkerOptions().position(naroznik).title(\"Bistro Narożnik\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_naroznik))\n .snippet(\"Gastropub z wyborem piw i szybkimi przekąskami\"));\n Marker mpiwnica =mMap.addMarker(new MarkerOptions().position(piwnica).title(\"Stara piwnica\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_piwnica))\n .snippet(\"Klub muzyczny w centrum Wrocławia\"));\n Marker mraj =mMap.addMarker(new MarkerOptions().position(raj).title(\"Czeski raj \")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_raj))\n .snippet(\"Czeskie piwa, a w tle rockowe klimaty\"));\n Marker mpubguiness =mMap.addMarker(new MarkerOptions().position(pubguiness).title(\"Pub Guinness\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_pubguiness)\n ).snippet(\"Świetne piwo, dobra atmosfera i wystrój wnętrza.\"));\n Marker mpubwedrowki =mMap.addMarker(new MarkerOptions().position(pubwedrowki).title(\"Pub Wędrówki\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_pubwedrowki))\n .snippet(\"Piwa polskie i czeskie, miejsce dla podróżników\"));\n Marker mprzybijpiataka =mMap.addMarker(new MarkerOptions().position(przybijpiataka).title(\"Przybij Piątaka\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_przybijpiataka))\n .snippet(\"Music pub, pozytywna energia, klimatyczny nastrój\"));\n Marker mblackboardpub =mMap.addMarker(new MarkerOptions().position(blackboardpub).title(\"BlackBoard Pub\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_blackboardpub))\n .snippet(\"Polski design, polskie piwo , psychodeliczne drinki\"));\n Marker mwicarzone =mMap.addMarker(new MarkerOptions().position(wicarzone).title(\"Wicar Zone\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_wicarzone))\n .snippet(\"Mikstury, napary, koktajle, drinki, kawy, yerba mate.\"));\n Marker mprzekret =mMap.addMarker(new MarkerOptions().position(przekret).title(\"Pub studencki PRZEKRĘT\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_przekret))\n .snippet(\"Miejsce spotkań przy piwku i drinku w pobliżu PWr\"));\n Marker mpubzadrzwiami =mMap.addMarker(new MarkerOptions().position(pubzadrzwiami).title(\"Pub Za Drzwiami\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_pubzadrzwiami))\n .snippet(\"Pub z tradycjami, w ofercie różne drinki i piwo.\"));\n Marker mgrac =mMap.addMarker(new MarkerOptions().position(grac).title(\"Graciarnia\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_grac))\n .snippet(\"Pub i restauracja w klimacie lat 20\"));\n Marker msetka =mMap.addMarker(new MarkerOptions().position(setka).title(\"Setka\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_setka))\n .snippet(\"Słynie ze znakomitych żeberek\"));\n Marker mfuga =mMap.addMarker(new MarkerOptions().position(fuga).title(\"Fuga Mundi\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_fuga))\n .snippet(\"Bilard, snooker i disco w studenckim wydaniu\"));\n Marker mdoctor =mMap.addMarker(new MarkerOptions().position(doctor).title(\"Doctor's Bar\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_doctor))\n .snippet(\"Oficjalny pub browaru Doctor Brew\"));\n Marker mpodlat =mMap.addMarker(new MarkerOptions().position(podlat).title(\"Pod Latarniami\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_podlat))\n .snippet(\"Polska kuchnia i kraftowe piwo\"));\n Marker mcyber =mMap.addMarker(new MarkerOptions().position(cyber).title(\"Cybermachina\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_cyber))\n .snippet(\"Dla entuzjastów gier planszowych i konsolowych\"));\n Marker mhex = mMap.addMarker(new MarkerOptions().position(hex).title(\"Hex\")\n .icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_hex))\n .snippet(\"Wybór gier planszowych oraz piwa\"));\n\n mMap.setInfoWindowAdapter(this);\n\n\n //granice\n final LatLngBounds bounds = new LatLngBounds.Builder()\n .include(spiz)\n .include(remontbar)\n .include(schody)\n .include(konty)\n .include(hops)\n .include(targowa)\n .include(szyn)\n .include(alebrowar)\n .include(lamus)\n .include(marynka)\n .include(stumostow)\n .include(dojutra)\n .include(naroznik)\n .include(piwnica)\n .include(raj)\n .include(pubguiness)\n .include(pubwedrowki)\n .include(przybijpiataka)\n .include(blackboardpub)\n .include(wicarzone)\n .include(przekret)\n .include(pubzadrzwiami)\n .include(grac)\n .include(setka)\n .include(fuga)\n .include(doctor)\n .include(podlat)\n .include(cyber)\n .include(hex)\n .build();\n\n //mMap.setLatLngBoundsForCameraTarget(bounds);\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(bounds.getCenter()));\n mMap.setMinZoomPreference(13);\n\n //lokalizacja uzytkownika\n //sprawdza i wywołuje pozwolenie lokalizacji\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, MY_PERMISSION_REQUEST_FINE_LOCATION);\n }\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n //przybliżanie do widoku domyślnego\n Zoom.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n mMap.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds,100));\n\n //Add your code to be executed when button is clicked\n\n }\n });\n\n final ArrayList<Marker> markery =new ArrayList<Marker>();//lista z markerami\n markery.add(mspiz);\n markery.add(mremontbar);\n markery.add(mschody);\n markery.add(mkonty);\n markery.add(mhops);\n markery.add(mtargowa);\n markery.add(mszyn);\n markery.add(malebrowar);\n markery.add(mlamus);\n markery.add(mmarynka);\n markery.add(mstumostow);\n markery.add(mdojutra);\n markery.add(mnaroznik);\n markery.add(mpiwnica);\n markery.add(mraj);\n markery.add(mpubguiness);\n markery.add(mpubwedrowki);\n markery.add(mprzybijpiataka);\n markery.add(mblackboardpub);\n markery.add(mwicarzone);\n markery.add(mprzekret);\n markery.add(mpubzadrzwiami);\n markery.add(mgrac);\n markery.add(msetka);\n markery.add(mfuga);\n markery.add(mdoctor);\n markery.add(mpodlat);\n markery.add(mcyber);\n markery.add(mhex);\n\n\n //wykrywanie zmiany lokalizacji\n LocationManager locationManager= (LocationManager)getSystemService(Context.LOCATION_SERVICE);\n locationManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, new LocationListener() {\n @Override\n public void onLocationChanged(final Location location) {\n Marker closest = null;\n double minDistance = 0;\n\n //pętla do najbliszego markera\n for (int i = 0; i < markery.size(); i++) {\n Marker currentMarker = markery.get(i);\n // do what you want with the current marker\n LatLng m = currentMarker.getPosition();\n Location mlok = new Location(\"\");\n mlok.setLatitude(m.latitude);\n mlok.setLongitude(m.longitude);\n double distance = location.distanceTo(mlok);\n if(closest == null || minDistance > distance){\n closest = currentMarker;\n minDistance = distance;\n }\n }\n\n final LatLng naj = closest.getPosition();\n final int odl = (int) minDistance;\n final String nazwa = closest.getTitle();\n\n //przybliżanie do najbliższego markera\n wsp.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n //textView.setText(nazwa + \" \\n jest \"+odl+ \" m od Ciebie\"); //Wyświetlenie tekstu\n //Button button=(Button) v;\n //((Button) v).setText(nazwa + \" \\n jest \"+odl+ \" m od Ciebie\"); //zmiana nazwy przycisku\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(naj,18));\n\n }\n });\n //set the switch to ON\n switch1.setChecked(true);\n //attach a listener to check for changes in state\n switch1.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView,\n boolean isChecked) {\n\n if(isChecked){\n textView.setText(nazwa + \" \\n jest \"+odl+ \" m od Ciebie\");\n }else{\n textView.setText(\"\");\n }\n\n }\n });\n //check the current state before we display the screen\n if(switch1.isChecked()){\n switch1.setChecked(false);\n }\n\n }\n\n @Override\n public void onStatusChanged(String provider, int status, Bundle extras) {\n\n }\n\n @Override\n public void onProviderEnabled(String provider) {\n\n }\n\n @Override\n public void onProviderDisabled(String provider) {\n\n }\n });\n }", "public void mapClick(View v) {\n ImageView mapView = (ImageView) findViewById(R.id.mapButton);\n if(mapView.getVisibility() == ImageView.VISIBLE) {\n mapView.setVisibility(ImageView.INVISIBLE);\n }\n else {\n mapView.setVisibility(ImageView.VISIBLE);\n }\n toggleDrawer();\n }", "public void figure() {\n this.isMap = false;\n System.out.println(\"Switch to figure mode\");\n }", "private void setMapMode(boolean online) {\n if (online) {\n overlay.setTransparency(0.25f);\n fab.show();\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n mMap.setOnCameraChangeListener(new GoogleMap.OnCameraChangeListener() {\n @Override\n public void onCameraChange(CameraPosition cameraPosition) {\n if (cameraPosition.zoom > 15.5) {\n marker.setVisible(false);\n overlay.setVisible(true);\n } else {\n marker.setVisible(true);\n overlay.setVisible(false);\n marker.showInfoWindow();\n }\n }\n });\n } else {\n overlay.setTransparency(0f);\n fab.hide();\n mMap.setMapType(GoogleMap.MAP_TYPE_NONE);\n mMap.setOnCameraChangeListener(null);\n marker.setVisible(false);\n overlay.setVisible(true);\n\n Snackbar.make(getView(), R.string.map_no_internet_connection, Snackbar.LENGTH_LONG).show();\n }\n }", "@Override\n public void onLocationChanged(MapWidget v, Location location) {\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 }", "@Override\n public void onDoubleTap(SKScreenPoint point) {\n mapView.zoomInAt(point);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_map);\n\t\tArcGISRuntime.setClientId(\"TZgA94VjocV8S3Uj\");\n\t\tSharedPreferences mSharedPreferences = getSharedPreferences(\n\t\t\t\t\"suntownshop\", 0);\n\t\tmIsVip = mSharedPreferences.getBoolean(\"isvip\", false);\n\t\tmShopId = mSharedPreferences.getString(\"shopid\", \"\");\n\t\tString shopName = mSharedPreferences.getString(\"shopfullname\", \"\");\n\t\tString floorNames = mSharedPreferences.getString(\"floornames\", null);\n\t\tString floorNos = mSharedPreferences.getString(\"floors\", null);\n\t\tif (floorNames == null || floorNos == null || \"\".equals(floorNos)\n\t\t\t\t|| \"\".equals(floorNames)) {\n\t\t\tToast.makeText(this, \"该超市没有地图\", Toast.LENGTH_SHORT).show();\n\t\t\tfinish();\n\t\t\treturn;\n\t\t}\n\t\tTextView tvTitle = (TextView) findViewById(R.id.tv_title);\n\t\tif (!\"\".equals(shopName)) {\n\t\t\ttvTitle.setText(shopName);\n\t\t}\n\t\tString[] floorNameArray = FormatValidation.StringToArray(floorNames,\n\t\t\t\t\";\");\n\t\tString[] floorNoArray = FormatValidation.StringToArray(floorNos, \";\");\n\t\tmap = (MapView) findViewById(R.id.map);\n\t\thsvFloor = (SynHorizontalScrollView) findViewById(R.id.hsv_floor);\n\t\trgFloor = (RadioGroup) findViewById(R.id.rg_floor);\n\t\tmRgMargin = Constants.displayWidth / 2 - MyMath.dip2px(this, 60);\n\t\trgFloor.setPadding(mRgMargin, 0, mRgMargin, 0);\n\t\trgFloor.setOnCheckedChangeListener(this);\n\t\thsvFloor.setOnTouchListener(this);\n\t\thsvFloor.setOnScrollChangedListener(this);\n\n\t\tmap.setMapBackground(0xffffff, 0xffffff, 0, 0);\n\t\tmMapViewHelper = new MapViewHelper(map);\n\n\t\tfloorList = new ArrayList<FloorInfo>();\n\t\tLayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tint btnWidth = MyMath.dip2px(this, 40);\n\n\t\tfor (int i = 0; i < floorNameArray.length; i++) {\n\t\t\tString name = floorNameArray[i];\n\t\t\tString number = floorNoArray[i];\n\t\t\tSystem.out.println(\"楼层号:\" + number + \"楼层名:\" + name);\n\t\t\tRadioButton rb = (RadioButton) inflater.inflate(\n\t\t\t\t\tR.layout.radio_button_floor, null);\n\t\t\trb.setWidth(btnWidth);\n\t\t\trb.setHeight(btnWidth);\n\t\t\tint id = View.generateViewId();\n\t\t\trb.setId(id);\n\t\t\trb.setText(name);\n\t\t\tFloorInfo floorInfo = new FloorInfo(name, id, number);\n\t\t\t// ArcGISTiledMapServiceLayer tiledLayer = new\n\t\t\t// ArcGISTiledMapServiceLayer(\n\t\t\t// MapServerRoot +\"ST_\"+ mShopId + \"_\" + name + \"/MapServer\");\n\t\t\tArcGISDynamicMapServiceLayer dynamicLayer = new ArcGISDynamicMapServiceLayer(\n\t\t\t\t\tMapServerRoot + \"ST_\" + mShopId + \"_\" + name + \"/MapServer\");\n\t\t\tfloorInfo.setBaseLayer(dynamicLayer);\n\t\t\tfloorInfo.setRouteServerPath(MapServerRoot + \"ST_\" + mShopId + \"_\"\n\t\t\t\t\t+ name + \"_ND/NAServer/Route\");\n\t\t\tfloorInfo.setLocatorServerPath(MapServerRoot + \"ST_\" + mShopId\n\t\t\t\t\t+ \"_\" + name + \"_QUERY/GeocodeServer\");\n\t\t\tdynamicLayer.setVisible(false);\n\t\t\tmap.addLayer(dynamicLayer);\n\t\t\tfloorList.add(floorInfo);\n\t\t\trgFloor.addView(rb);\n\t\t\trb.setOnTouchListener(this);\n\t\t}\n\t\tsetCheckAt(0);\n\t\t// Set the MapView to allow the user to rotate the map when as part of a\n\t\t// pinch gesture.\n\t\tmap.setAllowRotationByPinch(true);\n\n\t\t// Enabled wrap around map.\n\t\tmap.enableWrapAround(true);\n\t\tcompass = new Compass(this, null, map);\n\n\t\tLinearLayout compassContainer = new LinearLayout(this);\n\t\tcompassContainer.setPadding(20, 20, 20, 20);\n\t\tcompassContainer.addView(compass);\n\t\tcompassContainer.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\tmap.setRotationAngle(0);\n\t\t\t\tcompass.setRotationAngle(0);\n\n\t\t\t}\n\t\t});\n\t\tmap.addView(compassContainer);\n\n\t\t// Add the route graphic layer (shows the full route)\n\t\trouteLayer = new GraphicsLayer();\n\t\tmap.addLayer(routeLayer);\n\t\trouteDirectionLayer = new GraphicsLayer();\n\t\tmap.addLayer(routeDirectionLayer);\n\t\t// Initialize the RouteTask\n\n\t\tmap.setOnStatusChangedListener(this);\n\t\tIntent intent = getIntent();\n\n\t\tif (intent.hasExtra(\"goodslist\")) {\n\t\t\tif (intent.hasExtra(\"location\")) {\n\t\t\t\tmMyLocation = intent.getStringExtra(\"location\");\n\t\t\t\tmMyLocationTitle = intent.getStringExtra(\"title\");\n\t\t\t\tmMyLocationFloor = intent.getStringExtra(\"floor\");\n\t\t\t}\n\t\t\tArrayList<ParcelableGoods> goodsList = intent\n\t\t\t\t\t.getParcelableArrayListExtra(\"goodslist\");\n\t\t\tgoodsMap = new HashMap<String, ParcelableGoods>();\n\t\t\tfor (ParcelableGoods goods : goodsList) {\n\t\t\t\tif (goods.getShelfId() != null && goods.getFloorName() != null\n\t\t\t\t\t\t&& !\"\".equals(goods.getShelfId())\n\t\t\t\t\t\t&& !\"\".equals(goods.getFloorName())) {\n\t\t\t\t\tString floorName = goods.getFloorName();\n\t\t\t\t\tFloorInfo floorInfo = getFloorInfoByName(floorName);\n\t\t\t\t\tif (floorInfo != null) {\n\t\t\t\t\t\tfloorInfo.addGoods(goods.getShelfId(), goods);\n\t\t\t\t\t\tif (!hasOtherFloor\n\t\t\t\t\t\t\t\t&& !mMyLocationFloor\n\t\t\t\t\t\t\t\t\t\t.equals(floorInfo.getName())) {\n\t\t\t\t\t\t\thasOtherFloor = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tgoodsMap.put(goods.getShelfId(), goods);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "private void setup() {\n\t\t map.setMyLocationEnabled(true);\n\t \n\t CameraPosition cameraPosition = new CameraPosition.Builder()\n\t .target(USMP_LOCATION) // Sets the center of the map to\n\t // Golden Gate Bridge\n\t .zoom(16) // Sets the zoom\n\t .bearing(90) // Sets the orientation of the camera to east\n\t .tilt(60) // Sets the tilt of the camera to 30 degrees\n\t .build(); // Creates a CameraPosition from the builder\n\t \n\t CameraUpdate cameraUpdate=CameraUpdateFactory.newCameraPosition(\n\t \t cameraPosition);\n\t\t map.animateCamera(cameraUpdate);\n\t\t \n\t map.addMarker(new MarkerOptions()\n\t .position(USMP_LOCATION)\n\t .title(\"DevFest 2013 Season 2\"));\n\t}", "@FXML\r\n\tpublic void goToMain() {\r\n\t\tViewNavigator.loadScene(\"Welcome to WatchPlace\", ViewNavigator.HOME_SCENE);\r\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n\n }", "@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tif(MAP_SWITCH_FLAG)\n\t\t\t\t{\n\t\t\t\t\t/* 卫星地图模式 */\n\t\t\t\t\tMAP_SWITCH_FLAG = false;\n\t\t\t\t\t//mMapSwitchBtn.setText(\"地图\");\n\t\t\t\t\t//mMapSwitchBtn.setTextSize(10);\n\t\t\t\t\t//mMapSwitchBtn.setTextColor(Color.GREEN);\n/*\t\t\t\t\tmMapSwitchBtn.setCompoundDrawables(null, \n\t\t\t\t\t\t\tgetResources().getDrawable(R.drawable.map_switch_button_m), null, null);*/\n\t\t\t\t\tmMapSwitchBtn.setCompoundDrawablesWithIntrinsicBounds(mDrawableMapNormal, null, null, null);\n\t\t\t\t\t//设置卫星地图\n\t\t\t\t\tmBaiduMap.setMapType(BaiduMap.MAP_TYPE_SATELLITE);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t/* 普通地图模式 */\n\t\t\t\t\tMAP_SWITCH_FLAG = true;\n\t\t\t\t\t//mMapSwitchBtn.setText(\"卫星\");\n\t\t\t\t\t//mMapSwitchBtn.setTextSize(10);\n\t\t\t\t\t//mMapSwitchBtn.setTextColor(Color.WHITE);\n\t\t\t\t\t/*mMapSwitchBtn.setCompoundDrawables(null, \n\t\t\t\t\t\t\tgetResources().getDrawable(R.drawable.map_switch_button_m, null), null, null);*/\n\t\t\t\t\tmMapSwitchBtn.setCompoundDrawablesWithIntrinsicBounds(mDrawableMapSatellite, null, null, null);\n\t\t\t\t\tmBaiduMap.setMapType(BaiduMap.MAP_TYPE_NORMAL);\n\t\t\t\t}\n\t\t\t}", "public OverworldScreen(Game game) {\n super(\"OverworldScreen\", game);\n\n mScreenViewport = new ScreenViewport(0, 0, mGame.getScreenWidth(),\n mGame.getScreenHeight());\n if (mScreenViewport.width > mScreenViewport.height)\n mLayerViewport = new LayerViewport(240.0f, 240.0f\n * mScreenViewport.height / mScreenViewport.width, 240,\n 240.0f * mScreenViewport.height / mScreenViewport.width);\n else\n mLayerViewport = new LayerViewport(240.0f * mScreenViewport.height\n / mScreenViewport.width, 240.0f, 240.0f\n * mScreenViewport.height / mScreenViewport.width, 240);\n\n // Load in the bitmaps used on the main menu screen\n AssetStore assetManager = mGame.getAssetManager();\n\n\n assetManager.loadAndAddBitmap(\"LocationArrow\", \"img/LocationArrow.png\");\n assetManager.loadAndAddBitmap(\"OverworldMap\", \"img/OverworldMap.png\");\n\n // Define the spacing that will be used to position the buttons\n int spacingX = game.getScreenWidth() / 5;\n int spacingY = game.getScreenHeight() / 3;\n\n mOverworldMap = new GameObject(LEVEL_WIDTH / 2.0f,\n LEVEL_HEIGHT / 2.0f, LEVEL_WIDTH, LEVEL_HEIGHT, getGame()\n .getAssetManager().getBitmap(\"OverworldMap\"), this);\n\n // Create the trigger buttons\n mLocationButton = new PushButton(\n spacingX * 1.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton1 = new PushButton(\n spacingX * 2.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton2 = new PushButton(\n spacingX * 3.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton3 = new PushButton(\n spacingX * 4.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton4 = new PushButton(\n spacingX * 5.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n\n\n }", "private void setTurtleLocToViewTurtleLoc()\n\t{\n\t\tSystem.out.println(\" in setTurtleLocToViewTurtleLoc \" + this.myTurtle.getLoc().getX() + \" \" +this.myTurtle.getLoc().getX());\n\t\tmyTurtle.setLocation(getViewTurtleLocation());\n\t}", "protected void showMap() {\n \t\t\n \t\tApplicationData applicationData;\n \t\ttry {\n \t\t\tapplicationData = ApplicationData.readApplicationData(this);\n \t\t\tif(applicationData != null){\n \t\t\t\tIntent intent = getIntent();\n \t\t\t\tNextLevel nextLevel = (NextLevel)intent.getSerializableExtra(ApplicationData.NEXT_LEVEL_TAG);\n \t\t\t\tAppLevelDataItem item = applicationData.getDataItem(this, nextLevel);\t\t\t\t\n \t\t\t\t\n \t\t\t\tif(Utils.hasLength(item.getGeoReferencia())){\n \t\t\t\t\tString urlString = \"http://maps.google.com/maps?q=\" + item.getGeoReferencia() + \"&near=Madrid,Espa�a\";\n \t\t\t\t\tIntent browserIntent = new Intent(\"android.intent.action.VIEW\", \n \t\t\t\t\t\t\tUri.parse(urlString ));\n \t\t\t\t\tstartActivity(browserIntent);\n \t\t\t\t}\n \t\t\t}\n \t\t} catch (InvalidFileException e) {\n \t\t}\n \t}", "public MapPanel() {\r\n\t\tthis(EarthFlat.class);\r\n\t}", "@SuppressLint(\"MissingPermission\")\n @AfterPermissionGranted(PERMISSION_LOCATION_ID)\n private void setMapUISettings() {\n map.getUiSettings().setZoomControlsEnabled(true);\n map.getUiSettings().setCompassEnabled(true);\n map.getUiSettings().setAllGesturesEnabled(true);\n\n map.setOnMyLocationClickListener(new GoogleMap.OnMyLocationClickListener() {\n @Override\n public void onMyLocationClick(@NonNull Location location) {\n\n }\n });\n\n map.setOnMyLocationButtonClickListener(new GoogleMap.OnMyLocationButtonClickListener() {\n @Override\n public boolean onMyLocationButtonClick() {\n return false;\n }\n });\n\n if (EasyPermissions.hasPermissions(requireContext(), Manifest.permission.ACCESS_FINE_LOCATION))\n map.setMyLocationEnabled(true);\n else\n EasyPermissions.requestPermissions(this, \"Access fine location needed to get my location\", PERMISSION_LOCATION_ID, Manifest.permission.ACCESS_FINE_LOCATION);\n }", "public void switchToCountry()\n {\n questionLabel.setText(currentQuestion.getQuestion());\n d.setVisible(true);\n atQuestionStage=true;\n mapImageLabel.setVisible(false);\n a.setText(\"A\");\n b.setText(\"B\");\n c.setText(\"C\");\n a.setBounds(380,220,a.getPreferredSize().height+20,30);\n b.setBounds(500,220,b.getPreferredSize().height+20,30);\n c.setBounds(380,320,c.getPreferredSize().height+20,30);\n d.setBounds(500,320,d.getPreferredSize().height+20,30);\n questionLabel.setBounds(380,100,600,100);\n revalidate();\n }", "public void clickOnMainMap(MouseEvent e) {\n //button 1\n //on stack\n //on planet\n Point p = SU.getSpaceMapClickPoint(e);\n\n if (e.getButton() == MouseEvent.BUTTON3) {\n SU.clickOnSpaceMapButton3(p);\n } else if (e.getButton() == MouseEvent.BUTTON1) {\n clickOnSpaceMapButton1(p);\n }\n }", "public void mapsOpen (View view) {\n Intent mapIntent = new Intent(this, MapsActivity.class);\n startActivity(mapIntent);\n }", "public void viewCar(View view) {\n Intent intent = new Intent(ControlActivity.this, MapsActivity.class);\n intent.putExtra(StaticConfig.STR_EXTRA_IP, ip);\n intent.putExtra(StaticConfig.STR_EXTRA_PORT, port);\n intent.putExtra(StaticConfig.STR_EXTRA_TIME, serverInterval);\n intent.putExtra(StaticConfig.STR_EXTRA_STATIC, false);\n startActivity(intent);\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n universe = SpaceTrader.getInstance().getUniverse();\n player = SpaceTrader.getInstance().getPlayer();\n travelable = player.getTravelable(universe);\n solarSystemLocations = new HashMap<>();\n sunImages = new HashMap<>();\n \n for (SunType star : (ArrayList<SunType>) SunType.getList(SunType.class)) {\n if (star.usesImage()) {\n sunImages.put(star.getName(), new Image(star.getImage()));\n }\n }\n \n //adds listener for the zoom slider\n zoomSlider.valueProperty().addListener(new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n zoom = (float) zoomSlider.getValue();\n dragFinished = true;\n drawUniverse();\n }\n \n });\n \n// playerInfo.setText(player.getName()\n// + \"\\nPilot Skill: \" + player.getPilotSkill()\n// + \"\\nFighter Skill: \" + player.getFighterSkill()\n// + \"\\nTrader Skill: \" + player.getTraderSkill()\n// + \"\\nEngineer Skill: \" + player.getEngineerSkill()\n// + \"\\nInvestor Skill: \" + player.getInvestorSkill());\n \n playerInfo.setText(player.getName());\n playerInfo1.setText(\"Pilot: \" + player.getPilotSkill());\n playerInfo2.setText(\"Fighter: \" + player.getFighterSkill());\n playerInfo3.setText(\"Trader: \" + player.getTraderSkill());\n playerInfo4.setText(\"Engineer: \" + player.getEngineerSkill());\n playerInfo5.setText(\"Investor: \" + player.getInvestorSkill());\n // gets graphic object and draws universe to begin\n g = gameCanvas.getGraphicsContext2D();\n g.setFill(Color.WHITE);\n \n SaveGame.save(player.getName() + \".sav\", player, universe);\n \n drawUniverse();\n }", "public MapView(int height, int width)\n {\n stats = new FieldStats();\n colors = new LinkedHashMap<>();\n\n setTitle(\"Map Environment Viewer\");\n stepLabel = new JLabel(STEP_PREFIX, JLabel.CENTER);\n infoLabel = new JLabel(\" \", JLabel.CENTER);\n population = new JLabel(POPULATION_PREFIX, JLabel.CENTER);\n\n currentEnvironment = \"Savanna\";\n\n setLocation(500, 50);\n\n fieldView = new FieldView(height, width);\n\n Container contents = getContentPane();\n\n JPanel infoPane = new JPanel(new BorderLayout());\n infoPane.add(stepLabel, BorderLayout.WEST);\n infoPane.add(infoLabel, BorderLayout.CENTER);\n contents.add(infoPane, BorderLayout.NORTH);\n contents.add(fieldView, BorderLayout.CENTER);\n contents.add(population, BorderLayout.SOUTH);\n pack();\n setVisible(true);\n }", "private void toggleGoToMapBtn() {\n boolean isShow = isValidLocationFound();\n NodeUtil.setNodeVisibility(this.gotoGeoMapBtn, isShow);\n }", "void setVisualizationType(MapVisualizationType visType);" ]
[ "0.67022985", "0.65328586", "0.64909357", "0.63773775", "0.63600874", "0.6329031", "0.6279102", "0.61633956", "0.61452293", "0.61446416", "0.60725516", "0.60094935", "0.6009315", "0.6003197", "0.5926451", "0.5916929", "0.591059", "0.58951753", "0.58926314", "0.5891427", "0.58685756", "0.5861164", "0.58491457", "0.58377767", "0.5808876", "0.5807697", "0.5804124", "0.57831556", "0.57817763", "0.57799613", "0.5767375", "0.5766022", "0.5765032", "0.5765032", "0.5765032", "0.5760815", "0.57565033", "0.5743835", "0.5737823", "0.57224506", "0.5715648", "0.5713396", "0.5706136", "0.5701479", "0.56950545", "0.5685155", "0.5681237", "0.56778353", "0.56772846", "0.5677101", "0.5674265", "0.56643933", "0.5663148", "0.5660667", "0.5658354", "0.5655181", "0.56493884", "0.56445384", "0.56444985", "0.5640038", "0.56218266", "0.56185526", "0.561263", "0.56112474", "0.56017816", "0.558257", "0.55765206", "0.5573389", "0.5570892", "0.5569026", "0.55671966", "0.5563294", "0.55578285", "0.55568415", "0.5550554", "0.5546964", "0.5536128", "0.5535961", "0.5529948", "0.5521616", "0.55212", "0.5519745", "0.5510726", "0.5505657", "0.5504923", "0.550471", "0.54992706", "0.5498504", "0.5497898", "0.5492958", "0.54927117", "0.5491558", "0.5487", "0.5486051", "0.5485111", "0.5484464", "0.5482713", "0.54787225", "0.5472697", "0.54701495" ]
0.72565925
0
Sets the current view of the map to a normal view
public void setNormal(View view) { if (mapReady) { gMap.setMapType(GoogleMap.MAP_TYPE_NORMAL); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mapViewLayedOut() {\n if (mPointToGoTo != null) {\n setCenter(mPointToGoTo);\n mPointToGoTo = null;\n }\n if (mZoomToZoomTo != -1) {\n setZoom(mZoomToZoomTo);\n mZoomToZoomTo = -1;\n }\n\n }", "private void setView( boolean reset_zoom )\n {\n float azimuth = getAzimuthAngle();\n float altitude = getAltitudeAngle();\n float distance = getDistance();\n\n float r = (float)(distance * Math.cos( altitude * Math.PI/180.0 ));\n\n float x = (float)(r * Math.cos( azimuth * Math.PI/180.0 ));\n float y = (float)(r * Math.sin( azimuth * Math.PI/180.0 ));\n float z = (float)(distance * Math.sin( altitude * Math.PI/180.0 ));\n\n float vrp[] = getVRP().get();\n \n setCOP( new Vector3D( x + vrp[0], y + vrp[1], z + vrp[2] ) );\n\n apply( reset_zoom );\n }", "public void viewOnMap(View view){\r\n changeToMapActivity();\r\n }", "private void setupMapView(){\n Log.d(TAG, \"setupMapView: Started\");\n\n view_stage_map = VIEW_MAP_FULL;\n cycleMapView();\n\n }", "private void resumeRoadView() {\n m_map.setCenter(PositioningManager.getInstance().getPosition().getCoordinate(), Map\n .Animation.BOW, m_lastZoomLevelInRoadViewMode, Map.MOVE_PRESERVE_ORIENTATION,\n 80);\n // do not start RoadView and its listener until the map movement is complete.\n m_returningToRoadViewMode = true;\n }", "public void setMapPosition() {\n\t\txmap = levelState.getx();\n\t\tymap = levelState.gety();\n\t}", "public void changeType(View view){\n if(mMap.getMapType() == GoogleMap.MAP_TYPE_NORMAL){\n mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n }else{\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n }\n\n }", "public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }", "public void resetView() {\n pause();\n if (spriteView != null) spriteView.setViewport(new Rectangle2D(0, 0, rect.getWidth(), rect.getHeight()));\n }", "static void setViewPointRelevantTo(Point point) {\n point.translate(-1 * viewPoint.x, -1 * viewPoint.y);\n point.x /= Map.zoom;\n point.y /= Map.zoom;\n point.translate(viewPoint.x, viewPoint.y);\n viewPoint.setLocation(point.x - GAME_WIDTH / 2, point.y - GAME_HEIGHT / 2);\n verifyViewPoint();\n }", "public MapView(GameModel model){\n this.model = model;\n this.images = new Images(model);\n this.visualizer = new VisualizerVisitor(this, zoomFactor);\n this.debug = new DebugVisitor(this, zoomFactor);\n this.modelMid = new DoubleVec(model.getFieldSizeX()*0.5,model.getFieldSizeY()*0.5);\n this.refPoint = modelMid;\n this.smallVisualizer = new SmallVisitor(this, 3);\n updateBoxes();\n }", "private void setMapView()\n\t{\n\t\tMapContainer.mapView = new MapView(SubMainActivity.this, this.getString(R.string.apiKey));\n\t\tMapContainer.mapView.setClickable(true);\n\t\tMapContainer.mapView.setLayoutParams(new FrameLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));;\n\t}", "public void moveTheMap() {\n \t if(streetLevelFragment != null && map != null){\n \t\t map.setCenter(streetLevelFragment.getStreetLevelModel().getPosition(), MapAnimation.LINEAR, map.getZoomLevel(), streetLevelFragment.getStreetLevelModel().getHeading(), 0);\n \t }\n }", "public void setView(Rectangle2D bounds) {\r\n if (bounds == null) {\r\n return;\r\n }\r\n Rectangle2D old = getView();\r\n defaultView = new Rectangle2D.Double(bounds.getX(), bounds.getY(),\r\n bounds.getWidth(), bounds.getHeight());\r\n \r\n minX = defaultView.getMinX();\r\n maxX = defaultView.getMaxX();\r\n minY = defaultView.getMinY();\r\n maxY = defaultView.getMaxY();\r\n \r\n majorX = defaultMajorX;\r\n majorY = defaultMajorY;\r\n firePropertyChange(\"view\", old, getView());\r\n repaint();\r\n }", "public void setSatellite(View view) {\n if (mapReady) {\n gMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n }\n }", "public void displayMap() {\n MapMenuView mapMenu = new MapMenuView();\r\n mapMenu.display();\r\n \r\n }", "@Override\n public void onMapViewInitialized(MapView mapView) {\n settingZoomMarkMap(mapView);\n }", "protected void applyMapSettings() {\n if (gMap != null) {\n gMap.getUiSettings().setZoomControlsEnabled(false);\n gMap.setMapType(SettingsActivity.getMapStyle(this));\n }\n }", "@OnClick(R.id.toggle_view_action)\n public void onToggleView() {\n logD(\"Be kind and implement map view of landmarks\");\n }", "private void applySettingsOnMapView() {\n mapView.getMapSettings().setMapRotationEnabled(true);\n mapView.getMapSettings().setMapZoomingEnabled(true);\n mapView.getMapSettings().setMapPanningEnabled(true);\n mapView.getMapSettings().setZoomWithAnchorEnabled(true);\n mapView.getMapSettings().setInertiaRotatingEnabled(true);\n mapView.getMapSettings().setInertiaZoomingEnabled(true);\n mapView.getMapSettings().setInertiaPanningEnabled(true);\n }", "private void applySettingsOnMapView() {\n mapView.getMapSettings().setMapRotationEnabled(true);\n mapView.getMapSettings().setMapZoomingEnabled(true);\n mapView.getMapSettings().setMapPanningEnabled(true);\n mapView.getMapSettings().setZoomWithAnchorEnabled(true);\n mapView.getMapSettings().setInertiaRotatingEnabled(true);\n mapView.getMapSettings().setInertiaZoomingEnabled(true);\n mapView.getMapSettings().setInertiaPanningEnabled(true);\n }", "@Override\n\tpublic void changeMapPointer(ImageView posView) {\n\t\tif (room.equals(properties.getRoomFromProperties().get(1))) {\n\t\t\tposView.relocate(789, 272);\n\n\t\t} else if (room.equals(properties.getRoomFromProperties().get(2))) {\n\t\t\tposView.relocate(788, 185);\n\n\t\t} else if (room.equals(properties.getRoomFromProperties().get(3))) {\n\t\t\tposView.relocate(880.0, 281);\n\n\t\t} else if (room.equals(properties.getRoomFromProperties().get(4))) {\n\t\t\tposView.relocate(867.0, 200);\n\n\t\t} else if (room.equals(properties.getRoomFromProperties().get(5))) {\n\t\t\tposView.relocate(880.0, 64.0);\n\n\t\t} else {\n\t\t\tposView.relocate(788.0, 60.0);\n\t\t}\n\t}", "private void setCameraView() {\n double bottomBoundary = mUserPosition.getLatitude() - .1;\n double leftBoundary = mUserPosition.getLongitude() - .1;\n double topBoundary = mUserPosition.getLatitude() + .1;\n double rightBoundary = mUserPosition.getLongitude() + .1;\n\n mMapBoundary = new LatLngBounds(\n new LatLng(bottomBoundary, leftBoundary),\n new LatLng(topBoundary, rightBoundary)\n );\n\n mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngBounds(mMapBoundary, 500,500,1));\n }", "public void figure() {\n this.isMap = false;\n System.out.println(\"Switch to figure mode\");\n }", "public MapView(android.content.Context param0) {\n super(param0);\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n this.setHInstance(new HImpl(param0));\n } else {\n this.setGInstance(new GImpl(param0));\n }\n wrapper = false;\n }", "void display(Map m) {\r\n\t\tm.tour = this;\r\n\t\tm.update(m.getGraphics());\r\n\t}", "public void setMap2D(FXMap map);", "@Override\n protected void setUpMap() {\n super.setUpMap();\n // For showing a move to my location button and a blue\n // dot to show user's location\n MainActivity mainActivity = (MainActivity) getActivity();\n mMap.setMyLocationEnabled(mainActivity.checkIfGPSEnabled());\n }", "public void bringSimpleMapToBack()\n\t{\n\t\tthis.openLayersMap.setStyleName(\"blipnip-gwt-Menu-Map-Back\");\n\t\t//this.openLayersMap.getElement().getStyle().setZIndex(-1); \n\t\t//this.openLayersMap.getElement().getFirstChildElement().getStyle().setZIndex(-1); // \n\t}", "private void setUpMap() {\n mMap.getUiSettings().setZoomControlsEnabled(false);\n \n // Setting an info window adapter allows us to change the both the\n // contents and look of the\n // info window.\n mMap.setInfoWindowAdapter(new CustomInfoWindowAdapter(getLayoutInflater()));\n \n // Add lots of markers to the map.\n addMarkersToMap();\n \n }", "protected synchronized void resetModelViewMatrix()\n {\n Matrix4d transform = new Matrix4d();\n // translate so that the viewer is at the origin\n Matrix4d translation = new Matrix4d();\n translation.setTranslation(myPosition.getLocation().multiply(-1.));\n // rotate to put the viewer pointing in the -z direction with the up\n // vector along the +y axis.\n Quaternion quat = Quaternion.lookAt(myPosition.getDir().multiply(-1.), myPosition.getUp());\n Matrix4d rotation = new Matrix4d();\n rotation.setRotationQuaternion(quat);\n // set the transform.\n transform.multLocal(rotation);\n transform.multLocal(translation);\n myModelViewMatrix = transform.toFloatArray();\n setInverseModelViewMatrix(transform.invert());\n clearModelToWindowTransform();\n }", "private void setupBoardViews(){ //This resets the view for use by the UI. Forces out of Design mode\n Log.d(TAG, \"setupBoardViews: Started\");\n view_stage_map = VIEW_MAP_START;\n cycleMapView();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tmap.setRotationAngle(0);\n\t\t\t\tcompass.setRotationAngle(0);\n\n\t\t\t}", "@Override\n public void onMapViewSingleTapped(MapView mapView, MapPoint MapPoint) {\n settingZoomMarkMap(mapView);\n }", "void resetView();", "public void mapIsClicked(View view) {\n Controller.viewMappa();\n }", "private void actionResetView ()\r\n\t{\r\n\t\thelperSwitchSelectOff();\r\n\t\thelperSwitchMoveOff();\r\n\r\n\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t//---- Check if the project is empty or not\r\n\t\tif (tableSize != 0)\r\n\t\t{\r\n\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().displayPolygonStop();\r\n\t\t\tmainFormLink.getComponentPanelCenter().getComponentPanelImageView().resetImagePosition();\r\n\t\t}\r\n\r\n\t}", "public void setMap()\n {\n gameManager.setMap( savedFilesFrame.getCurrent_index() );\n }", "public void setARView(int viewSetting) {\n // rerender the view without recreate the object\n if(currentDisplayMode==DISPLAY_PLACE_DETAIL)\n generateWorld(mWorld, mPlaceDetail,viewSetting, false);\n else\n generateWorld(mWorld, mPlaceListMain,viewSetting, false);\n\n }", "private void resetBalloonPosition(View balloon){\n int viewId = balloon.getId();\n if(globalViewMap != null && globalViewMap.containsKey(viewId+\"_x\") && globalViewMap.containsKey(viewId+\"_y\")) {\n balloon.setX(globalViewMap.get(balloon.getId() + \"_x\"));\n balloon.setY(globalViewMap.get(balloon.getId() + \"_y\"));\n balloon.setVisibility(View.VISIBLE);\n }\n \n }", "public void resetTransform() {\n this.mView.setScaleX(1.0f);\n this.mView.setScaleY(1.0f);\n this.mView.setTranslationX(0.0f);\n this.mView.setTranslationY(0.0f);\n }", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.map_minus_rl:\n mAMap.moveCamera(CameraUpdateFactory.zoomOut());\n break;\n case R.id.map_plus_rl:\n mAMap.moveCamera(CameraUpdateFactory.zoomIn());\n break;\n case R.id.locate_current_rl:\n mLocation = AllOnlineApp.getCurrentLocation();\n if (false/*mLocation != null*/) {\n LatLng cenpt = new LatLng(mLocation.getLatitude(), mLocation.getLongitude());\n mAMap.moveCamera(CameraUpdateFactory.changeLatLng(cenpt));\n } else {\n LatLng cenpt = new LatLng(GlobalParam.getInstance().get_lat(), GlobalParam.getInstance().get_lng());\n mAMap.moveCamera(CameraUpdateFactory.changeLatLng(cenpt));\n }\n break;\n default:\n break;\n }\n }", "public void reset() {\n\t\tmCenterOfProjection = new Vector3f(0, 0, 15);\n\t\tmLookAtPoint = new Vector3f(0, 0, 0);\n\t\tmUpVector = new Vector3f(0, 1, 0);\n\t\tmCameraMatrix = new Matrix4f();\n\t\tthis.update();\n\t}", "public void mapClick(View v) {\n ImageView mapView = (ImageView) findViewById(R.id.mapButton);\n if(mapView.getVisibility() == ImageView.VISIBLE) {\n mapView.setVisibility(ImageView.INVISIBLE);\n }\n else {\n mapView.setVisibility(ImageView.VISIBLE);\n }\n toggleDrawer();\n }", "@Override\n protected void onResume() {\n mapView.onResume();\n super.onResume();\n }", "public void resetHitMarker() {}", "public void mapMode() {\n\t\ttheTrainer.setUp(false);\n\t\ttheTrainer.setDown(false);\n\t\ttheTrainer.setLeft(false);\n\t\ttheTrainer.setRight(false);\n\n\t\tinBattle = false;\n\t\tred = green = blue = 255;\n\t\tthis.requestFocus();\n\t}", "private void setMapMode(boolean mapMode) {\n\t\tif (this.isShowingMap != mapMode) {\n\n\t\t\tif (mapMode) {\n\n\t\t\t\tlargeStatsFragment.setVisibility(View.GONE);\n\t\t\t\tsmallStatsFragment.setVisibility(View.VISIBLE);\n\t\t\t\t// pnlLargeTiles.setVisibility(View.GONE);\n\t\t\t\t// pnlSmallTiles.setVisibility(View.VISIBLE);\n\t\t\t\tpnlMap.setVisibility(View.VISIBLE);\n\n\t\t\t\t// float alpha = getResources().getFraction(fraction.alpha_semi_transparent, 1, 1);\n\t\t\t\t// float alpha = ALPHA_TRANSPARENT;\n\t\t\t\t// pnlSmallTiles.setAlpha(alpha);\n\t\t\t\t// pnlBottomButtons.setAlpha(alpha);\n\t\t\t\t// pnlTopButtons.setAlpha(alpha);\n\t\t\t\t// pnlStopwatch.setAlpha(alpha);\n\n\t\t\t} else {\n\n\t\t\t\tlargeStatsFragment.setVisibility(View.VISIBLE);\n\t\t\t\tsmallStatsFragment.setVisibility(View.GONE);\n\t\t\t\t// pnlSmallTiles.setVisibility(View.GONE);\n\t\t\t\tpnlMap.setVisibility(View.GONE);\n\t\t\t\t// pnlLargeTiles.setVisibility(View.VISIBLE);\n\n\t\t\t\t// float alpha = getResources().getFraction(fraction.alpha_lighter, 1, 1);\n\t\t\t\t// float alpha = ALPHA_OPAQUE;\n\t\t\t\t// pnlSmallTiles.setAlpha(OPAQUE);\n\t\t\t\t// pnlBottomButtons.setAlpha(alpha);\n\t\t\t\t// pnlTopButtons.setAlpha(alpha);\n\t\t\t\t// pnlStopwatch.setAlpha(OPAQUE);\n\n\t\t\t}\n\n\t\t\tthis.isShowingMap = mapMode;\n\t\t\tthis.btnToggleMap.setChecked(mapMode);\n\n\t\t}\n\n\t\tif (this.isShowingMap) {\n\t\t\tLocation loc = workoutService == null ? null : workoutService.getService().getLastKnownLocation();\n\t\t\tif (loc != null) {\n\t\t\t\tshowOnMap(loc);\n\t\t\t}\n\t\t}\n\t}", "public void setViewLocation(Point p) {\n\tviewport.setViewLocation(p.x, p.y);\n\t\n}", "public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}", "@Override\n public void setDisplayedLocation(Location loc) {\n pane.setVvalue(loc.getyCoord());\n pane.setHvalue(loc.getxCoord());\n setCurrentFloor(loc.getLevel());\n displayedLocation = getDisplayedLocation();\n }", "private void setUpMap() {\n mMap.setMyLocationEnabled(true);\n }", "@Override\n\tpublic void onLocationChanged(Location location) {\n\t\t if (location != null) {\n\t\t //punto = location;\n\t\t GeoPoint puntoCap = new GeoPoint(location);\n\t\t this.posicionActualOverlay.setLocation(puntoCap);\n\t\t mapView.getController().animateTo(puntoCap);\n\t\t mapView.getController().setCenter(puntoCap);\n\t\t }\n\t\t\n\t}", "public MapView(android.content.Context param0, android.util.AttributeSet param1) {\n super(param0, param1);\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n this.setHInstance(new HImpl(param0, param1));\n } else {\n this.setGInstance(new GImpl(param0, param1));\n }\n wrapper = false;\n }", "private void setUpMap() {\n\t\t \n\t\tmMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n\t\t//mMap.setMyLocationEnabled(true);\n\t\t\t \n\t\tmMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(\n\t\t\t\tlatitude, longitude), 12.0f));\n\n\t}", "void setMapChanged();", "@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}", "@Override\n\tpublic void DrawMap(Graphics g, float scale, Map m, DeliveryQuery delivery, RouteHelper routeHelper) {\n\t\t// No action\n\t}", "@Override\n\tpublic void resetLocation() {\n\t\t\n\t}", "Rover(){\n\t\tthis.id = 0;\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t\tthis.orientation = Directions.NORTH;\n\t\tthis.mapW=this.defaultMapW;\n\t\tthis.mapH=this.defaultMapH;\n\t}", "public void setShowMap( boolean show )\r\n {\r\n showMap = show;\r\n }", "@Override\n public void onCameraChange(CameraPosition arg0) {\n center = map.getCameraPosition().target;\n Log.v(\"Center\", \"lattitude=\" + center.latitude + \" &longitude=\" + center.longitude);\n map.clear();\n }", "@Override\n\tpublic void drawMap(Map map) {\n\t\tSystem.out.println(\"Draw map\"+map.getClass().getName()+\"on SD Screen\");\n\t}", "private static void verifyViewPoint() {\n if (viewPoint.x < 0)\n viewPoint.x = 0;\n if (viewPoint.y < 0)\n viewPoint.y = 0;\n if (viewPoint.x > map.WIDTH - GAME_WIDTH * zoom)\n viewPoint.x = map.WIDTH - ((int) (GAME_WIDTH * zoom));\n if (viewPoint.y > map.HEIGHT - GAME_HEIGHT * zoom)\n viewPoint.y = map.HEIGHT - ((int) (GAME_HEIGHT * zoom));\n }", "@Override\n public void onResume() {\n mMapView.onResume();\n super.onResume();\n }", "private void fixView(final float newX, final float newY) {\n final float x = this.worldView.getX();\n final float y = this.worldView.getY();\n final float scale = this.worldView.getScale();\n final int width = this.worldView.getMasterImage().getWidth();\n final int height = this.worldView.getMasterImage().getHeight();\n\n float updatedX = Math.max(0, newX);\n float updatedY = Math.max(0, newY);\n\n\n if (width * scale + x > width) {\n updatedX = width - (width * scale);\n }\n if (height * scale + y > height) {\n updatedY = height - (height * scale);\n }\n\n this.worldView.setX(updatedX);\n this.worldView.setY(updatedY);\n\n }", "public void panView() {\n double xDistance = currentXOffset - targetXOffset;\n double yDistance = currentYOffset - targetYOffset;\n\n xDistance *= -0.5;\n yDistance *= -0.5;\n\n boolean clearX = Math.abs(xDistance) < 2;\n if (clearX) {\n currentXOffset = targetXOffset;\n } else {\n currentXOffset += xDistance;\n }\n\n boolean clearY = Math.abs(xDistance) < 2;\n if (clearY) {\n currentYOffset = targetYOffset;\n } else {\n currentYOffset += yDistance;\n }\n\n doPan = !clearX || !clearY;\n\n gameChanged = true;\n\n }", "public void refresh() {\n if (mMarkerView != null) {\n mMarkerView.setLatLng(GeoJSONUtils.toLatLng(mCoordinate));\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n// MapContainer = (LinearLayout) findViewById(R.id.testampmap);\n\n// if (USE_XML_LAYOUT) {\n// setContentView(R.layout.activity_map);\n//\n//// mMapView = (NMapView) findViewById(R.id.mapView);\n// }\n\n\n //네이버 지도 MapView를 생성해준다.\n mMapView = new NMapView(this);\n //지도에서 ZoomControll을 보여준다\n mMapView.setBuiltInZoomControls(true, null);\n //네이버 OPEN API 사이트에서 할당받은 KEY를 입력하여 준다.\n mMapView.setApiKey(API_KEY);\n //이 페이지의 레이아웃을 네이버 MapView로 설정해준다.\n// setContentView(mMapView);\n setContentView(R.layout.activity_map);\n mLinearLayout = (LinearLayout)findViewById(R.id.mapmap);\n mLinearLayout.addView(mMapView);\n //네이버 지도의 클릭이벤트를 처리 하도록한다.\n mMapView.setClickable(true);\n //맵의 상태가 변할때 이메소드를 탄다.\n mMapView.setOnMapStateChangeListener(new NMapView.OnMapStateChangeListener() {\n public void onZoomLevelChange(NMapView arg0, int arg1) {\n\n }\n\n public void onMapInitHandler(NMapView arg0, NMapError arg1) {\n\n if (arg1 == null) {\n // 표시해줄 위치\n mMapController.setMapCenter(new NGeoPoint(126.978371, 37.5666091), 11);\n } else {\n Toast.makeText(getApplicationContext(), arg1.toString(), Toast.LENGTH_SHORT).show();\n }\n }\n\n public void onMapCenterChangeFine(NMapView arg0) {\n\n }\n\n public void onMapCenterChange(NMapView arg0, NGeoPoint arg1) {\n\n }\n\n public void onAnimationStateChange(NMapView arg0, int arg1, int arg2) {\n\n }\n });\n //맵뷰의 이벤트리스너의 정의.\n mMapView.setOnMapViewTouchEventListener(new NMapView.OnMapViewTouchEventListener() {\n\n public void onTouchDown(NMapView arg0, MotionEvent arg1) {\n\n }\n\n @Override\n public void onTouchUp(NMapView nMapView, MotionEvent motionEvent) {\n\n }\n\n public void onSingleTapUp(NMapView arg0, MotionEvent arg1) {\n\n }\n\n public void onScroll(NMapView arg0, MotionEvent arg1, MotionEvent arg2) {\n\n }\n\n public void onLongPressCanceled(NMapView arg0) {\n\n }\n\n public void onLongPress(NMapView arg0, MotionEvent arg1) {\n\n }\n });\n mMapController = mMapView.getMapController();\n super.setMapDataProviderListener(new OnDataProviderListener() {\n\n public void onReverseGeocoderResponse(NMapPlacemark arg0, NMapError arg1) {\n\n }\n });\n }", "@Override\r\n public void onGlobalLayout() {\r\n LatLngBounds bounds = new LatLngBounds.Builder()\r\n .include(origi)\r\n .include(desti)\r\n .build();\r\n\r\n\r\n map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 50));\r\n }", "public void buildEmptyMap() {\n this.emptyMap = new BufferedImage(this.boulderDashModel.getArea().getDimensionWidth() * zoom, this.boulderDashModel.getArea().getDimensionHeight() * zoom, BufferedImage.TYPE_INT_RGB);\n final Graphics2D graphics = (Graphics2D) this.emptyMap.getGraphics();\n graphics.drawImage(this.boulderDashModel.getArea().getImage(), 0, 0, this.boulderDashModel.getArea().getDimensionWidth() * zoom, this.boulderDashModel.getArea().getDimensionHeight() * zoom, null);\n }", "private void panMap(int x, int y){\r\n Point p = map.getMapCenter();\r\n p.x += x;\r\n p.y += y;\r\n map.setMapCenter(p);\r\n mapPane.render();\r\n }", "void reconfigure() {\n computePosition(_primaryPlot.getScreenCoords(findCurrentCenterPoint()), false);\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n mapView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE\n | View.SYSTEM_UI_FLAG_FULLSCREEN\n | View.SYSTEM_UI_FLAG_LAYOUT_STABLE\n | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\n | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);\n }", "private void setTemplate(MazeTemplate mt)\n {\n if (mt == mCurrentTemplate)\n return;\n\n mCurrentTemplate = mt;\n if (mCurrentTemplate == null)\n {\n mMazeView.setEditable(true);\n }\n else\n {\n mMazeView.setEditable(false);\n mt.reset();\n }\n mMazeView.setTemplate(mt);\n }", "public void toMap(View view) {\n startActivity(new Intent(LaunchingActivity.this, MapsActivity.class));\n }", "private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }", "public MapScreen() {\n\t\tthis(DEFAULT_WIDTH, DEFAULT_HEIGHT); // default size for map screen.\n\t}", "@Override\n public void onResume() {\n super.onResume();\n mapView.onResume();\n }", "@Override\n public void onResume() {\n super.onResume();\n mapView.onResume();\n }", "protected void zoomToPresent(){\n if(xpCursor1 >=0){\n ixDataCursor1 = ixDataShown[xpCursor1];\n }\n if(xpCursor2 >=0){\n ixDataCursor2 = ixDataShown[xpCursor2];\n }\n xpCursor1New = xpCursor2New = cmdSetCursor; \n if(widgg.timeorg.timeSpread > 100) { widgg.timeorg.timeSpread /=2; }\n else { widgg.timeorg.timeSpread = 100; }\n bPaintAllCmd = true;\n widgg.redraw(100, 200);\n }", "public void map(View view) {\n Intent intent = new Intent(this, MapsActivity.class);\n startActivity(intent);\n }", "private void setUpMap() throws IOException {\n // Get last location which means current location\n lastKnownLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n\n if (lastKnownLocation != null) {\n // shift view to current location\n LatLng latlng = new LatLng(lastKnownLocation.getLatitude(), lastKnownLocation.getLongitude());\n Geocoder geocoder = new Geocoder(this);\n adminArea = geocoder.getFromLocation(latlng.latitude, latlng.longitude, 1).get(0).getAdminArea();\n CameraUpdate update = CameraUpdateFactory.newLatLngZoom(latlng, 12);\n mMap.moveCamera(update);\n } else {\n Toast.makeText(this, \"Current Location is not Available\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\r\n public void reset() {\r\n planetResearchMap.clear();\r\n }", "void setVisualizationType(MapVisualizationType visType);", "public void setEmptyView(View emptyView);", "public String toggleMap() {\r\n\t\tMap temp = sensor.getTrueMap();\r\n\t\tif (Map.compare(temp, smap.getMap())) {\r\n\t\t\tsmap.setMap(map.copy());\r\n\t\t\treturn \"robot\";\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsmap.setMap(temp.copy());\r\n\t\t\treturn \"simulated\";\r\n\t\t}\r\n\t}", "private void resetViewport() {\n final Viewport v = new Viewport(chart.getMaximumViewport());\n v.bottom = viewportBottom;\n v.top = viewportTop;\n v.left = 0;\n v.right = numberOfPoints - 1;\n if (v.right < 1){\n v.right = 1;\n }\n chart.setMaximumViewport(v);\n chart.setCurrentViewport(v);\n }", "@Override\n public void onMapLoaded() {\n mMap.animateCamera(cu);\n\n }", "@SuppressWarnings(\"unchecked\") // Needed to stop Eclipse whining\n private void resetWithHole() {\n Entry<K, V>[] entries = new Entry[] {a, c};\n super.resetMap(entries);\n navigableMap = (NavigableMap<K, V>) getMap();\n }", "@Override\r\n\tpublic GroupBoardDto gbViewSelect1(Map<String, String> map) {\n\t\treturn null;\r\n\t}", "public void changeToStandard(){\n drawAttributeManager.toggleStandardView();\n getContentPane().setBackground(DrawAttribute.whiteblue);\n canvas.repaint();\n }", "public void upPressed()\r\n {\r\n worldPanel.newMapPos(0,-zoom);\r\n miniMap.newMapPos(0,-1);\r\n }", "public void moveViewTo(int newX, int newY) {\n int scaledWidth = (int) (TileDataRegister.TILE_WIDTH * scale);\n int scaledHeight = (int) (TileDataRegister.TILE_HEIGHT * scale);\n int baseX = (int) (map.getWidth() * TileDataRegister.TILE_WIDTH * scale) / 2;\n\n int x = baseX + (newY - newX) * scaledWidth / 2;\n x -= viewPortWidth * 0.5;\n\n int y = (newY + newX) * scaledHeight / 2;\n y -= viewPortHeight * 0.5;\n\n targetXOffset = -1 * x;\n targetYOffset = -1 * y;\n\n doPan = true;\n\n gameChanged = true;\n }", "private void changeView(){\r\n\t\t\tm.changeView(Views.GAME, gameType, game);\r\n\t}", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tif(map.isSatellite()){\r\n\t\t\t\t\t\tmap.setSatellite(false);\r\n\t\t\t\t\t\tmap.setStreetView(true);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tmap.setSatellite(true);\r\n\t\t\t\t\t\tmap.setStreetView(false);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "public void setupView(int near, int far) {\n\t\tmGL.glMatrixMode(GL10.GL_PROJECTION);\n\t\tmGL.glLoadIdentity();\n\t\tmGL.glOrthof(0, mRenderer.getWidth(), -mRenderer.getHeight(), 0, near, far);\n\t\t\n\t\t// Select a clean model view\n\t\tmGL.glMatrixMode(GL10.GL_MODELVIEW);\n\t\tmGL.glLoadIdentity();\n\t\t\n\t\t// Rotate world by 180 around x axis so positive y is down\n\t\tmGL.glRotatef(-180, 1, 0, 0);\n\t}", "public void initGC(){\n\n gc.translate(-map.getwX(),-map.getwY());\n\n// gc.translate((map.getWinWidth()/2-map.getwX()),(map.getWinHeight()/2-map.getwY()));\n }", "@Override\n protected void onResume() {\n super.onResume();\n mapView.onResume();\n }", "public void setMap01(){\n\t\tmapSelect = \"map01.txt\";\n\t\treloadMap(mapSelect);\n\t\tsetImg(mapSelect);\n\t}" ]
[ "0.6690832", "0.6614755", "0.6309793", "0.6232579", "0.6223158", "0.6214938", "0.61386174", "0.6096509", "0.6094889", "0.60831255", "0.60706747", "0.6050689", "0.6039982", "0.6033612", "0.60013777", "0.59912694", "0.5987361", "0.59555674", "0.5946003", "0.5944277", "0.5944277", "0.59296006", "0.5901165", "0.58991325", "0.585385", "0.5851382", "0.5848941", "0.5842227", "0.5822116", "0.5809607", "0.5799511", "0.57822317", "0.5763106", "0.5752169", "0.57366955", "0.57258475", "0.5721019", "0.5720081", "0.57083243", "0.57067007", "0.5706538", "0.5705421", "0.5703903", "0.5684578", "0.56768584", "0.56696707", "0.5667104", "0.5660768", "0.5660248", "0.5648831", "0.56314707", "0.5624458", "0.56191385", "0.5618785", "0.5612442", "0.5606078", "0.56025785", "0.55943334", "0.55859995", "0.5573835", "0.5569325", "0.5569023", "0.5567403", "0.5567003", "0.5547709", "0.55452245", "0.5541931", "0.55350596", "0.5531659", "0.5529676", "0.5529129", "0.55225015", "0.55161965", "0.5495514", "0.54926", "0.54884434", "0.547532", "0.546518", "0.54617894", "0.54617894", "0.546142", "0.545636", "0.5452858", "0.5448401", "0.54394495", "0.54331505", "0.54325646", "0.5429974", "0.54256284", "0.54223907", "0.5421211", "0.5417774", "0.54050916", "0.5401814", "0.5395771", "0.5395345", "0.5393255", "0.539102", "0.5390473", "0.5389192" ]
0.7840227
0
Creates a dialog showing the user's arrival
private void showArrivalNotification(int image, String location) { NotificationFragment notification = new NotificationFragment(getActivity()); notification.setNotifierImage(image); notification.setNotifierText("You are at " + location + "\n\n Look for the marker and switch to AR view in the menu to scan barcodes!"); notification.show(getActivity().getFragmentManager(), "pop up"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void dialogCreateAppointment(){\n\n String day = spin_day.getSelectedItem().toString();//Get the text of the spinner\n String time = spin_start.getSelectedItem().toString()+ \" to \" +\n spin_end.getSelectedItem().toString();//Get the text of the spinner\n String fullTime = day + \" at \" + time;\n\n /**\n * Event of the dialog box (found on STACKOVERFLOW)\n */\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Appointment\");\n builder.setMessage(\"You sure you want to create an Appointment:\\n\" +\n fullTime);\n\n\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n getValidity();\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n\n }", "private void createStopJourneyDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setMessage(\"Do you want to stop your current journey\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // user wants to stop his current journey\n Intent intent = new Intent(DestinationReachedReceiver.DESTINATION_REACHED_FILTER_TAG);\n LocalBroadcastManager.getInstance(getApplicationContext()).sendBroadcast(intent);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n builder.show();\n\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String mess = \"They decliened your invitation\";\n if(getArguments().getBoolean(\"hostDeclined\"))\n {\n mess = \"They canceled their invitation\";\n }\n builder.setMessage(mess)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n \r\n LayoutInflater inflater = getActivity().getLayoutInflater();\r\n builder.setTitle(\"New Wallet\");\r\n \r\n\t final View view = inflater.inflate(R.layout.new_wallet_dialog, null);\r\n\t \r\n\t final EditText name = (EditText) view.findViewById(R.id.newWallet_text);\r\n\t \r\n builder.setPositiveButton(R.string.confirmRecord, new DialogInterface.OnClickListener() {\r\n \r\n \tpublic void onClick(DialogInterface dialog, int id) {\r\n \t\tlistener.comfirmPressed(name.getText().toString());\t\r\n \t\t}\r\n });\r\n builder.setNegativeButton(R.string.cancelRecord, new DialogInterface.OnClickListener() {\r\n \tpublic void onClick(DialogInterface dialog, int id) {\r\n \t\tlistener.cancelPressed();\r\n \t\t}\r\n \t});\r\n // Create the AlertDialog object and return it\r\n return builder.create();\r\n }", "private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }", "void showCreatorWaitingRoom();", "public void showVerifyTravelExpenseDialog() {\n\n\t\t\tverifyTravelExpenseDialogBox = new DialogBox(true);\n\t\t\tverifyTravelExpenseDialogBox.setGlassEnabled(true);\n\t\t\tverifyTravelExpenseDialogBox.setText(\"Comprobación de Viáticos.\");\n\n\t\t\tVerticalPanel vp = new VerticalPanel();\n\t\t\tvp.setSize(\"400px\", \"100px\");\n\t\t\tverifyTravelExpenseDialogBox.setWidget(vp);\n\n\t\t\tUiRequisitionCheekingCostsForm uiRequisitionCheekingCostsForm = new UiRequisitionCheekingCostsForm(getUiParams(), vp, bmoRequisition);\n\t\t\tuiRequisitionCheekingCostsForm.show();\n\n\t\t\tverifyTravelExpenseDialogBox.center();\n\t\t\tverifyTravelExpenseDialogBox.show();\n\t\t}", "public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }", "private void showDialog() {\n try {\n pDialog.setMessage(getString(R.string.please_wait));\n pDialog.setIndeterminate(false);\n pDialog.setCancelable(false);\n pDialog.setCanceledOnTouchOutside(false);\n pDialog.show();\n } catch (Exception e) {\n // TODO: handle exception\n }\n\n }", "public void show_dialog_box (){\n //show the message of turning on the location\n Dialog dialog = new Dialog(this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.location_message_r);\n dialog.show();\n }", "private void showRewardDialog() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\taddRewardDialogue = RewardsDialogFragment.newInstance(\"Some Title\");\n\t\taddRewardDialogue.show(fm, \"fragment_edit_task\");\n\t}", "public Dialog createAddPersonDialog(String title, String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getMyAcitivty());\n builder.setTitle(title);\n builder.setMessage(msg);\n\n // Use an EditText view to get user input.\n final EditText input = new EditText(getMyAcitivty());\n input.setText(\"\");\n builder.setView(input);\n\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int whichButton) {\n String value = input.getText().toString();\n Log.d(TAG, \"user input: \" + value);\n inputDialogResult = value;\n launchTrainingActivity();\n// AlertDialog dg =\n// SelectServerAlertDialog.createDialog(\n// getContext(),\n// \"Pick a Server\",\n// getAllIps(),\n// launchTrainingActivityAction,\n// cancelAction,\n// true);\n// dg.show();\n }\n });\n builder.setNegativeButton(\"Cancel\", SelectServerAlertDialog.cancelAction);\n return builder.create();\n }", "void showDialog() {\n\t\tDFTimePicker dtf = DFTimePicker.newInstance();\n DialogFragment newFragment = dtf;\n newFragment.show(getFragmentManager(), \"dialog\");\n }", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "private void openSendDialogue() {\n AlertDialog.Builder builder = new AlertDialog.Builder(getLayoutInflater().getContext());\n builder.setTitle(\"Transfer selected coins\");\n\n // Provide options for user\n CharSequence[] options = {\"To bank account\", \"To a friend\"};\n\n // Clear previously selected transfer\n mSelectedTransfer = \"\";\n\n // Set selected transfer\n builder.setSingleChoiceItems(options, -1, (dialog, which) -> {\n switch(which) {\n case 0:\n mSelectedTransfer = \"bank\";\n break;\n case 1:\n mSelectedTransfer = \"friend\";\n break;\n default:\n Log.d(TAG, \"[openSendDialogue] option not recognised: \" + which);\n }});\n\n // Execute transfer if one is not already in progress\n builder.setPositiveButton(\"OK\", (dialog, which) -> {\n switch(mSelectedTransfer) {\n case \"bank\":\n if(!mBankTransferInProgress) {\n transferToBankAccount();\n } else {\n displayToast(getString(R.string.msg_wait_on_transfer_completion));\n }\n break;\n case \"friend\":\n if (!mFriendTransferInProgress) {\n friendTransfer();\n } else {\n displayToast(getString(R.string.msg_wait_on_transfer_completion));\n }\n break;\n case \"\":\n displayToast(getString(R.string.msg_select_transfer_option));\n default:\n Log.d(TAG, \"[openSendDialogue] transfer not recognised: \" + mSelectedTransfer);\n }});\n\n builder.setNegativeButton(\"Cancel\", (dialog, which) -> dialog.cancel());\n builder.show();\n }", "@Override\n public Dialog onCreateDialog(Bundle state) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n // Set the title\n builder.setTitle(R.string.new_location_title);\n\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n // Pass null as the parent view because its going in the dialog layout\n view = inflater.inflate(R.layout.fire_report, null);\n builder.setView(view);\n\n populate();\n\n // Add a cancel button\n builder.setNegativeButton(R.string.close, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n Boolean checked = ((CheckBox) view.findViewById(R.id.checkExtinguished)).isChecked();\n if (fire.isExtinguished() != checked) {\n fire.setExtinguished(checked);\n if (!new Cloud(view.getContext()).updateExtinguishedToCloud(fire)) {\n fire.setExtinguished(!checked);\n view.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(view.getContext(), R.string.extinguished_failed, Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n }\n }).start();\n }\n });\n\n dlg = builder.create();\n\n return dlg;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(device.getName())\n \t\t.setTitle(R.string.bt_exchange_dialog_title)\n .setPositiveButton(R.string.bt_exchange_dialog_positive_btn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n \t //Add BT Device Activity\n \t performBTKeyExchange(device);\n }\n })\n .setNegativeButton(R.string.bt_exchange_dialog_negative_btn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n \t dismiss();\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "private void popupCalibratingDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.motion_calibrating);\n builder.setCancelable(false);\n builder.setMessage(R.string.motion_calibrating_message);\n\n calibratingDialog = builder.create();\n calibratingDialog.show();\n }", "public void run() {\n final androidx.appcompat.app.AlertDialog.Builder continueBookingDialog = new AlertDialog.Builder(view.getContext());\n continueBookingDialog.setTitle(\"Book locker for \" + marker.getTitle() + \" \" + marker.getSnippet() +\"?\");\n // resendVerificationMailDialog.setView(resendVerificationEditText);\n continueBookingDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n }\n });\n continueBookingDialog.setNegativeButton(\"Back\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Automatically close the dialog\n\n }\n });\n continueBookingDialog.show();\n\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_fire_missiles)\n .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View view = inflater.inflate(R.layout.complete_workout_dialog,null);\n builder.setView(view);\n completeScore = view.findViewById(R.id.score_edit_text);\n completeTime = view.findViewById(R.id.time_edit_text);\n\n // Inflate and set the layout for the dialog\n // Pass null as the parent view because its going in the dialog layout\n // Add action buttons\n builder.setMessage(\"\")\n .setPositiveButton(\"Ok \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n completeWorkoutListener.onCompletedWorkoutSelected(completeScore.getText().toString(), completeTime.getText().toString());\n }\n })\n .setNegativeButton(\" Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "void ShowWaitDialog(String title, String message);", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Limite mensal excedido! Na versão gratuita, o limite máximo de publicação de caronas mensais é 4 (quatro), atualize para a versão Pro e tenha publicações ilimitadas...\")\n .setPositiveButton(\"Ir\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n String url = \"https://play.google.com/store/apps/details?id=com.xetelas.nova\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n getContext().startActivity(i);\n }\n })\n .setNegativeButton(\"Voltar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View rootView = inflater.inflate(R.layout.fragment_message_dialog, null);\n msg = rootView.findViewById(R.id.msg);\n submit = rootView.findViewById(R.id.msg_submit);\n final int code = getTargetRequestCode();\n builder.setView(rootView);\n builder.setTitle(\"Enter a message:\");\n\n submit.setOnClickListener(new View.OnClickListener(){\n @Override\n public void onClick(View view) {\n\n sendResult(code);\n dismiss();\n\n\n }\n\n });\n\n return builder.create();\n }", "public void showStartTimeDialog(View v){\n DialogFragment dialogFragment = null;\n switch (v.getId()) {\n case R.id.newEvent_button_from_hour:\n dialogFragment = new StartTimePicker(0);\n break;\n case R.id.newEvent_button_to_hour:\n dialogFragment = new StartTimePicker(1);\n break;\n }\n dialogFragment.show(getFragmentManager(), \"start_time_picker\");\n }", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\t\tbuilder.setMessage(message).setTitle(\"Device's IP address :\")\n\t\t\t\t.setNeutralButton(\"OK\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t\t// close the dialog\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t// Create the AlertDialog object and return it\n\t\treturn builder.create();\n\t}", "public static void newJFXDialogPopUp(String min, String sec, String dist, StackPane stP) {\n System.out.println(\"DialogBox Posted\");\n JFXDialogLayout jfxDialogLayout = new JFXDialogLayout();\n jfxDialogLayout.setHeading(new Text(\"Time Details\"));\n jfxDialogLayout.setBody(new Text(\"Time Estimate: \" + min + \" \" + sec +\"\\n\" + \"Distance Estimate: \" + dist));\n JFXDialog dialog = new JFXDialog(stP, jfxDialogLayout, JFXDialog.DialogTransition.CENTER);\n JFXButton okay = new JFXButton(\"Okay\");\n okay.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent event) {\n dialog.close();\n\n }\n });\n jfxDialogLayout.setActions(okay);\n dialog.show();\n }", "public void showNewTaskDialog() {\n LayoutInflater inflater = getActivity().getLayoutInflater();\n final View v = inflater.inflate(R.layout.dialog_newtask, null);\n\n newTaskDialog = new AlertDialog.Builder(getActivity()).setView(v).create();\n //set view and text type\n TextView title = (TextView) v.findViewById(R.id.newTaskPageTitle);\n Typeface RalewayBold = Typeface.createFromAsset(getActivity().getAssets(), \"Raleway-Bold.ttf\");\n title.setTypeface(RalewayBold);\n\n //sets buttons\n Button done = (Button) v.findViewById(R.id.doneAddingTask);\n Button cancel = (Button) v.findViewById(R.id.CancelAddingTask);\n Button addUser = (Button) v.findViewById(R.id.newTaskAddUserButton);\n\n //get each field\n newTaskValidAssigneeIndicator = (ImageView) v.findViewById(R.id.newTaskValidAssigneeIndicator);\n newTaskAssigneeField = (TextInputEditText) v.findViewById(R.id.newTaskNewUserField);\n newtaskDateField = (TextInputEditText) v.findViewById(R.id.newTaskDueDateField);\n newTaskNameField = (TextInputEditText) v.findViewById(R.id.newTaskNameField);\n newTaskDescriptionField = (TextInputEditText) v.findViewById(R.id.newTaskDescriptionField);\n\n //create listeners\n newTaskAssigneeField.setOnEditorActionListener(this);\n newtaskDateField.setOnEditorActionListener(this);\n newTaskNameField.setOnEditorActionListener(this);\n newTaskDescriptionField.setOnEditorActionListener(this);\n\n //set button functions\n addUser.setOnClickListener(this);\n done.setOnClickListener(this);\n cancel.setOnClickListener(this);\n newtaskDateField.addTextChangedListener(this);\n newTaskDialog.show();\n }", "private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}", "DialogResult show();", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Done entering class?\")\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent tmp = new Intent(getContext(), course_info.class);\n startActivity(tmp);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "private Dialog recreateDialog() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(OptionActivity.this);\n builder.setMessage(\"Do you want to change your profile?\")\n .setPositiveButton(\"Yah!\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent intent = new Intent(OptionActivity.this, amountscreen.class);\n startActivity(intent);\n }\n })\n .setNegativeButton(\"Nope\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void dialogoAgregarUsuario() {\n vAgregarUsuario = new V_AgregarUsuario(new JFrame(), true);\n vAgregarUsuario.setVisible(true);\n }", "private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getArguments().getString(\"title\"))\n .setMessage(getArguments().getString(\"message\"))\n .setCancelable(false)\n .setPositiveButton(R.string.OK, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n // call callback method\n // mListener.onInfoDialogOKClick(InfoDialog.this);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void setUpDialog(final LatLng position) {\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Create Place-It\");\n\t\tLayoutInflater inflater = getLayoutInflater();\n\t\tfinal View dialog = inflater.inflate(R.layout.placeit_form, null);\n\t\tfinal EditText title = (EditText) dialog.findViewById(R.id.title);\n\t\tfinal EditText description = (EditText) dialog\n\t\t\t\t.findViewById(R.id.description);\n\t\talert.setView(dialog);\n\t\t\n\t\t/* Initialize submission button. */\n\t\talert.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\t/* User submits his/her placeit and this method is called */\n\t\t\t\tString descText = description.getText().toString();\n\t\t\t\tString titleText = title.getText().toString();\n\t\t\t\t/* Notification of added place-it */\n\t\t\t\tToast.makeText(MainActivity.this, \"Place-it added!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\tPlaceIt placeit = controller.AddPlaceIt(titleText, descText, position);\n\t\t\t\tsetupTimeDialog(placeit);\n\t\t\t\tsetUpSideBar();\n\t\t\t}\n\t\t});\n\t\t\n\t\t/* Cancel button which does nothing when clicked and exits the dialog. */\n\t\talert.setNegativeButton(\"Cancel\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Nothing added!\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\talert.show();\n\t}", "public void showGpsAlert() {\r\n final Dialog dialog = new Dialog(VenusActivity.appActivity, android.R.style.Theme_Translucent_NoTitleBar);\r\n dialog.setContentView(R.layout.gps);\r\n Button gps_yes = (Button)dialog.findViewById(R.id.button_yes);\r\n gps_yes.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tVenusActivity.appActivity.startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n Button gps_cancel = (Button)dialog.findViewById(R.id.button_cancel);\r\n gps_cancel.setOnClickListener(new OnClickListener() {\r\n \t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}\r\n });\r\n final Handler threadHandler = new Handler(); ; \r\n new Thread() {\r\n \t@Override\r\n \tpublic void run() {\r\n \t\t threadHandler.post( new Runnable(){\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tdialog.show();\r\n\t\t\t\t\t}\r\n \t\t });\r\n \t}\r\n }.start();\r\n\t}", "@SuppressLint(\"InflateParams\")\r\n\tprivate void showDialog() {\n\t\tLayoutInflater layoutInflater = LayoutInflater.from(getActivity());\r\n\t\tviewAddEmployee = layoutInflater\r\n\t\t\t\t.inflate(R.layout.activity_dialog, null);\r\n\t\teditText = (EditText) viewAddEmployee.findViewById(R.id.editText1);\r\n\t\ttv_phone = (TextView) viewAddEmployee.findViewById(R.id.tv_phone);\r\n\t\tbt_setting = (Button) viewAddEmployee.findViewById(R.id.bt_setting);\r\n\t\tbt_cancel = (Button) viewAddEmployee.findViewById(R.id.bt_cancel);\r\n\t\tString tel = SharePreferenceUtil.getInstance(\r\n\t\t\t\tgetActivity().getApplicationContext()).getUserTel();\r\n\t\ttv_phone.setText(StringUtils.getTelNum(tel));\r\n\r\n\t\tshowPop();\r\n\r\n\t\tbt_setting.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tString psd = SharePreferenceUtil.getInstance(\r\n\t\t\t\t\t\tgetActivity().getApplicationContext()).getUserPsd();\r\n\t\t\t\tString password = editText.getText().toString().trim();\r\n\t\t\t\tif (TextUtils.isEmpty(password)) {\r\n\t\t\t\t\tShowToast(\"密码不能为空!\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (password.equals(psd)) {\r\n\t\t\t\t\tavatorPop.dismiss();\r\n\t\t\t\t\tintentAction(getActivity(), GesturePsdActivity.class);\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\tShowToast(\"输入密码错误!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbt_cancel.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tavatorPop.dismiss();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }", "private void showAddWayPointActivity() {\n Intent intent = new Intent(this, ActivityNewWaypoint.class);\n this.startActivityForResult(intent,CREATE_WAYPOINT_REQUEST);\n }", "private void startMealToDatabaseAlert() {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);\n TextView dialogTitle = new TextView(this);\n int blackValue = Color.parseColor(\"#000000\");\n dialogTitle.setText(R.string.title_dialog_meal);\n dialogTitle.setGravity(Gravity.CENTER_HORIZONTAL);\n dialogTitle.setPadding(0, 30, 0, 0);\n dialogTitle.setTextSize(25);\n dialogTitle.setTextColor(blackValue);\n dialogBuilder.setCustomTitle(dialogTitle);\n View dialogView = getLayoutInflater().inflate(R.layout.dialog_add_meal, null);\n\n this.startEditTexts(dialogView);\n this.startLocationSpinner(dialogView);\n this.startAddPhotoButton(dialogView);\n this.startMealDialogButtonListeners(dialogBuilder);\n\n dialogBuilder.setView(dialogView);\n AlertDialog permission_dialog = dialogBuilder.create();\n permission_dialog.show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_leave_channel)\n .setPositiveButton(R.string.button_yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.v(LOGTAG, \"YES clicked\");\n getGTracker().send(MapBuilder\n .createEvent(\"ui_action\", \"channel_dialog\", \"leave_yes\", null)\n .build()\n );\n mListener.onDialogLeaveChannelConfirm(LeaveChanDialog.this);\n }\n })\n .setNegativeButton(R.string.button_no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.v(LOGTAG, \"NO clicked\");\n getGTracker().send(MapBuilder\n .createEvent(\"ui_action\", \"channel_dialog\", \"leave_no\", null)\n .build()\n );\n }\n })\n .setTitle(R.string.dialog_signup_title);\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n\t\tLayoutInflater inflater = getActivity().getLayoutInflater();\r\n\t\tView dialogView = inflater.inflate(R.layout.posted, null);\r\n\r\n\t\tbuilder.setTitle(\"Posted Message to:\");\r\n\t\tbuilder.setView(dialogView);\r\n\t\tfinal AlertDialog dialog = builder.show();\r\n\t\t//dialog.getWindow().setLayout(520, 525);\r\n\t\t\r\n\t\tTextView message = (TextView) dialog.findViewById(R.id.sites_posted);\r\n\t\tmessage.setText(sites);\r\n\r\n\t\tButton done = (Button) dialog.findViewById(R.id.done);\r\n\t\tdone.setOnClickListener(new OnClickListener(){\r\n\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO open social media options\r\n\t\t\t\tdialog.cancel();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\treturn dialog;\r\n\t}", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tConfirmDialog.show(UI.getCurrent(), MESSAGE_1,\"\",\"Aceptar\",\"Crear mas Usuarios\",\n\t\t\t\t new ConfirmDialog.Listener() {\n\n\t\t\t\t public void onClose(ConfirmDialog dialog) {\t\n\t\t\t\t \tent= false;\n\t\t\t\t if (dialog.isConfirmed()) {\n\t\t\t\t // Confirmed to continue\t\n\t\t\t\t \tc.navegar((StartView.VIEW_NAME));\n\t\t\t\t } else {\n\t\t\t\t // User did not confirm\t\t\t \n\t\t\t\t \t//c.crearWindow(RegistrarUser.VIEW_NAME);\n\t\t\t\t \tc.navegar((StartView.VIEW_NAME));\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t });\n\t\t\t\t\n\t\t\t\t//Notification nota= new Notification(\"Registro Exitoso!\",Notification.Type.HUMANIZED_MESSAGE);\n\t\t\t\t//nota.setDelayMsec(-1);\n\t\t\t\t//nota.show(Page.getCurrent());\t\n\t\t\t\t\n\t\t\t\tclose();\t\t\t\n\t\t\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String mess = \"The user your trying to connect to does not have a name set\";\n if(getArguments().getBoolean(\"me\"))\n {\n mess = \"Someone tried to connect to you for a game but you dont have a name set\";\n }\n builder.setMessage(mess)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void run() {\n final androidx.appcompat.app.AlertDialog.Builder continueBookingDialog = new AlertDialog.Builder(view.getContext());\n continueBookingDialog.setTitle(\"Book locker for \" + marker.getTitle() + \" \" + marker.getSnippet() +\"?\");\n // resendVerificationMailDialog.setView(resendVerificationEditText);\n continueBookingDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n //Pass marker.getTitle();\n// AccountsFragment af = new AccountsFragment();\n// Bundle args = new Bundle();\n// args.putString(\"title\", marker.getTitle());\n// af.setArguments(args);\n// Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n// .show();\n//\n// getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, af).commit();\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n }\n });\n continueBookingDialog.setNegativeButton(\"Back\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Automatically close the dialog\n\n }\n });\n continueBookingDialog.show();\n\n }", "void showDialog() {\n\t\tDialogFragment newFragment = MyAlertDialogFragment\n\t\t\t\t.newInstance(R.string.not_enoughth_information);\n\t\tnewFragment.show(getFragmentManager(), \"dialog\");\n\t}", "public void showDialog(View v){\n FragmentManager fm = getFragmentManager();\n PaymentMethodDialog paymentDialog = new PaymentMethodDialog();\n paymentDialog.show(fm, \"PaymentDialog\");\n Bundle data = new Bundle();\n// data.putString(\"receiver\", receiver);\n paymentDialog.setArguments(data);\n paymentDialog.setArguments(data);\n }", "public void show() {\n listenerHandler.onShow(dialog);\n dialog.show();\n }", "public void popUpDialogBox(View passedView, int code) {\n mBuilder = new AlertDialog.Builder(TrailActivity.this);\n if(code == 0) {\n Date editedTrailDt = null;\n editedView = passedView;\n editedTrailName = (EditText) editedView.findViewById(R.id.TrailNametxt);\n editedTrailModule = (EditText) editedView.findViewById(R.id.Moduletxt);\n editedTrailCode = (EditText) editedView.findViewById(R.id.TrailCodetxt);\n editedTrailDate = (EditText) editedView.findViewById(R.id.datetxt);\n try { editedTrailDt = new SimpleDateFormat(\"dd-MM-yyyy\", Locale.ENGLISH).parse(editedTrailDate.getText().toString().trim()); }\n catch (ParseException e) { e.printStackTrace(); }\n editedTrailId = geTrailId(editedTrailCode.getText().toString(), editedTrailDt);\n }\n else editedView = null;\n initDialogBoxViews(passedView);\n setDateClickListener();\n setTrailDateClickListener();\n setAddtrailBtnClickListener();\n mBuilder.setView(passedView);\n dialog = mBuilder.create();\n dialog.show();\n }", "public void showLifeCycleDialog() {\n\t\t\tlifeCycleDialogBox = new DialogBox(true);\n\t\t\tlifeCycleDialogBox.setGlassEnabled(true);\n\t\t\tlifeCycleDialogBox.setText(\"Seguimiento del Documento\");\n\n\t\t\t// Vertical Panel\n\t\t\tVerticalPanel vp = new VerticalPanel();\n\t\t\tvp.setSize(\"100%\", \"100%\");\n\t\t\tvp.add(lifeCycleCellTree);\n\t\t\tvp.add(new HTML(\"&nbsp;\"));\n\t\t\tvp.add(lifeCycleCloseButton);\n\n\t\t\t// Scroll Panel\n\t\t\tScrollPanel scrollPanel = new ScrollPanel();\n\t\t\tif (getUiParams().isMobile())\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() + \"px\", Window.getClientHeight() + \"px\");\n\t\t\telse\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() * .4 + \"px\", Window.getClientHeight() * .3 + \"px\");\n\t\t\tscrollPanel.setWidget(vp);\n\t\t\tlifeCycleDialogBox.setWidget(scrollPanel);\n\n\t\t\tDouble d = Window.getClientWidth() * .3;\n\t\t\tif (!getUiParams().isMobile()) \n\t\t\t\tlifeCycleDialogBox.setPopupPosition(d.intValue(), UiTemplate.NORTHSIZE * 3);\n\n\t\t\tlifeCycleDialogBox.show();\n\t\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String mess = \"Stalemate!\";\n if(getArguments().getBoolean(\"check\"))\n {\n mess = \"Checkmate! \"+getArguments().getString(\"team\")+\" wins\";\n }\n builder.setMessage(mess)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.d(TAG, \"Ok\");\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void viewAlarm() {\n\t\tfinal Dialog dialog = new Dialog(this);\n\t\tdialog.setContentView(R.layout.date_time_picker);\n\t\tdialog.setTitle(\"Set Reminder\");\n\t\tButton saveDate = (Button)dialog.findViewById(R.id.btnSave);\n\t\tsaveDate.setOnClickListener(new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tsetAlarm(dialog);\n\t\t\t}\n\t\t});\n\t\tdialog.show();\n\t}", "@Override\n protected Dialog onCreateDialog(int id) {\n Dialog dialog = null;\n String title;\n String message;\n String value;\n \n Units units = new Units(Settings.KEY_UNITS);\n \t\n \tswitch (id) {\n \tcase DIALOG_CONFIRM_ODOMETER_LOW_ID:\n \t\ttitle = getString(R.string.title_confirm_odometer);\n \t\tmessage = getString(R.string.message_confirm_odometer);\n \t\tvalue = Integer.toString(current_odometer);\n \t\tmessage = String.format(message,value);\n \tdialog = ConfirmationDialog.create(this,this,id,title,message);\n \tbreak;\n \t\n \tcase DIALOG_CONFIRM_GALLONS_HIGH_ID:\n \t\ttitle = getString(R.string.title_confirm_gallons);\n \t\ttitle = String.format(title,units.getLiquidVolumeLabel());\n \t\tmessage = getString(R.string.message_confirm_gallons);\n \t\tvalue = String.format(App.getLocale(),\"%.1f %s\", \n \t\t\t\ttank_size, units.getLiquidVolumeLabelLowerCase());\n \t\tmessage = String.format(message,value);\n \tdialog = ConfirmationDialog.create(this,this,id,title,message);\n \tbreak;\n \t\n \t}\n \treturn dialog;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Do you want to play a game with \"+getArguments().getString(\"name\")+\"?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n acceptGame(getContext());\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n declineGame(getContext());\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void popupAdd() {\n builder = new AlertDialog.Builder(getView().getContext());\n View views = getLayoutInflater().inflate(R.layout.departmentpopup, (ViewGroup) null);\n DepartmentName = (EditText) views.findViewById(R.id.department_name);\n DepartmentId = (EditText) views.findViewById(R.id.department_id);\n pbar =views.findViewById(R.id.departmentProgress);\n Button button =views.findViewById(R.id.save_depart);\n saveButton = button;\n button.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n addDeparatments();\n }\n });\n builder.setView(views);\n AlertDialog create =builder.create();\n dialog = create;\n create.show();\n }", "public void callWaiter(View v){\n\n new AlertDialog.Builder(this).setMessage(\"Appeler un serveur ?\").setPositiveButton(\"Oui\", null).setNegativeButton(\"Non\",null).show();\n }", "public void showStartDateDialog(View v){\n DialogFragment dialogFragment = null;\n switch (v.getId()) {\n case R.id.newEvent_button_from:\n dialogFragment = new StartDatePicker(0);\n break;\n case R.id.newEvent_button_to:\n dialogFragment = new StartDatePicker(1);\n break;\n }\n dialogFragment.show(getFragmentManager(), \"start_date_picker\");\n }", "void generar_dialog_preguntas();", "protected void showTimeSlotDetails(final String username, final String phoneNumber)\n {\n //Creates the dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Details\");\n\n //Creates the UI\n final LinearLayout layout = new LinearLayout(this);\n final TextView usernameTxt = new TextView(this);\n usernameTxt.setText(username);\n final TextView phoneNumberTxt = new TextView(this);\n phoneNumberTxt.setText(phoneNumber);\n\n //Adding the views to the layout\n layout.addView(usernameTxt);\n layout.addView(phoneNumberTxt);\n layout.setOrientation(LinearLayout.VERTICAL);\n layout.setGravity(Gravity.CENTER_HORIZONTAL);\n\n builder.setView(layout);\n\n // Set up the buttons\n builder.setPositiveButton(\"Done\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }\n });\n\n\n builder.show();\n }", "private void showCheckDialog() {\n AlertDialog.Builder showAuditAlert = new AlertDialog.Builder(this); // Create Alert dialog\n showAuditAlert.setTitle(\"Total prize\"); // Set title\n showAuditAlert.setMessage(\"= \"+mydb.getResultDayAudit(year,month,day).intValue()+\"\"); // Set message\n\n showAuditAlert.setPositiveButton(\"Done\",\n new DialogInterface.OnClickListener()\n { // Can hear \"CLICK\"\n @Override\n public void onClick(DialogInterface dialog,int which)\n {\n \tdialog.dismiss(); // CLICK then disappear\n }\n }\n );\n showAuditAlert.show(); // Show dialog that created upper this line\n }", "private void doDialogMsgBuilder() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getResources().getString(R.string.OverAge))\n .setCancelable(false)\n .setPositiveButton(getResources().getString(R.string.ok),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n\n AlertDialog alert = builder.create();\n alert.show();\n }", "private void usernameTakenDialog() {\n Dialog dialog = new Dialog(\"Username taken\", cloudSkin, \"dialog\") {\n public void result(Object obj) {\n System.out.println(\"result \" + obj);\n }\n };\n dialog.text(\"This username has already been taken, try a new one.\");\n dialog.button(\"OK\", true);\n dialog.show(stage);\n }", "private void buildWaitingDialog(){\n\t\tmainDialog = new JDialog(mainWindow,\"Waiting for server...\");\n\t\tJPanel p1= new JPanel(new BorderLayout());\n\t\tp1.setBackground(Color.white);\n\n\t\t//waiting text\n\t\tJLabel lab = new JLabel(\"Please wait...\");\n\t\tlab.setFont( new Font(\"URW Gothic L\",Font.BOLD, 15));\n\t\tlab.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tp1.add(lab, BorderLayout.NORTH);\n\t\t\n\t\t//waiting animation\n\t\tImageIcon gif = new ImageIcon (\"./client_images/load.gif\");\n\t\tJLabel imgLabel = new JLabel(gif);\n\t\tp1.add(imgLabel,BorderLayout.CENTER);\n\n\t\t//abort button to close client application\n\t\tJButton abort = new JButton (\"Abort\");\n\t\t//register anonymous listener class that closes up application\n\t\tabort.addActionListener (new ActionListener(){\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\t\t\tClientGui.this.closeUp();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t);\n\t\tp1.add(abort,BorderLayout.SOUTH);\n\n\t\t//dialog settings\n\t\tmainDialog.getContentPane().add(p1);\n\t\tmainDialog.setLocationRelativeTo(mainWindow);\n\t\tmainDialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\t\tmainDialog.setModal(true);\n\t\tmainDialog.setMinimumSize(new Dimension(300,200));\n\t\tmainDialog.setMaximumSize(new Dimension(300,200));\n\t\tmainDialog.setResizable(false);\n\t\tmainDialog.setVisible(true);\n\t\t\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState)\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n //attempt to extract number\n number = ((TelephonyManager)((getActivity()).getSystemService(\n Context.TELEPHONY_SERVICE))).getLine1Number();\n\n //create edit text view\n input = new EditText(getActivity());\n input.setHint(R.string.phone_number_hint);\n input.setInputType(InputType.TYPE_CLASS_PHONE);\n input.addTextChangedListener(\n new PhoneNumberFormattingTextWatcher());\n //show edit text if phone number is unavailable\n input.setVisibility(((number == null) || \"\".equals(number))\n ? View.VISIBLE : View.GONE);\n\n builder.setView(input);\n builder.setTitle(R.string.generate_title);\n builder.setPositiveButton(R.string.generate_button, this);\n\n return builder.create();\n }", "public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }", "public AlertDialog createSimpleDialog(String mensaje, String titulo, final String typ) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n View v = inflater.inflate(R.layout.dialog_monitoring_info, null);\n builder.setView(v);\n\n TextView tvTitle = (TextView) v.findViewById(R.id.tv_title_dialog);\n TextView tvDescription = (TextView) v.findViewById(R.id.tv_description_dialog);\n\n tvTitle.setText(titulo);\n tvTitle.setCompoundDrawables(ContextCompat.getDrawable(v.getContext(), R.drawable.ic_question), null, null, null);\n tvDescription.setText(mensaje);\n\n builder.setPositiveButton(getResources().getString(R.string.info_dialog_option_accept),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (typ.equals(\"REGIST\")){\n MonitoringRegistrationFormFragment fragment = new MonitoringRegistrationFormFragment();\n Bundle params = new Bundle();\n params.putString(\"AREA\", area);\n params.putString(\"OPCION\", \"N\");\n fragment.setArguments(params);\n\n getActivity().getSupportFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.monitoring_principal_context, fragment)\n .commit();\n }\n else {\n AdminUserFormFragment fragment = new AdminUserFormFragment();\n getActivity().getSupportFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n getActivity().getSupportFragmentManager().beginTransaction()\n .replace(R.id.transaction_principal_context, fragment)\n .commit();\n }\n }\n },300);\n }\n })\n .setNegativeButton(getResources().getString(R.string.info_dialog_option_cancel),\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n builder.create().dismiss();\n if (typ.equals(\"REGIST\")){\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Intent intent = new Intent(getActivity(), MonitorMenuActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_SINGLE_TOP);\n startActivity(intent);\n getActivity().finish();\n }\n },300);\n }\n else {\n getActivity().finish();\n }\n }\n });\n\n return builder.create();\n }", "private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"REGISTRO PODA\");\n builder.setMessage(\"USUARIO O CONTRASEÑA INCORRECTA\");\n final AlertDialog.Builder ok = builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // You don't have to do anything here if you just want it dismissed when clicked\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void addRelationshipDialog() { new RelationshipDialog(); }", "public void showViewAddDirection(){\n JDialog dialogAddDirections = new JDialog();\n\n \n dialogAddDirections.setContentPane(addressView);\n new AddressController(addressView);\n dialogAddDirections.setLocationRelativeTo(null);\n dialogAddDirections.pack();\n dialogAddDirections.setVisible(true);\n }", "private void createAndShowDialog(final String message, final String title) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity ());\n\n builder.setMessage(message);\n builder.setTitle(title);\n builder.create().show();\n }", "private void showAlert(){\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(\"Your further details please:\")\n .setView(view);\n builder.setPositiveButton(\"Proceed\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent it = new Intent(getActivity(), StudentFurtherDetails.class);\n getActivity().startActivity(it);\n }\n\n });\n //call api for insertion\n builder.setNegativeButton(\"Later\", null)\n .setCancelable(false);\n AlertDialog alert = builder.create();\n alert.show();\n }", "@Override\r\n\tpublic void onStartedCheckout() {\n\r\n\t\tpDialog = new ProgressDialog(getActivity());\r\n\t\tpDialog.setMessage(\"Please Wait...\");\r\n\t\tpDialog.setCancelable(false);\r\n\t\tpDialog.setCanceledOnTouchOutside(false);\r\n\t\tpDialog.show();\r\n\r\n\t}", "private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }", "private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n String message = context.getString(R.string.gps_error_message);\n builder.setMessage(message).setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface d, int id) {\n context.startActivity(new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));\n d.dismiss();\n }\n }).setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface d, int id) {\n d.cancel();\n }\n });\n builder.create().show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n String msg = \"Love2Brew Android Application\\n\\nWould you like to learn some new ways to brew \" +\n \"your coffee? This App downloads info and step-by-step instructions about some fun coffee brewers.\"+\n \"\\nSelect a brewing technique \"+\n \"to learn more about it. \\nTo set a reminder for your coffee, click \\\"Set A Reminder\\\" \"+\n \"from the menu. The reminder will be sent to your notification bar.\\n\\nDesigned by SeanReinhardtApps.\";\n\n final ProgressDialog dialog = new ProgressDialog(getActivity());\n dialog.setTitle(\"About\");\n dialog.setMessage(msg);\n dialog.setCancelable(false);\n return dialog;\n }", "public void run() {\n final androidx.appcompat.app.AlertDialog.Builder continueBookingDialog = new AlertDialog.Builder(view.getContext());\n continueBookingDialog.setTitle(\"Book locker for \" + marker.getTitle() + \" \" + marker.getSnippet() +\"?\");\n // resendVerificationMailDialog.setView(resendVerificationEditText);\n continueBookingDialog.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n\n //Pass marker.getTitle();\n// AccountsFragment af = new AccountsFragment();\n// Bundle args = new Bundle();\n// args.putString(\"title\", marker.getTitle());\n// af.setArguments(args);\n// Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n// .show();\n//\n// getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, af).commit();\n Intent intent = new Intent(getActivity(), BookingActivity.class);\n intent.putExtra(\"title\", marker.getTitle());\n intent.putExtra(\"postal\",post);\n\n Toast.makeText(getActivity(),marker.getTitle() +\" is selected.\",Toast.LENGTH_SHORT)\n .show();\n getActivity().startActivity(intent);\n //getChildFragmentManager().beginTransaction().add(R.id.fragment_container, af).commit();\n // getActivity().startActivity(intent);\n // getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n //getActivity().getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container, new AccountsFragment(),null).commit();\n }\n });\n continueBookingDialog.setNegativeButton(\"Back\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n //Automatically close the dialog\n\n }\n });\n continueBookingDialog.show();\n\n }", "public void showDialog() {\n mDialogInfoWithTwoButtons = new DialogInfoWithTwoButtons(mContext,\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n saveTemplate(mToastEdited);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mTemplateId = mDatabaseManager.getTemplateNewId();\n mPreferenceManager.setTemplateId(mTemplateId);\n saveTemplate(mToastCreated);\n mDialogInfoWithTwoButtons.getDialog().dismiss();\n }\n }, mTitle, mMessage, mTitleButtonOne, mTitleButtonTwo);\n mDialogInfoWithTwoButtons.getDialog().show();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsender = getIntent().getExtras().getString(\"sender\");\n\t\tmyNumber = getIntent().getExtras().getString(\"mynumber\");\n\t\tdate = getIntent().getExtras().getString(\"DATE\");\n\t\tdestinationLocation = getIntent().getExtras().getString(\"DEST\");\n\t\tdestinationAddress = convertLatLngToAddress(destinationLocation);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tshowDialog(DIALOG_ALERT);\n\n\t}", "@Override\n\tprotected Dialog onCreateDialog(int id) {\n\n\t\tLayoutInflater factory = LayoutInflater.from(this);\n\t\tfinal View textEntryView = factory.inflate(R.layout.alert_dialog, null);\n\t\tfinal EditText MacID = (EditText) textEntryView\n\t\t\t\t.findViewById(R.id.editTextMacID);\n\t\treturn new AlertDialog.Builder(GarageOpener.this)\n\t\t\t\t// .setIconAttribute(android.R.attr.alertDialogIcon)\n\t\t\t\t.setTitle(\"Enter MAC Address of form: \\n 00:06:66:01:E3:BD\")\n\t\t\t\t.setView(textEntryView)\n\n\t\t\t\t.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\n\t\t\t\t\t\tString value = MacID.getText().toString();\n\n\t\t\t\t\t\t// prelim test for actual MacID\n\t\t\t\t\t\t// test char length\n//\t\t\t\t\t\tif (value.length() != 17) {\n//\t\t\t\t\t\t\tToast.makeText(\n//\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n//\t\t\t\t\t\t\t\t\t\"MacID is wrong Length. Please include ':'\",\n//\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG);\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse {\n//\t\t\t\t\t\t\tint colonCount = 0;\n//\t\t\t\t\t\t\tchar[] a = value.toCharArray();\n//\t\t\t\t\t\t\tfor (int i = 0; i < value.length(); i++) {\n//\t\t\t\t\t\t\t\tif (a[i] == ':') {\n//\t\t\t\t\t\t\t\t\tcolonCount++;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\n//\t\t\t\t\t\t\tif (colonCount != 5) {\n//\t\t\t\t\t\t\t\tToast.makeText(\n//\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n//\t\t\t\t\t\t\t\t\t\t\"MacID is incorrect. Did you include ':' characters? \",\n//\t\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG);\n//\t\t\t\t\t\t\t}\n//\n//\t\t\t\t\t\t}\n\n\t\t\t\t\t\tLog.e(TAG, \"******ENTERED DATA: \" + whichButton + \" \"\n\t\t\t\t\t\t\t\t+ value);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//set macaddress to connect with\n\t\t\t\t\t\tMAC_ADDRESS = value;\n\t\t\t\t\t\t\n\t\t\t\t\t\t/* User clicked OK so do some stuff */\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.setNegativeButton(\"CANCEL\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint whichButton) {\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t/* User clicked cancel so do some stuff */\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})\n\t\t\t\t.create();\n\t\t// }\n\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(\"Add Participant...\");\n builder.setMessage(\"Participant address:\");\n\n final EditText input = new EditText(getActivity());\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input.setLayoutParams(lp);\n builder.setView(input); // uncomment this line\n\n\n builder.setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mListener.onAddUserDialogAdd(input.getText().toString());\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mListener.onAddUserDialogCancel();\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n\r\n\t\t// Set up the layout inflater\r\n\t\tLayoutInflater inflater = getActivity().getLayoutInflater();\r\n\r\n\t\t// Set the title, message and layout of the dialog box\r\n\t\tbuilder.setView(inflater.inflate(R.layout.dialog_box_layout, null))\r\n\t\t\t\t.setTitle(R.string.dialog_title);\r\n\r\n\t\t// User accepts the thing in the dialog box\r\n\t\tbuilder.setPositiveButton(R.string.dialog_accpet,\r\n\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\t\t\tToast.makeText(getActivity(),\r\n\t\t\t\t\t\t\t\t\"Thank you for your kiss ^.^\",\r\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t// User cancels the thing in the dialog box\r\n\t\tbuilder.setNegativeButton(R.string.dialog_cancel,\r\n\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\t\t\tToast.makeText(getActivity(), \"Refuse my kiss??? >.<\",\r\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\treturn builder.create(); // return the AlertDialog object\r\n\t}", "private void openAddDialog(){\n DialogFragment dialog = new AddLocationDialog();\n dialog.show(getFragmentManager(), getText(R.string.map_ask_add).toString());\n }", "private void addAddressDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(ConsumerCheckOutActivity.this);\n LayoutInflater inflater = getLayoutInflater();\n View dialogLayout = inflater.inflate(R.layout.consumer_checkout_dialogue, null);\n TextView header = dialogLayout.findViewById(R.id.header);\n TextView subHeader = dialogLayout.findViewById(R.id.subHeader);\n Button trackOrderButton = dialogLayout.findViewById(R.id.trackOrderButton);\n Button exploreFoodButton = dialogLayout.findViewById(R.id.exploreFoodButton);\n TextView okButton = dialogLayout.findViewById(R.id.okButton);\n ImageView tickIcon = dialogLayout.findViewById(R.id.tickIcon);\n header.setTypeface(poppinsBold);\n subHeader.setTypeface(poppinsLight);\n header.setTextSize(22);\n header.setText(\"Add Address\");\n subHeader.setText(\"Please add your address to deliver on time\");\n subHeader.setTextSize(16);\n tickIcon.setVisibility(View.GONE);\n okButton.setVisibility(View.VISIBLE);\n trackOrderButton.setVisibility(View.GONE);\n exploreFoodButton.setVisibility(View.GONE);\n builder.setView(dialogLayout);\n AlertDialog alertDialog = builder.create();\n okButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(ConsumerCheckOutActivity.this, Address.class);\n intent.putExtra(\"AddorEdit\", \"Add\");\n intent.putExtra(\"emailId\", SaveSharedPreference.getLoggedInUserEmail(ConsumerCheckOutActivity.this));\n startActivityForResult(intent, 101);\n alertDialog.dismiss();\n }\n });\n alertDialog.show();\n }", "private void getConfirmTransferView() {\n if (isFastDoubleClick()) return;\n String transferValue = transferValueEdit.getText().toString().trim();\n String receiveAddress = mCetReceiverAddress.getText();\n transferDialog = new TransferDialog(this, (password, progressBar) -> {\n this.progressBar = progressBar;\n if (TextUtils.isEmpty(password)) {\n Toast.makeText(mActivity, R.string.password_not_null, Toast.LENGTH_SHORT).show();\n } else if (!WalletService.checkPassword(mActivity, password, mPresenter.getWalletItem())) {\n Toast.makeText(mActivity, R.string.password_fail, Toast.LENGTH_SHORT).show();\n } else {\n transferDialog.setButtonClickAble(false);\n progressBar.setVisibility(View.VISIBLE);\n mPresenter.handleTransferAction(password, transferValue, receiveAddress);\n }\n });\n transferDialog.setConfirmData(mPresenter.getWalletItem().address, receiveAddress,\n NumberUtil.getDecimalValid_8(Double.parseDouble(transferValue)) + mPresenter.getTokenItem().symbol,\n feeValueText.getText().toString());\n }", "private void successDialog() {\n AlertDialog dialog = _dialogFactory.createDialog(this, R.string.completed, R.string.success);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, getString(R.string.ok), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n gotoGameEnd(IGameConstants.GAME_SUCCESS);\n }\n });\n\n dialog.setCancelable(false);\n _dialogActive = true;\n dialog.show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.at_home_question)\n .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n listener.onAlign(getDialog());\n }\n })\n .setNeutralButton(R.string.go_home, null) // See onResume\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n listener.onCancel(getDialog());\n }\n }).setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n listener.onCancel(getDialog());\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void openOrderBalanceDialog() {\n\t\torderBalanceDialogBox = new DialogBox(true);\n\t\torderBalanceDialogBox.setGlassEnabled(true);\n\t\torderBalanceDialogBox.setText(\"Rentabilidad Pedido\");\n\t\torderBalanceDialogBox.setSize(\"250px\", \"150px\");\n\n\t\tVerticalPanel vp = new VerticalPanel();\n\t\tvp.setSize(\"250px\", \"150px\");\n\t\torderBalanceDialogBox.setWidget(vp);\n\n\t\tFlowPanel orderPanel = new FlowPanel();\n\t\torderPanel.setWidth(\"250px\");\n\n\t\t// Obten info del filtro forzado\n\t\tBmFilter forceFilter = getUiParams().getUiProgramParams(getBmObject().getProgramCode()).getForceFilter();\n\n\t\tUiRequisitionOrderView uiRequisitionOrderView = new UiRequisitionOrderView(getUiParams(), orderPanel, forceFilter.getValue());\n\t\tuiRequisitionOrderView.show();\t\t\t\t\t\n\n\t\tHorizontalPanel buttonPanel = new HorizontalPanel();\n\t\tbuttonPanel.add(orderBalanceCloseDialogButton);\n\n\t\tvp.add(orderPanel);\n\t\tvp.add(buttonPanel);\n\n\t\torderBalanceDialogBox.center();\n\t\torderBalanceDialogBox.show();\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n try {\n itemsJSONArray = new JSONArray(getArguments().getString(\"order\"));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n builder.setView(inflater.inflate(R.layout.user_details, null)).setTitle(\"User details\");\n builder.setPositiveButton(\"Order\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n name = (EditText) getDialog().findViewById(R.id.nameET);\n phone = (EditText) getDialog().findViewById(R.id.phoneET);\n year = (Spinner) getDialog().findViewById(R.id.spinnerYear);\n branch = (Spinner) getDialog().findViewById(R.id.spinnerBranch);\n // FIRE ZE MISSILES!\n\n if(name.getText().toString().isEmpty() || phone.getText().toString().isEmpty()){\n Toast.makeText(((OrderItem)getTargetFragment()).getActivity(), \"Fill all fields\", Toast.LENGTH_SHORT).show();\n OrderDialogFragment frag = new OrderDialogFragment();\n frag.setTargetFragment(getTargetFragment(),0);\n frag.setArguments(getArguments());\n frag.show(getFragmentManager(), \"Order dialog\");\n }\n else{\n try {\n orderJSON.put(\"name\",name.getText().toString());\n orderJSON.put(\"phone\",phone.getText().toString());\n orderJSON.put(\"year\",year.getSelectedItem().toString());\n orderJSON.put(\"branch\",branch.getSelectedItem().toString());\n Log.e(\"Tag\",branch.getSelectedItem().toString());\n orderJSON.put(\"order\",itemsJSONArray);\n\n\n ringProgressDialog = ProgressDialog.show(getActivity(), \"Please wait ...\", \"Order is being placed ...\", true, true, new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n ringProgressDialog.hide();\n\n }\n });\n AndroidNetworking.post(URL+\"/order\")\n .addJSONObjectBody(orderJSON) // posting json\n .setTag(\"test\")\n .setPriority(Priority.MEDIUM)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n\n public void onResponse(JSONObject response) {\n // do anything with response\n ringProgressDialog.hide();\n ((OrderItem)getTargetFragment()).onOrderPlaced(true,orderJSON);\n }\n @Override\n public void onError(ANError error) {\n // handle error\n\n //Toast.makeText(c,\"Error , Order not placed\",Toast.LENGTH_LONG).show();\n ringProgressDialog.hide();\n ((OrderItem)getTargetFragment()).onOrderPlaced(false,orderJSON);\n }\n });\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "private void onAddDeadlineButtonClicked()\n\t{\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(\"Choose you gmail-account\");\n\n\t\t// list of accounts\n\t\tfinal ArrayList<String> gUsernameList = MyUtils.getGmailAccounts(this);\n\t\tListView lv = new ListView(this);\n\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(this,\n\t\t\t\tandroid.R.layout.simple_list_item_1, android.R.id.text1, gUsernameList);\n\t\tlv.setAdapter(adapter);\n\n\t\t// cancel button\n\t\tbuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener()\n\t\t{\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton)\n\t\t\t{\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t\tbuilder.setView(lv);\n\t\tfinal Dialog dialog = builder.create();\n\n\t\tlv.setOnItemClickListener(new OnItemClickListener()\n\t\t{\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, final int position, long id)\n\t\t\t{\n\t\t\t\t// check this person has the right\n\t\t\t\tnew AsyncTask<Boolean, Boolean, Boolean>()\n\t\t\t\t{\n\t\t\t\t\tProgressDialog progressDialog;\n\t\t\t\t\tString message = \"\";\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected void onPreExecute()\n\t\t\t\t\t{\n\t\t\t\t\t\tprogressDialog = ProgressDialog.show(GroupDeadlineActivity.this,\n\t\t\t\t\t\t\t\t\"Checking If you're an admin\",\n\t\t\t\t\t\t\t\t\"web minion searching through admins' mail \");\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected Boolean doInBackground(Boolean... params)\n\t\t\t\t\t{\n\t\t\t\t\t\t// check connection\n\t\t\t\t\t\tif (WebMinion.isConnected(GroupDeadlineActivity.this) == false)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmessage = \"No Connection\";\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// check adminstriship\n\t\t\t\t\t\tif (WebMinion.canManageGroup(groupId, gUsernameList.get(position)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmessage = \"Only admins can add deadlines\";\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected void onPostExecute(Boolean result)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (result == false && !message.equals(\"No Connection\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tToast.makeText(GroupDeadlineActivity.this, message, Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t\t\t.show();\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// start the add deadline activity\n\t\t\t\t\t\t\tIntent intent = new Intent(GroupDeadlineActivity.this,\n\t\t\t\t\t\t\t\t\tAddDeadlineActivity.class);\n\t\t\t\t\t\t\tintent.putExtra(MyUtils.INTENT_GROUP_ID, groupId);\n\t\t\t\t\t\t\tintent.putExtra(MyUtils.INTENT_GROUP_NAME, groupName);\n\t\t\t\t\t\t\tintent.putExtra(MyUtils.INTENT_GMAIL_ADDRESS, gUsernameList\n\t\t\t\t\t\t\t\t\t.get(position));\n\t\t\t\t\t\t\tintent.putExtra(MyUtils.INTENT_ADD_OFFLINE_DEADLINE, message.equals(\"No Connection\"));\n\t\t\t\t\t\t\tif (message.equals(\"No Connection\"))\n\t\t\t\t\t\t\t\tToast.makeText(GroupDeadlineActivity.this, \"No Connection, the deadline will be saved and uploaded when a connection is made\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\tstartActivityForResult(intent, MyUtils.ADD_DEADLINES_REQUEST_CODE);\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tprogressDialog.dismiss();\n\t\t\t\t\t}\n\n\t\t\t\t}.execute(true);\n\n\t\t\t}\n\t\t});\n\n\t\tdialog.show();\n\n\t}", "public void launchHearingAidInstructionDialog() {\n HearingAidDialogFragment.newInstance().show(this.mFragmentManager, HearingAidDialogFragment.class.toString());\n }", "@Override\n\tpublic void show() {\n\t\tGameView.VIEW.addDialog(this);\n\t\tsuper.show();\n\t}", "public static void showNew() {\n\t\tif (DIALOG == null) {\n\t\t\tDIALOG = new NewDialog();\n\t\t}\n\t\tDIALOG.setVisible(true);\n\t\tDIALOG.toFront();\n\t}", "@Override\n public void onItemClick(View itemView, ServResrouce info, int position)\n {\n SelectFlightDialog dialog =\n new SelectFlightDialog(ConfirmOrderActivity.this, mSelectFlightListener, itemView, position);\n dialog.show();\n WindowManager.LayoutParams lp = dialog.getWindow().getAttributes();\n lp.height = (int)(screenHeight - statusBarHeight - 120);\n dialog.getWindow().setAttributes(lp);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(msg)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n\n Dialog dialog = builder.create();\n\n // Create the AlertDialog object and return it\n return dialog;\n }", "private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the goal.\n deleteGoal();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "@Override\r\n\tprotected Dialog onCreateDialog(int id) {\r\n\t\tProgressDialog dialog = new ProgressDialog(this);\r\n\t\tdialog.setMessage(\"Please wait while saving...\");\r\n\t\tdialog.setIndeterminate(true);\r\n\t\tdialog.setCancelable(true);\r\n\t\treturn dialog;\r\n\t}" ]
[ "0.6887827", "0.65522337", "0.6321631", "0.6264549", "0.62150985", "0.6201226", "0.6173371", "0.614474", "0.6137405", "0.6095117", "0.60680264", "0.6067813", "0.60519373", "0.60468364", "0.6044033", "0.6015746", "0.60015386", "0.5990474", "0.59862345", "0.5951425", "0.59464866", "0.5936142", "0.59309983", "0.5921128", "0.59202296", "0.5918955", "0.59023744", "0.5894731", "0.58808327", "0.5863144", "0.58561945", "0.5849745", "0.5834164", "0.5825042", "0.581897", "0.58166015", "0.5793703", "0.57858217", "0.57803446", "0.5762427", "0.57608175", "0.57569844", "0.57567203", "0.57314575", "0.57304734", "0.572959", "0.5721043", "0.5720886", "0.57135135", "0.5709955", "0.56973624", "0.5693924", "0.5691687", "0.5687949", "0.5684791", "0.5684167", "0.5679714", "0.56758565", "0.56741935", "0.5671029", "0.5669117", "0.5667544", "0.5666834", "0.56554544", "0.5649814", "0.5646214", "0.5643344", "0.5639088", "0.563393", "0.5631554", "0.5611129", "0.5608275", "0.5607953", "0.5605", "0.56013745", "0.5596438", "0.55941427", "0.55929965", "0.55867106", "0.5582271", "0.55803007", "0.55729455", "0.5567316", "0.556514", "0.5562724", "0.55546844", "0.55483544", "0.5545229", "0.55441946", "0.55423254", "0.55402285", "0.5537191", "0.55248356", "0.55183005", "0.5515167", "0.55101705", "0.55021113", "0.54977363", "0.5492484", "0.5490843", "0.54893816" ]
0.0
-1
The constructor should first build the main layout, set the composition root and then do any custom initialization. The constructor will not be automatically regenerated by the visual editor.
public NavigationToolBar() { buildMainLayout(); setCompositionRoot(mainLayout); // TODO add user code here // set first button listener this.btnDownRegister.setEnabled(false); // default status for confirmation buttons this.btnCancelRegister.setEnabled(false); this.btnConfirmRegister.setEnabled(false); btnFirstRegister.addListener(new Button.ClickListener() { public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { // set status register register = bindingSource.firstItem(); int index = bindingSource.getIndex(); lblCountRegister.setValue(bindingSource.getIndex() + "/" + bindingSource.size()); btnFirstRegister.setEnabled(false); btnPreviousRegister.setEnabled(false); btnNextRegister.setEnabled(true); btnLastRegister.setEnabled(true); // fire event if (listenerFirstButton != null) listenerFirstButton.firstButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index)); } }); // set previous button listener btnPreviousRegister.addListener(new Button.ClickListener() { public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { // set status register register = bindingSource.prevItem(); int index = bindingSource.getIndex(); lblCountRegister.setValue(index + "/" + bindingSource.size()); if (index == 1) { btnFirstRegister.setEnabled(false); btnPreviousRegister.setEnabled(false); btnNextRegister.setEnabled(true); btnLastRegister.setEnabled(true); } else { btnFirstRegister.setEnabled(true); btnPreviousRegister.setEnabled(true); btnNextRegister.setEnabled(true); btnLastRegister.setEnabled(true); } // fire event if (listenerPreviousButton != null) listenerPreviousButton.previousButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index)); } }); // set next button listener btnNextRegister.addListener(new Button.ClickListener() { public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { // set status register register = bindingSource.nextItem(); int index = bindingSource.getIndex(); lblCountRegister.setValue(index + "/" + bindingSource.size()); if (index == bindingSource.size()) { btnFirstRegister.setEnabled(true); btnPreviousRegister.setEnabled(true); btnNextRegister.setEnabled(false); btnLastRegister.setEnabled(false); } else { btnFirstRegister.setEnabled(true); btnPreviousRegister.setEnabled(true); btnNextRegister.setEnabled(true); btnLastRegister.setEnabled(true); } // fire event if (listenerNextButton != null) listenerNextButton.nextButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index)); } }); // set last button listener btnLastRegister.addListener(new Button.ClickListener() { public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { // set status register register = bindingSource.lastItem(); int index = bindingSource.getIndex(); lblCountRegister.setValue(bindingSource.getIndex() + "/" + bindingSource.size()); btnFirstRegister.setEnabled(true); btnPreviousRegister.setEnabled(true); btnNextRegister.setEnabled(false); btnLastRegister.setEnabled(false); // fire event if (listenerLastButton != null) listenerLastButton.lastButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index)); } }); btnDownRegister.addListener(new Button.ClickListener() { @Override public void buttonClick(ClickEvent event) { // fire the index change bindingSource.setItemId(this, true, bindingSource.getItemId()); // fire the app event if it's implemented if (listenerDownButton != null) listenerDownButton.downButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, 0)); } }); btnDisplayRegister.addListener(new Button.ClickListener() { @Override public void buttonClick(ClickEvent event) { if (displayMode == DisplayMode.GRID) { btnDisplayRegister.setCaption("G"); displayMode = DisplayMode.CARD; } else { btnDisplayRegister.setCaption("C"); displayMode = DisplayMode.GRID; } slider.slideDisplay(displayMode); // fire the app event if it's implemented if (listenerDisplayButton != null) listenerDisplayButton.displayButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, 0)); } }); btnUpRegister.addListener(new Button.ClickListener() { @Override public void buttonClick(ClickEvent event) { if (slider == null) return; // go slide up try { slider.delSlideBreadCrumb(); } catch (Exception e) { e.printStackTrace(); } // fire the app event if it's implemented if (listenerUpButton != null) listenerUpButton.upButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, 0)); } }); btnRefreshRegister.addListener(new Button.ClickListener() { public void buttonClick(ClickEvent event) { if (listenerRefreshButton != null) listenerRefreshButton.refreshButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, 0)); } }); // set add button listener btnAddRegister.addListener(new Button.ClickListener() { public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { // enable confirmation buttons btnConfirmRegister.setEnabled(true); btnCancelRegister.setEnabled(true); if (listenerAddButton != null) listenerAddButton.addButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, 0)); } }); // set edit button listener btnEditRegister.addListener(new Button.ClickListener() { public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { // enable confirmation buttons btnConfirmRegister.setEnabled(true); btnCancelRegister.setEnabled(true); int index = bindingSource.getIndex(); register = bindingSource.getItemId(); if (listenerEditButton != null) listenerEditButton.editButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index)); } }); // set delete button listener btnDeleteRegister.addListener(new Button.ClickListener() { public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { int index = bindingSource.getIndex(); register = bindingSource.getItemId(); if (listenerDeleteButton != null) listenerDeleteButton.deleteButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index)); } }); // set confirm button listener btnConfirmRegister.addListener(new Button.ClickListener() { public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { int index = bindingSource.getIndex(); register = bindingSource.getItemId(); if (listenerConfirmButton != null) listenerConfirmButton.confirmButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index)); // disable confirmation buttons btnConfirmRegister.setEnabled(false); btnCancelRegister.setEnabled(false); } }); // set cancel button listener btnCancelRegister.addListener(new Button.ClickListener() { public void buttonClick(com.vaadin.ui.Button.ClickEvent event) { int index = bindingSource.getIndex(); register = bindingSource.getItemId(); if (listenerCancelButton != null) listenerCancelButton.cancelButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, index)); // disable confirmation buttons btnConfirmRegister.setEnabled(false); btnCancelRegister.setEnabled(false); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainView() {\r\n\t\tinitialize();\r\n\t}", "public MainView() {\n initComponents();\n \n }", "public void init()\n {\n buildUI(getContentPane());\n }", "public MainContentPane() {\r\n\t\tsuper();\r\n\r\n\t\t// Add design-time configured components.\r\n\t\tinitComponents();\r\n\t}", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setBounds(new Rectangle(0, 0, 393, 177));\r\n\t\tthis.add(getBasePanel(), BorderLayout.CENTER);\r\n\r\n\t}", "public void initRootLayout() {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_MAIN));\r\n\r\n try {\r\n rootLayout = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_MAIN, ex);\r\n\r\n return;\r\n }\r\n\r\n Scene scene = new Scene(rootLayout);\r\n scene.getStylesheets().add(STYLESHEET_DEFAULT);\r\n\r\n mainStage.setScene(scene);\r\n mainStage.setTitle(\"Business eValuator\");\r\n mainStage.setResizable(true);\r\n mainStage.centerOnScreen();\r\n mainStage.setHeight(900);\r\n mainStage.show();\r\n }", "private void initialize() {\n\t\troot = new Group();\n\t\tgetProperties();\n\t\tsetScene();\n\t\tsetStage();\n\t\tsetGUIComponents();\n\t}", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "public MainView() {\n initComponents();\n }", "public MainView() {\n initComponents();\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "public HierarchyComponent()\r\n\t{\r\n\t\tbuildMainLayout();\r\n\t\tsetCompositionRoot(mainLayout);\r\n\t}", "public void initialize() {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(548, 372));\n this.add(getTitlePane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 3, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getXpertIvyPane(), new com.ulcjava.base.application.GridBagConstraints(0, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getLicensePane(), new com.ulcjava.base.application.GridBagConstraints(0, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getDatabasePane(), new com.ulcjava.base.application.GridBagConstraints(0, 3, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getJavaPane(), new com.ulcjava.base.application.GridBagConstraints(0, 4, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }", "private void initRoot() {\n root = new VBox(10);\n root.setAlignment(Pos.CENTER);\n root.setPadding(new Insets(10));\n root.setPrefWidth(300);\n root.setPrefHeight(150);\n }", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApp.class.getResource(\"RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void initMainLayout() {\n\t\ttry {\n\t\t\t// Load root layout from fxml file.\n\t\t\tFXMLLoader loader = new FXMLLoader();\n\t\t\tloader.setLocation(MainApp.class.getResource(\"view/MainLayout.fxml\"));\n\t\t\trootLayout = (BorderPane) loader.load();\n\n\t\t\t// Show the scene containing the root layout.\n\t\t\tScene scene = new Scene(rootLayout);\n\t\t\tprimaryStage.setScene(scene);\n\t\t\tprimaryStage.show();\n\n\t\t\tMainLayoutController mainLayoutController = loader.getController();\n\t\t\tmainLayoutController.setMainApp(this);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t\n\t\t}\n\t}", "public void init() {\n setLayout(new BorderLayout());\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 initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n URL url = TwitterFX.class.getClassLoader().getResource(\"twitterfx.fxml\");\n loader.setLocation(url);\n rootLayout = (AnchorPane) loader.load();\n buildLayout();\n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout, 600,400);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void initRootLayout() {\r\n try {\r\n // Load root layout from fxml file.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/view/rootlayout.fxml\"));\r\n rootLayout = (BorderPane) loader.load();\r\n \r\n // Show the scene containing the root layout.\r\n scene = new Scene(rootLayout);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n \r\n controller = loader.getController();\r\n controller.setMainApp(this);\r\n \r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void initRootLayout() {\r\n try {\r\n // Load root layout from fxml file.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(FilmApp.class.getResource(\"view/RootLayout.fxml\"));\r\n rootLayout = (BorderPane) loader.load();\r\n\r\n // Show the scene containing the root layout.\r\n Scene scene = new Scene(rootLayout);\r\n primaryStage.setScene(scene);\r\n primaryStage.show();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void initRootLayout() {\n try {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(MainApplication.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n \t}\n }", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public MainWindow() {\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n layout = new HorizontalLayout();\n\n workspaceTabs = new TabSheet();\n\n WorkspacePanel panel = new WorkspacePanel(\"Workspace 1\");\n workspaceTabs.addTab(panel).setCaption(\"Workspace 1\");\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n\n layout.addComponent(workspaceTabs);\n\n setContent(layout);\n }", "public MainWindow() {\n\t\t\tthis.initUI();\n\t\t\t\n\t\t}", "private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }", "public MainUI() {\r\n initComponents();\r\n this.setLocationRelativeTo(null);\r\n /**/\r\n }", "public void initRootLayout() {\n try {\n // Load root layout from fxml file.\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Pepoview.class.getResource(\"MainWindow.fxml\"));\n rootLayout = (SplitPane) loader.load(); \n \n // Show the scene containing the root layout.\n Scene scene = new Scene(rootLayout);\n primaryStage.setScene(scene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void init() // set up GUI\n {\n setLayout(new FlowLayout());\n\n customerView = new CustomerView(); // initialize customerView\n \n add(customerView); // add customerView to the GUI\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void init() {\n setLayout(new BorderLayout());\n setBackground(ProgramPresets.COLOR_BACKGROUND);\n add(getTitlePanel(), BorderLayout.NORTH);\n add(getTextPanel(), BorderLayout.CENTER);\n add(getLinkPanel(), BorderLayout.SOUTH);\n }", "public GUI() {\n\t\tinitComponents();\n\t}", "public mainUI() {\n initComponents();\n }", "private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void init() {\n setBackground(LIGHT_GRAY);\n Box layout = new Box(BoxLayout.Y_AXIS);\n\n jump = createButton(\"Jump\", null);\n exit = createButton(\"Exit!\", null);\n fly = createButton(\"Fly\", null);\n Jfloat = createButton(\"Float\", null);\n layout.add(Box.createRigidArea(new Dimension(0, 150)));\n layout.add(jump);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(Jfloat);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(fly);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(exit);\n add(layout);\n }", "public void init() {\n try {\n java.net.URL codeBase = getCodeBase();\n codeBaseString = codeBase.toString();\n } catch (Exception e) {\n // probably running as an application, try the application\n // code base\n codeBaseString = \"file:./\";\n }\n\n if (colorMode == USE_COLOR) {\n objColor = red;\n } else {\n objColor = white;\n }\n\n Container contentPane = getContentPane();\n\n contentPane.setLayout(new BorderLayout());\n\n GraphicsConfiguration config = SimpleUniverse\n .getPreferredConfiguration();\n\n canvas = new Canvas3D(config);\n\n u = new SimpleUniverse(canvas);\n\n if (isApplication) {\n offScreenCanvas = new OffScreenCanvas3D(config, true);\n // set the size of the off-screen canvas based on a scale\n // of the on-screen size\n Screen3D sOn = canvas.getScreen3D();\n Screen3D sOff = offScreenCanvas.getScreen3D();\n Dimension dim = sOn.getSize();\n dim.width *= OFF_SCREEN_SCALE;\n dim.height *= OFF_SCREEN_SCALE;\n sOff.setSize(dim);\n sOff.setPhysicalScreenWidth(sOn.getPhysicalScreenWidth()\n * OFF_SCREEN_SCALE);\n sOff.setPhysicalScreenHeight(sOn.getPhysicalScreenHeight()\n * OFF_SCREEN_SCALE);\n\n // attach the offscreen canvas to the view\n u.getViewer().getView().addCanvas3D(offScreenCanvas);\n\n }\n contentPane.add(\"Center\", canvas);\n\n // setup the env nodes and their GUI elements\n setupLights();\n setupBackgrounds();\n setupFogs();\n setupSounds();\n\n // Create a simple scene and attach it to the virtual universe\n BranchGroup scene = createSceneGraph();\n\n // set up sound\n u.getViewer().createAudioDevice();\n\n // get the view\n view = u.getViewer().getView();\n\n // Get the viewing platform\n ViewingPlatform viewingPlatform = u.getViewingPlatform();\n\n // Move the viewing platform back to enclose the -4 -> 4 range\n double viewRadius = 4.0; // want to be able to see circle\n // of viewRadius size around origin\n // get the field of view\n double fov = u.getViewer().getView().getFieldOfView();\n\n // calc view distance to make circle view in fov\n float viewDistance = (float) (viewRadius / Math.tan(fov / 2.0));\n tmpVector.set(0.0f, 0.0f, viewDistance);// setup offset\n tmpTrans.set(tmpVector); // set trans to translate\n // move the view platform\n viewingPlatform.getViewPlatformTransform().setTransform(tmpTrans);\n\n // add an orbit behavior to move the viewing platform\n OrbitBehavior orbit = new OrbitBehavior(canvas, OrbitBehavior.STOP_ZOOM);\n orbit.setSchedulingBounds(infiniteBounds);\n viewingPlatform.setViewPlatformBehavior(orbit);\n\n u.addBranchGraph(scene);\n\n contentPane.add(\"East\", guiPanel());\n }", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "public ClientMainView() {\n initComponents();\n setLocationRelativeTo(null);\n }", "private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }", "protected void initialize()\n {\n uiFactory.configureUIComponent(this, UI_PREFIX);\n\n initializeFields();\n initializeLabels();\n initLayout();\n }", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "public Main() {\n initComponents();\n this.setResizable(false);\n this.setLocationRelativeTo(null);\n }", "private void initialize() {\n\t\tthis.setLayout(new BorderLayout());\n\t\tthis.setSize(300, 200);\n\t\tthis.add(getJScrollPane(), java.awt.BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "public void init() {\n\t\tsetSize(500,300);\n\t}", "public MainGUI() {\n\t\tString xmlpath = \"classpath:applicationContext.xml\";\n\t\tApplicationContext applicationContext = new ClassPathXmlApplicationContext(xmlpath);\n\t\t\n\t\tcenter = (CenterController)applicationContext.getBean(\"CenterController\");\n\t\t\n\t\tinitialize();\n\t\t\n\t}", "private void initialize()\n\t{\n\t\tthis.setModal(true);\t\t\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(450,400);\n\t\tScreenResolution.centerComponent(this);\n\t}", "@FXML\n void initialize() {\n setupAppState();\n\n try {\n setupTreeViewButtons();\n } catch (IOException e) {\n Helpers.alertErrorExit(\"Couldn't load a TreeView button image!\");\n }\n\n setupEditor();\n setupNoteTree();\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public Gui() { \n preInitComponents(); \n initComponents();\n postInitComponents(); \n setVisible(true);\n appInitialization();\n }", "public MainScreen() {\n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "public void initRootLayout(){\n try{\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(Game.class.getResource(\"view/RootLayout.fxml\"));\n rootLayout = (BorderPane) loader.load();\n\n Scene scene = new Scene(rootLayout);\n \n primaryStage.setScene(scene);\n \n RootLayoutController controller = loader.getController();\n controller.setGame(this);\n \n primaryStage.show(); \n showCreateNewPlayer();\n }catch(IOException e){\n }\n }", "public UI() {\n initComponents();\n }", "private void initComponent() {\n\t\taddGrid();\n\t\taddToolBars();\n\t}", "private void initialize() {\n\t\tthis.setSize(293, 155);\n\t\tthis.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/abdo.jpg\")));\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"Désincription d'un étudiant\");\n\t}", "public void init() {\n this.window = new PWWindow(this.project);\n }", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "private void initialize() {\n\ttry {\n\t\t// user code begin {1}\n\t\t// user code end\n\t\tsetName(\"PnlInterlisSyntax\");\n\t\tsetBorder(new javax.swing.border.EtchedBorder());\n\t\tsetLayout(new java.awt.BorderLayout());\n\t\tsetSize(382, 165);\n\t\tadd(getPnlEditor(), \"Center\");\n\t\tadd(getPnlDataSelector(), \"South\");\n\t\tadd(getPnlUsage(), \"North\");\n\t} catch (java.lang.Throwable ivjExc) {\n\t\thandleException(ivjExc);\n\t}\n\t// user code begin {2}\n\tgetPnlEditor().setToolTipText(getResourceString(\"PnlEditor_toolTipText\"));\n\tsetCurrentObject(null);\n\tgetPnlDataSelector().setListener(this);\n\tgetPnlUsage().setVisible(false);\n\t// user code end\n}", "private UI()\n {\n this(null, null);\n }", "public MainApp() {\r\n\t\tsuper();\r\n\t\tthis.setSize(642, 455);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public GuiMainImpl() {\r\n this(null, null, \"\");\r\n }", "private void initializateGUI() {\n\t\t\n\t\t\n\t\tthis.menuBar = buildMenuBar();\n\t\t\n\t\tthis.toolBar = buildToolBar();\n\t\t\n\t\tthis.container = (JComponent) ContainerViewFactory.getInstance().getContainerView(null);\n\t\t\n\t\tthis.status = buildStatusBar();\n\t\t\n\t\tscrollPane = new JScrollPane();\n\t\tscrollPane.getViewport().add(this.container);\n\t\t\n\t\ttextResources.getString(\"application.title\").ifPresent(super::setTitle);\n\n\t\tif (this.menuBar != null) {\n\t\t\tsuper.setJMenuBar(this.menuBar);\n\t\t}\n\t\tsuper.setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.setMinimumSize(MINIMUM_SIZE);\n\t\tsuper.setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\n\t\tsuper.getRootPane().setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.getRootPane().setMinimumSize(MINIMUM_SIZE);\t\t\n\t\tsuper.getRootPane().setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\t\t\n\t\tsuper.setLayout(new BorderLayout());\n\t\t\n\t\tsuper.add(toolBar, BorderLayout.NORTH);\n\t\tsuper.add(scrollPane, BorderLayout.CENTER);\n\t\tsuper.add(status, BorderLayout.SOUTH);\n\t\t\n\t\tsuper.addWindowListener(new WindowAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tinitializationDialog = buildInitializationAction();\n\t\t\t\tinitializationDialog.setVisible(true);\n\t\t\t\tinitializationDialog.toFront();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tconfirmExitAction();\n\t\t\t}\n\t\t});\n\t\tthis.handlerInitializateGUI();\n\t}", "public Layout() {\n }", "public mainLayoutController() {\n\t }", "private void initialize() {\n\t\tthis.setSize(500, 400);\n\t\tthis.setContentPane(getJContentPane());\n\t\t\n\t\tthis.setTitle(\"Login\");\n\t}", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "@Override\n public void simpleInitApp() {\n setDisplayStatView(false);\n setDisplayFps(false);\n\n // just a blue box\n Box mesh = new Box(1, 1, 1);\n Geometry geom = new Geometry(\"Box\", mesh);\n Material mat = new Material(assetManager,\n \"Common/MatDefs/Misc/Unshaded.j3md\");\n mat.setColor(\"Color\", ColorRGBA.Blue);\n geom.setMaterial(mat);\n rootNode.attachChild(geom);\n\n // Display a line of text in the default font on depth layer 0\n guiFont = assetManager.loadFont(\"Interface/Fonts/Default.fnt\");\n distanceText = new BitmapText(guiFont);\n distanceText.setSize(guiFont.getCharSet().getRenderedSize());\n distanceText.move( // x/y coordinates and z = depth layer 0\n settings.getWidth() / 2 + 50,\n distanceText.getLineHeight() + 20,\n 0);\n guiNode.attachChild(distanceText);\n\n // Display a 2D image or icon on depth layer -2\n Picture frame = new Picture(\"User interface frame\");\n frame.setImage(assetManager, \"Interface/frame.png\", false);\n frame.move(settings.getWidth() / 2 - 265, 0, -2);\n frame.setWidth(530);\n frame.setHeight(10);\n guiNode.attachChild(frame);\n\n // Display a 2D image or icon on depth layer -1\n Picture logo = new Picture(\"logo\");\n logo.setImage(assetManager, \"Interface/Monkey.png\", true);\n logo.move(settings.getWidth() / 2 - 47, 2, -1);\n logo.setWidth(95);\n logo.setHeight(75);\n guiNode.attachChild(logo);\n }", "private void init() {\n if (root == null) {\n root = buildRoot();\n }\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "private void initilize()\n\t{\n\t\tdimXNet = project.getNoC().getNumRotX();\n\t\tdimYNet = project.getNoC().getNumRotY();\n\t\t\n\t\taddProperties();\n\t\taddComponents();\n\t\tsetVisible(true);\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(300, 200);\n this.setPreferredSize(new java.awt.Dimension(450, 116));\n this.add(getListPanel(), java.awt.BorderLayout.CENTER);\n this.add(getButtonPanel(), java.awt.BorderLayout.SOUTH);\n }", "private void initComponents() {\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n }", "public GuiMain02() {\r\n\t\tinitialize();\r\n\t}", "private void createUI() {\n\t\tthis.rootPane = new TetrisRootPane(true);\n\t\tthis.controller = new TetrisController(this, rootPane, getWorkingDirectory());\n\t\tthis.listener = new TetrisActionListener(controller, this, rootPane);\n\t\t\n\t\trootPane.setActionListener(listener);\n\t\trootPane.setGameComponents(controller.getGameComponent(), controller.getPreviewComponent());\n\t\trootPane.initialize();\n\t\t\n\t\tPanelBorder border = controller.getPlayer().getPanel().getPanelBorder(\"Tetris v\" + controller.getVersion());\n\t\tborder.setRoundedCorners(true);\n\t\tJPanel panel = new JPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));\n\t\tpanel.setBackground(getBackgroundColor(border.getLineColor()));\n\t\tpanel.setBorder(border);\n\t\tpanel.setPreferredSize(new Dimension(564, 551));\n\t\tpanel.add(rootPane);\n\t\trootPane.addPanelBorder(border, panel);\n\t\t\n\t\tthis.setContentPane(panel);\n\t\tthis.setSize(564, 550);\n\t\t\n\t\tcontroller.initializeUI();\n\t}", "private void initialize()\n {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(549,426));\n this.add(getComboBox(), com.ulcjava.base.application.ULCBorderLayoutPane.NORTH);\n }", "public void init() {\n \t\tWindow main = new Window(\"Table demo\");\n \t\tsetMainWindow(main);\n \n \t\t// set the application to use Corporate -theme\n \t\tsetTheme(\"corporate\");\n \n \t\t// Add link back to index.html\n \t\tmain.addComponent(menuLink);\n \n \t\t// create demo database\n \t\tsampleDatabase = new SampleDatabase();\n \n \t\t// Main window contains heading, two buttons, table and label\n \t\tmain.addComponent(new Label(\"<h2>Table demo</h2>\" + ACTION_DESCRIPTION,\n \t\t\t\tLabel.CONTENT_XHTML));\n \t\tOrderedLayout layout = new OrderedLayout(\n \t\t\t\tOrderedLayout.ORIENTATION_HORIZONTAL);\n \t\tlayout.addComponent(tableVisibility);\n \t\tlayout.addComponent(tableEnabler);\n \t\tlayout.addComponent(tableCaption);\n \t\tmain.addComponent(layout);\n \t\tmain.addComponent(table);\n \t\tmain.addComponent(tableLastAction);\n \t\tmain.addComponent(embeddedToolkitLink);\n \t\tmain.addComponent(tableDemoLink);\n \n \t\t// initialize demo components\n \t\tinitTable();\n \t}", "public MainFrame() {\n initComponents();\n\n mAlmondUI.addWindowWatcher(this);\n mAlmondUI.initoptions();\n\n initActions();\n init();\n\n if (IS_MAC) {\n initMac();\n }\n\n initMenus();\n mActionManager.setEnabledDocumentActions(false);\n }", "public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}", "public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "private void init() {\n List<Contructor> list = servisContructor.getAllContructors();\n for (Contructor prod : list) {\n contructor.add(new ContructorViewer(prod));\n }\n\n Label label = new Label(\"Catalog Contructors\");\n label.setLayoutX(140);\n label.setLayoutY(20);\n label.setStyle(\"-fx-font-size:20px\");\n\n initTable();\n table.setLayoutX(120);\n table.setLayoutY(60);\n table.setStyle(\"-fx-font-size:16px\");\n\n GridPane control = new ControlPanel(this, 2).getPanel();\n control.setLayoutX(120);\n control.setLayoutY(300);\n\n panel.setAlignment(Pos.CENTER);\n panel.add(label, 0, 0);\n panel.add(table, 0, 1);\n panel.add(control, 0, 2);\n }", "private void initUI() {\n\t\tStage stage = Stage.createStage();\n\n\t\tControl formPanel = buildFormTestTab();\n\n\t\tControl cellPanel = buildCellTestTab();\n\t\t\n\t\tTabPanel tabbedPane = new TabPanel();\n\t\ttabbedPane.add(\"Form Test\", formPanel);\n\t\ttabbedPane.add(\"Cell Layout Test\", cellPanel);\n\n\t\tstage.setContent(tabbedPane);\n\t}", "public MainWindow() {\n\t\tsuper(\"Petri Networks\");\n\n\t\tthis.createMenuBar();\n\n\t\tthis.createToolbar();\n\n\t\tthis.createOperationsPanel();\n\n\t\tthis.createNetworksPanel();\n\n\t}", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public Designer() {\n initComponents();\n }", "private void initComponents()\n {\n //LAYOUT\n initLayoutComponents();\n \n //TRANSITION COMPONENTS\n initTransitionComponents();\n \n //SEARCH PANE COMPONENTS\n initSearchComponents();\n \n //RESULTS PANE COMPONENTS\n initResultComponents();\n \n // CRAWLER CONTROLS\n initCrawlerControlsComponents();\n \n // KEYWORD BAR\n initKeywordBarComponents();\n \n //WORKER CONTROLS\n initWorkerComponents();\n \n //URL COMPONENTS\n initURLMenuComponents();\n\n //BASE LAYOUT COMPONENTS\n initBaseLayout();\n }", "public MainPage() {\n initComponents();\n \n initPage();\n }" ]
[ "0.7466401", "0.72609097", "0.7213113", "0.71709573", "0.7147316", "0.71357614", "0.7095116", "0.7089305", "0.70773095", "0.70764613", "0.7069164", "0.7069164", "0.69975734", "0.69952303", "0.69933033", "0.6984043", "0.6958381", "0.6940418", "0.69229317", "0.6902582", "0.6897341", "0.68942416", "0.68880963", "0.68841773", "0.6881276", "0.687937", "0.6866293", "0.6855234", "0.68454885", "0.68371457", "0.6829475", "0.6825081", "0.6789867", "0.6780919", "0.6775327", "0.6760541", "0.67540395", "0.6750049", "0.6744085", "0.6736663", "0.6727484", "0.6704865", "0.67007315", "0.6699417", "0.66978484", "0.6695715", "0.66898125", "0.66760784", "0.6670805", "0.6669098", "0.66647196", "0.66611224", "0.66510594", "0.6637923", "0.66309935", "0.6628972", "0.66238844", "0.662358", "0.66222763", "0.66109234", "0.66090864", "0.6602802", "0.6600472", "0.6596929", "0.65945053", "0.65914094", "0.65887827", "0.6588151", "0.6575735", "0.65731835", "0.6570736", "0.6569932", "0.6568875", "0.6568778", "0.65680677", "0.6566705", "0.6558597", "0.6551309", "0.6550512", "0.6550512", "0.6550512", "0.6550512", "0.6550512", "0.6549549", "0.6549048", "0.6548137", "0.65457195", "0.6545557", "0.6544012", "0.6538273", "0.65356034", "0.6532725", "0.65268", "0.651759", "0.65136874", "0.65107566", "0.650856", "0.6499226", "0.64991474", "0.649847", "0.6498426" ]
0.0
-1
fire the index change
@Override public void buttonClick(ClickEvent event) { bindingSource.setItemId(this, true, bindingSource.getItemId()); // fire the app event if it's implemented if (listenerDownButton != null) listenerDownButton.downButtonClick(new ClickNavigationEvent(event.getButton(), event.getComponent() , null, register, 0)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onIndexUpdate();", "public abstract void updateIndex();", "public void onIndexReset();", "protected final void fireIndexedPropertyChange(\n String propertyName, int index, Object oldValue, Object newValue) {\n PropertyChangeSupport aChangeSupport = this.changeSupport;\n if (aChangeSupport == null) {\n return;\n }\n aChangeSupport.fireIndexedPropertyChange(propertyName, index, oldValue, newValue);\n }", "protected void notifyChange(Object oldValue, Object newValue) {\n Index.valueOf(((Integer)newValue).intValue());\r\n }", "protected void notifyChange(Object oldValue, Object newValue) {\n Index.valueOf(((Integer)newValue).intValue());\r\n }", "public void setIndex(int index) { this.index = index; }", "public interface IndexChangeListener\n\t{\n\t\t/** Index was updated with files or files were removed */\n\t\tpublic void onIndexUpdate();\n\n\t\t/** Index was reset - created or deleted */\n\t\tpublic void onIndexReset();\n\t}", "public void setIndex(int index){\r\n \tthis.index = index;\r\n }", "private void setIndex(int index){\n\t\tthis.index = index;\n\t}", "private Reindex() {}", "private Reindex() {}", "public void updateIndex() {\n int i = this.index;\n if (i == -1 || i > HashBiMap.this.size || !Objects.equal(HashBiMap.this.keys[this.index], this.key)) {\n this.index = HashBiMap.this.findEntryByKey(this.key);\n }\n }", "void indexReset();", "public void setIndex(int index){\n\t\tthis.index = index;\n\t}", "@ManagedOperation(description = \"Starts rebuilding the index\", displayName = \"Rebuild index\")\n void start();", "protected void soConsumerIndex(long newValue)\r\n/* 27: */ {\r\n/* 28:139 */ C_INDEX_UPDATER.lazySet(this, newValue);\r\n/* 29: */ }", "public void setIndex(int index) {\n _index = index;\n }", "void changeSetting(int idx) {\n currentIdx = idx;\n }", "public void setIndex(int index)\n/* */ {\n/* 39 */ this.index = index;\n/* */ }", "abstract void onIndexDisrupted(String caseId);", "public void setIndex(int index) {\r\n this.index = index;\r\n }", "public void changeDataIndx(int indxMove)\n\t{\n\t\tlogger.debug(\"Index moved \"+indxMove);\n\t\ttry {\n\t\t\tint currDataID=table.changeDataIndx(indxMove);\n\t\t\tif(currDataID>-1)\n\t\t\t\tdataIndexChanged();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error changing index: \",e);\n\t\t\tMainUIFrame.setStatusMessage(\"Error changing index: \"+e.getMessage());\n\t\t}\n\t}", "public void UpdatePushIndex() {\n\t\tsetorgetState(true,false);\n\t}", "@Override\n\tpublic void setValueIndex(int index) {\n\t\t\n\t}", "@Override\n public void visit(Index node) {\n }", "public void setIndex(int ind){\n\t\tindex = ind;\n\t}", "public void setSyncIndex(int index) {\n }", "protected void setIndex(Expression expr)\n {\n index = expr;\n }", "public void setIndex(int index) {\n nativeSetDCChangeSpeedLevel2Index(index);\n }", "void setColumnIndex(int newIndex);", "@Override\n @Secured(SecurityRoles.ADMINISTRATOR)\n public void reindex() {\n revisionDao.deleteAll();\n // OK, launches a new indexation\n indexFromLatest();\n }", "public void setIndex(Integer index) {\n this.index = index;\n }", "public void setIndex(Integer index) {\n this.index = index;\n }", "public void tableChanged(TableModelEvent e) {\n reallocateIndexes();\n super.tableChanged(e);\n }", "public void setIndex(int i){\n\t\tthis.index = i;\r\n\t}", "private static void handleViewIndex(Consumer<Index> changeViewIndex, Index currentIndex, Index newIndex) {\n if (currentIndex.getOneBased() >= newIndex.getOneBased()) {\n // currentIndex have to minus 1\n int shiftIndex = currentIndex.getOneBased();\n if (shiftIndex - 1 > 0) {\n changeViewIndex.accept(Index.fromOneBased(shiftIndex - 1));\n }\n }\n }", "@Override\n\tpublic void changeCriterion(int index) {\n }", "protected void setIndex(int index) {\n\t\tthis.index = index;\n\t}", "void setIndexed(boolean indexed);", "@Override\n\tpublic void notifyDataSetChanged() {\n\t\tsuper.notifyDataSetChanged();\n\t\tsetIndexer(list);\n\t}", "public void afterIndexClosed(Index index) {\n\n }", "public void refresh() {\n getIndexOperations().refresh();\n }", "public void setIndex(int value) {\n\t\tthis.index = value;\r\n\t}", "public void update(int index, int newVal) {\n\t\tupdateUtil(index, newVal, 0, valArray.length - 1, 0, this.oper);\n\t}", "interface CoordinateIndexUpdater {\n void updateIndex();\n }", "public void setIndex(int i) {\n\t\t\n\t}", "public void setIndex(int value) {\n this.index = value;\n }", "public void set(long index);", "private IndexerModelEvent refreshIndex(final String indexName) throws InterruptedException, KeeperException {\n try {\n IndexDefinitionImpl index = loadIndex(indexName);\n index.makeImmutable();\n final boolean isNew = !indexes.containsKey(indexName);\n indexes.put(indexName, index);\n \n return new IndexerModelEvent(isNew ? IndexerModelEventType.INDEX_ADDED : IndexerModelEventType.INDEX_UPDATED, indexName);\n \n } catch (IndexNotFoundException e) {\n indexes.remove(indexName);\n \n return new IndexerModelEvent(IndexerModelEventType.INDEX_REMOVED, indexName);\n }\n }", "public void testIndexCosts() {\n this.classHandler.applyIndexes();\n }", "public void beforeIndexCreated(Index index) {\n\n }", "public interface CaseIndexChangeListener {\n\n\n /**\n * A signal that notes that processing a transaction has resulted in a\n * potential change in what cases should be on the phone. This can be\n * due to a case's owner changing, a case closing, an index moving, etc.\n *\n * Does not have to be consumed, but can be used to identify proactively\n * when to reconcile what cases should be available.\n *\n * @param caseId The ID of a case which has changed in a potentially\n * disruptive way\n */\n abstract void onIndexDisrupted(String caseId);\n}", "private void changeCurIndex() {\n\t\tint TexID=-1;\r\n\t\tif(ApplicationInfo.Destination == Constants.TO_FRONT)\r\n\t\t{\r\n\t\t\tCurIndex=++CurIndex >= mApplications.size()? 0 : CurIndex;\r\n\t\t\tif((TexID=mApplications.get(getPreIndex()).getReady()) != -1)\r\n\t\t\t\tunSetTexID(TexID);\r\n \t\t\tmApplications.get(getPreIndex()).setReady(-1);\r\n\t\t}\r\n\t\telse if(ApplicationInfo.Destination == Constants.TO_BACK)\r\n\t\t{\r\n\t\t\tCurIndex=--CurIndex < 0? mApplications.size()-1 : CurIndex;\r\n\t\t\tif((TexID=mApplications.get(getNextIndex()).getReady()) != -1)\r\n\t\t\t\tunSetTexID(TexID);\r\n\t\t\tmApplications.get(getNextIndex()).setReady(-1);\r\n\t\t}\r\n\t\tLog.d(TAG, \"changeCurIndex :\"+CurIndex);\r\n\t}", "public void setIndex(int value) {\n\t\tthis.index = value;\n\t}", "public interface IndexListener {\n\t/**\n\t * Index has been reset.\n\t */\n\tvoid indexReset();\n\n\t/**\n\t * Item has been added to the index.\n\t *\n\t * @param key Object key.\n\t * @param o Object o.\n\t */\n\tvoid itemAddedToIndex(Object key, Object o);\n}", "void update(int index, int val) {\n\t\tarray[index] = val;\n\t}", "void incrementColumnIndex();", "void incrementColumnIndex();", "protected void onUpdated( E entity, GameState state, int index )\r\n\t{\r\n\t\t\r\n\t}", "boolean isNewIndex();", "public void awaleChanged(Awale awale, short eventType, short row,\r\n\t short column);", "public void setIndex(int newIndex)\r\n {\r\n\t if(newIndex < 1)\r\n\t\t index = 1;\r\n\t else if(newIndex > getNumberOfLines())\r\n\t\t index = getNumberOfLines();\r\n\t else\r\n\t\t index = newIndex;\r\n }", "void setColumnIndex(int index);", "public abstract void allRowsChanged();", "@RequestMapping(value=\"/rebuilditemindex.htm\")\n\t@ResponseBody\n\tpublic String reBuildIndex(){\n\t\ttry{\n\t\t\tthis.itemService.reBuildIndex();\n\t\t\treturn \"success\";\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn \"exception\";\n\t\t}\n\t}", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public static void updateIndex(final List<Entity> entity) {\n }", "protected synchronized void updateIndex(DirectoryManagerIndex newIndex) {\n \n // Sanity check.\n if ((newIndex == null) && (index == null))\n throw new DirectoryManagerConfigurationException(\"Index not initialized but file \" + configuration.getIndexFilename() + \" still marked as outdated\");\n \n // Update existing index.\n index = newIndex;\n \n }", "@Override\n public final void set(int index, E newValue) {\n array[index] = newValue;\n }", "void setIdx(int i);", "protected void fireEventEdit(int index) {\n\t\tfor(ActionCellListener listener : actionCellListeners)\n\t\t\tlistener.eventEdit(index);\n\t}", "public void setIdx(Integer idx) {\r\n\t\tthis.idx = idx;\r\n\t}", "@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}", "@Override\n public void onCurShapeIndexUpdate(BNRGCurShapeIndexUpdate arg0) {\n Log.d(BNRemoteConstants.MODULE_TAG, \"onCurShapeIndexUpdate...... \");\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "private void notifyObjectChanged(int index0, int index1) {\n\t\tlisteners.forEach(l -> l.objectsChanged(this, index0, index1));\n\t}", "public static void update() {\n if (!isEnd()) index++;\n state++;\n return;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "private void reIndex()\n {\n for(int i = 0; i < NodeList.size(); i++)\n NodeList.get(i).setID(i);\n ID = NodeList.size();\n }", "private void syncIndex(FundamentalData fd) throws Exception {\n\n List<MarketIndex> indexes = marketIndexService.findBySymbol(fd.getSymbol());\n if(indexes.size()>1){\n throw new Exception(\"Multiple instances (\"+indexes.size()+\") of symbol \"+fd.getSymbol()+\" present in the database.\");\n }\n\n MarketIndex index;\n if(indexes.size()==0){ // does not exist in db\n index=new MarketIndex();\n index.setSymbol(fd.getSymbol());\n index.setName(fd.getName());\n index.setCategory(fd.getType().getCode());\n\n }else{ // index exists in db\n index = indexes.get(0);\n if(fd.getName()!=null){\n index.setName(fd.getName());\n }\n if(fd.getType()!=null){\n index.setCategory(fd.getType().getCode());\n }\n\n }\n\n updateIcon(index);\n marketIndexService.update(index);\n\n }", "public Integer mutate(int index);", "protected void sequence_Index(ISerializationContext context, Index semanticObject) {\r\n\t\tif (errorAcceptor != null) {\r\n\t\t\tif (transientValues.isValueTransient(semanticObject, GoPackage.Literals.INDEX__EXPRESSION) == ValueTransient.YES)\r\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, GoPackage.Literals.INDEX__EXPRESSION));\r\n\t\t}\r\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\r\n\t\tfeeder.accept(grammarAccess.getIndexAccess().getExpressionExpressionParserRuleCall_1_0(), semanticObject.getExpression());\r\n\t\tfeeder.finish();\r\n\t}", "@Override\n public final int getIndex() {\n return index;\n }", "@Override\n\tpublic void applyMutation(int index, double a_percentage) {\n\n\t}", "private void advanceCommitIndex() {\n // 获取quorum matchIndex\n int peerNum = configuration.getServersList().size();\n long[] matchIndexes = new long[peerNum];\n int i = 0;\n for (RaftProto.Server server : configuration.getServersList()) {\n if (server.getServerId() != localServer.getServerId()) {\n Peer peer = peerMap.get(server.getServerId());\n matchIndexes[i++] = peer.getMatchIndex();\n }\n }\n matchIndexes[i] = raftLog.getLastLogIndex();\n Arrays.sort(matchIndexes);\n long newCommitIndex = matchIndexes[peerNum / 2];\n LOG.debug(\"newCommitIndex={}, oldCommitIndex={}\", newCommitIndex, commitIndex);\n if (raftLog.getEntryTerm(newCommitIndex) != currentTerm) {\n LOG.debug(\"newCommitIndexTerm={}, currentTerm={}\",\n raftLog.getEntryTerm(newCommitIndex), currentTerm);\n return;\n }\n\n if (commitIndex >= newCommitIndex) {\n return;\n }\n long oldCommitIndex = commitIndex;\n commitIndex = newCommitIndex;\n raftLog.updateMetaData(currentTerm, null, raftLog.getFirstLogIndex(), commitIndex);\n // 同步到状态机\n for (long index = oldCommitIndex + 1; index <= newCommitIndex; index++) {\n RaftProto.LogEntry entry = raftLog.getEntry(index);\n if (entry.getType() == RaftProto.EntryType.ENTRY_TYPE_DATA) {\n stateMachine.apply(entry.getData().toByteArray());\n } else if (entry.getType() == RaftProto.EntryType.ENTRY_TYPE_CONFIGURATION) {\n applyConfiguration(entry);\n }\n }\n lastAppliedIndex = commitIndex;\n LOG.debug(\"commitIndex={} lastAppliedIndex={}\", commitIndex, lastAppliedIndex);\n commitIndexCondition.signalAll();\n }", "public void setNameIndex(int index);", "void itemAddedToIndex(Object key, Object o);", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "@java.lang.Override\n public int getIndex() {\n return index_;\n }", "public void setEventIndex(int index) {\n eventIndex = index;\n }", "final private void fireColumnChanged( final int columnIndex )\r\n {\r\n final int rowCount = getRowCount();\r\n if( rowCount > 0 )\r\n {\r\n final TableModelEvent tme = new TableModelEvent\r\n ( this\r\n , 0\r\n , rowCount - 1\r\n , columnIndex\r\n , TableModelEvent.UPDATE\r\n );\r\n fireTableChanged( tme );\r\n }\r\n }", "private void changeListIndex(int index) {\r\n if (index >= 0 && index < fileList.getVisibleRowCount()) {\r\n this.fileList.setSelectedIndex(index);\r\n }\r\n }", "public abstract void setIndex(int i, boolean b);", "@Override\n public void close()\n {\n notifyLegacyIndexOperationQueue();\n\n }", "public int getIndex() { return this.index; }", "public interface IndexBuilder {\n\n /**\n * Rebuilds the index only when the existing index is not populated.\n */\n void rebuildIfNecessary();\n\n}", "public int getIndex(\n )\n {return index;}" ]
[ "0.8251045", "0.79125386", "0.74909884", "0.68971485", "0.68781173", "0.68781173", "0.6597938", "0.64885277", "0.6449144", "0.64472437", "0.63762724", "0.63762724", "0.63750255", "0.63301146", "0.63099563", "0.63066363", "0.6295948", "0.6291568", "0.6264146", "0.62395245", "0.6231408", "0.6186055", "0.6160384", "0.61505944", "0.61384094", "0.6135364", "0.6133638", "0.61294806", "0.61082035", "0.6087868", "0.6083671", "0.60748744", "0.60676414", "0.60676414", "0.60582834", "0.60273564", "0.60218155", "0.5970897", "0.59560853", "0.5949496", "0.5942562", "0.59221095", "0.59169126", "0.59003264", "0.5893409", "0.58853257", "0.587922", "0.5878544", "0.5872612", "0.5853013", "0.5846978", "0.58341056", "0.58216053", "0.5811384", "0.57768446", "0.5769629", "0.57666725", "0.5753832", "0.5753832", "0.57527417", "0.57489765", "0.574247", "0.57187575", "0.5711477", "0.5710624", "0.5702289", "0.57014173", "0.5695315", "0.5674588", "0.5659224", "0.5659003", "0.5646677", "0.56236976", "0.56086904", "0.56062394", "0.56056976", "0.56049764", "0.5599986", "0.55957407", "0.55957407", "0.55957407", "0.5595653", "0.55883735", "0.5574058", "0.5573133", "0.555486", "0.5553599", "0.55532", "0.55447984", "0.5539863", "0.55339354", "0.55339354", "0.55339354", "0.5519335", "0.55152416", "0.5511098", "0.55092317", "0.54940027", "0.5492759", "0.549195", "0.5489298" ]
0.0
-1
common part: create layout
@AutoGenerated private HorizontalLayout buildMainLayout() { mainLayout = new HorizontalLayout(); mainLayout.setImmediate(false); mainLayout.setWidth("-1px"); mainLayout.setHeight("29px"); mainLayout.setMargin(false); // top-level component properties setWidth("-1px"); setHeight("29px"); // pnToolbar pnToolbar = buildPnToolbar(); mainLayout.addComponent(pnToolbar); return mainLayout; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void iniciarLayout();", "Board createLayout();", "public abstract void doLayout();", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }", "public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\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\tAlignment.LEADING)\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\tgroupLayout\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\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\t225,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.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\tgroupLayout\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\tAlignment.LEADING)\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\tp_execute,\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\t957,\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\tp_container,\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\t957,\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\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\t1188,\n\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.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\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(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\n\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\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\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\tAlignment.LEADING)\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\tp_commands,\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\t603,\n\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\tgroupLayout\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\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\t549,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\tp_execute,\n\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\t48,\n\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.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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\tAlignment.LEADING)\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\tp_view,\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\t955,\n\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\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\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\tComponentPlacement.RELATED)\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\tbt_revert))\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\tgl_p_container\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\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\tComponentPlacement.RELATED)\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\ttf_name,\n\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\t893,\n\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.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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\tAlignment.BASELINE)\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\ttf_name,\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(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\n\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\t466, GroupLayout.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\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\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\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\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\tAlignment.BASELINE)\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\tta_header,\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\t44,\n\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.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\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\tAlignment.LEADING)\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\tp_tree,\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\t211,\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(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\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.DEFAULT_SIZE,\n\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.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}", "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "public void setupLayout() {\n // left empty for subclass to override\n }", "public void createLayout() {\n\t\tpersons = createPersonGuessPanel();\t\t\n\t\tweapons = createWeaponGuessPanel();\n\t\trooms = createRoomGuessPanel();\n\t\t\n\t\tpersonCheckList = createPeoplePanel();\n\t\tweaponCheckList =createWeaponsPanel(); \n\t\troomCheckList = createRoomsPanel();\n\t\t\n\t\tJPanel completed = new JPanel();\n\t\tcompleted.setLayout(new GridLayout(3, 2));\n\t\tadd(completed, BorderLayout.CENTER);\n\t\tcompleted.add(personCheckList);\n\t\tcompleted.add(persons);\n\t\tcompleted.add(weaponCheckList);\n\t\tcompleted.add(weapons);\n\t\tcompleted.add(roomCheckList);\n\t\tcompleted.add(rooms);\n\t}", "private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }", "private void defineLayout(IPageLayout layout) {\n String editorArea = layout.getEditorArea();\r\n\r\n IFolderLayout folder;\r\n\r\n // Place remote system view to left of editor area.\r\n folder = layout.createFolder(NAV_FOLDER_ID, IPageLayout.LEFT, 0.2F, editorArea);\r\n folder.addView(getRemoveSystemsViewID());\r\n\r\n // Place properties view below remote system view.\r\n folder = layout.createFolder(PROPS_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, NAV_FOLDER_ID);\r\n folder.addView(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n\r\n // Place job log explorer view below editor area.\r\n folder = layout.createFolder(JOB_LOG_EXPLORER_FOLDER_ID, IPageLayout.BOTTOM, 0.0F, editorArea);\r\n folder.addView(JobLogExplorerView.ID);\r\n\r\n // Place command log view below editor area.\r\n folder = layout.createFolder(CMDLOG_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, JobLogExplorerView.ID);\r\n folder.addView(getCommandLogViewID());\r\n\r\n layout.addShowViewShortcut(getRemoveSystemsViewID());\r\n layout.addShowViewShortcut(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n layout.addShowViewShortcut(getCommandLogViewID());\r\n\r\n layout.addPerspectiveShortcut(ID);\r\n\r\n layout.setEditorAreaVisible(false);\r\n }", "@Override\n public void layout() {\n // TODO: not implemented\n }", "void computeNewLayout();", "public void createInitialLayout(IPageLayout layout) {\n \n\t}", "private void buildMainLayout(IAuthorizationContext pContext)\r\n throws UnauthorizedAccessAttemptException, IOException {\r\n\r\n createObjectEntry();\r\n\r\n if (parent.getParentUI().siteName.equals(parent.getParentUI().siteNameCVMA)) {\r\n defineInfoLayoutCVMA();\r\n } else {\r\n defineInfoLayoutStandard();\r\n }\r\n\r\n thumbLayout = new VerticalLayout();\r\n thumbLayout.setSizeFull();\r\n thumbLayout.setSpacing(false);\r\n thumbLayout.setMargin(false);\r\n thumbLayout.setStyleName(\"white\");\r\n thumbLayout.setHeight(\"150px\");\r\n thumbLayout.setWidth(\"161px\");\r\n\r\n // initialize thumbnail field and button\r\n setThumbButton();\r\n\r\n // build content layout\r\n buttonLayout = new VerticalLayout();\r\n buttonLayout.setSizeFull();\r\n buttonLayout.setSpacing(false);\r\n buttonLayout.setMargin(false);\r\n buttonLayout.setStyleName(\"white\");\r\n buttonLayout.setHeight(\"150px\");\r\n buttonLayout.setWidth(\"161px\");\r\n\r\n // set download button\r\n setDownloadButton();\r\n\r\n // set metadata viewer button\r\n setMetadataViewerButton();\r\n\r\n // download button\r\n setImageDownloadButton();\r\n\r\n // map button\r\n setMapButton();\r\n\r\n // build content layout\r\n contentLayout = new HorizontalLayout();\r\n contentLayout.setSizeFull();\r\n contentLayout.setMargin(false);\r\n contentLayout.setMargin(new MarginInfo(false, false, true, false));\r\n contentLayout.setStyleName(\"white\");\r\n contentLayout.addComponent(thumbLayout);\r\n contentLayout.addComponent(infoLayout);\r\n contentLayout.addComponent(buttonLayout);\r\n contentLayout.setComponentAlignment(thumbLayout, Alignment.TOP_LEFT);\r\n contentLayout.setComponentAlignment(infoLayout, Alignment.TOP_CENTER);\r\n contentLayout.setComponentAlignment(buttonLayout, Alignment.TOP_RIGHT);\r\n contentLayout.setExpandRatio(infoLayout, 11f);\r\n }", "@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n\n return mainLayout;\n }", "private HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100%\");\r\n\t\tsetHeight(\"100%\");\r\n\t\t\r\n\t\t// panelImg\r\n\t\tpanelImg = buildPanelImg();\r\n\t\tmainLayout.addComponent(panelImg);\r\n\t\t\r\n\t\t// gridInfo\r\n\t\tgridInfo = buildGridInfo();\r\n\t\tmainLayout.addComponent(gridInfo);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}", "@Override\n public void createInitialLayout(IPageLayout layout) {\n defineActions(layout);\n defineLayout(layout);\n }", "private void doTheLayout(){\n\n\t JPanel top = new JPanel();\n\t JPanel center = new JPanel();\n\t JPanel bottom = new JPanel();\n\n\t top.setLayout( new FlowLayout());\n\t top.add(label1);\n\t top.add(field1);\n\n\t center.setLayout( new FlowLayout());\n\t center.add(label2);\n\t center.add(field2);\n\n\t bottom.setLayout( new FlowLayout());\n\t bottom.add(SortButton);\n\t bottom.add(CloseButton);\n\n\t setLayout( new BorderLayout());\n\t add(top, \"North\");\n\t add(center, \"Center\");\n\t add(bottom, \"South\");\n\n\t }", "NodeLayout createNodeLayout();", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"100.0%\");\r\n\t\tmainLayout.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// label\r\n\t\tlabel = new Label();\r\n\t\tlabel.setImmediate(false);\r\n\t\tlabel.setWidth(\"-1px\");\r\n\t\tlabel.setHeight(\"-1px\");\r\n\t\tlabel.setValue(\"Stellvertreter ernennen\");\r\n\t\tlabel.setStyleName(Runo.LABEL_H1);\r\n\t\tmainLayout.addComponent(label, \"top:25.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// benutzer\r\n\t\tbenutzer = new ListSelect();\r\n\t\tbenutzer.setImmediate(false);\r\n\t\tbenutzer.setWidth(\"46.0%\");\r\n\t\tbenutzer.setHeight(\"70.0%\");\r\n\t\tmainLayout.addComponent(benutzer, \"top:35.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// ok\r\n\t\tok = new Button();\r\n\t\tok.setCaption(\"Stellvertreter ernennen\");\r\n\t\tok.setImmediate(false);\r\n\t\tok.setWidth(\"25%\");\r\n\t\tok.setHeight(\"-1px\");\r\n\t\tok.addListener(this);\r\n\t\tmainLayout.addComponent(ok, \"top:83.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// delete\r\n\t\tdelete = new Button();\r\n\t\tdelete.setCaption(\"Stellvertreter löschen\");\r\n\t\tdelete.setImmediate(false);\r\n\t\tdelete.setWidth(\"25%\");\r\n\t\tdelete.setHeight(\"-1px\");\r\n\t\tdelete.addListener(this);\r\n\t\tmainLayout.addComponent(delete, \"top:88.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// logout\r\n\t\tlogout = new Button();\r\n\t\tlogout.setCaption(\"logout\");\r\n\t\tlogout.setImmediate(false);\r\n\t\tlogout.setWidth(\"-1px\");\r\n\t\tlogout.setHeight(\"-1px\");\r\n\t\tlogout.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tlogout.addListener(this);\r\n\t\tmainLayout.addComponent(logout, \"top:97.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// back\r\n\t\tback = new Button();\r\n\t\tback.setCaption(\"Startseite\");\r\n\t\tback.setImmediate(true);\r\n\t\tback.setWidth(\"-1px\");\r\n\t\tback.setHeight(\"-1px\");\r\n\t\tback.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tback.addListener(this);\r\n\t\tmainLayout.addComponent(back, \"top:94.0%;left:35.0%;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\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 initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }", "private void prepareLayout() {\n\n\t\tm_layouts = new ArrayList<SQLTableLayout>();\n\n\t\t//\n\t\t// construct the table tag\n\t\t//\n\t\tSQLTableLayout layout = new SQLTableLayout(TAG_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"tag id\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_NAME, \"TEXT\", \"tag name\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_CREATE_DATE, \"TEXT\",\n\t\t\t\t\"creation date of tag\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_USAGE, \"INTEGER\",\n\t\t\t\t\"tag usage in repository\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the table file\n\t\t//\n\t\tlayout = new SQLTableLayout(FILE_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"file id\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_PATH, \"TEXT\", \"path of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_TYPE, \"TEXT\", \"type of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_CREATE_DATE, \"TEXT\",\n\t\t\t\t\"creation date of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_HASH_SUM, \"TEXT\",\n\t\t\t\t\"hash sum of file\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the mapping table\n\t\t//\n\t\tlayout = new SQLTableLayout(MAP_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"map id\");\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_FILE, \"INTEGER\", \"file id\");\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_TAG, \"INTEGER\", \"tag id\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the directory table\n\t\t//\n\t\tlayout = new SQLTableLayout(DIRECTORY_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(DIRECTORY_FIELD_ID,\n\t\t\t\t\"INTEGER primary key\", \"directory id\");\n\t\tlayout.addFieldToSQLTableLayout(DIRECTORY_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"path of directory\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct pending file table\n\t\t//\n\t\tlayout = new SQLTableLayout(PENDING_FILE_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(PENDING_FIELD_ID,\n\t\t\t\t\"INTEGER primary key\", \"pending id\");\n\t\tlayout.addFieldToSQLTableLayout(PENDING_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"pending path of file\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct synchronized table\n\t\t//\n\t\tlayout = new SQLTableLayout(SYNC_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"sync id\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"path of synced file\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_DATE, \"TEXT\", \"sync date\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_TAGS, \"TEXT\",\n\t\t\t\t\"tags of synced file\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_HASH_SUM, \"TEXT\",\n\t\t\t\t\"hash sum of synced file\");\n\t\tm_layouts.add(layout);\n\t}", "private void setupLayout()\n {\n Container contentPane;\n\n setSize(300, 300); \n\n contentPane = getContentPane();\n\n // Layout this PINPadWindow\n }", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setStyleName(\"contenido\");\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(true);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// hl_cabecera\n\t\thl_cabecera = buildHl_cabecera();\n\t\tmainLayout.addComponent(hl_cabecera);\n\t\t\n\t\t// horizontalLayout_1\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\n\t\tmainLayout.addComponent(horizontalLayout_1);\n\t\tmainLayout.setComponentAlignment(horizontalLayout_1, new Alignment(20));\n\t\t\n\t\t// l_preferenciasUsuario\n\t\tl_preferenciasUsuario = new Label();\n\t\tl_preferenciasUsuario.setStyleName(\"mih2\");\n\t\tl_preferenciasUsuario.setImmediate(false);\n\t\tl_preferenciasUsuario.setWidth(\"100.0%\");\n\t\tl_preferenciasUsuario.setHeight(\"-1px\");\n\t\tl_preferenciasUsuario.setValue(\"Preferencias de Usuario\");\n\t\tmainLayout.addComponent(l_preferenciasUsuario);\n\t\t\n\t\t// hl_gridContent\n\t\thl_gridContent = new HorizontalLayout();\n\t\thl_gridContent.setImmediate(false);\n\t\thl_gridContent.setWidth(\"100.0%\");\n\t\thl_gridContent.setHeight(\"-1px\");\n\t\thl_gridContent.setMargin(false);\n\t\tmainLayout.addComponent(hl_gridContent);\n\t\t\n\t\t// b_enviar\n\t\tb_enviar = new Button();\n\t\tb_enviar.setCaption(\"Actualizar\");\n\t\tb_enviar.setImmediate(true);\n\t\tb_enviar.setWidth(\"-1px\");\n\t\tb_enviar.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(b_enviar);\n\t\tmainLayout.setComponentAlignment(b_enviar, new Alignment(48));\n\t\t\n\t\treturn mainLayout;\n\t}", "private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}", "public abstract int presentViewLayout();", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "private void createMigLayout() {\r\n setLayout(new MigLayout(\"\", \"[][]6[]\", \"[]6[]\"));\r\n\r\n add(indexTitle, \"wrap\");\r\n add(dirUrl, \"span 3\");\r\n add(openDir, \"wrap\");\r\n add(indexProgress, \"wrap, span 4, growx\");\r\n add(addExistingCheck, \"span 3, split 2, right\");\r\n add(new JLabel(\"Add Existing Index\"));\r\n add(startIndexing, \"wrap 3sp\");\r\n add(new JLabel(\r\n \"<html>\"\r\n + \"\t<b style ='color:#3888a9'>Important Notes:</b>\"\r\n + \"\t\t<ol>\"\r\n + \"\t\t\t<li>JPEG images in directory and <i>sub-directories</i> will be indexed.</li>\"\r\n + \"\t\t\t<li>You can <i>update the existing index</i> in the database by checking the checkbox.</li>\"\r\n + \"</ol>\" + \"</html>\"), \"span 4\");\r\n }", "private void setupLayout() {\n this.setLayout(new BorderLayout());\n\t\tthis.setupConstraints();\n\n\t\tJPanel titleAuthorFields = new JPanel(new GridBagLayout());\n\t\ttitleAuthorFields.add(Pirex.inputField(titleLabel, titleTextField, null), cTitleField);\n\t\ttitleAuthorFields.add(Pirex.inputField(authorLabel, authorTextField, null), cAuthorField);\n\n\t\tJPanel inputFields = new JPanel(new GridLayout(3, 0));\n\t\tinputFields.add(Pirex.inputField(fileLabel, fileTextField, fileBrowseButton));\n\t\tinputFields.add(Pirex.inputField(fileTypeLabel, fileTypeComboBox, null));\n\t\tinputFields.add(titleAuthorFields);\n\t\tinputFields = Pirex.borderLayoutWrap(null, null, inputFields, null, separator);\n\n\t\tJPanel leftAlignedProcessButton = Pirex.leftAlign(processButton);\n\t\tJPanel processPanel = Pirex.borderLayoutWrap(leftAlignedProcessButton, null, summaryScrollPanel, null, null);\n\t\tJPanel loadTabPanel = Pirex.borderLayoutWrap(inputFields, null, processPanel, null, null);\n\n\t\tthis.add(Pirex.withBorder(loadTabPanel), BorderLayout.CENTER);\n\n }", "public testLayout() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public Layout() {\n }", "private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }", "private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}", "@Override\n\t\tpublic void layout (final int l, final int t, final int r, final int b) {\n\t\t}", "private void generateLayout() {\n\t\tJPanel generatePanel = new JPanel();\n\t\tgeneratePanel.setLayout(new GridBagLayout());\n\t\tJButton generatePrimes = new JButton(\"Generate Primes\");\n\t\tgeneratePrimes.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgeneratePrimesPopup();\n\t\t\t}\n\t\t});\n\t\tJButton generateHex = new JButton(\"Generate Hex Cross\");\n\t\tgenerateHex.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprimes.clearCrosses();\n\t\t\t\tprimes.generateHexPrimes();\n\t\t\t\tupdateValues(\"Succesful Hex Cross Prime Numbers Generated\");\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n\t\tgbc.fill = GridBagConstraints.CENTER;\n\t\tgbc.insets = new Insets(1,1,0,0);\n\t\tJPanel digitsPanel = new JPanel();\n\t\tdigitsPanel.setLayout(new GridLayout(2,1));\n\t\tLPrimedigits.setFont(new Font(\"Tahoma\", Font.BOLD,15));\n\t\tLHexDigits.setFont(new Font(\"Tahoma\", Font.BOLD,15));\n\t\tdigitsPanel.add(LPrimedigits);\n\t\tdigitsPanel.add(LHexDigits);\n\t\tgbc.gridx = 0;\n\t\tgbc.weightx = 0.1;\n\t\tgeneratePanel.add(generatePrimes,gbc);\n\t\tgbc.gridx = 1;\n\t\tgbc.weightx = 0.1;\n\t\tgeneratePanel.add(digitsPanel,gbc);\n\t\tgbc.weightx = 0.1;\n\t\tgbc.gridx = 2;\n\t\tgeneratePanel.add(generateHex,gbc);\n\t\tgeneratePanel.setBorder(BorderFactory.createLineBorder(new Color(150,0,0), 2));\n\t\tmainLayout.add(generatePanel);\n\t}", "GraphLayout createGraphLayout();", "@AutoGenerated\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"500px\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(false);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"500px\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// verticalLayout_1\n\t\tverticalLayout_1 = buildVerticalLayout_1();\n\t\tmainLayout.addComponent(verticalLayout_1);\n\t\t\n\t\t// verticalLayout_2\n\t\tverticalLayout_2 = buildVerticalLayout_2();\n\t\tmainLayout.addComponent(verticalLayout_2);\n\t\tmainLayout.setExpandRatio(verticalLayout_2, 1.0f);\n\t\t\n\t\treturn mainLayout;\n\t}", "@AutoGenerated\n\tprivate HorizontalLayout buildInfo_container() {\n\t\tinfo_container = new HorizontalLayout();\n\t\tinfo_container.setImmediate(false);\n\t\tinfo_container.setWidth(\"100.0%\");\n\t\tinfo_container.setHeight(\"-1px\");\n\t\tinfo_container.setMargin(false);\n\t\t\n\t\t// nativeButton_upVote\n\t\tnativeButton_upVote = new NativeButton();\n\t\tnativeButton_upVote.setCaption(\"Up Vote\");\n\t\tnativeButton_upVote.setImmediate(false);\n\t\tnativeButton_upVote.setWidth(\"-1px\");\n\t\tnativeButton_upVote.setHeight(\"-1px\");\n nativeButton_upVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_upVote);\n\t\t\n\t\t// nativeButton_downVote\n\t\tnativeButton_downVote = new NativeButton();\n\t\tnativeButton_downVote.setCaption(\"Down Vote\");\n\t\tnativeButton_downVote.setImmediate(false);\n\t\tnativeButton_downVote.setWidth(\"-1px\");\n\t\tnativeButton_downVote.setHeight(\"-1px\");\n nativeButton_downVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_downVote);\n\n //nativeButton_accept\n nativeButton_accept = new NativeButton();\n nativeButton_accept.setCaption(\"Accept\");\n nativeButton_accept.setVisible(false);\n nativeButton_accept.setStyleName(\"accept-button\");\n info_container.addComponent(nativeButton_accept);\n\n //label_date\n label_date = new Label();\n label_date.setStyleName(\"date-label\");\n label_date.setWidth(\"-1px\");\n label_date.setHeight(\"-1px\");\n info_container.addComponent(label_date);\n info_container.setExpandRatio(label_date, 1.0f);\n info_container.setComponentAlignment(label_date, Alignment.MIDDLE_RIGHT);\n\t\t\n\t\t// label_user\n\t\tlabel_user = new Label();\n\t\tlabel_user.setImmediate(false);\n\t\tlabel_user.setWidth(\"-1px\");\n\t\tlabel_user.setHeight(\"-1px\");\n\t\tlabel_user.setValue(\"By \");\n label_user.setStyleName(\"user-label\");\n\t\tinfo_container.addComponent(label_user);\n//\t\tinfo_container.setExpandRatio(label_user, 1.0f);\n\t\tinfo_container.setComponentAlignment(label_user, new Alignment(34));\n\t\t\n\t\treturn info_container;\n\t}", "private void initMiddleBodyLayout() {\r\n midPanelLayoutCanv = new VerticalPanel();\r\n midPanelLayoutCanv.setWidth(middlePanelWidth + \"px\");\r\n midPanelLayoutCanv.setHeight((leftPanelHeight - 2) + \"px\");\r\n RootPanel.get(\"diva_mid_panel\").clear();\r\n RootPanel.get(\"diva_mid_panel\").add(midPanelLayoutCanv);\r\n //pca and profile plot layout\r\n topMidLayout = new HorizontalPanel();\r\n int newWidth = (middlePanelWidth / 2);\r\n int newHeight = newWidth + 22;\r\n topMidLayout.setHeight(newHeight + \"px\");\r\n topMidLayout.setWidth(middlePanelWidth + \"px\");\r\n topMidLayout.setStyleName(\"whitelayout\");\r\n\r\n //rank table layout\r\n rankLayoutCanv = new VLayout();\r\n rankLayoutCanv.setHeight((leftPanelHeight - (newHeight + 2)) + \"px\");\r\n rankLayoutCanv.setWidth(middlePanelWidth + \"px\");\r\n midPanelLayoutCanv.add(topMidLayout);\r\n midPanelLayoutCanv.add(rankLayoutCanv);\r\n }", "GeomLayout.IGeomLayoutCreateFromNode geomLayoutCreator();", "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}", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\t// Setzt die Hintergrundfarbe auf Grün\n\t\tmainLayout.addStyleName(\"backgroundErfassung\");\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\n\t\treturn mainLayout;\n\t}", "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}", "private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }", "void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}", "private Container layoutContainer(Container panel, XmlNode node,\n Vector xmlChildren) {\n panel.removeAll();\n String panelId = node.getAttribute(ATTR_ID);\n String layout = node.getAttribute(ATTR_LAYOUT, \"\");\n Vector children = new Vector();\n Vector nodes = new Vector();\n int hspace = node.getAttribute(ATTR_HSPACE, 0);\n int vspace = node.getAttribute(ATTR_VSPACE, 0);\n int rows = node.getAttribute(ATTR_ROWS, 0);\n int cols = node.getAttribute(ATTR_COLS, 1);\n String defaultComp = node.getAttribute(ATTR_DEFAULT, \"nocomp\");\n JTabbedPane tabs = null;\n\n if (layout.equals(VALUE_LAYOUTBORDER)) {\n panel.setLayout(new BorderLayout());\n } else if (layout.equals(VALUE_LAYOUTCARD)) {\n panel.setLayout(new CardLayout());\n } else if (layout.equals(VALUE_LAYOUTTAB)) {\n tabs = new JTabbedPane();\n panel.setLayout(new BorderLayout());\n panel.add(\"Center\", tabs);\n } else if (layout.equals(VALUE_LAYOUTFLOW)) {\n panel.setLayout(new FlowLayout(FlowLayout.LEFT, hspace, vspace));\n } else if (layout.equals(VALUE_LAYOUTGRID)) {\n panel.setLayout(new GridLayout(rows, cols, hspace, vspace));\n }\n for (int i = 0; i < xmlChildren.size(); i++) {\n XmlNode childXmlNode =\n getReffedNode((XmlNode) xmlChildren.elementAt(i));\n Component childComponent = xmlToUi(childXmlNode);\n if (childComponent == null) {\n continue;\n }\n componentToParent.put(childComponent, panel);\n children.addElement(childComponent);\n nodes.addElement(childXmlNode);\n if ( !childComponent.isVisible()) {\n continue;\n }\n if (layout.equals(VALUE_LAYOUTBORDER)) {\n String place = childXmlNode.getAttribute(ATTR_PLACE,\n \"Center\");\n panel.add(place, childComponent);\n } else if (layout.equals(VALUE_LAYOUTTAB)) {\n tabs.add(childXmlNode.getAttribute(ATTR_LABEL),\n childComponent);\n } else if (layout.equals(VALUE_LAYOUTCARD)) {\n String childId = childXmlNode.getAttribute(ATTR_ID);\n panel.add(childId, childComponent);\n if (defaultComp.equals(childId)) {\n ((CardLayout) panel.getLayout()).show(panel, childId);\n }\n } else if (layout.equals(VALUE_LAYOUTINSET)) {\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace,\n hspace);\n GuiUtils.doLayout(panel, new Component[] { childComponent },\n 1, GuiUtils.DS_Y, GuiUtils.DS_Y);\n\n break;\n } else if (layout.equals(VALUE_LAYOUTWRAP)) {\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace,\n hspace);\n GuiUtils.doLayout(panel, new Component[] { childComponent },\n 1, GuiUtils.DS_N, GuiUtils.DS_N);\n\n break;\n } else if ( !layout.equals(VALUE_LAYOUTGRIDBAG)) {\n panel.add(childComponent);\n }\n }\n if (layout.equals(VALUE_LAYOUTGRIDBAG)) {\n double[] cw =\n GuiUtils.parseDoubles(node.getAttribute(ATTR_COLWIDTHS));\n double[] rh =\n GuiUtils.parseDoubles(node.getAttribute(ATTR_ROWHEIGHTS));\n if (cw == null) {\n cw = GuiUtils.DS_Y;\n }\n if (rh == null) {\n rh = GuiUtils.DS_N;\n }\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace, hspace);\n GuiUtils.doLayout(panel, GuiUtils.getCompArray(children),\n node.getAttribute(ATTR_COLS, 1), cw, rh);\n }\n\n containerToNodeList.put(panel, nodes);\n\n return panel;\n }", "private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\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\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\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\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\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\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}", "public void layoutView()\n\t{\n\t\tthis.setLayout(new GridLayout(2,5));\n\t\tthis.add(expression);\n\t\tthis.add(var);\n\t\tthis.add(start);\n\t\tthis.add(end);\n\t\tthis.add(this.plot);\n\t\tthis.add(InputView.coords);\n\t\tthis.add(this.in);\n\t\tthis.add(this.out);\n\t}", "@Override\r\n\tpublic void layoutContainer(Container arg0) {\n\t\t\r\n\t}", "public void makeLayout() {\n\t\tgl_layout.setHorizontalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(150)\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 400, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 98, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t)\n\t\t);\n\t\tgl_layout.setVerticalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\t\t\t\t\t\t\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t);\n\t\tthis.setLayout(gl_layout);\t\t\n\t}", "private void layoutComponents() {\n setLayout(new MigLayout(\"fill, wrap 1, hidemode 3, \"\n + (padding ? \"ins rel\" : \"ins 0\")));\n\n add(infoLabel, \"growx\");\n add(scrollPane, \"grow, pushy\");\n add(addOptionPanel, \"growx\");\n }", "@AutoGenerated\r\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"800px\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100.0%\");\r\n\t\tsetHeight(\"800px\");\r\n\t\t\r\n\t\t// verticalLayout_5\r\n\t\tverticalLayout_5 = buildVerticalLayout_5();\r\n\t\tmainLayout.addComponent(verticalLayout_5);\r\n\t\tmainLayout.setComponentAlignment(verticalLayout_5, new Alignment(48));\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private void setUpLayout() {\n myLinearLayout=(LinearLayout)rootView.findViewById(R.id.container_wartaMingguan);\n\n // Add LayoutParams\n params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n params.setMargins(0, 10, 0, 0);\n\n // Param untuk deskripsi\n paramsDeskripsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n paramsDeskripsi.setMargins(0, 0, 0, 0);\n\n tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);\n rowTableParams = new TableLayout.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);\n\n // Untuk tag \"warta\"\n LinearLayout rowLayout = new LinearLayout(getActivity());\n rowLayout.setOrientation(LinearLayout.HORIZONTAL);\n\n // Membuat linear layout vertical untuk menampung kata-kata\n LinearLayout colLayout = new LinearLayout(getActivity());\n colLayout.setOrientation(LinearLayout.VERTICAL);\n colLayout.setPadding(0, 5, 0, 0);\n }", "private void initBaseLayout()\n {\n add(viewPaneWrapper, BorderLayout.CENTER);\n \n currentLayoutView = VIEW_PANE;\n currentSearchView = SEARCH_PANE_VIEW;\n showMainView(VIEW_PANE);\n showSearchView(currentSearchView);\n }", "private JPanel createContentPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 300));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"AttributesTitle\")));\n\n roomNameField = LabeledComponent\n .textField(localization.get(\"RoomNameLabel\"),\n new InfoPanelDocListener(this, new SetName()));\n roomNameField.addToPanel(panel);\n\n includeField = LabeledComponent\n .textField(localization.get(\"IncludeLabel\"),\n new InfoPanelDocListener(this, new SetInclude()));\n includeField.addToPanel(panel);\n\n inheritField = LabeledComponent\n .textField(localization.get(\"InheritLabel\"),\n new InfoPanelDocListener(this, new SetInherit()));\n inheritField.addToPanel(panel);\n\n buildStreetNameField(panel);\n\n buildAddEditStreetsButton(panel);\n\n buildColorSelector(panel);\n\n shortDescriptionField = LabeledComponent\n .textField(localization.get(\"ShortDescLabel\"),\n new InfoPanelDocListener(this, new SetShort()));\n panel.add(shortDescriptionField.getLabel());\n panel.add(shortDescriptionField.getComponent(), \"span, grow, wrap\");\n\n determinateField = LabeledComponent\n .textField(localization.get(\"DeterminateLabel\"),\n new InfoPanelDocListener(this, new SetDeterminate()));\n determinateField.addToPanel(panel);\n\n lightField = LabeledComponent\n .textField(localization.get(\"LightLabel\"),\n new InfoPanelDocListener(this, new SetLight()));\n lightField.addToPanel(panel);\n\n longDescriptionField = LabeledComponent\n .textArea(localization.get(\"LongDescLabel\"),\n new InfoPanelDocListener(this, new SetLong()));\n panel.add(longDescriptionField.getLabel(), \"wrap\");\n panel.add(longDescriptionField.getComponent(), \"span, grow\");\n\n return panel;\n }", "private void initBaseLayout() {\n if (topText != null) {\n TextView topicText = new TextView(mainContext);\n topicText.setText(topText);\n dimensionsContainer.setViewStyle(KEY_TOPIC_TEXT, topicText);\n topicText.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_topic));\n topicText.setClickable(true);\n topicText.setOnClickListener(generalClickListener);\n blankLayout.addView(topicText);\n }\n//Add topLayout\n //if (topLayout == null) {\n topLayout = new LinearLayout(mainContext);\n topLayout.setOrientation(LinearLayout.HORIZONTAL);\n topLayout.setLayoutParams(layoutParams_WC_WC);\n topLayout.setBackgroundColor(bgColor_Table);\n blankLayout.addView(topLayout);\n//Add numTop\n TextView numTop = new TextView(mainContext);\n numTop.setText(R.string.symbol_num);\n dimensionsContainer.setViewStyle(KEY_NUM_TOP, numTop);\n numTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_num_top));\n numTop.setClickable(true);\n numTop.setOnClickListener(generalClickListener);\n topLayout.addView(numTop);\n//Add nameTop\n TextView nameTop = new TextView(mainContext);\n nameTop.setText(nameTopTextResId);\n dimensionsContainer.setViewStyle(KEY_NAME_TOP, nameTop);\n nameTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_name_top));\n nameTop.setClickable(true);\n nameTop.setOnClickListener(generalClickListener);\n topLayout.addView(nameTop);\n\n\n\n\n\n\n//Add topHScrollView\n// if (layoutHandler.topHScrollView == null) {\n topHScrollView = new SyncedHorizontalScrollView(mainContext);\n topHScrollView.setLayoutParams(layoutParams_WC_MP);\n topHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor() !=\n null) //OverScrollColor\n {\n topHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor());\n }\n topLayout.addView(topHScrollView);\n\n//Add topScrollLayout\n // if(layoutHandler.topScrollLayout == null) {\n topScrollLayout = new LinearLayout(mainContext);\n topScrollLayout.setBackgroundColor(bgColor_Table);\n topHScrollView.addView(topScrollLayout);\n\n//Add bodyScrollView\n //if(layoutHandler.bodyScrollView == null) {\n bodyScrollView = new ScrollView(mainContext);\n bodyScrollView.setLayoutParams(layoutParams_MP_WC);\n bodyScrollView.setVerticalScrollBarEnabled(false);\n //bodyScrollView.setOverScrollMode(View.OVER_SCROLL_NEVER);\n blankLayout.addView(bodyScrollView);\n//Add bodyLayout\n //if(layoutHandler.bodyLayout == null) {\n bodyLayout = new LinearLayout(mainContext);\n bodyLayout.setOrientation(LinearLayout.HORIZONTAL);\n bodyLayout.setLayoutParams(layoutParams_WC_WC);\n bodyScrollView.addView(bodyLayout);\n\n//Add bodyLeftLayout\n //if(layoutHandler.bodyLeftLayout == null) {\n bodyLeftLayout = new LinearLayout(mainContext);\n bodyLeftLayout.setOrientation(LinearLayout.VERTICAL);\n bodyLeftLayout.setLayoutParams(layoutParams_WC_WC);\n bodyLeftLayout.setBackgroundColor(bgColor_Table);\n bodyLayout.addView(bodyLeftLayout);\n\n//Add bodyHScrollView\n //if(layoutHandler.bodyHScrollView == null) {\n bodyHScrollView = new SyncedHorizontalScrollView(mainContext);\n bodyHScrollView.setLayoutParams(layoutParams_WC_WC);\n bodyHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor() !=\n null)//OverScrollColor\n {\n bodyHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor());\n }\n bodyLayout.addView(bodyHScrollView);\n\n//Add bodyRightLayout\n //if(layoutHandler.bodyRightLayout == null) {\n bodyRightLayout = new LinearLayout(mainContext);\n bodyRightLayout.setOrientation(LinearLayout.VERTICAL);\n bodyRightLayout.setBackgroundColor(bgColor_Table);\n bodyHScrollView.addView(bodyRightLayout);\n\n//Add Scroll Listeners\n\n ScrollManager scrollManager = new ScrollManager();\n scrollManager.setScrollDirection(ScrollManager.SCROLL_HORIZONTAL);\n scrollManager.addScrollClient(topHScrollView);\n scrollManager.addScrollClient(bodyHScrollView);\n\n// bodyScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// bodyHScrollView.getParent().requestDisallowInterceptTouchEvent(false);\n// return false;\n// }\n// });\n// bodyHScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// v.getParent().requestDisallowInterceptTouchEvent(true);\n// return false;\n// }\n// });\n\n //ScrollManager.disallowParentScroll(bodyHScrollView, 100);\n //ScrollManager.disallowChildScroll(bodyHScrollView, bodyLayout, 100);\n //bodyHScrollView.getWidth());\n //Dimensions.dipToPixels(mainContext, 800));\n// ScrollManager\n// .disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 200));\n //TODO: disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 50));\n\n }", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(false);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// lblTitle\n\t\tlblTitle = new Label();\n\t\tlblTitle.setImmediate(false);\n\t\tlblTitle.setWidth(\"-1px\");\n\t\tlblTitle.setHeight(\"-1px\");\n\t\tlblTitle.setValue(\"Song\");\n\t\tmainLayout.addComponent(lblTitle);\n\t\tmainLayout.setComponentAlignment(lblTitle, new Alignment(20));\n\t\t\n\t\t// formLayout\n\t\tformLayout = buildFormLayout();\n\t\tmainLayout.addComponent(formLayout);\n\t\tmainLayout.setComponentAlignment(formLayout, new Alignment(20));\n\t\t\n\t\t// layoutButtons\n\t\tlayoutButtons = buildLayoutButtons();\n\t\tmainLayout.addComponent(layoutButtons);\n\t\tmainLayout.setComponentAlignment(layoutButtons, new Alignment(20));\n\t\t\n\t\treturn mainLayout;\n\t}", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\tmainLayout.setMargin(false);\n\n\t\t// top-level component properties\n\t\tsetWidth(\"60.0%\");\n\t\tsetHeight(\"60.0%\");\n\n\t\t// lblHeading\n\t\tlblHeading = new Label();\n\t\tlblHeading.setImmediate(false);\n\t\tlblHeading.setWidth(\"-1px\");\n\t\tlblHeading.setHeight(\"-1px\");\n\t\tlblHeading.setValue(\"This is class 4\");\n\t\tmainLayout.addComponent(lblHeading);\n\n\t\t// button_1\n\t\tbutton_1 = new Button();\n\t\tbutton_1.setCaption(\"Button\");\n\t\tbutton_1.setImmediate(false);\n\t\tbutton_1.setWidth(\"-1px\");\n\t\tbutton_1.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(button_1);\n\n\t\treturn mainLayout;\n\t}", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"540px\");\n\t\tmainLayout.setHeight(\"400px\");\n\t\tmainLayout.setMargin(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"540px\");\n\t\tsetHeight(\"400px\");\n\t\t\n\t\t// commentField\n\t\tcommentField = new TextField();\n\t\tcommentField.setCaption(\"Comentarios\");\n\t\tcommentField.setImmediate(false);\n\t\tcommentField.setWidth(\"400px\");\n\t\tcommentField.setHeight(\"140px\");\n\t\tmainLayout.addComponent(commentField, \"top:100.0px;left:20.0px;\");\n\t\t\n\t\t// discountField\n\t\tdiscountField = new TextField();\n\t\tdiscountField.setCaption(\"Descuento\");\n\t\tdiscountField.setImmediate(false);\n\t\tdiscountField.setWidth(\"80px\");\n\t\tdiscountField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(discountField, \"top:140.0px;left:440.0px;\");\n\t\t\n\t\t// invoiceField\n\t\tinvoiceField = new ComboBox();\n\t\tinvoiceField.setCaption(\"Código Factura\");\n\t\tinvoiceField.setImmediate(false);\n\t\tinvoiceField.setWidth(\"200px\");\n\t\tinvoiceField.setHeight(\"-1px\");\n\t\tinvoiceField.setRequired(true);\n\t\tmainLayout.addComponent(invoiceField, \"top:20.0px;left:200.0px;\");\n\t\t\t\t\n\t\t// invoiceLineDateField\n\t\tinvoiceLineDateField = new DateField();\n\t\tinvoiceLineDateField.setCaption(\"Fecha\");\n\t\tinvoiceLineDateField.setImmediate(false);\n\t\tinvoiceLineDateField.setWidth(\"100px\");\n\t\tinvoiceLineDateField.setHeight(\"-1px\");\n\t\tinvoiceLineDateField.setInvalidAllowed(false);\n\t\tinvoiceLineDateField.setRequired(true);\n\t\tinvoiceLineDateField.setResolution(4);\n\t\tmainLayout.addComponent(invoiceLineDateField,\n\t\t\t\t\"top:20.0px;left:420.0px;\");\n\t\t\n\t\t// invoiceLineStatusField\n\t\tinvoiceLineStatusField = new ComboBox();\n\t\tinvoiceLineStatusField.setCaption(\"Estado\");\n\t\tinvoiceLineStatusField.setImmediate(false);\n\t\tinvoiceLineStatusField.setWidth(\"240px\");\n\t\tinvoiceLineStatusField.setHeight(\"-1px\");\n\t\tinvoiceLineStatusField.setRequired(true);\n\t\tmainLayout.addComponent(invoiceLineStatusField, \"top:58.0px;left:281.0px;\");\n\t\t\t\t\n\t\t// ivaField\n\t\tivaField = new ComboBox();\n\t\tivaField.setCaption(\"Iva\");\n\t\tivaField.setImmediate(false);\n\t\tivaField.setWidth(\"80px\");\n\t\tivaField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(ivaField, \"top:176.0px;left:440.0px;\");\n\t\t\n\t\t// numberField\n\t\tnumberField = new TextField();\n\t\tnumberField.setCaption(\"Número\");\n\t\tnumberField.setImmediate(false);\n\t\tnumberField.setWidth(\"80px\");\n\t\tnumberField.setHeight(\"-1px\");\n\t\tnumberField.setRequired(true);\n\t\tmainLayout.addComponent(numberField, \"top:20.0px;left:20.0px;\");\n\t\t\n\t\t// priceField\n\t\tpriceField = new TextField();\n\t\tpriceField.setCaption(\"Precio\");\n\t\tpriceField.setImmediate(false);\n\t\tpriceField.setWidth(\"80px\");\n\t\tpriceField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(priceField, \"top:100.0px;left:440.0px;\");\n\t\t\n\t\t// priceFinalField\n\t\tpriceFinalField = new TextField();\n\t\tpriceFinalField.setCaption(\"Precio Final\");\n\t\tpriceFinalField.setImmediate(false);\n\t\tpriceFinalField.setWidth(\"80px\");\n\t\tpriceFinalField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(priceFinalField, \"top:216.0px;left:440.0px;\");\n\t\t\n\t\t// servicesField\n\t\tservicesField = new ServiceCollectionField();\n\t\tservicesField.setImmediate(false);\n\t\tservicesField.setWidth(\"500px\");\n\t\tservicesField.setHeight(\"122px\");\n\t\tmainLayout.addComponent(servicesField, \"top:260.0px;left:20.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "private void $$$setupUI$$$() {\n topPanel = new JPanel();\n topPanel.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n headerLabel = new JLabel();\n headerLabel.setText(\"Header\");\n topPanel.add(headerLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPanel = new JPanel();\n contentPanel.setLayout(new BorderLayout(0, 0));\n topPanel.add(contentPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n buttonBack = new JButton();\n buttonBack.setText(\"Back\");\n panel1.add(buttonBack, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonNext = new JButton();\n buttonNext.setText(\"Next\");\n panel1.add(buttonNext, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status\");\n panel2.add(statusLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }", "private void doLayout()\n \t{\n \t\tModel model = doc.getModel();\n \t\tExtendedLayoutModel sbase = (ExtendedLayoutModel)model.getExtension(LayoutConstants.namespaceURI);\n \t\tif (sbase != null)\n \t\t{\n \t\t\tfor (Layout l : sbase.getListOfLayouts())\n \t\t\t{\n \t\t\t\t// TODO: list of compartment glyphs, text glyphs, etc...\n \t\t\t\tfor (SpeciesGlyph g : l.getListOfSpeciesGlyphs())\n \t\t\t\t{\n \t\t\t\t\tString sid = g.getSpecies();\n \t\t\t\t\tPeerSpecies sbr = getSpeciesPeer(sid);\n \t\t\t\t\tif (sbr != null) {\n \t\t\t\t\t\tsbr.setSpeciesGlyph(g);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "private void setupLayout()\n\t{\n\t\tbaseLayout.putConstraint(SpringLayout.WEST,firstButton,107,SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstButton, -32, SpringLayout.SOUTH, this);\n\t\tbaseLayout.putConstraint(SpringLayout.WEST, firstField, 37, SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstField, -24, SpringLayout.SOUTH, this);\n\t}", "private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }", "@Override\n\tpublic String getLayout() {\n\t\treturn \"main\";\n\t}", "private void geometry()\n\t\t{\n\t\t\t// JComponent : Instanciation\n\t\tthis.jPanelAction = new JPanelAction();\n\t\tthis.jPanelCommande = new JPanelCommande(jPanelAction);\n\n\t\t\t// Layout : Specification\n\t\t\t{\n\t\t\tBorderLayout borderLayout = new BorderLayout();\n\t\t\tsetLayout(borderLayout);\n\n\t\t\t// flowlayout.setHgap(20);\n\t\t\t// flowlayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\t\tthis.add(this.jPanelAction, BorderLayout.CENTER);\n\t\tthis.add(this.jPanelCommande, BorderLayout.SOUTH);\n\t\t}", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n materialFirstWordLabel = new JLabel();\n materialFirstWordLabel.setText(\"нет данных\");\n contentPane.add(materialFirstWordLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(10, -1), null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n materialMarkLabel = new JLabel();\n materialMarkLabel.setText(\" \");\n materialMarkLabel.setVerticalTextPosition(1);\n panel1.add(materialMarkLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialProfileLabel = new JLabel();\n materialProfileLabel.setText(\" \");\n materialProfileLabel.setVerticalTextPosition(3);\n panel1.add(materialProfileLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialSeparator = new JSeparator();\n panel1.add(materialSeparator, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n contentPane.add(spacer1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "public GroupLayout miseEnPage(){\n\t\tGroupLayout gl_contentPanel = new GroupLayout(contentPanel);\n\t\tgl_contentPanel.setHorizontalGroup(\n\t\t\t\tgl_contentPanel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap(13, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblPort)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(textField_Port, GroupLayout.PREFERRED_SIZE, 53, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblNombreDeJoueurs)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(textField_nbJoueur, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t\t\t\t.addComponent(chckbxPartieLocale))\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblNomPartie)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField_NomPartie))\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblMotDePasse)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField_Mdp, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(createButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(cancelButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t);\n\t\tgl_contentPanel.setVerticalGroup(\n\t\t\t\tgl_contentPanel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t.addGap(42)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblNomPartie)\n\t\t\t\t\t\t\t\t.addComponent(textField_NomPartie, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblMotDePasse)\n\t\t\t\t\t\t\t\t.addComponent(textField_Mdp, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblPort)\n\t\t\t\t\t\t\t\t.addComponent(textField_Port, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblNombreDeJoueurs)\n\t\t\t\t\t\t\t\t.addComponent(textField_nbJoueur, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(chckbxPartieLocale))\n\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(cancelButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(createButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(100, Short.MAX_VALUE))\n\t\t\t\t);\n\t\treturn gl_contentPanel;\n\t}", "private void setLayout() {\n int orientation = getResources().getConfiguration().orientation;\n // if the orientation is Portrait\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n if (!webViewFragment.isAdded()) {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 0f));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 3f));\n\n }\n }\n else { // if the orientation is Landscape\n if (!webViewFragment.isAdded()) {\n\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n // Make the LandmarkLayout take 1/3 of the layout's width\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n // Make the WebPageLayout take 2/3's of the layout's width\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n }\n }", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"100.0%\");\n\t\t\n\t\t// tablaGestionEvaluaciones\n\t\ttablaGestionEvaluaciones = new Table();\n\t\ttablaGestionEvaluaciones.setImmediate(false);\n\t\ttablaGestionEvaluaciones.setWidth(\"100.0%\");\n\t\ttablaGestionEvaluaciones.setHeight(\"100.0%\");\n\t\tmainLayout.addComponent(tablaGestionEvaluaciones,\n\t\t\t\t\"top:57.0px;right:20.0px;bottom:20.0px;left:20.0px;\");\n\t\t\n\t\t// botonCrearEvaluacion\n\t\tbotonCrearEvaluacion = new Button();\n\t\tbotonCrearEvaluacion.setCaption(\"Crear Evaluación\");\n\t\tbotonCrearEvaluacion.setImmediate(true);\n\t\tbotonCrearEvaluacion.setWidth(\"-1px\");\n\t\tbotonCrearEvaluacion.setHeight(\"-1px\");\n\t\tmainLayout\n\t\t\t\t.addComponent(botonCrearEvaluacion, \"top:14.0px;left:20.0px;\");\n\t\t\n\t\t// buttonEditarEvaluacion\n\t\tbuttonEditarEvaluacion = new Button();\n\t\tbuttonEditarEvaluacion.setCaption(\"Editar Evaluación\");\n\t\tbuttonEditarEvaluacion.setImmediate(false);\n\t\tbuttonEditarEvaluacion.setWidth(\"-1px\");\n\t\tbuttonEditarEvaluacion.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(buttonEditarEvaluacion,\n\t\t\t\t\"top:14.0px;left:160.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "public Layout() {\n\n //nao precisa colocar externo, apenas referencia com a linha 0\n for (int i = 0; i < 4; i++) {\n matrix[0][i] = Estados.EXTERNO;\n }\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = Estados.ROOM;\n }\n\n matrix[2][1] = Estados.ROOM_EMPTY;\n matrix[2][2] = Estados.ROOM_EMPTY2;\n\n matrix[2][0] = Estados.ACESSO_EXTERNO;\n matrix[2][3] = Estados.ACESSO_INTERNO;\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = Estados.ROOM;\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[4][i] = Estados.EXTERNO2;\n }\n\n }", "void buildLayout(){\n\t\tsetText(\"Score: \" + GameModel.instance().getPoints());\n\t\tsetX(10);\n\t\tsetY(10);\n\t\tsetFont(Font.font(\"verdana\", FontWeight.BOLD, FontPosture.REGULAR, 20));\n\t\t\n\t}", "private void layoutGame() {\n\t\tthis.doLayoutGame();\r\n\t\tthis.doLayoutGame();\r\n\t}", "private VerticalLayout buildGridInfo() {\n\t\tgridInfo = new VerticalLayout();\r\n\t\tgridInfo.setImmediate(false);\r\n\t\tgridInfo.setWidth(\"100%\");\r\n\t\tgridInfo.setHeight(\"100.0%\");\r\n\t\tgridInfo.setMargin(false);\r\n\t\tgridInfo.setSpacing(true);\r\n\t\t\r\n\t\t// gridTitle\r\n\t\tgridTitle = buildGridTitle();\r\n\t\tgridInfo.addComponent(gridTitle);\r\n\t\tgridInfo.setExpandRatio(gridTitle, 1.0f);\r\n\t\t\r\n\t\t// gridData\r\n\t\tgridData = buildGridData();\r\n\t\tgridInfo.addComponent(gridData);\r\n\t\tgridInfo.setExpandRatio(gridData, 1.0f);\r\n\t\t\r\n\t\treturn gridInfo;\r\n\t}", "private void setupLayout() {\r\n\t\tgetContentPane().add(panel);\r\n\t}", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagButton = new JButton();\n Font memberImportTagButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagButton.getFont());\n if (memberImportTagButtonFont != null) memberImportTagButton.setFont(memberImportTagButtonFont);\n memberImportTagButton.setText(\"导入选择的标签分组-取并集\");\n panel2.add(memberImportTagButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagRetainButton = new JButton();\n Font memberImportTagRetainButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagRetainButton.getFont());\n if (memberImportTagRetainButtonFont != null)\n memberImportTagRetainButton.setFont(memberImportTagRetainButtonFont);\n memberImportTagRetainButton.setText(\"导入选择的标签分组-取交集\");\n panel2.add(memberImportTagRetainButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportAllButton = new JButton();\n Font memberImportAllButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportAllButton.getFont());\n if (memberImportAllButtonFont != null) memberImportAllButton.setFont(memberImportAllButtonFont);\n memberImportAllButton.setText(\"导入所有关注公众号的用户\");\n panel2.add(memberImportAllButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionPanel = new JPanel();\n importOptionPanel.setLayout(new GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(importOptionPanel, new GridConstraints(1, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionOpenIdCheckBox = new JCheckBox();\n importOptionOpenIdCheckBox.setEnabled(false);\n importOptionOpenIdCheckBox.setSelected(true);\n importOptionOpenIdCheckBox.setText(\"openId\");\n importOptionPanel.add(importOptionOpenIdCheckBox, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n importOptionPanel.add(spacer1, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n importOptionBasicInfoCheckBox = new JCheckBox();\n importOptionBasicInfoCheckBox.setText(\"昵称、性别等基本信息\");\n importOptionBasicInfoCheckBox.setToolTipText(\"每获取一条信息会花费一次每日接口调用量\");\n importOptionPanel.add(importOptionBasicInfoCheckBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n importOptionAvatarCheckBox = new JCheckBox();\n importOptionAvatarCheckBox.setText(\"头像\");\n importOptionAvatarCheckBox.setToolTipText(\"勾选会导致左侧列表甚至WePush变卡哦\");\n importOptionPanel.add(importOptionAvatarCheckBox, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearDbCacheButton = new JButton();\n clearDbCacheButton.setText(\"清空本地缓存\");\n importOptionPanel.add(clearDbCacheButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagComboBox = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n memberImportTagComboBox.setModel(defaultComboBoxModel1);\n panel3.add(memberImportTagComboBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagFreshButton = new JButton();\n Font memberImportTagFreshButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagFreshButton.getFont());\n if (memberImportTagFreshButtonFont != null) memberImportTagFreshButton.setFont(memberImportTagFreshButtonFont);\n memberImportTagFreshButton.setText(\"刷新\");\n panel3.add(memberImportTagFreshButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, 1, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"标签分组\");\n panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "abstract void snapshotLayout();", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}", "public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "@LayoutRes\n protected abstract int getLayoutId();", "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}", "private void buildview() {\n\t\tCssLayout cd= new CssLayout();\n\t\t\n\t\t//table.setSizeFull();\n\t\t\t\n\t\t\ttable.setContainerDataSource(container);\n\t\t\ttable.setVisibleColumns(new Object[]{\"Name\",\"Component\",\"Indication\",\"Comment\",\"MethodofAdministration\"});\n\t\t\ttable.setColumnHeader(\"MethodofAdministration\", \"Method of Administration\");\n\t\t\t\n\t\t\ttable.setWidth(\"100%\");\n\t\t\tcd.addComponent(table);\n\t\t\tcd.setSizeFull();\n\t\t\tsetContent(cd);\n\t\t\n\t}", "@AutoGenerated\r\n\tprivate GridLayout buildMainLayout() {\n\t\tmainLayout = new GridLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\tmainLayout.setRows(2);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"-1px\");\r\n\t\t\r\n\t\t// verticalLayout_1\r\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\r\n\t\tmainLayout.addComponent(horizontalLayout_1, 0, 0);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "@SuppressWarnings(\"UnnecessaryBoxing\")\r\n private void initLayoutDimensions() {\r\n leftPanelWidth = Page.getScreenWidth() * 20 / 100;\r\n leftPanelHeight = Page.getScreenHeight() - 225;\r\n middlePanelWidth = Page.getScreenWidth() / 2;\r\n if (Double.valueOf(middlePanelWidth) % 2.0 > 0.0) {\r\n middlePanelWidth = middlePanelWidth - 1;\r\n }\r\n rightPanelWidth = Page.getScreenWidth() - (leftPanelWidth + 2 + middlePanelWidth + 2);\r\n }", "private void createMainMenuMiddleComposite() {\n\t\tString imgSlipUI = null;\n\t\tString imgJackpotBtn = null;\n\t\tString imgVoucherBtn = null;\n\t\tif(Util.isSmallerResolution()) {\n\t\t\timgSlipUI = ImageConstants.S_SLIPS_UI_BUTTON_IMG;\n\t\t\timgJackpotBtn = ImageConstants.S_JACKPOT_UI_BUTTON_IMG;\n\t\t\timgVoucherBtn = ImageConstants.S_VOUCHER_UI_BUTTON_IMG;\n\t\t}\n\t\telse {\n\t\t\timgSlipUI = ImageConstants.SLIPS_UI_BUTTON_IMG;\n\t\t\timgJackpotBtn = ImageConstants.JACKPOT_UI_BUTTON_IMG;\n\t\t\timgVoucherBtn = ImageConstants.VOUCHER_UI_BUTTON_IMG;\n\t\t}\n\t\t\n\t\tGridData gridData11 = new GridData();\n\t\tgridData11.horizontalAlignment = GridData.CENTER;\n\t\tgridData11.grabExcessHorizontalSpace = true;\n\t\tgridData11.grabExcessVerticalSpace = true;\n\t\tgridData11.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData10 = new GridData();\n\t\tgridData10.horizontalAlignment = GridData.CENTER;\n\t\tgridData10.grabExcessHorizontalSpace = true;\n\t\tgridData10.grabExcessVerticalSpace = true;\n\t\tgridData10.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData9 = new GridData();\n\t\tgridData9.horizontalAlignment = GridData.CENTER;\n\t\tgridData9.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData6 = new GridData();\n\t\tgridData6.heightHint = 100;\n\t\t// gridData6.heightHint = 70;\n\t\tgridData6.widthHint = 100;\n\t\t// gridData6.widthHint = 90;\n\t\tgridData6.grabExcessHorizontalSpace = true;\n\t\tgridData6.grabExcessVerticalSpace = true;\n\t\tgridData6.horizontalAlignment = GridData.CENTER;\n\t\tgridData6.verticalAlignment = GridData.END;\n\n\t\tGridLayout gridLayout3 = new GridLayout();\n\t\tgridLayout3.horizontalSpacing = 20;\n\t\tgridLayout3.numColumns = 3;\n\t\tGridData gridData5 = new GridData();\n\t\tgridData5.grabExcessHorizontalSpace = true;\n\t\tgridData5.verticalAlignment = GridData.FILL;\n\t\tgridData5.heightHint = 100;\n\t\tgridData5.grabExcessVerticalSpace = true;\n\t\tgridData5.horizontalAlignment = GridData.FILL;\n\t\tmainMenuMiddleComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuMiddleComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t171, 209, 255));\n\t\tmainMenuMiddleComposite.setLayout(gridLayout3);\n\t\tmainMenuMiddleComposite.setLayoutData(gridData5);\n\n\t\tGridData gridData3 = new GridData();\n\t\tgridData3.grabExcessVerticalSpace = true;\n\t\tgridData3.horizontalAlignment = GridData.CENTER;\n\t\tgridData3.verticalAlignment = GridData.END;\n\t\tgridData3.heightHint = 100;\n\t\tgridData3.widthHint = 100;\n\t\tgridData3.grabExcessHorizontalSpace = true;\n\n\t\tGridData gridData1 = new GridData();\n\t\tgridData1.grabExcessVerticalSpace = true;\n\t\tgridData1.horizontalAlignment = GridData.CENTER;\n\t\tgridData1.verticalAlignment = GridData.END;\n\t\tgridData1.heightHint = 100;\n\t\tgridData1.widthHint = 100;\n\t\tgridData1.grabExcessHorizontalSpace = true;\n\n\t\tbtnSlipUI = new CbctlButton(mainMenuMiddleComposite, SWT.FLAT, \"\",\n\t\t\t\tLabelKeyConstants.SLIPS_UI_BUTTON);\n\t\tbtnSlipUI\n\t\t\t\t.setFont(new Font(Display.getDefault(), \"Arial\", 12, SWT.BOLD));\n\t\t\n\t\tbtnSlipUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgSlipUI)));\n\t\tbtnSlipUI.setLayoutData(gridData1);\n\n\t\tbtnJackpotUI = new CbctlButton(mainMenuMiddleComposite, SWT.NONE, \"\",\n\t\t\t\tLabelKeyConstants.JACKPOT_UI_BUTTON);\n\t\tbtnJackpotUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tbtnJackpotUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgJackpotBtn)));\n\t\tbtnJackpotUI.setLayoutData(gridData3);\n\n\t\tbtnVoucherUI = new CbctlButton(mainMenuMiddleComposite, SWT.NONE, \"\",\n\t\t\t\tLabelLoader.getLabelValue(LabelKeyConstants.VOUCHER_UI_BUTTON));\n\t\tbtnVoucherUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgVoucherBtn)));\n\t\tbtnVoucherUI.setLayoutData(gridData6);\n\n\t\tlblSlipUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblSlipUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.SLIPS_UI_BUTTON));\n\t\tlblSlipUI.setBackground(new Color(Display.getCurrent(), 171, 209, 255));\n\t\tlblSlipUI\n\t\t\t\t.setFont(new Font(Display.getDefault(), \"Arial\", 12, SWT.BOLD));\n\t\tlblSlipUI.setLayoutData(gridData9);\n\n\t\tlblJackpotUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblJackpotUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.JACKPOT_UI_BUTTON));\n\t\tlblJackpotUI.setBackground(new Color(Display.getCurrent(), 171, 209,\n\t\t\t\t255));\n\t\tlblJackpotUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tlblJackpotUI.setLayoutData(gridData10);\n\n\t\tlblVoucherUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblVoucherUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.VOUCHER_UI_BUTTON));\n\t\tlblVoucherUI.setBackground(new Color(Display.getCurrent(), 171, 209,\n\t\t\t\t255));\n\t\tlblVoucherUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tlblVoucherUI.setLayoutData(gridData11);\n\n\t}", "private void initLayouts() {\n mRelativeLayout1WA = findViewById(R.id.history_layout_one_week_ago);\n mRelativeLayout6DA = findViewById(R.id.history_layout_six_days_ago);\n mRelativeLayout5DA = findViewById(R.id.history_layout_five_days_ago);\n mRelativeLayout4DA = findViewById(R.id.history_layout_four_days_ago);\n mRelativeLayout3DA = findViewById(R.id.history_layout_three_days_ago);\n mRelativeLayout2DA = findViewById(R.id.history_layout_two_days_ago);\n mRelativeLayoutY = findViewById(R.id.history_layout_yesterday);\n\n layoutsList.add(mRelativeLayoutY);\n layoutsList.add(mRelativeLayout2DA);\n layoutsList.add(mRelativeLayout3DA);\n layoutsList.add(mRelativeLayout4DA);\n layoutsList.add(mRelativeLayout5DA);\n layoutsList.add(mRelativeLayout6DA);\n layoutsList.add(mRelativeLayout1WA);\n\n }", "private void setupAllSpecialLayoutViews(){\n allSpecialLayoutViews = new ArrayList<>();\n allSpecialLayoutViews.add(radianSpecialLayout);\n allSpecialLayoutViews.add(sineSpecialLayout);\n allSpecialLayoutViews.add(cosineSpecialLayout);\n allSpecialLayoutViews.add(tangentSpecialLayout);\n allSpecialLayoutViews.add(radianDivBar);\n allSpecialLayoutViews.add(radianTextDenominator);\n allSpecialLayoutViews.add(sineDivBar);\n allSpecialLayoutViews.add(sineTextDenominator);\n allSpecialLayoutViews.add(cosineDivBar);\n allSpecialLayoutViews.add(cosineTextDenominator);\n allSpecialLayoutViews.add(tangentDivBar);\n allSpecialLayoutViews.add(tangentTextDenominator);\n }", "private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\r\n final JPanel panel1 = new JPanel();\r\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel = new JPanel();\r\n mMainPanel.setLayout(new GridLayoutManager(15, 3, new Insets(0, 0, 0, 0), -1, -1));\r\n panel1.add(mMainPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n label = new JLabel();\r\n Font labelFont = this.$$$getFont$$$(null, -1, 28, label.getFont());\r\n if (labelFont != null) label.setFont(labelFont);\r\n label.setText(\"CodeRecommender\");\r\n mMainPanel.add(label, new GridConstraints(0, 0, 2, 1, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer1 = new Spacer();\r\n mMainPanel.add(spacer1, new GridConstraints(5, 2, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final JPanel panel2 = new JPanel();\r\n panel2.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel2, new GridConstraints(4, 0, 6, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel3 = new JPanel();\r\n panel3.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel2.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n statement = new JTextArea();\r\n statement.setBackground(new Color(-12434103));\r\n statement.setColumns(0);\r\n statement.setEditable(false);\r\n statement.setEnabled(true);\r\n Font statementFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 15, statement.getFont());\r\n if (statementFont != null) statement.setFont(statementFont);\r\n statement.setText(\" In the current ai craze, we want to use neural network-related technology to grab a large amount of source code from the open source community to achieve the recommendation of the N+1 line of code from the known N lines of code, and package this function into a practical plug-in on the IDE.\");\r\n panel3.add(statement, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, 70), null, 1, false));\r\n final JPanel panel4 = new JPanel();\r\n panel4.setLayout(new GridLayoutManager(12, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.setBackground(new Color(-12828863));\r\n panel3.add(panel4, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n Download = new JButton();\r\n Font DownloadFont = this.$$$getFont$$$(null, -1, 12, Download.getFont());\r\n if (DownloadFont != null) Download.setFont(DownloadFont);\r\n Download.setText(\"Find\");\r\n panel4.add(Download, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel5 = new JPanel();\r\n panel5.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel5, new GridConstraints(11, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"See the guide on the https://github.com/huangjihui511/java-code-recommand-IDEA-plugin \");\r\n panel5.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer2 = new Spacer();\r\n panel5.add(spacer2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n pathTextField = new JTextField();\r\n pathTextField.setEditable(false);\r\n Font pathTextFieldFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 12, pathTextField.getFont());\r\n if (pathTextFieldFont != null) pathTextField.setFont(pathTextFieldFont);\r\n pathTextField.setText(\"/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 \");\r\n panel4.add(pathTextField, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n SetPath = new JButton();\r\n Font SetPathFont = this.$$$getFont$$$(null, -1, 12, SetPath.getFont());\r\n if (SetPathFont != null) SetPath.setFont(SetPathFont);\r\n SetPath.setText(\"Set\");\r\n panel4.add(SetPath, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n Help = new JButton();\r\n Help.setText(\"Help\");\r\n panel4.add(Help, new GridConstraints(11, 1, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel6 = new JPanel();\r\n panel6.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel6.setFocusTraversalPolicyProvider(false);\r\n panel6.setFocusable(false);\r\n panel4.add(panel6, new GridConstraints(10, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel7 = new JPanel();\r\n panel7.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel7, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label2 = new JLabel();\r\n label2.setIcon(new ImageIcon(getClass().getResource(\"/timg (1) - 副本.jpg\")));\r\n label2.setText(\"\");\r\n panel7.add(label2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label3 = new JLabel();\r\n label3.setIcon(new ImageIcon(getClass().getResource(\"/微信图片_20190328224952 (2) - 副本.jpg\")));\r\n label3.setText(\"\");\r\n panel7.add(label3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel8 = new JPanel();\r\n panel8.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel7.add(panel8, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel9 = new JPanel();\r\n panel9.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel9, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n webaddressTextField = new JTextField();\r\n webaddressTextField.setEditable(false);\r\n Font webaddressTextFieldFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 12, webaddressTextField.getFont());\r\n if (webaddressTextFieldFont != null) webaddressTextField.setFont(webaddressTextFieldFont);\r\n webaddressTextField.setText(\"/Volumes/PythonSupporting\");\r\n panel4.add(webaddressTextField, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n final JPanel panel10 = new JPanel();\r\n panel10.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel10, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label4 = new JLabel();\r\n Font label4Font = this.$$$getFont$$$(\"Consolas\", Font.BOLD, 14, label4.getFont());\r\n if (label4Font != null) label4.setFont(label4Font);\r\n label4.setText(\"Find the package\");\r\n panel10.add(label4, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer3 = new Spacer();\r\n panel10.add(spacer3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final JPanel panel11 = new JPanel();\r\n panel11.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel11.setToolTipText(\"\");\r\n panel4.add(panel11, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label5 = new JLabel();\r\n Font label5Font = this.$$$getFont$$$(\"Consolas\", Font.BOLD, 14, label5.getFont());\r\n if (label5Font != null) label5.setFont(label5Font);\r\n label5.setText(\"Set the path\");\r\n panel11.add(label5, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer4 = new Spacer();\r\n panel11.add(spacer4, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final JPanel panel12 = new JPanel();\r\n panel12.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel12, new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel13 = new JPanel();\r\n panel13.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel13, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel14 = new JPanel();\r\n panel14.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel14, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel15 = new JPanel();\r\n panel15.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel15, new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n pic = new JPanel();\r\n pic.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.putClientProperty(\"html.disable\", Boolean.FALSE);\r\n panel3.add(pic, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n a = new JLabel();\r\n a.setText(\"\");\r\n pic.add(a, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel16 = new JPanel();\r\n panel16.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.add(panel16, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel17 = new JPanel();\r\n panel17.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.add(panel17, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel18 = new JPanel();\r\n panel18.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel2.add(panel18, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final Spacer spacer5 = new Spacer();\r\n mMainPanel.add(spacer5, new GridConstraints(5, 1, 10, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final JPanel panel19 = new JPanel();\r\n panel19.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel19, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel20 = new JPanel();\r\n panel20.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel20, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final Spacer spacer6 = new Spacer();\r\n panel1.add(spacer6, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer7 = new Spacer();\r\n panel1.add(spacer7, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer8 = new Spacer();\r\n panel1.add(spacer8, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n }", "protected void createContents() {\n\n\t}", "private void buildHeader(Layout parent) {\n\n }", "private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }", "public interface ViewLayout {\r\n\r\n\t/** \r\n\t * Creates a reference to the view which layout should be calculated.\r\n\t * \r\n\t * @param view\r\n\t * \t\tthe view which layout should be calculated.\r\n\t */\r\n\tpublic void setView(View view);\r\n\t\r\n\t/**\r\n\t * Layouts the view components on the parent panel by assigning\r\n\t * them positions.\r\n\t * \r\n\t * @param parent\r\n\t * \t\tthe displaying parent container of the view\r\n\t */\r\n\tpublic void layoutContainer(Container parent);\r\n\r\n}", "private void createMainMenuHeaderComposite() {\n\n\t\tGridData gridData8 = new GridData();\n\t\tgridData8.grabExcessHorizontalSpace = true;\n\t\tgridData8.horizontalAlignment = GridData.FILL;\n\t\tgridData8.verticalAlignment = GridData.BEGINNING;\n\t\tgridData8.grabExcessVerticalSpace = true;\n\t\tGridData gridData7 = new GridData();\n\t\tgridData7.grabExcessHorizontalSpace = true;\n\t\tgridData7.horizontalAlignment = GridData.FILL;\n\t\tgridData7.verticalAlignment = GridData.END;\n\t\tgridData7.grabExcessVerticalSpace = true;\n\t\tGridData gridData21 = new GridData();\n\t\tgridData21.horizontalAlignment = GridData.FILL;\n\t\tgridData21.grabExcessHorizontalSpace = true;\n\t\tgridData21.grabExcessVerticalSpace = false;\n\t\tgridData21.heightHint = 150;\n\t\tgridData21.verticalAlignment = GridData.BEGINNING;\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.horizontalSpacing = 50;\n\t\tgridLayout.marginWidth = 20;\n\t\tgridLayout.marginHeight = 0;\n\t\tgridLayout.verticalSpacing = 35;\n\t\tmainMenuHeaderComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuHeaderComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t255, 255, 255));\n\t\tmainMenuHeaderComposite.setLayoutData(gridData21);\n\t\tmainMenuHeaderComposite.setLayout(gridLayout);\n\n\t\tlblTitle1 = new CbctlLabel(mainMenuHeaderComposite, SWT.CENTER);\n\t\tlblTitle1\n\t\t\t\t.setText(LabelLoader\n\t\t\t\t\t\t.getLabelValue(LabelKeyConstants.WELCOME_NOTE_ON_TOUCH_SCREEN_HOMEPAGE));\n\t\tlblTitle1\n\t\t\t\t.setFont(SDSControlFactory.getStandardTouchScreenFont());\n\t\tlblTitle1.setLayoutData(gridData7);\n\n\t\tlblTitle2 = new CbctlLabel(mainMenuHeaderComposite, SWT.CENTER);\n\t\tlblTitle2\n\t\t\t\t.setText(LabelLoader\n\t\t\t\t\t\t.getLabelValue(LabelKeyConstants.SELECT_NOTE_ON_TOUCH_SCREEN_HOMEPAGE));\n\t\tlblTitle2\n\t\t\t\t.setFont(SDSControlFactory.getStandardTouchScreenFont());\n\t\tlblTitle2.setLayoutData(gridData8);\n\t}" ]
[ "0.7441121", "0.7408097", "0.73983043", "0.7349182", "0.7343956", "0.72837514", "0.7228967", "0.72196674", "0.716834", "0.7118178", "0.7112332", "0.71101266", "0.70597374", "0.70571274", "0.6990229", "0.6926798", "0.6901655", "0.6854118", "0.68504196", "0.68446213", "0.68368685", "0.6783188", "0.6759682", "0.67309034", "0.6673435", "0.66200835", "0.65828514", "0.65800583", "0.65591884", "0.65570545", "0.65567595", "0.6533817", "0.6528927", "0.65221506", "0.6510406", "0.6501033", "0.6495626", "0.64799005", "0.6470482", "0.64617133", "0.6450147", "0.6445254", "0.6439915", "0.64341444", "0.64323527", "0.64293355", "0.64242285", "0.6423748", "0.64126766", "0.64016813", "0.63963145", "0.6384965", "0.63835275", "0.6374324", "0.6373989", "0.63736635", "0.6357495", "0.6350608", "0.63358897", "0.6329535", "0.6319707", "0.631756", "0.6311248", "0.62908554", "0.6290835", "0.6288659", "0.6287615", "0.6285164", "0.62839264", "0.6269888", "0.6261724", "0.6260101", "0.62521136", "0.62484986", "0.624712", "0.62470645", "0.6246525", "0.62457556", "0.624454", "0.6244338", "0.6244212", "0.62423617", "0.6237739", "0.62333804", "0.6228355", "0.6228241", "0.62271667", "0.6223703", "0.6221801", "0.6210153", "0.6208609", "0.6207323", "0.6204501", "0.62025356", "0.62011784", "0.61998993", "0.61963207", "0.619598", "0.61945784", "0.6174235" ]
0.65414953
31
common part: create layout
@AutoGenerated private Panel buildPnToolbar() { pnToolbar = new Panel(); pnToolbar.setImmediate(false); pnToolbar.setWidth("100.0%"); pnToolbar.setHeight("100.0%"); // hlToolbar hlToolbar = buildHlToolbar(); pnToolbar.setContent(hlToolbar); return pnToolbar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void iniciarLayout();", "Board createLayout();", "public abstract void doLayout();", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }", "public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\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\tAlignment.LEADING)\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\tgroupLayout\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\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\t225,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.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\tgroupLayout\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\tAlignment.LEADING)\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\tp_execute,\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\t957,\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\tp_container,\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\t957,\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\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\t1188,\n\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.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\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(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\n\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\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\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\tAlignment.LEADING)\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\tp_commands,\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\t603,\n\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\tgroupLayout\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\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\t549,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\tp_execute,\n\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\t48,\n\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.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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\tAlignment.LEADING)\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\tp_view,\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\t955,\n\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\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\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\tComponentPlacement.RELATED)\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\tbt_revert))\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\tgl_p_container\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\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\tComponentPlacement.RELATED)\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\ttf_name,\n\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\t893,\n\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.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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\tAlignment.BASELINE)\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\ttf_name,\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(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\n\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\t466, GroupLayout.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\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\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\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\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\tAlignment.BASELINE)\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\tta_header,\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\t44,\n\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.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\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\tAlignment.LEADING)\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\tp_tree,\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\t211,\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(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\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.DEFAULT_SIZE,\n\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.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}", "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "public void setupLayout() {\n // left empty for subclass to override\n }", "public void createLayout() {\n\t\tpersons = createPersonGuessPanel();\t\t\n\t\tweapons = createWeaponGuessPanel();\n\t\trooms = createRoomGuessPanel();\n\t\t\n\t\tpersonCheckList = createPeoplePanel();\n\t\tweaponCheckList =createWeaponsPanel(); \n\t\troomCheckList = createRoomsPanel();\n\t\t\n\t\tJPanel completed = new JPanel();\n\t\tcompleted.setLayout(new GridLayout(3, 2));\n\t\tadd(completed, BorderLayout.CENTER);\n\t\tcompleted.add(personCheckList);\n\t\tcompleted.add(persons);\n\t\tcompleted.add(weaponCheckList);\n\t\tcompleted.add(weapons);\n\t\tcompleted.add(roomCheckList);\n\t\tcompleted.add(rooms);\n\t}", "private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }", "private void defineLayout(IPageLayout layout) {\n String editorArea = layout.getEditorArea();\r\n\r\n IFolderLayout folder;\r\n\r\n // Place remote system view to left of editor area.\r\n folder = layout.createFolder(NAV_FOLDER_ID, IPageLayout.LEFT, 0.2F, editorArea);\r\n folder.addView(getRemoveSystemsViewID());\r\n\r\n // Place properties view below remote system view.\r\n folder = layout.createFolder(PROPS_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, NAV_FOLDER_ID);\r\n folder.addView(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n\r\n // Place job log explorer view below editor area.\r\n folder = layout.createFolder(JOB_LOG_EXPLORER_FOLDER_ID, IPageLayout.BOTTOM, 0.0F, editorArea);\r\n folder.addView(JobLogExplorerView.ID);\r\n\r\n // Place command log view below editor area.\r\n folder = layout.createFolder(CMDLOG_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, JobLogExplorerView.ID);\r\n folder.addView(getCommandLogViewID());\r\n\r\n layout.addShowViewShortcut(getRemoveSystemsViewID());\r\n layout.addShowViewShortcut(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n layout.addShowViewShortcut(getCommandLogViewID());\r\n\r\n layout.addPerspectiveShortcut(ID);\r\n\r\n layout.setEditorAreaVisible(false);\r\n }", "@Override\n public void layout() {\n // TODO: not implemented\n }", "void computeNewLayout();", "public void createInitialLayout(IPageLayout layout) {\n \n\t}", "private void buildMainLayout(IAuthorizationContext pContext)\r\n throws UnauthorizedAccessAttemptException, IOException {\r\n\r\n createObjectEntry();\r\n\r\n if (parent.getParentUI().siteName.equals(parent.getParentUI().siteNameCVMA)) {\r\n defineInfoLayoutCVMA();\r\n } else {\r\n defineInfoLayoutStandard();\r\n }\r\n\r\n thumbLayout = new VerticalLayout();\r\n thumbLayout.setSizeFull();\r\n thumbLayout.setSpacing(false);\r\n thumbLayout.setMargin(false);\r\n thumbLayout.setStyleName(\"white\");\r\n thumbLayout.setHeight(\"150px\");\r\n thumbLayout.setWidth(\"161px\");\r\n\r\n // initialize thumbnail field and button\r\n setThumbButton();\r\n\r\n // build content layout\r\n buttonLayout = new VerticalLayout();\r\n buttonLayout.setSizeFull();\r\n buttonLayout.setSpacing(false);\r\n buttonLayout.setMargin(false);\r\n buttonLayout.setStyleName(\"white\");\r\n buttonLayout.setHeight(\"150px\");\r\n buttonLayout.setWidth(\"161px\");\r\n\r\n // set download button\r\n setDownloadButton();\r\n\r\n // set metadata viewer button\r\n setMetadataViewerButton();\r\n\r\n // download button\r\n setImageDownloadButton();\r\n\r\n // map button\r\n setMapButton();\r\n\r\n // build content layout\r\n contentLayout = new HorizontalLayout();\r\n contentLayout.setSizeFull();\r\n contentLayout.setMargin(false);\r\n contentLayout.setMargin(new MarginInfo(false, false, true, false));\r\n contentLayout.setStyleName(\"white\");\r\n contentLayout.addComponent(thumbLayout);\r\n contentLayout.addComponent(infoLayout);\r\n contentLayout.addComponent(buttonLayout);\r\n contentLayout.setComponentAlignment(thumbLayout, Alignment.TOP_LEFT);\r\n contentLayout.setComponentAlignment(infoLayout, Alignment.TOP_CENTER);\r\n contentLayout.setComponentAlignment(buttonLayout, Alignment.TOP_RIGHT);\r\n contentLayout.setExpandRatio(infoLayout, 11f);\r\n }", "@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n\n return mainLayout;\n }", "private HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100%\");\r\n\t\tsetHeight(\"100%\");\r\n\t\t\r\n\t\t// panelImg\r\n\t\tpanelImg = buildPanelImg();\r\n\t\tmainLayout.addComponent(panelImg);\r\n\t\t\r\n\t\t// gridInfo\r\n\t\tgridInfo = buildGridInfo();\r\n\t\tmainLayout.addComponent(gridInfo);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}", "@Override\n public void createInitialLayout(IPageLayout layout) {\n defineActions(layout);\n defineLayout(layout);\n }", "private void doTheLayout(){\n\n\t JPanel top = new JPanel();\n\t JPanel center = new JPanel();\n\t JPanel bottom = new JPanel();\n\n\t top.setLayout( new FlowLayout());\n\t top.add(label1);\n\t top.add(field1);\n\n\t center.setLayout( new FlowLayout());\n\t center.add(label2);\n\t center.add(field2);\n\n\t bottom.setLayout( new FlowLayout());\n\t bottom.add(SortButton);\n\t bottom.add(CloseButton);\n\n\t setLayout( new BorderLayout());\n\t add(top, \"North\");\n\t add(center, \"Center\");\n\t add(bottom, \"South\");\n\n\t }", "NodeLayout createNodeLayout();", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"100.0%\");\r\n\t\tmainLayout.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// label\r\n\t\tlabel = new Label();\r\n\t\tlabel.setImmediate(false);\r\n\t\tlabel.setWidth(\"-1px\");\r\n\t\tlabel.setHeight(\"-1px\");\r\n\t\tlabel.setValue(\"Stellvertreter ernennen\");\r\n\t\tlabel.setStyleName(Runo.LABEL_H1);\r\n\t\tmainLayout.addComponent(label, \"top:25.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// benutzer\r\n\t\tbenutzer = new ListSelect();\r\n\t\tbenutzer.setImmediate(false);\r\n\t\tbenutzer.setWidth(\"46.0%\");\r\n\t\tbenutzer.setHeight(\"70.0%\");\r\n\t\tmainLayout.addComponent(benutzer, \"top:35.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// ok\r\n\t\tok = new Button();\r\n\t\tok.setCaption(\"Stellvertreter ernennen\");\r\n\t\tok.setImmediate(false);\r\n\t\tok.setWidth(\"25%\");\r\n\t\tok.setHeight(\"-1px\");\r\n\t\tok.addListener(this);\r\n\t\tmainLayout.addComponent(ok, \"top:83.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// delete\r\n\t\tdelete = new Button();\r\n\t\tdelete.setCaption(\"Stellvertreter löschen\");\r\n\t\tdelete.setImmediate(false);\r\n\t\tdelete.setWidth(\"25%\");\r\n\t\tdelete.setHeight(\"-1px\");\r\n\t\tdelete.addListener(this);\r\n\t\tmainLayout.addComponent(delete, \"top:88.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// logout\r\n\t\tlogout = new Button();\r\n\t\tlogout.setCaption(\"logout\");\r\n\t\tlogout.setImmediate(false);\r\n\t\tlogout.setWidth(\"-1px\");\r\n\t\tlogout.setHeight(\"-1px\");\r\n\t\tlogout.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tlogout.addListener(this);\r\n\t\tmainLayout.addComponent(logout, \"top:97.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// back\r\n\t\tback = new Button();\r\n\t\tback.setCaption(\"Startseite\");\r\n\t\tback.setImmediate(true);\r\n\t\tback.setWidth(\"-1px\");\r\n\t\tback.setHeight(\"-1px\");\r\n\t\tback.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tback.addListener(this);\r\n\t\tmainLayout.addComponent(back, \"top:94.0%;left:35.0%;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\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 initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }", "private void prepareLayout() {\n\n\t\tm_layouts = new ArrayList<SQLTableLayout>();\n\n\t\t//\n\t\t// construct the table tag\n\t\t//\n\t\tSQLTableLayout layout = new SQLTableLayout(TAG_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"tag id\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_NAME, \"TEXT\", \"tag name\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_CREATE_DATE, \"TEXT\",\n\t\t\t\t\"creation date of tag\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_USAGE, \"INTEGER\",\n\t\t\t\t\"tag usage in repository\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the table file\n\t\t//\n\t\tlayout = new SQLTableLayout(FILE_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"file id\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_PATH, \"TEXT\", \"path of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_TYPE, \"TEXT\", \"type of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_CREATE_DATE, \"TEXT\",\n\t\t\t\t\"creation date of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_HASH_SUM, \"TEXT\",\n\t\t\t\t\"hash sum of file\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the mapping table\n\t\t//\n\t\tlayout = new SQLTableLayout(MAP_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"map id\");\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_FILE, \"INTEGER\", \"file id\");\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_TAG, \"INTEGER\", \"tag id\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the directory table\n\t\t//\n\t\tlayout = new SQLTableLayout(DIRECTORY_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(DIRECTORY_FIELD_ID,\n\t\t\t\t\"INTEGER primary key\", \"directory id\");\n\t\tlayout.addFieldToSQLTableLayout(DIRECTORY_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"path of directory\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct pending file table\n\t\t//\n\t\tlayout = new SQLTableLayout(PENDING_FILE_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(PENDING_FIELD_ID,\n\t\t\t\t\"INTEGER primary key\", \"pending id\");\n\t\tlayout.addFieldToSQLTableLayout(PENDING_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"pending path of file\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct synchronized table\n\t\t//\n\t\tlayout = new SQLTableLayout(SYNC_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"sync id\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"path of synced file\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_DATE, \"TEXT\", \"sync date\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_TAGS, \"TEXT\",\n\t\t\t\t\"tags of synced file\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_HASH_SUM, \"TEXT\",\n\t\t\t\t\"hash sum of synced file\");\n\t\tm_layouts.add(layout);\n\t}", "private void setupLayout()\n {\n Container contentPane;\n\n setSize(300, 300); \n\n contentPane = getContentPane();\n\n // Layout this PINPadWindow\n }", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setStyleName(\"contenido\");\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(true);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// hl_cabecera\n\t\thl_cabecera = buildHl_cabecera();\n\t\tmainLayout.addComponent(hl_cabecera);\n\t\t\n\t\t// horizontalLayout_1\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\n\t\tmainLayout.addComponent(horizontalLayout_1);\n\t\tmainLayout.setComponentAlignment(horizontalLayout_1, new Alignment(20));\n\t\t\n\t\t// l_preferenciasUsuario\n\t\tl_preferenciasUsuario = new Label();\n\t\tl_preferenciasUsuario.setStyleName(\"mih2\");\n\t\tl_preferenciasUsuario.setImmediate(false);\n\t\tl_preferenciasUsuario.setWidth(\"100.0%\");\n\t\tl_preferenciasUsuario.setHeight(\"-1px\");\n\t\tl_preferenciasUsuario.setValue(\"Preferencias de Usuario\");\n\t\tmainLayout.addComponent(l_preferenciasUsuario);\n\t\t\n\t\t// hl_gridContent\n\t\thl_gridContent = new HorizontalLayout();\n\t\thl_gridContent.setImmediate(false);\n\t\thl_gridContent.setWidth(\"100.0%\");\n\t\thl_gridContent.setHeight(\"-1px\");\n\t\thl_gridContent.setMargin(false);\n\t\tmainLayout.addComponent(hl_gridContent);\n\t\t\n\t\t// b_enviar\n\t\tb_enviar = new Button();\n\t\tb_enviar.setCaption(\"Actualizar\");\n\t\tb_enviar.setImmediate(true);\n\t\tb_enviar.setWidth(\"-1px\");\n\t\tb_enviar.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(b_enviar);\n\t\tmainLayout.setComponentAlignment(b_enviar, new Alignment(48));\n\t\t\n\t\treturn mainLayout;\n\t}", "private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}", "public abstract int presentViewLayout();", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "private void createMigLayout() {\r\n setLayout(new MigLayout(\"\", \"[][]6[]\", \"[]6[]\"));\r\n\r\n add(indexTitle, \"wrap\");\r\n add(dirUrl, \"span 3\");\r\n add(openDir, \"wrap\");\r\n add(indexProgress, \"wrap, span 4, growx\");\r\n add(addExistingCheck, \"span 3, split 2, right\");\r\n add(new JLabel(\"Add Existing Index\"));\r\n add(startIndexing, \"wrap 3sp\");\r\n add(new JLabel(\r\n \"<html>\"\r\n + \"\t<b style ='color:#3888a9'>Important Notes:</b>\"\r\n + \"\t\t<ol>\"\r\n + \"\t\t\t<li>JPEG images in directory and <i>sub-directories</i> will be indexed.</li>\"\r\n + \"\t\t\t<li>You can <i>update the existing index</i> in the database by checking the checkbox.</li>\"\r\n + \"</ol>\" + \"</html>\"), \"span 4\");\r\n }", "@AutoGenerated\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"-1px\");\n\t\tmainLayout.setHeight(\"29px\");\n\t\tmainLayout.setMargin(false);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"-1px\");\n\t\tsetHeight(\"29px\");\n\t\t\n\t\t// pnToolbar\n\t\tpnToolbar = buildPnToolbar();\n\t\tmainLayout.addComponent(pnToolbar);\n\t\t\n\t\treturn mainLayout;\n\t}", "private void setupLayout() {\n this.setLayout(new BorderLayout());\n\t\tthis.setupConstraints();\n\n\t\tJPanel titleAuthorFields = new JPanel(new GridBagLayout());\n\t\ttitleAuthorFields.add(Pirex.inputField(titleLabel, titleTextField, null), cTitleField);\n\t\ttitleAuthorFields.add(Pirex.inputField(authorLabel, authorTextField, null), cAuthorField);\n\n\t\tJPanel inputFields = new JPanel(new GridLayout(3, 0));\n\t\tinputFields.add(Pirex.inputField(fileLabel, fileTextField, fileBrowseButton));\n\t\tinputFields.add(Pirex.inputField(fileTypeLabel, fileTypeComboBox, null));\n\t\tinputFields.add(titleAuthorFields);\n\t\tinputFields = Pirex.borderLayoutWrap(null, null, inputFields, null, separator);\n\n\t\tJPanel leftAlignedProcessButton = Pirex.leftAlign(processButton);\n\t\tJPanel processPanel = Pirex.borderLayoutWrap(leftAlignedProcessButton, null, summaryScrollPanel, null, null);\n\t\tJPanel loadTabPanel = Pirex.borderLayoutWrap(inputFields, null, processPanel, null, null);\n\n\t\tthis.add(Pirex.withBorder(loadTabPanel), BorderLayout.CENTER);\n\n }", "public testLayout() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public Layout() {\n }", "private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }", "private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}", "@Override\n\t\tpublic void layout (final int l, final int t, final int r, final int b) {\n\t\t}", "private void generateLayout() {\n\t\tJPanel generatePanel = new JPanel();\n\t\tgeneratePanel.setLayout(new GridBagLayout());\n\t\tJButton generatePrimes = new JButton(\"Generate Primes\");\n\t\tgeneratePrimes.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgeneratePrimesPopup();\n\t\t\t}\n\t\t});\n\t\tJButton generateHex = new JButton(\"Generate Hex Cross\");\n\t\tgenerateHex.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprimes.clearCrosses();\n\t\t\t\tprimes.generateHexPrimes();\n\t\t\t\tupdateValues(\"Succesful Hex Cross Prime Numbers Generated\");\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n\t\tgbc.fill = GridBagConstraints.CENTER;\n\t\tgbc.insets = new Insets(1,1,0,0);\n\t\tJPanel digitsPanel = new JPanel();\n\t\tdigitsPanel.setLayout(new GridLayout(2,1));\n\t\tLPrimedigits.setFont(new Font(\"Tahoma\", Font.BOLD,15));\n\t\tLHexDigits.setFont(new Font(\"Tahoma\", Font.BOLD,15));\n\t\tdigitsPanel.add(LPrimedigits);\n\t\tdigitsPanel.add(LHexDigits);\n\t\tgbc.gridx = 0;\n\t\tgbc.weightx = 0.1;\n\t\tgeneratePanel.add(generatePrimes,gbc);\n\t\tgbc.gridx = 1;\n\t\tgbc.weightx = 0.1;\n\t\tgeneratePanel.add(digitsPanel,gbc);\n\t\tgbc.weightx = 0.1;\n\t\tgbc.gridx = 2;\n\t\tgeneratePanel.add(generateHex,gbc);\n\t\tgeneratePanel.setBorder(BorderFactory.createLineBorder(new Color(150,0,0), 2));\n\t\tmainLayout.add(generatePanel);\n\t}", "GraphLayout createGraphLayout();", "@AutoGenerated\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"500px\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(false);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"500px\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// verticalLayout_1\n\t\tverticalLayout_1 = buildVerticalLayout_1();\n\t\tmainLayout.addComponent(verticalLayout_1);\n\t\t\n\t\t// verticalLayout_2\n\t\tverticalLayout_2 = buildVerticalLayout_2();\n\t\tmainLayout.addComponent(verticalLayout_2);\n\t\tmainLayout.setExpandRatio(verticalLayout_2, 1.0f);\n\t\t\n\t\treturn mainLayout;\n\t}", "@AutoGenerated\n\tprivate HorizontalLayout buildInfo_container() {\n\t\tinfo_container = new HorizontalLayout();\n\t\tinfo_container.setImmediate(false);\n\t\tinfo_container.setWidth(\"100.0%\");\n\t\tinfo_container.setHeight(\"-1px\");\n\t\tinfo_container.setMargin(false);\n\t\t\n\t\t// nativeButton_upVote\n\t\tnativeButton_upVote = new NativeButton();\n\t\tnativeButton_upVote.setCaption(\"Up Vote\");\n\t\tnativeButton_upVote.setImmediate(false);\n\t\tnativeButton_upVote.setWidth(\"-1px\");\n\t\tnativeButton_upVote.setHeight(\"-1px\");\n nativeButton_upVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_upVote);\n\t\t\n\t\t// nativeButton_downVote\n\t\tnativeButton_downVote = new NativeButton();\n\t\tnativeButton_downVote.setCaption(\"Down Vote\");\n\t\tnativeButton_downVote.setImmediate(false);\n\t\tnativeButton_downVote.setWidth(\"-1px\");\n\t\tnativeButton_downVote.setHeight(\"-1px\");\n nativeButton_downVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_downVote);\n\n //nativeButton_accept\n nativeButton_accept = new NativeButton();\n nativeButton_accept.setCaption(\"Accept\");\n nativeButton_accept.setVisible(false);\n nativeButton_accept.setStyleName(\"accept-button\");\n info_container.addComponent(nativeButton_accept);\n\n //label_date\n label_date = new Label();\n label_date.setStyleName(\"date-label\");\n label_date.setWidth(\"-1px\");\n label_date.setHeight(\"-1px\");\n info_container.addComponent(label_date);\n info_container.setExpandRatio(label_date, 1.0f);\n info_container.setComponentAlignment(label_date, Alignment.MIDDLE_RIGHT);\n\t\t\n\t\t// label_user\n\t\tlabel_user = new Label();\n\t\tlabel_user.setImmediate(false);\n\t\tlabel_user.setWidth(\"-1px\");\n\t\tlabel_user.setHeight(\"-1px\");\n\t\tlabel_user.setValue(\"By \");\n label_user.setStyleName(\"user-label\");\n\t\tinfo_container.addComponent(label_user);\n//\t\tinfo_container.setExpandRatio(label_user, 1.0f);\n\t\tinfo_container.setComponentAlignment(label_user, new Alignment(34));\n\t\t\n\t\treturn info_container;\n\t}", "private void initMiddleBodyLayout() {\r\n midPanelLayoutCanv = new VerticalPanel();\r\n midPanelLayoutCanv.setWidth(middlePanelWidth + \"px\");\r\n midPanelLayoutCanv.setHeight((leftPanelHeight - 2) + \"px\");\r\n RootPanel.get(\"diva_mid_panel\").clear();\r\n RootPanel.get(\"diva_mid_panel\").add(midPanelLayoutCanv);\r\n //pca and profile plot layout\r\n topMidLayout = new HorizontalPanel();\r\n int newWidth = (middlePanelWidth / 2);\r\n int newHeight = newWidth + 22;\r\n topMidLayout.setHeight(newHeight + \"px\");\r\n topMidLayout.setWidth(middlePanelWidth + \"px\");\r\n topMidLayout.setStyleName(\"whitelayout\");\r\n\r\n //rank table layout\r\n rankLayoutCanv = new VLayout();\r\n rankLayoutCanv.setHeight((leftPanelHeight - (newHeight + 2)) + \"px\");\r\n rankLayoutCanv.setWidth(middlePanelWidth + \"px\");\r\n midPanelLayoutCanv.add(topMidLayout);\r\n midPanelLayoutCanv.add(rankLayoutCanv);\r\n }", "GeomLayout.IGeomLayoutCreateFromNode geomLayoutCreator();", "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}", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\t// Setzt die Hintergrundfarbe auf Grün\n\t\tmainLayout.addStyleName(\"backgroundErfassung\");\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\n\t\treturn mainLayout;\n\t}", "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}", "private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }", "void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}", "private Container layoutContainer(Container panel, XmlNode node,\n Vector xmlChildren) {\n panel.removeAll();\n String panelId = node.getAttribute(ATTR_ID);\n String layout = node.getAttribute(ATTR_LAYOUT, \"\");\n Vector children = new Vector();\n Vector nodes = new Vector();\n int hspace = node.getAttribute(ATTR_HSPACE, 0);\n int vspace = node.getAttribute(ATTR_VSPACE, 0);\n int rows = node.getAttribute(ATTR_ROWS, 0);\n int cols = node.getAttribute(ATTR_COLS, 1);\n String defaultComp = node.getAttribute(ATTR_DEFAULT, \"nocomp\");\n JTabbedPane tabs = null;\n\n if (layout.equals(VALUE_LAYOUTBORDER)) {\n panel.setLayout(new BorderLayout());\n } else if (layout.equals(VALUE_LAYOUTCARD)) {\n panel.setLayout(new CardLayout());\n } else if (layout.equals(VALUE_LAYOUTTAB)) {\n tabs = new JTabbedPane();\n panel.setLayout(new BorderLayout());\n panel.add(\"Center\", tabs);\n } else if (layout.equals(VALUE_LAYOUTFLOW)) {\n panel.setLayout(new FlowLayout(FlowLayout.LEFT, hspace, vspace));\n } else if (layout.equals(VALUE_LAYOUTGRID)) {\n panel.setLayout(new GridLayout(rows, cols, hspace, vspace));\n }\n for (int i = 0; i < xmlChildren.size(); i++) {\n XmlNode childXmlNode =\n getReffedNode((XmlNode) xmlChildren.elementAt(i));\n Component childComponent = xmlToUi(childXmlNode);\n if (childComponent == null) {\n continue;\n }\n componentToParent.put(childComponent, panel);\n children.addElement(childComponent);\n nodes.addElement(childXmlNode);\n if ( !childComponent.isVisible()) {\n continue;\n }\n if (layout.equals(VALUE_LAYOUTBORDER)) {\n String place = childXmlNode.getAttribute(ATTR_PLACE,\n \"Center\");\n panel.add(place, childComponent);\n } else if (layout.equals(VALUE_LAYOUTTAB)) {\n tabs.add(childXmlNode.getAttribute(ATTR_LABEL),\n childComponent);\n } else if (layout.equals(VALUE_LAYOUTCARD)) {\n String childId = childXmlNode.getAttribute(ATTR_ID);\n panel.add(childId, childComponent);\n if (defaultComp.equals(childId)) {\n ((CardLayout) panel.getLayout()).show(panel, childId);\n }\n } else if (layout.equals(VALUE_LAYOUTINSET)) {\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace,\n hspace);\n GuiUtils.doLayout(panel, new Component[] { childComponent },\n 1, GuiUtils.DS_Y, GuiUtils.DS_Y);\n\n break;\n } else if (layout.equals(VALUE_LAYOUTWRAP)) {\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace,\n hspace);\n GuiUtils.doLayout(panel, new Component[] { childComponent },\n 1, GuiUtils.DS_N, GuiUtils.DS_N);\n\n break;\n } else if ( !layout.equals(VALUE_LAYOUTGRIDBAG)) {\n panel.add(childComponent);\n }\n }\n if (layout.equals(VALUE_LAYOUTGRIDBAG)) {\n double[] cw =\n GuiUtils.parseDoubles(node.getAttribute(ATTR_COLWIDTHS));\n double[] rh =\n GuiUtils.parseDoubles(node.getAttribute(ATTR_ROWHEIGHTS));\n if (cw == null) {\n cw = GuiUtils.DS_Y;\n }\n if (rh == null) {\n rh = GuiUtils.DS_N;\n }\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace, hspace);\n GuiUtils.doLayout(panel, GuiUtils.getCompArray(children),\n node.getAttribute(ATTR_COLS, 1), cw, rh);\n }\n\n containerToNodeList.put(panel, nodes);\n\n return panel;\n }", "private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\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\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\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\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\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\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}", "public void layoutView()\n\t{\n\t\tthis.setLayout(new GridLayout(2,5));\n\t\tthis.add(expression);\n\t\tthis.add(var);\n\t\tthis.add(start);\n\t\tthis.add(end);\n\t\tthis.add(this.plot);\n\t\tthis.add(InputView.coords);\n\t\tthis.add(this.in);\n\t\tthis.add(this.out);\n\t}", "@Override\r\n\tpublic void layoutContainer(Container arg0) {\n\t\t\r\n\t}", "public void makeLayout() {\n\t\tgl_layout.setHorizontalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(150)\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 400, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 98, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t)\n\t\t);\n\t\tgl_layout.setVerticalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\t\t\t\t\t\t\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t);\n\t\tthis.setLayout(gl_layout);\t\t\n\t}", "private void layoutComponents() {\n setLayout(new MigLayout(\"fill, wrap 1, hidemode 3, \"\n + (padding ? \"ins rel\" : \"ins 0\")));\n\n add(infoLabel, \"growx\");\n add(scrollPane, \"grow, pushy\");\n add(addOptionPanel, \"growx\");\n }", "@AutoGenerated\r\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"800px\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100.0%\");\r\n\t\tsetHeight(\"800px\");\r\n\t\t\r\n\t\t// verticalLayout_5\r\n\t\tverticalLayout_5 = buildVerticalLayout_5();\r\n\t\tmainLayout.addComponent(verticalLayout_5);\r\n\t\tmainLayout.setComponentAlignment(verticalLayout_5, new Alignment(48));\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private void setUpLayout() {\n myLinearLayout=(LinearLayout)rootView.findViewById(R.id.container_wartaMingguan);\n\n // Add LayoutParams\n params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n params.setMargins(0, 10, 0, 0);\n\n // Param untuk deskripsi\n paramsDeskripsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n paramsDeskripsi.setMargins(0, 0, 0, 0);\n\n tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);\n rowTableParams = new TableLayout.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);\n\n // Untuk tag \"warta\"\n LinearLayout rowLayout = new LinearLayout(getActivity());\n rowLayout.setOrientation(LinearLayout.HORIZONTAL);\n\n // Membuat linear layout vertical untuk menampung kata-kata\n LinearLayout colLayout = new LinearLayout(getActivity());\n colLayout.setOrientation(LinearLayout.VERTICAL);\n colLayout.setPadding(0, 5, 0, 0);\n }", "private void initBaseLayout()\n {\n add(viewPaneWrapper, BorderLayout.CENTER);\n \n currentLayoutView = VIEW_PANE;\n currentSearchView = SEARCH_PANE_VIEW;\n showMainView(VIEW_PANE);\n showSearchView(currentSearchView);\n }", "private JPanel createContentPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 300));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"AttributesTitle\")));\n\n roomNameField = LabeledComponent\n .textField(localization.get(\"RoomNameLabel\"),\n new InfoPanelDocListener(this, new SetName()));\n roomNameField.addToPanel(panel);\n\n includeField = LabeledComponent\n .textField(localization.get(\"IncludeLabel\"),\n new InfoPanelDocListener(this, new SetInclude()));\n includeField.addToPanel(panel);\n\n inheritField = LabeledComponent\n .textField(localization.get(\"InheritLabel\"),\n new InfoPanelDocListener(this, new SetInherit()));\n inheritField.addToPanel(panel);\n\n buildStreetNameField(panel);\n\n buildAddEditStreetsButton(panel);\n\n buildColorSelector(panel);\n\n shortDescriptionField = LabeledComponent\n .textField(localization.get(\"ShortDescLabel\"),\n new InfoPanelDocListener(this, new SetShort()));\n panel.add(shortDescriptionField.getLabel());\n panel.add(shortDescriptionField.getComponent(), \"span, grow, wrap\");\n\n determinateField = LabeledComponent\n .textField(localization.get(\"DeterminateLabel\"),\n new InfoPanelDocListener(this, new SetDeterminate()));\n determinateField.addToPanel(panel);\n\n lightField = LabeledComponent\n .textField(localization.get(\"LightLabel\"),\n new InfoPanelDocListener(this, new SetLight()));\n lightField.addToPanel(panel);\n\n longDescriptionField = LabeledComponent\n .textArea(localization.get(\"LongDescLabel\"),\n new InfoPanelDocListener(this, new SetLong()));\n panel.add(longDescriptionField.getLabel(), \"wrap\");\n panel.add(longDescriptionField.getComponent(), \"span, grow\");\n\n return panel;\n }", "private void initBaseLayout() {\n if (topText != null) {\n TextView topicText = new TextView(mainContext);\n topicText.setText(topText);\n dimensionsContainer.setViewStyle(KEY_TOPIC_TEXT, topicText);\n topicText.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_topic));\n topicText.setClickable(true);\n topicText.setOnClickListener(generalClickListener);\n blankLayout.addView(topicText);\n }\n//Add topLayout\n //if (topLayout == null) {\n topLayout = new LinearLayout(mainContext);\n topLayout.setOrientation(LinearLayout.HORIZONTAL);\n topLayout.setLayoutParams(layoutParams_WC_WC);\n topLayout.setBackgroundColor(bgColor_Table);\n blankLayout.addView(topLayout);\n//Add numTop\n TextView numTop = new TextView(mainContext);\n numTop.setText(R.string.symbol_num);\n dimensionsContainer.setViewStyle(KEY_NUM_TOP, numTop);\n numTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_num_top));\n numTop.setClickable(true);\n numTop.setOnClickListener(generalClickListener);\n topLayout.addView(numTop);\n//Add nameTop\n TextView nameTop = new TextView(mainContext);\n nameTop.setText(nameTopTextResId);\n dimensionsContainer.setViewStyle(KEY_NAME_TOP, nameTop);\n nameTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_name_top));\n nameTop.setClickable(true);\n nameTop.setOnClickListener(generalClickListener);\n topLayout.addView(nameTop);\n\n\n\n\n\n\n//Add topHScrollView\n// if (layoutHandler.topHScrollView == null) {\n topHScrollView = new SyncedHorizontalScrollView(mainContext);\n topHScrollView.setLayoutParams(layoutParams_WC_MP);\n topHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor() !=\n null) //OverScrollColor\n {\n topHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor());\n }\n topLayout.addView(topHScrollView);\n\n//Add topScrollLayout\n // if(layoutHandler.topScrollLayout == null) {\n topScrollLayout = new LinearLayout(mainContext);\n topScrollLayout.setBackgroundColor(bgColor_Table);\n topHScrollView.addView(topScrollLayout);\n\n//Add bodyScrollView\n //if(layoutHandler.bodyScrollView == null) {\n bodyScrollView = new ScrollView(mainContext);\n bodyScrollView.setLayoutParams(layoutParams_MP_WC);\n bodyScrollView.setVerticalScrollBarEnabled(false);\n //bodyScrollView.setOverScrollMode(View.OVER_SCROLL_NEVER);\n blankLayout.addView(bodyScrollView);\n//Add bodyLayout\n //if(layoutHandler.bodyLayout == null) {\n bodyLayout = new LinearLayout(mainContext);\n bodyLayout.setOrientation(LinearLayout.HORIZONTAL);\n bodyLayout.setLayoutParams(layoutParams_WC_WC);\n bodyScrollView.addView(bodyLayout);\n\n//Add bodyLeftLayout\n //if(layoutHandler.bodyLeftLayout == null) {\n bodyLeftLayout = new LinearLayout(mainContext);\n bodyLeftLayout.setOrientation(LinearLayout.VERTICAL);\n bodyLeftLayout.setLayoutParams(layoutParams_WC_WC);\n bodyLeftLayout.setBackgroundColor(bgColor_Table);\n bodyLayout.addView(bodyLeftLayout);\n\n//Add bodyHScrollView\n //if(layoutHandler.bodyHScrollView == null) {\n bodyHScrollView = new SyncedHorizontalScrollView(mainContext);\n bodyHScrollView.setLayoutParams(layoutParams_WC_WC);\n bodyHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor() !=\n null)//OverScrollColor\n {\n bodyHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor());\n }\n bodyLayout.addView(bodyHScrollView);\n\n//Add bodyRightLayout\n //if(layoutHandler.bodyRightLayout == null) {\n bodyRightLayout = new LinearLayout(mainContext);\n bodyRightLayout.setOrientation(LinearLayout.VERTICAL);\n bodyRightLayout.setBackgroundColor(bgColor_Table);\n bodyHScrollView.addView(bodyRightLayout);\n\n//Add Scroll Listeners\n\n ScrollManager scrollManager = new ScrollManager();\n scrollManager.setScrollDirection(ScrollManager.SCROLL_HORIZONTAL);\n scrollManager.addScrollClient(topHScrollView);\n scrollManager.addScrollClient(bodyHScrollView);\n\n// bodyScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// bodyHScrollView.getParent().requestDisallowInterceptTouchEvent(false);\n// return false;\n// }\n// });\n// bodyHScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// v.getParent().requestDisallowInterceptTouchEvent(true);\n// return false;\n// }\n// });\n\n //ScrollManager.disallowParentScroll(bodyHScrollView, 100);\n //ScrollManager.disallowChildScroll(bodyHScrollView, bodyLayout, 100);\n //bodyHScrollView.getWidth());\n //Dimensions.dipToPixels(mainContext, 800));\n// ScrollManager\n// .disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 200));\n //TODO: disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 50));\n\n }", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(false);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// lblTitle\n\t\tlblTitle = new Label();\n\t\tlblTitle.setImmediate(false);\n\t\tlblTitle.setWidth(\"-1px\");\n\t\tlblTitle.setHeight(\"-1px\");\n\t\tlblTitle.setValue(\"Song\");\n\t\tmainLayout.addComponent(lblTitle);\n\t\tmainLayout.setComponentAlignment(lblTitle, new Alignment(20));\n\t\t\n\t\t// formLayout\n\t\tformLayout = buildFormLayout();\n\t\tmainLayout.addComponent(formLayout);\n\t\tmainLayout.setComponentAlignment(formLayout, new Alignment(20));\n\t\t\n\t\t// layoutButtons\n\t\tlayoutButtons = buildLayoutButtons();\n\t\tmainLayout.addComponent(layoutButtons);\n\t\tmainLayout.setComponentAlignment(layoutButtons, new Alignment(20));\n\t\t\n\t\treturn mainLayout;\n\t}", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\tmainLayout.setMargin(false);\n\n\t\t// top-level component properties\n\t\tsetWidth(\"60.0%\");\n\t\tsetHeight(\"60.0%\");\n\n\t\t// lblHeading\n\t\tlblHeading = new Label();\n\t\tlblHeading.setImmediate(false);\n\t\tlblHeading.setWidth(\"-1px\");\n\t\tlblHeading.setHeight(\"-1px\");\n\t\tlblHeading.setValue(\"This is class 4\");\n\t\tmainLayout.addComponent(lblHeading);\n\n\t\t// button_1\n\t\tbutton_1 = new Button();\n\t\tbutton_1.setCaption(\"Button\");\n\t\tbutton_1.setImmediate(false);\n\t\tbutton_1.setWidth(\"-1px\");\n\t\tbutton_1.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(button_1);\n\n\t\treturn mainLayout;\n\t}", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"540px\");\n\t\tmainLayout.setHeight(\"400px\");\n\t\tmainLayout.setMargin(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"540px\");\n\t\tsetHeight(\"400px\");\n\t\t\n\t\t// commentField\n\t\tcommentField = new TextField();\n\t\tcommentField.setCaption(\"Comentarios\");\n\t\tcommentField.setImmediate(false);\n\t\tcommentField.setWidth(\"400px\");\n\t\tcommentField.setHeight(\"140px\");\n\t\tmainLayout.addComponent(commentField, \"top:100.0px;left:20.0px;\");\n\t\t\n\t\t// discountField\n\t\tdiscountField = new TextField();\n\t\tdiscountField.setCaption(\"Descuento\");\n\t\tdiscountField.setImmediate(false);\n\t\tdiscountField.setWidth(\"80px\");\n\t\tdiscountField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(discountField, \"top:140.0px;left:440.0px;\");\n\t\t\n\t\t// invoiceField\n\t\tinvoiceField = new ComboBox();\n\t\tinvoiceField.setCaption(\"Código Factura\");\n\t\tinvoiceField.setImmediate(false);\n\t\tinvoiceField.setWidth(\"200px\");\n\t\tinvoiceField.setHeight(\"-1px\");\n\t\tinvoiceField.setRequired(true);\n\t\tmainLayout.addComponent(invoiceField, \"top:20.0px;left:200.0px;\");\n\t\t\t\t\n\t\t// invoiceLineDateField\n\t\tinvoiceLineDateField = new DateField();\n\t\tinvoiceLineDateField.setCaption(\"Fecha\");\n\t\tinvoiceLineDateField.setImmediate(false);\n\t\tinvoiceLineDateField.setWidth(\"100px\");\n\t\tinvoiceLineDateField.setHeight(\"-1px\");\n\t\tinvoiceLineDateField.setInvalidAllowed(false);\n\t\tinvoiceLineDateField.setRequired(true);\n\t\tinvoiceLineDateField.setResolution(4);\n\t\tmainLayout.addComponent(invoiceLineDateField,\n\t\t\t\t\"top:20.0px;left:420.0px;\");\n\t\t\n\t\t// invoiceLineStatusField\n\t\tinvoiceLineStatusField = new ComboBox();\n\t\tinvoiceLineStatusField.setCaption(\"Estado\");\n\t\tinvoiceLineStatusField.setImmediate(false);\n\t\tinvoiceLineStatusField.setWidth(\"240px\");\n\t\tinvoiceLineStatusField.setHeight(\"-1px\");\n\t\tinvoiceLineStatusField.setRequired(true);\n\t\tmainLayout.addComponent(invoiceLineStatusField, \"top:58.0px;left:281.0px;\");\n\t\t\t\t\n\t\t// ivaField\n\t\tivaField = new ComboBox();\n\t\tivaField.setCaption(\"Iva\");\n\t\tivaField.setImmediate(false);\n\t\tivaField.setWidth(\"80px\");\n\t\tivaField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(ivaField, \"top:176.0px;left:440.0px;\");\n\t\t\n\t\t// numberField\n\t\tnumberField = new TextField();\n\t\tnumberField.setCaption(\"Número\");\n\t\tnumberField.setImmediate(false);\n\t\tnumberField.setWidth(\"80px\");\n\t\tnumberField.setHeight(\"-1px\");\n\t\tnumberField.setRequired(true);\n\t\tmainLayout.addComponent(numberField, \"top:20.0px;left:20.0px;\");\n\t\t\n\t\t// priceField\n\t\tpriceField = new TextField();\n\t\tpriceField.setCaption(\"Precio\");\n\t\tpriceField.setImmediate(false);\n\t\tpriceField.setWidth(\"80px\");\n\t\tpriceField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(priceField, \"top:100.0px;left:440.0px;\");\n\t\t\n\t\t// priceFinalField\n\t\tpriceFinalField = new TextField();\n\t\tpriceFinalField.setCaption(\"Precio Final\");\n\t\tpriceFinalField.setImmediate(false);\n\t\tpriceFinalField.setWidth(\"80px\");\n\t\tpriceFinalField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(priceFinalField, \"top:216.0px;left:440.0px;\");\n\t\t\n\t\t// servicesField\n\t\tservicesField = new ServiceCollectionField();\n\t\tservicesField.setImmediate(false);\n\t\tservicesField.setWidth(\"500px\");\n\t\tservicesField.setHeight(\"122px\");\n\t\tmainLayout.addComponent(servicesField, \"top:260.0px;left:20.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "private void $$$setupUI$$$() {\n topPanel = new JPanel();\n topPanel.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n headerLabel = new JLabel();\n headerLabel.setText(\"Header\");\n topPanel.add(headerLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPanel = new JPanel();\n contentPanel.setLayout(new BorderLayout(0, 0));\n topPanel.add(contentPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n buttonBack = new JButton();\n buttonBack.setText(\"Back\");\n panel1.add(buttonBack, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonNext = new JButton();\n buttonNext.setText(\"Next\");\n panel1.add(buttonNext, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status\");\n panel2.add(statusLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }", "private void doLayout()\n \t{\n \t\tModel model = doc.getModel();\n \t\tExtendedLayoutModel sbase = (ExtendedLayoutModel)model.getExtension(LayoutConstants.namespaceURI);\n \t\tif (sbase != null)\n \t\t{\n \t\t\tfor (Layout l : sbase.getListOfLayouts())\n \t\t\t{\n \t\t\t\t// TODO: list of compartment glyphs, text glyphs, etc...\n \t\t\t\tfor (SpeciesGlyph g : l.getListOfSpeciesGlyphs())\n \t\t\t\t{\n \t\t\t\t\tString sid = g.getSpecies();\n \t\t\t\t\tPeerSpecies sbr = getSpeciesPeer(sid);\n \t\t\t\t\tif (sbr != null) {\n \t\t\t\t\t\tsbr.setSpeciesGlyph(g);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "private void setupLayout()\n\t{\n\t\tbaseLayout.putConstraint(SpringLayout.WEST,firstButton,107,SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstButton, -32, SpringLayout.SOUTH, this);\n\t\tbaseLayout.putConstraint(SpringLayout.WEST, firstField, 37, SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstField, -24, SpringLayout.SOUTH, this);\n\t}", "private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }", "@Override\n\tpublic String getLayout() {\n\t\treturn \"main\";\n\t}", "private void geometry()\n\t\t{\n\t\t\t// JComponent : Instanciation\n\t\tthis.jPanelAction = new JPanelAction();\n\t\tthis.jPanelCommande = new JPanelCommande(jPanelAction);\n\n\t\t\t// Layout : Specification\n\t\t\t{\n\t\t\tBorderLayout borderLayout = new BorderLayout();\n\t\t\tsetLayout(borderLayout);\n\n\t\t\t// flowlayout.setHgap(20);\n\t\t\t// flowlayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\t\tthis.add(this.jPanelAction, BorderLayout.CENTER);\n\t\tthis.add(this.jPanelCommande, BorderLayout.SOUTH);\n\t\t}", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n materialFirstWordLabel = new JLabel();\n materialFirstWordLabel.setText(\"нет данных\");\n contentPane.add(materialFirstWordLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(10, -1), null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n materialMarkLabel = new JLabel();\n materialMarkLabel.setText(\" \");\n materialMarkLabel.setVerticalTextPosition(1);\n panel1.add(materialMarkLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialProfileLabel = new JLabel();\n materialProfileLabel.setText(\" \");\n materialProfileLabel.setVerticalTextPosition(3);\n panel1.add(materialProfileLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialSeparator = new JSeparator();\n panel1.add(materialSeparator, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n contentPane.add(spacer1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "public GroupLayout miseEnPage(){\n\t\tGroupLayout gl_contentPanel = new GroupLayout(contentPanel);\n\t\tgl_contentPanel.setHorizontalGroup(\n\t\t\t\tgl_contentPanel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap(13, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblPort)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(textField_Port, GroupLayout.PREFERRED_SIZE, 53, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblNombreDeJoueurs)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(textField_nbJoueur, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t\t\t\t.addComponent(chckbxPartieLocale))\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblNomPartie)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField_NomPartie))\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblMotDePasse)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField_Mdp, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(createButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(cancelButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t);\n\t\tgl_contentPanel.setVerticalGroup(\n\t\t\t\tgl_contentPanel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t.addGap(42)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblNomPartie)\n\t\t\t\t\t\t\t\t.addComponent(textField_NomPartie, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblMotDePasse)\n\t\t\t\t\t\t\t\t.addComponent(textField_Mdp, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblPort)\n\t\t\t\t\t\t\t\t.addComponent(textField_Port, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblNombreDeJoueurs)\n\t\t\t\t\t\t\t\t.addComponent(textField_nbJoueur, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(chckbxPartieLocale))\n\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(cancelButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(createButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(100, Short.MAX_VALUE))\n\t\t\t\t);\n\t\treturn gl_contentPanel;\n\t}", "private void setLayout() {\n int orientation = getResources().getConfiguration().orientation;\n // if the orientation is Portrait\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n if (!webViewFragment.isAdded()) {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 0f));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 3f));\n\n }\n }\n else { // if the orientation is Landscape\n if (!webViewFragment.isAdded()) {\n\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n // Make the LandmarkLayout take 1/3 of the layout's width\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n // Make the WebPageLayout take 2/3's of the layout's width\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n }\n }", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"100.0%\");\n\t\t\n\t\t// tablaGestionEvaluaciones\n\t\ttablaGestionEvaluaciones = new Table();\n\t\ttablaGestionEvaluaciones.setImmediate(false);\n\t\ttablaGestionEvaluaciones.setWidth(\"100.0%\");\n\t\ttablaGestionEvaluaciones.setHeight(\"100.0%\");\n\t\tmainLayout.addComponent(tablaGestionEvaluaciones,\n\t\t\t\t\"top:57.0px;right:20.0px;bottom:20.0px;left:20.0px;\");\n\t\t\n\t\t// botonCrearEvaluacion\n\t\tbotonCrearEvaluacion = new Button();\n\t\tbotonCrearEvaluacion.setCaption(\"Crear Evaluación\");\n\t\tbotonCrearEvaluacion.setImmediate(true);\n\t\tbotonCrearEvaluacion.setWidth(\"-1px\");\n\t\tbotonCrearEvaluacion.setHeight(\"-1px\");\n\t\tmainLayout\n\t\t\t\t.addComponent(botonCrearEvaluacion, \"top:14.0px;left:20.0px;\");\n\t\t\n\t\t// buttonEditarEvaluacion\n\t\tbuttonEditarEvaluacion = new Button();\n\t\tbuttonEditarEvaluacion.setCaption(\"Editar Evaluación\");\n\t\tbuttonEditarEvaluacion.setImmediate(false);\n\t\tbuttonEditarEvaluacion.setWidth(\"-1px\");\n\t\tbuttonEditarEvaluacion.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(buttonEditarEvaluacion,\n\t\t\t\t\"top:14.0px;left:160.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "public Layout() {\n\n //nao precisa colocar externo, apenas referencia com a linha 0\n for (int i = 0; i < 4; i++) {\n matrix[0][i] = Estados.EXTERNO;\n }\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = Estados.ROOM;\n }\n\n matrix[2][1] = Estados.ROOM_EMPTY;\n matrix[2][2] = Estados.ROOM_EMPTY2;\n\n matrix[2][0] = Estados.ACESSO_EXTERNO;\n matrix[2][3] = Estados.ACESSO_INTERNO;\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = Estados.ROOM;\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[4][i] = Estados.EXTERNO2;\n }\n\n }", "void buildLayout(){\n\t\tsetText(\"Score: \" + GameModel.instance().getPoints());\n\t\tsetX(10);\n\t\tsetY(10);\n\t\tsetFont(Font.font(\"verdana\", FontWeight.BOLD, FontPosture.REGULAR, 20));\n\t\t\n\t}", "private void layoutGame() {\n\t\tthis.doLayoutGame();\r\n\t\tthis.doLayoutGame();\r\n\t}", "private VerticalLayout buildGridInfo() {\n\t\tgridInfo = new VerticalLayout();\r\n\t\tgridInfo.setImmediate(false);\r\n\t\tgridInfo.setWidth(\"100%\");\r\n\t\tgridInfo.setHeight(\"100.0%\");\r\n\t\tgridInfo.setMargin(false);\r\n\t\tgridInfo.setSpacing(true);\r\n\t\t\r\n\t\t// gridTitle\r\n\t\tgridTitle = buildGridTitle();\r\n\t\tgridInfo.addComponent(gridTitle);\r\n\t\tgridInfo.setExpandRatio(gridTitle, 1.0f);\r\n\t\t\r\n\t\t// gridData\r\n\t\tgridData = buildGridData();\r\n\t\tgridInfo.addComponent(gridData);\r\n\t\tgridInfo.setExpandRatio(gridData, 1.0f);\r\n\t\t\r\n\t\treturn gridInfo;\r\n\t}", "private void setupLayout() {\r\n\t\tgetContentPane().add(panel);\r\n\t}", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagButton = new JButton();\n Font memberImportTagButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagButton.getFont());\n if (memberImportTagButtonFont != null) memberImportTagButton.setFont(memberImportTagButtonFont);\n memberImportTagButton.setText(\"导入选择的标签分组-取并集\");\n panel2.add(memberImportTagButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagRetainButton = new JButton();\n Font memberImportTagRetainButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagRetainButton.getFont());\n if (memberImportTagRetainButtonFont != null)\n memberImportTagRetainButton.setFont(memberImportTagRetainButtonFont);\n memberImportTagRetainButton.setText(\"导入选择的标签分组-取交集\");\n panel2.add(memberImportTagRetainButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportAllButton = new JButton();\n Font memberImportAllButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportAllButton.getFont());\n if (memberImportAllButtonFont != null) memberImportAllButton.setFont(memberImportAllButtonFont);\n memberImportAllButton.setText(\"导入所有关注公众号的用户\");\n panel2.add(memberImportAllButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionPanel = new JPanel();\n importOptionPanel.setLayout(new GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(importOptionPanel, new GridConstraints(1, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionOpenIdCheckBox = new JCheckBox();\n importOptionOpenIdCheckBox.setEnabled(false);\n importOptionOpenIdCheckBox.setSelected(true);\n importOptionOpenIdCheckBox.setText(\"openId\");\n importOptionPanel.add(importOptionOpenIdCheckBox, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n importOptionPanel.add(spacer1, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n importOptionBasicInfoCheckBox = new JCheckBox();\n importOptionBasicInfoCheckBox.setText(\"昵称、性别等基本信息\");\n importOptionBasicInfoCheckBox.setToolTipText(\"每获取一条信息会花费一次每日接口调用量\");\n importOptionPanel.add(importOptionBasicInfoCheckBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n importOptionAvatarCheckBox = new JCheckBox();\n importOptionAvatarCheckBox.setText(\"头像\");\n importOptionAvatarCheckBox.setToolTipText(\"勾选会导致左侧列表甚至WePush变卡哦\");\n importOptionPanel.add(importOptionAvatarCheckBox, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearDbCacheButton = new JButton();\n clearDbCacheButton.setText(\"清空本地缓存\");\n importOptionPanel.add(clearDbCacheButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagComboBox = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n memberImportTagComboBox.setModel(defaultComboBoxModel1);\n panel3.add(memberImportTagComboBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagFreshButton = new JButton();\n Font memberImportTagFreshButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagFreshButton.getFont());\n if (memberImportTagFreshButtonFont != null) memberImportTagFreshButton.setFont(memberImportTagFreshButtonFont);\n memberImportTagFreshButton.setText(\"刷新\");\n panel3.add(memberImportTagFreshButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, 1, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"标签分组\");\n panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "abstract void snapshotLayout();", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}", "public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "@LayoutRes\n protected abstract int getLayoutId();", "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}", "private void buildview() {\n\t\tCssLayout cd= new CssLayout();\n\t\t\n\t\t//table.setSizeFull();\n\t\t\t\n\t\t\ttable.setContainerDataSource(container);\n\t\t\ttable.setVisibleColumns(new Object[]{\"Name\",\"Component\",\"Indication\",\"Comment\",\"MethodofAdministration\"});\n\t\t\ttable.setColumnHeader(\"MethodofAdministration\", \"Method of Administration\");\n\t\t\t\n\t\t\ttable.setWidth(\"100%\");\n\t\t\tcd.addComponent(table);\n\t\t\tcd.setSizeFull();\n\t\t\tsetContent(cd);\n\t\t\n\t}", "@AutoGenerated\r\n\tprivate GridLayout buildMainLayout() {\n\t\tmainLayout = new GridLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\tmainLayout.setRows(2);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"-1px\");\r\n\t\t\r\n\t\t// verticalLayout_1\r\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\r\n\t\tmainLayout.addComponent(horizontalLayout_1, 0, 0);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "@SuppressWarnings(\"UnnecessaryBoxing\")\r\n private void initLayoutDimensions() {\r\n leftPanelWidth = Page.getScreenWidth() * 20 / 100;\r\n leftPanelHeight = Page.getScreenHeight() - 225;\r\n middlePanelWidth = Page.getScreenWidth() / 2;\r\n if (Double.valueOf(middlePanelWidth) % 2.0 > 0.0) {\r\n middlePanelWidth = middlePanelWidth - 1;\r\n }\r\n rightPanelWidth = Page.getScreenWidth() - (leftPanelWidth + 2 + middlePanelWidth + 2);\r\n }", "private void createMainMenuMiddleComposite() {\n\t\tString imgSlipUI = null;\n\t\tString imgJackpotBtn = null;\n\t\tString imgVoucherBtn = null;\n\t\tif(Util.isSmallerResolution()) {\n\t\t\timgSlipUI = ImageConstants.S_SLIPS_UI_BUTTON_IMG;\n\t\t\timgJackpotBtn = ImageConstants.S_JACKPOT_UI_BUTTON_IMG;\n\t\t\timgVoucherBtn = ImageConstants.S_VOUCHER_UI_BUTTON_IMG;\n\t\t}\n\t\telse {\n\t\t\timgSlipUI = ImageConstants.SLIPS_UI_BUTTON_IMG;\n\t\t\timgJackpotBtn = ImageConstants.JACKPOT_UI_BUTTON_IMG;\n\t\t\timgVoucherBtn = ImageConstants.VOUCHER_UI_BUTTON_IMG;\n\t\t}\n\t\t\n\t\tGridData gridData11 = new GridData();\n\t\tgridData11.horizontalAlignment = GridData.CENTER;\n\t\tgridData11.grabExcessHorizontalSpace = true;\n\t\tgridData11.grabExcessVerticalSpace = true;\n\t\tgridData11.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData10 = new GridData();\n\t\tgridData10.horizontalAlignment = GridData.CENTER;\n\t\tgridData10.grabExcessHorizontalSpace = true;\n\t\tgridData10.grabExcessVerticalSpace = true;\n\t\tgridData10.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData9 = new GridData();\n\t\tgridData9.horizontalAlignment = GridData.CENTER;\n\t\tgridData9.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData6 = new GridData();\n\t\tgridData6.heightHint = 100;\n\t\t// gridData6.heightHint = 70;\n\t\tgridData6.widthHint = 100;\n\t\t// gridData6.widthHint = 90;\n\t\tgridData6.grabExcessHorizontalSpace = true;\n\t\tgridData6.grabExcessVerticalSpace = true;\n\t\tgridData6.horizontalAlignment = GridData.CENTER;\n\t\tgridData6.verticalAlignment = GridData.END;\n\n\t\tGridLayout gridLayout3 = new GridLayout();\n\t\tgridLayout3.horizontalSpacing = 20;\n\t\tgridLayout3.numColumns = 3;\n\t\tGridData gridData5 = new GridData();\n\t\tgridData5.grabExcessHorizontalSpace = true;\n\t\tgridData5.verticalAlignment = GridData.FILL;\n\t\tgridData5.heightHint = 100;\n\t\tgridData5.grabExcessVerticalSpace = true;\n\t\tgridData5.horizontalAlignment = GridData.FILL;\n\t\tmainMenuMiddleComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuMiddleComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t171, 209, 255));\n\t\tmainMenuMiddleComposite.setLayout(gridLayout3);\n\t\tmainMenuMiddleComposite.setLayoutData(gridData5);\n\n\t\tGridData gridData3 = new GridData();\n\t\tgridData3.grabExcessVerticalSpace = true;\n\t\tgridData3.horizontalAlignment = GridData.CENTER;\n\t\tgridData3.verticalAlignment = GridData.END;\n\t\tgridData3.heightHint = 100;\n\t\tgridData3.widthHint = 100;\n\t\tgridData3.grabExcessHorizontalSpace = true;\n\n\t\tGridData gridData1 = new GridData();\n\t\tgridData1.grabExcessVerticalSpace = true;\n\t\tgridData1.horizontalAlignment = GridData.CENTER;\n\t\tgridData1.verticalAlignment = GridData.END;\n\t\tgridData1.heightHint = 100;\n\t\tgridData1.widthHint = 100;\n\t\tgridData1.grabExcessHorizontalSpace = true;\n\n\t\tbtnSlipUI = new CbctlButton(mainMenuMiddleComposite, SWT.FLAT, \"\",\n\t\t\t\tLabelKeyConstants.SLIPS_UI_BUTTON);\n\t\tbtnSlipUI\n\t\t\t\t.setFont(new Font(Display.getDefault(), \"Arial\", 12, SWT.BOLD));\n\t\t\n\t\tbtnSlipUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgSlipUI)));\n\t\tbtnSlipUI.setLayoutData(gridData1);\n\n\t\tbtnJackpotUI = new CbctlButton(mainMenuMiddleComposite, SWT.NONE, \"\",\n\t\t\t\tLabelKeyConstants.JACKPOT_UI_BUTTON);\n\t\tbtnJackpotUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tbtnJackpotUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgJackpotBtn)));\n\t\tbtnJackpotUI.setLayoutData(gridData3);\n\n\t\tbtnVoucherUI = new CbctlButton(mainMenuMiddleComposite, SWT.NONE, \"\",\n\t\t\t\tLabelLoader.getLabelValue(LabelKeyConstants.VOUCHER_UI_BUTTON));\n\t\tbtnVoucherUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgVoucherBtn)));\n\t\tbtnVoucherUI.setLayoutData(gridData6);\n\n\t\tlblSlipUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblSlipUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.SLIPS_UI_BUTTON));\n\t\tlblSlipUI.setBackground(new Color(Display.getCurrent(), 171, 209, 255));\n\t\tlblSlipUI\n\t\t\t\t.setFont(new Font(Display.getDefault(), \"Arial\", 12, SWT.BOLD));\n\t\tlblSlipUI.setLayoutData(gridData9);\n\n\t\tlblJackpotUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblJackpotUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.JACKPOT_UI_BUTTON));\n\t\tlblJackpotUI.setBackground(new Color(Display.getCurrent(), 171, 209,\n\t\t\t\t255));\n\t\tlblJackpotUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tlblJackpotUI.setLayoutData(gridData10);\n\n\t\tlblVoucherUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblVoucherUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.VOUCHER_UI_BUTTON));\n\t\tlblVoucherUI.setBackground(new Color(Display.getCurrent(), 171, 209,\n\t\t\t\t255));\n\t\tlblVoucherUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tlblVoucherUI.setLayoutData(gridData11);\n\n\t}", "private void initLayouts() {\n mRelativeLayout1WA = findViewById(R.id.history_layout_one_week_ago);\n mRelativeLayout6DA = findViewById(R.id.history_layout_six_days_ago);\n mRelativeLayout5DA = findViewById(R.id.history_layout_five_days_ago);\n mRelativeLayout4DA = findViewById(R.id.history_layout_four_days_ago);\n mRelativeLayout3DA = findViewById(R.id.history_layout_three_days_ago);\n mRelativeLayout2DA = findViewById(R.id.history_layout_two_days_ago);\n mRelativeLayoutY = findViewById(R.id.history_layout_yesterday);\n\n layoutsList.add(mRelativeLayoutY);\n layoutsList.add(mRelativeLayout2DA);\n layoutsList.add(mRelativeLayout3DA);\n layoutsList.add(mRelativeLayout4DA);\n layoutsList.add(mRelativeLayout5DA);\n layoutsList.add(mRelativeLayout6DA);\n layoutsList.add(mRelativeLayout1WA);\n\n }", "private void setupAllSpecialLayoutViews(){\n allSpecialLayoutViews = new ArrayList<>();\n allSpecialLayoutViews.add(radianSpecialLayout);\n allSpecialLayoutViews.add(sineSpecialLayout);\n allSpecialLayoutViews.add(cosineSpecialLayout);\n allSpecialLayoutViews.add(tangentSpecialLayout);\n allSpecialLayoutViews.add(radianDivBar);\n allSpecialLayoutViews.add(radianTextDenominator);\n allSpecialLayoutViews.add(sineDivBar);\n allSpecialLayoutViews.add(sineTextDenominator);\n allSpecialLayoutViews.add(cosineDivBar);\n allSpecialLayoutViews.add(cosineTextDenominator);\n allSpecialLayoutViews.add(tangentDivBar);\n allSpecialLayoutViews.add(tangentTextDenominator);\n }", "private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\r\n final JPanel panel1 = new JPanel();\r\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel = new JPanel();\r\n mMainPanel.setLayout(new GridLayoutManager(15, 3, new Insets(0, 0, 0, 0), -1, -1));\r\n panel1.add(mMainPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n label = new JLabel();\r\n Font labelFont = this.$$$getFont$$$(null, -1, 28, label.getFont());\r\n if (labelFont != null) label.setFont(labelFont);\r\n label.setText(\"CodeRecommender\");\r\n mMainPanel.add(label, new GridConstraints(0, 0, 2, 1, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer1 = new Spacer();\r\n mMainPanel.add(spacer1, new GridConstraints(5, 2, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final JPanel panel2 = new JPanel();\r\n panel2.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel2, new GridConstraints(4, 0, 6, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel3 = new JPanel();\r\n panel3.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel2.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n statement = new JTextArea();\r\n statement.setBackground(new Color(-12434103));\r\n statement.setColumns(0);\r\n statement.setEditable(false);\r\n statement.setEnabled(true);\r\n Font statementFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 15, statement.getFont());\r\n if (statementFont != null) statement.setFont(statementFont);\r\n statement.setText(\" In the current ai craze, we want to use neural network-related technology to grab a large amount of source code from the open source community to achieve the recommendation of the N+1 line of code from the known N lines of code, and package this function into a practical plug-in on the IDE.\");\r\n panel3.add(statement, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, 70), null, 1, false));\r\n final JPanel panel4 = new JPanel();\r\n panel4.setLayout(new GridLayoutManager(12, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.setBackground(new Color(-12828863));\r\n panel3.add(panel4, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n Download = new JButton();\r\n Font DownloadFont = this.$$$getFont$$$(null, -1, 12, Download.getFont());\r\n if (DownloadFont != null) Download.setFont(DownloadFont);\r\n Download.setText(\"Find\");\r\n panel4.add(Download, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel5 = new JPanel();\r\n panel5.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel5, new GridConstraints(11, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"See the guide on the https://github.com/huangjihui511/java-code-recommand-IDEA-plugin \");\r\n panel5.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer2 = new Spacer();\r\n panel5.add(spacer2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n pathTextField = new JTextField();\r\n pathTextField.setEditable(false);\r\n Font pathTextFieldFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 12, pathTextField.getFont());\r\n if (pathTextFieldFont != null) pathTextField.setFont(pathTextFieldFont);\r\n pathTextField.setText(\"/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 \");\r\n panel4.add(pathTextField, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n SetPath = new JButton();\r\n Font SetPathFont = this.$$$getFont$$$(null, -1, 12, SetPath.getFont());\r\n if (SetPathFont != null) SetPath.setFont(SetPathFont);\r\n SetPath.setText(\"Set\");\r\n panel4.add(SetPath, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n Help = new JButton();\r\n Help.setText(\"Help\");\r\n panel4.add(Help, new GridConstraints(11, 1, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel6 = new JPanel();\r\n panel6.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel6.setFocusTraversalPolicyProvider(false);\r\n panel6.setFocusable(false);\r\n panel4.add(panel6, new GridConstraints(10, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel7 = new JPanel();\r\n panel7.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel7, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label2 = new JLabel();\r\n label2.setIcon(new ImageIcon(getClass().getResource(\"/timg (1) - 副本.jpg\")));\r\n label2.setText(\"\");\r\n panel7.add(label2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label3 = new JLabel();\r\n label3.setIcon(new ImageIcon(getClass().getResource(\"/微信图片_20190328224952 (2) - 副本.jpg\")));\r\n label3.setText(\"\");\r\n panel7.add(label3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel8 = new JPanel();\r\n panel8.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel7.add(panel8, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel9 = new JPanel();\r\n panel9.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel9, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n webaddressTextField = new JTextField();\r\n webaddressTextField.setEditable(false);\r\n Font webaddressTextFieldFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 12, webaddressTextField.getFont());\r\n if (webaddressTextFieldFont != null) webaddressTextField.setFont(webaddressTextFieldFont);\r\n webaddressTextField.setText(\"/Volumes/PythonSupporting\");\r\n panel4.add(webaddressTextField, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n final JPanel panel10 = new JPanel();\r\n panel10.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel10, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label4 = new JLabel();\r\n Font label4Font = this.$$$getFont$$$(\"Consolas\", Font.BOLD, 14, label4.getFont());\r\n if (label4Font != null) label4.setFont(label4Font);\r\n label4.setText(\"Find the package\");\r\n panel10.add(label4, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer3 = new Spacer();\r\n panel10.add(spacer3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final JPanel panel11 = new JPanel();\r\n panel11.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel11.setToolTipText(\"\");\r\n panel4.add(panel11, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label5 = new JLabel();\r\n Font label5Font = this.$$$getFont$$$(\"Consolas\", Font.BOLD, 14, label5.getFont());\r\n if (label5Font != null) label5.setFont(label5Font);\r\n label5.setText(\"Set the path\");\r\n panel11.add(label5, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer4 = new Spacer();\r\n panel11.add(spacer4, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final JPanel panel12 = new JPanel();\r\n panel12.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel12, new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel13 = new JPanel();\r\n panel13.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel13, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel14 = new JPanel();\r\n panel14.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel14, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel15 = new JPanel();\r\n panel15.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel15, new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n pic = new JPanel();\r\n pic.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.putClientProperty(\"html.disable\", Boolean.FALSE);\r\n panel3.add(pic, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n a = new JLabel();\r\n a.setText(\"\");\r\n pic.add(a, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel16 = new JPanel();\r\n panel16.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.add(panel16, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel17 = new JPanel();\r\n panel17.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.add(panel17, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel18 = new JPanel();\r\n panel18.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel2.add(panel18, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final Spacer spacer5 = new Spacer();\r\n mMainPanel.add(spacer5, new GridConstraints(5, 1, 10, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final JPanel panel19 = new JPanel();\r\n panel19.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel19, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel20 = new JPanel();\r\n panel20.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel20, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final Spacer spacer6 = new Spacer();\r\n panel1.add(spacer6, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer7 = new Spacer();\r\n panel1.add(spacer7, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer8 = new Spacer();\r\n panel1.add(spacer8, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n }", "protected void createContents() {\n\n\t}", "private void buildHeader(Layout parent) {\n\n }", "private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }", "public interface ViewLayout {\r\n\r\n\t/** \r\n\t * Creates a reference to the view which layout should be calculated.\r\n\t * \r\n\t * @param view\r\n\t * \t\tthe view which layout should be calculated.\r\n\t */\r\n\tpublic void setView(View view);\r\n\t\r\n\t/**\r\n\t * Layouts the view components on the parent panel by assigning\r\n\t * them positions.\r\n\t * \r\n\t * @param parent\r\n\t * \t\tthe displaying parent container of the view\r\n\t */\r\n\tpublic void layoutContainer(Container parent);\r\n\r\n}", "private void createMainMenuHeaderComposite() {\n\n\t\tGridData gridData8 = new GridData();\n\t\tgridData8.grabExcessHorizontalSpace = true;\n\t\tgridData8.horizontalAlignment = GridData.FILL;\n\t\tgridData8.verticalAlignment = GridData.BEGINNING;\n\t\tgridData8.grabExcessVerticalSpace = true;\n\t\tGridData gridData7 = new GridData();\n\t\tgridData7.grabExcessHorizontalSpace = true;\n\t\tgridData7.horizontalAlignment = GridData.FILL;\n\t\tgridData7.verticalAlignment = GridData.END;\n\t\tgridData7.grabExcessVerticalSpace = true;\n\t\tGridData gridData21 = new GridData();\n\t\tgridData21.horizontalAlignment = GridData.FILL;\n\t\tgridData21.grabExcessHorizontalSpace = true;\n\t\tgridData21.grabExcessVerticalSpace = false;\n\t\tgridData21.heightHint = 150;\n\t\tgridData21.verticalAlignment = GridData.BEGINNING;\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.horizontalSpacing = 50;\n\t\tgridLayout.marginWidth = 20;\n\t\tgridLayout.marginHeight = 0;\n\t\tgridLayout.verticalSpacing = 35;\n\t\tmainMenuHeaderComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuHeaderComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t255, 255, 255));\n\t\tmainMenuHeaderComposite.setLayoutData(gridData21);\n\t\tmainMenuHeaderComposite.setLayout(gridLayout);\n\n\t\tlblTitle1 = new CbctlLabel(mainMenuHeaderComposite, SWT.CENTER);\n\t\tlblTitle1\n\t\t\t\t.setText(LabelLoader\n\t\t\t\t\t\t.getLabelValue(LabelKeyConstants.WELCOME_NOTE_ON_TOUCH_SCREEN_HOMEPAGE));\n\t\tlblTitle1\n\t\t\t\t.setFont(SDSControlFactory.getStandardTouchScreenFont());\n\t\tlblTitle1.setLayoutData(gridData7);\n\n\t\tlblTitle2 = new CbctlLabel(mainMenuHeaderComposite, SWT.CENTER);\n\t\tlblTitle2\n\t\t\t\t.setText(LabelLoader\n\t\t\t\t\t\t.getLabelValue(LabelKeyConstants.SELECT_NOTE_ON_TOUCH_SCREEN_HOMEPAGE));\n\t\tlblTitle2\n\t\t\t\t.setFont(SDSControlFactory.getStandardTouchScreenFont());\n\t\tlblTitle2.setLayoutData(gridData8);\n\t}" ]
[ "0.7441121", "0.7408097", "0.73983043", "0.7349182", "0.7343956", "0.72837514", "0.7228967", "0.72196674", "0.716834", "0.7118178", "0.7112332", "0.71101266", "0.70597374", "0.70571274", "0.6990229", "0.6926798", "0.6901655", "0.6854118", "0.68504196", "0.68446213", "0.68368685", "0.6783188", "0.6759682", "0.67309034", "0.6673435", "0.66200835", "0.65828514", "0.65800583", "0.65591884", "0.65570545", "0.65567595", "0.65414953", "0.6533817", "0.6528927", "0.65221506", "0.6510406", "0.6501033", "0.6495626", "0.64799005", "0.6470482", "0.64617133", "0.6450147", "0.6445254", "0.6439915", "0.64341444", "0.64323527", "0.64293355", "0.64242285", "0.6423748", "0.64126766", "0.64016813", "0.63963145", "0.6384965", "0.63835275", "0.6374324", "0.6373989", "0.63736635", "0.6357495", "0.6350608", "0.63358897", "0.6329535", "0.6319707", "0.631756", "0.6311248", "0.62908554", "0.6290835", "0.6288659", "0.6287615", "0.6285164", "0.62839264", "0.6269888", "0.6261724", "0.6260101", "0.62521136", "0.62484986", "0.624712", "0.62470645", "0.6246525", "0.62457556", "0.624454", "0.6244338", "0.6244212", "0.62423617", "0.6237739", "0.62333804", "0.6228355", "0.6228241", "0.62271667", "0.6223703", "0.6221801", "0.6210153", "0.6208609", "0.6207323", "0.6204501", "0.62025356", "0.62011784", "0.61998993", "0.61963207", "0.619598", "0.61945784", "0.6174235" ]
0.0
-1
common part: create layout
@AutoGenerated private HorizontalLayout buildHlToolbar() { hlToolbar = new HorizontalLayout(); hlToolbar.setImmediate(false); hlToolbar.setWidth("100.0%"); hlToolbar.setHeight("100.0%"); hlToolbar.setMargin(false); // btnFirstRegister btnFirstRegister = new Button(); btnFirstRegister.setCaption("<<"); btnFirstRegister.setImmediate(true); btnFirstRegister.setWidth("-1px"); btnFirstRegister.setHeight("-1px"); hlToolbar.addComponent(btnFirstRegister); // btnPreviousRegister btnPreviousRegister = new Button(); btnPreviousRegister.setCaption("<"); btnPreviousRegister.setImmediate(true); btnPreviousRegister.setWidth("-1px"); btnPreviousRegister.setHeight("-1px"); btnPreviousRegister.setTabIndex(1); hlToolbar.addComponent(btnPreviousRegister); // lblCountRegister lblCountRegister = new Label(); lblCountRegister.setStyleName("nav-toolbar-separator"); lblCountRegister.setImmediate(false); lblCountRegister.setWidth("50px"); lblCountRegister.setHeight("-1px"); lblCountRegister.setValue("1/1"); hlToolbar.addComponent(lblCountRegister); hlToolbar.setComponentAlignment(lblCountRegister, new Alignment(48)); // btnNextRegister btnNextRegister = new Button(); btnNextRegister.setCaption(">"); btnNextRegister.setImmediate(true); btnNextRegister.setWidth("-1px"); btnNextRegister.setHeight("-1px"); btnNextRegister.setTabIndex(2); hlToolbar.addComponent(btnNextRegister); // btnLastRegister btnLastRegister = new Button(); btnLastRegister.setCaption(">>"); btnLastRegister.setImmediate(true); btnLastRegister.setWidth("-1px"); btnLastRegister.setHeight("-1px"); btnLastRegister.setTabIndex(3); hlToolbar.addComponent(btnLastRegister); // btnDownRegister btnDownRegister = new Button(); btnDownRegister.setCaption("v"); btnDownRegister.setImmediate(true); btnDownRegister.setWidth("-1px"); btnDownRegister.setHeight("-1px"); hlToolbar.addComponent(btnDownRegister); // btnUpRegister btnUpRegister = new Button(); btnUpRegister.setCaption("^"); btnUpRegister.setImmediate(true); btnUpRegister.setWidth("-1px"); btnUpRegister.setHeight("-1px"); hlToolbar.addComponent(btnUpRegister); // btnDisplayRegister btnDisplayRegister = new Button(); btnDisplayRegister.setCaption("C"); btnDisplayRegister.setImmediate(false); btnDisplayRegister.setWidth("-1px"); btnDisplayRegister.setHeight("-1px"); hlToolbar.addComponent(btnDisplayRegister); // imgSeparator imgSeparator = new Embedded(); imgSeparator.setImmediate(false); imgSeparator.setWidth("-1px"); imgSeparator.setHeight("-1px"); imgSeparator.setSource(new ThemeResource( "../konekti/images/separator.png")); imgSeparator.setType(1); imgSeparator.setMimeType("image/png"); hlToolbar.addComponent(imgSeparator); // btnRefreshRegister btnRefreshRegister = new Button(); btnRefreshRegister.setCaption("R"); btnRefreshRegister.setImmediate(true); btnRefreshRegister.setWidth("-1px"); btnRefreshRegister.setHeight("-1px"); hlToolbar.addComponent(btnRefreshRegister); // btnAddRegister btnAddRegister = new Button(); btnAddRegister.setCaption("A"); btnAddRegister.setImmediate(true); btnAddRegister.setWidth("-1px"); btnAddRegister.setHeight("-1px"); hlToolbar.addComponent(btnAddRegister); // btnEditRegister btnEditRegister = new Button(); btnEditRegister.setCaption("U"); btnEditRegister.setImmediate(true); btnEditRegister.setWidth("-1px"); btnEditRegister.setHeight("-1px"); hlToolbar.addComponent(btnEditRegister); // btnDeleteRegister btnDeleteRegister = new Button(); btnDeleteRegister.setCaption("D"); btnDeleteRegister.setImmediate(true); btnDeleteRegister.setWidth("-1px"); btnDeleteRegister.setHeight("-1px"); hlToolbar.addComponent(btnDeleteRegister); // imgSeparatorGroup imgSeparatorGroup = new Embedded(); imgSeparatorGroup.setImmediate(false); imgSeparatorGroup.setWidth("-1px"); imgSeparatorGroup.setHeight("-1px"); imgSeparatorGroup.setSource(new ThemeResource( "../konekti/images/separator_group.png")); imgSeparatorGroup.setType(1); imgSeparatorGroup.setMimeType("image/png"); hlToolbar.addComponent(imgSeparatorGroup); hlToolbar.setComponentAlignment(imgSeparatorGroup, new Alignment(48)); // btnConfirmRegister btnConfirmRegister = new Button(); btnConfirmRegister.setCaption("[]"); btnConfirmRegister.setImmediate(true); btnConfirmRegister.setWidth("-1px"); btnConfirmRegister.setHeight("-1px"); hlToolbar.addComponent(btnConfirmRegister); // btnCancelRegister btnCancelRegister = new Button(); btnCancelRegister.setCaption("X"); btnCancelRegister.setImmediate(true); btnCancelRegister.setWidth("-1px"); btnCancelRegister.setHeight("-1px"); hlToolbar.addComponent(btnCancelRegister); return hlToolbar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void iniciarLayout();", "Board createLayout();", "public abstract void doLayout();", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }", "public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\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\tAlignment.LEADING)\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\tgroupLayout\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\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\t225,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.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\tgroupLayout\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\tAlignment.LEADING)\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\tp_execute,\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\t957,\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\tp_container,\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\t957,\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\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\t1188,\n\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.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\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(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\n\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\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\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\tAlignment.LEADING)\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\tp_commands,\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\t603,\n\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\tgroupLayout\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\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\t549,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\tp_execute,\n\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\t48,\n\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.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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\tAlignment.LEADING)\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\tp_view,\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\t955,\n\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\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\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\tComponentPlacement.RELATED)\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\tbt_revert))\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\tgl_p_container\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\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\tComponentPlacement.RELATED)\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\ttf_name,\n\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\t893,\n\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.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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\tAlignment.BASELINE)\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\ttf_name,\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(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\n\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\t466, GroupLayout.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\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\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\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\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\tAlignment.BASELINE)\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\tta_header,\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\t44,\n\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.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\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\tAlignment.LEADING)\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\tp_tree,\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\t211,\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(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\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.DEFAULT_SIZE,\n\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.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}", "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "public void setupLayout() {\n // left empty for subclass to override\n }", "public void createLayout() {\n\t\tpersons = createPersonGuessPanel();\t\t\n\t\tweapons = createWeaponGuessPanel();\n\t\trooms = createRoomGuessPanel();\n\t\t\n\t\tpersonCheckList = createPeoplePanel();\n\t\tweaponCheckList =createWeaponsPanel(); \n\t\troomCheckList = createRoomsPanel();\n\t\t\n\t\tJPanel completed = new JPanel();\n\t\tcompleted.setLayout(new GridLayout(3, 2));\n\t\tadd(completed, BorderLayout.CENTER);\n\t\tcompleted.add(personCheckList);\n\t\tcompleted.add(persons);\n\t\tcompleted.add(weaponCheckList);\n\t\tcompleted.add(weapons);\n\t\tcompleted.add(roomCheckList);\n\t\tcompleted.add(rooms);\n\t}", "private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }", "private void defineLayout(IPageLayout layout) {\n String editorArea = layout.getEditorArea();\r\n\r\n IFolderLayout folder;\r\n\r\n // Place remote system view to left of editor area.\r\n folder = layout.createFolder(NAV_FOLDER_ID, IPageLayout.LEFT, 0.2F, editorArea);\r\n folder.addView(getRemoveSystemsViewID());\r\n\r\n // Place properties view below remote system view.\r\n folder = layout.createFolder(PROPS_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, NAV_FOLDER_ID);\r\n folder.addView(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n\r\n // Place job log explorer view below editor area.\r\n folder = layout.createFolder(JOB_LOG_EXPLORER_FOLDER_ID, IPageLayout.BOTTOM, 0.0F, editorArea);\r\n folder.addView(JobLogExplorerView.ID);\r\n\r\n // Place command log view below editor area.\r\n folder = layout.createFolder(CMDLOG_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, JobLogExplorerView.ID);\r\n folder.addView(getCommandLogViewID());\r\n\r\n layout.addShowViewShortcut(getRemoveSystemsViewID());\r\n layout.addShowViewShortcut(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n layout.addShowViewShortcut(getCommandLogViewID());\r\n\r\n layout.addPerspectiveShortcut(ID);\r\n\r\n layout.setEditorAreaVisible(false);\r\n }", "@Override\n public void layout() {\n // TODO: not implemented\n }", "void computeNewLayout();", "public void createInitialLayout(IPageLayout layout) {\n \n\t}", "private void buildMainLayout(IAuthorizationContext pContext)\r\n throws UnauthorizedAccessAttemptException, IOException {\r\n\r\n createObjectEntry();\r\n\r\n if (parent.getParentUI().siteName.equals(parent.getParentUI().siteNameCVMA)) {\r\n defineInfoLayoutCVMA();\r\n } else {\r\n defineInfoLayoutStandard();\r\n }\r\n\r\n thumbLayout = new VerticalLayout();\r\n thumbLayout.setSizeFull();\r\n thumbLayout.setSpacing(false);\r\n thumbLayout.setMargin(false);\r\n thumbLayout.setStyleName(\"white\");\r\n thumbLayout.setHeight(\"150px\");\r\n thumbLayout.setWidth(\"161px\");\r\n\r\n // initialize thumbnail field and button\r\n setThumbButton();\r\n\r\n // build content layout\r\n buttonLayout = new VerticalLayout();\r\n buttonLayout.setSizeFull();\r\n buttonLayout.setSpacing(false);\r\n buttonLayout.setMargin(false);\r\n buttonLayout.setStyleName(\"white\");\r\n buttonLayout.setHeight(\"150px\");\r\n buttonLayout.setWidth(\"161px\");\r\n\r\n // set download button\r\n setDownloadButton();\r\n\r\n // set metadata viewer button\r\n setMetadataViewerButton();\r\n\r\n // download button\r\n setImageDownloadButton();\r\n\r\n // map button\r\n setMapButton();\r\n\r\n // build content layout\r\n contentLayout = new HorizontalLayout();\r\n contentLayout.setSizeFull();\r\n contentLayout.setMargin(false);\r\n contentLayout.setMargin(new MarginInfo(false, false, true, false));\r\n contentLayout.setStyleName(\"white\");\r\n contentLayout.addComponent(thumbLayout);\r\n contentLayout.addComponent(infoLayout);\r\n contentLayout.addComponent(buttonLayout);\r\n contentLayout.setComponentAlignment(thumbLayout, Alignment.TOP_LEFT);\r\n contentLayout.setComponentAlignment(infoLayout, Alignment.TOP_CENTER);\r\n contentLayout.setComponentAlignment(buttonLayout, Alignment.TOP_RIGHT);\r\n contentLayout.setExpandRatio(infoLayout, 11f);\r\n }", "@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n\n return mainLayout;\n }", "private HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100%\");\r\n\t\tsetHeight(\"100%\");\r\n\t\t\r\n\t\t// panelImg\r\n\t\tpanelImg = buildPanelImg();\r\n\t\tmainLayout.addComponent(panelImg);\r\n\t\t\r\n\t\t// gridInfo\r\n\t\tgridInfo = buildGridInfo();\r\n\t\tmainLayout.addComponent(gridInfo);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}", "@Override\n public void createInitialLayout(IPageLayout layout) {\n defineActions(layout);\n defineLayout(layout);\n }", "private void doTheLayout(){\n\n\t JPanel top = new JPanel();\n\t JPanel center = new JPanel();\n\t JPanel bottom = new JPanel();\n\n\t top.setLayout( new FlowLayout());\n\t top.add(label1);\n\t top.add(field1);\n\n\t center.setLayout( new FlowLayout());\n\t center.add(label2);\n\t center.add(field2);\n\n\t bottom.setLayout( new FlowLayout());\n\t bottom.add(SortButton);\n\t bottom.add(CloseButton);\n\n\t setLayout( new BorderLayout());\n\t add(top, \"North\");\n\t add(center, \"Center\");\n\t add(bottom, \"South\");\n\n\t }", "NodeLayout createNodeLayout();", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"100%\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tmainLayout.setWidth(\"100.0%\");\r\n\t\tmainLayout.setHeight(\"100.0%\");\r\n\t\t\r\n\t\t// label\r\n\t\tlabel = new Label();\r\n\t\tlabel.setImmediate(false);\r\n\t\tlabel.setWidth(\"-1px\");\r\n\t\tlabel.setHeight(\"-1px\");\r\n\t\tlabel.setValue(\"Stellvertreter ernennen\");\r\n\t\tlabel.setStyleName(Runo.LABEL_H1);\r\n\t\tmainLayout.addComponent(label, \"top:25.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// benutzer\r\n\t\tbenutzer = new ListSelect();\r\n\t\tbenutzer.setImmediate(false);\r\n\t\tbenutzer.setWidth(\"46.0%\");\r\n\t\tbenutzer.setHeight(\"70.0%\");\r\n\t\tmainLayout.addComponent(benutzer, \"top:35.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// ok\r\n\t\tok = new Button();\r\n\t\tok.setCaption(\"Stellvertreter ernennen\");\r\n\t\tok.setImmediate(false);\r\n\t\tok.setWidth(\"25%\");\r\n\t\tok.setHeight(\"-1px\");\r\n\t\tok.addListener(this);\r\n\t\tmainLayout.addComponent(ok, \"top:83.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// delete\r\n\t\tdelete = new Button();\r\n\t\tdelete.setCaption(\"Stellvertreter löschen\");\r\n\t\tdelete.setImmediate(false);\r\n\t\tdelete.setWidth(\"25%\");\r\n\t\tdelete.setHeight(\"-1px\");\r\n\t\tdelete.addListener(this);\r\n\t\tmainLayout.addComponent(delete, \"top:88.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// logout\r\n\t\tlogout = new Button();\r\n\t\tlogout.setCaption(\"logout\");\r\n\t\tlogout.setImmediate(false);\r\n\t\tlogout.setWidth(\"-1px\");\r\n\t\tlogout.setHeight(\"-1px\");\r\n\t\tlogout.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tlogout.addListener(this);\r\n\t\tmainLayout.addComponent(logout, \"top:97.0%;left:35.0%;\");\r\n\t\t\r\n\t\t// back\r\n\t\tback = new Button();\r\n\t\tback.setCaption(\"Startseite\");\r\n\t\tback.setImmediate(true);\r\n\t\tback.setWidth(\"-1px\");\r\n\t\tback.setHeight(\"-1px\");\r\n\t\tback.setStyleName(BaseTheme.BUTTON_LINK);\r\n\t\tback.addListener(this);\r\n\t\tmainLayout.addComponent(back, \"top:94.0%;left:35.0%;\");\r\n\t\t\r\n\t\treturn mainLayout;\r\n\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 initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }", "private void prepareLayout() {\n\n\t\tm_layouts = new ArrayList<SQLTableLayout>();\n\n\t\t//\n\t\t// construct the table tag\n\t\t//\n\t\tSQLTableLayout layout = new SQLTableLayout(TAG_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"tag id\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_NAME, \"TEXT\", \"tag name\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_CREATE_DATE, \"TEXT\",\n\t\t\t\t\"creation date of tag\");\n\t\tlayout.addFieldToSQLTableLayout(TAG_FIELD_USAGE, \"INTEGER\",\n\t\t\t\t\"tag usage in repository\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the table file\n\t\t//\n\t\tlayout = new SQLTableLayout(FILE_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"file id\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_PATH, \"TEXT\", \"path of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_TYPE, \"TEXT\", \"type of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_CREATE_DATE, \"TEXT\",\n\t\t\t\t\"creation date of file\");\n\t\tlayout.addFieldToSQLTableLayout(FILE_FIELD_HASH_SUM, \"TEXT\",\n\t\t\t\t\"hash sum of file\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the mapping table\n\t\t//\n\t\tlayout = new SQLTableLayout(MAP_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"map id\");\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_FILE, \"INTEGER\", \"file id\");\n\t\tlayout.addFieldToSQLTableLayout(MAP_FIELD_TAG, \"INTEGER\", \"tag id\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct the directory table\n\t\t//\n\t\tlayout = new SQLTableLayout(DIRECTORY_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(DIRECTORY_FIELD_ID,\n\t\t\t\t\"INTEGER primary key\", \"directory id\");\n\t\tlayout.addFieldToSQLTableLayout(DIRECTORY_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"path of directory\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct pending file table\n\t\t//\n\t\tlayout = new SQLTableLayout(PENDING_FILE_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(PENDING_FIELD_ID,\n\t\t\t\t\"INTEGER primary key\", \"pending id\");\n\t\tlayout.addFieldToSQLTableLayout(PENDING_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"pending path of file\");\n\t\tm_layouts.add(layout);\n\n\t\t//\n\t\t// construct synchronized table\n\t\t//\n\t\tlayout = new SQLTableLayout(SYNC_TABLE_NAME);\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_ID, \"INTEGER primary key\",\n\t\t\t\t\"sync id\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_PATH, \"TEXT\",\n\t\t\t\t\"path of synced file\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_DATE, \"TEXT\", \"sync date\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_TAGS, \"TEXT\",\n\t\t\t\t\"tags of synced file\");\n\t\tlayout.addFieldToSQLTableLayout(SYNC_FIELD_HASH_SUM, \"TEXT\",\n\t\t\t\t\"hash sum of synced file\");\n\t\tm_layouts.add(layout);\n\t}", "private void setupLayout()\n {\n Container contentPane;\n\n setSize(300, 300); \n\n contentPane = getContentPane();\n\n // Layout this PINPadWindow\n }", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setStyleName(\"contenido\");\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(true);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// hl_cabecera\n\t\thl_cabecera = buildHl_cabecera();\n\t\tmainLayout.addComponent(hl_cabecera);\n\t\t\n\t\t// horizontalLayout_1\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\n\t\tmainLayout.addComponent(horizontalLayout_1);\n\t\tmainLayout.setComponentAlignment(horizontalLayout_1, new Alignment(20));\n\t\t\n\t\t// l_preferenciasUsuario\n\t\tl_preferenciasUsuario = new Label();\n\t\tl_preferenciasUsuario.setStyleName(\"mih2\");\n\t\tl_preferenciasUsuario.setImmediate(false);\n\t\tl_preferenciasUsuario.setWidth(\"100.0%\");\n\t\tl_preferenciasUsuario.setHeight(\"-1px\");\n\t\tl_preferenciasUsuario.setValue(\"Preferencias de Usuario\");\n\t\tmainLayout.addComponent(l_preferenciasUsuario);\n\t\t\n\t\t// hl_gridContent\n\t\thl_gridContent = new HorizontalLayout();\n\t\thl_gridContent.setImmediate(false);\n\t\thl_gridContent.setWidth(\"100.0%\");\n\t\thl_gridContent.setHeight(\"-1px\");\n\t\thl_gridContent.setMargin(false);\n\t\tmainLayout.addComponent(hl_gridContent);\n\t\t\n\t\t// b_enviar\n\t\tb_enviar = new Button();\n\t\tb_enviar.setCaption(\"Actualizar\");\n\t\tb_enviar.setImmediate(true);\n\t\tb_enviar.setWidth(\"-1px\");\n\t\tb_enviar.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(b_enviar);\n\t\tmainLayout.setComponentAlignment(b_enviar, new Alignment(48));\n\t\t\n\t\treturn mainLayout;\n\t}", "private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}", "public abstract int presentViewLayout();", "public Layout() {\n super(\"Chitrashala\");\n initComponents();\n }", "private void createMigLayout() {\r\n setLayout(new MigLayout(\"\", \"[][]6[]\", \"[]6[]\"));\r\n\r\n add(indexTitle, \"wrap\");\r\n add(dirUrl, \"span 3\");\r\n add(openDir, \"wrap\");\r\n add(indexProgress, \"wrap, span 4, growx\");\r\n add(addExistingCheck, \"span 3, split 2, right\");\r\n add(new JLabel(\"Add Existing Index\"));\r\n add(startIndexing, \"wrap 3sp\");\r\n add(new JLabel(\r\n \"<html>\"\r\n + \"\t<b style ='color:#3888a9'>Important Notes:</b>\"\r\n + \"\t\t<ol>\"\r\n + \"\t\t\t<li>JPEG images in directory and <i>sub-directories</i> will be indexed.</li>\"\r\n + \"\t\t\t<li>You can <i>update the existing index</i> in the database by checking the checkbox.</li>\"\r\n + \"</ol>\" + \"</html>\"), \"span 4\");\r\n }", "@AutoGenerated\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"-1px\");\n\t\tmainLayout.setHeight(\"29px\");\n\t\tmainLayout.setMargin(false);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"-1px\");\n\t\tsetHeight(\"29px\");\n\t\t\n\t\t// pnToolbar\n\t\tpnToolbar = buildPnToolbar();\n\t\tmainLayout.addComponent(pnToolbar);\n\t\t\n\t\treturn mainLayout;\n\t}", "private void setupLayout() {\n this.setLayout(new BorderLayout());\n\t\tthis.setupConstraints();\n\n\t\tJPanel titleAuthorFields = new JPanel(new GridBagLayout());\n\t\ttitleAuthorFields.add(Pirex.inputField(titleLabel, titleTextField, null), cTitleField);\n\t\ttitleAuthorFields.add(Pirex.inputField(authorLabel, authorTextField, null), cAuthorField);\n\n\t\tJPanel inputFields = new JPanel(new GridLayout(3, 0));\n\t\tinputFields.add(Pirex.inputField(fileLabel, fileTextField, fileBrowseButton));\n\t\tinputFields.add(Pirex.inputField(fileTypeLabel, fileTypeComboBox, null));\n\t\tinputFields.add(titleAuthorFields);\n\t\tinputFields = Pirex.borderLayoutWrap(null, null, inputFields, null, separator);\n\n\t\tJPanel leftAlignedProcessButton = Pirex.leftAlign(processButton);\n\t\tJPanel processPanel = Pirex.borderLayoutWrap(leftAlignedProcessButton, null, summaryScrollPanel, null, null);\n\t\tJPanel loadTabPanel = Pirex.borderLayoutWrap(inputFields, null, processPanel, null, null);\n\n\t\tthis.add(Pirex.withBorder(loadTabPanel), BorderLayout.CENTER);\n\n }", "public testLayout() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public Layout() {\n }", "private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }", "private void setViewLayout() {\n\t\tthis.setBorder(new EmptyBorder(15, 15, 15, 15));\n\t\tthis.setLayout(new GridLayout(2, 2, 15, 15));\n\t}", "@Override\n\t\tpublic void layout (final int l, final int t, final int r, final int b) {\n\t\t}", "private void generateLayout() {\n\t\tJPanel generatePanel = new JPanel();\n\t\tgeneratePanel.setLayout(new GridBagLayout());\n\t\tJButton generatePrimes = new JButton(\"Generate Primes\");\n\t\tgeneratePrimes.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgeneratePrimesPopup();\n\t\t\t}\n\t\t});\n\t\tJButton generateHex = new JButton(\"Generate Hex Cross\");\n\t\tgenerateHex.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprimes.clearCrosses();\n\t\t\t\tprimes.generateHexPrimes();\n\t\t\t\tupdateValues(\"Succesful Hex Cross Prime Numbers Generated\");\n\t\t\t}\n\t\t});\n\t\tGridBagConstraints gbc = new GridBagConstraints();\n\t\tgbc.fill = GridBagConstraints.CENTER;\n\t\tgbc.insets = new Insets(1,1,0,0);\n\t\tJPanel digitsPanel = new JPanel();\n\t\tdigitsPanel.setLayout(new GridLayout(2,1));\n\t\tLPrimedigits.setFont(new Font(\"Tahoma\", Font.BOLD,15));\n\t\tLHexDigits.setFont(new Font(\"Tahoma\", Font.BOLD,15));\n\t\tdigitsPanel.add(LPrimedigits);\n\t\tdigitsPanel.add(LHexDigits);\n\t\tgbc.gridx = 0;\n\t\tgbc.weightx = 0.1;\n\t\tgeneratePanel.add(generatePrimes,gbc);\n\t\tgbc.gridx = 1;\n\t\tgbc.weightx = 0.1;\n\t\tgeneratePanel.add(digitsPanel,gbc);\n\t\tgbc.weightx = 0.1;\n\t\tgbc.gridx = 2;\n\t\tgeneratePanel.add(generateHex,gbc);\n\t\tgeneratePanel.setBorder(BorderFactory.createLineBorder(new Color(150,0,0), 2));\n\t\tmainLayout.add(generatePanel);\n\t}", "GraphLayout createGraphLayout();", "@AutoGenerated\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"500px\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(false);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"500px\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// verticalLayout_1\n\t\tverticalLayout_1 = buildVerticalLayout_1();\n\t\tmainLayout.addComponent(verticalLayout_1);\n\t\t\n\t\t// verticalLayout_2\n\t\tverticalLayout_2 = buildVerticalLayout_2();\n\t\tmainLayout.addComponent(verticalLayout_2);\n\t\tmainLayout.setExpandRatio(verticalLayout_2, 1.0f);\n\t\t\n\t\treturn mainLayout;\n\t}", "@AutoGenerated\n\tprivate HorizontalLayout buildInfo_container() {\n\t\tinfo_container = new HorizontalLayout();\n\t\tinfo_container.setImmediate(false);\n\t\tinfo_container.setWidth(\"100.0%\");\n\t\tinfo_container.setHeight(\"-1px\");\n\t\tinfo_container.setMargin(false);\n\t\t\n\t\t// nativeButton_upVote\n\t\tnativeButton_upVote = new NativeButton();\n\t\tnativeButton_upVote.setCaption(\"Up Vote\");\n\t\tnativeButton_upVote.setImmediate(false);\n\t\tnativeButton_upVote.setWidth(\"-1px\");\n\t\tnativeButton_upVote.setHeight(\"-1px\");\n nativeButton_upVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_upVote);\n\t\t\n\t\t// nativeButton_downVote\n\t\tnativeButton_downVote = new NativeButton();\n\t\tnativeButton_downVote.setCaption(\"Down Vote\");\n\t\tnativeButton_downVote.setImmediate(false);\n\t\tnativeButton_downVote.setWidth(\"-1px\");\n\t\tnativeButton_downVote.setHeight(\"-1px\");\n nativeButton_downVote.setStyleName(\"vote-button\");\n\t\tinfo_container.addComponent(nativeButton_downVote);\n\n //nativeButton_accept\n nativeButton_accept = new NativeButton();\n nativeButton_accept.setCaption(\"Accept\");\n nativeButton_accept.setVisible(false);\n nativeButton_accept.setStyleName(\"accept-button\");\n info_container.addComponent(nativeButton_accept);\n\n //label_date\n label_date = new Label();\n label_date.setStyleName(\"date-label\");\n label_date.setWidth(\"-1px\");\n label_date.setHeight(\"-1px\");\n info_container.addComponent(label_date);\n info_container.setExpandRatio(label_date, 1.0f);\n info_container.setComponentAlignment(label_date, Alignment.MIDDLE_RIGHT);\n\t\t\n\t\t// label_user\n\t\tlabel_user = new Label();\n\t\tlabel_user.setImmediate(false);\n\t\tlabel_user.setWidth(\"-1px\");\n\t\tlabel_user.setHeight(\"-1px\");\n\t\tlabel_user.setValue(\"By \");\n label_user.setStyleName(\"user-label\");\n\t\tinfo_container.addComponent(label_user);\n//\t\tinfo_container.setExpandRatio(label_user, 1.0f);\n\t\tinfo_container.setComponentAlignment(label_user, new Alignment(34));\n\t\t\n\t\treturn info_container;\n\t}", "private void initMiddleBodyLayout() {\r\n midPanelLayoutCanv = new VerticalPanel();\r\n midPanelLayoutCanv.setWidth(middlePanelWidth + \"px\");\r\n midPanelLayoutCanv.setHeight((leftPanelHeight - 2) + \"px\");\r\n RootPanel.get(\"diva_mid_panel\").clear();\r\n RootPanel.get(\"diva_mid_panel\").add(midPanelLayoutCanv);\r\n //pca and profile plot layout\r\n topMidLayout = new HorizontalPanel();\r\n int newWidth = (middlePanelWidth / 2);\r\n int newHeight = newWidth + 22;\r\n topMidLayout.setHeight(newHeight + \"px\");\r\n topMidLayout.setWidth(middlePanelWidth + \"px\");\r\n topMidLayout.setStyleName(\"whitelayout\");\r\n\r\n //rank table layout\r\n rankLayoutCanv = new VLayout();\r\n rankLayoutCanv.setHeight((leftPanelHeight - (newHeight + 2)) + \"px\");\r\n rankLayoutCanv.setWidth(middlePanelWidth + \"px\");\r\n midPanelLayoutCanv.add(topMidLayout);\r\n midPanelLayoutCanv.add(rankLayoutCanv);\r\n }", "GeomLayout.IGeomLayoutCreateFromNode geomLayoutCreator();", "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}", "private AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\t// Setzt die Hintergrundfarbe auf Grün\n\t\tmainLayout.addStyleName(\"backgroundErfassung\");\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\n\t\treturn mainLayout;\n\t}", "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}", "private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }", "void initLayout() {\n\t\t/* Randomize the number of rows and columns */\n\t\tNUM = Helper.randomizeNumRowsCols();\n\n\t\t/* Remove all the children of the gridContainer. It will be added again */\n\t\tpiecesGrid.removeAllViews();\n\t\t\n\t\t/* Dynamically calculate the screen positions and sizes of the individual pieces\n\t * Store the starting (x,y) of all the pieces in pieceViewLocations */\n\t\tpieceViewLocations = InitDisplay.initialize(getScreenDimensions(), getRootLayoutPadding());\n\t\t\n\t\t/* Create an array of ImageViews to store the individual piece images */\n\t\tcreatePieceViews();\n\t\t\n\t\t/* Add listeners to the ImageViews that were created above */\n\t\taddImageViewListeners();\n\t}", "private Container layoutContainer(Container panel, XmlNode node,\n Vector xmlChildren) {\n panel.removeAll();\n String panelId = node.getAttribute(ATTR_ID);\n String layout = node.getAttribute(ATTR_LAYOUT, \"\");\n Vector children = new Vector();\n Vector nodes = new Vector();\n int hspace = node.getAttribute(ATTR_HSPACE, 0);\n int vspace = node.getAttribute(ATTR_VSPACE, 0);\n int rows = node.getAttribute(ATTR_ROWS, 0);\n int cols = node.getAttribute(ATTR_COLS, 1);\n String defaultComp = node.getAttribute(ATTR_DEFAULT, \"nocomp\");\n JTabbedPane tabs = null;\n\n if (layout.equals(VALUE_LAYOUTBORDER)) {\n panel.setLayout(new BorderLayout());\n } else if (layout.equals(VALUE_LAYOUTCARD)) {\n panel.setLayout(new CardLayout());\n } else if (layout.equals(VALUE_LAYOUTTAB)) {\n tabs = new JTabbedPane();\n panel.setLayout(new BorderLayout());\n panel.add(\"Center\", tabs);\n } else if (layout.equals(VALUE_LAYOUTFLOW)) {\n panel.setLayout(new FlowLayout(FlowLayout.LEFT, hspace, vspace));\n } else if (layout.equals(VALUE_LAYOUTGRID)) {\n panel.setLayout(new GridLayout(rows, cols, hspace, vspace));\n }\n for (int i = 0; i < xmlChildren.size(); i++) {\n XmlNode childXmlNode =\n getReffedNode((XmlNode) xmlChildren.elementAt(i));\n Component childComponent = xmlToUi(childXmlNode);\n if (childComponent == null) {\n continue;\n }\n componentToParent.put(childComponent, panel);\n children.addElement(childComponent);\n nodes.addElement(childXmlNode);\n if ( !childComponent.isVisible()) {\n continue;\n }\n if (layout.equals(VALUE_LAYOUTBORDER)) {\n String place = childXmlNode.getAttribute(ATTR_PLACE,\n \"Center\");\n panel.add(place, childComponent);\n } else if (layout.equals(VALUE_LAYOUTTAB)) {\n tabs.add(childXmlNode.getAttribute(ATTR_LABEL),\n childComponent);\n } else if (layout.equals(VALUE_LAYOUTCARD)) {\n String childId = childXmlNode.getAttribute(ATTR_ID);\n panel.add(childId, childComponent);\n if (defaultComp.equals(childId)) {\n ((CardLayout) panel.getLayout()).show(panel, childId);\n }\n } else if (layout.equals(VALUE_LAYOUTINSET)) {\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace,\n hspace);\n GuiUtils.doLayout(panel, new Component[] { childComponent },\n 1, GuiUtils.DS_Y, GuiUtils.DS_Y);\n\n break;\n } else if (layout.equals(VALUE_LAYOUTWRAP)) {\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace,\n hspace);\n GuiUtils.doLayout(panel, new Component[] { childComponent },\n 1, GuiUtils.DS_N, GuiUtils.DS_N);\n\n break;\n } else if ( !layout.equals(VALUE_LAYOUTGRIDBAG)) {\n panel.add(childComponent);\n }\n }\n if (layout.equals(VALUE_LAYOUTGRIDBAG)) {\n double[] cw =\n GuiUtils.parseDoubles(node.getAttribute(ATTR_COLWIDTHS));\n double[] rh =\n GuiUtils.parseDoubles(node.getAttribute(ATTR_ROWHEIGHTS));\n if (cw == null) {\n cw = GuiUtils.DS_Y;\n }\n if (rh == null) {\n rh = GuiUtils.DS_N;\n }\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace, hspace);\n GuiUtils.doLayout(panel, GuiUtils.getCompArray(children),\n node.getAttribute(ATTR_COLS, 1), cw, rh);\n }\n\n containerToNodeList.put(panel, nodes);\n\n return panel;\n }", "private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\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\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\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\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\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\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}", "public void layoutView()\n\t{\n\t\tthis.setLayout(new GridLayout(2,5));\n\t\tthis.add(expression);\n\t\tthis.add(var);\n\t\tthis.add(start);\n\t\tthis.add(end);\n\t\tthis.add(this.plot);\n\t\tthis.add(InputView.coords);\n\t\tthis.add(this.in);\n\t\tthis.add(this.out);\n\t}", "@Override\r\n\tpublic void layoutContainer(Container arg0) {\n\t\t\r\n\t}", "public void makeLayout() {\n\t\tgl_layout.setHorizontalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(150)\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 400, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 98, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t)\n\t\t);\n\t\tgl_layout.setVerticalGroup(\n\t\t\tgl_layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\t\t\t\t\t\t\n\t\t\t\t\t.addComponent(favSearchTextField, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(button, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t\t\t.addGroup(gl_layout.createSequentialGroup()\n\t\t\t\t\t.addGap(10)\n\t\t\t\t\t.addComponent(refresh, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addGap(10)\n\t\t\t\t)\n\t\t);\n\t\tthis.setLayout(gl_layout);\t\t\n\t}", "private void layoutComponents() {\n setLayout(new MigLayout(\"fill, wrap 1, hidemode 3, \"\n + (padding ? \"ins rel\" : \"ins 0\")));\n\n add(infoLabel, \"growx\");\n add(scrollPane, \"grow, pushy\");\n add(addOptionPanel, \"growx\");\n }", "@AutoGenerated\r\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"800px\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100.0%\");\r\n\t\tsetHeight(\"800px\");\r\n\t\t\r\n\t\t// verticalLayout_5\r\n\t\tverticalLayout_5 = buildVerticalLayout_5();\r\n\t\tmainLayout.addComponent(verticalLayout_5);\r\n\t\tmainLayout.setComponentAlignment(verticalLayout_5, new Alignment(48));\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "private void setUpLayout() {\n myLinearLayout=(LinearLayout)rootView.findViewById(R.id.container_wartaMingguan);\n\n // Add LayoutParams\n params = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n params.setMargins(0, 10, 0, 0);\n\n // Param untuk deskripsi\n paramsDeskripsi = new LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT, LinearLayout.LayoutParams.WRAP_CONTENT);\n myLinearLayout.setOrientation(LinearLayout.VERTICAL);\n paramsDeskripsi.setMargins(0, 0, 0, 0);\n\n tableParams = new TableLayout.LayoutParams(TableLayout.LayoutParams.MATCH_PARENT, TableLayout.LayoutParams.WRAP_CONTENT);\n rowTableParams = new TableLayout.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, TableRow.LayoutParams.WRAP_CONTENT);\n\n // Untuk tag \"warta\"\n LinearLayout rowLayout = new LinearLayout(getActivity());\n rowLayout.setOrientation(LinearLayout.HORIZONTAL);\n\n // Membuat linear layout vertical untuk menampung kata-kata\n LinearLayout colLayout = new LinearLayout(getActivity());\n colLayout.setOrientation(LinearLayout.VERTICAL);\n colLayout.setPadding(0, 5, 0, 0);\n }", "private void initBaseLayout()\n {\n add(viewPaneWrapper, BorderLayout.CENTER);\n \n currentLayoutView = VIEW_PANE;\n currentSearchView = SEARCH_PANE_VIEW;\n showMainView(VIEW_PANE);\n showSearchView(currentSearchView);\n }", "private JPanel createContentPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new MigLayout());\n panel.setPreferredSize(new Dimension(400, 300));\n panel.setOpaque(true);\n panel.setBorder(BorderFactory.createTitledBorder(\n localization.get(\"AttributesTitle\")));\n\n roomNameField = LabeledComponent\n .textField(localization.get(\"RoomNameLabel\"),\n new InfoPanelDocListener(this, new SetName()));\n roomNameField.addToPanel(panel);\n\n includeField = LabeledComponent\n .textField(localization.get(\"IncludeLabel\"),\n new InfoPanelDocListener(this, new SetInclude()));\n includeField.addToPanel(panel);\n\n inheritField = LabeledComponent\n .textField(localization.get(\"InheritLabel\"),\n new InfoPanelDocListener(this, new SetInherit()));\n inheritField.addToPanel(panel);\n\n buildStreetNameField(panel);\n\n buildAddEditStreetsButton(panel);\n\n buildColorSelector(panel);\n\n shortDescriptionField = LabeledComponent\n .textField(localization.get(\"ShortDescLabel\"),\n new InfoPanelDocListener(this, new SetShort()));\n panel.add(shortDescriptionField.getLabel());\n panel.add(shortDescriptionField.getComponent(), \"span, grow, wrap\");\n\n determinateField = LabeledComponent\n .textField(localization.get(\"DeterminateLabel\"),\n new InfoPanelDocListener(this, new SetDeterminate()));\n determinateField.addToPanel(panel);\n\n lightField = LabeledComponent\n .textField(localization.get(\"LightLabel\"),\n new InfoPanelDocListener(this, new SetLight()));\n lightField.addToPanel(panel);\n\n longDescriptionField = LabeledComponent\n .textArea(localization.get(\"LongDescLabel\"),\n new InfoPanelDocListener(this, new SetLong()));\n panel.add(longDescriptionField.getLabel(), \"wrap\");\n panel.add(longDescriptionField.getComponent(), \"span, grow\");\n\n return panel;\n }", "private void initBaseLayout() {\n if (topText != null) {\n TextView topicText = new TextView(mainContext);\n topicText.setText(topText);\n dimensionsContainer.setViewStyle(KEY_TOPIC_TEXT, topicText);\n topicText.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_topic));\n topicText.setClickable(true);\n topicText.setOnClickListener(generalClickListener);\n blankLayout.addView(topicText);\n }\n//Add topLayout\n //if (topLayout == null) {\n topLayout = new LinearLayout(mainContext);\n topLayout.setOrientation(LinearLayout.HORIZONTAL);\n topLayout.setLayoutParams(layoutParams_WC_WC);\n topLayout.setBackgroundColor(bgColor_Table);\n blankLayout.addView(topLayout);\n//Add numTop\n TextView numTop = new TextView(mainContext);\n numTop.setText(R.string.symbol_num);\n dimensionsContainer.setViewStyle(KEY_NUM_TOP, numTop);\n numTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_num_top));\n numTop.setClickable(true);\n numTop.setOnClickListener(generalClickListener);\n topLayout.addView(numTop);\n//Add nameTop\n TextView nameTop = new TextView(mainContext);\n nameTop.setText(nameTopTextResId);\n dimensionsContainer.setViewStyle(KEY_NAME_TOP, nameTop);\n nameTop.setTag(new BlankTagHandler(BlankTagHandler.CeilType.NONE, R.id.blank_name_top));\n nameTop.setClickable(true);\n nameTop.setOnClickListener(generalClickListener);\n topLayout.addView(nameTop);\n\n\n\n\n\n\n//Add topHScrollView\n// if (layoutHandler.topHScrollView == null) {\n topHScrollView = new SyncedHorizontalScrollView(mainContext);\n topHScrollView.setLayoutParams(layoutParams_WC_MP);\n topHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor() !=\n null) //OverScrollColor\n {\n topHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_TOP).getBgColor());\n }\n topLayout.addView(topHScrollView);\n\n//Add topScrollLayout\n // if(layoutHandler.topScrollLayout == null) {\n topScrollLayout = new LinearLayout(mainContext);\n topScrollLayout.setBackgroundColor(bgColor_Table);\n topHScrollView.addView(topScrollLayout);\n\n//Add bodyScrollView\n //if(layoutHandler.bodyScrollView == null) {\n bodyScrollView = new ScrollView(mainContext);\n bodyScrollView.setLayoutParams(layoutParams_MP_WC);\n bodyScrollView.setVerticalScrollBarEnabled(false);\n //bodyScrollView.setOverScrollMode(View.OVER_SCROLL_NEVER);\n blankLayout.addView(bodyScrollView);\n//Add bodyLayout\n //if(layoutHandler.bodyLayout == null) {\n bodyLayout = new LinearLayout(mainContext);\n bodyLayout.setOrientation(LinearLayout.HORIZONTAL);\n bodyLayout.setLayoutParams(layoutParams_WC_WC);\n bodyScrollView.addView(bodyLayout);\n\n//Add bodyLeftLayout\n //if(layoutHandler.bodyLeftLayout == null) {\n bodyLeftLayout = new LinearLayout(mainContext);\n bodyLeftLayout.setOrientation(LinearLayout.VERTICAL);\n bodyLeftLayout.setLayoutParams(layoutParams_WC_WC);\n bodyLeftLayout.setBackgroundColor(bgColor_Table);\n bodyLayout.addView(bodyLeftLayout);\n\n//Add bodyHScrollView\n //if(layoutHandler.bodyHScrollView == null) {\n bodyHScrollView = new SyncedHorizontalScrollView(mainContext);\n bodyHScrollView.setLayoutParams(layoutParams_WC_WC);\n bodyHScrollView.setHorizontalScrollBarEnabled(false);\n if (dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor() !=\n null)//OverScrollColor\n {\n bodyHScrollView.setBackgroundColor(\n dimensionsContainer.findDimensions(KEY_NAME_LEFT).getBgColor());\n }\n bodyLayout.addView(bodyHScrollView);\n\n//Add bodyRightLayout\n //if(layoutHandler.bodyRightLayout == null) {\n bodyRightLayout = new LinearLayout(mainContext);\n bodyRightLayout.setOrientation(LinearLayout.VERTICAL);\n bodyRightLayout.setBackgroundColor(bgColor_Table);\n bodyHScrollView.addView(bodyRightLayout);\n\n//Add Scroll Listeners\n\n ScrollManager scrollManager = new ScrollManager();\n scrollManager.setScrollDirection(ScrollManager.SCROLL_HORIZONTAL);\n scrollManager.addScrollClient(topHScrollView);\n scrollManager.addScrollClient(bodyHScrollView);\n\n// bodyScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// bodyHScrollView.getParent().requestDisallowInterceptTouchEvent(false);\n// return false;\n// }\n// });\n// bodyHScrollView.setOnTouchListener(new View.OnTouchListener() {\n// @Override\n// public boolean onTouch(View v, MotionEvent event) {\n// v.getParent().requestDisallowInterceptTouchEvent(true);\n// return false;\n// }\n// });\n\n //ScrollManager.disallowParentScroll(bodyHScrollView, 100);\n //ScrollManager.disallowChildScroll(bodyHScrollView, bodyLayout, 100);\n //bodyHScrollView.getWidth());\n //Dimensions.dipToPixels(mainContext, 800));\n// ScrollManager\n// .disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 200));\n //TODO: disallowParentScroll(bodyHScrollView, Dimensions.dipToPixels(mainContext, 50));\n\n }", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(false);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// lblTitle\n\t\tlblTitle = new Label();\n\t\tlblTitle.setImmediate(false);\n\t\tlblTitle.setWidth(\"-1px\");\n\t\tlblTitle.setHeight(\"-1px\");\n\t\tlblTitle.setValue(\"Song\");\n\t\tmainLayout.addComponent(lblTitle);\n\t\tmainLayout.setComponentAlignment(lblTitle, new Alignment(20));\n\t\t\n\t\t// formLayout\n\t\tformLayout = buildFormLayout();\n\t\tmainLayout.addComponent(formLayout);\n\t\tmainLayout.setComponentAlignment(formLayout, new Alignment(20));\n\t\t\n\t\t// layoutButtons\n\t\tlayoutButtons = buildLayoutButtons();\n\t\tmainLayout.addComponent(layoutButtons);\n\t\tmainLayout.setComponentAlignment(layoutButtons, new Alignment(20));\n\t\t\n\t\treturn mainLayout;\n\t}", "@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\tmainLayout.setMargin(false);\n\n\t\t// top-level component properties\n\t\tsetWidth(\"60.0%\");\n\t\tsetHeight(\"60.0%\");\n\n\t\t// lblHeading\n\t\tlblHeading = new Label();\n\t\tlblHeading.setImmediate(false);\n\t\tlblHeading.setWidth(\"-1px\");\n\t\tlblHeading.setHeight(\"-1px\");\n\t\tlblHeading.setValue(\"This is class 4\");\n\t\tmainLayout.addComponent(lblHeading);\n\n\t\t// button_1\n\t\tbutton_1 = new Button();\n\t\tbutton_1.setCaption(\"Button\");\n\t\tbutton_1.setImmediate(false);\n\t\tbutton_1.setWidth(\"-1px\");\n\t\tbutton_1.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(button_1);\n\n\t\treturn mainLayout;\n\t}", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"540px\");\n\t\tmainLayout.setHeight(\"400px\");\n\t\tmainLayout.setMargin(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"540px\");\n\t\tsetHeight(\"400px\");\n\t\t\n\t\t// commentField\n\t\tcommentField = new TextField();\n\t\tcommentField.setCaption(\"Comentarios\");\n\t\tcommentField.setImmediate(false);\n\t\tcommentField.setWidth(\"400px\");\n\t\tcommentField.setHeight(\"140px\");\n\t\tmainLayout.addComponent(commentField, \"top:100.0px;left:20.0px;\");\n\t\t\n\t\t// discountField\n\t\tdiscountField = new TextField();\n\t\tdiscountField.setCaption(\"Descuento\");\n\t\tdiscountField.setImmediate(false);\n\t\tdiscountField.setWidth(\"80px\");\n\t\tdiscountField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(discountField, \"top:140.0px;left:440.0px;\");\n\t\t\n\t\t// invoiceField\n\t\tinvoiceField = new ComboBox();\n\t\tinvoiceField.setCaption(\"Código Factura\");\n\t\tinvoiceField.setImmediate(false);\n\t\tinvoiceField.setWidth(\"200px\");\n\t\tinvoiceField.setHeight(\"-1px\");\n\t\tinvoiceField.setRequired(true);\n\t\tmainLayout.addComponent(invoiceField, \"top:20.0px;left:200.0px;\");\n\t\t\t\t\n\t\t// invoiceLineDateField\n\t\tinvoiceLineDateField = new DateField();\n\t\tinvoiceLineDateField.setCaption(\"Fecha\");\n\t\tinvoiceLineDateField.setImmediate(false);\n\t\tinvoiceLineDateField.setWidth(\"100px\");\n\t\tinvoiceLineDateField.setHeight(\"-1px\");\n\t\tinvoiceLineDateField.setInvalidAllowed(false);\n\t\tinvoiceLineDateField.setRequired(true);\n\t\tinvoiceLineDateField.setResolution(4);\n\t\tmainLayout.addComponent(invoiceLineDateField,\n\t\t\t\t\"top:20.0px;left:420.0px;\");\n\t\t\n\t\t// invoiceLineStatusField\n\t\tinvoiceLineStatusField = new ComboBox();\n\t\tinvoiceLineStatusField.setCaption(\"Estado\");\n\t\tinvoiceLineStatusField.setImmediate(false);\n\t\tinvoiceLineStatusField.setWidth(\"240px\");\n\t\tinvoiceLineStatusField.setHeight(\"-1px\");\n\t\tinvoiceLineStatusField.setRequired(true);\n\t\tmainLayout.addComponent(invoiceLineStatusField, \"top:58.0px;left:281.0px;\");\n\t\t\t\t\n\t\t// ivaField\n\t\tivaField = new ComboBox();\n\t\tivaField.setCaption(\"Iva\");\n\t\tivaField.setImmediate(false);\n\t\tivaField.setWidth(\"80px\");\n\t\tivaField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(ivaField, \"top:176.0px;left:440.0px;\");\n\t\t\n\t\t// numberField\n\t\tnumberField = new TextField();\n\t\tnumberField.setCaption(\"Número\");\n\t\tnumberField.setImmediate(false);\n\t\tnumberField.setWidth(\"80px\");\n\t\tnumberField.setHeight(\"-1px\");\n\t\tnumberField.setRequired(true);\n\t\tmainLayout.addComponent(numberField, \"top:20.0px;left:20.0px;\");\n\t\t\n\t\t// priceField\n\t\tpriceField = new TextField();\n\t\tpriceField.setCaption(\"Precio\");\n\t\tpriceField.setImmediate(false);\n\t\tpriceField.setWidth(\"80px\");\n\t\tpriceField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(priceField, \"top:100.0px;left:440.0px;\");\n\t\t\n\t\t// priceFinalField\n\t\tpriceFinalField = new TextField();\n\t\tpriceFinalField.setCaption(\"Precio Final\");\n\t\tpriceFinalField.setImmediate(false);\n\t\tpriceFinalField.setWidth(\"80px\");\n\t\tpriceFinalField.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(priceFinalField, \"top:216.0px;left:440.0px;\");\n\t\t\n\t\t// servicesField\n\t\tservicesField = new ServiceCollectionField();\n\t\tservicesField.setImmediate(false);\n\t\tservicesField.setWidth(\"500px\");\n\t\tservicesField.setHeight(\"122px\");\n\t\tmainLayout.addComponent(servicesField, \"top:260.0px;left:20.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "private void $$$setupUI$$$() {\n topPanel = new JPanel();\n topPanel.setLayout(new GridLayoutManager(4, 1, new Insets(0, 0, 0, 0), -1, -1));\n headerLabel = new JLabel();\n headerLabel.setText(\"Header\");\n topPanel.add(headerLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n contentPanel = new JPanel();\n contentPanel.setLayout(new BorderLayout(0, 0));\n topPanel.add(contentPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel1, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n panel1.add(spacer1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n buttonBack = new JButton();\n buttonBack.setText(\"Back\");\n panel1.add(buttonBack, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonNext = new JButton();\n buttonNext.setText(\"Next\");\n panel1.add(buttonNext, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonCancel = new JButton();\n buttonCancel.setText(\"Cancel\");\n panel1.add(buttonCancel, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n topPanel.add(panel2, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n statusLabel = new JLabel();\n statusLabel.setText(\"Status\");\n panel2.add(statusLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }", "private void doLayout()\n \t{\n \t\tModel model = doc.getModel();\n \t\tExtendedLayoutModel sbase = (ExtendedLayoutModel)model.getExtension(LayoutConstants.namespaceURI);\n \t\tif (sbase != null)\n \t\t{\n \t\t\tfor (Layout l : sbase.getListOfLayouts())\n \t\t\t{\n \t\t\t\t// TODO: list of compartment glyphs, text glyphs, etc...\n \t\t\t\tfor (SpeciesGlyph g : l.getListOfSpeciesGlyphs())\n \t\t\t\t{\n \t\t\t\t\tString sid = g.getSpecies();\n \t\t\t\t\tPeerSpecies sbr = getSpeciesPeer(sid);\n \t\t\t\t\tif (sbr != null) {\n \t\t\t\t\t\tsbr.setSpeciesGlyph(g);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}", "private void setupLayout()\n\t{\n\t\tbaseLayout.putConstraint(SpringLayout.WEST,firstButton,107,SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstButton, -32, SpringLayout.SOUTH, this);\n\t\tbaseLayout.putConstraint(SpringLayout.WEST, firstField, 37, SpringLayout.WEST, this);\n\t\tbaseLayout.putConstraint(SpringLayout.SOUTH, firstField, -24, SpringLayout.SOUTH, this);\n\t}", "private void setLayout() {\n\tHorizontalLayout main = new HorizontalLayout();\n\tmain.setMargin(true);\n\tmain.setSpacing(true);\n\n\t// vertically divide the right area\n\tVerticalLayout left = new VerticalLayout();\n\tleft.setSpacing(true);\n\tmain.addComponent(left);\n\n\tleft.addComponent(openProdManager);\n\topenProdManager.addListener(new Button.ClickListener() {\n\t public void buttonClick(ClickEvent event) {\n\t\tCustomerWindow productManagerWin = new CustomerWindow(CollectorManagerApplication.this);\n\t\tproductManagerWin.addListener(new Window.CloseListener() {\n\t\t public void windowClose(CloseEvent e) {\n\t\t\topenProdManager.setEnabled(true);\n\t\t }\n\t\t});\n\n\t\tCollectorManagerApplication.this.getMainWindow().addWindow(productManagerWin);\n\t\topenProdManager.setEnabled(false);\n\t }\n\t});\n\n\t\n\tsetMainWindow(new Window(\"Sistema de Cobranzas\", main));\n\n }", "@Override\n\tpublic String getLayout() {\n\t\treturn \"main\";\n\t}", "private void geometry()\n\t\t{\n\t\t\t// JComponent : Instanciation\n\t\tthis.jPanelAction = new JPanelAction();\n\t\tthis.jPanelCommande = new JPanelCommande(jPanelAction);\n\n\t\t\t// Layout : Specification\n\t\t\t{\n\t\t\tBorderLayout borderLayout = new BorderLayout();\n\t\t\tsetLayout(borderLayout);\n\n\t\t\t// flowlayout.setHgap(20);\n\t\t\t// flowlayout.setVgap(20);\n\t\t\t}\n\n\t\t// JComponent : add\n\t\tthis.add(this.jPanelAction, BorderLayout.CENTER);\n\t\tthis.add(this.jPanelCommande, BorderLayout.SOUTH);\n\t\t}", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(1, 3, new Insets(0, 0, 0, 0), -1, -1));\n materialFirstWordLabel = new JLabel();\n materialFirstWordLabel.setText(\"нет данных\");\n contentPane.add(materialFirstWordLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(10, -1), null, 0, false));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n materialMarkLabel = new JLabel();\n materialMarkLabel.setText(\" \");\n materialMarkLabel.setVerticalTextPosition(1);\n panel1.add(materialMarkLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialProfileLabel = new JLabel();\n materialProfileLabel.setText(\" \");\n materialProfileLabel.setVerticalTextPosition(3);\n panel1.add(materialProfileLabel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n materialSeparator = new JSeparator();\n panel1.add(materialSeparator, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n contentPane.add(spacer1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n }", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "public GroupLayout miseEnPage(){\n\t\tGroupLayout gl_contentPanel = new GroupLayout(contentPanel);\n\t\tgl_contentPanel.setHorizontalGroup(\n\t\t\t\tgl_contentPanel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap(13, Short.MAX_VALUE)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblPort)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(textField_Port, GroupLayout.PREFERRED_SIZE, 53, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(lblNombreDeJoueurs)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(textField_nbJoueur, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t\t\t\t\t.addComponent(chckbxPartieLocale))\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblNomPartie)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField_NomPartie))\n\t\t\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(lblMotDePasse)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField_Mdp, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addComponent(createButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(cancelButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addContainerGap())\n\t\t\t\t);\n\t\tgl_contentPanel.setVerticalGroup(\n\t\t\t\tgl_contentPanel.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_contentPanel.createSequentialGroup()\n\t\t\t\t\t\t.addGap(42)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblNomPartie)\n\t\t\t\t\t\t\t\t.addComponent(textField_NomPartie, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblMotDePasse)\n\t\t\t\t\t\t\t\t.addComponent(textField_Mdp, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblPort)\n\t\t\t\t\t\t\t\t.addComponent(textField_Port, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(lblNombreDeJoueurs)\n\t\t\t\t\t\t\t\t.addComponent(textField_nbJoueur, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(chckbxPartieLocale))\n\t\t\t\t\t\t.addGap(18)\n\t\t\t\t\t\t.addGroup(gl_contentPanel.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(cancelButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(createButton, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(100, Short.MAX_VALUE))\n\t\t\t\t);\n\t\treturn gl_contentPanel;\n\t}", "private void setLayout() {\n int orientation = getResources().getConfiguration().orientation;\n // if the orientation is Portrait\n if (orientation == Configuration.ORIENTATION_PORTRAIT) {\n if (!webViewFragment.isAdded()) {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 0f));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT, 3f));\n\n }\n }\n else { // if the orientation is Landscape\n if (!webViewFragment.isAdded()) {\n\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0, MATCH_PARENT));\n } else {\n // Make the LandmarkLayout take 1/3 of the layout's width\n mLandmarkLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 1f));\n // Make the WebPageLayout take 2/3's of the layout's width\n mWebPageLayout.setLayoutParams(new LinearLayout.LayoutParams(0,\n MATCH_PARENT, 2f));\n }\n }\n }", "@AutoGenerated\n\tprivate AbsoluteLayout buildMainLayout() {\n\t\tmainLayout = new AbsoluteLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"100.0%\");\n\t\tsetHeight(\"100.0%\");\n\t\t\n\t\t// tablaGestionEvaluaciones\n\t\ttablaGestionEvaluaciones = new Table();\n\t\ttablaGestionEvaluaciones.setImmediate(false);\n\t\ttablaGestionEvaluaciones.setWidth(\"100.0%\");\n\t\ttablaGestionEvaluaciones.setHeight(\"100.0%\");\n\t\tmainLayout.addComponent(tablaGestionEvaluaciones,\n\t\t\t\t\"top:57.0px;right:20.0px;bottom:20.0px;left:20.0px;\");\n\t\t\n\t\t// botonCrearEvaluacion\n\t\tbotonCrearEvaluacion = new Button();\n\t\tbotonCrearEvaluacion.setCaption(\"Crear Evaluación\");\n\t\tbotonCrearEvaluacion.setImmediate(true);\n\t\tbotonCrearEvaluacion.setWidth(\"-1px\");\n\t\tbotonCrearEvaluacion.setHeight(\"-1px\");\n\t\tmainLayout\n\t\t\t\t.addComponent(botonCrearEvaluacion, \"top:14.0px;left:20.0px;\");\n\t\t\n\t\t// buttonEditarEvaluacion\n\t\tbuttonEditarEvaluacion = new Button();\n\t\tbuttonEditarEvaluacion.setCaption(\"Editar Evaluación\");\n\t\tbuttonEditarEvaluacion.setImmediate(false);\n\t\tbuttonEditarEvaluacion.setWidth(\"-1px\");\n\t\tbuttonEditarEvaluacion.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(buttonEditarEvaluacion,\n\t\t\t\t\"top:14.0px;left:160.0px;\");\n\t\t\n\t\treturn mainLayout;\n\t}", "public Layout() {\n\n //nao precisa colocar externo, apenas referencia com a linha 0\n for (int i = 0; i < 4; i++) {\n matrix[0][i] = Estados.EXTERNO;\n }\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = Estados.ROOM;\n }\n\n matrix[2][1] = Estados.ROOM_EMPTY;\n matrix[2][2] = Estados.ROOM_EMPTY2;\n\n matrix[2][0] = Estados.ACESSO_EXTERNO;\n matrix[2][3] = Estados.ACESSO_INTERNO;\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = Estados.ROOM;\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[4][i] = Estados.EXTERNO2;\n }\n\n }", "void buildLayout(){\n\t\tsetText(\"Score: \" + GameModel.instance().getPoints());\n\t\tsetX(10);\n\t\tsetY(10);\n\t\tsetFont(Font.font(\"verdana\", FontWeight.BOLD, FontPosture.REGULAR, 20));\n\t\t\n\t}", "private void layoutGame() {\n\t\tthis.doLayoutGame();\r\n\t\tthis.doLayoutGame();\r\n\t}", "private VerticalLayout buildGridInfo() {\n\t\tgridInfo = new VerticalLayout();\r\n\t\tgridInfo.setImmediate(false);\r\n\t\tgridInfo.setWidth(\"100%\");\r\n\t\tgridInfo.setHeight(\"100.0%\");\r\n\t\tgridInfo.setMargin(false);\r\n\t\tgridInfo.setSpacing(true);\r\n\t\t\r\n\t\t// gridTitle\r\n\t\tgridTitle = buildGridTitle();\r\n\t\tgridInfo.addComponent(gridTitle);\r\n\t\tgridInfo.setExpandRatio(gridTitle, 1.0f);\r\n\t\t\r\n\t\t// gridData\r\n\t\tgridData = buildGridData();\r\n\t\tgridInfo.addComponent(gridData);\r\n\t\tgridInfo.setExpandRatio(gridData, 1.0f);\r\n\t\t\r\n\t\treturn gridInfo;\r\n\t}", "private void setupLayout() {\r\n\t\tgetContentPane().add(panel);\r\n\t}", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagButton = new JButton();\n Font memberImportTagButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagButton.getFont());\n if (memberImportTagButtonFont != null) memberImportTagButton.setFont(memberImportTagButtonFont);\n memberImportTagButton.setText(\"导入选择的标签分组-取并集\");\n panel2.add(memberImportTagButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagRetainButton = new JButton();\n Font memberImportTagRetainButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagRetainButton.getFont());\n if (memberImportTagRetainButtonFont != null)\n memberImportTagRetainButton.setFont(memberImportTagRetainButtonFont);\n memberImportTagRetainButton.setText(\"导入选择的标签分组-取交集\");\n panel2.add(memberImportTagRetainButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportAllButton = new JButton();\n Font memberImportAllButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportAllButton.getFont());\n if (memberImportAllButtonFont != null) memberImportAllButton.setFont(memberImportAllButtonFont);\n memberImportAllButton.setText(\"导入所有关注公众号的用户\");\n panel2.add(memberImportAllButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionPanel = new JPanel();\n importOptionPanel.setLayout(new GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(importOptionPanel, new GridConstraints(1, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionOpenIdCheckBox = new JCheckBox();\n importOptionOpenIdCheckBox.setEnabled(false);\n importOptionOpenIdCheckBox.setSelected(true);\n importOptionOpenIdCheckBox.setText(\"openId\");\n importOptionPanel.add(importOptionOpenIdCheckBox, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n importOptionPanel.add(spacer1, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n importOptionBasicInfoCheckBox = new JCheckBox();\n importOptionBasicInfoCheckBox.setText(\"昵称、性别等基本信息\");\n importOptionBasicInfoCheckBox.setToolTipText(\"每获取一条信息会花费一次每日接口调用量\");\n importOptionPanel.add(importOptionBasicInfoCheckBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n importOptionAvatarCheckBox = new JCheckBox();\n importOptionAvatarCheckBox.setText(\"头像\");\n importOptionAvatarCheckBox.setToolTipText(\"勾选会导致左侧列表甚至WePush变卡哦\");\n importOptionPanel.add(importOptionAvatarCheckBox, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearDbCacheButton = new JButton();\n clearDbCacheButton.setText(\"清空本地缓存\");\n importOptionPanel.add(clearDbCacheButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagComboBox = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n memberImportTagComboBox.setModel(defaultComboBoxModel1);\n panel3.add(memberImportTagComboBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagFreshButton = new JButton();\n Font memberImportTagFreshButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagFreshButton.getFont());\n if (memberImportTagFreshButtonFont != null) memberImportTagFreshButton.setFont(memberImportTagFreshButtonFont);\n memberImportTagFreshButton.setText(\"刷新\");\n panel3.add(memberImportTagFreshButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, 1, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"标签分组\");\n panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "abstract void snapshotLayout();", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}", "public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "@LayoutRes\n protected abstract int getLayoutId();", "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}", "private void buildview() {\n\t\tCssLayout cd= new CssLayout();\n\t\t\n\t\t//table.setSizeFull();\n\t\t\t\n\t\t\ttable.setContainerDataSource(container);\n\t\t\ttable.setVisibleColumns(new Object[]{\"Name\",\"Component\",\"Indication\",\"Comment\",\"MethodofAdministration\"});\n\t\t\ttable.setColumnHeader(\"MethodofAdministration\", \"Method of Administration\");\n\t\t\t\n\t\t\ttable.setWidth(\"100%\");\n\t\t\tcd.addComponent(table);\n\t\t\tcd.setSizeFull();\n\t\t\tsetContent(cd);\n\t\t\n\t}", "@AutoGenerated\r\n\tprivate GridLayout buildMainLayout() {\n\t\tmainLayout = new GridLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\tmainLayout.setRows(2);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"-1px\");\r\n\t\t\r\n\t\t// verticalLayout_1\r\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\r\n\t\tmainLayout.addComponent(horizontalLayout_1, 0, 0);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "@SuppressWarnings(\"UnnecessaryBoxing\")\r\n private void initLayoutDimensions() {\r\n leftPanelWidth = Page.getScreenWidth() * 20 / 100;\r\n leftPanelHeight = Page.getScreenHeight() - 225;\r\n middlePanelWidth = Page.getScreenWidth() / 2;\r\n if (Double.valueOf(middlePanelWidth) % 2.0 > 0.0) {\r\n middlePanelWidth = middlePanelWidth - 1;\r\n }\r\n rightPanelWidth = Page.getScreenWidth() - (leftPanelWidth + 2 + middlePanelWidth + 2);\r\n }", "private void createMainMenuMiddleComposite() {\n\t\tString imgSlipUI = null;\n\t\tString imgJackpotBtn = null;\n\t\tString imgVoucherBtn = null;\n\t\tif(Util.isSmallerResolution()) {\n\t\t\timgSlipUI = ImageConstants.S_SLIPS_UI_BUTTON_IMG;\n\t\t\timgJackpotBtn = ImageConstants.S_JACKPOT_UI_BUTTON_IMG;\n\t\t\timgVoucherBtn = ImageConstants.S_VOUCHER_UI_BUTTON_IMG;\n\t\t}\n\t\telse {\n\t\t\timgSlipUI = ImageConstants.SLIPS_UI_BUTTON_IMG;\n\t\t\timgJackpotBtn = ImageConstants.JACKPOT_UI_BUTTON_IMG;\n\t\t\timgVoucherBtn = ImageConstants.VOUCHER_UI_BUTTON_IMG;\n\t\t}\n\t\t\n\t\tGridData gridData11 = new GridData();\n\t\tgridData11.horizontalAlignment = GridData.CENTER;\n\t\tgridData11.grabExcessHorizontalSpace = true;\n\t\tgridData11.grabExcessVerticalSpace = true;\n\t\tgridData11.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData10 = new GridData();\n\t\tgridData10.horizontalAlignment = GridData.CENTER;\n\t\tgridData10.grabExcessHorizontalSpace = true;\n\t\tgridData10.grabExcessVerticalSpace = true;\n\t\tgridData10.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData9 = new GridData();\n\t\tgridData9.horizontalAlignment = GridData.CENTER;\n\t\tgridData9.verticalAlignment = GridData.BEGINNING;\n\t\tGridData gridData6 = new GridData();\n\t\tgridData6.heightHint = 100;\n\t\t// gridData6.heightHint = 70;\n\t\tgridData6.widthHint = 100;\n\t\t// gridData6.widthHint = 90;\n\t\tgridData6.grabExcessHorizontalSpace = true;\n\t\tgridData6.grabExcessVerticalSpace = true;\n\t\tgridData6.horizontalAlignment = GridData.CENTER;\n\t\tgridData6.verticalAlignment = GridData.END;\n\n\t\tGridLayout gridLayout3 = new GridLayout();\n\t\tgridLayout3.horizontalSpacing = 20;\n\t\tgridLayout3.numColumns = 3;\n\t\tGridData gridData5 = new GridData();\n\t\tgridData5.grabExcessHorizontalSpace = true;\n\t\tgridData5.verticalAlignment = GridData.FILL;\n\t\tgridData5.heightHint = 100;\n\t\tgridData5.grabExcessVerticalSpace = true;\n\t\tgridData5.horizontalAlignment = GridData.FILL;\n\t\tmainMenuMiddleComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuMiddleComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t171, 209, 255));\n\t\tmainMenuMiddleComposite.setLayout(gridLayout3);\n\t\tmainMenuMiddleComposite.setLayoutData(gridData5);\n\n\t\tGridData gridData3 = new GridData();\n\t\tgridData3.grabExcessVerticalSpace = true;\n\t\tgridData3.horizontalAlignment = GridData.CENTER;\n\t\tgridData3.verticalAlignment = GridData.END;\n\t\tgridData3.heightHint = 100;\n\t\tgridData3.widthHint = 100;\n\t\tgridData3.grabExcessHorizontalSpace = true;\n\n\t\tGridData gridData1 = new GridData();\n\t\tgridData1.grabExcessVerticalSpace = true;\n\t\tgridData1.horizontalAlignment = GridData.CENTER;\n\t\tgridData1.verticalAlignment = GridData.END;\n\t\tgridData1.heightHint = 100;\n\t\tgridData1.widthHint = 100;\n\t\tgridData1.grabExcessHorizontalSpace = true;\n\n\t\tbtnSlipUI = new CbctlButton(mainMenuMiddleComposite, SWT.FLAT, \"\",\n\t\t\t\tLabelKeyConstants.SLIPS_UI_BUTTON);\n\t\tbtnSlipUI\n\t\t\t\t.setFont(new Font(Display.getDefault(), \"Arial\", 12, SWT.BOLD));\n\t\t\n\t\tbtnSlipUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgSlipUI)));\n\t\tbtnSlipUI.setLayoutData(gridData1);\n\n\t\tbtnJackpotUI = new CbctlButton(mainMenuMiddleComposite, SWT.NONE, \"\",\n\t\t\t\tLabelKeyConstants.JACKPOT_UI_BUTTON);\n\t\tbtnJackpotUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tbtnJackpotUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgJackpotBtn)));\n\t\tbtnJackpotUI.setLayoutData(gridData3);\n\n\t\tbtnVoucherUI = new CbctlButton(mainMenuMiddleComposite, SWT.NONE, \"\",\n\t\t\t\tLabelLoader.getLabelValue(LabelKeyConstants.VOUCHER_UI_BUTTON));\n\t\tbtnVoucherUI.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgVoucherBtn)));\n\t\tbtnVoucherUI.setLayoutData(gridData6);\n\n\t\tlblSlipUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblSlipUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.SLIPS_UI_BUTTON));\n\t\tlblSlipUI.setBackground(new Color(Display.getCurrent(), 171, 209, 255));\n\t\tlblSlipUI\n\t\t\t\t.setFont(new Font(Display.getDefault(), \"Arial\", 12, SWT.BOLD));\n\t\tlblSlipUI.setLayoutData(gridData9);\n\n\t\tlblJackpotUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblJackpotUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.JACKPOT_UI_BUTTON));\n\t\tlblJackpotUI.setBackground(new Color(Display.getCurrent(), 171, 209,\n\t\t\t\t255));\n\t\tlblJackpotUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tlblJackpotUI.setLayoutData(gridData10);\n\n\t\tlblVoucherUI = new CbctlLabel(mainMenuMiddleComposite, SWT.NONE);\n\t\tlblVoucherUI.setText(LabelLoader\n\t\t\t\t.getLabelValue(LabelKeyConstants.VOUCHER_UI_BUTTON));\n\t\tlblVoucherUI.setBackground(new Color(Display.getCurrent(), 171, 209,\n\t\t\t\t255));\n\t\tlblVoucherUI.setFont(new Font(Display.getDefault(), \"Arial\", 12,\n\t\t\t\tSWT.BOLD));\n\t\tlblVoucherUI.setLayoutData(gridData11);\n\n\t}", "private void initLayouts() {\n mRelativeLayout1WA = findViewById(R.id.history_layout_one_week_ago);\n mRelativeLayout6DA = findViewById(R.id.history_layout_six_days_ago);\n mRelativeLayout5DA = findViewById(R.id.history_layout_five_days_ago);\n mRelativeLayout4DA = findViewById(R.id.history_layout_four_days_ago);\n mRelativeLayout3DA = findViewById(R.id.history_layout_three_days_ago);\n mRelativeLayout2DA = findViewById(R.id.history_layout_two_days_ago);\n mRelativeLayoutY = findViewById(R.id.history_layout_yesterday);\n\n layoutsList.add(mRelativeLayoutY);\n layoutsList.add(mRelativeLayout2DA);\n layoutsList.add(mRelativeLayout3DA);\n layoutsList.add(mRelativeLayout4DA);\n layoutsList.add(mRelativeLayout5DA);\n layoutsList.add(mRelativeLayout6DA);\n layoutsList.add(mRelativeLayout1WA);\n\n }", "private void setupAllSpecialLayoutViews(){\n allSpecialLayoutViews = new ArrayList<>();\n allSpecialLayoutViews.add(radianSpecialLayout);\n allSpecialLayoutViews.add(sineSpecialLayout);\n allSpecialLayoutViews.add(cosineSpecialLayout);\n allSpecialLayoutViews.add(tangentSpecialLayout);\n allSpecialLayoutViews.add(radianDivBar);\n allSpecialLayoutViews.add(radianTextDenominator);\n allSpecialLayoutViews.add(sineDivBar);\n allSpecialLayoutViews.add(sineTextDenominator);\n allSpecialLayoutViews.add(cosineDivBar);\n allSpecialLayoutViews.add(cosineTextDenominator);\n allSpecialLayoutViews.add(tangentDivBar);\n allSpecialLayoutViews.add(tangentTextDenominator);\n }", "private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "private void $$$setupUI$$$() {\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayoutManager(3, 3, new Insets(0, 0, 0, 0), -1, -1));\n toolBarPanel = new JPanel();\n toolBarPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(toolBarPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n containerPanel = new JPanel();\n containerPanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(containerPanel, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n errorPanel = new JPanel();\n errorPanel.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n mainPanel.add(errorPanel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n valuePanel = new JPanel();\n valuePanel.setLayout(new BorderLayout(0, 0));\n mainPanel.add(valuePanel, new GridConstraints(1, 1, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"view as\");\n mainPanel.add(label1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n comboBox1 = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"UTF-8String\");\n comboBox1.setModel(defaultComboBoxModel1);\n mainPanel.add(comboBox1, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void $$$setupUI$$$() {\r\n final JPanel panel1 = new JPanel();\r\n panel1.setLayout(new GridLayoutManager(1, 4, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel = new JPanel();\r\n mMainPanel.setLayout(new GridLayoutManager(15, 3, new Insets(0, 0, 0, 0), -1, -1));\r\n panel1.add(mMainPanel, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n label = new JLabel();\r\n Font labelFont = this.$$$getFont$$$(null, -1, 28, label.getFont());\r\n if (labelFont != null) label.setFont(labelFont);\r\n label.setText(\"CodeRecommender\");\r\n mMainPanel.add(label, new GridConstraints(0, 0, 2, 1, GridConstraints.ANCHOR_NORTHWEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer1 = new Spacer();\r\n mMainPanel.add(spacer1, new GridConstraints(5, 2, 1, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final JPanel panel2 = new JPanel();\r\n panel2.setLayout(new GridLayoutManager(2, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel2, new GridConstraints(4, 0, 6, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel3 = new JPanel();\r\n panel3.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel2.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n statement = new JTextArea();\r\n statement.setBackground(new Color(-12434103));\r\n statement.setColumns(0);\r\n statement.setEditable(false);\r\n statement.setEnabled(true);\r\n Font statementFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 15, statement.getFont());\r\n if (statementFont != null) statement.setFont(statementFont);\r\n statement.setText(\" In the current ai craze, we want to use neural network-related technology to grab a large amount of source code from the open source community to achieve the recommendation of the N+1 line of code from the known N lines of code, and package this function into a practical plug-in on the IDE.\");\r\n panel3.add(statement, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(200, 70), null, 1, false));\r\n final JPanel panel4 = new JPanel();\r\n panel4.setLayout(new GridLayoutManager(12, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.setBackground(new Color(-12828863));\r\n panel3.add(panel4, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n Download = new JButton();\r\n Font DownloadFont = this.$$$getFont$$$(null, -1, 12, Download.getFont());\r\n if (DownloadFont != null) Download.setFont(DownloadFont);\r\n Download.setText(\"Find\");\r\n panel4.add(Download, new GridConstraints(4, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel5 = new JPanel();\r\n panel5.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel5, new GridConstraints(11, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label1 = new JLabel();\r\n label1.setText(\"See the guide on the https://github.com/huangjihui511/java-code-recommand-IDEA-plugin \");\r\n panel5.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer2 = new Spacer();\r\n panel5.add(spacer2, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n pathTextField = new JTextField();\r\n pathTextField.setEditable(false);\r\n Font pathTextFieldFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 12, pathTextField.getFont());\r\n if (pathTextFieldFont != null) pathTextField.setFont(pathTextFieldFont);\r\n pathTextField.setText(\"/Library/Frameworks/Python.framework/Versions/3.6/bin/python3 \");\r\n panel4.add(pathTextField, new GridConstraints(7, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n SetPath = new JButton();\r\n Font SetPathFont = this.$$$getFont$$$(null, -1, 12, SetPath.getFont());\r\n if (SetPathFont != null) SetPath.setFont(SetPathFont);\r\n SetPath.setText(\"Set\");\r\n panel4.add(SetPath, new GridConstraints(7, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n Help = new JButton();\r\n Help.setText(\"Help\");\r\n panel4.add(Help, new GridConstraints(11, 1, 1, 1, GridConstraints.ANCHOR_EAST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel6 = new JPanel();\r\n panel6.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel6.setFocusTraversalPolicyProvider(false);\r\n panel6.setFocusable(false);\r\n panel4.add(panel6, new GridConstraints(10, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel7 = new JPanel();\r\n panel7.setLayout(new GridLayoutManager(2, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel7, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label2 = new JLabel();\r\n label2.setIcon(new ImageIcon(getClass().getResource(\"/timg (1) - 副本.jpg\")));\r\n label2.setText(\"\");\r\n panel7.add(label2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JLabel label3 = new JLabel();\r\n label3.setIcon(new ImageIcon(getClass().getResource(\"/微信图片_20190328224952 (2) - 副本.jpg\")));\r\n label3.setText(\"\");\r\n panel7.add(label3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel8 = new JPanel();\r\n panel8.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel7.add(panel8, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel9 = new JPanel();\r\n panel9.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel9, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n webaddressTextField = new JTextField();\r\n webaddressTextField.setEditable(false);\r\n Font webaddressTextFieldFont = this.$$$getFont$$$(\"Arial\", Font.PLAIN, 12, webaddressTextField.getFont());\r\n if (webaddressTextFieldFont != null) webaddressTextField.setFont(webaddressTextFieldFont);\r\n webaddressTextField.setText(\"/Volumes/PythonSupporting\");\r\n panel4.add(webaddressTextField, new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, new Dimension(150, -1), null, 0, false));\r\n final JPanel panel10 = new JPanel();\r\n panel10.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel10, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label4 = new JLabel();\r\n Font label4Font = this.$$$getFont$$$(\"Consolas\", Font.BOLD, 14, label4.getFont());\r\n if (label4Font != null) label4.setFont(label4Font);\r\n label4.setText(\"Find the package\");\r\n panel10.add(label4, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer3 = new Spacer();\r\n panel10.add(spacer3, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final JPanel panel11 = new JPanel();\r\n panel11.setLayout(new GridLayoutManager(1, 2, new Insets(0, 0, 0, 0), -1, -1));\r\n panel11.setToolTipText(\"\");\r\n panel4.add(panel11, new GridConstraints(6, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JLabel label5 = new JLabel();\r\n Font label5Font = this.$$$getFont$$$(\"Consolas\", Font.BOLD, 14, label5.getFont());\r\n if (label5Font != null) label5.setFont(label5Font);\r\n label5.setText(\"Set the path\");\r\n panel11.add(label5, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final Spacer spacer4 = new Spacer();\r\n panel11.add(spacer4, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\r\n final JPanel panel12 = new JPanel();\r\n panel12.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel12, new GridConstraints(9, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel13 = new JPanel();\r\n panel13.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel13, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel14 = new JPanel();\r\n panel14.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel14, new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel15 = new JPanel();\r\n panel15.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel4.add(panel15, new GridConstraints(8, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n pic = new JPanel();\r\n pic.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.putClientProperty(\"html.disable\", Boolean.FALSE);\r\n panel3.add(pic, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n a = new JLabel();\r\n a.setText(\"\");\r\n pic.add(a, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\r\n final JPanel panel16 = new JPanel();\r\n panel16.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.add(panel16, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel17 = new JPanel();\r\n panel17.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n pic.add(panel17, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel18 = new JPanel();\r\n panel18.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n panel2.add(panel18, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final Spacer spacer5 = new Spacer();\r\n mMainPanel.add(spacer5, new GridConstraints(5, 1, 10, 1, GridConstraints.ANCHOR_NORTH, GridConstraints.FILL_NONE, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final JPanel panel19 = new JPanel();\r\n panel19.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel19, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final JPanel panel20 = new JPanel();\r\n panel20.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\r\n mMainPanel.add(panel20, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\r\n final Spacer spacer6 = new Spacer();\r\n panel1.add(spacer6, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer7 = new Spacer();\r\n panel1.add(spacer7, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n final Spacer spacer8 = new Spacer();\r\n panel1.add(spacer8, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_VERTICAL, 1, GridConstraints.SIZEPOLICY_WANT_GROW, null, null, null, 0, false));\r\n }", "protected void createContents() {\n\n\t}", "private void buildHeader(Layout parent) {\n\n }", "private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }", "public interface ViewLayout {\r\n\r\n\t/** \r\n\t * Creates a reference to the view which layout should be calculated.\r\n\t * \r\n\t * @param view\r\n\t * \t\tthe view which layout should be calculated.\r\n\t */\r\n\tpublic void setView(View view);\r\n\t\r\n\t/**\r\n\t * Layouts the view components on the parent panel by assigning\r\n\t * them positions.\r\n\t * \r\n\t * @param parent\r\n\t * \t\tthe displaying parent container of the view\r\n\t */\r\n\tpublic void layoutContainer(Container parent);\r\n\r\n}", "private void createMainMenuHeaderComposite() {\n\n\t\tGridData gridData8 = new GridData();\n\t\tgridData8.grabExcessHorizontalSpace = true;\n\t\tgridData8.horizontalAlignment = GridData.FILL;\n\t\tgridData8.verticalAlignment = GridData.BEGINNING;\n\t\tgridData8.grabExcessVerticalSpace = true;\n\t\tGridData gridData7 = new GridData();\n\t\tgridData7.grabExcessHorizontalSpace = true;\n\t\tgridData7.horizontalAlignment = GridData.FILL;\n\t\tgridData7.verticalAlignment = GridData.END;\n\t\tgridData7.grabExcessVerticalSpace = true;\n\t\tGridData gridData21 = new GridData();\n\t\tgridData21.horizontalAlignment = GridData.FILL;\n\t\tgridData21.grabExcessHorizontalSpace = true;\n\t\tgridData21.grabExcessVerticalSpace = false;\n\t\tgridData21.heightHint = 150;\n\t\tgridData21.verticalAlignment = GridData.BEGINNING;\n\t\tGridLayout gridLayout = new GridLayout();\n\t\tgridLayout.horizontalSpacing = 50;\n\t\tgridLayout.marginWidth = 20;\n\t\tgridLayout.marginHeight = 0;\n\t\tgridLayout.verticalSpacing = 35;\n\t\tmainMenuHeaderComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuHeaderComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t255, 255, 255));\n\t\tmainMenuHeaderComposite.setLayoutData(gridData21);\n\t\tmainMenuHeaderComposite.setLayout(gridLayout);\n\n\t\tlblTitle1 = new CbctlLabel(mainMenuHeaderComposite, SWT.CENTER);\n\t\tlblTitle1\n\t\t\t\t.setText(LabelLoader\n\t\t\t\t\t\t.getLabelValue(LabelKeyConstants.WELCOME_NOTE_ON_TOUCH_SCREEN_HOMEPAGE));\n\t\tlblTitle1\n\t\t\t\t.setFont(SDSControlFactory.getStandardTouchScreenFont());\n\t\tlblTitle1.setLayoutData(gridData7);\n\n\t\tlblTitle2 = new CbctlLabel(mainMenuHeaderComposite, SWT.CENTER);\n\t\tlblTitle2\n\t\t\t\t.setText(LabelLoader\n\t\t\t\t\t\t.getLabelValue(LabelKeyConstants.SELECT_NOTE_ON_TOUCH_SCREEN_HOMEPAGE));\n\t\tlblTitle2\n\t\t\t\t.setFont(SDSControlFactory.getStandardTouchScreenFont());\n\t\tlblTitle2.setLayoutData(gridData8);\n\t}" ]
[ "0.7441121", "0.7408097", "0.73983043", "0.7349182", "0.7343956", "0.72837514", "0.7228967", "0.72196674", "0.716834", "0.7118178", "0.7112332", "0.71101266", "0.70597374", "0.70571274", "0.6990229", "0.6926798", "0.6901655", "0.6854118", "0.68504196", "0.68446213", "0.68368685", "0.6783188", "0.6759682", "0.67309034", "0.6673435", "0.66200835", "0.65828514", "0.65800583", "0.65591884", "0.65570545", "0.65567595", "0.65414953", "0.6533817", "0.6528927", "0.65221506", "0.6510406", "0.6501033", "0.6495626", "0.64799005", "0.6470482", "0.64617133", "0.6450147", "0.6445254", "0.6439915", "0.64341444", "0.64323527", "0.64293355", "0.64242285", "0.6423748", "0.64126766", "0.64016813", "0.63963145", "0.6384965", "0.63835275", "0.6374324", "0.6373989", "0.63736635", "0.6357495", "0.6350608", "0.63358897", "0.6329535", "0.6319707", "0.631756", "0.6311248", "0.62908554", "0.6290835", "0.6288659", "0.6287615", "0.6285164", "0.62839264", "0.6269888", "0.6261724", "0.6260101", "0.62521136", "0.62484986", "0.624712", "0.62470645", "0.6246525", "0.62457556", "0.624454", "0.6244338", "0.6244212", "0.62423617", "0.6237739", "0.62333804", "0.6228355", "0.6228241", "0.62271667", "0.6223703", "0.6221801", "0.6210153", "0.6208609", "0.6207323", "0.6204501", "0.62025356", "0.62011784", "0.61998993", "0.61963207", "0.619598", "0.61945784", "0.6174235" ]
0.0
-1
Created by Tan Phirum on 3/13/20
public interface StoreApi { @GET("api/v1.6/store") Observable<ShopItem> getShopItem(@Header("app_secret") String appSecret, @Header("Authorization") String token); @GET("api/v1.6/checkout") Observable<MySabayItem> getMySabayCheckout(@Header("app_secret") String appSecret, @Header("Authorization") String token, @Query("uuid") String uuid); @GET("api/v1.6/cashier") Observable<ThirdPartyItem> get3PartyCheckout(@Header("app_secret") String appSecret, @Header("Authorization") String token, @Query("uuid") String uuid); @POST("api/v1.6/verify_receipt/google") Observable<GoogleVerifyResponse> postToVerifyGoogle(@Header("app_secret") String appSecret, @Header("Authorization") String token, @Body() GoogleVerifyBody body); @POST("api/v1.6/charge/auth") Observable<PaymentResponseItem> postToPaid(@Header("app_secret") String appSecret, @Header("Authorization") String token, @Body() PaymentBody body); @POST("api/v1.6/charge/onetime") Observable<ResponseItem> postToChargeOneTime(@Header("app_secret") String appSecret, @Header("Authorization") String token, @Body() PaymentBody body); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "protected boolean func_70814_o() { return true; }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tprotected void interr() {\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic void comer() {\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}", "public void mo38117a() {\n }", "public void method_4270() {}", "public void gored() {\n\t\t\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}", "private stendhal() {\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo4359a() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "protected boolean func_70041_e_() { return false; }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo12628c() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public abstract void mo70713b();", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void 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\tpublic void ligar() {\n\t\t\n\t}", "private void m50367F() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void m23075a() {\n }", "protected abstract Set method_1559();", "@Override\n public int retroceder() {\n return 0;\n }", "public void skystonePos4() {\n }", "protected void mo6255a() {\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 rozmnozovat() {\n\t}", "public void mo12930a() {\n }", "public void mo21877s() {\n }", "public final void mo91715d() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public abstract void mo56925d();", "public void mo21779D() {\n }", "private void init() {\n\n\t}", "public void mo6081a() {\n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo9848a() {\n }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "private void level7() {\n }", "public void skystonePos6() {\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}", "public void mo55254a() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void mo23813b() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo21825b() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "@Override public int describeContents() { return 0; }", "@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\tvoid func04() {\n\t\t\r\n\t}" ]
[ "0.5701881", "0.5680162", "0.56764364", "0.56426203", "0.5597238", "0.5562534", "0.5555645", "0.5538009", "0.5510636", "0.55066305", "0.54901874", "0.54901874", "0.54310113", "0.5426447", "0.53795624", "0.5371503", "0.53506047", "0.5339991", "0.53282845", "0.5323901", "0.5314594", "0.53120303", "0.53044635", "0.53028846", "0.5295618", "0.5251957", "0.5249417", "0.52492833", "0.5249242", "0.52293634", "0.5215709", "0.52096295", "0.52089393", "0.5202197", "0.5196397", "0.5196397", "0.5196397", "0.5196397", "0.5196397", "0.5196397", "0.5196397", "0.5190622", "0.5190622", "0.5190622", "0.5190622", "0.5190622", "0.51849365", "0.5184719", "0.51790386", "0.5178563", "0.51712", "0.5155735", "0.5147623", "0.5140504", "0.5139124", "0.51385134", "0.51366013", "0.51331395", "0.5129958", "0.51197344", "0.5115452", "0.51138353", "0.51138353", "0.51137483", "0.5104522", "0.5079989", "0.5078101", "0.5074988", "0.50685096", "0.50662595", "0.5064613", "0.50619507", "0.5056841", "0.5055391", "0.50400585", "0.5039056", "0.50370735", "0.50370735", "0.50370735", "0.5034911", "0.50339794", "0.50279826", "0.50276875", "0.5025924", "0.50164825", "0.5015382", "0.5015382", "0.5015382", "0.50151116", "0.5003737", "0.5001297", "0.49984786", "0.49934974", "0.4992914", "0.49910256", "0.498904", "0.49879524", "0.49836132", "0.49836132", "0.49836132", "0.49830303" ]
0.0
-1
creamos la base de datos solo en el caso que no exista la misma, con el script de la version
@Override public void onCreate(SQLiteDatabase db) { executeSQLScript(db, "sql/cstigo_v" + DATABASE_VERSION + ".sql"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void instalarBaseDatos()\r\n\t{\r\n\t\tString nombrebuscado = \"information_schema\";\r\n\t\tArrayList parametrosbd = parametrosConectorBaseDatos();\r\n\t\tif(parametrosbd != null)\r\n\t\t{\r\n\t\t\tif(parametrosbd.size()>0)\r\n\t\t\t{\r\n\t\t\t\tnombrebuscado =(String)parametrosbd.get(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString nombrebd = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tConector conector = new Conector(\"information_schema\");\r\n\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\tnombrebd = CrearBD.buscarBaseDatos(nombrebuscado, conector);\r\n\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n\t\tif(nombrebd == null)\r\n\t\t{\r\n\t\t\tint numerotablascreadas = 0;\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tConector conectora = new Conector(\"information_schema\");\r\n\t\t\t\tconectora.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.crearBaseDatos(nombrebuscado, conectora);\r\n\t\t\t\tconectora.terminarConexionBaseDatos();\r\n\t\t\t\t\r\n\t\t\t\tfor (int i = 1; i < 20; i++) \r\n\t\t\t\t{\r\n\t\t\t\t\tString nombretabla = i+\".sql\";\r\n\t\t\t\t\tString contenidotabla = ejecutarCodigoSQLtablas(nombretabla);\r\n\t\t\t\t\tif(!contenidotabla.equalsIgnoreCase(\"\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tConector conectorb = new Conector(nombrebuscado);\r\n\t\t\t\t\t\tconectorb.iniciarConexionBaseDatos();\r\n\t\t\t\t\t\tCrearBD.ejecutarCodigoSQL(contenidotabla, conectorb);\r\n\t\t\t\t\t\tconectorb.terminarConexionBaseDatos();\r\n\t\t\t\t\t\tnumerotablascreadas++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo \"+nombretabla,\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(numerotablascreadas == 19)\r\n\t\t\t\t{\r\n\t\t\t\t\tejecutarCodigoSQLdatos(nombrebuscado);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void loadDatabase()\n\t{\n\t\ttry\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Check to make sure the Bmod Database is there, if not, try \n\t\t\t\t// downloading from the website.\n\t\t\t\tif(!Files.exists(m_databaseFile))\n\t\t\t\t{\n\t\t\t\t\tFiles.createDirectories(m_databaseFile.getParent());\n\t\t\t\t\n\t\t\t\t\tbyte[] file = ExtensionPoints.readURLAsBytes(\"http://\" + Constants.API_HOST + HSQL_DATABASE_PATH);\n\t\t\t\t\tif(file.length != 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tFiles.deleteIfExists(m_databaseFile);\n\t\t\t\t\t\tFiles.write(m_databaseFile, file, StandardOpenOption.CREATE, StandardOpenOption.WRITE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// make sure we have the proper scriptformat.\n\t\t\t\tsetScriptFormatCorrectly();\n\t\t\t}catch(NullPointerException|IOException ex)\n\t\t\t{\n\t\t\t\tm_logger.error(\"Could not fetch database from web.\", ex);\n\t\t\t}\n\t\t\t\n\t\n\t\t\t\n\t\t\tClass.forName(\"org.hsqldb.jdbcDriver\");\n\t\t\n\t\t\t\n\t\t\tString db = ExtensionPoints.getBmodDirectory(\"database\").toUri().getPath();\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:file:\" + db, \"sa\", \"\");\n\t\t\t\n\t\t\t// Setup Connection\n\t\t\tCSVRecordLoader ldr = new CSVRecordLoader();\n\t\t\n\t\t\t// Load all of the building independent plugins\n\t\t\tfor(Record<?> cp : ldr.getRecordPluginManagers())\n\t\t\t{\n\t\t\t\tm_logger.debug(\"Creating table: \" + cp.getTableName());\n\t\t\t\t// Create a new table\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tgetPreparedStatement(cp.getSQLTableDefn()).execute();\n\t\t\t\t} catch(SQLException ex)\n\t\t\t\t{\n\t\t\t\t\t// Table exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_logger.debug(\"Doing index:\" + cp.getIndexDefn());\n\t\t\t\t\tif(cp.getIndexDefn() != null)\n\t\t\t\t\t\tgetPreparedStatement(cp.getIndexDefn()).execute();\n\t\t\t\t}catch(SQLException ex)\n\t\t\t\t{\t// index exists\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\n\t\t} catch (Exception ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t\tif(ex instanceof DatabaseIntegrityException)\n\t\t\t\tDatabase.handleCriticalError((DatabaseIntegrityException)ex);\n\t\t\telse\n\t\t\t\tDatabase.handleCriticalError(new DatabaseIntegrityException(ex));\n\t\t}\n\t\t\n\t}", "public void conectionSql(){\n conection = connectSql.connectDataBase(dataBase);\n }", "private void FetchingData() {\n\t\t try { \n\t\t\t \n\t \tmyDbhelper.onCreateDataBase();\n\t \t \t\n\t \t\n\t \t} catch (IOException ioe) {\n\t \n\t \t\tthrow new Error(\"Unable to create database\");\n\t \n\t \t} \n\t \ttry {\n\t \n\t \t\tmyDbhelper.openDataBase();\n\t \t\tmydb = myDbhelper.getWritableDatabase();\n\t\t\tSystem.out.println(\"executed\");\n\t \t\n\t \t}catch(SQLException sqle){\n\t \n\t \t\tthrow sqle;\n\t \n\t \t}\n\t}", "private boolean loadDatabase(){\n Input input = new Input();\n recipes = input.getDatabase();\n if(recipes == null){\n recipes = new ArrayList<>();\n return false;\n }\n return true;\n }", "public DataHandlerDBMS() {\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tDBMS = DriverManager.getConnection(url);\n\t\t\tSystem.out.println(\"DBSM inizializzato\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Errore apertura DBMS\");\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"Assenza driver mySQL\");\n\t\t}\n\t}", "private void checkDataBase() {\n final Config dbConfig = config.getConfig(\"db\");\n\n checkArgument(!isNullOrEmpty(dbConfig.getString(\"driver\")), \"db.driver is not set!\");\n checkArgument(!isNullOrEmpty(dbConfig.getString(\"url\")), \"db.url is not set!\");\n\n dbConfig.getString(\"user\");\n dbConfig.getString(\"password\");\n dbConfig.getObject(\"additional\");\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic void inicializaBD() {\n\t\t\n\t\t/*Registros de Orden*/\n\t\tint n1=1;\n\t\tString p1=\"Taco Azteca\", p2=\"Sopa\";\n\t\tjava.util.Date utilDate = new java.util.Date();\n\t\tjava.util.Date utilDate1 = new java.util.Date();\n\t\tutilDate.setMonth(1);\n\t\tutilDate.setYear(119);\n\t\tutilDate.setMinutes(1);\n\t\tutilDate1.setMonth(1);\n\t\tutilDate1.setYear(119);\n\t\tutilDate1.setMinutes(59);\n\t\tlong lnMilisegundos = utilDate.getTime();\n\t\tlong lnMilisegundos1 = utilDate1.getTime()+10;\n\t\tTimestamp fecha1= new Timestamp(lnMilisegundos);\n\t\tTimestamp fecha2 = new Timestamp(lnMilisegundos+9999999);\n\t\tTimestamp fecha3= new Timestamp(lnMilisegundos1);\n\t\tTimestamp fecha4 = new Timestamp(lnMilisegundos1+999999);\n\t\tOrden orden1 = new Orden(n1,p1, fecha1, fecha2, 60, 3);\n\t\tOrden orden2 = new Orden(n1,p2, fecha3, fecha4, 30, 3);\n\t\torden1.setEstado(3);\n\t\torden2.setEstado(3);\n\t\tordenRepository.save(orden1);\n\t\tordenRepository.save(orden2);\n\t\t\n\t\t/*Registros de producto*/\n\t\tProducto producto1 = new Producto();\n\t\tproducto1.setFecha(\"2020-05-10\");\n\t\tproducto1.setNombreProducto(\"Chiles Verdes\");\n\t\tproducto1.setDescripcion(\"Bolsas de 1 kg de Chiles\");\n\t\tproducto1.setCantidad(15);\n\t\tproducto1.setMinimo(20);\n\t\tproductoRepository.save(producto1);\n\t\t\n\t\tProducto producto2 = new Producto();\n\t\tproducto2.setFecha(\"2020-10-05\");\n\t\tproducto2.setNombreProducto(\"Papas\");\n\t\tproducto2.setDescripcion(\"Costal de 32 Kg de papas\");\n\t\tproducto2.setCantidad(58);\n\t\tproducto2.setMinimo(10);\n\t\tproductoRepository.save(producto2);\n\t\t\n\t\tProducto producto3 = new Producto();\n\t\tproducto3.setFecha(\"2020-10-20\");\n\t\tproducto3.setNombreProducto(\"Frijoles\");\n\t\tproducto3.setDescripcion(\"Costales de 13 kg de Frijoles\");\n\t\tproducto3.setCantidad(2);\n\t\tproducto3.setMinimo(20);\n\t\tproductoRepository.save(producto3);\n\t\t\n\t\tProducto producto4 = new Producto();\n\t\tproducto4.setFecha(\"2020-08-16\");\n\t\tproducto4.setNombreProducto(\"Sopa de fideo\");\n\t\tproducto4.setDescripcion(\"Bolsas de 500g de sopa de fideo\");\n\t\tproducto4.setCantidad(8);\n\t\tproducto4.setMinimo(10);\n\t\tproductoRepository.save(producto4);\n\t\t\n\t\t//Registro de recordatorio\n\t\tRecordatorio recordatorio = new Recordatorio();\n\t\trecordatorio.setId(1);\n\t\trecordatorio.setInfo(\"1. A partir de mañana se empezará a ofrecer los \\n\"\n\t\t\t\t+ \"beneficios para los clientes preferenciales\\n\"\n\t\t\t\t+ \"2. Los empleados que no se han registrado para \\n\"\n\t\t\t\t+ \"algo algotienen hasta el 25 de Julio para \\n\"\n\t\t\t\t+ \"registrarse.\");\n\t\trecordatorioRepository.save(recordatorio);\n\t\t\n\t\t//Registro empleados\n\t\tEmpleado empleado1 = new Empleado();\n\t\templeado1.setNombre(\"Paola\");\n\t\templeado1.setApellidos(\"Aguillón\");\n\t\templeado1.setEdad(24);\n\t\templeado1.setSueldo(2120.50);\n\t\templeado1.setOcupacion(\"Mesera\");\n\t\templeadoRepository.save(empleado1);\n\t\t\n\t\tEmpleado empleado2 = new Empleado();\n\t\templeado2.setNombre(\"Jorge\");\n\t\templeado2.setApellidos(\"Luna\");\n\t\templeado2.setEdad(20);\n\t\templeado2.setSueldo(2599.50);\n\t\templeado2.setOcupacion(\"Cocinero\");\n\t\templeadoRepository.save(empleado2);\n\t\t\n\t\tEmpleado empleado3 = new Empleado();\n\t\templeado3.setNombre(\"Mariana\");\n\t\templeado3.setApellidos(\"Mendoza\");\n\t\templeado3.setEdad(32);\n\t\templeado3.setSueldo(1810.80);\n\t\templeado3.setOcupacion(\"Ayudante general\");\n\t\templeadoRepository.save(empleado3);\n\t\t\n\t\tEmpleado empleado4 = new Empleado();\n\t\templeado4.setNombre(\"Diego\");\n\t\templeado4.setApellidos(\"Ayala\");\n\t\templeado4.setEdad(28);\n\t\templeado4.setSueldo(3560.60);\n\t\templeado4.setOcupacion(\"Chef\");\n\t\templeadoRepository.save(empleado4);\n\t\t\n\t\tCliente cliente1 = new Cliente();\n\t\tcliente1.setNombre(\"Mario\");\n\t\tcliente1.setCorreo(\"[email protected]\");\n\t\tcliente1.setPromocion(\"Sopa 2x1\");\n\t\tclienteRepository.save(cliente1);\n\n\t\t//Registro Ventas de menú\n\t\tVentasMenu dia1 = new VentasMenu();\n\t\tdia1.setFecha(LocalDate.of(2021,02,01));\n\t\tdia1.setMenu(\"Tacos,Sopa de papa, Agua de limón\");\n\t\tdia1.setVentas(20);\n\t\tventasMenuRepository.save(dia1);\n\t\t\n\t\tVentasMenu dia2 = new VentasMenu();\n\t\tdia2.setFecha(LocalDate.of(2021,02,02));\n\t\tdia2.setMenu(\"Tortas de papa,Sopa de verdura, Agua de piña\");\n\t\tdia2.setVentas(22);\n\t\tventasMenuRepository.save(dia2);\n\t\t\n\t\tVentasMenu dia21 = new VentasMenu();\n\t\tdia21.setFecha(LocalDate.of(2021,02,03));\n\t\tdia21.setMenu(\"Tortas de papa,Sopa de tortilla, Agua de mango\");\n\t\tdia21.setVentas(25);\n\t\tventasMenuRepository.save(dia21);\n\t\t\n\t\tVentasMenu dia211 = new VentasMenu();\n\t\tdia211.setFecha(LocalDate.of(2021,02,04));\n\t\tdia211.setMenu(\"Papas a la francesa,sopa de arroz, Agua de jamaica \");\n\t\tdia211.setVentas(30);\n\t\tventasMenuRepository.save(dia211);\n\t\t\n\t\t\n\t\t\n\t\t//Registro de menú\n\t\tMenu menu = new Menu();\n\t\tmenu.setId(1);\n\t\tmenu.setMen(\"Sopa \\n\"\n\t\t\t\t+ \"Consome\\n\"\n\t\t\t\t+ \"Arroz\\n\"\n\t\t\t\t+ \"Pasta\\n\"\n\t\t\t\t+ \"Chile relleno \\n\"\n\t\t\t\t+ \"Taco Azteca \\n\"\n\t\t\t\t+ \"Filete de Pescado empanizado\"\n\t\t + \"Enchiladas\\n\"\n\t\t + \"Gelatina\\n\"\n\t\t + \"Flan\\n\");\n\t\tmenuRepository.save(menu);\n\t\t\n\t\t//Registro de algunos proveedores\n\t\t\n\t\tProveedor proveedor1 = new Proveedor();\n\t\tproveedor1.setNomProveedor(\"Aaron\");\n\t\tproveedor1.setMarca(\"Alpura\");\n\t\tproveedor1.setTipo(\"Embutidos y lacteos\");\n\t\tproveedor1.setCosto(4600);\n\t\tproveedorRepository.save(proveedor1);\n\t\t\n\t\tProveedor proveedor2 = new Proveedor();\n\t\tproveedor2.setNomProveedor(\"Angelica\");\n\t\tproveedor2.setMarca(\"Coca-Cola\");\n\t\tproveedor2.setTipo(\"Bebidas\");\n\t\tproveedor2.setCosto(1810.11);\n\t\tproveedorRepository.save(proveedor2);\n\t\t\n\t\tProveedor proveedor3 = new Proveedor();\n\t\tproveedor3.setNomProveedor(\"Ernesto\");\n\t\tproveedor3.setMarca(\"Patito\");\n\t\tproveedor3.setTipo(\"Productos de limpieza\");\n\t\tproveedor3.setCosto(2455.80);\n\t\tproveedorRepository.save(proveedor3);\n\t\t\n\t\t// Registro Sugerencias \n\t\t\n\t\t \n\t\tSugerencia sugerencia= new Sugerencia();\n\t\tsugerencia.setIdSugeregncia(1);\n\t\tsugerencia.setNombre(\"Pedro\");\n\t\tsugerencia.setSugerencia(\"Pollo Frito\");\n\t\tsugerenciaRepository.save(sugerencia);\n\t\t\n\t\tSugerencia sugerencia1= new Sugerencia();\n\t\tsugerencia1.setIdSugeregncia(2);\n\t\tsugerencia1.setNombre(\"Miriam\");\n\t\tsugerencia1.setSugerencia(\"Sopes\");\n\t\tsugerenciaRepository.save(sugerencia1);\n\t\t\n\t\tSugerencia sugerencia2= new Sugerencia();\n\t\tsugerencia2.setIdSugeregncia(3);\n\t\tsugerencia2.setNombre(\"Rebeca\");\n\t\tsugerencia2.setSugerencia(\"Tamales Oaxaqueños\");\n\t\tsugerenciaRepository.save(sugerencia2);\n\t\t\n\t}", "private 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}", "public void PrepararBaseDatos() { \r\n try{ \r\n conexion=DriverManager.getConnection(\"jdbc:ucanaccess://\"+this.NOMBRE_BASE_DE_DATOS,this.USUARIO_BASE_DE_DATOS,this.CLAVE_BASE_DE_DATOS);\r\n \r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al realizar la conexion \"+e);\r\n } \r\n try { \r\n sentencia=conexion.createStatement( \r\n ResultSet.TYPE_SCROLL_INSENSITIVE, \r\n ResultSet.CONCUR_READ_ONLY); \r\n \r\n System.out.println(\"Se ha establecido la conexión correctamente\");\r\n } \r\n catch (Exception e) { \r\n JOptionPane.showMessageDialog(null,\"Error al crear el objeto sentencia \"+e);\r\n } \r\n }", "public DataBase getDataSet() {\r\n DataBase dataset = null;\r\n try {\r\n Statement stmt = conexion.createStatement();\r\n String sql;\r\n sql = \"SELECT * FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '\" + schema + \"'\";\r\n ResultSet rs = stmt.executeQuery(sql);\r\n dataset = new DataBase();\r\n while (rs.next()) {\r\n \r\n dataset.setCatalog_name(rs.getString(1));\r\n dataset.setSchema_name(rs.getString(2));\r\n dataset.setCharacter_set(rs.getString(3));\r\n dataset.setCollation_name(rs.getString(4));\r\n dataset.setIssued(getIssuedBD(schema));\r\n\r\n }\r\n ArrayList<Table> tables = getTables(schema);\r\n dataset.setTables(tables);\r\n return dataset;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(DAOBaseDatos.class.getName()).log(Level.SEVERE, null, ex);\r\n return null;\r\n }\r\n }", "@Before\n public void inicializaBaseDatos() throws Exception {\n app = Helpers.fakeApplication(settings());\n databaseTester = new JndiDatabaseTester(\"DefaultDS\");\n IDataSet initialDataSet = new FlatXmlDataSetBuilder().build(new\n FileInputStream(\"test/resources/tareas_dataset_1.xml\"));\n databaseTester.setDataSet(initialDataSet);\n databaseTester.onSetup();\n }", "Database getDataBase() {\n return database;\n }", "public void ejecutarCodigoSQLdatos(String nombrebuscado)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileReader codigoarchivo = new FileReader ( \"./images/BD/Codigo SQL crebas datos.sql\" );\r\n\t\t\tBufferedReader reader = new BufferedReader (codigoarchivo);\r\n\t\t\tString codigo = reader.readLine();\r\n\t\t\twhile(codigo!= null)\r\n\t\t\t{\r\n\t\t\t\tif(!codigo.equalsIgnoreCase(\"\"))\r\n\t\t\t\t{\r\n\t\t\t\t\tConector conectord = new Conector(nombrebuscado);\r\n\t\t\t\t\tconectord.iniciarConexionBaseDatos();\r\n\t\t\t\t\tCrearBD.ejecutarCodigoSQL(codigo, conectord);\r\n\t\t\t\t\tconectord.terminarConexionBaseDatos();\r\n\t\t\t\t}\r\n\t\t\t\tcodigo = reader.readLine();\r\n\t\t\t}\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Se Instalo la Base de Datos Correctamente.\",\"Instalar Base de Datos\", JOptionPane.INFORMATION_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/informacion.PNG\"));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tConector conectorg = new Conector(nombrebuscado);\r\n\t\t\t\tconectorg.iniciarConexionBaseDatos();\r\n\t\t\t\tCrearBD.ejecutarCodigoSQL(\"DROP DATABASE \"+nombrebuscado, conectorg);\r\n\t\t\t\tconectorg.terminarConexionBaseDatos();\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"No se encontro el archivo Codigo SQL crebas datos.sql\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }", "@RequestMapping(value=\"/pokemon\", method =RequestMethod.GET)\n\tpublic boolean initDataBase() {//Inicializacion de la BD. Solo llamado una vez al iniciar la aplicacion\n\t\tboolean done = false;\n\t\thandler = new MongoDBQueries();//Inicializacion del objeto\n\t\thandler.initialize();//Inicializacion de la BD y la coleccion\n\t\thandler.getFile();//Lectura del fichero JSON e introduccion en la coleccion\n\t\tdone = true;\n\t\treturn done;\n\t}", "private void getDatabase(){\n\n }", "private Conexao() {\r\n\t\ttry {\r\n\t\t\tconnection = DriverManager.getConnection(\"jdbc:hsqldb:mem:.\", \"sa\", \"\");\r\n\t\t\tnew LoadTables().creatScherma(connection);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Erro ao conectar com o banco: \"+e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "Object getDB();", "String getDatabase();", "boolean hasDatabase();", "public void getDataFromFile() throws SQLException{\n \n //SQL database\n getGuestDate_DB();\n getHotelRoomData_DB();\n updateRoomChanges_DB();\n \n //this.displayAll();\n //this.displayAllRooms();\n \n }", "private static Connection baglan() {\n Connection baglanti = null;\n try {\n baglanti = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/SogutucuKontrolCihazi\",\n \"postgres\", \"159753\");\n if (baglanti != null) //bağlantı varsa\n System.out.println(\"Veritabanına bağlandı!\");\n else\n System.out.println(\"Bağlantı girişimi başarısız!\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return baglanti;\n }", "private static void initSystem() throws Exception{\n ConfigFileModel ConfigFileModel;\n ConfigFileModel = ConfigFileUtil.getSingleton().getConfigFileModel();\n\n final String instance = ConfigFileModel.getInstance();\n final String user = ConfigFileModel.getUser();\n final String password = ConfigFileModel.getPassword();\n final String db = ConfigFileModel.getDb();\n final String port = ConfigFileModel.getPort();\n\n //Save dbempresas params connection to hibernate config file\n final HibernateConfigModel HibernateConfigModel_ = new HibernateConfigModel();\n HibernateConfigModel_.setUser(user); \n HibernateConfigModel_.setPassword(password);\n HibernateConfigModel_.setPort(Integer.valueOf(port));\n HibernateConfigModel_.setInstance(instance);\n HibernateConfigModel_.setDatabase(db);\n HibernateUtil.getSingleton().setHibernateConfigModelDbEmpresas(HibernateConfigModel_);\n\n //Check if the main database exists\n boolean result = MysqlScriptsUtil.getInstance().existsDB(HibernateConfigModel_.getDatabase(), HibernateConfigModel_.getUser(), HibernateConfigModel_.getPassword(), HibernateConfigModel_.getInstance(), HibernateConfigModel_.getPort());\n \n if(!result) {//Else database not exists \n dbempresasNotExists();\n }\n else { //The dabatase already exists \n \n HibernateUtil.getSingleton().loadDbEmpresas();\n veryLicense();\n }\n }", "private void getDataFromDB() {\n ArrayList<ArtworkData> artworkData = getArtworksFromDatabase();\n if (artworkData.size() <= 0) {\n // there is no data in local DB, error\n onErrorReceived();\n } else {\n sendArtworkData(artworkData);\n }\n }", "public static boolean probar_base_de_datos(String path) throws SQLException{\n path = \"jdbc:sqlite:\"+path;\n try {\n System.out.println(\"Probando base de datos\");\n DriverManager.getConnection(path);\n \n }\n catch (SQLException e) {\n return false;\n }\n return true;\n }", "public vistaAlojamientos() {\n initComponents();\n \n try {\n miConn = new Conexion(\"jdbc:mysql://localhost/turismo\", \"root\", \"\");\n ad = new alojamientoData(miConn);\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(vistaAlojamientos.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "private static void comprobarBBDD() {\n\t\tSQLiteHelper usdbh = new SQLiteHelper(contexto, \"baseDeDatos\", null, 1);\n\n\t\tSQLiteDatabase db = usdbh.getReadableDatabase();\n\t\t\n\t\tlistaTarjetas.clear();\n\n\t\t// Si hemos abierto correctamente la base de datos\n\t\tif (db != null) {\n\t\t\t// Consultamos el valor esLaPrimeraVez\n\t\t\tCursor c = db.rawQuery(\"SELECT * from Tarjetas;\", null);\n\t\t\t// Nos aseguramos de que existe al menos un registro\n\t\t\t// Nos aseguramos de que existe al menos un registro\n\t\t\tif (c.moveToFirst()) {\n\t\t\t\tdo {\n\t\t\t\t\tlistaTarjetas.add(new Tarjetas(c.getString(0), c\n\t\t\t\t\t\t\t.getString(1), c.getString(2), c.getString(3)));\n\t\t\t\t\t// Herramientas.getYo().setId(c.getString(0));\n\t\t\t\t} while (c.moveToNext());\n\t\t\t}\n\t\t\tif (listaTarjetas.size() == 0)\n\t\t\t{\n\t\t\t\tNfcAdapter nfcAdapter = nfcAdapter = NfcAdapter.getDefaultAdapter(contexto);\n\n\t\t\t\tif (nfcAdapter == null) { \n\t\t\t\t\tlistaTarjetas.add(new Tarjetas(\"\", \"\",contexto.getResources().getString(R.string.textoVacio1),\"\"));\n\t\t\t\t}\n\t\t\t\telse if (!nfcAdapter.isEnabled()) {\n\t\t\t\t\tlistaTarjetas.add(new Tarjetas(\"\", \"\",contexto.getResources().getString(R.string.textoVacio1),\"\"));\n\t\t\t\t} else {\n\t\t\t\t\tlistaTarjetas.add(new Tarjetas(\"\", \"\",contexto.getResources().getString(R.string.textoVacio2),\"\"));\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tdb.close();\n\t\t}\n\t}", "int getDatenvolumen();", "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }", "public UfficioTecnicoDB() {\n this(ConnectionManager.getInstance());\n }", "public void leerBaseDatos(){\n if(connected == true){\n final FirebaseDatabase database = FirebaseDatabase.getInstance();\n\n DatabaseReference ref = database.getReference().child(\"kitDeSensores\").child(id);\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n kitSensoresDatos post = dataSnapshot.getValue(kitSensoresDatos.class);\n if(post ==null){\n fuego.setText(\"El sensor no tiene datos para mostrar\");\n temperatura.setText(\"El sensor no tiene datos para mostrar\");\n humedad.setText(\"El sensor no tiene datos para mostrar\");\n humo.setText(\"El sensor no tiene datos para mostrar\");\n Log.d(\"Humedad obtenidad\", String.valueOf(humo));\n }else{\n String fuegoExiste;\n if(String.valueOf(post.getFuego()).equals(\"0\")){\n fuegoExiste = \"No\";\n }else{\n fuegoExiste = \"Si\";\n }\n fuego.setText(fuegoExiste);\n temperatura.setText(String.valueOf(post.getTemperatura()) + \" °C\");\n humo.setText(String.valueOf(post.getGas()) + \" ppm\");\n humedad.setText(String.valueOf(post.getHumedad()) + \" %\");\n }\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }else{\n fuego.setText(\"No tienes conexion a internet\");\n temperatura.setText(\"No tienes conexion a internet\");\n humedad.setText(\"No tienes conexion a internet\");\n humo.setText(\"No tienes conexion a internet\"); }\n }", "private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\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 void ucitajDrajver()throws Exception{\r\n db.loadDriver();\r\n }", "public void consultarDatos() throws SQLException {\n String instruccion = \"SELECT * FROM juegos.juegos\";\n try {\n comando = conexion.createStatement();\n resultados = comando.executeQuery(instruccion);\n } catch (SQLException e) {\n e.printStackTrace();\n throw e;\n }\n }", "DataBase createDataBase();", "private void iniciarBaseDeDatos(){\n db_reference = FirebaseDatabase.getInstance().getReference();\n\n }", "private void baueVerbindung() throws SQLException, ClassNotFoundException\n\t{\n\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\tconnec = DriverManager.getConnection(url+datenbank,user,password);\n\t}", "public DanielPatricio() throws SQLException {\n initComponents();\n //limpiar();\n recargarDropDownCarros();\n recargarTextArea();\n recargarDataTable();\n \n \n }", "private void ini_SelectDB()\r\n\t{\r\n\r\n\t}", "public void initialiserBD() {\n\n // on crée une personne avec tous les champs à vide, cela nous permettra de tester l'existence de la BD pour les futurs lancements.\n pdao.open();\n pdao.creerPersonnePremierLancement();\n pdao.close();\n\n // création des 3 listes\n Liste liste1 = new Liste(1, \"Maison\", \"La liste de ma maison\");\n Liste liste2 = new Liste(2, \"Garage\", \"La liste de mon garage\");\n Liste liste3 = new Liste(3, \"Magasin\", \"La liste de mon magasin\");\n\n // ajout des listes\n ldao.open();\n ldao.ajouterListe(liste1);\n ldao.ajouterListe(liste2);\n ldao.ajouterListe(liste3);\n ldao.close();\n\n // on ajoute 3 catégories\n CategorieDAO categorieDAO = new CategorieDAO(this);\n categorieDAO.open();\n Categorie cuisine = new Categorie(0, \"Cuisine\", \"Tous les objets de la cuisine\");\n Categorie salon = new Categorie(0, \"Salon\", \"Tous les objets du Salon\");\n Categorie chambre = new Categorie(0, \"Chambre\", \"Tous les objets de la chambre\");\n categorieDAO.addCategorie(cuisine);\n categorieDAO.addCategorie(salon);\n categorieDAO.addCategorie(chambre);\n categorieDAO.close();\n\n Date date = new Date();\n\n // Création de la classe utilitaire pour les dates\n Utils utils = new Utils(this);\n String dateSimpleDateFormat = utils.getDateSimpleDateFormat();\n SimpleDateFormat sdf = new SimpleDateFormat(dateSimpleDateFormat);\n String dateDuJour = sdf.format(date);\n\n // texte explicatif\n String explication = \"Cet objet est crée au demarrage de l'application, vous pouvez le supprimer en cliquant dessus.\";\n\n // on ajoute 6 bien pour exemple\n Bien bien1 = new Bien(1, \"Lunette\", dateDuJour, dateDuJour, \"\", \"Légèrement rayées sur le coté\", \"251\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien2 = new Bien(2, \"Frigo\", dateDuJour, dateDuJour, \"\", \"\", \"3599\", \"\", \"\", \"\", \"\", 1, explication, \"45DG425845DA\");\n Bien bien3 = new Bien(3, \"Ordinateur\", dateDuJour, dateDuJour, \"\", \"Manque une touche\", \"1099\", \"\", \"\", \"\", \"\", 3, explication, \"515D-TGH2336\");\n Bien bien4 = new Bien(4, \"Vaisselle\", dateDuJour, dateDuJour, \"\", \"Vaisselle de Mémé\", \"6902\", \"\", \"\", \"\", \"\", 1, explication, \"\");\n Bien bien5 = new Bien(5, \"TV\", dateDuJour, dateDuJour, \"\", \"\", \"350\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien6 = new Bien(6, \"Home cinéma\", dateDuJour, dateDuJour, \"\", \"Marque Pioneer - Une enceinte grésille un peu\", \"400\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n\n\n // dans la liste 1\n ArrayList<Integer> listeIdListe1 = new ArrayList<Integer>();\n listeIdListe1.add(1);\n\n\n bdao.open();\n\n bdao.addBien(bien1, listeIdListe1);\n bdao.addBien(bien2, listeIdListe1);\n bdao.addBien(bien3, listeIdListe1);\n bdao.addBien(bien4, listeIdListe1);\n bdao.addBien(bien5, listeIdListe1);\n bdao.addBien(bien6, listeIdListe1);\n\n bdao.close();\n }", "private GestionBD(){\r\n\t\tlineConnection=SingleDBConnection.getConexionBD().conectarBD();\r\n\t}", "@Override\r\n\tpublic Database getDefaultDatabase() {\r\n\t\treturn databases.getDatabase( \"default\" );\r\n\t}", "public Database initDB() {\n Database db = new Database(\"dataBase.db\");\n\n// db.insertData(\"1 Dragos Dinescu [email protected] 0744522600 Digi 10-12-2020\");\n// db.insertData(\"2 Adelina Mirea [email protected] 0733651320 Orange 14-10-2020\");\n// db.insertData(\"3 Radu Sorostinean [email protected] 0733723321 Digi 1-10-2020\");\n// db.insertData(\"4 Andrei Brasoveanu [email protected] 0732341390 Vodafone 12-11-2020\");\n return db;\n\n //db.deleteFromDB();\n //db.updateDB(\"1 alex radu [email protected] 022256926 orange 10/08/2010\");\n }", "@Before\n public void init() throws ConnectionException, IOException {\n\n final ConnectionPool pool = ConnectionPool.getInstance();\n//\n final Connection connection = pool.takeConnection();\n\n final ScriptRunner scriptRunner = new ScriptRunner(connection);\n\n Reader reader = new BufferedReader(new FileReader(UserDaoTest.class.getClassLoader().getResource(\"db_v2.sql\").getPath()));\n\n scriptRunner.runScript(reader);\n\n pool.closeConnection(connection);\n\n }", "public RecipeDataBase(){\n //recipes = new ArrayList<>();\n loadDatabase();\n \n }", "public boolean initializeDB() {\n return false;\n }", "public libroBean() throws SQLException\r\n {\r\n variables = new VariablesConexion();\r\n variables.iniciarConexion();\r\n conexion=variables.getConexion();\r\n \r\n }", "private void limpiarDatos() {\n\t\t\n\t}", "@Override\r\n\tpublic String getDataBaseName(String[] sql) {\n\t\treturn UsedDataBase.getUsedDataBase();\r\n\t}", "private void BorrarBBDD() {\n\t\tSQLiteHelper usdbh = new SQLiteHelper(this, \"baseDeDatos\", null, 1);\n\n\t\tSQLiteDatabase db = usdbh.getReadableDatabase();\n\n\t\t// Si hemos abierto correctamente la base de datos\n\t\tif (db != null) {\n\t\t\t// Consultamos el valor esLaPrimeraVez\n\t\t\tdb.execSQL(\"DELETE from Tarjetas;\");\n\n\t\t\tdb.close();\n\t\t}\n\t}", "private boolean init() {\n\t\tString sql = \"SELECT v FROM user WHERE k='version'\";\t// TODO right now we are care only about is table exists of not\n //init_required = true;\n\t\tif (!this.r(sql)) {\n\t\t\tsql= \"CREATE TABLE user ( k CHAR(50), v TEXT );\";\n\t\t\tthis.r(sql);\n\t\t\tsql= \"CREATE UNIQUE INDEX kindex on user (k);\";\n\t\t\tthis.r(sql);\n\t\t\tsql= \"INSERT INTO user (k,v) VALUES ('version','1'), ('login',''), ('password',''), ('remember','1');\";\n\t\t\treturn this.r(sql);\n\t\t}\n\t\treturn true;\n\t}", "public static void main(String[] args) {\n Connection connection = null;\r\n\r\n try{\r\n // establezco la connecion con la base de datos jdbc en el puerto 3306 con usuario y contrasenia root\r\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/jdbc\",\"root\",\"root\");\r\n // pongo auto commit en false esto hace que no se comite cada cueri y que se cada vez que lance\r\n // el comando commit se ejecuta el bloque query\r\n connection.setAutoCommit(false);\r\n\r\n // hago la sentencia preparada\r\n PreparedStatement preparedStatement = connection.prepareStatement(\"INSERT INTO estudiante (dni, nombre, apellido) VALUES (?, ?, ?);\");\r\n // modifico los \"?\" de la sentencia preparada con mis datos\r\n preparedStatement.setInt(1,40640217);\r\n preparedStatement.setString(2,\"Santiago\");\r\n preparedStatement.setString(3,\"Lampropulos\");\r\n\r\n // ejecuto la consulta preparada\r\n preparedStatement.executeUpdate();\r\n\r\n //traigo los datos de la tabla estudiante\r\n ResultSet resultSet = preparedStatement.executeQuery(\"SELECT * FROM estudiante\");\r\n\r\n // realizo el commit para que se guarden los cambios\r\n connection.commit();\r\n\r\n //muestro toda la tabla\r\n while(resultSet.next()){\r\n System.out.println(resultSet.getString(2)+\"\\t\"+resultSet.getString(\"nombre\")+\"\\t\"+resultSet.getString(\"apellido\"));\r\n }\r\n\r\n }catch (SQLException exceptionConnection){\r\n System.out.println(exceptionConnection);\r\n try{\r\n // si se creo la base de datos revierte el commit que se hizo\r\n if(connection!=null){\r\n connection.rollback();\r\n }\r\n }catch (SQLException exceptionCarth){\r\n //atrapo excepciones\r\n System.out.println(exceptionCarth);\r\n }\r\n\r\n\r\n }finally {\r\n // el bloque finally se ejecute sin inportar si viene de un catch o del try\r\n try{\r\n //si se crea una coneccion con base de datos la cierro\r\n if(connection!= null){\r\n connection.close();\r\n }\r\n }catch (SQLException eFinally){\r\n //atrapo excepciones\r\n System.out.println(eFinally);\r\n }\r\n }\r\n\r\n }", "private boolean checkDataBase() {\r\n SQLiteDatabase checkDB = null;\r\n try {\r\n checkDB = SQLiteDatabase.openDatabase(\"/data/data/me.shubhamgoswami.adharshilasurvey/adharShila.db\", null,\r\n SQLiteDatabase.OPEN_READONLY);\r\n checkDB.close();\r\n } catch (SQLiteException e) {\r\n // database doesn't exist yet.\r\n }\r\n return checkDB != null;\r\n }", "public static MongoDatabase loadAll() throws UnknownHostException\r\n\t{\n\t\tmongoClient = new MongoClient(\"localhost\");\r\n\t\tDB dataBase = mongoClient.getDB(\"prism\");\r\n\t\t//\t\tboolean auth = dataBase.authenticate(myUserName, myPassword);\r\n\r\n\t\t// initialize AccManager\r\n\t\tMongoDatabase db = new MongoDatabase(dataBase);\r\n\r\n\t\t//\t\tString name = \"lara\";\r\n\t\t//\t\tAccount a = new Account(new Text(name), new byte[32], name + \"@gmx.de\", new Date(), new Date());\r\n\t\t//\t\tam.createAccount(a);\r\n\t\t//\t\tam.findAccount(a.getAccName());\r\n\t\t//\r\n\t\t//\t\tList<String> list = mongoClient.getDatabaseNames();\r\n\t\t//\t\tSystem.out.print(\"databases: \");\r\n\t\t//\t\tfor (String s : list)\r\n\t\t//\t\t\tSystem.out.print(s + \", \");\r\n\t\t//\t\tSystem.out.println(\" (\" + list.size() + \")\");\r\n\t\t//\t\t// ----------------\r\n\t\t//\t\tDB db = mongoClient.getDB(\"test\");\r\n\t\t//\t\t//\t\t\tboolean auth = db.authenticate(myUserName, myPassword);\r\n\t\t//\r\n\t\t//\t\tSet<String> list2 = db.getCollectionNames();\r\n\t\t//\t\tSystem.out.print(\"collections: \");\r\n\t\t//\t\tfor (String s : list2)\r\n\t\t//\t\t\tSystem.out.print(s + \", \");\r\n\t\t//\t\tSystem.out.println(\" (\" + list2.size() + \")\");\r\n\t\t//\t\t// ----------------\r\n\t\t//\t\tDBCollection coll = db.getCollection(\"test\");\r\n\t\t//\t\tlong n = coll.count();\r\n\t\t//\t\tSystem.out.println(\"collection count: \" + n);\r\n\t\t//\t\t// ----------------\r\n\t\t//\r\n\t\t//\t\tSystem.out.print(\"done\");\r\n\r\n\t\treturn db;\r\n\t}", "private void GetData(){\n try {\n Connection conn =(Connection)app.pegawai.Database.koneksiDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet sql = stm.executeQuery(\"select * from user\");\n data.setModel(DbUtils.resultSetToTableModel(sql));\n\n }\n catch (SQLException | HeadlessException e) {\n }\n}", "private void loadMaTauVaoCBB() {\n cbbMaTau.removeAllItems();\n try {\n ResultSet rs = LopKetNoi.select(\"select maTau from Tau\");\n while (rs.next()) {\n cbbMaTau.addItem(rs.getString(1));\n }\n } catch (Exception e) {\n System.out.println(\"Load ma tau vao cbb that bai\");\n }\n\n }", "private static void readDatabase(String path) {\n try {\n FileInputStream fileIn = new FileInputStream(path + \"/database.ser\");\n ObjectInputStream inStream = new ObjectInputStream(fileIn);\n database = (Database) inStream.readObject();\n inStream.close();\n fileIn.close();\n } catch (IOException i) {\n i.printStackTrace();\n } catch (ClassNotFoundException c) {\n c.printStackTrace();\n }\n }", "public Biodata() {\n initComponents();\n //pemanggilan fungsi koneksi database yang sudah kita buat pada class koneksi.java\n ConnectionDB DB = new ConnectionDB();\n DB.config();\n con = DB.con;\n stat = DB.stm;\n pst = DB.pst;\n data_table_mahasiswa();\n }", "public ServiceDAO(){\n\t\t\n\t\tString[] tables = new String[]{\"CUSTOMERS\",\"PRODUCTS\"};\n\t\tfor(String table:tables){\n\t\t\tif(!checkIfDBExists(table)){\n\t\t\t\ttry{\n\t\t\t\t\tnew DerbyDataLoader().loadDataFor(table);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tlogger.error(\"Error Loading the Data into the Derby\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void initDB() {\n dataBaseHelper = new DataBaseHelper(this);\n }", "private void loadFromDB() throws SQLException {\n\t\tif (rev_page != -1)\n\t\t\treturn;\n\t\t\n\t\tPreparedStatement stmt = dbc.prepareStatement(\n\t\t\t\t\"SELECT rev_page, rev_text_id, rev_timestamp, rev_comment, user_name \" +\n\t\t\t\t\"FROM revision, users WHERE rev_id = ? AND rev_user = user_id\");\n\t\tstmt.setInt(1, rev_id);\n\t\tstmt.execute();\n\n\t\tResultSet rs = stmt.getResultSet();\n\t\tif (!rs.next()) {\n\t\t\t/*\n\t\t\t * Shouldn't happen?\n\t\t\t */\n\t\t\tstmt.close();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\trev_page = rs.getInt(1);\n\t\trev_text_id = rs.getInt(2);\n\t\trev_timestamp = rs.getTimestamp(3);\n\t\trev_comment = rs.getString(4);\n\t\trev_user_text = rs.getString(5);\n\t\tstmt.close();\n\t}", "public String ejecutarCodigoSQLtablas(String nombrearchivo )\r\n\t{\r\n\t\tString codigosqlcrebas=\"\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tFileReader codigoarchivo = new FileReader ( \"./images/BD/\"+nombrearchivo );\r\n\t\t\tBufferedReader reader = new BufferedReader (codigoarchivo);\r\n\t\t\tString codigo = reader.readLine();\r\n\t\t\twhile(codigo!= null)\r\n\t\t\t{\r\n\t\t\t\tcodigosqlcrebas+=codigo+\"\\n\";\r\n\t\t\t\tcodigo = reader.readLine();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t}\r\n\t\treturn codigosqlcrebas;\r\n\t}", "@Override\r\n public void onStart(){\r\n super.onStart();\r\n\r\n if (bd==null) { // Abrimos a base de datos para escritura\r\n bd = new BaseDatos(this);\r\n bd.sqlLiteDB = bd.getWritableDatabase();\r\n }\r\n }", "private void cargarDatosDefault() {\n\t\tPersonasJSON personas = new PersonasJSON();\n\t\tpersonas = personas.leerJSON(\"src/datosJSON/Personas.JSON\");\n\t\t\n\t\tfor(int i=0 ; i<personas.getCantidadPersonas(); i++) {\n\t\t\t\n\t\t\tString nombre = personas.getPersona(i).getNombre();\n\t\t\tint deporte = personas.getPersona(i).getDeporte();\n\t\t\tint musica = personas.getPersona(i).getMusica();\n\t\t\tint espectaculo = personas.getPersona(i).getEspectaculo();\n\t\t\tint ciencia = personas.getPersona(i).getCiencia();\n\t\t\t\n\t\t\tmodel.addRow(new String[]{ nombre, String.valueOf(deporte), String.valueOf(musica),\n\t\t\t\t\tString.valueOf(espectaculo), String.valueOf(ciencia) });\n\t\t}\n\t\t\n\t\tdatos.addAll(personas.getTodasLasPersonas());\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 }", "@Test\r\n public void testRead() throws Exception {\r\n System.out.println(\"read\");\r\n int idbureau = 0;\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n Bureau obj = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n Bureau expResult = instance.create(obj);\r\n idbureau=expResult.getIdbur();\r\n Bureau result = instance.read(idbureau);\r\n assertEquals(\"sigles différents\",expResult.getSigle(), result.getSigle());\r\n assertEquals(\"tel différents\",expResult.getTel(), result.getTel());\r\n //etc\r\n assertEquals(\"id différents\",expResult.getIdbur(),result.getIdbur());\r\n try{\r\n result=instance.read(0);\r\n fail(\"exception d'id inconnu non générée\");\r\n }\r\n catch(SQLException e){}\r\n instance.delete(result);\r\n }", "private void init() {\r\n if (_connInfo == null) {\r\n try {\r\n _connInfo = _conn.getMetaData();\r\n\r\n String dbProdVer = _connInfo.getDatabaseProductVersion();\r\n\r\n /* Some examples for the returned product version of Oracle DBs:\r\n * Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production\r\n * With the Partitioning, OLAP and Oracle Data Mining options\r\n * JServer Release 9.2.0.5.0 - Production\r\n * \r\n * Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production\r\n * With the Partitioning, OLAP and Data Mining options\r\n */\r\n\r\n String word = null;\r\n\r\n // search for the substring \"Release\" and read the following version number\r\n int idx = dbProdVer.indexOf(RELEASE);\r\n if (idx != -1) {\r\n idx += RELEASE_LENGTH;\r\n\r\n int n = dbProdVer.indexOf(' ', idx);\r\n word = (n != -1) ? dbProdVer.substring(idx, n) : dbProdVer.substring(idx);\r\n\r\n if (Character.isDigit(word.charAt(0))) { _dbVersion = word; }\r\n }\r\n\r\n if (_dbVersion == null) {\r\n // find the first numeric word in the version string \r\n int i = 0;\r\n while (true) {\r\n int n = dbProdVer.indexOf(' ', i);\r\n word = (n != -1) ? dbProdVer.substring(i, n) : dbProdVer.substring(i);\r\n\r\n if (Character.isDigit(word.charAt(0))) {\r\n _dbVersion = word;\r\n break;\r\n }\r\n\r\n if (n == -1) { break; }\r\n\r\n i = n + 1;\r\n }\r\n }\r\n } catch (SQLException e) {\r\n _dbVersion = \"\";\r\n _log.error(e);\r\n }\r\n }\r\n }", "public void init() {\n\t\tTypedQuery<Personne> query = em.createQuery(\"SELECT p FROM Personne p\", Personne.class);\n\t\tList<Personne> clients = query.getResultList();\n\t\tif (clients.size()==0) {\n\t\t\tSqlUtils.executeFile(\"exemple.sql\", em);\n\t\t}\n\t}", "public void initDb() {\n String createVac = \"create table if not exists vacancies(id serial primary key,\"\n + \"name varchar(1500) NOT NULL UNIQUE, url varchar (1500), description text, dateVac timestamp);\";\n try (Statement st = connection.createStatement()) {\n st.execute(createVac);\n } catch (SQLException e) {\n LOG.error(e.getMessage());\n }\n }", "private static void dbempresasNotExists(){\n new Thread(() -> {\n \n try {\n \n //Grt the connection params to dbempresas\n final ConfigFileModel ConfigFileModel = ConfigFileUtil.getSingleton().getConfigFileModel();\n \n //Create the jdbc datanase\n MysqlScriptsUtil.getInstance().creaDBJDBC(ConfigFileModel.getDb(), ConfigFileModel.getUser(), ConfigFileModel.getPassword(), ConfigFileModel.getInstance(), Integer.valueOf(ConfigFileModel.getPort()));\n \n //Create hibernate schemes and initial connection for dbempresas\n HibernateUtil.getSingleton().createDbEmpresas(); \n \n //Insert base catalogs in dbempresa\n MysqlScriptsUtil.getInstance().loadDBEmpresasCatalogFileIntoDatabase(ConfigFileModel.getDb(), ConfigFileModel.getUser(), ConfigFileModel.getPassword(), ConfigFileModel.getInstance(), Integer.valueOf(ConfigFileModel.getPort()));\n \n //Continue with the normal system flow\n veryLicense();\n \n } catch (Exception ex) {\n LoggerUtility.getSingleton().logError(Start.class, ex);\n\n try {\n //Rollback\n final HibernateConfigModel HibernateConfigModel_ = HibernateUtil.getSingleton().getHibernateConfigModelDbempresas();\n MysqlScriptsUtil.getInstance().rollbackDBEmpresas(HibernateConfigModel_.getUser(), HibernateConfigModel_.getPassword(), HibernateConfigModel_.getInstance(), HibernateConfigModel_.getPort());\n \n } catch (Exception ex1) {\n LoggerUtility.getSingleton().logError(Start.class, ex1);\n }\n \n ViewsFactory.getSingleton().getDialogJFrame(ex.getMessage()).setVisible();\n \n System.exit(-1);\n }\n \n }).start();\n }", "public void cargarTabla(String servidor){\n String base_de_datos=\"Renta de Autos\";\n String sql =\"USE [\"+base_de_datos+\"]\\n\" +\n \"SELECT name FROM sysobjects where xtype='U' and name='Clientes' \";\n Conexion cc = new Conexion();\n Connection cn=cc.conectarBase(servidor, base_de_datos);\n \n try {\n Statement psd = cn.createStatement();\n ResultSet rs=psd.executeQuery(sql);\n while(rs.next()){\n cbTablas.addItem(rs.getString(\"name\"));\n }\n }catch(Exception ex){\n JOptionPane.showMessageDialog(null, ex+\" al cargar tabla\");\n }\n }", "public boolean initializeDatabase() {\n try {\n initializeCategory();\n initializeExpense();\n initializeIncome();\n initializeBalance();\n initializeUser();\n } catch (Throwable t) {\n\n System.out.println(t.getMessage());\n return false;\n }\n return true;\n }", "private synchronized void initializeData() {\n\n System.out.println(\"En inicializar datos\");\n // Only perform initialization once per app lifetime. If initialization has already been\n // performed, we have nothing to do in this method.\n if (mInitialized) return;\n mInitialized = true;\n\n mExecutors.diskIO().execute(() -> {\n if (isFetchNeeded()) {\n System.out.println(\"Se necesita actualizar, fetch is needed\");\n startFetchPublicacionService();\n }\n });\n }", "public String getDatabase();", "public INF_BBDD loadFromDB(String sNombre)\n {\n StringBuffer sSQL=new StringBuffer(\"SELECT ID_BBDD,NOMBRE,DRIVER,URL,USUARIO,CLAVE,JNDI FROM INF_BBDD WHERE NOMBRE like ?\");\n Vector vParams=new Vector();\n\n vParams.add(sNombre);\n Vector vRtado = new Vector();\n try {\n AbstractDBManager dbm = DBManager.getInstance();\n vRtado=dbm.executeQuery(sSQL.toString(),vParams);\n }\n catch(Exception e) {\n //-- Tratamiento de la excepcion\n return null;\n }\n\n if(vRtado!=null && !vRtado.isEmpty()) {\n setElement( (Vector)vRtado.firstElement() );\n }\n\n return this;\n }", "public void firstTest() throws SQLException, ServicesException{\n Connection conn=getConnection();\n Statement stmt=conn.createStatement();\n Services servicios = Services.getInstance(\"h2-applicationconfig.properties\");\n PrestamoUsuario prestamo =null;\n try {\n //Insercion en BD\n stmt.execute(\"INSERT INTO ROLES(rol) values ('estudiante')\");\n stmt.execute(\"INSERT INTO USUARIOS (id,nombre,correo,contrasena) VALUES (124,'PEDRO PEREZ','[email protected]','1test1')\");\n stmt.execute(\"INSERT INTO ROLES_USUARIOS(USUARIOS_id,ROLES_rol) values (124,'estudiante')\");\n stmt.execute(\"INSERT INTO MODELOS (nombre,clase,vidaUtil,valor,seguro,foto) values ('modelo1','abcd',100,200000,true,null)\"); \n stmt.execute(\"INSERT INTO EQUIPOS (serial,nombre,placa,marca,descripcion,estado,subestados,proveedor,Modelos_nombre) VALUES (123,'Multimetro',456,'falsa','Equipo funcional y de buena calidad','activo','almacen','Leonardo Herrera','modelo1')\");\n stmt.execute(\"INSERT INTO PRESTAMOS (USUARIOS_id,EQUIPOS_serial,fechaExpedicion,fechaVencimiento,tipoPrestamo) VALUES (124,123,'2015-01-01 00:00:00',null,'prestamo diario')\");\n conn.commit();\n conn.close(); \n } catch (SQLException ex) {\n Logger.getLogger(DevolucionTest.class.getName()).log(Level.SEVERE, null, ex);\n conn.rollback();\n conn.close();\n }\n Set<PrestamoUsuario> prestamos = servicios.loadPrestamos();\n for (PrestamoUsuario p:prestamos){\n \n }\n }", "public ArrayList<Mascota> obtenerDatos(){\n\n BaseDatos db = new BaseDatos(context);\n\n ArrayList<Mascota> aux = db.obtenerTodoslosContactos();\n\n if(aux.size()==0){\n insertarMascotas(db);\n aux = db.obtenerTodoslosContactos();\n }\n\n return aux;\n }", "public RepositorioPalestraScript(Context ctx) {\n\t\t// Criar utilizando um script SQL\n\t\tdbHelper = new SQLiteHelper(ctx, RepositorioPalestraScript.NOME_BANCO, RepositorioPalestraScript.VERSAO_BANCO,\n\t\t\t\tRepositorioPalestraScript.SCRIPT_DATABASE_CREATE, RepositorioPalestraScript.SCRIPT_DATABASE_DELETE);\n\n\t\t// abre o banco no modo escrita para poder alterar tamb�m\n\t\tdb = dbHelper.getWritableDatabase();\n\t}", "private boolean checkDataBase()\r\n {\r\n SQLiteDatabase checkDB = null;\r\n try {\r\n String myPath = DB_PATH;\r\n checkDB\r\n = SQLiteDatabase\r\n .openDatabase(\r\n myPath, null,\r\n SQLiteDatabase.OPEN_READONLY);\r\n }\r\n catch (SQLiteException e) {\r\n\r\n // database doesn't exist yet.\r\n Log.e(\"message\", \"\" + e);\r\n }\r\n if (checkDB != null) {\r\n checkDB.close();\r\n }\r\n return checkDB != null;\r\n }", "public List<Brands> LoadAllBrands() {\n Brands brands = null;\n List<Brands> brandsList = new ArrayList<>();\n try {\n Connection connection = DBConnection.getConnectionToDatabase();\n // String sql = \"SELECT * FROM `humusam_root`.`Users` WHERE UserEmail=\" + email;\n String sql = \"SELECT * FROM `brands`\";\n Statement statment = connection.createStatement();\n ResultSet set = statment.executeQuery(sql);\n ListBrands(brandsList, set);\n } catch (SQLException exception) {\n System.out.println(\"sqlException in Application in LoadAllBrands Section : \" + exception);\n exception.printStackTrace();\n }\n\n return brandsList;\n }", "private ServerError updateDatabase() {\n return updateDatabase(WebConf.DB_CONN, WebConf.JSON_OBJECTS, WebConf.DEFAULT_VERSION);\r\n }", "private boolean checkDataBase() {\n\n SQLiteDatabase checkDB = null;\n\n try {\n String myPath = DB_PATH + DATABASE_NAME;\n checkDB = SQLiteDatabase.openDatabase(myPath, null,\n SQLiteDatabase.OPEN_READONLY);\n\n } catch (SQLiteException e) {\n\n // database doesn't exist yet.\n Log.d(\"DATABASE\",\"Database doesn't exist yet.\");\n }\n\n if (checkDB != null) {\n checkDB.close();\n }\n return checkDB != null;\n }", "public List<String> getAllDatabase() throws Exception {\n\t\treturn null;\n\t}", "private void connectDatabase(){\n }", "private DatosDeSesion() throws ExcepcionArchivoDePropiedadesNoEncontrado {\r\n this.poolDeConexiones = new PoolDeConexiones();\r\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 }", "public Cubo carregaMetaDadosDeCuboDinamicamente() throws SQLException{\n\t\t\n\t\tCubo cube = new Cubo(\"Vendas_ii_Automatico\", \"localhost\", null, \"jdbc:postgresql://localhost:5432/vendas\", \"kim\", \n\t\t\t\t\"kim\", \"org.postgresql.Driver\", new Long(30000).longValue());\n\t\t\n\t\tcube.setURIService(\"http://localhost:8443/wsrf/services/cube/Cube\");\n\t\t\n\t\tCubeServiceControl.setCubeMetaData(cube);\n\t\t\n\t\tSystem.out.println(\"Cubo Criado dinamicamente:\\n\" + cube.imprimir(System.out));\n\t\t\n\t\treturn cube;\n\t}", "public boolean connectDB(){\r\n\t\ttry{\r\n\t\t\t//Lo primero es cargar el controlador MySQL el cual automáticamente se registra\r\n\t\t\tClass.forName(CONTROLADOR_MYSQL);\r\n\t\t\t//Conectarnos a la BBDD\r\n\t\t\tconexion = DriverManager.getConnection(this.url,this.user,this.pass);\r\n\t\t}\r\n\t\tcatch( SQLException excepcionSql ) \r\n\t\t{\r\n\t\t\texcepcionSql.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tcatch( ClassNotFoundException noEncontroClase)\r\n\t\t{\r\n\t\t\tnoEncontroClase.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private void readFromDb() {\n mMonthsList.clear();\n if(mDatabaseHandler.getMonthsList()!=null) {\n mMonthsList = mDatabaseHandler.getMonthsList();\n setMonthListAdapter(mMonthsList);\n }\n else\n LoggerUtility.makeShortToast(HomeActivity.this,getString(R.string.error_empty_database));\n }", "public DataManager() {\n\t\tthis(PUnit == null ? \"eElectionsDB\" : PUnit);\n\t}", "public ArrayList < Dataclass > getData() {\n ArrayList < Dataclass > dataList = new ArrayList < Dataclass > ();\n Connection connection = getConnection();\n String query = \"SELECT * FROM `przychodnia` \";\n if (option == 1) query = \"SELECT * FROM `lekarz` \";\n if (option == 2) query = \"SELECT * FROM `wizyta` \";\n if (option == 3) query = \"SELECT * FROM `badanie` \";\n Statement st;\n ResultSet rs;\n\n try {\n st = connection.createStatement();\n rs = st.executeQuery(query);\n Dataclass dc;\n while (rs.next()) {\n if (option == 1) dc = new Dataclass(rs.getInt(\"ID\"), rs.getString(\"Imię\"), rs.getString(\"Nazwisko\"), rs.getString(\"Specjalizacja\"), rs.getInt(\"ID_Przychodni\"));\n else if (option == 2) dc = new Dataclass(rs.getInt(\"ID\"), rs.getString(\"Data\"), rs.getString(\"Opis Badania\"), rs.getString(\"Imię i nazwisko pacjenta\"), rs.getInt(\"ID_Lekarza\"));\n else if (option == 3) dc = new Dataclass(rs.getInt(\"ID\"), rs.getString(\"Data\"), rs.getBlob(\"Załącznik\"));\n else dc = new Dataclass(rs.getInt(\"ID\"), rs.getString(\"Nazwa\"), rs.getString(\"Adres\"), rs.getString(\"Miasto\"));\n dataList.add(dc);\n }\n } catch (Exception e) {\n System.err.print(e);\n }\n return dataList;\n }", "public JPMetaDados() {\n initComponents();\n postgresElicitedBases = FacadePostgresElicitedBases.getPostgresElicitedBases();\n// MetodosUtil.setCombo(jCSGBD);\n jCSGBD.addItemListener(new ComboListener(this));\n }", "public ConexionDB() {\n\n\t\tconn = null;\n\n\t}", "public static Connection CrearConexion(){\n String clave=\"inacap\";\r\n String usuario=\"inacap\";\r\n String url=\"jdbc:derby://localhost:1527/aereopuerto\";\r\n \r\n //crear conexion a la Base de datos\r\n \r\n try{\r\n Connection conn=DriverManager.getConnection(url,usuario,clave);\r\n return conn;\r\n }\r\n catch(SQLException e){\r\n System.out.println(\"Excepcion de sql:\"+e);\r\n return null;\r\n }\r\n \r\n \r\n }", "public Connection conectarBD() {\n\t\tConnection con = null;\t\t\n\t\t\n\t\ttry {\n\t\t\tProperties p = new Properties();\n\t\t\tp.load(new FileInputStream(\"config/parametros.txt\"));\n\t\t\tdriver = p.getProperty(\"driver\");\n\t\t\tClass.forName(driver);\n\t\t\t//System.out.println(\"driver: \" + driver);\n\t\t\t\n\t\t\tusername = p.getProperty(\"usuario\");\n\t\t\tpass = p.getProperty(\"password\");\n\t\t\turl = p.getProperty(\"url\");\n\t\t\tbase = p.getProperty(\"bdatos\");\n\t\t\t\n\t\t\tcon = DriverManager.getConnection(url + base, username, pass);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\treturn con;\n\t}", "public List<Result> loadResults() {\n List<Result> results = null;\n try {\n DataBaseBroker dbb = new DataBaseBroker();\n dbb.loadDriver();\n dbb.establishConnection();\n results = dbb.loadResults();\n dbb.commit();\n dbb.closeConnection();\n } catch (Exception ex) {\n Logger.getLogger(GameDBLogic.class.getName()).log(Level.SEVERE, null, ex);\n }\n return results;\n }", "public AppModel() throws SQLException, ClassNotFoundException, IOException {\n modelLogger.debug(\"Mode logger\");\n dataBaseConnector = new DataBaseDownloader(\"jdbc:mysql://mysql.agh.edu.pl:3306/mtobiasz\",\"mtobiasz\", \"csjH6UN5BPS7VvYY\");\n String buyTableName = \"exchange_buy\";\n String sellTableName = \"exchange_sell\";\n buyMap = dataBaseConnector.getKeysAndVals(buyTableName);\n sellMap = dataBaseConnector.getKeysAndVals(sellTableName);\n }", "@Override\n public void onCreate(SQLiteDatabase db) {\n //SQLiteDatabase es semejante al session de hibernate\n ejecutarScript(db,R.array.scriptCreate);\n }", "public static JdbcOption getDefaultDatabaseFromFile(String configFile) throws Exception {\n\t\tJdbcOption jdbc = new JdbcOption();\n\n\t\tDocument document;\n\t\tFile file = new File(configFile);\n\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\t\tfactory.setNamespaceAware(true);\n\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\tdocument = builder.parse(file);\n\n\t\tElement root = document.getDocumentElement();\n\n\t\tNodeList nodeList = root.getElementsByTagName(Constants.XML_TAG_DATASOURCE);\n\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\n\t\t\tNode node = nodeList.item(i);\n\t\t\tNamedNodeMap attrs = node.getAttributes();\n\t\t\tString isDefault = getText(attrs, Constants.XML_TAG_DEFAULT);\n\n\t\t\tif (!\"\".equals(nullToString(isDefault)) && Boolean.valueOf(nullToString(isDefault))) {\n\t\t\t\t// isDefault 값이 null이 아니고 true인 경우 - default return\n\t\t\t\tString name = getText(attrs, Constants.XML_TAG_NAME);\n\t\t\t\tString type = getText(attrs, Constants.XML_TAG_TYPE);\n\t\t\t\tString driverJar = getText(attrs, Constants.XML_TAG_DRIVER_PATH);\n\t\t\t\tString driverClassName = getText(attrs, Constants.XML_TAG_DRIVER_CLASS_NAME);\n\t\t\t\tString url = getText(attrs, Constants.XML_TAG_URL);\n\t\t\t\tString username = getText(attrs, Constants.XML_TAG_USERNAME);\n\t\t\t\tString password = EncryptUtil.decrypt(getText(attrs, Constants.XML_TAG_PASSWORD));\n\t\t\t\tString schema = getText(attrs, Constants.XML_TAG_SCHEMA);\n\t\t\t\tString dialect = getText(attrs, Constants.XML_TAG_DIALECT);\n\t\t\t\tString driverGroupId = getText(attrs, Constants.XML_TAG_DRIVER_GROUPID);\n\t\t\t\tString driverArtifactId = getText(attrs, Constants.XML_TAG_DRIVER_ARTIFACTID);\n\t\t\t\tString driverVersion = getText(attrs, Constants.XML_TAG_DRIVER_VERSION);\n\t\t\t\tString useDbSpecific = getText(attrs, Constants.XML_TAG_USE_DB_SPECIFIC);\n\t\t\t\tString runExplainPlan = getText(attrs, Constants.XML_TAG_RUN_EXPLAIN_PLAN);\n\n\t\t\t\tjdbc.setDbName(name);\n\t\t\t\tjdbc.setDbType(type);\n\t\t\t\tjdbc.setDriverJar(driverJar);\n\t\t\t\tjdbc.setDriverClassName(driverClassName);\n\t\t\t\tjdbc.setUrl(url);\n\t\t\t\tjdbc.setUserName(username);\n\t\t\t\tjdbc.setPassword(password);\n\t\t\t\tjdbc.setSchema(schema);\n\t\t\t\tjdbc.setDialect(dialect);\n\t\t\t\tjdbc.setMvnGroupId(driverGroupId);\n\t\t\t\tjdbc.setMvnArtifactId(driverArtifactId);\n\t\t\t\tjdbc.setMvnVersion(driverVersion);\n\t\t\t\tjdbc.setUseDbSpecific(Boolean.valueOf(useDbSpecific));\n\t\t\t\tjdbc.setRunExplainPaln(Boolean.valueOf(runExplainPlan));\n\t\t\t\tjdbc.setDefault(Boolean.valueOf(isDefault));\n\t\t\t}\n\t\t}\n\t\treturn jdbc;\n\t}" ]
[ "0.64629835", "0.61097157", "0.60420525", "0.58726716", "0.58613724", "0.5853864", "0.58377206", "0.57855374", "0.57504666", "0.5744127", "0.5727763", "0.5708513", "0.5653248", "0.56314164", "0.5630682", "0.5581271", "0.55531585", "0.5532131", "0.5526152", "0.5510032", "0.5509569", "0.5498693", "0.5484599", "0.54759055", "0.54707634", "0.5459683", "0.5459424", "0.5458368", "0.5455882", "0.54174995", "0.54128003", "0.53541154", "0.5346558", "0.53395176", "0.5329229", "0.53271496", "0.5320941", "0.5317685", "0.5306134", "0.5303913", "0.52919906", "0.52863276", "0.5278605", "0.527818", "0.5271301", "0.52660066", "0.52469873", "0.52348536", "0.5228748", "0.5228049", "0.52271557", "0.52263194", "0.5225254", "0.52202314", "0.5214299", "0.5211392", "0.5209601", "0.5207243", "0.52048975", "0.5204743", "0.5195537", "0.51878154", "0.51833296", "0.5178229", "0.51748407", "0.5172205", "0.5169773", "0.51690495", "0.5167357", "0.5162418", "0.515811", "0.5155759", "0.51550555", "0.51544046", "0.5153825", "0.51506", "0.51377344", "0.513293", "0.5116981", "0.5103378", "0.51000106", "0.50835586", "0.5078888", "0.50727844", "0.5072514", "0.5068219", "0.5059985", "0.5055021", "0.50521064", "0.50498223", "0.50430226", "0.5040761", "0.5040383", "0.5037654", "0.5037512", "0.50357056", "0.5035213", "0.50352013", "0.50306624", "0.5029208", "0.5028418" ]
0.0
-1
/ verificamos que la oldVersion sea siempre menor a newVersion si no es este el caso lanzar una excepcion y solicitar la reinstalacion de la aplicacion desde cero
@Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { if (oldVersion > newVersion) { // TODO: lanzar excepcion } else { /* * por cada version de base de datos existe un script que actualiza * la misma a su version inmediata superior, ejecutar cada uno de * los scripts desde la version inicial (oldVersion) hasta la * version final (newVersion), esto para no crear archivos cada vez * mas grandes, sino simplemente ir actualizando la base a versiones * inmediatamente superiores hasta llegar a la version final */ for (int versionToUpgrade = oldVersion + 1; versionToUpgrade <= newVersion; versionToUpgrade++) { executeSQLScript(db, "sql/cstigo_v" + (versionToUpgrade - 1) + "to" + versionToUpgrade + ".sql"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic boolean getCheckOlderVersion()\n\t{\n\t\treturn false;\n\t}", "public boolean hasNewVersion() {\n String newVersion = newVersionName();\r\n if(TextUtils.isEmpty(newVersion)) {\r\n return false;\r\n }\r\n\r\n if(newVersion.indexOf('.') == -1) {\r\n return false;\r\n }\r\n String[] newVerNums = newVersion.split(\"\\\\.\");\r\n if(newVerNums.length != 2) {\r\n return false;\r\n }\r\n\r\n int newMajorVersion = 0;\r\n try {\r\n newMajorVersion = Integer.valueOf(newVerNums[0]);\r\n } catch (NumberFormatException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n int newMinorVersion = 0;\r\n\r\n try {\r\n newMinorVersion = Integer.valueOf(newVerNums[1]);\r\n } catch (NumberFormatException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n if(newMajorVersion > mMajorVersion) {\r\n Log.i(LOG_TAG, \"find new major version update + \" + newVersionUrl());\r\n return true;\r\n } else if(newMajorVersion == mMajorVersion) {\r\n if(newMinorVersion > mMinorVersion) {\r\n Log.i(LOG_TAG, \"find new minor version update + \" + newVersionUrl());\r\n return true;\r\n }\r\n }\r\n Log.i(LOG_TAG, \"no new version found.\");\r\n\r\n return false;\r\n }", "@Override\n public boolean shouldProceedToUpgrade(String newVersion, String previousVersion) {\n return VersionComparator.isAfter(newVersion, previousVersion);\n }", "public void checkForUpdate(String currentVersion);", "@Override\n public void checkVersion() {\n }", "@Override\n public void onNoNewVersionDetected() {\n\n }", "private void checkForUpgrade() {\n try {\n\n File latestReleaseFile;\n\n if (Double.valueOf(thisVersion) >= 17) {\n latestReleaseFile = new File(\"I:\\\\support_admin\\\\scripts\\\\richmon\\\\upgradeToV17.txt\");\n }\n else {\n latestReleaseFile = new File(\"I:\\\\support_admin\\\\scripts\\\\richmon\\\\upgradeToV15.txt\");\n }\n\n BufferedReader latestRelease = new BufferedReader(new FileReader(latestReleaseFile));\n\n String latest = latestRelease.readLine();\n latest = latest.trim();\n double latestVersion = Double.valueOf(latest).doubleValue();\n String version = latest.substring(0,latest.indexOf(\".\")) + latest.substring(latest.indexOf(\".\"));\n\n\n if (latestVersion > Double.valueOf(thisVersion).doubleValue()) {\n // prompt the user suggesting an upgrade\n String msg = \"An upgrade to RichMon is available\\n\\nDo you want to Upgrade to RichMonV\" + latest +\n \" now ?\";\n\n int upgrade = JOptionPane.showConfirmDialog(this,msg,\"Upgrade\",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE);\n\n // copy new jar file to c:\\richmon\\software\\ and name if richmon.jar\n if (upgrade == 0) {\n try {\n String sourceF = \"I:\\\\support_admin\\\\scripts\\\\richmon\\\\RichMonV\" + version + \".jar\";\n String destF;\n if (Double.valueOf(thisVersion) >= 17) {\n destF = ConnectWindow.getBaseDir() + \"\\\\Software\\\\RichMon.jar\";\n }\n else {\n destF = ConnectWindow.getBaseDir() + \"\\\\Software\\\\RichMonV15.jar\";\n }\n Process p = Runtime.getRuntime().exec(\"cmd /c copy \" + sourceF + \" \" + destF);\n\n msg = \"Upgrade complete.\\n\\nBe sure to run RichMon from a shortcut on your taskbar,\\n\" +\n \"which points to ....\\\\My Documents\\\\RichMon\\\\Software\\\\RichMon.jar. (for Version 17 and above)\\n\" +\n \"or ....\\\\MyDocuments\\\\RichMon\\\\Software\\\\RichMonV15.jar (for Version 15)\\n\\n\" +\n \"Please re-start RichMon\";\n\n JOptionPane.showMessageDialog(this,msg,\"Upgrade Complete\",JOptionPane.INFORMATION_MESSAGE);\n System.exit(0);\n }\n catch (IOException ee) {\n displayError(ee,this);\n }\n }\n }\n }\n catch (Exception e) {\n // Do not display an error here, as non vf sites will not have an i drive with this directory\n // displayError(e,this);\n }\n }", "@Test\n\tpublic void testResolveOldAPIVersionByPlatformVersion()\n\t\t\tthrows Exception {\n\t\tAPIVersionResolver fixture = new APIVersionResolver();\n\n\t\tfinal String sysPropBefore = System.getProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_OLD_REST_API_VERSION);\n\t\tSystem.clearProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_OLD_REST_API_VERSION);\n\n\t\tString result = fixture.resolveOldAPIVersion();\n\t\ttry {\n\t\t\tAssert.assertEquals(PlatformVersion.getVersionNumber(), result);\n\t\t} finally {\n\t\t\tif (sysPropBefore == null) {\n\t\t\t\tSystem.clearProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_OLD_REST_API_VERSION);\n\t\t\t} else {\n\t\t\t\tSystem.setProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_OLD_REST_API_VERSION, sysPropBefore);\n\t\t\t}\n\n\t\t}\n\t}", "public boolean hasOldVersionNumber() {\n return (getVersionNumber() < CURRENT_VERSION_NO);\n }", "@Override\n\tpublic void setCheckOlderVersion(boolean paramBoolean)\n\t{\n\n\t}", "@Test\n\tpublic void testReasonerVersionOld() throws Exception {\n\t\tIPRProof proof1 = prRoot.createChild(IPRProof.ELEMENT_TYPE, null, null);\n\n\t\tfinal IProofTree proofTree = makeVersionProof(OLD_VERSION, IConfidence.DISCHARGED_MAX);\n\t\tfinal IProofTree expectedDeserialized = makeVersionProof(OLD_VERSION, IConfidence.UNCERTAIN_MAX);\n\t\tcheckProofTreeSerialization(proof1, proofTree, expectedDeserialized, true);\n\t\t// check stability for deserialized proof tree\n\t\tcheckProofTreeSerialization(proof1, expectedDeserialized, true);\n\t}", "@Override\n public void reDownloadDB(String newVersion)\n {\n }", "String process_mgr_version () throws BaseException;", "@Override\n public boolean isOutdated() {\n return false;\n }", "public RelationalStatus checkCurrentVersion() {\n try {\n\n BufferedReader in = new BufferedReader(\n new InputStreamReader(url.openStream()));\n\n String inputLine;\n while ((inputLine = in.readLine()) != null) {\n String[] ver = inputLine.split(\"\\\\.\");\n RelationalStatus rs = compareVersions(ver[0], ver[1], ver[2].split(\"-\")[0]);\n if (rs == RelationalStatus.BEHIND) {\n log.log(Level.WARNING, \"[Updater] +------------------------------------------------+\");\n log.log(Level.WARNING, \"[Updater] You are running an outdated version of the plugin!\");\n log.log(Level.WARNING, \"[Updater] Most recent stable version: \" + inputLine);\n log.log(Level.WARNING, \"[Updater] Current version: \" + getVersion());\n log.log(Level.WARNING, \"[Updater] Please update from: \");\n log.log(Level.WARNING, \"[Updater] https://www.spigotmc.org/resources/tradeshop.32762/\");\n log.log(Level.WARNING, \"[Updater] +------------------------------------------------+\");\n in.close();\n return RelationalStatus.BEHIND;\n } else if (rs == RelationalStatus.AHEAD) {\n log.log(Level.WARNING, \"[Updater] +-----------------------------------------------------+\");\n log.log(Level.WARNING, \"[Updater] You are running a developmental version of the plugin!\");\n log.log(Level.WARNING, \"[Updater] Most recent stable version: \" + inputLine);\n log.log(Level.WARNING, \"[Updater] Current version: \" + getVersion());\n log.log(Level.WARNING, \"[Updater] Please notice that the build may contain critical bugs!\");\n log.log(Level.WARNING, \"[Updater] +-----------------------------------------------------+\");\n in.close();\n return RelationalStatus.AHEAD;\n } else {\n log.log(Level.INFO, \"[Updater] You are running the latest version of the plugin!\");\n in.close();\n return RelationalStatus.UP_TO_DATE;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n log.log(Level.WARNING, \"[Updater] +----------------------------------------------------+\");\n log.log(Level.WARNING, \"[Updater] Could not establish a connection to check for updates!\");\n log.log(Level.WARNING, \"[Updater] Current version: \" + getVersion());\n log.log(Level.WARNING, \"[Updater] Please check for new updates from: \");\n log.log(Level.WARNING, \"[Updater] https://www.spigotmc.org/resources/tradeshop.32762/\");\n log.log(Level.WARNING, \"[Updater] +----------------------------------------------------+\");\n }\n return RelationalStatus.UNKNOWN;\n }", "private void checkVersion() {\n\r\n\t\tMyTask mytask = new MyTask();\r\n\t\tmytask.execute(null, null, null);\r\n\t}", "@Override\n public void onNewVersionDetected(int newVersion) {\n Log.e(\"\", \"new version \" + newVersion);\n\n }", "int getCurrentVersion();", "@Override\n\tpublic boolean upgrade() {\n\t\treturn true;\n\t}", "@Test\n public void testWantedVersionIsRequiredAlsoWhenThereIsAnOlderMajorThatDoesNotFailModelBuilding() {\n int oldMajor = 7;\n int newMajor = 8;\n Version wantedVersion = new Version(newMajor, 1, 2);\n Version oldVersion = new Version(oldMajor, 2, 3);\n List<Host> hosts = createHosts(9, oldVersion.toFullString());\n\n CountingModelFactory oldFactory = createHostedModelFactory(oldVersion);\n ModelFactory newFactory = createFailingModelFactory(wantedVersion);\n List<ModelFactory> modelFactories = List.of(oldFactory, newFactory);\n\n DeployTester tester = createTester(hosts, modelFactories, prodZone);\n\n // Not OK when failing version is requested.\n assertEquals(\"Invalid application\",\n assertThrows(IllegalArgumentException.class,\n () -> tester.deployApp(\"src/test/apps/hosted/\", wantedVersion.toFullString()))\n .getMessage());\n\n // OK when older version is requested.\n tester.deployApp(\"src/test/apps/hosted/\", oldVersion.toFullString());\n assertEquals(9, tester.getAllocatedHostsOf(tester.applicationId()).getHosts().size());\n\n // Check >0 not ==0 as the session watcher thread is running and will redeploy models in the background\n assertTrue(oldFactory.creationCount() > 0);\n }", "private static void doUpgrade(SQLiteDatabase db, Integer oldVersion) {\r\n Logger.info(Logger.Type.GHOST_SMS, \"****** last version [%s]: %s\", Names.GHOST_SMS, oldVersion);\r\n if (CURRENT_VERSION.equals(oldVersion)) {\r\n return;\r\n } else if (VERSION_1.equals(oldVersion)) {\r\n upgradeFrom_1_to_2(db);\r\n }\r\n }", "public void upgrade_2_26_6() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.26.6\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.startAndWait(25);\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.26-1.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.26.6.war\", \"root\", \"false\");\n\t\t\ttomcatHelper.startAndWait(25);\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.26-2.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.26.6 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "boolean hasCurrentVersion();", "@Override\n\t\tprotected Version doInBackground(Void... params) {\n\t\t\treturn new UpdateApk(getApplicationContext()).hasNewVersion();\n\t\t}", "public static String checkSystem(String version) {\n \n if (MainFormJFrame.cashMachine.isEnabled()) {\n try {\n \n Connection connection = SingletonConnection.getConnection();\n \n Statement statement = connection.createStatement();\n String queryString = (\"SELECT `newversion`, `maintenance` FROM system_update\");\n ResultSet rs = statement.executeQuery(queryString);\n \n String checkVersion;\n Boolean checkmaintenance;\n \n while (rs.next()) {\n \n System.out.println(rs.getString(1));\n System.out.println(rs.getBoolean(2));\n \n checkVersion = rs.getString(1);\n checkmaintenance = rs.getBoolean(2);\n \n if ((!softwareVersion.equals(checkVersion)) && (checkmaintenance.equals(softwareMaintenance))) {\n MainFormJFrame.cashMachine.changePanel(new UpdateSystemPanel());\n }\n \n else if ((!softwareVersion.equals(checkVersion)) && (!checkmaintenance.equals(softwareMaintenance)) || ((softwareVersion.equals(checkVersion)) && (!checkmaintenance.equals(softwareMaintenance)))) {\n MainFormJFrame.cashMachine.changePanel(new MaintenanceSystemPanel());\n }\n else {\n MainFormJFrame.cashMachine.changePanel(new LoginPanel());\n }\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }\n return softwareVersion;\n }", "public boolean upgrades(ApplicationVersion version) {\n return application.map(version::compareTo).orElse(0) < 0;\n }", "public static boolean instanceHasNewVersion(Object instance) {\n\n Class<?> classVersion = versions.get(instance.getClass().getName()\n .hashCode());\n\n if (DEBUG)\n System.out.println(\"instanceHasNewVersion: Class version = \"\n + classVersion);\n\n // The class has no new versions\n if (classVersion == null)\n return false;\n\n // Use reflection to obtain version object (that is added at load-time).\n Object newVersion = null;\n try {\n newVersion = instance.getClass().getField(\"_newVersion\")\n .get(instance);\n } catch (Exception e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n\n // The class has a new version, but this instance does not, or the new\n // version of this instance is not of the\n // same class that the new version of its class\n if ((classVersion != null && newVersion == null)\n || (classVersion != newVersion.getClass()))\n return true;\n\n return false;\n }", "@Test\n void testCheckForCliUpdate() throws Exception {\n\n startMetadataTestServer(RC2, false);\n meta = newDefaultInstance();\n\n // Simulate different cli versions\n\n MavenVersion cliVersionRc1 = MAVEN_VERSION_RC1;\n MavenVersion cliVersionRc2 = MAVEN_VERSION_RC2;\n MavenVersion cliVersionRc2Updated = toMavenVersion(\"2.0.0\");\n\n assertThat(meta.checkForCliUpdate(cliVersionRc2, false).isPresent(), is(false));\n\n assertThat(meta.checkForCliUpdate(cliVersionRc1, false).isPresent(), is(true));\n assertThat(meta.checkForCliUpdate(cliVersionRc1, false).orElseThrow(), is(cliVersionRc2));\n\n // Now change the metadata for RC2 such that the cli version returned is newer\n\n String updatedRc2FileName = VERSION_RC2 + \"-updated\" + File.separator + CLI_DATA_FILE_NAME;\n byte[] updatedRc2 = TestMetadata.readCliDataFile(updatedRc2FileName);\n testServer.zipData(RC2, updatedRc2);\n\n // Make sure it doesn't update now, since the update period has not expired\n\n assertThat(meta.checkForCliUpdate(cliVersionRc2, false).isPresent(), is(false));\n\n // Force expiry and validate that we get expected version update\n\n meta = newInstance(0, HOURS);\n assertThat(meta.checkForCliUpdate(cliVersionRc2, false).isPresent(), is(true));\n assertThat(meta.checkForCliUpdate(cliVersionRc1, false).orElseThrow(), is(cliVersionRc2Updated));\n }", "@Test\n\tpublic void testResolveOldAPIVersionFromSysProp()\n\t\t\tthrows Exception {\n\t\tAPIVersionResolver fixture = new APIVersionResolver();\n\n\t\tfinal String sysPropBefore = System.getProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_OLD_REST_API_VERSION);\n\t\tString value = \"10.0.0\";\n\t\tSystem.setProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_OLD_REST_API_VERSION, value);\n\n\t\tString result = fixture.resolveOldAPIVersion();\n\t\ttry {\n\t\t\tAssert.assertEquals(value, result);\n\t\t} finally {\n\t\t\tif (sysPropBefore == null) {\n\t\t\t\tSystem.clearProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_OLD_REST_API_VERSION);\n\t\t\t} else {\n\t\t\t\tSystem.setProperty(CloudifyConstants.SYSTEM_PROPERTY_CLI_OLD_REST_API_VERSION, sysPropBefore);\n\t\t\t}\n\n\t\t}\n\n\t}", "private void checkHighVersion2() throws Exception {\n\t\tBigDecimal version = editData.getVersion();\r\n\t\tString versionGroup = editData.getVersionGroup();\r\n\t\t//String oql = \"where version = '\".concat(version.toString()).concat(\"' and versionGroup = '\").concat(versionGroup).concat(\"'\");\r\n\t\tString oql = \"where version > \".concat(version.toString()).concat(\" and versionGroup = '\").concat(versionGroup).concat(\"'\");\r\n\t\t/* modified by zhaoqin for R140507-0295 on 2014/05/14 end */\r\n\t\t\r\n\t\tif (getBizInterface().exists(oql)) {\r\n\t\t\tthrow new EASBizException(new NumericExceptionSubItem(\"1\", \"存在更高版本不能进行此操作\"));\r\n\t\t}\r\n\t}", "public boolean isLastVersion();", "@SuppressWarnings(\"unused\")\n private static boolean buildingToPreviousVersion(DdlVersionBean ddlVersionBean) {\n int buildingToVersion = ddlVersionBean.getBuildingToVersion();\n \n boolean buildingToPreviousVersion = GrouperDdl.V44.getVersion() > buildingToVersion;\n\n return buildingToPreviousVersion;\n }", "public void upgrade_2_14() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.14\");\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.14.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper\n\t\t\t\t\t.setRootXml(\"cyklotron-2.14.war\", \"ledge.root\", \"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper\n\t\t\t\t\t.executeFixMethod(\"fixes.Default?action=fixes.DumpAddressFields\");\n\t\t\tcyklotronHelper\n\t\t\t\t\t.executeFixMethod(\"fixes.Default?action=fixes.UpgradeDocumentMetadata214\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.14 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "@Override\n public boolean updateInstallation() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void upgrade_2_15_2() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.15.2\");\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.15.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.15.2.war\", \"ledge.root\",\n\t\t\t\t\t\"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeFixMethod(\"fixes?action=fixes.CYKLO766\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.15.2 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "public void onVersionChanged(String oldVersion, String newVersion);", "private void checkForUpdate() {\n\t\tdouble updateversion = Double.parseDouble(MySoup.getUpdateVersion(SITE));\n\t\tdouble currentversion = Double.parseDouble(VERSION);\n\t\tif (updateversion > currentversion) {\n\t\t\tdisplayAlert(\"\", \"Update available, would you like to install it?\", this);\n\t\t}\n\t}", "public void upgrade_2_9_4() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.9.7\");\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.9-b4.rml\");\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.9-b5.rml\");\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.9.1.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-webapp-2.9.7.war\", \"ledge.root\",\n\t\t\t\t\t\"true\");\n\t\t\ttomcatHelper.start();\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper\n\t\t\t\t\t.executeFixMethod(\"fixes.Default?action=fixes.CYKLO622\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.9.7 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "public void upgrade_2_27_6() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.27.6\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.27.6.war\", \"root\", \"false\");\n\t\t\ttomcatHelper.startAndWait(25);\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.27.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.27.6 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "private static void checkForUpgrades(@Nullable List<UpdatablePackage> completedChanges) {\n if (completedChanges == null) {\n return;\n }\n int highestNewApiLevel = 0;\n for (UpdatablePackage updated : completedChanges) {\n TypeDetails details = updated.getRepresentative().getTypeDetails();\n if (details instanceof DetailsTypes.PlatformDetailsType) {\n int api = ((DetailsTypes.PlatformDetailsType)details).getApiLevel();\n if (api > highestNewApiLevel) {\n highestNewApiLevel = api;\n }\n }\n }\n if (highestNewApiLevel > 0) {\n // TODO: Fix this code after we delete WizardConstants\n PropertiesComponent.getInstance().setValue(WizardConstants.NEWLY_INSTALLED_API_KEY.name, highestNewApiLevel, -1);\n }\n }", "@Override\r\n public void setMaxVersions(int parseInt) {\n\r\n }", "public int getVersion() { return 1; }", "public static final boolean shouldUseVersions() {\n return true;\n }", "public static boolean hasNewVersion(String className) {\n return versions.get(className.hashCode()) != null;\n }", "public abstract int getVersion();", "public boolean isNewerVersionAvailable() {\n\t\tString url = \"https://raw.githubusercontent.com/kleekru/RoboTarPC/master/currentversion\";\n\t\tLOG.info(\"checking for new version at address: {}\", url);\n\t\tthis.remoteVersion = getRemoteVersion(url);\n\t\treturn isNewerVersion(remoteVersion);\n\t}", "private boolean checkFirstRun(Context context) {\n\n final String PREFS_NAME = \"com.zgsoft.prefs\";\n final String PREF_VERSION_CODE_KEY = \"version_code\";\n final int DOESNT_EXIST = -1;\n // String packageName=null;\n\n\n // Get current version code\n int currentVersionCode = 0;\n try {\n PackageInfo packageInfo =context.getPackageManager().getPackageInfo(context.getPackageName(), 0);\n currentVersionCode =packageInfo.versionCode;\n //packageName = packageInfo.packageName;\n\n } catch (android.content.pm.PackageManager.NameNotFoundException e) {\n // handle exception\n e.printStackTrace();\n return false;\n }\n\n\n // Get saved version code\n SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, android.content.Context.MODE_PRIVATE);\n int savedVersionCode = prefs.getInt(PREF_VERSION_CODE_KEY, DOESNT_EXIST);\n\n // Check for first run or upgrade\n if (currentVersionCode == savedVersionCode) {\n\n // This is just a normal run\n return false;\n\n } else {\n // Update the shared preferences with the current version code\n prefs.edit().putInt(PREF_VERSION_CODE_KEY, currentVersionCode).commit();\n return true;\n }\n\n }", "boolean hasOldConfig();", "public void upgrade_2_18_1() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.18.1\");\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.18.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.18.1.war\", \"ledge.root\",\n\t\t\t\t\t\"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.18.1 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "public void upgrade_2_19_7() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.19.7\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.19.7.war\", \"ledge.root\",\n\t\t\t\t\t\"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.19.7 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "@Test\n public void testPermitUpgradeUberNew() {\n assertFalse(underTest.permitCmAndStackUpgrade(\"2.2.0\", \"3.2.0\"));\n\n assertFalse(underTest.permitExtensionUpgrade(\"2.2.0\", \"3.2.0\"));\n }", "private void checkUpdateAvailability() {\n\t\t\n\t\t// Grab the data from the device and manifest\n\t\tString currentVersion = Utils.getProp(\"ro.ota.version\");\n\t\tcurrentVersion = currentVersion.replaceAll(\"[^0-9]\", \"\"); // Strip anyhting not a number\n\t\tString manifestVer = results.getVersion();\n\t\tmanifestVer = manifestVer.replaceAll(\"[^0-9]\", \"\");\n\n\t\t// Parse ints\n\t\tint manifestNumber = Integer.parseInt(manifestVer);\n\t\tint currentNumber = Integer.parseInt(currentVersion);\n\t\t\n\t\t// Pad out to be at least 5 digits long\n\t\t// That way, 1.2 shows bigger than 1.1.1\n\t\t// Because 12000 > 11100\n\t\t// Without this it would show 12 > 111\n\t\tif(manifestVer.length() <= 2){\n\t\t\tmanifestNumber *= 1000;\n\t\t} else if(manifestVer.length() <= 3) {\n\t\t\tmanifestNumber *= 100;\n\t\t} else if(manifestVer.length() <= 4) {\n\t\t\tmanifestNumber *= 10;\n\t\t}\n\t\t\n\t\t// Same again\n\t\tif(currentVersion.length() <= 2){\n\t\t\tcurrentNumber *= 1000;\n\t\t} else if(currentVersion.length() <= 3) {\n\t\t\tcurrentNumber *= 100;\n\t\t} else if(currentVersion.length() <= 4) {\n\t\t\tcurrentNumber *= 10;\n\t\t}\n\t\t\n\t\t// Set pref\n\t\tPreferences.setUpdateAvailable(mContext, manifestNumber > currentNumber);\n\t}", "public void checkVersion() {\r\n \ttry {\r\n \t\tURL versionInfo = new URL(versionURL);\r\n \t\tURLConnection versionInfoConnection = versionInfo.openConnection();\r\n \t\tBufferedReader inputStream = new BufferedReader(new InputStreamReader(versionInfoConnection.getInputStream()));\r\n \t\tString remoteVersion = inputStream.readLine();\r\n \t\tif(remoteVersion.equals(version))\r\n \t\t\tmessage.setText(\"VERSION: \" + version +\"\\nYou have the most current release.\");\r\n \t\telse {\r\n \t\t\tString[] versionList = version.split(\"\\\\.\");\r\n \t\t\tString[] remoteVersionList = remoteVersion.split(\"\\\\.\");\r\n \t\t\tif(versionList.length < 3 || remoteVersionList.length < 3) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nUnable to confirm if updates are availble,\\nclick UPDATE to get the most recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(Integer.parseInt(versionList[0]) < Integer.parseInt(remoteVersionList[0])) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nA newer release is available,\\nclick UPDATE to get the most recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\telse if(Integer.parseInt(versionList[1]) < Integer.parseInt(remoteVersionList[1])) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nA newer release is available,\\nclick UPDATE to get the most recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\telse if(Integer.parseInt(versionList[2]) < Integer.parseInt(remoteVersionList[2])) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nA newer release is available,\\nclick UPDATE to get the more recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\telse if(versionList.length < remoteVersionList.length) {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nA newer release is available,\\nclick UPDATE to get the more recent release or visit:\\n\" + downloadURL);\r\n \t\t\t\tupdateButton.setEnabled(true);\r\n \t\t\t\tdisplay();\r\n \t\t\t}\r\n \t\t\telse {\r\n \t\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nYou have the most current release.\");\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \tcatch(NumberFormatException e) {\r\n\t\t\tmessage.setText(\"VERSION: \" + version +\"\\nUnable to confirm if updates are availble,\\nclick UPDATE to get the more recent release or visit:\\n\" + downloadURL);\r\n\t\t\tupdateButton.setEnabled(true);\r\n \t}\r\n \tcatch(Exception e){\r\n \t\tmessage.setText(\"VERSION: \" + version +\"\\nUnable to connect to server to check version\");\r\n \t}\r\n }", "private boolean isBadVersion(int n) {\n\t\treturn false;\n\t}", "public void upgrade_2_28_0() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.28.0\");\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.28.0.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.28.0.war\", \"root\", \"false\");\n\t\t\ttomcatHelper.startAndWait(25);\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.28.0 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "boolean hasVersion();", "boolean hasVersion();", "private static void upgradeFrom_1_to_2(SQLiteDatabase db) {\r\n Logger.info(Logger.Type.GHOST_SMS, \"*** Upgrade database from version [%s] to version [%s]\", VERSION_1, CURRENT_VERSION);\r\n\r\n //1- do migrations\r\n db.execSQL(Parameters.QUERY_CREATE);\r\n db.execSQL(Versions.QUERY_CREATE);\r\n //2- update application version value\r\n Versions.update(db, Names.GHOST_SMS, VERSION_1, VERSION_2);\r\n }", "public abstract void upgrade();", "private void checkVersion() {\n try {\n if (!isR2D2()) {\n createDialog(getString(R.string.dialog_update_qpair), getString(R.string.dialog_update_qpair_description), new OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n }, null);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void upgrade_2_17_2() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.17.2\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.17.2.war\", \"ledge.root\",\n\t\t\t\t\t\"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.17.rml\");\n\t\t\tcyklotronHelper\n\t\t\t\t\t.executeFixMethod(\"fixes?action=fixes.ReorganizePollsResource\");\n\t\t\tlogger.info(\"Rebuilding all documents structure. It can take up to 30 minutes.\");\n\t\t\tcyklotronHelper.executeFixMethod(\"fixes?action=fixes.CYKLO789\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.17.2 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "public void upgrade_2_11() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.11\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper\n\t\t\t\t\t.setRootXml(\"cyklotron-2.11.war\", \"ledge.root\", \"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.11.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.11 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "@Override\n\t\t\t\t\tpublic void onUpdateFound(boolean newVersion, String whatsNew) {\n\t\t\t\t\t}", "protected boolean upgradeCluster() throws Throwable {\n \n // need to ping hcdev from master before and after\n if (!pingFromMaster(hostname))\n return false;\n \n String minorVersion = null;\n String currentVersion = null;\n String s = null;\n Log.INFO(\"Getting Minor Version...\");\n runSystemCommand(MINOR_VERSION_COMMAND);\n while ((s = stdout.readLine()) != null) {\n minorVersion = s.trim();\n Log.INFO(s);\n }\n Log.INFO(\"Getting Major Version...\");\n runSystemCommand(\n PRE_VERSION_COMMAND + minorVersion + POST_VERSION_COMMAND);\n while ((s = stdout.readLine()) != null) {\n currentVersion = s.trim();\n Log.INFO(\"Current Version: \" + currentVersion);\n }\n String url =\n \"http://\" + UPGRADE_DOMAIN + \"/~hcbuild/repository/releases/1.1/\"\n + currentVersion + \"/AUTOBUILT/pkgdir/st5800_\"\n + currentVersion + \".iso\";\n Log.INFO(\"Validating URL...\");\n runSystemCommand(\"wget -O - -q \" + url + \" 2>&1 >> /dev/null\");\n while ((s = stdout.readLine()) != null)\n Log.INFO(s);\n\n if (currentVersion != null) {\n stdout = cli.runCommand(\n \t\t\"upgrade -c \" + masterCell + \" -F download \" + url);\n String line;\n while ((line = stdout.readLine()) != null) {\n if (line.contains(\"bytes successfully\")) {\n Log.INFO(\" ---> \" + line);\n return pingFromMaster(hostname);\n }\n }\n Log.ERROR(\"Problem with upgrade detected... failing test\");\n }\n return false;\n }", "public static Class<?> getNewVersion(String className) {\n Class<?> ret = versions.get(className.hashCode());\n if (ret != null)\n return ret;\n return null;\n }", "@Test\n public void testSaltUpgrade() {\n assertTrue(underTest.permitSaltUpgrade(\"2017.7.5\", \"2017.7.5\"));\n assertTrue(underTest.permitSaltUpgrade(\"2017.7.5\", \"2017.7.7\"));\n assertTrue(underTest.permitSaltUpgrade(\"2017.7.7\", \"2017.7.5\"));\n\n assertTrue(underTest.permitSaltUpgrade(\"2017.7.7\", \"2017.8.0\"));\n assertFalse(underTest.permitSaltUpgrade(\"2017.7.7\", \"2019.7.0\"));\n\n // Allow upgrade between 3000.*, according to new Salt versioning scheme (since then, version numbers are in the format MAJOR.PATCH)\n assertTrue(underTest.permitSaltUpgrade(\"3000.2\", \"3000.2\"));\n assertTrue(underTest.permitSaltUpgrade(\"3000.2\", \"3000.3\"));\n assertFalse(underTest.permitSaltUpgrade(\"3000.2\", \"3001.3\"));\n assertFalse(underTest.permitSaltUpgrade(\"3000\", \"3001\"));\n\n // Do not allow if no Salt version\n assertFalse(underTest.permitSaltUpgrade(\"2017.7.7\", null));\n }", "@Override\n public int getVersion() {\n return 0;\n }", "public void checkVersion() throws Exception {\n Version loadedVersion = getConfStoreVersion();\n LOG.info(\"Loaded configuration store version info \" + loadedVersion);\n if (loadedVersion != null && loadedVersion.equals(getCurrentVersion())) {\n return;\n }\n // if there is no version info, treat it as CURRENT_VERSION_INFO;\n if (loadedVersion == null) {\n loadedVersion = getCurrentVersion();\n }\n if (loadedVersion.isCompatibleTo(getCurrentVersion())) {\n LOG.info(\"Storing configuration store version info \"\n + getCurrentVersion());\n storeVersion();\n } else {\n throw new RMStateVersionIncompatibleException(\n \"Expecting configuration store version \" + getCurrentVersion()\n + \", but loading version \" + loadedVersion);\n }\n }", "long getVersion();", "long getVersion();", "long getVersion();", "long getVersion();", "@Test\n public void testCreateLatestMajorOnPreviousMajorIfItFailsOnMajorVersion8() {\n deployWithModelForLatestMajorVersionFailing(8);\n }", "@Override\n\tpublic boolean supportsVersioning()\n\t{\n\t\treturn true;\n\t}", "public static String renderDifferencesWithPreviousVersion(boObject current, long bouiVersion, XMLDocument doc, EboContext newContext)\n {\n \ttry\n\t\t{\n \t\tif (doc == null){\n \t\t\treturn \"Não foi possível aceder ao viewer, ocorreu um erro\"; //FIXME: Internacionalizar\n \t\t}\n \t\t\n \t\t\n\t\t\tEboContext\t\teboCtx = current.getEboContext();\n\t\t\t//Boui of the Ebo_Versioning\n\t\t\t\n\t\t\tboObject\t\tobjectVersion = boObject.getBoManager().loadObject(eboCtx, bouiVersion);\n\t\t\t\n\t\t\tboVersioning\tversioningManager = new boVersioning();\n\t\t\tlong\t\t\tbouiOfObject = objectVersion.getAttribute(\"changedObject\").getValueLong();\n\t\t\tlong\t\t\tversionOfObject = objectVersion.getAttribute(\"version\").getValueLong();\n\t\t\t\n\t\t\t//Create a new context to hold the rollback version\n\t\t\t//which means the original object can be left alone\n\t\t\tversioningManager.rollbackVersion(newContext,bouiOfObject,versionOfObject, true);\n\t\t\t\n\t\t\tboObject\t\trollBackVersion = boObject.getBoManager().loadObject(newContext, bouiOfObject);\n\t\t\t\n\t\t\t//Get the difference between objects\n\t\t\tObjectDifference diffObj = new ObjectDifference(current, rollBackVersion);\n\t\t\t\n\t\t\t//Get the Map of differences of attributes\n\t\t\tHashMap<String,ObjectAttributeValuePair> diffAttributes = diffObj.getAttributeDifferencesOfObjects();\n\t\t\t\n\t\t\t//Get the Map of differences of bridges\n\t\t\tHashMap<String,GridFlashBack> diffBridges = diffObj.getBridgeDifferencesOfObjects();\n\t\t\t\n\t\t\tIterator<String> itDiffAtts = diffAttributes.keySet().iterator();\n\t\t\tElement differences = doc.createElement(\"differences\");\n\t\t\tdifferences.setAttribute(\"label\", BeansMessages.LBL_DIFFERENCES_RESUME.toString());\n\t\t\twhile (itDiffAtts.hasNext())\n\t\t\t{\n\t\t\t\tElement attribute = doc.createElement(\"attribute\");\n\t\t\t\tString attName = itDiffAtts.next();\n\t\t\t\tObjectAttributeValuePair pair = diffAttributes.get(attName);\n\t\t\t\tattribute.setAttribute(\"name\", pair.getAttName());\n\t\t\t\tattribute.setAttribute(\"oldValue\", pair.getOldVal());\n\t\t\t\tattribute.setAttribute(\"newValue\", pair.getNewVal());\n\t\t\t\tdifferences.appendChild(attribute);\n\t\t\t}\n\t\t\tdoc.getDocumentElement().appendChild(differences);\n\t\t\t\n\t\t\t//Update the XML tree with the differences in attributes and bridges\n\t\t\tupdateXMLTreeWithAttributeDifferences(doc, diffAttributes, diffBridges,differences);\n\t\t\t\n\t\t\tString xmlSourceContent = ngtXMLUtils.getXML(doc);\n\t\t\t\n\t\t\t//System.out.println(xmlSourceContent);\n\t\t\t\n\t\t\t//Apply the XSLT\n\t\t\tfinal String XSLT = \"showDifferencesVersion.xsl\";\n\t\t\tInputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream( XSLT );\n\t\t\tString finalTransformer = ngtXMLUtils.getXML(ngtXMLUtils.loadXML(in));\n\t\t\t\n\t\t\tSource xmlSource = new StreamSource(new StringReader(xmlSourceContent));\n\t Source xsltSource = new StreamSource(new StringReader(finalTransformer));\n\n\t StringWriter pw = new StringWriter();\n \t// the factory pattern supports different XSLT processors\n\t TransformerFactory transFact =\n\t TransformerFactory.newInstance();\n\t Transformer trans = transFact.newTransformer(xsltSource);\n\t trans.transform(xmlSource, new StreamResult(pw));\n\t\t\t\n\t\t\tnewContext.close();\n\t\t\t\n\t\t\treturn pw.toString();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tif (newContext != null)\n\t\t\t\tnewContext.close();\n\t\t} \n\t\t\n\t\t//Show the Logs in case of error \n\t\tString logs = getListOfLogsObject(bouiVersion, current);\n\t\t\n\t\treturn BeansMessages.MSG_ERROR_IN_DIFFERENCES_RENDER.toString()\n\t\t\t\t+ \"<br />\" + logs;\n }", "public void upgrade_2_10_1() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.10.1\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.10.1.war\", \"ledge.root\",\n\t\t\t\t\t\"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.10.1 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "protected abstract String upgradeSql(int oldVersion, int newVersion);", "protected void checkLatestVersion() throws ReadonlyVersionException {\r\n final String thisVersion = getContentModel().getVersionNumber();\r\n if (thisVersion != null && !thisVersion.equals(getContentModel().getLatestVersionNumber())) {\r\n throw new ReadonlyVersionException(\"Only latest version can be modified.\");\r\n }\r\n }", "public void cmdUpgrade(User teller) {\n exit(7, \"Deploying version update at the request of {0}. I''ll be right back!\", teller);\n }", "int getVersion() throws RemoteException;", "public boolean isSchemaOld() {\n return getVersionForSchema() < latestCodeVersion;\n }", "public abstract void doUpgrade();", "@Test\n\tpublic void testVersionCheck() throws Exception{\n\t}", "Integer getVersion();", "@Test(expected = IllegalStateException.class)\r\n public final void testCreateNewVersionForDesignDevContestFailureUserServiceMissed() throws Exception {\r\n DirectServiceFacadeBean currentDirectServiceFacadeBean = new DirectServiceFacadeBean();\r\n FailureTestHelper\r\n .initializeDirectServiceFacadeBean(currentDirectServiceFacadeBean, true, false, true);\r\n currentDirectServiceFacadeBean.createNewVersionForDesignDevContest(new TCSubject(998), 999);\r\n }", "public static boolean hasNewVersion(Class<?> clazz) {\n return versions.get(clazz.getName().hashCode()) != null;\n }", "public static String checkVersion() {\n GhostMute plugin = getPlugin(GhostMute.class);\n String cVersion;\n String lineWithVersion;\n try {\n URL githubUrl = new URL(\"https://raw.githubusercontent.com/Rsl1122/GhostMute/master/GhostMute/src/plugin.yml\");\n lineWithVersion = \"\";\n Scanner websiteScanner = new Scanner(githubUrl.openStream());\n while (websiteScanner.hasNextLine()) {\n String line = websiteScanner.nextLine();\n if (line.toLowerCase().contains(\"version\")) {\n lineWithVersion = line;\n break;\n }\n }\n String versionString = lineWithVersion.split(\": \")[1];\n int newestVersionNumber = parseVersionNumber(versionString);\n cVersion = plugin.getDescription().getVersion();\n int currentVersionNumber = parseVersionNumber(cVersion);\n if (newestVersionNumber > currentVersionNumber) {\n return \"New Version (\" + versionString + \") is availible at https://www.spigotmc.org/resources/ghostmute-fake-blocked-messages.33880/\";\n } else {\n return \"You're running the latest version\";\n }\n } catch (Exception e) {\n plugin.logError(\"Failed to compare versions.\");\n }\n return \"Failed to get newest version number.\";\n }", "@Override\r\n\t\tprotected Void doInBackground(Void... params) {\n\t\t\tversion = util.checkVersion(\"http://m.fx678.com/Upgrade.aspx?ver=YINGRUYI_ANDROID_V1.0.1\");\r\n\r\n\t\t\treturn null;\r\n\t\t}", "public boolean upgrades(Version version) {\n return platform.map(version::compareTo).orElse(0) < 0;\n }", "Long getVersion();", "String offerVersion();", "private boolean isBadVersion(int version) {\n return false;\n }", "public int getNextVersion() {\n return emlVersion + 1;\n }", "private static final void u() {\n try {\n Object object = StaticLoggerBinder.REQUESTED_API_VERSION;\n Object object2 = v;\n int n10 = ((String[])object2).length;\n int n11 = 0;\n boolean bl2 = false;\n while (true) {\n if (n11 >= n10) {\n if (bl2) return;\n object2 = new StringBuilder();\n String string2 = \"The requested version \";\n ((StringBuilder)object2).append(string2);\n ((StringBuilder)object2).append((String)object);\n object = \" by your slf4j binding is not compatible with \";\n ((StringBuilder)object2).append((String)object);\n object = v;\n object = Arrays.asList(object);\n object = object.toString();\n ((StringBuilder)object2).append((String)object);\n object = ((StringBuilder)object2).toString();\n i.h.h.i.c((String)object);\n object = \"See http://www.slf4j.org/codes.html#version_mismatch for further details.\";\n i.h.h.i.c((String)object);\n return;\n }\n String string3 = object2[n11];\n boolean bl3 = ((String)object).startsWith(string3);\n if (bl3) {\n bl2 = true;\n }\n ++n11;\n }\n }\n catch (Throwable throwable) {\n String string4 = \"Unexpected problem occured during version sanity check\";\n i.h.h.i.d(string4, throwable);\n return;\n }\n catch (NoSuchFieldError noSuchFieldError) {\n return;\n }\n }", "public void upgrade_2_12() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.12\");\n\t\t\tcyklotronHelper.login();\n\t\t\tcyklotronHelper.executeRml(\"upgrade_2.12.rml\");\n\t\t\tcyklotronHelper.logout();\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper\n\t\t\t\t\t.setRootXml(\"cyklotron-2.12.war\", \"ledge.root\", \"false\");\n\t\t\ttomcatHelper.start();\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.12 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "private Integer getNextRevisionVersion(Integer curVersion) {\n\n if (curVersion == null) {\n return IntDef.INT_ONE;\n }\n return curVersion + IntDef.INT_ONE;\n }", "public void createVersion() {\r\n\t\tif (!active) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (applicationId == null) {\r\n\t\t\tcreateApplication();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tJSONObject versionJson = getJSonResponse(Unirest.post(url + VERSION_API_URL)\r\n\t\t\t\t\t.field(\"name\", SeleniumTestsContextManager.getApplicationVersion())\r\n\t\t\t\t\t.field(\"application\", applicationId));\r\n\t\t\tversionId = versionJson.getInt(\"id\");\r\n\t\t} catch (UnirestException | JSONException e) {\r\n\t\t\tthrow new SeleniumRobotServerException(\"cannot create version\", e);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic String getVersion() {\r\n\t\treturn \"1.0.5\";\r\n\t}", "public void upgrade_2_28_4() {\n\t\ttry {\n\t\t\tlogger.info(\"Start upgrade to Cyklotron 2.28.4\");\n\t\t\ttomcatHelper.stop();\n\t\t\ttomcatHelper.deleteWebappRootDir();\n\t\t\ttomcatHelper.setRootXml(\"cyklotron-2.28.4.war\", \"root\", \"false\");\n\t\t\ttomcatHelper.startAndWait(25);\n\t\t\tlogger.info(\"Upgrade to Cyklotron 2.28.4 successful\");\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t}\n\t}" ]
[ "0.6642779", "0.63942444", "0.6384167", "0.63757414", "0.627417", "0.6203023", "0.6031912", "0.5994305", "0.5975639", "0.59332174", "0.58903205", "0.58742374", "0.5863383", "0.58424425", "0.5833381", "0.5830058", "0.58234924", "0.5822974", "0.58133405", "0.5768667", "0.57556975", "0.57194585", "0.57177293", "0.57046247", "0.56977147", "0.5653021", "0.56420714", "0.56310284", "0.5613324", "0.56108975", "0.5606142", "0.559899", "0.5592107", "0.5580806", "0.5576988", "0.55749285", "0.55622226", "0.5557696", "0.5538502", "0.55261797", "0.5521918", "0.55062336", "0.54888636", "0.5488785", "0.5485756", "0.5484851", "0.5480732", "0.5478138", "0.5476222", "0.5471289", "0.54527897", "0.5446898", "0.5444579", "0.54439604", "0.5433613", "0.54335153", "0.54335153", "0.54293275", "0.54186714", "0.54090434", "0.5397948", "0.539342", "0.53860354", "0.5366537", "0.53658646", "0.5365389", "0.5346804", "0.53444666", "0.5335888", "0.5335888", "0.5335888", "0.5335888", "0.5334909", "0.5332865", "0.53304815", "0.5323356", "0.53216374", "0.5315902", "0.53146", "0.5313907", "0.5313824", "0.53120565", "0.5306209", "0.52983797", "0.5296986", "0.5293197", "0.5285148", "0.52848464", "0.5282092", "0.52763146", "0.526923", "0.5264362", "0.5252388", "0.52462476", "0.52450585", "0.52437735", "0.5237183", "0.52356887", "0.52291113", "0.5215127" ]
0.54749525
49
Metodo utilitario que nos servira para obtener las sentencias a ser ejecutadas de un asset dentro del paquete de la aplicacion
protected void executeSQLScript(SQLiteDatabase database, String assetName) { /* * variables locales para manejar la lectura del archivo de scripts */ ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); byte buf[] = new byte[1024]; int len; AssetManager assetManager = context.getAssets(); InputStream inputStream = null; try { /* * obtenemos el asset y lo convertimos a string */ inputStream = assetManager.open(assetName); while ((len = inputStream.read(buf)) != -1) { outputStream.write(buf, 0, len); } outputStream.close(); inputStream.close(); /* * desencriptamos el archivo */ String sqlClear = Cypher.decrypt(SD, outputStream.toString()); // String sqlClear = outputStream.toString(); /* * separamos la cadena por el separador de sentencias */ String[] createScript = sqlClear.split(";"); /* * por cada sentencia del archivo ejecutamos la misma en la base de * datos */ for (int i = 0; i < createScript.length; i++) { String sqlStatement = createScript[i].trim(); if (sqlStatement.startsWith("--")) { continue; } if (sqlStatement.length() > 0) { Log.i(CsTigoApplication.getContext().getString( CSTigoLogTags.DATABASE.getValue()), CsTigoApplication.getContext().getString( R.string.database_exec_sql) + sqlStatement); try { database.execSQL(sqlStatement + ";"); } catch (SQLException e) { Notifier.error( getClass(), CsTigoApplication.getContext().getString( R.string.database_statement_exec) + e.getMessage()); } catch (Exception e) { Notifier.error( getClass(), CsTigoApplication.getContext().getString( R.string.database_decypt_error) + e.getMessage()); } } } } catch (IOException e) { Notifier.error( getClass(), CsTigoApplication.getContext().getString( R.string.database_read_asset) + e.getMessage()); } catch (SQLException e) { Notifier.error( getClass(), CsTigoApplication.getContext().getString( R.string.database_statement_exec) + e.getMessage()); } catch (Exception e) { Notifier.error( getClass(), CsTigoApplication.getContext().getString( R.string.database_decypt_error) + e.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void ejecutarCargue() {\n String respuesta = null;\n try {\n loggerApp.info(\"Cargues masivos timbres - ejecutar cargue\");\n if (!validarExtension(Constantes.EXTENSIONES_ARCHIVO_EXCEL, file)) {\n abrirModal(\"SARA\", \"Error: El archivo \" + (null == file ? \" \" : file.getName()) + \" no cumple con el formato de extensión válido \" + Constantes.EXTENSIONES_ARCHIVO_EXCEL, null);\n return;\n }\n generarListaData();\n cargarTimbresMasivosObjectContext.setAtributo(\"listaTimbres\", listaData);\n this.servletHelper = new CargarTimbresMasivosServletHelper(sessionLocal, cargarTimbresMasivosObjectContext, objectContext, sessionAjustes, cuadreCifrasSessionLocal, cajeroSession);\n if (this.servletHelper != null) {\n respuesta = servletHelper.obtenerDatos();\n }\n if (respuesta != null && !respuesta.trim().isEmpty()) {\n abrirModal(\"SARA\", respuesta, null);\n }\n } catch (FileStructureException ex) {\n ex.printStackTrace();\n loggerApp.log(Level.SEVERE, ex.getMessage(), ex);\n abrirModal(\"SARA\", ex.getMessage(), null);\n } catch (Exception ex) {\n ex.printStackTrace();\n loggerApp.log(Level.SEVERE, ex.getMessage(), ex);\n abrirModal(\"SARA\", Constantes.MSJ_ERROR_INTERNO, null);\n }\n\n }", "public void enviarValoresCabecera(){\n }", "byte[] get_destination_script();", "public Resultado executar(Requisicao requisicao) throws Exception {\r\n if (Logger.estaHabilitadoDebug(this)) {\r\n Logger.debug(this, \"***** Manutencao de Itens na Cesta de Garantias Via Arquivo ***** \");\r\n }\r\n\r\n idAtivos = new HashMap();\r\n\r\n Servico validacao = new ServicoValidaCadastroItensCestaGarantias();\r\n Servico inclusaoAporte = new ServicoRegistraItensCestaGarantias();\r\n Servico delecao = new ServicoDelecaoItensCestaGarantias();\r\n\r\n // Primeiro valida todas as linhas\r\n AtributosColunados ac = requisicao.obterAtributosColunados();\r\n while (ac.avancarLinha()) {\r\n populaValores(ac);\r\n if (!funcaoItem.mesmoConteudo(ICestaDeGarantias.EXCLUIR_GARANTIA)) {\r\n RequisicaoServicoValidaCadastroItensCestaGarantias reqV = new RequisicaoServicoValidaCadastroItensCestaGarantias();\r\n reqV.atribuirGARANTIAS_PARTICIPANTE_CodigoContaCetip(parte);\r\n reqV.atribuirGARANTIAS_CONTRAPARTE_CodigoContaCetip(contraParte);\r\n reqV.atribuirGARANTIAS_CODIGO_TIPO_CodigoTipoIF(codigoTipoIF);\r\n reqV.atribuirGARANTIAS_CODIGO_IF_CodigoIF(codigoIF);\r\n reqV.atribuirGARANTIAS_QUANTIDADE_Quantidade(quantidade);\r\n reqV.atribuirGARANTIAS_ITENS_Booleano(indEventosGarantidor);\r\n reqV.atribuirGARANTIAS_ITENS_DescricaoLimitada(descricao);\r\n reqV.atribuirGARANTIAS_DATA_CRIACAO_Data(data);\r\n reqV.atribuirGARANTIAS_CODIGO_IdTipoGarantia(idTipoGarantia);\r\n reqV.atribuirGARANTIAS_TIPO_ACESSO_Funcao(tipoAcesso);\r\n reqV.atribuirACAO_Funcao(funcaoItem);\r\n reqV.atribuirGARANTIAS_CODIGO_NumeroCestaGarantia(numeroCestaGarantia);\r\n reqV.atribuirOPERACAO_NumeroOperacao(numOperacao);\r\n\r\n // Valida a linha\r\n validacao.executarConsulta(reqV);\r\n }\r\n\r\n }\r\n\r\n ac.reiniciarLinha();\r\n while (ac.avancarLinha()) {\r\n populaValores(ac);\r\n\r\n // Insere ou Aporta / Deleta\r\n if (funcaoItem.mesmoConteudo(ICestaDeGarantias.INCLUIR_GARANTIA)\r\n || funcaoItem.mesmoConteudo(ICestaDeGarantias.APORTAR_GARANTIA)) {\r\n RequisicaoServicoRegistraItensCestaGarantias reqItem = new RequisicaoServicoRegistraItensCestaGarantias();\r\n\r\n reqItem.atribuirACAO_Funcao(funcaoItem);\r\n reqItem.atribuirGARANTIAS_CODIGO_Id(codigoIdCesta);\r\n reqItem.atribuirGARANTIAS_CODIGO_IF_CodigoIF(codigoIF);\r\n reqItem.atribuirGARANTIAS_PARTICIPANTE_CodigoContaCetip(parte);\r\n reqItem.atribuirGARANTIAS_CONTRAPARTE_CodigoContaCetip(contraParte);\r\n reqItem.atribuirGARANTIAS_CODIGO_TIPO_CodigoTipoIF(codigoTipoIF);\r\n reqItem.atribuirGARANTIAS_CODIGO_IdTipoGarantia(idTipoGarantia);\r\n reqItem.atribuirGARANTIAS_QUANTIDADE_Quantidade(quantidade);\r\n reqItem.atribuirGARANTIAS_ITENS_Booleano(indEventosGarantidor);\r\n reqItem.atribuirGARANTIAS_ITENS_DescricaoLimitada(descricao);\r\n reqItem.atribuirGARANTIAS_TIPO_ACESSO_Funcao(tipoAcesso);\r\n reqItem.atribuirOPERACAO_NumeroOperacao(numOperacao);\r\n\r\n inclusaoAporte.executar(reqItem);\r\n\r\n } else if (funcaoItem.mesmoConteudo(ICestaDeGarantias.EXCLUIR_GARANTIA)) {\r\n RequisicaoServicoDelecaoItensCestaGarantias reqItemDelecao = new RequisicaoServicoDelecaoItensCestaGarantias();\r\n reqItemDelecao.atribuirGARANTIAS_CODIGO_Id(codigoIdCesta);\r\n reqItemDelecao.atribuirGARANTIAS_CODIGO_NumeroCestaGarantia(numeroCestaGarantia);\r\n reqItemDelecao.atribuirGARANTIAS_CODIGO_IF_CodigoIF(codigoIF);\r\n reqItemDelecao.atribuirGARANTIAS_PARTICIPANTE_CodigoContaCetip(parte);\r\n reqItemDelecao.atribuirGARANTIAS_CONTRAPARTE_CodigoContaCetip(contraParte);\r\n reqItemDelecao.atribuirGARANTIAS_CODIGO_TIPO_CodigoTipoIF(codigoTipoIF);\r\n reqItemDelecao.atribuirGARANTIAS_CODIGO_IdTipoGarantia(idTipoGarantia);\r\n reqItemDelecao.atribuirGARANTIAS_QUANTIDADE_Quantidade(quantidade);\r\n reqItemDelecao.atribuirGARANTIAS_ITENS_Booleano(indEventosGarantidor);\r\n reqItemDelecao.atribuirOPERACAO_NumeroOperacao(numOperacao);\r\n reqItemDelecao.atribuirGARANTIAS_ITENS_DescricaoLimitada(descricao);\r\n\r\n delecao.executar(reqItemDelecao);\r\n }\r\n }\r\n\r\n return new ResultadoServicoManutencaoItensCestaGarantiasViaArquivo();\r\n }", "private byte[] datosInicio() {\n\tbyte comando = 1;\n\tbyte borna = (byte) sens.getNum_borna();\n\tbyte parametro1 = 0;\n\tbyte parametro2 = 0;\n\tbyte parametro3 = 0;\n\tbyte checksum = (byte) (comando + borna + parametro1 + parametro2 + parametro3);\n\n\t// Duermo para que le de tiempo a generar el puerto\n\ttry {\n\t Thread.sleep(IrrisoftConstantes.DELAY_SENSOR_RUN);\n\t} catch (InterruptedException e1) {\n\t if (logger.isErrorEnabled()) {\n\t\tlogger.error(\"Hilo interrumpido: \" + e1.getMessage());\n\t }\n\t}\n\n\tif (logger.isInfoEnabled()) {\n\t logger.info(\"Churro_Anemometro = \" + comando + \", \" + borna + \", \"\n\t\t + parametro1 + \", \" + parametro2 + \", \" + parametro3 + \", \"\n\t\t + checksum);\n\t}\n\n\tchurro[0] = comando;\n\tchurro[1] = borna;\n\tchurro[2] = parametro1;\n\tchurro[3] = parametro2;\n\tchurro[4] = parametro3;\n\tchurro[5] = checksum;\n\n\tif (!serialcon.serialPort.isOpened()) {\n\t SerialPort serialPort = new SerialPort(\n\t\t serialcon.serialPort.getPortName());\n\t serialcon.setSerialPort(serialPort);\n\t serialcon.conectaserial(sens.getNum_placa());\n\t}\n\n\treturn churro;\n }", "public Preparation(){\n\t\ttry {\n\t\t\t\n\t\t\tValueObjectRetrieve valueObjectRetrieve = new ValueObjectRetrieve(\"StaticData\",new Integer(1),remotehosturi);\n\t\t\tStaticData staticData = (StaticData)valueObjectRetrieve.getValueObject();\n\t\t\tHttpPost httpPost = new HttpPost(\"name\",nameofj2eeproject,null,remotehosturi,\"J2eeProject\");\n\t\t\tSystem.err.println(httpPost.isOk());\n\t\t\t\n\t\t\tFile file = new File(eclipseroot + nameofj2eeproject + \"/mda\");\n\t\t\tfile.mkdir();\n\t\t\t\n\t\t\tFile webxmlfile = new File(eclipseroot + nameofj2eeproject + \"/WEB-INF/web.xml\");\n\t\t\t\n\t\t\tFileDownload fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/base.css\",remotehosturi + \"/base.css\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/createscheme.bat\",remotehosturi + \"/mda/createscheme.bat\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/dropscheme.bat\",remotehosturi + \"/mda/dropscheme.bat\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/h.jsp\",remotehosturi + \"/h.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/index.jsp\",remotehosturi + \"/index.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/menu.jsp\",remotehosturi + \"/menu.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/mysql-connector-java-3.1.12-bin.jar\",remotehosturi + \"/mda/mysql-connector-java-3.1.12-bin.jar\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/systemheader.jsp\",remotehosturi + \"/systemheader.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/web.xml\",remotehosturi + \"/WEB-INF/web.xml\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/.classpath\",remotehosturi + \"/.classpath\");\n\n\t\t\t \n\t\t\tHttpClient httpClient = new HttpClient(); \n\t\t\tGetMethod getMethod = new GetMethod(\"http://\" + remotehosturi + \"/templates/copycorejar.bat\");\n\t\t\thttpClient.executeMethod(getMethod);\n\t\t\tString contentofcopycorejat_bat = getMethod.getResponseBodyAsString();\n\t\t\tcontentofcopycorejat_bat = contentofcopycorejat_bat.replaceAll(\"nameofj2eeproject\",nameofj2eeproject);\n\t\t\tFile copycorejat_batfile = new File(eclipseroot + nameofj2eeproject + \"/mda/copycorejar.bat\");\n\t\t\tFileWriter writer = new FileWriter(copycorejat_batfile);\n\t\t\twriter.write(contentofcopycorejat_bat);\n\t\t\t\n\t\t\thttpClient = new HttpClient(); \n\t\t\tgetMethod = new GetMethod(\"http://\" + remotehosturi + \"/templates/createscheme.bat\");\n\t\t\thttpClient.executeMethod(getMethod);\n\t\t\tString content = getMethod.getResponseBodyAsString();\n\t\t\tcontent = content.replaceAll(\"nameofj2eeproject\",nameofj2eeproject);\n\t\t\tFile instancefile = new File(eclipseroot + nameofj2eeproject + \"/mda/copycorejar.bat\");\n\t\t\twriter = new FileWriter(instancefile);\n\t\t\twriter.write(contentofcopycorejat_bat);\n//\t\t\tFile base_css = new File(eclipseroot + nameofj2eeproject + \"base.css\");\n\t\t\t\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private Assets (){}", "private String criptografaECompactaOrdem(File ordem, String arqAProcessar[]) throws Exception\n\t{\n\t\tlong numOrdem = getNumeroOrdem(ordem);\n\n\t\tString requisitante = getIdRequisitante(numOrdem);\n\t\t/* Se o requisitante ou a ordem nao for encontrada\n\t\t * o GPP retorna o valor NAO_DISPONIVEL para o id do\n\t\t * requisitante. Neste caso o metodo termina, pois\n\t\t * nada pode ser feito com os arquivos da ordem. Caso\n\t\t * os arquivos a serem processados tambem seja uma\n\t\t * referencia nula, o procedimento e o mesmo\n\t\t */\n\t\tif (requisitante.equals(GPPTransferenciaVoucher.REQUISITANTE_NAO_DIPONIVEL) || arqAProcessar == null)\n\t\t\treturn null;\n\t\t\t\n\t\tString nomeSoftware = getPropriedade(\"ordemVoucher.pgp\");\n\t\tString userId = getPropriedade(\"ordemVoucher.pgp.userID\");\n\t\tString verbPhrase = getPropriedade(\"ordemVoucher.pgp.verbPhrase\");\n\t\tfor (int i=0; i < arqAProcessar.length; i++)\n\t\t{\n\t\t\t/* Define a execucao do comando de criptografia */\n\t\t\tString nomeArquivo = arqAProcessar[i];\t\t\t\n//\t\t\tString cmd[] = {nomeSoftware,\"+force\",\"-es\",nomeArquivo,requisitante,\"-u\",userId,\"-z\",verbPhrase};\n\t\t\tString cmd[] = {nomeSoftware,verbPhrase,userId,requisitante,nomeArquivo};\n\n\t\t\tSystem.out.println(\"Criptografando arquivo:\"+nomeArquivo+\" ....\");\n\t\t\tRuntime rt = Runtime.getRuntime();\n\t\t\tProcess p = rt.exec(cmd);\n\t\t\tp.waitFor();\n\t\t\tif (p.exitValue() != 0)\n\t\t\t\tthrow new Exception(\"Processo de criptografia nao foi executado corretamente para o arquivo:\"+arqAProcessar[i]+\" requisitante:\"+requisitante+\" valor de saida:\"+p.exitValue());\n\t\t\t\n\t\t\t/* Fecha os \"Stream\" da classe Process\n\t\t\t * Isso evita o erro \"Too Many Open Files\" no sistema operacional\n\t\t\t */\n\t\t\tp.getOutputStream().close();\n\t\t\tp.getErrorStream().close();\n\t\t\tp.getInputStream().close();\n\t\t}\n\t\t\n\t\t/* Como este metodo ja possui o nome das caixas (arquivos de voucher)\n\t\t * que foram criptografados, entao chama o metodo responsavel \n\t\t * em compactar estes arquivos em um so com o mesmo nome do arquivo\n\t\t * de cabecalho da Ordem porem com extensao diferente\n\t\t */\n\t\tString nomeArqCompactado = compactaOrdem(ordem,arqAProcessar);\n\t\treturn nomeArqCompactado;\n\t}", "public void ejecutaMetodo() {\n\t\r\n}", "@Override\n\tpublic void ejecutarActividadesConProposito() {\n\t\t\n\t}", "com.google.protobuf.ByteString getScript();", "private void cargarDatos()\n {\n // Pantalla carga\n showProgress(true, mView, mProgressView, getContext());\n Comando login = new LoginComando(KPantallas.PANTALLA_PERFIL);\n String email = UtilUI.getEmail(getContext());\n String password = UtilUI.getPassword(getContext());\n login.ejecutar(email,password);\n }", "public void procesarTramaEasyFuel(){\n switch (bufferRecepcion[4]){\n //TRAMA DE CONFIGURACION\n case 0x06:\n if(bufferRecepcion[5] == 0x01 || bufferRecepcion[5] == 0x02){\n //TRAMA DE CONFIGURACION\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(bufferRecepcion,bufferRecepcion.length)));\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaNombreEmbedded,tramaNombreEmbedded.length)));\n //Log.v(\"TRAMA EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaMACEmbedded,tramaMACEmbedded.length)));\n //Log.v(\"PING HOST EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaPingHost,tramaPingHost.length)));\n //Log.v(\"NÚMERO DE BOMBAS\", \"\" + byteArrayToHexInt(numeroBombas,1));\n\n llenarDatosConfiguracion();\n insertarMaestrosSQLite();\n agregarImagenEstaciones();\n //inicializarMangueras();\n clientTCPThread.write(EmbeddedPtcl.b_ext_configuracion); //0x06\n\n //inicializarMangueras();\n /*try {\n Thread.sleep(3000);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }*/\n\n //cambiarEstadoIniciaAbastecimiento(1);\n\n }\n break;\n\n //CAMBIO DE ESTADO\n case 0x01:\n int indiceLayoutHose=0;\n //Capturar idBomba\n int[] arrayIdBomba = new int[1];\n int idBomba = 0;\n arrayIdBomba[0] = bufferRecepcion[7];\n idBomba = Integer.parseInt(byteArrayToHexIntGeneral(arrayIdBomba,1));\n\n for(int i=0;i<hoseEntities.size();i++ ){\n if(hoseEntities.get(i).idBomba==idBomba) {\n indiceLayoutHose = i;\n break;\n }\n }\n\n switch (bufferRecepcion[5]){\n case 0x01:\n //Cambio de estado\n if(hoseEntities.size() > 0){\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x02:\n //Estado actual de Mangueras\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n case 0x03:\n //Cambio de Pulsos\n switch (bufferRecepcion[9]){\n case 0x01:\n // FLUJO\n if(hoseEntities.size() > 0){\n cambiarPulsos(indiceLayoutHose);\n }\n break;\n case 0x02:\n // INICIO NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoSinFlujo(indiceLayoutHose);\n }\n break;\n case 0x03:\n // NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoCierreHook(indiceLayoutHose);\n }\n break;\n }\n break;\n case 0x04:\n //Vehiculo Leido\n if(hoseEntities.size() > 0){\n cambiarPlaca(indiceLayoutHose);\n }\n\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x07:\n //Ultima transaccion\n\n if(hoseEntities.size() > 0){\n\n /*for(int j = 0; j< hoseEntities.size(); j++){\n if(hoseEntities.get(j).idBomba == idBomba){\n //llenarDatosTransaccion(hoseEntities.get(j));\n break;\n }\n }*/\n\n llenarDatosTransaccion(hoseEntities.get(indiceLayoutHose),indiceLayoutHose);\n\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n }\n break;\n\n case 0x07:\n switch(bufferRecepcion[5]){\n case 0x01:\n break;\n }\n break;\n }\n changeFragment=true;\n }", "private void getEncuestaSatisfaccions(){\n mEncuestaSatisfaccions = estudioAdapter.getEncuestaSatisfaccionSinEnviar();\n //ca.close();\n }", "public static void main(String[] args) {\n HttpConnection connection = new HttpConnection.Builder(\n INTEGRATION_CHANNEL_URL, API_GW_URL, APP_KEY, APP_SECRET, ORG_ID)\n .build();\n\n DeviceInfo deviceInfo = new DeviceInfo().setAssetId(ASSET_ID);\n // fileUri is an enos scheme file uri\n String fileUri = \"enos-connect://xxx.txt\";\n\n try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream()) {\n InputStream inputStream = connection.downloadFile(deviceInfo, fileUri, FileCategory.FEATURE);\n byte[] buffer = new byte[1024];\n int len;\n while ((len = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, len);\n }\n byte[] data = outputStream.toByteArray();\n System.out.println(new String(data));\n } catch (EnvisionException | IOException e) {\n e.printStackTrace();\n }\n\n // Asynchronously call the file download request\n try {\n connection.downloadFile(deviceInfo, fileUri, FileCategory.FEATURE, new IFileCallback() {\n @Override\n public void onResponse(InputStream inputStream) throws IOException {\n System.out.println(\"download file asynchronously\");\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n byte[] buffer = new byte[1024];\n int len;\n while ((len = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0 ,len);\n }\n byte[] data = outputStream.toByteArray();\n System.out.println(new String(data));\n }\n\n @Override\n public void onFailure(Exception failure) {\n failure.printStackTrace();\n }\n }\n );\n } catch (EnvisionException e) {\n e.printStackTrace();\n }\n }", "public void enviarEvidencia(EvidenciaDTO evidencia) {\n\n\tLOG.info(evidencia.getNombreArchivo());\n\n\tfichero = evidencia.getNombreArchivo();\n\turl = evidencia.getUrl();\n\tString[] nombreFichero = evidencia.getNombreArchivo().split(\"[.]\");\n\n\textensionDocumento = nombreFichero[nombreFichero.length - 1];\n\tLOG.info(extensionDocumento);\n\tLOG.info(url);\n\tdescargar = true;\n\treturn;\n\n }", "private void getArquivo()\n {\n /*** Obtem o conteudo do pacote através do diretorio ***/\n File file = new File(caminho_origem);\n if (file.isFile())\n {\n try\n {\n /*** Lê o pacote e põe em um array de bytes ***/\n DataInputStream diStream = new DataInputStream(new FileInputStream(file));\n long len = (int) file.length();\n if (len > Utils.tamanho_maximo_arquivo)\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_muito_grande);\n System.exit(0);\n }\n Float numero_pacotes_ = ((float)len / Utils.tamanho_util_pacote);\n int numero_pacotes = numero_pacotes_.intValue();\n int ultimo_pacote = (int) len - (Utils.tamanho_util_pacote * numero_pacotes);\n int read = 0;\n /***\n 1500\n fileBytes[1500]\n p[512]\n p[512]\n p[476]len - (512 * numero_pacotes.intValue())\n ***/\n byte[] fileBytes = new byte[(int)len];\n while (read < fileBytes.length)\n {\n fileBytes[read] = diStream.readByte();\n read++;\n }\n int i = 0;\n int pacotes_feitos = 0;\n while ( pacotes_feitos < numero_pacotes)\n {\n byte[] mini_pacote = new byte[Utils.tamanho_util_pacote];\n for (int k = 0; k < Utils.tamanho_util_pacote; k++)\n {\n mini_pacote[k] = fileBytes[i];\n i++;\n }\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(mini_pacote);\n this.pacotes.add(pacote_);\n pacotes_feitos++;\n }\n byte[] ultimo_mini_pacote = new byte[ultimo_pacote];\n int ultimo_indice = ultimo_mini_pacote.length;\n for (int j = 0; j < ultimo_mini_pacote.length; j++)\n {\n ultimo_mini_pacote[j] = fileBytes[i];\n i++;\n }\n byte[] ultimo_mini_pacote2 = new byte[512];\n System.arraycopy(ultimo_mini_pacote, 0, ultimo_mini_pacote2, 0, ultimo_mini_pacote.length);\n for(int h = ultimo_indice; h < 512; h++ ) ultimo_mini_pacote2[h] = \" \".getBytes()[0];\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(ultimo_mini_pacote2);\n this.pacotes.add(pacote_);\n this.janela = new HashMap<>();\n for (int iterator = 0; iterator < this.pacotes.size(); iterator++) janela.put(iterator, new Estado());\n } catch (Exception e)\n {\n System.out.println(Utils.prefixo_cliente + Utils.erro_na_leitura);\n System.exit(0);\n }\n } else\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_inexistente);\n System.exit(0);\n }\n }", "static void executa() {\n\t\tlistaProdutos = LoaderUtils.loadProdutos();\n\n\t\t// imprime lista de produtos cadastrados\n\t\tSystem.out.println(\"----------------------------------------------\");\n\t\tloadEstoque();\n\t\t\n\t\t// imprime estoque\n\t\tSystem.out.println(\"----------------------------------------------\");\n\t\tprintEstoque(listaEstoque);\n\t}", "public void enviar() {\r\n\r\n Socket sock = null;\r\n\r\n try {\r\n sock = new Socket(host, PORT);\r\n\r\n InputStream inputStream = sock.getInputStream();\r\n ObjectInputStream in = new ObjectInputStream(inputStream);\r\n\r\n PrintWriter out = new PrintWriter(sock.getOutputStream(),true);\r\n //muestro en consola el script\r\n out.println(scriptSQL);\r\n\r\n //recibe el objeto mandado por el socket del server\r\n Lista<Object> objectLista = (Lista<Object>) in.readObject();\r\n\r\n //se lo envia al controlador para graficar el resultado\r\n Control_PantallaComprobante.recibirParaMostrarConfirmacion(objectLista);\r\n\r\n\r\n }\r\n catch (IOException | ClassNotFoundException error){\r\n error.printStackTrace();\r\n System.out.println(error);\r\n }\r\n finally {\r\n try{\r\n sock.close();\r\n }catch (IOException error){\r\n error.printStackTrace();\r\n }\r\n }\r\n\r\n\r\n }", "private void cargarFichaLepra_convivientes() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "public static void cargarRecursos(String carpetaArchivosConf, AdministradorRecursosNvjItf recursosProyecto) \n \t\tthrows CargadorRecursosException, MapeoException, IOException{\n System.out.println(\"Comenzando la carga de NavajaFW\");\n //Listo los archivos de configuracion\n String[] listaDeArchivos = new File(carpetaArchivosConf).list();\n \n if (listaDeArchivos == null) {\n throw new CargadorRecursosCarpetaConfVaciaException(carpetaArchivosConf);\n }\n\n //Se listan los archivos de la carpeta indicada\n ArrayList<String> archivosConf = new ArrayList<String>(Arrays.asList(listaDeArchivos));\n\n //Se los itera\n for (String archivoNombre : archivosConf){\n //Si algun archivo termina con _or.xml es un mapeo\n if (archivoNombre.endsWith(NavajaConstantes.GUION_BAJO_OR_PUNTO_XML)) {\n //Muestro que el archivo se esta leyendo\n System.out.println(\"Mapeando \" + archivoNombre + \"...\");\n //Comienzo el mapeo\n Mapeador.mapearXml(carpetaArchivosConf + archivoNombre);\n System.out.println(\"Mapeado correctamente \"); \n }\n }\n \n if (Mapeador.getRaizMapeo() == null || Mapeador.getRaizMapeo().getTablas().isEmpty()) {\n throw new CargadorRecursosNoExistenArchivosMapeoException(); \t\n }\n \n //Se setea la instancia NavajaConector de la app el mapeo recien generado\n NavajaConector.getInstance().setMapeoRaiz(Mapeador.getRaizMapeo());\n \n //Se inicializa los recursos segun lo implementado en el metodo sobrescrito\n recursosProyecto.iniciarRecursos();\n \n //Se setea la instancia NavajaConector de la app el DataSource para conectarse\n DataSource dataSource = recursosProyecto.proveerDataSource();\n \n if(dataSource == null) {\n throw new org.calevin.navaja.excepciones.core.CargadorRecursosDataSourceNuloException();\n }\n\n Connection conexion = null;\n\t\ttry {\n\t\t\tconexion = dataSource.getConnection();\n\t\t\t\n\t\t\tif (conexion == null){\n\t\t\t\tthrow new CargadorRecursosConexionFallidaException(\n\t\t\t\t\t\tNavajaStringUtil.conmutarCaseChar(NavajaConstantes.CONEXION_NULA, 0)\n\t\t\t\t\t\t+ NavajaConstantes.PUNTO);\n\t\t\t} else if (!conexion.isValid(0)) {\n\t\t\t\tthrow new CargadorRecursosConexionFallidaException(\n\t\t\t\t\t\tNavajaStringUtil.conmutarCaseChar(NavajaConstantes.CONEXION_INVALIDA, 0)\n\t\t\t\t\t\t+ NavajaConstantes.COMA_ESPACIO\n\t\t\t\t\t\t+ NavajaConstantes.CONEXION\n\t\t\t\t\t\t+ NavajaConstantes.ESPACIO_COMILLA\n\t\t\t\t\t\t+ conexion\n\t\t\t\t\t\t+ NavajaConstantes.COMILLA\n\t\t\t\t\t\t+ NavajaConstantes.PUNTO);\t\t\t\t\n\t\t\t} else {\n\t\t NavajaConector.getInstance().setDataSource(dataSource);\t\t\t\t\n\t\t\t}\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tthrow new CargadorRecursosConexionFallidaException(e);\n\t\t} finally {\n\t\t\tif (conexion != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconexion.close(); \n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new CargadorRecursosConexionFallidaException(e);\n\t\t\t\t} \n\t\t\t}\n\t\t}\n }", "public S2C verificarMensajeEjecutable(S2C usuario, String orden) {\n if (orden != null) {\n\n //cambia el nombre de usuario\n if (orden.startsWith(\"/usuario \") && !orden.equalsIgnoreCase(\"/usuario server\")) {\n String[] mensajeDescompuesto = orden.split(\" \");\n String res = \"\";\n String usuarioAntiguo = usuario.getName();\n for (int i = 0; i + 1 < mensajeDescompuesto.length; i++) {\n if (i + 1 < mensajeDescompuesto.length - 1) {\n res = res.concat(mensajeDescompuesto[i + 1] + \" \");\n\n } else {\n res = res.concat(mensajeDescompuesto[i + 1]);\n }\n }\n\n usuario.setName(res);\n return null;\n }\n //envia mensaje privado\n if (orden.startsWith(\"/privado \")) {\n String receptor;\n String[] mensajeDescompuesto = orden.split(\"\\\"\");\n System.out.println(mensajeDescompuesto[1]);\n receptor = mensajeDescompuesto[1];\n for (int j = 0; j < ServerProperties.getConexiones().length; j++) {\n if (ServerProperties.getConexiones()[j].getName().equals(receptor)) {\n return ServerProperties.getConexiones()[j];\n }\n\n }\n\n return usuario;\n }\n\n //envia un archivo\n if (orden.startsWith(ServerProperties.getNombre() + \" > /archivo \")) {\n\n if (usuario == null) {\n String[] mensajeDescompuesto = orden.split(\" \");\n String res = \"\";\n for (int i = 3; i < mensajeDescompuesto.length; i++) {\n if (i != mensajeDescompuesto.length - 1) {\n res = res.concat(mensajeDescompuesto[i] + \" \");\n } else {\n res = res.concat(mensajeDescompuesto[i]);\n }\n\n }\n System.out.println(\"----\");\n System.out.println(res);\n System.out.println(\"----\");\n this.subirArchivo(ServerProperties.getIpFtp(), Integer.parseInt(ServerProperties.getPuertoFtp()), ServerProperties.getUserFtp(), ServerProperties.getPswFtp(), ServerProperties.getRutaFtp(), res);\n }\n return null;\n\n }\n //activa cosas, lo prometo!!!\n if (orden.equalsIgnoreCase(\"/camON\")) {\n System.out.println(\"INICIA VIDEOCONFERENCIA LO PROMETO!!!!\");\n return null;\n }\n if (orden.equalsIgnoreCase(\"/camOFF\")) {\n System.out.println(\"DESACTIVA VIDEOCONFERENCIA LO PROMETO!!!!\");\n return null;\n }\n if (orden.equalsIgnoreCase(\"/micON\")) {\n System.out.println(\"INICIA LLAMADA LO PROMETO!!!!\");\n return null;\n }\n if (orden.equalsIgnoreCase(\"/micOFF\")) {\n System.out.println(\"DESACTIVA LLAMADA LO PROMETO!!!!\");\n return null;\n }\n //termina la conexion por voluntad propia\n if (orden.equalsIgnoreCase(\"/salir\")) {\n usuario.cerrarConexion();\n return null;\n\n }\n//desconexion inesperada del cliente\n } else {\n usuario.cerrarConexion();\n return null;\n\n }\n return null;\n }", "private void enviarRequisicaoAdicionar() {\n servidor.adicionarPalito(nomeJogador);\n atualizarPalitos();\n }", "public static void ObtenerDatosEnvia_Msg(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/EnviaMsg\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }", "public static void ObtenerDatosMensajes_Persuasivos(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n String url = \"http://161.35.14.188/Persuhabit/MsgPersuasivo\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");//\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }", "private void solicitaPecas(String nomeArquivoTorrent) throws UnknownHostException {\n\n try {\n\n // Passo 1 - Envia uma mensagem p ip do ArqTorrent com #+nomeArqTorrent\n ipServidor = getEnderecoRastreador(nomeArquivoTorrent);\n InetAddress enderecoServidor = InetAddress.getByName(ipServidor);\n String nomeArqOriginal = \"#\" + retornaNomeArq(nomeArquivoTorrent);\n DatagramPacket pacoteRequisicao = new DatagramPacket((nomeArqOriginal).getBytes(), nomeArqOriginal.length(), enderecoServidor, porto);\n soqueteCliente.send(pacoteRequisicao);\n\n //Recebe como resposta os pares que possuem alguma peça daquele arquivo\n DatagramPacket pacoteResposta = new DatagramPacket(new byte[256], 256);\n soqueteCliente.receive(pacoteResposta);\n String dadosResposta = new String(pacoteResposta.getData()).trim();\n System.out.println(\"Dados resposta: \" + dadosResposta);\n String[] ipPares = dadosResposta.split(\"-\");\n //System.out.println(\"Quantidade:\" +ipPares.length);\n\n\n //ARRUMAR ISSO DEPOIS\n String nomeArqePecas = \"$\" + retornaNomeArq(nomeArquivoTorrent)+\"/0-30\";\n DatagramPacket pacoteRequisicaoPecas = new DatagramPacket((nomeArqePecas).getBytes(), nomeArqePecas.length(), enderecoServidor, porto);\n soqueteCliente.send(pacoteRequisicaoPecas);\n\n System.out.println(\"nome: \"+nomeArqOriginal);\n Path path = Paths.get(nomeArqOriginal);\n\n File arquivoDados = path.toFile();\n RandomAccessFile arq = new RandomAccessFile(arquivoDados,\"rw\");\n int i=0;\n while(i<30){\n DatagramPacket peca = new DatagramPacket(new byte[1000], 1000);\n soqueteCliente.receive(peca);\n\n System.out.println(peca);\n String g = Metadados.geraChave(peca.getData());\n System.out.println(i + \"> \" + g);\n // writePeca(i,peca.getData(),arq);\n i++;\n }\n\n\n\n //DatagramPacket pacoteResposta = new DatagramPacket(new byte[25600], 25600);\n //soqueteCliente.receive(pacoteResposta);\n clienteTerminou = true;\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n }", "public void aplicarDescuento();", "@Override\n\tpublic void ejecutar() {\n\t\tcontrolador.resetPartida();\n\n\t}", "public interface AttachmentNames\n{\n // ------------------------------------------------------------------------------||\n // Contracts --------------------------------------------------------------------||\n // ------------------------------------------------------------------------------||\n \n /**\n * Name of the asynchronous {@link ExecutorService} used to process incoming\n * async invocations\n */\n String ASYNC_INVOCATION_PROCESSOR = \"org.jboss.ejb3.async.\" + ExecutorService.class.getSimpleName();\n}", "protected String cargarEncuestasCasaSa(String url, String username,\n String password) throws Exception {\n try {\n if(mEncuestasCasaSA.size()>0){\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/encuestasCasaSA\";\n EncuestaCasaSA[] envio = mEncuestasCasaSA.toArray(new EncuestaCasaSA[mEncuestasCasaSA.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<EncuestaCasaSA[]> requestEntity =\n new HttpEntity<EncuestaCasaSA[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone los participantes y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n return e.getMessage();\n }\n }", "protected void onPreExecute(){\n this.URL \t\t\t= this.FcnCfg.getIp_server()+\":\"+this.FcnCfg.getPort()+\"/\"+this.FcnCfg.getModule_web_service()+\"/\"+this.FcnCfg.getWeb_service();\n this.NAMESPACE \t\t= this.FcnCfg.getIp_server()+\":\"+this.FcnCfg.getPort()+\"/\"+this.FcnCfg.getModule_web_service();\n\n Toast.makeText(this.ConnectServerContext,\"Iniciando conexion con el servidor, por favor espere...\", Toast.LENGTH_SHORT).show();\n _pDialog = new ProgressDialog(this.ConnectServerContext);\n _pDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n _pDialog.setMessage(\"Ejecutando operaciones...\");\n _pDialog.setCancelable(false);\n _pDialog.setProgress(0);\n _pDialog.setMax(100);\n _pDialog.show();\n }", "public void envia4Pigor(String dadosEnviar) {\n byte[] msgBuffer = dadosEnviar.getBytes();\n try {\n mmOutStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }", "private void inicializarcomponentes() {\n Comunes.cargarJList(jListBecas, becasFacade.getTodasBecasVigentes());\n \n }", "protected String cargarEncCasas(String url, String username,\n String password) throws Exception {\n try {\n getEncCasas();\n if(mEncuestasCasas.size()>0){\n saveEncCasas(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/encuestascasas\";\n EncuestaCasa[] envio = mEncuestasCasas.toArray(new EncuestaCasa[mEncuestasCasas.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<EncuestaCasa[]> requestEntity =\n new HttpEntity<EncuestaCasa[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveEncCasas(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveEncCasas(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "public void execute() {\n //this.$context.$Request.initialize();\n this.$context.$Request.extractAllVars();\n\n this.$context.$Response.writeHeader(\"Content-type\", \"text/html; charset=UTF-8\");\n\n // Check security code\n if (!this.$context.$Request.contains(\"code\")) {\n this.$context.$Response.end(\"Code is required!\");\n return;\n }\n String $code = this.$context.$Request.get(\"code\");\n if (!EQ($code, Config.SECURITY_CODE)) {\n this.$context.$Response.end(\"Incorrect code!\");\n return;\n }\n\n // Check package\n if (!this.$context.$Request.contains(\"package\")) {\n this.$context.$Response.end(\"Package is required!\");\n return;\n }\n String $package = this.$context.$Request.get(\"package\");\n if (BLANK($package)) {\n this.$context.$Response.end(\"Empty package!\");\n return;\n }\n String[] $packageChunks = Strings.split(\"-\", $package);\n for (int $n = 0; $n < SIZE($packageChunks); $n++)\n $packageChunks[$n] = Strings.firstCharToUpper($packageChunks[$n]);\n $package = Strings.join(\"/\", $packageChunks);\n\n // Check class\n if (!this.$context.$Request.contains(\"class\")) {\n this.$context.$Response.end(\"Class is required!\");\n return;\n }\n String $className = this.$context.$Request.get(\"class\");\n if (BLANK($className)) {\n this.$context.$Response.end(\"Empty class!\");\n return;\n }\n\n // Check method\n if (!this.$context.$Request.contains(\"method\")) {\n this.$context.$Response.end(\"Method is required!\");\n return;\n }\n String $method = this.$context.$Request.get(\"method\");\n if (BLANK($method)) {\n this.$context.$Response.end(\"Empty method!\");\n return;\n }\n\n // Fill array with parameters\n int $count = 0;\n TArrayList $pars = new TArrayList();\n for (int $n = 1; $n <= 6; $n++) {\n String $parName = CAT(\"par\", $n);\n if (!this.$context.$Request.contains($parName))\n break;\n String $parValue = this.$context.$Request.get($parName);\n if (EQ($parValue, \"_\"))\n $parValue = \"\";\n //$parsArray[] = $parValue;\n $pars.add($parValue);\n $count++;\n }\n\n String $buffer = null;\n Object $result = null;\n\n String $fullClass = CAT($package, \"/\", $className);\n\n $fullClass = Strings.replace(\"/\", \".\", $fullClass);\n TArrayList $pars0 = new TArrayList(new Object[] { this.$context.$Connection });\n $result = Bula.Internal.callMethod($fullClass, $pars0, $method, $pars);\n\n if ($result == null)\n $buffer = \"NULL\";\n else if ($result instanceof DataSet)\n $buffer = ((DataSet)$result).toXml(EOL);\n else\n $buffer = STR($result);\n this.$context.$Response.write($buffer);\n this.$context.$Response.end();\n }", "@GET\r\n\t@Produces(MediaType.APPLICATION_OCTET_STREAM)\r\n\t@Path(\"assets/{filename}\")\r\n\tpublic Response staticResources(@PathParam(\"filename\") String filename) {\r\n\t\tSystem.out.println(\"Fichier : \" + filename);\r\n\t\t\r\n\t\tString assetsPath = \"./assets/\";\r\n\t\tFile fichier = new File(assetsPath + filename );\r\n\t\t\r\n\t\tif( !fichier.exists() ) {\r\n\t\t\treturn Response.status(404).build();\r\n\t\t}\r\n\t\treturn Response.ok(fichier, MediaType.APPLICATION_OCTET_STREAM)\r\n\t\t .header(\"Content-Disposition\", \"attachment; filename=\\\"\" + fichier.getName() + \"\\\"\")\r\n\t\t\t .build();\r\n\t}", "public ControladorArchivos() {\n diccionarioEncriptado = new HashMap<>();\n llenarDiccionario();\n for (Map.Entry<String, String> entry : diccionarioEncriptado.entrySet()) {\n String key = entry.getKey();\n String value = entry.getValue();\n System.out.println(key);\n }\n }", "public static String obtenerTitulosParcelas(String key) {\n\t\tString archivoEncabezados = \"co/gov/ideamredd/recursos/encabezados\";\n\t\tResourceBundle encabezados = ResourceBundle.getBundle(archivoEncabezados);\n\t\ttry {\n\t\t\treturn encabezados.getString(key);\n\t\t}\n\t\tcatch (MissingResourceException e) {\n\t\t\treturn '!' + key + '!';\n\t\t}\n\t}", "private static String getFilesContent() {\n String content = \"\";\n try {\n //cameras.json\n AssetManager am = MarketApplication.getMarketApplication().getAssets();\n InputStream stream = am.open(CAMERAS_FILE_NAME);\n int size = stream.available();\n byte[] buffer = new byte[size];\n stream.read(buffer);\n mJsonCameras = new String(buffer);\n\n //videogames.json\n stream = am.open(VIDEO_GAMES_FILE_NAME);\n size = stream.available();\n buffer = new byte[size];\n stream.read(buffer);\n mJsonVideogames = new String(buffer);\n\n //clothes.json\n stream = am.open(CLOTHES_FILE_NAME);\n size = stream.available();\n buffer = new byte[size];\n stream.read(buffer);\n stream.close();\n mJsonClothesProducts = new String(buffer);\n\n\n } catch (IOException e) {\n Log.e(TAG, \"Couldn't read the file\");\n }\n return content;\n }", "public void generar() throws Exception {\n\t\tAnalizador_Sintactico.salida.generar(\".DATA\", \"genero los datos estaticos para la clase \"+this.nombre);\r\n\t\tAnalizador_Sintactico.salida.generar(\"VT_\"+nombre+\":\",\" \");\r\n\t\t\r\n\t\tboolean esDinamico=false;\r\n\t\t\r\n\t\t//para cada metodo, genero la etiqueta dw al codigo\r\n\t\tfor (EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\tAnalizador_Sintactico.salida.gen_DW(\"DW \"+m.getEtiqueta(),\"offset: \"+m.getOffsetMetodo(),m.getOffsetMetodo());\r\n\t\t\t\tesDinamico=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tAnalizador_Sintactico.salida.agregar_DW();\r\n\t\t\r\n\t\t//si NO hay ningun metodo dinamico -> VT con NOP\r\n\t\tif (! esDinamico)\r\n\t\t\tAnalizador_Sintactico.salida.generar(\"NOP\",\"no hago nada\");\r\n\t\t\r\n\t\t//genero codigo para todos los metodos\r\n\t\tAnalizador_Sintactico.salida.generar(\".CODE\",\"seccion codigo de la clase \"+this.nombre);\r\n\t\t\r\n\t\tList<EntradaPar> listaParams;\r\n\t\tfor(EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(m);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= m.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\t\r\n\t\t\t\t//si es dinamico m -> offset desde 3\r\n\t\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\t\tp.setOffset((listaParams.size() +4) - p.getUbicacion());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t//si es estatico m -> offset desde 2\r\n\t\t\t\t\tp.setOffset((listaParams.size() +3) - p.getUbicacion());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//genero el codigo del cuerpo de ese metodo\r\n\t\t\tm.generar();\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//genero codigo para todos los constructores\r\n\t\tfor(EntradaCtor c: entradaCtor.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(c);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= c.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\tp.setOffset(listaParams.size() +4 - p.getUbicacion());\t// +4 porque el ctor tiene this\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//genero el codigo de ese metodo\r\n\t\t\tc.generar();\r\n\t\t}\t\r\n\t}", "public void ejecutarMaquinaTuring() {\n\n\t\tString cadenaEntrada;\n\t\tArrayList<String> cadenaCinta = new ArrayList<>();\n\t\tsetEstadoActual(getEstadoInicial());\n\t\tSystem.out.println(\"Inserte la cadena a probar:\");\n\t\tScanner imputUsuario = new Scanner(System.in);\n\t\tcadenaEntrada = imputUsuario.nextLine();\n\t\tfor (int i = 0; i < cadenaEntrada.length(); i++) {\n\t\t\tcadenaCinta.add(String.valueOf(cadenaEntrada.charAt(i)));\n\t\t}\n\n\t\tcinta = new Cinta(cadenaCinta, new CabezaLE());// inicializamos la cinta\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// con la cadena del\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// usuario\n\t\t/*\n\t\t * Evaluamos\n\t\t */\n\t\tboolean noTransiciones = false;\n\n\t\twhile (noTransiciones == false) {// para cuando no hayan transiciones\n\n\t\t\tnoTransiciones = true;// suponemos, a priori, que no hay\n\t\t\t\t\t\t\t\t\t// transiciones\n\n\t\t\tfor (int j = 0; j < conjuntoTransiciones.size(); j++) {\n\n\t\t\t\tString estadoSiguiente = cinta.getCabezaLE().transitar(estadoActual, cinta.getCadenaCinta(),\n\t\t\t\t\t\tconjuntoTransiciones.get(j));\n\n\t\t\t\tif (estadoSiguiente != null) {// si encontro un estado al que\n\t\t\t\t\t\t\t\t\t\t\t\t// transitar...\n\n\t\t\t\t\testadoActual = estadoSiguiente; // transita\n\t\t\t\t\tnoTransiciones = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} // END FOR\n\t\t} // END WHILE (NO QUEDAN TRANSICIONES)\n\t\tgetCinta().mostrarCinta();\n\t\tcadenaEsAceptada();\n\t}", "private void enviar_arquivo()\n {\n try\n {\n verifica_servidor();\n /*** Cria a conexão UDP ***/\n socket = new DatagramSocket();\n /*** Obtem o endereço IP ***/\n InetAddress IPAddress = InetAddress.getByName(this.ip);\n /*** Inicia o handshake ***/\n handshake(IPAddress);\n /*** Cria a instancia da classe arquivo para o envio ***/\n int pacotes_enviados = 1;\n while (pacotes_enviados < pacotes.size())\n {\n verifica_servidor();\n int enviar = this.CWND / Utils.tamanho_util_pacote;\n int enviados = 0;\n int enviei = 0;\n while (enviados < enviar)\n {\n verifica_servidor();\n if(pacotes_enviados + enviados >= pacotes.size()) break;\n meu_pacote = pacotes.get(pacotes_enviados + enviados);\n meu_pacote.setId((short) this.ID);\n this.ultimo_sequencia_enviado = proximo_sequencia(this.ultimo_sequencia_enviado);\n meu_pacote.setNumero_de_sequencia(this.ultimo_sequencia_enviado);\n meu_pacote.setNumero_ack(this.ultimo_ack);\n janela.get(pacotes_enviados + enviados).setNumero_sequencia(this.ultimo_sequencia_enviado);\n /*** Dados do arquivo para enviar ***/\n byte[] data = Utils.cria_pacote(meu_pacote);\n /*** Pacote para enviar ***/\n DatagramPacket sendPacket = new DatagramPacket(data, data.length, IPAddress, this.porta);\n /*** Envia o arquivo ***/\n if(!vai_falhar(Utils.chance_perda_cliente))\n {\n socket.send(sendPacket);\n System.out.println(Utils.prefixo_cliente + Utils.pacote_enviado(meu_pacote));\n }else\n {\n System.out.println(Utils.prefixo_cliente + Utils.pacote_perdido);\n }\n janela.get(pacotes_enviados + enviados).ativa_timer();\n janela.get(pacotes_enviados + enviados).setEstouro(false);\n enviados++;\n enviei++;\n /*** Tempo de espera minimo ***/\n try\n {\n Thread.sleep(100);\n } catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n }\n boolean checkado = false;\n int recebidos = 0;\n while (!checkado)\n {\n try\n {\n verifica_servidor();\n byte[] incomingData2 = new byte[Utils.tamanho_pacote];\n /*** Recebe um pacote ***/\n DatagramPacket incomingPacket2 = new DatagramPacket(incomingData2, incomingData2.length);\n socket.setSoTimeout(Utils.tempo_espera_ack);\n socket.receive(incomingPacket2);\n byte[] data4 = incomingPacket2.getData();\n /*** Transforma os bytes em uma instancia de arquivo ***/\n Pacote pacote_2 = Utils.cria_pacote(data4);\n /*** LOG ***/\n System.out.println(Utils.janela(enviar, this.CWND, this.SS_THRESH, this.janela));\n int prox= 0;\n int indice = 0;\n for (Map.Entry a : janela.entrySet()){\n if(!((Estado) a.getValue()).isEstado())\n {\n prox = ((Estado) a.getValue()).getNumero_sequencia();\n indice = (int) a.getKey();\n break;\n }\n }\n /*** LOG ***/\n System.out.println(Utils.prefixo_cliente + Utils.seq_esperado(prox,pacote_2.getNumero_ack()));\n if (pacote_2.isACK() && pacote_2.getNumero_ack() >= prox)\n {\n System.out.println(Utils.prefixo_servidor + Utils.pacote_recebido(pacote_2));\n int contador = obtem_primeiro(pacote_2.getNumero_ack());\n for(int iterador = indice; iterador <= contador; iterador++)\n {\n desativa_s_timer();\n recebidos++;\n if (this.CWND < this.SS_THRESH) this.CWND += 512;\n else\n {\n this.CWND = (512 * 512)/this.CWND;\n if (this.CWND < 512){\n this.CWND = 512;\n// this.SS_THRESH = 10000;\n }\n }\n }\n verifica(contador);\n this.ultimo_ack = pacote_2.getNumero_de_sequencia()+1;\n }\n if (recebidos == enviei) checkado = true;\n }catch (SocketTimeoutException e){\n System.out.print(Utils.reenvio_pacote);\n checkado = true;\n verifica_servidor();\n }\n }\n int teste = houve_estouro();\n if (teste != -69)\n {\n pacotes_enviados = teste;\n if (teste != 1)\n {\n this.SS_THRESH = this.CWND;\n this.CWND = 512;\n }\n this.ultimo_sequencia_enviado = janela.get(teste-1).getNumero_sequencia();\n }\n else pacotes_enviados += enviar;\n }\n terminar_conexao();\n socket.close();\n System.exit(0);\n } catch (SocketException e)\n {\n System.out.println(Utils.prefixo_cliente + Utils.fim_de_conexao);\n } catch (IOException | ClassNotFoundException | InstantiationException | IllegalAccessException e)\n {\n e.printStackTrace();\n }\n }", "public static void ObtenerDatosRecompensas(Context context) {\n\n queue = Volley.newRequestQueue(context);\n\n\n String url = \"http://161.35.14.188/Persuhabit/recompensas\";//establece ruta al servidor para obtener los datos\n JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n\n try {\n JSONArray jsonArray = response.getJSONArray(\"data\");\n\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject jsonObject = jsonArray.getJSONObject(i);\n String descrip = jsonObject.getString(\"descrip\");\n System.out.println(descrip);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n queue.add(jsonObjectRequest);\n }", "protected String cargarEncuestasParticipantesSa(String url, String username,\n String password) throws Exception {\n try {\n if(mEncuestasParticipanteSA.size()>0){\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/encuestasParticipanteSA\";\n EncuestaParticipanteSA[] envio = mEncuestasParticipanteSA.toArray(new EncuestaParticipanteSA[mEncuestasParticipanteSA.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<EncuestaParticipanteSA[]> requestEntity =\n new HttpEntity<EncuestaParticipanteSA[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone los participantes y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n return e.getMessage();\n }\n }", "public void generarReporteLibroContables(String sAccionBusqueda,List<LibroContable> librocontablesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"LibroContable\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LibroContableMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"LibroContableMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LibroContable\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Libro Contables\");\t\t\r\n\t\tparameters.put(\"busquedapor\", LibroContableConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(ParametroFactuPrincipal.class));\r\n\t\t\tclasses.add(new Classe(Definicion.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tLibroContableLogic librocontableLogicAuxiliar=new LibroContableLogic();\r\n\t\t\t\t\tlibrocontableLogicAuxiliar.setDatosCliente(librocontableLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tlibrocontableLogicAuxiliar.setLibroContables(librocontablesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tlibrocontableLogicAuxiliar.cargarRelacionesLoteForeignKeyLibroContableWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tlibrocontablesParaReportes=librocontableLogicAuxiliar.getLibroContables();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//librocontableLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (LibroContable librocontable:librocontablesParaReportes) {\r\n\t\t\t\t\t//\tlibrocontableLogic.deepLoad(librocontable, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//librocontableLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//librocontableLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileParametroFactuPrincipal = AuxiliarReportes.class.getResourceAsStream(\"ParametroFactuPrincipalDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_parametrofactuprincipal\", reportFileParametroFactuPrincipal);\r\n\r\n\t\t\tInputStream reportFileDefinicion = AuxiliarReportes.class.getResourceAsStream(\"DefinicionDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_definicion\", reportFileDefinicion);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceLibroContable=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tLibroContableConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tLibroContableConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceLibroContable=new JRBeanArrayDataSource(LibroContableJInternalFrame.TraerLibroContableBeans(librocontablesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceLibroContable);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+LibroContableConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+LibroContableConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(LibroContableBean.TraerLibroContableBeans(librocontablesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoLibroContableActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public String cargarDatos()\r\n/* 137: */ {\r\n/* 138:163 */ limpiar();\r\n/* 139:164 */ return \"\";\r\n/* 140: */ }", "@Override\r\n protected void onPreExecute() {\r\n super.onPreExecute();\r\n System.out.println(\"Starting download\");\r\n }", "public boolean ejecutarDescartar();", "@Override\n public void onExecute() {\n\n resourceB = this.getContext().getGame().getPlayer(idPlayer).getInventory().getValueRessource(type);\n\n if(this.cmd == CmdRessource.ADD) { // si le type de commande est un ajout\n if(type == TypeRessource.GOLD && this.getContext().getGame().getPlayer(idPlayer).getInventory().haveHammer()){ // un ajout de gold\n this.print(\"Player \"+idPlayer+\" have hammer, ressource : \"+value+\" \"+type+\" to \"+idPlayer);\n this.getManager().triggerCommandEffectHammer(idPlayer,value); // on trigger leffet hammer\n }\n else {\n this.print(\"Add ressource : \"+value+\" \"+type+\" to \"+idPlayer);\n getContext().getGame().addRessourcePlayer(idPlayer,type,value); //sinon on ajout la ressource\n this.calculeStatAdd();\n }\n }\n else if(this.cmd == CmdRessource.REMOVE) {\n this.print(\"Remove ressource : \"+value+\" \"+type+\" to \"+idPlayer);\n getContext().getGame().removeRessourcePlayer(idPlayer,type,value); // remove ressource\n this.calculeStatRemove();\n }\n else if(this.cmd == CmdRessource.ADD_AFTER_HAMMER) {\n this.print(\"Add ressource after hammer : \"+value+\" \"+type+\" to \"+idPlayer);\n getContext().getGame().addRessourcePlayer(idPlayer,type,value); //si c'est un ajout apres hammer alors exec la commande d'ajout de ressource\n this.calculeStatAdd();\n }\n }", "void executaInstrucoes (){\n\n /* Executa uma instrução da memoria */\n for (opReg.getPC() ; opReg.getPC() < 0x0fff; opReg.setPC(opReg.getPC()+4)) { //verificar se esta contando de 4 em 4\n\n /* Salva as instruções de 4 bytes (32 bits) em uma string\n * a partir do endereço do PC */ \n String instrucao = null;\n instrucao = separaDados.separaInstrucao(instrucao, opReg.getPC(), memoria.memory);\n decodifica.separaInstrucao(instrucao, opReg.getPC(), opReg, memoria, sc);\n }\n sc.close();\n }", "public String[] requisicaoPassageiros() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[1];\r\n\t\tString resultado;\r\n\t\tString passageiros[];\r\n\r\n\t\tparams[0] = \"op=7\";\r\n\r\n\t\tresultado = con.sendHTTP(params);\r\n\r\n\t\tpassageiros = resultado.split(\";\");\r\n\r\n\t\treturn passageiros;\r\n\t}", "private static WsbcucotizacionesExecuteResponse execute(WebService.WsbcucotizacionesExecute parameters) {\r\n WebService.Wsbcucotizaciones service = new WebService.Wsbcucotizaciones();\r\n WebService.WsbcucotizacionesSoapPort port = service.getWsbcucotizacionesSoapPort();\r\n return port.execute(parameters);\r\n }", "private void abrirEntTransaccion(){\n try{\n entTransaccion = new ObjectInputStream(\n Files.newInputStream(Paths.get(\"trans.ser\")));\n }\n catch(IOException iOException){\n System.err.println(\"Error al abrir el archivo. Terminado.\");\n System.exit(1);\n }\n }", "public void getConsultAssets(final String consultID,\n final ServiceClientCompletion<ResponseResult> completion)\n {\n final HashMap<String, String> headers =\n getHeaderWithAccessToken(mSharecareToken.accessToken);\n final String endPoint =\n String.format(GET_ALL_CONSULT_ASSETS_ENDPOINT,\n mSharecareToken.accountID, consultID);\n this.beginRequest(endPoint, ServiceMethod.GET, headers, null,\n (String)null, ServiceResponseFormat.GSON,\n new ServiceResponseTransform<JsonElement, ResponseResult>()\n {\n @Override\n public ResponseResult transformResponseData(\n final JsonElement json)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(json);\n final JsonElement response = getResponseFromJson(json);\n if (!checkResultFromDataService(json))\n {\n result.success = false;\n result.responseCode =\n ServiceClientConstants.SERVICE_RESPONSE_STATUS_CODE_UNKNOWN;\n }\n else if (!result.success && response != null)\n {\n try\n {\n result.errorMessage = response.getAsString();\n }\n catch (final ClassCastException e)\n {\n// Crashlytics.logException(e);\n }\n }\n else if (response != null && response.isJsonArray())\n {\n final JsonArray responseArray =\n response.getAsJsonArray();\n final ArrayList<Asset> assets = new ArrayList<Asset>();\n for (final JsonElement element : responseArray)\n {\n if (element.isJsonObject())\n {\n final JsonObject assetJson =\n element.getAsJsonObject();\n final String type =\n getStringFromJson(assetJson, TYPE);\n if (!StringHelper.isNullOrEmpty(type))\n {\n if (type.equals(IMAGE))\n {\n final JsonObject image =\n getJsonObjectFromJson(assetJson,\n LOCATIONS);\n if (image != null)\n {\n final String imageUri =\n getStringFromJson(assetJson,\n URI);\n final String imageUrl =\n \"https:\"\n + getStringFromJson(\n image,\n getAssetSizeString(AssetSize.Size290x290));\n final String thumbnailUrl =\n \"https:\"\n + getStringFromJson(\n image,\n getAssetSizeString(AssetSize.Size60x60));\n final Asset asset =\n Asset.imageAsset(imageUri,\n imageUrl, thumbnailUrl);\n assets.add(asset);\n }\n }\n else if (type.equals(VIDEO))\n {\n final String videoUri =\n getStringFromJson(assetJson, URI);\n final String brightcoveID =\n getStringFromJson(assetJson,\n SOURCE_ID);\n final String thumbnailUrl =\n getStringFromJson(assetJson,\n GALLERY);\n final Asset asset =\n Asset.videoAsset(videoUri,\n brightcoveID, thumbnailUrl);\n assets.add(asset);\n }\n }\n }\n }\n if (assets.size() > 0)\n {\n final HashMap<String, Object> parameters =\n new HashMap<String, Object>(1);\n parameters.put(\"ASSETS\", assets);\n result.parameters = parameters;\n }\n }\n LogError(\"getConsultAssets\", result);\n return result;\n }\n }, completion);\n }", "private void getEncCasas() {\n mEncuestasCasas= estudioAdapter.getListaEncuestaCasasSinEnviar();\n //ca.close();\n }", "@POST\n @Path(\"transfer\")\n BiboxSingleResponse<BiboxAssetsResult> assets(\n @FormParam(FORM_CMDS) String cmds,\n @FormParam(FORM_APIKEY) String apiKey,\n @FormParam(FORM_SIGNATURE) ParamsDigest signature);", "protected String getAbreviaturaProceso(Constantes.PROCESOS proc) throws Exception{\n\t\treturn getParametro(proc.getCodValor());\r\n\t}", "private void inicializarConexoesDaSegundaCamada() {\n conexoesSegundaCamada = new double[numeroNeuroniosPrimeiraCamada + 1];\n for (int i = 0; i < conexoesSegundaCamada.length; i++) {\n conexoesSegundaCamada[i] = Math.random();\n //conexoesSegundaCamada[i] = 1.0;\n }\n }", "@Override\r\n\tpublic String execute() throws Exception {\n\t\ttry{\r\n\t\t\tSystem.out.println(\"uuid=\"+uuid);\r\n\t\t\tSystem.out.println(\"txtPath=\"+txtPath);\r\n\t\t\t\r\n\t\t\tfileName=fileName.substring(0,fileName.lastIndexOf(\".\"));\r\n\t\t\ttxtPath=txtPath+fileName+\"_\"+uuid.substring(0, 6)+\".txt\";\r\n\t\t\t//txtPath=txtPath+uuid+\".txt\";\r\n\t\t\t\r\n\t\t\tOperateTxt.createText(txtPath, uuid);\r\n\t\t\ttxtFile=txtDownloadPath;\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn ERROR;\r\n\t\t}\r\n\t\t\r\n\t\treturn SUCCESS;\r\n\t\t\r\n\t}", "public void generarReporteTipoDetalleMovimientoInventarios(String sAccionBusqueda,List<TipoDetalleMovimientoInventario> tipodetallemovimientoinventariosParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventarioMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoDetalleMovimientoInventarioMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Costos\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoDetalleMovimientoInventarioConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleMovimientoInventario.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoDetalleMovimientoInventarioLogic tipodetallemovimientoinventarioLogicAuxiliar=new TipoDetalleMovimientoInventarioLogic();\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setDatosCliente(tipodetallemovimientoinventarioLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setTipoDetalleMovimientoInventarios(tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoDetalleMovimientoInventarioWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventariosParaReportes=tipodetallemovimientoinventarioLogicAuxiliar.getTipoDetalleMovimientoInventarios();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoDetalleMovimientoInventario tipodetallemovimientoinventario:tipodetallemovimientoinventariosParaReportes) {\r\n\t\t\t\t\t//\ttipodetallemovimientoinventarioLogic.deepLoad(tipodetallemovimientoinventario, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleMovimientoInventario = AuxiliarReportes.class.getResourceAsStream(\"DetalleMovimientoInventarioDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallemovimientoinventario\", reportFileDetalleMovimientoInventario);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoDetalleMovimientoInventario=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoDetalleMovimientoInventario=new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioJInternalFrame.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoDetalleMovimientoInventario);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioBean.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoDetalleMovimientoInventarioActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void generarReporteCierreCajas(String sAccionBusqueda,List<CierreCaja> cierrecajasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"CierreCaja\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CierreCajaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"CierreCajaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"CierreCaja\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Cierre Cajas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", CierreCajaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceCierreCaja=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tCierreCajaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tCierreCajaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceCierreCaja=new JRBeanArrayDataSource(CierreCajaJInternalFrame.TraerCierreCajaBeans(cierrecajasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceCierreCaja);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+CierreCajaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+CierreCajaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(CierreCajaBean.TraerCierreCajaBeans(cierrecajasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoCierreCajaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesCierreCajas(sAccionBusqueda,sTipoArchivoReporte,cierrecajasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "String ejecutarAccion();", "private List<String> GetParams(){\n\n ArrayList<String> params = new ArrayList<String>();\n\n // java executable binary\n params.add(_javaConfig.getJava());\n\n params.add(\"-Xms\".concat(_javaConfig.getXms()));\n params.add(\"-Xmx\".concat(_javaConfig.getXmx()));\n params.add(\"-Djava.library.path=\".concat(_javaConfig.getJava_library_path()));\n\n params.add(\"-cp\");\n params.add(_javaConfig.getClasspath());\n\n params.add(\"net.minecraft.client.main.Main\");\n\n params.add(\"--username\");\n params.add(_gameConfig.getUserName());\n\n params.add(\"--session\");\n params.add(_gameConfig.getSession());\n\n params.add(\"--gameDir\");\n params.add(_gameConfig.getGameDir());\n\n params.add(\"--assetsDir\");\n params.add(_gameConfig.getAssetsDir());\n\n params.add(\"--version\");\n params.add(_gameConfig.getVersion());\n\n return params;\n }", "@Override\n protected Object doInBackground() throws Exception {\n InputStream is = null;\n\n MESSAGE responseConn = MessageManger.createCommand(Command.CONNECT, null);\n MessageManger.addParameter(responseConn, \"response\", Command.OK);\n MessageManger.directWriteMessage(responseConn, ccv.getOutputStream());\n\n// ccv.getHelper().sendRequest(\"~OK\\n\");\n is = so.getInputStream();\n\n BufferedReader in = new BufferedReader(new InputStreamReader(is, Util.DEFAULTENCODING));\n String line = \"\";\n\n while ((line = in.readLine()) != null) {\n\n try {\n if (line.startsWith(\"<\")) {\n\n MESSAGE message = MessageManger.parseXML(line);\n\n //non loggo gli xml di dati perchè so troppo lunghi\n if (!message.getName().equals(Request.FILETRANSFER)) {\n log.debug(ccv.getNick() + \" \" + type + \" reder receive MESSAGE : \" + MessageManger.messageToStringFormatted(message));\n } else {\n log.debug(ccv.getNick() + \" \" + type + \" FILETRANSFER RECEIVED\");\n }\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" MESSAGE \">\n if (message.getType().equals(MESSAGE)) {\n\n String messageSt = message.getParameters().getParameter().get(0).getValue();\n Font font = Font.decode(message.getParameters().getParameter().get(1).getValue());\n Color color = Color.decode(message.getParameters().getParameter().get(2).getValue());\n\n //prendo le emoticons dai contents \n List<Emoticon> emoticons = new LinkedList<Emoticon>();\n\n try {\n if (message.getContents() != null) {\n List<MESSAGE.Contents.Content> contents = message.getContents().getContent();\n\n for (MESSAGE.Contents.Content content : contents) {\n\n log.debug(\"received emoticon : \" + content.getName());\n byte[] bs = content.getValue();\n //decomprimo l'immagine\n byte[] imageBytes = chatclient.commons.Util.decompress(bs);\n log.trace(\"data[] : \" + bs);\n// ByteArrayInputStream bais = new ByteArrayInputStream(bs);\n\n// BufferedImage bufferedImage = ImageIO.read(bais);\n// log.trace(\"BufferedImage : \" + bufferedImage);\n Emoticon emotion = new Emoticon();\n emotion.setShortcut(content.getName());\n emotion.setName(content.getName());\n emotion.setImageIcon(new ImageIcon(imageBytes, \"\"));\n emotion.setData(imageBytes);\n log.trace(\"emoticon ImageIcon : \" + emotion.getImageIcon());\n emoticons.add(emotion);\n\n }\n }\n } catch (Exception e) {\n log.warn(e);\n\n }\n\n\n\n if (message.getName().equals(Message.SINGLE)) {\n String sender = message.getSender();\n\n ChatWindow cv = ccv.getHelper().getChatWith(sender);\n cv.getReceivedEmoticons().addAll(emoticons);\n cv.writeMessage(sender, messageSt, font, color, emoticons);\n\n } else if (message.getName().equals(Message.CONFERENCE)) {\n String sender = message.getSender();\n\n //dalla lista di partecipanti alla conferenza\n //rcavo l'arrey di quelli che servono in questo client\n List<String> componentsOfConferenz = new LinkedList<String>();\n for (String string : message.getReceivers().getReceiver()) {\n if (!string.equals(ccv.getNick())) {\n componentsOfConferenz.add(string);\n }\n }\n componentsOfConferenz.add(sender);\n log.debug(componentsOfConferenz);\n\n ChatWindow cv = ccv.getHelper().getConferenceWith(componentsOfConferenz.toArray(new String[componentsOfConferenz.size()]));\n cv.getReceivedEmoticons().addAll(emoticons);\n cv.writeMessage(sender, messageSt, font, color, emoticons);\n\n }\n\n// </editor-fold>\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" REQUEST \">\n } else if (message.getType().equals(REQUEST)) {\n\n if (message.getName().equals(Request.FILETRANSFER)) {\n\n try {\n String fileName = message.getParameters().getParameter().get(0).getValue();\n String fileurl = Util.readProperties().getProperty(\"downloadFolder\") + \"/\" + fileName;\n int packNum = Integer.parseInt(message.getParameters().getParameter().get(3).getValue());\n\n File outputFile = new File(fileurl);\n\n FileOutputStream fos = new FileOutputStream(outputFile, true);\n byte[] bArr = message.getData();\n\n int readed = Integer.parseInt(message.getParameters().getParameter().get(1).getValue());\n log.debug(ccv.getNick() + \"reader readed bytes : \" + readed);\n log.debug(\"write bytes to file : \" + fileurl);\n fos.write(bArr, 0, readed);\n\n fos.close();\n\n ReceiveFileDialog receiveFileDialog = ccv.getHelper().getReceiveFileDialog(fileName, message.getSender());\n receiveFileDialog.setPackReceived(packNum);\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.FILEACCEPTREQUEST)) {\n\n try {\n //richiesta di ricezione file\n String sender = message.getSender();\n String fileName = message.getParameters().getParameter().get(0).getValue();\n long fileSize = Long.parseLong(message.getParameters().getParameter().get(1).getValue());\n\n ReceiveFileDialog receiveFileDialog = new ReceiveFileDialog(ccv);\n receiveFileDialog.setSender(sender);\n receiveFileDialog.setFile(fileName);\n receiveFileDialog.setFileSize(fileSize);\n\n //grafica\n String infoText = \"<html>File : \" + fileName + \" <br>\" + \"Da : &nbsp&nbsp&nbsp&nbsp<b>\" + sender + \"</b>\" + \" &nbsp&nbsp&nbsp&nbsp Dimensione : \" + (fileSize / 1024) + \"k </html>\";\n receiveFileDialog.getInfoLabel().setText(infoText);\n receiveFileDialog.setTitle(\"Ricezione - \" + fileName);\n receiveFileDialog.getStatusLabel().setText(\"\");\n\n receiveFileDialog.setLocationRelativeTo(ccv.getFrame());\n receiveFileDialog.setVisible(true);\n receiveFileDialog.toFront();\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.FILEACCEPTRESPONSE)) {\n\n try {\n //richiesta di ricezione file\n String sender = message.getSender();\n log.debug(\"sender : \" + sender);\n String fileName = message.getParameters().getParameter().get(0).getValue();\n log.debug(\"fileName : \" + fileName);\n long fileSize = Long.parseLong(message.getParameters().getParameter().get(1).getValue());\n log.debug(\"fileSize : \" + fileSize);\n String response = message.getParameters().getParameter().get(2).getValue();\n log.debug(\"response : \" + response);\n SendFileDialog sendFileDialog = ccv.getHelper().getSendFileDialog(fileName, sender);\n\n if (response.equals(Command.OK)) {\n sendFileDialog.getFileSender().setAccepted(true);\n } else {\n if (sendFileDialog.getFileSender().isAccepted() && sendFileDialog.getFileSender().isActive()) {\n sendFileDialog.transferStoppedFromReceiver();\n } else if (!sendFileDialog.getFileSender().isAccepted()) {\n sendFileDialog.transferRefusedFromReceiver();\n }\n }\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.ADDTOCONFERENCE)) {\n\n try {\n //il priomo elemento è il nick da aggiungere gli alri i membri della conferenza\n String nickToAdd = message.getParameters().getParameter().get(0).getValue();\n\n //dalla lista di partecipanti alla conferenza\n //rcavo l'arrey di quelli che servono in questo client\n List<String> componentsOfConferenz = new LinkedList<String>();\n for (String string : message.getReceivers().getReceiver()) {\n\n if (!string.equals(ccv.getNick())) {\n componentsOfConferenz.add(string);\n }\n }\n componentsOfConferenz.add(message.getSender());\n\n ChatWindow cw = ccv.getHelper().getConferenceWith(componentsOfConferenz.toArray(new String[componentsOfConferenz.size()]));\n cw.addClientToChat(nickToAdd);\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.STARTGAME)) {\n log.debug(\"start dama game\");\n try {\n\n GameHome home = new GameHome(ccv);\n home.setLocationRelativeTo(ccv.getFrame());\n home.setVisible(true);\n home.startDamaClient(message.getSender());\n\n } catch (Exception e) {\n log.error(e);\n }\n\n } else if (message.getName().equals(Request.DAMAPOSITION)) {\n try {\n log.debug(\"position for dama\");\n\n int posX = (int) Double.parseDouble(message.getParameters().getParameter().get(0).getValue());\n log.debug(\"posX = \" + posX);\n int posY = (int) Double.parseDouble(message.getParameters().getParameter().get(1).getValue());\n log.debug(\"posY = \" + posY);\n\n DamaCanvas canvas = (DamaCanvas) ccv.getHelper().getGameWith(message.getSender(), DamaCanvas.class);\n log.debug(canvas);\n canvas.setClick(new Point(posX, posY));\n canvas.setMyClick(false);\n canvas.repaint();\n\n } catch (Exception e) {\n //potrebbe da nullpointer\n log.error(e);\n }\n }\n\n// </editor-fold>\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" COMMAND \">\n } else if (message.getType().equals(COMMAND)) {\n\n if (message.getName().equals(Command.REMOVEUSER)) {\n\n String clientToRemove = message.getParameters().getParameter().get(0).getValue();\n\n ArrayList<Client> clients = ccv.getClients();\n ListIterator<Client> li = clients.listIterator();\n boolean continua = true;\n while (li.hasNext() && continua) {\n Client elem = li.next();\n if (elem.getNick().equals(clientToRemove)) {\n log.info(\"remove element : \" + elem);\n clients.remove(elem);\n DefaultListModel listModel = (DefaultListModel) ccv.getClientsList().getModel();\n synchronized (listModel) {\n listModel.removeElement(elem.getNick());\n ccv.getClientsList().validate();\n ccv.getFrame().pack();\n continua = false;\n }\n }\n }\n\n /*aggiungo un nuovo utente che si è connesso*/\n } else if (message.getName().equals(Command.ADDUSER)) {\n String clientToAdd = message.getParameters().getParameter().get(0).getValue();\n\n ccv.getClients().add(new Client(null, clientToAdd));\n// JList list = ccv.getClientsList();\n int position = ccv.getClientsList().getModel().getSize() - 1;\n DefaultListModel listModel = (DefaultListModel) ccv.getClientsList().getModel();\n synchronized (listModel) {\n// listModel.add(position, clientToAdd);\n\n// listModel.remove(listModel.size() - 1);\n listModel.addElement(clientToAdd);\n// listModel.addElement(null);\n\n ccv.getClientsList().validate();\n ccv.getFrame().validate();\n\n log.debug(\"utenti connessi : \");\n for (Object elem : listModel.toArray()) {\n\n try {\n log.debug(\"utente : \" + elem.toString());\n } catch (Exception e) {\n log.debug(\"elemento NULLO\");\n }\n }\n }\n }\n\n }\n // </editor-fold>\n\n\n }\n } catch (Exception e) {\n log.error(e);\n }\n }\n\n\n try {\n is.close();\n } catch (IOException ex) {\n log.error(ex);\n }\n return null;\n\n\n }", "public Map<String, String> getAllAssets(Context context) throws Exception;", "public static void main(String[] args) \t \r\n\t{\t \t\r\n\t\tnew Controlador();\t\r\n\t\tSerializador ser = new Serializador();\r\n\t\tser.leerObjeto(\"Datos.a\");\r\n\t\tSonido s = new Sonido(\"Sonidos/simpsonTema.wav\");//puede aver problemas con \"src\" boorar para exportar a ejecutable\r\n\t\ts.start();\r\n\t \r\n\t }", "public static void main(String[] args) throws Exception {\r\n// \tRequest gr = getCocReq(\"APRQ\", \"c423e389-42f7-4e20-99bb-5bb99a24b71e\");\r\n// \tSystem.out.println(\"req:\"+gr.getData());\r\n// \tsend(gr);\r\n// \tString name = \"男2.png\";\r\n// \tString uuid = Integer.toHexString(name.hashCode());\r\n// \tSystem.out.print(Integer.MAX_VALUE^1606);\r\n }", "public void recargarDatos( ) {\n\t\tPAC_SHWEB_PROVEEDORES llamadaProv = null;\n\t\ttry {\n\t\t\tllamadaProv = new PAC_SHWEB_PROVEEDORES(service.plsqlDataSource.getConnection());\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\tHashMap respuestaCom = null;\n\n\t\ttry {\n\t\t\trespuestaCom = llamadaProv.ejecutaPAC_SHWEB_PROVEEDORES__F_COMUNICADOS_EXPEDIENTE(\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"user\").toString(),\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"origen\").toString(),\n\t\t\t\t\tnew BigDecimal(UI.getCurrent().getSession().getAttribute(\"expediente\").toString())\n\t\t\t\t\t);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\t// Mostramos el estado del expediente\n\t\tPAC_SHWEB_PROVEEDORES llamada = null;\n\t\ttry {\n\t\t\tllamada = new PAC_SHWEB_PROVEEDORES(service.plsqlDataSource.getConnection());\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\tHashMap respuesta = null;\n\t\ttry {\n\t\t\trespuesta = llamada.ejecutaPAC_SHWEB_PROVEEDORES__F_ESTADO_EXPEDIENTE(\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"user\").toString(),\n\t\t\t\t\tnew BigDecimal(UI.getCurrent().getSession().getAttribute(\"expediente\").toString())\n\t\t\t\t\t);\n\t\t\t\n\t\t\tMap<String, Object> retorno = new HashMap<String, Object>(respuesta);\n\n\t\t\tUI.getCurrent().getSession().setAttribute(\"estadoExpediente\",retorno.get(\"ESTADO\").toString());\n\t\t\t\n\t\t\tprovPantallaConsultaExpedienteInicial.setCaption(\"GESTIÓN DEL EXPEDIENTE Nº \" + UI.getCurrent().getSession().getAttribute(\"expediente\")\n\t\t\t\t\t+ \" ( \" + \n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"estadoExpediente\") + \" ) \");\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\t\t}\t\n\t\t\n\t\t// Maestro comunicados\n\n\t\tWS_AMA llamadaAMA = null;\n\t\ttry {\n\t\t\tllamadaAMA = new WS_AMA(service.plsqlDataSource.getConnection());\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\tHashMap respuestaMaestro = null;\n\t\t\n\t\t//System.out.println(\"Llamammos maestro comunicados: \" + UI.getCurrent().getSession().getAttribute(\"tipousuario\").toString().substring(1,1));;\n\t\ttry {\n\t\t\t// pPUSUARIO, pORIGEN, pTPCOMUNI, pTPUSUARIO, pESTADO)\n\t\t\t\n\t\t\trespuestaMaestro = llamadaAMA.ejecutaWS_AMA__MAESTRO_COMUNICADOS(\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"user\").toString(),\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"origen\").toString(),\n\t\t\t\t\tnull,\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"tipousuario\").toString().substring(1,1),\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"estadoExpediente\").toString()\n\t\t\t\t\t);\t\t\t\n\n\t\t\t\n\t\t\tMap<String, Object> retornoMaestro = new HashMap<String, Object>(respuestaMaestro);\n\t\t\tList<Map> valorMaestro = (List<Map>) retornoMaestro.get(\"COMUNICADOS\");\n\t\t\tUI.getCurrent().getSession().setAttribute(\"comunicadosExpediente\",valorMaestro);\n\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tUI.getCurrent().getSession().setAttribute(\"comunicadosExpediente\",null);\n\t\t}\n\t\t\n\t\t// \t\n\t\t\n\t\t\n\t\t// Validamos si tenemos que mostrar el bot�n de cerrar expediente\n\t\t\n\t\t/*if ( !ValidarComunicado.EsValido(\"CA\") && !ValidarComunicado.EsValido(\"FT\") ) {\n\t\t\tprovPantallaConsultaExpedienteInicial.provDatosDetalleExpediente.btCerrarExpediente.setVisible(false);\n\t\t}\n\t\telse {\n\t\t\tprovPantallaConsultaExpedienteInicial.provDatosDetalleExpediente.btCerrarExpediente.setVisible(true);\n\n\t\t\t\n\t\t\t\n\t\t}*/\n\t\t// Mostramos botonera de cerrar expediente\n\t\t// Validamos si tenemos que mostrar el bot�n de cerrar expediente\n\t\t\n\n\t}", "private void enviaPct(int[] dados) {\n ByteBuffer byteBuffer = ByteBuffer.allocate(dados.length * 4);\n IntBuffer intBuffer = byteBuffer.asIntBuffer();\n intBuffer.put(dados);\n\n byte[] buffer = byteBuffer.array();\n\n try {\n //System.out.println(\"Semaforo: \"+sem.availablePermits());\n sem.acquire();\n //System.out.println(\"Semaforo: \"+sem.availablePermits());\n\n InetAddress address = InetAddress.getByName(\"localhost\");\n try (DatagramSocket datagramSocket = new DatagramSocket(portaLocalEnvio)) {\n DatagramPacket packet = new DatagramPacket(\n buffer, buffer.length, address, portaDestino);\n\n datagramSocket.send(packet);\n }\n\n System.out.println(\"Envio feito.\");\n } catch (SocketException ex) {\n Logger.getLogger(EnviaDados.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException | InterruptedException ex) {\n Logger.getLogger(EnviaDados.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public static void main(String[] args) {\n\t\tHamburger cheeseBurger = new Hamburger(\"CheeseBurger\");\r\n\t\tHamburger maxiBurger = new Hamburger(\"MaxiBurger\");\r\n\t\tAccompagnement accompagnement = new Accompagnement(\"Frites\");\r\n\t\tBoisson boissonCoca = new Boisson(\"Coca\");\r\n\t\tBoisson boissonOrange = new Boisson(\"Orange\");\r\n\r\n\t\t// Mise en place de l'environnement\r\n\t\tControlCreerProfil controlCreerProfil = new ControlCreerProfil();\r\n\t\tcontrolCreerProfil.creerProfil(ProfilUtilisateur.PERSONNEL, \"Dupond\", \"Jacques\", \"jdu\");\r\n\r\n\t\t// Connexion du cuisinier\r\n\t\tControlSIdentifier controlSIdentifier = new ControlSIdentifier();\r\n\t\tint numCuisinier = controlSIdentifier.sIdentifier(ProfilUtilisateur.PERSONNEL, \"Jacques.Dupond\", \"jdu\");\r\n\r\n\t\t// Initialisation controleur du cas & cas Inclus/etendu\r\n\t\tControlVerifierIdentification controlVerifierIdentification = new ControlVerifierIdentification();\r\n\t\tcontrolVerifierIdentification.verifierIdentification(ProfilUtilisateur.PERSONNEL, numCuisinier);\r\n\r\n\t\t// cas visualiser commande du jour\r\n\t\tControlVisualiserCommandeJour controlVisualiserCommandeJour = new ControlVisualiserCommandeJour(\r\n\t\t\t\tcontrolVerifierIdentification);\r\n\t\tBoundaryVisualiserCommandeJour boundaryVisualiserCommandeJour = new BoundaryVisualiserCommandeJour(\r\n\t\t\t\tcontrolVisualiserCommandeJour);\r\n\t\tboundaryVisualiserCommandeJour.visualiserCommandeJour(numCuisinier);\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(1500);\r\n\t\t\tSystem.out.println(\"Ecriture des commandes dans le fichier\");\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// extrait cas commander\r\n\t\tBDCommande bdCommande = BDCommande.getInstance();\r\n\t\tbdCommande.enregistrerCommande(1, cheeseBurger, accompagnement, boissonCoca);\r\n\t\tbdCommande.enregistrerCommande(1, maxiBurger, accompagnement, boissonOrange);\r\n\r\n\t\t// Ecriture des commandes dans le fichier\r\n\t\t// Commande n°1 : CheeseBurger, Frites, Coca\r\n\t\t// Commande n°2 : MaxiBurger, Frites, Orange\r\n\t}", "public WSActionResult execute(WSContext wsContext, WSAssetTask task) {\n\n //various metadata\n WSUser translator = task.getTaskHistory().getLastHumanStepUser();\n\n if(null == translator) {\n return new WSActionResult(WSActionResult.ERROR, \"Can not determine asset's translator\");\n }\n log.info(\"Translator is \" + translator.getFullName());\n\n\n //set the translator attribute for later use, for FO only; This may be used in future enhancement; for now set all translators\n// String wkgroupName = task.getProject().getProjectGroup().getWorkgroup().getName();\n// if(wkgroupName.startsWith(\"FO_\")) {\n task.getProject().setAttribute(_mostRecentTranslatorAttr, translator.getFirstName() + \" \" + translator.getLastName()\n + \" [\" + translator.getUserName() + \"]\");\n// }\n\n //obtain count attribute\n String attrTCount = null;\n try {\n attrTCount = Config.getTranslationsCountAttributeName(wsContext);\n AttributeValidator.validateAttribute(wsContext,\n attrTCount,\n ATTRIBUTE_OBJECT.USER,\n ATTRIBUTE_TYPE.INTEGER,\n translator,\n \"0\");\n } catch (Exception e) {\n log.error(e.getLocalizedMessage());\n return new WSActionResult(WSActionResult.ERROR,\n \"Attribute \" + attrTCount + \" is misconfigured. \" + e.getLocalizedMessage());\n }\n\n\n int tasksTranslated;\n if(null == translator.getAttribute(attrTCount)\n || translator.getAttribute(attrTCount).length() == 0) {\n log.info(\"First time user. Set initial count of translated letters to 0\");\n tasksTranslated = 0;\n }\n else {\n tasksTranslated = WSAttributeUtils.getIntegerAttribute(this,\n translator,\n attrTCount);\n }\n\n if(tasksTranslated < 0) {\n return new WSActionResult(WSActionResult.ERROR,\n \"Invalid number of translated letters for user \" +\n translator.getUserName() +\n \": \" + tasksTranslated);\n }\n\n translator.setAttribute(attrTCount,\n String.valueOf(++tasksTranslated));\n\n return new WSActionResult(DONE,\n \"User \" + translator.getFullName() + \" (\"\n + translator.getUserName() + \") has translated \"\n + tasksTranslated + \" assets\");\n\n }", "protected String cargarEncuestaSatisfaccions(String url, String username,\n String password) throws Exception {\n try {\n getEncuestaSatisfaccions();\n if(mEncuestaSatisfaccions.size()>0){\n saveEncuestaSatisfaccions(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/encuestassatisfaccion\";\n EncuestaSatisfaccion[] envio = mEncuestaSatisfaccions.toArray(new EncuestaSatisfaccion[mEncuestaSatisfaccions.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<EncuestaSatisfaccion[]> requestEntity =\n new HttpEntity<EncuestaSatisfaccion[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveEncuestaSatisfaccions(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveEncuestaSatisfaccions(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "private void initVistas() {\n // La actividad responderá al pulsar el botón.\n Button btnSolicitar = (Button) this.findViewById(R.id.btnSolicitar);\n btnSolicitar.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n solicitarDatos();\n }\n });\n lblDatos = (TextView) this.findViewById(R.id.lblDatos);\n }", "public void generarReporteFacturaPuntoVentas(String sAccionBusqueda,List<FacturaPuntoVenta> facturapuntoventasParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"FacturaPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturaPuntoVentaMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"FacturaPuntoVentaMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"FacturaPuntoVenta\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Factura Punto Ventas\");\t\t\r\n\t\tparameters.put(\"busquedapor\", FacturaPuntoVentaConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(FormaPagoPuntoVenta.class));\r\n\t\t\tclasses.add(new Classe(DetalleFacturaPuntoVenta.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tFacturaPuntoVentaLogic facturapuntoventaLogicAuxiliar=new FacturaPuntoVentaLogic();\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.setDatosCliente(facturapuntoventaLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.setFacturaPuntoVentas(facturapuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventaLogicAuxiliar.cargarRelacionesLoteForeignKeyFacturaPuntoVentaWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tfacturapuntoventasParaReportes=facturapuntoventaLogicAuxiliar.getFacturaPuntoVentas();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//facturapuntoventaLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (FacturaPuntoVenta facturapuntoventa:facturapuntoventasParaReportes) {\r\n\t\t\t\t\t//\tfacturapuntoventaLogic.deepLoad(facturapuntoventa, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//facturapuntoventaLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//facturapuntoventaLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileFormaPagoPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"FormaPagoPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_formapagopuntoventa\", reportFileFormaPagoPuntoVenta);\r\n\r\n\t\t\tInputStream reportFileDetalleFacturaPuntoVenta = AuxiliarReportes.class.getResourceAsStream(\"DetalleFacturaPuntoVentaDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallefacturapuntoventa\", reportFileDetalleFacturaPuntoVenta);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceFacturaPuntoVenta=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tFacturaPuntoVentaConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceFacturaPuntoVenta=new JRBeanArrayDataSource(FacturaPuntoVentaJInternalFrame.TraerFacturaPuntoVentaBeans(facturapuntoventasParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceFacturaPuntoVenta);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+FacturaPuntoVentaConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+FacturaPuntoVentaConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(FacturaPuntoVentaBean.TraerFacturaPuntoVentaBeans(facturapuntoventasParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoFacturaPuntoVentaActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesFacturaPuntoVentas(sAccionBusqueda,sTipoArchivoReporte,facturapuntoventasParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "public void generarReporteAnalisisTransaClientes(String sAccionBusqueda,List<AnalisisTransaCliente> analisistransaclientesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaClienteMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"AnalisisTransaClienteMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Analisis Transaccion Clientees\");\t\t\r\n\t\tparameters.put(\"busquedapor\", AnalisisTransaClienteConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceAnalisisTransaCliente=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceAnalisisTransaCliente=new JRBeanArrayDataSource(AnalisisTransaClienteJInternalFrame.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceAnalisisTransaCliente);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+AnalisisTransaClienteConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+AnalisisTransaClienteConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(AnalisisTransaClienteBean.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoAnalisisTransaClienteActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}", "protected abstract String[] getExecString();", "public void processaArquivos() throws Exception\n\t{\n\t\t/* Busca o nome do diretorio no arquivo de propriedades */\n\t\tString nomeDiretorio = getPropriedade(\"ordemVoucher.dirArquivos\");\n\t\tFile dirArquivos = new File(nomeDiretorio);\n\t\tif (!dirArquivos.isDirectory())\n\t\t\tthrow new IOException(\"Diretorio invalido... \"+nomeDiretorio);\n\n\t\t/* Busca os arquivos das ordems (arquivos com informacoes de caixa) */\n\t\tFileFilter filtro = new OrdemVoucherFileFilter(getPropriedade(\"ordemVoucher.patternArquivos\"),\n\t\t\t\t\t\t\t\t\t\t\t\t\t getPropriedade(\"ordemVoucher.extensaoArquivos\"));\n\t\tFile arquivosOrdem[] = dirArquivos.listFiles(filtro);\n\t\t\n\t\t/* Faz a varredura dos arquivos de ordem de voucher encontrados */\n\t\tfor (int i=0; i < arquivosOrdem.length; i++)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Processando ordem:\"+arquivosOrdem[i].getName());\n\t\t\t\tif (existeArquivos(arquivosOrdem[i]))\n\t\t\t\t{\n\t\t\t\t\t// Realiza a concatenacao dos arquivos da ordem agrupando-as por item\n\t\t\t\t\t// e entao processa-os para a criptografia e compactacao antes de \n\t\t\t\t\t// envia-los ao GPP\n\t\t\t\t\tString arqAProcessar[] = concatenaArquivos(arquivosOrdem[i]);\n\t\t\t\t\t\n\t\t\t\t\t// Para cada arquivo encontrado de ordem de criacao de voucher\n\t\t\t\t\t// faz se a criptografia dos arquivos de caixa correspondentes\n\t\t\t\t\t// para entao compacta-los em um unico arquivo para posteriormente\n\t\t\t\t\t// ser enviado ao GPP juntamente com este arquivo de capa\n\t\t\t\t\t// da ordem de criacao do voucher\n\t\t\t\t\tString arquivoCompactado = criptografaECompactaOrdem(arquivosOrdem[i],arqAProcessar);\n\t\t\t\t\t\n\t\t\t\t\t// Caso ao criar os arquivos criptografados e compacta-los aconteca algum\n\t\t\t\t\t// erro entao o retorno do metodo e um nome de arquivo nulo. Se este nome\n\t\t\t\t\t// for nulo, entao nada e executado com esta ordem passando entao para a\n\t\t\t\t\t// proxima\n\t\t\t\t\tif (arquivoCompactado != null)\n\t\t\t\t\t{\n\t\t\t\t\t\t// Envia o arquivo do cabecalho da ordem \n\t\t\t\t\t\t// e em seguida envia o arquivo compactado\n\t\t\t\t\t\tenviaArquivoParaGPP(arquivosOrdem[i]);\n\t\t\t\t\t\tenviaArquivoParaGPP(new File(arquivoCompactado));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Remove os arquivos criptografados e compactados que foram enviados\n\t\t\t\t\t\t// para o GPP\n\t\t\t\t\t\tremoveArquivos(arquivosOrdem[i],arqAProcessar);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Move os arquivos de origem das informacoes de voucher para um diretorio\n\t\t\t\t\t\t// historico desses arquivos\n\t\t\t\t\t\t// Obs: Os arquivos concatenados foram removidos do diretorio\n\t\t\t\t\t\tmoveArquivos(arquivosOrdem[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Erro ao processar ordem:\"+arquivosOrdem[i].getName()+\" Erro:\"+e);\n\t\t\t}\n\t\t}\n\t}", "public Resultado executar(Requisicao requisicao) throws Exception {\r\n if (Logger.estaHabilitadoDebug(this)) {\r\n Logger.debug(this, \"***** Chamada ao servico de inclusao de Cesta de Garantias ***** \");\r\n }\r\n\r\n RequisicaoServicoRegistraCadastroCestaGarantias req = (RequisicaoServicoRegistraCadastroCestaGarantias) requisicao;\r\n ResultadoServicoRegistraCadastroCestaGarantias res = new ResultadoServicoRegistraCadastroCestaGarantias();\r\n\r\n // validacao na mesma transacao?\r\n Booleano valida = req.obterGARANTIAS_CODIGO_Booleano();\r\n if (!Condicional.vazio(valida) && valida.ehVerdadeiro()) {\r\n RequisicaoServicoValidaCadastroCestaGarantias reqV = new RequisicaoServicoValidaCadastroCestaGarantias();\r\n reqV.atribuirGARANTIAS_PARTICIPANTE_CodigoContaCetip(req.obterGARANTIAS_PARTICIPANTE_CodigoContaCetip());\r\n reqV.atribuirGARANTIAS_CONTRAPARTE_CodigoContaCetip(req.obterGARANTIAS_CONTRAPARTE_CodigoContaCetip());\r\n ServicoValidaCadastroCestaGarantias servicoValida = new ServicoValidaCadastroCestaGarantias();\r\n servicoValida.setGarantias(getFactory());\r\n servicoValida.executarConsulta(reqV);\r\n }\r\n\r\n gp = getGp();\r\n\r\n CestaGarantiasDO nrCesta = criaEntradaCesta(req);\r\n Id codigo = nrCesta.getNumIdCestaGarantias();\r\n res.atribuirGARANTIAS_CODIGO_Id(codigo);\r\n return res;\r\n }", "protected String cargarEncParticipantes(String url, String username,\n String password) throws Exception {\n try {\n getEncParticipantes();\n if(mEncuestasParticipantes.size()>0){\n saveEncParticipantes(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/encuestasparticipantes\";\n EncuestaParticipante[] envio = mEncuestasParticipantes.toArray(new EncuestaParticipante[mEncuestasParticipantes.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<EncuestaParticipante[]> requestEntity =\n new HttpEntity<EncuestaParticipante[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveEncParticipantes(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveEncParticipantes(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "private static void requestAssetFromServer(MD5Key id, AssetAvailableListener... listeners) {\n \n \t\tif (id != null) {\n \t\t\taddAssetListener(id, listeners);\n \t\t\tassetLoader.requestAsset(id);\n \t\t}\n \t}", "public void llenarDatosConfiguracion(){\n\n hoseEntities = new ArrayList<>();\n //**********************************************************\n\n //Capturar Nombre Host WIFI\n int[] tramaNombreEmbedded = new int[16];\n int c = 0;\n for(int i = 8; i<= 23; i++){\n tramaNombreEmbedded[c] = bufferRecepcion[i];\n c++;\n }\n\n\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaNombreEmbedded,tramaNombreEmbedded.length)));\n //**********************************************************\n //Capturar MAC TABLET\n int[] tramaMACTablet= new int[6];\n c = 0;\n for(int i = 24; i<= 29; i++){\n tramaMACTablet[c] = bufferRecepcion[i];\n c++;\n }\n //Log.v(\"MAC TABLET EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaMACTablet,tramaMACTablet.length)));\n\n\n //**********************************************************\n //Capturar Contraseña Red Host\n int[] contrasenaHostEmbedded = new int[11];\n c = 0;\n for(int i = 30; i<= 40; i++){\n contrasenaHostEmbedded[c] = bufferRecepcion[i];\n c++;\n }\n\n //Log.v(\"CONTRASENA RED EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(contrasenaHostEmbedded,contrasenaHostEmbedded.length)));\n\n\n //**********************************************************\n //Capturar Nro Bombas\n int[] numeroBombas = new int[1];\n numeroBombas[0] = bufferRecepcion[41];\n numBombas = Integer.parseInt(byteArrayToHexIntGeneral(numeroBombas,1));\n //**********************************************************\n //int pIinicial = 42;\n\n //obtener solo IDbombas\n int[] idBombas = new int[numBombas];\n\n int pIinicial = 42;\n for(int i = 0; i< numBombas; i++){\n idBombas[i] = bufferRecepcion[pIinicial];\n pIinicial+=1;\n }\n\n int auxIdBomba=0;\n for(int i = 0; i< numBombas; i++){\n Hose hose = new Hose();\n TransactionEntity transactionEntity = new TransactionEntity();\n transactionEntity.setEstadoRegistro(\"P\");\n //**********************************************************\n //Capturar idBomba\n int[] idBomba = new int[1];\n idBomba[0] = bufferRecepcion[pIinicial];\n auxIdBomba=Integer.parseInt((byteArrayToHexIntGeneral(idBomba,1)));\n transactionEntity.setIdBomba(auxIdBomba);\n transactionEntity.setNombreManguera(\"\"+auxIdBomba);\n hose.setHoseNumber(auxIdBomba);\n hose.setHoseName(\"\"+auxIdBomba);\n hose.setHardwareId(1);\n hose.setLastTicket(0);\n hose.setFuelQuantity(0.0);\n\n //**********************************************************\n //Capturar idProducto\n int[] idProducto = new int[1];\n idProducto[0] = bufferRecepcion[pIinicial + 1];\n transactionEntity.setIdProducto(Integer.parseInt(byteArrayToHexIntGeneral(idProducto,1)));\n //**********************************************************\n //Capturar cantidadDecimales\n int[] cantidadDecimales = new int[1];\n cantidadDecimales[0] = bufferRecepcion[pIinicial + 2];\n transactionEntity.setCantidadDecimales(Integer.parseInt(byteArrayToHexIntGeneral(cantidadDecimales,1)));\n //**********************************************************\n //Capturar nombreManguera\n int[] nombreManguera = new int[10];\n int contadorMangueraInicial = pIinicial + 3;\n int contadorMangueraFinal = contadorMangueraInicial + 9;\n int contadorIteracionesManguera = 0;\n for(int j=contadorMangueraInicial; j<=contadorMangueraFinal; j++){\n nombreManguera[contadorIteracionesManguera] = bufferRecepcion[j];\n contadorIteracionesManguera ++;\n }\n //transactionEntity.setNombreManguera(hexToAscii(byteArrayToHexString(nombreManguera,nombreManguera.length)));\n Log.v(\"Nombre Manguera\", hexToAscii(byteArrayToHexString(nombreManguera,nombreManguera.length)));\n\n //Capturar nombreProducto\n int[] nombreProducto = new int[10];\n int contadorProductoInicial = pIinicial + 13;\n int contadorProductoFinal = contadorProductoInicial + 9;\n int contadorIteracionesProducto = 0;\n for(int k=contadorProductoInicial; k<=contadorProductoFinal; k++){\n nombreProducto[contadorIteracionesProducto] = bufferRecepcion[k];\n contadorIteracionesProducto ++;\n }\n transactionEntity.setNombreProducto(hexToAscii(byteArrayToHexString(nombreProducto,nombreProducto.length)));\n Log.v(\"Nombre Producto\",hexToAscii(byteArrayToHexString(nombreProducto,nombreProducto.length)));\n hose.setNameProduct(hexToAscii(byteArrayToHexString(nombreProducto,nombreProducto.length)));\n\n hoseEntities.add(transactionEntity);\n hoseMasters.add(hose);\n pIinicial = pIinicial + 23;\n }\n\n }", "public void ejecutarConsola() {\n\n try {\n this._agente = new SearchAgent(this._problema, this._busqueda);\n this._problema.getInitialState().toString();\n this.imprimir(this._agente.getActions());\n this.imprimirPropiedades(this._agente.getInstrumentation());\n if (_esSolucion) {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"SOLUCIONADO\");\n } else {\n Logger.getLogger(Juego.class.getName()).log(Level.INFO, \"No lo he podido solucionar...\");\n }\n } catch (Exception ex) {\n System.out.println(ex);\n }\n }", "private void handleActionGetAllBiers(String param1, String param2) {\n // TODO: Handle action Foo\n Log.i(\"getallbiers\",\"Log de handleActionGetAllBiers\");\n Log.i(\"getallbiers\",\"Thread service name : \"+Thread.currentThread().getName());\n URL url = null;\n\n try {\n\n url = new URL(\"http://binouze.fabrigli.fr/bieres.json\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.connect();\n\n if(HttpURLConnection.HTTP_OK == conn.getResponseCode()){\n copyInputStreamToFile(conn.getInputStream(), new File(getCacheDir(),\"bieres.json\"));\n Log.d(\"getallbiers\",\"Bieres json downloaded\");\n }\n\n //lance un intent pour signaler l'update\n LocalBroadcastManager.getInstance(this).sendBroadcast(new Intent(MainActivity.BIERS_UPDATE));\n\n }catch(MalformedURLException e){\n e.printStackTrace();\n\n\n } catch (IOException e) {\n e.printStackTrace();\n\n\n }\n\n }", "public void cargarInformacion()\r\n/* 159: */ {\r\n/* 160:168 */ if (this.indicadorFactura != null)\r\n/* 161: */ {\r\n/* 162:170 */ if (getTipoAnexoSRI().equals(TipoAnexoSRI.ATS.getNombreAbreviado()))\r\n/* 163: */ {\r\n/* 164:171 */ setMostrarBaseImponible(true);\r\n/* 165:172 */ setMostrarBasesDetalle(false);\r\n/* 166: */ }\r\n/* 167: */ else\r\n/* 168: */ {\r\n/* 169:174 */ setMostrarBaseImponible(false);\r\n/* 170:175 */ setMostrarBasesDetalle(true);\r\n/* 171: */ }\r\n/* 172: */ try\r\n/* 173: */ {\r\n/* 174:179 */ this.mensaje = null;\r\n/* 175: */ \r\n/* 176: */ \r\n/* 177:182 */ ExternalContext context = FacesContext.getCurrentInstance().getExternalContext();\r\n/* 178:183 */ HttpSession session = (HttpSession)context.getSession(true);\r\n/* 179:184 */ CompraCajaChica compraCajaChica = (CompraCajaChica)session.getAttribute(\"compraCajaChica\");\r\n/* 180:185 */ FacturaProveedor facturaProveedor = (FacturaProveedor)session.getAttribute(\"facturaProveedor\");\r\n/* 181:186 */ Empresa empresa = null;\r\n/* 182:187 */ if (!this.indicadorFactura.booleanValue())\r\n/* 183: */ {\r\n/* 184:188 */ this.corrigeDatosRetencion = compraCajaChica.getFacturaProveedorSRI().isTraCorregirDatos();\r\n/* 185:189 */ CompraCajaChica ccc = this.servicioCompraCajaChica.cargarDetalle(compraCajaChica.getIdCompraCajaChica());\r\n/* 186:190 */ empresa = ccc.getEmpresa();\r\n/* 187:191 */ this.facturaProveedorSRI = ccc.getFacturaProveedorSRI();\r\n/* 188: */ }\r\n/* 189: */ else\r\n/* 190: */ {\r\n/* 191:193 */ this.corrigeDatosRetencion = facturaProveedor.getFacturaProveedorSRI().isTraCorregirDatos();\r\n/* 192:194 */ FacturaProveedor facProveedor = this.servicioFacturaProveedor.cargarDetalle(Integer.valueOf(facturaProveedor.getId()));\r\n/* 193:195 */ empresa = facProveedor.getEmpresa();\r\n/* 194:196 */ this.facturaProveedorSRI = facProveedor.getFacturaProveedorSRI();\r\n/* 195: */ }\r\n/* 196:200 */ if (empresa != null)\r\n/* 197: */ {\r\n/* 198:201 */ empresa = this.servicioEmpresa.cargarDetalle(empresa);\r\n/* 199:202 */ if (this.facturaProveedorSRI != null)\r\n/* 200: */ {\r\n/* 201:204 */ String email = \"\";\r\n/* 202:205 */ boolean tieneEmail = false;\r\n/* 203:206 */ if ((empresa.getListaContacto() != null) && (!empresa.getListaContacto().isEmpty()))\r\n/* 204: */ {\r\n/* 205:207 */ for (Contacto contacto : empresa.getListaContacto()) {\r\n/* 206:208 */ if ((contacto.getTipoContacto() != null) && (contacto.getTipoContacto().isIndicadorNotificarRetencion()))\r\n/* 207: */ {\r\n/* 208:209 */ if ((contacto.getEmail1() != null) && (!contacto.getEmail1().equals(\"\"))) {\r\n/* 209:210 */ email = email + contacto.getEmail1() + \";\";\r\n/* 210: */ }\r\n/* 211:212 */ if ((contacto.getEmail2() != null) && (!contacto.getEmail2().equals(\"\"))) {\r\n/* 212:213 */ email = email + contacto.getEmail2() + \";\";\r\n/* 213: */ }\r\n/* 214: */ }\r\n/* 215: */ }\r\n/* 216:217 */ if (!email.equals(\"\"))\r\n/* 217: */ {\r\n/* 218:218 */ email = email.substring(0, email.trim().length() - 1).trim();\r\n/* 219:219 */ tieneEmail = true;\r\n/* 220: */ }\r\n/* 221: */ }\r\n/* 222:223 */ if (!tieneEmail)\r\n/* 223: */ {\r\n/* 224:224 */ if ((empresa.getEmail1() != null) && (!empresa.getEmail1().equals(\"\"))) {\r\n/* 225:225 */ email = email + empresa.getEmail1();\r\n/* 226: */ }\r\n/* 227:227 */ if ((empresa.getEmail2() != null) && (!empresa.getEmail2().equals(\"\")))\r\n/* 228: */ {\r\n/* 229:228 */ if (!email.equals(\"\")) {\r\n/* 230:229 */ email = email + \";\";\r\n/* 231: */ }\r\n/* 232:231 */ email = email + empresa.getEmail2();\r\n/* 233: */ }\r\n/* 234: */ }\r\n/* 235:235 */ this.facturaProveedorSRI = this.servicioFacturaProveedorSRI.cargarDetalle(this.facturaProveedorSRI.getIdFacturaProveedorSRI());\r\n/* 236:236 */ this.facturaProveedorSRI.setEmail(email);\r\n/* 237:237 */ this.servicioFacturaProveedorSRI.cargarConceptosRetencion(this.facturaProveedorSRI, empresa);\r\n/* 238:238 */ this.facturaProveedorSRI.setTraCorregirDatos(this.corrigeDatosRetencion);\r\n/* 239:239 */ if ((this.facturaProveedorSRI.getDocumento() == null) && (getListaDocumento().size() > 0)) {\r\n/* 240:240 */ this.facturaProveedorSRI.setDocumento((Documento)this.listaDocumento.get(0));\r\n/* 241: */ }\r\n/* 242:242 */ cargarSecuencia(this.facturaProveedorSRI, AppUtil.getPuntoDeVenta());\r\n/* 243: */ }\r\n/* 244: */ }\r\n/* 245:246 */ if (this.facturaProveedorSRI != null)\r\n/* 246: */ {\r\n/* 247:247 */ this.facturaProveedorSRI.setTraCorregirDatos(this.corrigeDatosRetencion);\r\n/* 248:248 */ if ((!this.corrigeDatosRetencion) && (FuncionesUtiles.getAnio(this.facturaProveedorSRI.getFechaRegistro()) != 9999)) {\r\n/* 249:249 */ this.facturaProveedorSRI.setFechaEmisionRetencion(this.facturaProveedorSRI.getFechaRegistro());\r\n/* 250: */ }\r\n/* 251: */ }\r\n/* 252:252 */ if ((this.facturaProveedorSRI.isIndicadorRetencionEmitida()) && (!this.facturaProveedorSRI.isTraCorregirDatos())) {\r\n/* 253:253 */ this.mensaje = getLanguageController().getMensaje(\"msg_accion_implica_anulacion_previa\");\r\n/* 254: */ }\r\n/* 255: */ }\r\n/* 256: */ catch (ExcepcionAS2 e)\r\n/* 257: */ {\r\n/* 258:256 */ addErrorMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()) + e.getMessage());\r\n/* 259:257 */ LOG.info(\"ERROR ExcepcionAS2 AL CARGAR DATOS EN FACTURAPROVEEDORSRIBEAN\", e);\r\n/* 260: */ }\r\n/* 261: */ catch (Exception e)\r\n/* 262: */ {\r\n/* 263:260 */ LOG.error(\"ERROR Exception AL CARGAR DATOS EN FACTURAPROVEEDORSRIBEAN \", e);\r\n/* 264:261 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cargar_datos\"));\r\n/* 265: */ }\r\n/* 266: */ finally\r\n/* 267: */ {\r\n/* 268:264 */ cargarListaTipoComprobanteSRI();\r\n/* 269: */ \r\n/* 270:266 */ cargarListaCreditoTributarioSRI();\r\n/* 271: */ }\r\n/* 272:268 */ this.indicadorFactura = null;\r\n/* 273: */ }\r\n/* 274: */ }", "public abstract String initExecute() throws Exception;", "private static void getInstancia() throws IOException {\r\n if (propiedades == null) {\r\n propiedades = new PropiedadesComunicacion();\r\n }\r\n }", "static byte[] readResource(String name) throws IOException {\n byte[] buf = new byte[1024];\n\n InputStream in = Main.class.getResourceAsStream(name);\n ByteArrayOutputStream bout = new ByteArrayOutputStream();\n int n;\n while ((n = in.read(buf)) > 0) {\n bout.write(buf, 0, n);\n }\n try { in.close(); } catch (Exception ignored) { } \n\n return bout.toByteArray();\n }", "private byte[] processData(String peticion) {\n\t\t\n\t\tString respuesta = \"\";\n\t\t\n\t\tswitch (peticion) {\n\t\t\t\n\t\t\tcase \"noticias\": respuesta = \"¡Por fin la vacuna ya está en España!\"; break;\n\t\t\tcase \"hora\": respuesta = getFecha(); break;\n\t\t\tcase \"aleatorio\": respuesta = Double. toString(Math.random()*10); break;\n\t\t\tcase \"cerrar\": respuesta = \"Adios\"; break;\n\t\t\tcase \"cerrarServidor\": respuesta = \"Adios\"; break;\t\t\t\n\t\t\tdefault: respuesta = \"petición desconocida\";\n\t\t}\n\t\t\n\t\treturn respuesta.getBytes();\n\t}", "public Polipara() {\n // Iniciar el programa cargando el archivo de propiedades si existe.\n\n if (this.validarSerializacion()) {\n int response = JOptionPane.showConfirmDialog(null, \"Hay una versión anterior de una copa,\\n\"\n + \"¿Desea cargar esa versión? (Al seleccionar \\\"No\\\", se eliminará el avance anterior y se cargará una copa nueva.)\");\n if (response == 0) {\n this.cargarSerializacion();\n } else {\n this.iniciarCopa();\n }\n } else {\n this.iniciarCopa();\n }\n }", "private void getEncParticipantes() {\n mEncuestasParticipantes = estudioAdapter.getListaEncuestaParticipantesSinEnviar();\n //ca.close();\n }", "public Encargar() { \n initComponents();\n inicializar();\n \n }", "public void cargarConceptoRetencion()\r\n/* 393: */ {\r\n/* 394: */ try\r\n/* 395: */ {\r\n/* 396:387 */ this.listaConceptoRetencionSRI = this.servicioConceptoRetencionSRI.getConceptoListaRetencionPorFecha(this.facturaProveedorSRI.getFechaRegistro());\r\n/* 397: */ }\r\n/* 398: */ catch (Exception e)\r\n/* 399: */ {\r\n/* 400:390 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cargar_datos\"));\r\n/* 401: */ }\r\n/* 402: */ }", "private void getParameters() {\r\n\t\ttry {\r\n\t\t\tp_encoding = \"ISO-8859-1\";\r\n\t\t\tp_page_encoding = \"utf-8\";\r\n\t\t\tp_labels_data_file = \"resources/units/labels.txt\";\r\n\t\t\tp_multiplier_data_file = \"resources/units/muldata.txt\";\r\n\t\t\tp_category_data_file = \"resources/units/catdata.txt\";\r\n\t\t\tp_unit_data_file = \"resources/units/unitdata.txt\";\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treadDataFile(0, p_multiplier_data_file); //read data from external text file\r\n\t\treadDataFile(1, p_category_data_file); //read data from external text file\r\n\t\treadDataFile(2, p_unit_data_file); //read data from external text file\r\n\t\treadDataFile(3, p_labels_data_file); //read data from external text file\r\n\t}", "public void cargaDatosInicialesSoloParaAdicionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n //Obtien Ajuste Fin\n //Activa formulario para automatico modifica \n if (selectedEntidad.getNivel() >= 3) {\n numeroEspaciadorAdicionar = 260;\n }\n\n if (selectedEntidad.getNivel() == 3) {\n swParAutomatico = false;\n numeroEspaciadorAdicionar = 230;\n }\n if (selectedEntidad.getNivel() == 2) {\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciadorAdicionar = 200;\n }\n if (selectedEntidad.getNivel() == 1) {\n swParAutomatico = true;\n numeroEspaciadorAdicionar = 130;\n cntParametroAutomaticoDeNivel2 = cntParametroAutomaticoService.obtieneObjetoDeParametroAutomatico(selectedEntidad);\n }\n\n mascaraNuevoOpcion = \"N\";\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n mascaraNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"N\");\n mascaraSubNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"S\");\n longitudNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"N\");\n longitudSubNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"S\");\n }", "private Map<String, Object> buildResourcesParameters() {\n Map<String, Object> parameters = new HashMap<String, Object>();\n \n parameters.put(\"portalSiteSelectedNodes\", getSelectedResources(StagingService.SITES_PORTAL_PATH));\n parameters.put(\"groupSiteSelectedNodes\", getSelectedResources(StagingService.SITES_GROUP_PATH));\n parameters.put(\"userSiteSelectedNodes\", getSelectedResources(StagingService.SITES_USER_PATH));\n parameters.put(\"siteContentSelectedNodes\", getSelectedResources(StagingService.CONTENT_SITES_PATH));\n parameters.put(\"applicationCLVTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_APPLICATION_CLV_PATH));\n parameters.put(\"applicationSearchTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_APPLICATION_SEARCH_PATH));\n parameters.put(\"documentTypeTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_DOCUMENT_TYPE_PATH));\n parameters.put(\"metadataTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_METADATA_PATH));\n parameters.put(\"taxonomySelectedNodes\", getSelectedResources(StagingService.ECM_TAXONOMY_PATH));\n parameters.put(\"querySelectedNodes\", getSelectedResources(StagingService.ECM_QUERY_PATH));\n parameters.put(\"driveSelectedNodes\", getSelectedResources(StagingService.ECM_DRIVE_PATH));\n parameters.put(\"scriptSelectedNodes\", getSelectedResources(StagingService.ECM_SCRIPT_PATH));\n parameters.put(\"actionNodeTypeSelectedNodes\", getSelectedResources(StagingService.ECM_ACTION_PATH));\n parameters.put(\"nodeTypeSelectedNodes\", getSelectedResources(StagingService.ECM_NODETYPE_PATH));\n parameters.put(\"registrySelectedNodes\", getSelectedResources(StagingService.REGISTRY_PATH));\n parameters.put(\"viewTemplateSelectedNodes\", getSelectedResources(StagingService.ECM_VIEW_TEMPLATES_PATH));\n parameters.put(\"viewConfigurationSelectedNodes\", getSelectedResources(StagingService.ECM_VIEW_CONFIGURATION_PATH));\n parameters.put(\"userSelectedNodes\", getSelectedResources(StagingService.USERS_PATH));\n parameters.put(\"groupSelectedNodes\", getSelectedResources(StagingService.GROUPS_PATH));\n parameters.put(\"roleSelectedNodes\", getSelectedResources(StagingService.ROLE_PATH));\n \n parameters.put(\"selectedResources\", selectedResources);\n parameters.put(\"selectedOptions\", selectedOptions);\n \n return parameters;\n }", "public void execute() throws Exception {\n\n\t\tString datepattern = \"yyyy-MM-dd\";\n\t\tSimpleDateFormat sdf =new SimpleDateFormat(datepattern);\n\t\t//testing console\n\t\t if(TestHTTP.test(Parameters.LATC_CONSOLE_HOST))\n\t \tlogfile.info(Parameters.LATC_CONSOLE_HOST+\" OK\");\n\t else \n\t {\n\t \tlogfile.severe(Parameters.LATC_CONSOLE_HOST+\" DOWN\");\n\t \tSystem.exit(0);\n\t \t}\n \t\t\n\t\tListTranslator lt = new ListTranslator();\n ContentWriter cw = new ContentWriter();\n \n ConsoleConnection client = new ConsoleConnection(Parameters.LATC_CONSOLE_HOST);\n \n /*\n * Getting list of link configuration from LATC_CONSOLE\n * JSON Format : title, identifier\n */\n \n if(!client.getTasks())\n {\n \tlogfile.severe(\"Error during get Queue \"+client.getMessage());\n \tSystem.exit(0);\n }\n lt.translateMember(client.getMessage());\n toDoList = lt.getLinkingConfigs();\n \n ReportCSV report = new ReportCSV( Parameters.RESULT_LOCAL_DIR+\"/report\"+sdf.format(new Date())+\".csv\");\n \n for (String title : toDoList.keySet()) {\n \t boolean blacklist = false;\n \tfinal String [] split = toDoList.get(title).split(\"#\");\n \tfinal String id = split[0];\n \tfinal String speccretime = split[1];\n \tfinal String specmodtime = split[2];\n \tfinal String specAuthor = split[3];\n \n \t logfile.info( \"start processing id \"+id+\" title \"+title);\n \n // checking blacklist\n \t if(title.startsWith(\"**\"))\n {\n \tblacklist = true;\n \ttitle = title.substring(2);\n }\n \t\n \tReportCSV.status st = status.failed; \n //create id directory\n boolean exists = (new File(RESULTDIR +'/'+ title).exists());\n if (!exists)\n \t\t\t (new File(RESULTDIR +'/'+ title )).mkdirs();\n \n \n \n \t\n \n /*\n * Writing specification linking from LATC_CONSOLE_HOST/configuration/ID/specification\n */\n if(!client.getSpec(id))\n {\n \tlogfile.severe(\"Error during get Specification id \"+id+\" \"+client.getMessage());\n }\n else\n {\n \t\n \t\tDate startDate = new Date();\n \t\tdatepattern = \"yyyy-MM-dd'T'HH:mm:ssZZ\";\n \t\tsdf.applyPattern(datepattern);\n \tString specContent = client.getMessage();\n\t cw.writeIt(RESULTDIR +'/'+ title + '/'+ Parameters.SPEC_FILE, specContent);\n\t VoidInfoDto Void=this.parseSpec(RESULTDIR +'/'+ title + '/'+ Parameters.SPEC_FILE);\n \n\t Void.setSpecRetrievedTime(sdf.format(startDate));\n\t Void.setSpecCreatedTime(speccretime);\n\t Void.setSpecAuthor(specAuthor);\n\t Void.setID(id);\n\t Void.setTitle(title);\n\t Void.setSpecModifiedTime(specmodtime);\n\t Void.setSilkSpecAPIResource(Parameters.LATC_CONSOLE_HOST+\"/api/task/\"+id+\"/configuration\");\n\t \n//\t \t6- data dump\n\t datepattern = \"yyyy-MM-dd\";\n\t \t\tsdf.applyPattern(datepattern);\n Void.setDataDump(Parameters.RESULTS_HOST + '/' +sdf.format(new Date())+'/'+title + \"/\"+Parameters.LINKS_FILE_STORE);\n Void.setSpec(Parameters.RESULTS_HOST + '/' +sdf.format(new Date())+'/'+title + \"/\"+Parameters.SPEC_FILE);\n \n // blacklist\n if(blacklist)\n {\n \tst = status.ongoing;\n \tVoid.setRemarks(\"Unpredicted\");\n \tclient.postReport(id, Void,Parameters.API_KEY);\n \treport.putData(id, title, Void.getSpec(), 0, st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n \tcontinue;\n }\n \n\t \t//testing endpoint\n\t if(Void.getSourceSparqlEndpoint()!=null && !this.testConn(Void.getSourceSparqlEndpoint()))\n\t \t{\n\t \t\tDate errDate = new Date();\n\t \t\tVoid.setRemarks(Void.getSourceSparqlEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getTargetSparqlEndpoint()!=null && !this.testConn(Void.getTargetSparqlEndpoint()))\n\t \t{\n\t \t\tDate errDate = new Date();\t\n\t \t\tVoid.setRemarks(Void.getTargetSparqlEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getSourceUriLookupEndpoint()!=null && !this.testConn(Void.getSourceUriLookupEndpoint()))\n\t \t{\n\t \tDate errDate = new Date();\t\n\t \tVoid.setRemarks(Void.getSourceUriLookupEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void,Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n\t if(Void.getTargetUriLookupEndpoint()!=null && !this.testConn(Void.getTargetUriLookupEndpoint()))\n\t \t{\n\t \tDate errDate = new Date();\n\t \t\tVoid.setRemarks(Void.getTargetUriLookupEndpoint()+\" DOWN\");\n\t \t\tclient.postReport(id, Void, Parameters.API_KEY);\n\t \t\t report.putData(id, title, Void.getSpec(), errDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t \t\tcontinue;\n\t \t}\n \n\t \n\t \n\t /*\n\t * Running hadoop for silk Map reduce\n\t */\n\t if (this.runHadoop(title, Void,RESULTDIR)) {\n\t \n\t\n\t cw.writeIt(RESULTDIR +'/'+ title + '/'+ Parameters.VOID_FILE, Void);\n\t\n\t // 2-e\n\t Void.setRemarks(Void.getStatItem()+\" Links generated successfully\");\n\t logfile.info( \"Processing id \"+id+\" title \"+title+ \" success\");\n\t\n\t } // if hadoop\n\t else {\n\t \tlogfile.severe( \"Processing id \"+id+\" title \"+title+ \" failed\");\n \t \n\t }\n\t Date endDate = new Date();\n\t \n\t if(Void.getStatItem()>=0)\n\t \tst = status.sucesss;\n\t else if(Void.getStatItem()==-2)\n\t \tst= status.ongoing;\n\t \n\t report.putData(id, title, Void.getSpec(), endDate.getTime()-startDate.getTime(), st, Void.getRemarks(),Void.getStatItem(),specAuthor);\n\t client.postReport(id, Void,Parameters.API_KEY);\n\t }\n } // for loop\n report.close(); \n logfile.info(\"Runtime done\");\n \n }", "protected String cargarEnfermedadCronica(String url, String username,\n String password) throws Exception {\n try {\n if(mEnfermedades.size()>0){\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/enfermedadescro\";\n EnfermedadCronica[] envio = mEnfermedades.toArray(new EnfermedadCronica[mEnfermedades.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<EnfermedadCronica[]> requestEntity =\n new HttpEntity<EnfermedadCronica[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n return e.getMessage();\n }\n }", "public void run() {\n if (engine == 0) {\n byte buf[] = new byte[1024];\n AIEngine.aiengine_get_device_id(buf, getApplicationContext());\n\n String deviceId = new String(buf).trim();\n Log.d(TAG, \"deviceId: \" + deviceId);\n\n InputStream is = null;\n String provisionPath = \"\";\n\n try {\n is = getAssets().open(\"aiengine.provision\");\n File provisionFile = new File(AiUtil.externalFilesDir(context), \"aiengine.provision\");\n AiUtil.writeToFile(provisionFile, is);\n is.close();\n provisionPath = provisionFile.getAbsolutePath();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n Log.d(TAG, \"provisionPath:\" + provisionPath);\n\n String cfg = String.format(\"{\\\"appKey\\\": \\\"%s\\\", \\\"secretKey\\\": \\\"%s\\\", \\\"cloud\\\": {\\\"server\\\": \\\"%s\\\"}, \\\"provision\\\": \\\"%s\\\"}\",\n ChivoxOptions.APP_KEY, ChivoxOptions.SECRET_KEY, ChivoxOptions.SERVER, provisionPath);\n\n engine = AIEngine.aiengine_new(cfg, context);\n Log.d(TAG, \"aiengine: \" + engine);\n }\n\t\t\t\t/* create airecorder instance */\n if (recorder == null) {\n recorder = AIRecorder.getInstance();\n Log.d(TAG, \"airecorder: \" + recorder);\n }\n }", "private void buscarCampos() throws MalformedURLException {\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n if (networkInfo != null && networkInfo.isConnected()) {\n // Iniciar Tarea asícrona\n\n new buscarRegistros().//Crear método\n execute(\n new URL(\"http://jmonzon.eu5.org/juego/consulta_puntuaciones.php\"));\n\n\n } else {\n Toast.makeText(this, \"Error de conexión\", Toast.LENGTH_LONG).show();\n }\n\n }", "@Override\r\n\tprotected String requestText() {\n\t\tActualizarCompromisoRequest actualizarCompromisoRequest = new ActualizarCompromisoRequest();\r\n\t\tactualizarCompromisoRequest.listaInventarioCompromiso = this.listaInventarioCompromiso;\r\n\t\tactualizarCompromisoRequest.listaPosicionCompromiso = this.listaPosicionCompromiso;\r\n\t\tactualizarCompromisoRequest.listaPresentacionCompromiso = this.listaPresentacionCompromiso;\r\n\t\tactualizarCompromisoRequest.updateInformacionAdicionalTO = this.updateInformacionAdicionalTO;\r\n\t\tactualizarCompromisoRequest.codigoCabecera = this.codigoCabecera;\r\n\t\tString request = JSONHelper.serializar(actualizarCompromisoRequest);\r\n\t\treturn request;\r\n\t}" ]
[ "0.5837675", "0.5385853", "0.5314695", "0.52777565", "0.523986", "0.5209278", "0.5190001", "0.51794404", "0.5175349", "0.5167875", "0.51478654", "0.5106064", "0.50980705", "0.50816065", "0.5073829", "0.506227", "0.5038866", "0.50350356", "0.49680892", "0.49620897", "0.49492458", "0.49472463", "0.49456865", "0.48791072", "0.48780686", "0.48714203", "0.48692444", "0.48679334", "0.48611516", "0.48605785", "0.48585692", "0.48526883", "0.4834515", "0.48341173", "0.48316804", "0.48309174", "0.4829092", "0.4824098", "0.48156494", "0.48146024", "0.4813469", "0.4810954", "0.4806583", "0.48065296", "0.47863883", "0.47780982", "0.4772306", "0.47670886", "0.47605404", "0.47536546", "0.47481114", "0.4733693", "0.4733349", "0.4726244", "0.47245127", "0.47201106", "0.47145167", "0.47142726", "0.4712712", "0.47086295", "0.46983957", "0.4697139", "0.46963084", "0.46953502", "0.46948475", "0.4693425", "0.46920982", "0.46903124", "0.46890077", "0.46808082", "0.4672469", "0.46699867", "0.46682593", "0.46659344", "0.46627045", "0.46562633", "0.46501532", "0.46493644", "0.4647693", "0.46472546", "0.46469396", "0.46453187", "0.4633924", "0.4633047", "0.46328896", "0.4629099", "0.46271548", "0.4626212", "0.46218342", "0.46203566", "0.4620183", "0.46147156", "0.4613668", "0.46127233", "0.46117887", "0.4607268", "0.46071967", "0.46071106", "0.45966867", "0.4595901" ]
0.5194091
6
config and open ch340.
private static void openCH340(int length) { int ret_val = driver.ResumeUsbList(); YXYCLog.d(TAG, ret_val + ""); // ResumeUsbList方法用于枚举CH34X设备以及打开相关设备 if (ret_val == -1) { YXYCLog.d(TAG, ret_val + "Failed to open device!"); driver.CloseDevice(); } else if (ret_val == 0) { if (!driver.UartInit()) { //对串口设备进行初始化操作 YXYCLog.d(TAG, ret_val + "Failed device initialization!"); YXYCLog.d(TAG, ret_val + "Failed to open device!"); return; } YXYCLog.d(TAG, ret_val + "Open device successfully!"); if (!isOpenDeviceCH340) { isOpenDeviceCH340 = true; configParameters(length);//配置ch340的参数、需要先配置参数 } } else { YXYCLog.d(TAG, "The phone couldn't find the device!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void initCH340Driver(int length) {\n CH340Driver.initCH340(sContext, length);\n }", "public static boolean isIsOpenDeviceCH340() {\n return isOpenDeviceCH340;\n }", "public void openReader(){\r\n handle = -1;\r\n try {\r\n cardReader = new ACR120U();\r\n } catch (java.lang.UnsatisfiedLinkError e) {\r\n e.printStackTrace();\r\n System.err.println(\"Are you sure the DLL is installed???\");\r\n message = \"DLL Installation problem.\";\r\n return;\r\n }\r\n handle = cardReader.open(ACR120U.ACR120_USB1); \r\n if (handle < 0){\r\n //message = \"Error opening reader [port may be in use or reader not in binary mode]\";\r\n message = \"No reader found\";\r\n System.err.println(message);\r\n return;\r\n }\r\n message = \"Device opened.\";\r\n }", "void open();", "void open();", "void open();", "public abstract void open(CaptchalogueCard card, OpenReason reason);", "@Override\n\tpublic void open() {\n\t\tlong openStartTime = new Date().getTime();\n\t\ttry {\n\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\n\t\t\tif (this.serialPort != null && !this.serialPort.isConnected()) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.serialPort.open();\n\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\tthis.initialAnswerData = this.serialPort.getData(true);\n\t\t\t\t\tif (this.device.isProcessing(1, this.initialAnswerData) || this.device.isProcessing(2, this.initialAnswerData)) {\n\t\t\t\t\t\tthis.application.openMessageDialogAsync(null, Messages.getString(MessageIds.GDE_MSGW2201));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET_CONFIG);\n\t\t\t\t\tthis.deviceIdentifierName = this.serialPort.readDeviceUserName();\n\n\t\t\t\t\tthis.jc = JAXBContext.newInstance(\"gde.device.graupner\"); //$NON-NLS-1$\n\t\t\t\t\tthis.schema = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(\n\t\t\t\t\t\t\tnew StreamSource(UltraDuoPlusDialog.class.getClassLoader().getResourceAsStream(\"resource/\" + UltraDuoPlusDialog.ULTRA_DUO_PLUS_XSD))); //$NON-NLS-1$\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tUnmarshaller unmarshaller = this.jc.createUnmarshaller();\n\t\t\t\t\t\tunmarshaller.setSchema(this.schema);\n\t\t\t\t\t\tthis.ultraDuoPlusSetup = (UltraDuoPlusType) unmarshaller.unmarshal(new File(this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t+ this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML));\n\t\t\t\t\t}\n\t\t\t\t\tcatch (UnmarshalException e) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\tcreateUltraDuoPlusSetup(this.deviceIdentifierName);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\tif (e.getCause() instanceof FileNotFoundException) {\n\t\t\t\t\t\t\tcreateUltraDuoPlusSetup(this.deviceIdentifierName);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.synchronizerRead = new UltraDuoPlusSychronizer(this, this.serialPort, this.ultraDuoPlusSetup, UltraDuoPlusSychronizer.SYNC_TYPE.READ);\n\t\t\t\t\tthis.synchronizerRead.start();\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\tthis.serialPort.close();\n\t\t\t\t\tthis.application.openMessageDialog(null,\n\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0015, new Object[] { e.getClass().getSimpleName() + GDE.STRING_BLANK_COLON_BLANK + e.getMessage() }));\n\t\t\t\t\tthis.application.getDeviceSelectionDialog().open();\n\t\t\t\t\tif (!this.application.getActiveDevice().equals(this.device)) //check if device was changed\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, \"serial port == null\"); //$NON-NLS-1$\n\t\t\t\tthis.application.openMessageDialogAsync(null, Messages.getString(gde.messages.MessageIds.GDE_MSGE0010));\n\t\t\t\tthis.application.getDeviceSelectionDialog().open();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, \"dialogShell.isDisposed() \" + ((this.dialogShell == null) ? \"null\" : this.dialogShell.isDisposed())); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tif (this.dialogShell == null || this.dialogShell.isDisposed()) {\n\t\t\t\tif (this.settings.isDeviceDialogsModal())\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getShell(), SWT.DIALOG_TRIM | SWT.PRIMARY_MODAL);\n\t\t\t\telse if (this.settings.isDeviceDialogsOnTop())\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getDisplay(), SWT.DIALOG_TRIM | SWT.ON_TOP);\n\t\t\t\telse\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getDisplay(), SWT.DIALOG_TRIM);\n\n\t\t\t\tSWTResourceManager.registerResourceUser(this.dialogShell);\n\t\t\t\tthis.dialogShell.setLayout(new FormLayout());\n\t\t\t\tthis.dialogShell.setText(this.device.getName() + Messages.getString(gde.messages.MessageIds.GDE_MSGT0273));\n\t\t\t\tthis.dialogShell.setImage(SWTResourceManager.getImage(\"gde/resource/ToolBoxHot.gif\")); //$NON-NLS-1$\n\t\t\t\tthis.dialogShell.layout();\n\t\t\t\tthis.dialogShell.pack();\n\t\t\t\tthis.dialogShell.setSize(655, GDE.IS_MAC ? 685 : 675);\n\t\t\t\tthis.dialogShell.addListener(SWT.Traverse, new Listener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t\t\tswitch (event.detail) {\n\t\t\t\t\t\tcase SWT.TRAVERSE_ESCAPE:\n\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.close();\n\t\t\t\t\t\t\tevent.detail = SWT.TRAVERSE_NONE;\n\t\t\t\t\t\t\tevent.doit = false;\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\tthis.dialogShell.addHelpListener(new HelpListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void helpRequested(HelpEvent evt) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"dialogShell.helpRequested, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openHelpDialog(UltraDuoPlusDialog.DEVICE_JAR_NAME, \"HelpInfo.html\"); //$NON-NLS-1$ \n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthis.dialogShell.addDisposeListener(new DisposeListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void widgetDisposed(DisposeEvent evt) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"dialogShell.widgetDisposed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\tif (UltraDuoPlusDialog.this.serialPort != null && UltraDuoPlusDialog.this.serialPort.isConnected()) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerRead.join();\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t//set the date to sync with PC time\n\t\t\t\t\t\t\t\t\tString[] date = StringHelper.getDateAndTime(\"yy:MM:dd:hh:mm\").split(GDE.STRING_COLON); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus45:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[15] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[16] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[17] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[10] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[11] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[12] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[10] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[11] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[12] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tChannelData1 value = new ChannelData1();\n\t\t\t\t\t\t\t\t\tvalue.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.channelValues1));\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setChannelData1(value, value.getValue().endsWith(\"1\"));\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite = new UltraDuoPlusSychronizer(UltraDuoPlusDialog.this, UltraDuoPlusDialog.this.serialPort, UltraDuoPlusDialog.this.ultraDuoPlusSetup,\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusSychronizer.SYNC_TYPE.WRITE);\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.start();\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.join();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsaveConfigUDP(UltraDuoPlusDialog.this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML);\n\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.close();\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.resetShellIcon();\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\t{\n\t\t\t\t\tthis.boundsComposite = new Composite(this.dialogShell, SWT.NONE);\n\t\t\t\t\tFormData boundsCompositeLData = new FormData();\n\t\t\t\t\tboundsCompositeLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.bottom = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\tthis.boundsComposite.setLayoutData(boundsCompositeLData);\n\t\t\t\t\tthis.boundsComposite.setLayout(new FormLayout());\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.userLabel = new CLabel(this.boundsComposite, SWT.RIGHT);\n\t\t\t\t\t\tthis.userLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.userLabel.setText(Messages.getString(MessageIds.GDE_MSGT2289));\n\t\t\t\t\t\tFormData userLabelLData = new FormData();\n\t\t\t\t\t\tuserLabelLData.left = new FormAttachment(0, 1000, 12);\n\t\t\t\t\t\tuserLabelLData.top = new FormAttachment(0, 1000, 7);\n\t\t\t\t\t\tuserLabelLData.width = 280;\n\t\t\t\t\t\tuserLabelLData.height = 20;\n\t\t\t\t\t\tthis.userLabel.setLayoutData(userLabelLData);\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.userNameText = new Text(this.boundsComposite, SWT.SINGLE | SWT.BORDER);\n\t\t\t\t\t\tthis.userNameText.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.userNameText.setText(this.deviceIdentifierName);\n\t\t\t\t\t\tthis.userNameText.setTextLimit(16);\n\t\t\t\t\t\tFormData userNameTextLData = new FormData();\n\t\t\t\t\t\tuserNameTextLData.width = 120;\n\t\t\t\t\t\tuserNameTextLData.height = 16;\n\t\t\t\t\t\tuserNameTextLData.left = new FormAttachment(0, 1000, 305);\n\t\t\t\t\t\tuserNameTextLData.top = new FormAttachment(0, 1000, 7);\n\t\t\t\t\t\tthis.userNameText.setLayoutData(userNameTextLData);\n\t\t\t\t\t\tthis.userNameText.addVerifyListener(new VerifyListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void verifyText(VerifyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"evt.doit = \" + (evt.text.length() <= 16)); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tevt.doit = evt.text.length() <= 16;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.userNameText.addKeyListener(new KeyAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"text.keyReleased, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFile oldConfigDataFile = new File(UltraDuoPlusDialog.this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML);\n\t\t\t\t\t\t\t\tif (oldConfigDataFile.exists()) if (!oldConfigDataFile.delete()) UltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, \"could not delete \" + oldConfigDataFile.getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.deviceIdentifierName = (UltraDuoPlusDialog.this.userNameText.getText().trim() + UltraDuoPlusDialog.STRING_16_BLANK).substring(0, 16);\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setIdentifierName(UltraDuoPlusDialog.this.deviceIdentifierName);\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setChanged(true);\n\t\t\t\t\t\t\t\tint position = UltraDuoPlusDialog.this.userNameText.getCaretPosition();\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.userNameText.setText(UltraDuoPlusDialog.this.deviceIdentifierName.trim());\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.userNameText.setSelection(position);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"text.keyPressed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.mainTabFolder = new CTabFolder(this.boundsComposite, SWT.BORDER);\n\t\t\t\t\t\tthis.mainTabFolder.setSimple(false);\n\t\t\t\t\t\tFormData TabFolderLData = new FormData();\n\t\t\t\t\t\tTabFolderLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\tTabFolderLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\tTabFolderLData.top = new FormAttachment(0, 1000, 35);\n\t\t\t\t\t\tTabFolderLData.bottom = new FormAttachment(1000, 1000, -45);\n\t\t\t\t\t\tthis.mainTabFolder.setLayoutData(TabFolderLData);\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setupTabItem = new CTabItem(this.mainTabFolder, SWT.BORDER);\n\t\t\t\t\t\t\tthis.setupTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.setupTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2290));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.deviceComposite = new Composite(this.mainTabFolder, SWT.BORDER);\n\t\t\t\t\t\t\t\tGridLayout deviceCompositeLayout = new GridLayout();\n\t\t\t\t\t\t\t\tdeviceCompositeLayout.makeColumnsEqualWidth = true;\n\t\t\t\t\t\t\t\tthis.deviceComposite.setLayout(deviceCompositeLayout);\n\t\t\t\t\t\t\t\tthis.setupTabItem.setControl(this.deviceComposite);\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tGridData group1LData = new GridData();\n\t\t\t\t\t\t\t\t\tgroup1LData.horizontalAlignment = GridData.FILL;\n\t\t\t\t\t\t\t\t\tgroup1LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\tgroup1LData.widthHint = 580;\n\t\t\t\t\t\t\t\t\tgroup1LData.heightHint = this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? 182 : 392;\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setLayoutData(group1LData);\n\t\t\t\t\t\t\t\t\tFillLayout baseDeviceSetupCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setLayout(baseDeviceSetupCompositeLayout);\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setText(Messages.getString(MessageIds.GDE_MSGT2291));\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50, Messages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) {\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[4] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 4, Messages.getString(MessageIds.GDE_MSGT2293), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"°C - °F\", 175, UltraDuoPlusDialog.temperatureDegreeType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[5] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 5, Messages.getString(MessageIds.GDE_MSGT2294), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2240) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2241), 175, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[6] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 6, Messages.getString(MessageIds.GDE_MSGT2295), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"En - De - Fr - It\", 175, UltraDuoPlusDialog.languageTypes, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t//channelParameters[7] = new ParameterConfigControl(baseDeviceSetupComposite, channelValues1, 7, \"PC setup\", 175, \"DISABLE | ENABLE\", 175, diableEnableType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[8] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 8, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2296), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[9] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 9, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2297), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[15] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 15, Messages.getString(MessageIds.GDE_MSGT2303), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"12H - 24H\", 175, UltraDuoPlusDialog.hourFormatType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse { //UltraDuoPlus45\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[0] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 0, Messages.getString(MessageIds.GDE_MSGT2293), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"°C - °F\", 175, UltraDuoPlusDialog.temperatureDegreeType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[1] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 1, Messages.getString(MessageIds.GDE_MSGT2294), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2240) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2241), 175, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[2] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 2, Messages.getString(MessageIds.GDE_MSGT2306), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[3] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 3, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2307), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[4] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 4, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2305), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[5] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 5, Messages.getString(MessageIds.GDE_MSGT2295), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"En - De - Fr - It\", 175, UltraDuoPlusDialog.languageTypes, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[6] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 6, Messages.getString(MessageIds.GDE_MSGT2308), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175, UltraDuoPlusDialog.powerOnDisplayType, 50, 150);\n\t\t\t\t\t\t\t\t\t\t//channelParameters[7] = new ParameterConfigControl(baseDeviceSetupComposite, channelValues1, 7, \"PC setup\", 175, \"DISABLE | ENABLE\", 175, diableEnableType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[8] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 8, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2296) + \"(1)\", 175, \"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[9] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 9, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2297) + \"(1)\", 175, \"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[10] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 10, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2296) + \"(2)\", 175, \"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[11] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 11, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2297) + \"(2)\", 175, \"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[12] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 12, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2315), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 - 99%\", 175, false, 50, 150, 1, 99, -1, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[18] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 18, Messages.getString(MessageIds.GDE_MSGT2303), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"12H - 24H\", 175, UltraDuoPlusDialog.hourFormatType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//time setup will synced with PC\n\t\t\t\t\t\t\t\t\t//this.channelParameters[10] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 10, Messages.getString(MessageIds.GDE_MSGT2298), 175,\t\"1 ~ 31\", 175, false, 50, 150, 1, 31); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[11] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 11, Messages.getString(MessageIds.GDE_MSGT2299), 175,\t\"1 ~ 12\", 175, false, 50, 150, 1, 12); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[12] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 12, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2300), 175,\t\"0 ~ 99\", 175, false, 50, 150, 0, 99); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[13] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 13, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2302), 175,\t\"0 ~ 12\", 175, false, 50, 150, 0, 12); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[14] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 14, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2301), 175,\t\"0 ~ 59\", 175, false, 50, 150, 0, 59); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) { //no configurable outlet channel 2\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1 = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tGridData group2LData = new GridData();\n\t\t\t\t\t\t\t\t\t\tgroup2LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.horizontalAlignment = GridData.CENTER;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.widthHint = 600;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.heightHint = 130;\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setLayoutData(group2LData);\n\t\t\t\t\t\t\t\t\t\tFillLayout composite1Layout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setLayout(composite1Layout);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setText(Messages.getString(MessageIds.GDE_MSGT2304));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite1, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[0] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 0, Messages.getString(MessageIds.GDE_MSGT2306), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[1] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 1, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2307), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[2] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 2, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2305), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[3] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 3, Messages.getString(MessageIds.GDE_MSGT2308), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175, UltraDuoPlusDialog.powerOnDisplayType, 50, 150);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2 = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tGridData group3LData = new GridData();\n\t\t\t\t\t\t\t\t\t\tgroup3LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.horizontalAlignment = GridData.CENTER;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.widthHint = 600;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.heightHint = 130;\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setLayoutData(group3LData);\n\t\t\t\t\t\t\t\t\t\tFillLayout composite1Layout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setLayout(composite1Layout);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setText(Messages.getString(MessageIds.GDE_MSGT2309));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite2, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 0] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 0,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2255), 175, Messages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 1] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 1, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2254), 175, \"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 2] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 2, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2305), 175, \"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 3] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 3,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2308), 175, Messages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.powerOnDisplayType, 50, 150);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.memorySetupTabItem = new CTabItem(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\tthis.memorySetupTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.memorySetupTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2250));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.memoryBoundsComposite = new Composite(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\tthis.memorySetupTabItem.setControl(this.memoryBoundsComposite);\n\t\t\t\t\t\t\t\tthis.memoryBoundsComposite.setLayout(new FormLayout());\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite = new Composite(this.memoryBoundsComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData memorySelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tmemorySelectLData.height = 150;\n\t\t\t\t\t\t\t\t\tmemorySelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setLayoutData(memorySelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel = new CLabel(this.memorySelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memorySelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemorySelectLabelLData.width = 120;\n\t\t\t\t\t\t\t\t\t\tmemorySelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setLayoutData(memorySelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2251));\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(1);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo = new CCombo(this.memorySelectComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setItems(this.memoryNames);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setVisibleItemCount(20);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setTextLimit(5 + 16);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboLData.width = 165;\n\t\t\t\t\t\t\t\t\t\tmemoryComboLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setLayoutData(memoryComboLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2252));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setEditable(true);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tint actualSelectionIndex = UltraDuoPlusDialog.this.memoryCombo.getSelectionIndex();\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.lastMemorySelectionIndex != actualSelectionIndex) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup != null && UltraDuoPlusDialog.this.lastMemorySelectionIndex >= 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& UltraDuoPlusDialog.this.lastMemorySelectionIndex < UltraDuoPlusDialog.numberMemories) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//write memory if setup data has been changed changed (update memory name executed while keyListener)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().isChanged()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.memoryValues));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().isChanged()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.memoryStepValues));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_STEP_CHARGE_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//check for copy selected\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.copyButton.getSelection()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.copyButton.setSelection(false);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (SWT.YES == UltraDuoPlusDialog.this.application.openYesNoMessageDialog(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGI2205, new Object[] { UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName(), (actualSelectionIndex + 1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName() }))) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//copy memory name and setup data of lastMemorySelectionIndex to memoryCombo.getSelectionIndex()\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"copy memory: (\" + (UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1) + GDE.STRING_RIGHT_PARENTHESIS + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName()//$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" to (\" + (actualSelectionIndex + 1) + GDE.STRING_RIGHT_PARENTHESIS + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < UltramatSerialPort.SIZE_MEMORY_SETUP; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(UltraDuoPlusDialog.this.memoryValues[i]).append(GDE.STRING_LEFT_BRACKET).append(i).append(GDE.STRING_RIGHT_BRACKET_COMMA);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, sb.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_NAME,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName().getBytes(), actualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setName(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tactualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getSetupData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_STEP_CHARGE_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tactualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getStepChargeData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString newMemoryName = String.format(UltraDuoPlusDialog.STRING_FORMAT_02d_s, actualSelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setText(newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[actualSelectionIndex] = (newMemoryName + UltraDuoPlusDialog.STRING_16_BLANK).substring(5, 16 + 5);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItem(actualSelectionIndex, newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(actualSelectionIndex);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex = actualSelectionIndex;\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}\n\t\t\t\t\t\t\t\t\t\t\t\tcatch (Throwable e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\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}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.addKeyListener(new KeyAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.keyReleased, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.keyPressed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tif (evt.character == SWT.CR) {\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tString newMemoryName = String.format(UltraDuoPlusDialog.STRING_FORMAT_02d_s, UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(UltraDuoPlusDialog.this.memoryCombo.getText() + UltraDuoPlusDialog.STRING_16_BLANK).substring(5, 16 + 5));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex] = newMemoryName;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setText(newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItem(UltraDuoPlusDialog.this.lastMemorySelectionIndex, newMemoryName);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setName(UltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex].substring(5));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_NAME,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex].substring(5).getBytes(), UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\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\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0007, new String[] { e.getMessage() }));\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}\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}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tCLabel filler = new CLabel(this.memorySelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(140, 20));\n\t\t\t\t\t\t\t\t\t\tfiller.setText(\"<--------- \"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.copyButton = new Button(this.memorySelectComposite, SWT.CHECK | SWT.LEFT);\n\t\t\t\t\t\t\t\t\t\tRowData cellTypeSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tcellTypeSelectLabelLData.width = 200;\n\t\t\t\t\t\t\t\t\t\tcellTypeSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setLayoutData(cellTypeSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setText(Messages.getString(MessageIds.GDE_MSGT2288));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2256));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//cell type\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[0] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 0, Messages.getString(MessageIds.GDE_MSGT2257), 175,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2246), 220, UltraDuoPlusDialog.cellTypeNames, 50, 150);\n\t\t\t\t\t\t\t\t\t//number cells\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[1] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 1, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2258), 175,\n\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 6/7/18\", 220, false, 50, 150, 1, 18); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//battery capacity\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[2] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 2, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2259), 175,\n\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 65000 mAh\", 220, true, 50, 150, 100, 65000, -100, true); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//year, month, day\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[3] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 3, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2260), 100, GDE.STRING_EMPTY, 5, false, 30, 70, 0, 99);\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[4] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 4, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2261), 60, GDE.STRING_EMPTY, 5, false, 20, 80, 1, 12);\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[5] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 5, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2262), 55, GDE.STRING_EMPTY, 5, false, 20, 80, 1, 31);\n\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.memorySelectComposite, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 180, 20);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder = new CTabFolder(this.memoryBoundsComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setSimple(false);\n\t\t\t\t\t\t\t\t\tFormData chargeTypeTabFolderLData = new FormData();\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.bottom = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.top = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setLayoutData(chargeTypeTabFolderLData);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"restoreButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastCellSelectionIndex = -1;\n\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.memoryValues[0] == 1) { //NiMH with possible step charge\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.stepChargeComposite.getStepChargeValues(UltraDuoPlusDialog.this.memoryStepValues);\n\t\t\t\t\t\t\t\t\t\t\t\t\tEvent changeEvent = new Event();\n\t\t\t\t\t\t\t\t\t\t\t\t\tchangeEvent.index = -1;\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.notifyListeners(SWT.Selection, changeEvent);\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\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tupdateBatteryMemoryParameter(UltraDuoPlusDialog.this.memoryValues[0]);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem = new CTabItem(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2298));\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite = new ScrolledComposite(this.chargeTypeTabFolder, SWT.BORDER | SWT.V_SCROLL);\n\t\t\t\t\t\t\t\t\t\t\tFillLayout scrolledMemoryCompositeLayout = new FillLayout();\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.setLayout(scrolledMemoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setControl(this.scrolledchargeComposite);\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup = new Group(this.scrolledchargeComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setText(Messages.getString(MessageIds.GDE_MSGT2299));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//charge parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[6] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 6, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2263), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 20000 mA\", 220, true, 50, 150, 100, 20000, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[11] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 11, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2265), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2310), 220, true, 50, 150, 10, 165);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[10] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t|| this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus40 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0)//°C\n\t\t\t\t\t\t\t\t\t\t\t\t? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 10, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2264), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"10 ~ 80°C\", 220, false, 50, 150, 10, 80) //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new ParameterConfigControl(this.chargeGroup, this.memoryValues, 10, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2264), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 176°F\", 220, false, 50, 150, 50, 176); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[12] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 12, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2266), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2238), 220, false, 50, 150, 10, 905);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[14] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 14, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2267), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"3600 ~ 4200 mV\", 220, true, 50, 150, 3600, 4200, -3600, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[9] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 9, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2279), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2312), 220, false, 50, 150, 0, 550);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[26] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 26, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2276), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"3600 ~ 4000 mV\", 220, true, 50, 150, 3600, 4000, -3600, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[7] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 7, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2277), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"0 ~ 25mV\", 220, false, 50, 150, 0, 25); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[8] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 8, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2278), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 20min\", 220, false, 50, 150, 1, 20); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[15] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 15, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2281), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[13] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 13, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2280), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 5\", 220, false, 50, 150, 1, 5); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[16] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 16, Messages.getString(MessageIds.GDE_MSGT2282), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2241) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2240), 220, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.setContent(this.chargeGroup);\n\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup.setSize(620, this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.addControlListener(new ControlListener() {\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void controlResized(ControlEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"scrolledMemoryComposite.controlResized, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.setSize(UltraDuoPlusDialog.this.scrolledchargeComposite.getClientArea().width, UltraDuoPlusDialog.this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void controlMoved(ControlEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"scrolledMemoryComposite.controlMoved, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.setSize(UltraDuoPlusDialog.this.scrolledchargeComposite.getClientArea().width, UltraDuoPlusDialog.this.chargeSelectHeight);\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});\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem = new CTabItem(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2300));\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeCycleComposite = new Composite(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\tRowLayout scrolledComposite1Layout = new RowLayout(org.eclipse.swt.SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeCycleComposite.setLayout(scrolledComposite1Layout);\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setControl(this.dischargeCycleComposite);\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup = new Group(this.dischargeCycleComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tRowData dischargeGroupLData = new RowData(620, UltraDuoPlusDialog.this.dischargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setLayoutData(dischargeGroupLData);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.dischargeGroup.setText(Messages.getString(MessageIds.GDE_MSGT2301));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.dischargeGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//discharge parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[17] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 17, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2268), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 10000 mA\", 220, true, 50, 150, 100, 10000, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[18] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 18, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2269), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"2500 ~ 4200 mV\", 220, true, 50, 150, 2500, 4200, -2500, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[20] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 20, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2271), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2311), 220, false, 50, 150, 10, 105, -10, false);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[19] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0)//°C\n\t\t\t\t\t\t\t\t\t\t\t\t? new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 19, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2270), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"10 ~ 80°C\", 220, false, 50, 150, 10, 80) //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 19, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2270), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 176°F\", 220, false, 50, 150, 50, 176); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[21] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 21, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2283), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1100 ~ 1300 mV\", 220, true, 50, 150, 1100, 1300, -1100, false); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup = new Group(this.dischargeCycleComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tRowData cycleGroupLData = new RowData(625, UltraDuoPlusDialog.this.cycleSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setLayoutData(cycleGroupLData);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setText(Messages.getString(MessageIds.GDE_MSGT2302));\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//cycle parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[22] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 22, Messages.getString(MessageIds.GDE_MSGT2272), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2292), 220, UltraDuoPlusDialog.cycleDirectionTypes, 50, 150);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[23] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 23, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2273), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 220, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[24] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 24, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2274), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[25] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 25, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2275), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \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}\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setSelection(0);\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\t\t\tthis.memoryCycleDataTabItem = new CTabItem(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2320));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.memoryDataComposite = new Composite(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setControl(this.memoryDataComposite);\n\t\t\t\t\t\t\t\tthis.memoryDataComposite.setLayout(new FormLayout());\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite = new Composite(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData memorySelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tmemorySelectLData.height = 50;\n\t\t\t\t\t\t\t\t\tmemorySelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setLayoutData(memorySelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tComposite filler = new Composite(this.memoryDataSelectComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(500, 10));\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel = new CLabel(this.memoryDataSelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memoryCycleDataSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.width = 315;\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setLayoutData(memoryCycleDataSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2321) + Messages.getString(MessageIds.GDE_MSGT2251));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t//this.memoryNames will be updated by memoryCombo selection handler\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo = new CCombo(this.memoryDataSelectComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setItems(this.memoryNames);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setVisibleItemCount(20);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setTextLimit(5 + 16);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboCycleDataLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.width = 165;\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setLayoutData(memoryComboCycleDataLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2339));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setEditable(true);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryComboData.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memorySelectionIndexData = UltraDuoPlusDialog.this.memoryDataCombo.getSelectionIndex() + 1;\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}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tButton cycleDataButton = new Button(this.memoryDataComposite, SWT.Selection);\n\t\t\t\t\t\t\t\t\tFormData cycleDataButtonLData = new FormData();\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.height = 30;\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.top = new FormAttachment(0, 1000, 70);\n\t\t\t\t\t\t\t\t\tcycleDataButton.setLayoutData(cycleDataButtonLData);\n\t\t\t\t\t\t\t\t\tcycleDataButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tcycleDataButton.setText(Messages.getString(MessageIds.GDE_MSGT2322));\n\t\t\t\t\t\t\t\t\tcycleDataButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2316));\n\t\t\t\t\t\t\t\t\tcycleDataButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"cycleDataButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(0);\n\t\t\t\t\t\t\t\t\t\t\t\tGraphicsWindow cycleGraph = (GraphicsWindow) UltraDuoPlusDialog.this.device.getUtilityDeviceTabItem();\n\t\t\t\t\t\t\t\t\t\t\t\tRecordSet utilitySet = UltraDuoPlusDialog.this.application.getUtilitySet();\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.clear();\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < Ultramat.cycleDataRecordNames.length; ++i) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tRecord tmpRecord = new Record(UltraDuoPlusDialog.this.device, i, Ultramat.cycleDataRecordNames[i], GDE.STRING_EMPTY, Ultramat.cycleDataUnitNames[i], true, null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ArrayList<PropertyType>(), 11);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setFactor(Ultramat.cycleDataFactors[i]);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (Ultramat.cycleDataSyncRefOrdinal[i] >= 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.createProperty(MeasurementPropertyTypes.SCALE_SYNC_REF_ORDINAL.value(), DataTypes.INTEGER, Ultramat.cycleDataSyncRefOrdinal[i]);\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\ttmpRecord.setColorDefaultsAndPosition(i);\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.put(Ultramat.cycleDataRecordNames[i], tmpRecord);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setColor(SWTResourceManager.getColor(Ultramat.cycleDataColors[i][0], Ultramat.cycleDataColors[i][1], Ultramat.cycleDataColors[i][2]));\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (i >= 4) tmpRecord.setPositionLeft(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ((i + 1) % 2 == 0) tmpRecord.setVisible(false);\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\tutilitySet.setHorizontalGridType(RecordSet.HORIZONTAL_GRID_EVERY);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setHorizontalGridRecordOrdinal(4);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setTimeGridType(RecordSet.TIME_GRID_MAIN);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setTimeStep_ms(-1.0); //different time steps\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.syncScaleOfSyncableRecords();\n\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.getTabFolder().setSelection(cycleGraph);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(50);\n\n\t\t\t\t\t\t\t\t\t\t\t\tlong justNowPlus2Hours = new Date().getTime() + 7200000L;\n\t\t\t\t\t\t\t\t\t\t\t\tlong justNowMinus2Year = new Date().getTime() - 63072000000L;\n\t\t\t\t\t\t\t\t\t\t\t\tboolean isDateChanged = false;\n\t\t\t\t\t\t\t\t\t\t\t\tVector<byte[]> cyclesData = new Vector<byte[]>();\n\t\t\t\t\t\t\t\t\t\t\t\tTreeMap<Long, int[]> sortCyclesData = new TreeMap<Long, int[]>();\n\t\t\t\t\t\t\t\t\t\t\t\tif (Boolean.parseBoolean(System.getProperty(\"GDE_IS_SIMULATION\"))) { //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t//test data - change dates in timeSteps block below to vary\n\t\t\t\t\t\t\t\t\t\t\t\t\t//original data\n\t\t\t\t\t\t\t\t\t\t\t\t\tString memoryCycleData = \"00030026000B00040011050141C2040C00213F880000000B0004000B00040018017341D905910000000000000009002D000B0005000709BF417E03B50000000000000008002B000C00050009084341DC04B4000B0000000000000032000F00050012001A41F0000000000000000000090015000C0005001D0A2E4194044E00000000000000100004000B000600040ADF41960566000F0022001D00120034000B0006000C07D0418004740000000000000003000E000E0006000D094241E206A30000000000000000000000000000000000000000000000000000000000210088000000000000000000000000000000000000\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t//updated data\n\t\t\t\t\t\t\t\t\t\t\t\t\t//String memoryCycleData = \"00030026000B00040011050141C2040C00213F880000000B0004000B00040018017341D905910000000000000009002D000B0005000709BF417E03B500000000000000130013000B0005000A084341DC04B4000B0000000000000032000000050012001A41F0000000000000000000130028000B0005001E0A2E4194044E00000000000000100004000B000600040ADF41960566000F0022001D00120034000B0006000C07D041800474000000000000000D0022000B00060010094241E206A30000000000000000000000000000000000000000000000000000000000210088000000000000000000000000000000000000\";\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < 11; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint startIndex = i * (11 * 4);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint endIndex = (i + 1) * (11 * 4);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcyclesData.add(memoryCycleData.substring(startIndex, endIndex).getBytes());\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\tlong[] timeSteps = {\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\tnew GregorianCalendar(2011, 06, 01, 03, 38, 0).getTimeInMillis(), \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\tnew GregorianCalendar(2011, 06, 02, 03, 38, 0).getTimeInMillis(), \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\tnew GregorianCalendar(2011, 06, 03, 11, 04, 0).getTimeInMillis(),\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\tnew GregorianCalendar(2011, 06, 04, 9, 45, 0).getTimeInMillis(),\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\tnew GregorianCalendar(2011, 06, 04, 16, 04, 0).getTimeInMillis(),\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\tnew GregorianCalendar(2011, 06, 12, 18, 52, 0).getTimeInMillis(),\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};\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\tint[][] pointss = { \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{16834, 0, 1000, 0, 1300, 0},\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{16834, 16264, 1281, 33, 1036, 0},\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{16857, 0, 371, 0, 1425, 0},\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{16766, 0, 2783, 0, 949, 0},\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{16790, 34, 2783, 15, 1382, 29},\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{16768, \t\t0, 2000, 0, 1140, 0},\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};\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// 2; 0; \t 4; 3; 1; 5\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//2011-04-17, 03:38:00; 1281; 16834; 1036; 33; 16264; 0\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//2011-04-24, 11:04:00; 371; 16857; 1425; 0; 0; 0\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//2011-05-07, 09:45:00; 2783; 16766; 949; 0; 0; 0\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//2011-06-04, 16:04:00; 2783; 16790; 1382; 15; 34; 29\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//2011-06-12, 18:52:00; 2000; 16768; 1140; 0; 0; 0\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\tfor (int i = 0; i < timeSteps.length; i++) {\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\tsortCyclesData.put(timeSteps[i], pointss[i].clone());\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}\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\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcyclesData = UltraDuoPlusDialog.this.serialPort.readMemoryCycleData(UltraDuoPlusDialog.this.memorySelectionIndexData);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (byte[] cycleData : cyclesData) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(new String(cycleData));\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\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, sb.toString());\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\tUltraDuoPlusDialog.this.dataTable.removeAll();\n\n\t\t\t\t\t\t\t\t\t\t\t\tfor (byte[] cycleData : cyclesData) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tlong timeStamp = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint[] points = new int[6];\n\t\t\t\t\t\t\t\t\t\t\t\t\tint hour = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint minute = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint year = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint month = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint day = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\thour = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[0], cycleData[1], cycleData[2], cycleData[3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tminute = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[4], cycleData[5], cycleData[6], cycleData[7]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tday = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[8], cycleData[9], cycleData[10], cycleData[11]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmonth = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[12], cycleData[13], cycleData[14], cycleData[15]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tyear = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[16], cycleData[17], cycleData[18], cycleData[19]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeStamp = new GregorianCalendar(2000 + year, month - 1, day, hour, minute, 0).getTimeInMillis();\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\tcatch (NumberFormatException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[2] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[20], (char) cycleData[21], (char) cycleData[22], (char) cycleData[23]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[0] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[24], (char) cycleData[25], (char) cycleData[26], (char) cycleData[27]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[4] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[28], (char) cycleData[29], (char) cycleData[30], (char) cycleData[31]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[3] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[32], (char) cycleData[33], (char) cycleData[34], (char) cycleData[35]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[1] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[36], (char) cycleData[37], (char) cycleData[38], (char) cycleData[39]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[5] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[40], (char) cycleData[41], (char) cycleData[42], (char) cycleData[43]), 16);\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\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int point : points) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(\"; \").append(String.format(\"%8d\", point)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", timeStamp) + sb.toString()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//if time stamp is not between just now - 1 year and just now + 2 hrs and contains data ask if the date should be corrected\n\t\t\t\t\t\t\t\t\t\t\t\t\tlong dataSum = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int point : points) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdataSum += point;\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\tif (dataSum > 0 && (timeStamp < justNowMinus2Year || timeStamp > justNowPlus2Hours)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"time stamp out of range ! \" + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", timeStamp)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint[] newTimeStamp = new ChangeDateDialog(UltraDuoPlusDialog.this.dialogShell, SWT.NONE, new int[] { hour, minute, 2000 + year, month, day, points[2], points[3] }).open();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (newTimeStamp.length > 0) { //change requested\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, \"date change requested !\"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisDateChanged = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[0] = newTimeStamp[0] < 0 ? 0 : newTimeStamp[0] > 24 ? 24 : newTimeStamp[0]; //hour\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[1] = newTimeStamp[1] < 0 ? 0 : newTimeStamp[1] > 60 ? 60 : newTimeStamp[1]; //minute\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[2] = newTimeStamp[2] <= 2000 ? 0 : newTimeStamp[2] - 2000; //year\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[3] = newTimeStamp[3] < 1 ? 1 : newTimeStamp[3] > 12 ? 12 : newTimeStamp[3]; //month\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[4] = newTimeStamp[4] < 1 ? 1 : newTimeStamp[4] > 30 ? 30 : newTimeStamp[4]; //day\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0, k = 0; i < newTimeStamp.length; i++, k += 4) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbyte[] bytes = String.format(\"%04X\", newTimeStamp[i]).getBytes(); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int j = 0; j < bytes.length; j++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcycleData[j + k] = bytes[j];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thour = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[0], cycleData[1], cycleData[2], cycleData[3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tminute = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[4], cycleData[5], cycleData[6], cycleData[7]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tyear = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[8], cycleData[9], cycleData[10], cycleData[11]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmonth = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[12], cycleData[13], cycleData[14], cycleData[15]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tday = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[16], cycleData[17], cycleData[18], cycleData[19]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeStamp = new GregorianCalendar(2000 + year, month - 1, day, hour, minute, 0).getTimeInMillis();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t//add selected entries to the sorted map, this is what gets displayed in the utility record\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (dataSum > 0 && timeStamp > justNowMinus2Year && timeStamp < justNowPlus2Hours) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortCyclesData.put(timeStamp, points.clone());\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}\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Entry<Long, int[]> entry : sortCyclesData.entrySet()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t//display values\n\t\t\t\t\t\t\t\t\t\t\t\t\tTableItem item = new TableItem(UltraDuoPlusDialog.this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\t\t\t\tint[] points = entry.getValue();\n\t\t\t\t\t\t\t\t\t\t\t\t\titem.setText(new String[] { StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm\", entry.getKey()), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.3f\", points[0] / 1000.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.3f\", points[1] / 1000.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.0f\", points[2] / 1.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.0f\", points[3] / 1.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.1f\", points[4] / 10.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.1f\", points[5] / 10.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t//check if time stamp was changed, if yes write back changed data to device\n\t\t\t\t\t\t\t\t\t\t\t\tif (isDateChanged) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2333));\n\t\t\t\t\t\t\t\t\t\t\t\t\t//not implemented device firmware: serialPort.writeMemoryCycleData(UltraDuoPlusDialog.this.memorySelectionIndexData, cyclesData);\n\t\t\t\t\t\t\t\t\t\t\t\t\tisDateChanged = false;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"used entries between \" + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", justNowMinus2Year) + GDE.STRING_MESSAGE_CONCAT + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", justNowPlus2Hours) + GDE.LINE_SEPARATOR); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\t\t\t\t\t\t\t\t\t\tlong lastTimeStamp = 0;\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Entry<Long, int[]> entry : sortCyclesData.entrySet()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.addPoints(entry.getValue(), (lastTimeStamp == 0 ? 0 : entry.getKey() - lastTimeStamp));\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < entry.getValue().length; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(\"; \").append(String.format(\"%8d\", entry.getValue()[i])); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", entry.getKey()) + String.format(\"; %12d%s\", (lastTimeStamp == 0 ? 0 : entry.getKey() - lastTimeStamp), sb.toString())); //$NON-NLS-1$ //$NON-NLS-2$\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\tlastTimeStamp = lastTimeStamp == 0 ? entry.getKey() : lastTimeStamp;\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\tLong[] dates = sortCyclesData.keySet().toArray(new Long[0]);\n\t\t\t\t\t\t\t\t\t\t\t\tArrays.sort(dates);\n\t\t\t\t\t\t\t\t\t\t\t\tif (dates != null && dates.length > 1) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setRecordSetDescription(UltraDuoPlusDialog.this.memoryDataCombo.getText()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ GDE.STRING_BLANK_COLON_BLANK\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", dates[0]) + GDE.STRING_MESSAGE_CONCAT + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", dates[dates.length - 1])); //$NON-NLS-1$ //$NON-NLS-2$\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\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setRecordSetDescription(UltraDuoPlusDialog.this.memoryDataCombo.getText());\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\tcycleGraph.enableGraphicsHeader(true);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.getTabFolder().notifyListeners(SWT.Selection, new Event());\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(100);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\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});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar = new ProgressBar(this.memoryDataComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData cycleDataProgressBarLData = new FormData();\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.height = 15;\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.top = new FormAttachment(0, 1000, 110);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setLayoutData(cycleDataProgressBarLData);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setMinimum(0);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setMinimum(100);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.dataTable = new Table(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData dataTableLData = new FormData();\n\t\t\t\t\t\t\t\t\tdataTableLData.height = 200;\n\t\t\t\t\t\t\t\t\tdataTableLData.left = new FormAttachment(0, 1000, 5);\n\t\t\t\t\t\t\t\t\tdataTableLData.right = new FormAttachment(1000, 1000, -5);\n\t\t\t\t\t\t\t\t\tdataTableLData.top = new FormAttachment(0, 1000, 140);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setLayoutData(dataTableLData);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setLinesVisible(true);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setHeaderVisible(true);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tTableColumn timeColumn = new TableColumn(this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\ttimeColumn.setText(\"yyyy-MM-dd, HH:mm\"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\ttimeColumn.setWidth(timeColumn.getText().length() * 9);\n\t\t\t\t\t\t\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\tsb.append(Ultramat.cycleDataTableNames[i]).append(GDE.STRING_BLANK_LEFT_BRACKET).append(Ultramat.cycleDataUnitNames[i]).append(GDE.STRING_RIGHT_BRACKET);\n\t\t\t\t\t\t\t\t\t\tTableColumn column = new TableColumn(this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\tcolumn.setWidth(77);\n\t\t\t\t\t\t\t\t\t\tcolumn.setText(sb.toString());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite = new Composite(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData channelSelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tchannelSelectLData.height = 50;\n\t\t\t\t\t\t\t\t\tchannelSelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tchannelSelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchannelSelectLData.bottom = new FormAttachment(1000, 1000, -90);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setLayoutData(channelSelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tComposite filler = new Composite(this.channelSelectComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(500, 10));\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel = new CLabel(this.channelSelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memoryCycleDataSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.width = 370;\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setLayoutData(memoryCycleDataSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2334));\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t//this.memoryNames will be updated by memoryCombo selection handler\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo = new CCombo(this.channelSelectComposite, SWT.BORDER | SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setItems(this.channelNumbers);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setVisibleItemCount(2);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboCycleDataLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.width = 35;\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setLayoutData(memoryComboCycleDataLData);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2335));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setEditable(false);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryComboData.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelSelectionIndex = UltraDuoPlusDialog.this.channelCombo.getSelectionIndex() + 1;\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}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tButton graphicsDataButton = new Button(this.memoryDataComposite, SWT.Selection);\n\t\t\t\t\t\t\t\t\tFormData graphicsDataButtonLData = new FormData();\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.height = 30;\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.bottom = new FormAttachment(1000, 1000, -40);\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setLayoutData(graphicsDataButtonLData);\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setText(Messages.getString(MessageIds.GDE_MSGT2318));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2319));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"graphicsDataButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\t\t\t\t\t\t\t\t\t\t\t\tint[] points = new int[UltraDuoPlusDialog.this.device.getNumberOfMeasurements(UltraDuoPlusDialog.this.channelSelectionIndex)];\n\t\t\t\t\t\t\t\t\t\t\t\tfinal byte[][] graphicsData = new byte[3][];\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.readGraphicsData(graphicsData, UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this);\n\n\t\t\t\t\t\t\t\t\t\t\t\t//create a new record set at the selected output channel\n\t\t\t\t\t\t\t\t\t\t\t\tString processName = Messages.getString(MessageIds.GDE_MSGT2337);\n\t\t\t\t\t\t\t\t\t\t\t\tRecordSet recordSet = null;\n\t\t\t\t\t\t\t\t\t\t\t\tChannel channel = Channels.getInstance().get(UltraDuoPlusDialog.this.channelSelectionIndex);\n\t\t\t\t\t\t\t\t\t\t\t\tif (channel != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tString recordSetKey = channel.getNextRecordSetNumber() + GDE.STRING_RIGHT_PARENTHESIS_BLANK + processName;\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSetKey = recordSetKey.length() <= RecordSet.MAX_NAME_LENGTH ? recordSetKey : recordSetKey.substring(0, RecordSet.MAX_NAME_LENGTH);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.put(recordSetKey, RecordSet.createRecordSet(recordSetKey, UltraDuoPlusDialog.this.device, UltraDuoPlusDialog.this.channelSelectionIndex, true, false, true));\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.applyTemplateBasics(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, recordSetKey + \" created for channel \" + channel.getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet = channel.get(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.device.setTemperatureUnit(UltraDuoPlusDialog.this.channelSelectionIndex, recordSet, UltraDuoPlusDialog.this.initialAnswerData); //°C or °F\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setAllDisplayable();\n\t\t\t\t\t\t\t\t\t\t\t\t\t// switch the active record set if the current record set is child of active channel\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channels.switchChannel(UltraDuoPlusDialog.this.channelSelectionIndex, recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.switchRecordSet(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tString description = recordSet.getRecordSetDescription() + GDE.LINE_SEPARATOR\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"Firmware : \" + UltraDuoPlusDialog.this.device.getFirmwareVersion(UltraDuoPlusDialog.this.initialAnswerData) //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ (UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) >= 1 ? \"; Memory #\" + UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) : GDE.STRING_EMPTY); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint batteryMemoryNumber = UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (batteryMemoryNumber > 0 && UltraDuoPlusDialog.this.ultraDuoPlusSetup != null && UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(batteryMemoryNumber) != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString batteryMemoryName = UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) - 1).getName();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdescription = description + GDE.STRING_MESSAGE_CONCAT + batteryMemoryName;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (recordSetKey.startsWith(\"1)\")) UltraDuoPlusDialog.this.device.matchBatteryMemory2ObjectKey(batteryMemoryName); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ignore and do not append memory name\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\trecordSet.setRecordSetDescription(description);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tint numOfPoints = Integer.parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(DeviceSerialPortImpl.FORMAT_4_CHAR, graphicsData[0][1], (char) graphicsData[0][2], (char) graphicsData[0][3], (char) graphicsData[0][4]), 16) - 10;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint timeStep_sec = Integer.parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(DeviceSerialPortImpl.FORMAT_4_CHAR, graphicsData[0][5], (char) graphicsData[0][6], (char) graphicsData[0][7], (char) graphicsData[0][8]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setNewTimeStep_ms(timeStep_sec * 1000.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0, j = 9; i < numOfPoints; i++, j += 4) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0=Spannung 1=Strom 5=BatteryTemperature\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[0] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[0][j], (char) graphicsData[0][j + 1], (char) graphicsData[0][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[0][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[1] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[1][j], (char) graphicsData[1][j + 1], (char) graphicsData[1][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[1][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[5] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[2][j], (char) graphicsData[2][j + 1], (char) graphicsData[2][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[2][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.addPoints(points);\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\tUltraDuoPlusDialog.this.device.updateVisibilityStatus(recordSet, true);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.updateAllTabs(true);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (DataInconsitsentException e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2338));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2336));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\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});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar = new ProgressBar(this.memoryDataComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData graphicsDataProgressBarLData = new FormData();\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.height = 15;\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.bottom = new FormAttachment(1000, 1000, -15);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setLayoutData(graphicsDataProgressBarLData);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setMinimum(0);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setMinimum(100);\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\tthis.mainTabFolder.setSelection(1);\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.restoreButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData restoreButtonLData = new FormData();\n\t\t\t\t\t\trestoreButtonLData.width = 118;\n\t\t\t\t\t\trestoreButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\trestoreButtonLData.left = new FormAttachment(0, 1000, 165);\n\t\t\t\t\t\trestoreButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tthis.restoreButton.setLayoutData(restoreButtonLData);\n\t\t\t\t\t\tthis.restoreButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.restoreButton.setText(Messages.getString(MessageIds.GDE_MSGT2284));\n\t\t\t\t\t\tthis.restoreButton.setEnabled(false);\n\t\t\t\t\t\tthis.restoreButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"restoreButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFileDialog fileDialog = UltraDuoPlusDialog.this.application.openFileOpenDialog(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2284), new String[] {\n\t\t\t\t\t\t\t\t\t\tGDE.FILE_ENDING_STAR_XML, GDE.FILE_ENDING_STAR }, UltraDuoPlusDialog.this.settings.getDataFilePath(), GDE.STRING_EMPTY, SWT.SINGLE);\n\t\t\t\t\t\t\t\tif (fileDialog.getFileName().length() > 4) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.setBackupRetoreButtons(false);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\n\t\t\t\t\t\t\t\t\t\tUnmarshaller unmarshaller = UltraDuoPlusDialog.this.jc.createUnmarshaller();\n\t\t\t\t\t\t\t\t\t\tunmarshaller.setSchema(UltraDuoPlusDialog.this.schema);\n\t\t\t\t\t\t\t\t\t\t//merge loaded configuration into active\n\t\t\t\t\t\t\t\t\t\tmergeUltraDuoPlusSetup((UltraDuoPlusType) unmarshaller.unmarshal(new File(fileDialog.getFilterPath() + GDE.FILE_SEPARATOR + fileDialog.getFileName())));\n\t\t\t\t\t\t\t\t\t\t//write updated entries while merging\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite = new UltraDuoPlusSychronizer(UltraDuoPlusDialog.this, UltraDuoPlusDialog.this.serialPort, UltraDuoPlusDialog.this.ultraDuoPlusSetup,\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusSychronizer.SYNC_TYPE.WRITE);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.start();\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.join();\n\t\t\t\t\t\t\t\t\t\t//check and sync active configuration with device content\n\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(0);\n\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.memoryCombo != null && !UltraDuoPlusDialog.this.memoryCombo.isDisposed()) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItems(UltraDuoPlusDialog.this.memoryNames);\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.select(0);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\tif (e.getCause() instanceof FileNotFoundException) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup = new ObjectFactory().createUltraDuoPlusType();\n\t\t\t\t\t\t\t\t\t\t\tList<MemoryType> cellMemories = UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory();\n\t\t\t\t\t\t\t\t\t\t\tif (cellMemories.size() < UltraDuoPlusDialog.numberMemories) { // initially create only base setup data\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < UltraDuoPlusDialog.numberMemories; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tMemoryType cellMemory = new ObjectFactory().createMemoryType();\n\t\t\t\t\t\t\t\t\t\t\t\t\tcellMemory.setSetupData(new ObjectFactory().createMemoryTypeSetupData());\n\t\t\t\t\t\t\t\t\t\t\t\t\tcellMemories.add(cellMemory);\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}\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\tUltraDuoPlusDialog.this.application.openMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0007, new String[] { e.getMessage() }));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.setBackupRetoreButtons(true);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.backupButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData backupButtonLData = new FormData();\n\t\t\t\t\t\tbackupButtonLData.width = 118;\n\t\t\t\t\t\tbackupButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\tbackupButtonLData.left = new FormAttachment(0, 1000, 29);\n\t\t\t\t\t\tbackupButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tthis.backupButton.setLayoutData(backupButtonLData);\n\t\t\t\t\t\tthis.backupButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.backupButton.setText(Messages.getString(MessageIds.GDE_MSGT2286));\n\t\t\t\t\t\tthis.backupButton.setEnabled(false);\n\t\t\t\t\t\tthis.backupButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"backupButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFileDialog fileDialog = UltraDuoPlusDialog.this.application.prepareFileSaveDialog(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2285), new String[] {\n\t\t\t\t\t\t\t\t\t\tGDE.FILE_ENDING_STAR_XML, GDE.FILE_ENDING_STAR }, UltraDuoPlusDialog.this.settings.getDataFilePath(), StringHelper.getDateAndTime(\"yyyy-MM-dd-HH-mm-ss\") + GDE.STRING_UNDER_BAR //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.device.getName() + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getIdentifierName());\n\t\t\t\t\t\t\t\tString configFilePath = fileDialog.open();\n\t\t\t\t\t\t\t\tif (configFilePath != null && fileDialog.getFileName().length() > 4) {\n\t\t\t\t\t\t\t\t\tif (FileUtils.checkFileExist(configFilePath)) {\n\t\t\t\t\t\t\t\t\t\tif (SWT.YES != UltraDuoPlusDialog.this.application.openYesNoMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGI0007, new Object[] { configFilePath }))) {\n\t\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tsaveConfigUDP(configFilePath);\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\t{\n\t\t\t\t\t\tthis.closeButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData writeButtonLData = new FormData();\n\t\t\t\t\t\twriteButtonLData.width = 118;\n\t\t\t\t\t\twriteButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\twriteButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\twriteButtonLData.right = new FormAttachment(1000, 1000, -21);\n\t\t\t\t\t\tthis.closeButton.setLayoutData(writeButtonLData);\n\t\t\t\t\t\tthis.closeButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.closeButton.setText(Messages.getString(MessageIds.GDE_MSGT2287));\n\t\t\t\t\t\tthis.closeButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"closeButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.dispose();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.helpButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tthis.helpButton.setImage(SWTResourceManager.getImage(\"gde/resource/QuestionHot.gif\")); //$NON-NLS-1$\n\t\t\t\t\t\tFormData LoadButtonLData = new FormData();\n\t\t\t\t\t\tLoadButtonLData.width = 118;\n\t\t\t\t\t\tLoadButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\tLoadButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tLoadButtonLData.right = new FormAttachment(1000, 1000, -158);\n\t\t\t\t\t\tthis.helpButton.setLayoutData(LoadButtonLData);\n\t\t\t\t\t\tthis.helpButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"helpButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openHelpDialog(UltraDuoPlusDialog.DEVICE_JAR_NAME, \"HelpInfo.html\"); //$NON-NLS-1$ \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\tthis.boundsComposite.addPaintListener(new PaintListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void paintControl(PaintEvent evt) {\n\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"boundsComposite.paintControl() \" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} // end boundsComposite\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.dialogShell.setLocation(getParent().toDisplay(getParent().getSize().x / 2 - 300, 100));\n\t\t\t\tthis.dialogShell.open();\n\t\t\t\tthis.lastMemorySelectionIndex = -1;\n\t\t\t\tthis.lastCellSelectionIndex = -1;\n\t\t\t\tupdateBaseSetup();\n\t\t\t\tthis.memoryCombo.notifyListeners(SWT.Selection, new Event());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.dialogShell.setVisible(true);\n\t\t\t\tthis.dialogShell.setActive();\n\t\t\t\tthis.lastMemorySelectionIndex = -1;\n\t\t\t\tthis.lastCellSelectionIndex = -1;\n\t\t\t\tupdateBaseSetup();\n\t\t\t\tthis.memoryCombo.notifyListeners(SWT.Selection, new Event());\n\t\t\t}\n\t\t\tDisplay display = this.dialogShell.getDisplay();\n\t\t\tUltraDuoPlusDialog.log.log(Level.TIME, \"open dialog time = \" + StringHelper.getFormatedTime(\"ss:SSS\", (new Date().getTime() - openStartTime))); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\twhile (!this.dialogShell.isDisposed()) {\n\t\t\t\tif (!display.readAndDispatch()) display.sleep();\n\t\t\t}\n\t\t}\n\t\tcatch (Throwable e) {\n\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t}\n\t\tfinally {\n\t\t\tif (!GDE.shell.isDisposed()) {\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.application.resetShellIcon();\n\t\t\t\tif (this.serialPort != null && this.serialPort.isConnected()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t}\n\t\t\t\t\tfinally {\n\t\t\t\t\t\tthis.serialPort.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void open() {\r\n\t}", "public void open() {\n\t}", "protected void implOpen() throws LineUnavailableException {\n/* 161 */ this.id = nOpen(getMixerIndex());\n/* */ }", "public void open()\n {\n }", "@Override\n\tpublic void open() {\n\t\t\n\t}", "public void Open() { // in {FF} Arduino\r\n boolean prio = GoodOpen;\r\n int nx, bitz = 0;\r\n if (SpeakEasy) System.out.println(\"F%%F/Open, (pre: GoodOpen = \"\r\n + GoodOpen + \")\");\r\n if (prio) {\r\n if (SpeakEasy) System.out.println(\"... \" + CommPortNo + \" is already open\");\r\n return;\r\n } else try {\r\n GoodOpen = surrealPort.openPort();\r\n surrealPort.setParams(57600, 8, 1, 0);\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n if (SpeakEasy) {\r\n if (GoodOpen) System.out.println(\"... \" + CommPortNo + \" is now open\");\r\n else System.out.println(\"... \" + CommPortNo + \" failed to open\");\r\n }\r\n if (GoodOpen) try {\r\n bitz = 8; // (for log)\r\n // surrealPort.addEventListener(theInLisner); // didn't work, so do my own\r\n FrootLoop = new EatCereal(); // (does not start it..)\r\n if (FrootLoop != null) {\r\n bitz = 12;\r\n EatOften = new Timer(0, FrootLoop);\r\n if (EatOften == null) bitz = 28;\r\n }\r\n if (digitalInputData == null) {\r\n digitalInputData = new int[MAX_DATA_BYTES];\r\n analogInputData = new int[MAX_DATA_BYTES];\r\n }\r\n if (ArduPiModes == null) {\r\n bitz = bitz + 2;\r\n ArduPiModes = new int[16];\r\n }\r\n for (nx = 0; nx <= 15; nx++) ArduPiModes[nx] = 0;\r\n if (AutoStartInputs) {\r\n bitz++;\r\n Thread.sleep(1000); // delay 8 seconds for Arduino reboot\r\n for (nx = 0; nx <= 2; nx++)\r\n OpenPinInput(nx, Arduino.REPORT_ANALOG); // = 0xC0 (192)\r\n for (nx = 0; nx <= 1; nx++)\r\n OpenPinInput(nx, Arduino.REPORT_DIGITAL);\r\n } // = 0xD0 (208)\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n System.exit(-1);\r\n }\r\n if (SpeakEasy) System.out.println(\" (Ardu/Op) => GoodOpen = \" + GoodOpen\r\n + \" (\" + bitz + \")\");\r\n }", "private static boolean openChanalyzer(App app) throws Exception {\n\r\n boolean appOpened = false;\r\n try {\r\n\r\n\r\n while (!appOpened) {\r\n\r\n app.open(\"Chanalyzer.exe\");\r\n app.focus(\"Chanalyzer.exe\");\r\n sleep(10000);\r\n if (app.isRunning())\r\n appOpened = true;\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return appOpened;\r\n }", "public void open();", "public void open();", "protected void initialize() {\n \tclaw = Robot.getClaw();\n\n \tclaw.open();\n }", "@Override\n\tpublic void open() {\n\n\t}", "@Override\n\tpublic void open() {\n\n\t}", "void open() throws ToyPadException;", "public void opened(LLRPChannelOpenedEvent event);", "public void open() {\n\t\ttry {\n\t\t\tdisplay = Display.getDefault();\n\t\t\tcreateContents();\n\t\t\tcreateTray(display);\t//system tray\n\t\t\tshell.open();\n\t\t\tshell.layout();\n\t\t\twhile (!shell.isDisposed()) {\n\t\t\t\tthis.setAppEnd(true);\n\t\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t}\n\t\t\t}\n\t\t\tterminarPWs(); //cerrar todos los trabajos de impresion que hay dando vueltas por ahi.\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.print(e.getMessage());\n\t\t}\n\t}", "public int open(String filename)\n {\n return open(filename, i_hdl); \n }", "public static void openPCSCR() {\r\n if (enaComp == null || enaSpec == null) {\r\n PCNMClientStart.switchPanels(new PCSCR());\r\n return;\r\n }\r\n ArrayList<String>compList = new ArrayList<String>();\r\n ArrayList<String>specList = new ArrayList<String>();\r\n for (Component cmp : enaComp)\r\n compList.add(cmp.toString());\r\n for (PCSpec spec : enaSpec)\r\n specList.add(spec.toString());\r\n PCNMClientStart.switchPanels(new PCSCR(compList, specList));\r\n }", "public void consult(String strFilePath)\r\n {\r\n m_consoleCtrl.openFile(strFilePath);\r\n }", "public void open() {\n Optional<MidiSequence> sequenceOptional = MidiFileIO.loadMIDIFile();\n if (sequenceOptional.isPresent()) sequenceOptional.ifPresent(inSequence -> {\n cursor = 0;\n controller.setSelected(cursor);\n\n sequence = inSequence;\n controller.setMidiSequence(sequence);\n });\n else {\n JOptionPane.showMessageDialog(null, \"Failed to open file!\", \"OH NO!!!\", JOptionPane.WARNING_MESSAGE);\n }\n }", "public void winch(/* controller and other parameters */) {\n winch.set(.5);\n\n }", "@Override\n\tpublic void open() {\n\t\tlight.open();\n\t}", "protected void open()\n {\n }", "private void setupTurnInfoCharacteristic() {\n turnInfoCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_TURNINFO_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n turnInfoCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n turnInfoCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_TURNINFO_DESC));\n\n turnInfoCharacteristic.setValue(turnInfoCharacteristic_value);\n }", "public OpenToLANConfig() {\n this.port = 0;\n this.delayBetweenPings = Duration.of(1500, TimeUnit.MILLISECOND);\n this.delayBetweenEvent = Duration.of(30, TimeUnit.SECOND);\n }", "public void open(){\n \ttriggerTimer.reset();\n \tisClosed = false;\n \tClawAct.set(false);\n\t\tRobot.oi.armRumble(RUMBLE_DURATION);\n }", "public void opened();", "private void appInitialization(){\n openRom();\n openGuide();\n setOffset(0);\n addressChanged();\n }", "public abstract void open();", "public abstract void open();", "private void open()\n\t{\n\t\tbuffer = new LinkedList<>();\n\t\tbuffer.add(decoratee.getCurrentFrameMessage());\n\t\tbufferZeroFrame = 0;\n\t\tcurrentFrame = 0;\n\t}", "public void openSettings() {\r\n \tIntent intent = new Intent(this, DetectorSettingsActivity.class);\r\n \tstartActivity(intent);\r\n }", "public void Configure()\n\t\t{\n\t\t/*--- Instantiate the message buffer ----*/\n\t\tmessagesin = abstract_robot.getReceiveChannel();//COMMUNICATION\n\t\t}", "public void openNSE() {\n\t\t\t this.open.getText();\r\n\t\t}", "public void open(){\n }", "public void openUsbDevice() {\n tryGetUsbPermission();\n }", "private void openUri() {\n try {\n Desktop.getDesktop().browse(new URI(\"http://localhost:\" + Constants.DEFAULT_PORT));\n } catch (URISyntaxException | IOException e) {\n logger.error(\"MainService error [openUri]: \" + e);\n }\n }", "void open(final Configuration configuration) throws Exception;", "@Override\n \t\t\t\tpublic void doOpen() {\n \n \t\t\t\t}", "@Override\r\n\tpublic void connect(String name, String mode) throws IOException {\n\t\tthis.mode = mode;\r\n\t\tif (this.mode.equals(\"r\")) {\r\n\t\t\tthis.scanner = new Scanner(new File(name));\r\n\t\t} else if (this.mode.equals(\"w\")) {\r\n\t\t\tthis.writer = new BufferedWriter(new FileWriter(name, false));\r\n\t\t} else if (this.mode.equals(\"w+\")) {\r\n\t\t\tthis.writer = new BufferedWriter(new FileWriter(name, true));\t\t\r\n\t\t}\r\n\t}", "WpcAthIni(@NonNull WpcCom com, FlwTyp flw, @NonNull CachBuf buf) {\n mCom = com; // Register the Qi communication interface\n mFlw = flw; // Register the protocol flow\n mCach= buf; // Register cache buffer\n }", "public void open() {\n display = Display.getDefault();\n createContents();\n shell.open();\n shell.layout();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch()) {\n display.sleep();\n }\n }\n\n // programme stop with exit 0\n System.exit(0);\n\n }", "private void handle_mode_display() {\n\t\t\t\n\t\t}", "private void activateCAMP(){\n\t\t\tadenylylCyclaseActivated = true;\n\t\t\tcAMPActivated = true;\n\t\t}", "public void readChannel() {\n this.chStored = \"\";\n try {\n java.io.FileReader chReader = new java.io.FileReader(chFile);\n while (chReader.ready()) {\n this.chStored = this.chStored + chReader.read();\n }\n chReader.close();\n } catch (FileNotFoundException ex) {\n JTVProg.logPrint(this, 0, \"файл канала [\" + this.chName + \"] не найден\");\n } catch (IOException ex) {\n JTVProg.logPrint(this, 0, \"ошибка чтения файла канала [\" + this.chName + \"]\");\n }\n }", "void openHardware(){\n if(hardware!=null && hardware.isOpen()){\n playMode=PlayMode.LIVE; // in case (like StereoHardwareInterface) where device can be open but not by MotionViewer\n return;\n }\n try{\n hardware=(SiLabsC8051F320_OpticalFlowHardwareInterface)OpticalFlowHardwareInterfaceFactory.instance().getFirstAvailableInterface();\n hardware.setChip(chip);\n chip.setHardwareInterface(hardware);\n hardware.open();\n\n\n \n if(hardware==null) {\n fixLoggingControls();\n fixBiasgenControls();\n return;\n }\n\n fixLoggingControls();\n fixBiasgenControls();\n // note it is important that this openHardware succeeed BEFORE hardware is assigned to biasgen, which immeiately tries to openHardware and download biases, creating a storm of complaints if not sucessful!\n \n// if(hardware instanceof BiasgenHardwareInterface){\n// chip.getBiasgen().sendConfiguration(chip.getBiasgen());\n// chip.setHardwareInterface(hardware); // if we do this, events do not start coming again after reconnect of device\n// biasgen=chip.getBiasgen();\n// if(biasgenFrame==null) {\n// biasgenFrame=new BiasgenFrame(biasgen); // should check if exists...\n// }\n// }\n \n setPlaybackControlsEnabledState(true);\n setPlayMode(PlayMode.LIVE);\n setTitleAccordingToState();\n }catch(Exception e){\n log.warning(e.getMessage());\n if(hardware!= null) hardware.close();\n setPlaybackControlsEnabledState(false);\n fixLoggingControls();\n fixBiasgenControls();\n setPlayMode(PlayMode.WAITING);\n }\n }", "@Override\n\tpublic void open() {\n\t\topenMMUModeSelect();\n\t}", "public void openMixerSettings() {\n\t\tcontroller.intializeDatabaseConnection();\n\t\tif (controller.isConnected()) {\n\t\t\ttry {\n\t\t\t\tFXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/MixerSettingsView.fxml\"));\n\t\t\t\tfxmlLoader.setResources(bundle);\n\t\t\t\tParent root1 = (Parent) fxmlLoader.load();\n\t\t\t\tStage stage = new Stage();\n\t\t\t\tMixerSettingsController msc = fxmlLoader.getController();\n\t\t\t\tmsc.setMainController(this);\n\t\t\t\tstage.initModality(Modality.APPLICATION_MODAL);\n\t\t\t\t// stage.initStyle(StageStyle.UNDECORATED);\n\t\t\t\tstage.setTitle(\"Mixer Settings Loader\");\n\t\t\t\tstage.setScene(new Scene(root1));\n\t\t\t\tstage.show();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tAlert alert1 = new Alert(AlertType.ERROR);\n\t\t\talert1.setTitle(bundle.getString(\"mVDataConAlertTitle\"));\n\t\t\talert1.setHeaderText(bundle.getString(\"mVDataConAlertHeader\"));\n\t\t\talert1.setContentText(bundle.getString(\"mVDataConAlertContent\"));\n\t\t\talert1.showAndWait();\n\t\t}\n\n\t}", "protected abstract void handleOpenChannel(int channelNo,int frameValue);", "@Override\r\n\tpublic void setup(){\n\t\tmidiIO = CCMidiIO.getInstance();\r\n\t\tmidiIO.printDevices();\r\n\r\n\t\t// print a list with all available devices\r\n\t\tmidiIO.printDevices();\r\n\r\n\t\t// open an midiout using the first device and the first channel\r\n\t\tmidiOut = midiIO.midiOut(0, 1);\r\n\r\n\t\tbowl = new Bowl[10];\r\n\t\tfor (int i = 0; i < bowl.length; i++){\r\n\t\t\tbowl[i] = new Bowl(i);\r\n\t\t}\r\n\t}", "public void autonomousInit() {\n\t\ttimer.start();\n\t\tautonomousCommand = autoChooser.getSelected();\n\t\t//This outputs what we've chosen in the SmartDashboard as a string.\n\t\tSystem.out.println(autonomousCommand);\n\t\tif (DriverStation.getInstance().isFMSAttached()) {\n\t\t\tgameData = DriverStation.getInstance().getGameSpecificMessage();\n\t\t}\n\t\telse {\n\t\t\tgameData=\"RLR\";\n\t\t}\n\t\t//armSwing.setAngle(90); //hopefully this will swing the arms down. not sure what angle it wants though\n\t}", "public void goOnline()\n\t{\t\t\n\t\ttry {\n\t\t\tchatConnection.openConnection(connectionconfig);\n\t\t\tgetMainWindow().displayOnlineSymbol();\n\t\t\tconfig_ok = true;\n\t\t} catch (Exception e) {\n\t\t\tconfig_ok = false;\n\t\t\tcreateConnectionConfigurationDialog(e.getMessage());\n\t\t\t\n\t\t}\n\t}", "public void open() throws FTD2XXException {\n Memory memory = new Memory(16);\n memory.setString(0, devSerialNumber);\n PointerByReference handle = new PointerByReference();\n ensureFTStatus(ftd2xx.FT_OpenEx(memory, FTD2XX.FT_OPEN_BY_SERIAL_NUMBER, handle));\n this.ftHandle = handle.getValue();\n open = true;\n }", "@Override\n\tpublic void open(int id) {\n\t\t\n\t}", "boolean open();", "@Override\n\tpublic void open() throws IOException {\n\t\t\n\t}", "void open() throws FileNotFoundException, IOException{\r\n \r\n //Call setup to get global settings and check if this is the first run. \r\n File settings = new File(settingsPath);\r\n if (!settings.isDirectory()){\r\n //then this is the first run...call setup\r\n Setup firstrun = new Setup(this, ax);\r\n }else{\r\n //Get the settings from the file, if the file has dissappeared since\r\n //first setup, recreate.\r\n InputStream in = null;\r\n try {\r\n \r\n File sFile = new File(\"c:\\\\AE\\\\settings\\\\setting.txt\");\r\n if (!sFile.exists()){\r\n System.out.println(\"Creating Settings File with defaults.\");\r\n sFile.createNewFile();\r\n Writer w = new FileWriter(sFile);\r\n w.append(\"Password:password:Homepage:www.google.com:Runs:1\\n\");\r\n w.close();\r\n \r\n }\r\n in = new FileInputStream(\"c:/ae/settings/setting.txt\");\r\n } catch (FileNotFoundException fileNotFoundException) {\r\n System.out.println(\"File Not Found!\");\r\n }\r\n \r\n Scanner scanner = new Scanner(in);\r\n \r\n while (scanner.hasNext()){ \r\n \r\n String[] Settings = scanner.nextLine().split(\":\");\r\n password = Settings[1];\r\n setPassword(password);\r\n \r\n String homepage = Settings[3];\r\n System.out.println(homepage);\r\n setHome(homepage);\r\n \r\n in.close();\r\n \r\n }\r\n }\r\n //Ask for password until the correct password is entered.\r\n \r\n Password pw = new Password();\r\n \r\n do {pw.showDialog();}\r\n while (!(pw.pass.getText() == null ? password == null : pw.pass.getText().equals(password)));\r\n \r\n \r\n //Add the browser into the browser Pane\r\n \r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n \r\n ax.browserPane.add(\"Browser\", ax.browser.getComponent());\r\n \r\n \r\n }\r\n }); \r\n \r\n ///////////////////////////////////\r\n //Action listeners start here. //\r\n ///////////////////////////////////\r\n \r\n /**\r\n * Get the current page status and display in the statusLabel\r\n */\r\n ax.browser.addStatusListener(new StatusListener() {\r\n \r\n @Override\r\n public void statusChanged(final StatusChangedEvent event) {\r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.statusLabel.setText(event.getStatusText());\r\n }\r\n });\r\n \r\n }\r\n });\r\n \r\n //Action Listener for homeButton\r\n ax.homeButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n try {\r\n ax.browser.navigate(getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.browser.waitReady();\r\n try {\r\n tokenString = (\"<Action Home>::\" + getHome() + delim);\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n } });\r\n \r\n //Action Listener Go to a new http web address\r\n ax.goButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n \r\n ax.browser.navigate( ax.addressBar.getText());\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Navigate>::\" +ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n }});\r\n \r\n\r\n \r\n \r\n //Browser tab and enter listener\r\n \r\n ax.browser.getComponent().addKeyListener(new KeyListener() {\r\n \r\n @Override\r\n public void keyTyped(KeyEvent ke) {\r\n \r\n }\r\n @Override\r\n public void keyPressed(KeyEvent ke) {\r\n }\r\n\r\n @Override\r\n public void keyReleased(KeyEvent ke) {{\r\n if(ke.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){ \r\n \r\n tokenString = (\"<Action Key>::\" + \"Enter\" + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n } {\r\n if(ke.getKeyCode() == java.awt.event.KeyEvent.VK_TAB){ \r\n \r\n tokenString = (\"<Action Key>::\" + \"Tab\" + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n }\r\n }\r\n \r\n }}\r\n });\r\n\r\n \r\n //Address Bar Enter Key listener, same as above but with Enter Key\r\n ax.addressBar.addKeyListener(new java.awt.event.KeyAdapter() {\r\n \r\n @Override\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n if(evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){ \r\n \r\n ax.browser.navigate( ax.addressBar.getText());\r\n ax.browser.waitReady(); \r\n \r\n tokenString = (\"<Action Navigate>::\" +ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n }\r\n }});\r\n \r\n //Search Bar Enter Key listener\r\n ax.searchField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n @Override\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n if(evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){\r\n \r\n ax.browser.navigate(\"http://www.google.com/search?q=\" + ax.searchField.getText());\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Google_Search>::\" +ax.browser.getCurrentLocation() + delim);\r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n }\r\n }});\r\n \r\n //Action Listener Go Back\r\n ax.backButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n ax.browser.goBack();\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Back>::\" +ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n \r\n \r\n \r\n \r\n }});\r\n \r\n //Action go forward\r\n ax.forwardButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n ax.browser.goForward();\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Forward>::\" + ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n }); \r\n \r\n }});\r\n \r\n /*Now we need to update the address bar when we go to a new page\r\n * \r\n * Change the navigation text, and most importantly, process clicks \r\n */\r\n \r\n ax.browser.addNavigationListener(new NavigationListener() {\r\n @Override\r\n public void navigationStarted(final NavigationEvent event) {\r\n documentElement.removeEventListener(\"click\", clickEventListener, false); \r\n documentElement.removeEventListener(\"change\", changeEventListener, false); \r\n documentElement.removeEventListener(\"focusin\", inEventListener, false); \r\n documentElement.removeEventListener(\"focusout\", outEventListener, false); \r\n \r\n }\r\n\r\n @Override\r\n public void navigationFinished(NavigationFinishedEvent event) {\r\n \r\n \r\n ax.addressBar.setText(event.getUrl());\r\n \r\n //set the webpage title on the tab\r\n //set the title in its own swing thread\r\n String checkTitle =ax.browser.getTitle();\r\n if (checkTitle.length() > 40){\r\n for (int i = 0; i<=checkTitle.length(); ++i){\r\n checkTitle = checkTitle.substring(0, 30);\r\n }\r\n \r\n \r\n }\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n }\r\n });\r\n \r\n \r\n \r\n document = ax.browser.getDocument();\r\n documentElement = (DOMElement) document.getDocumentElement();\r\n EventListener init = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n HTMLElement t = (HTMLElement) evt.getTarget();\r\n \r\n \r\n documentElement.addEventListener(\"change\", changeEventListener, captureInput);\r\n \r\n \r\n \r\n \r\n }\r\n };\r\n \r\n documentElement.addEventListener(\"load\",init,false);\r\n \r\n ((EventTarget) documentElement).addEventListener(\"click\", new EventListener() {\r\n public void handleEvent(Event evt) {\r\n HTMLElement t = (HTMLElement) evt.getTarget();\r\n System.out.println(\"Type = \" + t.getNodeName());\r\n \r\n htmlEvent.processThis(ax, t, documentElement);\r\n if (\"textarea\".equals(t.getNodeName().toLowerCase())){\r\n documentElement.addEventListener(\"change\", changeEventListener, captureInput);\r\n }\r\n \r\n }\r\n}, false);\r\n \r\n //Listener for element clicks\r\n \r\n clickEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n \r\n org.w3c.dom.events.MouseEvent event = (org.w3c.dom.events.MouseEvent) evt;\r\n \r\n HTMLElement target = (HTMLElement) event.getTarget();\r\n \r\n String tagName = target.getNodeName().toLowerCase();\r\n \r\n if (tagName.equals(\"input\")){\r\n documentElement.addEventListener(\"keyup\", keyEventListener, false);\r\n \r\n }\r\n \r\n else {\r\n htmlEvent.processThis(ax, target, documentElement);\r\n }\r\n \r\n \r\n \r\n }\r\n };\r\n \r\n \r\n //Looks for changes in text. \r\n keyEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n org.w3c.dom.events.Event event = (org.w3c.dom.events.Event) evt;\r\n HTMLElement target = (HTMLElement) event.getTarget();\r\n System.out.println(\"target value: \"+ event.getType()); \r\n \r\n htmlEvent.processThis(ax, target, documentElement);\r\n \r\n \r\n }\r\n };\r\n changeEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n HTMLElement t = (HTMLElement) evt.getTarget();\r\n System.out.println(\"Type = \" + t.getNodeName());\r\n \r\n htmlEvent.processThis(ax, t, documentElement);\r\n \r\n \r\n \r\n }\r\n };\r\n \r\n inEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n documentElement.addEventListener(\"click\", clickEventListener, false);\r\n \r\n }\r\n };\r\n\r\n documentElement.addEventListener(\"focusin\", inEventListener, false);\r\n\r\n \r\n \r\n outEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n //Remove Listeners on focus out.\r\n System.out.println(\"Focused out, removing click and change listeners\");\r\n documentElement.removeEventListener(\"change\", changeEventListener, false);\r\n documentElement.removeEventListener(\"click\", clickEventListener, false);\r\n \r\n }\r\n };\r\n\r\n documentElement.addEventListener(\"focusout\", outEventListener, false);\r\n\r\n\r\n \r\n \r\n }\r\n });\r\n \r\n //Navigate to our home screen and wait for it to be ready.\r\n ax.browser.navigate(getHome());\r\n ax.browser.waitReady();\r\n ax.conscriptPane.setVisible(false);\r\n \r\n //Get the history.\r\n /*\r\n HistoryListModel hlm = new HistoryListModel(ax);\r\n ax.HistoryCombo.setModel(hlm);\r\n */\r\n //Change the tab text to current page\r\n SwingUtilities.invokeLater(new Runnable() {\r\n \r\n @Override\r\n public void run() {\r\n \r\n //Setup the ax.browser tab, html tab and addressbar\r\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }\r\n });\r\n \r\n }", "public void InitLinuxStart() throws IOException {\n\t\ttry {\n\t\t\t/**\n\t\t\t * Path to the <strong>preferences.conf</strong> file.\n\t\t\t */\n\t\t\tString preferencesPath = System.getProperty(\"user.dir\");\n\n\t\t\t/**\n\t\t\t * Creates a <em>File</em> object to the\n\t\t\t * <strong>preferences.conf</strong> file.\n\t\t\t */\n\t\t\tFile preferences = new File(preferencesPath + \"/preferences.conf\");\n\n\t\t\t/**\n\t\t\t * <em>FileReader</em> object to read from the\n\t\t\t * <strong>preferences.conf</strong> file.\n\t\t\t */\n\t\t\tFileReader prefRead = new FileReader(preferences);\n\n\t\t\t/**\n\t\t\t * <em>BufferedReader</em> object to read lines from the\n\t\t\t * <strong>preferences.conf</strong> file.\n\t\t\t */\n\t\t\tBufferedReader prefer = new BufferedReader(prefRead);\n\n\t\t\t/**\n\t\t\t * <em>StringTokenizer</em> object which reads contents from the\n\t\t\t * <strong>preferences.conf</strong> file as tokens.\n\t\t\t */\n\t\t\tStringTokenizer token;\n\n\t\t\t/**\n\t\t\t * Contains lines reads from the <strong>preferences.conf</strong>\n\t\t\t * file.\n\t\t\t */\n\t\t\tString str = prefer.readLine();\n\t\t\ttoken = new StringTokenizer(str, \":\");\n\t\t\ttry {\n\t\t\t\ttoken.nextToken();\n\t\t\t\tString port = token.nextToken().trim();\n\t\t\t\t/*\n\t\t\t\t * portNumber is initialized here\n\t\t\t\t */\n\t\t\t\tportNumber = Integer.parseInt(port);\n\t\t\t} catch (NoSuchElementException e) {\n\t\t\t\tportNumber = 65530;\n\t\t\t}\n\t\t\tstr = prefer.readLine();\n\t\t\ttoken = new StringTokenizer(str, \":\");\n\t\t\ttry {\n\t\t\t\ttoken.nextToken();\n\t\t\t\tString autoRep = token.nextToken().trim();\n\n\t\t\t\t/*\n\t\t\t\t * The boolean variable AutoRepeat is initialized in the\n\t\t\t\t * following lines.\n\t\t\t\t */\n\t\t\t\tif (Integer.parseInt(autoRep) == 1) {\n\t\t\t\t\tAutoRepeat = true;\n\t\t\t\t} else if (Integer.parseInt(autoRep) == 0) {\n\t\t\t\t\tAutoRepeat = false;\n\t\t\t\t} else {\n\t\t\t\t\tAutoRepeat = true;\n\t\t\t\t}\n\t\t\t} catch (NoSuchElementException e) {\n\t\t\t\tAutoRepeat = true;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * If the file preferences.conf is not present, initialize it to\n\t\t\t * default values.\n\t\t\t */\n\t\t} catch (FileNotFoundException f) {\n\t\t\tportNumber = 65530;\n\t\t\tAutoRepeat = true;\n\t\t}\n\n\t\t/*\n\t\t * Initialize the socket variable here.\n\t\t */\n\t\ttry {\n\t\t\tsocket = new ServerSocket(portNumber);\n\t\t} catch (BindException e) {\n\n\t\t\t/*\n\t\t\t * This displays a message box which notifies if another instance of\n\t\t\t * indic-keyboards is already running on the specified port.\n\t\t\t */\n\t\t\tDisplay display = Display.getCurrent();\n\t\t\tShell shell = new Shell(display);\n\t\t\tMessageBox messageBox = new MessageBox(shell, SWT.OK\n\t\t\t\t\t| SWT.ICON_ERROR);\n\t\t\tmessageBox.setText(\"Duplicate Instance\");\n\t\t\tmessageBox.setMessage(\"There is already an instance of indic-keyboards running. \"\n\t\t\t\t\t\t\t+ \"Close it first. If \"\n\t\t\t\t\t\t\t+ \"another instance isn't running, close any connections on port \"\n\t\t\t\t\t\t\t+ portNumber\n\t\t\t\t\t\t\t+ \" and try again.\"\n\t\t\t\t\t\t\t+ \" Alternatively, you can view the preferences.conf file to check the\"\n\t\t\t\t\t\t\t+ \" port number.\");\n\t\t\tmessageBox.open();\n\t\t\tshell.dispose();\n\t\t\tSystem.exit(0);\n\n\t\t}\n\t\t/*\n\t\t * Contains the pid of the JVM which runs indic-keyboards. This can be\n\t\t * used to kill the JVM in case indic-keyboards stops responding.\n\t\t */\n\t\tString pid = ManagementFactory.getRuntimeMXBean().getName();\n\t\tint index = pid.indexOf(\"@\");\n\n\t\t/*\n\t\t * Debug messages which will be shown on the console\n\t\t */\n\t\tSystem.out.println(\"This is the process ID : \"\n\t\t\t\t+ pid.substring(0, index));\n\t\tSystem.out.println(\"indic-keyboards listening on port \"\n\t\t\t\t+ socket.getLocalPort());\n\t\tif (AutoRepeat == false) {\n\t\t\tSystem.out.println(\"Auto Repeat is turned OFF\");\n\t\t}\n\t\tif (AutoRepeat == true) {\n\t\t\tSystem.out.println(\"Auto Repeat is turned ON\");\n\t\t}\n\n\t\t/*\n\t\t * Get the name of the main thread.\n\t\t */\n\t\tSystem.out.println(Thread.currentThread().getName());\n\n\t\t/*\n\t\t * The following lines creates a new thread which will run the key\n\t\t * logger. The key presses are monitored by this thread. The thread is\n\t\t * named as \"Key Monitor\"\n\t\t */\n\t\tRunnable r = new KeyMonitor();\n\t\tThread t = new Thread(r);\n\t\tt.setName(\"Key Monitor\");\n\t\tt.start();\n\t}", "public native boolean initializeCharon(BuilderAdapter builder, String logfile, boolean byod);", "public void testOpenJavaProgramLaunchConfigurationDialog2() {\n // warm run..depends on testOpenJavaProgramLaunchConfigurationDialog1 for cold start\n ILaunchConfiguration config = getLaunchConfiguration(\"Breakpoints\");\n IStructuredSelection selection = new StructuredSelection(config);\n openLCD(selection, fgIdentifier);\n }", "void initCommand() {\n try {\n stream = adbTerminalConnection.open(\"shell:\");\n } catch (IOException | InterruptedException e) {\n e.printStackTrace();\n return;\n }\n runOnUiThread(() -> {\n channel.invokeMethod(\"output\", \"OTG已连接\\r\\n\");\n });\n // Start the receiving thread\n new Thread(() -> {\n while (!stream.isClosed()) {\n // Print each thing we read from the shell stream\n String data = null;\n try {\n data = new String(stream.read());\n } catch (InterruptedException | IOException e) {\n e.printStackTrace();\n }\n Log.d(\"Nightmare\", \"data -> \" + data);\n if (data == null) {\n runOnUiThread(() -> {\n channel.invokeMethod(\"output\", \"OTG断开\\r\\n\");\n });\n continue;\n }\n String finalData = data;\n runOnUiThread(() -> {\n channel.invokeMethod(\"output\", finalData);\n });\n }\n }).start();\n }", "public void teleopInit() {\n\t\tauto.cancel();\r\n\t\t// Create the teleop command and start it.\r\n\t\tteleop.start();\r\n\t\t// Reset the drivetrain encoders\r\n\t\tDriveTrain.getInstance().resetEncoders();\r\n\t\t// Start pushing sensor readings to the SD.\r\n\t\treadings.start();\r\n\t}", "void openSettings() {\n\t}", "public void testOpenJavaProgramLaunchConfigurationDialog1() {\n // cold run\n ILaunchConfiguration config = getLaunchConfiguration(\"Breakpoints\");\n IStructuredSelection selection = new StructuredSelection(config);\n for (int i = 0; i < 100; i++) {\n openLCD(selection, fgIdentifier);\n }\n commitMeasurements();\n assertPerformance();\n }", "@Override\n public void onInitializeClient() {\n KeyBinding keyBinding = new KeyBinding(\n \"config.advancedchat.key.openlog\",\n InputUtil.Type.KEYSYM,\n GLFW.GLFW_KEY_Y,\n \"category.advancedchat.keys\"\n );\n KeyBindingHelper.registerKeyBinding(keyBinding);\n ClientTickEvents.START_CLIENT_TICK.register(s -> {\n if (keyBinding.wasPressed()) {\n // s.openScreen(new ExampleScreen());\n open();\n }\n });\n }", "public void mo6082b() {\n if (m14898d()) {\n C3720a.this.StartBrowser();\n }\n }", "@Override\n public void onOpen(String data) {\n\n log.e(\"ipcChannel opened!!!\");\n\n // send register message\n JSONObject register = new JSONObject();\n try {\n register.put(IPC_MESSAGE_TYPE, IPC_MESSAGE_DATA_REGISTER);\n\n ipcSend(register);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "protected void initialize() {\n encoder = winchAndLatchSS.getWinchEncoder();\n counter = 0;\n Robot3663.updateCommandStatus(\"C_WindWinch\", \"initialize \"+targetTicks);\n tightening = winchAndLatchSS.getWinchEncoder() > targetTicks;\n \n if (tightening){\n direction = speed = -1;\n }\n else{\n direction = speed = 1;\n }\n kill = false;\n if((encoder > targetTicks - LEWAY) && (encoder < targetTicks + LEWAY))\n {\n kill = true;\n speed = 0;\n }\n }", "private void initializeFile() {\n\t\twriter.println(\"name \\\"advcalc\\\"\");\n\t\twriter.println(\"org 100h\");\n\t\twriter.println(\"jmp start\");\n\t\tdeclareArray();\n\t\twriter.println(\"start:\");\n\t\twriter.println(\"lea si, \" + variables);\n\t}", "@Override\n\tpublic void teleopInit() {\n\t\tservoCIMCommand.start();\n\t\tmonitorCommand.start();\n\t\twindowCommand.start();\n\t\t\n\t}", "public void establishChannel(String Download)\r\n {\r\n try\r\n {\r\n int lines=0;\r\n while(true)\r\n {\r\n lines=getLines(path,Download);\r\n if(lines == 0)\r\n {\r\n //nothing to copy\r\n System.out.println(\"Nothing to copy will try in 5 secs\");\r\n Thread.sleep(5000);\r\n }\r\n else\r\n\t {\r\n String command1=\"tail -\"+lines+\" \"+path;\r\n System.out.println(\"Setting command: \"+command1); \r\n settingCommand(command1,Download);\r\n Thread.sleep(1000);\r\n }\r\n }\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(e);\r\n }\r\n }", "public static void main(String[] args) {\n\t\tHdlcClientConnectionSettings settings = new HdlcClientConnectionSettings(\"/dev/ttyUSB0\", new HdlcAddress(16),\n\t\t\t\tnew HdlcAddress(1, 17, 2), ReferencingMethod.LN);\n\t\tsettings.setAuthentication(Authentication.LOW);\n\n\t\tIClientConnectionFactory factory = ServiceLoader.load(IClientConnectionFactory.class).iterator().next();\n\t\tIClientConnection connection = null;\n\t\ttry {\n\t\t\tconnection = factory.createClientConnection(settings);\n\n\t\t\tSystem.out.print(\"Enter the password to connect with the smart meter: \");\n\t\t\tbyte pw[] = null;\n\t\t\tif (System.console() != null) {\n\t\t\t\tchar[] input = System.console().readPassword();\n\t\t\t\tCharBuffer buffer = CharBuffer.wrap(input);\n\t\t\t\tCharset ascii = Charset.forName(\"US-ASCII\");\n\t\t\t\tByteBuffer bytes = ascii.encode(buffer);\n\t\t\t\tpw = new byte[bytes.limit()];\n\t\t\t\tbytes.get(pw);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\tString input = scanner.nextLine();\n\t\t\t\tpw = input.getBytes(\"US-ASCII\");\n\t\t\t}\n\n\t\t\tconnection.connect(3000, pw);\n\t\t\tSystem.out.println(\"Connected\\n\");\n\n\t\t\t// Get parameter to read current time\n\t\t\t// - Interface class: 8 (Clock)\n\t\t\t// - Obis code: 0:0:1:0:0:255 (current time)\n\t\t\t// - Attribute ID: 2 (time)\n\t\t\tGetRequest getClock = new GetRequest(8, new ObisCode(0, 0, 1, 0, 0, 255), 2);\n\n\t\t\t// Read time from meter\n\t\t\tList<GetResult> getResults = connection.get(2000, getClock);\n\t\t\tSystem.out.println(\"\\nRead time from smart meter\");\n\t\t\tSystem.out.println(\"Time: \" + getClockString(getResults.get(0).getResultData().getByteArray()));\n\n\t\t\t// Set parameter to add +1 hour to read time\n\t\t\t// - Interface class: 8 (Clock)\n\t\t\t// - Obis code: 0:0:1:0:0:255 (current time)\n\t\t\t// - Attribute ID: 2 (time)\n\t\t\tbyte[] value = getResults.get(0).getResultData().getByteArray();\n\t\t\tvalue[5] = (byte) ((value[5] + 1) % 12);\n\t\t\tSetRequest setClock = getClock.toSetRequest();\n\t\t\tsetClock.data().setOctetString(value);\n\n\t\t\t// Write new value to smart meter\n\t\t\tList<AccessResultCode> setResults = connection.set(3000, setClock);\n\t\t\tSystem.out.println(\"Setting time on smart meter\");\n\t\t\tSystem.out.println(\"Time: \" + setResults.get(0) + \"\\n\");\n\n\t\t\t// Read current time from smart meter again\n\t\t\tgetResults = connection.get(2000, getClock);\n\t\t\tSystem.out.println(\"Time: \" + getClockString(getResults.get(0).getResultData().getByteArray()) + \"\\n\");\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (connection != null && connection.isConnected()) {\n\t\t\t\tconnection.disconnect(false);\n\t\t\t\tSystem.out.println(\"\\nDisconnected from smart meter\\n\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n protected void initialize() {\n Robot.collector.open();\n }", "private void setupCentral() {\n bleHandler = new BLEHandler(this, BLEHandler.SENDER, BLEHandler.EXPERIMENT);\n bleHandler.connect();\n }", "private native int open0(String host,\n int msid, int port) throws IOException;", "public void connectToAccessory() {\n\t\tif (mConnection != null)\n\t\t\treturn;\n\n\t\tif (getIntent().hasExtra(BTDeviceListActivity.EXTRA_DEVICE_ADDRESS)) {\n\t\t\tString address = getIntent().getStringExtra(\n\t\t\t\t\tBTDeviceListActivity.EXTRA_DEVICE_ADDRESS);\n\t\t\tLog.i(ADK.TAG, \"want to connect to \" + address);\n\t\t\tmConnection = new BTConnection(address);\n\t\t\tperformPostConnectionTasks();\n\t\t} else {\n\t\t\t// assume only one accessory (currently safe assumption)\n\t\t\tUsbAccessory[] accessories = mUSBManager.getAccessoryList();\n\t\t\tUsbAccessory accessory = (accessories == null ? null\n\t\t\t\t\t: accessories[0]);\n\t\t\tif (accessory != null) {\n\t\t\t\tif (mUSBManager.hasPermission(accessory)) {\n\t\t\t\t\topenAccessory(accessory);\n\t\t\t\t} else {\n\t\t\t\t\t// synchronized (mUsbReceiver) {\n\t\t\t\t\t// if (!mPermissionRequestPending) {\n\t\t\t\t\t// mUsbManager.requestPermission(accessory,\n\t\t\t\t\t// mPermissionIntent);\n\t\t\t\t\t// mPermissionRequestPending = true;\n\t\t\t\t\t// }\n\t\t\t\t\t// }\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Log.d(TAG, \"mAccessory is null\");\n\t\t\t}\n\t\t}\n\n\t}", "private static void makeRaw() {\n String ttyName = \"/dev/tty\";\n int ofd = Util.getFd(FileDescriptor.out);\n\n CLibrary.LinuxTermios termios = new CLibrary.LinuxTermios();\n\n // check existing settings\n // If we don't do this tcssetattr() will return EINVAL.\n if (CLibrary.INSTANCE.tcgetattr(ofd, termios) == -1) {\n error(\"tcgetattr(\\\"\" + ttyName + \"\\\", <termios>) failed -- \" + strerror(Native.getLastError()));\n }\n\n // System.out.printf(\"tcgetattr() gives %s\\r\\n\", termios);\n\n // initialize values relevant for raw mode\n CLibrary.INSTANCE.cfmakeraw(termios);\n\n // System.out.printf(\"cfmakeraw() gives %s\\r\\n\", termios);\n\n // apply them\n if (CLibrary.INSTANCE.tcsetattr(ofd, CLibrary.INSTANCE.TCSANOW(), termios) == -1) {\n error(\"tcsetattr(\\\"\" + ttyName + \"\\\", TCSANOW, <termios>) failed -- \" + strerror(Native.getLastError()));\n }\n }", "public void open( ) {\n System.out.println(\"Door is unlocked. \\n\" +\n \"Welcome to Park Extravaganza\\n\");\n }", "@Override\n\tpublic void start() {\n\t\t\n\t\t_mode.init();\n\t\t\n\t\t_mode.start();\n\t}", "@Override\n\t\t\tpublic void open() {\n\t\t\t\tisAutoPlay = true;\n\t\t\t\tCustomApplication.app.preferencesUtil.setBooleanValue(\n\t\t\t\t\t\t\"isAutoPlay\", isAutoPlay);\n\t\t\t}", "public void open() throws LineUnavailableException {\n/* 301 */ synchronized (this.mixer) {\n/* */ \n/* 303 */ if (!isOpen()) {\n/* */ \n/* */ \n/* 306 */ this.mixer.open(this);\n/* */ \n/* */ try {\n/* 309 */ implOpen();\n/* */ \n/* */ \n/* 312 */ setOpen(true);\n/* 313 */ } catch (LineUnavailableException lineUnavailableException) {\n/* */ \n/* 315 */ this.mixer.close(this);\n/* 316 */ throw lineUnavailableException;\n/* */ } \n/* */ } \n/* */ } \n/* */ }", "public void openShell()\n\t{\n\t\tif (ConnectionManager.getInstance().connectionState)\n\t\t\tshell.open();\n\t}", "@Override\n\tpublic void changeChannel() {\n\t\tSystem.out.println(\"Listening to Radio...\\n channel 1 2 3 4....\");\n\t}", "private void openConnection () {\n String[] labels = {\"Host :\", \"Port :\"};\n String[] initialValues = {\"localhost\", \"1111\"};\n StandardDialogClient openHandler = new StandardDialogClient () {\n\t@Override\n\tpublic void dialogDismissed (StandardDialog d, int code) {\n\t try {\n\t InputDialog inputD = (InputDialog)d;\n\t if (inputD.wasCancelled ()) return;\n\t String[] results = inputD.getResults ();\n\t String host = results[0];\n\t String port = results[1];\n\t TwGateway connection =\n\t (TwGateway)TwGateway.openConnection (host, port);\n\t // The following call will fail if the G2 is secure.\n\t connection.login();\n\t setConnection (connection);\n\t } catch (Exception e) {\n\t new WarningDialog (null, \"Error During Connect\", true, e.toString (), null).setVisible (true);\n\t }\n\t}\n };\t \n\n new ConnectionInputDialog (getCurrentFrame (), \"Open Connection\",\n\t\t\t\t true, labels, initialValues,\n\t\t\t\t (StandardDialogClient) openHandler).setVisible (true);\n }", "private void openCtrlSocket() {\n ctrlThreadTask = ThreadTasks.OPEN;\n }", "private void open()\n {\n try\n {\n // Found how to append to a file here \n //http://stackoverflow.com/questions/1625234/how-to-append-text-to-an-existing-file-in-java\n r = new PrintWriter( new BufferedWriter(new FileWriter(filePath, true)));\n }\n catch( IOException e )\n {\n r = null;\n UI.println(\"An error occored when operning stream to the log file.\\n This game wont be logged\");\n Trace.println(e);\n }\n }", "public static void connect(String comName)\n {\n char[] stringToChar = comName.toCharArray();\n System.out.println(\"Name is \"+ (int)stringToChar[0]);\n\n if (comName!=\"\") {\n try {\n\n serialPort = SerialPort.getCommPort(comName);\n serialPort.setBaudRate(9600);\n serialPort.openPort();\n } catch (Exception e) {\n //System.out.println(\"Serial Port Failed to Initialize\");\n }\n }\n\n\n }", "@Override\n\tpublic void open() throws IOException {\n\t}", "private void makeTerminalReady() {\n if (currentMode != MODE_CONV) {\n doSetConversationalMode();\n }\n }", "@FXML\n\tprivate void openConfigFile() {\n\t\tFileChooser fileChooser = new FileChooser();//Allows opening and saving files\n\t\tFileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"CFG files (*.cfg)\", \"*.cfg\"); //sets extension filter\n\t\tfileChooser.getExtensionFilters().add(extFilter);\n\t\tScene scene = mainWindow.getScene();//grabs the scene from the window that initialized this event, required for file selector\n\t\tif (scene != null) {\n\t\t\tWindow window = scene.getWindow();\n\t\t\tif (window != null) {\n\n\t\t\t\tFile file = fileChooser.showOpenDialog(window);\n\t\t\t\tif (file != null) {\n\n\t\t\t\t\tString filePath = file.getAbsolutePath();\n\n\n\t\t\t\t\tNodeController.getNodeController().clear();//wipe all current nodes for new nodes to be generated\n\n\t\t\t\t\tConfigFile.readFile(filePath);//generates the controller with the config file\n\t\t\t\t\trefreshAll();\n\t\t\t}\n\t\t}\n\n\t\t}\n\n\t}", "public native static int MFCL_Connect(long hr,byte tagType,byte[]uid/* 4 bytes */,Long ht);", "public void run() {\n try {\n Class pcscterminal\n = Class.forName(\"sun.security.smartcardio.PCSCTerminals\");\n Field contextId = pcscterminal.getDeclaredField(\"contextId\");\n contextId.setAccessible(true);\n\n if (contextId.getLong(pcscterminal) != 0L) {\n Class pcsc\n = Class.forName(\"sun.security.smartcardio.PCSC\");\n\n Method SCardEstablishContext = pcsc.getDeclaredMethod(\n \"SCardEstablishContext\", new Class[]{Integer.TYPE});\n SCardEstablishContext.setAccessible(true);\n\n Field SCARD_SCOPE_USER\n = pcsc.getDeclaredField(\"SCARD_SCOPE_USER\");\n SCARD_SCOPE_USER.setAccessible(true);\n\n long newId = ((Long) SCardEstablishContext.invoke(pcsc, new Object[]{Integer.valueOf(SCARD_SCOPE_USER.getInt(pcsc))})).longValue();\n contextId.setLong(pcscterminal, newId);\n }\n } catch (Exception ex) {\n }\n ///////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n TerminalFactory factory = null;\n List<CardTerminal> terminals = null;\n try {\n factory = TerminalFactory.getDefault();\n\n terminals = factory.terminals().list();\n } catch (Exception ex) { //\n Logger.getLogger(NFC_Test.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n if (factory != null && factory.terminals() != null && terminals\n != null && terminals.size() > 0) {\n try {\n CardTerminal terminal = terminals.get(0);\n\n if (terminal != null) {\n\n System.out.println(terminal);\n if (terminal.isCardPresent()) {\n System.out.println(\"Card|\"+terminal.getName()+\"|\"+terminal.hashCode()+\"|\");\n } else {\n System.out.println(\"No Card\");\n }\n\n } else {\n System.out.println(\"No terminal\");\n }\n\n terminal = null;\n } catch (Exception e) {\n Logger.getLogger(NFC_Test.class.getName()).log(Level.SEVERE, null, e);\n }\n factory = null;\n\n terminals = null;\n\n Runtime.getRuntime().gc();\n\n } else {\n System.out.println(\"No terminal\");\n }\n\n }", "public void clawOpen(){\n claw.setPosition(0.1);\n }" ]
[ "0.62752354", "0.5885775", "0.54666495", "0.5398473", "0.5398473", "0.5398473", "0.5345509", "0.53031075", "0.5281772", "0.5224259", "0.520876", "0.52037823", "0.51673216", "0.51103103", "0.5110143", "0.5081874", "0.5081874", "0.5055645", "0.50547415", "0.50547415", "0.5050179", "0.5013775", "0.50002456", "0.49838364", "0.49465767", "0.4919709", "0.4894116", "0.4885607", "0.4884856", "0.4872517", "0.4851954", "0.4845748", "0.48341784", "0.48017496", "0.47986594", "0.47948104", "0.47948104", "0.4788772", "0.4778203", "0.47630188", "0.47565195", "0.4728496", "0.47193685", "0.4719224", "0.47087923", "0.4706537", "0.47042245", "0.47023222", "0.46964484", "0.46949413", "0.46897134", "0.4680193", "0.46754336", "0.46726355", "0.4660041", "0.46568257", "0.4649937", "0.4644598", "0.4644335", "0.4626989", "0.45986512", "0.45912945", "0.4588342", "0.45874316", "0.4575288", "0.45684487", "0.45681822", "0.45584175", "0.45477456", "0.4538883", "0.45378137", "0.45347446", "0.45300907", "0.4523912", "0.45176798", "0.451709", "0.45038158", "0.44984835", "0.44923127", "0.4490346", "0.44825497", "0.44783884", "0.44773686", "0.44753438", "0.44696394", "0.44690555", "0.44678935", "0.4461011", "0.44609064", "0.44582596", "0.44570607", "0.4455267", "0.44504645", "0.44476867", "0.44425794", "0.44413343", "0.4438463", "0.44370794", "0.44352046", "0.44328687" ]
0.7247586
0
ch340 is or not open.
public static boolean isIsOpenDeviceCH340() { return isOpenDeviceCH340; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void openCH340(int length) {\n int ret_val = driver.ResumeUsbList();\n YXYCLog.d(TAG, ret_val + \"\");\n // ResumeUsbList方法用于枚举CH34X设备以及打开相关设备\n if (ret_val == -1) {\n YXYCLog.d(TAG, ret_val + \"Failed to open device!\");\n driver.CloseDevice();\n } else if (ret_val == 0) {\n if (!driver.UartInit()) { //对串口设备进行初始化操作\n YXYCLog.d(TAG, ret_val + \"Failed device initialization!\");\n YXYCLog.d(TAG, ret_val + \"Failed to open device!\");\n return;\n }\n YXYCLog.d(TAG, ret_val + \"Open device successfully!\");\n if (!isOpenDeviceCH340) {\n isOpenDeviceCH340 = true;\n configParameters(length);//配置ch340的参数、需要先配置参数\n }\n } else {\n YXYCLog.d(TAG, \"The phone couldn't find the device!\");\n }\n }", "public boolean isOpen()\r\n\t{\r\n\t return (fd != null);\r\n\t}", "public boolean isOpen(){\n\t\treturn this.channel != null;\n\t}", "private static void initCH340Driver(int length) {\n CH340Driver.initCH340(sContext, length);\n }", "private boolean checkOpen(boolean recordException) {\n/* 650 */ if (!isOpen()) {\n/* 651 */ if (recordException) {\n/* 652 */ recordException(new ClosedChannelException());\n/* */ }\n/* 654 */ return false;\n/* */ } \n/* */ \n/* 657 */ return true;\n/* */ }", "private static boolean isChannelOpen(int channelNo) {\n return (channelNo != Channels.CHN_NULL) &&\n TreatmentApplication.getSharedPreferences().getBoolean(Channels.KEY_CHN_IS_OPEN_PREFIX + channelNo, false);\n }", "public void openReader(){\r\n handle = -1;\r\n try {\r\n cardReader = new ACR120U();\r\n } catch (java.lang.UnsatisfiedLinkError e) {\r\n e.printStackTrace();\r\n System.err.println(\"Are you sure the DLL is installed???\");\r\n message = \"DLL Installation problem.\";\r\n return;\r\n }\r\n handle = cardReader.open(ACR120U.ACR120_USB1); \r\n if (handle < 0){\r\n //message = \"Error opening reader [port may be in use or reader not in binary mode]\";\r\n message = \"No reader found\";\r\n System.err.println(message);\r\n return;\r\n }\r\n message = \"Device opened.\";\r\n }", "boolean isOpened();", "public abstract void open(CaptchalogueCard card, OpenReason reason);", "boolean open();", "private static boolean openChanalyzer(App app) throws Exception {\n\r\n boolean appOpened = false;\r\n try {\r\n\r\n\r\n while (!appOpened) {\r\n\r\n app.open(\"Chanalyzer.exe\");\r\n app.focus(\"Chanalyzer.exe\");\r\n sleep(10000);\r\n if (app.isRunning())\r\n appOpened = true;\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return appOpened;\r\n }", "@Override\n\tpublic boolean get51CHStatus()\n\t{\n\t\treturn false;\n\t}", "public boolean openPort() {\n comPort.openPort();\r\n return comPort.isOpen();\r\n }", "protected void implOpen() throws LineUnavailableException {\n/* 161 */ this.id = nOpen(getMixerIndex());\n/* */ }", "boolean isOpened() throws Exception;", "@Override\n public boolean isopen( )\n {\n return logfile != null && out != null;\n }", "public boolean isOpen() {\n return channel.isOpen();\n }", "public void readChannel() {\n this.chStored = \"\";\n try {\n java.io.FileReader chReader = new java.io.FileReader(chFile);\n while (chReader.ready()) {\n this.chStored = this.chStored + chReader.read();\n }\n chReader.close();\n } catch (FileNotFoundException ex) {\n JTVProg.logPrint(this, 0, \"файл канала [\" + this.chName + \"] не найден\");\n } catch (IOException ex) {\n JTVProg.logPrint(this, 0, \"ошибка чтения файла канала [\" + this.chName + \"]\");\n }\n }", "public boolean IsOpen() {\r\n return GoodOpen;\r\n }", "public boolean open() {\n\t\treturn open(false);\n\t}", "public boolean isInputPortOpen(int portNumber) { throw new RuntimeException(\"Stub!\"); }", "public void checkOpen() throws BadDescriptorException {\n if (!isOpen()) {\n throw new BadDescriptorException();\n }\n }", "private void isOpen() throws IOException {\r\n if(fd<0) {\r\n throw new IOException(\"Watchdog is not open yet\");\r\n }\r\n }", "public boolean isFileOpened() {\r\n \t\tif (curFile == null)\r\n \t\t\treturn false;\r\n \t\telse\r\n \t\t\treturn true;\r\n \t}", "public synchronized boolean isOpen() {\n return randomAccessFile != null;\n }", "public boolean isOpened() {\n return false;\n }", "private void checkOpen() {\n if (!isOpen()) {\n throw new IllegalStateException(\"not open\");\n }\n }", "public boolean isOpened(){\n return chestProgressLevel==1;\n }", "protected abstract void handleOpenChannel(int channelNo,int frameValue);", "public boolean open() {\n\n return true;\n }", "protected final void ensureOpen() {\n/* 664 */ if (!checkOpen(true)) {\n/* 665 */ checkException();\n/* */ }\n/* */ }", "public final boolean mo20678Cw() {\n AppMethodBeat.m2504i(113813);\n boolean handleMessage = C37665i.this.chC.handleMessage();\n AppMethodBeat.m2505o(113813);\n return handleMessage;\n }", "boolean isOpen();", "boolean isOpen();", "public boolean getOpen()\n\t{\n\t\treturn getBooleanIOValue(\"Open\", true);\n\t}", "public boolean isOpened() {\n/* 262 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean isOpened() {\r\n return opened != null;\r\n }", "public int open(String filename)\n {\n return open(filename, i_hdl); \n }", "public void open() {\r\n\t}", "public void open(){\n \ttriggerTimer.reset();\n \tisClosed = false;\n \tClawAct.set(false);\n\t\tRobot.oi.armRumble(RUMBLE_DURATION);\n }", "private boolean isOpened() {\n if (mIpcChannel != null && mIpcChannel.isOpened()) {\n return true;\n }\n\n return false;\n }", "public boolean isOpen() {\n\t\treturn luaState != 0;\n\t}", "private void m76765c() {\n try {\n this.f61649f = this.f61646c.getStreamVolume(3);\n } catch (NullPointerException e) {\n C6921a.m21559a((Throwable) e);\n this.f61644a = true;\n }\n }", "@Override\r\n\tpublic boolean isOpen() {\r\n\t\t//\r\n\t\treturn this.socket.isOpen();\r\n\t}", "public void open() {\n\t}", "public void openUsbDevice() {\n tryGetUsbPermission();\n }", "void open();", "void open();", "void open();", "public boolean isOpen() {\n return mRbc.isOpen();\n }", "public boolean isOpened()\n {\n \n boolean retVal = isOpened_0(nativeObj);\n \n return retVal;\n }", "public void check_openfile_window_Presence() throws InterruptedException {\r\n\t\tdriver.switchTo().activeElement();\r\n\t\tWebElement openfile_window = driver.findElementByName(\"How do you want to open this file?\");\r\n\t\tThread.sleep(3000);\r\n\t\t// return IsElementVisibleStatus(openfile_window);\r\n\t\tWebElement openfile_Adobe = driver.findElementByName(\"Adobe Reader\");\r\n\t\tclickOn(openfile_Adobe);\r\n\t\tWebElement ConfirmButton_ok = driver.findElementByAccessibilityId(\"ConfirmButton\");\r\n\t\tclickOn(ConfirmButton_ok);\r\n\t\tdriver.switchTo().activeElement();\r\n\t}", "public void mo47236p() {\n if (this.f44207T) {\n throw new IllegalStateException(\"Connection is already open\");\n }\n }", "public boolean isOpen() {\n\treturn open;\n }", "public void Open() { // in {FF} Arduino\r\n boolean prio = GoodOpen;\r\n int nx, bitz = 0;\r\n if (SpeakEasy) System.out.println(\"F%%F/Open, (pre: GoodOpen = \"\r\n + GoodOpen + \")\");\r\n if (prio) {\r\n if (SpeakEasy) System.out.println(\"... \" + CommPortNo + \" is already open\");\r\n return;\r\n } else try {\r\n GoodOpen = surrealPort.openPort();\r\n surrealPort.setParams(57600, 8, 1, 0);\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n if (SpeakEasy) {\r\n if (GoodOpen) System.out.println(\"... \" + CommPortNo + \" is now open\");\r\n else System.out.println(\"... \" + CommPortNo + \" failed to open\");\r\n }\r\n if (GoodOpen) try {\r\n bitz = 8; // (for log)\r\n // surrealPort.addEventListener(theInLisner); // didn't work, so do my own\r\n FrootLoop = new EatCereal(); // (does not start it..)\r\n if (FrootLoop != null) {\r\n bitz = 12;\r\n EatOften = new Timer(0, FrootLoop);\r\n if (EatOften == null) bitz = 28;\r\n }\r\n if (digitalInputData == null) {\r\n digitalInputData = new int[MAX_DATA_BYTES];\r\n analogInputData = new int[MAX_DATA_BYTES];\r\n }\r\n if (ArduPiModes == null) {\r\n bitz = bitz + 2;\r\n ArduPiModes = new int[16];\r\n }\r\n for (nx = 0; nx <= 15; nx++) ArduPiModes[nx] = 0;\r\n if (AutoStartInputs) {\r\n bitz++;\r\n Thread.sleep(1000); // delay 8 seconds for Arduino reboot\r\n for (nx = 0; nx <= 2; nx++)\r\n OpenPinInput(nx, Arduino.REPORT_ANALOG); // = 0xC0 (192)\r\n for (nx = 0; nx <= 1; nx++)\r\n OpenPinInput(nx, Arduino.REPORT_DIGITAL);\r\n } // = 0xD0 (208)\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n System.exit(-1);\r\n }\r\n if (SpeakEasy) System.out.println(\" (Ardu/Op) => GoodOpen = \" + GoodOpen\r\n + \" (\" + bitz + \")\");\r\n }", "@Override\n\tpublic boolean isFileOpen(String fileName) \n\t{\n\t\treturn false;\n\t}", "boolean hasChannel();", "boolean hasChannel();", "public void fechar() {\n\t\tif(this.isOpen == true) {\n\t\t\tthis.isOpen = false;\n\t\t} else {\n\t\t\tSystem.out.println(\"Mateus, você é burro! A porta já está fechada!\");\n\t\t}\n\t}", "public void mo6082b() {\n if (m14898d()) {\n C3720a.this.StartBrowser();\n }\n }", "public boolean isCharacterDevice() {\n return linkFlag == LF_CHR;\n }", "public void opened();", "private void openHand() {\r\n\t\tif (!first) {\r\n\t\t\thand.forward();\r\n\t\t\twhile (Math.abs(hand.getTachoCount() - originalHandPosition + 5) > 5) {\r\n\t\t\t}\r\n\t\t\thand.stop();\r\n\t\t} else {\r\n\t\t\tfirst = false;\r\n\t\t}\r\n\t}", "public boolean isOpen() {\r\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void open() {\n\t\t\n\t}", "public boolean mBTOpen1() {\n if (oBTadapter == null){ //Prepare BT\n return mBTInit1();\n }else if (oBTadapter.isEnabled()) { //BT port is ready , Running return\n return true;\n }else { //Try to open BT port\n mMsgLog(\"Turning on the Bluetooth\");\n isOpenedByMe = true;\n oBTadapter.enable(); //Turn on bluetooth if not already active\n mSleep(1000);\n if (oBTadapter.isEnabled()) {\n return true;\n }\n }\n return false;\n }", "private boolean isBtConnected(){\n \treturn false;\n }", "public boolean mo133103h() {\n return mo133105i() == AbstractC32931b.EnumC32932a.CLOSED;\n }", "public void open()\n {\n }", "protected synchronized boolean isSockOpen(){\n\t\ttry{\n\t\t\tif(out.checkError()){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "@Override\n boolean isOpen() throws RuntimeException;", "@Override\n\tpublic int open(int x) {\n\t\treturn 0;\n\t}", "public void opened(LLRPChannelOpenedEvent event);", "public boolean isOpen();", "public boolean isOpen();", "private final boolean isOpen()\n {\n return !closed;\n }", "void open() throws ToyPadException;", "public boolean mo32341b() {\n return this.f20635d != null;\n }", "public final boolean mo29585a() {\n Intent intent = new Intent(\"android.intent.action.DIAL\");\n intent.setData(Uri.parse(\"tel:\"));\n return m24749a(intent);\n }", "public void open() {\n isOpen = true;\n }", "@Override\n\tpublic boolean isOpen() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isOpen() {\n\t\treturn false;\n\t}", "private boolean scanFrameOpen() {\n\n // scan until we find the three sequential opens...\n int openCount = 0;\n boolean done = false;\n while( !done & (openCount < 3) ) {\n if( OPEN == buffer.get() ) {\n openCount++;\n if( openCount == 1 ) buffer.mark(); // remember where this started, in case we have to rewind to here...\n }\n else openCount = 0;\n done = !buffer.hasRemaining();\n }\n\n // if we ran out of characters, go back to our marked position (if we have one) so we can rescan it after bytes are added...\n if( done ) if( openCount > 0 ) buffer.reset();\n\n return done;\n }", "public abstract void open();", "public abstract void open();", "private final synchronized boolean m60360c() {\n return this.f49750a.getAll().isEmpty();\n }", "@Override\n public boolean isOpen() {\n return true;\n }", "protected void open()\n {\n }", "public boolean open() {\n if (isOpen()) {\n print(\"Port already open\");\n return true;\n }\n print(\"Opening port \" + portName);\n try {\n CommPortIdentifier cpi = CommPortIdentifier\n .getPortIdentifier(portName);\n CommPort cp = cpi.open(this.getClass().getName(), 2000);\n if (cp instanceof SerialPort) {\n port = (SerialPort) cp;\n port.setFlowControlMode(SerialPort.FLOWCONTROL_NONE);\n port.setDTR(true);\n port.setRTS(true);\n port.setSerialPortParams(baudRate, dataBits, stopBits, parity);\n port.setDTR(true);\n port.setRTS(true);\n in = port.getInputStream();\n // (new Thread(new SerialReader(in))).start();\n out = port.getOutputStream();\n print(\"Opened port \" + portName);\n return true;\n }\n port = null;\n print(\"Port \" + portName + \" is not a COM port!\");\n } catch (NoSuchPortException e) {\n port = null;\n print(\"Port \" + portName + \" does not exist!\");\n } catch (PortInUseException e) {\n port = null;\n print(\"Port \" + portName + \" is in use!\");\n } catch (UnsupportedCommOperationException e) {\n port.close();\n port = null;\n print(\"Could not open \" + portName + \" with correct settings.\");\n } catch (IOException e) {\n port = null;\n print(\"Could not open \" + portName + \" io streams.\");\n }\n return false;\n }", "@Override\n\tpublic boolean isOpen() {\n\t\treturn true;\n\t}", "boolean open() {\n if (handle != 0) {\n throw new InternalError(\"Native library \" + name + \" has been loaded\");\n }\n return load0(this, name);\n }", "private static int isSeenFamilyChar(char ch){\n if (ch >= 0x633 && ch <= 0x636){\n return 1;\n }else {\n return 0;\n }\n }", "private void open()\n\t{\n\t\tbuffer = new LinkedList<>();\n\t\tbuffer.add(decoratee.getCurrentFrameMessage());\n\t\tbufferZeroFrame = 0;\n\t\tcurrentFrame = 0;\n\t}", "private void m76770h() {\n try {\n this.f61646c.setStreamVolume(3, this.f61649f, 8);\n } catch (SecurityException e) {\n C6921a.m21559a((Throwable) e);\n }\n }", "public void react() {\n \t\t//door.setOpen(true);\n \t\tSystem.out.println(\"open go through\");\n }", "public void iOpenLockedSourceAndChannel() {\n\t\t// TODO open locked source or Channel.\n\t\tmTvOutput = mTVInputManager.getDefaultOutput();\n\t\tmTv.unblock(mTvOutput.getName());\n\t}", "private void m7280d() {\n if (this.f5512c == null) {\n try {\n this.f5512c = new C0036q(this.f5510a);\n } catch (IOException e) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Could not open log file: \");\n sb.append(this.f5510a);\n C0135c.m449h().mo280e(\"CrashlyticsCore\", sb.toString(), e);\n }\n }\n }", "public boolean isOpened() {\n\t\treturn mCurrentState == STATE.OPENED;\n\t}", "public void Close() { // in {FF} Arduino\r\n if (SpeakEasy) System.out.println(\"F%%F/Close..\"); // SpeakEasy=true\r\n if (GoodOpen) try {\r\n surrealPort.closePort();\r\n DoMore = null;\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n GoodOpen = false;\r\n }", "public void open() throws LineUnavailableException {\n/* 301 */ synchronized (this.mixer) {\n/* */ \n/* 303 */ if (!isOpen()) {\n/* */ \n/* */ \n/* 306 */ this.mixer.open(this);\n/* */ \n/* */ try {\n/* 309 */ implOpen();\n/* */ \n/* */ \n/* 312 */ setOpen(true);\n/* 313 */ } catch (LineUnavailableException lineUnavailableException) {\n/* */ \n/* 315 */ this.mixer.close(this);\n/* 316 */ throw lineUnavailableException;\n/* */ } \n/* */ } \n/* */ } \n/* */ }" ]
[ "0.6897726", "0.6097119", "0.5765175", "0.5692737", "0.56795615", "0.56403446", "0.56243604", "0.56107557", "0.56002444", "0.55562997", "0.55394125", "0.5537859", "0.54878515", "0.5479412", "0.54580754", "0.53609943", "0.5355944", "0.5353453", "0.53503835", "0.53116095", "0.5291527", "0.528691", "0.5275483", "0.5272591", "0.5243551", "0.5232602", "0.5230499", "0.52209795", "0.5204697", "0.52033913", "0.51985466", "0.5179522", "0.5159856", "0.5159856", "0.51410264", "0.5123384", "0.5106915", "0.51054317", "0.51043856", "0.5093571", "0.50839406", "0.50658834", "0.5061269", "0.50555015", "0.5054872", "0.50478935", "0.50447834", "0.50447834", "0.50447834", "0.50369364", "0.5028192", "0.50222987", "0.5020618", "0.50182843", "0.5016594", "0.5014863", "0.500965", "0.500965", "0.5007108", "0.50032824", "0.49904016", "0.49872985", "0.4986443", "0.49801037", "0.497897", "0.49770993", "0.49740916", "0.49685895", "0.49684376", "0.4963405", "0.4942737", "0.49316472", "0.49298114", "0.49276152", "0.49276152", "0.4926148", "0.4919", "0.4917437", "0.4904889", "0.4902364", "0.48958138", "0.48958138", "0.48921493", "0.48907125", "0.48907125", "0.4888505", "0.48862153", "0.48853916", "0.48833475", "0.48801172", "0.48756713", "0.487233", "0.4870907", "0.48680592", "0.486556", "0.48651698", "0.48647165", "0.486261", "0.48555815", "0.48549926" ]
0.78019106
0
end main end JDBCExample
private static byte[] mergeImageAndText(BufferedImage im, String name, String event, Point pointName, Point pointEvent) throws IOException { Graphics2D g2 = im.createGraphics(); //graohics obj banaya to draw System.out.println(name); g2.setFont(new Font("TimesRoman", Font.BOLD,28)); g2.setColor(Color.BLACK); g2.drawString(name, pointName.x, pointName.y);//write text g2.drawString(event, pointEvent.x, pointEvent.y);//write text ByteArrayOutputStream baos = new ByteArrayOutputStream(); ImageIO.write(im, "jpg", baos); return baos.toByteArray(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws SQLException {\n\t\t\r\n\t}", "public static void main(String args[]) throws SQLException {\n }", "public static void main(String[] args) {\n String jdbcDriver = \"com.mysql.jdbc.Driver\";\r\n String databaseUri = \"jdbc:mysql://localhost:8889/javaDemoDB?\"\r\n\t\t\t\t\t\t\t+ \"user=root&password=root\";\r\n\r\n // Load JDBC driver.\r\n try {\r\n Class.forName(jdbcDriver);\r\n } catch (ClassNotFoundException e) {\r\n System.out.println(\"Error loading JDBC driver: \" + e);\r\n }\r\n\r\n // Connect to a database.\r\n Connection cn = null;\r\n try {\r\n cn = DriverManager.getConnection(databaseUri);\r\n } catch (SQLException e) {\r\n System.out.println(\"Error connecting to a database: \" + e);\r\n }\r\n\r\n // Get database metadata.\r\n try {\r\n DatabaseMetaData dbmd = cn.getMetaData();\r\n\r\n System.out.println(\"Database product name: \" + dbmd.getDatabaseProductName());\r\n System.out.println(\"Driver name: \" + dbmd.getDriverName());\r\n System.out.println(\"SQL keywords supported: \" + dbmd.getSQLKeywords());\r\n System.out.println(\"Supports transactions? \" + dbmd.supportsTransactions());\r\n } catch (SQLException e) {\r\n System.out.println(\"Error getting database metadata: \" + e);\r\n }\r\n }", "public static void main(String[] args) throws SQLException {\n\t}", "public static void main(String[] args) {\n\n jdbcConnection(7369);\n\n }", "public static void main(String[] args) throws SQLException {\n\t\t// 2. Create a Statement\n\t\t// 3. Execute query\n\t\t// 4. Process results (do validations)\n\t\t// 5. Close connections\n\t\t\n\t\t// Create Connection with our database\n\t\t// dbURl, dbUsername, dbPassword\n\t\t\n\t\t// HostName (ipAddress)\n\t\t// dbType\n\t\t// portNumber\n\t\t// dbBaseName\n\t\t\n\t\t// jdbc:jdbcType://ipAddress:portNumber/dbName\n\t\t// String dbUrl=\"jdbc:mysql://18.232.148.34:3306/syntaxhrm_mysql\";\n\t\t// config utulity file to read dbConfiguration.properties file\n\t\t\n\t\t\n\t\t// 1. Connect to database\n\t\t\n\t\tString url=ConfigUtility.getProperty(DbConstants.DB_CONFIG_FILEPATH, \"dbUrl\");\n\t\tString user=ConfigUtility.getProperty(DbConstants.DB_CONFIG_FILEPATH, \"dbUsername\");\n\t\tString password=ConfigUtility.getProperty(DbConstants.DB_CONFIG_FILEPATH, \"dbPassword\");\n\t\t\n\t\tConnection connection=DriverManager.getConnection(url, user, password);\n\t\t\n\t\tDatabaseMetaData dbMetaData=connection.getMetaData();\n\t\t\n\t\tString dbUrl=dbMetaData.getURL();\n\t\tSystem.out.println(dbUrl);\n\t\t\n\t\tString dbUsername=dbMetaData.getUserName();\n\t\tSystem.out.println(dbUsername);\n\t\t\n\t\tString dbProductData=dbMetaData.getDatabaseProductVersion();\n\t\tSystem.out.println(dbProductData);\n\t\t\n\t\tString dbDriverName=dbMetaData.getDriverName();\n\t\tSystem.out.println(dbDriverName);\n\t\t\n\t\t// 2. Create a Statement\n\t\tStatement statement=connection.createStatement();\n\t\t\n\t\t// 3. Execute query save results in ResultSet object\n\t\t\n\t\tResultSet rSet=statement.executeQuery(\"select * from ohrm_job_title;\");\n\t\t\n\t\tResultSetMetaData rsMetaData=rSet.getMetaData();\n\t\t\n\t\tint colCount=rsMetaData.getColumnCount();\n\t\tSystem.out.println(\"Number of Columns : \"+colCount);\n\t\t\n\t\trsMetaData.getColumnName(1);\n\t\t\n\t\tfor(int i=1; i<=colCount; i++) {\n\t\t\tSystem.out.println(\"Column Name \"+(i)+\" : \"+rsMetaData.getColumnName(i));\n\t\t}\n\t\t\t\n\t\t// 4. Process results (print results)\n\t\tSystem.out.println(\"Printing results\");\n\t\t\n\t\t// next()\n\t\t// getString()\n\t\t\n\t\twhile(rSet.next()) {\n\t\t\t\n\t\t\tString id=rSet.getString(1);\n\t\t\tString jobTitle=rSet.getString(\"job_title\");\n\t\t\tString jobDestcription=rSet.getString(\"job_description\");\t\t\t\n\t\t\tSystem.out.println(id+\" \"+jobTitle+\" \"+jobDestcription);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// 5. Close connections in reverse order\n\t\t\n\t\trSet.close();\n\t\tstatement.close();\n\t\tconnection.close();\n\t\t\n\t}", "public static void main(String[] args) {\n Connection conn = null;\n Statement s;\n ResultSet rs = null;\n String dbName = \"myDB\";\n String url = protocol + dbName + \";create=true\";\n\n try {\n // create a connection object\n conn = DriverManager.getConnection(url);\n // somewhere to put our SQL statements\n s = conn.createStatement();\n // declare some SQL statements\n String createTable = \"CREATE TABLE MYTABLE ( ID INT PRIMARY KEY, NAME VARCHAR(12) )\";\n String insertData = \"INSERT INTO MYTABLE VALUES (10, 'TEN'), (20, 'TWENTY'), (30, 'THIRTY')\";\n String readData = \"SELECT * FROM MYTABLE\";\n String dropTable = \"DROP TABLE MYTABLE\";\n\n // execute SQL statements\n s.execute(createTable);\n s.execute(insertData);\n rs = s.executeQuery(readData);\n while (rs.next()){\n // get values as int, string etc.\n System.out.println(rs.getInt(1) + \"\\t\" + rs.getString(2));\n }\n\n // drop the table\n s.execute(dropTable);\n\n }\n catch(SQLException sqle) {\n System.out.println(sqle);\n }\n finally {\n\n }\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n\r\n String driver = \"mysql\";\r\n String dataBaseAddress = \"localhost\";\r\n String dataBaseName = \"digital_innovation_one\";\r\n String user = \"root\";\r\n String password = \"password\";\r\n\r\n StringBuilder sb = new StringBuilder(\"jdbc:\")\r\n .append(driver).append(\"://\")\r\n .append(dataBaseAddress).append(\"/\")\r\n .append(dataBaseName);\r\n\r\n String urlConnection = sb.toString();\r\n\r\n //Neste try/catch o finally é executado automaticamente fechando a conexão se necessário\r\n //Trial with resources\r\n try (Connection conn = DriverManager.getConnection(urlConnection, \"root\", \"password\")) {\r\n System.out.println(\"Conectado com o digital_innovation_one\");\r\n } catch (SQLException throwables) {\r\n System.out.println(\"Falha ao conectar com o digital_innovation_one\");\r\n }\r\n }", "public static void main(String[] args) {\n Connection conection = createConnection(\"people.db\");\n \n try {\n conection.createStatement().executeQuery(\"SELECT * FROM people\");\n \n } catch (SQLException ex) {\n System.out.println(\"PRINT AN ERROR HERE\");\n }\n}", "public static void main(String[] args) {\n\t\tString jdbcDriver = \"com.mysql.jdbc.Driver\";\r\n\t\tString databaseUri = \"jdbc:mysql://localhost:8889/javaDemoDB?\"\r\n\t\t\t\t+ \"user=root&password=root\";\r\n\r\n\t\t// Load JDBC driver.\r\n\t\ttry {\r\n\t\t\tClass.forName(jdbcDriver);\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tSystem.out.println(\"Error loading JDBC driver: \" + e);\r\n\t\t}\r\n\r\n\t\t// Connect to a database.\r\n\t\tConnection cn = null;\r\n\t\ttry {\r\n\t\t\tcn = DriverManager.getConnection(databaseUri);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Error connecting to a database: \" + e);\r\n\t\t}\r\n\r\n\t\t// Execute some prepared statements.\r\n\t\ttry {\r\n\t\t\t// Create a prepared statement, to do some INSERTs\r\n\t\t\tPreparedStatement ps = cn\r\n\t\t\t\t\t.prepareStatement(\"INSERT INTO Employees (Name, Salary, Region) VALUES (?, ?, ?)\");\r\n\r\n\t\t\t// Insert some rows\r\n\t\t\tps.setString(1, \"Thomas\");\r\n\t\t\tps.setBigDecimal(2, new BigDecimal(10000));\r\n\t\t\tps.setString(3, \"Wales\");\r\n\t\t\tps.executeUpdate();\r\n\r\n\t\t\tps.setString(1, \"Emily\");\r\n\t\t\tps.setBigDecimal(2, new BigDecimal(20000));\r\n\t\t\tps.setString(3, \"Wales\");\r\n\t\t\tps.executeUpdate();\r\n\r\n\t\t\tps.setString(1, \"Laura\");\r\n\t\t\tps.setBigDecimal(2, new BigDecimal(50000));\r\n\t\t\tps.setString(3, \"London\");\r\n\t\t\tps.executeUpdate();\r\n\r\n\t\t\t// Create a prepared statement, to do some UPDATEs\r\n\t\t\tps = cn.prepareStatement(\"UPDATE Employees SET Salary = Salary * ? WHERE Region = ?\");\r\n\r\n\t\t\tps.setDouble(1, 1.25);\r\n\t\t\tps.setString(2, \"Wales\");\r\n\t\t\tps.executeUpdate();\r\n\r\n\t\t\tps.setDouble(1, 1.10);\r\n\t\t\tps.setString(2, \"London\");\r\n\t\t\tps.executeUpdate();\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out\r\n\t\t\t\t\t.println(\"Error executing INSERT, DELETE, or UPDATE statement: \"\r\n\t\t\t\t\t\t\t+ e);\r\n\t\t}\r\n\r\n\t\t// Display the new contents of the Employees table\r\n\t\tResultSet rsEmps = null;\r\n\t\ttry {\r\n\t\t\tStatement st = cn.createStatement();\r\n\t\t\trsEmps = st\r\n\t\t\t\t\t.executeQuery(\"SELECT Name, Salary, Region FROM Employees\");\r\n\r\n\t\t\twhile (rsEmps.next() != false) {\r\n\t\t\t\tString name = rsEmps.getString(\"Name\");\r\n\t\t\t\tBigDecimal salary = rsEmps.getBigDecimal(\"Salary\");\r\n\t\t\t\tString region = rsEmps.getString(\"Region\");\r\n\r\n\t\t\t\tSystem.out.println(\"Name: \" + name + \"\\tsalary: \" + salary\r\n\t\t\t\t\t\t+ \"\\tRegion: \" + region);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Error executing SELECT statement: \" + e);\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n try (Connection connection = ConnectorDB.getConnection();\n Statement statement = connection.createStatement()) {\n dropTablesFromDatabase(statement);\n createTablesInDatabase(statement);\n addObjectsInList();\n insertListsInDataBase();\n } catch (SQLException e) {\n System.out.println(\"Error connection/sql query\" + e);\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws SQLException {\n\t\tConnection con = getCon();\r\n\t\tStatement stmt = con.createStatement();\r\n\t\tMap<String, String> maps = new HashMap<String, String>();\r\n\t\tmaps.put(\"word\", \"String\");\r\n\t\tmaps.put(\"user\", \"String\");\r\n\t\tmaps.put(\"tfidf\", \"String\");\r\n//\t\tdropTable(con, \"hivetest324\");\r\n//\t\tSystem.out.println(createTable(con, \"hivetest324\", maps));\r\n\t\tString sql = \"select num from mytest\";\r\n\t\tselectTable(con, sql);\r\n\t\t\r\n//\t\tsql = \"load data local inpath 'E:/work/tfidf' overwrite into table tfidf\";\r\n//\t\tSystem.out.println(loadData(con, sql));\r\n\t\t\r\n//\t\tsql = \"show tables\";\r\n//\t\tResultSet res = stmt.executeQuery(sql);\r\n//\t\twhile(res.next()){\r\n//\t\t\tSystem.out.println(res.getString(1));\r\n//\t\t}\r\n\t}", "public static void main(String[] args) throws SQLException {\n\t\t\r\n\t\tBatchDemo bd=new BatchDemo();\r\n\t\tbd.createConnection();\r\n\t\tbd.createBatch();\r\n\r\n\t}", "public static void main(String[] args) throws IOException, SQLException {\n Connection con = connect(\"jdbc:mysql://mysql1:3306/world?\" + \"user=root&password=example\");\n\n /**\n * END OF DATABASE CONNECTION CODE\n */\n\n /**\n * this list is used to store SQL queries\n */\n List<SQLquery> queries = updateQueryList();\n\n /**\n * this piece of code is used to run all available SQL queries\n */\n for (SQLquery query : queries) {\n System.out.println(query.name);\n System.out.println(query.sql);\n System.out.println(getQueryResult(query, con));\n }\n\n /**\n * at the end of main, close database connection\n */\n if (con != null)\n {\n try\n {\n // Close database connection\n con.close();\n }\n catch (Exception e)\n {\n System.out.println(\"Error closing connection to database\");\n }\n }\n\n }", "public static void main(String[] args) throws SQLException {\n String username = \"root\";\n String password = \"\";\n Connection connection = null;\n \n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tconnection=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/sqdl\",\"root\",\"\");\n System.out.println(\"Opened database successfully\");\n \n } catch (ClassNotFoundException e) {\n System.out.println(\"ERROR: Unable to load SQLServer JDBC Driver\");\n e.printStackTrace();\n return;\n }\n \n try {\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/sqdl\", username, password);\n } catch (SQLException e) {\n System.out.println(\"ERROR: Unable to establish a connection with the database!\");\n e.printStackTrace();\n return;\n }\n \n try {\n if (connection != null) {\n DatabaseMetaData metadata = connection.getMetaData();\n System.out.println(\"nList of Tables Available for 'dbo'...n\");\n System.out.format(\"%-15s %-10s %-20s %-10sn\", \"DATABASE\", \"SCHEMA\", \"TABLE NAME\", \"TYPE\");\n System.out.format(\"%-15s %-10s %-20s %-10sn\", \"-------------\", \"--------\", \"----------------\", \"-----\");\n ResultSet rs = metadata.getTables(\"sqdl\", \"aa\", \"%\", null);\n while (rs.next()) {\n System.out.format(\"%-15s %-10s %-20s %-10sn\", rs.getString(1), rs.getString(2), \n rs.getString(3), rs.getString(4));\n }\n \n } else {\n System.out.println(\"ERROR: Unable to make a database connection!\");\n }\n \n \n } catch (SQLException e) {\n e.printStackTrace();\n return;\n } finally {\n if (connection != null) connection.close();\n }\n }", "public static void main(String[] args) throws SQLException {\n\t\tDriver driverRef = new Driver();\n\t\t DriverManager.registerDriver(driverRef);\n\t\t /* step 2 : connect to data base */\n\t\t Connection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/projects\", \"root\", \"root\");\n\t\t \n\t\t /* step 3 : create SQL Query statement*/\n\t\t Statement stat = conn.createStatement();\n\t\t \n\t\t \n\t\t String query = \"select * from project\";\n\t\t \n\t\t /* step 4 : execute Query */\n\t\t ResultSet resut = stat.executeQuery(query);\n\t\t while (resut.next()) {\n\t\t\t\t\t\tSystem.out.println(resut.getString(1) + \"\\t\" +\n\t\t resut.getString(2) + \"\\t\"+\n\t\t\t\t\t\t\t\t resut.getString(3) + \"\\t\"+\n\t\t resut.getString(4) +\"\\t\"+\n\t\t\t\t\t\t\t\t resut.getString(5));\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t \n\t\t /* step 5 : close the connection*/\n\t\t conn.close();\n\n\t}", "public static void main(String[] args)\n\t\t throws SQLException, ClassNotFoundException {\n\t\t Class.forName(\"com.mysql.jdbc.Driver\");\n\t\t System.out.println(\"Driver loaded\");\n\n\t\t // Establish a connection\n\t\t Connection connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/mydb\", \"root\", \"zxyzxy\");\n\t\t System.out.println(\"Database connected\");\n\n\n\t\t // Create a statement\n\t\t Statement statement = ((java.sql.Connection) connection).createStatement();\n\n\t\t // Execute a statement\n\t\t int resultSet = statement.executeUpdate(\"\");\n\t\t //ResultSet resultSet = statement.executeQuery\n\t\t\t\t // \"insert into user values(\\\"zhangsan\\\",\\\"lisi\\\")\"\n\t\t \t\t//delete from user where name=\"zyx\"\n\t\t //select * from user;\n\n\t\t // Iterate through the result and print the student names\n\t\t //while (resultSet.next())\n\t\t // System.out.println(resultSet.getString(1)+\"\"+resultSet.getString(2));\n\n\t\t // Close the connection\n\t\t connection.close();\n\t\t \n\n\t\t }", "public static void main(String[] args) throws SQLException {\n\t\tPruebaConnOracle conecta = new PruebaConnOracle();\r\n\t\tconecta.getConexion();\r\n\t\tconecta.banner(); \r\n\t}", "public void connectionSql()\r\n { \r\n try{\r\n //STEP 2: Register JDBC driver\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n //STEP 3: Open a connection\r\n System.out.println(\"Connecting to database...\");\r\n conn = DriverManager.getConnection(DB_URL, USER, PASS);\r\n\r\n //STEP 4: Execute a query\r\n System.out.println(\"Creating database...\");\r\n stmt = conn.createStatement();\r\n \r\n String sql = \"CREATE DATABASE IF NOT EXISTS demo\";\r\n stmt.executeUpdate(sql);\r\n System.out.println(\"Database created successfully...\");\r\n \r\n stmt = conn.createStatement();\r\n String sqlSelect = \"USE demo;\";\r\n stmt.executeUpdate(sqlSelect);\r\n System.out.println(\"DATABASE IS SELECTED\");\r\n \r\n }catch(SQLException se){\r\n //Handle errors for JDBC\r\n se.printStackTrace();\r\n }catch(Exception e){\r\n //Handle errors for Class.forName\r\n e.printStackTrace();\r\n }\r\n /*\r\n finally{\r\n //finally block used to close resources\r\n try{\r\n if(stmt!=null)\r\n stmt.close();\r\n }catch(SQLException se2){\r\n }// nothing we can do\r\n try{\r\n if(conn!=null)\r\n conn.close();\r\n }\r\n catch(SQLException se)\r\n {\r\n se.printStackTrace();\r\n }//end finally try\r\n }//end try\r\n System.out.println(\"Goodbye!\");\r\n */\r\n}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\tConnection conn = null;\n\t\tStatement stmt = null;\n\t\tResultSet rs=null;\n\t\tint i=0;\n\t\tString sql=\"\";\n\t\t\n\t\t\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\t//STEP 3: Open a connection\n\t\tSystem.out.println(\"Connecting to database...\");\n\n\t\t\tconn = MySQLDatabaseConnect.getSqlConnection();\n\n\t\t\tSystem.out.println(conn.toString());\n\t\t\t//STEP 4: Execute a query\n\t\t\ttry {\n\t\t\t\tstmt = conn.createStatement();\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}\t\n\n\t\t\n\n\n\t\ttry{\n\t\t\t\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Creating statement...\");\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t sql = \"SELECT * from books\";\n\t\t\t\trs = stmt.executeQuery(sql);\n//\n\t\t\t\t//STEP 5: Extract data from result set\n\t\t\t\t while(rs.next()){\n\t\t\t\t // Retrieve by column name\n\t\t\t\t \t i++;\n\t\t\t\t \t if(i>26) break;\n\t\t\t\t String id = rs.getString(\"ISBN\");\n\t\t\t\t String age = rs.getString(\"Book_Title\");\n\t\t\t\t String first = rs.getString(\"Book_Author\");\n\t\t\t\t String last = rs.getString(\"Publication_Year\");\n\t\t\t\t String py = rs.getString(\"Publisher\");\n\t\t\t\t // Display values\n\t\t\t\t String s = rs.getString(\"Image_URL_S\");\n\t\t\t\t String m = rs.getString(\"Image_URL_m\");\n\t\t\t\t String l = rs.getString(\"Image_URL_l\");\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t System.out.print(\"ID:\" + id);\n\t\t\t\t System.out.print(\",Title: \" + age);\n\t\t\t\t System.out.print(\",Author: \" + first);\n\t\t\t\t System.out.print(\",Publication_Year: \" + last);\n\t\t\t\t System.out.print(\",Publisher: \" + py);\n\t\t\t\t System.out.print(\", Image_URL_S: \" + s);\n\t\t\t\t System.out.print(\", Image_URL_m: \" + m);\n\t\t\t\t System.out.println(\", Image_URL_l: \" + l);\n\t\t\t\t // System.out.println(\", Last: \" + last);\n\t\t\t\t }\n\n\t\t\t\t\n\n\t\t\t\t// STEP 6: Clean-up environment\n\n\t\t\t}\n\n\n\t\t\tcatch(SQLException se){\n\t\t\t\t//Handle errors for JDBC\n\t\t\t\t//System.out.println(i);\n\t\t\t\t\n\t\t\t\tse.printStackTrace();\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\t// Handle errors for Class.forName\n\t\t\t\te.printStackTrace();\n\t\t\t}\n//\t\t\tfinally{\n//\t\t\t\t//finally block used to close resources\n//\t\t\t\ttry{\n//\t\t\t\t\tif(stmt!=null)\n//\t\t\t\t\t\tstmt.close();\n//\t\t\t\t}catch(SQLException se2){\n//\t\t\t\t}// nothing we can do\n//\t\t\t\ttry{\n//\t\t\t\t\tif(conn!=null)\n//\t\t\t\t\t\tconn.close();\n//\t\t\t\t}catch(SQLException se){\n//\t\t\t\t\tse.printStackTrace();\n//\t\t\t\t}//end finally try\n//\t\t\t}//end try\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\ttry {\n\t\t\t//rs.close();\n\t\t\tSystem.out.println(\"closinng statement\");\n\t\t\tstmt.close();\n\t\t\tconn.close();\n\t\t\t//System.exit(0);\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\t\n\t\t\n//\t\tfor(String m:errors)\n//\t\t{\n//\t\t\tSystem.out.println(m);\n//\t\t}\n\t\tSystem.out.println(\"Goodbye! \"+i );\n\t}", "public static void main(String[] args) {\n Connection conn = null;\n Statement s;\n ResultSet rs = null;\n String dbName = \"myDB\";\n String url = protocol + dbName + \";create=true\";\n\n try {\n // create a connection object\n conn = DriverManager.getConnection(url);\n // somewhere to put our SQL statements\n s = conn.createStatement();\n // declare some SQL statements\n String createTable = \"CREATE TABLE IMAGETABLE \" +\n \"( ID INT PRIMARY KEY, \" +\n \"FILENAME VARCHAR(32), \" +\n \"PHOTOGRAPHER VARCHAR(32), \" +\n \"CATEGORY VARCHAR(32),\" +\n \"DESCRIPTION VARCHAR(32) )\";\n String insertData = \"INSERT INTO IMAGETABLE\" +\n \" VALUES \" +\n \" (1, 'animals01', 'Emily Kim', 'animals', 'some creature'),\" +\n \" (2, 'city02', 'Ada Long', 'city', 'some place'),\" +\n \" (3, 'people03', 'Fred Hoyle', 'people', 'some person')\";\n String readData = \"SELECT * FROM IMAGETABLE\";\n\n // execute SQL statements\n //s.execute(createTable);\n //s.execute(insertData);\n rs = s.executeQuery(readData);\n while (rs.next()){\n System.out.println(\"\" + rs.getInt(1)\n +\"\\t\"+rs.getString(2)\n +\"\\t\"+rs.getString(3)\n +\"\\t\"+rs.getString(4)\n );\n }\n }\n catch(SQLException sqle) {\n System.out.println(sqle);\n }\n finally {\n\n }\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"-------- MySQL JDBC Connection Demo ------------\");\n try\n {\n Class.forName(\"com.mysql.cj.jdbc.Driver\");\n } \n catch (ClassNotFoundException e) {\n System.out.println(\"MySQL JDBC Driver not found !!\");\n return;\n }\n System.out.println(\"MySQL JDBC Driver Registered!\");\n Connection connection = null;\n try {\n connection = DriverManager\n .getConnection(\"jdbc:mysql://localhost:3306/jdbcdemo\", \"root\", \"root\");\n System.out.println(\"SQL Connection to database established!\");\n // Statement stm=connection.createStatement();\n \tPreparedStatement ps = connection.prepareStatement(\"insert into abc values(?, ?);\");\n \tps.setInt(1, 202);\n \tps.setString(2, \"shubhi\");\n \tint x = ps.executeUpdate();\n \tSystem.out.println(x+ \" updated\");\n \tconnection.close();\n \t\n \t\n }catch(Exception e){\n \t\n }\n\n\t}", "public static void main(String[] args) {\n\t\tConnection conn = null;\r\n\t\tStatement stmt = null;\r\n\r\n\t\ttry {\r\n\t\t\t// Connect to database\r\n\t\t\tconn = DriverManager.getConnection(URL, USERNAME, PASSWORD);\r\n\t\t\t// Create s Statement\r\n\t\t\tstmt = conn.createStatement();\r\n\r\n\t\t\t// Create a list of students\r\n\t\t\tCollection<Student> students = new ArrayList<Student>();\r\n\t\t\tstudents.add(new Student(\"Alice\", \"CS520\"));\r\n\t\t\tstudents.add(new Student(\"Bob\", \"CS521\"));\r\n\t\t\tstudents.add(new Student(\"Charlie\", \"CS522\"));\r\n\t\t\tstudents.add(new Student(\"Dave\", \"CS523\"));\r\n\r\n\t\t\t// Loop through all students\r\n\t\t\tIterator<Student> iter = students.iterator();\r\n\t\t\twhile (iter.hasNext()) {\r\n\t\t\t\tStudent currentStudent = iter.next();\r\n\r\n\t\t\t\t// Create sql DELETE query to remove any existing row\r\n\t\t\t\tString writeQuery = String.format(\"delete from students where user = '%s'\", currentStudent.getName());\r\n\t\t\t\t// String writeQuery = \"delete from students where user = '\" + currentStudent.getName() + \"'\";\r\n\t\t\t\t// Run the command\r\n\t\t\t\tstmt.executeUpdate(writeQuery);\r\n\r\n\t\t\t\t// Create a new query to add a new row to the table\r\n\t\t\t\twriteQuery = String.format(\"insert into STUDENTS values ('%s', '%s')\",\r\n\t\t\t\t\tcurrentStudent.getName(), currentStudent.getCourse()\r\n\t\t\t\t);\r\n\r\n\t\t\t\t// Run the command\r\n\t\t\t\tstmt.executeUpdate(writeQuery);\r\n\t\t\t}\r\n\r\n\t\t\t// Select (read) from the table\r\n\t\t\tString readQuery = \"select * from STUDENTS\";\r\n\t\t\tResultSet rs = stmt.executeQuery(readQuery);\r\n\r\n\t\t\t// Loop until no more rows exist in the ResultSet\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\t// Get column by its name\r\n\t\t\t\tString name = rs.getString(\"USER\");\r\n\t\t\t\t// Get column by its index\r\n\t\t\t\tString course = rs.getString(2);\r\n\t\t\t\tSystem.out.printf(\"USER=%8s, COURSE=%8s%n\", name, course);\r\n\t\t\t}\r\n\r\n\t\t\t// Close ResultSet and Statement\r\n\t\t\trs.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\t// Print stack trace to console\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\t// Close the connection if it is not null\r\n\t\t\t\tif (conn != null) {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e2) {\r\n\t\t\t\te2.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\t// Close the statement if it is not null\r\n\t\t\t\tif (stmt != null) {\r\n\t\t\t\t\tstmt.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e2) {\r\n\t\t\t\te2.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n String url = \"jdbc:mysql://obiwan2.univ-brest.fr/zfm1-zparlanme\";\r\n String user = \"zparlanme\";\r\n String password = \"y4alfp4y\";\r\n\r\n Livre livre = new Livre();\r\n livre.setTitre(\"Salammbô\");\r\n livre.setAuteur(\"Flaubert\");\r\n livre.setAnnee(1862);\r\n\r\n try {\r\n Connection co = (Connection) DriverManager.getConnection(url, user, password);\r\n\r\n Statement st = (Statement) co.createStatement();\r\n\r\n // st.executeUpdate(\r\n // \"insert into t_livre (titre, auteur, annee) values ('Salammbô', 'Flaubert',\r\n // 1862)\");\r\n\r\n // V2\r\n st.executeUpdate(\"insert into t_livre (titre, auteur, annee) values ('\" + livre.getTitre()\r\n + \"', '\" + livre.getAuteur() + \"', \" + livre.getAnnee() + \")\");\r\n\r\n st.close();\r\n co.close();\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }", "public static void main(String[] args) throws Exception {\n\t\ttry {\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:orcl\", \"system\", \"tiger\");\n\n\t\t\tjava.sql.Statement stm = con.createStatement();\n\t\t\t//String query1 = \"create table Emp(Name varchar(50), City varchar(20))\";\n\t\t\tString query2 = \"insert into Student values('manoj','Dallas')\";\n\t\t\tString query3 = \"insert into Student values('mj','Texas')\";\n\t\t\tString query4 = \"select * from Emp\";\n\n\t\t\t//stm.execute(query1);\n\t\t\t// int no_of_rows = 0;\n\t\t\t//stm.execute(query1);\n\t\t\tstm.execute(query2);\n\t\t\tstm.execute(query3);\n\t\t\tResultSet rs = stm.executeQuery(query4);\n\n\t\t\tSystem.out.println(rs);\n\t\t\t/*\n\t\t\t * while(rs.next()){ no_of_rows++; }\n\t\t\t * System.out.println(\"NO.of rows before commit statement:\"\n\t\t\t * +no_of_rows); con.setAutoCommit(false); stm.execute(query2);\n\t\t\t * stm.execute(query3); con.commit(); rs = stm.executeQuery(query4);\n\t\t\t * no_of_rows = 0;\n\t\t\t * \n\t\t\t * while(rs.next()){ no_of_rows++;\n\t\t\t * \n\t\t\t * } System.out.println(\"no of rows after commit statement:\"\n\t\t\t * +no_of_rows);\n\t\t\t * \n\t\t\t */\n\t\t\tcon.close();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e);\n\t\t\n\t\t}\n\t}", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/ankush\",\"root\",\"password\");\n\t\tStatement st = con.createStatement();\n\t\tResultSet rs = st.executeQuery(\"select*from student\");\n\t\twhile(rs.next()) {\n\t\t\tSystem.out.println(rs.getInt(1)+\" : \"+rs.getString(2));\n\t\t}\n\t\tcon.close();\n\t\trs.close();\n\t}", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n Class.forName(\"jdbc.oracle.driver.OracleDriver\"); //Throws ClassNotFoundException\n //Step 2 Create Connection Object\n Connection connection = DriverManager.getConnection(\n \"jdbc:oracle:thin:@localhost:1521:xe\",\"system\",\"oracle\");\n //Throws SQL Excpetion\n //Step 3 create statement Object\n Statement statement = connection.createStatement();\n\n //step 4 excecute query\n ResultSet resultSet = statement.executeQuery(\"select * from emp\");\n //Step 5 close the connection\n resultSet.close();\n\n statement.close();\n\n connection.close();\n\n }", "public static void main(String[] args) {\n\n\t\tConnection conn = null;\n\t\tStatement stmt = null;\n\n\t\ttry {\n\t\t\t// STEP 2: Register JDBC driver\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");// find and load the class\n\n\t\t\t// STEP 3: Open a connection\n\t\t\tSystem.out.println(\"Connecting to a selected database...\");\n\t\t\tconn = DriverManager.getConnection(DB_URL, USER, PASS);\n\t\t\tSystem.out.println(\"Connected database successfully...\");\n\n\t\t\t// ================================================================================//\n\t\t\t// STEP 4: Execute a query\n\t\t\tSystem.out.println(\"Creating tables in given database...\");\n\t\t\tstmt = conn.createStatement();\n\n/*\t\t\tString Livre = \"CREATE TABLE Livre \" \n\t\t\t\t\t+ \"(ISBN INTEGER not NULL PRIMARY KEY, \"\n\t\t\t\t\t+ \" Description VARCHAR(255), \" \n\t\t\t\t\t+ \" Sujet VARCHAR(255), \" \n\t\t\t\t\t+ \" NCopie INTEGER(55));\";\n\n\t\t\tString Copie = \"CREATE TABLE Copie \" \n\t\t\t\t\t+ \"(Livre INTEGER not NULL , \" \n\t\t\t\t\t+ \" Numero VARCHAR(255) not NULL, \" \n\t\t\t\t\t+ \" CONSTRAINT PK_Livre PRIMARY KEY (Livre, Numero),\"\n\t\t\t\t\t+ \" FOREIGN KEY (Livre) REFERENCES Livre(ISBN))\";\n\t\t\t\n\t\t\tString Associes = \"CREATE TABLE Associes \" \n\t\t\t\t\t+ \"(NCarte INTEGER not NULL PRIMARY KEY, \"\n\t\t\t\t\t+ \" Prenom VARCHAR(255), \" \n\t\t\t\t\t+ \" Nom VARCHAR(255), \" \n\t\t\t\t\t+ \" Adresse VARCHAR(255), \" \n\t\t\t\t\t+ \" DateEntree DATE, \" \n\t\t\t\t\t+ \" NCopieEmprentees INTEGER(55));\";\n\t\t\t\n\t\t\tString Emprunts = \"CREATE TABLE Enprunts \" \n\t\t\t\t\t+ \"(Associe INTEGER not NULL,\"\n\t\t\t\t\t+ \" Livre INTEGER not NULL,\" \n\t\t\t\t\t+ \" Copie INTEGER not NULL,\"\n\t\t\t\t\t+ \" EmpruntDate DATE not NULL, \"\n\t\t\t\t\t+ \" CONSTRAINT PK_Emprunts PRIMARY KEY (Associe, Livre, Copie, EmpruntDate ),\"\n\t\t\t\t\t+ \" FOREIGN KEY (Associe) REFERENCES Associes(NCarte),\"\n\t\t\t\t\t+ \" FOREIGN KEY (Livre) REFERENCES Copie(Livre),\"\n\t\t\t + \" FOREIGN KEY (Copie) REFERENCES Copie(Livre))\";\n\t\t\t\n\t\t\tString Retours = \"CREATE TABLE Retours \" \n\t\t\t\t\t+ \"(Associe INTEGER not NULL,\"\n\t\t\t\t\t+ \" Livre INTEGER not NULL,\" \n\t\t\t\t\t+ \" Copie INTEGER not NULL,\"\n\t\t\t\t\t+ \" RetoursDate DATE, \"\n\t\t\t\t\t+ \" CONSTRAINT PK_Retours PRIMARY KEY ( Associe, Livre, Copie, RetoursDate ),\"\n\t\t\t\t\t+ \" FOREIGN KEY (Associe) REFERENCES Associes(NCarte),\"\n\t\t\t\t\t+ \" FOREIGN KEY (Livre) REFERENCES Copie(Livre),\"\n\t\t\t + \" FOREIGN KEY (Copie) REFERENCES Copie(Livre))\";\t\t \n\t\t\t\n\t\t\tString Telephone = \"CREATE TABLE Telephone \" \n\t\t\t\t\t+ \"(Telephone INTEGER not NULL PRIMARY KEY, \" \n\t\t\t\t\t+ \" Associe VARCHAR(255)); \" ;\n\t\t\t\n\t\t\n\t\t\tstmt.executeUpdate(Livre);// RETURN 0\n\t\t\tstmt.executeUpdate(Copie);\n\t\t\tstmt.executeUpdate(Associes);\n\t\t\tstmt.executeUpdate(Emprunts);\n\t\t\tstmt.executeUpdate(Retours);\n\t\t\tstmt.executeUpdate(Telephone);\n\n\t*/\t\t\tSystem.out.println(\"Creating tables successfully...\");\n\t\t\t\n\n\t\t\t// ================================================================================//\n\t/*\t\tSystem.out.println(\"Inserting records into the table...\");\n\t\t\t// reuse the AddData\n\t\t\tString AddData = \"INSERT INTO Livre \" + \" VALUES (001, 'Dubois', 'A', 100) \";\n\t\t\tstmt.executeUpdate(AddData);\n\n\t\t\tAddData = \"INSERT INTO Livre \" + \" VALUES (002, 'Dupont', 'B', 200) \";\n\t\t\tstmt.executeUpdate(AddData);\n\n\t\t\tAddData = \"INSERT INTO Livre \" + \" VALUES (010, 'Cuissart', 'C', 150) \";\n\t\t\t stmt.executeUpdate(AddData);\n\t*/\t\n\t\t\t \n\t\t\ttry{\n\t\t\t\tString AddData2 = \"INSERT INTO Copie \" + \" VALUES (010, 9) \";\n\t\t\t\tstmt.executeUpdate(AddData2);\t\t\t \n\t\t\t\t \n\t\t\t}catch( SQLException se){\n\t\t\t\n\t\t\t}\n\n\t\t\t \n\t\t\t\t\n\t\t\t\n\t\t} catch (SQLException se) {\n\t\t\t// Handle errors for JDBC\n\t\t\tse.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\t// Handle errors for Class.forName\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (stmt != null)\n\t\t\t\t\tconn.close();\n\t\t\t} catch (SQLException se) {\n\t\t\t\t// do nothing\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tif (conn != null)\n\t\t\t\t\tconn.close();\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t} // end finally try\n\t\t} // end try\n\n\t\tSystem.out.println(\"Goodbye!\");\n\t}", "public void run(String JDBC_DRIVER, String DB_URL) {\n\n\n\n try {\n // STEP 1: Register JDBC driver\n Class.forName(JDBC_DRIVER);\n\n //STEP 2: Open a connection\n //System.out.println(\"Connecting to database...\");\n\n //connection = DriverManager.getConnection(DB_URL,USER,PASS);\n Connection connection = DriverManager.getConnection(DB_URL);\n\n\n //STEP 3: Execute a query\n// try (Statement statement = connection.createStatement()) {\n// statement.executeUpdate(\"DROP TABLE CUSTOMER\");\n// statement.executeUpdate(\"DROP TABLE CAR\");\n// statement.executeUpdate(\"DROP TABLE COMPANY\");\n//// statement.executeUpdate(\"DELETE FROM CUSTOMER\");\n//// statement.executeUpdate(\"DELETE FROM CAR\");\n//// statement.executeUpdate(\"DELETE FROM COMPANY\");\n//\n// } catch (SQLException e) {\n// e.printStackTrace();\n// }\n\n try (Statement statement = connection.createStatement()) {\n // drop all the table\n\n // First create table COMPANY if not exist\n// statement.executeUpdate(\"CREATE TABLE IF NOT EXISTS COMPANY \" +\n// \"(id INTEGER, \" +\n// \" name VARCHAR(255))\");\n\n\n\n statement.executeUpdate(\"CREATE TABLE IF NOT EXISTS COMPANY \" +\n \"(id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, \" +\n \" name VARCHAR(255) UNIQUE NOT NULL \" +\n \")\");\n\n // alter the constrains\n// statement.executeUpdate(\"ALTER TABLE COMPANY \" +\n// \"ALTER COLUMN name VARCHAR(255) NOT NULL\");\n//\n// statement.executeUpdate(\"ALTER TABLE COMPANY \" +\n// \"ALTER COLUMN id {INT NOT NULL AUTO_INCREMENT}\");\n//\n// statement.executeUpdate(\"ALTER TABLE COMPANY \" +\n// \"ADD PRIMARY KEY (id)\");\n//\n// statement.executeUpdate(\"ALTER TABLE COMPANY \" +\n// \"ADD UNIQUE (name)\");\n//\n statement.executeUpdate(\"ALTER TABLE COMPANY \" +\n \"ALTER COLUMN id RESTART WITH 1\");\n\n\n // Then create table CAR if not exist\n statement.executeUpdate(\"CREATE TABLE IF NOT EXISTS CAR \" +\n \"(id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, \" +\n \" name VARCHAR(255) UNIQUE NOT NULL, \" +\n \" company_id INT NOT NULL,\" +\n \" CONSTRAINT fk_company FOREIGN KEY (company_id)\" +\n \" REFERENCES COMPANY(id)\" +\n \")\");\n\n statement.executeUpdate(\"ALTER TABLE CAR \" +\n \"ALTER COLUMN id RESTART WITH 1\");\n\n // Then create table CUSTOMER if not exist\n statement.executeUpdate(\"CREATE TABLE IF NOT EXISTS CUSTOMER \" +\n \"(id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, \" +\n \" name VARCHAR(255) UNIQUE NOT NULL, \" +\n \" rented_car_id INT,\" +\n \" CONSTRAINT fk_car FOREIGN KEY (rented_car_id)\" +\n \" REFERENCES CAR(id)\" +\n \")\");\n\n statement.executeUpdate(\"ALTER TABLE CUSTOMER \" +\n \"ALTER COLUMN id RESTART WITH 1\");\n\n statement.executeUpdate(\"ALTER TABLE CUSTOMER \" +\n \"ALTER rented_car_id SET DEFAULT NULL\");\n\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n /* *********************************** */\n /* HERE THE MENU */\n /* *********************************** */\n\n try {\n while (true) {\n // main menu\n System.out.println(\"\\n1. Log in as a manager \\n2. Log in as a customer \\n3. Create a customer \\n0. Exit\");\n\n int mainMenuChoice = Integer.parseInt(scanner.nextLine());\n\n if (mainMenuChoice == 0) {\n break;\n } else if (mainMenuChoice == 1) {\n // log in as manager\n logInAsManager(connection);\n\n } else if (mainMenuChoice == 2) {\n logInAsCustomer(connection);\n } else if (mainMenuChoice == 3) {\n createACustomer(connection);\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Enable the auto-commit mode so that all changes are automatically saved in the database file\n connection.setAutoCommit(true);\n\n // STEP 4: Clean-up environment\n // dont need if we use try-catch block\n// statement.close();\n// connection.close();\n\n\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public static void main(String[] args) throws SQLException, ClassNotFoundException {\n }", "public static void main(String args[])throws Exception {\n \n \n String driver = \"com.mysql.jdbc.Driver\";\n\n \t\t \n \tClass.forName(driver);\n\n \t\tString url = \"jdbc:mysql://127.0.0.1:3306/doc\";\n\n \t\t\n \t\t Connection c= DriverManager.getConnection(url, \"root\", \"\" );\n \t\t System.out.println(c.getCatalog());\n\n \n //conexao.setDataSource(url);\n //conexao.setConexao();\n //conexao.getConexao().setCatalog(\"sae\");\n // System.out.println(conexao.getConexao().getCatalog());\n // conexao.setDataSource(\"jdbc:interbase://localhost/\"+\n // Persistencia.CAMINHO+\"Noticia.gdb\"); //d:\\\\IPT-Web\\\\escola\\\\\n\t\n}", "public static void main(String[] args) {\n\t\t final String JDBC_DRIVER = \"com.mysql.jdbc.Driver\"; \r\n\t\t final String DB_URL = \"jdbc:mysql://localhost:5235\";\r\n\r\n\t\t // Database credentials\r\n\t\t final String USER = \"root\";\r\n\t\t final String PASS = \"[email protected]\";\r\n\t\t \r\n\t\t \r\n\t\t Connection conn = null;\r\n\t\t Statement stmt = null;\r\n\r\n\t}", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n\t\tString hostName = \"localhost\";\r\n\t\tString portNumber = \"3306\";\r\n\t\tString dataBaseName = \"users\";\r\n\t\tString tableName = \"log\";\r\n\t\tString dataBasePassword=\"1234\";\r\n\t\t//Class.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\tSystem.out.println(\"The jdbc Driver has successfully loaded.\");\r\n\r\n\t\tConnection con = DriverManager\r\n\t\t\t\t.getConnection(\"jdbc:mysql://\" + hostName + \":\" + portNumber + \"/\" + dataBaseName + \"\", \"root\", dataBasePassword);\r\n\r\n\t\tSystem.out.println(\"Connection to MySQL database has been successfully established.\");\r\n\r\n\t\tStatement st = con.createStatement();\r\n\r\n\t\tResultSet rs = st.executeQuery(\"SELECT * FROM \" + tableName + \"\");\r\n\r\n\t\twhile (rs.next()) {\r\n\r\n\t\t\tString userID = rs.getString(\"username\");\r\n\t\t\tString password = rs.getString(\"password\");\r\n\r\n\t\t\tSystem.out.println(\"|\"+userID+\" |\"+password+\"|\");\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t\t\r\n\t\t}", "public static void main(String[] args) {\n\t\tConnection con=null;\r\n\t\tStatement stmt=null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"oracle.jdbc.OracleDriver\");\r\n\t\t\tcon=DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:xe\", \"system\", \"srujan\");\r\n\t\t\tcon.setAutoCommit(false);\r\n\t\t\tstmt=con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE ,ResultSet.TYPE_SCROLL_INSENSITIVE);\r\n\t\t\tResultSet rs=stmt.executeQuery(\"select * from student\");\r\n\t\t\trs.absolute(3);\r\n\t\t\tSystem.out.println(rs.getInt(1)+\" \"+rs.getString(2)+\" \"+rs.getInt(3));\r\n\t\t\t\r\n\t\t\t}catch (Exception e) {\r\n\t\t\te.getMessage();// TODO: handle exception\r\n\t}\r\n\t}", "public static void main(String[] args)\n throws SQLException, ClassNotFoundException {\n Class.forName(\"sun.jdbc.odbc.JdbcOdbcDriver\");\n System.out.println(\"Driver sun.jdbc.odbc.JdbcOdbcDriverloaded\");\n\n // Establish connection\n Connection connection = DriverManager.getConnection\n (\"jdbc:odbc:LiangBookDB_MDB\", \"\", \"\");\n System.out.println(\"Database LiangBookDB_MDB connected\");\n\n // Create a statement\n Statement stmt = connection.createStatement();\n\n try {\n // Create the Student TABLE\n stmt.executeUpdate(\n \"create table Student(firstName varchar(20), \"\n + \"mi varchar(1), lastName varchar(20))\");\n\n // Insert two records into the Student TABLE\n stmt.executeUpdate(\n \"insert into Student values ('John', 'F', 'Smith')\");\n stmt.executeUpdate(\n \"insert into Student values ('Wade', 'E', 'Bush')\");\n }\n catch (SQLException ex) {\n System.out.println(\"Table Student already exists\");\n }\n\n // Select the column student from the Student table\n ResultSet rset = stmt.executeQuery\n (\"select firstName, mi, lastName from Student\");\n\n // Iterate through the result and print the student names\n while (rset.next())\n System.out.println(rset.getString(1) + \" \" +\n rset.getString(2) + \". \" + rset.getString(3));\n\n // Close the connection\n connection.close();\n }", "public static void main(String[] args) {\n Connection con;\n String url = \"jdbc:oracle:thin:@localhost:1521:orcl\";\n Statement stmt;\n\n try {\n Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n con = DriverManager.getConnection(url, \"hr\", \"hr\");\n stmt = con.createStatement();\n ResultSet rs = stmt.executeQuery(\"select * from employees\");\n while(rs.next())\n {\n System.out.println(rs.getString(1)+\" \"+rs.getString(2)+\" \"+rs.getString(3)+\" \"+rs.getString(4)+\" \"+rs.getString(5));\n }\n\n } catch (ClassNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "public static void main(String[] args) throws SQLException {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint no;\n\t\tSystem.out.println(\"This is Jdbc Testing with the MySQL !!!\");\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\"); \n\t\t\t//\t\t\t Class.forName(\"oracle.jdbc.driver.OracleDriver\");/mail\n\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/test\",\"root\",\"Root@!234\"); \n\t\t\t//here vk is database name, root is username and password is null\n\t\t\t//\t\t\tString sql = \"CREATE TABLE testTable (first VARCHAR(255),last VARCHAR(255));\";\n\t\t\t//\t stmt.execute(sql);\n\t\t\tStatement stmt=con.createStatement(); \n\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"Database Operations :\");\n\t\t\t\tSystem.out.println(\"1. Insert the Data :\");\n\t\t\t\tSystem.out.println(\"2. Show the Data :\");\n\t\t\t\tSystem.out.println(\"3. Exit :\");\n\n\t\t\t\tSystem.out.println(\"Enter Your operation :\");\n\t\t\t\tno = sc.nextInt();\n\n\t\t\t\tif(no==1)\n\t\t\t\t{\n\t\t\t\t\tScanner sc1 = new Scanner(System.in);\n\t\t\t\t\tSystem.out.println(\" Enter the First Name\");\n\t\t\t\t\tString firstName = sc1.nextLine();\n\t\t\t\t\tSystem.out.println(\" Enter the Last Name\");\n\t\t\t\t\tString lastName = sc1.nextLine();\n\t\t\t\t\tString sql = \"INSERT INTO testtable values ('\"+firstName+\"','\"+lastName+\"');\";\n\t\t\t\t\tStatement stmt1=con.createStatement(); \n\t\t\t\t\tint temp = stmt1.executeUpdate(sql);\n\t\t\t\t\tif(temp==1)\n\t\t\t\t\t\tSystem.out.println(\" Data Stored Successfully !!\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\" Give Please proper data !!\");\n\t\t\t\t\tSystem.out.println(\" ------------------------------------------------------------- \");\n\t\t\t\t}\n\t\t\t\telse if(no==2) {\n\t\t\t\t\tint index = 1;\n\t\t\t\t\tSystem.out.println(\"S.No. First Name Last Name \");\n\t\t\t\t\tResultSet rs = stmt.executeQuery(\"select * from testtable\"); \n\t\t\t\t\twhile(rs.next()) \n\t\t\t\t\t\tSystem.out.println(index++ + \" \"+rs.getString(1)+\" \"+rs.getString(2));\n\t\t\t\t\tSystem.out.println(\"----------------------------------------\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"EXIT !!\");\n\t\t\t\t}\n\n\t\t\t}while(no<=2);\n\n\n\t\t\tcon.close(); \n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public static void main(String[] args) {\n Connection conn = null;\n Statement stmt = null;\n try{\n //STEP 1: Register JDBC driver\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n //STEP 2: Open a connection to database\n System.out.println(\"Connecting to database...\");\n conn = DriverManager.getConnection(DB_URL, USER, PASS);\n\n System.out.println(\"Creating database...\");\n stmt = conn.createStatement();\n\n //STEP 3: Use SQL to Create Database;\n String sql1 = \"DROP DATABASE VehicleOffice\";\n stmt.executeUpdate(sql1);\n String sql = \"CREATE DATABASE IF NOT EXISTS VehicleOffice\";\n stmt.executeUpdate(sql);\n System.out.println(\"Database created successfully...\");\n\n //STEP 4: Use SQL to select the database;\n sql = \"use VehicleOffice\";\n stmt.executeUpdate(sql);\n\n //STEP 5: Use SQL to create Tables;\n //STEP 5.1: Create Table Branch;\n sql = \"create table IF NOT EXISTS branch( branch_id integer not null PRIMARY KEY, \" +\n \t\t\"branch_name varchar(20) not null,\" +\n \t\t\"branch_addr varchar(50),\" +\n \t\t\"branch_city varchar(20) not null,\" +\n \t\t\"branch_phone integer)\";\n stmt.executeUpdate(sql);\n\n //STEP 5.2: Create Table Driver;\n sql = \"create table IF NOT EXISTS driver(driver_ssn integer not null PRIMARY KEY,\" +\n \t\t\"driver_name varchar(20) not null,\" +\n \t\t\"driver_addr varchar(50) not null,\" +\n \t\t\"driver_city varchar(20) not null,\" +\n \t\t\"driver_birthdate date not null,\" +\n \t\t\"driver_phone integer)\";\n stmt.executeUpdate(sql);\n\n //STEP 5.3: Create Table License;\n sql = \"create table IF NOT EXISTS license(license_no integer not null PRIMARY KEY,\" +\n \"driver_ssn integer not null,\" +\n \"license_type char not null,\" +\n \"license_class integer not null,\" +\n \"license_expiry date not null,\" +\n \"issue_date date not null,\" +\n \"branch_id integer not null)\";\n stmt.executeUpdate(sql);\n\n //STEP 5.4: Create Table Exam;\n sql = \"create table IF NOT EXISTS exam(driver_ssn integer not null,\" +\n \t\t\"branch_id integer not null,\" +\n \t\t\"exam_date date not null,\" +\n \t\t\"exam_type char not null,\" +\n \"exam_score integer not null,\"+\n \"PRIMARY KEY(driver_ssn, branch_id, exam_date))\";\n stmt.executeUpdate(sql);\n\n //STEP 6: Use SQL to insert tuples into tables;\n //STEP 6.1: insert tuples into Table Branch;\n sql = \"insert IGNORE into branch values(10, 'Main', '1234 Main St.', 'Hoboken', 5551234)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into branch values(20, 'NYC', '23 No.3 Road', 'NYC', 5552331)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into branch values(30, 'West Creek', '251 Creek Rd.', 'Newark', 5552511)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into branch values(40, 'Blenheim', '1342 W.22 Ave.', 'Princeton', 5551342)\";\n stmt.executeUpdate(sql);\n\n //Your Task 3: insert the rest of tuples in Table Branch;\n \n //STEP 6.2: insert tuples into Table driver;\n sql = \"insert IGNORE into driver values(11111111, 'Bob Smith', '111 E. 11 St.', 'Hoboken', '1975-01-01', 5551111)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into driver values(22222222, 'John Walters', '222 E. 22 St.', 'Princeton', '1976-02-02', 5552222)\";\n stmt.executeUpdate(sql);\n \n sql = \"insert IGNORE into driver values(33333333, 'Troy Rops', '333 W.33 Ave', 'NYC', '1970-03-03', 5553333)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into driver values(44444444, 'Kevin Mark', '444 E.4 Ave.', 'Hoboken', '1974-04-04', 5554444)\";\n stmt.executeUpdate(sql);\n\n //Your Task 4: insert the rest of tuples in Table Driver;\n\n //STEP 6.3: insert tuples into Table license;\n sql = \"insert IGNORE into license values(1, 11111111, 'D', 5, '2022-05-24', '2017-05-25', 20)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into license values(2, 22222222, 'D', 5, '2023-08-29', '2016-08-29', 40)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into license values(3, 33333333, 'L', 5, '2022-12-27', '2017-06-27', 20)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into license values(4, 44444444, 'D', 5, '2022-08-30', '2017-08-30', 40)\";\n stmt.executeUpdate(sql);\n //Your Task 5: insert all tuples into Table license;\n\n //STEP 6.4: insert all tuples into Table exam;\n sql = \"insert IGNORE into exam values(11111111, 20, '2017-05-25', 'D', 79)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into exam values(11111111, 20, '2017-12-02', 'L', 67)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into exam values(22222222, 30, '2016-05-06', 'L', 25)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into exam values(22222222, 40, '2016-06-10', 'L', 51)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into exam values(22222222, 40, '2016-08-29', 'D', 81)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into exam values(33333333, 10, '2017-07-07', 'L', 45)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into exam values(33333333, 20, '2017-06-27', 'L', 49)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into exam values(33333333, 20, '2017-07-27', 'L', 61)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into exam values(44444444, 10, '2017-07-27', 'L', 71)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into exam values(444444444, 20, '2017-08-30', 'L', 65)\";\n stmt.executeUpdate(sql);\n\n sql = \"insert IGNORE into exam values(444444444, 40, '2017-09-01', 'L', 62)\";\n stmt.executeUpdate(sql);\n //Your Task 6: insert all tuples into Table exam;\n\n //STEP 7: Use SQL to ask queries and retrieve data from the tables;\n //An example to retrieve branch ID, name, address from Table Branch, and display these values;\n Statement s = conn.createStatement();\n s.executeQuery (\"SELECT branch_id, branch_name, branch_addr FROM branch\");\n ResultSet rs = s.getResultSet();\n int count = 0;\n while (rs.next ())\n {\n int idVal = rs.getInt (\"branch_id\");\n String nameVal = rs.getString (\"branch_name\");\n String addrVal = rs.getString (\"branch_addr\");\n System.out.println (\n \"branch id = \" + idVal\n + \", name = \" + nameVal\n + \", address = \" + addrVal);\n ++count;\n }\n rs.close ();\n s.close ();\n System.out.println (count + \" rows were retrieved\");\n\n //Your Task 7: Write SQL for Q1 - Q4 in Lab instruction and display the answers.\n System.out.println(\"Question 1:\");\n Statement s1 = conn.createStatement();\n s1.executeQuery (\"SELECT driver_name FROM driver NATURAL JOIN branch NATURAL JOIN license WHERE branch_city='NYC'\");\n ResultSet rs1 = s1.getResultSet();\n while (rs1.next ())\n {\n String driverName = rs1.getString (\"driver_name\");\n System.out.println (\n \"driver name = \" + driverName);\n }\n rs.close ();\n s.close ();\n System.out.println();\n\n System.out.println(\"Question 2:\");\n Statement s2 = conn.createStatement();\n s2.executeQuery (\"SELECT driver_name FROM driver NATURAL JOIN license NATURAL JOIN branch WHERE (license_expiry < '2022-12-31')\");\n ResultSet rs2 = s2.getResultSet();\n while (rs2.next ())\n {\n String driverName = rs2.getString (\"driver_name\");\n System.out.println (\n \"driver name = \" + driverName);\n }\n rs.close ();\n s.close ();\n System.out.println();\n\n System.out.println(\"Question 3:\");\n Statement s3 = conn.createStatement();\n s3.executeQuery (\"SELECT driver_name FROM driver NATURAL JOIN exam natural join license natural join branch \"\n + \"WHERE license_type=exam_type \"\n + \"GROUP BY driver_name, driver_ssn \"\n + \"HAVING COUNT(exam_score) >= 2\");\n ResultSet rs3 = s3.getResultSet();\n while (rs3.next ())\n {\n String driverName = rs3.getString (\"driver_name\");\n System.out.println (\n \"driver name = \" + driverName);\n }\n rs.close ();\n s.close ();\n System.out.println();\n\n System.out.println(\"Question 4:\");\n Statement s4 = conn.createStatement();\n s4.executeQuery (\"SELECT DISTINCT D1.driver_name, E1.driver_ssn \"\n + \"FROM driver D1, exam E1 \"\n + \"WHERE D1.driver_ssn=E1.driver_ssn AND E1.driver_ssn not in (\"\n + \"SELECT E2.driver_ssn \"\n + \"FROM driver D2, exam E2 \"\n + \"WHERE D2.driver_ssn=E2.driver_ssn AND EXISTS (\"\n + \"SELECT E3.driver_ssn \"\n + \"FROM exam E3 \"\n + \"WHERE(E2.driver_ssn=E3.driver_ssn AND E3.exam_date > E2.exam_date AND E3.exam_score > E2.exam_score)))\"); \n ResultSet rs4 = s4.getResultSet();\n while (rs4.next ())\n {\n String driverName = rs4.getString (\"driver_name\");\n System.out.println (\n \"driver name = \" + driverName);\n }\n rs.close ();\n s.close ();\n System.out.println();\n\n }catch(SQLException se){\n //Handle errors for JDBC\n se.printStackTrace();\n }catch(Exception e){\n //Handle errors for Class.forName\n e.printStackTrace();\n }finally{\n //finally block used to close resources\n try{\n if(stmt!=null)\n stmt.close();\n }catch(SQLException se2){\n }// nothing we can do\n try{\n if(conn!=null)\n conn.close();\n }catch(SQLException se){\n se.printStackTrace();\n }//end finally try\n }//end try\n System.out.println(\"Goodbye!\");\n}", "public static void main(String[] args) {\n\t\tConnection conn=SqlConnection.createConnection();\n\t\t\n\t\ttry {\n\t\t\tStatement st=conn.createStatement();\n\t\t\tResultSet result=st.executeQuery(\"select * from emp101\");\n\t\t\t\n\t\t\twhile (result.next()) {\n\t\t\t\tSystem.out.println(result.getString(\"name\")+\"=\"+result.getString(2));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) throws SQLException, IOException {\n\t\t Driver driverref = new Driver();\n\t\t DriverManager.registerDriver(driverref);\n\t\t \n\t //step-2 : get the connection to data base\n\t\t FileInputStream fis = new FileInputStream(\"./dataBaseConfig.properties\");\n\t\t Properties p = new Properties();\n\t\t p.load(fis);\n\t\t \n\t\t Connection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/projects\", p);\n\t\t \n\t //step 3 : issue create statement object\n\t\t Statement stat = con.createStatement();\n\t\t \n\t //step 4 : execute Query\n\t\t ResultSet result = stat.executeQuery(\"select * from project\");\n\t\t \n\t\t while(result.next()) {\n\t\t \tSystem.out.println(result.getString(1) + \"\\t\"+result.getString(2) + \"\\t\"+result.getString(4));\n\t\t \t\n\t\t }\n\n\t //step 5 : close the connection\t\n\t\t con.close();\n\n\t}", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n\tClass.forName(\" \");\n\t\n\tConnection c = DriverManager.getConnection(\" \", \" \", \" \");\n \n\tStatement s = c.createStatement();\n\tString querry = null ;\n\tResultSet rs = s.executeQuery(querry);\n\twhile (\trs.next());\n\t\t \n\t\n\n\t}", "public static void main(String[] args) throws SQLException, ClassNotFoundException {\r\n\t\t\r\n\t\tClass.forName(\"org.sqlite.JDBC\");\r\n\t\tString url = \"jdbc:sqlite:D://SampleDatabase.db\";\r\n\t\tConnection conn = DriverManager.getConnection(url);\r\n\t\tSystem.out.println(\"Connection Established Successfully\");\r\n\t\t\r\n\t\t// Select record from a table\r\n\t\tString sql = \"SELECT * FROM AddNewPayee\";\r\n\t\tStatement stmt = conn.createStatement();\r\n\t ResultSet rs = stmt.executeQuery(sql);\r\n\t // by column name\r\n\t while (rs.next()) {\r\n System.out.println(rs.getString(\"name\")+\" \"+rs.getString(\"address\")+\" \"+rs.getString(\"account\")+\" \"+rs.getString(\"details\"));\r\n\t }\r\n\t \r\n\t // by column index\r\n\t ResultSetMetaData rsmd = rs.getMetaData();\r\n\t System.out.println(rsmd.getColumnCount());\r\n\t while(rs.next())\r\n\t {\r\n\t \tfor(int i=1;i<=rsmd.getColumnCount();i++)\r\n\t \t{\r\n\t \t\tSystem.out.print(rs.getString(i));\r\n\t \t}\r\n\t }\r\n\t \r\n\t // Insert a new record\r\n\t sql = \"INSERT INTO AddNewPayee (name,address,account,details) VALUES('somi','krishnagiri','7516546365','Friend')\";\r\n\t stmt.executeUpdate(sql);\r\n\t \r\n\t // Update a existing record\r\n\t sql = \"UPDATE AddNewPayee SET address='Delhi' where name='somi'\";\r\n\t stmt.executeUpdate(sql);\r\n\t \r\n\t // Delete a record\r\n\t sql = \"DELETE From AddNewPayee Where name='prem'\";\r\n\t stmt.executeUpdate(sql);\r\n\t \r\n\t}", "public static void main(String[] args)throws Exception{\n\t\tgetconnection();\r\n\t\t\tCreatTable();\r\n\t\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tConnection con = null;\n\t\tStatement st = null;\n\t\tResultSet rs=null;\n\t\tString str=\"jdbc:mysql://localhost:3306/student\";\n\t\tString user=\"root\";\n\t\tString pass=\"\";\n\t\tString sql = \"select * from studentTable\";\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\n\t\t\t// 2.Establish a connection between jdbc program and database server\n\t\t\tcon = DriverManager.getConnection(str,user,pass );\n\t\t\t// 3.preparing sql statement\n\n\t\t\t// 4.create the jdbc statement\n\t\t\tst = con.createStatement();\n\t\t\t// 5.submit the sql statement to data base using jdbc statement\n\t\t\t// only DML query(manipulations)\n\t\trs=\tst.executeQuery(sql);\n\t\t\t// 6.process the result\n\t\twhile(rs.next()) {\n\t\t\tString FirstName=rs.getString(1);\n\t\t\tString LastName=rs.getString(2);\n\t\t\tSystem.out.println(FirstName+\"\\t\"+LastName);\n\t\t}\t\n\t\t}catch (ClassNotFoundException | SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// 7.close all the connections\n\t\t\ttry {\n\t\t\t\tif (st != null)\n\t\t\t\t\tst.close();\n\t\t\t\tif (con != null)\n\t\t\t\t\tcon.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\n try { //Same Methods as in the Main class; SOme of the Initial steps will remain the same!!\n\n //2nd, We are going to load and register the oracle driver\n Class.forName(\"oracle.jdbc.driver.OracleDriver\"); //We have to put a try catch block if not we will get an error\n\n //3rd Now, we have to create a connection\n Connection conn = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521/Rklamadji1\", \"hr\", \"11\");\n //getConnectionMethod takes 3 parameters which are (\"URl\", \"Username\", \"Password\")\n\n\n Statement st = conn.createStatement(); // 4th Here, we are creating our Statement Object!!\n\n //Now, I am updating some records that I mistakly insert twice\n\n st.executeUpdate(\"UPDATE emp SET id = 1 WHERE id = 2\"); // Here, I am changing the data from the emp table;\n\n\n conn.close(); //To close our connection Method!!\n\n\n } catch (Exception e) {\n\n e.printStackTrace();\n\n }\n\n }", "public static void main(String[] args) {\n\t\tString driver = \"com.mysql.jdbc.Driver\";\r\n\t\tString url = \"jdbc:mysql://localhost:3306/\";\r\n\t\tString dbname = \"source_mantra_db\";\r\n\t\tString username = \"root\";\r\n\t\tString password = \"ClaraPark728!\";\r\n\t\tConnection conn = null;\r\n\t\t//this gets the driver and registers it{\r\n\t\t\r\n\t\t\ttry {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tClass.forName(driver).newInstance();\r\n\t\t\t\t\tconn = DriverManager.getConnection(url + dbname,username,password);\r\n\t\t\t\t\tStatement statement = conn.createStatement();\r\n\t\t\t\t\t\r\n\t\t\t\t\tResultSet resultSet =statement.executeQuery(\"select * from books\");\r\n\t\t\t\t\tint i = 0; String t=null; String a=null; float p = 0.0f;Date d=null;\r\n\t\t\t\t\twhile(resultSet.next()){\r\n\t\t\t\t\t\ti = resultSet.getInt(\"bookId\");\r\n\t\t\t\t\t\tt = resultSet.getString(\"title\");\r\n\t\t\t\t\t\ta = resultSet.getString(\"author\");\r\n\t\t\t\t\t\tp = resultSet.getFloat(\"price\");\r\n\t\t\t\t\t\td = resultSet.getDate(\"datePub\");\r\n\t\t\t\t\t\tSystem.out.println(i + \"\\t\" +t+\"\\t\"+a+\"\\t\"+p+\"\\t\"+d);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}finally{\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (InstantiationException | IllegalAccessException\r\n\t\t\t\t\t| ClassNotFoundException | SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tConnection con=DBConnection.getConnection();\r\n\t\tSystem.out.println(con);\r\n\t\t \r\n\t}", "public static void main(String[] args) {\n Connection connection = null;\r\n\r\n try{\r\n // establezco la connecion con la base de datos jdbc en el puerto 3306 con usuario y contrasenia root\r\n connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/jdbc\",\"root\",\"root\");\r\n // pongo auto commit en false esto hace que no se comite cada cueri y que se cada vez que lance\r\n // el comando commit se ejecuta el bloque query\r\n connection.setAutoCommit(false);\r\n\r\n // hago la sentencia preparada\r\n PreparedStatement preparedStatement = connection.prepareStatement(\"INSERT INTO estudiante (dni, nombre, apellido) VALUES (?, ?, ?);\");\r\n // modifico los \"?\" de la sentencia preparada con mis datos\r\n preparedStatement.setInt(1,40640217);\r\n preparedStatement.setString(2,\"Santiago\");\r\n preparedStatement.setString(3,\"Lampropulos\");\r\n\r\n // ejecuto la consulta preparada\r\n preparedStatement.executeUpdate();\r\n\r\n //traigo los datos de la tabla estudiante\r\n ResultSet resultSet = preparedStatement.executeQuery(\"SELECT * FROM estudiante\");\r\n\r\n // realizo el commit para que se guarden los cambios\r\n connection.commit();\r\n\r\n //muestro toda la tabla\r\n while(resultSet.next()){\r\n System.out.println(resultSet.getString(2)+\"\\t\"+resultSet.getString(\"nombre\")+\"\\t\"+resultSet.getString(\"apellido\"));\r\n }\r\n\r\n }catch (SQLException exceptionConnection){\r\n System.out.println(exceptionConnection);\r\n try{\r\n // si se creo la base de datos revierte el commit que se hizo\r\n if(connection!=null){\r\n connection.rollback();\r\n }\r\n }catch (SQLException exceptionCarth){\r\n //atrapo excepciones\r\n System.out.println(exceptionCarth);\r\n }\r\n\r\n\r\n }finally {\r\n // el bloque finally se ejecute sin inportar si viene de un catch o del try\r\n try{\r\n //si se crea una coneccion con base de datos la cierro\r\n if(connection!= null){\r\n connection.close();\r\n }\r\n }catch (SQLException eFinally){\r\n //atrapo excepciones\r\n System.out.println(eFinally);\r\n }\r\n }\r\n\r\n }", "public static void main(String[] args) throws SQLException {\n\n\t\t\n\t\t\n\t\tMySQL mySQL=new MySQL();\n\t\tmySQL.search(\"1234\");\n\t\ttry {\n\t\t\t\n\t\t\tmySQL.update(\"1600300830\", \"2\", \"100\");\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}", "public static void main(String[] args) \n {\n \n \n try \n {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = (Connection) DriverManager.getConnection(url, userName, password);\n } \n catch (SQLException e) \n {\n e.printStackTrace();\n } \n catch (ClassNotFoundException e) \n {\n e.printStackTrace();\n }\n \n }", "public static void main(String[] args) {\n String url = \"jdbc:mysql://localhost:3306/\";\n // we are connecting to the addressBook database we created earlier\n String database = \"addressBook\";\n // we login as \"root\" user with password \"mysql123\"\n String userName = \"root\";\n String password = \"mysql123\";\n try (Connection connection = DriverManager.getConnection\n (url + database, userName, password)){\n System.out.println(\"Database connection: Successful\");\n } catch (Exception e) {\n System.out.println(\"Database connection: Failed\");\n e.printStackTrace();\n }\n }", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n\t\tSystem.out.println(\"Hola MySql desde eclipse\");\n\t\tSystem.out.println(\"Dime tu nombre: \");\n\t\tString nombre = scanner.nextLine();\n\t\tSystem.out.println(\"Hola \"+nombre+\"\\n\");\n\t\tConnection connection = DriverManager.getConnection(\n\t\t\t\"jdbc:mysql://localhost/dbprueba?user=root&password=sistemas\"\n\t\t);\n\t\t//Statement statement = connection.createStatement();\n\t\t//ResultSet resultSet = statement.executeQuery();\n\t\t\n\t\tPreparedStatement preparedStatement = connection.prepareStatement(\n\t\t\t\t\"select * from categoria where nombre like ?\");\n\t\t\n\t\t\n\t\tpreparedStatement.setObject(1,\"%vo%\");\n\t\t//preparedStatement.setObject(1,1);\n\t\tResultSet resultSet = preparedStatement.executeQuery();\n\n\t\twhile (resultSet.next()) \n\t\t\tSystem.out.printf(\"id=%4s nombre=%s\\n\", \n\t\t\t\tresultSet.getObject(\"id\"), resultSet.getObject(\"nombre\")); \n\t\t\n\t\t\n\t\tresultSet.close();\n\t\tpreparedStatement.close();\n\t\tconnection.close();\n\t\t\n\t\t\n\t}", "public static void main(String args[]) {\n\t\t public Connection getConnection{ \n\t\t Connection con=null;\n\t\t \n\t\t //registering the driver\n\t\t \n\t\t try {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\n\t\t\t//creating a connection to the database\n\t\t\t\n\t\t\tcon=DriverManager.getConnection(\"jdbc:mysql://localhost//:3306\",\"root\",\"root\");\n\t\t\t PreparedStatement stmt= con.prepareStatement(\"select * from bank_book_register\");\n\t\t\t ResultSet rs=stmt.executeQuery();\n\t\t\t\twhile(rs.next())\n\t\t\t\t\tSystem.out.println(rs.getString(1));\n\t\t\t\t \n\t\t\t\t\n\t\t\t\t//closing the connection\n\t\t\t\n\t\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t }\n\t\t\n\t//\treturn con;\n\t\n\t\t/* //creating statment\n\t\tPreparedStatement stmt= con.prepareStatement(\"select * from BANK where ID=?\");\n\t\tString str=\"A12DF\";\n\t\tstmt.setString(1,str);\n\t\t//executing the query\n\t\t//ResultSet rs=stmt.executeQuery(\"select * from BANK where ID='\"+str+\"'\");\n\t\tResultSet rs=stmt.executeQuery();\n\t\twhile(rs.next())\n\t\t\tSystem.out.println(rs.getString(1)+\" \"+rs.getInt(2)+ \" \"+rs.getString(3));\n\t\t \n\t\t\n\t\t//closing the connection\n\t\t con.close();\n\t\t */\n\t\t\n\t}", "public static void main(String args[]) throws ClassNotFoundException, SQLException{\n }", "public static void main(String[] args) throws SQLException\n {\n connect_php cp = new connect_php();\n cp.connect_php();\n \n }", "public static void main(String[] args) {\n\t\tConnection conn = null;\r\n\t\tString url = \"jdbc:mysql://localhost:3306/\";\r\n\t\tString databaseName = \"mydatabase\";\r\n\t\tString username = \"root\";\r\n\t\tString password = \"root\";\t\t\r\n\t\ttry {\r\n\t\t\t//Class.forName(\"com.mysql.cj.jdbc.Driver\"); //depreciated\r\n\t\t\tconn = DriverManager.getConnection(url+databaseName,username,password);\r\n\t\t\t//String sqlQuery = \"Select * from signupdetails\";\r\n\t\t\tString sqlQuery = \"Select * from signupdetails ORDER BY s_id DESC\";\r\n\t\t\tStatement statement = conn.createStatement();\r\n\t\t\tResultSet result = statement.executeQuery(sqlQuery);\r\n\t\t\tresult.next();\r\n\t\t\tSystem.out.println(result.getString(\"LastName\"));\t\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tif(conn != null) {\r\n\t\t\t\tconn = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n System.out.println(\"-------- PostgreSQL \"\r\n + \"JDBC Connection Testing ------------\");\r\n\r\n try {\r\n\r\n Class.forName(\"org.postgresql.Driver\");\r\n\r\n } catch (ClassNotFoundException e) {\r\n\r\n System.out.println(\"Where is your PostgreSQL JDBC Driver? \"\r\n + \"Include in your library path!\");\r\n e.printStackTrace();\r\n return;\r\n\r\n }\r\n\r\n System.out.println(\"PostgreSQL JDBC Driver Registered!\");\r\n\r\n (new NewClass()).dbConnect();\r\n\r\n }", "public static void main(String[] args) throws Exception {\n\t\t\n\t\tint [] num = new int[10];\n\t\tstoreRandomNumbers(num);\n\t\tConnectToSqlDB connectToSqlDB = new ConnectToSqlDB();\n\t\tString DATABASE_URL = \"jdbc:mysql://localhost:3306/SortingNumbers\";\n\t\t Connection connection;\n\t\t Statement statement;\n\t\t ResultSet resultSet;\n\t\tString query;\n public ConnectToSqlDB() {\n\t\t\ttry{\n\t\t\t\t//connect to the database and create the Prepared Statements\n\t\t\t\t//latest version jdbc driver\n\t\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t\t\tconnection=DriverManager.getConnection(DATABASE_URL,\"root\",\"christniru\");\n\t\t\t\tstatement=connection.createStatement();\n\t\t\t}catch(Exception e){ System.out.println(e);}\n\t\t}", "private static void runDDL(String JDBC_DRIVER, String DB_URL, String USER, String PASS, String sql) {\r\n\r\n\t\tConnection conn = null;\r\n\t\tStatement stmt = null;\r\n\t\ttry {\r\n\t\t\t// STEP 2: Register JDBC driver\r\n\t\t\tSystem.out.println(\"Loading driver...\");\r\n\t\t\tClass.forName(JDBC_DRIVER);\r\n\r\n\t\t\t// STEP 3: Open a connection\r\n\t\t\tSystem.out.println(\"Connecting to database...\");\r\n\t\t\t\r\n\t\t\tif (USER.equals(\" \") && PASS.equals(\" \")) {\r\n\t\t\t\tconn = DriverManager.getConnection(DB_URL);\r\n\t\t\t} else {\r\n\t\t\t\tconn = DriverManager.getConnection(DB_URL, USER, PASS);\r\n\t\t\t}\r\n\r\n\t\t\t// STEP 4: Execute a query\r\n\t\t\tSystem.out.println(\"Creating statement...\");\r\n\t\t\tstmt = conn.createStatement();\r\n\r\n\t\t\t// ResultSet rs = null;\r\n\t\t\tstmt.executeUpdate(sql);\r\n\t\t\t// stmt.executeQuery(sql);\r\n\r\n\t\t\t// STEP 5: Extract data from result set\r\n\r\n\t\t\t/*\r\n\t\t\t * while (rs.next()) { // Retrieve by column name //int id =\r\n\t\t\t * rs.getInt(\"id\"); //String name = rs.getString(\"name\");\r\n\t\t\t * \r\n\t\t\t * // Display values //System.out.print(\"ID: \" + id);\r\n\t\t\t * //System.out.println(\", name: \" + name); }\r\n\t\t\t */\r\n\r\n\t\t\tSystem.out.println(\"[\" + DB_URL.substring(0, (DB_URL.length() - 1)) + \"]: sql success\");\r\n\t\t\tsuccessful = true;\r\n\r\n\t\t\t// rs.close();\r\n\t\t\tstmt.close();\r\n\t\t\tconn.close();\r\n\t\t} catch (SQLException se) {\r\n\t\t\t// Handle errors for JDBC\r\n\t\t\t//se.printStackTrace();\r\n\t\t\tSystem.out.println(\"[\" + DB_URL.substring(0, (DB_URL.length() - 1)) + \"]: sql failed\");\r\n\t\t} catch (Exception e) {\r\n\t\t\t// Handle errors for Class.forName\r\n\t\t\t//e.printStackTrace();\r\n\t\t\tSystem.out.println(\"[\" + DB_URL.substring(0, (DB_URL.length() - 1)) + \"]: sql failed\");\r\n\t\t} finally {\r\n\t\t\t// finally block used to close resources\r\n\t\t\ttry {\r\n\t\t\t\tif (stmt != null)\r\n\t\t\t\t\tstmt.close();\r\n\t\t\t} catch (SQLException se2) {\r\n\t\t\t} // nothing we can do\r\n\t\t\ttry {\r\n\t\t\t\tif (conn != null)\r\n\t\t\t\t\tconn.close();\r\n\t\t\t} catch (SQLException se) {\r\n\t\t\t\tse.printStackTrace();\r\n\t\t\t} // end finally try\r\n\t\t} // end try\r\n\t\t\t// System.out.println(\"Goodbye!\");\r\n\r\n\t}", "public static void main(String[] args) throws SQLException {\n choiceProgram();\n }", "@Test\r\n\tpublic void testHiveJdbc(){\n\t\tString sql = \"select * from data limit 20\";\r\n\t\tQueryRunner runner = new QueryRunner(DbUtil.getConnection());\r\n\t\trunner.query(sql, rs->{\r\n\t\t\tResultSetMetaData metaData = rs.getMetaData();\r\n\t\t\tint columnCount = metaData.getColumnCount();\r\n\t\t\tfor (int i = 0; i < columnCount; i++) {\r\n\t\t\t\tSystem.out.print(rs.getObject(columnCount));\r\n\t\t\t\tSystem.out.print(\"\\t\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t\treturn null;});\r\n\t}", "public static void main(String[] unused) throws SQLException {\n Connection connection = SQLConnector.getTestInstance().getConnection();\n\n if (null != connection && !connection.isClosed()) {\n System.out.println(\"Connection successfully established.\");\n } else {\n System.err.println(\"Establishing the connection failed!\");\n }\n\n connection.close();\n }", "public static void main(String[] args) throws SQLException {\n\t\t\n\t\tConnection connection = null;\n\n\t\ttry {\n\t\t\t// loading properties file\n\t\t\tProperties properties = new Properties();\n\n\t\t\tproperties.load(new FileInputStream(\"connection.properties\"));\n\n\t\t\t// reading properties content\n\t\t\tString thisURL = properties.getProperty(\"databaseURL\");\n\t\t\tString thisUser = properties.getProperty(\"user\");\n\t\t\tString thisPass = properties.getProperty(\"pass\");\n\n\t\t\t// now, create connection for database\n\t\t\tconnection = DriverManager.getConnection(thisURL, thisUser, thisPass);\n\n\t\t\tSystem.out.println(\"Database connection successful\");\n\t\t\tSystem.out.println(\"-------------------------------\");\n\t\t\t// System.out.println(\"reading database connection from a properties file\");\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"OOps! Database Configuration file load problem\");\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Database connection error\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tconnection.close();\n\t\t}\n\n\t}", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n\t\t\n\t\tClass.forName(\"org.apache.derby.jdbc.ClientDriver\");\n\t\tJdbcRowSet rowSet = RowSetProvider.newFactory().createJdbcRowSet();\n\t\trowSet.setUrl(\"jdbc:derby://localhost:1527/hsbcdb\");\n\n\t}", "public static void main(String[] args) throws SQLException, ClassNotFoundException {\n\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\r\n\t\tConnection con=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/employeeportal\",\"root\",\"tree\");\r\n\r\n\t\tStatement s=con.createStatement();\r\n\r\n\t\tResultSet rs=s.executeQuery(\"select * from employeeinfo\");\r\n\r\n while(rs.next())\r\n {\r\n\t System.out.println(\"Name \"+rs.getString(1));\r\n\t System.out.println(\"Location \"+rs.getString(3));\r\n }\r\n\t}", "public static void main(String[] args)\n\t{\n\t\t\n\t\tMySQL mySQL = new MySQL();\n\t\tmySQL.setAddress(\"localhost\");\n\t\tmySQL.setPort(3306);\n\t\tmySQL.setUsername(\"luke\");\n\t\tmySQL.setPassword(\"123\");\n\t\tmySQL.setDatabaseName(\"user_system\");//Name of data base\n\t\t\n\t\tString cmdStr = \"\";\n\t\t//initial\n\t\tif( mySQL.initial() == false )\n\t\t{\n\t\t\tSystem.out.println(mySQL.getErrorMessage());\n\t\t}\t\t\n\t\t\n\t\tSystem.out.println(\"Connecting to SQL\");\n\t\tif( mySQL.connectToMySQL() == false )\n\t\t{\n\t\t\tSystem.out.println(mySQL.getErrorMessage());\n\t\t}\t\n\t\t\n\t\t//create table\n\t\tcmdStr = \"create table mytable(name char(10),id int);\";\n\t\tif( mySQL.insertData_raw(cmdStr) == false )\n\t\t{\n\t\t\tSystem.out.println(mySQL.getErrorMessage());\n\t\t\treturn;\t\t\t\t\n\t\t}\t\t\n\t\tSystem.out.println(\"create table finished\");\n\t\t\n\t\t//insert Value by raw cmd\n\t\tString name = \"Hello\";\n\t\tString idStr = \"1\";\n\t\tcmdStr = \"insert into mytable(name, id) values(\\\"\" + name + \"\\\", \" + idStr + \");\";\n\t\tif( mySQL.insertData_raw(cmdStr) == false )\n\t\t{\n\t\t\tSystem.out.println(mySQL.getErrorMessage());\n\t\t\treturn;\t\t\t\t\n\t\t}\t\t\n\t\t\n\t\t//insert Value by function\n\t\tString tableName = \"mytable\";\n\t\tObject[] valueList = new Object[2];\n\t\tvalueList[0] = new String(\"World\");\n\t\tvalueList[1] = new Integer(2);\n\t\tif( mySQL.insertData(tableName, valueList) == false )\n\t\t{\n\t\t\tSystem.out.println(mySQL.getErrorMessage());\n\t\t\treturn;\t\t\n\t\t}\n\t\tSystem.out.println(\"insert value finished\");\n\t\t\n\t\t\n\t\t//Output Value\n\t\tSystem.out.println(\"Get data from mytable:\");\n\t\ttableName = \"mytable\";\n\t\tString[] columnList = new String[2];\n\t\tcolumnList[0] = \"name\";\n\t\tcolumnList[1] = \"id\";\n\t\t//columnList[2] = \"passwd\";\n\t\tResultSet result = mySQL.outputData(tableName, columnList, false);\n\t\tif( result == null )\t{ System.out.println(mySQL.getErrorMessage()); }\n\t\telse\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tSystem.out.println(\"name\\t\\tID\\t\\t\"); \n\t\t\t\twhile(result.next())\n\t\t\t\t{ \n\t\t\t\t System.out.println(result.getString(\"name\")+\"\\t\\t\"+ result.getInt(\"id\")+\"\\t\\t\"); \n\t\t\t\t}\t\t\n\t\t\t}\n\t\t\tcatch(SQLException ignore) \n\t\t\t{ \n\t\t\t\tSystem.out.println(\"result get errer\");\n\t\t\t} \t\t\t\n\t\t}\t\t\n\t\t\t\t\n\t\t\n\t\t//destory table\n\t\tcmdStr = \"drop table mytable;\";\n\t\tif( mySQL.insertData_raw(cmdStr) == false )\n\t\t{\n\t\t\tSystem.out.println(mySQL.getErrorMessage());\n\t\t\treturn;\t\t\t\t\n\t\t}\t\t\n\t\tSystem.out.println(\"drop table finished\");\t\t\t\n\t\t\n\t\tif( mySQL.disConnect() == false )\n\t\t{\n\t\t\tSystem.out.println(mySQL.getErrorMessage());\n\t\t}\n\t\tSystem.out.println(\"Disconnect from SQL\");\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tString sql = \"create table coemployee(name varchar(20), empId integer primary key, city varchar(20))\";\n\t\tString url = \"jdbc:oracle:thin:@localhost:1521:xe\";\n\t\tString userName = \"system\";\n\t\tString password = \"2020\";\n\t\tConnection connection = null;\n\t\tPreparedStatement ps = null;\n\t\t// establish a connection\n\n\t\ttry {\n\t\t\tconnection = DriverManager.getConnection(url, userName, password);\n\t\t\tps = connection.prepareStatement(sql);\n\t\t\tSystem.out.println(\"created\"+ps.execute());\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (ps != null)\n\t\t\t\t\tps.close();\n\t\t\t\tif (connection != null)\n\t\t\t\t\tconnection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException, SQLException {\n\t\toracleConnecction oc = new oracleConnecction();\n\t\tConnection con ;\n\t\tResultSet rs;\n\t\tSystem.out.println(\".\"+File.separator+\"src\"+File.separator+\"oracleDbConnection\"+File.separator+\"config\");\n\t\tString query = \"Select * from test1\";\n\t\tcon = oc.start();\n\t\trs = oc.exicutionSelect(con, query);\n\t\toc.displayQueryResult(rs);\n\t\toc.close(con);\n\n\t}", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n\t\tString url = \"jdbc:mysql://localhost:3306/ecomm\";\n\t\tString name = \"root\";\n\t\tString password = \"root\";\n\t\tDbConnection dbobj = new DbConnection(url, name, password);\n\t\tStatement statement = dbobj.getConnection().createStatement();\n//\t\tstatement.executeUpdate(\"insert into eproduct (name,price,date_added) values('Smartwatch',9300,now());\");\n//\t\tstatement.executeUpdate(\"create database shubh\");\n//\t\tstatement.executeUpdate(\"drop database shubh\");\n\t\tstatement.executeUpdate(\"update eproduct set name='Bluetooth Handfree' where id = 3\");\n\t\tCallableStatement stmt = dbobj.getConnection().prepareCall(\"{call add_product(?,?)}\");\n\t\tstmt.setString(1, \"Airbuds\");\n\t\tstmt.setInt(2,5000);\n\t\tstmt.executeUpdate();\n\t\tResultSet rst = statement.executeQuery(\"select * from eproduct\");\n\t\twhile(rst.next()) {\n\t\t\tSystem.out.println(\"Id :\" + rst.getString(\"id\"));\n\t\t\tSystem.out.println(\"Name :\" + rst.getString(\"name\"));\n\t\t\tSystem.out.println(\"Price :\" + rst.getString(\"price\"));\n\t\t}\n\t\t\n\t\tdbobj.closeConnection();\n\t\t\n\n\t}", "public static void main(String[] args) {\n System.out.println(\"-- Batch Example Songs. Data rows from CSV --\");\n System.out.println(\"----> PreparedStatement !!\");\n MysqlConnect my = MysqlConnect.getDbCon();\n\n System.out.println(\"\\nUsing executeUpdate\");\n batchInsertRecordsIntoTable(my, false);\n\n System.out.println(\"\\nUsing addBatch - executeBatch\");\n batchInsertRecordsIntoTable(my, true);\n\n try {\n my.conn.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\tTestDBOperations ob=new TestDBOperations();\n\t\tob.insertRecord();\n\t\tob.fetchRecords();\n\t}", "public static void main(String[] args) {\ntry{ \r\n\t\t\t\r\n\t\t\tConnection con=DriverManager.getConnection( \r\n\t\t\t\"jdbc:mysql://localhost:3306/savion\",\"root\",\"root@0412\"); \r\n\t\t\tStatement stmt=con.createStatement(); \r\n\t\t\tResultSet rs=stmt.executeQuery(\"select uid,username from userdetails\"); \r\n\t\t\twhile(rs.next()) \r\n\t\t\tSystem.out.println(rs.getInt(1)+\" \"+rs.getString(2)); \r\n\t\t//\tstmt.executeUpdate(\"INSERT INTO userdetails \" + \"VALUES (2,'Savio','1243',48448)\");\r\n\t\t//\tcon.commit();\r\n\r\n}\r\n\t\tcatch(Exception e){\r\n\t\t\t\r\n\t\t\r\n\t}\r\n\t\r\n\r\n\t}", "public static void main(String[] args) throws SQLException {\n \tConnection con = DriverManager.getConnection(\"jdbc:h2:~/test\", \"sa\",\"\");\n\n // 2) Create statement/Query\n Statement stmt = con.createStatement();\n\n String s = \"select * from customerinfo limit 1\";\n\n // 3,4) Execute statement/Query & Store data in resultset\n ResultSet rs = stmt.executeQuery(s);\n\n \n CustomerDetails cd=new CustomerDetails();\n \n while (rs.next()) {\n String bookname = rs.getString(\"BookName\");\n String purchasedate = rs.getString(\"PurchasedDate\");\n int amount = rs.getInt(\"Amount\");\n String location = rs.getString(\"Location\");\n System.out.println(bookname + \" \" + purchasedate + \" \" + amount+\" \"+location);\n }\n\n // 5) close connection\n con.close();\n\n System.out.println(\"Query executed.....\");\n }", "public static void main(String[] args) {\n\ttry {\r\n\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\tConnection connection= DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:orcl\",\"hr\",\"hr\");\r\n\t\tStatement statement=connection.createStatement();\r\n\t\tResultSet resultset= statement.executeQuery(\"select * from employees\");\r\n\t\twhile(resultset.next())\r\n\t\t{\r\n\t\t\tint employeeId=resultset.getInt(1);\r\n\t\t\tString firstName=resultset.getString(2);\r\n\t\t\tSystem.out.println(employeeId+\"->\"+firstName);\r\n\t\t}\r\n\t}\r\n\tcatch (ClassNotFoundException e) {\r\n\t\t\r\n\t\tSystem.out.println(e);\r\n\t} catch (SQLException e) {\r\n\t\r\n\t\te.printStackTrace();\r\n\t}\r\n}", "public static void main(String[] args) throws SQLException {\n\t\tBasicDataSource dataSource = new BasicDataSource();\n\t\tdataSource.setUrl(\"jdbc:postgresql://localhost:5432/dvdstore\");\n\t\tdataSource.setUsername(\"postgres\");\n\t\tdataSource.setPassword(System.getenv(\"DB_PASSWORD\"));\n\t\n\t\t\n\t\tConnection conn = dataSource.getConnection();\n\t\t\n\t\t/* Create a Statement object so that we can execute a SQL Query */\n\t\tStatement stmt = conn.createStatement();\n\t\t\n\t\t//SQL command - Try this with VS Code to get it working first\n\t\tString filmsUnder90Minutes = \"SELECT film_id, title, description, length FROM film WHERE length < 90; \";\n\t\t\n\t\t//execute the sql command\n\t\tResultSet results = stmt.executeQuery(filmsUnder90Minutes);\n\t\t\n\t\twhile(results.next()) {\n\t\t\tString title = results.getString(\"title\");\n\t\t\tString description = results.getString(\"description\");\n\t\t\tint length = results.getInt(\"length\");\n\t\t\t\n\t\t\tSystem.out.format(\"%-25s %-10d\\n\", title,length);\n\t\t}\n\t\t\n\t\t//we want to know all films starring zero cage\n\t\t//SECURITY VULNERABILITY\n\t\t\n\t\t//String firstName = \"Zero'; DROP table film_category; --\"; SQL INJECTION ATTACK\n\t\tString firstName = \"Zero\";\n\t\tString lastName = \"Cage\";\n\t\t\n\t\tString filmsStarringActor = \"SELECT title \\r\\n\" + \n\t\t\t\t\"FROM film f\\r\\n\" + \n\t\t\t\t\"JOIN film_actor fa ON f.film_id = fa.film_id\\r\\n\" + \n\t\t\t\t\"JOIN actor a ON a.actor_id = fa.actor_id\\r\\n\" + \n\t\t\t\t\"WHERE a.first_name = '\"+firstName.toUpperCase()+\"' and a.last_name = '\"+lastName.toUpperCase()+\"';\";\n\t \n\t\tresults = stmt.executeQuery(filmsStarringActor);\n\t\t\n\t\tSystem.out.println(\"FILMS STARRING ZERO CAGE\");\n\t\t\n\t\twhile(results.next()) {\n\t\t\tString title = results.getString(\"title\");\n\t\t\n\t\t\tSystem.out.println(title);\n\t\t} \n\t\t\n\t\tdataSource.close();\n\t}", "public static void main(String[] args)\r\n\t{\n\r\n\t\tfinal Connection connection = getConnection(DB_URL, DB_USER, DB_PASSWORD);\r\n\t\t// String query = \"INSERT INTO VALID_ITEM (ID, NAME, QUANTITY,PRICE)\" + \"VALUES ( 1,'sandeep' ,10 ,22 )\";\r\n\t\tString query = \"select * from valid_item\";\r\n\t\tSystem.out.println(JDBCUtil.read(connection, query));\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tConnection conn =null;\n\t\t//1.加载MySQL数据库驱动\n\t\t\n\t\tString url=\"jdbc:mysql://localhost:3306/school?useUnicode=true&characterEncoding=UTF-8\"; //连接数据库的URL地址\n\t\tString username=\"root\";//数据库的用户名\n\t\tString password=\"\";//数据库的密码\n\t\t\n \ttry\n \t{\n \t\tClass.forName(\"com.mysql.jdbc.Driver\");\n //2.建立数据库连接\n \t\tconn = DriverManager.getConnection(url, username, password);\n \t\tif(conn!=null)\n \t\t{\n \t\t\tSystem.out.println(\"数据库连接正常!\");\n \t\t}\n \t\telse\n \t\t{\n \t\t\tSystem.out.println(\"数据库连接失败!\");\n \t\t}\n \t\t\n \t\t//3.创建语句对象\n \t\tStatement stmt = conn.createStatement();\n \t\tString sql = \"insert into Students values (7,'张学友',18,'m','[email protected]','西安市长安区');\";\n \t //4.执行语句\n \t\tint result = stmt.executeUpdate(sql);\n \t\tif(result>0)\n \t\t{\n \t\t\tSystem.out.println(\"添加成功!\");\n \t\t}\n \t\telse\n \t\t{\n \t\t\tSystem.out.println(\"添加失败!\");\n \t\t}\n \t}\n \tcatch(Exception ex)\n \t{\n \t\tex.printStackTrace();\n \t}\n \tfinally\n \t{\n \t\t//5.释放资源\n \t\tif(conn!=null)\n \t\t{\n \t\t\ttry {\n\t\t\t\t\tconn.close();\n\t\t\t\t conn=null;\n \t\t\t} catch (SQLException 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}\n \t}\n \t\n\t}", "public static void main(String[] args) {\n\t\ttry{\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/test\",\"root\",\"root\");\r\n\t\tStatement st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);\r\n\t\tResultSet rs = st.executeQuery(\"select * from test\");\r\n\t\t\r\n\t\trs.next();\r\n\t\trs.updateInt(\"id\", 1);\r\n\t\trs.updateString(\"name\", \"sb\");\r\n\t\trs.updateRow();\r\n\t\t\r\n\t\trs.moveToCurrentRow();\r\n\t\trs.updateInt(1, 999);\r\n\t\trs.insertRow();\r\n\t\trs.moveToCurrentRow();\r\n\t\t\r\n\t\trs.absolute(5);\r\n\t\trs.deleteRow();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tConnection conn = null; // DB연결된 상태(세션)을 담은 객체\n PreparedStatement pstm = null; // SQL 문을 나타내는 객체\n ResultSet rs = null; // 쿼리문을 날린것에 대한 반환값을 담을 객체\n\t\ttry {\t\n\t\t\tint count =0;\n\t\t\tBUYTBL[] buytbl = new BUYTBL[50];\n//\t\t\t Class.forName(\"oracle.jdbc.driver.OracleDriver\");\n//\t\t\t Connection con = DriverManager.getConnection(\"jdbc:oracle:thin:@localhost:1521:orcl\",\"hr\",\"123456\");\n\t\t\tconn = DBConnection.getConnection();\n\t\t\t // 프로시저 호출\n\t\t\t CallableStatement cs = conn.prepareCall(\"begin add_buytbl(?,?,?,?,?,?,?); end;\");\n\t\t\t // 입력 파라메터\n\t\t\t cs.setInt(1, 30);\n\t\t\t cs.setString(2, \"SSK\");\n\t\t\t cs.setString(3, \"운동화\");\n\t\t\t cs.setString(4, null);\n\t\t\t cs.setInt(5, 100);\n\t\t\t cs.setInt(6, 3);\n\t\t\t cs.setString(7, \"코멘트\");\n\t\t\t cs.execute();\n\t\t\t int seq= cs.executeUpdate();\n//\t\t\t ResultSet rs = (ResultSet)cs.getObject(1);\n\t\t\t \n\t\t\t if ( seq ==0 )\n\t\t\t {\n\t\t\t\t System.out.println(seq+\"값\");\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t System.out.println(seq+\"값\");\n\t\t\t }\n\t\t\t \n//\t\t\t rs.close();\n\t\t\t cs.close();\n\t\t\t conn.close();\n\t\t\t } catch(Exception e){\n\t\t\t e.printStackTrace();\n\t\t\t }\n\t}", "public static void main(String[] args) {\n\t\tConnection con=null;\n\t\ttry {\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\t\tcon=DriverManager.getConnection(\"jdbc:oracle:thin:@apollo.vse.gmu.edu:1521:ite10g\",\"pdatla2\",\"phejyc\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t\tint i=0;\n\t\tint j=1;\n\t\ttry\n\t\t{\n\t\t\t//ArrayList<String> l1= new ArrayList<String>();\n\t\t\tStatement st;\n\t\t\tSystem.out.println(\"List of Employees part of the Research Department:\");\n\t\t\tst = con.createStatement();\n\t\t\tResultSet rs=st.executeQuery(\"select E.Lname, E.ssn from Employee E, Department D where E.Dno=D.Dnumber and Dname='Research'\");\n\t\t\t//i=ps.executeUpdate();\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tSystem.out.println(j+\")\");\n\t\t\t\tSystem.out.print(\"Last Name: \"+rs.getString(1));\n\t\t\t\tSystem.out.println(\"\tSSN: \"+rs.getString(2));\n\t\t\t\tj++;\n\t\t\t\t//l1.add(rs.getString(1));\n\t\t\t}\n\t\t} \n\t\t\n\t\tcatch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//System.out.println(\"catch block in studentDAO reached\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "public static void main(String[] args) throws NumberFormatException, IOException, ClassNotFoundException, SQLException {\n\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\tString url=\"jdbc:mysql://localhost:3306/ctspune\";\r\n\t\tConnection conn=DriverManager.getConnection(url,\"root\",\"root\");\r\n\t\t//String query=\"insert into employee values(?,?,?,?,?)\";\r\n\t\t//String query=\"delete from employee where id=?\";\r\n\t\t\r\n\t\tString query=\"select*from employee\";\r\n\t\tPreparedStatement ps=conn.prepareStatement(query);\r\n\t\tResultSet rs=ps.executeQuery(query);\r\n\t\tint i=1;\r\n\t\t\r\n\t\twhile(rs.next())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Employee\"+i+\"Records\");\r\n\t\t\tSystem.out.println(\"Id\"+rs.getInt(1));\r\n\t\t\tSystem.out.println(\"Name\"+rs.getString(2));\r\n\t\t\tSystem.out.println(\"Address\"+rs.getString(3));\r\n\t\t\tSystem.out.println(\"Age\"+rs.getInt(4));\r\n\t\t\tSystem.out.println(\"Phone\"+rs.getLong(5));\r\n\t\t\ti++;\r\n//\t\t\tint id=rs.getInt(1);//instead of 1 we can also write column name linke rs.getInt(\"id\")\r\n//\t\t\tString name=rs.getString(2);\r\n//\t\t\tString address=rs.getString(3);\r\n//\t\t\tint age=rs.getInt(4);\r\n//\t\t\tlong phone=rs.getLong(5);\r\n//\t\t\tSystem.out.println(id +\":\"+name+\":\"+address+\":\"+age+\":\"+phone);\r\n\t\t}\r\n\t\t}", "public static void main(String[] args) {\n\t\tConnection con =null;\r\n\t\ttry {\r\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tSystem.out.println(\"Driver not found\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tString url=\"jdbc:oracle:thin:@localhost:1521:orcl\";\r\n\t\tString username=\"hr\";\r\n\t\tString password=\"hr\";\r\n\t\t// 2. Get connection\r\n\t\ttry {\r\n\t\t\tcon =DriverManager.getConnection(url,username,password);\r\n\t\t\tDriverManager.getConnection(url,username,password);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"Connection failed\"+e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// database metadata\r\n\t\ttry {\r\n\t\t\tDatabaseMetaData dbmeta = con.getMetaData();\r\n\t\t\tSystem.out.println(dbmeta.toString());\r\n\t\t\tSystem.out.println(dbmeta.getDatabaseMajorVersion());\r\n\t\t\tSystem.out.println(dbmeta.getDatabaseProductName());\r\n\t\t\t}catch(SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t// Create statement object\r\n\t\tString sql=\"select employee_id, first_name, last_name from employees\";\r\n\t\ttry {\r\n\t\t\tStatement st =con.createStatement();\r\n\t\t\tResultSet rs=st.executeQuery(sql);\r\n\t\t\t\r\n\t\t\tResultSetMetaData rsmd =rs.getMetaData();\r\n\t\t\tint colcount =rsmd.getColumnCount();\r\n\t\t\tSystem.out.println(\"Colcount:\"+colcount);\r\n\t\t\tint count=0;\r\n\t\t\tint type = rsmd.getColumnType(2);\r\n\t\t\tif(type == Types.INTEGER) {\r\n\t\t\t\tSystem.out.println(\"Col has Intehger type\");\r\n\t\t\t}\r\n\t\t\telse if(type == Types.VARCHAR) {\r\n\t\t\t\tSystem.out.println(\"col is a string (varchar)\");\r\n\t\t\t}else if (type == Types.NUMERIC) {\r\n\t\t\t\tSystem.out.println(\"Col is type numeric\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(rsmd.getColumnTypeName(1));\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\t\r\n\t\t\t\t//String fname =rs.getString(\"first_name\");\r\n\t\t\t\t\r\n\t\t\t\t//System.out.println(fname);\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(count);\r\n\t\t\trs.close();\r\n\t\t\tst.close();\r\n\t\t\tcon.close();\r\n\r\n\t\t} catch(SQLException sqle) {\r\n\t\t\tSystem.out.println(sqle.getMessage());\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tnew DB().getConnection();\r\n\r\n\t}", "public static void main(String[] argv) throws SQLException {\n\n\t\ttry {\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\t/*\n\t\t * Establishing connection\n\t\t */\n\n\t\ttry {\n\t\t\tdbconn = DriverManager.getConnection(\n\t\t\t\t\t\"jdbc:postgresql://178.63.131.184:5432/dbwa2\", \"dbwa2\",\n\t\t\t\t\t\"diku2012\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Your internet connection or my server is dead.. :(\");\n\t\t\treturn;\n\t\t}\n\n\t\t/*\n\t\t * If connection were successfully established, then run\n\t\t * printCategoryTable(); and afterwards close the connection.\n\t\t */\n\n\t\tif (dbconn != null) {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"Fetching and formating data, please wait a few seconds!!\\n\\n\");\n\t\t\tprintCategoryTable();\n\t\t\tdbconn.close();\n\t\t} else {\n\t\t\tSystem.out.println(\"Failed to make connection!\");\n\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tString driver = \"com.mysql.jdbc.Driver\";\n\t\tString url = \"jdbc:mysql://127.0.0.1:3306/mydb\";\n\t\tString user = \"root\";\n\t\tString password = \"longwear\";\n\t\t\n\t\t\n\t}", "public static void main(String[] args) throws Exception\n {\n String url=\"jdbc:mysql://localhost:3306/student\";\n String uname = \"root\";\n String pass = \"\";\n\n //Actual database query we want to perform\n String query = \"select name from studentinfo where id_no=2\";\n\n //Loading the JDBC Driver in JVM using Class.forName()\n Class.forName(\"com.mysql.jdbc.Driver\");\n\n //Establishing the Connection with DB\n Connection con = DriverManager.getConnection(url,uname,pass) ;\n\n //Creating the statement to perform the query\n Statement st = con.createStatement();\n\n //ResultSet contains the result of the query in execution\n // :: it contains the rows that satisfies the condtion of provided query\n ResultSet rs = st.executeQuery(query);\n\n //rx.next() moves the pointer to the next row\n rs.next();\n\n //Storing the given returned data from database to the name variable\n String name = rs.getString(\"name\");\n System.out.println(name);\n\n st.close();\n con.close();\n\n }", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n\t\t\n\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t\n\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/testdb\", \"root\", \"\");\n\t\t\n PreparedStatement smt = new PreparedStatement(\"Insert into employee values(?, ?, ?)\");\n \n smt.setString(2, \"Alson\");\n smt.setString(3, \"Manager\");\n smt.setInt(4, 60000);\n\t\t\n int i = smt.executeUpdate(sql);\n \n System.out.println(i + \" rows affected\");\n\n con.close();\n\t}", "public static void main(String[] args) {\n\t\tString jdbcurl = \"jdbc:mysql://localhost:3306/hb_student_tracker?useSSL=false\";\n\t\tString username = \"hbstudent\";\n\t\tString password = \"hbstudent\";\n\t try {\n\t\t System.out.println(\"connecting to mysql\" + jdbcurl);\n\t\t Connection mycon = DriverManager.getConnection(jdbcurl,username,password);\n\t\t System.out.println(\"connecting to mysql\");\n\t }catch(Exception ex) {\n\t\t ex.printStackTrace();\n\t }\n\n\t}", "public static void main(String[] args) {\n\t\tString DB_DRIVER = \"com.mysql.cj.jdbc.Driver\";\r\n\t\tString DB_URL = \"jdbc:mysql://192.168.150.128:3306/testdb\";\r\n\t\tString DB_USERNAME = \"lrjmysql\"; \r\n\t\tString DB_PASSWORD = \"Qwer.1234\";\r\n\t\t\r\n\t\t//创建连接池实例\r\n ComboPooledDataSource ds = new ComboPooledDataSource();\r\n try {\r\n \t//设置连接池连接数据库所需的驱动\r\n\t\t\tds.setDriverClass(DB_DRIVER);\r\n\t\t\t//设置连接数据库的URL\r\n\t\t\tds.setJdbcUrl(DB_URL);\r\n\t\t\t//设置接连数据库的用户名\r\n\t\t\tds.setUser(DB_USERNAME);\r\n\t\t\t//设置连接数据库的密码\r\n\t\t\tds.setPassword(DB_PASSWORD);\r\n\t\t\t//设置连接池的最大连接数\r\n\t\t\tds.setMaxPoolSize(40);\r\n\t\t\t//设置连接池的最小连接数\r\n\t\t\tds.setMinPoolSize(10);\r\n\t\t\t//设置连接池的初始连接数\r\n\t\t\tds.setInitialPoolSize(10);\r\n\t\t\t//设置连接池的缓存Statement的最大数\r\n\t\t\tds.setMaxStatements(180);\r\n\t\t\t//以上也可以通过新建一个配置文件,命名必须为c3p0-config.xml,\r\n\t\t\t//必须放在src目录下,c3p0包会默认加载src目录下的c3p0-config.xml文件。来实现相关设置\r\n\t\t\t//可参考 https://blog.csdn.net/qq_42035966/article/details/81332343\r\n\t\t\t\r\n\t\t\t//获取数据库连接\r\n\t\t\tConnection conn = ds.getConnection();\r\n\t\t\tSystem.out.println(\"获取数据库连接成功\");\r\n\t\t\t\r\n\t\t} catch (PropertyVetoException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n \r\n \r\n\t}", "public static void main(String[] args) {\n\t\tStringBuilder sb = new StringBuilder(\"create table Books(\");\r\n\t\tsb.append(\"id integer, \");\r\n\t\tsb.append(\"title varchar(25), \");\r\n\t\tsb.append(\"author varchar(25), \");\r\n\t\tsb.append(\"publication date, \");\r\n\t\tsb.append(\"price float, \");\r\n\t\tsb.append(\"quantity integer, \");\r\n\t\tsb.append(\"rating float)\");\r\n\r\n\t\tString sql = sb.toString();\r\n\t\tSystem.out.println(sql);\r\n\r\n\t\t// 2. set the db url\r\n//\t\tString url = \"jdbc:derby://localhost:1527/db1\";\r\n\t\tString url = \"jdbc:sqlserver://localhost:1433;databaseName=db1;user=eldar1;password=pass1\";\r\n\r\n\t\t// 3. establish connection\r\n\t\ttry (Connection con = DriverManager.getConnection(url + \";create=true\");) {\r\n\t\t\t// 4. get a statement object from the connection\r\n\t\t\tStatement stmt = con.createStatement();\r\n\r\n\t\t\t// 5. execute the sql\r\n\t\t\tstmt.executeUpdate(sql);\r\n\t\t\tSystem.out.println(\"table created\");\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tClass.forName(\"oracle.jdbc.driver.OracleDriver\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Driver loaded\");\n\t\ttry {\n\t\t\tConnection con=DriverManager.getConnection(\"jdbc:oracle:thin:@LOCALHOST:1521:XE\",\"system\",\"password\");\n\t\t\tSystem.out.println(\"Connected\");\n\t\t\t\n\t\t\tjava.sql.Statement query=(java.sql.Statement) con.createStatement();\n\t\t//\tint size=((java.sql.Statement) query).executeUpdate(\"create table books(bname varchar(10) primary key, sales number(10))\");\n\t\t//\tint size1=((java.sql.Statement) query).executeUpdate(\"insert into books values(? ,? ,?)\");\n\t\t\t/*int sales[]={1001,301,601};\n\t\t\tString bname[]={\"java\",\"C\",\"oracle\"};\n\t\t\tPreparedStatement ps=con.prepareStatement(\"insert into books values(?,?)\");\n\t\t\tfor(int i=0;i<sales.length;i++){\n\t\t\tps.setString(1, bname[i]);\n\t\t\tps.setInt(2, sales[i]);\n\t\t\tps.executeUpdate();\n\t\t}*/\n\t\t\t\n\t\t\tPreparedStatement ps1=con.prepareStatement(\"Update books set sales=? where bname=?\");\n\t\t\tint sales1[]={1,2,3};\n\t\t\tString bname1[]={\"java\",\"C\",\"oracle\"};\n\t\t\tfor(int i=0;i<sales1.length;i++){\n\t\t\t\tps1.setInt(1, sales1[i]);\n\t\t\t\tps1.setString(2, bname1[i]);\n\t\t\t\tps1.executeUpdate();\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tResultSet res=((java.sql.Statement) query).executeQuery(\"Select * from books\");\n\t\t\twhile(res.next()){\n\t\t\t\tSystem.out.println(res.getString(1)+\" \"+res.getInt(2));\n\t\t\t}\t\n\t\t\tres.close();\n\t\t\t((Connection) query).close();\n\t\t\tcon.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\t}", "public static void main(String[] args) throws SQLException {\r\n\t\t\r\n\t\tString sql01 = \"SELECT * FROM producto\";\r\n\t\tString sql02 = \"SELECT * FROM categorias\";\r\n\t\tString sql03 = \"SELECT * FROM producto where id_categoria = {id}\";\r\n\t\tString sql04 = \"SELECT * FROM categorias c JOIN producto p on (p.id_categoria == c.id ) where p.id = {id}\";\r\n\t\t\r\n\t\tDB01 db01 = new DB01();\r\n\t\t\r\n\t\t// Consultas A\r\n\t\tdb01.db.ejecutar(sql01); // CONSULTA A1\r\n\t\tdb01.db.ejecutar(sql02); // CONSULTA A2\r\n\t\tdb01.db.ejecutar(sql03); // CONSULTA A3\r\n\t\tdb01.db.ejecutar(sql04); // CONSULTA A4\r\n\t\t\r\n\t\t// Consultas B\r\n\t\tdb01.db.ejecutarYDevolver(sql01); // CONSULTA B1\r\n\t\tdb01.db.ejecutarYDevolver(sql02); // CONSULTA B2\r\n\t\tdb01.db.ejecutarYDevolver(sql03); // CONSULTA B3\r\n\t\tdb01.db.ejecutarYDevolver(sql04); // CONSULTA B4\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tString url = \"jdbc:mysql://127.0.0.1:3306/mycrmdb?useUnicode=true&characterEncoding=utf-8\"; // 数据库连接字符串,一般使用统一资源定位符(url)的形式\n\n\t\tString user = \"root\"; // 连接数据库时的用户\n\t\tString password = \"root\";\n\t\tConnection conn=null;\n\t\tPreparedStatement pstms=null;\n\t\tResultSet rs=null;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tconn=DriverManager.getConnection(url, user, password);\n\t\t\tString sql=\"select * from employee\";\n\t\t\tpstms=conn.prepareStatement(sql);\n\t\t\trs=pstms.executeQuery();\n\t\t\twhile(rs.next()) {\n\t\t\t\tint empid=rs.getInt(\"empid\");\n\t\t\t\tSystem.out.println(empid);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public static void main(String args[]) throws Exception{\n\t\t\n\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\n\t\tConnection connection = DriverManager.getConnection(\n\t\t\t\t\"jdbc:postgresql://10.1.3.233:5432/postgres\", \"postgres\",\"123456\");\n\t\t\n\t\t//DatabaseMetaData metaData = connection.getMetaData();\n\t\t//System.out.println(metaData.getDatabaseProductName());\n\n\t\tStatement statement = connection.createStatement();\n\t\tResultSet result = statement.executeQuery(\"select * from table1\");\n\t\twhile(result.next()){\n\t\t\tSystem.out.println(result.getString(1));\n\t\t}\n\t\tconnection.close();\n\t}", "public static void main(String[] args){\n System.out.println(\"Registered drivers: \");\n for (Enumeration<Driver> driverEnumeration = DriverManager.getDrivers(); driverEnumeration.hasMoreElements(); ) {\n System.out.println((driverEnumeration.nextElement().getClass().getName()));\n }\n\n try {\n conn = DriverManager.getConnection(url, user, password);\n Statement stmt = conn.createStatement();\n ResultSet resultSet = stmt.executeQuery(\"SELECT * FROM test_table\");\n System.out.println(resultSet);\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tString url = \"jdbc:microsoft:sqlserver://SIVALETI1IN:1433;DATABASANAME=Practice\";\n\t\tString databaseConst = \";databasename=\";\n\t\tString databaseName = url.substring(url.lastIndexOf(\"/\")+1);\n\t\tSystem.out.println(databaseName);\n\t\tif(url.indexOf(\"databasename\") == -1) {\n\t\t\turl = url.substring(0,url.lastIndexOf(\"/\"));\n\t\t\turl = url+databaseConst+databaseName;\n\t\t\t\n\t\t\tSystem.out.println(url);;\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\t \r\n\t \r\n\t try {\r\n\t\tpolaczenie = DriverManager.getConnection(\"jdbc:hsqldb:bazadanych/bazadanych\", \"admin\", \"admin\");\r\n\t\tstatement=polaczenie.createStatement();\r\n\t\trs = statement.executeQuery(\"select * from Mieszkania\");\r\n\t\twhile (rs.next())\r\n\t\t{\r\n\t\t\tSystem.out.println(rs.getString(\"idMieszkania\"));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t} catch (SQLException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n\t}", "public static void main(String[] args){\n try{\n Scanner in = new Scanner(System.in);\n System.out.print(\"Name of the database (not the user account): \");\n DBNAME = in.nextLine();\n System.out.print(\"Database user name: \");\n USER = in.nextLine();\n System.out.print(\"Database password: \");\n PASS = in.nextLine();\n\n //Constructing the database URL connection string\n DB_URL = DB_URL + DBNAME + \";user=\"+ USER + \";password=\" + PASS;\n Connection conn = null;\n // STEP 2: Register JDBC driver\n Class.forName(\"org.apache.derby.jdbc.ClientDriver\");\n \n //Step 3: Connect to the Database\n System.out.println(\"Connecting to database...\");\n conn = DriverManager.getConnection(DB_URL);\n \n System.out.println(); \n boolean runAgain = true;\n \n //Create a UI object to print out tables:\n UniUI uniUI = new UniUI();\n \n //Testing Listing all team members: \n ResultSet rs = listTeamMembers(conn);\n// while (runAgain) { //Menu keeps running until the user chooses to quit \n// int choice = -1; \n// while (choice < 0 || choice > 10) { //Input validation for menu choices\n// System.out.println();\n// System.out.println(\"**********************************************************************\");\n// //printMenu(); \n// choice = in.nextInt();\n// }\n//\n// switch(choice){\n// case 1: \n// listAllStudents(conn);\n// break;\n//\n// case 2: \n// listStudentScore(conn);\n// break;\n//\n// case 3: \n// listReport(conn);\n// break; \n//\n// case 4: \n// listAvgRating(conn);\n// break; \n//\n// case 5:\n// listTeamInfo(conn);\n// break;\n//\n// case 6:\n// listTeamInfoOrdered(conn);\n// break; \n//\n// } \n// }\n conn.close();\n } \n catch (SQLException se) {\n // Handle errors for JDBC\n se.printStackTrace();\n //System.out.println(\"Error when connecting to database !!!\");\n } \n catch (Exception e) {\n // Handle errors for Class.forName\n e.printStackTrace();\n //System.out.println(\"Error for Class.forName!!\");\n }\n }", "public static void main(String[] args) throws ClassNotFoundException, SQLException {\n\t}", "public static void main(String[] args) {\n\t\tLogger log = LoggerSingleton.getLogger();\n\t//testing getting the connection\n//\t\ttry \n//\t\t\tConnection con = ConnectionUtil getConnection()\n//\t\t\tSysout (con.getMetaDat() getDriverName() ) //<-- how to do \"Oracle JDBC Driver\"\n//\t\t catch IOException | SQLException e \n//\t\t\tlog error e\n//\t\t \n\t//testing logger\n//\t\tlog info (\"hello\")\n\t\t\n\t//testing daos\n//\t\tString sql = \"SELECT * FROM P1_STAFF WHERE NOT STAFF_ID = 1\"; \n//\t\tStaffDao staffDao = new StaffDaoImpl();\t\n//\t\tfor(Staff s: staffDao.listStaffMembers(sql))\n//\t\t\tlog.info( s );\n\t\t\n//\t\tlog.info( staffDao.getStaffByUserName(\"cindy\") );\n\t\t\n//\t\tStaff s = staffDao.getStaffByUserName(\"stanleigh\");\n//\t\ts.setPassW(\"passwordchanged\");\n//\t\tint i = staffDao.updateStaffProfile(s);\n//\t\tif( i == 1 )\n//\t\t\tlog.info(\"Updated a table row\");\n\t\t\n\t\t//didn't test ReimbursementDao...but its like the same thing lol ;)\n\t\t//REMEMBER TO TEST WHEN UR DOING THINGS!!!\n//\t\tReimbursementDao rd = new ReimbursementDaoImpl();\n//\t\tReimbursement r = rd.getRequestById(1044);\n//\t\tSystem.out.println(r);\n//\t\t\n//\t\tr.setManId(3);\n//\t\tr.setStatus(\"PENDING\");\n//\t\tSystem.out.println(rd.updateRequest(r));\n\t\t\n\t}", "private void connectDatabase(){\n }" ]
[ "0.7379042", "0.7319618", "0.7263782", "0.7210081", "0.7206814", "0.7197119", "0.708992", "0.70563334", "0.70047647", "0.69912046", "0.6947782", "0.69151074", "0.6892369", "0.6850351", "0.682581", "0.68211335", "0.6795297", "0.6788279", "0.67696476", "0.67696255", "0.67621475", "0.6758973", "0.67054397", "0.66989386", "0.66947263", "0.66850865", "0.668261", "0.6681305", "0.6677458", "0.66703576", "0.66403663", "0.66346145", "0.6630916", "0.66202277", "0.66143", "0.6609501", "0.6600196", "0.65934205", "0.6591833", "0.6589209", "0.6578977", "0.6575349", "0.6567243", "0.6565899", "0.65629846", "0.6556574", "0.654988", "0.6536934", "0.6536613", "0.65207684", "0.65138346", "0.65032405", "0.650074", "0.6473801", "0.64588505", "0.64541316", "0.64511746", "0.6446361", "0.6442231", "0.643291", "0.6430029", "0.6423495", "0.64182967", "0.6416973", "0.6413261", "0.640621", "0.640479", "0.6401035", "0.6391283", "0.6385687", "0.6373855", "0.636584", "0.6356099", "0.63550967", "0.63550216", "0.6349618", "0.63453496", "0.63436", "0.63356084", "0.6328852", "0.63239527", "0.63229924", "0.6309189", "0.63063735", "0.62986416", "0.62880933", "0.6280389", "0.62735087", "0.6272579", "0.6269368", "0.6263479", "0.6256606", "0.6256019", "0.6243635", "0.62363297", "0.62363064", "0.6231682", "0.62245893", "0.62122184", "0.6206548", "0.620447" ]
0.0
-1
Creates a new base data access object
protected DaoBase(SQLiteDatabase database, String tableName, String[] columns) { this.db = database; this.tableName = tableName; this.columns = columns; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract ODatabaseInternal<?> newDatabase();", "DataBase createDataBase();", "public DatabaseAccess(Context context) {\n this.openHelper = new OlpbhtbDatabase(context);\n }", "Database createDatabase();", "Object getDB();", "public BLFacadeImplementation() {\t\t\r\n\t\tSystem.out.println(\"Creating BLFacadeImplementation instance\");\r\n\t\tConfigXML c=ConfigXML.getInstance();\r\n\t\t\r\n\t\tif (c.getDataBaseOpenMode().equals(\"initialize\")) {\r\n\t\t\tDataAccess dbManager=new DataAccess(c.getDataBaseOpenMode().equals(\"initialize\"));\r\n\t\t\tdbManager.initializeDB();\r\n\t\t\tdbManager.close();\r\n\t\t\t}\r\n\t\t\r\n\t}", "protected abstract DBObject getNewObject();", "public Database(Context context) { \n\t\tsuper( context, database_MEF, null, 2); \n\t}", "DatabaseClient newModulesDbClient();", "public DataBase open(){\n myDB = new MyHelper(ourContext);\n myDataBase = myDB.getWritableDatabase();\n return this;\n }", "public OnibusDAO() {}", "public DatabaseConnection newConnection();", "@SuppressWarnings(\"LawOfDemeter\")\n public AccessoryBO() throws PersistenceException {\n this.dao = DAOFactory.getDAOFactory().getAccessoryDAO();\n }", "public GastoDAO(Context context){\n dbHelper = new MyDatabaseHelper(context);\n database = dbHelper.getWritableDatabase();\n }", "public DatabaseAdaptor() {\n\t\ttry {\n\t\t\tdatabase = new MyDatabase(DB_NAME);\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private Db() {\n super(Ke.getDatabase(), null);\n }", "public DataBaseManager(Context context) {\n helper = new DataBaseHelper(context);\n db = helper.getWritableDatabase();\n }", "public DAO(String dbType){\n this.dbType = dbType;\n if(this.dbType.equals(\"MySQL\")){\n initialPool();\n\n // for q5 mysql use\n if(wholeUserIds == null){\n wholeUserIds = new TreeSet<Long>();\n }\n }\n else if(this.dbType.equals(\"Memory\")){\n // for q5 memory use\n if(wholeCountData == null){\n wholeCountData = new TreeMap<String, Integer>();\n }\n }\n\n }", "private DatabaseRepository() {\n try {\n // connect to database\n\n DB_URL = \"jdbc:sqlite:\"\n + this.getClass().getProtectionDomain()\n .getCodeSource()\n .getLocation()\n .toURI()\n .getPath().replaceAll(\"[/\\\\\\\\]\\\\w*\\\\.jar\", \"/\")\n + \"lib/GM-SIS.db\";\n connection = DriverManager.getConnection(DB_URL);\n mapper = ObjectRelationalMapper.getInstance();\n mapper.initialize(this);\n }\n catch (SQLException | URISyntaxException e) {\n System.out.println(e.toString());\n }\n }", "private DatabaseContext() {\r\n datastore = createDatastore();\r\n init();\r\n }", "public static DatabaseAccess getInstance(Context context){\n if(instance == null){\n instance=new DatabaseAccess(context);\n }\n return instance;\n }", "public DatabaseOperations(){\n\n }", "private DatabaseAccess(Context context) {\n this.openHelper = new MyDatabase(context);\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "public static DatabaseAccess getInstance(Context context) {\n if (instance == null) {\n instance = new DatabaseAccess(context);\n }\n return instance;\n }", "private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}", "private DatabaseAccess(Context context) {\n this.openHelper = new DatabaseOpenHelper(context);\n }", "public DataConnection() {\n\t\ttry {\n\t\t\tString dbClass = \"com.mysql.jdbc.Driver\";\n\t\t\tClass.forName(dbClass).newInstance();\n\t\t\tConnection con = DriverManager.getConnection(DIR_DB, USER_DB, PASS_DB);\n\t\t\tstatement = con.createStatement();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initDb() {\n\t\tif (dbHelper == null) {\n\t\t\tdbHelper = new DatabaseOpenHelper(this);\n\t\t}\n\t\tif (dbAccess == null) {\n\t\t\tdbAccess = new DatabaseAccess(dbHelper.getWritableDatabase());\n\t\t}\n\t}", "public DbUtil() {}", "public DatabaseBackend(Context context) {\n super(context, Db_name, null, Db_version);\n }", "public Driving initDB(String url, String user, String password) throws SQLException {\n\t\tDriving driver = new Driving(url,user,password);\n\t\tthis.db = driver;\n\t\treturn driver;\n\t}", "private DatabaseAccess(Context context) {\n this.openHelper = new RecipesDatabase(context);\n }", "private DatabaseAccess(Context context){\n this.openHelper=new DatabaseOpenHelper(context);\n }", "public abstract ODatabaseInternal<?> openDatabase();", "public DB() {\r\n\t\r\n\t}", "public Database() {\n if (init) {\n\n //creating Transaction data\n Transaction transactionOne\n = new Transaction(1, \"Debit\", \"Spar Grocery\", 54.68,1);\n\n transactionDB.add(transactionOne);\n\n // Creating an Account data\n Account accountOne = new Account(1, 445, 111111111, \"Savings\",\n 1250.24, transactionDB);\n\n accountDB.add(accountOne);\n\n //creating withdrawal data\n Withdrawal withdrawalOne = new Withdrawal(1, 64422545, 600.89);\n withdrawalDB.add(withdrawalOne);\n\n //creating transfer data\n Transfer transferOne = new Transfer(1, 25252525, 521.23);\n transferDB.add(transferOne);\n\n //creating lodgement data\n Lodgement lodgementOne = new Lodgement(1, 67766666, 521.23);\n lodgementDB.add(lodgementOne);\n\n //add Customer data \n Customer customerOne\n = new Customer(1, \"Darth Vader\", \"[email protected]\",\n \"Level 5, Suit Dark\", \"darkSideIsGoodStuff\",\n accountDB, withdrawalDB, transferDB, lodgementDB);\n\n customerDB.add(customerOne);\n\n init = false;\n }\n }", "public ConnectDB(){\r\n\r\n\t}", "public AdminDAO()\n {\n con = DataBase.getConnection();//crear una conexión al crear un objeto AdminDAO\n }", "public DBManager(){\r\n connect(DBConstant.driver,DBConstant.connetionstring);\r\n }", "public PisoDAO createPisoDAO() {\n\n if (pisoDAO == null) {\n pisoDAO = new PisoDAO();\n }\n return pisoDAO;\n }", "public DaoConnection() {\n\t\t\n\t}", "private void initDB() {\n dataBaseHelper = new DataBaseHelper(this);\n }", "public DBManager(Context context){ \n\t\thelper = new DBHelper(context); \n\t\tdb = helper.getWritableDatabase(); \n\t}", "Database getDataBase() {\n return database;\n }", "public interface DatabaseFactory {\r\n\r\n Database makeDatabase();\r\n}", "public ContextDaoImpl() {\n Set<Commissioner> commissionerSet = new HashSet<>();\n List<String> logins = new ArrayList<>();\n commissionerSet.add(new Commissioner(\"victor.net\", \"25345Qw&&\", true));\n commissionerSet.add(new Commissioner(\"egor.net\", \"3456eR&21\", false));\n commissionerSet.add(new Commissioner(\"igor.net\", \"77??SDSw23\", false));\n logins.add(\"[email protected]\");\n logins.add(\"[email protected]\");\n logins.add(\"[email protected]\");\n Database.setCandidateSet(new HashSet<>());\n Database.setVoterSet(new HashSet<>());\n Database.setLogins(logins);\n Database.setCommissionerSet(commissionerSet);\n }", "public DBManager() {\n\t\t\n\t}", "@Override\n\tpublic StudentDao createDao() {\n\t\treturn new SqliteStudentDaoImpl();\n\t}", "@Override\n\tpublic Database createDatabase(Type type) throws FSException {\n\t\treturn new DummyDatabase();\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 }", "private DatabaseManager() {}", "public UfficioTecnicoDB() {\n this(ConnectionManager.getInstance());\n }", "@Override\r\n protected CassandraEmbDatabase createDatabaseInternal(final String theDB) {\r\n return new CassandraEmbDatabase(this, theDB);\r\n }", "public VRpDyHlrforbeDAOImpl() {\r\n super();\r\n }", "public abstract DbDAO AccessToDAO();", "public ProduktRepositoryImpl() {\n this.conn = DatabaseConnectionManager.getDatabaseConnection();\n }", "public SQLDataBase(Context context){ // is this supposed to be public?\n super(context, DATABASE_NAME, null, 1);\n }", "private PurchaseDB() {}", "public Persistence() {\n\t\tconn = dbConnection();\n\t}", "private ORMServiceFactory() { }", "public DatabaseStorage(Context context)\n {\n this.database = new DatabaseStorageHelper(context);\n }", "private DatabaseOperations() {\n }", "public DAOBaseImpl() {\n\t\tsuper();\n\t}", "public Database(Context context) {\n super(context, nome_db, null, versao_db);\n }", "public Database(Context context)\n\t{\n\t\t/* Instanciation de l'openHelper */\n\t\tDBOpenHelper helper = new DBOpenHelper(context);\n\t\t\n\t\t/* Load de la database */\n\t\t//TODO passer en asynchrone pour les perfs\n\t\tmainDatabase = helper.getWritableDatabase();\n\t\t\n\t\t/* DEBUG PRINT */\n\t\tLog.i(\"info\", \"Database Loading Suceeded\");\n\t}", "public Database()\r\n\t{\r\n\t\tinitializeDatabase();\r\n\t\t\r\n\t}", "protected DaoRWImpl() {\r\n super();\r\n }", "public DataManager() {\n\t\tthis(PUnit == null ? \"eElectionsDB\" : PUnit);\n\t}", "public DatabaseHandler(Context context){\n super(context, \"tienda.db\", null, 1);\n }", "private DBUtil() {\r\n\t}", "private void getDatabase(){\n\n }", "public UserDAO() {\n\t\tthis.emf = Persistence.createEntityManagerFactory(\"feedr_v3\");\n\t\tthis.em = this.emf.createEntityManager();\n\t\tthis.et = this.em.getTransaction();\n\t}", "public sqlDatabase() {\n }", "public void creatDataBase(String dbName);", "public static TwitterDAOInterface CreateObject() {\n\t\treturn new TwitterDAO();\r\n\t}", "public GPHolder createDBBasedGP(){\r\n\t\treturn createDBBasedGP(null);\r\n\t}", "public ServiceDAO(){\n\t\t\n\t\tString[] tables = new String[]{\"CUSTOMERS\",\"PRODUCTS\"};\n\t\tfor(String table:tables){\n\t\t\tif(!checkIfDBExists(table)){\n\t\t\t\ttry{\n\t\t\t\t\tnew DerbyDataLoader().loadDataFor(table);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tlogger.error(\"Error Loading the Data into the Derby\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private DatabaseHandler(){\n createConnection();\n }", "public MultaDAO() {\r\n super(MultaDAO.class);\r\n }", "public DepartmentsDAO() {\r\n\t\tconn = DBConnector.getConnection();\r\n\t}", "public DatabaseHelper(Context context) {\n super(context, \"caballoscocheros.db\", null);\n\n db = getWritableDatabase();\n DaoMaster daoMaster = new DaoMaster(db);\n daoSession = daoMaster.newSession();\n }", "public ModeOfPurchaseDAOImpl() {\r\n\r\n }", "public DBMS(Context context) {\n super(context, DBName, null, DBVersion);\n Log.e(\"DBMS=>\", \"yes Db bna d ha\");\n }", "private LeagueSeasonDBAccess() {\n\n }", "public DataBaseHelper(Context context) {\n \n \tsuper(context, DB_NAME, null, 1);\n this.myContext = context;\n }", "public Database(){\n ItemBox.getLogger().info(\"[Database] protocol version \" + net.mckitsu.itembox.protocol.ItemBoxProtocol.getVersion());\n }", "public Database(Context context) {\n super(context, DB_NAME, null, DB_VER);\n }", "public MoviesDatabase()\n {\n file = new FileOperation();\n menu = new Menu();\n validation = new Validation();\n }", "private DatabaseContract() {}", "DataModel createDataModel();", "public EtiquetaDao() {\n //subiendola en modo Embedded\n this.sql2o = new Sql2o(\"jdbc:h2:~/demojdbc\", \"sa\", \"\");\n createTable();\n //cargaDemo();\n }", "public interface DAOFactory {\n\n BalanceDAO createBalanceDAO();\n}", "public CustomerModelDS(String nomeDb, String activity) {\r\n\t\ttry {\r\n\t\t\tContext initCtx = new InitialContext();\r\n\t\t\tContext envCtx = (Context) initCtx.lookup(\"java:comp/env\");\r\n\t\t\tds = (DataSource) envCtx.lookup(\"jdbc/\"+nomeDb);\r\n\t\t\tconnection = ds.getConnection();\r\n\t\t\tthis.tableName = activity.toLowerCase()+table;\r\n\t\t } catch (NamingException | SQLException e) {\r\n\t\t\ttry {\r\n\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://localhost/\"+nomeDb, \"root\", \"\");\r\n\t\t\t\tconnection.setAutoCommit(false);\r\n\t\t\t} catch (SQLException | ClassNotFoundException ex) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t }\r\n\t}", "@Inject\n private DataStore() {\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n .configure()\n .build();\n try {\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n } catch (Exception e) {\n LOGGER.error(\"Fehler beim initialisieren der Session\", e);\n StandardServiceRegistryBuilder.destroy(registry);\n }\n \n }", "private DataManager() {\n databaseManager = DatabaseManager.getInstance();\n }", "public ZyCorporationDAOImpl() {\r\n super();\r\n }", "public DataManage() {\r\n\t\tsuper();\r\n\t}", "public ProfesorDAOImpl() {\n super();\n }" ]
[ "0.69955623", "0.68632114", "0.6801049", "0.67591083", "0.6731875", "0.66999465", "0.6679047", "0.6579961", "0.6524954", "0.65212524", "0.65180665", "0.65178174", "0.64909065", "0.6453977", "0.6450245", "0.6431363", "0.64167094", "0.6400366", "0.63996077", "0.63955724", "0.6390102", "0.63898975", "0.63800824", "0.6353677", "0.6353677", "0.6353677", "0.6353677", "0.6342929", "0.63418907", "0.63385624", "0.632261", "0.6318474", "0.6316594", "0.63081586", "0.630519", "0.62945724", "0.62841034", "0.6276218", "0.62647396", "0.62646765", "0.6251996", "0.62476385", "0.6241511", "0.62151635", "0.62122226", "0.6199182", "0.6196343", "0.61951226", "0.619354", "0.61893964", "0.6185828", "0.61782885", "0.6166285", "0.6162948", "0.6149066", "0.61381394", "0.61315966", "0.6131114", "0.6129699", "0.61294556", "0.6125364", "0.612529", "0.6119976", "0.61121583", "0.61076677", "0.61063534", "0.6105735", "0.6092099", "0.60904294", "0.60896766", "0.6087207", "0.6072766", "0.6072753", "0.60722274", "0.606593", "0.6062911", "0.6061712", "0.6061577", "0.60581744", "0.60525984", "0.604611", "0.60448307", "0.60344905", "0.6027415", "0.6023933", "0.60180825", "0.6017851", "0.6011855", "0.60114914", "0.600882", "0.600478", "0.6004619", "0.5994175", "0.5990879", "0.59875894", "0.5985436", "0.59837323", "0.59822685", "0.5975074", "0.59735763", "0.59723663" ]
0.0
-1
Gets all the entities of type TEntity
public ArrayList<TEntity> getAll(){ ArrayList<TEntity> list = new ArrayList<TEntity>(); Cursor cursor = db.query(tableName, columns, null, null, null, null, null); cursor.moveToFirst(); while (!cursor.isAfterLast()) { list.add(fromCursor(cursor)); cursor.moveToNext(); } return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<Entity> getAll() {\n return entities;\n }", "public List<Entity> getAllEntities()\n\t{\n\t\treturn this.entities;\n\t}", "public static Iterable<Entity> getAllEntities() {\n\t\treturn Util.listEntities(\"RecetteId\", null, null);\n\t}", "@NotNull\r\n Entity[] getEntities();", "public List<T> findAll() {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u\");\n\t return q.getResultList();\n\t }", "public List<Entity> getEntities() {\n return entities;\n }", "public static ArrayList<? extends Entity>getEntities(){\n\t\tArrayList<Entity> totalEntities = new ArrayList<Entity>();\n\t\ttotalEntities.addAll(humans);\n\t\ttotalEntities.addAll(zombies);\n\n\t\treturn totalEntities;\n\t}", "public <T> List<T> findAll(Class<T> entityClass);", "List<TransportEntity> getAllEntityOfQuery();", "public List<EntityObject> getEntities() {\n\t\treturn entities;\n\t}", "@Override\n public List<R> getAll() {\n return onFindForList(getSession().createCriteria(entityClass).list());\n }", "public ArrayList<Entity> getEntities() {\n\t\treturn entities;\n\t}", "public LazyDataModel<BasicEntity> getEntities() {\n return entities;\n }", "List<IViewEntity> getEntities();", "public List<UserEntity> findAllUserEntitys() {\n return userEntityRepository.findAll();\n }", "List<T> getAll() throws PersistException;", "@Override\r\n public List<? extends DataStoreEntity> getAllEntities(boolean recursive) {\n return null;\r\n }", "public List<Class<?>> getAllModelEntities() {\n\t\treturn ModelClasses.findModelClassesWithInterface(IEntityType.class);\n\t}", "@Override\r\n\tpublic List<?> findAll(Class<?> entity) {\n\t\treturn null;\r\n\t}", "public List<Class<?>> getEntities(){\n\t\tList<Class<?>> result = new ArrayList<Class<?>>();\n\t\t\n//\t\tresult.add(Equipo.class);\n\t\tresult.add(Formacion.class);\n\t\tresult.add(FormacionStrategy.class);\n\t\tresult.add(Habilidad.class);\n\t\tresult.add(Jugador.class);\n\t\tresult.add(Tecnico.class);\n\t\tresult.add(Titular.class);\n//\t\tresult.add(PartidoSimple.class);\n//\t\tresult.add(PartidoDeCopa.class);\n\t\t\n\t\treturn result;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<T> getList() {\n\t\tthis.hql = \"select m from \" + entityClassName + \" as m \";\n\t\tList<T> resultSet = entity.createQuery(this.hql).getResultList();\n\t\treturn resultSet;\n\t}", "@Override\n\tpublic List<BaseEntity> getAll(BaseEntity entity) throws DaoException {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<E> getEntities() {\n\t\treturn (ArrayList<E>) entities.clone();\n\t}", "public org.LexGrid.concepts.Entities getEntities() {\n return entities;\n }", "public List<LugarEntity> findall(){\n Query q = em.createQuery(\"SELECT p FROM LugarEntity p\");\n return q.getResultList();\n }", "@Override\n\tpublic List<T> getAllEntry() {\n\t\treturn this.hibernateTemplate.find(\"from \"+this.classt.getName());\n\t}", "@Override\n public Iterator<Entity> iterator() {\n return entities.iterator();\n }", "public EntityTable getEntities() \t{ \n return (entities == null && nameContext != null) \n ? nameContext.getEntities() \n : entities;\n }", "public static Iterable<Entity> getAllUsers() {\r\n Iterable<Entity> entities = Util.listEntities(\"User\", null, null);\r\n return entities;\r\n }", "public Entity[][] entities() {\r\n\t\treturn this.entities;\r\n\t}", "@Override\r\n\tpublic List<T> findAll() {\n\t\treturn getSession().createQuery(\r\n\t\t\t\t\"FROM \"+clazz.getSimpleName())\r\n\t\t\t\t.list();\r\n\t}", "@Override\n\tpublic List<T> getAll() {\n\t\treturn getDao().findAll();\n\t}", "@Override\n\tpublic List<ImageEntity> getAll() {\n\t\treturn DatabaseContext.findAll(ImageEntity.class);\n\t}", "public void getEntities() {\n\t\t\r\n\t\tSystem.out.println();\r\n\t\t\r\n\t\tEntityA entityA = exampleDao.getOne(1);\r\n\t\tEntityB entityB3 = entityBDao.getOne(3);\r\n\t \tEntityB entityB2 = entityBDao.getOne(2);\r\n\t \tEntityB entityB1 = entityBDao.getOne(1);\r\n\r\n\t \t\r\n\r\n\t\tentityA.setEntityBList(Arrays.asList(entityB2,entityB3,entityB1));\r\n\r\n\t}", "@Override\n public List<T> findAll() {\n String getAllQuery = \"SELECT * FROM \" + getTableName();\n return getJdbcTemplate().query(getAllQuery,\n BeanPropertyRowMapper.newInstance(getEntityClass()));\n }", "List<UserEntity> findAll();", "public <T extends IDBEntities> List<T> retrieveAll(Class<? extends IDBEntities> type) {\n\t\tif (type == null)\n\t\t\treturn new ArrayList<>();\n\t\tList<T> result;\n\t\tEntityManager em = getEM();\n\t\ttry {\n\t\t\tQuery q = em.createNamedQuery(type.getSimpleName() + \".findAll\", type);\n\t\t\tresult = q.getResultList();\n\t\t} catch (Exception ex) {\n\t\t\t// No records exist\n\t\t\treturn null;\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t\t// Dealing with EclipseLink Vector overriding issues (iterators don't work properly)\n\t\tList<T> output = new ArrayList<>();\n\t\toutput.addAll(result);\n\t\treturn output;\n\t}", "@SuppressWarnings(\"unchecked\")\n public List<T> retrieveAll() throws DAOException {\n String queryString = \"select e from \"\n + entityBeanType.getCanonicalName() + \" as e\"\n + \" where e.deleted is null or e.deleted = false\";\n Query query = Helper.checkEntityManager(entityManager).createQuery(\n queryString);\n\n try {\n // Involves an unchecked conversion:\n return query.getResultList();\n } catch (Exception e) {\n throw new DAOException(\"Failed to get all entities.\", e);\n }\n }", "@Override\n\t@Transactional\n\tpublic List<T> getAll() {\n\t\tList<?> result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.list();\n\t\treturn result.stream()\n\t\t\t\t.map(e -> initialize(checkType(e)))\n\t\t\t\t.filter(e -> e != null)\n\t\t\t\t.collect(Collectors.toList());\n\t}", "@Override\n public List<T> findAll() {\n return manager\n .createQuery(\"from \" + elementClass.getSimpleName() + \" e\", elementClass)\n .getResultList();\n }", "public List getAll() throws RepositoryException {\n\t\treturn DatanucleusCRUDUtils.getAll(getEntity().getSimpleName());\n\t}", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "List<T> getAll();", "public static Set<Class<? extends Entity>> getEntityBeans() {\r\n\t\tfinal Set<Class<? extends Entity>> entityClasses=new HashSet<>();\r\n\t\tfinal ClassLoader cl=Thread.currentThread().getContextClassLoader();\r\n\t\tfinal URL packageURL=cl.getResource(\r\n\t\t\t\tENTITY_BEANS_PACKAGE.replace(\".\", \"/\")+\"package-info.class\");\r\n\t\ttry {\r\n\t\t\tfinal File[] entityFiles=new File(packageURL.toURI()).getParentFile().listFiles(new FilenameFilter() {\r\n\t\t\t\t@Override public boolean accept(final File dir, final String name) {\r\n\t\t\t\t\treturn name.endsWith(\".class\"); \r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tfor(final File f:entityFiles) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfinal Class<?> cls=cl.loadClass(getPackageClass(f));\r\n\t\t\t\t\tif(Entity.class.isAssignableFrom(cls)) entityClasses.add((Class<? extends Entity>) cls);\r\n\t\t\t\t} catch (ClassNotFoundException e) {//skip class if search failed\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t}\r\n\t\t\r\n\t\treturn entityClasses;\r\n\t}", "@Override\n\tpublic List<String> getAllAuditedEntitiesNames() {\n\t\tif (this.allAuditedEntititesNames != null) {\n\t\t\t// return this.allAuditedEntititesNames;\n\t\t}\n\t\t//\n\t\tList<String> result = new ArrayList<>();\n\t\tSet<EntityType<?>> entities = entityManager.getMetamodel().getEntities();\n\t\tfor (EntityType<?> entityType : entities) {\n\t\t\tif (entityType.getJavaType() == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// get entities methods and search annotation Audited in fields.\n\t\t\tif (getAuditedField(entityType.getJavaType().getDeclaredFields())) {\n\t\t\t\tresult.add(entityType.getJavaType().getCanonicalName());\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//\n\t\t\t// TODO: add some better get of all class annotations\n\t\t\tAnnotation[] annotations = null;\n\t\t\ttry {\n\t\t\t\tannotations = entityType.getJavaType().newInstance().getClass().getAnnotations();\n\t\t\t} catch (InstantiationException | IllegalAccessException e) {\n\t\t\t\t// class is not accessible\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// entity can be annotated for all class\n\t\t\tif (getAuditedAnnotation(annotations)) {\n\t\t\t\tresult.add(entityType.getJavaType().getCanonicalName());\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\t// sort entities by name\n\t\tCollections.sort(result);\n\t\t//\n\t\tthis.allAuditedEntititesNames = result;\n\t\treturn result;\n\t}", "public Table getEntitiesTable(){\n\t\treturn m_entities;\n\t}", "public List<ConsejoEntity> findAll() {\r\n Query q = em.createQuery(\"select u from ConsejoEntity u\");\r\n return q.getResultList();\r\n }", "List<T> getEntitiesByIds(List<ID_TYPE> ids) throws NotImplementedException;", "@Override\n protected Entity[] getObservedEntities() {\n return entities;\n }", "List<WebCrawlerData> retrieveAllEntity();", "public List<TodoItemEntity> findAll(){\n return todoItemRepository.findAll();\n }", "public List<E> findAll() {\n return getDao().findAll();\n }", "List<T> findAll() ;", "public Map<String, Class<?>> getEntityTypes() {\n return entityTypes;\n }", "public List<Object> retrieveIncrementalEntities() {\n List<Object> result = new ArrayList<Object>();\n for (ProvisioningEntityWrapper provisioningEntityWrapper : this.provisioningEntityWrappers) {\n \n if (provisioningEntityWrapper.getGrouperTargetEntity() != null) {\n result.add(provisioningEntityWrapper.getGrouperTargetEntity());\n } else if (provisioningEntityWrapper.getGrouperProvisioningEntity() != null) {\n result.add(provisioningEntityWrapper.getGrouperProvisioningEntity());\n } else if (provisioningEntityWrapper.getGcGrouperSyncMember() != null) {\n result.add(provisioningEntityWrapper.getGcGrouperSyncMember());\n } else if (provisioningEntityWrapper.getProvisioningStateEntity() != null) {\n result.add(provisioningEntityWrapper.getProvisioningStateEntity());\n }\n }\n return result;\n }", "@RequestMapping(value = \"/listallentities\", method = RequestMethod.GET)\n\tpublic @ResponseBody String listAllEntities() {\n\t\ttry {\n\t\t\t// System.out.println(\"USER ID FROM SESSION : \" +\n\t\t\t// session.getAttribute(\"userId\"));\n\t\t\tString requestURI = request.getRequestURI();\n\n\t\t\tSystem.out.println(\"Called list entity : \" + requestURI);\n\n\t\t\tString requestFromMethod = \"listAllEntities\";\n\t\t\treturn entityService.listEntities(null, requestFromMethod);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getList() {\r\n\t\tgetEntityManager().flush();\r\n\t\treturn getEntityManager().createQuery(\r\n\t\t\t\t\"select OBJECT(o) from \" + getClassType().getSimpleName() + \" o order by o.id\")\r\n\t\t\t\t.getResultList();\r\n\t}", "List<T> findAll();", "List<T> findAll();", "List<T> findAll();", "EntityType getEntity();", "public static List<Enseignant> getAll() {\n\n // Creation de l'entity manager\n EntityManager em = GestionFactory.factory.createEntityManager();\n\n // Recherche\n @SuppressWarnings(\"unchecked\")\n List<Enseignant> list = em.createQuery(\"SELECT e FROM Enseignant e\").getResultList();\n\n return list;\n }", "List<E> findAll();", "List<E> findAll();", "List<E> findAll();", "public List<SeatEntity> getAll();", "@SuppressWarnings(\"unchecked\")\n public <T extends BaseEntity> List<T> select(T entity) {\n Criteria criteria = this.getCurrentSession().createCriteria(entity.getClass());\n List<T> result = criteria.add(Example.create(entity)).list();\n return result;\n }", "E[] getAll();", "@Override\n\tpublic List<Trainee> getAll() {\n\t\tQuery q=em.createQuery(\"select m from Trainee m\");\n\t\tList<Trainee> l=q.getResultList();\n\t\treturn l;\n\t}", "private static ImmutableList<Class<?>> applicationEntities() {\n List<String> paths = new ArrayList<>(List.of(PREFIX_STRING));\n if (additionalPaths != null) {\n paths.addAll(additionalPaths);\n }\n\n final List<Class<?>> collect = paths\n .stream()\n .map(path -> {\n logger.info(\"Scanning {} for Hibernate entities\", path);\n final Reflections reflections = new Reflections(path);\n final Set<Class<?>> entities = reflections.getTypesAnnotatedWith(Entity.class);\n logger.info(\"Found {} Hibernate entities\", entities.getClass());\n if (logger.isDebugEnabled()) {\n entities.forEach((entity) -> logger.debug(\"Registered {}.\", entity.getName()));\n }\n return entities;\n })\n .flatMap(Collection::stream)\n .collect(Collectors.toList());\n\n return ImmutableList.copyOf(collect);\n }", "public List<Tblproductos> getAll(){\n String hql = \"Select tp from Tblproductos tp\";\n try{\n em = getEntityManager();\n Query q = em.createQuery(hql);\n List<Tblproductos> listProductos = q.getResultList();\n return listProductos; \n }catch(Exception e){\n e.printStackTrace();\n }\n return null;\n }", "@Override\n\tpublic List<BaseEntity> getAll(BaseEntity entity, Page page)\n\t\t\tthrows DaoException {\n\t\treturn null;\n\t}", "ArrayList<E> getAll();", "private <T extends Model> QuerySet<T> all(Class<T> modelClass) {\n QuerySet<T> querySet = new QuerySet<T>();\n querySet.setEntity((Class<T>) this.entity);\n PreparedStatement statement = null;\n ResultSet resultSet = null;\n OneToOneField oneToOneFieldAnnotation = null;\n ForeignKeyField foreignKeyFieldAnnotation = null;\n ManyToManyField manyToManyFieldAnnotation = null;\n try {\n String sql = \"SELECT * FROM\";\n tableName = TableUtil.getTableName(modelClass);\n sql = String.format(\"%s %s\", sql, tableName);\n if (JediEngine.DEBUG) {\n System.out.println(sql + \";\\n\");\n }\n connect();\n statement = connection.prepareStatement(sql);\n resultSet = statement.executeQuery();\n if (!resultSet.next()) {\n return querySet;\n }\n resultSet.beforeFirst();\n while (resultSet.next()) {\n Object obj = entity.newInstance();\n Field id = jedi.db.models.Model.class.getDeclaredField(\"id\");\n id.setAccessible(true);\n // Oracle returns BigDecimal object.\n if (connection.toString().startsWith(\"oracle\")) {\n id.set(\n obj,\n ((java.math.BigDecimal) resultSet.getObject(id.toString().substring(id.toString().lastIndexOf('.') + 1))).intValue());\n } else {\n // MySQL and PostgreSQL returns a Integer object.\n id.set(obj, resultSet.getObject(id.toString().substring(id.toString().lastIndexOf('.') + 1)));\n }\n List<Field> _fields = JediEngine.getAllFields(this.entity);\n for (Field field : _fields) {\n field.setAccessible(true);\n if (!JediEngine.isJediField(field)) {\n continue;\n }\n if (field.toString().substring(field.toString().lastIndexOf('.') + 1).equals(\"serialVersionUID\")) {\n continue;\n }\n if (field.getName().equalsIgnoreCase(\"objects\")) {\n continue;\n }\n oneToOneFieldAnnotation = field.getAnnotation(OneToOneField.class);\n foreignKeyFieldAnnotation = field.getAnnotation(ForeignKeyField.class);\n manyToManyFieldAnnotation = field.getAnnotation(ManyToManyField.class);\n FetchType fetchType = JediEngine.FETCH_TYPE;\n Manager manager = null;\n if (manyToManyFieldAnnotation != null) {\n fetchType = fetchType.equals(FetchType.NONE) ? manyToManyFieldAnnotation.fetch_type() : fetchType;\n if (fetchType.equals(FetchType.EAGER)) {\n String packageName = this.entity.getPackage().getName();\n String model = manyToManyFieldAnnotation.model().getSimpleName();\n model = Model.class.getSimpleName().equals(model) ? \"\" : model;\n Class superClazz = null;\n Class clazz = null;\n if (model.isEmpty()) {\n ParameterizedType genericType = null;\n if (ParameterizedType.class.isAssignableFrom(field.getGenericType().getClass())) {\n genericType = (ParameterizedType) field.getGenericType();\n superClazz = ((Class) (genericType.getActualTypeArguments()[0])).getSuperclass();\n if (superClazz == Model.class) {\n clazz = (Class) genericType.getActualTypeArguments()[0];\n model = clazz.getSimpleName();\n }\n }\n }\n String references = manyToManyFieldAnnotation.references();\n if (references == null || references.trim().isEmpty()) {\n if (clazz != null) {\n references = TableUtil.getTableName(clazz);\n } else {\n references = TableUtil.getTableName(model);\n }\n }\n String intermediateModelclassName = String.format(\"%s.%s\", packageName, model);\n Class associatedModelClass = Class.forName(intermediateModelclassName);\n manager = new Manager(associatedModelClass);\n QuerySet querySetAssociatedModels = null;\n String intermediateModelName = manyToManyFieldAnnotation.through().getSimpleName();\n intermediateModelName = Model.class.getSimpleName().equals(intermediateModelName) ? \"\" : intermediateModelName;\n if (intermediateModelName != null && !intermediateModelName.trim().isEmpty()) {\n intermediateModelclassName = String.format(\"%s.%s\", packageName, intermediateModelName);\n Class intermediateModelClass = Class.forName(intermediateModelclassName);\n String intermediateTableName = ((Model) intermediateModelClass.newInstance()).getTableName();\n querySetAssociatedModels = manager.raw(\n String.format(\n \"SELECT * FROM %s WHERE id IN (SELECT %s_id FROM %s WHERE %s_id = %d)\",\n TableUtil.getTableName(references),\n TableUtil.getColumnName(model),\n intermediateTableName,\n TableUtil.getColumnName(obj.getClass()),\n ((Model) obj).getId()),\n associatedModelClass);\n } else {\n querySetAssociatedModels = manager.raw(\n String.format(\n \"SELECT * FROM %s WHERE id IN (SELECT %s_id FROM %s_%s WHERE %s_id = %d)\",\n TableUtil.getTableName(references),\n TableUtil.getColumnName(model),\n tableName,\n TableUtil.getTableName(references),\n TableUtil.getColumnName(obj.getClass()),\n ((Model) obj).getId()),\n associatedModelClass);\n }\n field.set(obj, querySetAssociatedModels);\n } else {\n field.set(obj, null);\n }\n } else if (oneToOneFieldAnnotation != null || foreignKeyFieldAnnotation != null) {\n if (oneToOneFieldAnnotation != null) {\n fetchType = fetchType.equals(FetchType.NONE) ? oneToOneFieldAnnotation.fetch_type() : fetchType;\n } else {\n fetchType = fetchType.equals(FetchType.NONE) ? foreignKeyFieldAnnotation.fetch_type() : fetchType;\n }\n if (fetchType.equals(FetchType.EAGER)) {\n // Recovers the attribute class.\n Class associatedModelClass = Class.forName(field.getType().getName());\n manager = new Manager(associatedModelClass);\n String s = String.format(\"%s_id\", TableUtil.getColumnName(field));\n Object o = resultSet.getObject(s);\n Model associatedModel = manager.get(\"id\", o);\n // References a model associated by a foreign key.\n field.set(obj, associatedModel);\n } else {\n field.set(obj, null);\n }\n } else {\n // Sets the fields that aren't Model instances.\n if ((field.getType().getSimpleName().equals(\"int\") || field.getType().getSimpleName().equals(\"Integer\")) &&\n connection.toString().startsWith(\"oracle\")) {\n if (resultSet.getObject(TableUtil.getColumnName(field)) == null) {\n field.set(obj, 0);\n } else {\n String columnName = TableUtil.getColumnName(field);\n BigDecimal bigDecimal = (BigDecimal) resultSet.getObject(columnName);\n field.set(obj, bigDecimal.intValue());\n }\n } else {\n Object columnValue = resultSet.getObject(TableUtil.getColumnName(field));\n columnValue = convertZeroDateToNull(columnValue);\n if (columnValue instanceof java.sql.Date) {\n java.sql.Date date = (java.sql.Date) columnValue;\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(date.getTime());\n calendar.set(Calendar.HOUR_OF_DAY, 0);\n calendar.set(Calendar.MINUTE, 0);\n calendar.set(Calendar.SECOND, 0);\n columnValue = calendar.getTime();\n }\n if (columnValue instanceof java.sql.Time) {\n java.sql.Time time = (java.sql.Time) columnValue;\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(time.getTime());\n calendar.set(Calendar.YEAR, 0);\n calendar.set(Calendar.MONTH, 0);\n calendar.set(Calendar.DAY_OF_MONTH, 0);\n columnValue = calendar.getTime();\n }\n if (columnValue instanceof Timestamp) {\n Timestamp timestamp = (Timestamp) columnValue;\n Calendar calendar = Calendar.getInstance();\n calendar.setTimeInMillis(timestamp.getTime());\n columnValue = calendar.getTime();\n }\n field.set(obj, columnValue);\n }\n }\n manager = null;\n }\n T model = (T) obj;\n if (model != null) {\n model.setPersisted(true);\n }\n querySet.add(model);\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n close(resultSet, statement, connection);\n }\n return querySet;\n }", "Collection<Class<?>> registerEntities();", "public List<E> findAll();", "@Override\n\tpublic List<EmploieType> findAll() {\n\t\treturn emploieTypeRepository.findAll();\n\t}", "public List<EspecieEntity> encontrarTodos(){\r\n Query todos =em.createQuery(\"select p from EspecieEntity p\");\r\n return todos.getResultList();\r\n }", "public ArrayList<Poentity> get_all_poentity() throws Exception {\n\n \t\t log.setLevel(Level.INFO);\n\t log.info(\" service operation started !\");\n\n\t\ttry{\n\t\t\tArrayList<Poentity> Poentity_list;\n\n\t\t\tPoentity_list = Poentity_Activity_dao.get_all_poentity();\n\n \t\t\tlog.info(\" Object returned from service method !\");\n\t\t\treturn Poentity_list;\n\n\t\t}catch(Exception e){\n\n\t\t\tSystem.out.println(\"ServiceException: \" + e.toString());\n\t\t\tlog.error(\" service throws exception : \"+ e.toString());\n\n\t\t}\n\t\treturn null;\n\n\n\n\t}", "@Override\r\n\tpublic List<Person> findAll(){\n\t\tQuery query=em.createQuery(\"Select p from Person p\");\r\n\t\tList<Person> list = query.getResultList();\r\n\t\treturn list;\r\n\t}", "public Collection<T> getAll() throws DaoException;", "@SuppressWarnings(\"unchecked\")\t\r\n\tpublic T[] getEntityByName(String name) {\r\n\t\tList<T> returnEntitiesList = new LinkedList<T>();\r\n\t\tfor (T entity : this.entitiesList) {\r\n\t\t\tif (entity.getEntityName().equals(name)) {\r\n\t\t\t\treturnEntitiesList.add(entity);\r\n\t\t\t}\r\n\t\t}\t\r\n\t\treturn (T[])returnEntitiesList.toArray(new BusinessEntity[0]);\t\t\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<T> getAll(Class<T> type) {\n\t\treturn super.getSessionFactory().getCurrentSession().createQuery(\"from \"+type.getName()+\"\").list();\r\n\t}", "@Override\n\tpublic <T> List<EntityGraph<? super T>> getEntityGraphs(Class<T> entityClass) {\n\t\treturn null;\n\t}", "public <T extends Entity> List<T> getAllEntitiesOf(Class<T> type, Entity... exclude)\n\t{\n\t\treturn this.getEntitiesInRadius(0.0F, 0.0F, 9999F, type, exclude);\n\t}", "public List<E> findAll(Class<E> type){\n transaction.begin();\n List<E> types = entityManager.createQuery(\" from \" + type.getName()).getResultList();\n transaction.commit();\n return types;\n }", "@Transactional(readOnly = true)\n public Observable<List<E>> findAll() {\n return Observable.create(inSource -> {\n try {\n final List<E> theEntitiesList = mRepository.findAll();\n inSource.onNext(theEntitiesList);\n inSource.onComplete();\n } catch (final Exception theException) {\n inSource.onError(theException);\n }\n });\n }", "public List<PokemonEntity> findAll() {\n LOGGER.log(Level.INFO, \"Consultando todas los trayectos\");\n // Se crea un query para buscar todas las ciudades en la base de datos.\n TypedQuery query = em.createQuery(\"select u from PokemonEntity u\", PokemonEntity.class);\n // Note que en el query se hace uso del método getResultList() que obtiene una lista de ciudades.\n return query.getResultList();\n}", "public abstract List<Object> getAll();", "@Override\r\n\tpublic List<Trainee> getAll() {\n\t\treturn dao.getAll();\r\n\t}", "List<T> obtenerAll();", "@Override\n\tpublic List<UsuariosEntity> findAll() {\n\t\treturn (List<UsuariosEntity>) iUsuarios.findAll();\n\t}", "public List<CompradorEntity> findAll() {\r\n TypedQuery<CompradorEntity> query = em.createQuery(\"select u from CompradorEntity u\", CompradorEntity.class);\r\n return query.getResultList();\r\n }", "Iterable<T> findAll();", "public List<E> findAll() ;", "public static List<FoundObject> findAll() {\n\t\treturn getPersistence().findAll();\n\t}", "public List<TransporteTerrestreEntity> getTransportes() {\n LOGGER.log(Level.INFO, \"Inicia proceso de consultar todos los transportes.\");\n List<TransporteTerrestreEntity> transportes = persistence.findAll(); \n LOGGER.log(Level.INFO, \"Termina proceso de consultar todos los transportes\");\n return transportes; \n }" ]
[ "0.8302031", "0.8037316", "0.7792929", "0.7728539", "0.7610779", "0.75095946", "0.7412909", "0.7314888", "0.72588855", "0.7217069", "0.71803236", "0.71045053", "0.7083152", "0.7062503", "0.6999946", "0.6961961", "0.69398165", "0.6930156", "0.6920447", "0.68899035", "0.6836991", "0.6808016", "0.67923164", "0.67507976", "0.6731571", "0.6729874", "0.6706859", "0.66714925", "0.6655152", "0.66181386", "0.6611009", "0.65966713", "0.65964013", "0.6592531", "0.65876704", "0.6580215", "0.6571939", "0.65552944", "0.6551841", "0.6529878", "0.6521899", "0.6516573", "0.6516573", "0.6516573", "0.6516573", "0.6516573", "0.6461662", "0.64552397", "0.6454839", "0.6418506", "0.64155185", "0.641038", "0.63815117", "0.6375751", "0.63755447", "0.63642615", "0.6363538", "0.63594496", "0.63558406", "0.63533163", "0.6341987", "0.6341987", "0.6341987", "0.6319812", "0.63188964", "0.63185483", "0.63185483", "0.63185483", "0.63135463", "0.63047755", "0.62959224", "0.62958884", "0.62907976", "0.6287246", "0.6274123", "0.62654865", "0.62489665", "0.6239609", "0.6235519", "0.6211703", "0.6199191", "0.61868906", "0.61784273", "0.6171456", "0.61625564", "0.61591095", "0.61426044", "0.6140032", "0.6136064", "0.6120671", "0.61140186", "0.6102948", "0.6098388", "0.6085439", "0.6079115", "0.6075448", "0.6073534", "0.6071566", "0.60661066", "0.6053637" ]
0.71635747
11
Gets the entity with the given id
public TEntity getById(int id){ String whereClause = String.format("Id = %1$s", id); Cursor cursor = db.query(tableName, columns, whereClause, null, null, null, null); if (cursor.getCount() == 1) { cursor.moveToFirst(); return fromCursor(cursor); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public E getById(final I id) {\n LOG.info(\"[getById] Start: Id = \" + id);\n LOG.info(\"[getById] End\");\n return entityManager.find(entityClass, id);\n }", "public T findById(final String id)\n\t{\n\t\treturn em.find(entityClass, id);\n\t}", "Entity getEntityById(Long id);", "public T find(int id) {\n\t \treturn getEntityManager().find(getEntityClass(), id);\n\t }", "@ModelAttribute\n\tpublic Entity getEntity(@PathVariable(\"entity\") Long id) {\n\t\tEntity entity = service.findOne(id);\n\t\tif (entity == null) {\n\t\t\tthrow new NotFoundException(String.format(\"Entity with identifier '%s' not found\", id));\n\t\t}\n\t\treturn entity;\n\t}", "E getById(long id);", "public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}", "AceEntity findEntity (String id) {\n\t\tfor (int i=0; i<entities.size(); i++) {\n\t\t\tAceEntity entity = (AceEntity) entities.get(i);\n\t\t\tif (entity.id.equals(id)) {\n\t\t\t\treturn entity;\n\t\t\t}\n\t\t}\n\t\tSystem.err.println (\"*** unable to find entity with id \" + id);\n\t\treturn null;\n\t}", "@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}", "public final E find(final K id) {\n return getJpaTemplate().find(getEntityClass(), id);\n }", "<T> T get(Class<T> entityClass, Serializable id);", "@Override\n @LogMethod\n public T get(long id) throws InventoryException {\n \tInventoryHelper.checkPositive(id, \"id\");\n T entity = repository.getByKey(id);\n InventoryHelper.checkEntityExist(entity, id);\n return entity;\n }", "T getById(Long id);", "@Override\n public T findById(ID id) {\n return crudRepository.findById(id).orElseThrow(\n () -> new ResourceNotFoundException(\"Can not find an entity with id: \" + id));\n }", "public Entity getByPrimaryKey(Id id) throws RepositoryException{\n\t\treturn (Entity)DatanucleusCRUDUtils.getById(getEntity(), id);\n\t}", "protected abstract T getEntityById(Long id);", "Optional<T> getEntityById(ID_TYPE id);", "public abstract Object get(String entityName, Serializable id);", "public abstract T findEntityById(int id);", "@Override\n\tpublic T getEntityById(String id) {\n\t\treturn null;\n\t}", "T getById(int id);", "@Override\n public Optional<T> findById(ID id) {\n T entity = getSession().get(this.getPersistentClass(), id);\n return Optional.ofNullable(entity);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic T get(Long id) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\n\t\treturn (T) session.get(target, id);\n\t}", "T get(Integer id);", "@Override\n\tpublic T findById(ID id) {\n\t\treturn parserEntity(this.getConcreteDAO().findById(id));\n\t}", "E find(Id id) throws RepositoryException;", "@SuppressWarnings(\"unchecked\")\n public T retrieveById(Id id) throws EntityNotFoundException, DAOException {\n if (id == null) {\n throw new IllegalArgumentException(\"'id' should not be null.\");\n }\n if ((id instanceof Long) && ((Long) id) <= 0) {\n throw new IllegalArgumentException(\"'id' should not be <= 0.\");\n }\n Helper.checkEntityManager(entityManager);\n\n String queryString = \"select e from \"\n + entityBeanType.getCanonicalName()\n + \" e where e.id = :id and (e.deleted is null or e.deleted = false)\";\n Query query = entityManager.createQuery(queryString);\n query.setParameter(\"id\", id);\n\n // Involves an unchecked conversion:\n try {\n return (T) query.getSingleResult();\n } catch (NoResultException e) {\n throw new EntityNotFoundException(\"Cannot find entity with id:\"\n + id + \".\", e);\n } catch (Exception e) {\n throw new DAOException(\"Failed to get entity.\", e);\n }\n }", "T get(ID id);", "public Person get( Integer id ) {\n\t\t// Retrieve existing person\n\t\tPerson person = (Person) entityManager.createQuery(\"FROM Person p where p.id = :id\")\n \t.setParameter(\"id\", id).getSingleResult();\n\t\treturn person;\n\t}", "@Override\n public CartEntity getById(int id) {\n return entityManager.find(CartEntity.class,id);\n }", "@Override\n\tpublic Equipo get(Long id)\n\t{\n\t\tOptional<Equipo> entity = equipoRepository.findById(id);\n\t\treturn entity.orElse(null);\n\t}", "T get(PK id);", "T getById(ID id);", "@Override\r\n\tpublic Object getEntity(Class entityClass, Serializable id) {\n\t\treturn template.get(entityClass, id);\r\n\t}", "public <T> T find(Class<T> entityClass, String id);", "@Override\n\tpublic T getEntryById(Serializable id) {\n\t\treturn (T) this.hibernateTemplate.get(this.classt, id);\n\t}", "public LugarEntity find(Long id){\n return em.find(LugarEntity.class, id);\n }", "@Override\n public T findById(Long id) {\n return manager.find(elementClass, id);\n }", "public Etudiant getById(int id) {\n\t\treturn dao.getById(id);\r\n\t}", "public T get(int id) {\n return this.session.get(this.type, id);\n }", "@Override\n\tpublic Gasto findById(Integer id) {\n\t\treturn gastoModel.findById(id).orElseThrow(null);\n\t}", "@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}", "public EspecieEntity encontrarPorId(Long id ){\r\n return em.find(EspecieEntity.class, id);\r\n }", "String get(String id);", "@Override\n @SuppressWarnings(\"unchecked\")\n public T findById(ID id) {\n return (T) this.getSession().load(this.getPersistentClass(), id);\n }", "T getById(PK id);", "public T findById(final UUID id) {\n\t\tfinal T result = em.find(persistentClass, id);\n\t\treturn result;\n\t}", "@Override\r\n\tpublic T findEntity(Class<T> c, Serializable id) throws Exception {\n\t\treturn (T) this.getcurrentSession().get(c, id);\r\n\t}", "@Override\n\tpublic OrderEntity findOneById(Long id) {\n\t\treturn oder.getById(id);\n\t}", "public Epreuve getById(Long id) {\n\t\tEntityManager em = EntityManagerHolder.getCurrentEntityManager();\n\t\tEpreuve epreuve = em.find(Epreuve.class, id);\n\t\tSystem.out.println(\"Epreuve lu\");\n\t\treturn epreuve;\n\t}", "public Data findById(Object id);", "@Override\n\t@Transactional\n\tpublic T getById(Integer id) {\n\t\tif (id == null) {\n\t\t\treturn null;\n\t\t}\n\t\tObject result = hibernateTemplate.getSessionFactory().getCurrentSession()\n\t\t\t\t.createCriteria(getGenericClass())\n\t\t\t\t.add(Restrictions.idEq(id))\n\t\t\t\t.uniqueResult();\n\t\treturn initialize(checkType(result));\n\t}", "public T get(ID id) {\n\t\treturn (T) sessionFactory.getCurrentSession().get(clazz, id);\n\t}", "T findById(final ID id) throws RequiredValueException, NoEntityFoundException;", "@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }", "D getById(K id);", "public T getByID(int id) {\n\t\treturn this.data.get(id);\n\t}", "@Override\n\tpublic Eleve findById(int id) {\n\t\treturn map.get(id);\n\t}", "public ConsejoEntity find(Long id)\r\n {\r\n return em.find(ConsejoEntity.class, id);\r\n }", "public T findById(int id) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet rs = null;\n\t\tString query = createSelectQuery(\"id\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setInt(1, id);\n\t\t\trs = st.executeQuery();\n\t\t\t\n\t\t\treturn createObjects(rs).get(0);\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:findBy\" + e.getMessage());\n\t\t}\n\t\treturn null;\n\t}", "public E findById(E entity){\n Object identifier = HibernateUtil.getIdEntity(entity);\n return (E) entityManager.find(entity.getClass(),identifier);\n }", "Note getOneEntity(Long id);", "@Override\n\tpublic Item findItemById(Long id) {\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\n\t\t\n\t\tCriteriaQuery<Item> q = cb.createQuery(Item.class);\n\t\t Root<Item> c = q.from(Item.class);\n\t\t ParameterExpression<Long> p = cb.parameter(Long.class);\n\t\t q.select(c).where(cb.equal(c.get(\"id\"), p));\n\t\t TypedQuery<Item> query = entityManager.createQuery(q);\n\t\t query.setParameter(p, id);\n\t\t Item i = query.getSingleResult();\n\t\treturn i;\n\t}", "@Override\r\n\t@Transactional(readOnly=true)\r\n\tpublic Orden findById(Long id) {\n\t\treturn ordenRepository.findById(id).orElse(null);\r\n\t}", "@Transactional(propagation = Propagation.MANDATORY)\n\tpublic default E getOne(K id) {\n\t\treturn getRepository().getOne(id);\n\t}", "public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}", "@Override\n\tpublic car getById(int id) {\n\t\ttry{\n\t\t\tcar so=carDataRepository.getById(id);\n\t\t\t\n\t\t\treturn so;\n\t\t\t}\n\t\t\tcatch(Exception ex)\n\t\t\t{\n\t\t\t\tex.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t}", "@Override\n public DetalleVenta get(int id) {\n return detalleVentaJpaRepository.getOne(id);\n }", "Object get(ID id) throws Exception;", "public Client findById(Integer id) throws\n\t EntityNotFoundException;", "@Override\r\n\tpublic Element findById(int id) {\n\t\t\r\n\t\treturn em.find(Element.class, id);\r\n\t}", "@Override\n public TrackDTO getById(Long id) {\n Track trackByIdFromDB = trackRepository\n .findById(id)\n .orElseThrow(() -> logicExceptionComponent.getExceptionEntityNotFound(\"Track\", id));\n\n /**\n * Se convierte la cancion (trackByIdFromDB) a un tipo DTO\n * y se guarda en la variable trackById para luego ser el retorno del metodo.\n */\n TrackDTO trackById = trackMapper.toDTO(trackByIdFromDB, context);\n\n return trackById;\n }", "@Override\r\n\tpublic T findById(Long id) {\n\t\tif(id==null)\r\n\t\t\treturn null;\r\n\t\treturn (T) getSession().get(clazz, id);\r\n\t}", "@Override\n\tpublic Enterprise get(Integer id) {\n\t\treturn enterpriseDAO.get(id);\n\t}", "@Override\n public Building get(long id) {\n return dao.get(Building.class, id);\n }", "ProductEntity findById(long id);", "@SuppressWarnings(\"unchecked\")\n\tprotected <ID extends Serializable> T get(ID id) {\n\t\tT retValue = null;\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tretValue = (T) session.get(mClazz, id);\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute get by id\");\n\t\t}\n\n\t\treturn retValue;\n\t}", "T findById(Integer id);", "@Override\n\tpublic T findById(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic Employee findById(int id) {\n\t\tSession currentSession = entityManager.unwrap(Session.class);\n\t\t\n\t\t// create a query to get an employee based on Id\n\t\tQuery<Employee> theQuery = currentSession.createQuery(\"from Employee e where e.id =: id\" , Employee.class);\n\t\ttheQuery.setParameter(\"id\", id);\n\t\tEmployee employee = theQuery.getSingleResult();\n\t\treturn employee;\n\t}", "@Override\n public Customer findById(long id) throws EntityNotFoundException\n {\n return custrepos.findById(id)\n .orElseThrow(() -> new EntityNotFoundException(Long.toString(id)));\n }", "<K extends BasicEntity> K get(Class<K> clazz, Object id);", "private DBObject getById(MongoDbServer entity, String id) throws Exception {\n MongoClient mongoClient = new MongoClient(entity.getAttribute(SoftwareProcess.HOSTNAME));\n try {\n DB db = mongoClient.getDB(TEST_DB);\n DBCollection testCollection = db.getCollection(TEST_COLLECTION);\n DBObject doc = testCollection.findOne(new BasicDBObject(\"_id\", new ObjectId(id)));\n return doc;\n } finally {\n mongoClient.close();\n }\n }", "T findOne(Long id);", "public Person get( Integer id ) {\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\t\t\n\t\t\n\t\treturn(Person) session.get(Person.class,id);\n\t}", "@Override\n\tpublic Object findByIdObject(Class<T> entidade, Long id) throws Exception {\n\t\treturn null;\n\t}", "@Override\n public Person findByID(Long id) {\n Session session = getSessionFactory().openSession();\n Person p = session.load(Person.class, id);\n session.close();\n return p;\n }", "@Override\n public SideDishEntity find(Long id) throws ObjectNotFoundUserException {\n return null;\n }", "public ENTITY getByID(long ID) {\n\t\tCriteriaBuilder builder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<BaseModel> query = builder.createQuery(BaseModel.class);\n\t\tRoot baseModel = query.from(BaseModel.class);\n\n\t\tquery.where(builder.equal(baseModel.get(\"ID\"), ID));\n\t\t\n\t\treturn (ENTITY) em.createQuery(query).getSingleResult();\n\t}", "T getbyId(I id);", "@Override\n\tpublic T getById(long id) {\n\t\treturn null;\n\t}", "public Event getEventById(int id) {\n Optional<Event> optionalEvent = eventRepository.findById(id);\n if (optionalEvent.isPresent()) {\n LOGGER.info(\"Returning event with id {}\", id);\n return optionalEvent.get();\n }\n else {\n LOGGER.error(\"event with id {} has not been found\", id);\n throw new ResourceNotFoundException(\"Event not found\");\n }\n }", "@Override\n\tpublic Optional<Dispositivo> getById(int id) {\n\t\treturn dispositivoDao.findById(id);\n\t}", "@Override\n public Optional<FridgeEntity> getById(String id) {\n return Optional.empty();\n }", "Corretor findOne(Long id);", "public Person getOne(Integer id) {\n\t\tPerson person = personRepository.getOne(id);\n\t\treturn person;\n\t}", "@Override\n\tpublic User findById(String id) {\n\t\tUser u= em.find(User.class, id);\n\t\tSystem.out.println(u);\n\t\treturn u;\n\t}", "@Override\r\n\tpublic Object findById(long id) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Strumento getById(int id) throws StrumentoNotFoundException {\n\t\treturn strumentoRepository.getOne(id);\r\n\t}", "public Product get(String id);" ]
[ "0.8074594", "0.78910667", "0.78259504", "0.7823594", "0.77230567", "0.772256", "0.76794964", "0.7641387", "0.76286393", "0.7601712", "0.7596948", "0.7561902", "0.7513103", "0.7485647", "0.7457702", "0.7444302", "0.74403065", "0.74365133", "0.74333954", "0.7407458", "0.7353983", "0.73231053", "0.732309", "0.7311814", "0.73051405", "0.72807133", "0.7248517", "0.7229888", "0.7224191", "0.7223216", "0.72102207", "0.7200553", "0.71898395", "0.7156198", "0.7138556", "0.71287864", "0.71149516", "0.71146435", "0.71112734", "0.71084094", "0.7107447", "0.71027094", "0.7093499", "0.70820427", "0.70703155", "0.7069477", "0.7065336", "0.70639503", "0.70616263", "0.70544994", "0.704928", "0.70334494", "0.70333624", "0.70228875", "0.7015436", "0.7013066", "0.7002748", "0.6994835", "0.69765997", "0.69721735", "0.6971417", "0.69686383", "0.69584924", "0.69537395", "0.69467396", "0.69353426", "0.6935338", "0.6935012", "0.6930578", "0.6903666", "0.68955576", "0.6889034", "0.6887915", "0.68857104", "0.688088", "0.6877802", "0.68767744", "0.6871502", "0.686471", "0.6851323", "0.68487406", "0.6844272", "0.6827332", "0.6822824", "0.6818251", "0.68152815", "0.68067604", "0.68064886", "0.68036866", "0.67971957", "0.6793804", "0.6791332", "0.6790079", "0.67861646", "0.67851305", "0.67845154", "0.6781983", "0.67815095", "0.67805177", "0.67770493" ]
0.82237685
0
Saves the given entity to the database
public TEntity save(TEntity entity){ ContentValues content = toContentValues(entity); TEntity oldEntity = getById(entity.getId()); int newKey; if (oldEntity != null) { db.update(tableName, content, String.format("Id = %1$s", oldEntity.getId()), null); newKey = oldEntity.getId(); } else { newKey = (int)db.insert(tableName, null, content); } return getById(newKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void save(Object entity);", "void save(E entity);", "Entity save(Entity entity);", "E save(E entity);", "void save(T entity);", "T save(T entity);", "T save(T entity);", "T save(T entity);", "public <T> T save(T entity);", "public void save(E entity){\n transaction.begin();\n entityManager.persist(entity);\n transaction.commit();\n }", "Boolean save(T entity);", "@Override\n\tpublic T save(T entity) {\n\t\treturn getDao().save(entity);\n\t}", "<S extends T> S save(S entity);", "<S extends T> S save(S entity);", "public void save(PtJJdwcy entity);", "void save(Cartera entity);", "@Override\n\tpublic void save(Field entity) {\n\t\t\n\t}", "public void save(final T entity)\n\t{\n\t\tem.persist(entity);\n\t}", "T save(T entity) throws DataConcurrencyException, DataIntegrityViolationException;", "@Override\n\tpublic void save( T entity) {\n\t baseDaoImpl.save(entity);\n\t}", "public void save() throws EntityPersistenceException {\n\n }", "@Override\n public Building save(Building entity) {\n return dao.save(entity);\n }", "@Override\n public int save(T entity) {\n return mapper.insert(entity);\n }", "@Override\n\tpublic void save(EmpType entity) {\n\t\t\n\t}", "@Override\n\tpublic void persist(Object entity) {\n\t\t\n\t}", "void save(T entity, boolean editMode) throws PersistenceException;", "@Override\n\tpublic void saveEntity(T t) {\n\t\tgetSession().save(t);\n\t}", "void saveOrUpdate(T entity);", "void saveOrUpdate(T entity);", "@Transactional\n\t@Override\n\tpublic void save(T entity) {\n\t\tregistroDao.save((Registro)entity);\t\t\n\t}", "public void save(HrJBorrowcontract entity);", "@SuppressWarnings({\n\t\t\t\t\t\t\"rawtypes\", \"unchecked\" })\n\tprotected <E extends AbstractEntity> E saveEntity(final E entity) {\n\t\tObjects.requireNonNull(entity);\n\n\t\tE entityDB;\n\t\ttry (final Connection con = conManager.getConnection(Boolean.FALSE)) {\n\t\t\tentityDB = (E) (new EntityManagerImpl(entity.getClass())).saveOrUpdate(con, entity);\n\t\t} catch (SQLException e) {\n\t\t\tthrow new IllegalStateException(\"Entity save failed\", e);\n\t\t}\n\n\t\treturn entityDB;\n\t}", "public abstract void saveOrUpdate(T entity);", "public UserEntity save(UserEntity userEntity);", "public void save(Entity entity) throws RepositoryException {\n\t\tDatanucleusCRUDUtils.save(entity);\n\t}", "public void save(Address entity);", "ID saveWithId(T entity);", "public void persist(T entity) {\n getSession().persist(entity);\n }", "public void persist(T entity) {\n getSession().persist(entity);\n }", "public void saveOrUpdate(T entity) {\n\t\t\n\t}", "public void save(HrCStatitem entity);", "@Override\r\n\tpublic void save(PartyType entity) {\n\t\t\r\n\t}", "public void persist(T entity) {\n\t\tsessionFactory.getCurrentSession().persist(entity);\n\t}", "public T doSave(T entity)\n {\n preDoSave(entity);\n session.saveOrUpdate(entity);\n postDoSave(entity);\n\n return entity;\n }", "@Override\n\tpublic void save(User entity) {\n\t\t\n\t}", "@Override\r\n\tpublic void save(HotelVendorEntity entity) {\n\t\tSystem.out.println(\"invoked save\"+entity);\r\n\t\tSystem.out.println(\"saved in database\");\r\n\t\t\r\n\t\tConfiguration cfg=new Configuration();\r\n\t\tcfg.configure();\r\n\t\tSessionFactory factory=cfg.buildSessionFactory();\r\n\t\tSession session=factory.openSession();\r\n\t\tsession.beginTransaction();\r\n\t\tsession.save(entity);\r\n\t\tsession.getTransaction().commit();\r\n\t\tsession.close();\r\n\t\tfactory.close();\r\n\t\t\r\n\t}", "@Override\n\tpublic int saveObject(Evaluate entity) {\n\t\treturn evaluateMapper.saveObject(entity)\n\t\t\t\t;\n\t}", "@Override\r\n public void saveOrUpdateEntity(String entityName, DataStoreEntity dataStoreEntity) {\n\r\n }", "@Override\r\n\tpublic T save(T entity) throws Exception {\n\t\ttry {\r\n\t\t\tthis.getcurrentSession().save(entity);\r\n\t\t\treturn entity;\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\tthrow new Exception(\"保存\" + entity.getClass().getName() + \"实例失败\", e);\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic <S extends Translator> S save(S entity) {\n\t\treturn save(entity);\n\t}", "@Override\n\tpublic <S extends Audit> S save(S entity) {\n\t\treturn null;\n\t}", "public void postDoSave(T entity)\n {\n }", "@Override\n public SideDishEntity save(SideDishEntity entity) {\n return null;\n }", "Product save(Product product);", "private void saveEntity(E entity){\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(this.fileName, true))) {\n bw.write(entity.toFile());\n bw.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void save(List<Field> entity) {\n\t\t\n\t}", "LoginHistory save(LoginHistory entity);", "@Override\r\n\tpublic final <S extends MODEL> void persist(S entity) {\r\n\t\tLOGGER.trace(\"Persisting entity {}\", entity);\r\n\t\tif (entity == null) {\r\n\t\t\tthrow DaoRuntimeException.cannotPerformCRUDOnNullEntity();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tentityManager.persist(entity);\r\n\t\t} catch (Exception exception) {\r\n\t\t\tHandlerUtil.handle(exception);\r\n\t\t\tThrowable rootCause = Throwables.getRootCause(exception);\r\n\t\t\tthrow DaoRuntimeException.cannotSaveEntity(getEntityClassName(), rootCause.getMessage(), exception);\r\n\r\n\t\t} finally {\r\n\t\t\tcloseEntityManager(entityManager);\r\n\t\t}\r\n\r\n\t}", "public void save(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//session.save(obj);\n\t\tsession.persist(obj);\n\t}", "public void commitEntity();", "void saveStorage(StorageEntity storage);", "public void save(Object instance);", "@Override\n\tpublic Comprobante save(Comprobante entity) throws Exception {\n\t\treturn comproRepository.save(entity);\n\t}", "public final void persist(final E entity) {\n getJpaTemplate().persist(entity);\n }", "public void persist(Book entity)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.persist(entity);\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void saveContratoDosimetro(ContratoDosimetro entity)\n throws Exception;", "@Override\n public void save(T element) {\n manager.persist(element);\n }", "public Predmet save(Predmet entity){\r\n\t\tPredmet find = em.find(Predmet.class, entity.getSifraPredmeta());\r\n\t\tif(find != null){\r\n\t\t\tem.getTransaction().begin();\r\n\t\t\tfind.setNazivPredmeta(entity.getNazivPredmeta());\r\n\t\t\tfind.setSkraceniNazivPredmeta(entity.getSkraceniNazivPredmeta());\r\n\t\t\tfind.setBrojSemestra(entity.getBrojSemestra());\r\n\t\t\tem.getTransaction().commit();\r\n\t\t}else{\r\n\t\t\tsuper.save(entity);\r\n\t\t}\r\n\t\tMyEvent evt = new MyEvent(this, \"Update Predmet\");\r\n\t\tPanelPrijava.realTime.fireMyEvent(evt);\r\n\t\treturn entity;\r\n\t}", "public void guardarEntidad(E entidad) {\n logger.debug(\"Guardando la entidad: [\" + clasePersistente + \"]\" + entidad);\n getSesion().persist(entidad);\n }", "CounselorBiographyTemp save(CounselorBiographyTemp entity);", "public void save(CbmCItemFininceItem entity);", "public T save(T entity) throws Exception{\n\t\tentity = em.merge(entity);\n\t\treturn entity;\n\t}", "public void saveGeominas(Geominas entity) throws Exception;", "E update(E entity);", "E update(E entity);", "public void saveGeneric(Object entity) throws RepositoryException {\n\t\tDatanucleusCRUDUtils.saveGeneric(entity);\n\t}", "public abstract CustomerOrder save(CustomerOrder entity);", "@Override\n\tpublic void persist(Recipe entity) {\n\t\t\n\t}", "boolean saveUser(User entity) throws UserDaoException;", "@Override\r\n\tpublic Staff save(Staff entity) {\n\t\treturn staffDao.save(entity);\r\n\t}", "@Override\n\tpublic void insert(UploadDF entity) {\n\t\tSession session = factory.openSession();\n\t\ttry{\n\t\t\tsession.beginTransaction();\n\t\t\tsession.save(entity);\n\t\t\tsession.getTransaction().commit();\n\t\t}catch(HibernateException exception){\n\t\t\tsession.getTransaction().rollback();\n\t\t\tthrow exception;\n\t\t}finally{\n\t\t\tsession.close();\n\t\t}\n\t}", "@Override\n\tpublic void persist(T obj) throws Exception {\n\t\t\n\t}", "Post save(Post post) throws Exception;", "@Override\n\tpublic void saveOrUpdate(EmpType entity) {\n\n\t}", "@Override\n\tpublic <S extends Audit> S saveAndFlush(S entity) {\n\t\treturn null;\n\t}", "public Contract save(Contract entity) {\n\t\treturn null;\r\n\t}", "public void saveProduct(Product product);", "public E saveUpdate(E entity){\n EntityTransaction transaction = entityManager.getTransaction();\n transaction.begin();\n E e = entityManager.merge(entity);\n transaction.commit();\n return e;\n }", "public void save();", "public void save();", "public void save();", "public void save();", "public T save(T entity) throws DAOException {\n Helper.checkNull(entity, \"entity\");\n Helper.checkEntityManager(entityManager);\n try {\n return entityManager.merge(entity);\n } catch (Exception e) {\n throw new DAOException(\"Failed to save entity.\", e);\n }\n }", "public void save(Object e) throws RNoEntityException{\n\t\tEntity en = ALiteOrmBuilder.getInstance().getEntity(e.getClass());\n\t\tif(en == null)\n\t\t\tthrow new RNoEntityException(\"For : \" + e.getClass().getName());\n\t\ten.save(this, db, new TravelingEntity(e));\n\t}", "void save(Employee employee);", "T save(T object);", "public PersonalRecord save(PersonalRecord entity) {\n\t\treturn personalRecordRepository.save(entity);\n\t}", "@Override\n\tpublic void saveself(DataTaxTask entity) {\n\t\tcommonDao.saveOrUpdate(entity);\n\t\t\n\t}", "@Put\n public void storeRepresentation(Representation entity)\n throws ResourceException {\n try {\n JaxbRepresentation<Student> jaxbRep =\n new JaxbRepresentation<Student>(entity, Student.class);\n jaxbRep.validate(FileUtils.getSchema(STUDENT_INPUT_SCHEMA_PATH));\n Student updatedStudent = (Student)jaxbRep.getObject();\n dataService.putStudent(student, updatedStudent);\n getResponse().setEntity(\n new JaxbRepresentation(MediaType.TEXT_XML, updatedStudent));\n getResponse().setStatus(Status.SUCCESS_OK);\n } catch (SAXException ex) {\n logger.log(Level.SEVERE, ex.toString(), ex);\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, ex);\n } catch (Exception ex) {\n logger.log(Level.SEVERE, ex.toString(), ex);\n throw new ResourceException(Status.SERVER_ERROR_INTERNAL, ex);\n }\n }", "@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}" ]
[ "0.86287", "0.8546422", "0.854174", "0.83552444", "0.8226205", "0.8098177", "0.8098177", "0.8098177", "0.80547816", "0.8035275", "0.78372645", "0.7825289", "0.77090573", "0.77090573", "0.7690415", "0.7656824", "0.7619155", "0.7609961", "0.7546549", "0.74902767", "0.7449691", "0.74484867", "0.7441498", "0.74060786", "0.7382106", "0.73742366", "0.7357887", "0.7243199", "0.7243199", "0.7217787", "0.7192673", "0.71793985", "0.71778095", "0.716183", "0.7155038", "0.7150341", "0.7144484", "0.7118777", "0.7118777", "0.7112671", "0.7111802", "0.70088285", "0.6998975", "0.69955915", "0.69946104", "0.69522923", "0.6917978", "0.6905834", "0.68764925", "0.68749994", "0.6864816", "0.68445545", "0.6838173", "0.6833749", "0.68313617", "0.6827376", "0.68235916", "0.67942643", "0.67758375", "0.6761971", "0.67543495", "0.67454773", "0.67419654", "0.6727847", "0.6725044", "0.6710025", "0.67072195", "0.66983813", "0.6694838", "0.6693793", "0.6669699", "0.6654285", "0.66385", "0.6621524", "0.6621524", "0.66108966", "0.6602604", "0.6602406", "0.66012937", "0.6599555", "0.65921885", "0.65787506", "0.65703654", "0.6569244", "0.6563488", "0.6562413", "0.6560402", "0.6556486", "0.6537464", "0.6537464", "0.6537464", "0.6537464", "0.6534654", "0.6533441", "0.65238935", "0.6520797", "0.6506457", "0.65054125", "0.6502733", "0.64996326" ]
0.7311849
27
Deletes the entity with the given id from the database
public boolean delete(int id){ int deletedCount = db.delete(tableName, String.format("Id = %1$s", id), null); return deletedCount > 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteEntityById(Long id);", "@Override\n\t@Transactional\n\tpublic void delete(Long id) {\n\t\tem.remove(findOne(id));\n\t\t\n\t}", "@Override\r\n\tpublic void delete(Long id) {\n\t\trepository.deleteById(id);\r\n\t}", "@Override\n public void delete(Integer id) {\n entityManager.remove(findById(id));\n }", "public void deleteById(Long id);", "@Query(value = \"{ 'id': ?0}\", delete = true)\n\tLong deleteById(Integer id);", "@Override\r\n\tpublic void delete(int id) {\n\t\tthis.getHibernateTemplate().delete(this.get(id));\r\n\t}", "ApiResponse deleteEntityById(Integer id);", "@Override\n\tpublic void delete(Integer id) {\n\t\tgastoModel.deleteById(id);\n\t}", "@Override\n public void deleteById(long id) {\n dao.deleteById(id);\n }", "@Override\n\tpublic void delete(Integer id) {\n\t\tgetHibernateTemplate().delete(get(id));\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic void deleteById(Long id) {\n\t\tordenRepository.deleteById(id);\r\n\t}", "public void delete(long id)\r\n\t{\n\t\trepository.deleteById(id);\r\n\t}", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "void deleteById(Long id);", "public void deleteById(final ID id) throws Exception{\n\t\tT entity = em.find(persistentClass, id);\n\t\tif(entity != null) em.remove(entity);\n\t}", "public void delete(Long id)\r\n {\r\n ConsejoEntity entity = em.find(ConsejoEntity.class, id);\r\n em.remove(entity);\r\n }", "public void deleteById(String id);", "public void delete(Long id){\n\t\tdb.delete(id);\n\t}", "@Override\r\n\tpublic void deleteById(Long id) {\n\t\tsuper.deleteById(id);\r\n\t}", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(long id) {\n\t\trepository.deleteById(id);\n\t\t\n\t}", "@Override\n\tpublic void deleteById(Long id) {\n\n\t}", "public void deleteById(final String id)\n\t{\n\t\tfinal T entity = findById(id);\n\t\tdelete(entity);\n\t}", "void deleteById(long id);", "void deleteById(Integer id);", "void deleteById(Integer id);", "public void delete(Long id) {\n\t\trepository.delete(id);\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\tstnLooseMtRepository.delete(id);\r\n\t\t}", "@Override\n\tpublic void delete(int id) {\n\t\tdispositivoDao.deleteById(id);\n\t}", "public void delete(int id) {\n\t\tdao.delete(id);\r\n\t}", "public static void delete(int id){\n\t\tfind.byId(id).delete();\n\t}", "@Override\n\tpublic void delete(ID id) {\n\t\tgetDao().deleteById(id);\n\t}", "public void deleteById(long id) {\n\n\t}", "@Override\n\tpublic void delete(long id) {\n\t\tmapper.deleteByPrimaryKey(id);\n\t}", "public void deleteById(long id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(long id) {\n\t\tCR.deleteById(id);\n\t}", "void deleteById(final String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "@Override\r\n\tpublic void delete(int id) {\n\t\tlibroRepository.deleteById(id);\r\n\t}", "@Override\n\tpublic void deleteById(Integer id) {\n\t\tfacturaRepository.deleteById(id);\n\t\t\n\t}", "void delete(final Long id);", "@Override\n\tpublic void removeEntityById(String id) {\n\t\tClassMetadata classMetadata = sessionFactory.getClassMetadata(entityType);\n\t\tString idName = classMetadata.getIdentifierPropertyName();\n\t\tString simpleName = entityType.getSimpleName();\n\t\tString hql = \"delete from\" +simpleName+\"e where e.\"+idName+\"=?\";\n\t\tgetQuery(hql, id).executeUpdate();\n\t}", "@Override\r\n\t@Transactional\r\n\tpublic void delete(Integer id) {\n\t\tdao.deleteById(id);\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\tconsigMetalDtRepository.delete(id);\r\n\t\t\r\n\t}", "public boolean deleteById(final Long id);", "@Override public boolean delete(K id) {\n session.beginTransaction();\n E entity = getEntityById(id);\n session.delete(entity);\n session.getTransaction().commit();\n LOG.info(String.format(\"Entity with id = %d deleted\", id));\n return true;\n }", "public void deleteEntity(Long id) {\n T entity = getService().findById(id);\n delete(id);\n \n // delete from in-memory (for AJAX)\n getEntities().remove(entity);\n if (entity.equals(getSelectedEntity())) {\n unselectAll();\n }\n getSelectedEntities().remove(entity);\n }", "@Transactional\n\t@Override\n\tpublic void deleteById(Integer entityId) {\n\t\tregistroDao.deleteById(entityId);\n\t}", "@Override\n public void deleteById(long id) {\n\n Query theQuery = entityManager.createQuery(\"DELETE FROM Employee WHERE id=:employeeId\");\n \n theQuery.setParameter(\"employeeId\", id);\n \n theQuery.executeUpdate();\n }", "@Override\n\tpublic void deleteById(Integer id) {\n\t\t\n\t}", "@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Record : {}\", id);\n recordRepository.deleteById(id);\n }", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "public boolean deleteById(Object id);", "public boolean deleteById(Object id);", "@Override\n\tpublic void delete(Long id) {\n\t\tdiseaseRepository.deleteById(id);\n\t\t\n\t}", "@Override\r\n\tpublic void deleteId(int id) {\n\t\tdao.deleteId(id);\r\n\t}", "@Delete(DELETE_BY_ID)\n @Override\n int deleteById(int id);", "@Override\n\tpublic void deleteById(String id) throws Exception {\n\t\t\n\t}", "void deleteById(int id);", "@Override\n public void delete(int id) {\n Book bookDb = repository.findById(id)\n .orElseThrow(RecordNotFoundException::new);\n // delete\n repository.delete(bookDb);\n }", "void delete(int entityId);", "void deleteById(Long Id);", "public void delete(Long id) {\n\t\tdao.deleteObjectByIds(id);\n\t}", "@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "int deleteById(Long id);", "@Override\n\t@Transactional // de escritura\n\tpublic void deleteById(Long id) {\n\t\tproductoDao.deleteById(id);\n\t}", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Studente : {}\", id); studenteRepository.deleteById(id);\n }", "public void deleteById(Integer id) {\n\n\t}", "public void delete(Long id) {\n\t\tpersonRepository.deleteById(id);\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete Kohnegi : {}\", id);\n kohnegiRepository.deleteById(id);\n }", "public void delete(String id) {\n\t\tdao.delete(id);\n\t}", "public void delete(E entity){\n Object idEntity = HibernateUtil.getIdEntity(entity);\n EntityTransaction entityTransaction = entityManager.getTransaction();\n entityTransaction.begin();\n entityManager.createNativeQuery(\"delete from \" + entity.getClass().getSimpleName().toLowerCase() +\n \" where id = \" + idEntity).executeUpdate();\n entityTransaction.commit();\n }", "public void delete(Integer id) {\n\t\tpersonRepository.delete(id);\n\t}", "@Override\n\tpublic void deleteById(int id) {\n\t\tProduct p = em.getReference(Product.class, id); \n\t\tem.remove(p);\n\t\t/*//JPQL simply translates into SQL queries, hence Cascade and Fetch will not work with queries. \n\t\t * //If te cascading was configured on teh database side, then query based operations can be used.\n\t\t * Query q = em.createQuery(\"delete from Product as p where p.id = :idparam\");\n\t\t * q.setParameter(\"idparam\", id); q.executeUpdate();\n\t\t */\n\t}", "@Override\n public void delete(Long id) {\n\n Session session = getSessionFactory().openSession();\n\n try{\n session.beginTransaction();\n Person p = findByID(id);\n session.delete(p);\n session.getTransaction().commit();\n LOGGER.log(Level.INFO, \"Successfully deleted \" + p.toString());\n }\n catch (Exception e){\n if (session.getTransaction() != null){\n session.getTransaction().rollback();\n LOGGER.log(Level.INFO,\"Deletion failed\");\n }\n }\n finally {\n session.close();\n }\n }", "@Override\n public void delete(Long id) throws Exception {\n\n }" ]
[ "0.8818343", "0.8362186", "0.8301619", "0.8277294", "0.81701815", "0.814998", "0.8147775", "0.80838996", "0.8073674", "0.8066441", "0.8051985", "0.8051494", "0.80422926", "0.80271333", "0.80271333", "0.80271333", "0.80271333", "0.799983", "0.7998373", "0.79959446", "0.7986838", "0.79860055", "0.7977847", "0.7977847", "0.7977847", "0.7977847", "0.7977847", "0.79750013", "0.7938305", "0.78943664", "0.78873503", "0.7881915", "0.7881915", "0.78742677", "0.7873842", "0.78696394", "0.7855312", "0.78520566", "0.7826254", "0.7825982", "0.78229636", "0.7821895", "0.78191316", "0.7816865", "0.7810111", "0.7810111", "0.7810111", "0.7810111", "0.7810111", "0.7810111", "0.7810111", "0.7810111", "0.7810111", "0.7810111", "0.7810042", "0.7808224", "0.7807077", "0.7804519", "0.7794871", "0.779244", "0.77862763", "0.778489", "0.7777646", "0.7759109", "0.77534026", "0.7750451", "0.7746637", "0.7743153", "0.7741756", "0.7741756", "0.7741756", "0.7735761", "0.7735761", "0.7722245", "0.77174395", "0.7714645", "0.77128696", "0.771273", "0.771179", "0.77069855", "0.7703052", "0.7697316", "0.76966894", "0.7684437", "0.7684437", "0.7684437", "0.7684437", "0.7684437", "0.76788986", "0.767578", "0.76722926", "0.7672002", "0.76719326", "0.76684296", "0.7660462", "0.76438373", "0.7631259", "0.76246643", "0.7618205", "0.7609319", "0.76074183" ]
0.0
-1
Instantiates a new scrolling tab container view.
public ScrollingTabContainerView(Context context) { super(context); setHorizontalScrollBarEnabled(false); TypedArray a = getContext().obtainStyledAttributes(null, R.styleable.SherlockActionBar, R.attr.actionBarStyle, 0); setContentHeight(a.getLayoutDimension( R.styleable.SherlockActionBar_height, 0)); a.recycle(); mInflater = LayoutInflater.from(context); mTabLayout = createTabLayout(); addView(mTabLayout, new ViewGroup.LayoutParams( ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.MATCH_PARENT)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }", "private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}", "private IcsLinearLayout createTabLayout() {\n\t\tfinal IcsLinearLayout tabLayout = (IcsLinearLayout) LayoutInflater\n\t\t\t\t.from(getContext()).inflate(\n\t\t\t\t\t\tR.layout.abs__action_bar_tab_bar_view, null);\n\t\ttabLayout.setMeasureWithLargestChildEnabled(true);\n\t\ttabLayout.setLayoutParams(new LinearLayout.LayoutParams(\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT,\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.MATCH_PARENT));\n\t\treturn tabLayout;\n\t}", "public void setupScroll() {\n\t\ttabs = new JLayeredPane();\n\t\tscroll = new JScrollPane(panel);\n\t\tchampions = new ArrayList<JButton>();\n\t\taddChampions(panel, CHAMPIONLIST);\n\t\ttabs = new JLayeredPane();\n\t\tURL url = getClass().getResource(\".coredata/background/ChampionsTab.png\");\n\t\tImageIcon tabIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\ttabs.setPreferredSize(new Dimension(724, 53));\n\t\tJLabel championTab = new JLabel();\n\t\tchampionTab.setIcon(tabIcon);\n\t\ttabs.add(championTab, 50);\n\t\tchampionTab.setBounds(0, 0, tabIcon.getIconWidth(), tabIcon.getIconHeight());\n\t\tsearch = new JTextField(10);\n\t\tsearch.addFocusListener(new FocusListener() {\n\t\t\tpublic void focusGained(FocusEvent e) {search.setText(\"\");}\n\t\t\tpublic void focusLost(FocusEvent e) {}\n\t\t});\n\t\ttabs.add(search, 1000);\n\t\tsearch.setBounds(600, 10, 100, 25);\n\t}", "private void createTabsDiv() {\n tabsDiv = new Block(Block.Div, \"id='tabs'\");\n page.add(tabsDiv);\n }", "ViewContainer createViewContainer();", "private void initTabs() {\n\t\tmContainer.removeAllViews();\n\n\t\tif(mAdapter==null||mViewPager==null){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<mViewPager.getAdapter().getCount();i++){\n\t\t\tfinal int index=i;\n\t\t\tButton tabs= (Button) mAdapter.getView(index);\n\t\t\tLayoutParams layoutParams=new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\tlayoutParams.weight=1;\n\t\t\tmContainer.addView(tabs,layoutParams);\n\t\t\t\n\t\t\ttabs.setOnClickListener(new OnClickListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(mViewPager.getCurrentItem()==index){\n\t\t\t\t\t\tselectTab(index);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmViewPager.setCurrentItem(index, true);\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\tselectTab(0);\n\t}", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootTabControl = new JTabbedPane();\n panel1.add(rootTabControl, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate( R.layout.fragment_news, container, false );\n vp = (ViewPager)view.findViewById(R.id.vp);\n FragmentAdapter adapter = new FragmentAdapter(getFragmentManager(),getContext());\n vp.setAdapter(adapter);\n\n TabLayout tabLayout = (TabLayout)view.findViewById(R.id.scrollTab);\n tabLayout.setupWithViewPager(vp);\n\n tabLayout.setTabGravity(TabLayout.GRAVITY_CENTER);\n\n return view;\n }", "private void createView() {\n\t\tTabWidget tWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tshowLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView = (ImageView) showLayout.getChildAt(0);\r\n\t\tTextView textView = (TextView) showLayout.getChildAt(1);\r\n\t\timageView.setImageResource(R.drawable.main_selector);\r\n\t\ttextView.setText(R.string.show);\r\n\r\n\t\taddLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView1 = (ImageView) addLayout.getChildAt(0);\r\n\t\tTextView textView1 = (TextView) addLayout.getChildAt(1);\r\n\t\timageView1.setImageResource(R.drawable.add_selector);\r\n\t\ttextView1.setText(R.string.add_record);\r\n\r\n\t\tchartLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView2 = (ImageView) chartLayout.getChildAt(0);\r\n\t\tTextView textView2 = (TextView) chartLayout.getChildAt(1);\r\n\t\timageView2.setImageResource(R.drawable.chart_selector);\r\n\t\ttextView2.setText(R.string.chart_show);\r\n\t}", "private TabView createTabView(ActionBar.Tab tab, boolean forAdapter) {\n\t\t// Workaround for not being able to pass a defStyle on pre-3.0\n\t\tfinal TabView tabView = (TabView) mInflater.inflate(\n\t\t\t\tR.layout.abs__action_bar_tab, null);\n\t\ttabView.init(this, tab, forAdapter);\n\n\t\tif (forAdapter) {\n\t\t\ttabView.setBackgroundDrawable(null);\n\t\t\ttabView.setLayoutParams(new ListView.LayoutParams(\n\t\t\t\t\tandroid.view.ViewGroup.LayoutParams.MATCH_PARENT,\n\t\t\t\t\tmContentHeight));\n\t\t} else {\n\t\t\ttabView.setFocusable(true);\n\n\t\t\tif (mTabClickListener == null) {\n\t\t\t\tmTabClickListener = new TabClickListener();\n\t\t\t}\n\t\t\ttabView.setOnClickListener(mTabClickListener);\n\t\t}\n\t\treturn tabView;\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tv = inflater.inflate(R.layout.fragment1_tabs, container, false);\n\t\tmTabHost = (TabHost)v.findViewById(R.id.TabHost01);\n mTabHost.setup();\n \n mTabManager = new TabManager(getActivity(), mTabHost, R.id.realtabcontents);\n mTabHost.setCurrentTab(0);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab1\").setIndicator(\"Tab1\",this.getResources().getDrawable(R.drawable.car1)),\n \t\tFragment1_Tab1.class, null);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab2\").setIndicator(\"Tab2\",this.getResources().getDrawable(R.drawable.car2)),\n \t\tFragment1_Tab2.class, null);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab3\").setIndicator(\"Tab3\",this.getResources().getDrawable(R.drawable.car3)),\n \t\tFragment3.class, null);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab4\").setIndicator(\"Tab4\",this.getResources().getDrawable(R.drawable.car4)),\n \t\tFragment4.class, null);\n \n DisplayMetrics dm = new DisplayMetrics(); \n getActivity().getWindowManager().getDefaultDisplay().getMetrics(dm); //先取得螢幕解析度 \n int screenWidth = dm.widthPixels; //取得螢幕的寬\n \n \n TabWidget tabWidget = mTabHost.getTabWidget(); //取得tab的物件\n int count = tabWidget.getChildCount(); //取得tab的分頁有幾個\n if (count > 3) { //如果超過三個就來處理滑動\n for (int i = 0; i < count; i++) { \n tabWidget.getChildTabViewAt(i).setMinimumWidth((screenWidth) / 4);//設定每一個分頁最小的寬度 \n } \n }\n\t\treturn v;\n\t}", "private void setupTabLayout() {\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n });\n tabLayout.getTabAt(0).select();\n View root = tabLayout.getChildAt(0);\n //create divider between the tabs\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColorFilter(0xffff0000, PorterDuff.Mode.MULTIPLY);\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n }", "public KonTabbedPane() {\n // Initialize the ArrayList\n graphInterfaces = new ArrayList<DrawingLibraryInterface>();\n\n DirectedGraph<String, DefaultEdge> graph = CreateTestGraph();\n\n /*\n * Adds a tab\n */\n DrawingLibraryInterface<String, DefaultEdge> graphInterface =\n DrawingLibraryFactory.createNewInterface(graph);\n \n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n addTab(\"First Tab\", graphInterface.getPanel());\n\n /*\n * Adds a tab\n */\n graphInterface = DrawingLibraryFactory.createNewInterface(graph);\n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n\n graphInterface.getGraphManipulationInterface().highlightNode(graph\n .vertexSet().iterator().next(), true);\n\n addTab(\"Second Tab\", graphInterface.getPanel());\n }", "private void initView() {\n\n LinearLayout bar = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.bottom_bar, null);\n LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\n addView(bar, lp);\n tab1= (LinearLayout) bar.findViewById(R.id.tab1);\n tab2= (LinearLayout) bar.findViewById(R.id.tab2);\n tab3= (LinearLayout) bar.findViewById(R.id.tab3);\n tab4= (LinearLayout) bar.findViewById(R.id.tab4);\n ivTab1= (ImageView) bar.findViewById(R.id.ivTab1);\n tvTab1= (TextView) bar.findViewById(R.id.tvTab1);\n ivTab2= (ImageView) bar.findViewById(R.id.ivTab2);\n tvTab2= (TextView) bar.findViewById(R.id.tvTab2);\n ivTab3= (ImageView) bar.findViewById(R.id.ivTab3);\n tvTab3= (TextView) bar.findViewById(R.id.tvTab3);\n ivTab4= (ImageView) bar.findViewById(R.id.ivTab4);\n tvTab4= (TextView) bar.findViewById(R.id.tvTab4);\n\n tab1.setOnClickListener(this);\n tab2.setOnClickListener(this);\n tab3.setOnClickListener(this);\n tab4.setOnClickListener(this);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.tabs_fragment, container, false);\n ViewPager viewPager = rootView.findViewById(R.id.categories_view_pager);\n FragmentViewPagerAdapter adapter = new FragmentViewPagerAdapter(getChildFragmentManager());\n\n adapter.addFragments(new Education_FirstTab(), getString(R.string.education_tab1));\n adapter.addFragments(new Education_SecondTab(), getString(R.string.education_tab2));\n\n viewPager.setAdapter(null);\n viewPager.setAdapter(adapter);\n\n TabLayout tabs = rootView.findViewById(R.id.tab_layout);\n tabs.setupWithViewPager(viewPager);\n\n return rootView;\n\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 ViewPager viewPager= view.findViewById(R.id.viewPager);\n TabLayout tabLayout= view.findViewById(R.id.tabLayout);\n SectionAdapter adapter = new SectionAdapter(getChildFragmentManager(),getContext());\n viewPager.setAdapter(adapter);\n viewPager.setCurrentItem(mPosition);\n tabLayout.setupWithViewPager(viewPager);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_tab_nd, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tab, container, false);\n\n Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar);\n AppCompatActivity activity = (AppCompatActivity) getActivity();\n activity.setSupportActionBar(toolbar);\n\n // Initializing the TabLayout\n topTap = (TabLayout) view.findViewById(R.id.tab_top);\n topTap.addTab(topTap.newTab().setText(\"DOMPET\"));\n topTap.addTab(topTap.newTab().setText(\"CASH IN\"));\n topTap.addTab(topTap.newTab().setText(\"CASH OUT\"));\n topTap.setTabGravity(TabLayout.GRAVITY_FILL);\n topTap.setTabMode(TabLayout.MODE_FIXED);\n topTap.setSelectedTabIndicatorColor(Color.YELLOW);\n\n // Initializing ViewPager\n viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n viewPager.setOffscreenPageLimit(2);\n\n // Creating TabPagerAdapter adapter\n TabPagerAdapter pagerAdapter = new TabPagerAdapter(activity.getSupportFragmentManager(), topTap.getTabCount());\n viewPager.setAdapter(pagerAdapter);\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(topTap));\n\n // Set TabSelectedListener\n topTap.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n return view;\n }", "public void init(Object container, Object extraData) throws Exception {\n\t\tif (!(container instanceof TabPane)) {\n\t\t\tthrow new Exception(\"container doesnt seem to be of type TabPane!\");\n\t\t}\n\n\t\tTabPane tabPane = (TabPane) container;\n\n\t\tScrollPane scrollPane = new ScrollPane();\n\t\tscrollPane.setFitToWidth(true);\n\t\tscrollPane.setFitToHeight(true);\n\n\t\tVBox vBox = new VBox();\n\t\tvBox.setSpacing(10);\n\t\tvBox.setPadding(new Insets(10, 10, 10, 10));\n\n\t\tText text = new Text();\n\t\ttext.setWrappingWidth(300);\n\t\ttext.setText(Translation.fetch(\"text_welcome\"));\n\t\tvBox.getChildren().add(text);\n\n\t\tscrollPane.setContent(vBox);\n\n\t\tTab tab = new Tab(Translation.fetch(\"welcome\"));\n\t\ttab.setContent(scrollPane);\n\n\t\ttabPane.getTabs().add(tab);\n\n\t\t// update texts width on resize\n\t\tscrollPane.viewportBoundsProperty().addListener(new ChangeListener<Bounds>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Bounds> bounds, Bounds oldBounds, Bounds newBounds) {\n\t\t\t\ttext.setWrappingWidth(newBounds.getWidth() - 25);\n\t\t\t}\n\t\t});\n\t}", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\tBundle savedInstanceState) {\n\t\t\tint position;\n\t\t\tBundle args = getArguments();\n\t\t\tposition = args.getInt(ARG_OBJECT);\n\t\t\t// }\n\n\t\t\tint tabLayout = 0;\n\t\t\tswitch (position) {\n\t\t\tcase 0:\n\t\t\t\ttabLayout = R.layout.pagina1;\n\t\t\t\tnView = 0;\n\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\ttabLayout = R.layout.pagina2;\n\t\t\t\tnView = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tView rootView = inflater.inflate(tabLayout, container, false);\n\n\t\t\treturn rootView;\n\t\t}", "private void createTabs(){\n canvasPanel = new JPanel();\n canvasPanel.setLayout(new BorderLayout());\n canvasPanel.add(mCanvas, BorderLayout.CENTER);\n canvasPanel.setMinimumSize(new Dimension(100,50));\n \n // Create the options and properties panel\n optionPanel = new JPanel();\n optionPanel.setLayout(new FlowLayout());\n\n // Set the size\n optionPanel.setMinimumSize(new Dimension(30,30));\t\n optionPanel.setPreferredSize(new Dimension(200,10));\n\n // Create the log area\n mLogArea = new JTextArea(5,20);\n mLogArea.setMargin(new Insets(5,5,5,5));\n mLogArea.setEditable(false);\n JScrollPane logScrollPane = new JScrollPane(mLogArea);\n \n // Das SplitPanel wird in optionPanel (links) und canvasPanel (rechts) unterteilt\n JSplitPane split = new JSplitPane();\n split.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n split.setLeftComponent(canvasPanel);\n split.setRightComponent(optionPanel);\n \n JSplitPane splitLog = new JSplitPane();\n splitLog.setOrientation(JSplitPane.VERTICAL_SPLIT);\n splitLog.setBottomComponent(logScrollPane);\n splitLog.setTopComponent(split);\n splitLog.setResizeWeight(1);\n \n mMainFrame.add(splitLog, BorderLayout.CENTER); \n }", "private VTabSheet initTabLayout() {\r\n VTabSheet tabs = new VTabSheet();\r\n Map<Component, Integer> tabComponentMap = new HashMap<Component, Integer>();\r\n Binder<Report> binder = new Binder<>(Report.class);\r\n fireEventTypeComponent = new FireEventTypeDataTab(report,userNeedToPrepare, binder, tabComponentMap);\r\n boolean basicEditRight = !report.getStatus().equals(ReportStatus.APPROVED) && (organizationIsCreator || userNeedToPrepare);\r\n tabs.addTab(getTranslation(\"reportView.tab.basicData.label\"), new ReportBasicDataTab(report, binder, basicEditRight, tabComponentMap, addressServiceRef.get(), this));\r\n tabs.addTab(getTranslation(\"reportView.tab.forcesData.label\"), new ReportForcesTab(report, userNeedToPrepare, organizationServiceRef.get(), vechileServiceRef.get(), reportServiceRef.get()));\r\n fireEventTab = tabs.addTab(getTranslation(\"reportView.tab.fireEventData.label\"), fireEventTypeComponent);\r\n tabs.addTab(getTranslation(\"reportView.tab.authorizationData.label\"), new ReportAuthorizationTab(report, binder, userNeedToPrepare, (userNeedToPrepare || userNeedToApprove), tabs, tabComponentMap, organizationServiceRef.get(), reportServiceRef.get(), notificationServiceRef.get()));\r\n return tabs;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_tabbed, container, false);\n\n ButterKnife.bind(this, root);\n\n PagerAdapter adapter = new PagerAdapter(\n getActivity().getSupportFragmentManager(),\n PreviousProjectFragment.class,\n CurrentProjectFragment.class\n );\n adapter.setTitles(getString(R.string.completed), getString(R.string.ongoing));\n viewPager.setAdapter(adapter);\n\n tabLayout.setupWithViewPager(viewPager);\n\n return root;\n }", "private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = tabbedPane.getToolTipTextAt(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (currentFile.isEmpty()) {\t//file not yet saved\r\n\t\t\t\tcurrentFile = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetTitle(currentFile + \" - JNotepad++\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJTextArea current = getSelectedTextArea();\r\n\t\t\tif (current == null) return;\r\n\t\t\tCaretListener[] listeners = current.getCaretListeners();\r\n\t\t\tlisteners[0].caretUpdate(new CaretEvent(current) {\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Serial UID.\r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getMark() {\r\n\t\t\t\t\treturn 0;\t//not used\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getDot() {\r\n\t\t\t\t\treturn current.getCaretPosition();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tcreateSingleTab(null, null);\r\n\t\tgetContentPane().add(tabbedPane, BorderLayout.CENTER);\t\r\n\t}", "public ScrollView(View aView) { this(); setContent(aView); }", "private void addTabs() {\n TabsPagerAdapter tabsAdapter = new TabsPagerAdapter(getSupportFragmentManager());\n viewPager = (ViewPager) findViewById(R.id.pager);\n viewPager.setAdapter(tabsAdapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabLayout);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n\n tabLayout.getTabAt(0).setIcon(R.drawable.connect);\n tabLayout.getTabAt(1).setIcon(R.drawable.speak);\n tabLayout.getTabAt(2).setIcon(R.drawable.walk);\n tabLayout.getTabAt(3).setIcon(R.drawable.camera);\n tabLayout.getTabAt(4).setIcon(R.drawable.moves);\n }", "public TabPanel() {\n this(null, null, null);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_list, container, false);\n Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar);\n\n //for crate home button\n AppCompatActivity activity = (AppCompatActivity) getActivity();\n activity.setSupportActionBar(toolbar);\n tabLayout = (TabLayout) view.findViewById(R.id.display_tabs);\n tabLayout.addTab(tabLayout.newTab());\n tabLayout.addTab(tabLayout.newTab());\n tabLayout.addTab(tabLayout.newTab());\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n\n viewPager = (ViewPager) view.findViewById(R.id.display_pager);\n PagerAdapter pagerAdapter = new PagerAdapter(getFragmentManager(), tabLayout.getTabCount());\n viewPager.setAdapter(pagerAdapter);\n tabLayout.setupWithViewPager(viewPager);\n return view;\n\n }", "private void initView() {\n\t\tmTabHost = (AnimationTabHost) findViewById(android.R.id.tabhost);\n\t\tmTabWidget = (TabWidget) findViewById(android.R.id.tabs);\n\t\tmTabHost.setOnTabChangedListener(this);\n\n\t\tsetIndicator(R.drawable.tab_recommend, 0, new Intent(this,\n\t\t\t\tRecommendActivity.class), R.string.recommend);\n\t\tsetIndicator(R.drawable.tab_channel, 1, new Intent(this,\n\t\t\t\tChannelActivity.class), R.string.channel);\n//\t\tsetIndicator(R.drawable.tab_search, 2, new Intent(this,\n//\t\t\t\tSearchActivity.class), R.string.search);\n\t\tsetIndicator(R.drawable.tab_personal, 3, new Intent(this,\n\t\t\t\tPersonalActivity.class), R.string.peraonal);\n\n\t\tmTabHost.setOpenAnimation(true);\n\n\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n // Inflate the layout for this fragment\n View view = inflater.inflate(R.layout.fragment_coucil, container, false);\n tabLayout = (TabLayout)view.findViewById(R.id.council_tabs);\n viewPager = (ViewPager)view.findViewById(R.id.view_pager_council);\n viewPager.setAdapter(new CouncilFramgentPageAdapter(getChildFragmentManager()));\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\t\tmContext = this;\n\n\t\tinitView();\n\n\t\tgestureDetector = new GestureDetector(new TabHostTouch());\n\t\tnew View.OnTouchListener() {\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tif (gestureDetector.onTouchEvent(event)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\tframeLayout = mTabHost.getTabContentView();\n\t}", "private void insertarTabs(ViewGroup container) {\n View padre = (View) container.getParent();\n pestanas = (TabLayout)padre.findViewById(R.id.tabs);\n }", "@Override\n protected void init(VaadinRequest request) {\n final ClosableAccordion component = new ClosableAccordion() {\n {\n setSizeUndefined();\n setWidth(\"100%\");\n\n for (numTab = 1; numTab < 4; numTab++) {\n Tab tab = addTab(new VerticalLayout() {\n\n {\n setMargin(true);\n setSpacing(true);\n\n addComponent(new Label(loremIpsum));\n }\n });\n tab.setClosable(true);\n tab.setCaption(\"Tab #\" + numTab);\n tab.setStyleName(\"trash\");\n }\n\n // Close handler\n setCloseHandler(new CloseHandler() {\n\n @Override\n public void onTabClose(TabSheet tabsheet,\n Component tabContent) {\n Tab tab = tabsheet.getTab(tabContent);\n Notification.show(\"Closing \" + tab.getCaption());\n // We need to close it explicitly in the handler\n tabsheet.removeTab(tab);\n }\n });\n\n // For adding new tabs\n final Label addNewTabContent = new Label();\n Tab addNewTab = addTab(addNewTabContent, \"+ Add a new tab\");\n addNewTab.setStyleName(\"addnew\");\n\n addSelectedTabChangeListener(new SelectedTabChangeListener() {\n\n @Override\n public void selectedTabChange(SelectedTabChangeEvent event) {\n if (event.getTabSheet().getSelectedTab()\n .equals(addNewTabContent)) {\n removeTab(getTab(addNewTabContent));\n\n Tab newTab = addTab(new VerticalLayout() {\n\n {\n setMargin(true);\n setSpacing(true);\n\n addComponent(new Label(loremIpsum));\n }\n });\n newTab.setClosable(true);\n newTab.setCaption(\"Tab #\" + numTab++);\n newTab.setStyleName(\"trash\");\n\n event.getTabSheet().setSelectedTab(newTab);\n\n addTab(addNewTabContent, \"+ Add a new tab\")\n .setStyleName(\"addnew\");\n }\n }\n });\n }\n };\n\n setContent(new VerticalLayout() {\n {\n setSizeUndefined();\n setWidth(\"100%\");\n\n setMargin(false);\n\n setId(\"demo-base-layout\");\n\n addComponent(new Panel() {\n {\n setSizeUndefined();\n setWidth(\"100%\");\n\n setCaption(\"Accordion w/ closable tabs\");\n\n // Show it in the middle of the screen\n setContent(new HorizontalLayout() {\n {\n setStyleName(\"demoContentLayout\");\n\n setSizeUndefined();\n setWidth(\"100%\");\n\n setDefaultComponentAlignment(Alignment.MIDDLE_CENTER);\n\n addComponent(component);\n }\n });\n }\n });\n }\n });\n }", "public Tabs() {\n initComponents();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_ground, container, false);\n mAdapter=new Adapter(getChildFragmentManager());\n mViewPager=(ViewPager)mView.findViewById(R.id.ground_view_pager);\n mViewPager.setAdapter(mAdapter);\n mTabLayout=(TabLayout)mView.findViewById(R.id.ground_tab_layout);\n mTabLayout.setupWithViewPager(mViewPager);\n return mView;\n }", "private void setTabLayout() {\n View view = LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n TextView title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n ImageView imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.MOVIES);\n imgIcon.setImageResource(R.mipmap.ic_home);\n mTabLayout.getTabAt(0).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n count = (TextView) view.findViewById(R.id.item_tablayout_count_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.FAVOURITE);\n imgIcon.setImageResource(R.mipmap.ic_favorite);\n count.setVisibility(View.VISIBLE);\n mTabLayout.getTabAt(1).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.SETTINGS);\n imgIcon.setImageResource(R.mipmap.ic_settings);\n mTabLayout.getTabAt(2).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.ABOUT);\n imgIcon.setImageResource(R.mipmap.ic_info);\n mTabLayout.getTabAt(3).setCustomView(view);\n }", "private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View x = inflater.inflate(R.layout.tablayout,null);\n tabLayout = (TabLayout) x.findViewById(R.id.tabs);\n viewPager = (ViewPager) x.findViewById(R.id.viewpager);\n\n /**\n *Set an Apater for the View Pager\n */\n viewPager.setAdapter(new MyAdapter(getChildFragmentManager()));\n\n /**\n * Now , this is a workaround ,\n * The setupWithViewPager dose't works without the runnable .\n * Maybe a Support Library Bug .\n */\n\n tabLayout.post(new Runnable() {\n @Override\n public void run() {\n tabLayout.setupWithViewPager(viewPager);\n }\n });\n\n return x;\n\n }", "private void createNetworksPanel() {\n\t\ttabs = new ArrayList<>();\n\t\tnetworksPanel = new JTabbedPane();\n\t\tthis.add(networksPanel, BorderLayout.CENTER);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_listas, container, false);\n unbinder = ButterKnife.bind(this, view);\n //ViewPager viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n setupViewPager(viewPager);\n // Set Tabs inside Toolbar\n //TabLayout tabs = (TabLayout) view.findViewById(R.id.tabs);\n tabs.setupWithViewPager(viewPager);\n //setupViewPager2(viewpager);\n // tabs.setupWithViewPager(viewpager);\n return view;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View itemView= inflater.inflate(R.layout.fragment_home, container, false);\n initTab(itemView);\n return itemView;\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n adapter = new ViewPagerAdapter(getChildFragmentManager(),Titles,Numboftabs);\n\n // Assigning ViewPager View and setting the adapter\n pager = (ViewPager) getView().findViewById(R.id.pager);\n pager.setAdapter(adapter);\n\n // Assiging the Sliding Tab Layout View\n tabs = (SlidingTabLayout) getView().findViewById(R.id.tabs);\n tabs.setDistributeEvenly(true); // To make the Tabs Fixed set this true, This makes the tabs Space Evenly in Available width\n\n // Setting Custom Color for the Scroll bar indicator of the Tab View\n tabs.setCustomTabColorizer(new SlidingTabLayout.TabColorizer() {\n @Override\n public int getIndicatorColor(int position) {\n return getResources().getColor(R.color.tabsScrollColor);\n }\n });\n\n // Setting the ViewPager For the SlidingTabsLayout\n tabs.setViewPager(pager);\n }", "public TabPaneLike(TabSide side, TabLabelCreator tabLabelCreator){\n BorderPane bp = new BorderPane();\n\n this.tabLabelCreator = tabLabelCreator;\n\n getChildren().add(bp);\n\n bp.maxWidthProperty().bind(widthProperty());\n bp.minWidthProperty().bind(widthProperty());\n bp.prefWidthProperty().bind(widthProperty());\n\n bp.maxHeightProperty().bind(heightProperty());\n bp.minHeightProperty().bind(heightProperty());\n bp.prefHeightProperty().bind(heightProperty());\n\n\n tabContent = new StackPane();\n tabs = new LinkedList<>();\n\n switch(side){\n case TOP -> {\n nameTab = new HBox();\n tabLabelCreator.setHeights(nameTab);\n bp.setTop(nameTab);\n }\n case BOTTOM -> {\n nameTab = new HBox();\n tabLabelCreator.setHeights(nameTab);\n bp.setBottom(nameTab);\n }\n case RIGHT -> {\n nameTab = new VBox();\n tabLabelCreator.setWidths(nameTab);\n bp.setRight(nameTab);\n }\n case LEFT -> {\n nameTab = new VBox();\n tabLabelCreator.setWidths(nameTab);\n bp.setLeft(nameTab);\n }\n default -> nameTab = new VBox();\n\n }\n\n bp.setCenter(tabContent);\n\n nameTab.setStyle(\"-fx-background-color: lightgrey\");\n }", "private JTabbedPane getJTabbedPane() {\r\n if (jTabbedPane == null) {\r\n jTabbedPane = new JTabbedPane();\r\n jTabbedPane.setBackground(new Color(225, 231, 236));\r\n jTabbedPane.setPreferredSize(new Dimension(200, 300));\r\n }\r\n return jTabbedPane;\r\n }", "public HistoryView() {\n\t\tthis.history = new JPanel();\n\t\tthis.history.setBackground(BackGroundColor.color);\n\t\tthis.history.setLayout(new BoxLayout(this.history, 3));\n\t\tthis.tp = new JScrollPane(22, 31);\n\t\tthis.tp.setViewportView(this.history);\n\t\tthis.tp.getVerticalScrollBar().setUnitIncrement(20);\n\t\tthis.tp.getVerticalScrollBar().addAdjustmentListener(this);\n\t\tthis.component = tp;\n\t\t//this.observer = observer;\n\t}", "private void setupTab(final View view, final String tag) {\r\n\t\tView tabview = createTabView(mTabHost.getContext(), tag);\r\n\r\n\t\tTabSpec setContent = mTabHost.newTabSpec(tag).setIndicator(tabview)\r\n\t\t\t\t.setContent(new TabContentFactory() {\r\n\t\t\t\t\tpublic View createTabContent(String tag) {\r\n\t\t\t\t\t\tView view;\r\n\t\t\t\t\t\tif (tag.contains(\"EXTENDED\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_2_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedNO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET1);\r\n\t\t\t\t\t\t\tedNIO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET2);\r\n\t\t\t\t\t\t\tedNP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET3);\r\n\t\t\t\t\t\t\tedNIP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET4);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tedNO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNP.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIP.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tNO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB1);\r\n\t\t\t\t\t\t\tNIO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB2);\r\n\t\t\t\t\t\t\tNP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB3);\r\n\t\t\t\t\t\t\tNIP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB4);\r\n\t\t\t\t\t\t\tNO.setEnabled(false); \r\n\t\t\t\t\t\t\tNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tNP.setEnabled(false);\r\n\t\t\t\t\t\t\tNIP.setEnabled(false);\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\textended = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB0);\r\n\t\t\t\t\t\t\textended.setOnClickListener(S3R4Listener2);\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} else if (tag.contains(\"CUSTOM\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_3_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_1_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedlevels = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET1);\r\n\t\t\t\t\t\t\tedSons = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET2);\r\n\t\t\t\t\t\t\tedlevel = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET3);\r\n\t\t\t\t\t\t\tedpruduct = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET4);\r\n\t\t\t\t\t\t\tedcampaign = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET5);\r\n\t\t\t\t\t\t\tedadd = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET6);\r\n\t\t\t\t\t\t\tedlevels.setEnabled(false);\r\n\t\t\t\t\t\t\tedSons.setEnabled(false);\r\n\t\t\t\t\t\t\tedlevel.setEnabled(false);\r\n\t\t\t\t\t\t\tedpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tedcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tedadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlevel= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB3);\r\n\t\t\t\t\t\t\tpruduct= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB4);\r\n\t\t\t\t\t\t\tcampaign= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB5);\r\n\t\t\t\t\t\t\tadd= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB6);\r\n\t\t\t\t\t\t\tlevel.setEnabled(false); \r\n\t\t\t\t\t\t\tpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\tStructure = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB1);\r\n\t\t\t\t\t\t\tRules = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB2);\r\n\t\t\t\t\t\t\tStructure.setOnClickListener(S3R4Listener);\r\n\t\t\t\t\t\t\tRules.setOnClickListener(S3R4Listener);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn view;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\tmTabHost.addTab(setContent);\r\n\r\n\t}", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View mView = View.inflate(getContext(), R.layout.newsfragment, null);\n mTab = (TabPageIndicator) mView.findViewById(R.id.news_indicator);//初始化标题栏\n mViewpager = (ViewPager) mView.findViewById(R.id.news_viewpager);//初始化Viewpager\n return mView;\n }", "public ScrollView()\n {\n // Configure ScrollView\n setBorder(SCROLL_VIEW_BORDER);\n\n // Create Scroller and add listeners for scroll changes\n _scroller = new Scroller();\n _scroller.addPropChangeListener(pc -> scrollerDidPropChange(pc), Width_Prop, Height_Prop,\n Scroller.ScrollX_Prop, Scroller.ScrollY_Prop, Scroller.ScrollWidth_Prop, Scroller.ScrollHeight_Prop);\n addChild(_scroller);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n\n viewPager = (ViewPager) view.findViewById(R.id.viewPager);\n tabLayout = (TabLayout) view.findViewById(R.id.tabLayout);\n adapter = new TabAdapter(getActivity().getSupportFragmentManager());\n adapter.addFragment(new TabFragment2(), \"Following\");\n adapter.addFragment(new TabFragment1(), \"For You\");\n\n\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }", "private void setupTab() {\n setLayout(new BorderLayout());\n JSplitPane mainSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);\n mainSplit.setDividerLocation(160);\n mainSplit.setBorder(BorderFactory.createEmptyBorder());\n\n // set up the MBean tree panel (left pane)\n tree = new XTree(this);\n tree.setCellRenderer(new XTreeRenderer());\n tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\n tree.addTreeSelectionListener(this);\n tree.addTreeWillExpandListener(this);\n tree.addMouseListener(ml);\n JScrollPane theScrollPane = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n JPanel treePanel = new JPanel(new BorderLayout());\n treePanel.add(theScrollPane, BorderLayout.CENTER);\n mainSplit.add(treePanel, JSplitPane.LEFT, 0);\n\n // set up the MBean sheet panel (right pane)\n viewer = new XDataViewer(this);\n sheet = new XSheet(this);\n mainSplit.add(sheet, JSplitPane.RIGHT, 0);\n\n add(mainSplit);\n }", "public void init() {\n\t\ttabbed = new JTabbedPane();\n\t\ttabbed.insertTab(\"Sesion\", null, getPanelSesion(), \"Control de la sesion\", 0);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, new JPanel(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, new JPanel(), \"Control de los eventos\", 2);\n\t\ttabbed.insertTab(\"Control de Agentes\", null, getPanelAgentes(), \"Control de los agentes\", 3);\n\t\tgetContentPane().add(tabbed);\n\t\ttabbed.setEnabledAt(1, false);\n\t\ttabbed.setEnabledAt(2, false);\n\t\tsetSize(new Dimension(800, 600));\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_group_movies, container, false);\n\n viewPager = view.findViewById(R.id.viewpager);\n setupViewPager(viewPager);\n\n tabLayout = view.findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }", "protected JViewport createViewport() {\n/* 927 */ return new JViewport();\n/* */ }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n getActivity().setTitle(\"Documentos de Venta\");\n view=inflater.inflate(R.layout.fragment_container_ventas, container, false);\n\n tabLayout = (TabLayout) getActivity().findViewById(R.id.tabs);//acceder al tablayout del activity, xq solo tiene al viewpaager\n tabLayout.setVisibility(View.VISIBLE);\n viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n viewPager.setAdapter(new AdapterViewPagerVentas(getChildFragmentManager()));\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_home_tab, container, false);\n nw = (RecyclerView) view.findViewById(R.id.new_list);\n pw = (RecyclerView) view.findViewById(R.id.popular_list);\n ns = (RecyclerView) view.findViewById(R.id.new_writer_list);\n ps = (RecyclerView) view.findViewById(R.id.popular_writer_list);\n setHasOptionsMenu(true);\n getActivity().invalidateOptionsMenu();\n listSetup(nw);\n listSetup(pw);\n listSetup(ns);\n listSetup(ps);\n return view;\n }", "TabbelPane() {\r\n\t\t\tpanelDB = new JPanelCluster(\"mine\", new EventFromDb());\r\n\t\t\tpanelFile = new JPanelCluster(\"store from file\", new EventFromFile());\r\n\t\t\tImageIcon icon = new ImageIcon(\"database.png\");\r\n\t\t\tImage image = icon.getImage();\r\n\t\t\tImage newimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"DB\", icon, panelDB);\r\n\t\t\ticon = new ImageIcon(\"file.png\");\r\n\t\t\timage = icon.getImage();\r\n\t\t\tnewimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"file\", icon, panelFile);\r\n\t\t\tsetVisible(true);\r\n\t\t}", "public TabControlPanel(JTabbedPane jtp, MyTabPreviewPainter previewPainter) {\n super();\n this.jtp = jtp;\n this.closed = new LinkedList<>();\n\n this.setLayout(new BorderLayout());\n JPanel contents = getContents(jtp, previewPainter);\n contents.setOpaque(false);\n RadianceThemingCortex.ComponentOrParentScope.setButtonIgnoreMinimumSize(contents, true);\n this.add(contents, BorderLayout.CENTER);\n }", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\r\n\t\t\r\n\t\tgetActivity().getActionBar();\r\n\r\n\t\tmRoot = inflater.inflate(R.layout.mopwheathome, null);\r\n\t\t\r\n\t\tmTabHost = (FragmentTabHost)mRoot.findViewById(android.R.id.tabhost);\r\n\t\tmTabHost.setup(getActivity(),getChildFragmentManager(), R.id.realtabcontent);\r\n\r\n\t\tmTabHost.addTab(mTabHost.newTabSpec(\"0\").setIndicator(\"Demo Farmer\"),\r\n\t\t\t\tDemoFarmer.class, null);\r\n\t\t\r\n\t\tmTabHost.addTab(mTabHost.newTabSpec(\"1\").setIndicator(\"Observations\"),\r\n\t\t\t\tObservations.class, null);\r\n\t\t\r\n\t\t for(int i=0;i<mTabHost.getTabWidget().getChildCount();i++)\r\n\t\t {\r\n\t\t\t \r\n\t\t\t mTabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor(\"#96E0D2\"));\r\n\t\t\t \r\n\t\t } \r\n\t\t mTabHost.getTabWidget().getChildAt(Integer.parseInt(\"0\")).setBackgroundColor(Color.parseColor(\"#65D2BD\"));\r\n\t\t \r\n\t\t mTabHost.setOnTabChangedListener(new OnTabChangeListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onTabChanged(String tabId) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE);\r\n\t\t\t\t imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);\r\n\t\t\t\t */\r\n\t\t\t\t\t for(int i=0;i<mTabHost.getTabWidget().getChildCount();i++)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t mTabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor(\"#96E0D2\"));\r\n\t\t\t\t\t } \r\n\t\t\t\t\t mTabHost.getTabWidget().getChildAt(Integer.parseInt(tabId)).setBackgroundColor(Color.parseColor(\"#65D2BD\"));\r\n\t\t\t\t}\r\n\t\t\t});\t\t\t\t\t \r\n\t\t\t\r\n\t\t\treturn mRoot;\r\n\t}", "@CallSuper\n protected View createContentView() {\n mPager = new ViewPager2(this);\n\n // Disable swipe gesture.\n mPager.setUserInputEnabled(false);\n\n mPager.setId(R.id.fre_pager);\n mPager.setOffscreenPageLimit(3);\n return mPager;\n }", "public static EDACCPlotTabView getMainTabView() {\n if (tabViews.size() == 0) {\n EDACCPlotTabView tabView = new EDACCPlotTabView();\n tabView.updateTitle(\"\");\n tabViews.add(tabView);\n tabViewCountChanged();\n }\n return tabViews.get(0);\n }", "public TabPane createTabPane(TableauFrame parent) {\n\t\t\tTabPaneExtensionExample tpee = new TabPaneExtensionExample();\n\n\t\t\t/*\n\t\t\t * Optionally you can create a method called setTabName and use the\n\t\t\t * \"name\" value from the configuration.xml file by calling\n\t\t\t * this.getName(). For Example if you have <property\n\t\t\t * name=\"randomTestTab\"\n\t\t\t * class=\"org.kepler.gui.TabPaneExtensionExample$Factory\" /> in\n\t\t\t * configuration.xml then the name of the tab in the GUI becomes\n\t\t\t * randomTestTab\n\t\t\t */\n\t\t\ttpee.setTabName(this.getName());\n\n\t\t\treturn tpee;\n\t\t}", "void init() {\n tabHost = findViewById(android.R.id.tabhost);\n tabHost.setup(this, getSupportFragmentManager(), android.R.id.tabcontent);\n tabHost.addTab(tabHost.newTabSpec(\"Login\").setIndicator(\"Login\", null), LoginFragment.class, null);\n tabHost.addTab(tabHost.newTabSpec(\"Register\").setIndicator(\"Register\", null), RegisterFragment.class, null);\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n mViewPager = (ViewPager) view.findViewById(R.id.viewpager);\n mViewPager.setAdapter(new TabsPagerAdapter(getActivity().getSupportFragmentManager()));\n mViewPager.setOffscreenPageLimit(0);\n\n\n\n // Give the SlidingTabLayout the ViewPager, this must be done AFTER the ViewPager has had\n // it's PagerAdapter set.\n mSlidingTabLayout = (SlidingTabLayout) view.findViewById(R.id.sliding_tabs);\n //mSlidingTabLayout.setCustomTabView(R.layout.custom_tab_title, R.id.tabtext);\n\n mSlidingTabLayout.setDividerColors(Color.parseColor(\"#EEEEEE\"));\n TypedValue tv = new TypedValue();\n if (getActivity().getApplicationContext().getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true))\n {\n actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data, getActivity().getResources().getDisplayMetrics());\n }\n mSlidingTabLayout.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, actionBarHeight));\n mSlidingTabLayout.setSelectedIndicatorColors(Color.parseColor(\"#d32f2f\"));\n mSlidingTabLayout.setBackgroundColor(Color.parseColor(\"#FFFFFF\"));\n mSlidingTabLayout.setCustomTabView(R.layout.tab_custom_layout, 0);\n\n mSlidingTabLayout.setViewPager(mViewPager);\n\n\n }", "protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_companyframe, container, false);\n\n\n main_layout = rootView.findViewById(R.id.main_layout);\n\n mSectionsPagerAdapter = new SectionsPagerAdapter(getActivity().getSupportFragmentManager());\n\n // Set up the ViewPager with the sections adapter.\n mViewPager = rootView.findViewById(R.id.container);\n\n\n tabLayout = rootView.findViewById(R.id.tabs);\n\n mViewPager.setAdapter(mSectionsPagerAdapter);\n mViewPager.setOffscreenPageLimit(0);\n tabLayout.setupWithViewPager(mViewPager);\n\n tab_icon.add(R.drawable.ic_companytax);\n tab_icon.add(R.drawable.ic_taxcode);\n tab_icon.add(R.drawable.ic_viewtax);\n\n tab_name.add(\"Company Taxes\");\n tab_name.add(\"Tax Code\");\n tab_name.add(\"Calculate Tax\");\n\n\n // loop through all navigation tabs\n for (int i = 0; i < tabLayout.getTabCount(); i++) {\n\n LinearLayout linearLayout = (LinearLayout) LayoutInflater.from(getActivity()).inflate(R.layout.tab_item, null);\n\n TextView tab_label = linearLayout.findViewById(R.id.label);\n ImageView tab_pic = linearLayout.findViewById(R.id.img);\n\n\n tab_pic.setImageResource(tab_icon.get(i));\n tab_label.setText(tab_name.get(i));\n\n tabLayout.getTabAt(i).setCustomView(linearLayout);\n }\n\n\n tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n currentIndeX = tab.getPosition();\n\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n\n return rootView;\n }", "@SuppressWarnings({\"deprecation\", \"rawtypes\", \"unchecked\"})\n public static javafx.scene.control.AccordionBuilder<?> create() {\n return new javafx.scene.control.AccordionBuilder();\n }", "private void initView() {\n List<Fragment> fragmentList = new ArrayList<>();\n fragmentList.add(new FourthFragment());\n fragmentList.add(new FifthFragment(imagePath));\n// set titles\n List<String> title = new ArrayList<>();\n title.add(\"第一页\");\n title.add(\"第二页\");\n// set the adapter\n viewPager.setAdapter(new FragmentPagerAdapter(getChildFragmentManager()) {\n @NonNull\n @NotNull\n @Override\n public Fragment getItem(int position) {\n return fragmentList.get(position);\n }\n\n @Override\n public int getCount() {\n return fragmentList.size();\n }\n\n @Nullable\n @org.jetbrains.annotations.Nullable\n @Override\n public CharSequence getPageTitle(int position) {\n return title.get(position);\n }\n });\n tabLayout.setupWithViewPager(viewPager);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n inflatedview5 = inflater.inflate(R.layout.fragment_tab5, container, false);\n\n data5 = MakeData5( 0 , sidemenu_iamges.length - 1 );\n\n tab5Adapter = new Tab5_Adapter_Card( getContext(), R.layout.fragment_tab5_custom, data5 );\n tab5GridView = inflatedview5.findViewById( R.id.gridView5 );\n tab5GridView.setAdapter( tab5Adapter );\n\n\n return inflatedview5;\n }", "private void setupTabs() {\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_blank1, container, false);\n\n viewPager=view.findViewById(R.id.viewPagerId);\n tableLayout=view.findViewById(R.id.tablayout);\n\n return view; }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_services,container, false);\n tabs = (TabLayout)v.findViewById(R.id.tablayout);\n tabpager = (ViewPager)v.findViewById(R.id.view_pager);\n\n\n // fetch child categories from this category type\n this.fetchCategories(this.type);\n\n\n\n return v;\n }", "@Override\n protected void initViews() {\n ButterKnife.bind(this);\n effcetTitleTablayout.setupWithViewPager(effectViewpager);\n adapter = new EffectViewPagerAdapter(getSupportFragmentManager());\n effectViewpager.setAdapter(adapter);\n }", "private void initialize() {\n layout = new HorizontalLayout();\n\n workspaceTabs = new TabSheet();\n\n WorkspacePanel panel = new WorkspacePanel(\"Workspace 1\");\n workspaceTabs.addTab(panel).setCaption(\"Workspace 1\");\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n\n layout.addComponent(workspaceTabs);\n\n setContent(layout);\n }", "public AdministrationPanel(JFrame parent) {\n this.parent = parent;\n initComponents();\n\n tv = new TabView();\n eap = new EmployeeAdministrationPanel(parent);\n vap = new CarAdministrationPanel(parent);\n tv.addNewTab(\"Medarbejder\", eap);\n tv.addNewTab(\"Biler\", vap);\n\n add(tv, BorderLayout.CENTER);\n }", "public AutomatedTestingTabbedPane()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\tthis.setBackground(Constants.WHITE);\r\n\t\tthis.setForeground(Constants.BLUE);\r\n\t\t\r\n\t\tthis.setFont(new Font(\"sans-serif\", Font.PLAIN, 16));\r\n\t\tthis.addTab(\"CXCParticipant\", participantPanel);\r\n\t\tthis.setMnemonicAt(0, KeyEvent.VK_1);\r\n\t\t\r\n\t\tthis.addTab(\"CXCToken\", tokenPanel);\r\n\t\tthis.setMnemonicAt(1, KeyEvent.VK_2);\r\n\t\t\r\n\t\tthis.addTab(\"CXCRecipient\", recipientPanel);\r\n\t\tthis.setMnemonicAt(2, KeyEvent.VK_3);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPayment\", paymentPanel);\r\n\t\tthis.setMnemonicAt(3, KeyEvent.VK_4);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPaymentRequest\", paymentRequestPanel);\r\n\t\tthis.setMnemonicAt(4, KeyEvent.VK_5);\r\n\t\t\r\n//\t\tthis.addTab(\"Export\", exportPanel);\r\n//\t\tthis.setMnemonicAt(5, KeyEvent.VK_6);\r\n\r\n\t}", "public static FragmentHistoryVerticalTabbed newInstance() {\n return new FragmentHistoryVerticalTabbed();\n }", "public DoctorMainTabbedPane() {\n super();\n initialize();\n }", "private void initViewPager() {\n ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);\n if (viewPager != null) {\n viewPager.setAdapter(new MainPagerAdapter(getFragmentManager()));\n }\n\n // Give the TabLayout the ViewPager\n TabLayout tabLayout = (TabLayout) findViewById(R.id.sliding_tabs);\n if (tabLayout != null) {\n tabLayout.setTabMode(TabLayout.MODE_FIXED);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n }\n }", "public void initAccordion() {\n if (this instanceof GenomeDataPanel) {\n Component initialTab = ((GenomeDataPanel) this).createGenomeTab(0);\n datasetAccordion.addTab(initialTab, \"Dataset \" + 1);\n } else {\n Component initialTab = ((ConditionDataPanel) this).createConditionTab(0);\n datasetAccordion.addTab(initialTab, \"Condition \" + 1);\n }\n\n //Tell presenter to refill the grid of available graph files;\n presenter.resetGraphFileGrid();\n //Tell presenter to remove old bindings and set up new ones\n presenter.clearDynamicBindings();\n presenter.initDatasetBindings(0);\n presenter.initReplicateBindings(0, 0);\n\n }", "@Override\n public MyHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.grid_tab, parent, false);\n MyHolder vh = new MyHolder(view);\n return vh;\n }", "public JTabbedPaneDemo() {\n\t\ttabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\t// panel=new Panel();\n\t\t// panel.setBackground(Color.RED);\n\t\t// music=new JPanel();\n\t\t// music.setBackground(Color.green);\n\t\ttabbedPane.addTab(\"panel\", new JLabel(\"标签\"));\n\t\ttabbedPane.addTab(\"music\", new Button(\"按钮\"));\n\t\tadd(tabbedPane);\n\t\tsetBounds(500, 100, 500, 500);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "public void setupCenterPanel() {\n\t\tcenterPanel = new JPanel();\n\t\tcenterPanel.setLayout(new BoxLayout(centerPanel, BoxLayout.Y_AXIS));\n\t\tcenterPanel.add(tabs);\n\t\tcenterPanel.add(scroll);\n\t\tadd(centerPanel, BorderLayout.CENTER);\n\t}", "private void initTab()\n {\n \n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_two, container, false);\n\n TabLayout tl = v.findViewById(R.id.viewpagertab);\n viewPager = v.findViewById(R.id.viewpager);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(getActivity());\n linearLayoutManager.setOrientation(RecyclerView.VERTICAL);\n viewPager.setAdapter(new viewpageradapter(getFragmentManager(), tl.getTabCount()));\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tl));\n tl.setTabMode(TabLayout.MODE_FIXED);\n tl.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener(){\n\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n return v;\n }", "public JTabbedPane createPanel()\r\n {\r\n\r\n /** LoadTabPaneData Thread - Inner class that will load the historic data on the AWT\r\n * Thread as to not muck up things on the GUI thread\r\n * The Thread will die after it loads everything.\r\n */\r\n class LoadTabPaneDataTask extends TimerTask\r\n {\r\n // Handle to main outer class\r\n WatchListTableModule watchListTableModule = null;\r\n\r\n /** \r\n * LoadTabPaneDataTask constructor\r\n */\r\n public LoadTabPaneDataTask(WatchListTableModule watchListTableModule)\r\n {\r\n this.watchListTableModule = watchListTableModule;\r\n }\r\n\r\n /** \r\n * LoadTabPaneDataTask::run() this method simply invokes. \r\n * WatchListTableModule::loadPersistantWatchLists() method.\r\n * The method will populate all watchlists to be loaded on\r\n * the JTabbedPane then it dies off\r\n */\r\n public void run()\r\n {\r\n debug(\"LoadTabPaneDataTask::run() - calling watchListTableModule.loadPersistantWatchLists()\");\r\n watchListTableModule.loadPersistantWatchLists();\r\n this.cancel();\r\n }\r\n }\r\n\r\n // Create an Application Properties instance\r\n appProps = new AppProperties(getString(\"WatchListTableModule.application_ini_filename\"));\r\n // Setup our Time Delays\r\n standardDelay = ONE_SECOND * ParseData.parseNum(getString(\"WatchListTableModule.standard_time_delay\"), ONE_MINUTE);\r\n extendedDelay = ONE_SECOND * ParseData.parseNum(getString(\"WatchListTableModule.extended_time_delay\"), ONE_HOUR);\r\n\r\n // Create our Basic Tabbed Pane and Listener ( inner class )\r\n tabPane = new JTabbedPane();\r\n tabPane.addChangeListener(new TabPaneListener());\r\n\r\n // Load the Tab Pane Data on the Util Event Thread as \r\n // to get our screen up and going as fast as possible\r\n // So we can get out of here - This Inner class thread\r\n // invokes method\r\n // loadPersistantWatchLists();\r\n TimerTask tabPaneTask = new LoadTabPaneDataTask(this);\r\n Timer timer = new Timer(true); // Deamon\r\n timer.schedule(tabPaneTask, ONE_SECOND);\r\n\r\n return tabPane;\r\n }", "public MainFrame(){\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException | IllegalAccessException | UnsupportedLookAndFeelException | InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnbRules = 1;\n \tnbTabs = 0;\n \tbasePanel = new JPanel();\n \tbasePanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n \ttabs = new JTabbedPane(SwingConstants.TOP);\n\n \tJToolBar toolBar = new JToolBar();\n newGen = new JButton(\"Nouvelle génération\");\n newGen.addActionListener(new Listener(\"Tab\",this));\n toolBar.add(newGen);\n example = new JButton(\"Exemples\");\n example.addActionListener(new Listener(\"Example\", this));\n toolBar.add(example);\n help = new JButton(\"Aide\");\n help.addActionListener(new Listener(\"Help\",this));\n toolBar.add(help);\n\n this.setTitle(\"L-system interface\");\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tDimension windowDimension = new Dimension(Constants.INITIAL_WIDTH, Constants.INITIAL_HEIGHT);\n this.setSize(windowDimension);\n this.setLocationRelativeTo(null);\n this.add(tabs);\n this.add(toolBar, BorderLayout.NORTH);\n this.setPreferredSize(windowDimension);\n newComponent((byte)1);\n\t\trenameTabs();\n\t\tthis.setResizable(false);\n }", "private void createContent(final Container container) {\n this.mainPanel = new MainPanel();\n this.mainPanel.setName(\"mainPanel\"); // Fest\n\n if (container != null) {\n // adds the main panel\n container.add(this.mainPanel, BorderLayout.CENTER);\n\n // Handle status bar\n container.add(StatusBar.getInstance(), BorderLayout.SOUTH);\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n\n viewPager = (ViewPager) view.findViewById(R.id.view_pager);\n tabLayout = (TabLayout) view.findViewById(R.id.tab_layout);\n FragmentManager manager = getChildFragmentManager();\n PagerAdapter adapter = new com.example.quanla.book.adapters.PagerAdapter(manager);\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));\n tabLayout.setTabsFromPagerAdapter(adapter);\n\n return view;\n }", "public DraggableTabLayoutExtender(@NamedArg(\"center\") Node component) {\n\t\tsuper(component);\n\n\t\t// offer drop areas in all directions when user is dragging a tab\n\t\tdraggingTabListener = (observable, oldTab, newTab) -> {\n\t\t\tif (lastDraggingTab != newTab) {\n\t\t\t\tlastDraggingTab = newTab;\n\n\t\t\t\tif (getParent() == null) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (!(getParent().getParent() instanceof SplitPane && getCenter() instanceof SplitPane) && newTab != null) {\n\t\t\t\t\tDraggableTabFactory factory = DraggableTabFactory.getFactory();\n\t\t\t\t\tsetTop(factory.createInsertPane(this, Direction.UP));\n\t\t\t\t\tsetBottom(factory.createInsertPane(this, Direction.DOWN));\n\t\t\t\t\tsetLeft(factory.createInsertPane(this, Direction.LEFT));\n\t\t\t\t\tsetRight(factory.createInsertPane(this, Direction.RIGHT));\n\t\t\t\t} else {\n\t\t\t\t\tsetTop(null);\n\t\t\t\t\tsetBottom(null);\n\t\t\t\t\tsetLeft(null);\n\t\t\t\t\tsetRight(null);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tDraggableTab.draggingTab.addListener(draggingTabListener);\n\t}", "private JPanel buildContentPane(){\t\n\t\tinitialiseElements();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout());\n\t\tpanel.setBackground(Color.lightGray);\n\t\tpanel.add(scroll);\n\t\tpanel.add(bouton);\n\t\tpanel.add(bouton2);\n\t\treturn panel;\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(null);\r\n\r\n\t\t\tJTabbedPane mainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\t\tmainTabbedPane.setBounds(10, 29, 606, 331);\r\n\t\t\tjContentPane.add(mainTabbedPane);\r\n\t\t\tmainTabbedPane.addTab(\"Verify\", null, getVerifyPanel(), null);\r\n\t\t\tmainTabbedPane.addTab(\"Add/Capture\", null, getCapturePanel(), null);\r\n\t\t\tmainTabbedPane.addTab(\"Train\", null, getTrainPanel(), null);\r\n\t\t\t// mainTabbedPane.addTab(\"Train Data Editor\", null,\r\n\t\t\t// getTrainTestDataEditorPanel(), null);\r\n\t\t\tjContentPane.add(getStatusLabel());\r\n\t\t\tjContentPane.add(getAboutLabel());\r\n\r\n\t\t\tJLabel lblMouseGestureRecognition = new JLabel(\"Mouse Gesture Recognition\");\r\n\t\t\tlblMouseGestureRecognition.setFont(new Font(\"Arial\", Font.BOLD, 15));\r\n\t\t\tlblMouseGestureRecognition.setBounds(410, 11, 206, 27);\r\n\t\t\tjContentPane.add(lblMouseGestureRecognition);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "private static View createTabView(final Context context, final String text) {\r\n\t\tView view;\r\n\t\tview = LayoutInflater.from(context).inflate(\r\n\t\t\t\tR.layout.generic_tabs_custom_layout, null);\r\n\t\tTextView tv = (TextView) view.findViewById(R.id.tabsText);\r\n\t\ttv.setText(text);\r\n\t\treturn view;\r\n\t}", "private void initViews() {\n\t\tmViewPager = (ViewPager) findViewById(R.id.view_pager); \n mIndicator = (IconTabPageIndicator) findViewById(R.id.indicator); \n fragments = initFragments(); \n FragmentAdapter adapter = new FragmentAdapter(fragments, getSupportFragmentManager()); \n mViewPager.setAdapter(adapter); \n mIndicator.setViewPager(mViewPager); \n mViewPager.setCurrentItem(whichPage);\n \n \n \n\t}", "private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n inflatedView = inflater.inflate(R.layout.fragment_tab3, container, false);\n return inflatedView;\n\n }", "private void setupViewPager() {\n SectionsPagerAdapter adapter = new SectionsPagerAdapter(getSupportFragmentManager());\n adapter.addFragment(new MainFragment());\n\n mViewPager.setAdapter(adapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(mViewPager);\n }", "private void createTopPanel(){\n computerPaquetView = new ViewDeckVisible(true);\n this.getContentPane().add(computerPaquetView);\n }", "private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsplitpane_left.setDividerLocation(400);\n\t\tsplitpane_left.setLastDividerLocation(0);\n\t\tsplitpane_left.setOneTouchExpandable(true);\n\t\tsplitpane_right.setBorder(BorderFactory.createTitledBorder(\"Classifer Output\"));\n\t\tsplitpane_main.setDividerLocation(500);\n\t\tsplitpane_main.setLastDividerLocation(0);\n\t\tsplitpane_main.setOneTouchExpandable(true);\n\t\tlocalContainer.add(splitpane_main, \"Center\");\n\t\tlocalContainer.add(statusPanel,BorderLayout.SOUTH);\n\t}", "public Scene createScene() {\n\t\tmyRoot = new AnchorPane();\n\t\tmyTabs = new TabPane();\n\t\tButton newTab = new Button(CREATE_NEW_TAB);\n\t\tnewTab.setOnAction(event -> createNewTab());\n\t\t\n\t\tTabMainScreen mainScreen = new TabMainScreen(myResources.getString(WORKSPACE) + (myTabs.getTabs().size()));\n\t\tTabHelp help1 = new TabHelp(myResources.getString(BASIC_COMMANDS), HELP_TAB_TEXT1);\n\t\tTabHelp help2 = new TabHelp(myResources.getString(EXTENDED_COMMANDS), HELP_TAB_TEXT2);\n\t\t\n\t\tmyTabs.getTabs().addAll(mainScreen.getTab(myStage), help1.getTab(), help2.getTab());\n\t\t\n\t\tAnchorPane.setTopAnchor(myTabs, TABS_OFFSET);\n\t\tAnchorPane.setTopAnchor(newTab, NEWTAB_OFFSET);\n\t\t\n\t\tmyRoot.getChildren().addAll(myTabs, newTab);\n\t\n\t\tmyScene = new Scene(myRoot, windowHeight, windowWidth, Color.WHITE);\n\t\treturn myScene;\n\t}" ]
[ "0.664865", "0.6563518", "0.65581805", "0.65277284", "0.64621496", "0.64606994", "0.64369607", "0.63326526", "0.6330338", "0.6272083", "0.6184109", "0.6172931", "0.6163245", "0.61528957", "0.6098602", "0.60758334", "0.60508597", "0.6022244", "0.5997331", "0.59392565", "0.59377676", "0.5926185", "0.591915", "0.5908879", "0.5908479", "0.58926886", "0.58677", "0.5858735", "0.58527094", "0.584847", "0.58454245", "0.58423585", "0.58417815", "0.58392656", "0.58391976", "0.58095235", "0.57957494", "0.57935274", "0.57897466", "0.5783987", "0.57823455", "0.57772917", "0.5768871", "0.57462853", "0.57440555", "0.57153463", "0.57119364", "0.5697886", "0.5681965", "0.5680578", "0.5673243", "0.56704164", "0.56631356", "0.5655173", "0.5636184", "0.56298256", "0.5629075", "0.5612055", "0.56112564", "0.5609734", "0.56066245", "0.560655", "0.56051135", "0.56048626", "0.55870795", "0.55848247", "0.5578621", "0.55775154", "0.5571052", "0.55692625", "0.5568297", "0.5562607", "0.5556548", "0.5554956", "0.5552217", "0.55491346", "0.5541459", "0.55377686", "0.5537388", "0.5525054", "0.55211693", "0.5512024", "0.5506112", "0.55039907", "0.55032396", "0.5498961", "0.5492487", "0.5492409", "0.5484646", "0.5476837", "0.5474123", "0.5466376", "0.546364", "0.54610825", "0.54568475", "0.5454735", "0.54541785", "0.5450921", "0.544915", "0.544344" ]
0.72404045
0
Indicates whether this view is collapsed into a dropdown menu instead of traditional tabs.
private boolean isCollapsed() { return mTabSpinner != null && mTabSpinner.getParent() == this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isHiddenFromMenu()\n {\n return m_hideFromMenu;\n }", "private boolean getCollapse() {\n return false;\n }", "public boolean isCollapsed() {\n return !expanded;\n }", "public boolean isCollapsed();", "boolean isCollapsed();", "public Boolean getCanCollapseFacets() {\r\n return getAttributeAsBoolean(\"canCollapseFacets\");\r\n }", "public boolean isMenuVisible() {\n\t\treturn menuVisible;\n\t}", "public String getDropdown() {\n\t\treturn dropdown;\n\t}", "public boolean isHidden()\n {\n // return hidden state of node associated with\n // menu option if defined\n if (getNode() != null)\n {\n return getNode().isHidden();\n }\n return false;\n }", "private org.gwtbootstrap3.client.ui.NavbarCollapse get_navbarCollapse() {\n return build_navbarCollapse();\n }", "public boolean isSectionCollapsed() {\n String clazz = getWrappedElement().getAttribute(\"class\");\n return !clazz.contains(\"active\") & !clazz.contains(\"expanded\");\n }", "public boolean getShowMenu() {\n\t\treturn showMenu;\n\t}", "public boolean isHideNav() {\n return mHideNav;\n }", "public boolean getCollapsed() {\n return mCollapsed;\n }", "public boolean isTheSignOutOptionAvailable(){\n \treturn isElementDisplayed(signOutDropDownMenuLocator);\n }", "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n return true; // Return true to collapse action view\n }", "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n return true; // Return true to collapse action view\n }", "public boolean esSubMenu() {\n\t\tOpcionMenu elemento = getElementoMenuActual();\n\t\tboolean esSubMenu = elemento!=null && elemento instanceof OpcionSubMenu;\n\t\treturn esSubMenu;\n\t}", "@Override\n\tpublic PanelCollapse getDefineCollapse() {\n\t\treturn defineCollapse;\n\t}", "public boolean isShowing() {\n return true; // Not supported for MenuComponents\n }", "public boolean isVisible(){\n if(hideMenu) {\n hideMenu = false;\n return true;\n }\n\n return isMenuVisible;\n }", "public boolean isExpanded() {\n return getVisibility() == View.VISIBLE;\n }", "public boolean isShipDropdownActivated() {\n\t\tboolean result;\n\t\tlog.debug(\"Checking if ship dropdown is activated\");\n\t\tif (isElementPresent(ship_dropdown, 1))\n\t\t\tresult = true;\n\t\telse\n\t\t\tresult = false;\n\t\tlogger.log(Status.INFO, \"Ship drop down is activated: \" + result);\n\t\tlog.info(\"Ship drop down is activated: \" + result);\n\t\treturn result;\n\t}", "public boolean isOnMenu ();", "private boolean canViewOptions() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n || uiStateManager.getState().equals(GameUIState.STANDBY);\n }", "private void checkShouldChangeNavBarHidden(){\n\n boolean shouldHide = mActionBar.isShowing();\n handleActionBarHidden(shouldHide);\n }", "public static boolean shouldShowMenuItem() {\n if (sShouldShowMenuItemForTesting != null) return sShouldShowMenuItemForTesting;\n return PageZoomMediator.shouldShowMenuItem();\n }", "private void openDropdown() {\n if (dropdownLinearLayout.getVisibility() != View.VISIBLE) {\n ScaleAnimation anim = new ScaleAnimation(1, 1, 0, 1);\n anim.setDuration(getResources().getInteger(R.integer.dropdown_amination_time));\n dropdownLinearLayout.startAnimation(anim);\n dropdownTextView.setCompoundDrawablesWithIntrinsicBounds(0, 0, R.drawable.icn_dropdown_close, 0);\n// feelTextsListView\n dropdownLinearLayout.setVisibility(View.VISIBLE);\n }\n }", "public boolean isExpanded(){\n\t\treturn syncExec(new BoolResult() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic Boolean run() {\n\t\t\t\treturn widget.isExpanded();\n\t\t\t}\n\t\t});\n\t}", "public boolean shouldShowHamburgerMenu() {\n Ensighten.evaluateEvent(this, \"shouldShowHamburgerMenu\", null);\n return true;\n }", "public SelenideElement rolesDropdown() {\n return formPageRoot().$(\".dropdown-menu\");\n }", "public boolean isShowShareMenu(){\n if (mShareMenu != null\n && mShareMenu.getActionView() instanceof ActivityChooserView) {\n\t\t\tActivityChooserView chooserView = (ActivityChooserView) mShareMenu\n\t\t\t\t\t.getActionView();\n\t\t\tLog.v(TAG, \"isShowShareMenu() chooserView.isShowingPopup() = \"\n\t\t\t\t\t+ chooserView.isShowingPopup());\n\t\t\treturn chooserView.isShowingPopup();\n }else{\n\t\t\treturn false;\n }\n }", "private boolean canSelectCurWorldType() {\n WorldType worldtype = WorldType.WORLD_TYPES[this.selectedIndex];\n if (worldtype != null && worldtype.canBeCreated()) {\n return worldtype == WorldType.DEBUG_ALL_BLOCK_STATES ? hasShiftDown() : true;\n } else {\n return false;\n }\n }", "public boolean useInternalMenu() {\n return _use_internal_menu;\n }", "public boolean isExpanded() {\n return this.isExpanded;\n }", "private org.gwtbootstrap3.client.ui.DropDownMenu get_f_DropDownMenu57() {\n return build_f_DropDownMenu57();\n }", "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n circleReveal(R.id.library_search_toolbar, 1, true, false);\n } else {\n mSearchToolbar.setVisibility(View.GONE);\n }\n isSearch = false;\n if (mLibraryTab == null) {\n libraryBookView.setVisibility(View.VISIBLE);\n } else {\n libraryBookView.setVisibility(View.GONE);\n if (categoryList.size() >= 2) {\n mLibraryTab.setVisibility(View.VISIBLE);\n }\n libraryPager.setVisibility(View.VISIBLE);\n }\n\n return true;\n }", "@Override\n\tpublic PanelCollapse getFunctionCollapse() {\n\t\treturn functionCollapse;\n\t}", "public boolean isExpanded(){\n\t\treturn expanded;\n\t}", "@Override public boolean selectAutomaticallyInTreeMenu() {\n return infoPanel == null;\n }", "public ServiceLevelAction getCollapseAction();", "public void setAllowCollapse(boolean allowCollapse) {\n\t\tmAllowCollapse = allowCollapse;\n\t}", "public boolean isPanelActive() {\n return getElement(container).getAttribute(\"class\").contains(\"rx-blade-expanded\");\n }", "public boolean getMenuColumnsFlag() {\n return menuColumns;\n }", "public boolean isExpandable();", "public boolean isExpanded() {\n return expanded;\n }", "public boolean isExpanded();", "@Override\n public void onMenuToggle(boolean b) {\n }", "public static boolean tabIsDown()\n\t{\n\t\treturn tabDown;\n\t}", "private org.gwtbootstrap3.client.ui.DropDownMenu get_f_DropDownMenu22() {\n return build_f_DropDownMenu22();\n }", "public boolean isShowLinksToUi() {\r\n return this.getDefaultGroup() != null;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_rumah, menu);\n collapsedMenu = menu;\n return true;\n }", "@Override\n public boolean isExpanded() {\n return isExpanded;\n }", "public SelenideElement rolesDropDownButton () {\n return formPageRoot().$(\"button.dropdown-toggle\");\n }", "private org.gwtbootstrap3.client.ui.DropDownMenu get_f_DropDownMenu68() {\n return build_f_DropDownMenu68();\n }", "private org.gwtbootstrap3.client.ui.DropDownMenu get_f_DropDownMenu46() {\n return build_f_DropDownMenu46();\n }", "private org.gwtbootstrap3.client.ui.DropDownMenu get_f_DropDownMenu73() {\n return build_f_DropDownMenu73();\n }", "public boolean getUnselectedCloseVisible() {\n checkWidget();\n return showUnselectedClose;\n }", "public boolean isLineDropdownPresent() {\n\t\tboolean result;\n\t\tlog.debug(\"Checking if line dropdown is activated\");\n\t\t\n\t\tif (isElementPresent(line_dropdown, 1))\n\t\t\tresult = true;\n\t\telse\n\t\t\tresult = false;\n\t\tlogger.log(Status.INFO, \"Line drop down is present: \" + result);\n\t\tlog.info(\"Line drop down is present: \" + result);\n\t\treturn result;\n\n\t}", "public final boolean isStateful() {\n ColorStateList colorStateList;\n ColorStateList colorStateList2 = this.mCollapsedTextColor;\n return (colorStateList2 != null && colorStateList2.isStateful()) || ((colorStateList = this.mExpandedTextColor) != null && colorStateList.isStateful());\n }", "private org.gwtbootstrap3.client.ui.DropDownMenu get_f_DropDownMenu55() {\n return build_f_DropDownMenu55();\n }", "public Boolean getSimpleDeselect() {\r\n return getAttributeAsBoolean(\"simpleDeselect\");\r\n }", "private org.gwtbootstrap3.client.ui.DropDownMenu get_f_DropDownMenu11() {\n return build_f_DropDownMenu11();\n }", "@Override\r\n\tpublic boolean isVisible()\r\n\t{\n\t\treturn !getFormScreen().getMode().equals(Mode.LIST_VIEW);\r\n\t}", "public boolean hasItemExpanded() {\n int childCount = getChildCount();\n for (int i = 0; i < childCount; i++) {\n final View child = getChildAt(i);\n if (((LayoutParams) child.getLayoutParams()).isOpen) {\n return true;\n }\n }\n return false;\n }", "public static boolean isOverflowMenu(View contentView) throws NoSuchFieldException, ClassNotFoundException, IllegalAccessException {\n\t\treturn false;\n\t}", "abstract void setCollapsed(boolean isCollapsed);", "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n adapter.setFilter(mData);\n return true; // Return true to collapse action view\n }", "public boolean isToggle() {\n return getElement().isToggle();\n }", "public boolean isVisidonModeEnabled() {\n return false;\n }", "boolean isMenuShowing() {\n return game.r != null;\n }", "public byte enableDownSelection() {\n byte isDownSelected = 0;\n if (itemFocused == UISettings.MENU || itemFocused == UISettings.IMAGE_MENU) {\n if (bannerHandler.isBannerSelect()) {\n isDownSelected = 3;\n itemFocused = UISettings.BANNER;\n lastItemFocused = UISettings.BANNER;\n reLoadFooterMenu();\n } else isDownSelected = 1;\n } else if (itemFocused == UISettings.BANNER) {\n if(isImageView>0){\n if(iImageMenu.isMenuPresent()){\n itemFocused = UISettings.IMAGE_MENU;\n lastItemFocused = UISettings.IMAGE_MENU;\n reLoadFooterMenu();\n isDownSelected = 1;\n }\n } else if (iMenu.isMenuPresent()) {\n itemFocused = UISettings.MENU;\n lastItemFocused = UISettings.MENU;\n reLoadFooterMenu();\n isDownSelected = 1;\n }\n }\n return isDownSelected;\n }", "public boolean getMenuColumnsFlag()\t\t{ return menuColumns; }", "public boolean isGroupListSideBarPresent() {\r\n\t\treturn isElementPresent(groupListSideBar, SHORTWAIT);\r\n\t}", "boolean hasDetailPlacementView();", "public boolean shouldHide() {\n\t\treturn hide;\n\t}", "@JDIAction(\"Collapse '{name}'\")\n public void collapse() {\n if (isExpanded()) {\n expandButton.click();\n }\n }", "public void setIsAlwaysCollapsed(final boolean alwaysCollapsed);", "public boolean isExpandable() {\n return term.isExpandable();\n }", "public void collapse() {\n if(contentLayout.isVisible()) {\n toggle(false);\n }\n }", "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n finish();\n return true; // Return true to collapse action view\n }", "@Test\n public void testToggle() {\n // collapse and check the status\n rootPage.menu().collapse();\n Assert.assertTrue(rootPage.menu().isCollapsed());\n // expand and check the status\n rootPage.menu().expand();\n Assert.assertFalse(rootPage.menu().isCollapsed());\n }", "@Override\n public boolean showDurabilityBar(ItemStack stack) {\n return false;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n //boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n //menu.findItem(<MENU_ITEMS>).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }", "public boolean isSetDrop_priv() {\n return this.__isset.drop_priv;\n }", "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n adapter.setFilter(lista1);\n return true; // Return true to collapse action view\n }", "public boolean isSelectorType() {\n return m_selectorType != NestingCustomBase.SELECTION_UNCHECKED;\n }", "public String viewBranchLiability() {\n\t\tthis.setViewOrNewAction(true);\n\t\treturn null;\n\t}", "public boolean isGrupoSeleccionado() {\n\t\treturn grupoSeleccionado;\n\t}", "public /* synthetic */ void lambda$createView$3(View view) {\n this.dropDownContainer.toggleSubMenu();\n }", "public boolean isMaximized() {\n return maximized;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n return (this.displayState != null &&\n this.displayState.properties.usesMenu() &&\n this.displayState.fragment.onOptionsItemSelected(item))\n || super.onOptionsItemSelected(item);\n }", "boolean hasGroupPlacementView();", "boolean hasExpandedLandingPageView();", "@SuppressWarnings(\"StatementWithEmptyBody\")\n @Override\n public boolean onNavigationItemSelected(MenuItem item) {\n int id = item.getItemId();\n displaySelectedOptions(id);\n return true;\n }", "public void collapse() {\n getSection().setExpanded(false);\n }", "public boolean isPlayByPlayMenuSelected() {\n return playByPlayMenuSelected;\n }", "@Override\n public boolean onPrepareOptionsMenu(Menu menu) {\n // if nav drawer is opened, hide the action items\n boolean drawerOpen = mDrawerLayout.isDrawerOpen(mDrawerList);\n menu.findItem(R.id.action_settings).setVisible(!drawerOpen);\n return super.onPrepareOptionsMenu(menu);\n }", "@Override\n public boolean getIncludeInMenusForClass() throws G2AccessException {\n java.lang.Object retnValue = getStaticAttributeValue (SystemAttributeSymbols.INCLUDE_IN_MENUS_);\n return ((Boolean)retnValue).booleanValue ();\n }", "public boolean collapse(final boolean animated);" ]
[ "0.61301714", "0.6069953", "0.6060701", "0.60542756", "0.6024203", "0.591278", "0.5680543", "0.56602573", "0.5602309", "0.55830544", "0.54387164", "0.5376005", "0.53656626", "0.53651625", "0.5357622", "0.53572816", "0.53572816", "0.53503674", "0.531972", "0.5280749", "0.52391475", "0.5207501", "0.52060884", "0.5205009", "0.5190207", "0.518912", "0.51667327", "0.5148747", "0.5093769", "0.50534123", "0.5044641", "0.5021456", "0.5019209", "0.50102764", "0.50056785", "0.50043666", "0.49918064", "0.49874994", "0.49869257", "0.4975143", "0.4974103", "0.49665675", "0.49640864", "0.4935228", "0.49178535", "0.4912761", "0.49083635", "0.49078834", "0.48914477", "0.48900214", "0.4870192", "0.48652938", "0.4860326", "0.4857273", "0.48555812", "0.485537", "0.48545754", "0.48480237", "0.4845987", "0.4832309", "0.47862378", "0.47747657", "0.47615162", "0.47536424", "0.47532257", "0.47516516", "0.47497773", "0.47411934", "0.47242275", "0.4716284", "0.47150823", "0.47055885", "0.4700604", "0.46958485", "0.46944922", "0.4685997", "0.46844757", "0.4682307", "0.46759388", "0.46699566", "0.46553403", "0.4655182", "0.46403313", "0.4639938", "0.46295014", "0.4626644", "0.46249872", "0.46217194", "0.46189824", "0.46128803", "0.45863312", "0.45856297", "0.4583809", "0.45822787", "0.458179", "0.4579314", "0.45725343", "0.4568877", "0.45661232", "0.45521256" ]
0.56710416
7
Sets the allow collapse.
public void setAllowCollapse(boolean allowCollapse) { mAllowCollapse = allowCollapse; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void setCollapsed(boolean isCollapsed);", "public void setDefineCollapse(PanelCollapse defineCollapse) {\n\t\tthis.defineCollapse = defineCollapse;\n\t}", "public void setCollapsible(boolean collapsible) {\n\t\tthrow new UnsupportedOperationException(\"readonly\");\n\t}", "protected void setRestrict(boolean restrict) {\n this.restrict = restrict;\n }", "private boolean getCollapse() {\n return false;\n }", "public Sequence setCollapsed(boolean collapsed) {\n mCollapsed = collapsed;\n return this;\n }", "public void collapse() {\n getSection().setExpanded(false);\n }", "public Sequence toggleCollapsed() {\n mCollapsed = !mCollapsed;\n return this;\n }", "@Override\n\tpublic PanelCollapse getDefineCollapse() {\n\t\treturn defineCollapse;\n\t}", "public final native void setAllowMultiple(boolean allowMultiple) /*-{\r\n\t\tthis.allowMultiple = allowMultiple;\r\n\t}-*/;", "public void setParamCollapse(PanelCollapse paramCollapse) {\n\t\tthis.paramCollapse = paramCollapse;\n\t}", "public void setCollapsed(boolean collapsed) {\n super.setCollapsed(collapsed);\n\n if (_spItem != null) {\n _spItem.getTable().set(GUI_COLLAPSED, collapsed);\n }\n }", "protected void setMaximizeEnabledFromScout(boolean maximizable) {\n }", "public void setRestricted( boolean val ) {\n this.restricted = val;\n if ( !val && getFlow().getRestriction() != null ) {\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"restriction\", null ) );\n }\n }", "private void setBlocked(boolean value) {\n\n blocked_ = value;\n }", "public void toggle() {\n if (isExpanded()) {\n collapse();\n } else {\n expand();\n }\n }", "public void setIsAlwaysCollapsed(final boolean alwaysCollapsed);", "@JDIAction(\"Collapse '{name}'\")\n public void collapse() {\n if (isExpanded()) {\n expandButton.click();\n }\n }", "public void collapse() {\n if(contentLayout.isVisible()) {\n toggle(false);\n }\n }", "public void setNonExpandable() {\n term.setNonExpandable();\n }", "public static void setCollapsed(View view) {\n view.setVisibility(8);\n }", "public void setArmed(boolean b) {\n }", "public void collapse() {\n if (getVisibility() == View.GONE) {\n return;\n }\n mAnimatorCollapse.setDuration(mDuration);\n mAnimatorCollapse.start();\n }", "public void setNotVisibleIfNotBlockedAndReplaced() {\n\t\tif (!isBlocked && getReplacementAttribute() == null) {\n\t\t\tthis.isVisible = false;\n\t\t}\n\t}", "public void setDistributable(boolean distributable);", "public void setFunctionCollapse(PanelCollapse functionCollapse) {\n\t\tthis.functionCollapse = functionCollapse;\n\t}", "public final native void setAllowNone(boolean allowNone) /*-{\r\n\t\tthis.allowNone = allowNone;\r\n\t}-*/;", "void setIfCanRemove(boolean set);", "public void setNegativePermissions();", "private void setExpandableLayoutVisiblity(){\n if(mExpandToggleBtn.isChecked()){\n mExpandableLayout.setVisibility(View.VISIBLE);\n }\n // if expand is set to false, then hide the expandable layout\n else{\n mExpandableLayout.setVisibility(View.GONE);\n }\n }", "public void setExempt(boolean exempt);", "public boolean collapse(final boolean animated);", "@Override\n public void setExpanded(boolean isExpanded) {\n mIsExpanded = isExpanded;\n }", "public void collapse() {\n searchView.setQuery(\"\", true);\n if (!searchView.isIconified()) {\n searchView.setIconified(true);\n }\n }", "void setModalExpansionOff() {\n this.modalExpansion = false;\n }", "public void collapseNoAnim() {\n if (getVisibility() == View.GONE) {\n return;\n }\n mAnimatorCollapse.setDuration(0);\n mAnimatorCollapse.start();\n }", "public void collapse() {\n if (DEBUG) logf(\"collapse: \" + this);\n if (!isFullyCollapsed()) {\n mTimeAnimator.cancel();\n mClosing = true;\n // collapse() should never be a rubberband, even if an animation is already running\n mRubberbanding = false;\n fling(-mSelfCollapseVelocityPx, /*always=*/ true);\n }\n }", "void setModalExpansionOn() {\n this.modalExpansion = true;\n }", "public void setProtection(boolean value);", "protected void setPlateauBlocked() {\r\n\t\tint idx = 0;\r\n\t\tfor (int i = 0; i < plateau4par4.getPlateau().length; i++) {\r\n\t\t\tfor (int j = 0; j < plateau4par4.getPlateau()[i].length; j++) {\r\n\t\t\t\tplateau4par4.getPlateau()[i][j] = new Case(new CaseContent(++idx));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public boolean isCollapsed();", "public void setCollapsedAnswerCount(Integer collapsedAnswerCount) {\n this.collapsedAnswerCount = collapsedAnswerCount;\n }", "public void collapseProperty( String name )\n {\n collapseRow( getRow( name ) );\n }", "public void setAllow(Set<HttpMethod> allowedMethods)\r\n/* 132: */ {\r\n/* 133:200 */ set(\"Allow\", StringUtils.collectionToCommaDelimitedString(allowedMethods));\r\n/* 134: */ }", "public void setAmmunition(boolean value) {\r\n this.ammunition = value;\r\n }", "AllowAction(ModeUsage modeUsage) {\n super(modeUsage);\n }", "protected void setMinimizeEnabledFromScout(boolean minized) {\n }", "public void setAchieved(Boolean newValue);", "public void setMute(boolean mute);", "@NoProxy\n @NoDump\n public void setSuppressed(final boolean val) {\n if (val) {\n setStatus(statusMasterSuppressed);\n } else {\n setStatus(null);\n }\n }", "@Override\r\n\tpublic void setAbilities() {\n\t\t\r\n\t}", "public boolean getCollapsed() {\n return mCollapsed;\n }", "public void setMuddy( boolean muddy )\n {\n }", "public void setExpandCollapseMode(boolean z) {\n this.isPackageViewCollapsedMode = z;\n this.moreProductsShownAtPosition = -1;\n }", "public Builder setBlocked(boolean value) {\n copyOnWrite();\n instance.setBlocked(value);\n return this;\n }", "public void setExplosive(boolean value) {\r\n this.explosive = value;\r\n }", "void setProtection(boolean value);", "public void setRestricted(boolean restricted) {\n _restricted = (restricted && _dropType == DropType.ITEM);\n }", "public void setM(boolean m) {\n\tthis.m = m;\n }", "public void setClearMines(boolean b);", "public Encoding setAllowReserved(Boolean value) {\n\t\tallowReserved = value;\n\t\treturn this;\n\t}", "boolean isCollapsed();", "public void setStrict(boolean on) {\n if (on)\n setAccessFlags(getAccessFlags() | Constants.ACCESS_STRICT);\n else\n setAccessFlags(getAccessFlags() & ~Constants.ACCESS_STRICT);\n }", "@Override\n public void setVisibleWhen(MExpression arg0)\n {\n \n }", "@Override\n\tpublic boolean setAbilities(Ability... abilities) {\n\t\treturn false;\n\t}", "public void setAllowNegative(boolean allowNegative) {\n\t\tthis.allowNegative = allowNegative;\n\t\trequestRepaint();\n\t}", "public void setSchiebenAllowed(boolean isSchiebenAllowed) {\n this.isSchiebenAllowed = isSchiebenAllowed;\n }", "public void setCanCollapseFacets(Boolean canCollapseFacets) {\r\n setAttribute(\"canCollapseFacets\", canCollapseFacets, true);\r\n }", "protected void enableActionSetMute()\n {\n Action action = new Action(\"SetMute\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n iDelegateSetMute = new DoSetMute();\n enableAction(action, iDelegateSetMute);\n }", "public void setExpanded(boolean expanded){\n\t\tthis.expanded = expanded;\n\t}", "public boolean isCollapsed() {\n return !expanded;\n }", "public void changeMutable() {\n\t\tmutable = !mutable;\n\t}", "public void toggleNoAnim() {\n if(isExpanded()) {\n collapseNoAnim();\n }\n else {\n expandNoAnim();\n }\n }", "public Builder setAligning(boolean value) {\n bitField0_ |= 0x00000008;\n aligning_ = value;\n onChanged();\n return this;\n }", "public Builder setCausesDrop(boolean value) {\n\n causesDrop_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public void setAffichageAideDeplacement(boolean b) {\n this.affichageAideDeplacement = b;\n }", "public void setCadastro() {\n jb_novo1.setEnabled(false);\n }", "public SamFilterParamsBuilder excludeMated(final boolean val) {\n mExcludeMated = val;\n return this;\n }", "public void maybeMarkCapabilitiesRestricted() {\n // Check if we have any capability that forces the network to be restricted.\n final boolean forceRestrictedCapability =\n (mNetworkCapabilities & FORCE_RESTRICTED_CAPABILITIES) != 0;\n\n // Verify there aren't any unrestricted capabilities. If there are we say\n // the whole thing is unrestricted unless it is forced to be restricted.\n final boolean hasUnrestrictedCapabilities =\n (mNetworkCapabilities & UNRESTRICTED_CAPABILITIES) != 0;\n\n // Must have at least some restricted capabilities.\n final boolean hasRestrictedCapabilities =\n (mNetworkCapabilities & RESTRICTED_CAPABILITIES) != 0;\n\n if (forceRestrictedCapability\n || (hasRestrictedCapabilities && !hasUnrestrictedCapabilities)) {\n removeCapability(NET_CAPABILITY_NOT_RESTRICTED);\n }\n }", "private boolean setAllPolicy(String webMethodName, String opName, String toPermit) \r\n\t{\r\n\t NAASIntegration naas = new NAASIntegration(Phrase.AdministrationLoggerName);\r\n\t boolean ret = true;\r\n\t if(toPermit.equalsIgnoreCase(\"Y\")){\r\n\t \tret = naas.setAllPolicy(webMethodName, opName, NAASRequestor.ACTION_DENY);\r\n\t }else{\r\n\t \tString isExit = verifyPolicy(webMethodName, opName);\r\n\t \tif(isExit!= null && isExit.equalsIgnoreCase(\"deny\")){\r\n\t\t \tret = naas.setAllPolicy(webMethodName, opName, \"\");\t \t\t \t\t\r\n\t \t}\r\n\t }\r\n\t return ret;\r\n\t}", "public void setWhitelisted ( boolean value ) {\n\t\texecute ( handle -> handle.setWhitelisted ( value ) );\n\t}", "public void setALLOWMTMTORUN(java.lang.CharSequence value) {\n this.ALLOW_MTM_TO_RUN = value;\n }", "public void setAugment(boolean aValue);", "public void setSummable(Boolean summable);", "private void setVis(boolean b) {\n this.setVisible(b);\n }", "protected void doToggleMinimap() {\r\n\t\trenderer.minimapMode = ui.viewSymbolicBuildings.isSelected();\r\n\t\trenderer.repaint();\r\n\t}", "protected void collapseAll() {\n Activity a = getCurrentActivity();\n if (a instanceof SessionsExpandableListActivity) {\n SessionsExpandableListActivity sela = (SessionsExpandableListActivity) a;\n \n sela.collapseAll();\n Log.i(\"collapseAll()\", \"collapsed!\");\n }\n }", "@Override\n public void set(boolean state) {\n if (isInverted) {\n super.set(!state);\n } else {\n super.set(state);\n }\n }", "public void setAllowAccout(String allowAccout) {\n this.allowAccout = allowAccout == null ? null : allowAccout.trim();\n }", "@Override\n\t/**\n\t * sets the visibility modifiers for the specific class\n\t * \n\t * @param s \n\t */\n\tpublic void setVisability(String s) {\n\t\tvisability = s;\n\n\t}", "public void set(boolean bol);", "private void conmuteFields() {\r\n\t\ttxPassword.setEditable(!txPassword.isEditable());\r\n\t\ttxUsuario.setEditable(!txUsuario.isEditable());\r\n\t\tcheckAdmin.setDisable(!checkAdmin.isDisable());\r\n\t\tcheckTPV.setDisable(!checkTPV.isDisable());\r\n\t}", "public Builder setIsLimited(boolean value) {\n \n isLimited_ = value;\n onChanged();\n return this;\n }", "public void setUnblockable(boolean blockable);", "@Override\n public void setVisibility(long visibility) {\n throw new UnsupportedOperationException();\n }", "public void setInheritProcessAccessRoles(boolean value)\r\n {\r\n getSemanticObject().setBooleanProperty(swpres_inheritProcessAccessRoles, value);\r\n }", "public void setCanBeSafe(boolean on) {\r\n canBeSafe = on;\r\n }", "public void getGroupHideColumn() {\r\n\t\tString showHide = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(WsrdConstants.HIDESHOWCOLUMN);\r\n\t\tif(showHide.equalsIgnoreCase(WsrdConstants.SHOW_AUTHOR_INFO)) {\r\n\t\t\twsrdModel.setGroupShowHide(WsrdConstants.HIDE_AUTHOR_INFO);\r\n\t\t\twsrdModel.setShowHideFlag(true);\r\n\t\t}\r\n\t\tif(showHide.equalsIgnoreCase(WsrdConstants.HIDE_AUTHOR_INFO)) {\r\n\t\t\twsrdModel.setGroupShowHide(WsrdConstants.SHOW_AUTHOR_INFO);\r\n\t\t\twsrdModel.setShowHideFlag(false);\r\n\t\t\t\r\n\t\t}\r\n\t}", "void setCanSeeFriendlyInvisibles(boolean canSeeFriendlyInvisibles);", "public void setMayFilter (boolean filterAllowed) {\n\tmayFilter = filterAllowed && mayFilter;\n }" ]
[ "0.61422575", "0.6049386", "0.60286474", "0.5810874", "0.58073455", "0.5467586", "0.53804225", "0.5310456", "0.5296532", "0.529332", "0.52156305", "0.5160986", "0.5133457", "0.5109622", "0.5100476", "0.510019", "0.50814444", "0.5074728", "0.5071296", "0.5066545", "0.5045809", "0.5035291", "0.50207555", "0.4965339", "0.49584827", "0.49522528", "0.49515393", "0.49262926", "0.4922314", "0.48711646", "0.48677063", "0.48514867", "0.4830592", "0.48294455", "0.4826398", "0.48081827", "0.47971708", "0.47961393", "0.47798324", "0.47780764", "0.4769905", "0.47575942", "0.4752406", "0.47481617", "0.4739209", "0.47294644", "0.47280866", "0.47207645", "0.47181433", "0.47176787", "0.47171766", "0.47084808", "0.4705013", "0.4702017", "0.46876562", "0.46874648", "0.46857658", "0.46838793", "0.46718928", "0.46538612", "0.46516526", "0.46425378", "0.46317896", "0.46312714", "0.46274135", "0.46257657", "0.46222758", "0.46128672", "0.46025705", "0.459621", "0.459375", "0.45871818", "0.45864385", "0.4586148", "0.45859513", "0.4585231", "0.45837957", "0.45760256", "0.45661628", "0.4547811", "0.45432875", "0.4538209", "0.45363447", "0.4535261", "0.4531561", "0.45313084", "0.45309976", "0.45285457", "0.45197657", "0.45108807", "0.4508153", "0.4506641", "0.45050448", "0.45004317", "0.4482356", "0.44808918", "0.44743446", "0.44735575", "0.44731903", "0.44690216" ]
0.7512918
0
Sets the tab selected.
public void setTabSelected(int position) { mSelectedTabIndex = position; final int tabCount = mTabLayout.getChildCount(); for (int i = 0; i < tabCount; i++) { final View child = mTabLayout.getChildAt(i); final boolean isSelected = i == position; child.setSelected(isSelected); if (isSelected) { animateToTab(position); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelectedTab(int arg0) {\n\n\t}", "public void setSelectedTab(int tab) {\n if ((tabbedPane.getTabCount() - 1) >= tab)\n tabbedPane.setSelectedIndex(tab);\n }", "@Override\n\tpublic void selectTab(Tab tab) {\n\t\t\n\t}", "public static void setActiveTab(Tab tab) {\n\n try {\n controller.tabPane.getTabs().add(controller.appointmentTab);\n controller.tabPane.getTabs().add(controller.bookingTab);\n controller.tabPane.getTabs().add(controller.customerTab);\n controller.tabPane.getTabs().add(controller.employeeTab);\n controller.tabPane.getTabs().add(controller.malfunctionTab);\n controller.tabPane.getTabs().add(controller.statisticTab);\n controller.tabPane.getTabs().add(controller.vehicleTab);\n\n SingleSelectionModel<Tab> selectionModel = controller.tabPane.getSelectionModel();\n\n selectionModel.select(tab);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "public void setSelection( final CTabItem item ) {\n checkWidget();\n if( item == null ) {\n SWT.error( SWT.ERROR_NULL_ARGUMENT );\n }\n int index = itemHolder.indexOf( item );\n setSelection( index );\n }", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\t\tvp.setCurrentItem(tab.getPosition());\n\t}", "public native void selectTab(GInfoWindow self, int index)/*-{\r\n\t\tself.selectTab(index);\r\n\t}-*/;", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.main_ll_xw:\n setTabSelection(0);\n break;\n case R.id.main_ll_rili:\n setTabSelection(1);\n break;\n case R.id.main_ll_hq:\n setTabSelection(2);\n break;\n case R.id.main_ll_wd:\n setTabSelection(3);\n break;\n\n case R.id.main_ll_self:\n setTabSelection(4);\n break;\n }\n }", "public void selectTab(int index) {\r\n\t\tthis.displayTab.setSelection(index);\r\n\t\tthis.displayTab.showSelection();\r\n\t}", "@Override\n public void setActiveTab(Tab tab) {\n // monkey protection against delayed start\n if (tab != null) {\n mTabControl.setCurrentTab(tab);\n // the tab is guaranteed to have a webview after setCurrentTab\n mUi.setActiveTab(tab);\n }\n }", "public void setSelectedItem(int selectedItem) {\n setSelectedItem(selectedItem, true);\n }", "public void tabSelected();", "private void setTabBg(View vFocused, boolean selected) {\n if (selected) {\n SkinUtil.instance().setViewBackground(this, vFocused, R.drawable.bg_title_item_c);\n } else {\n SkinUtil.instance().setViewBackground(this, vFocused, R.drawable.btn_filter_tab_selector);\n }\n }", "public void selectTab(Predicate<? super CTabItem> tabFilter) {\r\n\t\tthis.displayTab.setSelection(Arrays.stream(this.getTabFolder().getItems()).filter(tabFilter).findFirst().orElseThrow(() -> new UnsupportedOperationException()));\r\n\t\tthis.displayTab.showSelection();\r\n\t}", "public void setSelected(boolean selected) {\n\t\tiAmSelected = selected;\n\t}", "public void setTab(int i) {\n TabLayout.Tab tab = mTabLayout.getTabAt(i);\n tab.select();\n }", "private void selectFirstTab() {\n Tab tab = view\n .getNationsTabPane()\n .getTabs().get(0);\n\n tabChanged(tab, tab);\n }", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n\n this.mPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n\n viewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab,\n FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\r\n public void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\r\n }", "public void setSelected(boolean selected) {\r\n\t\tthis.selected = selected;\r\n\t}", "public void setSelected(boolean selected) {\n this.selected = selected;\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n mViewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n mViewPager.setCurrentItem(tabLayout.getSelectedTabPosition());\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n }", "public void setSelected(boolean selected) {\t\t\t\t\n\t\tthis.selected = selected;\t\t\t\t\t\t\n\t}", "public void setSelected(boolean selected)\n\t{\n\t\tthis.selected = selected;\n\t}", "@Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }", "public void changeTab(int index) {\n\t\ttabsContainer.getSelectionModel().select(index);\n\t}", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n\t}", "public void setSelected(boolean selected) \n {\n this.selected = selected;\n }", "@Override\n\tpublic void pressTab() {\n\t\tSystem.out.println(\"Change active control.\");\n\t\t\n\t\tchangeCurrentControl(false);\n\t\t\n\t\tif (getCurrentControlIndex() < getControls().size() - 1) \n\t\t\tsetCurrentControlIndex(getCurrentControlIndex() + 1);\n\t\telse \n\t\t\tsetCurrentControlIndex(0);\n\n\t\tchangeCurrentControl(true);\n\t}", "void setSelected(boolean selected) {\n if (selected == isSelected()) {\n return;\n }\n if (selected) {\n highlight();\n } else {\n unhighlight();\n }\n this.selected = selected;\n }", "@Override\n \t\t\tpublic void onTabSelected(\n \t\t\t\t\tcom.actionbarsherlock.app.ActionBar.Tab tab,\n \t\t\t\t\tandroid.support.v4.app.FragmentTransaction ft) {\n \t\t\t\tmViewPager.setCurrentItem(tab.getPosition());\n \t\t\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\thost.setCurrentTab(CHART);\r\n\t\t\t}", "public void forceChangeSelectionToWidget(ITabDescriptor tab) {\n\t\tint index = -1;\n\t\tfor (int i = 0; i < elements.size(); i++) {\n\t\t\tif (elements.get(i).getId().equals(tab.getId())) {\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\tAssert.isTrue(index != -1, \"Could not set the selected tab in the tabbed property viewer\");//$NON-NLS-1$\n\t\tlist.select(index);\n\t}", "@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n\r\n\t\tviewPager.setCurrentItem(tab.getPosition());\r\n\r\n\t}", "static void setCurrentSettingTab(int currentIdx) {\n currentSettingTab = currentIdx;\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif(mViewPager.getCurrentItem()==index){\n\t\t\t\t\t\tselectTab(index);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmViewPager.setCurrentItem(index, true);\n\t\t\t\t\t}\n\t\t\t\t}", "protected abstract void doTabSelectionChanged(int oldIndex, int newIndex);", "public void setSelected(boolean selected) {\n\t\t// Set the Selection on the CoolBar\n\t _coolBar.setSelected(selected);\n\t}", "@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\r\n\t\t\r\n\t}", "@Override\n public void onPageSelected(int position) {\n tabHost.setSelectedNavigationItem(position);\n }", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tFragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}", "public void setSelectedItem(Gnome selectedItem) {\n this.selectedItem = selectedItem;\n }", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab,\n\t\t\tandroid.app.FragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t}", "public void setSelected(boolean selected);", "void setTabindex(int tabindex);", "void onTabSelectionChanged(int tabIndex);", "public void setCurrentTab(final int position) {\n mBottomBarLayout.post(new Runnable() {\n @Override\n public void run() {\n mBottomBarLayout.getChildAt(position).performClick();\n }\n });\n }", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n viewPager.setCurrentItem(tab.getPosition());\n }", "@Override\n\tpublic void onTabSelected(ActionBar.Tab tab, FragmentTransaction fragmentTransaction) {\n\t\tmViewPager.setCurrentItem(tab.getPosition());\n\t\ttab.setIcon(mAppSectionsPagerAdapter.getPageIconSelected(tab.getPosition()));\n\n\t}", "@Override\n public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) {\n mTabPager.setCurrentItem(tab.getPosition());\n // jumpFlag = true;\n }", "void onTabReselected(int position);", "@Override\n\tpublic void onTabSelected(Tab tab, FragmentTransaction arg1) {\n\t\tviewPager.setCurrentItem(tab.getPosition());\n\n\t}", "public void setSelectedItem(BrowseItem selectedItem)\r\n\t{\r\n\t\tthis.selectedItem = selectedItem;\r\n\t}", "public void setSelected(AnimationDef selected) {\n getAdapter().getSelectionManager().deselectAll();\n if( selected != null ){\n getAdapter().getSelectionManager().select(selected);\n }\n }", "@Override\n\tpublic void setSelected(boolean selected) {\n\t\t\n\t}", "@Override\n\t\tpublic void setSelected(int p_178011_1_, int p_178011_2_, int p_178011_3_) {\n\n\t\t}", "@Override\n\t\tpublic void setSelected(int p_178011_1_, int p_178011_2_, int p_178011_3_) {\n\n\t\t}", "@Override\n\tpublic void addTab(Tab tab, boolean setSelected) {\n\t\t\n\t}", "public void setSelectedTable(String selectedTable) {\n\t\tthis.selectedTable = selectedTable;\n\t}", "@Override\r\n\tpublic void onTabSelected(Tab tab, FragmentTransaction ft) {\r\n\t\t// on tab selected\r\n\t\t// showing respected fragment view at view pager\r\n\t\tviewPager.setCurrentItem(tab.getPosition());\r\n\t}", "public void setSelection (boolean selected) {\r\n\tcheckWidget();\r\n\tif ((style & (SWT.CHECK | SWT.RADIO | SWT.TOGGLE)) == 0) return;\r\n\tOS.PtSetResource (handle, OS.Pt_ARG_FLAGS, selected ? OS.Pt_SET : 0, OS.Pt_SET);\r\n}", "public void setViewedTab(int tabIndex) {\r\n if (tabs[tabIndex] == null) {\r\n throw new IllegalStateException(\"Tab at index \" + tabIndex + \" is null!\");\r\n }\r\n currentTabIndex = tabIndex;\r\n switch (tabIndex) {\r\n case 0:\r\n tabIndex = 1;\r\n break;\r\n case 1:\r\n tabIndex = 2;\r\n break;\r\n case 2:\r\n tabIndex = 3;\r\n break;\r\n case 3:\r\n tabIndex = 0;\r\n break;\r\n }\r\n if (tabIndex > 9) {\r\n tabIndex--;\r\n }\r\n player.getActionSender().sendSidebarTab(tabIndex);\r\n }", "public void setDefaultTab() {\r\n\t\t\tgetActionBar().selectTab(getActionBar().getTabAt(CLASSIFICATION_TAB_INDEX));\t\r\n\t\t}", "public void setSelected( boolean selected )\n\t{\n\t\tmSelected = selected;\n\t\t\n\t\tmUpdated = true;\n\t}", "public void setSelected(boolean select) {\r\n isSelected = select;\r\n }", "@Override\n\tpublic void onPageSelected(int position) {\n\t\tselectTab(position);\n\t}", "@Override\n public void onPageSelected(int position) {\n mViewPager.setCurrentItem(position);\n selectTab(position);\n }", "public void setSelectedOption(int selectedOption) {\n this.selectedOption = selectedOption;\n }", "public void setSelectedItem(ItemT item) {\n selectedItem = item;\n onSelectedItemChanged();\n }", "private void setChecked(int position) {\n if (isClickTab) {\n isClickTab = false;\n } else {\n if (mTabLayout == null) {\n return;\n }\n mTabLayout.setTabSelected(index);\n }\n index = position;\n }", "@Override\n public void onTabSelected(Tab tab, FragmentTransaction ft) {\n viewPager.setCurrentItem(tab.getPosition());\n if (tab.getPosition() == 1) {\n HomeFragment homeFragment = (HomeFragment)getSupportFragmentManager()\n .findFragmentByTag(\"android:switcher:\"+viewPager.getId()+\":\"+tab.getPosition());\n homeFragment.init();\n }\n }", "public void tabSelected(TabLayout.Tab tab) {\n clearBackstack();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n if (tab.getPosition() == 0) {\n transaction.replace(R.id.home_page_frame_layout, HomeFragment.newInstance(user));\n } else if (tab.getPosition() == 1) {\n transaction.replace(R.id.home_page_frame_layout, WallsFragment.newInstance(user));\n } else if (tab.getPosition() == 2) {\n transaction.replace(R.id.home_page_frame_layout, ProjectsFragment.newInstance(user));\n } else if (tab.getPosition() == 3) {\n transaction.replace(R.id.home_page_frame_layout, UserInfoFragment.newInstance(user));\n }\n transaction.addToBackStack(null);\n transaction.commit();\n }", "@Override\r\n public void setSelected(boolean selected) {\r\n boolean oldSelected = this.mSelected;\r\n this.mSelected = selected;\r\n if (!oldSelected && selected) {\r\n this.mMultiSelect.addToken(this.getPrototype());\r\n } else if (oldSelected && !selected) {\r\n this.mMultiSelect.removeToken(this.getPrototype());\r\n }\r\n\r\n if (oldSelected != this.mSelected) {\r\n this.invalidate();\r\n }\r\n }", "public void setSelectedItem( final T selectedEntity ) {\n this.selectedEntity = selectedEntity;\n }", "public void setSelection (TabItem [] items) {\r\n\tcheckWidget();\r\n\tif (items == null) error (SWT.ERROR_NULL_ARGUMENT);\r\n\tif (items.length == 0) {\r\n\t\tsetSelection (-1);\r\n\t\treturn;\r\n\t}\r\n\tfor (int i=items.length-1; i>=0; --i) {\r\n\t\tint index = indexOf (items [i]);\r\n\t\tif (index != -1) setSelection (index);\r\n\t}\r\n}", "public final void setSelectedBone(Bone selectedBone) {\n this.selectedBone = selectedBone;\n }", "@Override\n public void onPageSelected(int position) {\n setPage(tabLayout, position);\n }", "public void setSelected(boolean selected) {\n this.selected = selected;\n defaultIcon.setSmooth(true);\n selectedIcon.setSmooth(true);\n setIcon(selected ? selectedIcon : defaultIcon);\n }", "public Tab switchToTab(Palette tab) {\n click(tab.getTabPath());\n return this;\n }", "private void changesetTabSelection(int i) {\n\t\tif (i == 1)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_direct_double_name));\r\n\t\t}\r\n\t\tif (i == 2)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_group_120_name));\r\n\t\t}\r\n\t\tif (i == 3)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_group_60_name));\r\n\t\t}\r\n\t\tif (i == 4)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_group_30_name));\r\n\t\t}\r\n\t\tif (i == 5)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_group_20_name));\r\n\t\t}\r\n\t\tif (i == 6)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_group_10_name));\r\n\t\t}\r\n\t\tif (i == 7)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_group_5_name));\r\n\t\t}\r\n\t\tif (i == 8)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_direct_double_name));\r\n\t\t}\r\n\t\tif (i == 9)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_group_24_name));\r\n\t\t}\r\n\t\tif (i == 10)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_group_12_name));\r\n\t\t}\r\n\t\tif (i == 11)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_direct_double_name));\r\n\t\t}\r\n\t\tif (i == 12)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_group_three_name));\r\n\t\t}\r\n\t\tif (i == 13)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_group_six_name));\r\n\t\t}\r\n\t\tif (i == 14)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_group_sum_name));\r\n\t\t}\r\n\t\tif (i == 15)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_group_container_name));\r\n\t\t}\r\n\t\tif (i == 16)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_direct_double_name));\r\n\t\t}\r\n\t\tif (i == 17)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_group_span_name));\r\n\t\t}\r\n\t\tif (i == 18)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_group_three_name));\r\n\t\t}\r\n\t\tif (i == 19)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_group_six_name));\r\n\t\t}\r\n\t\tif (i == 20)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_group_sum_name));\r\n\t\t}\r\n\t\tif (i == 21)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_group_container_name));\r\n\t\t}\r\n\t\tif (i == 22)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_bottomtwo_double_name));\r\n\t\t}\r\n\t\tif (i == 23)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_bottomtwo_sum_name));\r\n\t\t}\r\n\t\tif (i == 24)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_bottomtwo_span_name));\r\n\t\t}\r\n\t\tif (i == 25)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_toptwo_double_name));\r\n\t\t}\r\n\t\tif (i == 26)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_toptwo_span_name));\r\n\t\t}\r\n\t\tif (i == 27)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_bottomtwo_double_name));\r\n\t\t}\r\n\t\tif (i == 28)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_toptwo_double_name));\r\n\t\t}\r\n\t\tif (i == 29)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.fixed_position_name));\r\n\t\t}\r\n\t\tif (i == 30)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.three_bottomthree_one_notposition_name));\r\n\t\t}\r\n\t\tif (i == 31)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.three_bottomthree_two_notposition_name));\r\n\t\t}\r\n\t\tif (i == 32)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.three_topthree_one_notposition_name));\r\n\t\t}\r\n\t\tif (i == 33)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.three_topthree_two_notposition_name));\r\n\t\t}\r\n\t\tif (i == 34)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_bottomfour_two_notposition_name));\r\n\t\t}\r\n\t\tif (i == 35)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_bottomfive_two_notposition_name));\r\n\t\t}\r\n\t\tif (i == 36)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_bottomfive_three_notposition_name));\r\n\t\t}\r\n\t\tif (i == 37)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_toptwo_sum_name));\r\n\t\t}\r\n\t\tif (i == 38)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_group_6_name));\r\n\t\t}\r\n\t\tif (i == 39)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_group_4_name));\r\n\t\t}\r\n\t\tif (i == 40)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_direct_sum_name));\r\n\t\t}\r\n\t\tif (i == 41)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_direct_sum_name));\r\n\t\t}\r\n\t\tif (i == 42)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_direct_span_name));\r\n\t\t}\r\n\t\tif (i == 43)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_sum_end_name));\r\n\t\t}\r\n\t\tif (i == 44)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_sum_end_name));\r\n\t\t}\r\n\t\tif (i == 45)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_toptwo_sum_name));\r\n\t\t}\r\n\t\tif (i == 46)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_toptwo_container_name));\r\n\t\t}\r\n\t\tif (i == 47)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_bottomtwo_container_name));\r\n\t\t}\r\n\t\tif (i == 48)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_bottomtwo_sum_name));\r\n\t\t}\r\n\t\tif (i == 49)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_bottomfour_one_notposition_name));\r\n\t\t}\r\n\t\tif (i == 50)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.maxmin_bottomtwo_name));\r\n\t\t}\r\n\t\tif (i == 51)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.maxmin_bottomthree_name));\r\n\t\t}\r\n\t\tif (i == 52)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.maxmin_toptwo_name));\r\n\t\t}\r\n\t\tif (i == 53)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.maxmin_topthree_name));\r\n\t\t}\r\n\t\tif (i == 54)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.five_direct_single_name));\r\n\t\t}\r\n\t\tif (i == 55)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.four_direct_single_name));\r\n\t\t}\r\n\t\tif (i == 56)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_group_three_single_name));\r\n\t\t}\r\n\t\tif (i == 57)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_group_six_single_name));\r\n\t\t}\r\n\t\tif (i == 58)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_direct_single_name));\r\n\t\t}\r\n\t\tif (i == 59)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottomthree_direct_single_name));\r\n\t\t}\r\n\t\tif (i == 60)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottompthree_group_three_single_name));\r\n\t\t}\r\n\t\tif (i == 61)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottompthree_group_six_single_name));\r\n\t\t}\r\n\t\tif (i == 62)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_toptwo_single_name));\r\n\t\t}\r\n\t\tif (i == 63)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_toptwo_single_name));\r\n\t\t}\r\n\t\tif (i == 64)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_group_bottomtwo_single_name));\r\n\t\t}\r\n\t\tif (i == 65)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.two_direct_bottomtwo_single_name));\r\n\t\t}\r\n\t\tif (i == 66)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.topthree_mix_group_name));\r\n\t\t}\r\n\t\tif (i == 67)\r\n\r\n\t\t{\r\n\t\t\tsetTabSelection(getString(R.string.bottompthree_mix_group_name));\r\n\t\t}\r\n\t\twrite(i);\r\n\t}", "@Override\n\tpublic void setSelectedNavigationItem(int position) {\n\t\t\n\t}", "private int getSelectedTab() {\n String theme = \"default\";\n List<INamedParameters.NamedPair> pairs = getPageParameters().getAllNamed();\n theme = pairs.get(0).getValue();\n if (\"grid\".equals(theme)) {\n return 1;\n } else if (\"skies\".equals(theme)) {\n return 2;\n } else if (\"gray\".equals(theme)) {\n return 3;\n } else if (\"darkblue\".equals(theme)) {\n return 4;\n } else if (\"darkgreen\".equals(theme)) {\n return 5;\n } else {\n return 0;\n }\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif (hMapTabs.size() > 0) {\n\n\t\t\t\t\t\t\tif (mTabHost.getTabWidget().getChildAt(1)\n\t\t\t\t\t\t\t\t\t.isSelected()) {\n\t\t\t\t\t\t\t\tif (hMapTabs.get(Const.TABS[1]).size() > 1) {\n\t\t\t\t\t\t\t\t\tresetFragment();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmTabHost.getTabWidget().setCurrentTab(1);\n\t\t\t\t\t\t\tmTabHost.setCurrentTab(1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void setCollaboratorTab(Tab newTab) {\r\n this.collaboratorTab = newTab;\r\n HomeController.enableTabsOnCloseRequest(this.collaboratorTab);\r\n }" ]
[ "0.7750785", "0.7591876", "0.73394436", "0.73006153", "0.7163056", "0.71119606", "0.69860226", "0.69737947", "0.696278", "0.6874496", "0.68595344", "0.67540246", "0.6700212", "0.6692507", "0.66617167", "0.66462314", "0.66462284", "0.65880144", "0.6552919", "0.6550619", "0.6544654", "0.6542132", "0.6529847", "0.65285826", "0.65285826", "0.65285826", "0.65285826", "0.65285826", "0.65285826", "0.65285826", "0.65285826", "0.65285826", "0.65195024", "0.65169436", "0.6515941", "0.65050894", "0.65042603", "0.6496525", "0.64516866", "0.64325166", "0.6394346", "0.6394036", "0.6392755", "0.637355", "0.637291", "0.63497424", "0.63423306", "0.63341415", "0.6325142", "0.631124", "0.63050747", "0.6301189", "0.6296079", "0.6296079", "0.6296079", "0.6296079", "0.6296079", "0.6294905", "0.62850577", "0.6283", "0.6281336", "0.6272132", "0.62683487", "0.62634987", "0.6253897", "0.6251043", "0.6245652", "0.6238305", "0.6233527", "0.62147564", "0.6209024", "0.6208944", "0.6208944", "0.61502385", "0.6143435", "0.6116987", "0.6110294", "0.61069566", "0.6077403", "0.60742325", "0.60632706", "0.60528266", "0.6043456", "0.6028363", "0.6012364", "0.5988592", "0.59816146", "0.5975297", "0.5965395", "0.59604764", "0.59456486", "0.59373665", "0.5926677", "0.59043497", "0.5879763", "0.58775014", "0.58757", "0.58677125", "0.5866201", "0.58529526" ]
0.7326248
3
Sets the content height.
public void setContentHeight(int contentHeight) { mContentHeight = contentHeight; requestLayout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHeight(int height);", "public void setHeight(int height);", "public void setHeight(int value) {\n this.height = value;\n }", "void setHeight(int height);", "void setHeight(int height);", "public void setHeight(int h)\n {\n height = h;\n }", "public void setHeight(double value) {\n this.height = value;\n }", "void setContentMaxHeight(String maxHeight);", "public void setHeight(int height) {\r\n this.height = height;\r\n }", "@Override\r\n\tpublic void setHeight(int height) {\n\t\t\r\n\t}", "public void setHeight(int height) {\n this.height = height;\n }", "public void setHeight(int height) {\n this.height = height;\n }", "public void setHeight(int height) {\n this.height = height;\n }", "public void setHeight(int newValue)\n {\n height = newValue;\n }", "public void setHeight(int h) {\n this.H = h;\n }", "public void setHeight(int height) {\r\n\t\tthis.height = height;\r\n\t}", "public void setHeight(double height) {\r\n this.height = height;\r\n }", "public void setHeight(double height) {\n this.height = height;\n }", "protected int getContentHeight()\n {\n return this.getSize() * 10;\n }", "public void setHeight (int height) {\n if (height < 10) {\n Log.warning(\"Attempted to set a checkbox height of less than 10 pixels.\");\n return;\n }\n\n synchronized (this) {\n this.height = height;\n }\n }", "public void setHeight( int height ) {\n\t\t_height = height;\n\t}", "void setHeight(VariableAmount height);", "default void setHeight(int height) {\n setHeight(VariableAmount.fixed(height));\n }", "public void setHeight(double height) {\n this.height = height;\n }", "public void setHeight(Integer height) {\n this.height = height;\n control.draw();\n }", "public void setHeight(final String value)\n {\n height = value;\n }", "private void setHeight(float height){\n this.height = height;\n }", "public void setHeight(int l){\n \theight = l;\n }", "public void setCurrentHeight(final int currentHeight);", "private void setHeight(long value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n }", "@Override\r\n public void setHeight(String height) {\n }", "public void setHeight(int height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(int height) {\n\t\tthis.height = height;\n\t}", "@Override\n\tpublic void setHeight(float height) {\n\n\t}", "public void setHeight(int height) {\n int oldValue = mHeight;\n mHeight = height;\n pcs.firePropertyChange(PROP_HEIGHT, oldValue, mHeight);\n }", "public void setHeight(int height) {\n\t\th = height;\n\t}", "public Builder setHeight(int value) {\n bitField0_ |= 0x00000008;\n height_ = value;\n onChanged();\n return this;\n }", "public final native void setHeight(double height) /*-{\n this.setHeight(height);\n }-*/;", "public void setHeight(int height) {\n\tthis.height = height;\n\tcalculateHeightRatio();\n }", "public void setHeight(int height) {\n if (height > 0) {\n this.height = height;\n }\n }", "public void setHeight(double height) {\n\t\t this.height = height;\n\t }", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(double height) {\n\t\tthis.height = height;\n\t}", "public void setHeight(double height){\n h=height;\r\n }", "protected int getContentHeight()\n {\n return this.getSize() * GuiStats.this.fontRenderer.FONT_HEIGHT * 4;\n }", "@Override\n\tpublic void setHeight(int y) {\n\t\tdelegate.setHeight(y);\n\t}", "@Override\n\tpublic void setHeight(short arg0) {\n\t\t\n\t}", "public void setHeight(Short height) {\r\n this.height = height;\r\n }", "public void setHeight(Integer height)\n {\n getStateHelper().put(PropertyKeys.height, height);\n }", "public void setHeight(String height) {\r\n this.height = height;\r\n }", "public void setHeight(int height) {\r\n\r\n\t\tsuper.setHeight(height);\r\n\r\n\t\tsetNumberOfSections(numberOfSections);\r\n\t}", "void setFitHeight(short height);", "@Override\r\n\tpublic int setHeight() {\n\t\treturn 0;\r\n\t}", "private void setWindowHeight(int height) {\n this.height = height;\n }", "public void setHeight(String height) {\n this.height = height;\n }", "@Override\n protected void setHeight(Context context, Integer heightInDp) {\n }", "void setContentMinHeight(String minHeight);", "public void setHeight(int newValue) {\n seatHeight = newValue;\n }", "public Builder setHeight(long value) {\n copyOnWrite();\n instance.setHeight(value);\n return this;\n }", "public void setHeight(int newValue)\r\n {\r\n seatHeight = newValue;\r\n }", "public void updateHeight() {\n Rectangle repaintBounds = getBounds();\n parent.getScene().paintImmediately(repaintBounds);\n\n // set new height compute while repainting.\n setBounds(new Rectangle(bounds));\n\n parent.getScene().repaint(repaintBounds);\n setChanged();\n notifyObservers();\n }", "public void setHeight(int height) {\n if(height < 0) throw new NegativeSizeException(\"Negative height\"); \n \tthis.height = height;\n }", "public void setHeight(double h) {\n\t\t\theight.set(clamp(h, HEIGHT_MIN, HEIGHT_MAX));\n\t\t}", "public void setHeight(int newHeight) {\n roomHeight = newHeight;\n }", "@BindingAdapter({\"layout_height\"})\n public static void setHeight(View view, int height) {\n view.getLayoutParams().height = Math.round(height * view.getContext().getResources().getDisplayMetrics().density);\n }", "public void setHeight(float height) {\n this.yRadius = 0.5f * height;\n }", "private void refreshHeight() {\n\t\tint lines = Math.min(maxLineCount, Math.max(minLineCount, text\n\t\t\t\t.getLineCount()));\n\t\tint newHeight = lines * text.getLineHeight();\n\n\t\tGridData data = (GridData) text.getLayoutData();\n\t\tif (data.heightHint != newHeight) {\n\t\t\tdata.heightHint = newHeight;\n\t\t\tlayout();\n\t\t}\n\t}", "public void setHeight(int arg) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.HEIGHT.toString(), arg);\n\t}", "@Override\n public int getHeight() {\n return height;\n }", "@Override\n public int getHeight() {\n return height;\n }", "public void setBestHeight() { setHeight(getBestHeight()); }", "private void setCurrentHeight(int height)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmCurrentHeight = height;\r\n\t\t}\r\n\t}", "private void setTargetHeight(int height)\r\n\t{\r\n\t\tsynchronized (mMutex)\r\n\t\t{\r\n\t\t\tmTargetHeight = height;\r\n\t\t}\r\n\t}", "public void setTabHeight( final int height ) {\n checkWidget();\n if( height < -1 ) {\n SWT.error( SWT.ERROR_INVALID_ARGUMENT );\n }\n fixedTabHeight = height;\n updateTabHeight( false );\n }", "public abstract Builder setOutputHeight(int value);", "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setHeight(int value) {\n validate(fields()[6], value);\n this.height = value;\n fieldSetFlags()[6] = true;\n return this;\n }", "public void setHeight(float top, float bottom) {\n this.top = top;\n this.bottom = bottom;\n }", "public void setYHeight(float yHeight) {\n\t\tthis.yHeight = yHeight;\n\t}", "@Override\n public int getHeight() {\n return this.height;\n }", "private void setTableHeight() {\n coachesTable.prefHeightProperty().bind(coachesTable.fixedCellSizeProperty().\n multiply(Bindings.size(coachesTable.getItems())).add(20).add(15)); //margin + header height\n }", "public final int getHeight() {\r\n return height;\r\n }", "public int getHeight() {\n\t\t\treturn height;\n\t\t}", "public void setHeight(int inches) {\n if (inches >= 24 && inches <= 84)\n this.height = inches;\n }", "protected int getContentHeight()\n\t{\n\t\treturn this.getSize() * GuiSlotFriendFoe.slotHeight;\n\t}", "public boolean setHeight(double heightIn)\r\n {\r\n if (heightIn > 0)\r\n {\r\n height = heightIn;\r\n return true;\r\n }\r\n else \r\n {\r\n return false;\r\n }\r\n }", "public void setImageHeight(int val)\n {\n \n setImageHeight_0(nativeObj, val);\n \n return;\n }", "@java.lang.Override\n public long getHeight() {\n return height_;\n }", "public void changeHeight(double y)\r\n {\n }", "@Override\n\tpublic double getRenderHeight() {\n\t\treturn height;\n\t}", "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "public int getHeight() {\r\n\t\treturn height;\r\n\t}", "public void setClientHeight(Integer clientHeight) {\n this.clientHeight = clientHeight;\n }", "public int getHeight() {\r\n\t\t\r\n\t\treturn height;\r\n\t}", "public S<T> height(int height){\n\t\t((View)t).getLayoutParams().height = height;\n\t\treturn this;\n\t}", "public int getHeight() {\n return height;\n }", "public final int getHeight() {\r\n return config.height;\r\n }", "@Override\n\tpublic int getHeight() {\n\t\treturn this.height;\n\t}", "public void setFontHeight(short height)\n {\n font.setFontHeight(height);\n }", "public int getHeight() {\n return height_;\n }" ]
[ "0.7499077", "0.7499077", "0.74452174", "0.74195474", "0.74195474", "0.7205029", "0.7202524", "0.717001", "0.71462667", "0.7146062", "0.7123884", "0.7064281", "0.7064281", "0.7055036", "0.7031996", "0.6996771", "0.6974747", "0.6964713", "0.6950666", "0.69403803", "0.6936832", "0.69341755", "0.69126886", "0.69109523", "0.68764365", "0.6876263", "0.6871951", "0.68356615", "0.6834813", "0.68331236", "0.6831869", "0.6808813", "0.6808813", "0.68004656", "0.6798366", "0.6773469", "0.6769344", "0.6763756", "0.6750857", "0.6738073", "0.6728777", "0.6718779", "0.6718779", "0.6718779", "0.6712823", "0.6665189", "0.66639", "0.6611038", "0.66015047", "0.65699184", "0.6565336", "0.65547967", "0.6541301", "0.65376496", "0.65176153", "0.6482618", "0.647648", "0.6456893", "0.64357555", "0.64235586", "0.6400032", "0.6261962", "0.62619", "0.62514156", "0.6242922", "0.61903995", "0.6143994", "0.6125994", "0.61212206", "0.6114191", "0.6114191", "0.60907567", "0.6050251", "0.60478413", "0.6039565", "0.59719354", "0.59648204", "0.59621", "0.5959454", "0.59369135", "0.5932664", "0.59263414", "0.5915877", "0.59131545", "0.59118605", "0.59010994", "0.5900075", "0.5878992", "0.58704466", "0.5869462", "0.58523583", "0.58523583", "0.5850773", "0.5844094", "0.5837361", "0.5825087", "0.58220804", "0.5822074", "0.5806303", "0.5804569" ]
0.7417718
5
Creates the tab layout.
private IcsLinearLayout createTabLayout() { final IcsLinearLayout tabLayout = (IcsLinearLayout) LayoutInflater .from(getContext()).inflate( R.layout.abs__action_bar_tab_bar_view, null); tabLayout.setMeasureWithLargestChildEnabled(true); tabLayout.setLayoutParams(new LinearLayout.LayoutParams( android.view.ViewGroup.LayoutParams.WRAP_CONTENT, android.view.ViewGroup.LayoutParams.MATCH_PARENT)); return tabLayout; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}", "private void createView() {\n\t\tTabWidget tWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tshowLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView = (ImageView) showLayout.getChildAt(0);\r\n\t\tTextView textView = (TextView) showLayout.getChildAt(1);\r\n\t\timageView.setImageResource(R.drawable.main_selector);\r\n\t\ttextView.setText(R.string.show);\r\n\r\n\t\taddLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView1 = (ImageView) addLayout.getChildAt(0);\r\n\t\tTextView textView1 = (TextView) addLayout.getChildAt(1);\r\n\t\timageView1.setImageResource(R.drawable.add_selector);\r\n\t\ttextView1.setText(R.string.add_record);\r\n\r\n\t\tchartLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView2 = (ImageView) chartLayout.getChildAt(0);\r\n\t\tTextView textView2 = (TextView) chartLayout.getChildAt(1);\r\n\t\timageView2.setImageResource(R.drawable.chart_selector);\r\n\t\ttextView2.setText(R.string.chart_show);\r\n\t}", "private void setupTabLayout() {\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n });\n tabLayout.getTabAt(0).select();\n View root = tabLayout.getChildAt(0);\n //create divider between the tabs\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColorFilter(0xffff0000, PorterDuff.Mode.MULTIPLY);\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n }", "private void layoutTabs() {\n\tJTabbedPane tabs = new JTabbedPane();\n\ttabs.add(\"MAIN MENU\", mainMenu);\n\ttabs.add(\"LEVEL EDITOR\", levelEditor);\n\tthis.getContentPane().add(tabs);\n }", "private VTabSheet initTabLayout() {\r\n VTabSheet tabs = new VTabSheet();\r\n Map<Component, Integer> tabComponentMap = new HashMap<Component, Integer>();\r\n Binder<Report> binder = new Binder<>(Report.class);\r\n fireEventTypeComponent = new FireEventTypeDataTab(report,userNeedToPrepare, binder, tabComponentMap);\r\n boolean basicEditRight = !report.getStatus().equals(ReportStatus.APPROVED) && (organizationIsCreator || userNeedToPrepare);\r\n tabs.addTab(getTranslation(\"reportView.tab.basicData.label\"), new ReportBasicDataTab(report, binder, basicEditRight, tabComponentMap, addressServiceRef.get(), this));\r\n tabs.addTab(getTranslation(\"reportView.tab.forcesData.label\"), new ReportForcesTab(report, userNeedToPrepare, organizationServiceRef.get(), vechileServiceRef.get(), reportServiceRef.get()));\r\n fireEventTab = tabs.addTab(getTranslation(\"reportView.tab.fireEventData.label\"), fireEventTypeComponent);\r\n tabs.addTab(getTranslation(\"reportView.tab.authorizationData.label\"), new ReportAuthorizationTab(report, binder, userNeedToPrepare, (userNeedToPrepare || userNeedToApprove), tabs, tabComponentMap, organizationServiceRef.get(), reportServiceRef.get(), notificationServiceRef.get()));\r\n return tabs;\r\n }", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootTabControl = new JTabbedPane();\n panel1.add(rootTabControl, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n }", "private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }", "protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}", "private void setTabLayout() {\n View view = LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n TextView title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n ImageView imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.MOVIES);\n imgIcon.setImageResource(R.mipmap.ic_home);\n mTabLayout.getTabAt(0).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n count = (TextView) view.findViewById(R.id.item_tablayout_count_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.FAVOURITE);\n imgIcon.setImageResource(R.mipmap.ic_favorite);\n count.setVisibility(View.VISIBLE);\n mTabLayout.getTabAt(1).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.SETTINGS);\n imgIcon.setImageResource(R.mipmap.ic_settings);\n mTabLayout.getTabAt(2).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.ABOUT);\n imgIcon.setImageResource(R.mipmap.ic_info);\n mTabLayout.getTabAt(3).setCustomView(view);\n }", "private void createTabFolder() {\r\n\t\tGridData gridData1 = new GridData();\r\n\t\tgridData1.grabExcessHorizontalSpace = true;\r\n\t\tgridData1.heightHint = 500;\r\n\t\tgridData1.grabExcessVerticalSpace = true;\r\n\t\tgridData1.verticalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;\r\n\t\tgridData1.widthHint = 600;\r\n\t\ttabFolder = new TabFolder(sShell, SWT.NONE);\r\n\t\ttabFolder.setLayoutData(gridData1);\r\n\t\tcreateCompositeRoomMange();\r\n\t\tcreateCompositeGoodsMange();\r\n\t\tcreateCompositeStaffMange();\r\n\t\tcreateCompositeUserMange();\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"房间管理\");\r\n\t\ttabItem.setControl(compositeRoomMange);\r\n\t\tTabItem tabItem1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem1.setText(\"商品管理\");\r\n\t\ttabItem1.setControl(compositeGoodsMange);\r\n\t\tTabItem tabItem2 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem2.setText(\"员工管理\");\r\n\t\ttabItem2.setControl(compositeStaffMange);\r\n\t\tTabItem tabItem3 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem3.setText(\"系统用户管理\");\r\n\t\ttabItem3.setControl(compositeUserMange);\r\n\t}", "private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = tabbedPane.getToolTipTextAt(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (currentFile.isEmpty()) {\t//file not yet saved\r\n\t\t\t\tcurrentFile = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetTitle(currentFile + \" - JNotepad++\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJTextArea current = getSelectedTextArea();\r\n\t\t\tif (current == null) return;\r\n\t\t\tCaretListener[] listeners = current.getCaretListeners();\r\n\t\t\tlisteners[0].caretUpdate(new CaretEvent(current) {\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Serial UID.\r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getMark() {\r\n\t\t\t\t\treturn 0;\t//not used\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getDot() {\r\n\t\t\t\t\treturn current.getCaretPosition();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tcreateSingleTab(null, null);\r\n\t\tgetContentPane().add(tabbedPane, BorderLayout.CENTER);\t\r\n\t}", "private void createTabsDiv() {\n tabsDiv = new Block(Block.Div, \"id='tabs'\");\n page.add(tabsDiv);\n }", "private void createTabs(){\n canvasPanel = new JPanel();\n canvasPanel.setLayout(new BorderLayout());\n canvasPanel.add(mCanvas, BorderLayout.CENTER);\n canvasPanel.setMinimumSize(new Dimension(100,50));\n \n // Create the options and properties panel\n optionPanel = new JPanel();\n optionPanel.setLayout(new FlowLayout());\n\n // Set the size\n optionPanel.setMinimumSize(new Dimension(30,30));\t\n optionPanel.setPreferredSize(new Dimension(200,10));\n\n // Create the log area\n mLogArea = new JTextArea(5,20);\n mLogArea.setMargin(new Insets(5,5,5,5));\n mLogArea.setEditable(false);\n JScrollPane logScrollPane = new JScrollPane(mLogArea);\n \n // Das SplitPanel wird in optionPanel (links) und canvasPanel (rechts) unterteilt\n JSplitPane split = new JSplitPane();\n split.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n split.setLeftComponent(canvasPanel);\n split.setRightComponent(optionPanel);\n \n JSplitPane splitLog = new JSplitPane();\n splitLog.setOrientation(JSplitPane.VERTICAL_SPLIT);\n splitLog.setBottomComponent(logScrollPane);\n splitLog.setTopComponent(split);\n splitLog.setResizeWeight(1);\n \n mMainFrame.add(splitLog, BorderLayout.CENTER); \n }", "private void setupTab() {\n setLayout(new BorderLayout());\n JSplitPane mainSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);\n mainSplit.setDividerLocation(160);\n mainSplit.setBorder(BorderFactory.createEmptyBorder());\n\n // set up the MBean tree panel (left pane)\n tree = new XTree(this);\n tree.setCellRenderer(new XTreeRenderer());\n tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\n tree.addTreeSelectionListener(this);\n tree.addTreeWillExpandListener(this);\n tree.addMouseListener(ml);\n JScrollPane theScrollPane = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n JPanel treePanel = new JPanel(new BorderLayout());\n treePanel.add(theScrollPane, BorderLayout.CENTER);\n mainSplit.add(treePanel, JSplitPane.LEFT, 0);\n\n // set up the MBean sheet panel (right pane)\n viewer = new XDataViewer(this);\n sheet = new XSheet(this);\n mainSplit.add(sheet, JSplitPane.RIGHT, 0);\n\n add(mainSplit);\n }", "private void setupTabs() {\n }", "private void createContents() {\n shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);\n shell.setSize(FORM_WIDTH, 700);\n shell.setText(getText());\n shell.setLayout(new GridLayout(1, false));\n\n TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n // STRUCTURE PARAMETERS\n\n TabItem tbtmStructure = new TabItem(tabFolder, SWT.NONE);\n tbtmStructure.setText(\"Structure\");\n\n Composite grpStructure = new Composite(tabFolder, SWT.NONE);\n tbtmStructure.setControl(grpStructure);\n grpStructure.setLayout(TAB_GROUP_LAYOUT);\n grpStructure.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n ParmDialogText.load(grpStructure, parms, \"meta\");\n ParmDialogText.load(grpStructure, parms, \"col\");\n ParmDialogText.load(grpStructure, parms, \"id\");\n ParmDialogChoices.load(grpStructure, parms, \"init\", Activation.values());\n ParmDialogChoices.load(grpStructure, parms, \"activation\", Activation.values());\n ParmDialogFlag.load(grpStructure, parms, \"raw\");\n ParmDialogFlag.load(grpStructure, parms, \"batch\");\n ParmDialogGroup cnn = ParmDialogText.load(grpStructure, parms, \"cnn\");\n ParmDialogGroup filters = ParmDialogText.load(grpStructure, parms, \"filters\");\n ParmDialogGroup strides = ParmDialogText.load(grpStructure, parms, \"strides\");\n ParmDialogGroup subs = ParmDialogText.load(grpStructure, parms, \"sub\");\n if (cnn != null) {\n if (filters != null) cnn.setGrouped(filters);\n if (strides != null) cnn.setGrouped(strides);\n if (subs != null) cnn.setGrouped(subs);\n }\n ParmDialogText.load(grpStructure, parms, \"lstm\");\n ParmDialogGroup wGroup = ParmDialogText.load(grpStructure, parms, \"widths\");\n ParmDialogGroup bGroup = ParmDialogText.load(grpStructure, parms, \"balanced\");\n if (bGroup != null && wGroup != null) {\n wGroup.setExclusive(bGroup);\n bGroup.setExclusive(wGroup);\n }\n\n // SEARCH CONTROL PARAMETERS\n\n TabItem tbtmSearch = new TabItem(tabFolder, SWT.NONE);\n tbtmSearch.setText(\"Training\");\n\n ScrolledComposite grpSearch0 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);\n grpSearch0.setLayout(new FillLayout());\n grpSearch0.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n tbtmSearch.setControl(grpSearch0);\n Composite grpSearch = new Composite(grpSearch0, SWT.NONE);\n grpSearch0.setContent(grpSearch);\n grpSearch.setLayout(TAB_GROUP_LAYOUT);\n grpSearch.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n Enum<?>[] preferTypes = (this.modelType == TrainingProcessor.Type.CLASS ? RunStats.OptimizationType.values()\n : RunStats.RegressionType.values());\n ParmDialogChoices.load(grpSearch, parms, \"prefer\", preferTypes);\n ParmDialogChoices.load(grpSearch, parms, \"method\", Trainer.Type.values());\n ParmDialogText.load(grpSearch, parms, \"bound\");\n ParmDialogChoices.load(grpSearch, parms, \"lossFun\", LossFunctionType.values());\n ParmDialogText.load(grpSearch, parms, \"weights\");\n ParmDialogText.load(grpSearch, parms, \"iter\");\n ParmDialogText.load(grpSearch, parms, \"batchSize\");\n ParmDialogText.load(grpSearch, parms, \"testSize\");\n ParmDialogText.load(grpSearch, parms, \"maxBatches\");\n ParmDialogText.load(grpSearch, parms, \"earlyStop\");\n ParmDialogChoices.load(grpSearch, parms, \"regMode\", Regularization.Mode.values());\n ParmDialogText.load(grpSearch, parms, \"regFactor\");\n ParmDialogText.load(grpSearch, parms, \"seed\");\n ParmDialogChoices.load(grpSearch, parms, \"start\", WeightInit.values());\n ParmDialogChoices.load(grpSearch, parms, \"gradNorm\", GradientNormalization.values());\n ParmDialogChoices.load(grpSearch, parms, \"updater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"learnRate\");\n ParmDialogChoices.load(grpSearch, parms, \"bUpdater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"updateRate\");\n\n grpSearch.setSize(grpSearch.computeSize(FORM_WIDTH - 50, SWT.DEFAULT));\n\n // BOTTOM BUTTON BAR\n\n Composite grpButtonBar = new Composite(shell, SWT.NONE);\n grpButtonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n grpButtonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n Button btnSave = new Button(grpButtonBar, SWT.NONE);\n btnSave.setText(\"Save\");\n btnSave.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n Button btnClose = new Button(grpButtonBar, SWT.NONE);\n btnClose.setText(\"Cancel\");\n btnClose.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n shell.close();\n }\n });\n\n Button btnOK = new Button(grpButtonBar, SWT.NONE);\n btnOK.setText(\"Save and Close\");\n btnOK.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n shell.close();\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n }", "@AutoGenerated\n\tprivate HorizontalLayout buildHorizontalLayoutAbas() {\n\t\tHorizontalLayout horizontalLayout = new HorizontalLayout();\n\t\thorizontalLayout.setImmediate(false);\n\t\thorizontalLayout.setWidth(AttrDim.FORM_COM_SINGLE_WIDTH);\n\t\thorizontalLayout.setHeight(\"-1px\");\n\t\thorizontalLayout.setMargin(false);\n\t\thorizontalLayout.setSpacing(true);\n\n\t\tabas = new OrdemFormTabView();\n\t\thorizontalLayout.addComponent(abas);\n\n\t\treturn horizontalLayout;\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setTransparentStatus();\n setContentView(R.layout.activity_login);\n ButterKnife.bind(this);\n\n mTabLayout.addTab(mTabLayout.newTab().setText(\"Email\"), true);\n mTabLayout.addTab(mTabLayout.newTab().setText(\"Phone\"));\n int dp20 = ScreenUtil.convertDpToPx(20, this);\n for (int i = 0; i < mTabLayout.getTabCount(); i++) {\n View tab = ((ViewGroup)mTabLayout.getChildAt(0)).getChildAt(i);\n ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) tab.getLayoutParams();\n lp.setMargins(dp20, 0, dp20, 0);\n tab.requestLayout();\n }\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tfinal TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\r\n\t\ttabFolder.setToolTipText(\"\");\r\n\t\t\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"欢迎使用\");\r\n\t\t\r\n\t\tTabItem tabItem_1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem_1.setText(\"员工查询\");\r\n\t\t\r\n\t\tMenu menu = new Menu(shell, SWT.BAR);\r\n\t\tshell.setMenuBar(menu);\r\n\t\t\r\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\r\n\t\tmenuItem.setText(\"系统管理\");\r\n\t\t\r\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.CASCADE);\r\n\t\tmenuItem_1.setText(\"员工管理\");\r\n\t\t\r\n\t\tMenu menu_1 = new Menu(menuItem_1);\r\n\t\tmenuItem_1.setMenu(menu_1);\r\n\t\t\r\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\r\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tTabItem tbtmNewItem = new TabItem(tabFolder,SWT.NONE);\r\n\t\t\t\ttbtmNewItem.setText(\"员工查询\");\r\n\t\t\t\t//创建自定义组件\r\n\t\t\t\tEmpQueryCmp eqc = new EmpQueryCmp(tabFolder, SWT.NONE);\r\n\t\t\t\t//设置标签显示的自定义组件\r\n\t\t\t\ttbtmNewItem.setControl(eqc);\r\n\t\t\t\t\r\n\t\t\t\t//选中当前标签页\r\n\t\t\t\ttabFolder.setSelection(tbtmNewItem);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tmenuItem_2.setText(\"员工查询\");\r\n\r\n\t}", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));\n CellConstraints cc = new CellConstraints();\n panel1.add(panel2, cc.xy(1, 3));\n saveButton = new JButton();\n this.$$$loadButtonText$$$(saveButton, ResourceBundle.getBundle(\"bundles/button\").getString(\"Save\"));\n panel2.add(saveButton);\n tabbedPane = new JTabbedPane();\n panel1.add(tabbedPane, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\n final JScrollPane scrollPane1 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"countryBorder\"), scrollPane1);\n countryBorderTable = new JTable();\n scrollPane1.setViewportView(countryBorderTable);\n final JScrollPane scrollPane2 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"provinceBorder_title\"), scrollPane2);\n provinceBorderTable = new JTable();\n provinceBorderTable.setToolTipText(\"\");\n scrollPane2.setViewportView(provinceBorderTable);\n }", "public CreateTab(PetriDishApp app) {\r\n\t\tsetText(\"Create\");\r\n\t\tsetClosable(false);\r\n\r\n\t\t// organized in a single VBox\r\n\t\tVBox createTabBox = new VBox();\r\n\t\tcreateTabBox.setPadding(new Insets(10, 5, 10, 5));\r\n\t\tcreateTabBox.setSpacing(10);\r\n\t\tcreateTabBox.setAlignment(Pos.TOP_CENTER);\r\n\t\tsetContent(createTabBox);\r\n\t\t// done setting up box\r\n\r\n\t\t// organized into HBoxes, with separators\r\n\t\tcreateTabBox.getChildren().add(new Separator());\r\n\t\t// each section labeled\r\n\t\tcreateTabBox.getChildren().add(new Label(\"New Simulation Size\"));\r\n\r\n\t\tHBox topBox = new HBox();\r\n\t\tcreateTabBox.getChildren().add(topBox);\r\n\t\ttopBox.setSpacing(10);\r\n\t\ttopBox.setAlignment(Pos.CENTER_LEFT);\r\n\r\n\t\tcreateTabBox.getChildren().add(new Separator());\r\n\t\tcreateTabBox.getChildren().add(new Label(\"New Simulation Cell Pops\"));\r\n\r\n\t\tHBox secondBox = new HBox();\r\n\t\tcreateTabBox.getChildren().add(secondBox);\r\n\t\tsecondBox.setSpacing(10);\r\n\t\tsecondBox.setAlignment(Pos.CENTER_LEFT);\r\n\r\n\t\tcreateTabBox.getChildren().add(new Separator());\r\n\t\t// finished setting up organization\r\n\r\n\t\t// begin adding GUI elements to their HBoxes\r\n\r\n\t\t// width input box\r\n\t\tBoundedIntField simDimWidthMsg = new BoundedIntField(PetriDishApp.MIN_PETRI_DISH_DIM,\r\n\t\t\t\tPetriDishApp.MAX_PETRI_DISH_DIM);\r\n\t\tsimDimWidthMsg.setMaxWidth(75);\r\n\r\n\t\tsimDimWidthMsg.integerProperty().bindBidirectional(app.newSimulationWidth);\r\n\r\n\t\t// height input box\r\n\t\tBoundedIntField simDimHeightMsg = new BoundedIntField(PetriDishApp.MIN_PETRI_DISH_DIM,\r\n\t\t\t\tPetriDishApp.MAX_PETRI_DISH_DIM);\r\n\t\tsimDimHeightMsg.setMaxWidth(75);\r\n\r\n\t\tsimDimHeightMsg.integerProperty().bindBidirectional(app.newSimulationHeight);\r\n\r\n\t\ttopBox.getChildren().add(simDimWidthMsg);\r\n\t\ttopBox.getChildren().add(simDimHeightMsg);\r\n\r\n\t\t// input fields for starting cell populations\r\n\t\t\r\n\t\t// agar\r\n\t\tBoundedIntField simAgarPopMsg = new BoundedIntField();\r\n\t\tsimAgarPopMsg.setMaxWidth(50);\r\n\r\n\t\tsimAgarPopMsg.integerProperty().bindBidirectional(app.newSimulationAgarPop);\r\n\t\t\r\n\t\t// grazer\r\n\t\tBoundedIntField simGrazerPopMsg = new BoundedIntField();\r\n\t\tsimGrazerPopMsg.setMaxWidth(50);\r\n\r\n\t\tsimGrazerPopMsg.integerProperty().bindBidirectional(app.newSimulationGrazerPop);\r\n\t\t\r\n\t\t// pred\r\n\t\tBoundedIntField simPredPopMsg = new BoundedIntField();\r\n\t\tsimPredPopMsg.setMaxWidth(50);\r\n\r\n\t\tsimPredPopMsg.integerProperty().bindBidirectional(app.newSimulationPredPop);\r\n\t\t\r\n\t\t// plant\r\n\t\tBoundedIntField simPlantPopMsg = new BoundedIntField();\r\n\t\tsimPlantPopMsg.setMaxWidth(50);\r\n\r\n\t\tsimPlantPopMsg.integerProperty().bindBidirectional(app.newSimulationPlantPop);\r\n\t\t\r\n\t\t// add those input boxes to the second box\r\n\t\t// with their own labels in VBoxes\r\n\t\t\r\n\t\tArrayList<VBox> labelContainers = new ArrayList<VBox>();\r\n\t\t\r\n\t\t// make the boxes\r\n\t\t\r\n\t\tVBox simAgarPopMsgContainer = new VBox();\r\n\t\tVBox simGrazerPopMsgContainer = new VBox();\r\n\t\tVBox simPredPopMsgContainer = new VBox();\r\n\t\tVBox simPlantPopMsgContainer = new VBox();\r\n\t\t\r\n\t\t// configure the boxes\r\n\t\t\r\n\t\tlabelContainers.add(simAgarPopMsgContainer);\r\n\t\tlabelContainers.add(simGrazerPopMsgContainer);\r\n\t\tlabelContainers.add(simPredPopMsgContainer);\r\n\t\tlabelContainers.add(simPlantPopMsgContainer);\r\n\t\t\r\n\t\tfor (VBox v : labelContainers) {\r\n\t\t\tv.setPadding(new Insets(10, 5, 10, 5));\r\n\t\t\tv.setSpacing(10);\r\n\t\t\tv.setAlignment(Pos.TOP_CENTER);\r\n\t\t}\r\n\t\t\r\n\t\tsimAgarPopMsgContainer.getChildren().add(new Label(\"Agar\"));\r\n\t\tsimAgarPopMsgContainer.getChildren().add(simAgarPopMsg);\r\n\t\t\r\n\t\tsimGrazerPopMsgContainer.getChildren().add(new Label(\"Grazer\"));\r\n\t\tsimGrazerPopMsgContainer.getChildren().add(simGrazerPopMsg);\r\n\t\t\r\n\t\tsimPredPopMsgContainer.getChildren().add(new Label(\"Predator\"));\r\n\t\tsimPredPopMsgContainer.getChildren().add(simPredPopMsg);\r\n\t\t\r\n\t\tsimPlantPopMsgContainer.getChildren().add(new Label(\"Plant\"));\r\n\t\tsimPlantPopMsgContainer.getChildren().add(simPlantPopMsg);\r\n\t\t\r\n\t\tfor (VBox v : labelContainers) {\r\n\t\t\tsecondBox.getChildren().add(v);\r\n\t\t}\r\n\t\t\r\n\t}", "public void createLayout() {\n\t\tpersons = createPersonGuessPanel();\t\t\n\t\tweapons = createWeaponGuessPanel();\n\t\trooms = createRoomGuessPanel();\n\t\t\n\t\tpersonCheckList = createPeoplePanel();\n\t\tweaponCheckList =createWeaponsPanel(); \n\t\troomCheckList = createRoomsPanel();\n\t\t\n\t\tJPanel completed = new JPanel();\n\t\tcompleted.setLayout(new GridLayout(3, 2));\n\t\tadd(completed, BorderLayout.CENTER);\n\t\tcompleted.add(personCheckList);\n\t\tcompleted.add(persons);\n\t\tcompleted.add(weaponCheckList);\n\t\tcompleted.add(weapons);\n\t\tcompleted.add(roomCheckList);\n\t\tcompleted.add(rooms);\n\t}", "private void addTabs() {\n TabsPagerAdapter tabsAdapter = new TabsPagerAdapter(getSupportFragmentManager());\n viewPager = (ViewPager) findViewById(R.id.pager);\n viewPager.setAdapter(tabsAdapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabLayout);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n\n tabLayout.getTabAt(0).setIcon(R.drawable.connect);\n tabLayout.getTabAt(1).setIcon(R.drawable.speak);\n tabLayout.getTabAt(2).setIcon(R.drawable.walk);\n tabLayout.getTabAt(3).setIcon(R.drawable.camera);\n tabLayout.getTabAt(4).setIcon(R.drawable.moves);\n }", "private void createNetworksPanel() {\n\t\ttabs = new ArrayList<>();\n\t\tnetworksPanel = new JTabbedPane();\n\t\tthis.add(networksPanel, BorderLayout.CENTER);\n\t}", "TabbelPane() {\r\n\t\t\tpanelDB = new JPanelCluster(\"mine\", new EventFromDb());\r\n\t\t\tpanelFile = new JPanelCluster(\"store from file\", new EventFromFile());\r\n\t\t\tImageIcon icon = new ImageIcon(\"database.png\");\r\n\t\t\tImage image = icon.getImage();\r\n\t\t\tImage newimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"DB\", icon, panelDB);\r\n\t\t\ticon = new ImageIcon(\"file.png\");\r\n\t\t\timage = icon.getImage();\r\n\t\t\tnewimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"file\", icon, panelFile);\r\n\t\t\tsetVisible(true);\r\n\t\t}", "public void createPage3(){\n tabAbout = new JPanel();\n tabAbout.setLayout( null );\n \n\n JLabel lblGuidText_syn = new JLabel( \"<html><h1>Useless Dictionary</h1><p>Sulochana Kodituwakku<br>2014/CS/066<br>14000662</p></html>\" ); //html can be used in JLables\n lblGuidText_syn.setHorizontalAlignment(JLabel.LEFT);\n lblGuidText_syn.setVerticalAlignment(JLabel.TOP);\n lblGuidText_syn.setBounds( 10, 200, 750, 380 );\n tabAbout.add( lblGuidText_syn );\n \n btnImport.setBounds(10,10,125,25);\n tabAbout.add(btnImport);\n \n \n //set conlick event for Import button\n event_buttonImport ebd = new event_buttonImport();\n btnImport.addActionListener(ebd);\n }", "private void $$$setupUI$$$() {\n root = new JPanel();\n root.setLayout(new GridLayoutManager(2, 6, new Insets(8, 8, 8, 8), -1, -1));\n groupTabs = new JTabbedPane();\n root.add(groupTabs, new GridConstraints(1, 0, 1, 6, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n deviceName = new JLabel();\n deviceName.setFont(new Font(deviceName.getFont().getName(), deviceName.getFont().getStyle(), deviceName.getFont().getSize()));\n deviceName.setText(\"Label\");\n root.add(deviceName, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n root.add(spacer1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n saveButton = new JButton();\n saveButton.setEnabled(false);\n saveButton.setText(\"Save\");\n root.add(saveButton, new GridConstraints(0, 4, 1, 2, GridConstraints.ANCHOR_SOUTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n loading = new JProgressBar();\n loading.setBorderPainted(true);\n loading.setEnabled(true);\n loading.setIndeterminate(true);\n loading.setValue(50);\n root.add(loading, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 1, false));\n cancelButton = new JButton();\n cancelButton.setText(\"Cancel\");\n root.add(cancelButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}", "public TabPaneLike(TabSide side, TabLabelCreator tabLabelCreator){\n BorderPane bp = new BorderPane();\n\n this.tabLabelCreator = tabLabelCreator;\n\n getChildren().add(bp);\n\n bp.maxWidthProperty().bind(widthProperty());\n bp.minWidthProperty().bind(widthProperty());\n bp.prefWidthProperty().bind(widthProperty());\n\n bp.maxHeightProperty().bind(heightProperty());\n bp.minHeightProperty().bind(heightProperty());\n bp.prefHeightProperty().bind(heightProperty());\n\n\n tabContent = new StackPane();\n tabs = new LinkedList<>();\n\n switch(side){\n case TOP -> {\n nameTab = new HBox();\n tabLabelCreator.setHeights(nameTab);\n bp.setTop(nameTab);\n }\n case BOTTOM -> {\n nameTab = new HBox();\n tabLabelCreator.setHeights(nameTab);\n bp.setBottom(nameTab);\n }\n case RIGHT -> {\n nameTab = new VBox();\n tabLabelCreator.setWidths(nameTab);\n bp.setRight(nameTab);\n }\n case LEFT -> {\n nameTab = new VBox();\n tabLabelCreator.setWidths(nameTab);\n bp.setLeft(nameTab);\n }\n default -> nameTab = new VBox();\n\n }\n\n bp.setCenter(tabContent);\n\n nameTab.setStyle(\"-fx-background-color: lightgrey\");\n }", "void createGUI(JFrame f) {\n TabbedSplitPanel centrePanel = new TabbedSplitPanel(new JPanel(),TabbedSplitPanel.RIGHT);\n centrePanel.addMenuPanel(new MenuPanel(\"Right Menu\", new JTextArea(\"Menu panel for right tabbed split panel\"),true));\n\n TabbedSplitPanel bottomPanel = new TabbedSplitPanel(centrePanel,SplitPanel.BOTTOM);\n MenuPanel mainBottomMenuPanel = new MenuPanel(\"Main bottom menu\", new JTextArea(\"Contents of bottom menu\"), true);\n bottomPanel.addMenuPanel(mainBottomMenuPanel);\n\n // A panel with a button in it\n JPanel panel = createAMenuView();\n\n TabbedSplitPanel leftPanel = new TabbedSplitPanel(bottomPanel, SplitPanel.LEFT);\n leftPanel.addMenuPanel(new MenuPanel(\"Left1\", panel, true));\n leftPanel.addMenuPanel(new MenuPanel(\"Left2\", new JTextArea(\"Left 2 text area\"),true));\n\n // A nested TabbedSplitPanel\n TabbedSplitPanel nestedPanel = new TabbedSplitPanel(new JTextArea(\"Panel Containing a Nested panel\"),SplitPanel.BOTTOM);\n nestedPanel.addMenuPanel(new MenuPanel(\"Nested bottom menu\",new JTextArea(\"Nested menu panel\"),true));\n centrePanel.addMenuPanel(new MenuPanel(\"Nested\",nestedPanel,true));\n\n f.setContentPane(leftPanel);\n\n }", "public KonTabbedPane() {\n // Initialize the ArrayList\n graphInterfaces = new ArrayList<DrawingLibraryInterface>();\n\n DirectedGraph<String, DefaultEdge> graph = CreateTestGraph();\n\n /*\n * Adds a tab\n */\n DrawingLibraryInterface<String, DefaultEdge> graphInterface =\n DrawingLibraryFactory.createNewInterface(graph);\n \n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n addTab(\"First Tab\", graphInterface.getPanel());\n\n /*\n * Adds a tab\n */\n graphInterface = DrawingLibraryFactory.createNewInterface(graph);\n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n\n graphInterface.getGraphManipulationInterface().highlightNode(graph\n .vertexSet().iterator().next(), true);\n\n addTab(\"Second Tab\", graphInterface.getPanel());\n }", "@Override\r\n\tprotected void initPage() {\n\t\t\r\n\t\t\r\n\t\tJPanel paneLabel = new JPanel();\r\n\t\t//JPanel panelTabs = new JPanel();\r\n\t\t\r\n\t\t\r\n\t\t//pack.setVisible(false);\r\n\r\n\t\t//setlay out\r\n\t\t//panelTabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add label to label panel\r\n\t\tpaneLabel.add(new JLabel(\"Please select Objects To export\"));\r\n\t\t//tabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add tabs\r\n\t\ttabs.addTab(\"Packages\", null, pack, \"Packages\");\r\n\t\ttabs.addTab(\"Functions\", null, fun, \"Functions\");\r\n\t\ttabs.addTab(\"Procedures\", null, proc, \"Procedures\");\r\n\t\ttabs.addTab(\"Schemas\", null, sch, \"Schemas\");\r\n\t\t\r\n\t\t\r\n\t\ttabs.setTabPlacement(JTabbedPane.TOP);\r\n\t\t\r\n\t\t//add tabs to tabpanel panel\r\n\t\t//panelTabs.add(tabs);\r\n\t\t\r\n\t\t//add data tables to panels\r\n\t\tpackTbl = new JObjectTable(pack);\r\n\t\tfunTbl = new JObjectTable(fun);\r\n\t\tschTbl = new JObjectTable(sch);\r\n\t\tprocTbl = new JObjectTable(proc);\r\n\t\t\r\n\t\t//set layout\r\n\t\tsetLayout(new GridLayout(1,1));\r\n\t\t\r\n\t\t//add label & tabs to page panel\r\n\t\t//add(paneLabel, BorderLayout.NORTH);\r\n\t\t//add(panelTabs,BorderLayout.CENTER);\r\n\t\tadd(tabs);\r\n\t\t\r\n\t\t//init select all check boxes\r\n\t\tinitChecks();\r\n\t\t\r\n\t\t//add checks to panel\r\n\t\tpack.add(ckPack);\r\n\t\tfun.add(ckFun);\r\n\t\tsch.add(ckSchema);\r\n\t\tproc.add(ckProc);\r\n\t\t\r\n\t}", "private void setupLayout() {\n this.setLayout(new BorderLayout());\n\t\tthis.setupConstraints();\n\n\t\tJPanel titleAuthorFields = new JPanel(new GridBagLayout());\n\t\ttitleAuthorFields.add(Pirex.inputField(titleLabel, titleTextField, null), cTitleField);\n\t\ttitleAuthorFields.add(Pirex.inputField(authorLabel, authorTextField, null), cAuthorField);\n\n\t\tJPanel inputFields = new JPanel(new GridLayout(3, 0));\n\t\tinputFields.add(Pirex.inputField(fileLabel, fileTextField, fileBrowseButton));\n\t\tinputFields.add(Pirex.inputField(fileTypeLabel, fileTypeComboBox, null));\n\t\tinputFields.add(titleAuthorFields);\n\t\tinputFields = Pirex.borderLayoutWrap(null, null, inputFields, null, separator);\n\n\t\tJPanel leftAlignedProcessButton = Pirex.leftAlign(processButton);\n\t\tJPanel processPanel = Pirex.borderLayoutWrap(leftAlignedProcessButton, null, summaryScrollPanel, null, null);\n\t\tJPanel loadTabPanel = Pirex.borderLayoutWrap(inputFields, null, processPanel, null, null);\n\n\t\tthis.add(Pirex.withBorder(loadTabPanel), BorderLayout.CENTER);\n\n }", "public void onModuleLoad() {\n\t\tTabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);\n\t\tFlexTable ft3 = new FlexTable();\n\t\tFlexCellFormatter cf3 = ft3.getFlexCellFormatter();\n\t\tDecoratorPanel dp3 = new DecoratorPanel();\n\t\tHorizontalPanel hp = new HorizontalPanel();\n\t\tButton plusButton = new Button(\"+\");\n\t\tButton minusButton = new Button(\"-\");\n\t\tButton devideButton = new Button(\"/\");\n\t\tButton multiplyButton = new Button(\"*\");\n\t\thp.add(plusButton);\n\t\thp.add(minusButton);\n\t\thp.add(devideButton);\n\t\thp.add(multiplyButton);\n\t\tfinal TextBox l1 = new TextBox();\n\t\tfinal TextBox l2 = new TextBox();\n\t\tfinal Label wynik = new Label();\n\t\tft3.setHTML(0,0,\"Podaj pierwsza liczbe:\");\n\t\tft3.setWidget(0,1, l1);\n\t\tft3.setHTML(1,0, \"Podaj druga liczbe:\");\n\t\tft3.setWidget(1,1,l2);\n\t\tft3.setHTML(2,0, \"Wybierz operacje:\");\n\t\tft3.setWidget(2, 1, hp);\n\t\tft3.setHTML(3,0, \"Wynik\");\n\t\tft3.setWidget(3,1, wynik);\n\t\tdp3.add(ft3);\n\t\t//RootPanel.get(\"mainContainer\").add(hp);\n\t\t//pan1.add(hp);\n\t\ttabPanel.add(dp3, new HTML(\"Prosty kalkulator\"));\n\t\tfinal TextBox t1 = new TextBox();\n\t\tfinal ListBox list = new ListBox();\n\t\tlist.addItem(\"2\");\n\t\tlist.addItem(\"4\");\n\t\tlist.addItem(\"8\");\n\t\tlist.addItem(\"16\");\n\t\tfinal Label wynik10 = new Label();\n\t\tFlexTable ft = new FlexTable();\n\t\tButton przeliczButton = new Button(\"Przelicz\");\n\t\tft.setHTML(0, 0, \"Podaj liczbe w systemie 10:\");\n\t\tft.setWidget(0, 1, t1);\n\t\tft.setHTML(1, 0, \"Podaj docelowy system liczbowy:\");\n\t\tft.setWidget(1, 1, list);\n\t\tft.setHTML(2, 0, \"Wynik:\");\n\t\tft.setWidget(2, 1, wynik10);\n\t\tft.setWidget(3, 0, przeliczButton);\n\t\tFlexCellFormatter cf = ft.getFlexCellFormatter();\n\t\tDecoratorPanel dp = new DecoratorPanel();\n\t\tcf.setColSpan(3,0,2);\n\t\tcf.setHorizontalAlignment(3,0,HasHorizontalAlignment.ALIGN_CENTER);\n\t\tdp.setWidget(ft);\n\t\ttabPanel.add(dp, new HTML(\"Przeliczanie z 10 na inne\"));\n\t\tFlexTable ft2 = new FlexTable();\n\t\tFlexCellFormatter cf2 = ft2.getFlexCellFormatter();\n\t\tDecoratorPanel dp2 = new DecoratorPanel();\n\t\tfinal TextBox t2 = new TextBox();\n\t\tfinal ListBox list2 = new ListBox();\n\t\tlist2.addItem(\"2\");\n\t\tlist2.addItem(\"4\");\n\t\tlist2.addItem(\"8\");\n\t\tlist2.addItem(\"16\");\n\t\tButton przelicztoButton = new Button(\"Przelicz\");\n\t\tfinal Label wynik20 = new Label();\n\t\tft2.setHTML(0, 0, \"Podaj system w jakim zapisana jest liczba:\");\n\t\tft2.setWidget(0, 1, list2);\n\t\tft2.setHTML(1, 0, \"Podaj liczbe:\");\n\t\tft2.setWidget(1, 1, t2);\n\t\tft2.setHTML(2, 0, \"Wynik:\");\n\t\tft2.setWidget(2, 1, wynik20);\n\t\tft2.setWidget(3, 0, przelicztoButton);\n\t\tcf2.setColSpan(3,0,2);\n\t\tcf2.setHorizontalAlignment(3,0,HasHorizontalAlignment.ALIGN_CENTER);\n\t\tdp2.setWidget(ft2);\n\t\t//RootPanel.get(\"mainContainer\").add(tabPanel);\n\t\ttabPanel.add(dp2, new HTML(\"Przeliczanie do systemu 10\"));\n\t\tRootLayoutPanel.get().add(tabPanel);\n\t\tprzelicztoButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.przeliczto10(t2.getText(), Integer.parseInt(list.getItemText(list.getSelectedIndex())), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik20.setText(\" \" + result);\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}\n\t\t});\n\t\tprzeliczButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.przelicz10(Integer.parseInt(t1.getText()), Integer.parseInt(list.getItemText(list.getSelectedIndex())), new AsyncCallback<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\t\twynik10.setText(\" \" + result);\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}\n\t\t});\n\t\tplusButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.dodaj(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\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}\n\t\t});\n\t\tminusButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.odejmij(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\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}\n\t\t});\n\t\tdevideButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.dziel(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Double>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Double result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\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}\n\t\t});\n\t\tmultiplyButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.mnoz(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Double>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Double result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\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}\n\t\t});\n\t}", "@Override\r\n protected Control createContents( final Composite parent ) {\r\n TabFolder folder = new TabFolder( parent, SWT.NONE );\r\n\r\n Tab appearanceTab = new AppearanceTab( overlayStore );\r\n createTab( folder, \"Appeara&nce\", appearanceTab.createControl( folder ) );\r\n\r\n Tab syntaxTab = new SyntaxTab( overlayStore );\r\n createTab( folder, \"Synta&x\", syntaxTab.createControl( folder ) );\r\n\r\n Tab annotationsTab = new AnnotationsTab( overlayStore );\r\n createTab( folder, \"Annotation&s\", annotationsTab.createControl( folder ) );\r\n\r\n Tab typingTab = new TypingTab( overlayStore );\r\n createTab( folder, \"T&yping\", typingTab.createControl( folder ) );\r\n\r\n return folder;\r\n }", "private void setUpLayout() {\n\n this.setLayout(new GridLayout(7, 1, 40, 37));\n this.setBackground(new Color(72, 0, 0));\n this.setBorder(BorderFactory.createEmptyBorder(8, 150, 8, 150));\n }", "private void initLayoutComponents()\n {\n viewPaneWrapper = new JPanel(new CardLayout());\n viewPane = new JTabbedPane();\n crawlPane = new JPanel(new BorderLayout());\n transitionPane = new JPanel();\n searchPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n resultsPane = new BGRenderer(Color.WHITE, WINDOW_WIDTH, WINDOW_HEIGHT);\n }", "public MainFrame(){\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException | IllegalAccessException | UnsupportedLookAndFeelException | InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnbRules = 1;\n \tnbTabs = 0;\n \tbasePanel = new JPanel();\n \tbasePanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n \ttabs = new JTabbedPane(SwingConstants.TOP);\n\n \tJToolBar toolBar = new JToolBar();\n newGen = new JButton(\"Nouvelle génération\");\n newGen.addActionListener(new Listener(\"Tab\",this));\n toolBar.add(newGen);\n example = new JButton(\"Exemples\");\n example.addActionListener(new Listener(\"Example\", this));\n toolBar.add(example);\n help = new JButton(\"Aide\");\n help.addActionListener(new Listener(\"Help\",this));\n toolBar.add(help);\n\n this.setTitle(\"L-system interface\");\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tDimension windowDimension = new Dimension(Constants.INITIAL_WIDTH, Constants.INITIAL_HEIGHT);\n this.setSize(windowDimension);\n this.setLocationRelativeTo(null);\n this.add(tabs);\n this.add(toolBar, BorderLayout.NORTH);\n this.setPreferredSize(windowDimension);\n newComponent((byte)1);\n\t\trenameTabs();\n\t\tthis.setResizable(false);\n }", "protected void createContents() {\n\t\tsetText(\"Account Settings\");\n\t\tsetSize(450, 225);\n\n\t}", "private void initUI() {\n\t\tStage stage = Stage.createStage();\n\n\t\tControl formPanel = buildFormTestTab();\n\n\t\tControl cellPanel = buildCellTestTab();\n\t\t\n\t\tTabPanel tabbedPane = new TabPanel();\n\t\ttabbedPane.add(\"Form Test\", formPanel);\n\t\ttabbedPane.add(\"Cell Layout Test\", cellPanel);\n\n\t\tstage.setContent(tabbedPane);\n\t}", "private void setupTab(final View view, final String tag) {\r\n\t\tView tabview = createTabView(mTabHost.getContext(), tag);\r\n\r\n\t\tTabSpec setContent = mTabHost.newTabSpec(tag).setIndicator(tabview)\r\n\t\t\t\t.setContent(new TabContentFactory() {\r\n\t\t\t\t\tpublic View createTabContent(String tag) {\r\n\t\t\t\t\t\tView view;\r\n\t\t\t\t\t\tif (tag.contains(\"EXTENDED\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_2_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedNO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET1);\r\n\t\t\t\t\t\t\tedNIO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET2);\r\n\t\t\t\t\t\t\tedNP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET3);\r\n\t\t\t\t\t\t\tedNIP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET4);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tedNO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNP.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIP.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tNO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB1);\r\n\t\t\t\t\t\t\tNIO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB2);\r\n\t\t\t\t\t\t\tNP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB3);\r\n\t\t\t\t\t\t\tNIP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB4);\r\n\t\t\t\t\t\t\tNO.setEnabled(false); \r\n\t\t\t\t\t\t\tNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tNP.setEnabled(false);\r\n\t\t\t\t\t\t\tNIP.setEnabled(false);\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\textended = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB0);\r\n\t\t\t\t\t\t\textended.setOnClickListener(S3R4Listener2);\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} else if (tag.contains(\"CUSTOM\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_3_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_1_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedlevels = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET1);\r\n\t\t\t\t\t\t\tedSons = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET2);\r\n\t\t\t\t\t\t\tedlevel = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET3);\r\n\t\t\t\t\t\t\tedpruduct = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET4);\r\n\t\t\t\t\t\t\tedcampaign = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET5);\r\n\t\t\t\t\t\t\tedadd = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET6);\r\n\t\t\t\t\t\t\tedlevels.setEnabled(false);\r\n\t\t\t\t\t\t\tedSons.setEnabled(false);\r\n\t\t\t\t\t\t\tedlevel.setEnabled(false);\r\n\t\t\t\t\t\t\tedpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tedcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tedadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlevel= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB3);\r\n\t\t\t\t\t\t\tpruduct= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB4);\r\n\t\t\t\t\t\t\tcampaign= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB5);\r\n\t\t\t\t\t\t\tadd= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB6);\r\n\t\t\t\t\t\t\tlevel.setEnabled(false); \r\n\t\t\t\t\t\t\tpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\tStructure = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB1);\r\n\t\t\t\t\t\t\tRules = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB2);\r\n\t\t\t\t\t\t\tStructure.setOnClickListener(S3R4Listener);\r\n\t\t\t\t\t\t\tRules.setOnClickListener(S3R4Listener);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn view;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\tmTabHost.addTab(setContent);\r\n\r\n\t}", "private void layout() {\n\n\n _abortButton= makeAbortButton();\n _abortButton.addStyleName(\"download-group-abort\");\n _content.addStyleName(\"download-group-content\");\n _detailUI= new DetailUIInfo[getPartCount(_monItem)];\n layoutDetails();\n }", "@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n\n return mainLayout;\n }", "private void initStandingTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n standingsTab = new Tab();\n standingsWorkspacePane = new VBox();\n standingsWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n // ADD PAGE LABEL & BUTTON\n Label standing = new Label();\n standing = initChildLabel(standingsWorkspacePane, DraftKit_PropertyType.STANDINGS_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.STANDINGS_ICON);\n Image buttonImage = new Image(imagePath);\n standingsTab.setGraphic(new ImageView(buttonImage));\n \n // CREATE THE STANDINGS TABLE\n standingTable = new TableView();\n\n teamName = new TableColumn<>(\"Team Name\");\n teamName.setCellValueFactory(new PropertyValueFactory<>(\"TeamName\"));\n pNeeded = new TableColumn<>(\"Players Needed\");\n pNeeded.setCellValueFactory(new PropertyValueFactory<>(\"PlayersNeeded\"));\n moneyLeft = new TableColumn<>(\"$ Left\");\n moneyLeft.setCellValueFactory(new PropertyValueFactory<>(\"MoneyLeft\"));\n moneyPP = new TableColumn<>(\"$ PP\");\n moneyPP.setCellValueFactory(new PropertyValueFactory<>(\"MoneyPP\"));\n rEst = new TableColumn<>(\"R\");\n rEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalR\"));\n hrEst = new TableColumn<>(\"HR\");\n hrEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalHR\"));\n rbiEst = new TableColumn<>(\"RBI\");\n rbiEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalRBI\"));\n sbEst = new TableColumn<>(\"SB\");\n sbEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalSB\"));\n baEst = new TableColumn<>(\"BA\");\n baEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalBA\"));\n wEst = new TableColumn<>(\"W\");\n wEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalW\"));\n svEst = new TableColumn<>(\"SV\");\n svEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalSV\"));\n kEst = new TableColumn<>(\"K\");\n kEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalK\"));\n eraEst = new TableColumn<>(\"ERA\");\n eraEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalERA\"));\n whipEst = new TableColumn<>(\"WHIP\");\n whipEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalWHIP\"));\n totalPoints = new TableColumn<>(\"Total Points\");\n totalPoints.setCellValueFactory(new PropertyValueFactory<>(\"TotalPoints\"));\n \n standingTable.getColumns().addAll(teamName, pNeeded, moneyLeft, moneyPP, rEst,\n hrEst, rbiEst, sbEst, baEst, wEst, svEst, kEst, eraEst, whipEst, totalPoints);\n \n standingTable = resetStandingTable(dataManager.getDraft().getFantasyTeams());\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Fantasy Standings Page\");\n standingsTab.setTooltip(t);\n \n // PUT IN TAB PANE\n standingsWorkspacePane.getChildren().add(standingTable);\n standingsTab.setContent(standingsWorkspacePane);\n mainWorkspacePane.getTabs().add(standingsTab);\n }", "public void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "public void initLayouts() {\n\t\tJPanel p_header = (JPanel) getComponentByName(\"p_header\");\n\t\tJPanel p_container = (JPanel) getComponentByName(\"p_container\");\n\t\tJPanel p_tree = (JPanel) getComponentByName(\"p_tree\");\n\t\tJPanel p_commands = (JPanel) getComponentByName(\"p_commands\");\n\t\tJPanel p_execute = (JPanel) getComponentByName(\"p_execute\");\n\t\tJPanel p_buttons = (JPanel) getComponentByName(\"p_buttons\");\n\t\tJPanel p_view = (JPanel) getComponentByName(\"p_view\");\n\t\tJPanel p_info = (JPanel) getComponentByName(\"p_info\");\n\t\tJPanel p_chooseFile = (JPanel) getComponentByName(\"p_chooseFile\");\n\t\tJButton bt_apply = (JButton) getComponentByName(\"bt_apply\");\n\t\tJButton bt_revert = (JButton) getComponentByName(\"bt_revert\");\n\t\tJTextArea ta_header = (JTextArea) getComponentByName(\"ta_header\");\n\t\tJLabel lb_icon = (JLabel) getComponentByName(\"lb_icon\");\n\t\tJLabel lb_name = (JLabel) getComponentByName(\"lb_name\");\n\t\tJTextField tf_name = (JTextField) getComponentByName(\"tf_name\");\n\n\t\tBorder etched = BorderFactory.createEtchedBorder(EtchedBorder.LOWERED);\n\n\t\tp_header.setBorder(etched);\n\t\tp_container.setBorder(etched);\n\t\tp_commands.setBorder(etched);\n\t\t// p_execute.setBorder(etched);\n\t\t// p_view.setBorder(etched);\n\t\t// p_buttons.setBorder(etched);\n\n\t\tp_buttons.setLayout(new FlowLayout(FlowLayout.LEFT, 25, 2));\n\t\tp_chooseFile.setLayout(new FlowLayout(FlowLayout.LEFT, 6, 1));\n\t\tp_view.setLayout(new BorderLayout(0, 0));\n\t\tp_info.setLayout(null);\n\n\t\t// GroupLayout for main JFrame\n\t\t// If you want to change this, use something like netbeans or read more\n\t\t// into group layouts\n\t\tGroupLayout groupLayout = new GroupLayout(getContentPane());\n\t\tgroupLayout\n\t\t\t\t.setHorizontalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\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\tAlignment.LEADING)\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\tgroupLayout\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_commands,\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\t225,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.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\tgroupLayout\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\tAlignment.LEADING)\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\tp_execute,\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\t957,\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\tp_container,\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\t957,\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_header,\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\t1188,\n\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.addContainerGap()));\n\t\tgroupLayout\n\t\t\t\t.setVerticalGroup(groupLayout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgroupLayout\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(p_header,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, 57,\n\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\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgroupLayout\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\tAlignment.LEADING)\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\tp_commands,\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\t603,\n\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\tgroupLayout\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_container,\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\t549,\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.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\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\tp_execute,\n\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\t48,\n\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.addContainerGap()));\n\n\t\tGroupLayout gl_p_container = new GroupLayout(p_container);\n\t\tgl_p_container\n\t\t\t\t.setHorizontalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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\tAlignment.LEADING)\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\tp_view,\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\t955,\n\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\tAlignment.TRAILING,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbt_apply)\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\tComponentPlacement.RELATED)\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\tbt_revert))\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\tgl_p_container\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.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlb_name)\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\tComponentPlacement.RELATED)\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\ttf_name,\n\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\t893,\n\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.addContainerGap()));\n\t\tgl_p_container\n\t\t\t\t.setVerticalGroup(gl_p_container\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_container\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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\tAlignment.BASELINE)\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\ttf_name,\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(lb_name))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(\n\t\t\t\t\t\t\t\t\t\t\t\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addComponent(p_view,\n\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\t466, GroupLayout.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\tComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_container\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\tAlignment.BASELINE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_revert)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(bt_apply))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap(\n\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\tShort.MAX_VALUE)));\n\t\tp_container.setLayout(gl_p_container);\n\n\t\t// GroupLayout for p_header\n\n\t\tGroupLayout gl_p_header = new GroupLayout(p_header);\n\t\tgl_p_header.setHorizontalGroup(gl_p_header.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tAlignment.TRAILING,\n\t\t\t\tgl_p_header\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(ta_header, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t1069, Short.MAX_VALUE).addGap(18)\n\t\t\t\t\t\t.addComponent(lb_icon).addGap(4)));\n\t\tgl_p_header\n\t\t\t\t.setVerticalGroup(gl_p_header\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_header\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGap(6)\n\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_header\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\tAlignment.BASELINE)\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\tta_header,\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\t44,\n\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.addComponent(lb_icon))\n\t\t\t\t\t\t\t\t\t\t.addContainerGap()));\n\t\tp_header.setLayout(gl_p_header);\n\n\t\tGroupLayout gl_p_commands = new GroupLayout(p_commands);\n\t\tgl_p_commands\n\t\t\t\t.setHorizontalGroup(gl_p_commands\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\tgl_p_commands\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.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tgl_p_commands\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\tAlignment.LEADING)\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\tp_tree,\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\t211,\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(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tp_buttons,\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.DEFAULT_SIZE,\n\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.addContainerGap()));\n\t\tgl_p_commands.setVerticalGroup(gl_p_commands.createParallelGroup(\n\t\t\t\tAlignment.LEADING).addGroup(\n\t\t\t\tgl_p_commands\n\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t.addContainerGap()\n\t\t\t\t\t\t.addComponent(p_buttons, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(p_tree, GroupLayout.DEFAULT_SIZE, 558,\n\t\t\t\t\t\t\t\tShort.MAX_VALUE).addContainerGap()));\n\t\tp_commands.setLayout(gl_p_commands);\n\n\t\tgetContentPane().setLayout(groupLayout);\n\t}", "private void initTabs() {\n\t\tmContainer.removeAllViews();\n\n\t\tif(mAdapter==null||mViewPager==null){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<mViewPager.getAdapter().getCount();i++){\n\t\t\tfinal int index=i;\n\t\t\tButton tabs= (Button) mAdapter.getView(index);\n\t\t\tLayoutParams layoutParams=new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\tlayoutParams.weight=1;\n\t\t\tmContainer.addView(tabs,layoutParams);\n\t\t\t\n\t\t\ttabs.setOnClickListener(new OnClickListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(mViewPager.getCurrentItem()==index){\n\t\t\t\t\t\tselectTab(index);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmViewPager.setCurrentItem(index, true);\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\tselectTab(0);\n\t}", "private void initialize() {\n layout = new HorizontalLayout();\n\n workspaceTabs = new TabSheet();\n\n WorkspacePanel panel = new WorkspacePanel(\"Workspace 1\");\n workspaceTabs.addTab(panel).setCaption(\"Workspace 1\");\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n\n layout.addComponent(workspaceTabs);\n\n setContent(layout);\n }", "public void init() {\n\t\ttabbed = new JTabbedPane();\n\t\ttabbed.insertTab(\"Sesion\", null, getPanelSesion(), \"Control de la sesion\", 0);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, new JPanel(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, new JPanel(), \"Control de los eventos\", 2);\n\t\ttabbed.insertTab(\"Control de Agentes\", null, getPanelAgentes(), \"Control de los agentes\", 3);\n\t\tgetContentPane().add(tabbed);\n\t\ttabbed.setEnabledAt(1, false);\n\t\ttabbed.setEnabledAt(2, false);\n\t\tsetSize(new Dimension(800, 600));\n\t}", "public void layout() {\n TitleLayout ll1 = new TitleLayout(getContext(), sourceIconView, titleTextView);\n\n // All items in ll1 are vertically centered\n ll1.setGravity(Gravity.CENTER_VERTICAL);\n ll1.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n ll1.addView(sourceIconView);\n ll1.addView(titleTextView);\n\n // Container layout for all the items\n if (mainLayout == null) {\n mainLayout = new LinearLayout(getContext());\n mainLayout.setLayoutParams(new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT,\n LayoutParams.WRAP_CONTENT));\n mainLayout.setPadding(adaptSizeToDensity(LEFT_PADDING),\n adaptSizeToDensity(TOP_PADDING),\n adaptSizeToDensity(RIGHT_PADDING),\n adaptSizeToDensity(BOTTOM_PADDING));\n mainLayout.setOrientation(LinearLayout.VERTICAL);\n }\n\n mainLayout.addView(ll1);\n\n if(syncModeSet) {\n mainLayout.addView(syncModeSpinner);\n }\n\n this.addView(mainLayout);\n }", "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}", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(450, 300);\n\t\tshell.setText(\"SWT Application\");\n\t\t\n\t\tGroup group_1 = new Group(shell, SWT.NONE);\n\t\tgroup_1.setText(\"\\u65B0\\u4FE1\\u606F\\u586B\\u5199\");\n\t\tgroup_1.setBounds(0, 120, 434, 102);\n\t\t\n\t\tLabel label_4 = new Label(group_1, SWT.NONE);\n\t\tlabel_4.setBounds(10, 21, 61, 17);\n\t\tlabel_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel label_5 = new Label(group_1, SWT.NONE);\n\t\tlabel_5.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\tlabel_5.setBounds(10, 46, 61, 17);\n\t\t\n\t\tLabel label_6 = new Label(group_1, SWT.NONE);\n\t\tlabel_6.setText(\"\\u5BC6\\u7801\");\n\t\tlabel_6.setBounds(10, 75, 61, 17);\n\t\t\n\t\ttext = new Text(group_1, SWT.BORDER);\n\t\ttext.setBounds(121, 21, 140, 17);\n\t\t\n\t\ttext_1 = new Text(group_1, SWT.BORDER);\n\t\ttext_1.setBounds(121, 46, 140, 17);\n\t\t\n\t\ttext_2 = new Text(group_1, SWT.BORDER);\n\t\ttext_2.setBounds(121, 75, 140, 17);\n\t\t\n\t\tButton btnNewButton = new Button(shell, SWT.NONE);\n\t\tbtnNewButton.setBounds(31, 228, 80, 27);\n\t\tbtnNewButton.setText(\"\\u63D0\\u4EA4\");\n\t\t\n\t\tButton btnNewButton_1 = new Button(shell, SWT.NONE);\n\t\tbtnNewButton_1.setBounds(288, 228, 80, 27);\n\t\tbtnNewButton_1.setText(\"\\u91CD\\u586B\");\n\t\t\n\t\tGroup group = new Group(shell, SWT.NONE);\n\t\tgroup.setText(\"\\u539F\\u5148\\u4FE1\\u606F\");\n\t\tgroup.setBounds(0, 10, 320, 102);\n\t\t\n\t\tLabel label = new Label(group, SWT.NONE);\n\t\tlabel.setBounds(10, 20, 61, 17);\n\t\tlabel.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel lblNewLabel = new Label(group, SWT.NONE);\n\t\tlblNewLabel.setBounds(113, 20, 61, 17);\n\t\t\n\t\tLabel label_1 = new Label(group, SWT.NONE);\n\t\tlabel_1.setBounds(10, 43, 61, 17);\n\t\tlabel_1.setText(\"\\u6027\\u522B\");\n\t\t\n\t\tButton btnRadioButton = new Button(group, SWT.RADIO);\n\t\t\n\t\tbtnRadioButton.setBounds(90, 43, 97, 17);\n\t\tbtnRadioButton.setText(\"\\u7537\");\n\t\tButton btnRadioButton_1 = new Button(group, SWT.RADIO);\n\t\tbtnRadioButton_1.setBounds(208, 43, 97, 17);\n\t\tbtnRadioButton_1.setText(\"\\u5973\");\n\t\t\n\t\tLabel label_2 = new Label(group, SWT.NONE);\n\t\tlabel_2.setBounds(10, 66, 61, 17);\n\t\tlabel_2.setText(\"\\u7528\\u6237\\u7535\\u8BDD\");\n\t\t\n\t\tLabel lblNewLabel_1 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_1.setBounds(113, 66, 61, 17);\n\t\t\n\t\tLabel label_3 = new Label(group, SWT.NONE);\n\t\tlabel_3.setBounds(10, 89, 61, 17);\n\t\tlabel_3.setText(\"\\u5BC6\\u7801\");\n\t\tLabel lblNewLabel_2 = new Label(group, SWT.NONE);\n\t\tlblNewLabel_2.setBounds(113, 89, 61, 17);\n\t\t\n\t\ttry {\n\t\t\tUserDao userDao=new UserDao();\n\t\t\tlblNewLabel_2.setText(User.getPassword());\n\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\n\t\t\t\n\n\t\t\n\t\t\ttry {\n\t\t\t\tList<User> userList=userDao.query();\n\t\t\t\tString results[][]=new String[userList.size()][5];\n\t\t\t\tlblNewLabel.setText(User.getUserName());\n\t\t\t\tlblNewLabel_1.setText(User.getSex());\n\t\t\t\tlblNewLabel_2.setText(User.getUserPhone());\n\t\t\t\tButton button = new Button(shell, SWT.NONE);\n\t\t\t\tbutton.setBounds(354, 0, 80, 27);\n\t\t\t\tbutton.setText(\"\\u8FD4\\u56DE\");\n\t\t\t\tbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\t\tshell.dispose();\n\t\t\t\t\t\tbook book=new book();\n\t\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < userList.size(); i++) {\n\t\t\t\t\t\tUser user1 = (User)userList.get(i);\t\n\t\t\t\t\tresults[i][0] = user1.getUserName();\n\t\t\t\t\tresults[i][1] = user1.getSex();\t\n\t\t\t\t\tresults[i][2] = user1.getPassword();\t\n\t\n\t\t\t\t\tif(user1.getSex().equals(\"男\"))\n\t\t\t\t\t\tbtnRadioButton.setSelection(true);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbtnRadioButton_1.setSelection(true);\n\t\t\t\t\tlblNewLabel_1.setText(user1.getUserPhone());\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(!text_1.getText().equals(\"\")&&!text.getText().equals(\"\")&&!text_2.getText().equals(\"\"))\n\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tuserDao.updateUser(text_1.getText(), text.getText(), text_2.getText());\n\t\t\t\t\tif(!text_1.getText().equals(\"\")&&!text_2.getText().equals(\"\")&&!text.getText().equals(\"\"))\n\t\t\t\t\t{shell.dispose();\n\t\t\t\t\tbook book=new book();\n\t\t\t\t\tbook.open();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{JOptionPane.showMessageDialog(null,\"用户名或密码不能为空\",\"错误\",JOptionPane.PLAIN_MESSAGE);}\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t});\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(final SelectionEvent e){\n\t\t\t\t\ttext.setText(\"\");\n\t\t\t\t\ttext_1.setText(\"\");\n\t\t\t\t\ttext_2.setText(\"\");\n\t\t\t\n\t\t\t}\n\t\t});\n\t}", "private void initialize() {\n this.setSize(394, 201);\n\n this.addTab(\"看病人基本資料\", null, getSeePatientFoundamentalDataPanel(), null);\n this.addTab(\"看病歷\", null, getSeeCaseHistoryPanel(), null);\n this.addTab(\"查藥品庫存\", null, getSeeMedicinesPanel(), null);\n this.addTab(\"看檢查報告\", null, getSeeInspectionReportPanel(), null);\n this.addTab(\"看掛號病人\", null, getSeeRegisteredPatientFoundamentalDataPanel(), null);\n this.addTab(\"開藥單\", null, getWritePrescriptionPanel(), null);\n this.addTab(\"寫病歷\", null, getWriteCaseHistoryPanel(), null);\n this.addTab(\"決定病人住院\", null, getDecideHospitalizePanel(), null);\n this.addTab(\"急診\", null, getEmergencyTreatmentPanel(), null);\n }", "private View createAccountLayout() {\r\n\t\tLinearLayout accountLayout = new LinearLayout(getContext());\r\n\t\tLayoutParams aclp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT, 3);\r\n\t\taccountLayout.setOrientation(VERTICAL);\r\n\t\taccountLayout.setLayoutParams(aclp);\r\n\t\tTextView t = new TextView(getContext());\r\n\t\tLayoutParams tlp = new LayoutParams(android.view.ViewGroup.LayoutParams.FILL_PARENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\r\n\t\tt.setLayoutParams(tlp);\r\n\t\tt.setText(account.getName());\r\n\t\tt.setTextSize(16);\r\n\t\tt.setTypeface(Typeface.DEFAULT_BOLD);\r\n\t\tt.setTextColor(getContext().getResources().getColor(R.color.black));\r\n\t\taccountLayout.addView(t);\r\n\r\n\t\tTextView desc = new TextView(getContext());\r\n\t\tif (account.getLastOperation() != null) {\r\n\t\t\tdesc.setText(\"\" + DateUtil.defaultDateFormat.format(account.getLastOperation()));\r\n\t\t}\r\n\t\taccountLayout.addView(desc);\r\n\t\treturn accountLayout;\r\n\t}", "private void create() {\n\t\tGridLayout grid = new GridLayout(3,2);\n\t\tthis.setLayout(grid);\n\t\tthis.setBackground(Color.WHITE);\n\t\t\n\t\tadd(new JLabel(\"Username/Library Card #:\", SwingConstants.LEFT), grid);\n\t\tusername.setPreferredSize(new Dimension(1, 12));\n\t\tadd(username,grid);\n\t\t\n\t\tadd(new JLabel(\"Password:\", SwingConstants.LEFT), grid);\n\t\tadd(password, grid);\n\t\t\n\t\tLoginAction();\n\t\tadd(submit, grid);\n\t}", "private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }", "private void initTab()\n {\n \n }", "public void onModuleLoad() {\n setId(\"tab-\" + COMPRA_DIRECTA_TABBED);\n setTitle(\"Items\");\n setLayout(new FitLayout());\n setBaseCls(\"x-plain\");\n this.setClosable(true);\n this.setId(\"TPfun50151\");\n setIconCls(\"tab-icon\");\n\n Panel pan_borderLayout = new Panel();\n pan_borderLayout.setLayout(new BorderLayout());\n pan_borderLayout.setBaseCls(\"x-plain\");\n Panel pan_centrofin = new Panel();\n //pan_centro.setTitle(\"Lista de Clientes\");\n pan_centrofin.setLayout(new FormLayout());\n pan_centrofin.setWidth(1300);\n pan_centrofin.setHeight(600);\n\n Panel pan_norte = new Panel();\n pan_norte.setLayout(new TableLayout(3));\n pan_norte.setBaseCls(\"x-plain\");\n pan_norte.setHeight(98);\n pan_norte.setPaddings(5);\n\n Panel pan_sud = new Panel();\n pan_sud.setLayout(new TableLayout(3));\n pan_sud.setBaseCls(\"x-plain\");\n pan_sud.setHeight(120);\n pan_sud.setPaddings(5);\n\nif (opcion.equalsIgnoreCase(\"3\")) {\n lista1 = new ListaCalzadoPedidoTallaUnion();\n lista1.onModuleLoad4();\n opcionnueva = \"101\";\n }\n if (opcion.equalsIgnoreCase(\"6\")) {\n lista1 = new ListaCalzadoPedidoTallaUnion();\n lista1.onModuleLoad5();\n opcionnueva = \"100\";\n }\n if (opcion.equalsIgnoreCase(\"7\")) {\n lista1 = new ListaCalzadoPedidoTallaUnion();\n lista1.onModuleLoad5();\n opcionnueva = \"100\";\n }\n\n if (opcion.equalsIgnoreCase(\"10\")) {\n lista1 = new ListaCalzadoPedidoTallaUnion();\n lista1.onModuleLoad5();\n opcionnueva = \"100\";\n }\n //init\n if (opcion.equalsIgnoreCase(\"14\")) {\n lista1 = new ListaCalzadoPedidoTallaUnion();\n lista1.onModuleLoad33();\n opcionnueva = \"102\";\n }\n if (opcion.equalsIgnoreCase(\"15\")) {\n lista1 = new ListaCalzadoPedidoTallaUnion();\n lista1.onModuleLoad33();\n opcionnueva = \"102\";\n //lista1.onModuleLoad5(idmarca,codigo,coleccionM,estiloM,nombre);\n }\n if (opcion.equalsIgnoreCase(\"4\")) {\n lista1 = new ListaCalzadoPedidoTallaUnion();\n lista1.onModuleLoad33();\n opcionnueva = \"102\";\n }\n if (opcion.equalsIgnoreCase(\"2\")) {\n lista1 = new ListaCalzadoPedidoTallaUnion();\n lista1.onModuleLoad5();\n opcionnueva = \"100\";\n }\n if (opcion.equalsIgnoreCase(\"31\")) {\n lista1 = new ListaCalzadoPedidoTallaUnion();\n lista1.onModuleLoad5();\n opcionnueva = \"100\";\n }\n\n\n Panel pan_centro = lista1.getPanel();\n\n FormPanel for_panel1 = new FormPanel();\n for_panel1.setBaseCls(\"x-plain\");\n for_panel1.setWidth(330);\n for_panel1.setLabelWidth(100);\n tex_marca = new TextField(\"Marca\", \"marca\", 200);\n tex_marca.setValue(marca);\n tex_marca.setReadOnly(true);\ncom_estilo = new ComboBox(\"Estilos\", \"idestilo\");\ncom_estilo.focus();\n // tex_modeloCP = new TextField(\"Modelo CP\", \"idmodelo\", 200);\n //tex_modeloCP.setValue(\"idmodelo\");\n\n for_panel1.add(tex_marca);\n\n for_panel1.add(com_estilo);\n // for_panel1.add(tex_modeloCP);\n\n FormPanel for_panel2 = new FormPanel();\n for_panel2.setBaseCls(\"x-plain\");\n for_panel2.setWidth(330);\n for_panel2.setLabelWidth(100);\n\n but_anadir = new Button(\"Anadir modelo nuevo\");\n Panel pan_botonescliente = new Panel();\n pan_botonescliente.setLayout(new HorizontalLayout(2));\n pan_botonescliente.setBaseCls(\"x-plain\");\n pan_botonescliente.add(but_anadir);\n\n\n com_modeloCV = new ComboBox(\"Buscar Modelos Anadir\", \"idmodelo\",400);\n com_modeloCVA = new ComboBox(\"Modelo Unido\", \"idmodelo\",400);\n\ntex_modeloCP = new TextField(\"codigo Nuevo\", \"idmodelonuevo\", 400);\n tex_modeloCP.setDisabled(false);\n \n for_panel2.add(com_modeloCV);\n for_panel2.add(com_modeloCVA);\n //for_panel2.add(tex_modeloCP);\n for_panel2.add(new PaddedPanel(pan_botonescliente, 5, 5, 5, 5), new TableLayoutData(2));\n \n FormPanel for_panel3 = new FormPanel();\n for_panel3.setBaseCls(\"x-plain\");\n for_panel3.setWidth(300);\n for_panel3.setLabelWidth(100);\n\n dat_fecha = new DateField(\"Fecha\", \"d-m-Y\");\n Date date = new Date();\n dat_fecha.setValue(Utils.getStringOfDate(date));\n\n for_panel3.add(dat_fecha);\n\n\n\n pan_norte.add(new PaddedPanel(for_panel1, 10));\n pan_norte.add(new PaddedPanel(for_panel2, 10));\n pan_norte.add(new PaddedPanel(for_panel3, 10));\n// pan_norte.add(new PaddedPanel(for_panel12, 0, 0, 13, 10));\n\n FormPanel for_panel4 = new FormPanel();\n for_panel4.setBaseCls(\"x-plain\");\n tex_totalpares = new TextField(\"Total Pares sin unir\", \"totalpares\");\n tex_totalpares2 = new TextField(\"Total Pares unidos\", \"totalparesunidos\");\n tex_totalbs = new TextField(\"Total Bs\", \"totalbs\");\n\n tex_totalcaja = new TextField(\"Codigo\", \"totalcaja\");\n\n for_panel4.add(tex_totalpares);\n \n for_panel4.add(tex_totalpares2);\n for_panel4.add(tex_totalbs);\n\n FormPanel for_panel6 = new FormPanel();\n for_panel6.setBaseCls(\"x-plain\");\n tea_descripcion = new TextArea(\"Observacion\", \"observacion\");\n tea_descripcion.setWidth(\"100%\");\n\n for_panel6.add(tea_descripcion);\n\n Panel pan_botones = new Panel();\n pan_botones.setLayout(new HorizontalLayout(10));\n pan_botones.setBaseCls(\"x-plain\");\n // pan_botones.setHeight(40);\n but_aceptar = new Button(\"registrar union\");\n but_cancelar = new Button(\"Cancelar\");\n but_limpiar = new Button(\"Limpiar\");\n //but_verproducto = new Button(\"Ver Producto\");\n pan_botones.add(but_aceptar);\n pan_botones.add(but_cancelar);\n pan_botones.add(but_limpiar);\n //pan_botones.add(but_verproducto);\n\n pan_sud.add(new PaddedPanel(for_panel4, 0, 0, 13, 10));\n //pan_sud.add(new PaddedPanel(for_panel5, 0, 0, 13, 10));\n pan_sud.add(new PaddedPanel(for_panel6, 3, 0, 13, 10));\n pan_sud.add(new PaddedPanel(pan_botones, 10, 200, 10, 10), new TableLayoutData(3));\n\nif (opcionnueva.equalsIgnoreCase(\"3\")) {\n lista2 = new ListaCalzadoPedidoTallaUnion2();\n lista2.onModuleLoad4();\n opcionnueva = \"101\";\n }\n if (opcion.equalsIgnoreCase(\"6\")) {\n lista2 = new ListaCalzadoPedidoTallaUnion2();\n lista2.onModuleLoad5();\n opcionnueva = \"100\";\n }\n if (opcion.equalsIgnoreCase(\"7\")) {\n lista2 = new ListaCalzadoPedidoTallaUnion2();\n lista2.onModuleLoad5();\n opcionnueva = \"100\";\n }\n\n if (opcion.equalsIgnoreCase(\"10\")) {\n lista2 = new ListaCalzadoPedidoTallaUnion2();\n lista2.onModuleLoad5();\n opcionnueva = \"100\";\n }\n //init\n if (opcion.equalsIgnoreCase(\"14\")) {\n lista2 = new ListaCalzadoPedidoTallaUnion2();\n lista2.onModuleLoad33();\n opcionnueva = \"102\";\n }\n if (opcion.equalsIgnoreCase(\"15\")) {\n lista2 = new ListaCalzadoPedidoTallaUnion2();\n lista2.onModuleLoad33();\n opcionnueva = \"102\";\n //lista1.onModuleLoad5(idmarca,codigo,coleccionM,estiloM,nombre);\n }\n if (opcion.equalsIgnoreCase(\"4\")) {\n lista2 = new ListaCalzadoPedidoTallaUnion2();\n lista2.onModuleLoad33();\n opcionnueva = \"102\";\n }\n if (opcion.equalsIgnoreCase(\"2\")) {\n lista2 = new ListaCalzadoPedidoTallaUnion2();\n lista2.onModuleLoad5();\n opcionnueva = \"100\";\n }\n if (opcion.equalsIgnoreCase(\"31\")) {\n lista2 = new ListaCalzadoPedidoTallaUnion2();\n lista2.onModuleLoad5();\n opcionnueva = \"100\";\n }\n\n Panel pan_oeste = lista2.getPanel();\n pan_centrofin.add(pan_centro);\n pan_centrofin.add(pan_oeste);\n pan_borderLayout.add(pan_norte, new BorderLayoutData(RegionPosition.NORTH));\n pan_borderLayout.add(pan_centrofin, new BorderLayoutData(RegionPosition.CENTER));\n pan_borderLayout.add(pan_sud, new BorderLayoutData(RegionPosition.SOUTH));\n add(pan_borderLayout);\n\n initCombos();\n //initValues();\n addListeners();\n\n }", "private void createTabList() throws UnsupportedEncodingException {\n\n org.mortbay.html.List tabList =\n new org.mortbay.html.List(org.mortbay.html.List.Unordered);\n tabsDiv.add(tabList);\n Integer tabCount = 1;\n for (Map.Entry letterPairs : startLetterList.entrySet()) {\n Character startLetter = (Character) letterPairs.getKey();\n Character endLetter = (Character) letterPairs.getValue();\n Link tabLink = new Link(\"DisplayContentTab?start=\" + startLetter + \"&amp;end=\" + endLetter + \"&amp;group=\"\n + grouping + \"&amp;type=\" + type + \"&amp;filter=\" + filterKey +\n \"&amp;timeKey=\" + timeKey, startLetter + \" - \" + endLetter);\n Composite tabListItem = tabList.newItem();\n tabListItem.add(tabLink);\n Block loadingDiv = new Block(Block.Div, \"id='ui-tabs-\" + tabCount++ + \"'\");\n Image loadingImage = new Image(LOADING_SPINNER);\n loadingImage.alt(\"Loading...\");\n loadingDiv.add(loadingImage);\n loadingDiv.add(\" Loading...\");\n tabsDiv.add(loadingDiv);\n }\n }", "private void defineLayout(IPageLayout layout) {\n String editorArea = layout.getEditorArea();\r\n\r\n IFolderLayout folder;\r\n\r\n // Place remote system view to left of editor area.\r\n folder = layout.createFolder(NAV_FOLDER_ID, IPageLayout.LEFT, 0.2F, editorArea);\r\n folder.addView(getRemoveSystemsViewID());\r\n\r\n // Place properties view below remote system view.\r\n folder = layout.createFolder(PROPS_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, NAV_FOLDER_ID);\r\n folder.addView(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n\r\n // Place job log explorer view below editor area.\r\n folder = layout.createFolder(JOB_LOG_EXPLORER_FOLDER_ID, IPageLayout.BOTTOM, 0.0F, editorArea);\r\n folder.addView(JobLogExplorerView.ID);\r\n\r\n // Place command log view below editor area.\r\n folder = layout.createFolder(CMDLOG_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, JobLogExplorerView.ID);\r\n folder.addView(getCommandLogViewID());\r\n\r\n layout.addShowViewShortcut(getRemoveSystemsViewID());\r\n layout.addShowViewShortcut(\"org.eclipse.ui.views.PropertySheet\"); //$NON-NLS-1$\r\n layout.addShowViewShortcut(getCommandLogViewID());\r\n\r\n layout.addPerspectiveShortcut(ID);\r\n\r\n layout.setEditorAreaVisible(false);\r\n }", "private void initView() {\n\n LinearLayout bar = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.bottom_bar, null);\n LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\n addView(bar, lp);\n tab1= (LinearLayout) bar.findViewById(R.id.tab1);\n tab2= (LinearLayout) bar.findViewById(R.id.tab2);\n tab3= (LinearLayout) bar.findViewById(R.id.tab3);\n tab4= (LinearLayout) bar.findViewById(R.id.tab4);\n ivTab1= (ImageView) bar.findViewById(R.id.ivTab1);\n tvTab1= (TextView) bar.findViewById(R.id.tvTab1);\n ivTab2= (ImageView) bar.findViewById(R.id.ivTab2);\n tvTab2= (TextView) bar.findViewById(R.id.tvTab2);\n ivTab3= (ImageView) bar.findViewById(R.id.ivTab3);\n tvTab3= (TextView) bar.findViewById(R.id.tvTab3);\n ivTab4= (ImageView) bar.findViewById(R.id.ivTab4);\n tvTab4= (TextView) bar.findViewById(R.id.tvTab4);\n\n tab1.setOnClickListener(this);\n tab2.setOnClickListener(this);\n tab3.setOnClickListener(this);\n tab4.setOnClickListener(this);\n\n }", "private void createTab() {\n tab = new char[tabSize];\n for (int i = 0; i < tabSize; i++) {\n tab[i] = tabChar;\n }\n }", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(838, 649);\n\n\t}", "private void fuenteTab() {\n\n\n View view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n TextView tv=(TextView) view.findViewById(R.id.pestanias_txt);\n ImageView imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.detalles);\n tv.setTypeface(fuente2);\n tv.setText(\"Detalles\");\n tabLayout.getTabAt(0).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.marciano);\n tv.setTypeface(fuente2);\n tv.setText(\"Juegos\");\n tabLayout.getTabAt(1).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.tienda);\n tv.setTypeface(fuente2);\n tv.setText(\"Tienda\");\n tabLayout.getTabAt(2).setCustomView(view);\n\n }", "private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\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\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\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\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\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\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\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\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\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\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\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}", "private void initPane() {\n\t\tContainer localContainer = getContentPane();\n\t\tlocalContainer.setLayout(new BorderLayout());\n\t\t\n\t\tsplitpane_left_top.setBorder(BorderFactory.createTitledBorder(\"Training Data\"));\n\t\tsplitpane_left_bottom.setBorder(BorderFactory.createTitledBorder(\"Tree View\"));\n\t\tsplitpane_left.setDividerLocation(400);\n\t\tsplitpane_left.setLastDividerLocation(0);\n\t\tsplitpane_left.setOneTouchExpandable(true);\n\t\tsplitpane_right.setBorder(BorderFactory.createTitledBorder(\"Classifer Output\"));\n\t\tsplitpane_main.setDividerLocation(500);\n\t\tsplitpane_main.setLastDividerLocation(0);\n\t\tsplitpane_main.setOneTouchExpandable(true);\n\t\tlocalContainer.add(splitpane_main, \"Center\");\n\t\tlocalContainer.add(statusPanel,BorderLayout.SOUTH);\n\t}", "private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}", "private void initView() {\n\n LayoutInflater inflater = getLayoutInflater();\n final int screenWidth = MyUtils.getScreenMetrics(this).widthPixels;\n final int screenHeight = MyUtils.getScreenMetrics(this).heightPixels;\n for (int i = 0; i < 3; i++) {\n ViewGroup layout = (ViewGroup) inflater.inflate(\n R.layout.content_layout, myHorizontal, false);\n layout.getLayoutParams().width = screenWidth;\n TextView textView = (TextView) layout.findViewById(R.id.title);\n textView.setText(\"page \" + (i + 1));\n layout.setBackgroundColor(Color.rgb(255 / (i + 1), 255 / (i + 1), 0));\n createList(layout);\n myHorizontal.addView(layout);\n }\n }", "public void createInitialLayout(IPageLayout layout) {\n \n\t}", "private void initComponents() {\n jSplitPane1 = new javax.swing.JSplitPane();\n pnlTree = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jtrLocal = new DnDTree();\n pnlTab = new javax.swing.JPanel();\n jtpApps = new javax.swing.JTabbedPane();\n\n jSplitPane1.setDividerLocation(260);\n\n pnlTree.setBorder(javax.swing.BorderFactory.createTitledBorder(\n NbBundle.getMessage(\n EditDistributionVisualPanel2.class,\n \"EditDistributionVisualPanel2.pnlTree.border.title\"))); // NOI18N\n\n jtrLocal.setDragEnabled(true);\n jScrollPane1.setViewportView(jtrLocal);\n\n final javax.swing.GroupLayout pnlTreeLayout = new javax.swing.GroupLayout(pnlTree);\n pnlTree.setLayout(pnlTreeLayout);\n pnlTreeLayout.setHorizontalGroup(\n pnlTreeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jScrollPane1,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 246,\n Short.MAX_VALUE));\n pnlTreeLayout.setVerticalGroup(\n pnlTreeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jScrollPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 238,\n Short.MAX_VALUE));\n\n jSplitPane1.setLeftComponent(pnlTree);\n\n final javax.swing.GroupLayout pnlTabLayout = new javax.swing.GroupLayout(pnlTab);\n pnlTab.setLayout(pnlTabLayout);\n pnlTabLayout.setHorizontalGroup(\n pnlTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jtpApps,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 200,\n Short.MAX_VALUE));\n pnlTabLayout.setVerticalGroup(\n pnlTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jtpApps,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 266,\n Short.MAX_VALUE));\n\n jSplitPane1.setRightComponent(pnlTab);\n\n final javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jSplitPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 471,\n Short.MAX_VALUE));\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jSplitPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 270,\n Short.MAX_VALUE));\n }", "Board createLayout();", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tComposite top = new Composite(parent, SWT.NONE);\n\t\tFillLayout layout = new FillLayout(SWT.HORIZONTAL);\n\t\tlayout.marginHeight = 10;\n\t\ttop.setLayout(layout);\n\n\t\t// TabFolder\n\t\tCTabFolder tabFolder = new CTabFolder(top, SWT.BORDER);\n\t\ttabFolder.setSelectionBackground(Display.getCurrent().getSystemColor(\n\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\tGridLayout tabLayout = new GridLayout();\n\t\ttabLayout.marginHeight = 10;\n\t\ttabLayout.marginWidth = 10;\n\t\ttabLayout.verticalSpacing = 20;\n\t\ttabLayout.numColumns = 1;\n\t\ttabFolder.setLayout(tabLayout);\n\n\t\tnew MQTTTab(tabFolder, SWT.NONE, connection, eventService);\n\n\t\t// Tab Options\n\t\tnew OptionsTab(tabFolder, SWT.NONE, connection);\n\n\t\t// select the first tab by default\n\t\ttabFolder.setSelection(0);\n\t}", "private void initializePatientInfoTab() {\r\n\r\n patientTab = new JPanel(new GridBagLayout());\r\n patientTab.setBackground(MainGUI.backgroundColor);\r\n patientTab.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));\r\n patientTabConstraints = new GridBagConstraints();\r\n\r\n // create labels\r\n pInfo_firstNameLabel = new JLabel(\"First Name:\");\r\n pInfo_middleNameLabel = new JLabel(\"Middle Name:\");\r\n pInfo_lastNameLabel = new JLabel(\"Last Name:\");\r\n pInfo_ssnLabel = new JLabel(\"Social Security #:\");\r\n pInfo_dobLabel = new JLabel(\"Date of Birth:\");\r\n pInfo_phoneNumberLabel = new JLabel(\"Phone Number:\");\r\n pInfo_streetLabel = new JLabel(\"Street:\");\r\n pInfo_cityLabel = new JLabel(\"City:\");\r\n pInfo_stateLabel = new JLabel(\"State:\");\r\n pInfo_zipCodeLabel = new JLabel(\"Zip Code:\");\r\n pInfo_userLabel = new JLabel(\"Username:\");\r\n pInfo_pwLabel = new JLabel(\"Password:\");\r\n pInfo_policyLabel = new JLabel(\"Policy:\");\r\n\r\n pInfo_firstNameLabel.setForeground(MainGUI.fontColor);\r\n pInfo_middleNameLabel.setForeground(MainGUI.fontColor);\r\n pInfo_lastNameLabel.setForeground(MainGUI.fontColor);\r\n pInfo_ssnLabel.setForeground(MainGUI.fontColor);\r\n pInfo_dobLabel.setForeground(MainGUI.fontColor);\r\n pInfo_phoneNumberLabel.setForeground(MainGUI.fontColor);\r\n pInfo_streetLabel.setForeground(MainGUI.fontColor);\r\n pInfo_cityLabel.setForeground(MainGUI.fontColor);\r\n pInfo_stateLabel.setForeground(MainGUI.fontColor);\r\n pInfo_zipCodeLabel.setForeground(MainGUI.fontColor);\r\n pInfo_userLabel.setForeground(MainGUI.fontColor);\r\n pInfo_pwLabel.setForeground(MainGUI.fontColor);\r\n pInfo_policyLabel.setForeground(MainGUI.fontColor);\r\n\r\n // create text fields\r\n pInfo_firstNameTextField = new JTextField(12);\r\n pInfo_middleNameTextField = new JTextField(12);\r\n pInfo_lastNameTextField = new JTextField(12);\r\n pInfo_ssnTextField = new JTextField(12);\r\n pInfo_dobTextField = new JTextField(12);\r\n pInfo_phoneNumberTextField = new JTextField(12);\r\n pInfo_addressTextField = new JTextField(12);\r\n pInfo_cityTextField = new JTextField(12);\r\n pInfo_zipCodeTextField = new JTextField(12);\r\n pInfo_userField = new JTextField(12);\r\n pInfo_pwField = new JTextField(12);\r\n\r\n // combo box\r\n pInfo_stateComboBox = new JComboBox<>(pInfo_states);\r\n\r\n String[] policyOptions = {\"Yes\", \"No\"};\r\n pInfo_policyComboBox = new JComboBox<>(policyOptions);\r\n\r\n // create buttons\r\n pInfo_updateInfoButton = new JButton(\"Update Existing Patient\");\r\n pInfo_submitNewInfoButton = new JButton(\"Create New Patient File\");\r\n\r\n pInfo_updateInfoButton.setForeground(MainGUI.fontColor);\r\n pInfo_submitNewInfoButton.setForeground(MainGUI.fontColor);\r\n\r\n // add components to the patient info panel\r\n\r\n // last name label\r\n patientTabConstraints.gridx = 10;\r\n patientTabConstraints.gridy = 10;\r\n patientTabConstraints.weightx = 1;\r\n patientTabConstraints.weighty = 0.4;\r\n patientTabConstraints.anchor = GridBagConstraints.WEST;\r\n patientTabConstraints.insets = new Insets(0, 20, 0, 0);\r\n patientTab.add(pInfo_lastNameLabel, patientTabConstraints);\r\n\r\n // add first name label\r\n patientTabConstraints.gridx = 20;\r\n patientTab.add(pInfo_firstNameLabel, patientTabConstraints);\r\n\r\n // add middle name label\r\n patientTabConstraints.gridx = 30;\r\n patientTab.add(pInfo_middleNameLabel, patientTabConstraints);\r\n\r\n // add ssn label\r\n patientTabConstraints.gridx = 10;\r\n patientTabConstraints.gridy = 20;\r\n patientTab.add(pInfo_ssnLabel, patientTabConstraints);\r\n\r\n // add username label\r\n patientTabConstraints.gridx = 20;\r\n patientTab.add(pInfo_userLabel, patientTabConstraints);\r\n\r\n // add password label\r\n patientTabConstraints.gridx = 30;\r\n patientTab.add(pInfo_pwLabel, patientTabConstraints);\r\n\r\n // add policy label\r\n patientTabConstraints.gridx = 20;\r\n patientTabConstraints.gridy = 30;\r\n patientTab.add(pInfo_policyLabel, patientTabConstraints);\r\n\r\n // add DOB label\r\n patientTabConstraints.gridx = 10;\r\n patientTab.add(pInfo_dobLabel, patientTabConstraints);\r\n\r\n // add phone # label\r\n patientTabConstraints.gridy = 40;\r\n patientTabConstraints.weighty = 1;\r\n patientTabConstraints.anchor = GridBagConstraints.NORTHWEST;\r\n patientTabConstraints.insets = new Insets(10, 20, 0, 0);\r\n patientTab.add(pInfo_phoneNumberLabel, patientTabConstraints);\r\n\r\n // add address label\r\n patientTabConstraints.gridy = 50;\r\n patientTabConstraints.anchor = GridBagConstraints.SOUTHWEST;\r\n patientTabConstraints.insets = new Insets(0, 20, 10, 0);\r\n patientTab.add(pInfo_streetLabel, patientTabConstraints);\r\n\r\n // add city label\r\n patientTabConstraints.gridy = 60;\r\n patientTabConstraints.weighty = 0.4;\r\n patientTabConstraints.anchor = GridBagConstraints.WEST;\r\n patientTabConstraints.insets = new Insets(0, 20, 0, 0);\r\n patientTab.add(pInfo_cityLabel, patientTabConstraints);\r\n\r\n // add state label\r\n patientTabConstraints.gridy = 70;\r\n patientTab.add(pInfo_stateLabel, patientTabConstraints);\r\n\r\n // add zip label\r\n patientTabConstraints.gridy = 80;\r\n patientTab.add(pInfo_zipCodeLabel, patientTabConstraints);\r\n\r\n // add last name text field\r\n patientTabConstraints.gridy = 10;\r\n patientTabConstraints.anchor = GridBagConstraints.EAST;\r\n patientTabConstraints.insets = new Insets(0, 0, 0, 40);\r\n patientTab.add(pInfo_lastNameTextField, patientTabConstraints);\r\n\r\n // add first name text field\r\n patientTabConstraints.gridx = 20;\r\n patientTabConstraints.insets = new Insets(0, 0, 0, 60);\r\n patientTab.add(pInfo_firstNameTextField, patientTabConstraints);\r\n\r\n // add middle name text field\r\n patientTabConstraints.gridx = 30;\r\n patientTab.add(pInfo_middleNameTextField, patientTabConstraints);\r\n\r\n // add ssn textfield\r\n patientTabConstraints.gridx = 10;\r\n patientTabConstraints.gridy = 20;\r\n patientTabConstraints.insets = new Insets(0, 0, 0, 40);\r\n patientTab.add(pInfo_ssnTextField, patientTabConstraints);\r\n\r\n // add username textfield\r\n patientTabConstraints.gridx = 20;\r\n patientTabConstraints.insets = new Insets(0, 0, 0, 60);\r\n patientTab.add(pInfo_userField, patientTabConstraints);\r\n\r\n // add password textfield\r\n patientTabConstraints.gridx = 30;\r\n patientTab.add(pInfo_pwField, patientTabConstraints);\r\n\r\n // add policy combo box\r\n patientTabConstraints.gridx = 20;\r\n patientTabConstraints.gridy = 30;\r\n patientTabConstraints.anchor = GridBagConstraints.CENTER;\r\n patientTabConstraints.insets = new Insets(0, 0, 0, 0);\r\n patientTab.add(pInfo_policyComboBox, patientTabConstraints);\r\n\r\n // add DOB textfield\r\n patientTabConstraints.gridx = 10;\r\n patientTabConstraints.anchor = GridBagConstraints.EAST;\r\n patientTabConstraints.insets = new Insets(0, 0, 0, 40);\r\n patientTab.add(pInfo_dobTextField, patientTabConstraints);\r\n\r\n // add phone number text field\r\n patientTabConstraints.gridy = 40;\r\n patientTabConstraints.anchor = GridBagConstraints.NORTHEAST;\r\n patientTabConstraints.insets = new Insets(10, 0, 0, 40);\r\n patientTab.add(pInfo_phoneNumberTextField, patientTabConstraints);\r\n\r\n // add address text field\r\n patientTabConstraints.gridy = 50;\r\n patientTabConstraints.anchor = GridBagConstraints.SOUTHEAST;\r\n patientTabConstraints.insets = new Insets(0, 0, 10, 40);\r\n patientTab.add(pInfo_addressTextField, patientTabConstraints);\r\n\r\n // add city text field\r\n patientTabConstraints.gridy = 60;\r\n patientTabConstraints.anchor = GridBagConstraints.EAST;\r\n patientTabConstraints.insets = new Insets(0, 0, 0, 40);\r\n patientTab.add(pInfo_cityTextField, patientTabConstraints);\r\n\r\n // add state combo box\r\n patientTabConstraints.gridy = 70;\r\n patientTab.add(pInfo_stateComboBox, patientTabConstraints);\r\n\r\n // add zip code text field\r\n patientTabConstraints.gridy = 80;\r\n patientTab.add(pInfo_zipCodeTextField, patientTabConstraints);\r\n\r\n // add update existing patient button\r\n patientTabConstraints.gridx = 20;\r\n patientTabConstraints.gridy = 70;\r\n patientTabConstraints.ipady = 10;\r\n patientTabConstraints.anchor = GridBagConstraints.CENTER;\r\n patientTab.add(pInfo_updateInfoButton, patientTabConstraints);\r\n\r\n // add submit new patient info button\r\n patientTabConstraints.gridy = 80;\r\n patientTab.add(pInfo_submitNewInfoButton, patientTabConstraints);\r\n\r\n }", "public void setupLayout() {\n // left empty for subclass to override\n }", "public void initCon() {\n\t\t\n\t\t//ImageIcon icon = new ImageIcon(this.getClass().getResource(\"lib/data/icon/log.png\"));\n\t\t//txtArea.setLineWrap(true);\n\t\ttxtArea = new JTextArea(16,70);\n\t\t//txtArea.setLineWrap(true);\n\t\tJTabbedPane tPane = new JTabbedPane();\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane(txtArea); \n\t\t\n\t\t\n\t\tJPanel top = new JPanel();\n\t\tJPanel center = new JPanel();\n\t\t\n\t\tbottom = new JPanel();\n\t\tColor color = UIManager.getColor ( \"Panel.background\" );\n\t\t\n\t\ttop.add( scrollPane );\n\t\ttPane.addTab(\"Console\", top);\n\t\t\n\t\t\n\t\t//set colors\n\t\treadout.setBackground(color);\n\t\ttop.setBackground(color);\n\t\tcenter.setBackground(color);\n\t\tbottom.setBackground(color);\n\t\t//.setOpaque(true);\n\t\t\n\t\tbottom.setLayout(new GridLayout(1,2));\n\t\tbottom.add(readout);\n\t\tcenter.setLayout(new GridLayout(2,1));\n\t\tadd(center, BorderLayout.CENTER);\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\tadd(tPane, BorderLayout.NORTH);\n\t}", "protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}", "private void setupLayout()\n {\n Container contentPane;\n\n setSize(300, 300); \n\n contentPane = getContentPane();\n\n // Layout this PINPadWindow\n }", "public void buildStagingPanel() {\n if (tabbedPane == null) {\n tabbedPane = new JTabbedPane(SwingConstants.TOP);\n tabbedPane.addTab(\"Query\", _widgetPanel);\n tabbedPane.addTab(om.getProgramName(), om.getTreePanel());\n tabbedPane.addTab(\"Calibrations\", calibrationMenu);\n tabbedPane.setVisible(true);\n } else {\n tabbedPane.setTitleAt(1, om.getProgramName());\n }\n\n tabbedPane.setSelectedIndex(1);\n }", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(437, 529);\n\n\t}", "private void $$$setupUI$$$() {\n contentPane = new JPanel();\n contentPane.setLayout(new GridLayoutManager(2, 1, new Insets(10, 10, 10, 10), -1, -1));\n final JPanel panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, 1, null, null, null, 0, false));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new GridLayoutManager(3, 1, new Insets(0, 0, 0, 0), -1, -1));\n panel1.add(panel2, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagButton = new JButton();\n Font memberImportTagButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagButton.getFont());\n if (memberImportTagButtonFont != null) memberImportTagButton.setFont(memberImportTagButtonFont);\n memberImportTagButton.setText(\"导入选择的标签分组-取并集\");\n panel2.add(memberImportTagButton, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagRetainButton = new JButton();\n Font memberImportTagRetainButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagRetainButton.getFont());\n if (memberImportTagRetainButtonFont != null)\n memberImportTagRetainButton.setFont(memberImportTagRetainButtonFont);\n memberImportTagRetainButton.setText(\"导入选择的标签分组-取交集\");\n panel2.add(memberImportTagRetainButton, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportAllButton = new JButton();\n Font memberImportAllButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportAllButton.getFont());\n if (memberImportAllButtonFont != null) memberImportAllButton.setFont(memberImportAllButtonFont);\n memberImportAllButton.setText(\"导入所有关注公众号的用户\");\n panel2.add(memberImportAllButton, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n final JPanel panel3 = new JPanel();\n panel3.setLayout(new GridLayoutManager(2, 3, new Insets(0, 0, 0, 0), -1, -1));\n contentPane.add(panel3, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionPanel = new JPanel();\n importOptionPanel.setLayout(new GridLayoutManager(1, 5, new Insets(0, 0, 0, 0), -1, -1));\n panel3.add(importOptionPanel, new GridConstraints(1, 0, 1, 3, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n importOptionOpenIdCheckBox = new JCheckBox();\n importOptionOpenIdCheckBox.setEnabled(false);\n importOptionOpenIdCheckBox.setSelected(true);\n importOptionOpenIdCheckBox.setText(\"openId\");\n importOptionPanel.add(importOptionOpenIdCheckBox, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n importOptionPanel.add(spacer1, new GridConstraints(0, 4, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n importOptionBasicInfoCheckBox = new JCheckBox();\n importOptionBasicInfoCheckBox.setText(\"昵称、性别等基本信息\");\n importOptionBasicInfoCheckBox.setToolTipText(\"每获取一条信息会花费一次每日接口调用量\");\n importOptionPanel.add(importOptionBasicInfoCheckBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n importOptionAvatarCheckBox = new JCheckBox();\n importOptionAvatarCheckBox.setText(\"头像\");\n importOptionAvatarCheckBox.setToolTipText(\"勾选会导致左侧列表甚至WePush变卡哦\");\n importOptionPanel.add(importOptionAvatarCheckBox, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n clearDbCacheButton = new JButton();\n clearDbCacheButton.setText(\"清空本地缓存\");\n importOptionPanel.add(clearDbCacheButton, new GridConstraints(0, 3, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n memberImportTagComboBox = new JComboBox();\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n memberImportTagComboBox.setModel(defaultComboBoxModel1);\n panel3.add(memberImportTagComboBox, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));\n memberImportTagFreshButton = new JButton();\n Font memberImportTagFreshButtonFont = this.$$$getFont$$$(null, Font.PLAIN, -1, memberImportTagFreshButton.getFont());\n if (memberImportTagFreshButtonFont != null) memberImportTagFreshButton.setFont(memberImportTagFreshButtonFont);\n memberImportTagFreshButton.setText(\"刷新\");\n panel3.add(memberImportTagFreshButton, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, 1, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"标签分组\");\n panel3.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n }", "private void addTabs(List<TemplateAttribute> templateAttributes, TemplateRelation tr) {\n ObjectGroupTab otv = null;\n int prevTgId = 0;\n for (TemplateAttribute ta : templateAttributes) {\n if (ta.getTgId() != prevTgId) {\n prevTgId = ta.getTgId();\n if (ta.getTg().getSubRank() == 0) {\n otv = tr == null ? new ObjectGroupTab(this, ta.getTg())\n : new ObjectRelationGroupTab(this, tr, ta.getTg());\n add(otv, ta.getTg().getName());\n final int iTab = getTabBar().getTabCount() - 1;\n getTabBar().getTab(iTab).addClickHandler(new ClickHandler() {\n\n @Override\n public void onClick(ClickEvent event) {\n getModel().setTemplateRelation(null);\n }\n });\n }\n otv.displayGroupLabel(ta.getTg());\n }\n\n TemplateWidget tw = otv.display(ta);\n if (tw != null)\n tw.initialize();\n }\n if (getTabBar().getTabCount() > 0)\n selectTab(0);\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t// construct the tabhost\r\n\t\tsetContentView(R.layout.generic_3_tabs_layout);\r\n\r\n\t\t// -- Initialize title Bar--\r\n\t\ttitleBar = (TitleBar) findViewById(R.id.normal_activity_CV_TB1);\r\n\t\t// -- Call the methods to change the underlying widgets--\r\n\t\ttitleBar.setTitle(\"BUSINESS RULES\");\r\n\t\ttitleBar.setIcon(R.drawable.icon);\r\n\t\ttitleBar.showProgressBar();\r\n\r\n\t\t// --Prepare tabs\r\n\t\tsetupTabHost();\r\n\t\tmTabHost.getTabWidget().setDividerDrawable(R.drawable.tab_divider);\r\n\r\n\t\tsetupTab(new TextView(this), \"COMMON Rules\");\r\n\t\tsetupTab(new TextView(this), \"EXTENDED Rules 2\");\r\n\t\tsetupTab(new TextView(this), \"CUSTOM\");\r\n\t}", "@Override\n public void createInitialLayout(IPageLayout layout) {\n defineActions(layout);\n defineLayout(layout);\n }", "private void setupLayout() {\r\n\t\tgetContentPane().add(panel);\r\n\t}", "public void initTab(ArrayList<CircuitUsageModel> modelList) {\n\t\ttabHost = getTabHost();\n\t\tResources res = getResources();\n\n\t\t// energy\n\t\tenergySpec = tabHost.newTabSpec(\"energy\");\n\t\tenergySpec.setIndicator(getString(R.string.energy),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_energy));\n\t\t// power\n\t\tpowerSpec = tabHost.newTabSpec(\"power\");\n\t\tpowerSpec.setIndicator(getString(R.string.power),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_power));\n\t\t// credit\n\t\tcreditSpec = tabHost.newTabSpec(\"credit\");\n\t\tcreditSpec.setIndicator(getString(R.string.credit),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_credit));\n\n\t\t// set tab content\n\t\tsetTabContent(modelList);\n\t\t\n\t\t// auto refresh\n\t\tautoRefresh();\n\t}", "public Scene createScene() {\n\t\tmyRoot = new AnchorPane();\n\t\tmyTabs = new TabPane();\n\t\tButton newTab = new Button(CREATE_NEW_TAB);\n\t\tnewTab.setOnAction(event -> createNewTab());\n\t\t\n\t\tTabMainScreen mainScreen = new TabMainScreen(myResources.getString(WORKSPACE) + (myTabs.getTabs().size()));\n\t\tTabHelp help1 = new TabHelp(myResources.getString(BASIC_COMMANDS), HELP_TAB_TEXT1);\n\t\tTabHelp help2 = new TabHelp(myResources.getString(EXTENDED_COMMANDS), HELP_TAB_TEXT2);\n\t\t\n\t\tmyTabs.getTabs().addAll(mainScreen.getTab(myStage), help1.getTab(), help2.getTab());\n\t\t\n\t\tAnchorPane.setTopAnchor(myTabs, TABS_OFFSET);\n\t\tAnchorPane.setTopAnchor(newTab, NEWTAB_OFFSET);\n\t\t\n\t\tmyRoot.getChildren().addAll(myTabs, newTab);\n\t\n\t\tmyScene = new Scene(myRoot, windowHeight, windowWidth, Color.WHITE);\n\t\treturn myScene;\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 initializeTabs() {\n\n\t\tTabHost.TabSpec spec;\n\n\t\tspec = mTabHost.newTabSpec(Const.EVENTS);\n\t\tmTabHost.setCurrentTab(0);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_events_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(1);\n\t\tspec = mTabHost.newTabSpec(Const.FEED);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_feed_selector));\n\t\tmTabHost.addTab(spec);\n\n\t\tmTabHost.setCurrentTab(2);\n\t\tspec = mTabHost.newTabSpec(Const.INFO);\n\t\tspec.setContent(new TabHost.TabContentFactory() {\n\t\t\tpublic View createTabContent(String tag) {\n\t\t\t\treturn findViewById(R.id.realtabcontent);\n\t\t\t}\n\t\t});\n\t\tspec.setIndicator(createTabView(R.drawable.tab_info_selector));\n\t\tmTabHost.addTab(spec);\n\n\t}", "private void createWidgets() {\n\n\t\tJPanel filmPanel = createFilmPanel();\n\t\tJPanel musicPanel = createMusicPanel();\n\t\tJPanel unclassPanel = createUnclassifiedPanel();\n\n\t\tthis.add(filmPanel);\n\t\tthis.add(musicPanel);\n\t\tthis.add(unclassPanel);\n\t}", "@AutoGenerated\r\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"400px\");\r\n\t\tsetHeight(\"340px\");\r\n\t\t\r\n\t\t// menuBar_1\r\n\t\tmenuBar_1 = new MenuBar();\r\n\t\tmenuBar_1.setWidth(\"100.0%\");\r\n\t\tmenuBar_1.setHeight(\"-1px\");\r\n\t\tmenuBar_1.setImmediate(false);\r\n\t\tmainLayout.addComponent(menuBar_1);\r\n\t\t\r\n\t\t// horizontalLayout_1\r\n\t\thorizontalLayout_1 = buildHorizontalLayout_1();\r\n\t\tmainLayout.addComponent(horizontalLayout_1);\r\n\t\t\r\n\t\t// tabSheet_1\r\n\t\ttabSheet_1 = buildTabSheet_1();\r\n\t\tmainLayout.addComponent(tabSheet_1);\r\n\t\tmainLayout.setExpandRatio(tabSheet_1, 1.0f);\r\n\t\tmainLayout.setComponentAlignment(tabSheet_1, new Alignment(48));\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}", "JPanel guiPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new BorderLayout());\n tabbedPane = new JTabbedPane();\n tabbedPane.addTab(\"Light\", lightPanel());\n tabbedPane.addTab(\"Background\", backgroundPanel());\n tabbedPane.addTab(\"Fog\", fogPanel());\n tabbedPane.addTab(\"Sound\", soundPanel());\n panel.add(\"Center\", tabbedPane);\n\n panel.add(\"South\", configPanel());\n return panel;\n }", "Juego(){\r\n\r\n GridLayout layout = new GridLayout(1,2);\r\n\tsetLayout(layout);\r\n\t\t\r\n\t// Creacion del tablero del contrincante (computadora)\t\r\n\t\r\n t_contrincante = new Tablero(false);\r\n\tadd(t_contrincante);\r\n\t\t\t\t\r\n\t// Creacion del tablero del jugador\r\n\t\t\t\t\r\n t_jugador = new Tablero(true);\r\n\tadd(t_jugador);\r\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tLog.e(tag,tag+\"=>onCreate \");\n\t\t// Define the Tab structure\n\t\tsetContentView(R.layout.main);\n\t\t// Retrieve the ressource to access to the icon\n\t\tResources resources = getResources(); // Resource object to get Drawables\n\t\t// Set the tabHost (set it has final to use it in the OnTabChangeListener)\n\t\tfinal TabHost tabHost = getTabHost();\n\t\t// Define the tabSpec that can be thought has the content of the TabPanel\n\t\tTabHost.TabSpec tabSpec;\n\t\t// Define the intent that is used to populate the tabSpec\n\t\tIntent intent;\n\n\t\t// Create an Intent to launch an Activity for the tab\n\t\tintent = new Intent().setClass(this, Android2eeWebSTI.class);\n\n\t\t// Initialize a TabSpec for each tab and add it to the TabHost\n\t\t// Get a new TabHost.TabSpec associated with this tab host.\n\t\ttabSpec = tabHost.newTabSpec(\"Android2ee\");\n\t\t// Define its indicator the label displayed (it should be\n\t\t// ressources.getString(R.string.stringId)\n\t\ttabSpec.setIndicator(\"Android2EE\", resources.getDrawable(R.drawable.ic_tab));\n\t\t// Define the content of the Spec (the TabPanel)\n\t\ttabSpec.setContent(intent);\n\t\t// Add it to the tab container\n\t\ttabHost.addTab(tabSpec);\n\n\t\t// Do the same with the tab that displays a simple TextView:\n\t\t// Define the intent that will be displayed\n\t\tintent = new Intent().setClass(this, TextViewActivity.class);\n\t\t// Get a new TabHost.TabSpec associated with this tab host.\n\t\ttabSpec = tabHost.newTabSpec(\"textView\");\n\t\t// Define its indicator the label displayed (it should be\n\t\t// ressources.getString(R.string.stringId)\n\t\ttabSpec.setIndicator(\"TextView\", resources.getDrawable(R.drawable.ic_tab));\n\t\t// Define the content of the Spec (the TabPanel)\n\t\ttabSpec.setContent(intent);\n\t\t// Add it to the tab container\n\t\ttabHost.addTab(tabSpec);\n\t\t\n\t\t// Do the same with the tab that displays a simple Clock (analogic and digital):\n\t\t// Define the intent that will be displayed\n\t\tintent = new Intent().setClass(this, ClockAD.class);\n\t\t// Get a new TabHost.TabSpec associated with this tab host.\n\t\ttabSpec = tabHost.newTabSpec(\"clock\");\n\t\t// Define its indicator the label displayed\n\t\ttabSpec.setIndicator(\"Clock\", resources.getDrawable(R.drawable.ic_tab));\n\t\t// Define the content of the Spec (the TabPanel)\n\t\ttabSpec.setContent(intent);\n\t\t// Add it to the tab container\n\t\ttabHost.addTab(tabSpec);\n\t\t\n\t\t\n\t\t//Define the current tab displayed (here the clock)\n\t\ttabHost.setCurrentTab(2);\n\t\t//Add a listener that just displays a Toast with the tag of the new selected tab\n\t\ttabHost.setOnTabChangedListener(new OnTabChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onTabChanged(String tabId) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"New tab selection : \" + tabHost.getCurrentTabTag(),\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n getWindow().setFormat(PixelFormat.RGBA_8888);\n\n setContentView(R.layout.tab_bottom);\n mTabHost = getTabHost();\n setupTabs();\n }", "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}" ]
[ "0.76017267", "0.75399333", "0.7514804", "0.74389565", "0.71410626", "0.70831317", "0.7051126", "0.7026563", "0.6922583", "0.6919184", "0.68941253", "0.6781942", "0.67418927", "0.670936", "0.66653097", "0.6564341", "0.655465", "0.65441394", "0.6530658", "0.65213555", "0.6474843", "0.6457544", "0.64502454", "0.64499974", "0.6385623", "0.6385128", "0.6361619", "0.6355404", "0.6340005", "0.6329544", "0.63203514", "0.6293047", "0.6274503", "0.62700015", "0.6248379", "0.62370926", "0.62170655", "0.6216918", "0.6211959", "0.62065977", "0.6178207", "0.616396", "0.61536723", "0.6147367", "0.614188", "0.61313623", "0.6129461", "0.61139345", "0.61125374", "0.61110765", "0.60704464", "0.6049709", "0.6045349", "0.60436743", "0.6043253", "0.60298675", "0.60249597", "0.6021304", "0.6012412", "0.6010767", "0.6009376", "0.60066235", "0.5999459", "0.59901243", "0.5989709", "0.59860665", "0.598568", "0.5979739", "0.5978415", "0.5972306", "0.59721476", "0.59676164", "0.59632784", "0.5955106", "0.59548676", "0.5946478", "0.594159", "0.59363073", "0.5936298", "0.5931547", "0.59283555", "0.5927317", "0.5925173", "0.5919686", "0.5916904", "0.5914628", "0.5907738", "0.590391", "0.59009063", "0.58985764", "0.5866847", "0.58647317", "0.5848266", "0.5844876", "0.584459", "0.5834231", "0.5830301", "0.58274966", "0.58260226", "0.5823776" ]
0.7104117
5
Creates the tab view.
private TabView createTabView(ActionBar.Tab tab, boolean forAdapter) { // Workaround for not being able to pass a defStyle on pre-3.0 final TabView tabView = (TabView) mInflater.inflate( R.layout.abs__action_bar_tab, null); tabView.init(this, tab, forAdapter); if (forAdapter) { tabView.setBackgroundDrawable(null); tabView.setLayoutParams(new ListView.LayoutParams( android.view.ViewGroup.LayoutParams.MATCH_PARENT, mContentHeight)); } else { tabView.setFocusable(true); if (mTabClickListener == null) { mTabClickListener = new TabClickListener(); } tabView.setOnClickListener(mTabClickListener); } return tabView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createView() {\n\t\tTabWidget tWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tshowLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView = (ImageView) showLayout.getChildAt(0);\r\n\t\tTextView textView = (TextView) showLayout.getChildAt(1);\r\n\t\timageView.setImageResource(R.drawable.main_selector);\r\n\t\ttextView.setText(R.string.show);\r\n\r\n\t\taddLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView1 = (ImageView) addLayout.getChildAt(0);\r\n\t\tTextView textView1 = (TextView) addLayout.getChildAt(1);\r\n\t\timageView1.setImageResource(R.drawable.add_selector);\r\n\t\ttextView1.setText(R.string.add_record);\r\n\r\n\t\tchartLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView2 = (ImageView) chartLayout.getChildAt(0);\r\n\t\tTextView textView2 = (TextView) chartLayout.getChildAt(1);\r\n\t\timageView2.setImageResource(R.drawable.chart_selector);\r\n\t\ttextView2.setText(R.string.chart_show);\r\n\t}", "private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = tabbedPane.getToolTipTextAt(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (currentFile.isEmpty()) {\t//file not yet saved\r\n\t\t\t\tcurrentFile = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetTitle(currentFile + \" - JNotepad++\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJTextArea current = getSelectedTextArea();\r\n\t\t\tif (current == null) return;\r\n\t\t\tCaretListener[] listeners = current.getCaretListeners();\r\n\t\t\tlisteners[0].caretUpdate(new CaretEvent(current) {\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Serial UID.\r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getMark() {\r\n\t\t\t\t\treturn 0;\t//not used\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getDot() {\r\n\t\t\t\t\treturn current.getCaretPosition();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tcreateSingleTab(null, null);\r\n\t\tgetContentPane().add(tabbedPane, BorderLayout.CENTER);\t\r\n\t}", "private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }", "public void onCreateTabClicked(View view) {\n if (mAdapter.isEmpty()) {\n Toast.makeText(this, R.string.you_must_create_at_least_one_tab, Toast.LENGTH_LONG).show();\n return;\n }\n ArrayList<TabInformation> list = new ArrayList<>(mAdapter.getTabInformation());\n startActivity(new Intent(this, DisplayTabsActivity.class).putExtra(TAB_CONTENT, list));\n }", "private void setupTab(final View view, final String tag) {\r\n\t\tView tabview = createTabView(mTabHost.getContext(), tag);\r\n\r\n\t\tTabSpec setContent = mTabHost.newTabSpec(tag).setIndicator(tabview)\r\n\t\t\t\t.setContent(new TabContentFactory() {\r\n\t\t\t\t\tpublic View createTabContent(String tag) {\r\n\t\t\t\t\t\tView view;\r\n\t\t\t\t\t\tif (tag.contains(\"EXTENDED\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_2_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedNO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET1);\r\n\t\t\t\t\t\t\tedNIO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET2);\r\n\t\t\t\t\t\t\tedNP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET3);\r\n\t\t\t\t\t\t\tedNIP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET4);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tedNO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNP.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIP.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tNO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB1);\r\n\t\t\t\t\t\t\tNIO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB2);\r\n\t\t\t\t\t\t\tNP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB3);\r\n\t\t\t\t\t\t\tNIP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB4);\r\n\t\t\t\t\t\t\tNO.setEnabled(false); \r\n\t\t\t\t\t\t\tNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tNP.setEnabled(false);\r\n\t\t\t\t\t\t\tNIP.setEnabled(false);\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\textended = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB0);\r\n\t\t\t\t\t\t\textended.setOnClickListener(S3R4Listener2);\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} else if (tag.contains(\"CUSTOM\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_3_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_1_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedlevels = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET1);\r\n\t\t\t\t\t\t\tedSons = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET2);\r\n\t\t\t\t\t\t\tedlevel = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET3);\r\n\t\t\t\t\t\t\tedpruduct = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET4);\r\n\t\t\t\t\t\t\tedcampaign = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET5);\r\n\t\t\t\t\t\t\tedadd = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET6);\r\n\t\t\t\t\t\t\tedlevels.setEnabled(false);\r\n\t\t\t\t\t\t\tedSons.setEnabled(false);\r\n\t\t\t\t\t\t\tedlevel.setEnabled(false);\r\n\t\t\t\t\t\t\tedpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tedcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tedadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlevel= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB3);\r\n\t\t\t\t\t\t\tpruduct= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB4);\r\n\t\t\t\t\t\t\tcampaign= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB5);\r\n\t\t\t\t\t\t\tadd= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB6);\r\n\t\t\t\t\t\t\tlevel.setEnabled(false); \r\n\t\t\t\t\t\t\tpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\tStructure = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB1);\r\n\t\t\t\t\t\t\tRules = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB2);\r\n\t\t\t\t\t\t\tStructure.setOnClickListener(S3R4Listener);\r\n\t\t\t\t\t\t\tRules.setOnClickListener(S3R4Listener);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn view;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\tmTabHost.addTab(setContent);\r\n\r\n\t}", "private VTabSheet initTabLayout() {\r\n VTabSheet tabs = new VTabSheet();\r\n Map<Component, Integer> tabComponentMap = new HashMap<Component, Integer>();\r\n Binder<Report> binder = new Binder<>(Report.class);\r\n fireEventTypeComponent = new FireEventTypeDataTab(report,userNeedToPrepare, binder, tabComponentMap);\r\n boolean basicEditRight = !report.getStatus().equals(ReportStatus.APPROVED) && (organizationIsCreator || userNeedToPrepare);\r\n tabs.addTab(getTranslation(\"reportView.tab.basicData.label\"), new ReportBasicDataTab(report, binder, basicEditRight, tabComponentMap, addressServiceRef.get(), this));\r\n tabs.addTab(getTranslation(\"reportView.tab.forcesData.label\"), new ReportForcesTab(report, userNeedToPrepare, organizationServiceRef.get(), vechileServiceRef.get(), reportServiceRef.get()));\r\n fireEventTab = tabs.addTab(getTranslation(\"reportView.tab.fireEventData.label\"), fireEventTypeComponent);\r\n tabs.addTab(getTranslation(\"reportView.tab.authorizationData.label\"), new ReportAuthorizationTab(report, binder, userNeedToPrepare, (userNeedToPrepare || userNeedToApprove), tabs, tabComponentMap, organizationServiceRef.get(), reportServiceRef.get(), notificationServiceRef.get()));\r\n return tabs;\r\n }", "public CreateTab(PetriDishApp app) {\r\n\t\tsetText(\"Create\");\r\n\t\tsetClosable(false);\r\n\r\n\t\t// organized in a single VBox\r\n\t\tVBox createTabBox = new VBox();\r\n\t\tcreateTabBox.setPadding(new Insets(10, 5, 10, 5));\r\n\t\tcreateTabBox.setSpacing(10);\r\n\t\tcreateTabBox.setAlignment(Pos.TOP_CENTER);\r\n\t\tsetContent(createTabBox);\r\n\t\t// done setting up box\r\n\r\n\t\t// organized into HBoxes, with separators\r\n\t\tcreateTabBox.getChildren().add(new Separator());\r\n\t\t// each section labeled\r\n\t\tcreateTabBox.getChildren().add(new Label(\"New Simulation Size\"));\r\n\r\n\t\tHBox topBox = new HBox();\r\n\t\tcreateTabBox.getChildren().add(topBox);\r\n\t\ttopBox.setSpacing(10);\r\n\t\ttopBox.setAlignment(Pos.CENTER_LEFT);\r\n\r\n\t\tcreateTabBox.getChildren().add(new Separator());\r\n\t\tcreateTabBox.getChildren().add(new Label(\"New Simulation Cell Pops\"));\r\n\r\n\t\tHBox secondBox = new HBox();\r\n\t\tcreateTabBox.getChildren().add(secondBox);\r\n\t\tsecondBox.setSpacing(10);\r\n\t\tsecondBox.setAlignment(Pos.CENTER_LEFT);\r\n\r\n\t\tcreateTabBox.getChildren().add(new Separator());\r\n\t\t// finished setting up organization\r\n\r\n\t\t// begin adding GUI elements to their HBoxes\r\n\r\n\t\t// width input box\r\n\t\tBoundedIntField simDimWidthMsg = new BoundedIntField(PetriDishApp.MIN_PETRI_DISH_DIM,\r\n\t\t\t\tPetriDishApp.MAX_PETRI_DISH_DIM);\r\n\t\tsimDimWidthMsg.setMaxWidth(75);\r\n\r\n\t\tsimDimWidthMsg.integerProperty().bindBidirectional(app.newSimulationWidth);\r\n\r\n\t\t// height input box\r\n\t\tBoundedIntField simDimHeightMsg = new BoundedIntField(PetriDishApp.MIN_PETRI_DISH_DIM,\r\n\t\t\t\tPetriDishApp.MAX_PETRI_DISH_DIM);\r\n\t\tsimDimHeightMsg.setMaxWidth(75);\r\n\r\n\t\tsimDimHeightMsg.integerProperty().bindBidirectional(app.newSimulationHeight);\r\n\r\n\t\ttopBox.getChildren().add(simDimWidthMsg);\r\n\t\ttopBox.getChildren().add(simDimHeightMsg);\r\n\r\n\t\t// input fields for starting cell populations\r\n\t\t\r\n\t\t// agar\r\n\t\tBoundedIntField simAgarPopMsg = new BoundedIntField();\r\n\t\tsimAgarPopMsg.setMaxWidth(50);\r\n\r\n\t\tsimAgarPopMsg.integerProperty().bindBidirectional(app.newSimulationAgarPop);\r\n\t\t\r\n\t\t// grazer\r\n\t\tBoundedIntField simGrazerPopMsg = new BoundedIntField();\r\n\t\tsimGrazerPopMsg.setMaxWidth(50);\r\n\r\n\t\tsimGrazerPopMsg.integerProperty().bindBidirectional(app.newSimulationGrazerPop);\r\n\t\t\r\n\t\t// pred\r\n\t\tBoundedIntField simPredPopMsg = new BoundedIntField();\r\n\t\tsimPredPopMsg.setMaxWidth(50);\r\n\r\n\t\tsimPredPopMsg.integerProperty().bindBidirectional(app.newSimulationPredPop);\r\n\t\t\r\n\t\t// plant\r\n\t\tBoundedIntField simPlantPopMsg = new BoundedIntField();\r\n\t\tsimPlantPopMsg.setMaxWidth(50);\r\n\r\n\t\tsimPlantPopMsg.integerProperty().bindBidirectional(app.newSimulationPlantPop);\r\n\t\t\r\n\t\t// add those input boxes to the second box\r\n\t\t// with their own labels in VBoxes\r\n\t\t\r\n\t\tArrayList<VBox> labelContainers = new ArrayList<VBox>();\r\n\t\t\r\n\t\t// make the boxes\r\n\t\t\r\n\t\tVBox simAgarPopMsgContainer = new VBox();\r\n\t\tVBox simGrazerPopMsgContainer = new VBox();\r\n\t\tVBox simPredPopMsgContainer = new VBox();\r\n\t\tVBox simPlantPopMsgContainer = new VBox();\r\n\t\t\r\n\t\t// configure the boxes\r\n\t\t\r\n\t\tlabelContainers.add(simAgarPopMsgContainer);\r\n\t\tlabelContainers.add(simGrazerPopMsgContainer);\r\n\t\tlabelContainers.add(simPredPopMsgContainer);\r\n\t\tlabelContainers.add(simPlantPopMsgContainer);\r\n\t\t\r\n\t\tfor (VBox v : labelContainers) {\r\n\t\t\tv.setPadding(new Insets(10, 5, 10, 5));\r\n\t\t\tv.setSpacing(10);\r\n\t\t\tv.setAlignment(Pos.TOP_CENTER);\r\n\t\t}\r\n\t\t\r\n\t\tsimAgarPopMsgContainer.getChildren().add(new Label(\"Agar\"));\r\n\t\tsimAgarPopMsgContainer.getChildren().add(simAgarPopMsg);\r\n\t\t\r\n\t\tsimGrazerPopMsgContainer.getChildren().add(new Label(\"Grazer\"));\r\n\t\tsimGrazerPopMsgContainer.getChildren().add(simGrazerPopMsg);\r\n\t\t\r\n\t\tsimPredPopMsgContainer.getChildren().add(new Label(\"Predator\"));\r\n\t\tsimPredPopMsgContainer.getChildren().add(simPredPopMsg);\r\n\t\t\r\n\t\tsimPlantPopMsgContainer.getChildren().add(new Label(\"Plant\"));\r\n\t\tsimPlantPopMsgContainer.getChildren().add(simPlantPopMsg);\r\n\t\t\r\n\t\tfor (VBox v : labelContainers) {\r\n\t\t\tsecondBox.getChildren().add(v);\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public void Create() {\n\n initView();\n }", "private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}", "private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\t\tshell.setLayout(new FillLayout(SWT.HORIZONTAL));\r\n\t\t\r\n\t\tfinal TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\r\n\t\ttabFolder.setToolTipText(\"\");\r\n\t\t\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"欢迎使用\");\r\n\t\t\r\n\t\tTabItem tabItem_1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem_1.setText(\"员工查询\");\r\n\t\t\r\n\t\tMenu menu = new Menu(shell, SWT.BAR);\r\n\t\tshell.setMenuBar(menu);\r\n\t\t\r\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\r\n\t\tmenuItem.setText(\"系统管理\");\r\n\t\t\r\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.CASCADE);\r\n\t\tmenuItem_1.setText(\"员工管理\");\r\n\t\t\r\n\t\tMenu menu_1 = new Menu(menuItem_1);\r\n\t\tmenuItem_1.setMenu(menu_1);\r\n\t\t\r\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\r\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tTabItem tbtmNewItem = new TabItem(tabFolder,SWT.NONE);\r\n\t\t\t\ttbtmNewItem.setText(\"员工查询\");\r\n\t\t\t\t//创建自定义组件\r\n\t\t\t\tEmpQueryCmp eqc = new EmpQueryCmp(tabFolder, SWT.NONE);\r\n\t\t\t\t//设置标签显示的自定义组件\r\n\t\t\t\ttbtmNewItem.setControl(eqc);\r\n\t\t\t\t\r\n\t\t\t\t//选中当前标签页\r\n\t\t\t\ttabFolder.setSelection(tbtmNewItem);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tmenuItem_2.setText(\"员工查询\");\r\n\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View root = inflater.inflate(R.layout.fragment_trips, container, false);\n FragmentTabHost tabHost = root.findViewById(android.R.id.tabhost);\n tabHost.setup(getActivity(), getChildFragmentManager(), android.R.id.tabcontent);\n\n Bundle arg1 = new Bundle();\n arg1.putString(ListTripsFragment.TRIP_TYPE_KEY, \"Confirmed\");\n tabHost.addTab(tabHost.newTabSpec(\"ConfirmedTab\").setIndicator(\"Confirmed\"),\n ListTripsFragment.class, arg1);\n\n Bundle arg2 = new Bundle();\n arg2.putString(ListTripsFragment.TRIP_TYPE_KEY, \"Pending\");\n tabHost.addTab(tabHost.newTabSpec(\"PendingTab\").setIndicator(\"Pending\"),\n ListTripsFragment.class, arg2);\n\n Bundle arg3 = new Bundle();\n arg3.putString(ListTripsFragment.TRIP_TYPE_KEY, \"Posted\");\n tabHost.addTab(tabHost.newTabSpec(\"PostedTab\").setIndicator(\"Posted\"),\n ListTripsFragment.class, arg3);\n\n return root;\n }", "@Override\r\n protected Control createContents( final Composite parent ) {\r\n TabFolder folder = new TabFolder( parent, SWT.NONE );\r\n\r\n Tab appearanceTab = new AppearanceTab( overlayStore );\r\n createTab( folder, \"Appeara&nce\", appearanceTab.createControl( folder ) );\r\n\r\n Tab syntaxTab = new SyntaxTab( overlayStore );\r\n createTab( folder, \"Synta&x\", syntaxTab.createControl( folder ) );\r\n\r\n Tab annotationsTab = new AnnotationsTab( overlayStore );\r\n createTab( folder, \"Annotation&s\", annotationsTab.createControl( folder ) );\r\n\r\n Tab typingTab = new TypingTab( overlayStore );\r\n createTab( folder, \"T&yping\", typingTab.createControl( folder ) );\r\n\r\n return folder;\r\n }", "public Scene createScene() {\n\t\tmyRoot = new AnchorPane();\n\t\tmyTabs = new TabPane();\n\t\tButton newTab = new Button(CREATE_NEW_TAB);\n\t\tnewTab.setOnAction(event -> createNewTab());\n\t\t\n\t\tTabMainScreen mainScreen = new TabMainScreen(myResources.getString(WORKSPACE) + (myTabs.getTabs().size()));\n\t\tTabHelp help1 = new TabHelp(myResources.getString(BASIC_COMMANDS), HELP_TAB_TEXT1);\n\t\tTabHelp help2 = new TabHelp(myResources.getString(EXTENDED_COMMANDS), HELP_TAB_TEXT2);\n\t\t\n\t\tmyTabs.getTabs().addAll(mainScreen.getTab(myStage), help1.getTab(), help2.getTab());\n\t\t\n\t\tAnchorPane.setTopAnchor(myTabs, TABS_OFFSET);\n\t\tAnchorPane.setTopAnchor(newTab, NEWTAB_OFFSET);\n\t\t\n\t\tmyRoot.getChildren().addAll(myTabs, newTab);\n\t\n\t\tmyScene = new Scene(myRoot, windowHeight, windowWidth, Color.WHITE);\n\t\treturn myScene;\n\t}", "private void createTabFolder() {\r\n\t\tGridData gridData1 = new GridData();\r\n\t\tgridData1.grabExcessHorizontalSpace = true;\r\n\t\tgridData1.heightHint = 500;\r\n\t\tgridData1.grabExcessVerticalSpace = true;\r\n\t\tgridData1.verticalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;\r\n\t\tgridData1.widthHint = 600;\r\n\t\ttabFolder = new TabFolder(sShell, SWT.NONE);\r\n\t\ttabFolder.setLayoutData(gridData1);\r\n\t\tcreateCompositeRoomMange();\r\n\t\tcreateCompositeGoodsMange();\r\n\t\tcreateCompositeStaffMange();\r\n\t\tcreateCompositeUserMange();\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"房间管理\");\r\n\t\ttabItem.setControl(compositeRoomMange);\r\n\t\tTabItem tabItem1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem1.setText(\"商品管理\");\r\n\t\ttabItem1.setControl(compositeGoodsMange);\r\n\t\tTabItem tabItem2 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem2.setText(\"员工管理\");\r\n\t\ttabItem2.setControl(compositeStaffMange);\r\n\t\tTabItem tabItem3 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem3.setText(\"系统用户管理\");\r\n\t\ttabItem3.setControl(compositeUserMange);\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_tab_nd, container, false);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\n\t\ttabHost = getTabHost();\n\t\t\n\t\tcreateTab(\"abaHistorico\", \"histórico\", new Intent(getApplicationContext(), HistoricoList.class));\n\t\tcreateTab(\"abaLivro\", \"livros\", new Intent(getApplicationContext(), LivroList.class));\n\t\tcreateTab(\"abaBusca\", \"buscar\", new Intent(getApplicationContext(), Busca.class));\n\t}", "private void createTabsDiv() {\n tabsDiv = new Block(Block.Div, \"id='tabs'\");\n page.add(tabsDiv);\n }", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootTabControl = new JTabbedPane();\n panel1.add(rootTabControl, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n }", "public KonTabbedPane() {\n // Initialize the ArrayList\n graphInterfaces = new ArrayList<DrawingLibraryInterface>();\n\n DirectedGraph<String, DefaultEdge> graph = CreateTestGraph();\n\n /*\n * Adds a tab\n */\n DrawingLibraryInterface<String, DefaultEdge> graphInterface =\n DrawingLibraryFactory.createNewInterface(graph);\n \n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n addTab(\"First Tab\", graphInterface.getPanel());\n\n /*\n * Adds a tab\n */\n graphInterface = DrawingLibraryFactory.createNewInterface(graph);\n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n\n graphInterface.getGraphManipulationInterface().highlightNode(graph\n .vertexSet().iterator().next(), true);\n\n addTab(\"Second Tab\", graphInterface.getPanel());\n }", "private void setupTabLayout() {\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n });\n tabLayout.getTabAt(0).select();\n View root = tabLayout.getChildAt(0);\n //create divider between the tabs\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColorFilter(0xffff0000, PorterDuff.Mode.MULTIPLY);\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n adapter = new ViewPagerAdapter(getChildFragmentManager(),Titles,Numboftabs);\n\n // Assigning ViewPager View and setting the adapter\n pager = (ViewPager) getView().findViewById(R.id.pager);\n pager.setAdapter(adapter);\n\n // Assiging the Sliding Tab Layout View\n tabs = (SlidingTabLayout) getView().findViewById(R.id.tabs);\n tabs.setDistributeEvenly(true); // To make the Tabs Fixed set this true, This makes the tabs Space Evenly in Available width\n\n // Setting Custom Color for the Scroll bar indicator of the Tab View\n tabs.setCustomTabColorizer(new SlidingTabLayout.TabColorizer() {\n @Override\n public int getIndicatorColor(int position) {\n return getResources().getColor(R.color.tabsScrollColor);\n }\n });\n\n // Setting the ViewPager For the SlidingTabsLayout\n tabs.setViewPager(pager);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_tabbed, container, false);\n\n ButterKnife.bind(this, root);\n\n PagerAdapter adapter = new PagerAdapter(\n getActivity().getSupportFragmentManager(),\n PreviousProjectFragment.class,\n CurrentProjectFragment.class\n );\n adapter.setTitles(getString(R.string.completed), getString(R.string.ongoing));\n viewPager.setAdapter(adapter);\n\n tabLayout.setupWithViewPager(viewPager);\n\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_list, container, false);\n Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar);\n\n //for crate home button\n AppCompatActivity activity = (AppCompatActivity) getActivity();\n activity.setSupportActionBar(toolbar);\n tabLayout = (TabLayout) view.findViewById(R.id.display_tabs);\n tabLayout.addTab(tabLayout.newTab());\n tabLayout.addTab(tabLayout.newTab());\n tabLayout.addTab(tabLayout.newTab());\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n\n viewPager = (ViewPager) view.findViewById(R.id.display_pager);\n PagerAdapter pagerAdapter = new PagerAdapter(getFragmentManager(), tabLayout.getTabCount());\n viewPager.setAdapter(pagerAdapter);\n tabLayout.setupWithViewPager(viewPager);\n return view;\n\n }", "public TabPane createTabPane(TableauFrame parent) {\n\t\t\tTabPaneExtensionExample tpee = new TabPaneExtensionExample();\n\n\t\t\t/*\n\t\t\t * Optionally you can create a method called setTabName and use the\n\t\t\t * \"name\" value from the configuration.xml file by calling\n\t\t\t * this.getName(). For Example if you have <property\n\t\t\t * name=\"randomTestTab\"\n\t\t\t * class=\"org.kepler.gui.TabPaneExtensionExample$Factory\" /> in\n\t\t\t * configuration.xml then the name of the tab in the GUI becomes\n\t\t\t * randomTestTab\n\t\t\t */\n\t\t\ttpee.setTabName(this.getName());\n\n\t\t\treturn tpee;\n\t\t}", "@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tComposite top = new Composite(parent, SWT.NONE);\n\t\tFillLayout layout = new FillLayout(SWT.HORIZONTAL);\n\t\tlayout.marginHeight = 10;\n\t\ttop.setLayout(layout);\n\n\t\t// TabFolder\n\t\tCTabFolder tabFolder = new CTabFolder(top, SWT.BORDER);\n\t\ttabFolder.setSelectionBackground(Display.getCurrent().getSystemColor(\n\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\tGridLayout tabLayout = new GridLayout();\n\t\ttabLayout.marginHeight = 10;\n\t\ttabLayout.marginWidth = 10;\n\t\ttabLayout.verticalSpacing = 20;\n\t\ttabLayout.numColumns = 1;\n\t\ttabFolder.setLayout(tabLayout);\n\n\t\tnew MQTTTab(tabFolder, SWT.NONE, connection, eventService);\n\n\t\t// Tab Options\n\t\tnew OptionsTab(tabFolder, SWT.NONE, connection);\n\n\t\t// select the first tab by default\n\t\ttabFolder.setSelection(0);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View itemView= inflater.inflate(R.layout.fragment_home, container, false);\n initTab(itemView);\n return itemView;\n }", "private static View createTabView(final Context context, final String text) {\r\n\t\tView view;\r\n\t\tview = LayoutInflater.from(context).inflate(\r\n\t\t\t\tR.layout.generic_tabs_custom_layout, null);\r\n\t\tTextView tv = (TextView) view.findViewById(R.id.tabsText);\r\n\t\ttv.setText(text);\r\n\t\treturn view;\r\n\t}", "private IcsLinearLayout createTabLayout() {\n\t\tfinal IcsLinearLayout tabLayout = (IcsLinearLayout) LayoutInflater\n\t\t\t\t.from(getContext()).inflate(\n\t\t\t\t\t\tR.layout.abs__action_bar_tab_bar_view, null);\n\t\ttabLayout.setMeasureWithLargestChildEnabled(true);\n\t\ttabLayout.setLayoutParams(new LinearLayout.LayoutParams(\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT,\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.MATCH_PARENT));\n\t\treturn tabLayout;\n\t}", "public TabPaneLike(TabSide side, TabLabelCreator tabLabelCreator){\n BorderPane bp = new BorderPane();\n\n this.tabLabelCreator = tabLabelCreator;\n\n getChildren().add(bp);\n\n bp.maxWidthProperty().bind(widthProperty());\n bp.minWidthProperty().bind(widthProperty());\n bp.prefWidthProperty().bind(widthProperty());\n\n bp.maxHeightProperty().bind(heightProperty());\n bp.minHeightProperty().bind(heightProperty());\n bp.prefHeightProperty().bind(heightProperty());\n\n\n tabContent = new StackPane();\n tabs = new LinkedList<>();\n\n switch(side){\n case TOP -> {\n nameTab = new HBox();\n tabLabelCreator.setHeights(nameTab);\n bp.setTop(nameTab);\n }\n case BOTTOM -> {\n nameTab = new HBox();\n tabLabelCreator.setHeights(nameTab);\n bp.setBottom(nameTab);\n }\n case RIGHT -> {\n nameTab = new VBox();\n tabLabelCreator.setWidths(nameTab);\n bp.setRight(nameTab);\n }\n case LEFT -> {\n nameTab = new VBox();\n tabLabelCreator.setWidths(nameTab);\n bp.setLeft(nameTab);\n }\n default -> nameTab = new VBox();\n\n }\n\n bp.setCenter(tabContent);\n\n nameTab.setStyle(\"-fx-background-color: lightgrey\");\n }", "private void setupTabs() {\n }", "private void initView() {\n\t\tmTabHost = (AnimationTabHost) findViewById(android.R.id.tabhost);\n\t\tmTabWidget = (TabWidget) findViewById(android.R.id.tabs);\n\t\tmTabHost.setOnTabChangedListener(this);\n\n\t\tsetIndicator(R.drawable.tab_recommend, 0, new Intent(this,\n\t\t\t\tRecommendActivity.class), R.string.recommend);\n\t\tsetIndicator(R.drawable.tab_channel, 1, new Intent(this,\n\t\t\t\tChannelActivity.class), R.string.channel);\n//\t\tsetIndicator(R.drawable.tab_search, 2, new Intent(this,\n//\t\t\t\tSearchActivity.class), R.string.search);\n\t\tsetIndicator(R.drawable.tab_personal, 3, new Intent(this,\n\t\t\t\tPersonalActivity.class), R.string.peraonal);\n\n\t\tmTabHost.setOpenAnimation(true);\n\n\n\t}", "@Override\n\tpublic void onViewCreated(View view, Bundle savedInstanceState)\n {\n\t\tsuper.onViewCreated(view, savedInstanceState);\n\t\t\n\t\tfinal RuntimeApplication runtimeApp = new RuntimeApplication();\n// \t\t\t(RuntimeApplication) this.getActivity().getApplication();\n\t\t\n\t\tfinal int color;\n\t\tif(runtimeApp.switcher!=null)\n\t\tcolor= runtimeApp.switcher.getSelectedColorSwitcher();\n\t\telse color = Color.parseColor(\"#ffffff\");\n\t\tString[] tabNames = {\"Near\", \"Featured\", \"Price\"};\n TabHeader tabHeader = (TabHeader) this.getActivity().findViewById(R.id.tabHeader);\n tabHeader.setOnTabHeaderListener(this);\n tabHeader.setTab(tabNames, R.layout.tab_entry, R.id.btnTab, LayoutConfig.INNER_TAB_WEIGHT);\n \n // set the empty view colors when the list doesnt show any data.\n TextView emptyView = (TextView) this.getActivity().findViewById(R.id.tvEmpty);\n TextTint.tintTextView(this.getActivity(), emptyView, color);\n \n \n createSlider(runtimeApp.globalEntryListSlider);\n if(runtimeApp.globalEntryListApartments!=null)\n if(runtimeApp.globalEntryListApartments.size() == 0)\n {\n \tdownloadApartmentsData();\n }\n else\n {\n \ttabHeader.setSelectedTab(selectedIndex);\n \tsetListDataTab(runtimeApp.globalEntryListApartments, selectedIndex);\n } \n }", "private void setTabLayout() {\n View view = LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n TextView title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n ImageView imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.MOVIES);\n imgIcon.setImageResource(R.mipmap.ic_home);\n mTabLayout.getTabAt(0).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n count = (TextView) view.findViewById(R.id.item_tablayout_count_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.FAVOURITE);\n imgIcon.setImageResource(R.mipmap.ic_favorite);\n count.setVisibility(View.VISIBLE);\n mTabLayout.getTabAt(1).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.SETTINGS);\n imgIcon.setImageResource(R.mipmap.ic_settings);\n mTabLayout.getTabAt(2).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.ABOUT);\n imgIcon.setImageResource(R.mipmap.ic_info);\n mTabLayout.getTabAt(3).setCustomView(view);\n }", "View createView();", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.tabs_fragment, container, false);\n ViewPager viewPager = rootView.findViewById(R.id.categories_view_pager);\n FragmentViewPagerAdapter adapter = new FragmentViewPagerAdapter(getChildFragmentManager());\n\n adapter.addFragments(new Education_FirstTab(), getString(R.string.education_tab1));\n adapter.addFragments(new Education_SecondTab(), getString(R.string.education_tab2));\n\n viewPager.setAdapter(null);\n viewPager.setAdapter(adapter);\n\n TabLayout tabs = rootView.findViewById(R.id.tab_layout);\n tabs.setupWithViewPager(viewPager);\n\n return rootView;\n\n }", "private void createView(Tab tab, VMFile file, PostProcessHandler handler) {\n editResourceService.getFileContent(file.getId(), new AsyncCallback<byte[]>() {\n\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(byte[] result) {\n BinaryResourceImpl r = new BinaryResourceImpl();\n ByteArrayInputStream bi = new ByteArrayInputStream(result);\n AbstractRootElement root = null;\n try {\n if (file.getExtension() != Extension.TXT && file.getExtension() != Extension.LSC && file.getExtension() != Extension.CSC) {\n r.load(bi, EditOptions.getDefaultLoadOptions());\n root = (AbstractRootElement) r.getContents().get(0);\n }\n } catch (IOException e) {\n SC.warn(e.getMessage());\n }\n Editor editor;\n if (file.getExtension() == null) {\n editor = new TextEditor(tab, file, editResourceService);\n editor.create();\n } else\n switch (file.getExtension()) {\n\n case ARC:\n editor = new ARCEditor((ARCRoot) root, projectId, editResourceService);\n editor.create();\n clickNewStateMachine((ARCEditor) editor, file);\n clickOpenFile((ARCEditor) editor);\n break;\n case FM:\n editor = new FMEditor((FMRoot) root, projectId, file.getId(), editResourceService);\n editor.create();\n clickOpenFile((FMEditor) editor);\n clickCreateChildModel((FMEditor) editor, file);\n setFileNameToReferenceNode((FMEditor) editor);\n break;\n case FMC:\n editor = new FMCEditor((FMCRoot) root, file.getId(), projectId, editResourceService);\n editor.create();\n break;\n case FSM:\n editor = new FSMEditor((FSMDStateMachine) root, file.getId());\n editor.create();\n break;\n case SCD:\n editor = new SCDEditor((SCDRoot) root, tab, projectId, ModelingProjectView.this, editResourceService);\n editor.create();\n clickOpenFile((SCDEditor) editor);\n break;\n case SPQL:\n editor = new SPQLEditor((SPQLRoot) root, tab, projectId, editResourceService);\n editor.create();\n clickOpenFile((SPQLEditor) editor);\n break;\n case TC:\n editor = new TCEditor((TCRoot) root, projectId, file.getName(), editResourceService);\n editor.create();\n break;\n case BPS:\n editor = new BPSEditor((BPSRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case BP:\n editor = new BPEditor((BPRoot) root, projectId, file, editResourceService);\n editor.create();\n break;\n case FPS:\n editor = new TPSEditor((TPSRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case FP:\n editor = new TPViewer((TPRoot) root, projectId, file, editResourceService);\n editor.create();\n break;\n case CSC:\n editor = new CSCEditor(tab, file, editResourceService);\n editor.create();\n break;\n case SCSS:\n editor = new CBEditor((CBRoot) root, ModelingProjectView.this, projectId, file.getId(), editResourceService);\n editor.create();\n break;\n case SCS:\n editor = new SCSEditor((SCSRoot) root, ModelingProjectView.this, projectId, file, editResourceService);\n editor.create();\n break;\n case CSCS:\n editor = new CSCSEditor((CSCSRoot) root, projectId, file);\n editor.create();\n break;\n default:\n editor = new TextEditor(tab, file, editResourceService);\n editor.create();\n }\n createTabMenu(tab, editor.getSaveItem());\n clickSaveFile(editor, tab);\n\n if (editor instanceof NodeArrangeInterface) {\n NodeArrange.add((NodeArrangeInterface) editor);\n }\n tab.setPane(editor.getLayout());\n tab.setAttribute(EDITOR, editor);\n editorTabSet.addTab(tab);\n editorTabSet.selectTab(tab.getAttributeAsString(\"UniqueId\"));\n if (handler != null) {\n handler.execute();\n }\n }\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 void createTabs(){\n canvasPanel = new JPanel();\n canvasPanel.setLayout(new BorderLayout());\n canvasPanel.add(mCanvas, BorderLayout.CENTER);\n canvasPanel.setMinimumSize(new Dimension(100,50));\n \n // Create the options and properties panel\n optionPanel = new JPanel();\n optionPanel.setLayout(new FlowLayout());\n\n // Set the size\n optionPanel.setMinimumSize(new Dimension(30,30));\t\n optionPanel.setPreferredSize(new Dimension(200,10));\n\n // Create the log area\n mLogArea = new JTextArea(5,20);\n mLogArea.setMargin(new Insets(5,5,5,5));\n mLogArea.setEditable(false);\n JScrollPane logScrollPane = new JScrollPane(mLogArea);\n \n // Das SplitPanel wird in optionPanel (links) und canvasPanel (rechts) unterteilt\n JSplitPane split = new JSplitPane();\n split.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n split.setLeftComponent(canvasPanel);\n split.setRightComponent(optionPanel);\n \n JSplitPane splitLog = new JSplitPane();\n splitLog.setOrientation(JSplitPane.VERTICAL_SPLIT);\n splitLog.setBottomComponent(logScrollPane);\n splitLog.setTopComponent(split);\n splitLog.setResizeWeight(1);\n \n mMainFrame.add(splitLog, BorderLayout.CENTER); \n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tLog.e(tag,tag+\"=>onCreate \");\n\t\t// Define the Tab structure\n\t\tsetContentView(R.layout.main);\n\t\t// Retrieve the ressource to access to the icon\n\t\tResources resources = getResources(); // Resource object to get Drawables\n\t\t// Set the tabHost (set it has final to use it in the OnTabChangeListener)\n\t\tfinal TabHost tabHost = getTabHost();\n\t\t// Define the tabSpec that can be thought has the content of the TabPanel\n\t\tTabHost.TabSpec tabSpec;\n\t\t// Define the intent that is used to populate the tabSpec\n\t\tIntent intent;\n\n\t\t// Create an Intent to launch an Activity for the tab\n\t\tintent = new Intent().setClass(this, Android2eeWebSTI.class);\n\n\t\t// Initialize a TabSpec for each tab and add it to the TabHost\n\t\t// Get a new TabHost.TabSpec associated with this tab host.\n\t\ttabSpec = tabHost.newTabSpec(\"Android2ee\");\n\t\t// Define its indicator the label displayed (it should be\n\t\t// ressources.getString(R.string.stringId)\n\t\ttabSpec.setIndicator(\"Android2EE\", resources.getDrawable(R.drawable.ic_tab));\n\t\t// Define the content of the Spec (the TabPanel)\n\t\ttabSpec.setContent(intent);\n\t\t// Add it to the tab container\n\t\ttabHost.addTab(tabSpec);\n\n\t\t// Do the same with the tab that displays a simple TextView:\n\t\t// Define the intent that will be displayed\n\t\tintent = new Intent().setClass(this, TextViewActivity.class);\n\t\t// Get a new TabHost.TabSpec associated with this tab host.\n\t\ttabSpec = tabHost.newTabSpec(\"textView\");\n\t\t// Define its indicator the label displayed (it should be\n\t\t// ressources.getString(R.string.stringId)\n\t\ttabSpec.setIndicator(\"TextView\", resources.getDrawable(R.drawable.ic_tab));\n\t\t// Define the content of the Spec (the TabPanel)\n\t\ttabSpec.setContent(intent);\n\t\t// Add it to the tab container\n\t\ttabHost.addTab(tabSpec);\n\t\t\n\t\t// Do the same with the tab that displays a simple Clock (analogic and digital):\n\t\t// Define the intent that will be displayed\n\t\tintent = new Intent().setClass(this, ClockAD.class);\n\t\t// Get a new TabHost.TabSpec associated with this tab host.\n\t\ttabSpec = tabHost.newTabSpec(\"clock\");\n\t\t// Define its indicator the label displayed\n\t\ttabSpec.setIndicator(\"Clock\", resources.getDrawable(R.drawable.ic_tab));\n\t\t// Define the content of the Spec (the TabPanel)\n\t\ttabSpec.setContent(intent);\n\t\t// Add it to the tab container\n\t\ttabHost.addTab(tabSpec);\n\t\t\n\t\t\n\t\t//Define the current tab displayed (here the clock)\n\t\ttabHost.setCurrentTab(2);\n\t\t//Add a listener that just displays a Toast with the tag of the new selected tab\n\t\ttabHost.setOnTabChangedListener(new OnTabChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onTabChanged(String tabId) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"New tab selection : \" + tabHost.getCurrentTabTag(),\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t});\n\n\t}", "private void addNewTab(SingleDocumentModel model) {\n\t\tString title = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().getFileName().toString();\n\t\tImageIcon icon = createIcon(\"icons/green.png\");\n\t\tJScrollPane component = new JScrollPane(model.getTextComponent());\n\t\tString toolTip = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().toAbsolutePath().toString();\n\t\taddTab(title, icon, component, toolTip);\n\t\tsetSelectedComponent(component);\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.tab);\n\t\tTabHost th =getTabHost();\n\t\tTabSpec tab1 = (TabSpec) th.newTabSpec(\"Arrival\");\n\t TabSpec tab2 = (TabSpec) th.newTabSpec(\"Alternate\");\n\t \n\t tab1.setIndicator(\"Plan Journey\", null).setContent(\n\t new Intent(this, TrainSearchActivity.class));\n\t tab2.setIndicator(\"Alternate\", null).setContent(\n\t new Intent(this, AlternateRoute.class));\n\t \n\t th.addTab(tab1);\n\t th.addTab(tab2);\n\t \n\t}", "@Override\n\tpublic void onCreated(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.tab_download);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tab, container, false);\n\n Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar);\n AppCompatActivity activity = (AppCompatActivity) getActivity();\n activity.setSupportActionBar(toolbar);\n\n // Initializing the TabLayout\n topTap = (TabLayout) view.findViewById(R.id.tab_top);\n topTap.addTab(topTap.newTab().setText(\"DOMPET\"));\n topTap.addTab(topTap.newTab().setText(\"CASH IN\"));\n topTap.addTab(topTap.newTab().setText(\"CASH OUT\"));\n topTap.setTabGravity(TabLayout.GRAVITY_FILL);\n topTap.setTabMode(TabLayout.MODE_FIXED);\n topTap.setSelectedTabIndicatorColor(Color.YELLOW);\n\n // Initializing ViewPager\n viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n viewPager.setOffscreenPageLimit(2);\n\n // Creating TabPagerAdapter adapter\n TabPagerAdapter pagerAdapter = new TabPagerAdapter(activity.getSupportFragmentManager(), topTap.getTabCount());\n viewPager.setAdapter(pagerAdapter);\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(topTap));\n\n // Set TabSelectedListener\n topTap.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n return view;\n }", "private void initView() {\n List<Fragment> fragmentList = new ArrayList<>();\n fragmentList.add(new FourthFragment());\n fragmentList.add(new FifthFragment(imagePath));\n// set titles\n List<String> title = new ArrayList<>();\n title.add(\"第一页\");\n title.add(\"第二页\");\n// set the adapter\n viewPager.setAdapter(new FragmentPagerAdapter(getChildFragmentManager()) {\n @NonNull\n @NotNull\n @Override\n public Fragment getItem(int position) {\n return fragmentList.get(position);\n }\n\n @Override\n public int getCount() {\n return fragmentList.size();\n }\n\n @Nullable\n @org.jetbrains.annotations.Nullable\n @Override\n public CharSequence getPageTitle(int position) {\n return title.get(position);\n }\n });\n tabLayout.setupWithViewPager(viewPager);\n }", "private void createNetworksPanel() {\n\t\ttabs = new ArrayList<>();\n\t\tnetworksPanel = new JTabbedPane();\n\t\tthis.add(networksPanel, BorderLayout.CENTER);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.welcome);\n th = (TabHost) findViewById(R.id.tabHost);\n th.setup();\n th.addTab(th.newTabSpec(\"1\").setIndicator(\"eMasomo\").setContent(R.id.tab1));\n th.addTab(th.newTabSpec(\"2\").setIndicator(\"Past Papers\").setContent(R.id.tab2));\n th.addTab(th.newTabSpec(\"3\").setIndicator(\"Library\").setContent(R.id.tab3));\n th.addTab(th.newTabSpec(\"4\").setIndicator(\"Forum\").setContent(R.id.tab4));\n }", "public void openTab(String tabName){\r\n\r\n\t\tTabView selectedTabView = new TabView(this);\r\n\t\ttabViews.add(selectedTabView);\r\n\t\t\r\n\t\t\r\n\t\tif(tabName == null){ // If a new tab..\r\n\t\t\t// Ensure that there isn't already a model with that name\r\n\t\t\twhile(propertiesMemento.getTabNames().contains(tabName) || tabName == null){\r\n\t\t\t\ttabName = \"New Model \" + newModelIndex;\r\n\t\t\t\tnewModelIndex++;\r\n\t\t\t}\r\n\t\t}\r\n logger.info(\"Adding tab:\" + tabName);\r\n\r\n\t\t// Just resizes and doesn't scroll - so don't need the scroll pane\r\n\t\t/*JScrollPane scrollPane = new JScrollPane(selectedTabView, \r\n \t\t\t\t\t\t\t\t JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, \r\n \t\t\t\t\t\t\t\t JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.getVerticalScrollBar().setUnitIncrement(20);\r\n tabbedPane.addTab(tabName, scrollPane);*/\r\n\r\n\t\ttabbedPane.addTab(tabName, selectedTabView);\r\n\r\n currentView = selectedTabView;\r\n tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1);\r\n setTabName(tabName);\r\n\t\t\t\t\r\n tabbedPane.setTabComponentAt(tabbedPane.getSelectedIndex(), \r\n\t\t\t\t new TabButtonComponent(propertiesMemento.getImageDir(), this, currentView));\r\n \r\n // Add Mouse motion Listener \r\n currentView.addMouseMotionListener(currentView);\r\n currentView.addMouseListener(currentView);\r\n\r\n // Record the tab in the memento\r\n propertiesMemento.addTabRecord(tabName);\r\n \r\n setTabButtons(true);\r\n \r\n setStatusBarText(\"Ready\");\r\n\r\n requestFocusInWindow();\r\n\t}", "private void addTabs() {\n TabsPagerAdapter tabsAdapter = new TabsPagerAdapter(getSupportFragmentManager());\n viewPager = (ViewPager) findViewById(R.id.pager);\n viewPager.setAdapter(tabsAdapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabLayout);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n\n tabLayout.getTabAt(0).setIcon(R.drawable.connect);\n tabLayout.getTabAt(1).setIcon(R.drawable.speak);\n tabLayout.getTabAt(2).setIcon(R.drawable.walk);\n tabLayout.getTabAt(3).setIcon(R.drawable.camera);\n tabLayout.getTabAt(4).setIcon(R.drawable.moves);\n }", "private void initView() {\n\n LinearLayout bar = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.bottom_bar, null);\n LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\n addView(bar, lp);\n tab1= (LinearLayout) bar.findViewById(R.id.tab1);\n tab2= (LinearLayout) bar.findViewById(R.id.tab2);\n tab3= (LinearLayout) bar.findViewById(R.id.tab3);\n tab4= (LinearLayout) bar.findViewById(R.id.tab4);\n ivTab1= (ImageView) bar.findViewById(R.id.ivTab1);\n tvTab1= (TextView) bar.findViewById(R.id.tvTab1);\n ivTab2= (ImageView) bar.findViewById(R.id.ivTab2);\n tvTab2= (TextView) bar.findViewById(R.id.tvTab2);\n ivTab3= (ImageView) bar.findViewById(R.id.ivTab3);\n tvTab3= (TextView) bar.findViewById(R.id.tvTab3);\n ivTab4= (ImageView) bar.findViewById(R.id.ivTab4);\n tvTab4= (TextView) bar.findViewById(R.id.tvTab4);\n\n tab1.setOnClickListener(this);\n tab2.setOnClickListener(this);\n tab3.setOnClickListener(this);\n tab4.setOnClickListener(this);\n\n }", "void createGUI(JFrame f) {\n TabbedSplitPanel centrePanel = new TabbedSplitPanel(new JPanel(),TabbedSplitPanel.RIGHT);\n centrePanel.addMenuPanel(new MenuPanel(\"Right Menu\", new JTextArea(\"Menu panel for right tabbed split panel\"),true));\n\n TabbedSplitPanel bottomPanel = new TabbedSplitPanel(centrePanel,SplitPanel.BOTTOM);\n MenuPanel mainBottomMenuPanel = new MenuPanel(\"Main bottom menu\", new JTextArea(\"Contents of bottom menu\"), true);\n bottomPanel.addMenuPanel(mainBottomMenuPanel);\n\n // A panel with a button in it\n JPanel panel = createAMenuView();\n\n TabbedSplitPanel leftPanel = new TabbedSplitPanel(bottomPanel, SplitPanel.LEFT);\n leftPanel.addMenuPanel(new MenuPanel(\"Left1\", panel, true));\n leftPanel.addMenuPanel(new MenuPanel(\"Left2\", new JTextArea(\"Left 2 text area\"),true));\n\n // A nested TabbedSplitPanel\n TabbedSplitPanel nestedPanel = new TabbedSplitPanel(new JTextArea(\"Panel Containing a Nested panel\"),SplitPanel.BOTTOM);\n nestedPanel.addMenuPanel(new MenuPanel(\"Nested bottom menu\",new JTextArea(\"Nested menu panel\"),true));\n centrePanel.addMenuPanel(new MenuPanel(\"Nested\",nestedPanel,true));\n\n f.setContentPane(leftPanel);\n\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\t\tmContext = this;\n\n\t\tinitView();\n\n\t\tgestureDetector = new GestureDetector(new TabHostTouch());\n\t\tnew View.OnTouchListener() {\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tif (gestureDetector.onTouchEvent(event)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\tframeLayout = mTabHost.getTabContentView();\n\t}", "public AutomatedTestingTabbedPane()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\tthis.setBackground(Constants.WHITE);\r\n\t\tthis.setForeground(Constants.BLUE);\r\n\t\t\r\n\t\tthis.setFont(new Font(\"sans-serif\", Font.PLAIN, 16));\r\n\t\tthis.addTab(\"CXCParticipant\", participantPanel);\r\n\t\tthis.setMnemonicAt(0, KeyEvent.VK_1);\r\n\t\t\r\n\t\tthis.addTab(\"CXCToken\", tokenPanel);\r\n\t\tthis.setMnemonicAt(1, KeyEvent.VK_2);\r\n\t\t\r\n\t\tthis.addTab(\"CXCRecipient\", recipientPanel);\r\n\t\tthis.setMnemonicAt(2, KeyEvent.VK_3);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPayment\", paymentPanel);\r\n\t\tthis.setMnemonicAt(3, KeyEvent.VK_4);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPaymentRequest\", paymentRequestPanel);\r\n\t\tthis.setMnemonicAt(4, KeyEvent.VK_5);\r\n\t\t\r\n//\t\tthis.addTab(\"Export\", exportPanel);\r\n//\t\tthis.setMnemonicAt(5, KeyEvent.VK_6);\r\n\r\n\t}", "private void initialiseViews() {\n setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);\n bindings = DataBindingUtil.setContentView(this, R.layout.activity_catalog_product);\n bindings.activityCatalogProductPb.setVisibility(View.GONE);\n\n bindings.activityCatalogProductFab.setOnClickListener(v -> {\n\n Intent addProductIntent = new Intent(ProductCatalogMain.this,\n ProductEditor.class);\n startActivity(addProductIntent);\n\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n\n });\n\n setSupportActionBar(bindings.activityCatalogProductToolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n tabPageAdapter = new ProductCatalogFragmentPageAdapter(getSupportFragmentManager());\n tabViewPager = bindings.activityCatalogProductVp;\n tabViewPager.setAdapter(tabPageAdapter);\n\n if (bindings.activityCatalogProductVp != null) {\n setupViewPager(bindings.activityCatalogProductVp);\n }\n\n // Sets up the Tab's and their titles.\n bindings.activityCatalogProductTl.setupWithViewPager(bindings.activityCatalogProductVp);\n\n }", "public Tabs() {\n initComponents();\n }", "private void initUI() {\n\t\tStage stage = Stage.createStage();\n\n\t\tControl formPanel = buildFormTestTab();\n\n\t\tControl cellPanel = buildCellTestTab();\n\t\t\n\t\tTabPanel tabbedPane = new TabPanel();\n\t\ttabbedPane.add(\"Form Test\", formPanel);\n\t\ttabbedPane.add(\"Cell Layout Test\", cellPanel);\n\n\t\tstage.setContent(tabbedPane);\n\t}", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t// construct the tabhost\r\n\t\tsetContentView(R.layout.generic_3_tabs_layout);\r\n\r\n\t\t// -- Initialize title Bar--\r\n\t\ttitleBar = (TitleBar) findViewById(R.id.normal_activity_CV_TB1);\r\n\t\t// -- Call the methods to change the underlying widgets--\r\n\t\ttitleBar.setTitle(\"BUSINESS RULES\");\r\n\t\ttitleBar.setIcon(R.drawable.icon);\r\n\t\ttitleBar.showProgressBar();\r\n\r\n\t\t// --Prepare tabs\r\n\t\tsetupTabHost();\r\n\t\tmTabHost.getTabWidget().setDividerDrawable(R.drawable.tab_divider);\r\n\r\n\t\tsetupTab(new TextView(this), \"COMMON Rules\");\r\n\t\tsetupTab(new TextView(this), \"EXTENDED Rules 2\");\r\n\t\tsetupTab(new TextView(this), \"CUSTOM\");\r\n\t}", "@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\r\n\t\t\r\n\t\tgetActivity().getActionBar();\r\n\r\n\t\tmRoot = inflater.inflate(R.layout.mopwheathome, null);\r\n\t\t\r\n\t\tmTabHost = (FragmentTabHost)mRoot.findViewById(android.R.id.tabhost);\r\n\t\tmTabHost.setup(getActivity(),getChildFragmentManager(), R.id.realtabcontent);\r\n\r\n\t\tmTabHost.addTab(mTabHost.newTabSpec(\"0\").setIndicator(\"Demo Farmer\"),\r\n\t\t\t\tDemoFarmer.class, null);\r\n\t\t\r\n\t\tmTabHost.addTab(mTabHost.newTabSpec(\"1\").setIndicator(\"Observations\"),\r\n\t\t\t\tObservations.class, null);\r\n\t\t\r\n\t\t for(int i=0;i<mTabHost.getTabWidget().getChildCount();i++)\r\n\t\t {\r\n\t\t\t \r\n\t\t\t mTabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor(\"#96E0D2\"));\r\n\t\t\t \r\n\t\t } \r\n\t\t mTabHost.getTabWidget().getChildAt(Integer.parseInt(\"0\")).setBackgroundColor(Color.parseColor(\"#65D2BD\"));\r\n\t\t \r\n\t\t mTabHost.setOnTabChangedListener(new OnTabChangeListener() {\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onTabChanged(String tabId) {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Activity.INPUT_METHOD_SERVICE);\r\n\t\t\t\t imm.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);\r\n\t\t\t\t */\r\n\t\t\t\t\t for(int i=0;i<mTabHost.getTabWidget().getChildCount();i++)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t mTabHost.getTabWidget().getChildAt(i).setBackgroundColor(Color.parseColor(\"#96E0D2\"));\r\n\t\t\t\t\t } \r\n\t\t\t\t\t mTabHost.getTabWidget().getChildAt(Integer.parseInt(tabId)).setBackgroundColor(Color.parseColor(\"#65D2BD\"));\r\n\t\t\t\t}\r\n\t\t\t});\t\t\t\t\t \r\n\t\t\t\r\n\t\t\treturn mRoot;\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_category, container, false);\n ViewPager viewPager= view.findViewById(R.id.viewPager);\n TabLayout tabLayout= view.findViewById(R.id.tabLayout);\n SectionAdapter adapter = new SectionAdapter(getChildFragmentManager(),getContext());\n viewPager.setAdapter(adapter);\n viewPager.setCurrentItem(mPosition);\n tabLayout.setupWithViewPager(viewPager);\n return view;\n }", "@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\t\tBundle savedInstanceState) {\n\t\t\tint position;\n\t\t\tBundle args = getArguments();\n\t\t\tposition = args.getInt(ARG_OBJECT);\n\t\t\t// }\n\n\t\t\tint tabLayout = 0;\n\t\t\tswitch (position) {\n\t\t\tcase 0:\n\t\t\t\ttabLayout = R.layout.pagina1;\n\t\t\t\tnView = 0;\n\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\ttabLayout = R.layout.pagina2;\n\t\t\t\tnView = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tView rootView = inflater.inflate(tabLayout, container, false);\n\n\t\t\treturn rootView;\n\t\t}", "@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n createTabs();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.tab_emergency);\n\t\t\n\t\tinsertView();\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n\n viewPager = (ViewPager) view.findViewById(R.id.viewPager);\n tabLayout = (TabLayout) view.findViewById(R.id.tabLayout);\n adapter = new TabAdapter(getActivity().getSupportFragmentManager());\n adapter.addFragment(new TabFragment2(), \"Following\");\n adapter.addFragment(new TabFragment1(), \"For You\");\n\n\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }", "protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setTransparentStatus();\n setContentView(R.layout.activity_login);\n ButterKnife.bind(this);\n\n mTabLayout.addTab(mTabLayout.newTab().setText(\"Email\"), true);\n mTabLayout.addTab(mTabLayout.newTab().setText(\"Phone\"));\n int dp20 = ScreenUtil.convertDpToPx(20, this);\n for (int i = 0; i < mTabLayout.getTabCount(); i++) {\n View tab = ((ViewGroup)mTabLayout.getChildAt(0)).getChildAt(i);\n ViewGroup.MarginLayoutParams lp = (ViewGroup.MarginLayoutParams) tab.getLayoutParams();\n lp.setMargins(dp20, 0, dp20, 0);\n tab.requestLayout();\n }\n }", "private void createContents() {\n shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);\n shell.setSize(FORM_WIDTH, 700);\n shell.setText(getText());\n shell.setLayout(new GridLayout(1, false));\n\n TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n // STRUCTURE PARAMETERS\n\n TabItem tbtmStructure = new TabItem(tabFolder, SWT.NONE);\n tbtmStructure.setText(\"Structure\");\n\n Composite grpStructure = new Composite(tabFolder, SWT.NONE);\n tbtmStructure.setControl(grpStructure);\n grpStructure.setLayout(TAB_GROUP_LAYOUT);\n grpStructure.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n ParmDialogText.load(grpStructure, parms, \"meta\");\n ParmDialogText.load(grpStructure, parms, \"col\");\n ParmDialogText.load(grpStructure, parms, \"id\");\n ParmDialogChoices.load(grpStructure, parms, \"init\", Activation.values());\n ParmDialogChoices.load(grpStructure, parms, \"activation\", Activation.values());\n ParmDialogFlag.load(grpStructure, parms, \"raw\");\n ParmDialogFlag.load(grpStructure, parms, \"batch\");\n ParmDialogGroup cnn = ParmDialogText.load(grpStructure, parms, \"cnn\");\n ParmDialogGroup filters = ParmDialogText.load(grpStructure, parms, \"filters\");\n ParmDialogGroup strides = ParmDialogText.load(grpStructure, parms, \"strides\");\n ParmDialogGroup subs = ParmDialogText.load(grpStructure, parms, \"sub\");\n if (cnn != null) {\n if (filters != null) cnn.setGrouped(filters);\n if (strides != null) cnn.setGrouped(strides);\n if (subs != null) cnn.setGrouped(subs);\n }\n ParmDialogText.load(grpStructure, parms, \"lstm\");\n ParmDialogGroup wGroup = ParmDialogText.load(grpStructure, parms, \"widths\");\n ParmDialogGroup bGroup = ParmDialogText.load(grpStructure, parms, \"balanced\");\n if (bGroup != null && wGroup != null) {\n wGroup.setExclusive(bGroup);\n bGroup.setExclusive(wGroup);\n }\n\n // SEARCH CONTROL PARAMETERS\n\n TabItem tbtmSearch = new TabItem(tabFolder, SWT.NONE);\n tbtmSearch.setText(\"Training\");\n\n ScrolledComposite grpSearch0 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);\n grpSearch0.setLayout(new FillLayout());\n grpSearch0.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n tbtmSearch.setControl(grpSearch0);\n Composite grpSearch = new Composite(grpSearch0, SWT.NONE);\n grpSearch0.setContent(grpSearch);\n grpSearch.setLayout(TAB_GROUP_LAYOUT);\n grpSearch.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n Enum<?>[] preferTypes = (this.modelType == TrainingProcessor.Type.CLASS ? RunStats.OptimizationType.values()\n : RunStats.RegressionType.values());\n ParmDialogChoices.load(grpSearch, parms, \"prefer\", preferTypes);\n ParmDialogChoices.load(grpSearch, parms, \"method\", Trainer.Type.values());\n ParmDialogText.load(grpSearch, parms, \"bound\");\n ParmDialogChoices.load(grpSearch, parms, \"lossFun\", LossFunctionType.values());\n ParmDialogText.load(grpSearch, parms, \"weights\");\n ParmDialogText.load(grpSearch, parms, \"iter\");\n ParmDialogText.load(grpSearch, parms, \"batchSize\");\n ParmDialogText.load(grpSearch, parms, \"testSize\");\n ParmDialogText.load(grpSearch, parms, \"maxBatches\");\n ParmDialogText.load(grpSearch, parms, \"earlyStop\");\n ParmDialogChoices.load(grpSearch, parms, \"regMode\", Regularization.Mode.values());\n ParmDialogText.load(grpSearch, parms, \"regFactor\");\n ParmDialogText.load(grpSearch, parms, \"seed\");\n ParmDialogChoices.load(grpSearch, parms, \"start\", WeightInit.values());\n ParmDialogChoices.load(grpSearch, parms, \"gradNorm\", GradientNormalization.values());\n ParmDialogChoices.load(grpSearch, parms, \"updater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"learnRate\");\n ParmDialogChoices.load(grpSearch, parms, \"bUpdater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"updateRate\");\n\n grpSearch.setSize(grpSearch.computeSize(FORM_WIDTH - 50, SWT.DEFAULT));\n\n // BOTTOM BUTTON BAR\n\n Composite grpButtonBar = new Composite(shell, SWT.NONE);\n grpButtonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n grpButtonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n Button btnSave = new Button(grpButtonBar, SWT.NONE);\n btnSave.setText(\"Save\");\n btnSave.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n Button btnClose = new Button(grpButtonBar, SWT.NONE);\n btnClose.setText(\"Cancel\");\n btnClose.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n shell.close();\n }\n });\n\n Button btnOK = new Button(grpButtonBar, SWT.NONE);\n btnOK.setText(\"Save and Close\");\n btnOK.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n shell.close();\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n }", "private void setupTab() {\n setLayout(new BorderLayout());\n JSplitPane mainSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);\n mainSplit.setDividerLocation(160);\n mainSplit.setBorder(BorderFactory.createEmptyBorder());\n\n // set up the MBean tree panel (left pane)\n tree = new XTree(this);\n tree.setCellRenderer(new XTreeRenderer());\n tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\n tree.addTreeSelectionListener(this);\n tree.addTreeWillExpandListener(this);\n tree.addMouseListener(ml);\n JScrollPane theScrollPane = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n JPanel treePanel = new JPanel(new BorderLayout());\n treePanel.add(theScrollPane, BorderLayout.CENTER);\n mainSplit.add(treePanel, JSplitPane.LEFT, 0);\n\n // set up the MBean sheet panel (right pane)\n viewer = new XDataViewer(this);\n sheet = new XSheet(this);\n mainSplit.add(sheet, JSplitPane.RIGHT, 0);\n\n add(mainSplit);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate( R.layout.fragment_news, container, false );\n vp = (ViewPager)view.findViewById(R.id.vp);\n FragmentAdapter adapter = new FragmentAdapter(getFragmentManager(),getContext());\n vp.setAdapter(adapter);\n\n TabLayout tabLayout = (TabLayout)view.findViewById(R.id.scrollTab);\n tabLayout.setupWithViewPager(vp);\n\n tabLayout.setTabGravity(TabLayout.GRAVITY_CENTER);\n\n return view;\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,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_add_product_tab, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_listas, container, false);\n unbinder = ButterKnife.bind(this, view);\n //ViewPager viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n setupViewPager(viewPager);\n // Set Tabs inside Toolbar\n //TabLayout tabs = (TabLayout) view.findViewById(R.id.tabs);\n tabs.setupWithViewPager(viewPager);\n //setupViewPager2(viewpager);\n // tabs.setupWithViewPager(viewpager);\n return view;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n // Inflate the layout for this fragment\n View view = inflater.inflate(R.layout.fragment_coucil, container, false);\n tabLayout = (TabLayout)view.findViewById(R.id.council_tabs);\n viewPager = (ViewPager)view.findViewById(R.id.view_pager_council);\n viewPager.setAdapter(new CouncilFramgentPageAdapter(getChildFragmentManager()));\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }", "public void initTab(ArrayList<CircuitUsageModel> modelList) {\n\t\ttabHost = getTabHost();\n\t\tResources res = getResources();\n\n\t\t// energy\n\t\tenergySpec = tabHost.newTabSpec(\"energy\");\n\t\tenergySpec.setIndicator(getString(R.string.energy),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_energy));\n\t\t// power\n\t\tpowerSpec = tabHost.newTabSpec(\"power\");\n\t\tpowerSpec.setIndicator(getString(R.string.power),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_power));\n\t\t// credit\n\t\tcreditSpec = tabHost.newTabSpec(\"credit\");\n\t\tcreditSpec.setIndicator(getString(R.string.credit),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_credit));\n\n\t\t// set tab content\n\t\tsetTabContent(modelList);\n\t\t\n\t\t// auto refresh\n\t\tautoRefresh();\n\t}", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_pembayaran, container, false);\r\n ((MainActivity)getActivity()).enableViews(false);\r\n TextView mTitle = (TextView) getActivity().findViewById(R.id.toolbar_title);\r\n getActivity().setTitle(\"\");\r\n mTitle.setText(\"Pembayaran\");\r\n\r\n tabLayout = (TabLayout) view.findViewById(R.id.tab_pembayaran);\r\n viewPager = (ViewPager) view.findViewById(R.id.view_pager_pembayaran);\r\n\r\n viewPager.setAdapter(new PembayaranAdapter(getChildFragmentManager()));\r\n tabLayout.setupWithViewPager(viewPager);\r\n\r\n return view;\r\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tv = inflater.inflate(R.layout.fragment1_tabs, container, false);\n\t\tmTabHost = (TabHost)v.findViewById(R.id.TabHost01);\n mTabHost.setup();\n \n mTabManager = new TabManager(getActivity(), mTabHost, R.id.realtabcontents);\n mTabHost.setCurrentTab(0);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab1\").setIndicator(\"Tab1\",this.getResources().getDrawable(R.drawable.car1)),\n \t\tFragment1_Tab1.class, null);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab2\").setIndicator(\"Tab2\",this.getResources().getDrawable(R.drawable.car2)),\n \t\tFragment1_Tab2.class, null);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab3\").setIndicator(\"Tab3\",this.getResources().getDrawable(R.drawable.car3)),\n \t\tFragment3.class, null);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab4\").setIndicator(\"Tab4\",this.getResources().getDrawable(R.drawable.car4)),\n \t\tFragment4.class, null);\n \n DisplayMetrics dm = new DisplayMetrics(); \n getActivity().getWindowManager().getDefaultDisplay().getMetrics(dm); //先取得螢幕解析度 \n int screenWidth = dm.widthPixels; //取得螢幕的寬\n \n \n TabWidget tabWidget = mTabHost.getTabWidget(); //取得tab的物件\n int count = tabWidget.getChildCount(); //取得tab的分頁有幾個\n if (count > 3) { //如果超過三個就來處理滑動\n for (int i = 0; i < count; i++) { \n tabWidget.getChildTabViewAt(i).setMinimumWidth((screenWidth) / 4);//設定每一個分頁最小的寬度 \n } \n }\n\t\treturn v;\n\t}", "private void initTab()\n {\n \n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n getWindow().setFormat(PixelFormat.RGBA_8888);\n\n setContentView(R.layout.tab_bottom);\n mTabHost = getTabHost();\n setupTabs();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_blank1, container, false);\n\n viewPager=view.findViewById(R.id.viewPagerId);\n tableLayout=view.findViewById(R.id.tablayout);\n\n return view; }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n start =0;\n setContentView(R.layout.tabs);\n th = (TabHost)findViewById(R.id.tabHost);\n Button newtab = (Button)findViewById(R.id.bAddTab);\n Button bStart = (Button)findViewById(R.id.bStartWatch);\n Button bStop = (Button)findViewById(R.id.bStopWatch);\n showResults = (TextView)findViewById(R.id.textView);\n bStart.setOnClickListener(this);\n bStop.setOnClickListener(this);\n newtab.setOnClickListener(this);\n th.setup();\n TabHost.TabSpec specs = th.newTabSpec(\"tag1\");\n specs.setContent(R.id.tab1); //the linear layout we set up in tabhost\n specs.setIndicator(\"StopWatch\");\n th.addTab(specs);\n specs = th.newTabSpec(\"tag2\");\n specs.setContent(R.id.tab2); //the linear layout we set up in tabhost\n specs.setIndicator(\"Tab 2\");\n th.addTab(specs);\n specs = th.newTabSpec(\"tag3\");\n specs.setContent(R.id.tab3); //the linear layout we set up in tabhost\n specs.setIndicator(\"Add a tab\");\n th.addTab(specs);\n\n }", "private void initTabs() {\n\t\tmContainer.removeAllViews();\n\n\t\tif(mAdapter==null||mViewPager==null){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<mViewPager.getAdapter().getCount();i++){\n\t\t\tfinal int index=i;\n\t\t\tButton tabs= (Button) mAdapter.getView(index);\n\t\t\tLayoutParams layoutParams=new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\tlayoutParams.weight=1;\n\t\t\tmContainer.addView(tabs,layoutParams);\n\t\t\t\n\t\t\ttabs.setOnClickListener(new OnClickListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(mViewPager.getCurrentItem()==index){\n\t\t\t\t\t\tselectTab(index);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmViewPager.setCurrentItem(index, true);\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\tselectTab(0);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_group_movies, container, false);\n\n viewPager = view.findViewById(R.id.viewpager);\n setupViewPager(viewPager);\n\n tabLayout = view.findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }", "private void fuenteTab() {\n\n\n View view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n TextView tv=(TextView) view.findViewById(R.id.pestanias_txt);\n ImageView imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.detalles);\n tv.setTypeface(fuente2);\n tv.setText(\"Detalles\");\n tabLayout.getTabAt(0).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.marciano);\n tv.setTypeface(fuente2);\n tv.setText(\"Juegos\");\n tabLayout.getTabAt(1).setCustomView(view);\n\n view=LayoutInflater.from(this).inflate(R.layout.vista_pestanias,null);\n tv=(TextView) view.findViewById(R.id.pestanias_txt);\n imv=(ImageView) view.findViewById(R.id.imagenPestanias);\n imv.setImageResource(R.drawable.tienda);\n tv.setTypeface(fuente2);\n tv.setText(\"Tienda\");\n tabLayout.getTabAt(2).setCustomView(view);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_home_tab, container, false);\n nw = (RecyclerView) view.findViewById(R.id.new_list);\n pw = (RecyclerView) view.findViewById(R.id.popular_list);\n ns = (RecyclerView) view.findViewById(R.id.new_writer_list);\n ps = (RecyclerView) view.findViewById(R.id.popular_writer_list);\n setHasOptionsMenu(true);\n getActivity().invalidateOptionsMenu();\n listSetup(nw);\n listSetup(pw);\n listSetup(ns);\n listSetup(ps);\n return view;\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\n\t\trepository = new PontoScriptRepository(this);\n\n\t\tTabHost tabHost = getTabHost();\n\t\tTabSpec tabPonto = tabHost.newTabSpec(\"Ponto\");\n\t\ttabPonto.setIndicator(\"Ponto\", getResources().getDrawable(\n\t\t\t\tR.drawable.clock36));\n\t\ttabPonto.setContent(new Intent(this, TabPontoActivity.class));\n\t\ttabHost.addTab(tabPonto);\n\n\t\tTabSpec tabSearch = tabHost.newTabSpec(\"Busca\");\n\t\ttabSearch.setIndicator(\"Busca\", getResources().getDrawable(\n\t\t\t\tR.drawable.search36));\n\t\ttabSearch.setContent(new Intent(this, TabSearchActivity.class));\n\t\ttabHost.addTab(tabSearch);\n\n\t\tAdManager.setAllowUseOfLocation(true);\n\t\tAdManager.setTestDevices(new String[] { AdManager.TEST_EMULATOR });\n\t\tAdManager.setPublisherId(\"a14ca66077af2b4\");\n\n\t}", "private void initDraftTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n draftTab = new Tab();\n draftWorkspacePane = new VBox();\n draftWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n // ADD PAGE LABEL & BUTTON\n Label draftLabel = new Label();\n draftLabel = initChildLabel(draftWorkspacePane, DraftKit_PropertyType.DRAFT_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.DRAFT_ICON);\n Image buttonImage = new Image(imagePath);\n draftTab.setGraphic(new ImageView(buttonImage));\n \n // ADD BUTTONS TO THE DRAFT PAGE\n HBox draftButtons = new HBox();\n \n pickPlayer = initHBoxButton(draftButtons, PICK_ICON, PICK_PLAYER_TOOLTIP, false);\n autoPickPlayer = initHBoxButton(draftButtons, PLAY_ICON, AUTO_DRAFT_TOOLTIP, false);\n autoPickPause = initHBoxButton(draftButtons, PAUSE_ICON, AUTO_PAUSE_TOOLTIP, false);\n \n pickPlayer.setMinHeight(10);\n autoPickPlayer.setMinHeight(34);\n autoPickPause.setMinHeight(34);\n pickPlayer.setMinWidth(8);\n autoPickPlayer.setMinWidth(38);\n autoPickPause.setMinWidth(38);\n \n ToolBar draftToolBar = new ToolBar(\n pickPlayer,\n autoPickPlayer,\n autoPickPause\n );\n \n // CREATE THE DRAFT TABLE\n draftTable = new TableView();\n\n draftPick = new TableColumn<>(\"Pick #\");\n draftPick.setCellValueFactory(new Callback<CellDataFeatures<Player, Integer>, ObservableValue<Integer>>() {\n @Override\n public ObservableValue<Integer> call(CellDataFeatures<Player, Integer> p) {\n return new ReadOnlyObjectWrapper(draftTable.getItems().indexOf(p.getValue()) + 1);\n }\n }); \n draftPick.setSortable(false);\n draftFirst = new TableColumn<>(\"First\");\n draftFirst.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n draftLast = new TableColumn<>(\"Last\");\n draftLast.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n draftTeam = new TableColumn<>(\"Team\");\n draftTeam.setCellValueFactory(new PropertyValueFactory<>(\"ChosenTeam\"));\n draftContract = new TableColumn<>(\"Contract\");\n draftContract.setCellValueFactory(new PropertyValueFactory<>(\"Contract\"));\n draftSalary = new TableColumn<>(\"Salary ($)\");\n draftSalary.setCellValueFactory(new PropertyValueFactory<>(\"Salary\"));\n \n draftTable.getColumns().addAll(draftPick, draftFirst, draftLast, draftTeam, draftContract, draftSalary);\n \n // NEED TO CREATE THE WAY TO ADD THE TABLE (REFRESH IT)\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Draft Summary Page\");\n draftTab.setTooltip(t);\n \n // PUT IN TAB PANE\n draftWorkspacePane.getChildren().add(draftToolBar);\n draftWorkspacePane.getChildren().add(draftTable);\n draftTab.setContent(draftWorkspacePane);\n mainWorkspacePane.getTabs().add(draftTab);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n inflatedView = inflater.inflate(R.layout.fragment_tab3, container, false);\n return inflatedView;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n getActivity().setTitle(\"Documentos de Venta\");\n view=inflater.inflate(R.layout.fragment_container_ventas, container, false);\n\n tabLayout = (TabLayout) getActivity().findViewById(R.id.tabs);//acceder al tablayout del activity, xq solo tiene al viewpaager\n tabLayout.setVisibility(View.VISIBLE);\n viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n viewPager.setAdapter(new AdapterViewPagerVentas(getChildFragmentManager()));\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.mention_activity);\n\n\t\tTabHost tabHost=getTabHost();\n\t\t// no need to call TabHost.Setup()\n\n\t\t//First Tab\n\t\tTabHost.TabSpec spec1=tabHost.newTabSpec(\"Tab 1\");\n\t\tspec1.setIndicator(\"Tab 1\",getResources().getDrawable(R.drawable.arrow));\n\t\tIntent in1=new Intent(this, Lxq.class);\n\t\tspec1.setContent(in1);\n\n\t\tTabHost.TabSpec spec2=tabHost.newTabSpec(\"Tab 2\");\n\t\tspec2.setIndicator(\"Tab 2\",getResources().getDrawable(R.drawable.arrow));\n\t\tIntent in2=new Intent(this,Dxq.class);\n\t\tspec2.setContent(in2);\n\n\t\tTabHost.TabSpec spec3=tabHost.newTabSpec(\"Tab 3\");\n\t\tspec3.setIndicator(\"Tab 3\",getResources().getDrawable(R.drawable.arrow));\n\t\tIntent in3=new Intent(this,Xxq.class);\n\t\tspec3.setContent(in3);\n\n\t\ttabHost.addTab(spec1);\n\t\ttabHost.addTab(spec2);\n\t\ttabHost.addTab(spec3);\n\t}", "TabbelPane() {\r\n\t\t\tpanelDB = new JPanelCluster(\"mine\", new EventFromDb());\r\n\t\t\tpanelFile = new JPanelCluster(\"store from file\", new EventFromFile());\r\n\t\t\tImageIcon icon = new ImageIcon(\"database.png\");\r\n\t\t\tImage image = icon.getImage();\r\n\t\t\tImage newimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"DB\", icon, panelDB);\r\n\t\t\ticon = new ImageIcon(\"file.png\");\r\n\t\t\timage = icon.getImage();\r\n\t\t\tnewimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"file\", icon, panelFile);\r\n\t\t\tsetVisible(true);\r\n\t\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_ground, container, false);\n mAdapter=new Adapter(getChildFragmentManager());\n mViewPager=(ViewPager)mView.findViewById(R.id.ground_view_pager);\n mViewPager.setAdapter(mAdapter);\n mTabLayout=(TabLayout)mView.findViewById(R.id.ground_tab_layout);\n mTabLayout.setupWithViewPager(mViewPager);\n return mView;\n }", "private void initTeamsTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n teamTab = new Tab();\n teamWorkspacePane = new VBox();\n teamWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n teamScroll = new ScrollPane();\n \n // PAGE LABEL & BUTTON\n Label teams = new Label();\n teams = initChildLabel(teamWorkspacePane, DraftKit_PropertyType.TEAMS_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.TEAM_ICON);\n Image buttonImage = new Image(imagePath);\n teamTab.setGraphic(new ImageView(buttonImage));\n \n // ADD THINGS TO VBOX HERE\n HBox draftNameControls = new HBox();\n initHBoxLabel(draftNameControls, DraftKit_PropertyType.DRAFT_NAME_LABEL, CLASS_PROMPT_LABEL);\n draftNameText = initHBoxTextField(draftNameControls, \"\", true);\n\n HBox teamControls = new HBox();\n addTeam = initHBoxButton(teamControls, DraftKit_PropertyType.ADD_ICON, DraftKit_PropertyType.ADD_TEAM_TOOLTIP, false);\n removeTeam = initHBoxButton(teamControls, DraftKit_PropertyType.MINUS_ICON, DraftKit_PropertyType.REMOVE_TEAM_TOOLTIP, true);\n editTeam = initHBoxButton(teamControls, DraftKit_PropertyType.EDIT_ICON, DraftKit_PropertyType.EDIT_TEAM_TOOLTIP, true);\n\n initHBoxLabel(teamControls, DraftKit_PropertyType.TEAM_SELECT_LABEL, CLASS_PROMPT_LABEL);\n selectTeam = new ComboBox();\n selectTeam.getItems().clear();\n for (int n = 0; n < dataManager.getDraft().getFantasyTeams().size(); n++) {\n selectTeam.getItems().add(dataManager.getDraft().getFantasyTeams().get(n).getTeamName());\n }\n selectTeam.setValue(\"Choose a team\");\n \n selectTeam.valueProperty().addListener(new ChangeListener<String>() {\n @Override public void changed(ObservableValue ov, String t, String t1) {\n ArrayList<Player> tempTeam = new ArrayList<>();\n ArrayList<Player> tempTaxi = new ArrayList<>();\n teamTable.getItems().clear();\n for (Team tt : dataManager.getDraft().getFantasyTeams()) {\n if (tt.getTeamName().equals(selectTeam.getSelectionModel().getSelectedItem())) {\n tempTeam = tt.getTeamList();\n tempTaxi = tt.getTaxiList();\n }\n }\n teamTable = resetTeamTable(tempTeam);\n teamTaxiTable = resetTaxiTable(tempTaxi);\n }\n });\n \n teamControls.getChildren().add(selectTeam);\n\n // TABLE FOR MAIN PLAYERS IN THE FANTASY TEAMS PAGE\n VBox teamTableBox = new VBox();\n initVBoxLabel(teamTableBox, DraftKit_PropertyType.TEAM_TABLE_LABEL, CLASS_SUBHEADING_LABEL);\n positionCompare = new PositionCompare();\n teamTable = new TableView<>();\n \n posCol = new TableColumn<>(\"Position\");\n posCol.setCellValueFactory(new PropertyValueFactory<>(\"ChosenPosition\"));\n posCol.setComparator(positionCompare);\n posCol.setSortType(SortType.ASCENDING);\n posCol.setSortable(true);\n firstCol = new TableColumn<>(\"First\");\n firstCol.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n firstCol.setSortable(false);\n lastCol = new TableColumn<>(\"Last\");\n lastCol.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n lastCol.setSortable(false);\n teamCol = new TableColumn<>(\"Pro Team\");\n teamCol.setCellValueFactory(new PropertyValueFactory<>(\"MLBTeam\"));\n teamCol.setSortable(false);\n positionsCol = new TableColumn<>(\"Positions\");\n positionsCol.setCellValueFactory(new PropertyValueFactory<>(\"position\"));\n positionsCol.setSortable(false);\n rwCol = new TableColumn<>(\"R/W\");\n rwCol.setCellValueFactory(new PropertyValueFactory<>(\"RW\"));\n rwCol.setSortable(false);\n hrsvCol = new TableColumn<>(\"HR/SV\");\n hrsvCol.setCellValueFactory(new PropertyValueFactory<>(\"HRSV\"));\n hrsvCol.setSortable(false);\n rbikCol = new TableColumn<>(\"RBI/K\");\n rbikCol.setCellValueFactory(new PropertyValueFactory<>(\"RBIK\"));\n rbikCol.setSortable(false);\n sberaCol = new TableColumn<>(\"SB/ERA\");\n sberaCol.setCellValueFactory(new PropertyValueFactory<>(\"SBERA\"));\n sberaCol.setSortable(false);\n bawhipCol = new TableColumn<>(\"BA/WHIP\");\n bawhipCol.setCellValueFactory(new PropertyValueFactory<>(\"BAWHIP\"));\n bawhipCol.setSortable(false);\n eValueCol = new TableColumn<>(\"Estimated Value\");\n eValueCol.setCellValueFactory(new PropertyValueFactory<>(\"estimatedValue\"));\n eValueCol.setSortable(false);\n contractCol = new TableColumn<>(\"Contract\");\n contractCol.setCellValueFactory(new PropertyValueFactory<>(\"Contract\"));\n contractCol.setSortable(false);\n salaryCol = new TableColumn<>(\"Salary\");\n salaryCol.setCellValueFactory(new PropertyValueFactory<>(\"Salary\"));\n salaryCol.setSortable(false);\n \n teamTable.getColumns().setAll(posCol, firstCol, lastCol, positionsCol,\n rwCol, hrsvCol, rbikCol, sberaCol, bawhipCol, eValueCol, contractCol, salaryCol);\n \n teamTable.getSortOrder().add(posCol);\n \n teamTable.setItems(teamList);\n \n // TABLE FOR TAXI PLAYERS IN THE FANTASY TEAMS PAGE\n VBox teamTaxiBox = new VBox();\n initVBoxLabel(teamTaxiBox, DraftKit_PropertyType.TEAM_TAXI_LABEL, CLASS_SUBHEADING_LABEL);\n teamTaxiTable = new TableView<>();\n \n firstCol2 = new TableColumn<>(\"First\");\n firstCol2.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n lastCol2 = new TableColumn<>(\"Last\");\n lastCol2.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n teamCol2 = new TableColumn<>(\"Pro Team\");\n teamCol2.setCellValueFactory(new PropertyValueFactory<>(\"MLBTeam\"));\n positionsCol2 = new TableColumn<>(\"Positions\");\n positionsCol2.setCellValueFactory(new PropertyValueFactory<>(\"position\"));\n rwCol2 = new TableColumn<>(\"R/W\");\n rwCol2.setCellValueFactory(new PropertyValueFactory<>(\"RW\"));\n hrsvCol2 = new TableColumn<>(\"HR/SV\");\n hrsvCol2.setCellValueFactory(new PropertyValueFactory<>(\"HRSV\"));\n rbikCol2 = new TableColumn<>(\"RBI/K\");\n rbikCol2.setCellValueFactory(new PropertyValueFactory<>(\"RBIK\"));\n sberaCol2 = new TableColumn<>(\"SB/ERA\");\n sberaCol2.setCellValueFactory(new PropertyValueFactory<>(\"SBERA\"));\n bawhipCol2 = new TableColumn<>(\"BA/WHIP\");\n bawhipCol2.setCellValueFactory(new PropertyValueFactory<>(\"BAWHIP\"));\n eValueCol2 = new TableColumn<>(\"Estimated Value\");\n eValueCol2.setCellValueFactory(new PropertyValueFactory<>(\"EValue\"));\n contractCol2 = new TableColumn<>(\"Contract\");\n contractCol2.setCellValueFactory(new PropertyValueFactory<>(\"Contract\"));\n salaryCol2 = new TableColumn<>(\"Salary\");\n salaryCol2.setCellValueFactory(new PropertyValueFactory<>(\"Salary\"));\n \n teamTaxiTable.getColumns().setAll(firstCol2, lastCol2, positionsCol2,\n rwCol2, hrsvCol2, rbikCol2, sberaCol2, bawhipCol2, eValueCol2, contractCol2, salaryCol2);\n \n teamTaxiTable.setItems(teamTaxiList);\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Fantasy Teams Page\");\n teamTab.setTooltip(t);\n \n // PUT IN TAB PANE\n teamTableBox.getChildren().add(teamTable);\n teamTaxiBox.getChildren().add(teamTaxiTable);\n teamWorkspacePane.getChildren().add(draftNameControls);\n teamWorkspacePane.getChildren().add(teamControls);\n teamWorkspacePane.getChildren().add(teamTableBox);\n teamWorkspacePane.getChildren().add(teamTaxiBox);\n teamScroll.setContent(teamWorkspacePane);\n teamTab.setContent(teamScroll);\n mainWorkspacePane.getTabs().add(teamTab);\n \n ArrayList<Player> tempTeam = new ArrayList<>();\n for (Team tt : dataManager.getDraft().getFantasyTeams()) {\n if (tt.getTeamName().equals(selectTeam.getSelectionModel().getSelectedItem()))\n tempTeam = tt.getTeamList();\n }\n teamTable = resetTeamTable(tempTeam);\n }", "public AdministrationPanel(JFrame parent) {\n this.parent = parent;\n initComponents();\n\n tv = new TabView();\n eap = new EmployeeAdministrationPanel(parent);\n vap = new CarAdministrationPanel(parent);\n tv.addNewTab(\"Medarbejder\", eap);\n tv.addNewTab(\"Biler\", vap);\n\n add(tv, BorderLayout.CENTER);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.attribute_test_tab, container, false);\n\n Button addButton = (Button) view.findViewById(R.id.add_attribute_test_fragment);\n addButton.setOnClickListener(this);\n\n if (view.findViewById(R.id.attribute_test_tab_fragment_container) != null) {\n\n // However, if we're being restored from a previous state,\n // then we don't need to do anything and should return or else\n // we could end up with overlapping fragments.\n if (savedInstanceState != null) {\n return view;\n }\n\n // Create a new Fragment to be placed in the activity layout\n AttributeTestFragment firstFragment = new AttributeTestFragment();\n\n // In case this activity was started with special instructions from an\n // Intent, pass the Intent's extras to the fragment as arguments\n firstFragment.setArguments(getActivity().getIntent().getExtras());\n\n // Add the fragment to the 'fragment_container' FrameLayout\n getActivity().getSupportFragmentManager().beginTransaction()\n .add(R.id.attribute_test_tab_fragment_container, firstFragment)\n .commit();\n }\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_schedule_monitoring, container, false);\n\n viewPager = view.findViewById(R.id.viewpagerVoyageStationAdmin);\n setupViewPager(viewPager);\n\n tabLayout = view.findViewById(R.id.tabsMonitoringStationAdmin);\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }", "public void createPage3(){\n tabAbout = new JPanel();\n tabAbout.setLayout( null );\n \n\n JLabel lblGuidText_syn = new JLabel( \"<html><h1>Useless Dictionary</h1><p>Sulochana Kodituwakku<br>2014/CS/066<br>14000662</p></html>\" ); //html can be used in JLables\n lblGuidText_syn.setHorizontalAlignment(JLabel.LEFT);\n lblGuidText_syn.setVerticalAlignment(JLabel.TOP);\n lblGuidText_syn.setBounds( 10, 200, 750, 380 );\n tabAbout.add( lblGuidText_syn );\n \n btnImport.setBounds(10,10,125,25);\n tabAbout.add(btnImport);\n \n \n //set conlick event for Import button\n event_buttonImport ebd = new event_buttonImport();\n btnImport.addActionListener(ebd);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_tab_tareas, container, false);\n curso = Comunicador.getObjeto();\n listView = view.findViewById(R.id.ListViewTareas);\n adaptadorListTareas = new AdaptadorListTareas(getActivity());\n listView.setAdapter(adaptadorListTareas);\n registerForContextMenu(listView);\n return view;\n }", "public void configureGallery(T aView)\n {\n aView.setFont(Font.Arial10);\n Label label = new Label(\"TabView\"); label.setPadding(4,40,4,40); label.setTextFill(Color.GRAY);\n aView.addTab(\" One \", label);\n aView.addTab(\" Two \", new BoxView());\n }", "public JTabbedPane createPanel()\r\n {\r\n\r\n /** LoadTabPaneData Thread - Inner class that will load the historic data on the AWT\r\n * Thread as to not muck up things on the GUI thread\r\n * The Thread will die after it loads everything.\r\n */\r\n class LoadTabPaneDataTask extends TimerTask\r\n {\r\n // Handle to main outer class\r\n WatchListTableModule watchListTableModule = null;\r\n\r\n /** \r\n * LoadTabPaneDataTask constructor\r\n */\r\n public LoadTabPaneDataTask(WatchListTableModule watchListTableModule)\r\n {\r\n this.watchListTableModule = watchListTableModule;\r\n }\r\n\r\n /** \r\n * LoadTabPaneDataTask::run() this method simply invokes. \r\n * WatchListTableModule::loadPersistantWatchLists() method.\r\n * The method will populate all watchlists to be loaded on\r\n * the JTabbedPane then it dies off\r\n */\r\n public void run()\r\n {\r\n debug(\"LoadTabPaneDataTask::run() - calling watchListTableModule.loadPersistantWatchLists()\");\r\n watchListTableModule.loadPersistantWatchLists();\r\n this.cancel();\r\n }\r\n }\r\n\r\n // Create an Application Properties instance\r\n appProps = new AppProperties(getString(\"WatchListTableModule.application_ini_filename\"));\r\n // Setup our Time Delays\r\n standardDelay = ONE_SECOND * ParseData.parseNum(getString(\"WatchListTableModule.standard_time_delay\"), ONE_MINUTE);\r\n extendedDelay = ONE_SECOND * ParseData.parseNum(getString(\"WatchListTableModule.extended_time_delay\"), ONE_HOUR);\r\n\r\n // Create our Basic Tabbed Pane and Listener ( inner class )\r\n tabPane = new JTabbedPane();\r\n tabPane.addChangeListener(new TabPaneListener());\r\n\r\n // Load the Tab Pane Data on the Util Event Thread as \r\n // to get our screen up and going as fast as possible\r\n // So we can get out of here - This Inner class thread\r\n // invokes method\r\n // loadPersistantWatchLists();\r\n TimerTask tabPaneTask = new LoadTabPaneDataTask(this);\r\n Timer timer = new Timer(true); // Deamon\r\n timer.schedule(tabPaneTask, ONE_SECOND);\r\n\r\n return tabPane;\r\n }", "private void initView() {\n\t\tbackIV = (ImageView) findViewById(R.id.bar_icon);\r\n\t\ttitleTV = (TextView) findViewById(R.id.bar_title);\r\n\t\tleftTV = (TextView) findViewById(R.id.bar_left);\r\n\t\trightTV = (TextView) findViewById(R.id.bar_right);\r\n\t\tbarLayout = (LinearLayout) findViewById(R.id.bar_layout);\r\n\t\t// backIV.setVisibility(View.GONE);\r\n\t\tbackIV.setOnClickListener(new OnClickListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View arg0) {\r\n\t\t\t\tdl.open();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbackIV.setImageDrawable(getResources().getDrawable(R.drawable.iconf));\r\n\t\tbackIV.setVisibility(View.VISIBLE);\r\n\t\t// barLayout.setVisibility(View.GONE);\r\n\t\thost = (TabHost) findViewById(R.id.tabhost);\r\n\t\thost.setup();\r\n\t\tcreateView();\r\n\t\tTabHost.OnTabChangeListener listener = new TabHost.OnTabChangeListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onTabChanged(String tabId) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tFragmentManager manager = getFragmentManager();\r\n\t\t\t\tshowFragment = (ShowFragment) manager\r\n\t\t\t\t\t\t.findFragmentByTag(ShowFragment.TAG);\r\n\t\t\t\taddRecordFrag = (AddRecordFrag) manager\r\n\t\t\t\t\t\t.findFragmentByTag(AddRecordFrag.TAG);\r\n\t\t\t\tchartShowFrag = (ChartShowFrag) manager\r\n\t\t\t\t\t\t.findFragmentByTag(ChartShowFrag.TAG);\r\n\t\t\t\tfTransaction = manager.beginTransaction();\r\n\t\t\t\tif (showFragment != null) {\r\n\t\t\t\t\tfTransaction.detach(showFragment);\r\n\t\t\t\t}\r\n\t\t\t\tif (addRecordFrag != null) {\r\n\t\t\t\t\tfTransaction.detach(addRecordFrag);\r\n\t\t\t\t}\r\n\t\t\t\tif (chartShowFrag != null) {\r\n\t\t\t\t\tfTransaction.detach(chartShowFrag);\r\n\t\t\t\t}\r\n\t\t\t\tif (tabId.equalsIgnoreCase(ShowFragment.TAG)) {\r\n\t\t\t\t\tsetShow();\r\n\t\t\t\t\tcurrent = SHOW;\r\n\t\t\t\t} else if (tabId.equalsIgnoreCase(AddRecordFrag.TAG)) {\r\n\t\t\t\t\tsetAddRecord();\r\n\t\t\t\t\tcurrent = ADD;\r\n\t\t\t\t} else if (tabId.equalsIgnoreCase(ChartShowFrag.TAG)) {\r\n\t\t\t\t\tsetChartShow();\r\n\t\t\t\t\tcurrent = CHART;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tswitch (current) {\r\n\t\t\t\t\tcase SHOW:\r\n\t\t\t\t\t\tsetShow();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase ADD:\r\n\t\t\t\t\t\tsetAddRecord();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase CHART:\r\n\t\t\t\t\t\tsetChartShow();\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\tfTransaction.commit();\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t\thost.setOnTabChangedListener(listener);\r\n\t\thost.setCurrentTab(current);\r\n\t\tsetTab();\r\n\r\n\t}", "void init() {\n tabHost = findViewById(android.R.id.tabhost);\n tabHost.setup(this, getSupportFragmentManager(), android.R.id.tabcontent);\n tabHost.addTab(tabHost.newTabSpec(\"Login\").setIndicator(\"Login\", null), LoginFragment.class, null);\n tabHost.addTab(tabHost.newTabSpec(\"Register\").setIndicator(\"Register\", null), RegisterFragment.class, null);\n }" ]
[ "0.77723145", "0.6980267", "0.6976803", "0.6790436", "0.6657421", "0.66415983", "0.6558755", "0.6540277", "0.6530851", "0.65224695", "0.65193546", "0.65101665", "0.6482609", "0.64782643", "0.64546084", "0.64059764", "0.6398503", "0.6392871", "0.63872063", "0.63845503", "0.6365072", "0.63501316", "0.6324625", "0.6295122", "0.6283556", "0.6265384", "0.624726", "0.62471104", "0.62458307", "0.6242224", "0.6241594", "0.62356305", "0.62283194", "0.6220375", "0.6219541", "0.62079495", "0.62010396", "0.6196917", "0.6187237", "0.6186136", "0.61770415", "0.61689097", "0.6166419", "0.61651385", "0.6164327", "0.61631227", "0.6159464", "0.6150707", "0.6140117", "0.61343294", "0.6123187", "0.61154085", "0.6104467", "0.60983646", "0.6098346", "0.6098029", "0.60871845", "0.60730034", "0.60715026", "0.6064083", "0.6063169", "0.60607207", "0.60579365", "0.60447085", "0.6041984", "0.6035461", "0.6026841", "0.6015549", "0.60090977", "0.60064983", "0.5992366", "0.59850246", "0.5984697", "0.5984408", "0.59805185", "0.59784853", "0.596891", "0.5966462", "0.5965232", "0.5964806", "0.59633195", "0.5961562", "0.5960874", "0.5956183", "0.5951712", "0.59473914", "0.5944255", "0.5933735", "0.5928322", "0.59270674", "0.59237045", "0.5920724", "0.59197795", "0.59153926", "0.59144264", "0.5912056", "0.5904084", "0.5902935", "0.58991843", "0.5896009" ]
0.665976
4
Removes the tab at.
public void removeTabAt(int position) { mTabLayout.removeViewAt(position); if (mTabSpinner != null) { ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); } if (mAllowCollapse) { requestLayout(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeTabAt(int position) {\n\t\t\n\t}", "@Override\n\tpublic void removeTab(Tab tab) {\n\t\t\n\t}", "public void removeTab(HUDTab ht) {\r\n\t\ttabs.remove(ht);\r\n\t\tneedupdate = true;\r\n\t}", "@Override\n\tpublic void removeAllTabs() {\n\t\t\n\t}", "public void\t\tremoveAll()\n\t{\n\t\ttab.clear();\n\t}", "@Override\n\t\tpublic void eliminar() {\n\t\t\tutilitario.getTablaisFocus().eliminar();\n\t\t}", "public static void removeTabView(EDACCPlotTabView tabView) {\n for (int i = 0; i < tabView.tabbedPanePlots.getTabCount(); i++) {\n PlotPanel plotPanel = (PlotPanel) tabView.tabbedPanePlots.getComponentAt(i);\n AnalysisController.closeDevice(plotPanel.getDeviceNumber());\n }\n tabViews.remove(tabView);\n if (tabViews.size() > 0) {\n tabViews.get(0).updateTitle(\"\");\n }\n tabView.dispose();\n tabViewCountChanged();\n }", "public void undo() {\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().add(topsoilTab);\n }", "public void removeTab() {\r\n // confirm selected tab and remove it\r\n tabbedPane.removeTabAt(tabbedPane.getSelectedIndex());\r\n // if all tabs are removed\r\n if (tabbedPane.getTabCount() == 0) {\r\n // re-enable the username textfield and issue prompt notifying user\r\n JOptionPane.showMessageDialog(null, \"Username textField re-enabled\", \"alert\", JOptionPane.ERROR_MESSAGE);\r\n textField.setEnabled(true);\r\n }\r\n }", "public void buttonRemoveTab(ActionEvent actionEvent) {\n }", "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\tft.remove(fragment);\n\t}", "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\tft.remove(fragment);\n\t}", "public void clear(){\n nameTab.getChildren().clear();\n tabContent.getChildren().clear();\n tabs.clear();\n }", "void removeFocus();", "public void removeTablist(Player player, String objName, String target) {\r\n\t\tif(!hasScoreboard(player)) {\r\n\t\t\tcreate(player);\r\n\t\t\tremoveTablist(player, objName, target);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tObjective obj = getSB(player).getObjective(objName);\r\n\t\t\r\n\t\tif(obj == null) {\r\n\t\t\tgetSB(player).registerNewObjective(objName, \"dummy\");\r\n\t\t\tgetSB(player).getObjective(objName).setDisplaySlot(DisplaySlot.SIDEBAR);\r\n\t\t\tremoveTablist(player, objName, target);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tfor(Team teams : getSB(player).getTeams()) \r\n\t\t\tif(teams.hasEntry(target)) teams.removeEntry(target);\r\n\t\t\r\n\t}", "private void cancelAction() {\n\t\tparent.tabbedView.remove(this);\n\t\tparent.repaint();\n\t}", "@Override\n\tpublic ToolStripButton getRemoveTabButton() {\n\t\treturn removeTabButton;\n\t}", "public void removeAtCursor() {\n lines.remove(cursor);\n if(cursor !=0 && cursor==lines.size())\n cursor--;\n }", "private void destroyTab(int tabindex) {\n\t\tif (tabindex != -1) {\n\t\t\tcontainer[tabindex] = null;\n\t\t\trecipientname[tabindex] = null;\n\t\t\trecipientname[tabindex] = null;\n\t\t\tchathistory[tabindex] = null;\n\t\t\tchatinput[tabindex] = null;\n\t\t}\n\t}", "public void removeTab(JTabbedPane pane, int i, AbstractView view) {\n\t\tComponent[] components = pane.getComponents();\n\t\tfor (Component c : components) {\n\t\t\tif (c.equals(view) && c instanceof ListView) {\n\t\t\t\tlView = null;\n\t\t\t} else if (c.equals(view) && c instanceof DataView) {\n\t\t\t\tdView = null;\n\t\t\t\tif (((DataView) view).getData() != null && ((DataView) view).getData().getId() != null) {\n\t\t\t\t\tlocksMaps.remove(((DataView) view).getData().getId());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpane.remove(i);\n\n\t}", "public boolean removeCurrentTab(boolean oneOpen) {\n\t\tif (getTabCount() == 0) {\n\t\t\treturn false;\n\t\t}\n\t\tif (oneOpen && getTabCount() == 1) {\n\t\t\treturn false;\n\t\t}\n\t\tint number = getSelectedIndex();\n\t\tif (number != -1) {\n\t\t\tremove(number);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public void closeTab(Tab tab) {\n if (tab == mTabControl.getCurrentTab()) {\n closeCurrentTab();\n } else {\n removeTab(tab);\n }\n }", "public void delete(){\n if(currentText != null) {\n //The saved character index should no longer be restored\n savedCharacterIndex = -1;\n\n //If a character is being removed from a single line\n if (characterIndex < currentText.getCharacterEdges().length - 1) {\n currentText = codeWindow.getTextLineController().backspace(currentText, characterIndex, false);\n }\n //If a newline character is being removed two lines need to be merged\n else if (lineIndex < texts.size() - 1) {\n currentText = codeWindow.getTextLineController().merge(currentText, codeWindow.getTextLineController().getCodeWindowTextLines().get(lineIndex + 1), codeWindow);\n }\n //The cursors position is unchanged\n }\n }", "@Override\n public void onTabUnselected(TabLayout.Tab tab) {\n }", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "public void closeTab() {\n\t\tclose();\n\t\t\n\t\tfor(int i = 0; i < Main.gameTabs.getTabs().size(); i++) {\n\t\t\tif(Main.gameTabs.getTabs().get(i).getId().equals(hostName)) {\n\t\t\t\tMain.gameTabs.getTabs().remove(i);\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<Main.gameHandler.size(); i++) {\n\t\t\tif(hostName.equals(Main.gameHandler.get(i).getHostName())) {\n\t\t\t\tMain.gameHandler.remove(i);\n\t\t\t}\n\t\t}\n\t}", "public void detachTab(int index) {\n if (index < 0 || index >= getTabCount()) {\n return;\n }\n\n new DetachedTabFrame(this, index);\n }", "@Override\n\tpublic void onTabChange() {\n\t\tthis.reset();\n\t}", "@Override\n public void onTabUnselected(TabLayout.Tab tab) {}", "public void deleteCurrentJoueur(){\n\t\tElement elementPreviousToCurrent = this.getCurrentElement().getPrevious();\n\t\tElement elementNextToCurrent = this.getCurrentElement().getNext();\n\t\t\n\t\telementPreviousToCurrent.setNext(elementNextToCurrent);\n\t\telementNextToCurrent.setPrevious(elementPreviousToCurrent);\n\t\t\n\t\t// l'element suivant devient l'element courant (on passe au suivant)\n\t\tthis.setCurrentElement(this.getCurrentElement().getNext());\n\t}", "private void clearAndHide()\n\t{\n\t\ttabbedPane.removeAll();\n\t\tcount = 0;\n\t\thide();\n\t}", "public void removeScript() {\n scriptHistory = null;\n }", "public void deleteStave(int i) {\n this.staves.remove(i);\n createTabView.requestLayout();\n }", "public void execute() {\n if (DeleteTableCommand.confirmDeletion()) {\n\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().remove(topsoilTabPane.getSelectedTab());\n }\n\n }", "public void removeAllTabs() {\n\t\tmTabLayout.removeAllViews();\n\t\tif (mTabSpinner != null) {\n\t\t\t((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged();\n\t\t}\n\t\tif (mAllowCollapse) {\n\t\t\trequestLayout();\n\t\t}\n\t}", "public void remove () { this.setAsDown(); n.remove(); }", "public void removeButton() {\n pan.remove(playButton);\n }", "public void removeWizard() {\n\t\tyellowWizard = null;\n\t\tplayer.getHintIconsManager().removeAll();\n\t\tplayer.WizardUsed = true;\n\t}", "public void removeTablist(Player player, String objName, String teamName, String target) {\r\n\t\tif(!hasScoreboard(player)) {\r\n\t\t\tcreate(player);\r\n\t\t\tremoveTablist(player, objName, teamName, target);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tObjective obj = getSB(player).getObjective(objName);\r\n\t\t\r\n\t\tif(obj == null) {\r\n\t\t\tgetSB(player).registerNewObjective(objName, \"dummy\");\r\n\t\t\tgetSB(player).getObjective(objName).setDisplaySlot(DisplaySlot.SIDEBAR);\r\n\t\t\tremoveTablist(player, objName, teamName, target);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(getSB(player).getTeam(teamName) == null) {\r\n\t\t\tgetSB(player).registerNewTeam(teamName);\r\n\t\t\tremoveTablist(player, objName, teamName, target);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tTeam t = getSB(player).getTeam(teamName);\r\n\t\t\r\n\t\tif(t == null) {\r\n\t\t\tgetSB(player).registerNewTeam(teamName);\r\n\t\t\tremoveTablist(player, objName, teamName, target);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(!t.hasEntry(target)) t.removeEntry(target);\r\n\t}", "protected void removeTitle(){\n canvas.remove(titleBorder);\n canvas.remove(titleBox);\n canvas.remove(title);\n canvas.remove(startBorder);\n canvas.remove(startBox);\n canvas.remove(startText);\n }", "protected void hideTabs() {\r\n\t\tif (getPageCount() <= 1) {\r\n\t\t\tsetPageText(0, \"\");\r\n\t\t\tif (getContainer() instanceof CTabFolder) {\r\n\t\t\t\t((CTabFolder) getContainer()).setTabHeight(1);\r\n\t\t\t\tPoint point = getContainer().getSize();\r\n\t\t\t\tgetContainer().setSize(point.x, point.y + 6);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void removeLabelCharacter() {\n\t\tif (!editingLabel()) return;\n\t\tgetLabelState().setViewLabel(getCurrentViewLabel());\n\t\tgetLabelState().removeCharacter();\n\t}", "private void deleteWatchList(int index)\r\n {\r\n\r\n debug(\"deleteWatchList(\" + index + \") - Delete WatchList\");\r\n int watchListCount = tabPane.getTabCount();\r\n // Do not permit removal of the last watchlist on the tab pane\r\n if (watchListCount <= 1)\r\n {\r\n return;\r\n }\r\n // Stop all AWT threads from doing work\r\n shutdownWatchListTimers();\r\n // Remove the Data from the Vectors required\r\n tableVector.remove(index);\r\n modelVector.remove(index);\r\n populateListVector.remove(index);\r\n\r\n // Remove the Tab from the Tab Pane\r\n tabPane.removeTabAt(index);\r\n\r\n // Save all remaining data...\r\n saveAllVectorData();\r\n\r\n // Request Focus on our tab pane\r\n tabPane.requestFocus();\r\n // Set our selected index to the first tab\r\n tabPane.setSelectedIndex(0);\r\n debug(\"deleteWatchList(\" + index + \") - Delete WatchList - complete\");\r\n }", "public void unindent() {\n if (tabLevel > 0) --tabLevel;\n }", "@Override\n\t\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\t\n\t\t}", "public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) {\n }", "@SuppressWarnings(\"unused\")\n public <T extends JComponent> void unpinTab(@Nullable T tab) {\n Content content = getContentManager().getContent(tab);\n if (content != null) {\n content.setPinned(false);\n }\n }", "public void erase()\n {\n this.top = null;\n }", "public void removeGroup(String name) {\n if(isGroup(name) == true) {\n /* Now remove the tab from the tabbedpain */\n tbMain.remove((JPanel)grouptabs.get(name));\n \n /* Remove the group from the hashmap */\n grouptabs.remove(name);\n }\n }", "public void remove() {\n btRemove().push();\n }", "public void remove() {\n btRemove().push();\n }", "@Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }", "public void removeComponentForTab(FancyTab tab) {\n\t\tJComponent comp = tabMap.get(tab);\n\t\t\n\t\t//First see if any listener would like to abort the closing.\n\t\t//If so, we just return and make no changes. \n\t\tfor(FTabClosingListener listener : closingListeners) {\n\t\t\tboolean closeOK = listener.tabWouldLikeToClose(comp);\n\t\t\tif (! closeOK) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//If were here the closing event was not aborted, so now \n\t\t//were closing for sure. Alert all listeners that were definitely closing\n\t\tfor(FTabClosingListener listener : closingListeners) {\n\t\t\tlistener.tabClosed(comp);\n\t\t}\n\t\t\n\t\ttabsPanel.removeTab(tab);\n\t\ttabMap.remove(tab);\n\t\ttab.removeListener(this);\n\t\t\n\t\tif (tabMap.size() > 0) {\n\t\t\tCollection<FancyTab> tabs = tabMap.keySet();\n\t\t\tIterator<FancyTab> fit = tabs.iterator();\n\t\t\tFancyTab newTab = fit.next();\n\t\t\tif (newTab != null)\n\t\t\t\tshowComponent( tabMap.get(newTab));\n\t\t}\n\t\telse {\n\t\t\tcenterPanel.removeAll();\n\t\t\trevalidate();\n\t\t\trepaint();\n\t\t}\n\t}", "private void popupDelete() {\n\t\taufzugschacht.removeElement(this);\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_nivel_funcion_programa.eliminar();\r\n\t\t\r\n\t}", "public void removeSelection() {\n this.selection = null;\n }", "private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }", "public void removePeonStatusPane() {\n\t\tContextAreaHandler.getInstance().clearContext();\n\t}", "public static void removerBarraTituloEBorda(JInternalFrame frame) throws Exception{\n BasicInternalFrameUI bif = (BasicInternalFrameUI) frame.getUI();\n bif.setNorthPane(null);\n frame.setBorder(null); \n }", "public void\t\tremoveUCallbackListener(String tag)\n\t{\n\t\ttab.remove(tag);\n\t}", "@Override\r\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\r\n\t}", "public void removeCurrent( )\n {\n // Implemented by student.\n }", "public void doButtonEntfernen() {\n\t\tif (this.anzeige.getSelectedRow() >= 0) {\n\t\t\tthis.tabellenspalten.remove(this.anzeige.getSelectedRow());\n\t\t\tthis.doRepaint();\n\t\t}\n\t}", "void unregister() {\n for (Component comp : jTabbedPane1.getComponents()) {\n if (comp instanceof MiniTimelinePanel) {\n DiscoveryEventUtils.getDiscoveryEventBus().unregister(comp);\n }\n }\n }", "public void tabClosed(int index, String title);", "public void cleanRemove(Element element){\n\t\tfor(Element el : element.getElements()){\n\t\t\tnifty.removeElement(nifty.getScreen(\"hud\"),el);\n\t\t}\n\t\tnifty.removeElement(nifty.getScreen(\"hud\"), element);\n\t\tnifty.executeEndOfFrameElementActions();\n\t}", "@Override\r\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\r\n\t}", "public abstract void removedFromWidgetTree();", "public void destory(){\n \n }", "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}", "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\t\t\n\t}", "private void removeLessonFragment() {\n\t\tFragmentManager fm = getSupportFragmentManager();\n\t\tFragment fragment = (Fragment) fm\n\t\t\t\t.findFragmentById(R.id.detailFragmentContainer);\n\t\tif (fragment != null) {\n\t\t\tFragmentTransaction ft = fm.beginTransaction();\n\t\t\tft.remove(fragment);\n\t\t\tft.commit();\n\t\t}\n\t}", "void unsetControlPosition();", "public void unsetTfoot()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TFOOT$8, 0);\n }\n }", "public void removeIt() { \n\t\t\tcollection.remove(currIndex);\n\t\t\tcurrIndex--;\n\t\t}", "@SuppressLint(\"NewApi\") @Override\n public void onTabUnselected(android.app.ActionBar.Tab tab,\n FragmentTransaction ft) {\n }", "public void removeTestCase(){\n\t\tgetSelectedPanel().removeSelectedTestCase(); \n\t}", "@Override\r\n\t\t\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\r\n\t\t\t}", "void unsetEndPosition();", "@Override\n\tpublic void remove(MainFrameUpdater mfu) {\n\t\t\n\t}", "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\n\t}", "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\n\t}", "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\n\t}", "@Override\n\tpublic void onTabUnselected(Tab tab, FragmentTransaction ft) {\n\n\t}", "public void clear() {\n history.clear();\n position = -1;\n }", "public void DeleteEnd(){\n\t\tsuper.cut();\n\t}", "@Override\r\n\t\tpublic void onTabUnselected(Tab tab, android.app.FragmentTransaction ft) {\n\t\t}", "public void removeTablesInNavigationTable(String panelTitle) {\n\t\tConsoleTableNavigation table = (ConsoleTableNavigation) getBoard(panelTitle);\n\t\ttable.removeTables();\n\t}", "public void removeFromPlanet() {\n this.currentPlanet = null;\n }", "public void actionPerformed(ActionEvent event) {\n remove(tabbedPaneTeachers);\r\n //load period info from file\r\n try {\r\n loadPeriodInfo();\r\n }catch (IOException E) {\r\n System.out.println (\"ERROR READING 'Period List.txt\"); \r\n }\r\n //add teacherzonepanel to main frame\r\n add(teacherZonePanel);\r\n //for loop to loop through the teacher's period\r\n for (int j = 0; j < teachers.get(teacherUser).getPeriodNumbers().size(); j++){\r\n //remove the tabs for each period in the teacher\r\n String name = \"Period \" + teachers.get(teacherUser).getPeriodNumbers().get(j);\r\n tabbedPaneTeachers.remove(tabbedPaneTeachers.indexOfTab(name));\r\n }\r\n //refresh page\r\n teacherZonePanel.setVisible(false);\r\n teacherZonePanel.setVisible(true);\r\n \r\n }", "public void remove() {\n\t }", "public void remove() {\n\t }", "public void remove() {\n\t }", "@Override\r\n\tpublic Integer[] getTabsRemoved() {\n\t\treturn null;\r\n\t}", "@Override\n\t\tpublic void onTabUnselected(Tab arg0, FragmentTransaction arg1) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void supprimerTVA(TVA t) {\n\t\t\r\n\t}", "@Override\n\tpublic Tab getTabAt(int index) {\n\t\treturn null;\n\t}", "public void unsetThead()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(THEAD$6, 0);\n }\n }", "public void removeNodeAfter() { cursor = cursor.getNext().getNext(); }", "public void removePanel() \n\t{\n\t\tgame.remove(this);\n\t}" ]
[ "0.80262285", "0.78394675", "0.71036845", "0.65851796", "0.6521184", "0.6452779", "0.6402466", "0.63562506", "0.63346803", "0.6333098", "0.62259334", "0.62259334", "0.6212782", "0.59931934", "0.59847426", "0.592888", "0.5898542", "0.5849292", "0.58304536", "0.5822957", "0.582194", "0.5809853", "0.58076143", "0.57889724", "0.57702386", "0.5768131", "0.5762151", "0.57575524", "0.5728075", "0.5716518", "0.57150435", "0.567075", "0.5657004", "0.5600936", "0.55765843", "0.555642", "0.55550766", "0.55411863", "0.55237085", "0.55212563", "0.5500544", "0.54958934", "0.5495102", "0.54845953", "0.5458569", "0.54428613", "0.54338557", "0.54328436", "0.5431094", "0.54303676", "0.54303676", "0.54301184", "0.54278487", "0.541936", "0.5417553", "0.54165035", "0.54110754", "0.5407444", "0.5405509", "0.54010016", "0.54007185", "0.5395387", "0.5393496", "0.538765", "0.5387531", "0.5366731", "0.53590435", "0.53487176", "0.53439623", "0.53369576", "0.53369576", "0.53363806", "0.53361577", "0.53344375", "0.533194", "0.53275496", "0.5326864", "0.53153586", "0.5307406", "0.5303927", "0.52837497", "0.52837497", "0.52837497", "0.52837497", "0.52757585", "0.5275509", "0.52736455", "0.52696145", "0.52675444", "0.52626234", "0.52479243", "0.52479243", "0.52479243", "0.5242854", "0.5240665", "0.5239796", "0.5239755", "0.52380925", "0.5234225", "0.52328426" ]
0.62702864
10
Removes the all tabs.
public void removeAllTabs() { mTabLayout.removeAllViews(); if (mTabSpinner != null) { ((TabAdapter) mTabSpinner.getAdapter()).notifyDataSetChanged(); } if (mAllowCollapse) { requestLayout(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void removeAllTabs() {\n\t\t\n\t}", "public void\t\tremoveAll()\n\t{\n\t\ttab.clear();\n\t}", "public void clear(){\n nameTab.getChildren().clear();\n tabContent.getChildren().clear();\n tabs.clear();\n }", "public void removeAll() {\n db.delete(TABLE_NAME, null, null);\n Log.d(\"deleteHistoryCS\", \"Remove All HistoryCS\");\n }", "public void deleteAll(){\r\n\t\thead = null;\r\n\t}", "public void removeAllGroups() {\n Set groupset = grouptabs.keySet();\n Iterator groupsit = groupset.iterator();\n String groupname;\n \n /* Remove all panels from the JTabbedPane */\n while(groupsit.hasNext()) {\n groupname = (String)groupsit.next();\n // while((groupname = (String)groupsit.next()).equals(null) == false) {\n tbMain.remove((JPanel)grouptabs.get(groupname));\n }\n \n /* Now clear the HashMap */\n grouptabs.clear();\n \n }", "public void closeTab() {\n\t\tclose();\n\t\t\n\t\tfor(int i = 0; i < Main.gameTabs.getTabs().size(); i++) {\n\t\t\tif(Main.gameTabs.getTabs().get(i).getId().equals(hostName)) {\n\t\t\t\tMain.gameTabs.getTabs().remove(i);\n\t\t\t}\n\t\t}\n\t\tfor (int i=0; i<Main.gameHandler.size(); i++) {\n\t\t\tif(hostName.equals(Main.gameHandler.get(i).getHostName())) {\n\t\t\t\tMain.gameHandler.remove(i);\n\t\t\t}\n\t\t}\n\t}", "private void clearAndHide()\n\t{\n\t\ttabbedPane.removeAll();\n\t\tcount = 0;\n\t\thide();\n\t}", "public void removeAllChats()\n {\n if (logger.isDebugEnabled())\n logger.debug(\"Remove all tabs from the chat window.\");\n\n if(getChatTabCount() > 0)\n {\n this.chatTabbedPane.removeAll();\n\n this.mainPanel.remove(chatTabbedPane);\n\n chatCount = 0;\n }\n else\n {\n this.removeChat(getCurrentChat());\n }\n\n dispose();\n }", "@Override\n\tpublic void removeTab(Tab tab) {\n\t\t\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 }", "public void destroyAll() {\n children.destroyAll();\n }", "@Before\r\n\tpublic void cleanStart(){\n\t\tStartupFunctions.clearTabs();\r\n\t}", "@Before\r\n\tpublic void cleanStart(){\n\t\tStartupFunctions.clearTabs();\r\n\t}", "@Override\n\tpublic void removeTabAt(int position) {\n\t\t\n\t}", "public void clearAll();", "public void clearAll();", "public void deleteAll(){\n editor.clear();\n editor.apply();\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 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}", "void clearAll();", "void clearAll();", "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() {\n\t\t\n\t}", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "public void removeAll();", "@Override\n public void deleteAllAccounts() {\n synchronized (accounts) {\n accounts.clear();\n }\n }", "public void deleteAllVisibleCookies();", "@Override\r\n\tpublic void deleteAllAccounts() {\n\t\t\r\n\t}", "public void deleteAll()\n\t{\n\t}", "public void deleteAll()\n\t{\n\t}", "public void destroyForAll() {\n super.destroyForAll();\n }", "public void deleteAll() {\n\n\t}", "void unregister() {\n for (Component comp : jTabbedPane1.getComponents()) {\n if (comp instanceof MiniTimelinePanel) {\n DiscoveryEventUtils.getDiscoveryEventBus().unregister(comp);\n }\n }\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (TestUnit testUnit : findAll()) {\n\t\t\tremove(testUnit);\n\t\t}\n\t}", "public void deleteAll();", "public void deleteAll();", "public void deleteAll();", "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 }", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tgetActivity().getActionBar().removeAllTabs();\n\t\tmyContext.getActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD);\n\t}", "public void removeAll(){\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_GAS_SENSOR, null, null);\n // db.delete(DatabaseHelper.TAB_USERS_GROUP, null, null);\n }", "public void deleteAllItineraryItems() {\n\t\tmEditor.clear();\n\t\tmEditor.commit();\n\t}", "protected void hideTabs() {\r\n\t\tif (getPageCount() <= 1) {\r\n\t\t\tsetPageText(0, \"\");\r\n\t\t\tif (getContainer() instanceof CTabFolder) {\r\n\t\t\t\t((CTabFolder) getContainer()).setTabHeight(1);\r\n\t\t\t\tPoint point = getContainer().getSize();\r\n\t\t\t\tgetContainer().setSize(point.x, point.y + 6);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void deleteAll();", "void deleteAll();", "void deleteAll();", "public void deleteAll() {\n\t\ttry{\t\n\t\t\tbanco.delete(meuBancoHelper.TABELA_MTAG,null,null);\n\t\t\t}\n\t\t\tcatch(NullPointerException e)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t}", "public void deleteAllPages() {\n cache.removeAll();\n final Set<Long> indexSet = getExistingBackFileIndexSet();\n this.deletePages(indexSet);\n if (logger.isDebugEnabled())\n logger.debug(\"All page files in dir \" + this.pageDir + \" have been deleted.\");\n }", "public void clear()\n {\n pages.stream().forEach((page) -> {\n page.clearCache();\n });\n\n pages.clear();\n listeners.clear();\n occupiedEntries.clear();\n }", "public void clearChildFrames();", "public void clean();", "public void clean();", "public void clean();", "public void clean();", "public void removeAllPlaylistTabData(SQLiteDatabase database) {\n try {\n database.enableWriteAheadLogging();\n database.execSQL(\"DELETE FROM \" + PLAYLIST_DATA_TABLE);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}", "public void removeAllTransactions() {\n Realm realm = mRealmProvider.get();\n realm.executeTransaction(realm1 -> realm1.deleteAll());\n }", "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 clearLeadUI() {\n\t\tfor (JLabel item : leadList) {\n\t\t\testimationGame.getContentPane().remove(item);\n\t\t}\n\t\tleadList.clear();\n\t}", "public void clearFaceletsHtmlCash() {\r\n \t\tfaceletsHtmlTagInfoCache.clear();\r\n \t\ttldFaceletsHtmlElementsByPrefix.clear();\r\n \t}", "void clear() {\n\t\tfor (int list = getFirstList(); list != -1;) {\n\t\t\tlist = deleteList(list);\n\t\t}\n\t}", "private void checkAllTabs() {\r\n\t\tboolean close = true;\r\n\t\tfor (int i = 0, n = tabbedPane.getTabCount()-1; i <= n; i++) {\r\n\t\t\tif (! checkForSaving(i)) {\r\n\t\t\t\tclose = false;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (close) {\r\n\t\t\ttimer.stop();\r\n\t\t\ttimer = null;\r\n\t\t\tdispose();\r\n\t\t\tSystem.exit(0);\t//terminates timer \r\n\t\t}\r\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 removeAllAshPanels() {\n Thread removeAllASHPanelsThread = new Thread ( new Runnable() {\n public void run() {\n while (sessionV.size() > 0)\n {\n removeAshPanel((SessionASHPanel) ashV.get(0));\n numSessionPanelsRemoved++;\n }\n }\n });\n\n removeAllASHPanelsThread.setDaemon(false);\n removeAllASHPanelsThread.setName(\"removeAllASHPanels\");\n removeAllASHPanelsThread.start();\n }", "@Override\n\tpublic void onTabChange() {\n\t\tthis.reset();\n\t}", "void removeAll();", "void removeAll();", "public static void handleTabs() {\n ArrayList<String> allTabs = new ArrayList<String>(driver.getWindowHandles());\n // There will always be 2 tabs.\n driver.switchTo().window(allTabs.get(1));\n driver.close();\n driver.switchTo().window(allTabs.get(0));\n }", "@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}", "private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }", "private void enableTabPages() {\n // Disables all tabs except the first (the common for all Net Objects)\n for (int i = jTabbedPane1.getTabCount() - 1; i > 0; i--) {\n int tabIndex = i;\n // Enables specific Net Object tab\n if (!IntStream.of(currentTabIndices).anyMatch(x -> x == tabIndex)) {\n this.jTabbedPane1.remove(i);\n }\n }\n }", "public void Clean()\n\t{\n\t\tstorage.clear();\n\t}", "@Override\r\n\tpublic void clearALL() {\n\t\tjavaScriptWindow.propertyTable = null;\r\n\r\n\t}", "public void clearTables() {\n\t _database.delete(XREF_TABLE, null, null);\n\t _database.delete(ORDER_RECORDS_TABLE, null, null); \n\t}", "public void undo() {\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().add(topsoilTab);\n }", "private void clearButtons()\n {\n // remove all saved search Buttons\n listTableLayout.removeAllViews();\n }", "public void clearRealmCollection() {\n if (mRvHistoryAdapter.getData() != null) {\n mRealm.beginTransaction();\n for (TranslationInfo translationInfo : mRvHistoryAdapter.getData()) {\n translationInfo.getTranslation().deleteFromRealm();\n translationInfo.getDictionary().getDefinitionsList().deleteAllFromRealm();\n translationInfo.getDictionary().deleteFromRealm();\n }\n mRvHistoryAdapter.getData().deleteAllFromRealm();\n mRealm.commitTransaction();\n }\n }", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "@Override\n\tpublic void deleteAll() {\n\t\t\n\t}", "public void removeAllItems() {\n contents.clear();\n }", "public void removeAll() {\n _hash = new Hashtable();\n _first = null;\n _last = null;\n }" ]
[ "0.8032906", "0.778382", "0.7134815", "0.6652395", "0.6487168", "0.62630445", "0.6261797", "0.6255048", "0.62157154", "0.62002206", "0.6181929", "0.61744857", "0.6140173", "0.6140173", "0.6123041", "0.6057699", "0.6057699", "0.5992507", "0.59774196", "0.59757966", "0.5941432", "0.5941432", "0.5927288", "0.5867663", "0.5843314", "0.5843314", "0.5843314", "0.5843314", "0.5843314", "0.5843314", "0.5843314", "0.5843314", "0.5843314", "0.5843314", "0.5843314", "0.5843314", "0.5839589", "0.5837201", "0.58369863", "0.58159417", "0.58159417", "0.58090216", "0.5808348", "0.5807649", "0.58003527", "0.5772391", "0.5772391", "0.5772391", "0.5769193", "0.5765461", "0.57577616", "0.5752612", "0.57485384", "0.5743188", "0.5743188", "0.5743188", "0.5738596", "0.57324135", "0.5726886", "0.57231313", "0.5711328", "0.5711328", "0.5711328", "0.5711328", "0.5689831", "0.56845874", "0.56845874", "0.56845874", "0.56845874", "0.5681589", "0.5669062", "0.5667593", "0.5656869", "0.5651039", "0.5644343", "0.5642548", "0.5637331", "0.56365395", "0.5626279", "0.5626279", "0.56145144", "0.5604583", "0.5602325", "0.5601108", "0.5600246", "0.55913067", "0.559017", "0.5587326", "0.5584944", "0.55785507", "0.55764306", "0.55764306", "0.55764306", "0.55764306", "0.55764306", "0.55764306", "0.55764306", "0.55764306", "0.55691564", "0.55628693" ]
0.7241942
2
Instantiates a new tab view.
public TabView(Context context, AttributeSet attrs) { // TODO super(context, null, R.attr.actionBarTabStyle); super(context, attrs); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }", "public void onCreateTabClicked(View view) {\n if (mAdapter.isEmpty()) {\n Toast.makeText(this, R.string.you_must_create_at_least_one_tab, Toast.LENGTH_LONG).show();\n return;\n }\n ArrayList<TabInformation> list = new ArrayList<>(mAdapter.getTabInformation());\n startActivity(new Intent(this, DisplayTabsActivity.class).putExtra(TAB_CONTENT, list));\n }", "private void createView() {\n\t\tTabWidget tWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tshowLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView = (ImageView) showLayout.getChildAt(0);\r\n\t\tTextView textView = (TextView) showLayout.getChildAt(1);\r\n\t\timageView.setImageResource(R.drawable.main_selector);\r\n\t\ttextView.setText(R.string.show);\r\n\r\n\t\taddLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView1 = (ImageView) addLayout.getChildAt(0);\r\n\t\tTextView textView1 = (TextView) addLayout.getChildAt(1);\r\n\t\timageView1.setImageResource(R.drawable.add_selector);\r\n\t\ttextView1.setText(R.string.add_record);\r\n\r\n\t\tchartLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView2 = (ImageView) chartLayout.getChildAt(0);\r\n\t\tTextView textView2 = (TextView) chartLayout.getChildAt(1);\r\n\t\timageView2.setImageResource(R.drawable.chart_selector);\r\n\t\ttextView2.setText(R.string.chart_show);\r\n\t}", "public Tabs() {\n initComponents();\n }", "private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = tabbedPane.getToolTipTextAt(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (currentFile.isEmpty()) {\t//file not yet saved\r\n\t\t\t\tcurrentFile = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetTitle(currentFile + \" - JNotepad++\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJTextArea current = getSelectedTextArea();\r\n\t\t\tif (current == null) return;\r\n\t\t\tCaretListener[] listeners = current.getCaretListeners();\r\n\t\t\tlisteners[0].caretUpdate(new CaretEvent(current) {\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Serial UID.\r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getMark() {\r\n\t\t\t\t\treturn 0;\t//not used\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getDot() {\r\n\t\t\t\t\treturn current.getCaretPosition();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tcreateSingleTab(null, null);\r\n\t\tgetContentPane().add(tabbedPane, BorderLayout.CENTER);\t\r\n\t}", "@Override\n\tpublic Tab newTab() {\n\t\treturn null;\n\t}", "private void initView() {\n\t\tmTabHost = (AnimationTabHost) findViewById(android.R.id.tabhost);\n\t\tmTabWidget = (TabWidget) findViewById(android.R.id.tabs);\n\t\tmTabHost.setOnTabChangedListener(this);\n\n\t\tsetIndicator(R.drawable.tab_recommend, 0, new Intent(this,\n\t\t\t\tRecommendActivity.class), R.string.recommend);\n\t\tsetIndicator(R.drawable.tab_channel, 1, new Intent(this,\n\t\t\t\tChannelActivity.class), R.string.channel);\n//\t\tsetIndicator(R.drawable.tab_search, 2, new Intent(this,\n//\t\t\t\tSearchActivity.class), R.string.search);\n\t\tsetIndicator(R.drawable.tab_personal, 3, new Intent(this,\n\t\t\t\tPersonalActivity.class), R.string.peraonal);\n\n\t\tmTabHost.setOpenAnimation(true);\n\n\n\t}", "public void openTab(String tabName){\r\n\r\n\t\tTabView selectedTabView = new TabView(this);\r\n\t\ttabViews.add(selectedTabView);\r\n\t\t\r\n\t\t\r\n\t\tif(tabName == null){ // If a new tab..\r\n\t\t\t// Ensure that there isn't already a model with that name\r\n\t\t\twhile(propertiesMemento.getTabNames().contains(tabName) || tabName == null){\r\n\t\t\t\ttabName = \"New Model \" + newModelIndex;\r\n\t\t\t\tnewModelIndex++;\r\n\t\t\t}\r\n\t\t}\r\n logger.info(\"Adding tab:\" + tabName);\r\n\r\n\t\t// Just resizes and doesn't scroll - so don't need the scroll pane\r\n\t\t/*JScrollPane scrollPane = new JScrollPane(selectedTabView, \r\n \t\t\t\t\t\t\t\t JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, \r\n \t\t\t\t\t\t\t\t JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.getVerticalScrollBar().setUnitIncrement(20);\r\n tabbedPane.addTab(tabName, scrollPane);*/\r\n\r\n\t\ttabbedPane.addTab(tabName, selectedTabView);\r\n\r\n currentView = selectedTabView;\r\n tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1);\r\n setTabName(tabName);\r\n\t\t\t\t\r\n tabbedPane.setTabComponentAt(tabbedPane.getSelectedIndex(), \r\n\t\t\t\t new TabButtonComponent(propertiesMemento.getImageDir(), this, currentView));\r\n \r\n // Add Mouse motion Listener \r\n currentView.addMouseMotionListener(currentView);\r\n currentView.addMouseListener(currentView);\r\n\r\n // Record the tab in the memento\r\n propertiesMemento.addTabRecord(tabName);\r\n \r\n setTabButtons(true);\r\n \r\n setStatusBarText(\"Ready\");\r\n\r\n requestFocusInWindow();\r\n\t}", "public TabPanel() {\n this(null, null, null);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.activity_tab_nd, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.tabs_fragment, container, false);\n ViewPager viewPager = rootView.findViewById(R.id.categories_view_pager);\n FragmentViewPagerAdapter adapter = new FragmentViewPagerAdapter(getChildFragmentManager());\n\n adapter.addFragments(new Education_FirstTab(), getString(R.string.education_tab1));\n adapter.addFragments(new Education_SecondTab(), getString(R.string.education_tab2));\n\n viewPager.setAdapter(null);\n viewPager.setAdapter(adapter);\n\n TabLayout tabs = rootView.findViewById(R.id.tab_layout);\n tabs.setupWithViewPager(viewPager);\n\n return rootView;\n\n }", "public Scene createScene() {\n\t\tmyRoot = new AnchorPane();\n\t\tmyTabs = new TabPane();\n\t\tButton newTab = new Button(CREATE_NEW_TAB);\n\t\tnewTab.setOnAction(event -> createNewTab());\n\t\t\n\t\tTabMainScreen mainScreen = new TabMainScreen(myResources.getString(WORKSPACE) + (myTabs.getTabs().size()));\n\t\tTabHelp help1 = new TabHelp(myResources.getString(BASIC_COMMANDS), HELP_TAB_TEXT1);\n\t\tTabHelp help2 = new TabHelp(myResources.getString(EXTENDED_COMMANDS), HELP_TAB_TEXT2);\n\t\t\n\t\tmyTabs.getTabs().addAll(mainScreen.getTab(myStage), help1.getTab(), help2.getTab());\n\t\t\n\t\tAnchorPane.setTopAnchor(myTabs, TABS_OFFSET);\n\t\tAnchorPane.setTopAnchor(newTab, NEWTAB_OFFSET);\n\t\t\n\t\tmyRoot.getChildren().addAll(myTabs, newTab);\n\t\n\t\tmyScene = new Scene(myRoot, windowHeight, windowWidth, Color.WHITE);\n\t\treturn myScene;\n\t}", "private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}", "public KonTabbedPane() {\n // Initialize the ArrayList\n graphInterfaces = new ArrayList<DrawingLibraryInterface>();\n\n DirectedGraph<String, DefaultEdge> graph = CreateTestGraph();\n\n /*\n * Adds a tab\n */\n DrawingLibraryInterface<String, DefaultEdge> graphInterface =\n DrawingLibraryFactory.createNewInterface(graph);\n \n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n addTab(\"First Tab\", graphInterface.getPanel());\n\n /*\n * Adds a tab\n */\n graphInterface = DrawingLibraryFactory.createNewInterface(graph);\n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n\n graphInterface.getGraphManipulationInterface().highlightNode(graph\n .vertexSet().iterator().next(), true);\n\n addTab(\"Second Tab\", graphInterface.getPanel());\n }", "private static View createTabView(final Context context, final String text) {\r\n\t\tView view;\r\n\t\tview = LayoutInflater.from(context).inflate(\r\n\t\t\t\tR.layout.generic_tabs_custom_layout, null);\r\n\t\tTextView tv = (TextView) view.findViewById(R.id.tabsText);\r\n\t\ttv.setText(text);\r\n\t\treturn view;\r\n\t}", "private TabView createTabView(ActionBar.Tab tab, boolean forAdapter) {\n\t\t// Workaround for not being able to pass a defStyle on pre-3.0\n\t\tfinal TabView tabView = (TabView) mInflater.inflate(\n\t\t\t\tR.layout.abs__action_bar_tab, null);\n\t\ttabView.init(this, tab, forAdapter);\n\n\t\tif (forAdapter) {\n\t\t\ttabView.setBackgroundDrawable(null);\n\t\t\ttabView.setLayoutParams(new ListView.LayoutParams(\n\t\t\t\t\tandroid.view.ViewGroup.LayoutParams.MATCH_PARENT,\n\t\t\t\t\tmContentHeight));\n\t\t} else {\n\t\t\ttabView.setFocusable(true);\n\n\t\t\tif (mTabClickListener == null) {\n\t\t\t\tmTabClickListener = new TabClickListener();\n\t\t\t}\n\t\t\ttabView.setOnClickListener(mTabClickListener);\n\t\t}\n\t\treturn tabView;\n\t}", "void init() {\n tabHost = findViewById(android.R.id.tabhost);\n tabHost.setup(this, getSupportFragmentManager(), android.R.id.tabcontent);\n tabHost.addTab(tabHost.newTabSpec(\"Login\").setIndicator(\"Login\", null), LoginFragment.class, null);\n tabHost.addTab(tabHost.newTabSpec(\"Register\").setIndicator(\"Register\", null), RegisterFragment.class, null);\n }", "private void initView() {\n List<Fragment> fragmentList = new ArrayList<>();\n fragmentList.add(new FourthFragment());\n fragmentList.add(new FifthFragment(imagePath));\n// set titles\n List<String> title = new ArrayList<>();\n title.add(\"第一页\");\n title.add(\"第二页\");\n// set the adapter\n viewPager.setAdapter(new FragmentPagerAdapter(getChildFragmentManager()) {\n @NonNull\n @NotNull\n @Override\n public Fragment getItem(int position) {\n return fragmentList.get(position);\n }\n\n @Override\n public int getCount() {\n return fragmentList.size();\n }\n\n @Nullable\n @org.jetbrains.annotations.Nullable\n @Override\n public CharSequence getPageTitle(int position) {\n return title.get(position);\n }\n });\n tabLayout.setupWithViewPager(viewPager);\n }", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.welcome);\n th = (TabHost) findViewById(R.id.tabHost);\n th.setup();\n th.addTab(th.newTabSpec(\"1\").setIndicator(\"eMasomo\").setContent(R.id.tab1));\n th.addTab(th.newTabSpec(\"2\").setIndicator(\"Past Papers\").setContent(R.id.tab2));\n th.addTab(th.newTabSpec(\"3\").setIndicator(\"Library\").setContent(R.id.tab3));\n th.addTab(th.newTabSpec(\"4\").setIndicator(\"Forum\").setContent(R.id.tab4));\n }", "private void addTabs() {\n TabsPagerAdapter tabsAdapter = new TabsPagerAdapter(getSupportFragmentManager());\n viewPager = (ViewPager) findViewById(R.id.pager);\n viewPager.setAdapter(tabsAdapter);\n\n TabLayout tabLayout = (TabLayout) findViewById(R.id.tabLayout);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n\n tabLayout.getTabAt(0).setIcon(R.drawable.connect);\n tabLayout.getTabAt(1).setIcon(R.drawable.speak);\n tabLayout.getTabAt(2).setIcon(R.drawable.walk);\n tabLayout.getTabAt(3).setIcon(R.drawable.camera);\n tabLayout.getTabAt(4).setIcon(R.drawable.moves);\n }", "private void createTabsDiv() {\n tabsDiv = new Block(Block.Div, \"id='tabs'\");\n page.add(tabsDiv);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View itemView= inflater.inflate(R.layout.fragment_home, container, false);\n initTab(itemView);\n return itemView;\n }", "private void addNewTab(SingleDocumentModel model) {\n\t\tString title = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().getFileName().toString();\n\t\tImageIcon icon = createIcon(\"icons/green.png\");\n\t\tJScrollPane component = new JScrollPane(model.getTextComponent());\n\t\tString toolTip = model.getFilePath()==null ? \"unnamed\" : model.getFilePath().toAbsolutePath().toString();\n\t\taddTab(title, icon, component, toolTip);\n\t\tsetSelectedComponent(component);\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\n\t\ttabHost = getTabHost();\n\t\t\n\t\tcreateTab(\"abaHistorico\", \"histórico\", new Intent(getApplicationContext(), HistoricoList.class));\n\t\tcreateTab(\"abaLivro\", \"livros\", new Intent(getApplicationContext(), LivroList.class));\n\t\tcreateTab(\"abaBusca\", \"buscar\", new Intent(getApplicationContext(), Busca.class));\n\t}", "public TabPane createTabPane(TableauFrame parent) {\n\t\t\tTabPaneExtensionExample tpee = new TabPaneExtensionExample();\n\n\t\t\t/*\n\t\t\t * Optionally you can create a method called setTabName and use the\n\t\t\t * \"name\" value from the configuration.xml file by calling\n\t\t\t * this.getName(). For Example if you have <property\n\t\t\t * name=\"randomTestTab\"\n\t\t\t * class=\"org.kepler.gui.TabPaneExtensionExample$Factory\" /> in\n\t\t\t * configuration.xml then the name of the tab in the GUI becomes\n\t\t\t * randomTestTab\n\t\t\t */\n\t\t\ttpee.setTabName(this.getName());\n\n\t\t\treturn tpee;\n\t\t}", "private void initTab()\n {\n \n }", "public void addNewTab() {\n int count = workspaceTabs.getComponentCount() + 1;\n String title = \"Workspace \" + count;\n WorkspacePanel panel = new WorkspacePanel(title);\n DropHandler dropHandler = searchMenu.createDropHandler(panel.getBaseLayout());\n panel.setDropHandler(dropHandler);\n workspaceTabs.addTab(panel).setCaption(title);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_list, container, false);\n Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar);\n\n //for crate home button\n AppCompatActivity activity = (AppCompatActivity) getActivity();\n activity.setSupportActionBar(toolbar);\n tabLayout = (TabLayout) view.findViewById(R.id.display_tabs);\n tabLayout.addTab(tabLayout.newTab());\n tabLayout.addTab(tabLayout.newTab());\n tabLayout.addTab(tabLayout.newTab());\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n\n viewPager = (ViewPager) view.findViewById(R.id.display_pager);\n PagerAdapter pagerAdapter = new PagerAdapter(getFragmentManager(), tabLayout.getTabCount());\n viewPager.setAdapter(pagerAdapter);\n tabLayout.setupWithViewPager(viewPager);\n return view;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_tabbed, container, false);\n\n ButterKnife.bind(this, root);\n\n PagerAdapter adapter = new PagerAdapter(\n getActivity().getSupportFragmentManager(),\n PreviousProjectFragment.class,\n CurrentProjectFragment.class\n );\n adapter.setTitles(getString(R.string.completed), getString(R.string.ongoing));\n viewPager.setAdapter(adapter);\n\n tabLayout.setupWithViewPager(viewPager);\n\n return root;\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.tab);\n\t\tTabHost th =getTabHost();\n\t\tTabSpec tab1 = (TabSpec) th.newTabSpec(\"Arrival\");\n\t TabSpec tab2 = (TabSpec) th.newTabSpec(\"Alternate\");\n\t \n\t tab1.setIndicator(\"Plan Journey\", null).setContent(\n\t new Intent(this, TrainSearchActivity.class));\n\t tab2.setIndicator(\"Alternate\", null).setContent(\n\t new Intent(this, AlternateRoute.class));\n\t \n\t th.addTab(tab1);\n\t th.addTab(tab2);\n\t \n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View root = inflater.inflate(R.layout.fragment_trips, container, false);\n FragmentTabHost tabHost = root.findViewById(android.R.id.tabhost);\n tabHost.setup(getActivity(), getChildFragmentManager(), android.R.id.tabcontent);\n\n Bundle arg1 = new Bundle();\n arg1.putString(ListTripsFragment.TRIP_TYPE_KEY, \"Confirmed\");\n tabHost.addTab(tabHost.newTabSpec(\"ConfirmedTab\").setIndicator(\"Confirmed\"),\n ListTripsFragment.class, arg1);\n\n Bundle arg2 = new Bundle();\n arg2.putString(ListTripsFragment.TRIP_TYPE_KEY, \"Pending\");\n tabHost.addTab(tabHost.newTabSpec(\"PendingTab\").setIndicator(\"Pending\"),\n ListTripsFragment.class, arg2);\n\n Bundle arg3 = new Bundle();\n arg3.putString(ListTripsFragment.TRIP_TYPE_KEY, \"Posted\");\n tabHost.addTab(tabHost.newTabSpec(\"PostedTab\").setIndicator(\"Posted\"),\n ListTripsFragment.class, arg3);\n\n return root;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n\n viewPager = (ViewPager) view.findViewById(R.id.viewPager);\n tabLayout = (TabLayout) view.findViewById(R.id.tabLayout);\n adapter = new TabAdapter(getActivity().getSupportFragmentManager());\n adapter.addFragment(new TabFragment2(), \"Following\");\n adapter.addFragment(new TabFragment1(), \"For You\");\n\n\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View mView = View.inflate(getContext(), R.layout.newsfragment, null);\n mTab = (TabPageIndicator) mView.findViewById(R.id.news_indicator);//初始化标题栏\n mViewpager = (ViewPager) mView.findViewById(R.id.news_viewpager);//初始化Viewpager\n return mView;\n }", "public static LabNotes newInstance() {\n LabNotes fragment = new LabNotes();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "private VTabSheet initTabLayout() {\r\n VTabSheet tabs = new VTabSheet();\r\n Map<Component, Integer> tabComponentMap = new HashMap<Component, Integer>();\r\n Binder<Report> binder = new Binder<>(Report.class);\r\n fireEventTypeComponent = new FireEventTypeDataTab(report,userNeedToPrepare, binder, tabComponentMap);\r\n boolean basicEditRight = !report.getStatus().equals(ReportStatus.APPROVED) && (organizationIsCreator || userNeedToPrepare);\r\n tabs.addTab(getTranslation(\"reportView.tab.basicData.label\"), new ReportBasicDataTab(report, binder, basicEditRight, tabComponentMap, addressServiceRef.get(), this));\r\n tabs.addTab(getTranslation(\"reportView.tab.forcesData.label\"), new ReportForcesTab(report, userNeedToPrepare, organizationServiceRef.get(), vechileServiceRef.get(), reportServiceRef.get()));\r\n fireEventTab = tabs.addTab(getTranslation(\"reportView.tab.fireEventData.label\"), fireEventTypeComponent);\r\n tabs.addTab(getTranslation(\"reportView.tab.authorizationData.label\"), new ReportAuthorizationTab(report, binder, userNeedToPrepare, (userNeedToPrepare || userNeedToApprove), tabs, tabComponentMap, organizationServiceRef.get(), reportServiceRef.get(), notificationServiceRef.get()));\r\n return tabs;\r\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.mention_activity);\n\n\t\tTabHost tabHost=getTabHost();\n\t\t// no need to call TabHost.Setup()\n\n\t\t//First Tab\n\t\tTabHost.TabSpec spec1=tabHost.newTabSpec(\"Tab 1\");\n\t\tspec1.setIndicator(\"Tab 1\",getResources().getDrawable(R.drawable.arrow));\n\t\tIntent in1=new Intent(this, Lxq.class);\n\t\tspec1.setContent(in1);\n\n\t\tTabHost.TabSpec spec2=tabHost.newTabSpec(\"Tab 2\");\n\t\tspec2.setIndicator(\"Tab 2\",getResources().getDrawable(R.drawable.arrow));\n\t\tIntent in2=new Intent(this,Dxq.class);\n\t\tspec2.setContent(in2);\n\n\t\tTabHost.TabSpec spec3=tabHost.newTabSpec(\"Tab 3\");\n\t\tspec3.setIndicator(\"Tab 3\",getResources().getDrawable(R.drawable.arrow));\n\t\tIntent in3=new Intent(this,Xxq.class);\n\t\tspec3.setContent(in3);\n\n\t\ttabHost.addTab(spec1);\n\t\ttabHost.addTab(spec2);\n\t\ttabHost.addTab(spec3);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tab, container, false);\n\n Toolbar toolbar = (Toolbar) view.findViewById(R.id.toolbar);\n AppCompatActivity activity = (AppCompatActivity) getActivity();\n activity.setSupportActionBar(toolbar);\n\n // Initializing the TabLayout\n topTap = (TabLayout) view.findViewById(R.id.tab_top);\n topTap.addTab(topTap.newTab().setText(\"DOMPET\"));\n topTap.addTab(topTap.newTab().setText(\"CASH IN\"));\n topTap.addTab(topTap.newTab().setText(\"CASH OUT\"));\n topTap.setTabGravity(TabLayout.GRAVITY_FILL);\n topTap.setTabMode(TabLayout.MODE_FIXED);\n topTap.setSelectedTabIndicatorColor(Color.YELLOW);\n\n // Initializing ViewPager\n viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n viewPager.setOffscreenPageLimit(2);\n\n // Creating TabPagerAdapter adapter\n TabPagerAdapter pagerAdapter = new TabPagerAdapter(activity.getSupportFragmentManager(), topTap.getTabCount());\n viewPager.setAdapter(pagerAdapter);\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(topTap));\n\n // Set TabSelectedListener\n topTap.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n return view;\n }", "@Override\n\tpublic void onCreated(Bundle savedInstanceState) {\n\t\tsetContentView(R.layout.tab_download);\n\t}", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n adapter = new ViewPagerAdapter(getChildFragmentManager(),Titles,Numboftabs);\n\n // Assigning ViewPager View and setting the adapter\n pager = (ViewPager) getView().findViewById(R.id.pager);\n pager.setAdapter(adapter);\n\n // Assiging the Sliding Tab Layout View\n tabs = (SlidingTabLayout) getView().findViewById(R.id.tabs);\n tabs.setDistributeEvenly(true); // To make the Tabs Fixed set this true, This makes the tabs Space Evenly in Available width\n\n // Setting Custom Color for the Scroll bar indicator of the Tab View\n tabs.setCustomTabColorizer(new SlidingTabLayout.TabColorizer() {\n @Override\n public int getIndicatorColor(int position) {\n return getResources().getColor(R.color.tabsScrollColor);\n }\n });\n\n // Setting the ViewPager For the SlidingTabsLayout\n tabs.setViewPager(pager);\n }", "public void init(){\n tabHost = (TabHost)findViewById(android.R.id.tabhost);\n\n //Creating tab menu.\n TabHost.TabSpec TabMenu1 = tabHost.newTabSpec(\"First tab\");\n TabHost.TabSpec TabMenu2 = tabHost.newTabSpec(\"Second tab\");\n TabHost.TabSpec TabMenu3 = tabHost.newTabSpec(\"Third tab\");\n\n //Setting up tab 1 name.\n TabMenu1.setIndicator(getResources().getString(R.string.map));\n //Set tab 1 activity to tab 1 menu.\n Intent intent = new Intent(this, MapsActivity.class);\n intent.putExtra(\"studentObj\", student);\n TabMenu1.setContent(intent);\n\n\n //Setting up tab 2 name.\n TabMenu2.setIndicator(getResources().getString(R.string.people));\n intent = new Intent(this, PeopleActivity.class);\n TabMenu2.setContent(intent);\n\n //Setting up tab 2 name.\n TabMenu3.setIndicator(getResources().getString(R.string.setting));\n intent = new Intent(this, SettingActivity.class);\n TabMenu3.setContent(intent);\n\n //\n tabHost.addTab(TabMenu1);\n tabHost.addTab(TabMenu2);\n tabHost.addTab(TabMenu3);\n }", "public void initTab(ArrayList<CircuitUsageModel> modelList) {\n\t\ttabHost = getTabHost();\n\t\tResources res = getResources();\n\n\t\t// energy\n\t\tenergySpec = tabHost.newTabSpec(\"energy\");\n\t\tenergySpec.setIndicator(getString(R.string.energy),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_energy));\n\t\t// power\n\t\tpowerSpec = tabHost.newTabSpec(\"power\");\n\t\tpowerSpec.setIndicator(getString(R.string.power),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_power));\n\t\t// credit\n\t\tcreditSpec = tabHost.newTabSpec(\"credit\");\n\t\tcreditSpec.setIndicator(getString(R.string.credit),\n\t\t\t\tres.getDrawable(R.drawable.ic_tab_credit));\n\n\t\t// set tab content\n\t\tsetTabContent(modelList);\n\t\t\n\t\t// auto refresh\n\t\tautoRefresh();\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate( R.layout.fragment_news, container, false );\n vp = (ViewPager)view.findViewById(R.id.vp);\n FragmentAdapter adapter = new FragmentAdapter(getFragmentManager(),getContext());\n vp.setAdapter(adapter);\n\n TabLayout tabLayout = (TabLayout)view.findViewById(R.id.scrollTab);\n tabLayout.setupWithViewPager(vp);\n\n tabLayout.setTabGravity(TabLayout.GRAVITY_CENTER);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n // Inflate the layout for this fragment\n View view = inflater.inflate(R.layout.fragment_coucil, container, false);\n tabLayout = (TabLayout)view.findViewById(R.id.council_tabs);\n viewPager = (ViewPager)view.findViewById(R.id.view_pager_council);\n viewPager.setAdapter(new CouncilFramgentPageAdapter(getChildFragmentManager()));\n tabLayout.setupWithViewPager(viewPager);\n\n return view;\n }", "private void setupTabs() {\n }", "private void setupTabLayout() {\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n });\n tabLayout.getTabAt(0).select();\n View root = tabLayout.getChildAt(0);\n //create divider between the tabs\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColorFilter(0xffff0000, PorterDuff.Mode.MULTIPLY);\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n }", "@Override\n public void Create() {\n\n initView();\n }", "public AccidentFrame(){\r\n super(\"Motor Vehicle Registration Application\");\r\n accidentPanel = new AccidentPanel();\r\n JTabbedPane tabbedPane = new JTabbedPane();\r\n tabbedPane.addTab(\"Add new accident\", accidentPanel); \r\n tabbedPane.addTab(\"View all accidents\", new DisplayAccident());\r\n JLabel titleLabel=new JLabel(\"Queensland Road and Transport Authority\");\r\n \r\n this.add(tabbedPane);\r\n \r\n }", "@Override\n public void onCreate(Bundle icicle) {\n super.onCreate(icicle);\n createTabs();\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t// Otteniamo il riferimento al TabHost\n\t\tTabHost tabHost = getTabHost();\n\t\t// Aggiungiamo un secondo tab che utilizza una factory\n\t\ttabHost.addTab(tabHost.newTabSpec(\"Factory\").setContent(\n\t\t\t\tnew MyTabContentFactory(this)).setIndicator(\"Factory\"));\n\t\t// Aggiungiamo il terzo Tab relativo ad un Intent\n\t\tIntent newIntent = new Intent(this,SecondActivity.class);\n\t\ttabHost.addTab(tabHost.newTabSpec(\"Intent\").setContent(newIntent).setIndicator(\"Intent\"));\t\t\n\t}", "public AutomatedTestingTabbedPane()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\tthis.setBackground(Constants.WHITE);\r\n\t\tthis.setForeground(Constants.BLUE);\r\n\t\t\r\n\t\tthis.setFont(new Font(\"sans-serif\", Font.PLAIN, 16));\r\n\t\tthis.addTab(\"CXCParticipant\", participantPanel);\r\n\t\tthis.setMnemonicAt(0, KeyEvent.VK_1);\r\n\t\t\r\n\t\tthis.addTab(\"CXCToken\", tokenPanel);\r\n\t\tthis.setMnemonicAt(1, KeyEvent.VK_2);\r\n\t\t\r\n\t\tthis.addTab(\"CXCRecipient\", recipientPanel);\r\n\t\tthis.setMnemonicAt(2, KeyEvent.VK_3);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPayment\", paymentPanel);\r\n\t\tthis.setMnemonicAt(3, KeyEvent.VK_4);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPaymentRequest\", paymentRequestPanel);\r\n\t\tthis.setMnemonicAt(4, KeyEvent.VK_5);\r\n\t\t\r\n//\t\tthis.addTab(\"Export\", exportPanel);\r\n//\t\tthis.setMnemonicAt(5, KeyEvent.VK_6);\r\n\r\n\t}", "public Tab openTab(UrlData urlData) {\n Tab tab = showPreloadedTab(urlData);\n if (tab == null) {\n tab = createNewTab(false, true, true);\n if ((tab != null) && !urlData.isEmpty()) {\n loadUrlDataIn(tab, urlData);\n }\n }\n return tab;\n }", "public AdministrationPanel(JFrame parent) {\n this.parent = parent;\n initComponents();\n\n tv = new TabView();\n eap = new EmployeeAdministrationPanel(parent);\n vap = new CarAdministrationPanel(parent);\n tv.addNewTab(\"Medarbejder\", eap);\n tv.addNewTab(\"Biler\", vap);\n\n add(tv, BorderLayout.CENTER);\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.tab_emergency);\n\t\t\n\t\tinsertView();\n\t}", "private void initialiseTabHost(Bundle args) {\n\t\tmTabHost = (TabHost)findViewById(android.R.id.tabhost);\n mTabHost.setup();\n TabInfo tabInfo = null;\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab1\").setIndicator(\"Waveform\"), ( tabInfo = new TabInfo(\"Tab1\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab2\").setIndicator(\"FFT\"), ( tabInfo = new TabInfo(\"Tab2\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab3\").setIndicator(\"AC\"), ( tabInfo = new TabInfo(\"Tab3\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n MainActivity.addTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Tab4\").setIndicator(\"Pitch\"), ( tabInfo = new TabInfo(\"Tab4\", DrawFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n // Default to first tab\n this.onTabChanged(\"Tab1\");\n //\n mTabHost.setOnTabChangedListener(this);\n\t}", "public void init() {\n\t\ttabbed = new JTabbedPane();\n\t\ttabbed.insertTab(\"Sesion\", null, getPanelSesion(), \"Control de la sesion\", 0);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, new JPanel(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, new JPanel(), \"Control de los eventos\", 2);\n\t\ttabbed.insertTab(\"Control de Agentes\", null, getPanelAgentes(), \"Control de los agentes\", 3);\n\t\tgetContentPane().add(tabbed);\n\t\ttabbed.setEnabledAt(1, false);\n\t\ttabbed.setEnabledAt(2, false);\n\t\tsetSize(new Dimension(800, 600));\n\t}", "public DatasetTab(int index) {\n tab = new VerticalLayout();\n replicatesSheet = new TabSheet();\n for (int replicateIndex = 0;\n replicateIndex < presenter.getNumberOfReplicates();\n replicateIndex++) {\n ReplicateTab replicateTab = new ReplicateTab(index, replicateIndex);\n replicatesSheet.addTab(replicateTab, \"Replicate \" + createAlphabeticalIndex(replicateIndex));\n }\n setCompositionRoot(tab);\n }", "private void challengeStartNew() {\n FragmentManager fm = getSupportFragmentManager();\n FragmentNewChallenge newChallenge = FragmentNewChallenge.newInstance(\"Titel\");\n newChallenge.show(fm, \"fragment_start_new_challenge\");\n }", "private void initialiseViews() {\n setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL);\n bindings = DataBindingUtil.setContentView(this, R.layout.activity_catalog_product);\n bindings.activityCatalogProductPb.setVisibility(View.GONE);\n\n bindings.activityCatalogProductFab.setOnClickListener(v -> {\n\n Intent addProductIntent = new Intent(ProductCatalogMain.this,\n ProductEditor.class);\n startActivity(addProductIntent);\n\n overridePendingTransition(R.anim.slide_in_right, R.anim.slide_out_left);\n\n });\n\n setSupportActionBar(bindings.activityCatalogProductToolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n tabPageAdapter = new ProductCatalogFragmentPageAdapter(getSupportFragmentManager());\n tabViewPager = bindings.activityCatalogProductVp;\n tabViewPager.setAdapter(tabPageAdapter);\n\n if (bindings.activityCatalogProductVp != null) {\n setupViewPager(bindings.activityCatalogProductVp);\n }\n\n // Sets up the Tab's and their titles.\n bindings.activityCatalogProductTl.setupWithViewPager(bindings.activityCatalogProductVp);\n\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 ViewPager viewPager= view.findViewById(R.id.viewPager);\n TabLayout tabLayout= view.findViewById(R.id.tabLayout);\n SectionAdapter adapter = new SectionAdapter(getChildFragmentManager(),getContext());\n viewPager.setAdapter(adapter);\n viewPager.setCurrentItem(mPosition);\n tabLayout.setupWithViewPager(viewPager);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rowView = inflater.inflate(R.layout.fragment_tab_one, container, false);\n TextView pending = (TextView) rowView.findViewById(R.id.pending);\n pending.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(getActivity(),TaskView.class);\n startActivity(intent);\n }\n });\n return rowView;\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n Resources res = getResources(); // Resource object to get Drawables\n TabHost tabHost = getTabHost(); // The activity TabHost\n TabHost.TabSpec spec; // Resusable TabSpec for each tab\n Intent intent; // Reusable Intent for each tab\n\n // Create an Intent to launch an Activity for the tab (to be reused)\n intent = new Intent().setClass(this, TextActivity.class);\n\n // Initialize a TabSpec for each tab and add it to the TabHost\n spec = tabHost.newTabSpec(\"text\").setIndicator(\"Controle\",\n res.getDrawable(R.drawable.ic_tab_artists))\n .setContent(intent);\n tabHost.addTab(spec);\n\n // Do the same for the other tabs\n intent = new Intent().setClass(this, CMUcamActivity.class);\n spec = tabHost.newTabSpec(\"video\").setIndicator(\"Video\",\n res.getDrawable(R.drawable.ic_tab_artists))\n .setContent(intent);\n tabHost.addTab(spec);\n\n intent = new Intent().setClass(this, ConfigActivity.class);\n spec = tabHost.newTabSpec(\"config\").setIndicator(\"Config\",\n res.getDrawable(R.drawable.ic_tab_artists))\n .setContent(intent);\n tabHost.addTab(spec);\n \n intent = new Intent().setClass(this, OldActivity.class);\n spec = tabHost.newTabSpec(\"old\").setIndicator(\"Old\",\n res.getDrawable(R.drawable.ic_tab_artists))\n .setContent(intent);\n tabHost.addTab(spec);\n\n tabHost.setCurrentTab(3);\n\n }", "private IcsLinearLayout createTabLayout() {\n\t\tfinal IcsLinearLayout tabLayout = (IcsLinearLayout) LayoutInflater\n\t\t\t\t.from(getContext()).inflate(\n\t\t\t\t\t\tR.layout.abs__action_bar_tab_bar_view, null);\n\t\ttabLayout.setMeasureWithLargestChildEnabled(true);\n\t\ttabLayout.setLayoutParams(new LinearLayout.LayoutParams(\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT,\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.MATCH_PARENT));\n\t\treturn tabLayout;\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.bilan);\n \n TabHost tabHost = getTabHost();\n \n // Tab for Expense\n TabSpec expspec = tabHost.newTabSpec(\"Expenses\");\n expspec.setIndicator(\"Expenses\");\n Intent expIntent = new Intent(this, ExpenseTabActivity.class);\n expspec.setContent(expIntent);\n \n // Tab for Income\n TabSpec incspec = tabHost.newTabSpec(\"Incomes\");\n incspec.setIndicator(\"Incomes\");\n Intent incIntent = new Intent(this, IncomeTabActivity.class);\n incspec.setContent(incIntent);\n \n // Tab for Balance\n TabSpec balspec = tabHost.newTabSpec(\"Balance\");\n balspec.setIndicator(\"Balance\");\n Intent balIntent = new Intent(this, BalanceTabActivity.class);\n balspec.setContent(balIntent);\n \n // Adding all TabSpec to TabHost\n \n tabHost.addTab(expspec); // Adding expense tab\n tabHost.addTab(incspec); // Adding income tab\n tabHost.addTab(balspec); // Adding balance tab\n \n \n }", "private void setupTab(final View view, final String tag) {\r\n\t\tView tabview = createTabView(mTabHost.getContext(), tag);\r\n\r\n\t\tTabSpec setContent = mTabHost.newTabSpec(tag).setIndicator(tabview)\r\n\t\t\t\t.setContent(new TabContentFactory() {\r\n\t\t\t\t\tpublic View createTabContent(String tag) {\r\n\t\t\t\t\t\tView view;\r\n\t\t\t\t\t\tif (tag.contains(\"EXTENDED\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_2_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedNO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET1);\r\n\t\t\t\t\t\t\tedNIO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET2);\r\n\t\t\t\t\t\t\tedNP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET3);\r\n\t\t\t\t\t\t\tedNIP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET4);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tedNO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNP.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIP.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tNO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB1);\r\n\t\t\t\t\t\t\tNIO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB2);\r\n\t\t\t\t\t\t\tNP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB3);\r\n\t\t\t\t\t\t\tNIP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB4);\r\n\t\t\t\t\t\t\tNO.setEnabled(false); \r\n\t\t\t\t\t\t\tNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tNP.setEnabled(false);\r\n\t\t\t\t\t\t\tNIP.setEnabled(false);\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\textended = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB0);\r\n\t\t\t\t\t\t\textended.setOnClickListener(S3R4Listener2);\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} else if (tag.contains(\"CUSTOM\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_3_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_1_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedlevels = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET1);\r\n\t\t\t\t\t\t\tedSons = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET2);\r\n\t\t\t\t\t\t\tedlevel = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET3);\r\n\t\t\t\t\t\t\tedpruduct = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET4);\r\n\t\t\t\t\t\t\tedcampaign = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET5);\r\n\t\t\t\t\t\t\tedadd = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET6);\r\n\t\t\t\t\t\t\tedlevels.setEnabled(false);\r\n\t\t\t\t\t\t\tedSons.setEnabled(false);\r\n\t\t\t\t\t\t\tedlevel.setEnabled(false);\r\n\t\t\t\t\t\t\tedpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tedcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tedadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlevel= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB3);\r\n\t\t\t\t\t\t\tpruduct= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB4);\r\n\t\t\t\t\t\t\tcampaign= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB5);\r\n\t\t\t\t\t\t\tadd= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB6);\r\n\t\t\t\t\t\t\tlevel.setEnabled(false); \r\n\t\t\t\t\t\t\tpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\tStructure = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB1);\r\n\t\t\t\t\t\t\tRules = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB2);\r\n\t\t\t\t\t\t\tStructure.setOnClickListener(S3R4Listener);\r\n\t\t\t\t\t\t\tRules.setOnClickListener(S3R4Listener);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn view;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\tmTabHost.addTab(setContent);\r\n\r\n\t}", "private void initTabs() {\n\t\tmContainer.removeAllViews();\n\n\t\tif(mAdapter==null||mViewPager==null){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor(int i=0;i<mViewPager.getAdapter().getCount();i++){\n\t\t\tfinal int index=i;\n\t\t\tButton tabs= (Button) mAdapter.getView(index);\n\t\t\tLayoutParams layoutParams=new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n\t\t\tlayoutParams.weight=1;\n\t\t\tmContainer.addView(tabs,layoutParams);\n\t\t\t\n\t\t\ttabs.setOnClickListener(new OnClickListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tif(mViewPager.getCurrentItem()==index){\n\t\t\t\t\t\tselectTab(index);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tmViewPager.setCurrentItem(index, true);\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\tselectTab(0);\n\t}", "public static FragmentHistoryVerticalTabbed newInstance() {\n return new FragmentHistoryVerticalTabbed();\n }", "public static ViewMaintenanceList newInstance() {\n ViewMaintenanceList fragment = new ViewMaintenanceList();\n return fragment;\n }", "View createView();", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tLog.e(tag,tag+\"=>onCreate \");\n\t\t// Define the Tab structure\n\t\tsetContentView(R.layout.main);\n\t\t// Retrieve the ressource to access to the icon\n\t\tResources resources = getResources(); // Resource object to get Drawables\n\t\t// Set the tabHost (set it has final to use it in the OnTabChangeListener)\n\t\tfinal TabHost tabHost = getTabHost();\n\t\t// Define the tabSpec that can be thought has the content of the TabPanel\n\t\tTabHost.TabSpec tabSpec;\n\t\t// Define the intent that is used to populate the tabSpec\n\t\tIntent intent;\n\n\t\t// Create an Intent to launch an Activity for the tab\n\t\tintent = new Intent().setClass(this, Android2eeWebSTI.class);\n\n\t\t// Initialize a TabSpec for each tab and add it to the TabHost\n\t\t// Get a new TabHost.TabSpec associated with this tab host.\n\t\ttabSpec = tabHost.newTabSpec(\"Android2ee\");\n\t\t// Define its indicator the label displayed (it should be\n\t\t// ressources.getString(R.string.stringId)\n\t\ttabSpec.setIndicator(\"Android2EE\", resources.getDrawable(R.drawable.ic_tab));\n\t\t// Define the content of the Spec (the TabPanel)\n\t\ttabSpec.setContent(intent);\n\t\t// Add it to the tab container\n\t\ttabHost.addTab(tabSpec);\n\n\t\t// Do the same with the tab that displays a simple TextView:\n\t\t// Define the intent that will be displayed\n\t\tintent = new Intent().setClass(this, TextViewActivity.class);\n\t\t// Get a new TabHost.TabSpec associated with this tab host.\n\t\ttabSpec = tabHost.newTabSpec(\"textView\");\n\t\t// Define its indicator the label displayed (it should be\n\t\t// ressources.getString(R.string.stringId)\n\t\ttabSpec.setIndicator(\"TextView\", resources.getDrawable(R.drawable.ic_tab));\n\t\t// Define the content of the Spec (the TabPanel)\n\t\ttabSpec.setContent(intent);\n\t\t// Add it to the tab container\n\t\ttabHost.addTab(tabSpec);\n\t\t\n\t\t// Do the same with the tab that displays a simple Clock (analogic and digital):\n\t\t// Define the intent that will be displayed\n\t\tintent = new Intent().setClass(this, ClockAD.class);\n\t\t// Get a new TabHost.TabSpec associated with this tab host.\n\t\ttabSpec = tabHost.newTabSpec(\"clock\");\n\t\t// Define its indicator the label displayed\n\t\ttabSpec.setIndicator(\"Clock\", resources.getDrawable(R.drawable.ic_tab));\n\t\t// Define the content of the Spec (the TabPanel)\n\t\ttabSpec.setContent(intent);\n\t\t// Add it to the tab container\n\t\ttabHost.addTab(tabSpec);\n\t\t\n\t\t\n\t\t//Define the current tab displayed (here the clock)\n\t\ttabHost.setCurrentTab(2);\n\t\t//Add a listener that just displays a Toast with the tag of the new selected tab\n\t\ttabHost.setOnTabChangedListener(new OnTabChangeListener() {\n\t\t\t@Override\n\t\t\tpublic void onTabChanged(String tabId) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"New tab selection : \" + tabHost.getCurrentTabTag(),\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t});\n\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_blank1, container, false);\n\n viewPager=view.findViewById(R.id.viewPagerId);\n tableLayout=view.findViewById(R.id.tablayout);\n\n return view; }", "public RequestNotificationsTabFragment() {\n }", "public static EDACCPlotTabView getMainTabView() {\n if (tabViews.size() == 0) {\n EDACCPlotTabView tabView = new EDACCPlotTabView();\n tabView.updateTitle(\"\");\n tabViews.add(tabView);\n tabViewCountChanged();\n }\n return tabViews.get(0);\n }", "private void setTabLayout() {\n View view = LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n TextView title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n ImageView imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.MOVIES);\n imgIcon.setImageResource(R.mipmap.ic_home);\n mTabLayout.getTabAt(0).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n count = (TextView) view.findViewById(R.id.item_tablayout_count_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.FAVOURITE);\n imgIcon.setImageResource(R.mipmap.ic_favorite);\n count.setVisibility(View.VISIBLE);\n mTabLayout.getTabAt(1).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.SETTINGS);\n imgIcon.setImageResource(R.mipmap.ic_settings);\n mTabLayout.getTabAt(2).setCustomView(view);\n\n view =\n LayoutInflater.from(getApplicationContext()).inflate(R.layout.tab_layout_item, null);\n title = (TextView) view.findViewById(R.id.item_tablayout_title_txt);\n imgIcon = (ImageView) view.findViewById(R.id.item_tablayout_img);\n title.setText(Constants.ABOUT);\n imgIcon.setImageResource(R.mipmap.ic_info);\n mTabLayout.getTabAt(3).setCustomView(view);\n }", "private void createNetworksPanel() {\n\t\ttabs = new ArrayList<>();\n\t\tnetworksPanel = new JTabbedPane();\n\t\tthis.add(networksPanel, BorderLayout.CENTER);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n tabLayout = view.findViewById(R.id.tabs);\n viewPager = view.findViewById(R.id.viewpager);\n setViewPager();\n return view;\n\n\n }", "private void initViewPager() {\n List<Fragment> fragments = new ArrayList<>();\n FragmentManager fragmentManager = getSupportFragmentManager();\n ChatsFragment chatsFragment = new ChatsFragment();\n Bundle bundle = new Bundle();\n bundle.putSerializable(\"currentUser\", currentUser);\n chatsFragment.setArguments(bundle);\n GroupsFragment groupsFragment = new GroupsFragment();\n groupsFragment.setArguments(bundle);\n ContactsFragment contactsFragment = new ContactsFragment();\n contactsFragment.setArguments(bundle);\n fragments.add(chatsFragment);\n fragments.add(contactsFragment);\n fragments.add(groupsFragment);\n List<String> titles = new ArrayList<>();\n titles.add(\"Chats\");\n titles.add(\"Contacts\");\n titles.add(\"Groups\");\n TabsAdapter tabsAdapter = new TabsAdapter(fragmentManager, fragments, titles);\n viewPager.setAdapter(tabsAdapter);\n tabLayout.setupWithViewPager(viewPager);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View view = inflater.inflate(R.layout.fragment_people, container, false);\n final Bundle args = getArguments();\n\n TabLayout tabLayout = (TabLayout) view.findViewById(R.id.tab_layout_people);\n tabLayout.addTab(tabLayout.newTab().setText(\"Individual\"));\n tabLayout.addTab(tabLayout.newTab().setText(\"Groups\"));\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n\n final ViewPager viewPager = (ViewPager) view.findViewById(R.id.pager_people);\n\n ArrayList<Fragment> tabs = new ArrayList<>();\n tabs.add(new IndividualPeopleFragment());\n tabs.add(new GroupPeopleFragment());\n\n final TabPagerAdapter adapter = new TabPagerAdapter(getFragmentManager(), tabs);\n viewPager.setAdapter(adapter);\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));\n tab = args == null ? tab : args.getInt(ARGUMENT_TAB_ID);\n viewPager.setCurrentItem(tab);\n tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_listas, container, false);\n unbinder = ButterKnife.bind(this, view);\n //ViewPager viewPager = (ViewPager) view.findViewById(R.id.viewpager);\n setupViewPager(viewPager);\n // Set Tabs inside Toolbar\n //TabLayout tabs = (TabLayout) view.findViewById(R.id.tabs);\n tabs.setupWithViewPager(viewPager);\n //setupViewPager2(viewpager);\n // tabs.setupWithViewPager(viewpager);\n return view;\n\n }", "private static void AddTab(MenuActivity activity, TabHost tabHost,\n TabHost.TabSpec tabSpec, TabInfo tabInfo) {\n tabSpec.setContent(activity.new TabFactory(activity));\n tabHost.addTab(tabSpec);\n Log.i(\"LOG\",\"Cria Aba\");\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 }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View x = inflater.inflate(R.layout.tablayout,null);\n tabLayout = (TabLayout) x.findViewById(R.id.tabs);\n viewPager = (ViewPager) x.findViewById(R.id.viewpager);\n\n /**\n *Set an Apater for the View Pager\n */\n viewPager.setAdapter(new MyAdapter(getChildFragmentManager()));\n\n /**\n * Now , this is a workaround ,\n * The setupWithViewPager dose't works without the runnable .\n * Maybe a Support Library Bug .\n */\n\n tabLayout.post(new Runnable() {\n @Override\n public void run() {\n tabLayout.setupWithViewPager(viewPager);\n }\n });\n\n return x;\n\n }", "private void initView() {\n\n LinearLayout bar = (LinearLayout) LayoutInflater.from(mContext).inflate(R.layout.bottom_bar, null);\n LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\n addView(bar, lp);\n tab1= (LinearLayout) bar.findViewById(R.id.tab1);\n tab2= (LinearLayout) bar.findViewById(R.id.tab2);\n tab3= (LinearLayout) bar.findViewById(R.id.tab3);\n tab4= (LinearLayout) bar.findViewById(R.id.tab4);\n ivTab1= (ImageView) bar.findViewById(R.id.ivTab1);\n tvTab1= (TextView) bar.findViewById(R.id.tvTab1);\n ivTab2= (ImageView) bar.findViewById(R.id.ivTab2);\n tvTab2= (TextView) bar.findViewById(R.id.tvTab2);\n ivTab3= (ImageView) bar.findViewById(R.id.ivTab3);\n tvTab3= (TextView) bar.findViewById(R.id.tvTab3);\n ivTab4= (ImageView) bar.findViewById(R.id.ivTab4);\n tvTab4= (TextView) bar.findViewById(R.id.tvTab4);\n\n tab1.setOnClickListener(this);\n tab2.setOnClickListener(this);\n tab3.setOnClickListener(this);\n tab4.setOnClickListener(this);\n\n }", "public DoctorMainTabbedPane() {\n super();\n initialize();\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n Resources resources=getResources();\n \n TabHost tabHost=getTabHost();\n \n TabHost.TabSpec \tspec;\n \n Intent intent;\n \n intent=new Intent(this,Activity1.class);\n spec=tabHost.newTabSpec(\"ssss\").setIndicator(\"第一页\",resources.getDrawable(R.drawable.btn_star_big_on)).setContent(intent);\n tabHost.addTab(spec);\n \n intent=new Intent(this,Activity2.class);\n spec=tabHost.newTabSpec(\"dadd\").setIndicator(\"第二页\",resources.getDrawable(R.drawable.btn_star_big_on)).setContent(intent);\n tabHost.addTab(spec);\n \n intent=new Intent(this,Activity3.class);\n spec=tabHost.newTabSpec(\"sdsd\").setIndicator(\"第三页\",resources.getDrawable(R.drawable.btn_star_big_on)).setContent(intent);\n tabHost.addTab(spec);\n \n tabHost.setCurrentTab(1);\n }", "private void addTab(String label, int drawableId, Intent i) {\n \tTabHost.TabSpec spec = tabHost.newTabSpec(label);\r\n \tView tabIndicator = LayoutInflater.from(this).inflate(R.layout.tabs, getTabWidget(), false);\r\n \tTextView title = (TextView) tabIndicator.findViewById(R.id.title);\r\n \ttitle.setText(label);\r\n// \tImageView icon = (ImageView) tabIndicator.findViewById(R.id.icon);\r\n// \ticon.setImageResource(drawableId);\r\n \tspec.setIndicator(tabIndicator).setContent(i);\r\n \ttabHost.addTab(spec);\r\n }", "@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.tab_news_layout_holder);\r\n\t\tinitFragment();\r\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n start =0;\n setContentView(R.layout.tabs);\n th = (TabHost)findViewById(R.id.tabHost);\n Button newtab = (Button)findViewById(R.id.bAddTab);\n Button bStart = (Button)findViewById(R.id.bStartWatch);\n Button bStop = (Button)findViewById(R.id.bStopWatch);\n showResults = (TextView)findViewById(R.id.textView);\n bStart.setOnClickListener(this);\n bStop.setOnClickListener(this);\n newtab.setOnClickListener(this);\n th.setup();\n TabHost.TabSpec specs = th.newTabSpec(\"tag1\");\n specs.setContent(R.id.tab1); //the linear layout we set up in tabhost\n specs.setIndicator(\"StopWatch\");\n th.addTab(specs);\n specs = th.newTabSpec(\"tag2\");\n specs.setContent(R.id.tab2); //the linear layout we set up in tabhost\n specs.setIndicator(\"Tab 2\");\n th.addTab(specs);\n specs = th.newTabSpec(\"tag3\");\n specs.setContent(R.id.tab3); //the linear layout we set up in tabhost\n specs.setIndicator(\"Add a tab\");\n th.addTab(specs);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n inflatedView = inflater.inflate(R.layout.fragment_tab3, container, false);\n return inflatedView;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_notification, container, false);\n\n tabLayout = view.findViewById(R.id.tabLayout_noti);\n ViewPager viewPager = view.findViewById(R.id.vpgNoti);\n setUpViewPager(viewPager);\n tabLayout.setupWithViewPager(viewPager);\n\n tabLayout.setOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n viewPager.setCurrentItem(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n\n }\n });\n\n return view;\n }", "private void setupTheFrangment() {\n viewPager = (ViewPager) findViewById(R.id.viewpager);\n adapterViewPager = new MyPagerAdapter(getSupportFragmentManager());\n viewPager.setAdapter(adapterViewPager);\n\n // Give the TabLayout the ViewPager\n TabLayout tabLayout = (TabLayout) findViewById(R.id.sliding_tabs);\n tabLayout.setupWithViewPager(viewPager);\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_pembayaran, container, false);\r\n ((MainActivity)getActivity()).enableViews(false);\r\n TextView mTitle = (TextView) getActivity().findViewById(R.id.toolbar_title);\r\n getActivity().setTitle(\"\");\r\n mTitle.setText(\"Pembayaran\");\r\n\r\n tabLayout = (TabLayout) view.findViewById(R.id.tab_pembayaran);\r\n viewPager = (ViewPager) view.findViewById(R.id.view_pager_pembayaran);\r\n\r\n viewPager.setAdapter(new PembayaranAdapter(getChildFragmentManager()));\r\n tabLayout.setupWithViewPager(viewPager);\r\n\r\n return view;\r\n }", "@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.main);\n\t\tmContext = this;\n\n\t\tinitView();\n\n\t\tgestureDetector = new GestureDetector(new TabHostTouch());\n\t\tnew View.OnTouchListener() {\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tif (gestureDetector.onTouchEvent(event)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t};\n\n\t\tframeLayout = mTabHost.getTabContentView();\n\t}", "private void initView() {\n\t\tfragment_viewpager = (ViewPager) findViewById(R.id.fragment_viewpager);\n\n\t\tMain_bottom_change one = (Main_bottom_change) findViewById(R.id.Main_bottom_1);\n\t\tMain_bottom_change two = (Main_bottom_change) findViewById(R.id.Main_bottom_2);\n\t\tMain_bottom_change three = (Main_bottom_change) findViewById(R.id.Main_bottom_3);\n\n\t\tmTabIndicator.add(one);\n\t\tmTabIndicator.add(two);\n\t\tmTabIndicator.add(three);\n\n\t\tone.setOnClickListener(this);\n\t\ttwo.setOnClickListener(this);\n\t\tthree.setOnClickListener(this);\n\n\t\tone.setIconAlpha(1.0f);\n\t}", "private void initViewPager() {\n ViewPager viewPager = (ViewPager) findViewById(R.id.viewpager);\n if (viewPager != null) {\n viewPager.setAdapter(new MainPagerAdapter(getFragmentManager()));\n }\n\n // Give the TabLayout the ViewPager\n TabLayout tabLayout = (TabLayout) findViewById(R.id.sliding_tabs);\n if (tabLayout != null) {\n tabLayout.setTabMode(TabLayout.MODE_FIXED);\n tabLayout.setTabGravity(TabLayout.GRAVITY_FILL);\n tabLayout.setupWithViewPager(viewPager);\n }\n }", "@Override\n\tpublic void init() {\n\t\tsetMainWindow(new Window(\"Module Demo Application\", tabs));\n\t\ttabs.setSizeFull();\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n\n viewPager = (ViewPager) view.findViewById(R.id.view_pager);\n tabLayout = (TabLayout) view.findViewById(R.id.tab_layout);\n FragmentManager manager = getChildFragmentManager();\n PagerAdapter adapter = new com.example.quanla.book.adapters.PagerAdapter(manager);\n viewPager.setAdapter(adapter);\n tabLayout.setupWithViewPager(viewPager);\n viewPager.addOnPageChangeListener(new TabLayout.TabLayoutOnPageChangeListener(tabLayout));\n tabLayout.setTabsFromPagerAdapter(adapter);\n\n return view;\n }", "private void initialiseTabHost(Bundle args) {\n\t\tmTabHost = (TabHost)findViewById(android.R.id.tabhost);\n mTabHost.setup();\n Utils.TabInfo tabInfo = null;\n EventActivity.AddTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Content Feed\").setIndicator(\"Content Feed\"), ( tabInfo = new TabInfo(\"Content Feed\", EventContentFeedFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n EventActivity.AddTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Description\").setIndicator(\"Description\"), ( tabInfo = new TabInfo(\"Description\", EventDescriptionFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n EventActivity.AddTab(this, this.mTabHost, this.mTabHost.newTabSpec(\"Schedule\").setIndicator(\"Schedule\"), ( tabInfo = new TabInfo(\"Schedule\", EventScheduleFragment.class, args)));\n this.mapTabInfo.put(tabInfo.tag, tabInfo);\n // Default to first tab\n //this.onTabChanged(\"Content Feed\");\n //\n mTabHost.setOnTabChangedListener(this);\n\t}", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tv = inflater.inflate(R.layout.fragment1_tabs, container, false);\n\t\tmTabHost = (TabHost)v.findViewById(R.id.TabHost01);\n mTabHost.setup();\n \n mTabManager = new TabManager(getActivity(), mTabHost, R.id.realtabcontents);\n mTabHost.setCurrentTab(0);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab1\").setIndicator(\"Tab1\",this.getResources().getDrawable(R.drawable.car1)),\n \t\tFragment1_Tab1.class, null);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab2\").setIndicator(\"Tab2\",this.getResources().getDrawable(R.drawable.car2)),\n \t\tFragment1_Tab2.class, null);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab3\").setIndicator(\"Tab3\",this.getResources().getDrawable(R.drawable.car3)),\n \t\tFragment3.class, null);\n mTabManager.addTab(mTabHost.newTabSpec(\"Tab4\").setIndicator(\"Tab4\",this.getResources().getDrawable(R.drawable.car4)),\n \t\tFragment4.class, null);\n \n DisplayMetrics dm = new DisplayMetrics(); \n getActivity().getWindowManager().getDefaultDisplay().getMetrics(dm); //先取得螢幕解析度 \n int screenWidth = dm.widthPixels; //取得螢幕的寬\n \n \n TabWidget tabWidget = mTabHost.getTabWidget(); //取得tab的物件\n int count = tabWidget.getChildCount(); //取得tab的分頁有幾個\n if (count > 3) { //如果超過三個就來處理滑動\n for (int i = 0; i < count; i++) { \n tabWidget.getChildTabViewAt(i).setMinimumWidth((screenWidth) / 4);//設定每一個分頁最小的寬度 \n } \n }\n\t\treturn v;\n\t}", "private void createNewWebView()\n {\n //Remove the webView from it's parent if the webView exists\n if(webView != null) {\n ViewGroup parent = (ViewGroup) webView.getParent();\n parent.removeView(webView);\n }\n\n //Create a new WebView\n webView = new WebView(getContext());\n webView.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n\n //Add the new WebView to the webViewContainer\n webViewContainer.addView(webView);\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n TabHost tabHost = getTabHost();\n \n // Tab for Places\n TabSpec placesSpec = tabHost.newTabSpec(\"Places\");\n // setting Title and Icon for the Tab\n \n // placesSpec.setIndicator(\"Places\", getResources().getDrawable(R.drawable.ic_launcher));\n placesSpec.setIndicator(\"Places\");\n Intent PlacesIntent = new Intent(this,PlacesLayoutActivity.class);\n placesSpec.setContent(PlacesIntent);\n// \n// // Tab for Governates\n// \n TabSpec governatesSpec = tabHost.newTabSpec(\"Governates\");\n // governatesSpec.setIndicator(\"Governates\", getResources().getDrawable(R.drawable.ic_launcher));\n governatesSpec.setIndicator(\"Governates\");\n Intent GovernatesIntent = new Intent(this, GovernatesLayoutActivity.class);\n governatesSpec.setContent(GovernatesIntent);\n// \n// \n// // Adding all TabSpec to TabHost\n tabHost.addTab(placesSpec); // Adding photos tab\n tabHost.addTab(governatesSpec); // Adding songs tab\n }" ]
[ "0.7281446", "0.69806623", "0.6805274", "0.6509285", "0.6426515", "0.6383116", "0.63732564", "0.6302659", "0.63001716", "0.62870944", "0.6265526", "0.62451625", "0.61927634", "0.61860776", "0.6173267", "0.61668754", "0.61615306", "0.6145774", "0.61421657", "0.6119641", "0.61157316", "0.61036736", "0.6082598", "0.6074912", "0.60671955", "0.60487765", "0.6026936", "0.60188204", "0.6015211", "0.6004718", "0.59981036", "0.5982454", "0.5975131", "0.5966453", "0.59609985", "0.5958387", "0.59582555", "0.59501475", "0.59442884", "0.5942011", "0.59353286", "0.59206814", "0.59136635", "0.5913059", "0.59079343", "0.59027255", "0.5898936", "0.5897248", "0.5890118", "0.58831835", "0.58775675", "0.5875719", "0.587377", "0.58662844", "0.5845482", "0.5840878", "0.5835808", "0.58355963", "0.58281064", "0.58258516", "0.5820638", "0.58179104", "0.5816707", "0.581345", "0.5812954", "0.58106935", "0.58096784", "0.5801895", "0.58011675", "0.57957685", "0.5782115", "0.57811856", "0.5771858", "0.5771621", "0.57630664", "0.5754015", "0.5752643", "0.5719917", "0.57193404", "0.57172656", "0.57156974", "0.57123953", "0.5708082", "0.56952935", "0.56949395", "0.5692838", "0.5690806", "0.5687105", "0.5678602", "0.56766874", "0.56540674", "0.56524223", "0.56499714", "0.56382346", "0.5627405", "0.5621517", "0.5621516", "0.5620993", "0.5610646", "0.5607987" ]
0.567488
90
Called when the activity is first created.
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.fillup); submit=(Button)findViewById(R.id.button1); question=(EditText)findViewById(R.id.fillupq); answer=(EditText)findViewById(R.id.fillupa); sock = StaticAttributes.SocketHandler.normalSocket; s4 = this.getString(R.string.ques_accepted_by_teacher); s5 = this.getString(R.string.ques_rejected_by_teacher); submit.setOnClickListener(this); }
{ "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
Created by pygmalion on 2014/11/2.
public interface TsPtlUserDao { public TsPtlUser selectUserByUserPass(Map<String,String> map); public void updateUser(TsPtlUser user); public TsPtlUser selectUserById(Long userId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\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}", "private stendhal() {\n\t}", "public void gored() {\n\t\t\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\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@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\tpublic void nghe() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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}", "protected boolean func_70814_o() { return true; }", "private void kk12() {\n\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private void init() {\n\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void jugar() {\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}", "public void mo38117a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private void m50366E() {\n }", "@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\n protected void getExras() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public void mo4359a() {\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n void init() {\n }", "private void init() {\n\n\n\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n public void memoria() {\n \n }", "public void skystonePos4() {\n }", "@Override\n public void init() {}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tprotected void initialize() {\n\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 }", "public void Tyre() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }" ]
[ "0.6152928", "0.6082599", "0.606687", "0.5942312", "0.5942312", "0.59319407", "0.59137934", "0.5902079", "0.5894647", "0.5863259", "0.5852314", "0.5844823", "0.58396715", "0.5836958", "0.58346194", "0.5833028", "0.58301514", "0.5820233", "0.57839507", "0.5734627", "0.57340527", "0.5732928", "0.5732928", "0.5732928", "0.5732928", "0.5732928", "0.5728668", "0.57144016", "0.5713278", "0.56723523", "0.5648579", "0.5648579", "0.5647949", "0.5633908", "0.56326133", "0.5631998", "0.5627525", "0.5623896", "0.5623896", "0.5623896", "0.56201935", "0.56132066", "0.5588838", "0.55801237", "0.5575988", "0.5575138", "0.5567844", "0.55580676", "0.55580676", "0.5555463", "0.5555463", "0.5553379", "0.55532247", "0.5545", "0.5545", "0.5545", "0.5540213", "0.5539848", "0.5529365", "0.5526517", "0.5526517", "0.5526517", "0.5520596", "0.5507285", "0.5493245", "0.54909474", "0.54894114", "0.5479359", "0.5477585", "0.54759294", "0.54742014", "0.54708743", "0.5470589", "0.5464332", "0.5460081", "0.54595786", "0.5457861", "0.54571617", "0.5435436", "0.5434413", "0.54335415", "0.54312325", "0.54312325", "0.54283565", "0.5425213", "0.54167444", "0.5405511", "0.5402688", "0.5402688", "0.5402688", "0.5402688", "0.5402688", "0.5402688", "0.5389882", "0.5387696", "0.538573", "0.538573", "0.538573", "0.538573", "0.538573", "0.538573" ]
0.0
-1
Get name of filter
@Override public String name() { return this.name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getFilterName();", "@Override\n\tpublic String name() {\n\t\treturn filter.name();\n\t}", "public static String getNameFilter() {\r\n return nameFilter;\r\n }", "java.lang.String getFilter();", "String getFilter();", "public String getFilter()\n {\n return encryptionDictionary.getNameAsString( COSName.FILTER );\n }", "public String getFilter();", "public String getFilter() {\n\t\treturn filter;\n\t}", "public java.lang.String getFilter() {\n return filter;\n }", "public String getFilterLabel( )\n {\n return _strFilterLabel;\n }", "public String getEchoCancellerFilterName();", "Filter getFilter();", "public String getFilter() {\n\t\treturn url.getFilter();\n }", "public Filter getFilter(String name) {\n return (Filter) _filters.get(name);\n }", "public String[] getFilterNames() {\r\n return this.filterNames;\r\n }", "public String getFilterString() {\n if (filterManager == null) return \"\";\n \n // Get list of all filters.\n List<Filter<E>> filterList = filterManager.getFiltersInUse();\n \n // Create dump of all filters.\n StringBuilder buf = new StringBuilder();\n for (Filter<E> filter : filterList) {\n if (buf.length() > 0) buf.append(\", \"); \n buf.append(filter.toString());\n }\n \n return buf.toString();\n }", "public Filter getFilter() {\n\t\treturn (filter);\n\t}", "private String getFilterUIName_(String filterName)\n {\n try\n {\n Object oFactory = xMSF.createInstance(\"com.sun.star.document.FilterFactory\");\n Object oObject = Helper.getUnoObjectbyName(oFactory, filterName);\n Object oArrayObject = AnyConverter.toArray(oObject);\n PropertyValue[] xPropertyValue = (PropertyValue[]) oArrayObject; //UnoRuntime.queryInterface(XPropertyValue.class, oObject);\n int MaxCount = xPropertyValue.length;\n for (int i = 0; i < MaxCount; i++)\n {\n PropertyValue aValue = xPropertyValue[i];\n if (aValue != null && aValue.Name.equals(\"UIName\"))\n {\n return AnyConverter.toString(aValue.Value);\n }\n }\n throw new NullPointerException(\"UIName property not found for Filter \" + filterName);\n }\n catch (com.sun.star.uno.Exception exception)\n {\n exception.printStackTrace(System.out);\n return null;\n }\n }", "public Expression getFilter() {\n return this.filter;\n }", "public LSPFilter getFilter () {\r\n return filter;\r\n }", "public abstract INexusFilterDescriptor getFilterDescriptor();", "public String getFilterId() {\n return this.filterId;\n }", "FeedbackFilter getFilter();", "public String getTypeFilter()\r\n\t{\r\n\t\treturn this.typeFilter;\r\n\t}", "public String getFilter()\n {\n if ( \"\".equals( filterCombo.getText() ) ) //$NON-NLS-1$\n {\n return \"\"; //$NON-NLS-1$\n }\n parser.parse( filterCombo.getText() );\n return parser.getModel().isValid() ? filterCombo.getText() : null;\n }", "@Override\n\tpublic String filterType() {\n\t\treturn FilterConstants.PRE_TYPE;\n\t}", "@Override public Filter getFilter() { return null; }", "public abstract String getDefaultFilter ();", "public String getFilter() {\n\t\treturn(\"PASS\");\n\t}", "java.lang.String getDataItemFilter();", "public Filter getFilterComponent()\n {\n return filterComponent;\n }", "@Override\n public FilterRegistration getFilterRegistration(String filterName) {\n return null;\n }", "private String getFilterUIName(String filterName)\n {\n String prodName = Configuration.getProductName(xMSF);\n String[][] s = new String[][]\n {\n {\n getFilterUIName_(filterName)\n }\n };\n s[0][0] = JavaTools.replaceSubString(s[0][0], prodName, \"%productname%\");\n return s[0][0];\n }", "public ExtensionFilter getFilter () {\n return this.filter;\n }", "public static String getFilterPattern() {\n return FILTER_PATTERN;\n }", "user_filter_reference getUser_filter_reference();", "public String getDatabaseFilter() {\n\t\tSqlExpression expr = this.getFilterSqlExpression();\n\t\treturn expr != null ? expr.toSqlString() : \"\";\n\t}", "@Override\n\tpublic Filter getFilter() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Filter getFilter() {\n\t\treturn null;\n\t}", "public String getFormatName() {\n\t\tString name = getName();\n\t\tif (name.startsWith(SpotlessPlugin.EXTENSION)) {\n\t\t\tString after = name.substring(SpotlessPlugin.EXTENSION.length());\n\t\t\tif (after.endsWith(SpotlessPlugin.CHECK)) {\n\t\t\t\treturn after.substring(0, after.length() - SpotlessPlugin.CHECK.length()).toLowerCase(Locale.US);\n\t\t\t} else if (after.endsWith(SpotlessPlugin.APPLY)) {\n\t\t\t\treturn after.substring(0, after.length() - SpotlessPlugin.APPLY.length()).toLowerCase(Locale.US);\n\t\t\t}\n\t\t}\n\t\treturn name;\n\t}", "public String getFilter() {\n if(isHot) {\n // buy = max\n // view = max\n }\n String s = \"oderby @exo:\"+orderBy + \" \" + orderType;\n return null;\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "FilterInfo getActiveFilterInfoForFilter(String filter_id);", "public static ProteoWizardFilter getFilter(String name) {\n for (ProteoWizardFilter proteoWizardFilter : values()) {\n if (proteoWizardFilter.name.equals(name)) {\n return proteoWizardFilter;\n }\n }\n return null;\n }", "java.lang.String getQueryName();", "public String getUserFilter()\n {\n return this.userFilter;\n }", "public ImageFilter getFilter() {\r\n\t\treturn filter;\r\n\t}", "@Override\r\n\t public Filter getFilter() {\n\t return null;\r\n\t }", "String getName() ;", "public String buildFilter() {\n String qs = \"\";\n Set<Map.Entry<String, String>> set = instance.arguments.entrySet();\n\n for (Map.Entry<String, String> entry : set) {\n qs += entry.getKey() + \"=\" + entry.getValue() + \"&\";\n }\n return qs.substring(0, qs.length() - 1);\n }" ]
[ "0.8969414", "0.8508739", "0.770423", "0.7436235", "0.7359267", "0.7330179", "0.7259696", "0.70390975", "0.6960828", "0.68890584", "0.6815303", "0.6759801", "0.6743877", "0.664953", "0.6607964", "0.65071917", "0.64728206", "0.64271677", "0.6329859", "0.63280123", "0.6302809", "0.6274865", "0.62145597", "0.621257", "0.6196712", "0.6149277", "0.6117955", "0.608378", "0.6077596", "0.602424", "0.601941", "0.5988074", "0.59789264", "0.5970853", "0.5951537", "0.5948867", "0.59320986", "0.59175056", "0.59175056", "0.5913186", "0.5861604", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.584951", "0.5836157", "0.5828057", "0.5815531", "0.5799866", "0.57861274", "0.57707375", "0.576588", "0.57377756" ]
0.0
-1
Get the total bits of the filter
public int bitsOfFilter() { return config().getM(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getBloomFilterSizeInBytesCount();", "int getBloomFilterSizeInBytes(int index);", "public int getAnalysisBits();", "public int getBloomFilterSizeInBytesCount() {\n return bloomFilterSizeInBytes_.size();\n }", "public int getBloomFilterSizeInBytesCount() {\n return bloomFilterSizeInBytes_.size();\n }", "public int sizeFilter() {\n\t\treturn this.size(FILTER);\n\t}", "java.util.List<java.lang.Integer> getBloomFilterSizeInBytesList();", "public abstract int getBitSize();", "public final int getNumCodedBytes(){\n // NOTE: testing these algorithms for correctness is quite\n // difficult. One way is to modify the rate allocator so that not all\n // bit-planes are output if the distortion estimate for last passes is\n // the same as for the previous ones.\n\n switch (ltype) {\n case LENGTH_LAZY_GOOD:\n // This one is a bit better than LENGTH_LAZY.\n int bitsInN3Bytes; // The minimum amount of bits that can be stored\n // in the 3 bytes following the current byte\n // buffer 'b'.\n if (b >= 0xFE) {\n // The byte after b can have a bit stuffed so ther could be\n // one less bit available\n bitsInN3Bytes = 22; // 7 + 8 + 7\n }\n else {\n // We are sure that next byte after current byte buffer has no\n // bit stuffing\n bitsInN3Bytes = 23; // 8 + 7 + 8\n }\n if ((11-cT+16) <= bitsInN3Bytes) {\n return nrOfWrittenBytes+(delFF ? 1 : 0)+1+3;\n }\n else {\n return nrOfWrittenBytes+(delFF ? 1 : 0)+1+4;\n }\n case LENGTH_LAZY:\n // This is the very basic one that appears in the VM text\n if ((27-cT) <= 22) {\n return nrOfWrittenBytes+(delFF ? 1 : 0)+1+3;\n }\n else {\n return nrOfWrittenBytes+(delFF ? 1 : 0)+1+4;\n }\n case LENGTH_NEAR_OPT:\n // This is the best length calculation implemented in this class.\n // It is almost always optimal. In order to calculate the length\n // it is necessary to know which bytes will follow in the MQ\n // bit stream, so we need to wait until termination to perform it.\n // Save the state to perform the calculation later, in\n // finishLengthCalculation()\n saveState();\n // Return current number of output bytes to use it later in\n // finishLengthCalculation()\n return nrOfWrittenBytes;\n default:\n throw new Error(\"Illegal length calculation type code\");\n }\n }", "public static int countBits(int[] data) {\n\t\tint sum = 0;\n\t\tfor (int d : data) {\n\t\t\tfor (int i = 0; i < 32; i++) {\n\t\t\t\tsum += (d & (1 << i)) > 0 ? 1 : 0;\n\t\t\t}\n\t\t}\n\t\treturn sum;\n\t}", "public int bitCount() {\n @SuppressWarnings(\"deprecation\") int bc = bitCount - 1;\n if (bc == -1) { // bitCount not initialized yet\n bc = 0; // offset by one to initialize\n // Count the bits in the magnitude\n for (int i=0; i < mag.length; i++)\n bc += Integer.bitCount(mag[i]);\n if (signum < 0) {\n // Count the trailing zeros in the magnitude\n int magTrailingZeroCount = 0, j;\n for (j=mag.length-1; mag[j] == 0; j--)\n magTrailingZeroCount += 32;\n magTrailingZeroCount += Integer.numberOfTrailingZeros(mag[j]);\n bc += magTrailingZeroCount - 1;\n }\n bitCount = bc + 1;\n }\n return bc;\n }", "public int numberOfBits() {\n return 8 * this.data.size();\n }", "public static int sizeBits_sum_a() {\n return 32;\n }", "public static int bitCount(long i) {\r\n // HD, Figure 5-14\r\n\t\ti = i - ((i >>> 1) & 0x5555555555555555L);\r\n\t\ti = (i & 0x3333333333333333L) + ((i >>> 2) & 0x3333333333333333L);\r\n\t\ti = (i + (i >>> 4)) & 0x0f0f0f0f0f0f0f0fL;\r\n\t\ti = i + (i >>> 8);\r\n\t\ti = i + (i >>> 16);\r\n\t\ti = i + (i >>> 32);\r\n\t\treturn (int)i & 0x7f;\r\n }", "public static int sizeBits_sum_e() {\n return 32;\n }", "public static int sizeBits_sampleCnt() {\n return 32;\n }", "public int getNumBitsSet()\n \t{\n \t\tint count = 0;\n \n \t\tfor (int index = getLength() - 1; index >= 0; index--)\n \t\t{\n \t\t\tif (isSet(index))\n \t\t\t{\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \n \t\treturn count;\n \t}", "public int getSize()\n\t{\n\t\treturn bits.size();\n\t}", "default int getCompositeBitLength() {\n return getHighBitLength() + getLowBitLength();\n }", "int getHighBitLength();", "static int countSetBits(int n)\r\n {\r\n int count = 0;\r\n while (n > 0) {\r\n count += n & 1;\r\n n >>= 1;\r\n }\r\n return count;\r\n }", "public double getTotalSignalCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: signalSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}", "public int getLengthInBytes()\n \t{\n \t\treturn FormatableBitSet.numBytesFromBits(lengthAsBits);\n \t}", "public int getBloomFilterSizeInBytes(int index) {\n return bloomFilterSizeInBytes_.getInt(index);\n }", "public int getBloomFilterSizeInBytes(int index) {\n return bloomFilterSizeInBytes_.getInt(index);\n }", "int getLowBitLength();", "public static int sizeBits_count() {\n return 16;\n }", "public int getBinCapicityFilled() {\n int binCapicity = 0;\n for( Packet p: packets) {\n binCapicity += p.getPacketHeight();\n }\n return binCapicity;\n\n }", "public @UInt32 int getQuantizationBits();", "private int count1_bitcount(int [] ix, EChannel cod_info) {\n\t\tint p, i, k;\n\t\tint signbits;\n\t\tint sum0 = 0, sum1 = 0;\n\t\tint count1End = bigvalues_region + count1_region;\n\n\t\tfor(i = bigvalues_region, k=0; k < count1End; i+=4, k++) {\n\t\t\tv = Math.abs(ix[i]);\n\t\t\tw = Math.abs(ix[i+1]);\n\t\t\tx = Math.abs(ix[i+2]);\n\t\t\ty = Math.abs(ix[i+3]);\n\n\t\t\tp = signbits = 0;\n\t\t\tif(v!=0) { signbits++; p |= 1; }\n\t\t\tif(w!=0) { signbits++; p |= 2; }\n\t\t\tif(x!=0) { signbits++; p |= 4; }\n\t\t\tif(y!=0) { signbits++; p |= 8; }\n\n\t\t\tsum0 += signbits;\n\t\t\tsum1 += signbits;\n\n\t\t\tsum0 += hlen[32][p];\n\t\t\tsum1 += hlen[33][p];\n\t\t}\n\n\t\tif(sum0 < sum1) {\n\t\t\tcod_info.count1table_select = 0;\n\t\t\treturn sum0;\n\t\t} else {\n\t\t\tcod_info.count1table_select = 1;\n\t\t\treturn sum1;\n\t\t}\n\t}", "public static int sizeBits_source() {\n return 8;\n }", "public int bitLength() {\n \tif (bitLength == -1) {\n \t if (signum == 0) {\n \t \tbitLength = 0;\n \t } else {\n \t\t// Calculate the bit length of the magnitude\n \t\tint magBitLength = ((magnitude.length-1) << 5) + bitLen(magnitude[0]);\n\n \t\tif (signum < 0) {\n \t\t // Check if magnitude is a power of two\n \t\t boolean pow2 = (bitCnt(magnitude[0]) == 1);\n \t\t for(int i=1; i<magnitude.length && pow2; i++)\n \t\t\tpow2 = (magnitude[i]==0);\n\n \t\t bitLength = (pow2 ? magBitLength-1 : magBitLength);\n \t\t} else {\n \t\t bitLength = magBitLength;\n \t\t}\n \t }\n \t}\n \treturn bitLength;\n }", "int getIntBitLength() {\r\n\t\treturn intBitLength;\r\n\t}", "public static int totalSizeBits_entries_receiveEst() {\n return 176;\n }", "public int get_count() {\n return (int)getUIntBEElement(offsetBits_count(), 16);\n }", "private static int bitLen(int w)\n {\n int t = w >>> 24;\n if (t != 0)\n {\n return 24 + bitLengths[t];\n }\n t = w >>> 16;\n if (t != 0)\n {\n return 16 + bitLengths[t];\n }\n t = w >>> 8;\n if (t != 0)\n {\n return 8 + bitLengths[t];\n }\n return bitLengths[w];\n }", "public int sizeInBits() {\n\t\treturn this.sizeinbits;\n\t}", "public static int sizeBits_counter() {\n return 32;\n }", "public int sizeFilter2() {\n\t\treturn this.size(FILTER2);\n\t}", "final int lengthInBits(final K key) {\n\tif (key == null) {\n\t return 0;\n\t}\n\n\treturn keyAnalyzer.lengthInBits(key);\n }", "private long computeCheckSum(final byte[] buf) {\n long sum = 0;\n for (byte aBuf : buf) {\n sum += 255 & aBuf;\n }\n return sum;\n }", "public double defaultEvaulateAsMiniBits() {\n double result = 0;\n for (int i = 0; i < this.m_GenotypeLength; i++) {\n if (this.m_Genotype.get(i)) result++;\n }\n return result;\n }", "int count_bit_short( int [] ix, int start, int end, int table ) {\n\t\tint i, sum;\n\t\tint x,y;\n\n\t\tif(table < 0 || table > 34)\n\t\t\treturn 0;\n\n\t\tsum = 0;\n\n\t\tint ylen = this.ylen[table];\n\t\tint linbits = this.linbits[table];\n\n\t\tfor ( int line = start; line < end; line += 2 ) {\n\t\t\tfor ( int window = 0; window < 3; window++ ){\n\t\t\t\tx = Math.abs(ix[line * 3 + window ]);\n\t\t\t\ty = Math.abs(ix[(line + 1) * 3 + window]);\n\n\t\t\t\tif(table > 15){\n\n\t\t\t\t\tif(x > 14) {\n\t\t\t\t\t\tx = 15;\n\t\t\t\t\t\tsum += linbits;\n\t\t\t\t\t}\n\n\t\t\t\t\tif(y > 14) {\n\t\t\t\t\t\ty = 15;\n\t\t\t\t\t\tsum += linbits;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tsum += hlen[table][(x*ylen)+y];\n\t\t\t\tif(x!=0) sum++;\n\t\t\t\tif(y!=0) sum++;\n\t\t\t}\n\t\t}\n\t\treturn sum;\n\t}", "public static int offsetBits_sum_e() {\n return 104;\n }", "public static int sizeBits_estLength() {\n return 8;\n }", "default int countItems(Predicate<ItemStack> filter) {\n return streamStacks().filter(filter).mapToInt(InvTools::sizeOf).sum();\n }", "int getDataScansCount();", "protected String getBitLength()\n {\n return bitLength;\n }", "public static int totalSizeBits_infos_noise() {\n return 48;\n }", "public int filterCount() {\n final Filter filter = privateConfig.loggerConfig.getFilter();\n if (filter == null) {\n return 0;\n } else if (filter instanceof CompositeFilter) {\n return ((CompositeFilter) filter).size();\n }\n return 1;\n }", "public static int size_sampleCnt() {\n return (32 / 8);\n }", "public static int sizeBits_reading() {\n return 16;\n }", "public static int offsetBits_count() {\n return 16;\n }", "public int getLength() {\n \t\treturn lengthAsBits;\n \t}", "UnsignedInt getTotal();", "private static int getCountOfSetBit(int num){\n int c =0;\n while(num>0){\n c += (num & 1);\n num >>=1;\n }\n return c;\n }", "@java.lang.Override\n public java.util.List<java.lang.Integer>\n getBloomFilterSizeInBytesList() {\n return bloomFilterSizeInBytes_;\n }", "public static int offsetBits_sum_a() {\n return 72;\n }", "public int numSetBits(long a) {\n\t \n\t \tint count = 0;\n\t\twhile(a > 0) {\n\t\t\t\n\t\t\tif((a & 1) == 1) {// a & 1 == 1 if lsb is 1\n\t\t\t\n\t\t\t\tcount = count+1;\n\t\t\t}\n\t\t a = a >> 1; // right shift LSB by 1 to underflow 1 in LSB\n\t\t}\t\t\n\t\treturn count;\n\t}", "public int sizeFilter3() {\n\t\treturn this.size(FILTER3);\n\t}", "public static int sizeBits_cost() {\n return 16;\n }", "public static int sizeBits_length() {\n return 8;\n }", "static int bitLengthForInt(int n) {\n return 32 - Integer.numberOfLeadingZeros(n);\n }", "public long get_sampleCnt() {\n return (long)getUIntBEElement(offsetBits_sampleCnt(), 32);\n }", "public static int offsetBits_sampleCnt() {\n return 24;\n }", "public int size() {\n return numBits;\n }", "public java.util.List<java.lang.Integer>\n getBloomFilterSizeInBytesList() {\n return ((bitField0_ & 0x00000010) != 0) ?\n java.util.Collections.unmodifiableList(bloomFilterSizeInBytes_) : bloomFilterSizeInBytes_;\n }", "public static int countSetBits(int A){\n\t\tint count = 0;\n\t\twhile(A != 0){\n\t\t\tA &= (A-1);\n\t\t\tcount++;\n\t\t}\n\t\treturn count;\n\t}", "private static short\n \tnumBitsInLastByte(int bits)\n \t{\n \t\tint modulo = bits % 8;\n \t\treturn (short)((modulo == 0) ?\n \t\t\t\t((bits == 0) ? 0 : 8) :\n \t\t\t\tmodulo);\n \t}", "private int bigv_bitcount(int [] ix, EChannel gi) {\n\t\tint bits = 0;\n\n\t\tif ( gi.window_switching_flag != 0 && gi.block_type == 2 ) {\n\t\t\t/*\n Within each scalefactor band, data is given for successive\n time windows, beginning with window 0 and ending with window 2.\n Within each window, the quantized values are then arranged in\n order of increasing frequency...\n\t\t\t */\n\t\t\tint sfb = 0, window, line, start, end;\n\n\t\t\tif ( gi.mixed_block_flag != 0 ) {\n\t\t\t\tint tableindex;\n\n\t\t\t\tif ( (tableindex = gi.table_select[0]) != 0 )\n\t\t\t\t\tbits += count_bit( ix, 0, gi.address1, tableindex );\n\t\t\t\tsfb = 2;\n\t\t\t}\n\n\t\t\tfor ( ; sfb < 13; sfb++ ) {\n\t\t\t\tint tableindex = 100;\n\n\t\t\t\tstart = scalefac_band_short[ sfb ];\n\t\t\t\tend = scalefac_band_short[ sfb+1 ];\n\n\t\t\t\tif ( start < 12 )\n\t\t\t\t\ttableindex = gi.table_select[ 0 ];\n\t\t\t\telse\n\t\t\t\t\ttableindex = gi.table_select[ 1 ];\n\n\t\t\t\tbits += count_bit_short(ix, start, end, tableindex);/*\n for ( line = start; line < end; line += 2 ) {\n for ( window = 0; window < 3; window++ ){\n x = (ix[line * 3 + window ]);\n y = (ix[(line + 1) * 3 + window]);\n\n // x = (i192_3[ line ][ window ]);\n // y = (i192_3[ line + 1 ][ window]);\n\n bits += HuffmanCode( tableindex, x, y );\n }\n }*/\n\t\t\t}\n\t\t} else {\n\n\t\t\tint table;\n\n\t\t\tif( (table = gi.table_select[0] )>=0) // region0\n\t\t\tbits += count_bit(ix, 0, gi.address1, table );\n\t\t\tif( (table = gi.table_select[1])>=0) // region1\n\t\t\t\tbits += count_bit(ix, gi.address1, gi.address2, table );\n\t\t\tif( (table = gi.table_select[2])>=0) // region2\n\t\t\t\tbits += count_bit(ix, gi.address2, gi.address3, table );\n\t\t}\n\n\t\treturn bits;\n\t}", "public int sumCount(int number){\n int sum=0;\n for(int i=1; i<=number; i++){\n sum=sum+countSetBits(i);\n }\n return sum;\n }", "public CountingFilter(int bitArraySize, int expectedElements) {\n\t\tthis.bitArraySize = bitArraySize;\n\t\tthis.expectedElements = expectedElements;\n\t\tthis.k = (int) Math.ceil((bitArraySize / expectedElements)\n\t\t\t\t* Math.log(2.0));\n\t\tcounters = new byte[bitArraySize];\n\t}", "public Long getCount(Filter filter);", "public double getTotalControlCount(){\n\t\tdouble total=0;\n\t\tfor(Sample s: controlSamples)\n\t\t\ttotal += s.getHitCount();\n\t\treturn total;\n\t}", "public int[] countBits(int num) {\n int[] m = new int[num+1];\n for (int i = 1; i <= num; i++) {\n m[i] = m[i/2] + (i & 1);\n }\n return m;\n }", "public int getBitStrength()\n {\n return keyStrength;\n }", "int getChksum();", "BigInteger getCount();", "public static int sizeBits_hop() {\n return 8;\n }", "public static int size_sum_a() {\n return (32 / 8);\n }", "public int totalHammingDistance(int[] nums) {\n int total = 0, n = nums.length;\n for (int j = 0; j < 32; j++) {\n int bitCount = 0;\n for (int i = 0; i < n; i++)\n bitCount += (nums[i] >> j) & 1;\n total += bitCount * (n - bitCount);\n }\n return total;\n }", "public int bits() {\n return mat.getType().getBits();\n }", "public byte getBitDepth();", "Object countTAlgmntBussRules(SearchFilter<TAlgmntBussRule> searchFilter);", "public long count(Predicate<GameResult> filter) {\n return results.stream()\n .filter(filter)\n .mapToInt(GameResult::getCount)\n .sum();\n }", "public static int sizeBits_quality() {\n return 16;\n }", "private double infobits(double[] probs) {\r\n\t\tdouble sum = 0;\r\n\t\tfor (int i = 0; i < probs.length; i++) {\r\n\t\t\tsum += entropy(probs[i]);\r\n\t\t}\r\n\t\treturn sum;\r\n\t}", "public static int sizeBits_receivets() {\n return 32;\n }", "com.google.protobuf.ByteString\n getFilterBytes();", "public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}", "public int[] countBits(int num) {\n int[] res = new int[num + 1];\n res[0] = 0;\n \n for(int i = 1; i <= num; i++){\n if(i % 2 == 0){\n //if i is even then last bit is zero\n //i : 101010101010\n //i >> 1: 10101010101\n //ans for res[i] is same as res[i >> 1]\n res[i] = res[i >> 1];\n }\n else{\n //if i is odd then the last bit is one\n //so answer for res[i] is same as res[i-1] which is the prev num(i.e a even number) + 1\n res[i] = res[i - 1] + 1;\n }\n }\n return res;\n }", "public int numSetBits1(long a) {\n int count=0;\n while (a>0){\n count++;\n a = a & (a-1); //(x & (x - 1)) will unset the last set bit in x (which is why x&(x-1) is 0 for powers of 2).\n }\n\n return count;\n\t}", "public int howManyBits(int value) {\n\t\t// TODO: Implement this method.\n\t\treturn 0;\n\t}", "public static int totalSizeBits_entries_id() {\n return 176;\n }", "public static int sizeBits_infos_valid_noise_samples() {\n return 8;\n }", "static int[] countBits(int num){\n\t\t\n\t\tint[] result = new int[num+1];\n\t\t\n\t\tfor(int i = 0 ; i <= num; i++){\n\t\t\tresult[i] = countEach(i);\n\t\t\tSystem.out.print(result[i]+\" \");\n\t\t}\n\t\treturn result;\n\t}", "public static int totalSizeBits_data() {\n return 480;\n }", "public int nUnfilteredSamples() {\n return Math.max(0, nHeaderFields - sampleOffset);\n }", "public int getNColor(){\n int nColor = getBit();\n\n if (nColor==0) {\n for (int i=0; i<7; i++) {\n nColor = (nColor<<1) | getBit();\n }\n }\n\n return nColor;\n }", "public int get_sum_a() {\n return (int)getSIntBEElement(offsetBits_sum_a(), 32);\n }" ]
[ "0.73198134", "0.6776356", "0.6762686", "0.6652995", "0.66437465", "0.64186436", "0.639079", "0.6371507", "0.62395805", "0.62163216", "0.61929905", "0.6170265", "0.616695", "0.61412805", "0.6136291", "0.6111757", "0.6092959", "0.6088655", "0.607172", "0.6071557", "0.6047263", "0.6037484", "0.60283047", "0.6015375", "0.5998367", "0.59865934", "0.5975902", "0.59567624", "0.59410197", "0.5930243", "0.59171456", "0.58818465", "0.5874483", "0.5868595", "0.58659947", "0.5857891", "0.5823482", "0.58055097", "0.57783914", "0.57590127", "0.5748941", "0.5741864", "0.5734521", "0.57156575", "0.5708411", "0.5707615", "0.5707095", "0.5706245", "0.57028306", "0.57003146", "0.56985766", "0.5695859", "0.5688427", "0.56869584", "0.568171", "0.56798565", "0.5675842", "0.5654771", "0.56501204", "0.5641668", "0.563389", "0.5629017", "0.56239057", "0.56064576", "0.56033427", "0.5602241", "0.55962604", "0.5593107", "0.55859035", "0.5584315", "0.5574928", "0.5574136", "0.55672866", "0.5561984", "0.55461454", "0.5540853", "0.55383056", "0.55273163", "0.552351", "0.5519734", "0.5515127", "0.5493362", "0.54884243", "0.54856867", "0.5484117", "0.54784447", "0.54707247", "0.54671735", "0.5466704", "0.5449906", "0.54485583", "0.54412013", "0.5440944", "0.5440486", "0.5437049", "0.5436559", "0.5436183", "0.5434652", "0.54274136", "0.54197675" ]
0.7524611
0
Get the average bits occupied by each element
public double bitsEachElement() { return config().getC(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getAnalysisBits();", "public void setAverageBits(int bits) {\n }", "public static int countBits(int[] data) {\n\t\tint sum = 0;\n\t\tfor (int d : data) {\n\t\t\tfor (int i = 0; i < 32; i++) {\n\t\t\t\tsum += (d & (1 << i)) > 0 ? 1 : 0;\n\t\t\t}\n\t\t}\n\t\treturn sum;\n\t}", "public double defaultEvaulateAsMiniBits() {\n double result = 0;\n for (int i = 0; i < this.m_GenotypeLength; i++) {\n if (this.m_Genotype.get(i)) result++;\n }\n return result;\n }", "public int totalHammingDistance(int[] nums) {\n int total = 0, n = nums.length;\n for (int j = 0; j < 32; j++) {\n int bitCount = 0;\n for (int i = 0; i < n; i++)\n bitCount += (nums[i] >> j) & 1;\n total += bitCount * (n - bitCount);\n }\n return total;\n }", "public static int sizeBits_sum_a() {\n return 32;\n }", "public static int sizeBits_sum_e() {\n return 32;\n }", "public static int size_sum_a() {\n return (32 / 8);\n }", "public int[] countBits(int num) {\n int[] m = new int[num+1];\n for (int i = 1; i <= num; i++) {\n m[i] = m[i/2] + (i & 1);\n }\n return m;\n }", "private double avgNonEmpty() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (numEntries / percent);\n\t}", "public static int average(int[]data){\n \n int sum = 0;\n int n = 0;\n for(int i = 0; i < data.length-1; i++) {\n \n n++;\n sum += data[i];\n }\n\n return sum/n;\n }", "private double infobits(double[] probs) {\r\n\t\tdouble sum = 0;\r\n\t\tfor (int i = 0; i < probs.length; i++) {\r\n\t\t\tsum += entropy(probs[i]);\r\n\t\t}\r\n\t\treturn sum;\r\n\t}", "public int get_sum_a() {\n return (int)getSIntBEElement(offsetBits_sum_a(), 32);\n }", "public int totalHammingDistance(int[] nums) {\n int result = 0;\n for(int i = 0; i <= 31; i++){\n int count = 0;\n for(int j = 0; j < nums.length; j++){\n count = count + ((nums[j] >> i) & 1);\n }\n //for each position, it contributes to this many number combinations.\n result += count * (nums.length - count);\n }\n return result;\n }", "private static int getAverage(ArrayList<Integer> inList) \n\t{\n\t\tint add = 0; \n\t\tint mean = 0; \n\t\tfor(int pos = 0; pos < inList.size(); ++pos)\n\t\t{\n\t\t\tadd = add + inList.get(pos);\n\t\t\t\n\t\t}\n\t\t\n\t\tmean = add/inList.size(); \n\t\t\n\t\treturn mean; \n\t\t\n\t}", "public static int offsetBits_sum_a() {\n return 72;\n }", "public static int size_sum_e() {\n return (32 / 8);\n }", "public int[] countBits(int num) {\n int[] res = new int[num + 1];\n res[0] = 0;\n \n for(int i = 1; i <= num; i++){\n if(i % 2 == 0){\n //if i is even then last bit is zero\n //i : 101010101010\n //i >> 1: 10101010101\n //ans for res[i] is same as res[i >> 1]\n res[i] = res[i >> 1];\n }\n else{\n //if i is odd then the last bit is one\n //so answer for res[i] is same as res[i-1] which is the prev num(i.e a even number) + 1\n res[i] = res[i - 1] + 1;\n }\n }\n return res;\n }", "private double computeMean(List<Integer> intList) {\n double count = 0;\n for (Integer i : intList) {\n count += i;\n }\n return count / intList.size();\n }", "public static int offsetBits_sum_e() {\n return 104;\n }", "static double calculateAverage(int[] array) {\n\n double sum = 0;\n\n for (int i = 0; i < array.length; i++) {\n\n sum = sum + (double) array[i];\n\n\n }\n\n return sum / array.length;//returning average\n\n }", "public double getMeanValuePixels() {\n\t\tdouble avg = 0;\n\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\tavg += this.image[i][j];\n\t\t\t}\n\t\t}\n\t\tavg /= this.getQtyPixels();\n\n\t\treturn avg;\n\t}", "static int[] countBits(int num){\n\t\t\n\t\tint[] result = new int[num+1];\n\t\t\n\t\tfor(int i = 0 ; i <= num; i++){\n\t\t\tresult[i] = countEach(i);\n\t\t\tSystem.out.print(result[i]+\" \");\n\t\t}\n\t\treturn result;\n\t}", "double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleValue();\n\t\treturn sum/num.length;\n\t}", "public static double getSum(long num) {\r\n double total = 0;\r\n for(int i = 0; i < digitBit.length; i ++){\r\n double sum = 0;\r\n Bucket bkt = digitBit[i].bucket;\r\n //find sum of buckets of size (j+1)\r\n while(bkt.endTimestamp >= (currentTimeStamp - num + 1)){\r\n sum += bkt.size;\r\n if(bkt.next != null){\r\n bkt = bkt.next;\r\n }else{\r\n break;\r\n }\r\n }\r\n if(bkt.startTimeStamp >= (currentTimeStamp - num + 1)){\r\n sum += (bkt.size)/2;\r\n }\r\n //add the contribution of ith position bits to the total\r\n total += sum * Math.pow(2, i);\r\n }\r\n return total;\r\n }", "private long computeCheckSum(final byte[] buf) {\n long sum = 0;\n for (byte aBuf : buf) {\n sum += 255 & aBuf;\n }\n return sum;\n }", "public int average()\n {\n int average = 0;\n int sum = 0;\n\n for ( int index = 0; index < data.length; index++ )\n {\n sum = sum + data[index];\n }\n average = sum / data.length;\n\n return average;\n }", "public double calcAvg() {\n\t\treturn (double)calcSum() / data.size();\n }", "public double[] histogram() {\n int[][] data = toArray();\n double[] ans = new double[256];\n int totalSize = data.length * data[0].length;\n\n for (int i = 0; i < data.length; i++) {\n for (int j = 0; j < data[i].length; j++) {\n ans[data[i][j]]++;\n }\n }\n for (int i = 0; i < ans.length; i++) {\n ans[i] = ans[i] / totalSize;\n }\n return ans;\n }", "public int singles(int [] arr){\n HashMap<Integer, Integer> hm = new HashMap<>();\n long s1 = 0, s2 = 0;\n for(int x = 0; x < arr.length; x++){\n if(!hm.containsKey(arr[x])){\n s1 += arr[x];\n hm.put(arr[x], 1);\n }\n s2 += arr[x];\n }\n return (int)(2* s1 - s2);\n }", "public abstract int getBitSize();", "public static int average(int[] array){\n int sum = 0;\n for (int i = 0; i < array.length; i++) {\n sum += array[i];\n }\n return sum/array.length;\n }", "public int[] countAvgOfSubtree(TreeNode root) {\n if (root == null) {\n return new int[] {0, 0, 0};\n }\n int[] left = countAvgOfSubtree(root.left);\n int[] right = countAvgOfSubtree(root.right);\n int sum = left[1] + right[1] + root.val;\n int count = left[0] + right[0] + 1;\n int res = left[2] + right[2];\n\n if (sum / count == root.val) {\n res++;\n }\n return new int[] {count, sum, res};\n }", "public double averageFeaturesPerExample(){\n\t\treturn sumFeatureValues/((double)exampleCount);\n\t}", "private int[] countPixelSums(final int[][] imageData) {\n\n\t\tfinal int width = imageData.length;\n\t\tfinal int height = imageData[0].length;\n\n\t\tfinal int[] pixelValueSums = new int[256];\n\n\t\tfor (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tfinal int pixelValue = imageData[x][y];\n\n\t\t\t\tfinal int red = (pixelValue & 0x00ff0000) >> 16;\n\t\t\t\tfinal int green = (pixelValue & 0x0000ff00) >> 8;\n\t\t\t\tfinal int blue = pixelValue & 0x000000ff;\n\n\t\t\t\tfinal int greyValue = (red + green + blue) / 3;\n\n\t\t\t\tpixelValueSums[greyValue]++;\n\t\t\t}\n\t\t}\n\n\t\treturn pixelValueSums;\n\t}", "public void findAverage(int[] arr){\n int sum = 0;\n for(int val : arr){\n sum += val;\n }\n System.out.println( \"Average: \" + sum / arr.length);\n }", "@Override\n public Double average() {\n return (sum() / (double) count());\n }", "public static long average(long[] arr) {\n if (arr.length == 0) return 0;\n long divideSum = 0;\n long modSum = 0;\n final long size = arr.length;\n \n for (int i = 0; i < arr.length; i++) {\n divideSum += arr[i] / size;\n modSum += arr[i] % size;\n }\n\n return divideSum - (size - 1) + (modSum + size * (size - 1)) / size;\n }", "public double average(){\n double avg = 0;\n double sum = 0;\n for (T t : arr) {\n // sum += t.doubleValue();\n }\n\n return sum / arr.length;\n }", "float average(int[] input) {\n\t\tfloat average = 0;\n\t\tint sum = 0;\n\t\tfor (int index = 0; index < input.length; index++) {\t\t//loop to get sum of numbers\n\t\t\tsum = sum + input[index];\n\t\t}\n\t\taverage = (float) sum / (input.length);\t\t//average calculation\n\t\treturn average;\n\t}", "public static double findMean(ArrayList<Integer> arr) {\n\t\tint length = arr.size();\n\t\tint sum = 0;\n\t\tfor(int i : arr) { sum += i; }\n\t\treturn (double)sum/length;\n\t}", "public double getAverage(){\r\n\t\tdouble sum=0;\r\n\t\tfor(Iterator<T> it=this.iterator();it.hasNext();){\r\n\t\t\tsum+=it.next().doubleValue();\r\n\t\t}\r\n\t\treturn sum/this.size();\r\n\t}", "public Double computeAverage(){\n\t\tdouble total = 0; //double used to keep total value of elements in arr to determine average\n\t\t\n\t\tfor(int i = 0; i < arr.length; i++)//loop through array and add the total\n\t\t{\n\t\t\ttotal += arr[i].doubleValue(); //add current value of element in arr to total's value\n\t\t}\n\t\t\n\t\tDouble result = total/arr.length; //returns the average as a Double\n\t\t\n\t\treturn result;\n\t}", "private int count1_bitcount(int [] ix, EChannel cod_info) {\n\t\tint p, i, k;\n\t\tint signbits;\n\t\tint sum0 = 0, sum1 = 0;\n\t\tint count1End = bigvalues_region + count1_region;\n\n\t\tfor(i = bigvalues_region, k=0; k < count1End; i+=4, k++) {\n\t\t\tv = Math.abs(ix[i]);\n\t\t\tw = Math.abs(ix[i+1]);\n\t\t\tx = Math.abs(ix[i+2]);\n\t\t\ty = Math.abs(ix[i+3]);\n\n\t\t\tp = signbits = 0;\n\t\t\tif(v!=0) { signbits++; p |= 1; }\n\t\t\tif(w!=0) { signbits++; p |= 2; }\n\t\t\tif(x!=0) { signbits++; p |= 4; }\n\t\t\tif(y!=0) { signbits++; p |= 8; }\n\n\t\t\tsum0 += signbits;\n\t\t\tsum1 += signbits;\n\n\t\t\tsum0 += hlen[32][p];\n\t\t\tsum1 += hlen[33][p];\n\t\t}\n\n\t\tif(sum0 < sum1) {\n\t\t\tcod_info.count1table_select = 0;\n\t\t\treturn sum0;\n\t\t} else {\n\t\t\tcod_info.count1table_select = 1;\n\t\t\treturn sum1;\n\t\t}\n\t}", "public float averageAnswers() {\n\t\tfloat out = 0;\n\t\t\n\t\tIterator<SolveResult> iter = super.iterator();\n\t\t\n\t\twhile(iter.hasNext()) {\n\t\t\tSolveResult thisResult = iter.next();\n\t\t\tfloat clues = ResultSet.clueCount(thisResult.puzzle);\n\t\t\tfloat cardinality = thisResult.puzzle.getCardinality();\n\t\t\tfloat conflicts = thisResult.puzzle.conflictCount();\n\t\t\t\n\t\t\tif(!(cardinality - clues - conflicts < 0)) {\n\t\t\t\tout += ((cardinality - clues - conflicts) / (81 - clues));\n\t\t\t}\n\t\t}\n\t\treturn out / super.size();\n\t}", "public double average(){\r\n\t\t//create variable to hold the values\r\n\t\tdouble average = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\t//add current index\r\n\t\t\taverage += this.data[i];\r\n\t\t\t}\r\n\t\treturn (average/this.data.length);\r\n\t}", "public int getBinCapicityFilled() {\n int binCapicity = 0;\n for( Packet p: packets) {\n binCapicity += p.getPacketHeight();\n }\n return binCapicity;\n\n }", "public static int[] countbits(int n) {\n // res[i] denotes set bits in i\n int[] res = new int[n + 1];\n // set bits in 0 is 0\n res[0] = 0;\n\n // we fill up the table in bottom up manner\n for (int i = 1; i <= n; i++) {\n // if the number is odd then the no. of set bits in it will be 1 + no. of set\n // bits in i/2;\n if (i % 2 != 0) {\n res[i] = 1 + res[i / 2];\n }\n // if the no. is even then the number of set bits will be equal to set in in i/2\n else {\n res[i] = res[i / 2];\n }\n }\n\n // return the final array\n return res;\n }", "public int[] countBits(int num) {\n int[] dp = new int[num + 1];\n int offset = 1;\n \n for (int i = 1; i < num + 1; i++) {\n if (i == 2 * offset) {\n offset *= 2;\n }\n dp[i] = dp[i - offset] + 1;\n }\n \n return dp;\n }", "@Override\n public double findAverage() {\n double average = 0;\n for (Student key : map.keySet()) {\n average += map.get(key).getValue();\n }\n average /= map.keySet().size();\n return average;\n }", "@Override\n\tpublic int avg() {\n\t\treturn (this.sum()/3);\n\t}", "public static void main(String[] args) {\nint[][] array= {{95,86},{83,92,96},{78,83,93,87,88}};\nint sum = 0;\ndouble avg = 0.0;\nint avgnum =0;\n\nfor(int i=0; i<array.length; i++ ) {\n\tfor(int k=0; k<array[i].length; k++) {\n\t\tsum += array[i][k];\n \t\t\t\t\n\t}\n\tavgnum += array[i].length;\n}\nSystem.out.println(\"array �迭�� �� ���� \" + sum);\navg = (double) sum/ avgnum;\nSystem.out.println(\"array �迭�� ��� ���� \" + avg);\n\t}", "private double computeSumAlpha()\n\t{\n\t\tdouble sum = 0;\n\t\tdouble[] a = svm.getAlphas();\n\t\tfor(double d : a)\n\t\t\tsum += Math.abs(d);\n\t\treturn sum;\n\t}", "public @UInt32 int getQuantizationBits();", "public int average() {\n int total = 0;\n\n for (int score : scores) {\n total += score;\n }\n\n return total / scores.length;\n }", "public int numberOfBits() {\n return 8 * this.data.size();\n }", "private int[] getAveragedVals(int x, int y, int n, int m) {\n\t\tint[] rtn = new int[NUM_TRIANGLE_SIDES];\n\t\tint avgRed = 0;\n\t\tint avgGreen = 0;\n\t\tint avgBlue = 0;\n\t\tint totalPixels = 0;\n\n\t\tfor (int i = x; i < (x+n); i++) {\n\t\t\tfor (int j = y; j < (y+m); j++) {\n\t\t\t\tif (j < this.getPictureHeight() && i < this.getPictureWidth()) {\n\t\t\t\t\tavgRed += this.image.getPixelRed(i,j);\n\t\t\t\t\tavgGreen += this.image.getPixelGreen(i,j);\n\t\t\t\t\tavgBlue += this.image.getPixelBlue(i,j);\n\t\t\t\t\ttotalPixels++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (totalPixels == 0) {\n\t\t\trtn[0] = 255;\t\t\n\t\t\trtn[1] = 255;\n\t\t\trtn[2] = 255;\n\t\t\treturn rtn;\n\t\t}\n\n\t\trtn[0] = avgRed / totalPixels;\t\t\n\t\trtn[1] = avgGreen / totalPixels;\n\t\trtn[2] = avgBlue / totalPixels;\n\t\treturn rtn;\n\t}", "public int sumCount(int number){\n int sum=0;\n for(int i=1; i<=number; i++){\n sum=sum+countSetBits(i);\n }\n return sum;\n }", "private static int batoi(byte[] inp) {\n int len = inp.length>4?4:inp.length;\n int total = 0;\n for (int i = 0; i < len; i++) {\n total += (inp[i]<0?256+inp[i]:(int)inp[i]) << (((len - 1) - i) * 8);\n }\n return total;\n }", "static long countInversions(int[] arr) {\n long ans = 0;\n int n = Arrays.stream(arr).max().getAsInt();\n BIT bit = new BIT(n);\n for (int i = 0; i < arr.length; i++) {\n ans += bit.sum(n) - bit.sum(arr[i]);\n bit.add(arr[i], 1);\n }\n return ans;\n }", "static List<BitData> getReplacementBitDataOfRanges(Collection<Range<Long>> ranges, Collection<Long> fullBits) {\n checkNotNull(ranges, \"ranges was null\");\n checkNotNull(fullBits, \"fullBits was null\");\n\n List<BitData> averages = new ArrayList<>();\n\n for (Range<Long> range : ranges) {\n Long average = round(fullBits.stream().filter(range::contains).collect(averagingLong(Long::longValue)));\n averages.add(new BitData(range, singletonList(average)));\n }\n return averages;\n }", "public static int totalSizeBits_entries_receiveEst() {\n return 176;\n }", "public int totalHammingDistance(int[] nums) {\n\t int hamming = 0;\n\t for (int i=0; i<nums.length; i++) {\n\t for (int j=i+1; j<nums.length; j++) {\n\t int xor = nums[i] ^ nums[j];\n\t while (xor != 0) {\n\t hamming += (xor & 1);\n\t xor = xor >>> 1;\n\t }\n\t }\n\t }\n\t \n\t return hamming;\n\t }", "public double getAverage(){\n return getTotal()/array.length;\n }", "int getTotalElements();", "@Override\n\tpublic double[] hash(int[] p) {\n\t\tint N = p.length;\n\t\tdouble[] g = new double[N];\n\t\tfor (int k = 0; k < N; k++) {\t\t// dimension k\n\t\t\tint h = h8(p, k + seed);\n\t\t\tg[k] = (double) (h & 0xFF) / 0xFF;\n\t\t}\n\t\treturn g;\n\t}", "public int hamming() {\n int ham = 0;\n for (int i = 0; i < this.tiles.length; i++) {\n int n = this.tiles[i];\n if (n != i+1 && n > 0) {\n ham++;\n }\n }\n return ham;\n }", "public double mean()\n {\n double sum = 0.0;\n for(int t = 0; t<size; t++)\n sum += x[t];\n return sum/size;\n }", "public int get_sum_e() {\n return (int)getSIntBEElement(offsetBits_sum_e(), 32);\n }", "public int mctFromLeafValues(int[] arr) {\n int ans = 0;\n Stack<Integer> stack = new Stack<>();\n stack.push(Integer.MAX_VALUE);\n for (int i : arr) {\n while (i >= stack.peek()) {\n int mid = stack.pop();\n ans += mid * Math.min(i, stack.peek());\n }\n stack.push(i);\n }\n while (stack.size() > 2) {\n ans += stack.pop() * stack.peek();\n }\n return ans;\n }", "private int[] histogram(Bitmap bmp) {\n int[] res = new int[256];\n int w = bmp.getWidth();\n int h = bmp.getHeight();\n Bitmap bmCopy = bmp.copy(bmp.getConfig(), true);\n toGray(bmCopy);\n\n int pixels[] = new int[w*h];\n bmCopy.getPixels(pixels, 0, w, 0, 0, w, h);\n for (int i = 0; i < w*h; i++)\n res[Color.red(pixels[i])]++;\n return res;\n }", "public ArrayList<Integer> getAccessibleBitRates();", "public int calcSum() {\n\t\tint sum = 0;\n\t\tfor (int count = 0; count < data.size(); count++)\n\t\t\tsum += (int)data.get(count);\n\t\treturn sum;\n\t}", "public static int sizeBits_group() {\n return 8;\n }", "public static int sizeBits_sampleCnt() {\n return 32;\n }", "public static double average(int[] theArray) {\n\n double answer;\n double sum = IntegerArrays.sum(theArray);\n answer = sum / theArray.length;\n\n return answer;\n\n }", "public int bitCount() {\n @SuppressWarnings(\"deprecation\") int bc = bitCount - 1;\n if (bc == -1) { // bitCount not initialized yet\n bc = 0; // offset by one to initialize\n // Count the bits in the magnitude\n for (int i=0; i < mag.length; i++)\n bc += Integer.bitCount(mag[i]);\n if (signum < 0) {\n // Count the trailing zeros in the magnitude\n int magTrailingZeroCount = 0, j;\n for (j=mag.length-1; mag[j] == 0; j--)\n magTrailingZeroCount += 32;\n magTrailingZeroCount += Integer.numberOfTrailingZeros(mag[j]);\n bc += magTrailingZeroCount - 1;\n }\n bitCount = bc + 1;\n }\n return bc;\n }", "private Color computeAverageColor(AbstractCollection<Pixel> pixels)\n {\n int r=0, g=0, b=0;\n for(Pixel p : pixels)\n {\n Color c = new Color(image.getRGB(p.p, p.q));\n r+=c.getRed();\n g+=c.getGreen();\n b+=c.getBlue();\n }\n return new Color(r/pixels.size(),g/pixels.size(),b/pixels.size());\n }", "public int hamming() {\n if (this.hamming >= 0) return this.hamming;\n int result = 0;\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n int idx = (i * N) + (j + 1);\n if (tiles[i][j] == idx) {\n result += 0;\n } else if (tiles[i][j] == 0) {\n continue;\n } else { \n result += 1;\n }\n }\n }\n this.hamming = result;\n return result;\n }", "int xBins();", "public double getAverage(){\n double total = 0;\n for(double s : scores)total += s;\n return total/scores.length;\n }", "public double getAverage()\n {\n return getSum() / 2.0;\n }", "public int hamming() { \n int total = 0;\n for (int n = 0; n < state.length; n++) \n if (state[n] != 0 && state[n] != n) total++;\n return total;\n }", "public int countOnes(int[] a) {\n int tot = 0;\n for (int i=0; i<a.length; i++) {\n tot += a[i];\n }\n return tot;\n }", "BigInteger getCount();", "public static int bitCount(long i) {\r\n // HD, Figure 5-14\r\n\t\ti = i - ((i >>> 1) & 0x5555555555555555L);\r\n\t\ti = (i & 0x3333333333333333L) + ((i >>> 2) & 0x3333333333333333L);\r\n\t\ti = (i + (i >>> 4)) & 0x0f0f0f0f0f0f0f0fL;\r\n\t\ti = i + (i >>> 8);\r\n\t\ti = i + (i >>> 16);\r\n\t\ti = i + (i >>> 32);\r\n\t\treturn (int)i & 0x7f;\r\n }", "public static double getAvg(List<Integer> list) {\n int sum = 0;\n for (int i = 0; i != list.size(); ++i) {\n sum += list.get(i);\n }\n return (double)sum / list.size();\n }", "public double trueCount() {\n\t\t\t\n\t\t\treturn (double)total_count/((double)size/52);\n\t\t}", "public int getNumBitsSet()\n \t{\n \t\tint count = 0;\n \n \t\tfor (int index = getLength() - 1; index >= 0; index--)\n \t\t{\n \t\t\tif (isSet(index))\n \t\t\t{\n \t\t\t\tcount++;\n \t\t\t}\n \t\t}\n \n \t\treturn count;\n \t}", "private int bigv_bitcount(int [] ix, EChannel gi) {\n\t\tint bits = 0;\n\n\t\tif ( gi.window_switching_flag != 0 && gi.block_type == 2 ) {\n\t\t\t/*\n Within each scalefactor band, data is given for successive\n time windows, beginning with window 0 and ending with window 2.\n Within each window, the quantized values are then arranged in\n order of increasing frequency...\n\t\t\t */\n\t\t\tint sfb = 0, window, line, start, end;\n\n\t\t\tif ( gi.mixed_block_flag != 0 ) {\n\t\t\t\tint tableindex;\n\n\t\t\t\tif ( (tableindex = gi.table_select[0]) != 0 )\n\t\t\t\t\tbits += count_bit( ix, 0, gi.address1, tableindex );\n\t\t\t\tsfb = 2;\n\t\t\t}\n\n\t\t\tfor ( ; sfb < 13; sfb++ ) {\n\t\t\t\tint tableindex = 100;\n\n\t\t\t\tstart = scalefac_band_short[ sfb ];\n\t\t\t\tend = scalefac_band_short[ sfb+1 ];\n\n\t\t\t\tif ( start < 12 )\n\t\t\t\t\ttableindex = gi.table_select[ 0 ];\n\t\t\t\telse\n\t\t\t\t\ttableindex = gi.table_select[ 1 ];\n\n\t\t\t\tbits += count_bit_short(ix, start, end, tableindex);/*\n for ( line = start; line < end; line += 2 ) {\n for ( window = 0; window < 3; window++ ){\n x = (ix[line * 3 + window ]);\n y = (ix[(line + 1) * 3 + window]);\n\n // x = (i192_3[ line ][ window ]);\n // y = (i192_3[ line + 1 ][ window]);\n\n bits += HuffmanCode( tableindex, x, y );\n }\n }*/\n\t\t\t}\n\t\t} else {\n\n\t\t\tint table;\n\n\t\t\tif( (table = gi.table_select[0] )>=0) // region0\n\t\t\tbits += count_bit(ix, 0, gi.address1, table );\n\t\t\tif( (table = gi.table_select[1])>=0) // region1\n\t\t\t\tbits += count_bit(ix, gi.address1, gi.address2, table );\n\t\t\tif( (table = gi.table_select[2])>=0) // region2\n\t\t\t\tbits += count_bit(ix, gi.address2, gi.address3, table );\n\t\t}\n\n\t\treturn bits;\n\t}", "public long sum() {\n\t\tlong result = 0;\n\t\tfor (int i=0; i<numElements; i++) {\n\t\t\tresult += theElements[i];\n\t\t}\n\t\treturn result;\n\t}", "double average() { // used double b/c I want decimal places\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsum = sum + array[i];\n\t\t}\n\t\tdouble average = (double) sum / array.length;\n\t\treturn average;\n\n\t}", "public static int sizeBits_amtype() {\n return 8;\n }", "Integer countAll();", "public Bitmap rgbAverageContrastAugmentation(Bitmap bmp) {\n\n\n int width, height, r, g, b;\n long acc = 0;\n width = bmp.getWidth();\n height = bmp.getHeight();\n //Alocate memory\n int[] hist = new int[256];\n int[] LUT = new int[256];\n int[] pixels = new int[height * width];\n bmp.getPixels(pixels, 0, width, 0, 0, width, height);\n for (int index = 0; index < width * height; ++index) {\n //Do general Histogram\n r = (pixels[index] >> 16) & 0xff;\n g = (pixels[index] >> 8) & 0xff;\n b = (pixels[index]) & 0xff;\n hist[r]++;\n hist[g]++;\n hist[b]++;\n }\n for (int ng = 0; ng < 256; ng++) {\n hist[ng] /= 3; //Getting average of three RGB channels\n acc += hist[ng]; //Cumulative function\n LUT[ng] = (int) ((acc * 255) / ((width * height))); //Histogram Equalization formula\n }\n //Setting new pixels to image.\n for (int index = 0; index < width * height; index++) {\n r = LUT[(pixels[index] >> 16) & 0xff];\n g = LUT[(pixels[index] >> 8) & 0xff];\n b = LUT[(pixels[index]) & 0xff];\n pixels[index] = ((0xff) << 24) | ((r & 0xff) << 16) | ((g & 0xff) << 8) | (b & 0xff);\n }\n bmp.setPixels(pixels, 0, width, 0, 0, width, height);\n\n\n\n\n return bmp;\n }", "public int hamming() {\r\n\t\tint n = dimension();\r\n\t\tint[] tmp = IntStream.rangeClosed(1, n * n - 1).toArray();\r\n\t\tint[] tmp2 = new int[n * n - 1];\r\n\t\tint k = 0;\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tfor (int j = 0; j < n; j++) {\r\n\t\t\t\tif (k < tmp2.length) {\r\n\t\t\t\t\ttmp2[k] = this.blocks[i][j];\r\n\t\t\t\t}\r\n\t\t\t\tk++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tint hamming = IntStream.rangeClosed(0, tmp.length - 1).map(i -> tmp[i] == tmp2[i] ? 0 : 1).reduce(0,\r\n\t\t\t\t(x, y) -> x + y);\r\n\t\treturn hamming;\r\n\t}", "int getBitsPerPixel();", "public double getAverageChainLength(){\r\n if (totalInsertionsLookups < 1){\r\n return 0;\r\n }\r\n return (double) totalChainLengths / (double) totalInsertionsLookups;\r\n }", "public double getMean(){\n\t\treturn (double)sampleSize * type1Size / populationSize;\n\t}", "public void getAvg()\n {\n this.avg = sum/intData.length;\n }" ]
[ "0.659902", "0.622396", "0.6215754", "0.6134759", "0.6041351", "0.60304433", "0.5946437", "0.59062093", "0.59044874", "0.59017926", "0.58123726", "0.579358", "0.57770085", "0.5730861", "0.5726318", "0.57180864", "0.5686543", "0.56726414", "0.5670071", "0.5651009", "0.56457007", "0.55999243", "0.55863357", "0.55773526", "0.5574719", "0.5568838", "0.5568333", "0.55616516", "0.55597717", "0.5533874", "0.55317", "0.55172235", "0.5509751", "0.5499754", "0.54940146", "0.54938304", "0.5487066", "0.54829377", "0.5476226", "0.54723006", "0.54610944", "0.5449818", "0.54405665", "0.542729", "0.54206944", "0.53962433", "0.5395815", "0.5394605", "0.5383503", "0.5349656", "0.5346367", "0.53408766", "0.532748", "0.5323017", "0.53006226", "0.52996236", "0.52966416", "0.52876407", "0.5279041", "0.5276612", "0.52765113", "0.52641803", "0.52605623", "0.52602684", "0.5253934", "0.52494925", "0.5245485", "0.52447015", "0.524186", "0.5241829", "0.5240901", "0.52339774", "0.5229593", "0.5228709", "0.5213884", "0.5211147", "0.5209612", "0.51955134", "0.51951146", "0.5188127", "0.51878554", "0.51853794", "0.51801676", "0.517913", "0.51734227", "0.516674", "0.5164266", "0.51603276", "0.51584786", "0.5154246", "0.5149646", "0.5141125", "0.51399446", "0.5137173", "0.5133484", "0.5132372", "0.51269627", "0.5111459", "0.50919694", "0.509106" ]
0.5171397
85
Get the number of elements expected to be supported by the filter
public int numOfExpectedElements() { return config().getN(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int sizeFilter() {\n\t\treturn this.size(FILTER);\n\t}", "int getBloomFilterSizeInBytesCount();", "public int getNumberOfElements();", "public abstract Integer getNumberOfElements();", "int getAnnotationFiltersCount();", "public int sizeFilter3() {\n\t\treturn this.size(FILTER3);\n\t}", "default int countItems(Predicate<ItemStack> filter) {\n return streamStacks().filter(filter).mapToInt(InvTools::sizeOf).sum();\n }", "public int filterCount() {\n final Filter filter = privateConfig.loggerConfig.getFilter();\n if (filter == null) {\n return 0;\n } else if (filter instanceof CompositeFilter) {\n return ((CompositeFilter) filter).size();\n }\n return 1;\n }", "public int nUnfilteredSamples() {\n return Math.max(0, nHeaderFields - sampleOffset);\n }", "public int size() {\r\n assert numElements >= 0 : numElements;\r\n assert numElements <= capacity : numElements;\r\n assert numElements >= elementsByFitness.size() : numElements;\r\n return numElements;\r\n }", "Long getNumberOfElement();", "int cardinality();", "default int countItems(ItemStack... filters) {\n return countItems(StackFilters.anyOf(filters));\n }", "public static int numElements() {\n return values().length;\n }", "public int getCount() {\n\n if(data.size()<=0)\n return 1;\n return filteredList.size();\n }", "int getTotalElements();", "int sizeOfFeatureArray();", "int sizeOfFeatureArray();", "int getInputsCount();", "int getInputsCount();", "int getInputsCount();", "default int countItems() {\n return countItems(StandardStackFilters.ALL);\n }", "void printNumberOfFilteredItems();", "int sizeOfClassificationArray();", "int getFeaturesCount();", "int getDashboardFiltersCount();", "int getRequestedValuesCount();", "int countFeatures();", "int countFeatures();", "int getNumItems();", "public int getNumOfElements() {\n return numOfElements;\n }", "int sizeOfPlanFeatureArray();", "int getNumSampleDimensions();", "int sizeOfPerformerArray();", "int sizeOfTrafficVolumeArray();", "private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }", "public int sizeOfParamArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PARAM$14);\r\n }\r\n }", "public int sizeFilter2() {\n\t\treturn this.size(FILTER2);\n\t}", "public int size() {\r\n int temp = 0;\r\n for (int i = 0; i < elem.length; i++) {\r\n if (elem[i] != null) {\r\n temp++;\r\n }\r\n }\r\n return temp;\r\n }", "int countTypedFeatures();", "public int getNumElements()\n {\n return numElements;\n }", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$14);\r\n }\r\n }", "boolean hasTotalElements();", "public int getUnitCount() {\n return _elements.length;\n }", "public int size() {\n\t\tint numElements = 0;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tif (list[i] != null) {\n\t\t\t\tnumElements++;\n\t\t\t}\n\t\t}\n\t\treturn numElements;\n\t}", "public int cardinality() {\n\t\treturn numElements; // dummy return\n\t}", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }", "public int sizeOfFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(FEATURE$6);\r\n }\r\n }", "int getValuesCount();", "public int getFeaturesCount();", "int sizeOfDescriptionArray();", "public abstract int numOfEmptyToReproduce();", "int getBloomFilterSizeInBytes(int index);", "int sizeOfBridgeElementArray();", "public Integer getInterestedInItemsCount();", "public Long getElementCount();", "public int size() {\n return elements.size();\n }", "@Test\n public void testElementCounts() {\n assertEquals(0, model3d.getBlocks().size());\n\n assertEquals(28, model3d.getEdges().size());\n assertEquals(16, model3d.getFaces().size());\n assertEquals(14, model3d.getPoints().size());\n }", "public int getBloomFilterSizeInBytesCount() {\n return bloomFilterSizeInBytes_.size();\n }", "int getParametersCount();", "int getParametersCount();", "@Test\n public void testCountingBloomFilter2() {\n final int countingSize = 20;\n final int items = 100;\n final int error = 8;\n int[] counting = new int[countingSize];\n CountingBloomFilter<String> cbs = new CountingBloomFilter<String>(bfSizeLarge, counting);\n\n System.out.println(cbs.expectedFalsePositiveProbability());\n\n for (int i = 0; i < items; i++) {\n cbs.add(\"abc\");\n }\n for (int i = 0; i < items; i++) {\n cbs.add(\"abc\" + i);\n }\n\n // here we show the false negatives. Actually, we should get 100, but\n // since we inserted also other stuff, we get\n // more.\n Assert.assertEquals(items + error, cbs.approximateCount(\"abc\"));\n\n }", "int getProbeFieldsCount();", "public int arraySize();", "public int getNumElements() {\n return numElements;\n }", "public int getNumElements() {\n return numElements;\n }", "int getDimensionsCount();", "public int getTrueSize() {\n int len = ArrayFuncs.computeSize(dataArray);\n return len;\n }", "int getNumParameters();", "int getDataScansCount();", "static int getCapacity(List al) throws Exception {\n Field field = ArrayList.class.getDeclaredField(\"elementData\");\n field.setAccessible(true);\n return ((Object[]) field.get(al)).length;\n }", "public int size() {\n return numOfElements;\n }", "public int getBloomFilterSizeInBytesCount() {\n return bloomFilterSizeInBytes_.size();\n }", "public Long getCount(Filter filter);", "public int getNumElements() {\n\t\treturn numElements;\n\t}", "public int getNrOfElements() {\n return this.nrOfElements;\n }", "public int sizeOfParametersArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(PARAMETERS$16);\n }\n }", "int countTypedParameters();", "Exp getElemSizeExp();", "int getParamsCount();", "int sizeOfRelatedArray();", "int getQueryItemsCount();", "@Test\n public void testCountingBloomFilter() {\n final int countingSize = 10;\n int[] counting = new int[countingSize];\n CountingBloomFilter<String> cbs = new CountingBloomFilter<String>(bfSize, counting);\n\n cbs.add(\"abc\");\n cbs.add(\"abc\");\n cbs.add(\"abc\");\n cbs.add(\"abd\");\n cbs.add(\"abe\");\n\n Assert.assertEquals(3, cbs.approximateCount(\"abc\"));\n Assert.assertEquals(1, cbs.approximateCount(\"abd\"));\n Assert.assertEquals(0, cbs.approximateCount(\"abg\"));\n\n }", "public int sizeOfReasonNotGivenArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(REASONNOTGIVEN$6);\n }\n }", "public int cardinality() {\n\t\tint counter = 0;\n\t\tfinal EWAHIterator i =\n\t\t\t\tnew EWAHIterator(this.buffer, this.actualsizeinwords);\n\t\twhile (i.hasNext()) {\n\t\t\tRunningLengthWord localrlw = i.next();\n\t\t\tif (localrlw.getRunningBit()) {\n\t\t\t\tcounter += wordinbits * localrlw.getRunningLength();\n\t\t\t}\n\t\t\tfor (int j = 0; j < localrlw.getNumberOfLiteralWords(); ++j) {\n\t\t\t\tcounter += Long.bitCount(i.buffer()[i.dirtyWords() + j]);\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}", "public CountingFilter(int bitArraySize, int expectedElements) {\n\t\tthis.bitArraySize = bitArraySize;\n\t\tthis.expectedElements = expectedElements;\n\t\tthis.k = (int) Math.ceil((bitArraySize / expectedElements)\n\t\t\t\t* Math.log(2.0));\n\t\tcounters = new byte[bitArraySize];\n\t}", "int sizeOfScansArray();", "int getMetricValuesCount();", "public int size() {\r\n\t\treturn elements.size();\r\n\t}", "public int size() {\n\t\treturn elements.size();\n\t}", "public int size() {\n\t\t// DO NOT CHANGE THIS METHOD\n\t\treturn numElements;\n\t}", "int getParameterCount();", "@Override\r\n\tpublic int getCount() {\n\t return filterArray.size();\r\n\t}", "Object getNumberMatched();", "public int getParameterCount();", "public int sizeOf();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();" ]
[ "0.73331773", "0.6964874", "0.688219", "0.6868339", "0.68293655", "0.67582494", "0.66337955", "0.661618", "0.65982234", "0.6518686", "0.6518333", "0.6492106", "0.6463085", "0.64553577", "0.6436069", "0.6435826", "0.64305043", "0.64305043", "0.64134955", "0.64134955", "0.64134955", "0.63165873", "0.6311579", "0.630611", "0.62889105", "0.6271944", "0.62597775", "0.62538123", "0.62538123", "0.62513125", "0.62508416", "0.6243316", "0.62277585", "0.6225202", "0.622212", "0.621769", "0.62123054", "0.62118745", "0.62095183", "0.6203996", "0.62033755", "0.61906326", "0.6189812", "0.61638755", "0.61515397", "0.61504", "0.6138179", "0.6138179", "0.61375767", "0.61329615", "0.6126085", "0.6124599", "0.611797", "0.6117933", "0.61136085", "0.61037284", "0.6092633", "0.608739", "0.6085694", "0.60845983", "0.60845983", "0.6078672", "0.60748", "0.6069993", "0.60698676", "0.60698676", "0.60665727", "0.6039838", "0.60364074", "0.6035209", "0.6034944", "0.6034832", "0.6034133", "0.60324425", "0.60243624", "0.6022769", "0.6020008", "0.6018523", "0.6009678", "0.6004332", "0.60022676", "0.5995417", "0.59943724", "0.598849", "0.59862345", "0.59857076", "0.5978962", "0.59778994", "0.5970121", "0.59659857", "0.596562", "0.5964222", "0.595017", "0.5949778", "0.5945351", "0.5942131", "0.593981", "0.593981", "0.593981", "0.593981" ]
0.6643635
6
Get fpp of filter
public double fpp() { return config().getP(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Filter getFilter();", "FeedbackFilter getFilter();", "public LSPFilter getFilter () {\r\n return filter;\r\n }", "String getFilter();", "public int getNatureFilter();", "public String getFilter();", "String getFilterName();", "public Filter getFilter() {\n\t\treturn (filter);\n\t}", "public String getFilter() {\n\t\treturn(\"PASS\");\n\t}", "@Override public Filter getFilter() { return null; }", "public Field getFPParameters() {\n\t\treturn _fpParameters;\n\t}", "java.lang.String getFilter();", "@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}", "public native int getFilter() throws MagickException;", "public String getFilter()\n {\n return encryptionDictionary.getNameAsString( COSName.FILTER );\n }", "public ParticleMeasure filter(final Filter filter)\n\t\t{\n\t\tParticleMeasure out=new ParticleMeasure();\n\t\t\n\t\t//Copy all the columns\n\t\tout.columns.addAll(columns);\n\t\t\n\t\t//Copy all frames\n\t\tfor(Map.Entry<EvDecimal, FrameInfo> f:frameInfo.entrySet())\n\t\t\tif(filter.acceptFrame(f.getKey()))\n\t\t\t\t{\n\t\t\t\t//Create place-holder for frame\n\t\t\t\tfinal FrameInfo oldInfo=f.getValue();\n\t\t\t\tfinal FrameInfo newInfo=new FrameInfo();\n\t\t\t\tout.frameInfo.put(f.getKey(), newInfo);\n\n\t\t\t\t//Filter need to execute lazily as well\n\t\t\t\tnewInfo.calcInfo=new CalcInfo()\n\t\t\t\t\t{\n\t\t\t\t\tpublic void calc()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t//Execute calculation if not done already\n\t\t\t\t\t\tif(oldInfo.calcInfo!=null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\toldInfo.calcInfo.calc();\n\t\t\t\t\t\t\toldInfo.calcInfo=null;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Filter particles\n\t\t\t\t\t\tfor(int id:oldInfo.keySet())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tParticleInfo pInfo=oldInfo.get(id);\n\t\t\t\t\t\t\tif(filter.acceptParticle(id, pInfo))\n\t\t\t\t\t\t\t\tnewInfo.put(id,pInfo);\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\n\t\treturn out;\n\t\t}", "private final void probabilityFromRecursiveRidgeFilter( float[] filter, float[] shape) {\n\t\tint nb = 0;\n\t\tdouble min = 1e9;\n\t\tdouble max = 0.0;\n\t\tfor (int x=2;x<nx-2;x++) for (int y=2;y<ny-2;y++) for (int z=2;z<nz-2;z++) {\n\t\t\tint xyz = x + nx*y + nx*ny*z;\n\t\t\t\t// keep only the proper sign\n\t\t\t\tif (filter[xyz]<=0) filter[xyz] = 0.0f;\n\t\t\t\telse {\n\t\t\t\t\t// fit exp only to non-zero data\n\t\t\t\t\tnb++;\n\t\t\t\t\tmin = Numerics.min(filter[xyz], min);\n\t\t\t\t\tmax = Numerics.max(filter[xyz], max);\n\t\t\t\t}\n\t\t}\n\t\t\n\t\t// robust measures? pb is the exponential is not steep enough\n\t\tdouble[] response = new double[nb];\n\t\tint n=0;\n\t\tfor (int x=2;x<nx-2;x++) for (int y=2;y<ny-2;y++) for (int z=2;z<nz-2;z++) {\n\t\t\tint xyz = x + nx*y + nx*ny*z;\n\t\t\t\tif (filter[xyz]>0) {\n\t\t\t\t\tresponse[n] = filter[xyz];\n\t\t\t\t\tn++;\n\t\t\t\t}\n\t\t}\n\t\tPercentile measure = new Percentile();\n\t\tdouble median = measure.evaluate(response, 50.0);\n\t\tdouble beta = median/FastMath.log(2.0);\n\t\t\n\t\tBasicInfo.displayMessage(\"exponential parameter estimates: median \"+median+\", beta \"+beta+\",\\n\");\n\t\t\n\t\t// model the filter response as something more interesting, e.g. log-normal (removing the bg samples)\n\t\tdouble[] weights = new double[nb];\n\t\tfor (int b=0;b<nb;b++) { \n\t\t\tweights[b] = (1.0-FastMath.exp( -response[b]/beta));\n\t\t\tresponse[b] = FastMath.log(response[b]);\n\t\t}\n\t\t\n\t\tdouble fmean = ImageStatistics.weightedPercentile(response,weights,50.0,nb);\n\t\t\n\t\t// stdev: 50% +/- 1/2*erf(1/sqrt(2)) (~0.341344746..)\n\t\tdouble dev = 100.0*0.5*Erf.erf(1.0/FastMath.sqrt(2.0));\n\t\tdouble fdev = 0.5*(ImageStatistics.weightedPercentile(response,weights,50.0+dev,nb) - ImageStatistics.weightedPercentile(response,weights,50.0-dev,nb));\n\t\t\n\t\tBasicInfo.displayMessage(\"Log-normal parameter estimates: mean = \"+FastMath.exp(fmean)+\", stdev = \"+FastMath.exp(fdev)+\",\\n\");\n\t\t\n\t\tfor (int x=0;x<nx;x++) for (int y=0;y<ny;y++) for (int z=0;z<nz;z++){\n\t\t\tint xyz = x + nx*y + nx*ny*z;\n\t\t\tif (filter[xyz]>0) {\n\t\t\t\tdouble pe = FastMath.exp( -filter[xyz]/beta)/beta;\n\t\t\t\tdouble plg = FastMath.exp(-Numerics.square(FastMath.log(filter[xyz])-fmean)/(2.0*fdev*fdev))/FastMath.sqrt(2.0*FastMath.PI*fdev*fdev);\n\t\t\t\tshape[xyz] = (float)(plg/(plg+pe));\n\t\t\t\t//shape[xyz] = (float)(1.0-pe);\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "public Expression getFilter() {\n return this.filter;\n }", "FeatureHolder filter(FeatureFilter filter);", "public ImageFilter getFilter() {\r\n\t\treturn filter;\r\n\t}", "@Override\r\n\t public Filter getFilter() {\n\t return null;\r\n\t }", "public abstract INexusFilterDescriptor getFilterDescriptor();", "public String getFilter() {\n\t\treturn filter;\n\t}", "@Override\n public int filterOrder() {\n return 1;\n }", "@Override\n public int filterOrder() {\n return 1;\n }", "public void filterPoint(FPointType fpt) {\n for (Iterator<TransformLayer> itr = tLayerPool.values().iterator(); itr.hasNext(); )\n itr.next().filterPoint(fpt);\n }", "public ExtensionFilter getFilter () {\n return this.filter;\n }", "@Override\n\tpublic Filter getFilter() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Filter getFilter() {\n\t\treturn null;\n\t}", "public int getFilterMode(){ return mFilterMode;}", "public int bitsOfFilter() {\n return config().getM();\n }", "com.google.protobuf.ByteString\n getFilterBytes();", "public final AfIPFilter getIPFilter() {\n return _ipFilter;\n }", "public List<String> getFileFilters() {\n/* 420 */ List<String> retval = null;\n/* 421 */ COSBase filters = this.stream.getDictionaryObject(COSName.F_FILTER);\n/* 422 */ if (filters instanceof COSName) {\n/* */ \n/* 424 */ COSName name = (COSName)filters;\n/* 425 */ retval = new COSArrayList<String>(name.getName(), (COSBase)name, (COSDictionary)this.stream, COSName.F_FILTER);\n/* */ \n/* */ }\n/* 428 */ else if (filters instanceof COSArray) {\n/* */ \n/* */ \n/* 431 */ retval = COSArrayList.convertCOSNameCOSArrayToList((COSArray)filters);\n/* */ } \n/* 433 */ return retval;\n/* */ }", "@Override\n\tpublic String filterType() {\n\t\treturn FilterConstants.PRE_TYPE;\n\t}", "public IntelligentTieringFilter getFilter() {\n return filter;\n }", "public double getFLAngle(){\r\n \treturn frontLeftPot.get() - FLOFFSET;\r\n }", "user_filter_reference getUser_filter_reference();", "private void runFilters() {\n \tif (currentPoint * itp < time1) {\r\n \t\t//Accelerating filter 1\r\n \t\tfilterSum1 = currentPoint / filterLength1;\r\n \t}\r\n \telse if (currentPoint >= totalPoints - filterLength2) {\r\n \t\tfilterSum1 = 0;\r\n \t}\r\n \telse if (currentPoint * itp >= timeToDeccel) {\r\n \t\t//Deccelerating filter 1\r\n \t\tfilterSum1 = (totalPoints - filterLength2 - currentPoint) / filterLength1;\r\n \t}\r\n \telse {\r\n \t\tfilterSum1 = 1;\r\n \t}\r\n \t\r\n \t//Creating filterSum2 from the sum of the last filterLength2 values of filterSum1(Boxcar filter)\r\n \tfilterSums1[currentPoint] = filterSum1;\r\n \tint filter2Start = (int) ((currentPoint > filterLength2) ? currentPoint - filterLength2 + 1 : 0);\r\n \tfilterSum2 = 0;\r\n \tfor(int i = filter2Start; i <= currentPoint; i++) {\r\n \t\tfilterSum2 += filterSums1[i];\r\n \t}\r\n \t\r\n\t}", "@Override\n\tpublic String name() {\n\t\treturn filter.name();\n\t}", "public Filter getFilterComponent()\n {\n return filterComponent;\n }", "@Test\n public void testFilterStructure() throws Exception {\n assertEquals(300.0, maxFilter.filter(300.0), .01);\n }", "public String getFilter() {\n\t\treturn url.getFilter();\n }", "void filterChanged(Filter filter);", "PropertiedObjectFilter<O> getFilter();", "public String askDepFilter();", "@Override\n public Filter getFilter() {\n if(filter == null)\n {\n filter=new CustomFilter();\n }\n return filter;\n }", "private BandPassFilter constructBPF(float r) {\n float width = 0.20f/r;\n BandPassFilter bpf = new BandPassFilter(0.0,0.5/r,width,0.01);\n return bpf;\n }", "@Override\n\tpublic Filter getFilter() {\n\t\tif (filter == null)\n\t\t\tfilter = new CountryFilter();\n\t\treturn filter;\n\t}", "public String getFilterLabel( )\n {\n return _strFilterLabel;\n }", "public Double getFpl() {\r\n return fpl;\r\n }", "public java.lang.String getFilter() {\n return filter;\n }", "public int getFPT(ImageAnimation animation)\n {\n if(fptMap.containsKey(animation))\n return fptMap.get(animation);\n else\n return 10; //default fpt value\n }", "public final OMSVGAnimatedInteger getFilterResX() {\n return ((SVGFilterElement)ot).getFilterResX();\n }", "public boolean isCovering(Filter f);", "public void createPPF(){\n\t\tSystem.out.println(\"HDFC:: createed ppf\");\n\t}", "public String getFilter() {\n if(isHot) {\n // buy = max\n // view = max\n }\n String s = \"oderby @exo:\"+orderBy + \" \" + orderType;\n return null;\n }", "public List<COSName> getFilters() {\n/* 312 */ List<COSName> retval = null;\n/* 313 */ COSBase filters = this.stream.getFilters();\n/* 314 */ if (filters instanceof COSName) {\n/* */ \n/* 316 */ COSName name = (COSName)filters;\n/* 317 */ retval = new COSArrayList<COSName>(name, (COSBase)name, (COSDictionary)this.stream, COSName.FILTER);\n/* */ }\n/* 319 */ else if (filters instanceof COSArray) {\n/* */ \n/* 321 */ retval = ((COSArray)filters).toList();\n/* */ } \n/* 323 */ return retval;\n/* */ }", "@Override\n\t public String filterType() {\n\t return \"pre\";\n\t }", "public float getFalloff() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 144);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 112);\n\t\t}\n\t}", "@DISPID(-2147412069)\n @PropGet\n java.lang.Object onfilterchange();", "FeatureCall getFec();", "private File testFiltering(final File vcf, final String outputExtension, final double minAb, final int minDp, final int minGq, final double maxFs) throws Exception {\n final File out = VcfTestUtils.createTemporaryIndexedFile(\"filterVcfTest.\", outputExtension);\n\n final FilterVcf filterer = new FilterVcf();\n filterer.CREATE_INDEX = true;\n filterer.INPUT = vcf;\n filterer.OUTPUT = out;\n filterer.MIN_AB = minAb;\n filterer.MIN_DP = minDp;\n filterer.MIN_GQ = minGq;\n filterer.MAX_FS = maxFs;\n\n final int retval = filterer.doWork();\n if (retval != 0) {\n throw new PicardException(\"Return value non-zero: \" + retval);\n }\n\n return out;\n }", "protected List<Tuple<Operator, Property>> getPropertyFilters() {\n if (properties == null) {\n EntityDescriptor ed = getDescriptor();\n properties = filters.stream()\n .map(filter -> Tuple.create(filter.getFirst(), ed.getProperty(filter.getSecond())))\n .toList();\n }\n\n return Collections.unmodifiableList(properties);\n }", "public String getCpf() {\n return cpf;\n }", "StandardFilterBuilder standardFilter(int count);", "public int sizeFilter2() {\n\t\treturn this.size(FILTER2);\n\t}", "@Test\n public void testHighPassFilter() {\n int freq1;\n int freq2;\n for (int i = 1; i < 10; i += 2) {\n freq1 = i * 100;\n freq2 = i * 200;\n SoundWave wave1 = new SoundWave(freq1, 0, 0.4, 0.1);\n SoundWave wave2 = new SoundWave(freq2, 2, 0.3, 0.1);\n SoundWave wave = wave1.add(wave2);\n\n double maxFreq = wave.highAmplitudeFreqComponent();\n assertEquals(freq1, maxFreq, 0.00001);\n\n wave = wave.highPassFilter(5, 6);\n\n maxFreq = wave.highAmplitudeFreqComponent();\n assertEquals(freq2, maxFreq, 0.00001);\n }\n }", "public int oper() {\n int ope = getFilter().getExp().oper();\n return ope;\n }", "void setFilter(Filter f);", "private Filter readFilter() {\n final Stack<Node> expressionStack = new Stack<Node>();\n\n // Employ the shunting-yard algorithm to parse into reverse polish notation,\n // where the operands are filter components and the operators are the\n // logical AND and OR operators. This algorithm ensures that operator\n // precedence and parentheses are respected.\n final List<Node> reversePolish = new ArrayList<Node>();\n for (String word = readWord(); word != null; word = readWord()) {\n if (word.equalsIgnoreCase(\"and\") || word.equalsIgnoreCase(\"or\")) {\n final OperatorNode currentOperator;\n if (word.equalsIgnoreCase(\"and\")) {\n currentOperator = new OperatorNode(Operator.AND, markPos);\n } else {\n currentOperator = new OperatorNode(Operator.OR, markPos);\n }\n while (!expressionStack.empty() && (expressionStack.peek() instanceof OperatorNode)) {\n final OperatorNode previousOperator = (OperatorNode) expressionStack.peek();\n if (previousOperator.getPrecedence() < currentOperator.getPrecedence()) {\n break;\n }\n reversePolish.add(expressionStack.pop());\n }\n expressionStack.push(currentOperator);\n } else if (word.equals(\"(\")) {\n expressionStack.push(new LeftParenthesisNode(markPos));\n } else if (word.equals(\")\")) {\n while (!expressionStack.empty() && !(expressionStack.peek() instanceof LeftParenthesisNode)) {\n reversePolish.add(expressionStack.pop());\n }\n if (expressionStack.empty()) {\n final String msg =\n String.format(\"No opening parenthesis matching closing \" +\n \"parenthesis at position %d\", markPos);\n throw new IllegalArgumentException(msg);\n }\n expressionStack.pop();\n } else {\n rewind();\n final int pos = currentPos;\n final Filter filterComponent = readFilterComponent();\n reversePolish.add(new FilterNode(filterComponent, pos));\n }\n }\n\n while (!expressionStack.empty()) {\n final Node node = expressionStack.pop();\n if (node instanceof LeftParenthesisNode) {\n final String msg =\n String.format(\"No closing parenthesis matching opening \" +\n \"parenthesis at position %d\", node.getPos());\n throw new IllegalArgumentException(msg);\n }\n reversePolish.add(node);\n }\n\n // Evaluate the reverse polish notation to create a single complex filter.\n final Stack<FilterNode> filterStack = new Stack<FilterNode>();\n for (final Node node : reversePolish) {\n if (node instanceof OperatorNode) {\n final FilterNode rightOperand = filterStack.pop();\n final FilterNode leftOperand = filterStack.pop();\n final OperatorNode operatorNode = (OperatorNode)node;\n if (operatorNode.getOperator().equals(Operator.AND)) {\n final Filter filter = createAndFilter(\n Arrays.asList(leftOperand.getFilterComponent(),\n rightOperand.getFilterComponent()));\n filterStack.push(new FilterNode(filter, leftOperand.getPos()));\n } else {\n final Filter filter = createOrFilter(\n Arrays.asList(leftOperand.getFilterComponent(),\n rightOperand.getFilterComponent()));\n filterStack.push(new FilterNode(filter, leftOperand.getPos()));\n }\n } else {\n filterStack.push((FilterNode)node);\n }\n }\n\n if (filterStack.size() == 0) {\n final String msg = String.format(\"Empty filter expression\");\n throw new IllegalArgumentException(msg);\n }\n else if (filterStack.size() > 1) {\n final String msg = String.format(\n \"Unexpected characters at position %d\", expressionStack.get(1).pos);\n throw new IllegalArgumentException(msg);\n }\n\n return filterStack.get(0).filterComponent;\n }", "public String[] getCurrentFilters() {\n if (!currentImage.empty()) {\n return currentImage.peek().getFilters();\n } else {\n return new String[4];\n }\n }", "public void updateFilter() {\n Texture2dProgram.ProgramType programType;\n float[] kernel = null;\n float colorAdj = 0.0f;\n\n Log.d(TAG, \"Updating filter to \" + mNewFilter);\n switch (mNewFilter) {\n case CameraActivity.FILTER_NONE:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT;\n break;\n case CameraActivity.FILTER_BLACK_WHITE:\n // (In a previous version the TEXTURE_EXT_BW variant was enabled by a flag called\n // ROSE_COLORED_GLASSES, because the shader set the red channel to the B&W color\n // and green/blue to zero.)\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_BW;\n break;\n case CameraActivity.FILTER_BLUR:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 1f/16f, 2f/16f, 1f/16f,\n 2f/16f, 4f/16f, 2f/16f,\n 1f/16f, 2f/16f, 1f/16f };\n break;\n case CameraActivity.FILTER_SHARPEN:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 0f, -1f, 0f,\n -1f, 5f, -1f,\n 0f, -1f, 0f };\n break;\n case CameraActivity.FILTER_EDGE_DETECT:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n -1f, -1f, -1f,\n -1f, 8f, -1f,\n -1f, -1f, -1f };\n break;\n case CameraActivity.FILTER_EMBOSS:\n programType = Texture2dProgram.ProgramType.TEXTURE_EXT_FILT;\n kernel = new float[] {\n 2f, 0f, 0f,\n 0f, -1f, 0f,\n 0f, 0f, -1f };\n colorAdj = 0.5f;\n break;\n default:\n throw new RuntimeException(\"Unknown filter mode \" + mNewFilter);\n }\n\n // Do we need a whole new program? (We want to avoid doing this if we don't have\n // too -- compiling a program could be expensive.)\n if (programType != mFullScreen.getProgram().getProgramType()) {\n mFullScreen.changeProgram(new Texture2dProgram(programType));\n // If we created a new program, we need to initialize the texture width/height.\n mIncomingSizeUpdated = true;\n }\n\n // Update the filter kernel (if any).\n if (kernel != null) {\n mFullScreen.getProgram().setKernel(kernel, colorAdj);\n }\n\n mCurrentFilter = mNewFilter;\n }", "List<Condition> composeFilterConditions(F filter);", "IViewFilter getViewFilter();", "public static String getFilterPattern() {\n return FILTER_PATTERN;\n }", "public void calculatePF() {\r\n\t\tfloat pfRate = 10.5f;\r\n\t\tSystem.out.println(\"The PF rate of the employee is \"+pfRate);\r\n\t\tdisplay();\r\n\t}", "public long FC( int row, int col){\n\treturn (filters >> ((((row) << 1 & 14) + ((col) & 1)) << 1) & 3);\n}", "B filteringMode(FilteringMode filteringMode);", "public Filter getFilter() {\n\t\tif (filter == null) {\n\t\t\tfilter = new CountryListItemFilter();\n\t\t}\n\t\treturn filter;\n\t}", "public Frame readNextFilterInputPort () {\n return readNextFilterInputPort(0);\n }", "public ActionCriteria getUsageFilter() {\n\t\treturn usageFilter;\n\t}", "boolean isPreFiltered();", "public static interface Filter\n\t\t{\n\t\t/**\n\t\t * Accept a frame? if false then all particles will be discarded\n\t\t */\n\t\tpublic boolean acceptFrame(EvDecimal frame);\n\t\t\n\t\t/**\n\t\t * Accept a particle?\n\t\t */\n\t\tpublic boolean acceptParticle(int id, ParticleInfo info);\n\t\t}", "public double getFodder() {\n return 0.025 * weight;\n }", "public FilterConfig getFilterConfig() {\n return (this.filterConfig);\n }", "public FilterConfig getFilterConfig() {\n return (this.filterConfig);\n }", "public FilterConfig getFilterConfig() {\n return (this.filterConfig);\n }", "public List<String> getFileFilters()\n {\n COSBase filters = stream.getDictionaryObject(COSName.F_FILTER);\n if (filters instanceof COSName)\n {\n COSName name = (COSName) filters;\n return Collections.singletonList(name.getName());\n }\n else if (filters instanceof COSArray)\n {\n return ((COSArray) filters).toCOSNameStringList();\n }\n return Collections.emptyList();\n }", "public FilterSource[] getFilterSources();", "public FilterConfig getFilterConfig() {\n return (this.filterConfig);\n }", "public Filter [] getFilters() {\n return this.Filters;\n }", "public Filter [] getFilters() {\n return this.Filters;\n }", "public static int getWarrentyModeFilter() {\r\n return warrentyModeFilter;\r\n }", "public List<COSName> getFilters()\n {\n COSBase filters = stream.getFilters();\n if (filters instanceof COSName)\n {\n return Collections.singletonList((COSName) filters);\n } \n else if (filters instanceof COSArray)\n {\n return (List<COSName>)((COSArray) filters).toList();\n }\n return Collections.emptyList();\n }", "@Generated\n @Selector(\"falloff\")\n @NFloat\n public native double falloff();", "public static interface FilterInfo\n/* */ {\n/* */ Class<?> serialClass();\n/* */ \n/* */ \n/* */ \n/* */ long arrayLength();\n/* */ \n/* */ \n/* */ long depth();\n/* */ \n/* */ \n/* */ long references();\n/* */ \n/* */ \n/* */ long streamBytes();\n/* */ }", "public int sizeFilter() {\n\t\treturn this.size(FILTER);\n\t}", "public float getStaticPictureFps();", "PolynomialNode filter(Predicate test);" ]
[ "0.59569347", "0.592781", "0.58948934", "0.5736011", "0.5701693", "0.57002056", "0.56552577", "0.5648724", "0.562995", "0.556308", "0.55096793", "0.5504898", "0.5431126", "0.5420139", "0.5408579", "0.53703666", "0.53639877", "0.53371584", "0.53306556", "0.5330302", "0.5328203", "0.5316375", "0.53121865", "0.5290651", "0.5290651", "0.5282475", "0.52659297", "0.52555203", "0.52555203", "0.52476215", "0.5241451", "0.52211666", "0.5211713", "0.51874256", "0.5183289", "0.51705045", "0.5167405", "0.5149136", "0.5148145", "0.51459247", "0.5138401", "0.51298577", "0.51228786", "0.5119871", "0.5112239", "0.50833976", "0.50789607", "0.5077696", "0.50751686", "0.5051043", "0.50349796", "0.50042754", "0.5002516", "0.49943927", "0.49820325", "0.49662566", "0.49438876", "0.4930262", "0.49287093", "0.4924299", "0.4908875", "0.4903175", "0.49023756", "0.48913762", "0.48883244", "0.48852775", "0.48838237", "0.48837984", "0.4881704", "0.48799127", "0.48742184", "0.4869131", "0.4867849", "0.48672673", "0.4864518", "0.48589686", "0.48563153", "0.48553997", "0.48538098", "0.48489633", "0.4846232", "0.48461953", "0.48430252", "0.48385197", "0.48380443", "0.48353332", "0.48353332", "0.48353332", "0.4831742", "0.48282367", "0.48202437", "0.48173213", "0.48173213", "0.48086607", "0.4806649", "0.48012084", "0.4784413", "0.478426", "0.47807086", "0.47761008" ]
0.568851
6
Get the number of hash fucntions
public int numOfHashFunctions() { return config().getK(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getHash();", "int getClientHashLength();", "public int getHashLength() {\n\t\treturn hashLength;\n\t}", "public abstract int getHash();", "int getPasswordHashLength();", "public int size(){\n\t\treturn hashTableSize;\n\t}", "private int hashOf(String key) {\n return key.length();\n }", "public int hashcode();", "String getHashAlgorithm();", "public int hashCode() {\n\t\t// simple recipe for generating hashCode given by\n\t\t// Effective Java (Addison-Wesley, 2001)\n\t\tint result = 17;\n\t\tresult = 37 * result + methodName.hashCode();\n\t\treturn result;\n\t}", "int getUserFunctionsCount();", "public int size() { return _byHashCode.size(); }", "public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[] tkn = getToken();\n for (int i=0; i<tkn.length; i++)\n hash ^= (int)tkn[i];\n }\n hash ^= (type_ ^ 14401);\n hash ^= (timeoutInterval_ ^ 21327);\n hash ^= (isPrivate() ? 15501 : 12003);\n if (getPrincipal() != null)\n hash ^= getPrincipal().hashCode();\n if (getSystem() != null)\n hash ^= getSystem().getSystemName().hashCode();\n return hash;\n }", "private int hashType() {\n // Twelve possibilities\n int answer;\n if (isBomb()) {\n answer = 1;\n } else if (isShield()) {\n answer = 2;\n } else {\n answer = 3;\n }\n if (isFire() && !isKing()) {\n answer += 3 * 1;\n }\n if (!isFire() && isKing()) {\n answer += 3 * 2;\n }\n if (isFire() && isKing()) {\n answer += 3 * 3;\n }\n return answer - 1;\n }", "@Override\r\n public int getSize()\r\n {\r\n return keyHash.size();\r\n }", "int _hash(int maximum);", "public static int calculateHash(final Method method) {\n int hash = 17;\n hash = (37 * hash) + method.getName().hashCode();\n for (int i = 0; i < method.getParameterTypes().length; i++) {\n Class type = method.getParameterTypes()[i];\n hash = (37 * hash) + type.getName().hashCode();\n }\n return hash;\n }", "public static int calculateHash(final Field field) {\n int hash = 17;\n hash = (37 * hash) + field.getName().hashCode();\n Class type = field.getType();\n hash = (37 * hash) + type.getName().hashCode();\n return hash;\n }", "@org.junit.Test\n public void size() throws Exception {\n assertEquals(3, hashTable.size());\n hashTable.put(\"math\", \"club\");\n assertEquals(3, hashTable.size());\n hashTable.put(\"input\", \"string\");\n assertEquals(4, hashTable.size());\n }", "int getNumKeys();", "public int hashCode()\n {\n int hash = 7;\n hash = 83 * hash + (counter != null ? counter.hashCode() : 0);\n return hash;\n }", "private int hasher() {\n int i = 0;\n int hash = 0;\n while (i != length) {\n hash += hashableKey.charAt(i++);\n hash += hash << 10;\n hash ^= hash >> 6;\n }\n hash += hash << 3;\n hash ^= hash >> 11;\n hash += hash << 15;\n return getHash(hash);\n }", "static int optimalNumOfHashFunctions(long expectEntries, long bitSize) {\n return Math.max(1, (int) Math.round((double) bitSize / expectEntries * Math.log(2)));\n }", "public int hashCode()\n {\n return hash;\n }", "public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (role != null ? role.hashCode() : 0);\n return hash;\n }", "public static int calculateHash(final Class klass) {\n return klass.getName().hashCode();\n }", "public static int calculateHash(final Constructor constructor) {\n int hash = 17;\n hash = (37 * hash) + TransformationConstants.INIT_METHOD_NAME.hashCode();\n for (int i = 0; i < constructor.getParameterTypes().length; i++) {\n Class type = constructor.getParameterTypes()[i];\n hash = (37 * hash) + type.getName().replace('/', '.').hashCode();\n }\n return hash;\n }", "boolean hasHash();", "String getHash();", "String getHash();", "public int hashCode()\n {\n int i = 0;\n if ( hasHashKey() )\n i ^= getHashKey().hashCode();\n return i;\n }", "private int hash(T t) {\n int code = t.hashCode();\n return code % Table.size();\n }", "private int getHash(Object key) {\n return key.hashCode();\n }", "public int calcColumnsHash() {\n int retHash = -1;\n if ( this.attData!=null ) {\n StringBuffer columnsList = new StringBuffer(100);\n Iterator<String> it = this.attData.keySet().iterator();\n while (it.hasNext()) {\n columnsList.append(it.next());\n }\n retHash = columnsList.toString().hashCode();\n }\n return retHash;\n }", "public int count () throws IOException {\n\t\tList<Integer> list = new ArrayList<Integer>();\n\t\tinit();\n\t\twhile(hasNext()) {\n\t\t\tElement el = nextElement();\n\t\t\tint hash = el.GetHash();\n\t\t\tint pos = locate (list, hash);\n\t\t\tif ((pos == list.size()) || (list.get(pos) != hash)) {\n\t\t\t\tlist.add(pos, hash);\n\t\t\t}\n\t\t\t/*for (i=0; i<list.size() && list.get(i)<hash; i++) {}\n\t\t\t\tif ((i==list.size()) || (list.get(i) != el.GetHash())) {\n\t\t\t\t\tlist.add(i, hash);\n\t\t\t\t}*/\n\t\t}\n\t\treturn list.size();\n\t}", "public int hash(T input);", "static int getHash(Object obj) {\n return getHash(new HashSet<Class>(), obj, 0);\n }", "public int hashCode() {\n return hash.hashCode();\n }", "int getMethodsCount();", "public int hash(String w){\n return (Math.abs(w.hashCode()) % hashTable.length);\n }", "public int hashCode()\r\n {\r\n int hash = super.hashCode();\r\n hash ^= hashValue( m_name );\r\n hash ^= hashValue( m_classname );\r\n if( m_implicit )\r\n {\r\n hash ^= 35;\r\n }\r\n hash ^= hashValue( m_production );\r\n hash ^= hashArray( m_dependencies );\r\n hash ^= hashArray( m_inputs );\r\n hash ^= hashArray( m_validators );\r\n hash ^= hashValue( m_data );\r\n return hash;\r\n }", "int numberofhc()\n{\n\treturn hc.size();}", "private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }", "public int hashCode() {\r\n int result = 17;\r\n result = xCH(result, getTableDbName());\r\n result = xCH(result, getMemberAddressId());\r\n return result;\r\n }", "public int hashCode() {\n\t\tint h = 0, i = 0, j = count;\n\t\twhile (j-- != 0) {\n\t\t\twhile (state[i] != OCCUPIED)\n\t\t\t\ti++;\n\t\t\th += longHash2IntHash(key[i]);\n\t\t\ti++;\n\t\t}\n\t\treturn h;\n\t}", "public int hashesPerSecond() {\n int hashCount = 0;\n String simpleString = \"00000000\";\n long endTime = System.currentTimeMillis() + 1000;\n while (System.currentTimeMillis() < endTime) {\n MessageDigest md = null;\n try {\n md = MessageDigest.getInstance(\"SHA-256\");\n } catch (NoSuchAlgorithmException e) {\n System.out.println(\"message : \" + e);\n }\n byte[] messageDigest = md.digest(simpleString.getBytes());\n String hashedSimpleString = DatatypeConverter.printHexBinary(messageDigest);\n hashCount++;\n }\n return hashCount;\n }", "@Override\n public int getG2HashTableNumberOfEntries() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.G2_HASH_TABLE_NUMBER_OF_ENTRIES_);\n return ((Integer)retnValue).intValue ();\n }", "public int hashCode() {\n return 37 * 17;\n }", "int hash(String makeHash, int mod);", "public int getNumberOfEquivalenceClasses() {\n return hashTableElementCount;\n }", "@Override\n public final int hashCode ()\n {\n int hash = 5;\n hash = 37 * hash + this.serialPollStatusByte;\n hash = 37 * hash + Objects.hashCode (this.errorInt);\n return hash;\n }", "public int hashCode(){\n int hash = HashCodeUtil.SEED;\n\n hash = HashCodeUtil.hash(hash,getEventTimeMillis());\n hash = HashCodeUtil.hash(hash,getEventId());\n hash = HashCodeUtil.hash(hash,getAuthenticationType());\n hash = HashCodeUtil.hash(hash,getServiceHost());\n hash = HashCodeUtil.hash(hash,getRequesterIp());\n hash = HashCodeUtil.hash(hash,getSessionId());\n hash = HashCodeUtil.hash(hash,getResourceHost());\n hash = HashCodeUtil.hash(hash,getPrincipalName());\n hash = HashCodeUtil.hash(hash,getEventType());\n hash = HashCodeUtil.hash(hash,getServiceId());\n hash = HashCodeUtil.hash(hash,getResourceId());\n\n\n return hash;\n\n }", "com.google.protobuf.ByteString getHash();", "com.google.protobuf.ByteString getHash();", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "public abstract int doHash(T t);", "public int getHash() {\n return hash_;\n }", "public int hashCode() {\n int result = 1;\n Object $pageSize = this.getPageSize();\n result = result * 59 + ($pageSize == null ? 43 : $pageSize.hashCode());\n Object $pageNo = this.getPageNo();\n result = result * 59 + ($pageNo == null ? 43 : $pageNo.hashCode());\n Object $sort = this.getSort();\n result = result * 59 + ($sort == null ? 43 : $sort.hashCode());\n Object $orderByField = this.getOrderByField();\n result = result * 59 + ($orderByField == null ? 43 : $orderByField.hashCode());\n return result;\n }", "@Override\n\t\tpublic int hashCode() {\n\t\t\treturn countMap.hashCode();\n\t\t}", "protected abstract int hashOfObject(Object key);", "public int hashCode() {\n\treturn name.hashCode() ^ style ^ size;\n }", "public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }", "int hashCode();", "int hashCode();", "public int hashCode() {\n int result = 17;\n result = (37 * result)\n + ((nullCheck == null) ? 0 : nullCheck.hashCode());\n\n return result;\n }", "public int hashCode() {\n return lho.hashCode() + op.hashCode() + rho.hashCode();\n }", "int\thashCode();", "int getFieldCount();", "public int hashCode() {\n int h = 0;\n for (int j = realSize(), i = 0, t = 0; j-- != 0; ) {\n while (((key[i]) == ((char) 0)))\n i++;\n t = (key[i]);\n t ^= (value[i]);\n h += t;\n i++;\n }\n // Zero / null keys have hash zero.\n if (containsNullKey) h += (value[n]);\n return h;\n }", "public int getHash() {\n return hash_;\n }", "public static void main(String[] args) {\n\t\t\r\n\t Map<String,Integer> hashmap= new HashMap<String,Integer>();\r\n\t hashmap.put(\"Hiamsnhu\",12);\r\n\t hashmap.put(\"Khaneja\", 15);\r\n\t int size=hashmap.size();\r\n\t int hash=hashmap.hashCode();\r\n\t System.out.println(size);\r\n\r\n\t}", "@Override\n public int hashCode() {\n if (hash == 0)\n hash = MD5.getHash(owner.getLogin() + description).hashCode();\n return hash;\n }", "@Override\n public int hashCode() {\n int hash = size;\n for (byte key : keys) {\n // 0 can be a valid key or unused slot, but won't impact the hashcode in either case.\n // This way we can use a cheap loop without conditionals, or hard-to-unroll operations,\n // or the devastatingly bad memory locality of visiting value objects.\n // Also, it's important to use a hash function that does not depend on the ordering\n // of terms, only their values; since the map is an unordered collection and\n // entries can end up in different positions in different maps that have the same\n // elements, but with different history of puts/removes, due to conflicts.\n hash ^= hashCode(key);\n }\n return hash;\n }", "static int getHash(int par0)\n {\n return computeHash(par0);\n }", "private int hashFunction(int hashCode) {\n int location = hashCode % capacity;\n return location;\n }", "public double getHashLoadFactor() {\n return _hashLoadFactor;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.firstName);\n hash = 29 * hash + Objects.hashCode(this.lastName);\n hash = 29 * hash + this.studentNumber;\n return hash;\n }", "@Override\n public int hashCode() {\n int result = 42;\n int prime = 37;\n for (char ch : key.toCharArray()) {\n result = prime * result + (int) ch;\n }\n result = prime * result + summary.length();\n result = prime * result + value;\n return result;\n }", "@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public int hashCode();", "public static Map<String, Long> getInterfaceHashes(Class<?> intf)\n {\n // Create method hashes\n Method[] methods = SecurityActions.getDeclaredMethods(intf);\n HashMap<String, Long> map = new HashMap<String, Long>();\n for (int i = 0; i < methods.length; i++)\n {\n Method method = methods[i];\n try\n {\n long hash = methodHash(method);\n map.put(method.toString(), new Long(hash));\n }\n catch (Exception e)\n {\n }\n }\n \n return map;\n }", "private int funcaoHash(int x) {\n\t\treturn (x % 37);\n\t}", "private int hash(E e) {\n return Math.abs(e.hashCode()) % table.length;\n }", "public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }", "@Override\n public int hashCode() {\n int hash = 7;\n hash = 97 * hash + this.userId;\n hash = 97 * hash + Objects.hashCode(this.userName);\n hash = 97 * hash + Objects.hashCode(this.password);\n hash = 97 * hash + Objects.hashCode(this.email);\n hash = 97 * hash + (this.loggedIn ? 1 : 0);\n return hash;\n }", "protected int hashCode(URL paramURL) {\n/* 351 */ int i = 0;\n/* */ \n/* */ \n/* 354 */ String str1 = paramURL.getProtocol();\n/* 355 */ if (str1 != null) {\n/* 356 */ i += str1.hashCode();\n/* */ }\n/* */ \n/* 359 */ InetAddress inetAddress = getHostAddress(paramURL);\n/* 360 */ if (inetAddress != null) {\n/* 361 */ i += inetAddress.hashCode();\n/* */ } else {\n/* 363 */ String str = paramURL.getHost();\n/* 364 */ if (str != null) {\n/* 365 */ i += str.toLowerCase().hashCode();\n/* */ }\n/* */ } \n/* */ \n/* 369 */ String str2 = paramURL.getFile();\n/* 370 */ if (str2 != null) {\n/* 371 */ i += str2.hashCode();\n/* */ }\n/* */ \n/* 374 */ if (paramURL.getPort() == -1) {\n/* 375 */ i += getDefaultPort();\n/* */ } else {\n/* 377 */ i += paramURL.getPort();\n/* */ } \n/* */ \n/* 380 */ String str3 = paramURL.getRef();\n/* 381 */ if (str3 != null) {\n/* 382 */ i += str3.hashCode();\n/* */ }\n/* 384 */ return i;\n/* */ }", "private int getHash(K key) {\n return key == null ? 0 : key.hashCode();\n }", "public int hashCode() {\n\t\tint hash = 0;\n\t\tif (isGameOver()) {\n\t\t\treturn (1 + (winner() == Game.FIRST_PLAYER ? 1 : 2));\n\t\t}\n\t\thash = 4;\n\t\tfor (int i = 1; i < NUMBER_OF_MOVES; i++) {\n\t\t\thash *= 3;\n\t\t\tif (contains(moves1, i)) {\n\t\t\t\thash++;\n\t\t\t} else if (contains(moves2, i)) {\n\t\t\t\thash += 2;\n\t\t\t}\n\t\t}\n\t\treturn hash;\n\t}", "public int hashCode() {\n long hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getProject());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getUser());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getStatus());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getLastActivityDate());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasPiSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasDpSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasAdminSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasRequestorSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getEmailStatus());\n return (int)(hash % Integer.MAX_VALUE);\n }", "public int hashCode() {\n\t\treturn(11 * _device.hashCode() * _mount.hashCode());\n\t}", "private int hash(K key) {\n return (key.hashCode() & 0x7fffffff) % keys.length;\n }", "public int getHashCode(){\n return hashCode();\n }", "public int hashCode() {\n if (myhash == -1) {\n myhash = timestamp.hashCode() + signerCertPath.hashCode();\n }\n return myhash;\n }", "public int hashCode() {\n return method.hashCode();\n }", "public static final int nextHashCodeEntropy() {\n\t\tint hash = 17;\n\t\tfor (int i = 0; i < 11; i++) {\n\t\t\thash = 37 * hash + new Object().hashCode();\n\t\t}\n\t\treturn hash = 37 * hash + new Object().hashCode();\n\t}", "protected int computeHashCode() {\n return flags * 17\n + (var != null ? var.hashCode() : 0)\n + (num != null ? num.hashCode() : 0)\n + (str != null ? str.hashCode() : 0)\n + (object_labels != null ? object_labels.hashCode() : 0)\n + (getters != null ? getters.hashCode() : 0)\n + (setters != null ? setters.hashCode() : 0)\n + (excluded_strings != null ? excluded_strings.hashCode() : 0)\n + (included_strings != null ? included_strings.hashCode() : 0)\n + (functionPartitions != null ? functionPartitions.hashCode() : 0)\n + (functionTypeSignatures != null ? functionTypeSignatures.hashCode() : 0);\n }", "@Override\n public int hashCode() {\n\tint hash = 7;\n\thash = 67 * hash + Objects.hashCode(this.targetType);\n\thash = 67 * hash + Objects.hashCode(this.unresolvedType);\n\thash = 67 * hash + Objects.hashCode(this.targetName);\n\thash = 67 * hash + Objects.hashCode(this.targetActions);\n\treturn hash;\n }" ]
[ "0.7371883", "0.7334939", "0.70732015", "0.6990558", "0.68737084", "0.6825535", "0.6760135", "0.673776", "0.673764", "0.6685767", "0.6631651", "0.6630107", "0.6596587", "0.65766823", "0.65752345", "0.65692997", "0.65607166", "0.6495975", "0.6476025", "0.64694345", "0.6462649", "0.646186", "0.644918", "0.64486283", "0.64455706", "0.64322656", "0.64284474", "0.64203143", "0.6420026", "0.6420026", "0.6404112", "0.63953626", "0.63669044", "0.63589925", "0.63523453", "0.6338195", "0.6337385", "0.63214517", "0.6315263", "0.63043964", "0.62693536", "0.6253982", "0.6249521", "0.6249329", "0.62462133", "0.6241969", "0.62323517", "0.6228739", "0.6223726", "0.6222007", "0.62176424", "0.6214503", "0.6214176", "0.6214176", "0.6202228", "0.62002826", "0.6193912", "0.6189845", "0.61896116", "0.6187231", "0.6185594", "0.61789286", "0.61769366", "0.61769366", "0.6161499", "0.6157079", "0.6149306", "0.6140035", "0.6135213", "0.6128565", "0.6120781", "0.61158633", "0.6115519", "0.6115375", "0.6114172", "0.61137503", "0.6109518", "0.6104298", "0.60988617", "0.60976857", "0.60976857", "0.60976857", "0.60976857", "0.6095825", "0.6080663", "0.6076486", "0.6076186", "0.6071452", "0.60696375", "0.60680753", "0.60678273", "0.60662556", "0.6062809", "0.60580504", "0.6051315", "0.60391605", "0.6038081", "0.60352904", "0.6034529", "0.60343856" ]
0.8244635
0
Length: format: +1 if format > 6: +4 flags: +1 size: +2 ids: + (size 2) if flags & FLAG_IDENTIFIERS: + (4 size) crc: + (4 size) if flags & FLAG_WHIRLPOOL: + (64 size) version: + (4 size) children sizes: + (2 size) children ids: + (2 size (sum child count)) if flags & FLAG_IDENTIFIERS: + (4 size (sum child count)) format, flags, size
public ByteBuffer encode() { int length = 4; // table version if(format >= 6) length += 4; // file ids length += references.size() * 2; // identifiers (hash) of each file if((flags & FLAG_IDENTIFIERS) != 0) length += 4 * references.size(); // CRC of each file length += 4 * references.size(); // length should now be 14 at the end of this // Whirlpool hash of each file if((flags & FLAG_WHIRLPOOL) != 0) length += 64 * references.size(); // Version of each file length += 4 * references.size(); // Number of children in each file length += 2 * references.size(); int totalChildren = 0; for(AssetReference ref : references.values()) { totalChildren += ref.getChildCount(); } // Child id's inside each file length += 2 * totalChildren; if((flags & FLAG_IDENTIFIERS) != 0) length += 4 * totalChildren; ByteBuffer bb = ByteBuffer.allocate(length); bb.put((byte) format); if(format >= 6) { bb.putInt(version); } bb.put((byte) flags); bb.putShort((short) references.size()); int accumulator = 0; for(Map.Entry<Integer, AssetReference> entry : references.entrySet()) { int delta = entry.getKey() - accumulator; accumulator = entry.getKey(); bb.putShort((short) delta); } if((flags & FLAG_IDENTIFIERS) != 0) { for(Map.Entry<Integer, AssetReference> entry : references.entrySet()) { bb.putInt(entry.getValue().getIdentifier()); } } for(Map.Entry<Integer, AssetReference> entry : references.entrySet()) { bb.putInt(entry.getValue().getCRC()); } if((flags & FLAG_WHIRLPOOL) != 0) { for(Map.Entry<Integer, AssetReference> entry : references.entrySet()) { bb.put(entry.getValue().getWhirlpool()); } } for(Map.Entry<Integer, AssetReference> entry : references.entrySet()) { bb.putInt(entry.getValue().getVersion()); } for (Map.Entry<Integer, AssetReference> entry : references.entrySet()) { bb.putShort((short) entry.getValue().getChildCount()); } for (Map.Entry<Integer, AssetReference> entry : references.entrySet()) { accumulator = 0; AssetReference asset = entry.getValue(); for(int i = 0; i < asset.getChildCount(); i++) { int id = asset.getChild(i).getId(); int delta = id - accumulator; accumulator = id; bb.putShort((short) delta); } } if ((flags & FLAG_IDENTIFIERS) != 0) { for (Map.Entry<Integer, AssetReference> entry : references.entrySet()) { AssetReference asset = entry.getValue(); for (SubAssetReference subAsset : asset.getChildren()) { bb.putInt(subAsset.getIdentifier()); } } } Assert.isTrue(!bb.hasRemaining(), "Expect to have calculated exact length"); bb.flip(); return bb; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int sizeBits_parentId() {\n return 16;\n }", "public static int size_parentId() {\n return (16 / 8);\n }", "public static int totalSizeBits_infos_metadata() {\n return 16;\n }", "public int getMarshalledSize()\n{\n int marshalSize = 0; \n\n marshalSize += recordType.getMarshalledSize();\n marshalSize += changeIndicator.getMarshalledSize();\n marshalSize += entityType.getMarshalledSize();\n marshalSize += 2; // padding\n marshalSize += 4; // padding1\n\n return marshalSize;\n}", "public static int totalSize_infos_metadata() {\n return (16 / 8);\n }", "public static int sizeBits_infos_seq_num() {\n return 16;\n }", "@Override\n\t\tpublic String toString() {\n\t\t\tCRC32 crc32 = new CRC32();\n\t\t\tcrc32.update(rawType);\n\t\t\tcrc32.update(payload);\n\t\t\tint crc = (int) crc32.getValue();\n\t\t\tStringBuffer buffer = new StringBuffer();\n\t\t\tbuffer.append(\"chunk type:\").append(new String(rawType)).append(\"\\n\");\n\t\t\tbuffer.append(\"chunk len:\").append(Utils.byteToIntBigEndian(rawlen)).append(\"\\n\");\n\t\t\tbuffer.append(\"chunk crc:\").append(Utils.byteToIntBigEndian(rawCrc)).append(\"\\n\");\n\t\t\tbuffer.append(\"check crc:\").append(crc == Utils.byteToIntBigEndian(rawCrc)).append(\"\\n\");\n\t\t\treturn buffer.toString();\n\t\t}", "private static int getTreeSize(int totalSize) {\n if (totalSize <= 32) {\n return 0;\n } else {\n // TODO: Clojure does ((realSize - 1) >>> 5) << 5); is that faster?\n return ((totalSize - 1) & (~0x1F));\n }\n }", "protected int getBinarySize(BinarySerializator serializator) {\n return 16;\n }", "private void getTreeShape() {\n int treeSizeInBytes = (int) (Math.ceil(treeSize / (double) Byte.SIZE));\n // converting tree shape in bytes to the bitset;\n BitSet bs = BitSet.valueOf(Arrays.copyOfRange(buffer.array(), bufferPosition, bufferPosition + treeSizeInBytes));\n bufferPosition += treeSizeInBytes;\n\n int treeLeavesAmount = 0;\n for (int i = 0; i < treeSize; i++) {\n boolean bit = bs.get(i);\n if (!bit) {\n treeLeavesAmount += 1;\n }\n treeShape.add(bit);\n }\n\n // adding tree leaves to the linked list;\n for (int i = bufferPosition; i < bufferPosition + treeLeavesAmount; i++) {\n treeLeaves.add(buffer.get(i));\n }\n // increasing buffer position for the amount of leaves(unique bytes);\n bufferPosition = bufferPosition + treeLeavesAmount;\n }", "private static boolean parseChunk(final FileChannel fc,final long[] offset,final int depth) throws IOException {\n\t Log.d(TAG, \"entering parseChunk \"+ offset[0] +\"/\"+ depth);\n\n\t long data_offset = offset[0];\n\n long chunk_size = Util.readUInt(fc, data_offset); \n int chunk_type = Util.readInt(fc, data_offset+4);\n\n Log.v(TAG, chunk_type + \" \" + chunk_size);\n char sChunk[] = new char[4];\n Util.MakeFourCCString(chunk_type, sChunk);\n Log.v(TAG, String.format(\"chunk %s\", String.valueOf(sChunk)));\n\n data_offset += 8;\n // long chunk_data_size = offset[0] + chunk_size - data_offset;\n\n if (chunk_size == 1) {\n\n chunk_size = Util.readLong(fc, data_offset);\n\n data_offset += 8;\n\n if (chunk_size < 16) {\n Log.e(TAG,\" The smallest valid chunk is 16 bytes long in this case.\");\n return false;\n }\n\n } else if (chunk_size < 8) {\n Log.e(TAG,\"The smallest valid chunk is 8 bytes long.\");\n return false;\n }\n\n Log.v(TAG, String.format(\"parsing chunk %s at depth %d\",\n String.valueOf(sChunk), depth));\n\n if(chunk_type == Util.FOURCC('m', 'o', 'o', 'v') || chunk_type == Util.FOURCC('u', 'd', 't', 'a')) {\n Log.d(TAG, String.valueOf(sChunk));\n\n long stop_offset = offset[0] + chunk_size;\n offset[0] = data_offset;\n while (offset[0] < stop_offset) {\n boolean err = parseChunk(fc,offset, depth + 1);\n if (!err) {\n return err;\n }\n }\n\n if (offset[0] != stop_offset) {\n return false;\n }\n\n if (chunk_type == Util.FOURCC('m', 'o', 'o', 'v') ) {\n return true;\n }\n }\n else if(chunk_type == Util.FOURCC('h', 't', 'c', 'b')) {\n Log.d(TAG,\"Found Htc MetaData\");\n sHtcTableOffset = data_offset;\n Log.d(TAG,\"sHtcTableOffset = \" + sHtcTableOffset );\n parseHtcMetaData(fc,data_offset,chunk_size);\n Log.d(TAG,\"Parse Htc MetaData done\");\n offset[0] += chunk_size;\n } else if (chunk_type == Util.FOURCC('_', 'h', 't', 'c')\n || chunk_type == Util.FOURCC('d', 't', 'a', 'h')) {\n Log.d(TAG, \"Found HTC box\");\n offset[0] += 8;\n parseChunk(fc, offset, depth + 1);\n } else {\n offset[0] += chunk_size;\n }\n return true;\n }", "@NoProxy\n public int calculateByteSize() {\n\n int sz = 40; // Overhead for superclasses.\n sz += 4; // int entityType = CalFacadeDefs.entityTypeEvent;\n /*\n sv += stringSize(name); // String name;\n sv += collectionSize(nnn); // Collection<BwString> summaries;\n sv += collectionSize(nnn); // Collection<BwLongString> descriptions;\n sv += stringSize(classification); // String classification;\n sv += collectionSize(nnn); // Collection<BwString> comments;\n sv += collectionSize(nnn); // Collection<BwString> resources;\n private BwDateTime dtstart;\n private BwDateTime dtend;\n sv += 16; // String duration;\n sv += 4; // Boolean noStart;\n sv += 1; // char endType = endTypeDate;\n sv += stringSize(link); // String link;\n private BwGeo geo;\n sv += stringSize(status); // String status;\n sv += stringSize(cost); // String cost;\n sv += 1; // boolean deleted;\n sv += 16; // String dtstamp;\n sv += 16; // String lastmod;\n sv += 16; // String created;\n sv += 4; // integer priority;\n private Collection<BwCategory> categories = null;\n private Collection<BwContact> contacts;\n private BwLocation location;\n sv += stringSize(name); // String transparency;\n sv += 4; // integer percentComplete;\n sv += 16; // String completed;\n private Collection<BwAttendee> attendees;\n sv += 4; // Boolean recurring;\n sv += stringSize(uid); // String uid;\n private Collection<BwAlarm> alarms;\n sv += 16; // String recurrenceId;\n private Collection<String> rrules;\n private Collection<String> exrules;\n private Collection<BwDateTime> rdates;\n private Collection<BwDateTime> exdates;\n sv += 16; // String latestDate;\n sv += 4; // Boolean expanded;\n sv += 4; // int sequence;\n sv += 4; // int scheduleMethod;\n sv += stringSize(name); // String originator;\n private Collection<String> recipients;\n sv += 4; // int scheduleState;\n private Collection<BwRequestStatus> requestStatuses;\n private BwRelatedTo relatedTo;\n sv += 4; // int byteSize;\n */\n\n return sz;\n }", "public static int sizeBits_nodeid() {\n return 8;\n }", "public long getSize() {\n // a char is two bytes\n int size = (key.length() * 2) + 4;\n\n if (id != null) {\n size += ((id.length() * 2) + 4);\n }\n\n if (content != null) {\n if (content.getClass() == String.class) {\n size += ((content.toString().length() * 2) + 4);\n } else if (content instanceof CacheContent) {\n size += ((CacheContent) content).getSize();\n } else {\n return -1;\n }\n\n //add created, lastUpdate, and wasFlushed field sizes (1, 8, and 8)\n return size + 17;\n } else {\n return -1;\n }\n }", "public static int totalSizeBits_entries_id() {\n return 176;\n }", "public interface Ods {\n\t// *******************************************************************************\n\t// * General sizes\n\t// *******************************************************************************\n\t\n\tpublic static final int SIZE_BYTE = 1;\n\tpublic static final int SIZE_WORD = 2;\n\tpublic static final int SIZE_DWORD = 4;\n\t\n\t// *******************************************************************************\n\t// * CD structures\n\t// *******************************************************************************\n\t\n\tpublic static final int WORDRECORDLENGTH = 0xFF00;\n\tpublic static final int SIZE_LSIG = SIZE_WORD // Signature\n\t + SIZE_DWORD; // Length\n\tpublic static final int SIZE_WSIG = SIZE_WORD // Signature\n\t\t\t + SIZE_WORD; // Length\n\t\n\tpublic static final short SIG_CDFILEHEADER = 97;\n\tpublic static final int SIZE_CDFILEHEADER = SIZE_LSIG // Header\n\t + SIZE_WORD // FilleExtLen\n\t + SIZE_DWORD // FileDataSize\n\t + SIZE_DWORD // SegCount\n\t + SIZE_DWORD // Flags\n\t + SIZE_DWORD; // Reserved\n\tpublic static final short SIG_CDFILESEGMENT = 96;\n\tpublic static final int SIZE_CDFILESEGMENT = SIZE_LSIG // Header\n\t\t\t + SIZE_WORD // DataSize\n\t + SIZE_WORD // SegSize\n\t + SIZE_DWORD // Flags\n\t + SIZE_DWORD; // Reserved\n\tpublic static final short SIG_CDIMAGEHEADER = 125;\n\tpublic static final int SIZE_CDIMAGEHEADER = SIZE_LSIG // Signature\n + SIZE_WORD // ImageType\n + SIZE_WORD // Width\n + SIZE_WORD // Height\n + SIZE_DWORD // ImageDataSize\n + SIZE_DWORD // SegCount\n + SIZE_DWORD // Flags\n + SIZE_DWORD; // Reserved\n\tpublic static final short SIG_CDIMAGESEGMENT = 124;\n\tpublic static final int SIZE_CDIMAGESEGMENT = SIZE_LSIG // Header\n + SIZE_WORD // DataSize\n + SIZE_WORD; // SegSize\n\tpublic static final int SIZE_RECTSIZE = SIZE_WORD // width\n\t\t\t + SIZE_WORD; // height\n\tpublic static final int SIZE_CROPRECT = SIZE_WORD // left\n\t\t\t + SIZE_WORD // top\n\t\t\t + SIZE_WORD // right\n\t\t\t + SIZE_WORD; // bottom\n\tpublic static final short SIG_CDGRAPHIC = 153;\n\tpublic static final int SIZE_CDGRAPHIC = SIZE_LSIG // Signature\n\t\t\t + SIZE_RECTSIZE // DestSize\n\t\t\t + SIZE_RECTSIZE // CropSize\n\t\t\t + SIZE_CROPRECT // CropOffset\n\t\t\t + SIZE_WORD // fResize\n\t\t\t + SIZE_BYTE // Version\n\t\t\t + SIZE_BYTE // bFlags\n\t\t\t + SIZE_WORD; // wReserved\n\tpublic static final byte CDGRAPHIC_VERSION3 = 2;\n\n\tpublic static final short SIG_CDEVENT = (short)(249 | 0xFF00);\n\tpublic static final short SIZE_CDEVENT = SIZE_WSIG // Signature\n\t\t\t + SIZE_DWORD // Flags\n\t\t\t + SIZE_WORD // EventType\n\t\t\t + SIZE_WORD // ActionType\n\t\t\t + SIZE_DWORD // ActionLength\n\t\t\t + SIZE_WORD // SignatureLength\n\t\t\t + SIZE_BYTE * 14; // Reserved[14]\n\tpublic static final short SIG_CDBLOBPART = (short)(220 | WORDRECORDLENGTH);\n\tpublic static final int SIZE_CDBLOBPART = SIZE_WSIG // Signature\n\t\t\t + SIZE_WORD // OwnerSig\n\t\t\t + SIZE_WORD // Length\n\t\t\t + SIZE_WORD // BlobMax\n\t\t\t + SIZE_BYTE * 8; // Reserved[8]\n\t\n\tpublic static final short HTML_EVENT_LIBRARY = 22;\n\tpublic static final short ACTION_TYPE_JAVASCRIPT = 4;\n}", "public static int size_infos_seq_num() {\n return (16 / 8);\n }", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:59:08.680 -0500\", hash_original_method = \"4B0B8276597CEA521E1E338B4AADD471\", hash_generated_method = \"9283ED1C2044F4178961436920D7FF12\")\n \nstatic ImageDescriptor parse(byte[] rawData, int valueIndex) {\n ImageDescriptor d = new ImageDescriptor();\n try {\n d.width = rawData[valueIndex++] & 0xff;\n d.height = rawData[valueIndex++] & 0xff;\n d.codingScheme = rawData[valueIndex++] & 0xff;\n\n // parse image id\n d.imageId = (rawData[valueIndex++] & 0xff) << 8;\n d.imageId |= rawData[valueIndex++] & 0xff;\n // parse offset\n d.highOffset = (rawData[valueIndex++] & 0xff); // high byte offset\n d.lowOffset = rawData[valueIndex++] & 0xff; // low byte offset\n\n d.length = ((rawData[valueIndex++] & 0xff) << 8 | (rawData[valueIndex++] & 0xff));\n } catch (IndexOutOfBoundsException e) {\n CatLog.d(\"ImageDescripter\", \"parse; failed parsing image descriptor\");\n d = null;\n }\n return d;\n }", "public abstract long getSize();", "long getSize();", "@Override\n public int getSize() { return size; }", "@Override\n public int getSize() {\n return 64;\n }", "public int actualSize(final Context<BTree, BTreeLeaf> context)\n\t{\n\t\treturn SIEntry.size(context.fileFormat);\n\t}", "public static int sizeBits_infos_size_data() {\n return 8;\n }", "public static int size_infos_size_data() {\n return (8 / 8);\n }", "public static int offsetBits_parentId() {\n return 64;\n }", "public int getSize() {return size;}", "public long getSize();", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "public String toString()\r\n\t{\r\n\t\tString parentDesc = super.toString();\r\n\t\tString myDesc = \"[Size: \" + this.size + \" ]\";\r\n\t\treturn parentDesc + myDesc;\r\n\t}", "public short getObjectSize() { return objectSize; }", "public TextObjectBaseRecord(short id, short size, byte [] data, int offset)\n {\n super(id, size, data, offset);\n \n }", "public static int elementSizeBits_infos_metadata() {\n return 8;\n }", "public int getSize() { return size; }", "public int getIdSize() {\n\t\treturn LongConverter.SIZE;\n\t}", "int childrenSize();", "com.google.protobuf.ByteString\n getChildIdBytes();", "public int getSize(){return _size;}", "@Override\n public int getSize() {\n return 1;\n }", "protected int serializeHeader(DataOutputStream dos) throws IOException {\n // Write the header. It is already set and ready to use, having been\n // created when the Trie2 was unserialized or when it was frozen.\n int bytesWritten = 0;\n\n dos.writeInt(header.signature);\n dos.writeShort(header.options);\n dos.writeShort(header.indexLength);\n dos.writeShort(header.shiftedDataLength);\n dos.writeShort(header.index2NullOffset);\n dos.writeShort(header.dataNullOffset);\n dos.writeShort(header.shiftedHighStart);\n bytesWritten += 16;\n\n // Write the index\n int i;\n for (i=0; i< header.indexLength; i++) {\n dos.writeChar(index[i]);\n }\n bytesWritten += header.indexLength;\n return bytesWritten;\n }", "public static int sizeBits_parent() {\n return 8;\n }", "public TextObjectBaseRecord(short id, short size, byte [] data)\n {\n super(id, size, data);\n \n }", "private void initMetadata() throws IOException {\n \n // start by reading the file header\n in.seek(0);\n byte[] toRead = new byte[4];\n in.read(toRead);\n long order = batoi(toRead); // byte ordering\n little = toRead[2] != 0xff || toRead[3] != 0xff;\n metadata.put(\"Byte Order\", new Boolean(little));\n \n in.skipBytes(4);\n in.read(toRead);\n long version = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Version\", new Long(version));\n \n byte[] er = new byte[2];\n in.read(er);\n short count = DataTools.bytesToShort(er, little);\n metadata.put(\"Count\", new Short(count));\n \n in.skipBytes(2);\n \n in.read(toRead);\n long offset = DataTools.bytesToLong(toRead, little);\n \n // skip to first tag\n in.seek(offset);\n \n // read in each tag and its data\n \n for (int i=0; i<count; i++) {\n in.read(er);\n short tag = DataTools.bytesToShort(er, little);\n in.skipBytes(2);\n \n in.read(toRead);\n offset = DataTools.bytesToLong(toRead, little);\n \n in.read(toRead);\n long fmt = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Format\", new Long(fmt));\n \n in.read(toRead);\n long numBytes = DataTools.bytesToLong(toRead, little);\n metadata.put(\"NumBytes\", new Long(numBytes));\n \n if (tag == 67 || tag == 68) {\n byte[] b = new byte[1];\n in.read(b);\n boolean isOpenlab2;\n if (b[0] == '0') isOpenlab2 = false;\n else isOpenlab2 = true;\n metadata.put(\"isOpenlab2\", new Boolean(isOpenlab2));\n \n in.skipBytes(2);\n in.read(er);\n short layerId = DataTools.bytesToShort(er, little);\n metadata.put(\"LayerID\", new Short(layerId));\n \n in.read(er);\n short layerType = DataTools.bytesToShort(er, little);\n metadata.put(\"LayerType\", new Short(layerType));\n \n in.read(er);\n short bitDepth = DataTools.bytesToShort(er, little);\n metadata.put(\"BitDepth\", new Short(bitDepth));\n \n in.read(er);\n short opacity = DataTools.bytesToShort(er, little);\n metadata.put(\"Opacity\", new Short(opacity));\n \n // not sure how many bytes to skip here\n in.skipBytes(10);\n \n in.read(toRead);\n long type = DataTools.bytesToLong(toRead, little);\n metadata.put(\"ImageType\", new Long(type));\n \n // not sure how many bytes to skip\n in.skipBytes(10);\n \n in.read(toRead);\n long timestamp = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Timestamp\", new Long(timestamp));\n \n in.skipBytes(2);\n \n if (isOpenlab2 == true) {\n byte[] layerName = new byte[127];\n in.read(layerName);\n metadata.put(\"LayerName\", new String(layerName));\n \n in.read(toRead);\n long timestampMS = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Timestamp-MS\", new Long(timestampMS));\n \n in.skipBytes(1);\n byte[] notes = new byte[118];\n in.read(notes);\n metadata.put(\"Notes\", new String(notes));\n }\n else in.skipBytes(123);\n }\n else if (tag == 69) {\n in.read(toRead);\n long platform = DataTools.bytesToLong(toRead, little);\n metadata.put(\"Platform\", new Long(platform));\n \n in.read(er);\n short units = DataTools.bytesToShort(er, little);\n metadata.put(\"Units\", new Short(units));\n \n in.read(er);\n short imageId = DataTools.bytesToShort(er, little);\n metadata.put(\"ID\", new Short(imageId));\n in.skipBytes(1);\n \n byte[] toRead2 = new byte[8];\n double xOrigin = DataTools.readDouble(in, little);\n metadata.put(\"XOrigin\", new Double(xOrigin));\n double yOrigin = DataTools.readDouble(in, little);\n metadata.put(\"YOrigin\", new Double(yOrigin));\n double xScale = DataTools.readDouble(in, little);\n metadata.put(\"XScale\", new Double(xScale));\n double yScale = DataTools.readDouble(in, little);\n metadata.put(\"YScale\", new Double(yScale));\n in.skipBytes(1);\n \n byte[] other = new byte[31];\n in.read(other);\n metadata.put(\"Other\", new String(other));\n }\n \n // Initialize OME metadata\n \n if (ome != null) {\n OMETools.setBigEndian(ome, !little);\n if (metadata.get(\"BitDepth\") != null) {\n int bitDepth = ((Integer) metadata.get(\"BitDepth\")).intValue();\n String type;\n \n if (bitDepth <= 8) type = \"int8\";\n else if (bitDepth <= 16) type = \"int16\";\n else type = \"int32\";\n \n OMETools.setPixelType(ome, type);\n }\n if (metadata.get(\"Timestamp\") != null) {\n OMETools.setCreationDate(ome, (String) metadata.get(\"Timestamp\"));\n }\n \n if (metadata.get(\"XOrigin\") != null) {\n Double xOrigin = (Double) metadata.get(\"XOrigin\");\n OMETools.setStageX(ome, xOrigin.floatValue());\n }\n \n if (metadata.get(\"YOrigin\") != null) {\n Double yOrigin = (Double) metadata.get(\"YOrigin\");\n OMETools.setStageY(ome, yOrigin.floatValue());\n }\n \n if (metadata.get(\"XScale\") != null) {\n Double xScale = (Double) metadata.get(\"XScale\");\n OMETools.setPixelSizeX(ome, xScale.floatValue());\n }\n \n if (metadata.get(\"YScale\") != null) {\n Double yScale = (Double) metadata.get(\"YScale\");\n OMETools.setPixelSizeY(ome, yScale.floatValue());\n }\n }\n in.seek(offset);\n }\n }", "public static int size_infos_type() {\n return (16 / 8);\n }", "public int getSize() {\r\n\t\treturn 5; // 1 (code) + 2 (data length) + 2 (branch offset)\r\n\t}", "public int getRecordSize()\n {\n return 4 + 2 + 2 + 2 + 2 + 2 + 2 + 2 + 4;\n }", "@Override\n\tpublic int computeSize() {\n\t\treturn 36;\n\t}", "public static int sizeBits_infos_type() {\n return 16;\n }", "public static int offset_infos_size_data() {\n return (80 / 8);\n }", "public static int totalSize_entries_id() {\n return (176 / 8);\n }", "public static int size_nodeid() {\n return (8 / 8);\n }", "public int getChildCount() { return data.length; }", "public static int elementSize_infos_metadata() {\n return (8 / 8);\n }", "@Override\n public void readFields(DataInput in) throws IOException {\n super.readFields(in);\n\n byte flags = in.readByte();\n hasFooter = (FOOTER_FLAG & flags) != 0;\n isOriginal = (ORIGINAL_FLAG & flags) != 0;\n hasBase = (BASE_FLAG & flags) != 0;\n boolean hasLongFileId = (HAS_LONG_FILEID_FLAG & flags) != 0,\n hasWritableFileId = (HAS_SYNTHETIC_FILEID_FLAG & flags) != 0,\n hasSyntheticProps = (HAS_SYNTHETIC_ACID_PROPS_FLAG & flags) != 0;\n if (hasLongFileId && hasWritableFileId) {\n throw new IOException(\"Invalid split - both file ID types present\");\n }\n\n deltas.clear();\n int numDeltas = in.readInt();\n for(int i=0; i < numDeltas; i++) {\n AcidInputFormat.DeltaMetaData dmd = new AcidInputFormat.DeltaMetaData();\n dmd.readFields(in);\n deltas.add(dmd);\n }\n if (hasFooter) {\n int tailLen = WritableUtils.readVInt(in);\n byte[] tailBuffer = new byte[tailLen];\n in.readFully(tailBuffer);\n OrcProto.FileTail fileTail = OrcProto.FileTail.parseFrom(tailBuffer);\n orcTail = new OrcTail(fileTail, null);\n }\n if (hasLongFileId) {\n fileKey = in.readLong();\n } else if (hasWritableFileId) {\n SyntheticFileId fileId = new SyntheticFileId();\n fileId.readFields(in);\n this.fileKey = fileId;\n }\n fileLen = in.readLong();\n rootDir = new Path(in.readUTF());\n\n if (hasSyntheticProps) {\n long rowId = in.readLong();\n int bucket = in.readInt();\n long writeId = in.readLong();\n\n syntheticAcidProps = new OffsetAndBucketProperty(rowId, bucket, writeId);\n }\n }", "@Override\n public int getWriteUnsafeSize() {\n int total = UnsafeMemory.SIZE_OF_INT +UnsafeMemory.SIZE_OF_LONG;\n\n //fileName and Last\n total+=UnsafeMemory.getWriteUnsafeSize(fileName, UnsafeMemory.STRING_TYPE);\n total+=UnsafeMemory.SIZE_OF_INT;\n\n //arrays\n int debug =UnsafeMemory.getWriteUnsafeSize(nameIndex,UnsafeMemory.ARRAYLIST_STRING_TYPE);\n total+=debug;\n debug+=UnsafeMemory.getWriteUnsafeSize(entries,UnsafeMemory.ARRAYLIST_KID_TYPE);\n total+=debug;\n total+=UnsafeMemory.getWriteUnsafeSize(kingdoms,UnsafeMemory.HASHMAP_INTEGER_CHARACTER_TYPE);\n\n //No longer stored in memory\n //total+=UnsafeMemory.getWriteUnsafeSize(sequences,UnsafeMemory.ARRAYLIST_DNABITSTRING_TYPE);\n\n\n //rocksDbKlueFileName\n total += UnsafeMemory.getWriteUnsafeSize(rocksDbKlueFileName, UnsafeMemory.STRING_TYPE);\n\n //boolean readOnly = false;\n total += UnsafeMemory.SIZE_OF_BOOLEAN;\n\n //ArrayList<Integer> sequenceLength = new ArrayList<Integer>();\n total += UnsafeMemory.getWriteUnsafeSize(sequenceLength, UnsafeMemory.ARRAYLIST_INT_TYPE);\n\n //ArrayList<HashMap<Integer,Character>> exceptionsArr;\n total += UnsafeMemory.SIZE_OF_INT // byte header\n + UnsafeMemory.SIZE_OF_LONG // SerialUID\n + UnsafeMemory.SIZE_OF_INT; // number of entries\n\n for (int z=0; z < exceptionsArr.size(); z++){\n total += UnsafeMemory.getWriteUnsafeSize(exceptionsArr.get(z), UnsafeMemory.HASHMAP_INTEGER_CHARACTER_TYPE);\n }\n\n\n return total;\n }", "@Override\n public int getSize() {\n return nodos.size();\n }", "private String formatSize(long size) {\n\t return Formatter.formatFileSize(this, size);\n\t}", "@MavlinkFieldInfo(\n position = 2,\n unitSize = 4,\n description = \"total data size (set on ACK only).\"\n )\n public final Builder size(long size) {\n this.size = size;\n return this;\n }", "public int getSize(){return this.size;}", "@Override\n public int getSize() {\n return size;\n }", "int getReceivingMinorFragmentIdCount();", "public int serializedSizeInBytes() {\n\t\treturn this.sizeInBytes() + 3 * 4;\n\t}", "@Override\n\tpublic int getSize() {\n\t\treturn size;\n\t}", "@Override\n\tpublic int getSize() {\n\t\treturn size;\n\t}", "public static int offsetBits_infos_size_data() {\n return 80;\n }", "public abstract int getBitSize();", "public void setObjectSize(short size) { this.objectSize=size; }", "private int pack(int size, int sum) {\n return size | (sum << 16);\n }", "@Override // jcifs.smb.SmbComTransactionResponse\n public int readDataWireFormat(byte[] buffer, int bufferIndex, int len) {\n ServerInfo1 e = null;\n this.results = new ServerInfo1[this.numEntries];\n for (int i = 0; i < this.numEntries; i++) {\n FileEntry[] fileEntryArr = this.results;\n e = new ServerInfo1();\n fileEntryArr[i] = e;\n e.name = readString(buffer, bufferIndex, 16, false);\n int bufferIndex2 = bufferIndex + 16;\n int bufferIndex3 = bufferIndex2 + 1;\n e.versionMajor = buffer[bufferIndex2] & 255;\n int bufferIndex4 = bufferIndex3 + 1;\n e.versionMinor = buffer[bufferIndex3] & 255;\n e.type = readInt4(buffer, bufferIndex4);\n int bufferIndex5 = bufferIndex4 + 4;\n int off = readInt4(buffer, bufferIndex5);\n bufferIndex = bufferIndex5 + 4;\n e.commentOrMasterBrowser = readString(buffer, ((65535 & off) - this.converter) + bufferIndex, 48, false);\n LogStream logStream = log;\n if (LogStream.level >= 4) {\n log.println(e);\n }\n }\n this.lastName = this.numEntries == 0 ? null : e.name;\n return bufferIndex - bufferIndex;\n }", "public int getOutputSize(final PemObject obj)\r\n {\r\n // BEGIN and END boundaries.\r\n int size = (2 * (obj.getType().length() + 10 + nlLength)) + 6 + 4;\r\n\r\n if (!obj.getHeaders().isEmpty())\r\n {\r\n for (final Iterator<?> it = obj.getHeaders().iterator(); it.hasNext();)\r\n {\r\n final PemHeader hdr = (PemHeader)it.next();\r\n\r\n size += hdr.getName().length() + \": \".length() + hdr.getValue().length() + nlLength;\r\n }\r\n\r\n size += nlLength;\r\n }\r\n\r\n // base64 encoding\r\n final int dataLen = ((obj.getContent().size() + 2) / 3) * 4;\r\n\r\n size += dataLen + (((dataLen + LINE_LENGTH - 1) / LINE_LENGTH) * nlLength);\r\n\r\n return size;\r\n }", "private void init(int bytesPerId, int bytesPerType, int bytesPerPath) throws IOException {\n this.indexVersion = INDEX_VERSION;\n this.bytesPerId = bytesPerId;\n this.bytesPerType = bytesPerType;\n this.bytesPerPath = bytesPerPath;\n this.bytesPerSlot = bytesPerId + bytesPerType + bytesPerPath;\n this.entries = 0;\n \n logger.info(\"Creating uri index with {} bytes per entry\", bytesPerSlot);\n \n // Write header\n idx.seek(IDX_START_OF_HEADER);\n idx.writeInt(indexVersion);\n idx.writeInt(bytesPerId);\n idx.writeInt(bytesPerType);\n idx.writeInt(bytesPerPath);\n idx.writeLong(slots);\n idx.writeLong(entries);\n \n // If this file used to contain entries, we just null out the rest\n try {\n byte[] bytes = new byte[bytesPerSlot - 2];\n while (idx.getFilePointer() < idx.length()) {\n idx.writeChar('\\n');\n idx.write(bytes);\n }\n } catch (EOFException e) {\n // That's ok, we wanted to write until the very end\n }\n \n logger.debug(\"Uri index created\");\n }", "int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }", "@Override\n public String parenthesize() {\n StringBuilder out = new StringBuilder();\n out.append(\"[\");\n out.append(this.leftChild.parenthesize());\n out.append(\" \");\n out.append(this.oper.getId());\n out.append(\" \");\n out.append(this.rightChild.parenthesize());\n out.append(\"]\");\n return out.toString();\n }", "public int unmarshal(DataInputStream dis) throws Exception\n{\n int uPosition = 0;\n try \n {\n recordType = VariableParameterRecordType.unmarshalEnum(dis);\n uPosition += recordType.getMarshalledSize();\n changeIndicator = EntityVPRecordChangeIndicator.unmarshalEnum(dis);\n uPosition += changeIndicator.getMarshalledSize();\n uPosition += entityType.unmarshal(dis);\n padding = (short)dis.readUnsignedShort();\n uPosition += 2;\n padding1 = dis.readInt();\n uPosition += 4;\n }\n catch(Exception e)\n { \n System.out.println(e); \n }\n return getMarshalledSize();\n}", "public int[] chunkSize(ArrayList<ArrayList<String>> listOfFIDList, int size){\n\t\tint[] chunkInfo = new int[2];\n\t\tint minLength = listOfFIDList.get(0).size();\n\t\tboolean isChunk = false;\n\t\tint numberOfChunks = 0;\n\t\tint chunkSize = 0;\t\n\t\tfor(int i = 0; i < listOfFIDList.size(); i++){ //determine minLength\n\t\t\tif(listOfFIDList.get(i).size() < minLength){\n\t\t\t\tminLength = listOfFIDList.get(i).size();\n\t\t\t}\n\t\t}\t\n\t\tfor(int i = 0; i < listOfFIDList.size(); i++){ //determine individual chunksizes and number of chunks\n\t\t\tint currentSize = listOfFIDList.get(i).size();\n\t\t\tif(currentSize == minLength){\n\t\t\t\tif(!isChunk){\n\t\t\t\t\tnumberOfChunks++;\n\t\t\t\t}\n\t\t\t\tisChunk = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tisChunk = false;\n\t\t\t}\n\t\t\tif(isChunk){\n\t\t\t\tchunkSize++;\n\t\t\t}\n\t\t}\n\t\tchunkInfo[0] = chunkSize;\n\t\tchunkInfo[1] = numberOfChunks;\n\t\t\n\t\treturn chunkInfo;\n\t}", "@Override\n public String toString ()\n {\n return \"\\n SMD \" + this.name + \"\\n Nbr Operations \" + this.operations.size () + \"\\t\" + this.operations + \"\\n Nbr Progress \"\n + this.progress.size () + \"\\t\" + this.progress;\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:55:06.822 -0500\", hash_original_method = \"2D2F8FB9FD0DE4D4C70B238FD2D4C88B\", hash_generated_method = \"CFB81A0992BCD18B37272999971C8572\")\n \npublic ContentLength(int length) {\n super(NAME);\n this.contentLength = Integer.valueOf(length);\n }", "int treeSize() {\n return\n memSize()\n + initializers.listSize()\n + updaters.listSize()\n + (optionalConditionExpression == null ? 0 : getExpression().treeSize())\n + (body == null ? 0 : getBody().treeSize()); }", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "public int getSize();", "private static boolean parseHtcMetaData(final FileChannel fc, final long offset, final long size) throws IOException {\n\n\t int version = 0;\n\t boolean nBitsCheck = true;\n\t long nOffset = 0;\n\t int nSize = 0;\n\n\t byte[] buffer = Util.read(fc, offset, (int)size);\n\t ByteArrayInputStream bis = new ByteArrayInputStream(buffer);\n\n\t version = Util.readInt(bis);;\n\n\t nBitsCheck =Util.readInt(bis)==1? true:false;\n\n\t if(version != 1) {\n\t Log.e(TAG, \"Htc Table version(\"+ version+\") incorrect!! Skip parsing Htc table\");\n\t return true;\n\t }\n\n\t if(nBitsCheck) {\n\t nOffset = Util.readUInt(bis);\n\t }else {\n\t nOffset = Util.readLong(bis);\n\t }\n\n\t nSize = Util.readInt(bis);\n\t \n\t sUSE_32BIT_OFFSET = nBitsCheck;\n\t sHMTA_Offset = nOffset;\n\t sHMTA_Size = nSize;\n\n\t Log.d(TAG, \"version \"+version+\", use32Bits \"+ nBitsCheck);\n\t Log.v(TAG, \"offset \"+nOffset+\", size \" +nSize);\n\n\t bis.close();\n\n\t return true;\n\t }", "public interface CFBConstants\n{\n /** Most files use 512 bytes as their big block size */\n public static final int SMALLER_BIG_BLOCK_SIZE = 0x0200;\n public static final BlockSize SMALLER_BIG_BLOCK_SIZE_DETAILS = new BlockSize(SMALLER_BIG_BLOCK_SIZE, (short)9);\n /** Some use 4096 bytes */\n public static final int LARGER_BIG_BLOCK_SIZE = 0x1000;\n public static final BlockSize LARGER_BIG_BLOCK_SIZE_DETAILS = new BlockSize(LARGER_BIG_BLOCK_SIZE, (short)12);\n\n /** How big a block in the small block stream is. Fixed size */\n public static final int SMALL_BLOCK_SIZE = 0x0040;\n\n /** How big a single property is */\n public static final int PROPERTY_SIZE = 0x0080;\n /** \n * The minimum size of a document before it's stored using \n * Big Blocks (normal streams). Smaller documents go in the \n * Mini Stream (SBAT / Small Blocks)\n */\n public static final int BIG_BLOCK_MINIMUM_DOCUMENT_SIZE = 0x1000;\n\n /** The highest sector number you're allowed, 0xFFFFFFFA */\n public static final int LARGEST_REGULAR_SECTOR_NUMBER = -5;\n\n /** Indicates the sector holds a DIFAT block (0xFFFFFFFC) */\n public static final int DIFAT_SECTOR_BLOCK = -4;\n /** Indicates the sector holds a FAT block (0xFFFFFFFD) */\n public static final int FAT_SECTOR_BLOCK = -3;\n /** Indicates the sector is the end of a chain (0xFFFFFFFE) */\n public static final int END_OF_CHAIN = -2;\n /** Indicates the sector is not used (0xFFFFFFFF) */\n public static final int UNUSED_BLOCK = -1;\n}", "public long getSize()\n {\n return getLong(\"Size\");\n }", "private byte[] buildBytes() {\n byte[] message = new byte[4 + 2 + 2 + 1 + data.getLength()];\n System.arraycopy(id.getBytes(), 0, message, 0, 4);\n System.arraycopy(sq.getBytes(), 0, message, 4, 2);\n System.arraycopy(ack.getBytes(), 0, message, 6, 2);\n message[8] = flag.getBytes();\n System.arraycopy(data.getBytes(), 0, message, 9, data.getBytes().length);\n return message;\n }", "public synchronized long size() {\n return IDX_START_OF_CONTENT + (slots * bytesPerSlot);\n }", "private Values getFlagSizeValObj(String data){\n\t\tdata = data.replaceAll(\"[^0-9.x ]\", \"\");\r\n\t\tString[] values = data.split(\"x\");\r\n\t\tValue valObj1 = getValueObj(values[0].trim(), \"Length\", \"in\");\r\n\t\t Value valObj2 = getValueObj(values[1].trim(), \"Width\", \"in\");\r\n\t\t Values valuesObj = new Values();\r\n\t\t List<Value> listOfValue = new ArrayList<>();\r\n\t\t listOfValue.add(valObj1);\r\n\t\t listOfValue.add(valObj2);\r\n\t\t valuesObj.setValue(listOfValue);\r\n\t\t return valuesObj;\r\n\t}", "public final long getSize() { return size; }", "public long getRecordSize ( ) {\r\n\t\treturn 113;\r\n\t}", "@Override\n public int computeLength()\n {\n if ( matchingRule != null )\n {\n matchingRuleBytes = Strings.getBytesUtf8( matchingRule );\n extensibleMatchLength = 1 + TLV.getNbBytes( matchingRuleBytes.length ) + matchingRuleBytes.length;\n }\n\n if ( type != null )\n {\n typeBytes = Strings.getBytesUtf8( type );\n extensibleMatchLength += 1 + TLV.getNbBytes( typeBytes.length ) + typeBytes.length;\n }\n\n if ( matchValue != null )\n {\n int bytesLength = matchValue.getBytes().length;\n extensibleMatchLength += 1 + TLV.getNbBytes( bytesLength ) + bytesLength;\n }\n\n if ( dnAttributes )\n {\n extensibleMatchLength += 1 + 1 + 1;\n }\n\n return 1 + TLV.getNbBytes( extensibleMatchLength ) + extensibleMatchLength;\n }", "public abstract int getSize();", "public abstract int getSize();", "public abstract int getSize();" ]
[ "0.6039437", "0.5711088", "0.54438424", "0.522676", "0.521441", "0.51858795", "0.5184174", "0.5100071", "0.50691235", "0.5045123", "0.5014533", "0.5003948", "0.4977704", "0.4951168", "0.49435258", "0.49274027", "0.49244505", "0.48909852", "0.4887221", "0.48828268", "0.48596555", "0.485467", "0.48521817", "0.48514545", "0.48486826", "0.48403046", "0.4832214", "0.48007235", "0.4782502", "0.47754347", "0.4770216", "0.47671202", "0.4765644", "0.47566855", "0.47447863", "0.4744111", "0.47408283", "0.47395784", "0.4734848", "0.47311294", "0.47222722", "0.4712811", "0.47123867", "0.47111115", "0.4709583", "0.46818322", "0.46732774", "0.4672243", "0.46613804", "0.46604997", "0.46601608", "0.46564478", "0.4655432", "0.46550825", "0.46528363", "0.4647201", "0.4647076", "0.46465853", "0.4641187", "0.46324423", "0.46298078", "0.46282077", "0.46214423", "0.46214423", "0.4612167", "0.46073803", "0.4605985", "0.46051627", "0.45885986", "0.45724338", "0.4565979", "0.45652145", "0.45636177", "0.45631844", "0.45621884", "0.45558345", "0.45534337", "0.45504284", "0.4547142", "0.4547142", "0.4547142", "0.4547142", "0.4547142", "0.4547142", "0.4547142", "0.4547142", "0.4547142", "0.4547142", "0.4545154", "0.45415634", "0.4529304", "0.452584", "0.45250103", "0.45235187", "0.45195547", "0.45168382", "0.4516044", "0.45124298", "0.45124298", "0.45124298" ]
0.6237201
0
Verify the input is of the required type.
@Override public ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumentException { // Exactly one input argument if( arguments.length != 1 ) { throw new UDFArgumentLengthException(GeoEncodeUDF.class.getSimpleName() + " accepts exactly one argument."); } // Is the input a String if (((PrimitiveObjectInspector)arguments[0]).getPrimitiveCategory() != PrimitiveObjectInspector.PrimitiveCategory.STRING ) { throw new UDFArgumentTypeException(0,"The single argument to " +GeoEncodeUDF.class.getSimpleName() + " should be String but " + arguments[0].getTypeName() + " is found"); } return ObjectInspectorFactory.getStandardListObjectInspector(PrimitiveObjectInspectorFactory.writableFloatObjectInspector); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected boolean checkType(String myType);", "public abstract boolean isTypeCorrect();", "public abstract boolean verifyInput();", "@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}", "private boolean validateType(int type)\n {\n return PSSecurityProvider.isSupportedType(type);\n }", "protected abstract boolean isInputValid();", "public void checkTypeValid(List<Object> types) {\n if(types.size() != inputs.size()) {\n throw new IllegalArgumentException(\"Not matched passed parameter count.\");\n }\n }", "void check()\n {\n checkUsedType(responseType);\n checkUsedType(requestType);\n }", "protected abstract boolean checkInput();", "@Test\n public void testIsTypeOf() throws ValueDoesNotMatchTypeException {\n testTypeKindOf(AnyType.IS_TYPE_OF);\n }", "private boolean isValidInput() {\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean checkInput() {\n\t\treturn true;\n\t}", "private boolean validateType(int type)\n {\n return type >=0 && type < TYPE_ENUM.length;\n }", "public void check()\n {\n typeDec.check();\n }", "protected abstract int isValidInput();", "private static boolean checkType(String type) {\n ParameterHelpers.checkParameter(type, \"type\");\n\n if (type.equals(TYPE_REGISTERED)) {\n return true;\n } else if (type.equals(TYPE_UNREGISTERED)) {\n return false;\n } else {\n throw new IllegalArgumentException(\"type must be 'Registered' or 'Unregistered'\");\n }\n }", "private boolean isInputValid() {\n return true;\n }", "private void validateTypes() {\r\n\t\tfor (int i = 0; i < types.length; i++) {\r\n\t\t\tString type = types[i];\r\n\t\t\tif (!TypedItem.isValidType(type))\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\"The monster type %s is invalid\", type));\r\n\t\t\tfor (int j = i + 1; j < types.length; j++) {\r\n\t\t\t\tif (type.equals(types[j])) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(\"The monster cant have two similar types..\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "private void validateInputParameters(){\n\n }", "@Override\n\tpublic void checkType(final String type) {\n\t\tHttpUtils.checkToken(type,\"Type '%s' is not a valid token\",type);\n\t}", "@Test\n public void testSimpleValidType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(TimestampedEvent.class);\n typeList.add(GenericRecord.class);\n typeList.add(Integer.class);\n typeList.add(Object.class);\n PipelineRegisterer.validateTypes(typeList);\n }", "void validate() {\n assertNotNull(getType(), \"Must set repository type.\");\n assertFalse(getType().trim().isEmpty(), \"Must set repository type.\");\n }", "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();", "@Test\n public void testIsKindOf() throws ValueDoesNotMatchTypeException {\n testTypeKindOf(AnyType.IS_KIND_OF);\n }", "protected abstract boolean isInputValid(@NotNull ConversationContext context, @NotNull String input);", "TypeDescription validated();", "private void validateType(Errors errors, MultiValueConstraints con, String answer) {\n validateMultiValueType(errors, con, answer);\n if (!con.getAllowOther() && !isEnumeratedValue(con, answer)) {\n rejectField(errors, \"constraints\", \"%s is not an enumerated value for this question\", answer);\n }\n }", "private boolean checkTypes(Table thisTable, Hashtable<String, Object> inputColNameValue) throws BPlusEngineException {\n Enumeration<String> colNameValue = inputColNameValue.keys();\n Hashtable<String, String> tableColNameType = thisTable.colNameType;\n while (colNameValue.hasMoreElements()) {\n String currInColName = colNameValue.nextElement();\n String inputType = (String) tableColNameType.get(currInColName);\n Object inObject = inputColNameValue.get(currInColName);\n if (!switchTypes(inputType, inObject)) {\n\t\t\t\treturn false;\n\t\t\t}\n }\n return true;\n }", "public static boolean checkInput(String saInput) {\r\n\t\treturn checkGenericPattern(saInput) && checkGenericPattern(unalter(saInput));\r\n\t}", "@Override\n\tprotected void checkNumberOfInputs(int length) {\n\n\t}", "private void checkUserInput() {\n }", "private void checkTypes(Variable first, Variable second) throws OutmatchingParameterType {\n VariableVerifier.VerifiedTypes firstType = first.getType();\n VariableVerifier.VerifiedTypes secondType = second.getType();\n\n if (!firstType.equals(secondType)) {\n throw new OutmatchingParameterType();\n }\n }", "private void validate() throws BaseException\n {\n boolean okay = true;\n\n //TODO: check the bases in seq for validity\n // If the type is RNA, the base T is not allowed\n // If the type is DNA, the base U is not allowed\n // If a disallowed type is present, set okay to false.\n \n if (!okay)\n {\n throw new BaseException();\n }\n }", "public boolean checkInput();", "private boolean checkInputType(int inputType,int fieldId){\n if(fieldId>0){ //native\n if(inputType==1 || inputType==17 || inputType==65537)return true;\n }else{ //web\n if(inputType==161)return true;\n }\n return false;\n }", "@Override\n public boolean inputIsValid(ParserInput<?> input) {\n return input instanceof TokensParserInput;\n }", "public static <A> void validateInputTypeInfo(TypeInformation<A> typeInfo) {\n Class<A> clazz = typeInfo.getTypeClass();\n if ((clazz.isMemberClass() && !Modifier.isStatic(clazz.getModifiers()))\n || !Modifier.isPublic(clazz.getModifiers())\n || clazz.getCanonicalName() == null) {\n throw new ValidationException(\n format(\n \"Class '%s' described in type information '%s' must be \"\n + \"static and globally accessible.\",\n clazz, typeInfo));\n }\n }", "protected void validateType(StateVariable stateVariable, Class type) throws LocalServiceBindingException {\n/* 306 */ Datatype.Default expectedDefaultMapping = ModelUtil.isStringConvertibleType(getStringConvertibleTypes(), type) ? Datatype.Default.STRING : Datatype.Default.getByJavaType(type);\n/* */ \n/* 308 */ log.finer(\"Expecting '\" + stateVariable + \"' to match default mapping: \" + expectedDefaultMapping);\n/* */ \n/* 310 */ if (expectedDefaultMapping != null && \n/* 311 */ !stateVariable.getTypeDetails().getDatatype().isHandlingJavaType(expectedDefaultMapping.getJavaType()))\n/* */ {\n/* */ \n/* 314 */ throw new LocalServiceBindingException(\"State variable '\" + stateVariable + \"' datatype can't handle action \" + \"argument's Java type (change one): \" + expectedDefaultMapping\n/* */ \n/* 316 */ .getJavaType());\n/* */ }\n/* */ \n/* 319 */ if (expectedDefaultMapping == null && stateVariable.getTypeDetails().getDatatype().getBuiltin() != null) {\n/* 320 */ throw new LocalServiceBindingException(\"State variable '\" + stateVariable + \"' should be custom datatype \" + \"(action argument type is unknown Java type): \" + type\n/* */ \n/* 322 */ .getSimpleName());\n/* */ }\n/* */ \n/* */ \n/* 326 */ log.finer(\"State variable matches required argument datatype (or can't be validated because it is custom)\");\n/* */ }", "private boolean isType(String type, Object value) {\n boolean ret = false;\n String val = String.valueOf(value).toUpperCase();\n if (val.equals(\"NULL\")) {\n ret = true;\n } else if (val.contains(\"BASE64\")) {\n ret = true;\n } else {\n if (type.equals(\"NULL\") && value instanceof JSONObject) ret = true;\n if (type.equals(\"TEXT\") && value instanceof String) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Integer) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Long) ret = true;\n if (type.equals(\"REAL\") && value instanceof Float) ret = true;\n if (type.equals(\"BLOB\") && value instanceof Blob) ret = true;\n }\n return ret;\n }", "void validate(T object);", "abstract public boolean isTyped();", "public abstract boolean isTypeOf(ItemType type);", "protected int check(int type) {\n\t\tif (type < 0 || type > 127)\n\t\t\tthrow new IllegalArgumentException(\"invalid.ASTNode.type: \" + type);\n\t\treturn type;\n\t}", "private void checkType(V value) {\n valueClass.cast(value);\n }", "public Verification verifySubtypeOf(Type type, String meaningThisType, String meaningOtherType, Element cause);", "private void assertType(String snippet, Class<? extends Object> type) {\n try {\n Lexer lexer = new Lexer(new StringReader(snippet));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getRight().getClass() == type);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }", "public abstract void validate(String value) throws DatatypeException;", "private boolean check(TokenType type) {\n return !isAtEnd() && peek().type == type;\n }", "public void test_getType() {\n assertEquals(\"'type' value should be properly retrieved.\", type, instance.getType());\n }", "private static boolean expectedInterfaceType(Expr e) {\n \t\treturn e.attrExpectedTyp() instanceof PscriptTypeInterface || e.attrExpectedTyp() instanceof PscriptTypeTypeParam;\n \t}", "public void validate() throws org.apache.thrift.TException {\n if (type != null) {\n type.validate();\n }\n if (returnType != null) {\n returnType.validate();\n }\n }", "@Override\n protected void validateResponseTypeParameter(String responseType, AuthorizationEndpointRequest request) {\n }", "protected boolean isValidInput(Object element) {\r\n\t\treturn element instanceof IRubyModel;\r\n\t}", "public void testInvalidNoType() { assertInvalid(\"a\"); }", "public boolean typeCheck(){\n\treturn myDeclList.typeCheck();\n }", "protected void validateValue(T value) {\n }", "@Test\n public void reqTypeTest() {\n // TODO: test reqType\n }", "private void checkArgTypes() {\n Parameter[] methodParams = method.getParameters();\n if(methodParams.length != arguments.length + 1) {\n throw new InvalidCommandException(\"Incorrect number of arguments on command method. Commands must have 1 argument for the sender and one argument per annotated argument\");\n }\n\n Class<?> firstParamType = methodParams[0].getType();\n\n boolean isFirstArgValid = true;\n if(requiresPlayer) {\n if(firstParamType.isAssignableFrom(IPlayerData.class)) {\n usePlayerData = true; // Command methods annotated with a player requirement can also use IPlayerData as their first argument\n } else if(!firstParamType.isAssignableFrom(Player.class)) {\n isFirstArgValid = false; // Otherwise, set it to invalid if we can't assign it from a player\n }\n } else if(!firstParamType.isAssignableFrom(CommandSender.class)) { // Non player requirement annotated commands must just take a CommandSender\n isFirstArgValid = false;\n }\n\n if(!isFirstArgValid) {\n throw new InvalidCommandException(\"The first argument for a command must be a CommandSender. (or a Player/IPlayerData if annotated with a player requirement)\");\n }\n }", "void checkColumnType(\n String sql,\n String expected);", "@Override\n public boolean isTipoValido() {\n return true;\n }" ]
[ "0.71539646", "0.6801581", "0.67622554", "0.67322046", "0.6511555", "0.65103924", "0.64481336", "0.63712776", "0.63221824", "0.6311833", "0.6287503", "0.62643653", "0.62395334", "0.6235314", "0.6208965", "0.6175018", "0.6110196", "0.60875535", "0.6039555", "0.6032659", "0.6027052", "0.602021", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6018519", "0.6016943", "0.5976452", "0.59191895", "0.5903908", "0.5885711", "0.58762646", "0.58584493", "0.5840266", "0.5829234", "0.58277446", "0.58252794", "0.58219737", "0.5797968", "0.57700163", "0.57632786", "0.57482666", "0.572711", "0.5723644", "0.57224476", "0.5718805", "0.5715611", "0.5669778", "0.56609875", "0.5634865", "0.5634051", "0.56044286", "0.5590379", "0.5583678", "0.55803275", "0.55707645", "0.5570683", "0.5570545", "0.55702865", "0.55668336", "0.55659467", "0.5562051", "0.5559979" ]
0.0
-1
Should be exactly one argument
@Override public Object evaluate(DeferredObject[] arguments) throws HiveException { if( arguments.length!=1 && arguments.length!=2 ) { return null; } // If passed a null, return a null if( arguments[0].get()==null ) { return null; } // System.out.println("arguments[0].toString() is " + arguments[0].toString()); // System.out.println("arguments[0] is " + arguments[0].get()); Float[] tmpLatLng = GeoLatLng.getLatLng(arguments[0].get().toString(), arguments[1] != null ? arguments[1].get().toString() : ""); // System.out.println("LatLong are " + tmpLatLng[0] + "#" + tmpLatLng[1]); ArrayList<FloatWritable> result = new ArrayList<FloatWritable>(); if (tmpLatLng != null && tmpLatLng[0] != null && tmpLatLng[1] != null) { result.add(new FloatWritable(tmpLatLng[0])); result.add(new FloatWritable(tmpLatLng[1])); } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public boolean argsNotFull();", "@Override\n public int getNumberArguments() {\n return 1;\n }", "static Boolean verifyArguments(String[] args)\n {\n if (args.length < 2)\n {\n return false;\n }\n \n return true;\n }", "private void checkArgTypes() {\n Parameter[] methodParams = method.getParameters();\n if(methodParams.length != arguments.length + 1) {\n throw new InvalidCommandException(\"Incorrect number of arguments on command method. Commands must have 1 argument for the sender and one argument per annotated argument\");\n }\n\n Class<?> firstParamType = methodParams[0].getType();\n\n boolean isFirstArgValid = true;\n if(requiresPlayer) {\n if(firstParamType.isAssignableFrom(IPlayerData.class)) {\n usePlayerData = true; // Command methods annotated with a player requirement can also use IPlayerData as their first argument\n } else if(!firstParamType.isAssignableFrom(Player.class)) {\n isFirstArgValid = false; // Otherwise, set it to invalid if we can't assign it from a player\n }\n } else if(!firstParamType.isAssignableFrom(CommandSender.class)) { // Non player requirement annotated commands must just take a CommandSender\n isFirstArgValid = false;\n }\n\n if(!isFirstArgValid) {\n throw new InvalidCommandException(\"The first argument for a command must be a CommandSender. (or a Player/IPlayerData if annotated with a player requirement)\");\n }\n }", "AstroArg empty();", "@Override\r\n\tpublic String getFirstArg() {\n\t\treturn null;\r\n\t}", "@Override\n public void verifyArgs(ArrayList<String> args) throws ArgumentFormatException {\n super.checkNumArgs(args);\n _args = true;\n }", "private static void checkArg(Object s) {\n if (s == null) {\n throw new NullPointerException(\"Argument must not be null\");\n }\n }", "public abstract ValidationResults validArguments(String[] arguments);", "private void argumentChecker(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tif (args.length != 2) {\n\t\t\tSystem.out.println(\"Invalid arguments. \\nExpected:\\tDriver inputFile.txt outputFile.txt\");\n\t\t}\n\t}", "private static void checkNumOfArguments(String[] args) throws IllegalArgumentException{\n\t\ttry{\n\t\t\tif(args.length != App.numberOfExpectedArguments ) {\t\n\t\t\t\tthrow new IllegalArgumentException(\"Expected \" + App.numberOfExpectedArguments + \" arguments but received \" + args.length);\n\t\t\t}\n }\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\texitArgumentError();\n\t\t}\n\t\t\n\t}", "private void checkForEmptyLine() throws OutmatchingParametersToMethodCall {\n if (this.params.isEmpty() && method.getParamAmount() != 0) {\n throw new OutmatchingParametersToMethodCall();\n } else if (method.getParamAmount() == 0 && !this.params.isEmpty()) {\n throw new OutmatchingParametersToMethodCall();\n }\n }", "public void testValidateArgs() {\n\t\tString[] args = new String[]{\"name\",\"bob\",\"jones\"};\n\t\ttry {\n\t\t\tnew HasAttributeWithValueContains(args);\n\t\t\tfail(\"An InvalidFunctionArguements exception should have been thrown by the constructor!\");\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tassertTrue(ifa.getMessage().contains(\"HasAttributeWithValueContains takes exactly 2 arguments.\"));\n\t\t}\n\t\t\n\t\t//test with 1 argument, should fail\n\t\targs = new String[]{\"name\"};\n\t\ttry {\n\t\t\tnew HasAttributeWithValueContains(args);\n\t\t\tfail(\"An InvalidFunctionArguements exception should have been thrown by the constructor!\");\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tassertTrue(ifa.getMessage().contains(\"HasAttributeWithValueContains takes exactly 2 arguments.\"));\n\t\t}\n\t\t\n\t\t//test with 0 arguments, should be a problem\n\t\targs = new String[]{};\n\t\ttry {\n\t\t\tnew HasAttributeWithValueContains(args);\n\t\t\tfail(\"An InvalidFunctionArguements exception should have been thrown by the constructor!\");\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tassertTrue(ifa.getMessage().contains(\"HasAttributeWithValueContains takes exactly 2 arguments.\"));\n\t\t}\n\t\t\n\t\t//test with null arguments, should be a problem\n\t\ttry {\n\t\t\tnew HasAttributeWithValueContains(args);\n\t\t\tfail(\"An InvalidFunctionArguements exception should have been thrown by the constructor!\");\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tassertTrue(ifa.getMessage().contains(\"HasAttributeWithValueContains takes exactly 2 arguments.\"));\n\t\t}\n\t\t\n\t\t//test with correct arguments, first one is zero, should work\n\t\targs = new String[]{\"name\",\"bob\"};\n\t\ttry {\n\t\t\tnew HasAttributeWithValueContains(args);\n\t\t} catch (InvalidFunctionArguments ifa) {\n\t\t\tfail(\"An InvalidFunctionArguements exception should have NOT been thrown by the constructor!\");\n\t\t}\n\t}", "private static void checkArg(Object paramObject) {\n/* 687 */ if (paramObject == null)\n/* 688 */ throw new NullPointerException(\"Argument must not be null\"); \n/* */ }", "private void validateInputParameters(){\n\n }", "@Override\n protected boolean hasValidNumberOfArguments(int numberOfParametersEntered) {\n return numberOfParametersEntered == 3;\n }", "@Test\n public void testArguments() {\n System.out.println(\"arguments\");\n assertThat(Arguments.valueOf(\"d\"), is(notNullValue()));\n assertThat(Arguments.valueOf(\"i\"), is(notNullValue()));\n assertThat(Arguments.valueOf(\"num\"), is(notNullValue()));\n }", "@Override\r\n\tpublic int getSecondArg() {\n\t\treturn 0;\r\n\t}", "@Test\n public void testWithEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"\");\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "private void checkMandatoryArguments() throws ArgBoxException {\n\t\tfinal List<String> errors = registeredArguments.stream()\n\t\t\t\t.filter(arg -> arg.isMandatory())\n\t\t\t\t.filter(arg -> !parsedArguments.containsKey(arg))\n\t\t\t\t.map(arg -> String.format(\"The argument %1s is required !\", arg.getLongCall()))\n\t\t\t\t.collect(Collectors.toList());\n\t\tthrowException(() -> !errors.isEmpty(), getArgBoxExceptionSupplier(\"Some arguments are missing !\", errors));\n\t}", "protected static boolean ensureNumArgs( String param[], int n ) {\n\t\tif ( n >= 0 && param.length != n || n < 0 && param.length < -n ) {\n\t\t\tSystem.err.println( \"Wrong number (\" + param.length + \") of arguments.\" );\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public MissingArgumentException() {\n super(\"No Arguments Provided.\");\n }", "private static void verifyArgs()\r\n\t{\r\n\t\tif(goFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GO file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(annotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input annotation file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(goSlimFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an input GOslim file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t\tif(slimAnnotFile == null)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error: you must specify an output file.\");\r\n\t\t\texitError();\r\n\t\t}\r\n\t}", "private static void checkPassedInArguments(String[] args, EquationManipulator manipulator) {\n // Convert arguments to a String\n StringBuilder builder = new StringBuilder();\n for (String argument: args) {\n builder.append(argument + \" \");\n }\n \n // check if equation is valid\n String[] equation = manipulator.getEquation(builder.toString());\n if (equation.length == 0) {\n // unable to parse passed in arguments\n printErrorMessage();\n handleUserInput(manipulator);\n } else {\n // arguments were passed in correctly\n System.out.println(\"Wohoo! It looks like everything was passed in correctly!\"\n + \"\\nYour equation is: \" + builder.toString() + \"\\n\");\n handleArguments(equation, manipulator);\n }\n }", "@Override\r\n public String getFirstArg() {\n return name;\r\n }", "public ArgumentChecker(String word) {\n\n if (word.isEmpty() || word == null) {\n throw new IllegalArgumentException();\n }\n }", "@Test\n\tpublic void argumentTest() {\n\t\tSelectionController selectionController = new SelectionController();\n\t\ttry {\n\t\t\tselectionController.select(null);\n\t\t\tAssert.fail(\"The new selection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t\ttry {\n\t\t\tselectionController.unselect(null);\n\t\t\tAssert.fail(\"The new unselection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\n\t\ttry {\n\t\t\tselectionController.reselect(null);\n\t\t\tAssert.fail(\"The new reselection was null\");\n\t\t} catch (NullPointerException e) {\n\t\t}\n\t}", "@Override\n public int getArgLength() {\n return 4;\n }", "@Test\r\n public void testTooFewArgs() {\r\n String[] str = {\"curl\"};\r\n\r\n curl.run(str);\r\n assertTrue(ErrorHandler.checkIfErrorOccurred());\r\n assertEquals(\"not enough arguments\\n\", Output.getLastPrinted());\r\n }", "public boolean hasValidArgs() {\r\n // if it has has zero argument, it is valid\r\n boolean zeroArgs = this.getCmd().getArguments().size() == 0;\r\n // return the boolean value\r\n return zeroArgs;\r\n }", "public void checkParameters() {\n }", "@Override\n public final int parseArguments(Parameters params) {\n return 1;\n }", "boolean isVarargs();", "boolean isVarargs();", "boolean isVarargs();", "Optional<String[]> arguments();", "public ArgumentException() {\n super(\"Wrong arguments passed to function\");\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 }", "protected boolean requireArgument(Node node, int idx, String argName)\n {\n if (!hasArgument(node, idx)) {\n rsvc.error(\"#\" + getName() + \"() error : \" + argName + \" argument required\");\n return false;\n }\n return true;\n }", "public static boolean isValid(String args[]){\n \n if(args.length < 2){\n System.out.println(\"Not enough arguments detected. Please enter two\"\n + \" integer arguments.\");\n return false;\n }\n \n Scanner scanin = new Scanner(args[0]);\n Scanner scanin2 = new Scanner(args[1]);\n\t \n if(!scanin.hasNextInt() || !scanin2.hasNextInt()){\n System.out.println(\"Invalid argument type detected. Please enter two\"\n + \" integer arguments.\");\n return false;\n }\n\t else\n return true;\n }", "@Test(expectedExceptions=InvalidArgumentValueException.class)\n public void argumentValidationTest() {\n String[] commandLine = new String[] {\"--value\",\"521\"};\n\n parsingEngine.addArgumentSource( ValidatingArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n ValidatingArgProvider argProvider = new ValidatingArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.value.intValue(), 521, \"Argument is not correctly initialized\");\n\n // Try some invalid arguments\n commandLine = new String[] {\"--value\",\"foo\"};\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n }", "@Test\n public void testWithNonEmptyString() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(\"test\");\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "@Test(expectedExceptions=ArgumentsAreMutuallyExclusiveException.class)\n public void mutuallyExclusiveArgumentsTest() {\n String[] commandLine = new String[] {\"--foo\",\"5\"};\n\n parsingEngine.addArgumentSource( MutuallyExclusiveArgProvider.class );\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n\n MutuallyExclusiveArgProvider argProvider = new MutuallyExclusiveArgProvider();\n parsingEngine.loadArgumentsIntoObject( argProvider );\n\n Assert.assertEquals(argProvider.foo.intValue(), 5, \"Argument is not correctly initialized\");\n\n // But when foo and bar come together, danger!\n commandLine = new String[] {\"--foo\",\"5\",\"--bar\",\"6\"};\n\n parsingEngine.parse( commandLine );\n parsingEngine.validate();\n }", "@Test\r\n\tpublic void testNoArg() {\r\n\t\tAssert.assertEquals(\"test[]\", new FunctionImpl.FunctionBuilderImpl(\"test\").build().toQ());\r\n\t}", "public login_1_argument() {\n }", "private void checkArguments(ArrayList<String> applicationArguments) throws JshException {\n if (applicationArguments.size() > 1) {\n throw new JshException(\"history: too many arguments\");\n }\n }", "private static void validateInputArguments(String args[]) {\n\n\t\tif (args == null || args.length != 2) {\n\t\t\tthrow new InvalidParameterException(\"invalid Parameters\");\n\t\t}\n\n\t\tString dfaFileName = args[DFA_FILE_ARGS_INDEX];\n\t\tif (dfaFileName == null || dfaFileName.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(\"Invalid file name\");\n\t\t}\n\n\t\tString delimiter = args[DELIMITER_SYMBOL_ARGS_INDEX];\n\t\tif (delimiter == null || delimiter.trim().isEmpty()) {\n\t\t\tthrow new InvalidParameterException(\"Invalid delimiter symbol\");\n\t\t}\n\t}", "Boolean isPassed();", "@Test\r\n public void testCheckInput() throws Exception {\r\n System.out.println(\"checkInput\");\r\n System.out.println(\"test1\");\r\n String[] arguments = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\",\"6\"};\r\n CommandLineArgumentParser instance =new CommandLineArgumentParser(arguments);\r\n String expResult = \"correct\";\r\n String result = instance.checkInput(arguments);\r\n assertEquals(expResult, result);\r\n \r\n System.out.println(\"test 2\");\r\n String[] arguments2 = {\"1k\",\"test.txt\",\"1\"};\r\n String expResult2 = \"correct\";\r\n String result2 = instance.checkInput(arguments2);\r\n assertEquals(expResult2, result2);\r\n \r\n System.out.println(\"test 3\");\r\n String[] arguments3 = {\"chat.txt\"};\r\n String expResult3 = \"correct\";\r\n String result3 = instance.checkInput(arguments3);\r\n assertEquals(expResult3, result3);\r\n \r\n System.out.println(\"test 4\");\r\n String[] arguments4 = {\"1k2h3u\",\"test.txt\",\"1\",\"2\",\"3\",\"4\",\"5\"};\r\n String expResult4 = \"Incorrect number of arguments\";\r\n String result4 = instance.checkInput(arguments4);\r\n assertEquals(expResult4, result4);\r\n \r\n System.out.println(\"test 5\");\r\n String[] arguments5 = {};\r\n String expResult5 = \"Need at least one argument with input file path\";\r\n String result5 = instance.checkInput(arguments5);\r\n assertEquals(expResult5, result5);\r\n }", "@Test(expected = IllegalArgumentException.class)\n public void testArgumentsNotHaveAValue() {\n System.out.println(\"Arguments do not have n\");\n assertThat(Arguments.valueOf(\"n\"), is(nullValue()));\n }", "public ArgumentChecker(String[] words) {\n\n if (words.length < 1 || words == null) {\n throw new IllegalArgumentException();\n }\n for (String word : words) {\n if (word.isEmpty() || word == null) {\n throw new IllegalArgumentException();\n }\n }\n }", "@Override\r\n public boolean isValidParameterCount(int parameterCount) {\n return parameterCount> 0;\r\n }", "@Override\n public ValidationResults validArguments(String[] arguments) {\n final int MANDATORY_NUM_OF_ARGUMENTS = 1;\n if (arguments.length == MANDATORY_NUM_OF_ARGUMENTS) {\n // Check if CommandMAN was called on itself (Checker doesn't need to\n // validate CommandMAN twice).\n if (arguments[0].equals(this.getCommandName())) {\n this.toDocument = this; // man will document itself.\n } else {\n // Man will document this command object.\n try {\n this.toDocument = Checker.getCommand(arguments[0], true);\n } catch (Exception ex) {\n return new ValidationResults(false, \"No manual entry for \"\n + arguments[0]); // CMD does not exist.\n }\n }\n return new ValidationResults(true, null);\n }\n return new ValidationResults(false, \"Requires \"\n + MANDATORY_NUM_OF_ARGUMENTS + \" argument.\");\n }", "private void validateParameters() {\r\n if (command == null) {\r\n throw new BuildException(\r\n \"'command' parameter should not be null for coverity task.\");\r\n }\r\n\r\n }", "protected void reportWrongNumberArgs() throws WrongNumberArgsException {\n/* 90 */ throw new WrongNumberArgsException(XSLMessages.createXPATHMessage(\"gtone\", null));\n/* */ }", "public boolean takesArgument() {\n if (argumentPresence != null) {\n return true;\n }\n return false;\n }", "public void testGetInputArguments() {\n List<String> args = mb.getInputArguments();\n assertNotNull(args);\n for (String string : args) {\n assertNotNull(string);\n assertTrue(string.length() > 0);\n }\n }", "private static void checkCmdArgs(int numberOfArgs, String[] args) {\n\t\tif (args.length != numberOfArgs) {\n\t\t\tSystem.out.println(\"Wrong number of command line arguments!\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t}", "@Test\n public void testWithNonEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(Arrays.asList(\"test\"));\n function.run(parameters);\n assertEquals(FALSE, parameters.pop());\n }", "public void testCheckArray_NullInArg() {\n Object[] objects = new Object[] {\"one\", null};\n try {\n Util.checkArray(objects, \"test\");\n fail(\"IllegalArgumentException expected.\");\n } catch (IllegalArgumentException iae) {\n //good\n }\n }", "@Test\n public void testWithEmptyList() throws org.nfunk.jep.ParseException\n {\n Stack<Object> parameters = CollectionsUtils.newParametersStack(new ArrayList<String>());\n function.run(parameters);\n assertEquals(TRUE, parameters.pop());\n }", "public void assertArgument(T argument, Collection<T> premises);", "@Test\n public void wrongArgumentsReturnsNullAndPrintsMessage() {\n String[] inputArgs = new String[] {\"-i\", \"/path/\"};\n ArgumentReader sut = new ArgumentReader(inputArgs);\n\n Arguments args = sut.read();\n\n assertThat(args, nullValue());\n assertThat(errContent.toString(), containsString(\"must be provided!\"));\n assertThat(errContent.toString(), containsString(\"Usage:\"));\n }", "public void checkNumberArgs(int argNum) throws WrongNumberArgsException {\n/* 79 */ if (argNum < 2) {\n/* 80 */ reportWrongNumberArgs();\n/* */ }\n/* */ }", "@Override\n public void validateArgs(String[] args, ArgsValidation check) throws ArgsException\n {\n try\n {\n check.validateTwoArgs(args);\n }\n catch(ArgsException exception)\n {\n throw exception;\n }\n }", "protected void validateParameter(String... param) throws NavigationException {\r\n\t\tif (param.length > 0){\r\n\t\t\tfor(int i = 0; i < param.length; i++){\r\n\t\t\t\tif (param[i] != null && param[i].isEmpty()) {\r\n\t\t\t\t\tthrow new NavigationException(\"parametro no enviado\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test(expected = MissingArgumentException.class)\n\tpublic void testMainEmptyParameters() throws Exception {\n\t\tString[] arguments = new String[0];\n\t\tAutomaticMowerMain.main(arguments);\n\t}", "private static Stream<Arguments> shouldReturnFailureWhenActualContainsAtLeastOneGivenValueSource() {\n return Stream.of(\n Arguments.of((Object) MoreArrays.array(Maps.entry(\"hello\", \"world\"))),\n Arguments.of((Object) MoreArrays.array(Maps.entry(\"name\", \"sean\"), Maps.entry(\"foo\", \"bar\")))\n );\n }", "private void improperArgumentCheck(Point[] points) {\n int N = points.length;\n for (int i = 0; i < N; i++) {\n if (null == points[i])\n throw new NullPointerException();\n }\n\n Arrays.sort(points);\n for (int i = 1; i < N; i++) {\n if (points[i-1].equals(points[i]))\n throw new IllegalArgumentException();\n }\n }", "@Override\n public String execute(String argument) {\n try {\n if (!argument.isEmpty()) {\n throw new WrongArgumentException();\n }\n\n System.out.println(\"Программа успешно завершена!\");\n System.exit(0);\n } catch (WrongArgumentException e) {\n System.out.println(\"Используйте: '\" + getName() + \"'\");\n } catch (Exception e) {\n System.out.println(\"Что-то пошло не так. Повторите ввод.\");\n }\n return argument;\n }", "private boolean isValidQuestionsArgument(ArrayList<String> argArray) {\n boolean isValid = true;\n if (argArray.size() != ADD_NOTE_ARGUMENTS) {\n TerminusLogger.warning(String.format(\"Failed to find %d arguments: %d arguments found\",\n ADD_NOTE_ARGUMENTS, argArray.size()));\n isValid = false;\n } else if (CommonUtils.hasEmptyString(argArray)) {\n TerminusLogger.warning(\"Failed to parse arguments: some arguments found is empty\");\n isValid = false;\n }\n return isValid;\n }", "@Test\r\n public void testTooManyArgs() {\r\n String[] str = {\"curl\", \"http://www.cs.cmu.edu/~spok/grimmtmp/073.txt\", \r\n \"http://omarmateen.me/experience.html\"};\r\n\r\n curl.run(str);\r\n assertTrue(ErrorHandler.checkIfErrorOccurred());\r\n assertEquals(\"too many arguments\\n\", Output.getLastPrinted());\r\n }", "private Arguments validateAndReturnType(String[] arguments) {\n\t\tif(arguments == null || arguments.length == 0 || arguments.length > 3)\n \t\treturn Arguments.INVALID;\n\t\tString arg1 = arguments[0].toLowerCase();\n\t\tif(arg1.equals(\"increase\") || arg1.equals(\"reduce\") || arg1.equals(\"inrange\")){\n\t\t\tif(arguments.length != 3)\n\t\t\t\treturn Arguments.INVALID;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(arg1.equals(\"increase\"))\n\t\t\t\t\treturn Arguments.INCREASE;\n\t\t\t\telse if(arg1.equals(\"reduce\"))\n\t\t\t\t\treturn Arguments.REDUCE;\n\t\t\t\telse if(arg1.equals(\"inrange\"))\n\t\t\t\t\treturn Arguments.INRANGE;\n\t\t\t}\n\t\t} else if(arg1.equals(\"next\") || arg1.equals(\"previous\") || arg1.equals(\"count\")) {\n\t\t\tif(arguments.length != 2)\n\t\t\t\treturn Arguments.INVALID;\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(arg1.equals(\"next\"))\n\t\t\t\t\treturn Arguments.NEXT;\n\t\t\t\telse if(arg1.equals(\"previous\"))\n\t\t\t\t\treturn Arguments.PREVIOUS;\n\t\t\t\telse if(arg1.equals(\"count\"))\n\t\t\t\t\treturn Arguments.COUNT;\n\t\t\t}\n\t\t} else if(arg1.equals(\"quit\")) {\n\t\t\treturn Arguments.QUIT;\n\t\t} else\n\t\t\treturn Arguments.INVALID;\n\t\t\t\n\t\treturn null;\n\t}", "protected boolean hasArgument(Node node, int idx)\n {\n return idx < node.jjtGetNumChildren();\n }", "boolean hasParameters();", "@Override\n\tpublic void one() {\n\t\t\n\t}", "private boolean validateArguments() {\n return !isEmpty(getWsConfig()) && !isEmpty(getVirtualServer()) && !isEmpty(getVirtualServer()) && !isEmpty(getAppContext()) && !isEmpty(getWarFile()) && !isEmpty(getUser()) && !isEmpty(getPwdLocation());\n }", "private static boolean validateInput1(String[] input) {\n\t\tif (input.length != 1) {\n\t\t\tSystem.out.println(ErrorType.UNKNOWN_COMMAND);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "protected void validateFact(Fact[] param) {\r\n\r\n }", "public ArgumentChecker(String[] titles, String[] words) {\n for (String word : words) {\n if (word.isEmpty() || word == null) {\n throw new IllegalArgumentException();\n }\n }\n for (String title: titles) {\n if (title.length() < 1 || title == null) {\n throw new IllegalArgumentException();\n }\n }\n }", "@Override\n\tpublic void handleArgument(ArrayList<String> argument) {\n\t\t\n\t}", "private void assertReflexive(UMLMessageArgument msgArg) throws Exception\r\n\t{\r\n\t\tif(msgArg!=null)\r\n\t\t\tassertTrue(msgArg.equals(msgArg));\r\n\t}", "public void testOneOrMoreParameters() {\n int nrParameters = methodToTest.getParameterTypes().length;\n Class[] params = methodToTest.getParameterTypes();\n Object[] foo = new Object[nrParameters];\n \n // set up all parameters. Some methods are invoked with\n // primitives or collections, so we need to create them\n // accordingly\n for (int i = 0; i < nrParameters; i++) {\n try {\n if (params[i].isPrimitive()) {\n String primitiveName = params[i]\n .getName();\n if (primitiveName.equals(\"int\")) {\n foo[i] = Integer.valueOf(0);\n }\n if (primitiveName.equals(\"boolean\")) {\n foo[i] = Boolean.TRUE;\n }\n if (primitiveName.equals(\"short\")) {\n foo[i] = new Short(\"0\");\n }\n } else if (params[i].getName().equals(\"java.util.Collection\")) {\n foo[i] = new ArrayList();\n } else {\n /*\n * this call could easily fall if there is e.g. no public\n * default constructor. If it fails tweak the if/else tree\n * above to accommodate the parameter or check if we need to\n * test the particular method at all.\n */\n foo[i] = params[i].newInstance();\n }\n } catch (InstantiationException e) {\n fail(\"Cannot create an instance of : \"\n + params[i].getName()\n + \", required for \"\n + methodToTest.getName()\n + \". Check if \"\n + \"test needs reworking.\");\n } catch (IllegalAccessException il) {\n fail(\"Illegal Access to : \"\n + params[i].getName());\n }\n }\n \n try {\n methodToTest.invoke(facade, foo);\n fail(methodToTest.getName()\n + \" does not deliver an IllegalArgumentException\");\n } catch (InvocationTargetException e) {\n if (e.getTargetException() instanceof IllegalArgumentException \n || e.getTargetException() instanceof ClassCastException\n || e.getTargetException() instanceof NotImplementedException) {\n return;\n }\n fail(\"Test failed for \" + methodToTest.toString()\n + \" because of: \"\n + e.getTargetException());\n } catch (NotImplementedException e) {\n // If method not supported ignore failure\n } catch (Exception e) {\n fail(\"Test failed for \" + methodToTest.toString()\n + \" because of: \" + e.toString());\n }\n }", "public void testConstructorA1() {\r\n try {\r\n new BidUpdateHandler(\" \", \"bidId\", \"maxAmount\");\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }", "@Test public void gracefullyEndsForEmptyInputs() {\n\t\tAssert.assertNotNull(parser.parse(new String[0], new CliOptions()));\n\t}", "@Test\n public void testValidateParams() {\n String[] params;\n\n // valid params - just the application name\n params = new String[]{\"Application\"};\n instance.validateParams(params);\n\n // valid params - extra junk\n params = new String[]{\"Application\", \"Other\", \"Other\"};\n instance.validateParams(params);\n\n // invalid params - empty\n params = new String[0];\n try {\n instance.validateParams(params);\n fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ex) {\n // expected\n }\n\n // invalid params - null first param\n params = new String[]{null};\n try {\n instance.validateParams(params);\n fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ex) {\n // expected\n }\n\n // invalid params - empty string\n params = new String[]{\"\"};\n try {\n instance.validateParams(params);\n fail(\"Expected IllegalArgumentException\");\n } catch (IllegalArgumentException ex) {\n // expected\n }\n }", "@Test\n public void noneNullArgumentIsNullTest() throws GeneralException {\n for (String noneNullArgument : SAMLCorrelationRule.NONE_NULL_ARGUMENTS_NAME) {\n\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(noneNullArgument);\n\n assertThrows(GeneralException.class, () -> testRule.execute(testRuleContext));\n verify(testRule).internalValidation(eq(testRuleContext));\n verify(testRule, never()).internalExecute(eq(testRuleContext), any());\n }\n }", "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 }", "protected void validateAttenuator(int[] param) {\n }", "@Test\n public void Q_IsFoundAny_ArgumentNullExceptionExpected() {\n exception.expect(IllegalArgumentException.class);\n\n ArrayList<QMock> mocks = null;\n new Q<QMock>(mocks);\n }", "@Override\n\tpublic void validate(Object arg0, Errors arg1) {\n\n\t}", "int getArgsCount();", "int getArgsCount();", "int getArgsCount();", "int getArgsCount();", "int getArgsCount();", "static void missingRequiredArg(String argName) {\n throw new IllegalArgumentException(\"missing required argument: \" + argName);\n }", "private boolean validateData() {\r\n TASKAggInfo agg = null;\r\n int index = aggList.getSelectedIndex();\r\n if (index != 0) {\r\n agg = (TASKAggInfo)aggregators.elementAt(aggList.getSelectedIndex()-1);\r\n }\r\n\r\n if (getArgument1() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 1 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getArgument2() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Argument 2 must be of type: \"+TASKTypes.TypeName[agg.getArgType()], \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n else if (getOperand() == BAD_ARGUMENT) {\r\n JOptionPane.showMessageDialog(this, \"Filter value must be of type integer\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return false;\r\n }\r\n return true;\r\n }", "abstract boolean hasFunctionSelfArgument(Object definedOn);", "static void checkArgTypes(\r\n\t\tString funcName, Argument[] args, JParameter[] params) {\r\n\t\tif(args.length != params.length){\r\n\t\t\tthrow new IllegalArgumentsException(funcName, \"Wrong number of arguments\");\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<args.length;i++){\r\n\t\t\tJValue val = args[i].getValue();\r\n\t\t\tJParameter jp = params[i];\r\n\t\t\tif(jp.isUntyped()){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tJType typ = jp.getType();\r\n\t\t\tif(RefValue.isGenericNull(val)){\r\n\t\t\t\tJTypeKind kind = typ.getKind();\r\n\t\t\t\tif (kind == JTypeKind.CLASS || kind == JTypeKind.PLATFORM){\r\n\t\t\t\t\t// If it is a generic null, replace it with a typed null to comply with function declaration.\r\n\t\t\t\t\tRefValue rv = RefValue.makeNullRefValue(\r\n\t\t\t\t\t\tval.getMemoryArea(), kind == JTypeKind.CLASS ? (ICompoundType)typ : JObjectType.getInstance());\r\n\t\t\t\t\targs[i].setValue(rv);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcheckConvertibility(val, typ);\r\n\t\t}\r\n\t}", "protected void validateItem(Item[] param) {\r\n }" ]
[ "0.69217175", "0.66922295", "0.6611917", "0.6602439", "0.6444193", "0.64312935", "0.6406369", "0.62890303", "0.6252309", "0.62162673", "0.62067133", "0.61702573", "0.6126535", "0.6118161", "0.602487", "0.60146075", "0.60115904", "0.6010105", "0.59949285", "0.5957779", "0.59503317", "0.59262437", "0.59082055", "0.5898634", "0.5889028", "0.58683556", "0.5867516", "0.5864797", "0.58624333", "0.5854686", "0.5838365", "0.583254", "0.58306944", "0.58306944", "0.58306944", "0.5812509", "0.57922184", "0.57801014", "0.5766301", "0.57499933", "0.57355505", "0.57148105", "0.56985277", "0.5688541", "0.568609", "0.5683127", "0.56813633", "0.566393", "0.5648035", "0.56442755", "0.5636454", "0.56354713", "0.5633722", "0.5632771", "0.56267273", "0.5618844", "0.5614954", "0.5604028", "0.5588573", "0.5587491", "0.5582667", "0.55680084", "0.556354", "0.5562374", "0.5561874", "0.55551225", "0.5552109", "0.5546897", "0.5526981", "0.55257666", "0.55071694", "0.5505831", "0.5493987", "0.54791856", "0.5475428", "0.5464437", "0.54570884", "0.54565173", "0.5447436", "0.5441377", "0.5411744", "0.5403799", "0.53977084", "0.53958863", "0.5390325", "0.5383054", "0.5378613", "0.53732723", "0.5371391", "0.53697", "0.53679794", "0.53648126", "0.53648126", "0.53648126", "0.53648126", "0.53648126", "0.5360287", "0.5357065", "0.5355544", "0.53510475", "0.5350029" ]
0.0
-1
returns the string that will be returned when explain is used
@Override public String getDisplayString(String[] arg0) { return new String("geo_points"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String explainInternal (boolean extended) { throw new RuntimeException(); }", "String getHelpString();", "public String getShortExplanation()\r\n\t{\r\n\t\treturn this._shortExplanation;\r\n\t}", "String getSqlForExplainPlan(String sql, SqlParser parser);", "public String getHelp();", "public String getSummary() {\n/* 121 */ StringBuilder sb = new StringBuilder();\n/* 122 */ sb.append(\"FindIds exeMicros[\").append(this.executionTimeMicros).append(\"] rows[\").append(this.rowCount).append(\"] type[\").append(this.desc.getName()).append(\"] predicates[\").append(this.predicates.getLogWhereSql()).append(\"] bind[\").append(this.bindLog).append(\"]\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 128 */ return sb.toString();\n/* */ }", "public String showHelp() {\r\n return ctrlDomain.getHidatoDescription();\r\n }", "private static String getUsage()\n {\n final StringBuilder usage = new StringBuilder(400);\n\n // Empty line before usage info\n usage.append(\"\\n \" \n // Describe commands/options\n + \"those <option> <command> <cmd-options> \\n\"\n + \" Options:\\n\"\n + \"\\t-v : Allows stack trace to be printed.\\n\" \n + \" Commands:\\n\"\n + getCreateUsage()\n + \" help\\n\" \n + \"\\t Displays this help message\\n\" \n + \" version\\n\" \n + \"\\t Displays the SDK version and supported Core APIs\\n\");\n\n return usage.toString();\n }", "boolean supportsExplainPlan();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String description();", "String getHelpText();", "public String getExplanation()\n { \n StringBuilder r = new StringBuilder(\"Source \");\n if (porterDuff2.equals(\" \")) r.append(\"clears\");\n if (porterDuff2.equals(\" S\")) r.append(\"overwrites\");\n if (porterDuff2.equals(\"DS\")) r.append(\"blends with\");\n if (porterDuff2.equals(\" D\")) r.append(\"alpha modifies\");\n if (porterDuff2.equals(\"D \")) r.append(\"alpha complement modifies\");\n if (porterDuff2.equals(\"DD\")) r.append(\"does not affect\");\n r.append(\" destination\");\n if (porterDuff1.equals(\" S\")) r.append(\" and overwrites empty pixels\");\n r.append(\".\");\n return r.toString();\n }", "private static void displayHelp(){\n System.out.println(\"1. (R)eport\");\n System.out.println(\"2. (M)inimum Spanning Tree\");\n System.out.println(\"3. (S)hortest Path from i j\");\n System.out.println(\"4. (D)own i j\");\n System.out.println(\"5. (U)p i j\");\n System.out.println(\"6. (C)hange Weight i j x\");\n System.out.println(\"7. (E)ulerian\");\n System.out.println(\"8. (Q)uit\");\n }", "private static void printUsage()\n {\n StringBuilder usage = new StringBuilder();\n usage.append(String.format(\"semantika %s [OPTIONS...]\\n\", Environment.QUERYANSWER_OP));\n usage.append(\" (to execute query answer)\\n\");\n usage.append(String.format(\" semantika %s [OPTIONS...]\\n\", Environment.MATERIALIZE_OP));\n usage.append(\" (to execute RDB2RDF export)\");\n String header = \"where OPTIONS include:\"; //$NON-NLS-1$\n String footer =\n \"\\nExample:\\n\" + //$NON-NLS-1$\n \" ./semantika queryanswer -c application.cfg.xml -l 100 -sparql 'SELECT ?x WHERE { ?x a :Person }'\\n\" + //$NON-NLS-1$\n \" ./semantika rdb2rdf -c application.cfg.xml -o output.n3 -f N3\"; //$NON-NLS-1$\n mFormatter.setOptionComparator(null);\n mFormatter.printHelp(400, usage.toString(), header, sOptions, footer);\n }", "public String getHelp() {\r\n String res = \"You can use the following commands:\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"north\\\" to go towards the north\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"south\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"east\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"west\\\" to go towards the south\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"attack\\\" to attack a monster\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"look\\\" to look around in the room\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"search\\\" to search the room for treasure\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"use\\\" to use somthing in your inventory\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"gear\\\" to see what gear you got equipped\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"inventory\\\" to see what gear you have in your inventory\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"savegame\\\" to save your progress\" + System.getProperty(\"line.separator\");\r\n res += \"Type \\\"stop\\\" to quit the game.\" + System.lineSeparator();\r\n return res;\r\n }", "public void explain(OutputStream out) {\n explain(out, true);\n }", "public String getExplanation() {\n\n\t\treturn explanation;\n\t}", "private String printHelp()//refactored\n { String result = \"\";\n result += \"\\n\";\n result += \"You are weak if you have to ask me\\n\";\n result += \"Try not to die, while i´am mocking you.\\n\";\n result += \"\\n\";\n result += \"\" + currentRoom.getDescription() + \"\\n\"; //new\n result += \"\\nExits: \" + currentRoom.getExitDescription() + \"\\n\";//new\n result += \"\\nCommand words:\\n\";\n result += ValidAction.getValidCommandWords();\n result += \"\\n\";\n \n return result;\n }", "public String toString(){\n\t\treturn \"HELP\";\n\t}", "public String getExplanation() {\n return \"Weka is unexplainable!\";\n }", "public String getHelp() {\n\t\tStringBuffer help = new StringBuffer(256);\n\t\thelp.append(ConsoleMsg.CONSOLE_HELP_CONTROLLING_CONSOLE_HEADING);\n\t\thelp.append(newline);\n\t\thelp.append(tab);\n\t\thelp.append(\"more - \"); //$NON-NLS-1$\n\t\thelp.append(ConsoleMsg.CONSOLE_HELP_MORE);\n\t\thelp.append(newline);\n\t\treturn help.toString();\n\t}", "@Override\r\n\tprotected String getHelpInfor() {\n\t\treturn \"\";\r\n\t}", "public abstract String getHelpInfo();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "Object getExplainPlan(ObjectStorage storage, Connection connection,\r\n Alias alias, String sql);", "@Override\n public String getHelp() {\n return getController().getNameOfConnection(numberOfConnection);\n }", "@Override\n public final String toString()\n {\n StringBuilder sb = new StringBuilder(64);\n appendDesc(sb);\n return sb.toString();\n }", "protected String getHelp() {\r\n return UIManager.getInstance().localize(\"renderingHelp\", \"Help description\");\r\n }", "String diagnosticsOutput();", "private static void printUsage() {\n System.err.println(\"\\n\\nUsage:\\n\\tAnalyzeRandomizedDB [-p] [-v] [--enzyme <enzymeName> [--mc <number_of_missed_cleavages>]] <original_DB> <randomized_DB>\");\n System.err.println(\"\\n\\tFlag significance:\\n\\t - p : print all redundant sequences\\n\\t - v : verbose output (application flow and basic statistics)\\n\");\n System.exit(1);\n }", "private static String getHelp() {\n StringBuffer sb = new StringBuffer();\n\n // License\n //sb.append(License.get());\n\n // Usage\n sb.append(\"Usage: java -cp dist/jcore.jar -mx2G eu.fbk.fm.profiling.extractors.LSA.LSM input threshold size dim idf\\n\\n\");\n\n // Arguments\n sb.append(\"Arguments:\\n\");\n sb.append(\"\\tinput\\t\\t-> root of files from which to read the model\\n\");\n sb.append(\"\\tthreshold\\t-> similarity threshold\\n\");\n sb.append(\"\\tsize\\t\\t-> number of similar terms to return\\n\");\n sb.append(\"\\tdim\\t\\t-> number of dimensions\\n\");\n sb.append(\"\\tidf\\t\\t-> if true rescale using the idf\\n\");\n //sb.append(\"\\tterm\\t\\t-> input term\\n\");\n\n // Arguments\n //sb.append(\"Arguments:\\n\");\n\n return sb.toString();\n }", "private String metadata() {\n\t\tStringBuilder s = new StringBuilder();\n\t\ts.append(\"#######################################\");\n\t\ts.append(\"\\n# Metadata of query set\");\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Queries\");\n\t\ts.append(\"\\n# \\tTotal: \" + this.num_queries);\n\t\ts.append(\"\\n# \\tPoint: \" + this.num_pt_queries + \" (\" + 100 * ((double) this.num_pt_queries/this.num_queries) +\"%)\");\n\t\ts.append(\"\\n# \\tRange: \" + this.num_range_queries + \" (\" + 100 * ((double) this.num_range_queries/this.num_queries) +\"%)\");\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Operators\");\n\t\ts.append(\"\\n# \\tTotal: \" + (this.num_and_ops + this.num_or_ops) + \" (\" + ((double) (this.num_and_ops + this.num_or_ops)/this.num_queries) +\" per query)\");\n\t\ts.append(\"\\n# \\tAND: \" + this.num_and_ops);\n\t\ts.append(\"\\n# \\tOR: \" + this.num_or_ops);\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Attributes\");\n\t\ts.append(\"\\n# \\tTotal queried: \" + this.num_attributes);\n\t\ts.append(\"\\n#\");\n\t\ts.append(\"\\n# Bins\");\n\t\ts.append(\"\\n# \\tTotal queried: \" + this.num_bins);\n\t\ts.append(\"\\n# \\tPer query: \" + ((double) this.num_bins/this.num_queries));\n\t\ts.append(\"\\n#######################################\\n\");\n\t\treturn s.toString();\n\t}", "public String describe() { return new String(\"No description.\"); }", "protected String getHelpText() {\n return \"\";\n }", "@Override\r\n\tpublic String getDescription() {\n\t\tString descr=\"Results\";\r\n\t\treturn descr;\r\n\t}", "public String toString() {\n\t\treturn \"Analysis using the following analyzer:\\n\"\n\t\t\t\t+ _analyzer.toString();\n\t}", "java.lang.String getDescribe();", "public static void help() {\n System.out.println(line(\"*\", 80));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(line(\"*\", 80));\n }", "String getDescribe();", "String getDescribe();", "public static void help() {\n System.out.println(printLine(\"*\",120));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSHOW TABLES; Display all tables in the schema.\");\n //System.out.println(\"\\tSELECT table_name FROM kavibase_tables; Display all records in the table.\");\n System.out.println(\"\\tCREATE TABLE table_name (column_name data_type [PRIMARY KEY] [NOT NULL],.); Create a table.\");\n System.out.println(\"\\tINSERT INTO TABLE (column_list) table_name VALUES (value_list); Insert a record into table.\");\n System.out.println(\"\\tDELETE FROM TABLE table_name WHERE row_id=key_value; Delete a record from a table.\");\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println(\"\\tQUIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(printLine(\"*\",120));\n }", "public String getHelp() {\n\t\tfinal StringBuilder helpBuilder = new StringBuilder(\"HELP MANUAL\\n\\n\");\n\t\tfor (final Argument arg : registeredArguments) {\n\t\t\thelpBuilder.append(\n\t\t\t\t\tString.format(\"- %1s : %2s | %3s\\n\", arg.getArgName(), arg.getShortCall(), arg.getLongCall()));\n\t\t\thelpBuilder.append(arg.getHelpLine());\n\t\t\thelpBuilder.append(\"\\n\");\n\t\t\tif (arg.isMandatory()) {\n\t\t\t\thelpBuilder.append(\"This argument is mandatory on the command line.\\n\");\n\t\t\t} else {\n\t\t\t\thelpBuilder.append(\"This argument is not mandatory on the command line.\\n\");\n\t\t\t}\n\t\t\tif (arg.isValueNotRequired()) {\n\t\t\t\thelpBuilder.append(\"This argument has no value. If a value is present, it will be ignored.\\n\");\n\t\t\t}\n\t\t\thelpBuilder.append(\"\\n\");\n\t\t}\n\t\treturn helpBuilder.toString();\n\t}", "public String textHelp() {\t\t\n\t\tString s = \"RUN: Ejecuta todas las instrucciones\";\n\t\treturn s;\n\t}", "public DriftCheckExplainability getExplainability() {\n return this.explainability;\n }" ]
[ "0.7059777", "0.6642305", "0.6553897", "0.65267634", "0.65126574", "0.6453432", "0.63960373", "0.63559836", "0.63100076", "0.6289956", "0.6289956", "0.6289956", "0.6289956", "0.6289956", "0.6289956", "0.6289956", "0.6289956", "0.6289956", "0.6289956", "0.6289956", "0.6289956", "0.6267519", "0.62585753", "0.62584114", "0.62537587", "0.6235286", "0.6232438", "0.62146664", "0.6188075", "0.6160132", "0.6152268", "0.6142526", "0.61268634", "0.61218137", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.6093493", "0.60537124", "0.60537124", "0.60537124", "0.60537124", "0.60537124", "0.60537124", "0.60537124", "0.60537124", "0.60537124", "0.6049335", "0.60480636", "0.5978083", "0.59711033", "0.5970984", "0.5966415", "0.5962249", "0.59330666", "0.59327996", "0.5930459", "0.59141845", "0.5905324", "0.59007853", "0.588969", "0.5875924", "0.5875924", "0.58718914", "0.5870726", "0.5865857", "0.5861455" ]
0.0
-1
set values for custom dialog components text, image and button
@Override public void onClick(View v) { final EditText user_gmail = dialog.findViewById(R.id.flat_gmail); final EditText flat_number = dialog.findViewById(R.id.flat_no); final String gmail = user_gmail.getText().toString().trim(); final String flat_num = flat_number.getText().toString().trim(); db.collection("Residents") .get() .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() { @Override public void onComplete(@NonNull Task<QuerySnapshot> task) { if (task.isSuccessful()) { for (QueryDocumentSnapshot document : task.getResult()) { if(gmail.trim().equals(document.getString("gmail"))|| flat_num.trim().equals(document.getString("flat_no"))) { Log.i("inside", document.getId() + " => " + document.get("gmail")); Toast.makeText(AllotFlats.this, "Redundant Id or Flat", Toast.LENGTH_SHORT).show(); flag=1; Log.i("Flag1",flag+""); break; } } if(flag!=1){ AllotList list = new AllotList(gmail, flat_num); if(flag!=1) { Log.i("Flag3",flag+""); db.collection("Residents") .add(list) .addOnSuccessListener(new OnSuccessListener<DocumentReference>() { @Override public void onSuccess(DocumentReference documentReference) { if(flag!=1) { Log.i("Flag2", flag + ""); Toast.makeText(AllotFlats.this, "Alloted Successfully", Toast.LENGTH_SHORT).show(); Log.i("TAG", "DocumentSnapshot written with ID: " + documentReference.getId()); } } }) .addOnFailureListener(new OnFailureListener() { @Override public void onFailure(@NonNull Exception e) { Log.w("TAG", "Error adding document", e); } }); dialog.dismiss(); } } } else { Log.i("TAG", "Error getting documents.", task.getException()); } } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private DialogBox(String text, Image img) {\n try {\n FXMLLoader fxmlLoader = new FXMLLoader(MainWindow.class.getResource(\"/view/DialogBox.fxml\"));\n assert fxmlLoader != null : \"fxmlLoader for DialogBox is null\";\n fxmlLoader.setController(this);\n fxmlLoader.setRoot(this);\n fxmlLoader.load();\n } catch (IOException e) {\n e.printStackTrace();\n }\n dialog.setText(text);\n displayPicture.setImage(img);\n }", "public interface ICustomDialog<T> extends IDialog<T>{\r\n /**\r\n * 设置dialog背景色\r\n * @param color\r\n * @return\r\n */\r\n T setBackgroundColor(int color);\r\n\r\n /**\r\n * 设置dialog背景图片\r\n * @param resid\r\n * @return\r\n */\r\n T setBackgroundResource(int resid);\r\n\r\n /**\r\n * 设置标题栏高度\r\n * @param height\r\n * @return\r\n */\r\n T setTitleHeight(int height);\r\n\r\n /**\r\n * 设置底部按钮高度\r\n * @param height\r\n * @return\r\n */\r\n T setBottomHeight(int height);\r\n\r\n /**\r\n * 设置副标题文字\r\n * @param summaryTitle\r\n * @return\r\n */\r\n T setSummaryTitle(String summaryTitle);\r\n\r\n /**\r\n * 设置副标题文字\r\n * @param titleId\r\n * @return\r\n */\r\n T setSummaryTitle(int titleId);\r\n\r\n /**\r\n * 设置标题文字颜色\r\n * @param color\r\n * @return\r\n */\r\n T setTitleColor(int color);\r\n\r\n /**\r\n * 设置标题文字大小\r\n * @param textSize\r\n * @return\r\n */\r\n T setTitleSize(float textSize);\r\n\r\n /**\r\n * 设置内容文字颜色\r\n * @param color\r\n * @return\r\n */\r\n T setMessageColor(int color);\r\n\r\n /**\r\n * 设置内容文字大小\r\n * @param textSize\r\n * @return\r\n */\r\n T setMessageSize(float textSize);\r\n\r\n /**\r\n * 设置内容文字Gravity\r\n * @param gravity\r\n * @return\r\n */\r\n T setMessageGravity(int gravity);\r\n\r\n /**\r\n * 设置PositiveButton\r\n * @param text\r\n * @param l\r\n * @return\r\n */\r\n T setPositiveButton(String text, DialogInterface.OnClickListener l);\r\n\r\n /**\r\n * 设置PositiveButton, 附加按钮背景\r\n * @param text\r\n * @param bgResId\r\n * @param l\r\n * @return\r\n */\r\n T setPositiveButton(String text, int bgResId, DialogInterface.OnClickListener l);\r\n\r\n /**\r\n * 设置PositiveButton文本颜色\r\n * @param color\r\n * @return\r\n */\r\n T setPositiveButtonTextColor(int color);\r\n\r\n /**\r\n * 设置PositiveButton文本颜色\r\n * @param color\r\n * @return\r\n */\r\n T setPositiveButtonTextColor(ColorStateList color);\r\n\r\n /**\r\n * 设置PositiveButton文本大小\r\n * @param textSize\r\n * @return\r\n */\r\n T setPositiveButtonTextSize(float textSize);\r\n\r\n /**\r\n * 设置NegativeButton\r\n * @param text\r\n * @param l\r\n * @return\r\n */\r\n T setNegativeButton(String text, DialogInterface.OnClickListener l);\r\n\r\n /**\r\n * 设置NegativeButton,附加按钮背景\r\n * @param text\r\n * @param bgResId\r\n * @param l\r\n * @return\r\n */\r\n T setNegativeButton(String text, int bgResId, DialogInterface.OnClickListener l);\r\n\r\n /**\r\n * 设置NegativeButton文本颜色\r\n * @param color\r\n * @return\r\n */\r\n T setNegativeButtonTextColor(int color);\r\n\r\n /**\r\n * 设置NegativeButton文本颜色\r\n * @param color\r\n * @return\r\n */\r\n T setNegativeButtonTextColor(ColorStateList color);\r\n\r\n /**\r\n * 设置NegativeButton文本大小\r\n * @param textSize\r\n * @return\r\n */\r\n T setNegativeButtonTextSize(float textSize);\r\n\r\n /**\r\n * 设置contentView ,且默认的LayoutParams是\r\n * LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT)\r\n *\r\n * @param contentView\r\n * @return\r\n */\r\n T setCustomContent(View contentView);\r\n\r\n /**\r\n * 设置contentView\r\n *\r\n * @param contentView\r\n * @return\r\n */\r\n T setCustomContent(View contentView, ViewGroup.LayoutParams layoutParams);\r\n\r\n /**\r\n * 按指定的大小展示dialog\r\n * @param width\r\n * @param height\r\n */\r\n T show(int width, int height);\r\n\r\n /**\r\n * contentview 点击事件的处理\r\n * @param view\r\n */\r\n void contentClick(View view);\r\n}", "private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moTextUnitSymbol.setTextSettings(jlUnitSymbol.getText(), 15, 1);\n moTextUnitName.setTextSettings(jlName.getText(), 150, 1);\n moTextShortName.setTextSettings(SGuiUtils.getLabelName(jlAnalysisShortName.getText()), 10, 1);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 100, 1);\n moKeyAnalysisType.setKeySettings(miClient, SGuiUtils.getLabelName(jlAnalysisType), true);\n\n moFields.addField(moTextUnitSymbol);\n moFields.addField(moTextUnitName);\n \n moFields.addField(moTextShortName);\n moFields.addField(moTextName);\n \n moFields.addField(moKeyAnalysisType);\n\n moFields.setFormButton(jbSave);\n }", "public static DialogBox getUserDialog(String text, Image img) {\n var db = new DialogBox(text, img);\n db.setStyle(\"-fx-background-color: #bbdefb;\");\n return db;\n }", "public PHConstDialog() {\n\t\tinitComponents();\n\t}", "private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moIntYear.setIntegerSettings(SGuiUtils.getLabelName(jlYear.getText()), SGuiConsts.GUI_TYPE_INT_CAL_YEAR, true);\n moDateDate.setDateSettings(miClient, SGuiUtils.getLabelName(jlDate.getText()), true);\n moTextCode.setTextSettings(SGuiUtils.getLabelName(jlCode.getText()), 10);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 50);\n\n moFields.addField(moIntYear);\n moFields.addField(moDateDate);\n moFields.addField(moTextCode);\n moFields.addField(moTextName);\n\n moFields.setFormButton(jbSave);\n }", "private void setUpDialoguebox() {\n\t\tinput = new CTS_GUI_Dialoguebox();\n\t\tinput.setTitle(\"Settings\");\n\t\tBorderPane pane = new BorderPane();\n\t\tLocalTime t = LocalTime.now();\n\t\tLocalDate d = LocalDate.now();\n\t\tuicontrols = new VBox(10);\n\t\tHBox box0 = new HBox(5);\n\t\tbox0.getChildren().addAll(new Label(\"Latitude: \"),new TextField(\"0\"));\n\t\tHBox box1 = new HBox(5);\n\t\tbox1.getChildren().addAll(new Label(\"Longitude: \"),new TextField(\"0\"));\n\t\tHBox box2 = new HBox(5);\n\t\tbox2.getChildren().addAll(new Label(\"Date: \"),new TextField(d.toString()));\n\t\tTextField time = new TextField(t.getHour() + \":\" + t.getMinute() + \":\" + (int) floor(t.getSecond()));\n\t\tHBox box3 = new HBox(5);\n\t\tbox3.getChildren().addAll(new Label(\"Time: \"),time);\n\t\t// Check boxes\n\t\tHBox box5 = new HBox(5);\n\t\tCheckBox c1 = new CheckBox(\"Plot Stars\");\n\t\tc1.setSelected(true);\n\t\tCheckBox c2 = new CheckBox(\"Plot DSOs\");\n\t\tc2.setSelected(true);\n\t\tCheckBox c3 = new CheckBox(\"Plot Constellations\");\n\t\tc3.setSelected(true);\n\t\tCheckBox c4 = new CheckBox(\"Plot Planets\");\n\t\tc4.setSelected(true);\n\t\tbox5.getChildren().addAll(c1,c2,c3,c4);\n\t\t// Color Picker\n\t\t// 0 = Star color, 1 = Low mag star, 2 = Very low mag star.\n\t\t// 3 = DSO, 4 = Sky background, 5 = Circle around sky background\n\t\t// 6 = Overall background, 7 = Lat/long txt color, 8 = Constellation line color.\n\t\tHBox box6 = new HBox(5);\n\t\tTextField colorSet = new TextField(\"255,255,255,1\");\n\t\tButton setcolorbutton = new Button(\"Submit Color\");\n\t\tbox6.getChildren().addAll(new Label(\"Color to Set: \"),colorSet,setcolorbutton,new Label(\"[PREVIEW COLOR]\"));\n\t\tsetcolorbutton.setOnAction((event) -> { colorPickerHander(); });\n MenuBar mainmenu = new MenuBar();\n Menu colorpickermenu = new Menu(\"Set Custom Colors\");\n String[] colorstrs = {\"Star Color\",\"Low Magnituide Star Color\",\"Very Low Magnituide Star Color\", \"Deep Space Object Color\",\"Sky Background Color\",\n \t\t\"Circle Around Sky Background Color\",\"Overall Background Color\", \"Latitude/Longitude Text Color\",\"Constellation Line Color\"};\n for(int x = 0; x < colorstrs.length; x++) {\n \tMenuItem opt = new MenuItem(colorstrs[x]);\n \tint id = x;\n \topt.setOnAction((event) -> { colorSetterId = id; });\n \tcolorpickermenu.getItems().add(opt);\n }\n \n ComboBox<String> consts = new ComboBox<>();\n HashMap<String, String> cdbs = controller.getModelConstellationDBs();\n\n for (String name : cdbs.keySet()) {\n consts.getItems().add(name);\n }\n HBox box7 = new HBox(5);\n box7.getChildren().addAll(new Label(\"Select Constellation Set\"), consts);\n \n consts.getSelectionModel().select(\"Western\");\n mainmenu.getMenus().addAll(colorpickermenu);\n\t\tHBox box4 = new HBox(5);\n\t\tButton but = new Button(\"Cancel\");\n\t\tbut.setPadding(new Insets(5));\n\t\tButton but2 = new Button(\"Submit\");\n\t\tbut2.setPadding(new Insets(5));\n\t\tbox4.getChildren().addAll(but,but2);\n\t\tuicontrols.getChildren().addAll(box0,box1,box2,box3,box5,box6,box7,box4);\n\t\tbut.setOnAction((event) -> { input.close(); });\n\t\tbut2.setOnAction((event) -> {\n\t\t\tuserSelectedConstellationFileName = cdbs.get(consts.getValue());\n\t\t\tlong i = validateInput();\n\t\t\tif (i == 0) {\n\t\t\t\tchartTheStars();\n\t\t\t\tinput.close();\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, getGUIErrorMsg(i));\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n });\n\t\tpane.setTop(mainmenu);\n\t\tpane.setCenter(uicontrols);\n\t\tpane.setPadding(new Insets(10));\n\t\tScene scene = new Scene(pane, 520, 310);\n\t\tinput.setScene(scene);\n\t}", "private void initDialog() {\n }", "public abstract void initDialog();", "private void setLabelsOperationType() {\n\n\t\tif (dialogType == DialogType.NO_CONTACT_SELECTED) {\n\t\t\talertDialogImage = R.drawable.ic_stat_info;\n\t\t\ttitle = R.string.label_title_info;\n\t\t\tmessage = R.string.alert_no_contact_selected;\n\t\t} else if (dialogType == DialogType.NO_CALL_LOG_SELECTED){\n\t\t\talertDialogImage = R.drawable.ic_stat_info;\n\t\t\ttitle = R.string.label_title_info;\n\t\t\tmessage = R.string.alert_no_call_log_selected;\n\t\t}\n\t}", "public void setDialog(String s){\n dialog.setText(s);\n }", "public InfoDialog(String text) {\r\n\t\tthis.setDialog(text);\r\n\t}", "private void setComponentTexts(){\n\t\tsetTitle(translations.getRegexFileChanger());\n\t\tbuttonCopyToClipboard.setText(translations.getCopyToClipboard());\n\t\tregexTo.setToolTipText(wrapHTML(translations.getRegexToInfo()));\n\t\tregexFrom.setToolTipText(wrapHTML(translations.getRegexFromInfo()));\n\t\tregexFromLabel.setText(translations.getGiveRegexFrom());\n\t\tregexToLabel.setText(translations.getGiveRegexTo());\n\t\tgiveRegexLabel.setText(translations.getBelowGiveRegexRules());\n\t\tbuttonChooseDestinationDirectory.setText(translations.getChooseDestinationDirectory());\n\t\tbuttonSimulateChangeFileNames.setToolTipText(wrapHTML(translations.getSimulateFileChangesInfo()));\n\t\tbuttonSimulateChangeFileNames.setText(translations.getSimulateChangeNames());\n\t\tbuttonChangeFileNames.setToolTipText(wrapHTML(translations.getChangeFileNamesInfo()));\n\t\tbuttonChangeFileNames.setText(translations.getChangeNames());\n\t\tbuttonCopyToClipboard.setToolTipText(wrapHTML(translations.getCopyToClipBoardInfo()));\n\t\tbuttonCopyToClipboard.setText(translations.getCopyToClipboard());\n\t\tbuttonResetToDefaults.setToolTipText(wrapHTML(translations.getResetToDefaultsInfo()));\n\t\tbuttonResetToDefaults.setText(translations.getDeleteSettings());\n\t\tbuttonExample.setText(translations.getShowExample());\n\t\tbuttonExample.setToolTipText(translations.getButtonShowExSettings());\n\t\tcheckboxSaveStateOn.setToolTipText(wrapHTML(translations.getSaveStateCheckBoxInfo()));\n\t\tcheckboxSaveStateOn.setText(translations.getSaveStateOnExit());\n\t\tchooseLanguageLabel.setText(translations.getChooseLanguage());\n\t\tsetDirectoryInfoLabel(translations.getSeeChoosedDirPath());\n\t\tcheckboxRecursiveSearch.setText(translations.getRecursiveSearch());\n\t\tcheckboxRecursiveSearch.setToolTipText(translations.getRecursiveSearchToolTip());\n\t\tcheckboxShowFullPath.setToolTipText(translations.getShowFullPathCheckboxTooltip());\n\t\tcheckboxShowFullPath.setText(translations.getShowFullPathCheckbox());\n\t\tbuttonClear.setText(translations.getButtonClear());\n\t\tbuttonClear.setToolTipText(translations.getButtonClearTooltip());\n\t}", "private void setDialog()\n {\n //this.setSize(350,500);\n this.setTitle(Constant.getTextBundle(\"ปฏิกิริยาต่อกัน\"));\n Toolkit thekit = this.getToolkit(); \n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation((screenSize.width-this.getSize().width)/2, (screenSize.height-this.getSize().height)/2);\n }", "void setIcon(Dialog dialog);", "public ProteinInferenceGraphSelectionDialog(JDialog parent, boolean modal, String text) {\n super(parent, modal);\n initComponents();\n valuesEditorPane.setText(text);\n valuesEditorPane.setCaretPosition(0);\n setLocationRelativeTo(parent);\n setVisible(true);\n }", "@Override\r\n\tprotected Control createDialogArea(Composite parent) {\r\n\t\tComposite container = (Composite) super.createDialogArea(parent);\r\n\t\tcontainer.setLayout(new FormLayout());\r\n\t\t\r\n\t\tLabel lblNewLabel = new Label(container, SWT.NONE);\r\n\t\tFormData fd_lblNewLabel = new FormData();\r\n\t\tlblNewLabel.setLayoutData(fd_lblNewLabel);\r\n\t\tlblNewLabel.setText(\"Username :\");\r\n\t\t\r\n\t\ttext = new Text(container, SWT.BORDER);\r\n\t\tfd_lblNewLabel.top = new FormAttachment(text, 3, SWT.TOP);\r\n\t\tfd_lblNewLabel.right = new FormAttachment(text, -30);\r\n\t\tFormData fd_text = new FormData();\r\n\t\tfd_text.top = new FormAttachment(0, 92);\r\n\t\tfd_text.right = new FormAttachment(100, -107);\r\n\t\ttext.setLayoutData(fd_text);\r\n\t\t\r\n\t\tLabel lblPassword = new Label(container, SWT.NONE);\r\n\t\tfd_lblNewLabel.bottom = new FormAttachment(lblPassword, -20);\r\n\t\tfd_lblNewLabel.left = new FormAttachment(0, 151);\r\n\t\tlblPassword.setText(\"Password :\");\r\n\t\tlblPassword.setAlignment(SWT.CENTER);\r\n\t\tFormData fd_lblPassword = new FormData();\r\n\t\tfd_lblPassword.left = new FormAttachment(lblNewLabel, 0, SWT.LEFT);\r\n\t\tfd_lblPassword.bottom = new FormAttachment(100, -75);\r\n\t\tlblPassword.setLayoutData(fd_lblPassword);\r\n\t\t\r\n\t\ttext_1 = new Text(container, SWT.BORDER);\r\n\t\tFormData fd_text_1 = new FormData();\r\n\t\tfd_text_1.top = new FormAttachment(text, 14);\r\n\t\tfd_text_1.left = new FormAttachment(text, 0, SWT.LEFT);\r\n\t\ttext_1.setLayoutData(fd_text_1);\r\n\t\t\r\n\t\tCLabel lblNewLabel_1 = new CLabel(container, SWT.NONE);\r\n\t\tlblNewLabel_1.setImage(SWTResourceManager.getImage(LoginDialog.class, \"/com/acme/rcp/app/logo.png\"));\r\n\t\tFormData fd_lblNewLabel_1 = new FormData();\r\n\t\tfd_lblNewLabel_1.bottom = new FormAttachment(text, -14);\r\n\t\tfd_lblNewLabel_1.right = new FormAttachment(100, -140);\r\n\t\tlblNewLabel_1.setLayoutData(fd_lblNewLabel_1);\r\n\t\tlblNewLabel_1.setText(\"\");\r\n\r\n\t\treturn container;\r\n\t}", "private void createContents() {\n\t\tshell = new Shell(getParent(), SWT.MIN |SWT.APPLICATION_MODAL);\n\t\tshell.setImage(SWTResourceManager.getImage(WordWatermarkDialog.class, \"/com/yc/ui/1.jpg\"));\n\t\tshell.setSize(436, 321);\n\t\tshell.setText(\"设置文字水印\");\n\t\t\n\t\tLabel label_font = new Label(shell, SWT.NONE);\n\t\tlabel_font.setBounds(38, 80, 61, 17);\n\t\tlabel_font.setText(\"字体名称:\");\n\t\t\n\t\tLabel label_style = new Label(shell, SWT.NONE);\n\t\tlabel_style.setBounds(232, 77, 61, 17);\n\t\tlabel_style.setText(\"字体样式:\");\n\t\t\n\t\tLabel label_size = new Label(shell, SWT.NONE);\n\t\tlabel_size.setBounds(38, 120, 68, 17);\n\t\tlabel_size.setText(\"字体大小:\");\n\t\t\n\t\tLabel label_color = new Label(shell, SWT.NONE);\n\t\tlabel_color.setBounds(232, 120, 68, 17);\n\t\tlabel_color.setText(\"字体颜色:\");\n\t\t\n\t\tLabel label_word = new Label(shell, SWT.NONE);\n\t\tlabel_word.setBounds(38, 38, 61, 17);\n\t\tlabel_word.setText(\"水印文字:\");\n\t\t\n\t\ttext = new Text(shell, SWT.BORDER);\n\t\ttext.setBounds(115, 35, 278, 23);\n\t\t\n\t\tButton button_confirm = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_confirm.setBounds(313, 256, 80, 27);\n\t\tbutton_confirm.setText(\"确定\");\n\t\t\n\t\tCombo combo = new Combo(shell, SWT.NONE);\n\t\tcombo.setItems(new String[] {\"宋体\", \"黑体\", \"楷体\", \"微软雅黑\", \"仿宋\"});\n\t\tcombo.setBounds(115, 77, 93, 25);\n\t\tcombo.setText(\"黑体\");\n\t\t\n\t\tCombo combo_1 = new Combo(shell, SWT.NONE);\n\t\tcombo_1.setItems(new String[] {\"粗体\", \"斜体\"});\n\t\tcombo_1.setBounds(300, 74, 93, 25);\n\t\tcombo_1.setText(\"粗体\");\n\t\t\n\t\tCombo combo_2 = new Combo(shell, SWT.NONE);\n\t\tcombo_2.setItems(new String[] {\"1\", \"3\", \"5\", \"8\", \"10\", \"12\", \"16\", \"18\", \"20\", \"24\", \"30\", \"36\", \"48\", \"56\", \"66\", \"72\"});\n\t\tcombo_2.setBounds(115, 117, 93, 25);\n\t\tcombo_2.setText(\"24\");\n\t\t\n\t\tCombo combo_3 = new Combo(shell, SWT.NONE);\n\t\tcombo_3.setItems(new String[] {\"红色\", \"绿色\", \"蓝色\"});\n\t\tcombo_3.setBounds(300, 117, 93, 25);\n\t\tcombo_3.setText(\"红色\");\n\t\t\n\t\tButton button_cancle = new Button(shell, SWT.NONE);\n\t\t\n\t\tbutton_cancle.setBounds(182, 256, 80, 27);\n\t\tbutton_cancle.setText(\"取消\");\n\t\t\n\t\tLabel label_X = new Label(shell, SWT.NONE);\n\t\tlabel_X.setBounds(31, 161, 68, 17);\n\t\tlabel_X.setText(\"X轴偏移值:\");\n\t\t\n\t\tCombo combo_4 = new Combo(shell, SWT.NONE);\n\t\tcombo_4.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_4.setBounds(115, 158, 93, 25);\n\t\tcombo_4.setText(\"50\");\n\t\t\n\t\tLabel label_Y = new Label(shell, SWT.NONE);\n\t\tlabel_Y.setText(\"Y轴偏移值:\");\n\t\tlabel_Y.setBounds(225, 161, 68, 17);\n\t\t\n\t\tCombo combo_5 = new Combo(shell, SWT.NONE);\n\t\tcombo_5.setItems(new String[] {\"10\", \"20\", \"30\", \"40\", \"50\", \"80\", \"100\", \"160\", \"320\", \"640\"});\n\t\tcombo_5.setBounds(300, 158, 93, 25);\n\t\tcombo_5.setText(\"50\");\n\t\t\n\t\tLabel label_alpha = new Label(shell, SWT.NONE);\n\t\tlabel_alpha.setBounds(46, 204, 53, 17);\n\t\tlabel_alpha.setText(\"透明度:\");\n\t\t\n\t\tCombo combo_6 = new Combo(shell, SWT.NONE);\n\t\tcombo_6.setItems(new String[] {\"0\", \"0.1\", \"0.2\", \"0.3\", \"0.4\", \"0.5\", \"0.6\", \"0.7\", \"0.8\", \"0.9\", \"1.0\"});\n\t\tcombo_6.setBounds(115, 201, 93, 25);\n\t\tcombo_6.setText(\"0.8\");\n\t\t\n\t\t//取消按钮\n\t\tbutton_cancle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//确认按钮\n\t\tbutton_confirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\n\t\t\t\tif(text.getText().trim()==null || \"\".equals(text.getText().trim())\n\t\t\t\t\t\t||combo.getText().trim()==null || \"\".equals(combo.getText().trim()) \n\t\t\t\t\t\t\t||combo_1.getText().trim()==null || \"\".equals(combo_1.getText().trim())\n\t\t\t\t\t\t\t\t|| combo_2.getText().trim()==null || \"\".equals(combo_2.getText().trim())\n\t\t\t\t\t\t\t\t\t|| combo_3.getText().trim()==null || \"\".equals(combo_3.getText().trim())\n\t\t\t\t\t\t\t\t\t\t||combo_4.getText().trim()==null || \"\".equals(combo_4.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t||combo_5.getText().trim()==null || \"\".equals(combo_5.getText().trim())\n\t\t\t\t\t\t\t\t\t\t\t\t||combo_6.getText().trim()==null || \"\".equals(combo_6.getText().trim())){\n\t\t\t\t\tMessageDialog.openError(shell, \"错误\", \"输入框不能为空或输入空值,请确认后重新输入!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString word=text.getText().trim();\n\t\t\t\tString wordName=getFontName(combo.getText().trim());\n\t\t\t\tint wordStyle=getFonStyle(combo_1.getText().trim());\n\t\t\t\tint wordSize=Integer.parseInt(combo_2.getText().trim());\n\t\t\t\tColor wordColor=getFontColor(combo_3.getText().trim());\n\t\t\t\tint word_X=Integer.parseInt(combo_4.getText().trim());\n\t\t\t\tint word_Y=Integer.parseInt(combo_5.getText().trim());\n\t\t\t\tfloat word_Alpha=Float.parseFloat(combo_6.getText().trim());\n\t\t\t\t\n\t\t\t\tis=MeituUtils.waterMarkWord(EditorUi.filePath,word, wordName, wordStyle, wordSize, wordColor, word_X, word_Y,word_Alpha);\n\t\t\t\tCommon.image=new Image(display,is);\n\t\t\t\tWordWatermarkDialog.this.shell.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\tcombo.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t\tcombo_1.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_2.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_3.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[^0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\t\n\t\t\n\t\tcombo_4.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_5.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\"[0-9]\\\\d*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\t\t\n\t\tcombo_6.addVerifyListener(new VerifyListener() { \n\t\t\t public void verifyText(VerifyEvent e) { \n\t\t\t Pattern pattern = Pattern.compile(\".[0-9]*\"); \n\t\t\t Matcher matcher = pattern.matcher(e.text); \n\t\t\t if (matcher.matches()) // 处理数字 \n\t\t\t \t e.doit = true; \n\t\t\t else if (e.text.length() > 0) // 有字符情况,包含中文、空格 \n\t\t\t \t e.doit = false; \n\t\t\t else \n\t\t\t \t e.doit = false; \n\t\t\t } \n\t\t });\n\n\t}", "public CustomDialog(String title) {\n\t\tsuper();\n\t\tsetTitle(title);\n\t\tinit();\n\t}", "public AddAnimalDialog(JFrame frame, String name, String animalFamilyType, String tourType) {\n super(frame, name);\n setLayout(new GridBagLayout());\n\n this.animalFamilyType = animalFamilyType;\n this.tourType = tourType;\n\n imgLabel = new JLabel();\n\n TitledBorder titledBorder = new TitledBorder(\"Current Tournament - \" + animalFamilyType + \" , \" + tourType);\n titledBorder.setTitleColor(Color.RED);\n CompoundBorder border = new CompoundBorder(new EmptyBorder(5, 5, 5, 5), titledBorder);\n super.getRootPane().setBorder(border);\n\n gbc.insets = new Insets(5, 5, 5, 5);\n\n //add the name label\n gbc.fill = GridBagConstraints.HORIZONTAL;\n add(nameLabel, gbc);\n\n //add the name text field\n gbc.gridx = 2;\n gbc.weightx = GridBagConstraints.BOTH;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n add(nameTextField, gbc);\n\n //add the image label\n gbc.gridy = 2;\n gbc.gridx = 0;\n add(imageLabel, gbc);\n\n //add image combobox\n chooseAddItemsToJcb();\n gbc.weightx = GridBagConstraints.BOTH;\n gbc.gridx = 2;\n this.add(imageCbox, gbc);\n\n //add the gender label\n gbc.gridy = 5;\n gbc.gridx = 0;\n add(genLabel, gbc);\n\n //add the radio buttons for gender\n gbc.gridx = 1;\n maleBtn.setActionCommand(\"Male\");\n add(maleBtn, gbc);\n gbc.gridx = 2;\n hermaBtn.setActionCommand(\"Hermaphrodite\");\n add(hermaBtn, gbc);\n gbc.gridx = 3;\n femaleBtn.setActionCommand(\"Female\");\n add(femaleBtn, gbc);\n\n //add buttons to group buttons\n buttons.add(maleBtn);\n buttons.add(femaleBtn);\n buttons.add(hermaBtn);\n\n gbc.gridwidth = 0;\n //add the speed label\n gbc.gridy = 7;\n gbc.gridx = 0;\n add(speedLabel, gbc);\n\n //add the speed slider\n gbc.gridx = 1;\n add(speedSlider, gbc);\n\n //add energy consumption label\n gbc.gridx = 0;\n gbc.gridy = 8;\n add(engLabel, gbc);\n\n //add energy consumption slider\n gbc.gridx = 1;\n add(engSlider, gbc);\n\n //add image choice label\n gbc.gridwidth = 3;\n gbc.gridy = 9;\n gbc.gridx = 0;\n add(imgChoiceLabel, gbc);\n\n //add the create button\n gbc.gridwidth = 2;\n gbc.gridx = 1;\n gbc.gridy = 10;\n gbc.fill = GridBagConstraints.BOTH;\n add(createBtn, gbc);\n\n //adds the matching image\n gbc.fill = GridBagConstraints.HORIZONTAL;\n gbc.gridy = 9;\n gbc.gridx = 2;\n showImage();\n\n nameTextField.addActionListener(this);\n imageCbox.addActionListener(this);\n maleBtn.addActionListener(this);\n hermaBtn.addActionListener(this);\n femaleBtn.addActionListener(this);\n\n speedSlider.setMajorTickSpacing(1);\n speedSlider.setPaintTicks(true);\n speedSlider.setPaintLabels(true);\n\n engSlider.setMajorTickSpacing(10);\n engSlider.setPaintTicks(true);\n engSlider.setPaintLabels(true);\n\n activateSliders();\n\n this.setSize(600, 450);\n this.setVisible(true);\n }", "public BaseDialog create()\n {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final BaseDialog dialog = new BaseDialog(context, R.style.Dialog);\n\n View layout = inflater.inflate(R.layout.view_shared_basedialog, null);\n\n //set the dialog's image\n this.icon = (ImageView) layout.findViewById(R.id.view_shared_basedialog_icon);\n\n if (this.imageResource > 0 || this.imageUrl != null)\n {\n this.icon.setVisibility(View.VISIBLE);\n if (this.imageResource > 0)\n {\n this.icon.setBackgroundResource(this.imageResource);\n }\n else\n {\n// TextureRender.getInstance().setBitmap(this.imageUrl, this.icon, R.drawable.no_data_error_image);\n }\n }\n else\n {\n this.icon.setVisibility(View.GONE);\n }\n\n // set check box's text and default value\n this.checkLayout = layout.findViewById(R.id.view_shared_basedialog_checkbox_layout);\n this.checkBox = (CheckBox) layout.findViewById(R.id.view_shared_basedialog_checkbox);\n this.checkBoxTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_checkbox_text);\n\n if (!TextUtils.isEmpty(this.checkBoxText))\n {\n this.checkLayout.setVisibility(View.VISIBLE);\n this.checkBoxTextView.setText(this.checkBoxText);\n this.checkBox.setChecked(checkBoxDefaultState);\n }\n else\n {\n this.checkLayout.setVisibility(View.GONE);\n }\n\n // set the dialog main title and sub title\n this.maintitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_maintitle_textview);\n this.subtitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_subtitle_textview);\n this.titleDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_titledivide_textview);\n if (!TextUtils.isEmpty(title1))\n {\n this.maintitleTextView.setText(title1);\n if (this.title1BoldAndBig)\n {\n this.maintitleTextView.setTypeface(null, Typeface.BOLD);\n this.maintitleTextView.setTextSize(17);\n }\n\n this.maintitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.maintitleTextView.setVisibility(View.GONE);\n }\n\n if (!TextUtils.isEmpty(title2))\n {\n this.subtitleTextView.setText(title2);\n this.subtitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.subtitleTextView.setVisibility(View.GONE);\n }\n this.titleDivideTextView.setVisibility(View.GONE);\n\n // set the confirm button\n this.positiveButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_positivebutton));\n if (!TextUtils.isEmpty(positiveButtonText))\n {\n this.positiveButton.setText(positiveButtonText);\n this.positiveButton.setVisibility(View.VISIBLE);\n if (positiveButtonClickListener != null)\n {\n this.positiveButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n positiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n if (checkBox.isChecked()&&onCheckBoxListener!=null)\n {\n onCheckBoxListener.checkedOperation();\n }\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.positiveButton.setVisibility(View.GONE);\n }\n\n // set the cancel button\n this.negativeButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_negativebutton));\n if (!TextUtils.isEmpty(negativeButtonText))\n {\n this.negativeButton.setText(negativeButtonText);\n this.negativeButton.setVisibility(View.VISIBLE);\n if (negativeButtonClickListener != null)\n {\n this.negativeButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n negativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.negativeButton.setVisibility(View.GONE);\n }\n\n // set button's background\n this.buttonDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_buttondivide_textview);\n if (!TextUtils.isEmpty(negativeButtonText) && !TextUtils.isEmpty(negativeButtonText))\n {\n this.buttonDivideTextView.setVisibility(View.VISIBLE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_rightbottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_leftbottom);\n }\n else\n {\n this.buttonDivideTextView.setVisibility(View.GONE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n }\n\n // set the content message\n this.contentLayout = layout.findViewById(R.id.view_shared_basedialog_content_layout);\n if (!TextUtils.isEmpty(message))\n {\n this.contentTextView = ((TextView) layout.findViewById(R.id.view_shared_basedialog_content_textview));\n this.contentTextView.setText(message);\n this.contentTextView.setMovementMethod(ScrollingMovementMethod.getInstance());\n }\n else if (contentView != null)\n {\n // if no message set\n // add the contentView to the dialog body\n ((ViewGroup) this.contentLayout).removeAllViews();\n ((ViewGroup) this.contentLayout).addView(contentView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n }\n else\n {\n this.contentLayout.setVisibility(View.GONE);\n }\n\n int[] params = Utils.getLayoutParamsForHeroImage();\n dialog.setContentView(layout, new ViewGroup.LayoutParams(params[0]*4/5, ViewGroup.LayoutParams.MATCH_PARENT));\n return dialog;\n }", "public Dialog(String text) {\n initComponents( text);\n }", "public void setDialogAndButtonsTheme(Context context, AlertDialog dialog, Button positiveButton, Button negativeButton) {\n //Insert code to edit and customize the dialog and buttons here\n }", "public MyDialog(){\n\t\t\n\t\tsuper();\n\t\t\n\t\tthis.getContentPane().setBackground(Color.GRAY);\n//\t\tthis.setLayout(new GridLayout(0,1));\n//\t\tthis.setLayout(new FlowLayout());\n//\t\tthis.setBackground(new Color(250, 240, 230));\n//\t\tcomp.setSize(icon.getIconWidth(),icon.getIconHeight());\n//\t\tcomp.setLocation(0, 0);\n//\t\tcomp.setOpaque(false);\n//\t\tthis.add(comp);\n\t}", "protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }", "public Dialog(String text) {\n initComponents();\n setVisible(true);\n pack();\n setTitle(\"Sbac\");\n this.text.setText(text);\n this.text.setHorizontalAlignment(SwingConstants.CENTER);\n this.text.setVerticalAlignment(SwingConstants.CENTER);\n }", "public void setupEditFields(Dialog dialog, HashMap bookData) {\n ButtonType addButtontype = new ButtonType(\"Confirm\", ButtonBar.ButtonData.OK_DONE);\r\n dialog.getDialogPane().getButtonTypes().addAll(addButtontype, ButtonType.CANCEL);\r\n\r\n // Creates TextFields\r\n GridPane grid = new GridPane();\r\n grid.setHgap(10);\r\n grid.setVgap(10);\r\n grid.setPadding(new Insets(20, 150, 10, 10));\r\n\r\n TextField title = new TextField();\r\n title.setPromptText(\"Book Title\");\r\n if (!bookData.isEmpty()) {\r\n title.setText(bookData.get(\"title\").toString());\r\n }\r\n\r\n TextField author = new TextField();\r\n author.setPromptText(\"Book Author\");\r\n if (!bookData.isEmpty()) {\r\n author.setText(bookData.get(\"authors\").toString());\r\n }\r\n\r\n TextField location = new TextField();\r\n location.setPromptText(\"Location\");\r\n if (!bookData.isEmpty()) {\r\n location.setText(bookData.get(\"location\").toString());\r\n }\r\n\r\n TextField copies = new TextField();\r\n copies.setPromptText(\"Copies\");\r\n if (!bookData.isEmpty()) {\r\n copies.setText(bookData.get(\"copies_in_stock\").toString());\r\n }\r\n\r\n grid.add(new Label(\"Title:\"), 0, 0);\r\n grid.add(title, 1, 0);\r\n\r\n grid.add(new Label(\"Author:\"), 0, 1);\r\n grid.add(author, 1, 1);\r\n\r\n TextField isbn = new TextField();\r\n if (bookData.isEmpty()) {\r\n isbn.setPromptText(\"ISBN\");\r\n grid.add(new Label(\"ISBN:\"), 0, 2);\r\n grid.add(isbn, 1, 2);\r\n }\r\n\r\n grid.add(new Label(\"Location:\"), 0, 3);\r\n grid.add(location, 1, 3);\r\n\r\n grid.add(new Label(\"Copies:\"), 0, 4);\r\n grid.add(copies, 1, 4);\r\n\r\n\r\n // Activate edit button when all fields have text\r\n Node addButton = dialog.getDialogPane().lookupButton(addButtontype);\r\n BooleanBinding booleanBind = title.textProperty().isEmpty()\r\n .or(author.textProperty().isEmpty())\r\n .or(location.textProperty().isEmpty())\r\n .or(copies.textProperty().isEmpty());\r\n\r\n addButton.disableProperty().bind(booleanBind);\r\n\r\n dialog.getDialogPane().setContent(grid);\r\n dialog.show();\r\n\r\n addButton.addEventFilter(ActionEvent.ACTION, clickEvent -> {\r\n try {\r\n if (this.books.getByColumn(\"isbn\", isbn.getText()).isEmpty()) {\r\n HashMap bookChange = new HashMap();\r\n if (bookData.isEmpty()) {\r\n bookChange.put(\"isbn\", isbn.getText());\r\n bookChange.put(\"title\", title.getText());\r\n bookChange.put(\"authors\", author.getText());\r\n bookChange.put(\"location\", location.getText());\r\n bookChange.put(\"copies_in_stock\", Integer.parseInt(copies.getText()));\r\n } else {\r\n bookChange.put(\"title\", QueryBuilder.escapeValue(title.getText()));\r\n bookChange.put(\"authors\", QueryBuilder.escapeValue(author.getText()));\r\n bookChange.put(\"location\", QueryBuilder.escapeValue(location.getText()));\r\n bookChange.put(\"copies_in_stock\", Integer.parseInt(copies.getText()));\r\n }\r\n\r\n if (bookData.isEmpty()) {\r\n this.books.insert(bookChange);\r\n } else {\r\n this.books.update(bookChange, Integer.parseInt(bookData.get(\"id\").toString()));\r\n }\r\n\r\n QueryBuilder queryBooks = new QueryBuilder(\"books\");\r\n twg.setTable(queryBooks.select(Books.memberVisibleFields).build(), tableBooks);\r\n\r\n } else {\r\n Screen.popup(\"WARNING\", \"The ISBN typed in already exists, please edit the existing entry.\");\r\n clickEvent.consume();\r\n }\r\n\r\n } catch (NumberFormatException e) {\r\n Screen.popup(\"WARNING\", \"The 'copies' field should contain a number.\");\r\n clickEvent.consume();\r\n }\r\n });\r\n\r\n Platform.runLater(() -> title.requestFocus());\r\n }", "public SelectColorDialog(JFrame parent) {\n\t\tsuper(parent, ModalityType.APPLICATION_MODAL);\n\t\tint size = 190;\n\t\tsetUndecorated(true);\n\t\tsetLocationRelativeTo(null);\n\t\tsetLocation(100, 100);\n\t\tsetIconImage(new ImageIcon(new ImageIcon(ViewSettings.class.getResource(\"/images/uno_logo.png\")).getImage()\n\t\t\t\t.getScaledInstance(40, 40, Image.SCALE_SMOOTH)).getImage());\n\t\tsetSize(size, size);\n\t\tDimension resoltion = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tsetLocation((int) (resoltion.getWidth() / 2 - size / 2), (int) (resoltion.getHeight() / 2 - size / 2));\n\t\tViewSettings.setupPanel(contentPanel);\n\n\t\tcontentPanel.addMouseMotionListener(new MouseMotionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\tint x = e.getXOnScreen();\n\t\t\t\tint y = e.getYOnScreen();\n\t\t\t\tSelectColorDialog.this.setLocation(x - xx, y - xy);\n\t\t\t}\n\t\t});\n\t\tcontentPanel.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\txx = e.getX();\n\t\t\t\txy = e.getY();\n\t\t\t}\n\t\t});\n\t\tint gap = 4;\n\t\tint boxSize = ((size - (gap * 2)) / 2) - 2;\n\t\tJButton red = ViewSettings.createButton(gap, gap, boxSize, boxSize, new Color(245, 100, 98), \"\");\n\t\tred.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcolor = \"red\";\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcontentPanel.add(red);\n\n\t\tJButton blue = ViewSettings.createButton(size / 2, gap, boxSize, boxSize, new Color(0, 195, 229), \"\");\n\t\tblue.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcolor = \"blue\";\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcontentPanel.add(blue);\n\n\t\tJButton green = ViewSettings.createButton(gap, size / 2, boxSize, boxSize, new Color(47, 226, 155), \"\");\n\t\tgreen.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcolor = \"green\";\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcontentPanel.add(green);\n\n\t\tJButton yellow = ViewSettings.createButton(size / 2, size / 2, boxSize, boxSize, new Color(247, 227, 89), \"\");\n\t\tyellow.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcolor = \"yellow\";\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcontentPanel.add(yellow);\n\n\t\tgetContentPane().add(contentPanel);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\t}", "public StandardDialog() {\n super();\n init();\n }", "public void actionPerformed(ActionEvent event) {\n ImagingLabTest labTest = (ImagingLabTest)getCellEditorValue();\r\n Image img = ImageLoader.getInstance().getImage(\"conf/image/interface/game/lab/\" + labTest.getImageName());\r\n\r\n // shrink image as need\r\n int maxWidth = 700;\r\n int maxHeight = 500;\r\n if ((img.getWidth(null) > maxWidth) || (img.getHeight(null) > maxHeight)) {\r\n int width;\r\n int height;\r\n if ((((float)img.getWidth(null)) / maxWidth) > (((float)img.getHeight(null)) / maxHeight)) {\r\n width = maxWidth;\r\n height = img.getHeight(null) * maxWidth / img.getWidth(null);\r\n }\r\n else {\r\n width = img.getWidth(null) * maxHeight / img.getHeight(null);\r\n height = maxHeight;\r\n }\r\n Image smallImg = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\r\n Graphics g = smallImg.getGraphics();\r\n g.drawImage(img, 0, 0, width, height, null);\r\n img = smallImg;\r\n }\r\n \r\n // place a close button onto image and draw black rectangle around\r\n int width = img.getWidth(null);\r\n int height = img.getHeight(null);\r\n Image closeableImg = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\r\n Graphics g = closeableImg.getGraphics();\r\n Image closeButton = ImageLoader.getInstance().getImage(\"conf/image/interface/game/Btn-Close.gif\");\r\n g.drawImage(img, 0, 0, null);\r\n g.setColor(Color.BLACK);\r\n g.drawRect(0, 0, width - 1, height - 1);\r\n g.drawImage(closeButton, width - closeButton.getWidth(null) - 5, 5, null);\r\n img = closeableImg;\r\n \r\n // create image label to display image on dialog\r\n JLabel imageLabel = new JLabel(new ImageIcon(img));\r\n imageLabel.setSize(img.getWidth(null), img.getHeight(null));\r\n \r\n // open dialog \r\n imageDialog = new AbstractDialog(ImagingLabTestPanel.this) {\r\n // not used\r\n };\r\n \r\n // lt add: create pane, add image to fix blank dialog\r\n JPanel contentPane = new JPanel();\r\n contentPane.setLayout(new BorderLayout());\r\n contentPane.add(imageLabel, BorderLayout.CENTER);\r\n contentPane.setOpaque(true);\r\n imageDialog.setContentPane(contentPane);\r\n if ((System.getProperty(\"os.name\").equals(\"Mac OS X\")) \r\n && (System.getProperty(\"os.version\").startsWith(\"10.4\"))) {\r\n imageDialog.setComponentZOrder(contentPane, 1); // lt add: Mac fix for z-order\r\n }\r\n imageDialog.setUndecorated(true);\r\n imageDialog.setSize(700, 500);\r\n imageDialog.pack();\r\n imageDialog.setLocationRelativeTo(JOptionPane.getFrameForComponent(ImagingLabTestPanel.this));\r\n imageDialog.addMouseListener(new MouseAdapter() {\r\n public void mousePressed(MouseEvent event) {\r\n imageDialog.setVisible(false);\r\n imageDialog.dispose();\r\n JOptionPane.getFrameForComponent(ImagingLabTestPanel.this).repaint();\r\n }\r\n });\r\n imageDialog.setVisible(true);\r\n fireEditingStopped();\r\n }", "private void setup(){\n\t\t\n\t\t//set the dialog title\n\t\tsetText(LocaleText.get(\"createSPSSFileDialog\"));\n\t\t//create the status text\n\t\tstatusLabel = new Label();\n\t\t\n\t\t//create the buttons\n\t\tButton btnCancel = new Button(LocaleText.get(\"close\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcancel();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnCreate = new Button(LocaleText.get(\"createSPSSFileDialog\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tcreateSPSSFile();\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton btnSave = new Button(LocaleText.get(\"save\"), new ClickHandler(){\n\t\t\tpublic void onClick(ClickEvent event){\n\t\t\t\tsave();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\t\t\n\t\t\n\t\t//update the languages in the form.\n\t\tFormHandler.updateLanguage(Context.getLocale(), Context.getLocale(), form);\n\t\t//add the languages to the language drop down\n\t\tfor(Locale l : form.getLocales())\n\t\t{\n\t\t\tlistBoxLanguages.addItem(l.getName());\n\t\t}\n\t\t\n\t\t//setup the text area\n\t\tspssText.setCharacterWidth(30);\n\t\tspssText.setPixelSize(300, 300);\n\t\t\n\t\t\n\t\tFlexCellFormatter formatter = table.getFlexCellFormatter();\n\t\t\n\t\t//now add stuff to the UI\n\t\tint row = 0;\n\t\ttable.setWidget(row, 0, new Label(LocaleText.get(\"language\")));\n\t\ttable.setWidget(row, 1, listBoxLanguages);\n\t\trow++;\n\t\ttable.setWidget(row, 0, spssText);\n\t\tformatter.setColSpan(row, 0, 2);\n\t\tformatter.setHeight(row, 0, \"300px\");\n\t\tformatter.setWidth(row, 0, \"300px\");\n\t\trow++;\n\t\ttable.setWidget(row, 0, statusLabel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnCreate);\n\t\trow++;\n\t\ttable.setWidget(row, 0, btnSave);\n\t\ttable.setWidget(row, 1, btnCancel);\n\t\trow++;\n\t\ttable.setWidget(row, 0, appletHtml);\n\t\t\n\t\t\t\t\t\t\n\t\t//some random UI stuff to make everything nice and neat\n\t\tVerticalPanel panel = new VerticalPanel();\n\t\tFormUtil.maximizeWidget(panel);\n\t\tpanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);\n\t\tpanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\n\t\tpanel.add(table);\n\t\t\n\t\tsetWidget(panel);\n\t\t\n\t\tsetWidth(\"200px\");\t\t\n\t}", "public CustomDialog(Dialog owner, String title) {\n\t\tsuper(owner, title);\n\t\tinit();\n\t}", "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\t\tsetTitle(title);\n\t\tsetTitleImage(ResourceManager.getPluginImage(\"MultiType\", \"res/multitype-med.png\"));\n\t\tComposite area = (Composite) super.createDialogArea(parent);\n\t\tComposite container = new Composite(area, SWT.NONE);\n\t\tcontainer.setLayoutData(new GridData(GridData.FILL_BOTH));\n\t\t\n\t\ttxtMessage = new Text(container, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\n\t\ttxtMessage.setEditable(false);\n\t\ttxtMessage.setText(message);\n\t\ttxtMessage.setBounds(10, 10, 430, 90);\n\n\t\treturn area;\n\t}", "private void updateDialog() {\n for (int i = 0; i < NUMBER_OF_CARD_BACKGROUNDS; i++) {\n linearLayoutsBackgrounds[i].setBackgroundResource(i == selectedBackground ? R.drawable.settings_highlight : typedValue.resourceId);\n }\n\n for (int i = 0; i < NUMBER_OF_CARD_BACKGROUNDS; i++) {\n imageViews[i].setImageBitmap(bitmaps.getCardBack(i, selectedBackgroundColor));\n }\n\n for (int i = 0; i < 4; i++) {\n linearLayoutsColors[i].setBackgroundResource(i == selectedBackgroundColor ? R.drawable.settings_highlight : typedValue.resourceId);\n }\n }", "public interface DialogKonstanten {\n\n String HANDBOOK_TITLE = \"Bedienungsanleitung\";\n String HANDBOOK_HEADER = \"Tastenbelegung und Menüpunkte\";\n String HANDBOOK_TEXT = \"Ein Objekt kann über den Menüpunkt \\\"File -> Load File\\\" geladen werden.\\nZu Bewegung des Objektes wird die Maus verwendet.\\nRMB + Maus: Bewegen\\nLMB + Maus: Rotieren\\nEine Verbindung zu einem anderen Programm wir über den Menüpunkt Network aufgebaut. Der Server wird gestartet indem keine IP eingegeben wird und eine Verbindung zu einem Server wird erreicht indem die jeweilige IP-Adresse in das erste Textfeld eigegeben wird.\";\n\n}", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "private void configureComponents() {\n save.setStyleName(ValoTheme.BUTTON_PRIMARY);\n save.setClickShortcut(ShortcutAction.KeyCode.ENTER);\n setVisible(false);\n }", "public CustomDialog(Frame owner, String title) {\n\t\tsuper(owner, title);\n\t\tinit();\n\t}", "public static void OptionsComponents() {\n\t\tInterface.controls.setPreferredSize(Interface.dim);\n\t\tInterface.controls.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.controls.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.controls.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.controls.setForeground(Color.white);\n\t\t\n\t\tInterface.controls2.setPreferredSize(Interface.dim);\n\t\tInterface.controls2.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.controls2.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.controls2.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.controls2.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.sound.setPreferredSize(Interface.dim);\n\t\tInterface.sound.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.sound.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.sound.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.sound.setForeground(Color.white);\n\t\t\n\t\tInterface.soundOn.setPreferredSize(Interface.dim);\n\t\tInterface.soundOn.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.soundOn.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.soundOn.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.soundOn.setForeground(Color.white);\n\t\t\n\t\tInterface.soundOff.setPreferredSize(Interface.dim);\n\t\tInterface.soundOff.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.soundOff.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.soundOff.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.soundOff.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtomain.setPreferredSize(Interface.dim);\n\t\tInterface.backtomain.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtomain.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtomain.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtomain.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.save.setPreferredSize(Interface.dim);\n\t\tInterface.save.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.save.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.save.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.save.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.backtooptions.setPreferredSize(Interface.dim);\n\t\tInterface.backtooptions.setIcon(new ImageIcon(Interface.Button));\n\t\tInterface.backtooptions.setHorizontalTextPosition(JButton.CENTER);\n\t\tInterface.backtooptions.setVerticalTextPosition(JButton.CENTER);\n\t\tInterface.backtooptions.setForeground(Color.white);\n\t\t\n\t\t\n\t\tInterface.player1.setForeground(Color.white);\n\t\tInterface.player2.setForeground(Color.white);\n\t\tInterface.up1.setForeground(Color.white);\n\t\tInterface.up2.setForeground(Color.white);\n\t\tInterface.down1.setForeground(Color.white);\n\t\tInterface.down2.setForeground(Color.white);\n\t\tInterface.right1.setForeground(Color.white);\n\t\tInterface.right2.setForeground(Color.white);\n\t\tInterface.left1.setForeground(Color.white);\n\t\tInterface.left2.setForeground(Color.white);\n\t\tInterface.bomb1.setForeground(Color.white);\n\t\tInterface.bomb2.setForeground(Color.white);\n\t\tInterface.boxNumber.setForeground(Color.white);\n\t\tInterface.getUp1.setEditable(false);\n\t\tInterface.getUp2.setEditable(false);\n\t\tInterface.getDown1.setEditable(false);\n\t\tInterface.getDown2.setEditable(false);\n\t\tInterface.getRight1.setEditable(false);\n\t\tInterface.getRight2.setEditable(false);\n\t\tInterface.getLeft1.setEditable(false);\n\t\tInterface.getLeft2.setEditable(false);\n\t\tInterface.getBomb1.setEditable(false);\n\t\tInterface.getBomb2.setEditable(false);\n\t}", "private void setParameters(ConstMetaData metaData) {\n if (dialog == null) {\n return;\n }\n // Use GPU\n dialog.setUseGpuEnabled(Network.isLocalHostGpuProcessingEnabled(manager, axisID,\n manager.getPropertyUserDir()));\n dialog.setUseGpuSelected(metaData.isDefaultGpuProcessing());\n dialog.setBinning(metaData.getPosBinning(axisID));\n dialog.setSampleThickness(metaData.getSampleThickness(axisID));\n }", "public void Name_Setter() {\n Dialog<Pair<String, String>> dialog = new Dialog<>();\n dialog.setTitle(\"Developer Login\");\n FontAwesomeIconView icon = new FontAwesomeIconView(FontAwesomeIcon.EXPEDITEDSSL);\n icon.setGlyphSize(40);\n icon.setGlyphStyle(\"-fx-fill:green;\");\n\n dialog.setGraphic(icon);\n dialog.setHeaderText(\"Only Developers Authorised..\");\n\n //set Button types\n ButtonType lbutton = new ButtonType(\"Open\", ButtonData.NO);\n dialog.getDialogPane().getButtonTypes().addAll(lbutton, ButtonType.CANCEL);\n\n //create the username and password labels and fields\n GridPane grid = new GridPane();\n grid.setHgap(10);\n grid.setVgap(10);\n grid.setPadding(new Insets(0, 20, 10, 10));\n\n JFXTextField fld = new JFXTextField();\n fld.setPromptText(\"Developer email\");\n fld.setMinWidth(200);\n\n JFXPasswordField pfld = new JFXPasswordField();\n pfld.setPromptText(\"Developer Password\");\n\n Label infor = new Label(\"Enter Email and Password\");\n\n grid.add(fld, 2, 2);\n grid.add(pfld, 2, 5);\n grid.add(infor, 4, 8);\n\n dialog.getDialogPane().setContent(grid);\n\n Optional<Pair<String, String>> result = dialog.showAndWait();\n\n String pass = pfld.getText();\n String uname = fld.getText();\n\n if (pass.equals(\"erickerickyaah\") && uname.equals(\"[email protected]\")) {\n\n reportgenthree.ReportGenThree.NameSetter();\n\n } else {\n\n infor.setText(\"Wrong Password..\");\n }\n\n }", "public interface GlobalConstants {\n\n int DEFAULT_BITMAP_WIDTH = 200;\n int DEFAULT_BITMAP_HEIGHT = 200;\n\n String KEY_SCALING_VALUE = \"scalingValue\";\n String KEY_DIALOG_TITLE = \"dialogTitle\";\n String KEY_DIALOG_BACKGROUND_COLOUR = \"dialogBackgroundColour\";\n String KEY_DIALOG_TITLE_TEXT_COLOUR = \"dialogTitleTextColour\";\n String KEY_DIALOG_BUTTON_TEXT_COLOUR = \"dialogButtonTextColour\";\n String KEY_BITMAP_HEIGHT = \"bitmapHeight\";\n String KEY_BITMAP_WIDTH = \"bitmapWidth\";\n String KEY_DIRECTORY_NAME = \"directoryName\";\n\n String FORWARD_SLASH = \"/\";\n String HASH_SYMBOL = \"#\";\n String EXTENSION_JPG = \".jpg\";\n String EXTENSION_JPEG = \".jpeg\";\n String EXTENSION_PNG = \".png\";\n\n int DEFAULT_SCALING_VALUE = 300;\n String DEFAULT_DIALOG_TITLE = \"Choose image from:\";\n String DEFAULT_DIRECTORY_NAME = \"pik-a-pic\";\n int DEFAULT_BACKGROUND_COLOR = Color.parseColor(\"#FFFFFF\");\n int DEFAULT_DIALOG_TITLE_TEXT_COLOR = Color.parseColor(\"#787878\");\n int DEFAULT_DIALOG_BUTTON_TEXT_COLOR = Color.parseColor(\"#0C9B8E\");\n}", "private void showDialogPolygon1() {\n LayoutInflater inflater = getLayoutInflater();\n CardView cardView = (CardView) getLayoutInflater().inflate(R.layout.dialog_root,null);\n LinearLayout root = (LinearLayout) cardView.findViewById(R.id.linearLayout_root);\n //inflate each row that should be contained in the dialog box\n View rowAmount = inflater.inflate(R.layout.row_amount,null);\n View rowTelephone = inflater.inflate(R.layout.row_telephone,null);\n View rowText = inflater.inflate(R.layout.row_text,null);\n View rowButtons = inflater.inflate(R.layout.row_buttons,null);\n //add each row to the root\n root.addView(rowAmount);\n root.addView(rowTelephone);\n root.addView(rowText);\n root.addView(rowButtons);\n\n customDialog = new Dialog(getActivity());\n customDialog.requestWindowFeature(Window.FEATURE_NO_TITLE); // before\n customDialog.setContentView(cardView);\n customDialog.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));\n customDialog.setCancelable(true);\n\n\n final EditText editTextAmount = customDialog.findViewById(R.id.edit_text_amount);\n final EditText editTextNumber = customDialog.findViewById(R.id.edit_text_mobileNumber);\n ImageButton imageButton = customDialog.findViewById(R.id.selec_contact_ImageBtn);\n imageButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n contactPicker();\n }\n });\n\n\n ((Button) customDialog.findViewById(R.id.bt_okay)).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent hoverIntent = new HoverParameters.Builder(getActivity())\n .request(\"e0d94aec\")\n .style(R.style.BaseTheme)\n .extra(\"MobileNumber\", editTextNumber.getText().toString())\n .extra(\"Amount\", editTextAmount.getText().toString())\n .buildIntent();\n startActivityForResult(hoverIntent, 0);\n }\n\n });\n\n ((Button) customDialog.findViewById(R.id.bt_cancel)).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n customDialog.dismiss();\n }\n });\n\n\n customDialog.show();\n }", "public Dialog_create_new_group(java.awt.Frame parent, boolean modal, String mode, String path) {\n\n super(parent, modal);\n\n this.mode = mode;\n\n this.path = path;\n\n this.mode = mode;\n setLookAndFeel();\n\n initComponents();\n\n jButton4.setVisible(false);\n jTextField1.setText(\"\");\n\n if (mode.equalsIgnoreCase(\"edit\")) {\n java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle(\"create_new_group/Dialog_create_new_group\"); // NOI18N \n jButton1.setText(bundle.getString(\"SPEICHERN\"));\n\n setTitle(bundle.getString(\"TITLE\"));\n }\n\n String type = getElementType();\n jLabel15.setText(type);\n\n image32 = new ImageComponent();\n\n //URL url = this.getClass().getClassLoader().getResource(\"create_new_group/std_lib_icon_32.png\");\n String icon32=new File(FrameMain.elementPath + \"/std_lib_icon_32.png\").getAbsolutePath();\n\n image32.setFilename(icon32);\n image32.setLocation(0, 0);\n image32.setPreferredSize(new Dimension(40, 40));\n\n jPanel1.add(image32, BorderLayout.CENTER);\n\n // Fenster mittig anzeigen!\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width / 2 - this.getSize().width / 2, dim.height / 2 - this.getSize().height / 2);\n\n DateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n Date date = new Date();\n txtDate.setText(dateFormat.format(date));\n\n \n load(path);\n }", "public ValuesDialog(java.awt.Frame parent, boolean modal)\r\n {\r\n super(parent, modal);\r\n initComponents();\r\n initAll();\r\n }", "private void addContainerButton(){\n ContainerAddDialogNameTextfield.setText(\"\");\n ContainerAddDialog.setVisible(true);\n }", "public InfoDialog(String text, String title, String variant) {\r\n\t\tthis.setDialog(text, title, variant);\r\n\t}", "public void set(Object requestor, String field, JDialog comp);", "private void setUIFields(){\n setImage();\n setTitle();\n setLocation();\n setRatingBar();\n setDate();\n setISBN();\n setDescription();\n setPageCount();\n setNumRatings();\n }", "public FieldPrompt(Shell parentShell, String title, String prompt, String initialValue, ImageDescriptor dialogImageDescriptor) {\r\n\t\tsuper(parentShell);\r\n\t\tthis.title = title;\r\n\t\tthis.prompt = prompt;\r\n\t\tvalue = initialValue != null ? initialValue : \"\";\r\n\t\tif (dialogImageDescriptor != null) {\r\n\t\t\tdialogImage = dialogImageDescriptor.createImage();\r\n\t\t\tparentShell.addDisposeListener(new DisposeListener(){\r\n // Dispose of image\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetDisposed(DisposeEvent e) {\r\n\t\t\t\t\tdispose();\r\n\t\t\t\t}});\r\n\t\t\tsetTitleImage(dialogImage);\r\n\t\t}\r\n\t}", "public CustomDialog(Activity context, String mensaje, String parteVerde){\n dialog = new Dialog(context);\n dialog.setCanceledOnTouchOutside(false);\n dialog.setContentView(R.layout.dialog_sucees);\n TextView tvMensError = dialog.findViewById(R.id.tvMensSucces);\n tvMensError.setText(Html.fromHtml(mensaje + \"<font color='#072146'>\" + parteVerde + \"</font>\"));\n Button tvAceptar = dialog.findViewById(R.id.tvAceptar);\n tvAceptar.setOnClickListener(v -> {\n dialog.dismiss();\n });\n }", "@Override\r\n\tpublic void setParameterValuesToGUI() {\r\n\t\tthis.pb = this.workPackage.getParameters();\r\n\r\n\t\tjSpinnerLeft.removeChangeListener(this);\r\n\t\tjSpinnerRight.removeChangeListener(this);\r\n\t\tjSpinnerTop.removeChangeListener(this);\r\n\t\tjSpinnerBottom.removeChangeListener(this);\r\n\t\tjSpinnerConst.removeChangeListener(this);\r\n\r\n\t\tjSpinnerLeft.setValue(pb.getIntParameter(\"Left\"));\r\n\t\tjSpinnerRight.setValue(pb.getIntParameter(\"Right\"));\r\n\t\tjSpinnerTop.setValue(pb.getIntParameter(\"Top\"));\r\n\t\tjSpinnerBottom.setValue(pb.getIntParameter(\"Bottom\"));\r\n\t\tjSpinnerConst.setValue(pb.getIntParameter(\"Const\"));\r\n\r\n\t\tjSpinnerLeft.addChangeListener(this);\r\n\t\tjSpinnerRight.addChangeListener(this);\r\n\t\tjSpinnerTop.addChangeListener(this);\r\n\t\tjSpinnerBottom.addChangeListener(this);\r\n\t\tjSpinnerConst.addChangeListener(this);\r\n\r\n\t\tjSpinnerNewWidth.removeChangeListener(this);\r\n\t\tjSpinnerNewHeight.removeChangeListener(this);\r\n\t\tjSpinnerNewWidth.setValue(pb.getIntParameter(\"NewWidth\"));\r\n\t\tjSpinnerNewHeight.setValue(pb.getIntParameter(\"NewHeight\"));\r\n\t\tjSpinnerNewWidth.addChangeListener(this);\r\n\t\tjSpinnerNewHeight.addChangeListener(this);\r\n\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.ZERO) buttZero.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.CONSTANT) buttConst.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.COPY) buttCopy.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.REFLECT) buttReflect.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"Method\") == IqmOpBorderDescriptor.WRAP) buttWrap.setSelected(true);\r\n\r\n\t\tif (buttConst.isSelected()) {\r\n\t\t\tjSpinnerConst.setEnabled(true);\r\n\t\t} else {\r\n\t\t\tjSpinnerConst.setEnabled(false);\r\n\t\t}\r\n\r\n\t\tif (pb.getIntParameter(\"BorderOrSize\") == IqmOpBorderDescriptor.PREFERENCE_BORDER) buttBorder.setSelected(true);\r\n\t\tif (pb.getIntParameter(\"BorderOrSize\") == IqmOpBorderDescriptor.PREFERENCE_SIZE) buttSize.setSelected(true);\r\n\r\n\t}", "private void updateValue() {\n int type = -1;\n String name = null;\n Icon icon = null;\n if (rbProjectImages.isSelected()) {\n if (selectedFile != null) {\n name = FileUtil.getRelativePath(rootFolder, selectedFile);\n try {\n try {\n Image image = ImageIO.read(new File(selectedFile.getPath()));\n if (image != null) {\n icon = new ImageIcon(image);\n type = IconEditor.TYPE_FILE;\n } // no NbImageIcon will be created for invalid file\n } catch (IllegalArgumentException iaex) { // Issue 178906\n Logger.getLogger(CustomIconEditor.class.getName()).log(Level.INFO, null, iaex);\n icon = new ImageIcon(name);\n type = IconEditor.TYPE_FILE;\n }\n } catch (IOException ex) {\n Logger.getLogger(CustomIconEditor.class.getName()).log(Level.WARNING, null, ex);\n }\n }\n } else if (rbExternalImages.isSelected()) {\n if (selectedURL != null && !\"\".equals(selectedURL)) { // NOI18N\n type = IconEditor.TYPE_URL;\n name = selectedURL;\n try {\n try {\n Image image = ImageIO.read(new URL(selectedURL));\n if (image != null) {\n icon = new ImageIcon(image);\n type = IconEditor.TYPE_URL;\n }\n } catch (IllegalArgumentException iaex) { // Issue 178906\n Logger.getLogger(CustomIconEditor.class.getName()).log(Level.INFO, null, iaex);\n icon = new ImageIcon(new URL(selectedURL));\n }\n // for URL-based icon create NbImageIcon even if no icon can be loaded from the URL\n } catch (IOException ex) {\n Logger.getLogger(CustomIconEditor.class.getName()).log(Level.WARNING, null, ex);\n }\n }\n }\n\n ignoreSetValue = true;\n try {\n propertyEditor.setAsText(name);\n } finally {\n ignoreSetValue = false;\n }\n\n previewLabel.setIcon(icon);\n\n }", "@Override\r\n\tpublic void createControl(Composite parent) {\n\t\tinitializeDialogUnits(parent);\r\n\r\n\t\tint sectionStyle = Section.TITLE_BAR | Section.CLIENT_INDENT\r\n\t\t\t\t| Section.EXPANDED;\r\n\t\tSection section = toolkit.createSection(parent, sectionStyle);\r\n\t\tsection.setText(\"Bind all parameters to values\");\r\n\t\tsection.setLayout(new GridLayout());\r\n\t\tComposite comp = toolkit.createComposite(section);\r\n\t\tcomp.setLayout(new GridLayout(2, false));\r\n\r\n\t\tcomp.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL\r\n\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL));\r\n\t\tsection.setClient(comp);\r\n\t\tselectionLabel = toolkit.createLabel(comp, \"\");\r\n\t\tGridData gridData = new GridData(GridData.VERTICAL_ALIGN_FILL\r\n\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);\r\n\t\tgridData.horizontalSpan = 2;\r\n\t\tselectionLabel.setLayoutData(gridData);\r\n\r\n\t\tmainComp = comp;\r\n\t\t// PatternToProtocolExportWizard wizard =\r\n\t\t// (PatternToProtocolExportWizard) this\r\n\t\t// .getWizard();\r\n\t\t// assume there are not more than 10 parameters\r\n\t\tint max = 10;\r\n\t\t/*\r\n\t\t * for(CoordinationPattern pattern : wizard.getPatternList()) { int\r\n\t\t * parametersize = pattern.getPatternParameters().size();\r\n\t\t * if(parametersize > max) { max = parametersize; } }\r\n\t\t */\r\n\r\n\t\tif (max > Integer.MIN_VALUE) {\r\n\t\t\tfor (int i = 0; i < max; i++) {\r\n\t\t\t\tLabel l = toolkit.createLabel(mainComp, \"\");\r\n\t\t\t\tl.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL\r\n\t\t\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL\r\n\t\t\t\t\t\t| GridData.GRAB_HORIZONTAL));\r\n\t\t\t\tText t = toolkit.createText(mainComp, \"\");\r\n\r\n\t\t\t\tt.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL\r\n\t\t\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL\r\n\t\t\t\t\t\t| GridData.GRAB_HORIZONTAL));\r\n\t\t\t\tl.setVisible(true);\r\n\t\t\t\tt.setVisible(true);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tthis.setControl(section);\r\n\r\n\t}", "@Override\r\n\t protected void onPrepareDialog(int id, Dialog dialog) {\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t \tdialog.setTitle(\"Send Instant Message\");\r\n\t break;\r\n\t }\r\n\t }", "protected abstract JDialog createDialog();", "public SettingsPanelEmployee() {\n initComponents();\n \n setBackground (new Color (51, 51, 51)); \n \n bgGender.add(rbMale);\n bgGender.add(rbFemale);\n \n txtfAccountImageTextBox.setEditable(false);\n \n accountImageDialog.setUndecorated (true);\n accountImageDialog.getContentPane().setBackground(new Color (35, 35, 35));\n \n updateAccountInformation ();\n \n }", "public AlertDialog.Builder initCommonDialogPage(Context c,String str,Boolean isError){\n LayoutInflater inflater = (LayoutInflater) c.getSystemService( c.LAYOUT_INFLATER_SERVICE);\n final AlertDialog.Builder nameBuilder = new AlertDialog.Builder(c);\n View alertDiaView = inflater.inflate(R.layout.common_dialog_box,null);\n nameBuilder.setView(alertDiaView);\n\n txtVw = (TextView) alertDiaView.findViewById(R.id.textView27);\n bgBVw = (ImageView) alertDiaView.findViewById(R.id.bgBVw);\n iconvVw = (ImageView) alertDiaView.findViewById(R.id.iconvVw);\n txtTitle =(TextView) alertDiaView.findViewById(R.id.txtTitle);\n\n\n\n if(isError) {\n txtTitle.setText(R.string.error_dialogbox_title);\n txtVw.setText(str);\n iconvVw.setImageDrawable(c.getResources().getDrawable(R.drawable.icons8_error));\n nameBuilder.setPositiveButton(R.string.customaletdialog_initCommonDialogPage_posbtn, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n }\n\n if(!isError){\n txtTitle.setText(R.string.common_sucessful);\n txtVw.setText(str);\n iconvVw.setImageDrawable(c.getResources().getDrawable(R.drawable.icons8_ok));\n }\n\n nameBuilder.setNegativeButton(R.string.customaletdialog_initCommonDialogPage_negbtn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n\n\n\n return nameBuilder;\n }", "private void setAddVisitDialogUI(Frame parent, Point loc) {\n dialog = new JDialog(parent);\n dialog.setLocation(loc.x + 80, loc.y + 80);\n panel = new JPanel();\n panel.setBackground(new Color(248, 248, 251));\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n panel.add(Box.createVerticalStrut(20));\n\n message = new JPanel();\n text = new JLabel(\"Add visit\");\n\n text.setFont(new Font(\"Nunito\", Font.PLAIN, 14));\n\n message.setBackground(null);\n message.add(text);\n panel.add(message);\n panel.add(Box.createVerticalStrut(20));\n }", "public BTextPairSettings(String button_title, String text_title){\n\t\tsuper(button_title, text_title);\n\t//\tbutton.addActionListener(this);\n\t\t\n\t}", "void generar_dialog_preguntas();", "public void Skills(View v) {\n TextView txtclose;\n Button btn;\n myDialog.setContentView(R.layout.skills);\n txtclose = (TextView) myDialog.findViewById(R.id.txtclose);//exit the dialog\n txtclose.setText(\"X\");//edit the text in close textbox\n txtclose.setOnClickListener(new View.OnClickListener() {//listener\n @Override\n public void onClick(View v) {\n myDialog.dismiss();//call the popup message\n }\n });\n myDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));//editable in xml\n myDialog.show();//to show\n\n }", "public void addText(String str) {\r\n\t\tdialog.setText(dialog.getText()+str);\r\n\t}", "private void init() {\n\t\tthis.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\t\tthis.setSize(350, 300);\n\t\tthis.setResizable(false);\n\t\tlbl1.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl2.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl3.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl4.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl5.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl6.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl7.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tbtncanel.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tbtnsave.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\t\n\t\tpnlInfo.setBounds(10,5,320,220);\n//\t\tpnlInfo.setBackground(Color.cyan);\n//\t\tpnlMain.setBackground(Color.green);\n//\t\tbtnsave.setBackground(Color.pink);\n//\t\tbtncanel.setBackground(Color.yellow);\n\t\tbtnsave.setBounds(120, 230, 70, 25);\n\t\tbtncanel.setBounds(210, 230, 70, 25);\n\t\t\n\t\tbtncanel.addActionListener(new AddRederTypeFrame_btncanel_ActionListener(this));\n\t\tbtnsave.addActionListener(new AddRederTypeFrame_btnsave_ActionListener(this));\n\t\t\n//\t\tpnlInfo.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, Color.cyan));\n\t\t\n\t\tpnlInfo.add(lbl1);\n\t\tpnlInfo.add(txtname);\n\t\tpnlInfo.add(lbl2);\n\t\tpnlInfo.add(txtcount);\n\t\tpnlInfo.add(lbl3);\n\t\tpnlInfo.add(txtdate);\n\t\tpnlInfo.add(lbl4);\n\t\tpnlInfo.add(txtmtp);\n\t\tpnlInfo.add(lbl5);\n\t\tpnlInfo.add(txtstcharge);\n\t\tpnlInfo.add(lbl6);\n\t\tpnlInfo.add(txtoutcharge);\n\t\tpnlInfo.add(lbl7);\n\t\tpnlInfo.add(txtqty);\n\t\t\n\t\tpnlMain.add(pnlInfo);\n\t\tpnlMain.add(btnsave);\n\t\tpnlMain.add(btncanel);\n\t\tthis.add(pnlMain);\n\t\tthis.setTitle(\"新增用户\");\n\t\tGlobal.setCenterByWindow(this);\n\t\tthis.setVisible(true);\n\t}", "public ScrFontImportDialog(DictCore _core) {\n super(_core);\n this.setModal(true);\n initComponents();\n setupListeners();\n }", "protected abstract void setGUIAttributesHelper();", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater layoutInflater = getActivity().getLayoutInflater();\n final View view = layoutInflater.inflate(R.layout.save_set_dialog, null);\n builder.setView(view);\n builder.setTitle(\"Save Set\");\n builder.setPositiveButton(\"Save\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // overwritten below\n }\n });\n\n builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n SaveSetDialog.this.getDialog().cancel();\n }\n });\n\n final AlertDialog saveSetDialog = builder.show();\n\n int buttonTextColor = ContextCompat.getColor(getActivity(), R.color.colorAccent);\n\n Button positiveButton = saveSetDialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(buttonTextColor);\n\n Button negativeButton = saveSetDialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(buttonTextColor);\n saveSetDialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);\n\n DisplayMetrics displayMetrics = new DisplayMetrics();\n getActivity().getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n int width = displayMetrics.widthPixels;\n int widthDialog = (int) Math.floor(width*0.85);\n\n saveSetDialog.getWindow().setLayout(widthDialog, WindowManager.LayoutParams.WRAP_CONTENT);\n\n saveSetDialog.getButton(AlertDialog.BUTTON_POSITIVE).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n boolean closeDialog = false;\n\n EditText setName = (EditText) view.findViewById(R.id.setNameEditText);\n\n final int defaultColor = setName.getCurrentHintTextColor();\n setName.setHintTextColor(defaultColor);\n\n String setNameString = setName.getText().toString().trim();\n\n int redColor = Color.rgb(229, 57, 53);\n\n if (setNameString.length() == 0) {\n setName.setHintTextColor(redColor);\n Toast toast = Toast.makeText(getActivity(), \"Insert set name.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }\n else if (duplicateSetName(setNameString)) {\n Toast toast = Toast.makeText(getActivity(), \"Set name in use.\", Toast.LENGTH_SHORT);\n toast.show();\n }\n else {\n Set setCopy = (Set) deepClone(SetManager.getInstance().getCurrentSet());\n if (setCopy != null){\n setCopy.setName(setNameString);\n SetManager.getInstance().getSets().add(setCopy);\n }\n\n else {\n Toast toast = Toast.makeText(getActivity(), \"Error saving set.\", Toast.LENGTH_SHORT);\n toast.show();\n }\n\n\n closeDialog = true;\n }\n\n if(closeDialog) {\n saveSetDialog.dismiss();\n }\n }\n });\n\n return saveSetDialog;\n }", "public void setEditButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_editButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_editButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_editButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setEditButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void setNewButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_newButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_newButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_newButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setNewButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void applyI18n(){\r\n // Start autogenerated code ----------------------\r\n jButton1.setText(I18n.getString(\"passwordDialog.button1\",\"Ok\"));\r\n jButton2.setText(I18n.getString(\"passwordDialog.button2\",\"Cancel\"));\r\n jLabel2.setText(I18n.getString(\"passwordDialog.label2\",\"Password\"));\r\n // End autogenerated code ----------------------\r\n this.setTitle(I18n.getString(\"passwordDialog.title\",\"Database password\"));\r\n jButton1.setMnemonic(I18n.getString(\"passwordDialog.button1Mnemonic\",\"o\").charAt(0));\r\n jButton2.setMnemonic(I18n.getString(\"passwordDialog.button2Mnemonic\",\"c\").charAt(0));\r\n }", "@Override\n \tpublic void onClick(DialogInterface dialog, int which) {\n myPref.setSummary(items[which]);\n switch(which)\n {\n case 0:\n editor.putInt(\"Theme\",R.style.AppThemeRed);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 1:\n editor.putInt(\"Theme\",R.style.AppThemeBlue);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 2:\n editor.putInt(\"Theme\",R.style.AppThemePurple);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 3:\n editor.putInt(\"Theme\",R.style.AppThemeGreen);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 4:\n editor.putInt(\"Theme\",R.style.AppThemeOrange);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n case 5:\n editor.putInt(\"Theme\",R.style.AppThemeGrey);\n editor.putInt(\"Choice\",which);\n editor.commit();\n break;\n }\n\n \t}", "private void initializeDisplayText() {\n // Title and field labels\n Stage stage = (Stage) titleLabel.getScene().getWindow();\n stage.setTitle(rb.getString(\"windowTitle\"));\n if (action.equals(Constants.ADD)) {\n titleLabel.setText(rb.getString(\"addTitleLabel\"));\n } else if (action.equals(Constants.UPDATE)) {\n titleLabel.setText(rb.getString(\"updateTitleLabel\"));\n }\n idLabel.setText(rb.getString(\"idLabel\"));\n nameLabel.setText(rb.getString(\"nameLabel\"));\n addressLabel.setText(rb.getString(\"addressLabel\"));\n cityLabel.setText(rb.getString(\"cityLabel\"));\n countryLabel.setText(rb.getString(\"countryLabel\"));\n divisionLabel.setText(rb.getString(\"divisionLabel\"));\n postalLabel.setText(rb.getString(\"postalLabel\"));\n phoneLabel.setText(rb.getString(\"phoneLabel\"));\n\n // Prompt text\n idField.setPromptText(rb.getString(\"idPrompt\"));\n nameField.setPromptText(rb.getString(\"namePrompt\"));\n addressField.setPromptText(rb.getString(\"addressPrompt\"));\n cityField.setPromptText(rb.getString(\"cityPrompt\"));\n countryComboBox.setPromptText(rb.getString(\"countryPrompt\"));\n divisionComboBox.setPromptText(rb.getString(\"divisionPrompt\"));\n postalField.setPromptText(rb.getString(\"postalPrompt\"));\n phoneField.setPromptText(rb.getString(\"phonePrompt\"));\n\n // Button labels\n Common.scaleButton(saveBtn, rb.getString(\"saveBtn\"));\n Common.scaleButton(cancelBtn, rb.getString(\"cancelBtn\"));\n\n // Error label; initially blank\n errorLabel.setText(\"\");\n }", "private void MoodRatingAddNoteConfirmDialog() {\n final Dialog dialog = new Dialog(getActivity());\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n // Include dialog.xml file\n dialog.setContentView(R.layout.lay_moodratings_addnote);\n // Set dialog TV_TITLE\n dialog.setTitle(\"Custom Dialog\");\n\n // set values for custom dialog components - text, image and button\n TextView _tvNo = (TextView) dialog.findViewById(R.id.tvNo);\n TextView _tvYes = (TextView) dialog.findViewById(R.id.tvYes);\n\n dialog.show();\n _tvNo.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n }\n });\n\n _tvYes.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss();\n MoodRatingAddNoteDialog();\n }\n });\n }", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "private AssignFSADialog() {\r\n super(Hub.getMainWindow(), Hub.string(\"TD_assignFSATitle\"));\r\n addWindowListener(new WindowAdapter() {\r\n @Override\r\n public void windowClosing(WindowEvent e) {\r\n onEscapeEvent();\r\n }\r\n });\r\n this.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\r\n this.setMinimumSize(new Dimension(300, 10));\r\n\r\n Box mainBox = Box.createHorizontalBox();\r\n mainBox.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));\r\n Box newBox = Box.createVerticalBox();\r\n newBox.add(new JLabel(\" \"));\r\n newBox.add(new JButton(new NewFSAAction()));\r\n mainBox.add(newBox);\r\n\r\n mainBox.add(Box.createRigidArea(new Dimension(5, 0)));\r\n\r\n openModelsCombo = new JComboBox();\r\n openModelsCombo.setRenderer(new JLabelListRenderer());\r\n Box modelsBox = Box.createVerticalBox();\r\n Box titleBox = Box.createHorizontalBox();\r\n titleBox.add(new JLabel(Hub.string(\"TD_openModels\")));\r\n titleBox.add(Box.createHorizontalGlue());\r\n modelsBox.add(titleBox);\r\n modelsBox.add(openModelsCombo);\r\n mainBox.add(modelsBox);\r\n\r\n mainBox.add(Box.createRigidArea(new Dimension(5, 0)));\r\n\r\n templatesCombo = new JComboBox();\r\n templatesCombo.setRenderer(new JLabelListRenderer());\r\n Box templatesBox = Box.createVerticalBox();\r\n titleBox = Box.createHorizontalBox();\r\n titleBox.add(new JLabel(Hub.string(\"TD_templates\")));\r\n titleBox.add(Box.createHorizontalGlue());\r\n templatesBox.add(titleBox);\r\n templatesBox.add(templatesCombo);\r\n mainBox.add(templatesBox);\r\n\r\n getContentPane().add(mainBox);\r\n\r\n }", "public SceneLabelObjectState(SceneObjectState state){\n\t\tsuper(state);\n\t\tsuper.setObjectsPrimaryType(SceneObjectType.Label);\n\t\t//super.getCurrentType()=SceneObjectType.DialogBox;\n\t\t//super.setObjectsOnlyType(SceneObjectType.DialogBox); //we don't set this anymore as subclasses may set this themselves!\n\n\t\t//Clear css parameters from general settings passed to this\n\t\t//This is because Dialogue objects treats these differently.\n\t\t//We fill them up correctly when the dialogue specific stuff is processed\n\t\tCurrentBoxCSS=\"\";\n\n\t}", "public AnnotateMotifsDialog(MotifLabGUI gui) {\n super(gui.getFrame(), true);\n setTitle(\"Update Motif Properties\");\n this.gui=gui;\n initComponents();\n \n // fix accelerators\n javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(motiflab.gui.MotifLabApp.class).getContext().getActionMap(AnnotateMotifsDialog.class, this);\n javax.swing.Action ac=actionMap.get(\"promptUseNewValue\"); \n promptUseNewValueButton.getActionMap().put(\"promptUseNewValue\", ac);\n promptUseNewValueButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('n'), \"promptUseNewValue\"); \n ac=actionMap.get(\"promptKeepOldValue\"); \n promptKeepCurrentValueButton.getActionMap().put(\"promptKeepOldValue\", ac);\n promptKeepCurrentValueButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('c'), \"promptKeepOldValue\"); \n ac=actionMap.get(\"promptMergeOrReplaceCurrent\"); \n promptMergeOrUseNewButton.getActionMap().put(\"promptMergeOrReplaceCurrent\", ac);\n promptMergeOrUseNewButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('m'), \"promptMergeOrReplaceCurrent\"); \n ac=actionMap.get(\"promptMergeOrKeepCurrent\"); \n promptMergeOrKeepCurrentButton.getActionMap().put(\"promptMergeOrKeepCurrent\", ac);\n promptMergeOrKeepCurrentButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('k'), \"promptMergeOrKeepCurrent\"); \n \n String[] userdefined=Motif.getAllUserDefinedProperties(gui.getEngine());\n String[] standard=Motif.getAllStandardProperties(false);\n String[] knownproperties=new String[standard.length+userdefined.length];\n System.arraycopy(standard, 0, knownproperties, 0, standard.length); // leave first position blank\n System.arraycopy(userdefined, 0, knownproperties, standard.length, userdefined.length);\n Arrays.sort(knownproperties); \n DefaultComboBoxModel propertyModel=new DefaultComboBoxModel(knownproperties);\n DefaultComboBoxModel combineStrategyModel=new DefaultComboBoxModel(new String[]{MERGE_OR_REPLACE_CURRENT,MERGE_OR_KEEP_CURRENT,REPLACE_CURRENT, INTERACTIVE_MODE});\n propertyCombobox.setModel(propertyModel);\n propertyCombobox.setEditable(true);\n propertyCombobox.setSelectedItem(standard[0]);\n combineStrategyCombobox.setModel(combineStrategyModel);\n ArrayList<DataFormat> dataformats=gui.getEngine().getDataInputFormats(MotifCollection.class);\n loadFromFilePanel=new LoadFromFilePanel(dataformats,gui,MotifCollection.class);\n importCollectionTab.add(loadFromFilePanel,BorderLayout.CENTER);\n pack();\n contextmenu=new ParseListContextMenu();\n parseListTextArea.addMouseListener(new MouseAdapter(){\n @Override\n public void mousePressed(MouseEvent e) {\n if (e.isPopupTrigger()) contextmenu.show(e.getComponent(),e.getX(),e.getY());\n }\n @Override\n public void mouseReleased(MouseEvent e) {\n if (e.isPopupTrigger()) contextmenu.show(e.getComponent(),e.getX(),e.getY());\n }\n });\n parseListTextArea.requestFocusInWindow();\n }", "public InfoDialog(String text, String title) {\r\n\t\tthis.setDialog(text, title);\r\n\t}", "private void initPlayers() {\n UIManager.put(\"Panel.background\", LIGHT_GRAY);\n UIManager.put(\"OptionPane.background\", LIGHT_GRAY);\n\n JOptionPane pane = new JOptionPane();\n JDialog dialog = pane.createDialog(\"\");\n dialog.setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);\n\n JButton onePlayer = createButton(\"1P\", dialog);\n JButton twoPlayer = createButton(\"2P\", dialog);\n Object option[] = {onePlayer, Box.createRigidArea(new Dimension(20,0)), twoPlayer};\n\n JPanel panel = new JPanel(new BorderLayout());\n pane.setMessage(panel);\n pane.setOptions(option);\n\n dialog.setSize(new Dimension(150, 100));\n dialog.setLocationRelativeTo(null);\n dialog.setVisible(true);\n }", "public void initComponents(){\t\r\n\t\tsetName(\"dialog01\");\r\n\t\tsetTitle(\"Candle Exercise\");\r\n\t\tsetBounds(100, 100, 356, 300);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\tFont font = new Font(\"Tahoma\", Font.PLAIN, 13);\r\n\r\n\t\tbtnCurrent = new JButton(\"Show Labels\");\r\n\t\tbtnCurrent.setToolTipText(\"shows current best data saved\");\r\n\t\tbtnCurrent.setFont(new Font(\"Tahoma\", Font.PLAIN, 13));\r\n\t\tbtnCurrent.setFocusPainted(false);\r\n\t\tbtnCurrent.setBounds(68, 77, 214, 88);\r\n\t\tcontentPanel.add(btnCurrent);\r\n\r\n\t}", "public TextButton (BufferedImage bi)\n { \n updateValue(bi);\n }", "public void initButtons() {\n\t\tcomponents.clear();\n\t\t\n\t\tImageButton rename = new ImageButton(width - 124, 0, 45, 45);\n\t\trename.setTexture(\"/graphics/textures/ui/Rename.png\");\n\t\trename.disabledColor = IGuiElement.gray;\n\t\trename.setClickEvent(new IGuiEvent() {\n\t\t\t@Override\n\t\t\tpublic void trigger() {\n\t\t\t\tfinal InputField name = new InputField(0, 0, 0, Game.client.getUsername(), Tr._(\"username\"));\n\t\t\t\tDialog dialog = new Dialog(Tr._(\"namechange\"), \"\", new Action(Tr._(\"cancel\"), Dialog.CLOSE_EVENT), new Action(Tr._(\"ok\"), new IGuiEvent() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void trigger() {\n\t\t\t\t\t\tnew Thread() {\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\tGame.currentGame.getActiveScene().lockScene();\n\t\t\t\t\t\t\t\tString oldUsername = Game.client.getUsername();\n\t\t\t\t\t\t\t\tGame.client.renameClient(name.getText());\n\t\t\t\t\t\t\t\twhile (Game.client.getUsername().equals(oldUsername)) {\n\t\t\t\t\t\t\t\t\tif (Game.client.isRejected()) {\n\t\t\t\t\t\t\t\t\t\tGame.currentGame.getActiveScene().unlockScene();\n\t\t\t\t\t\t\t\t\t\tGame.currentGame.addScene(new Dialog(Tr._(\"error\"), Tr._(\"mp.reject.\" + Game.client.getRejectionCause().name().toLowerCase()), new Action(Tr._(\"close\"),\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tDialog.CLOSE_EVENT)));\n\t\t\t\t\t\t\t\t\t\tGame.client.resetRejection();\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tGame.currentGame.getActiveScene().unlockScene();\n\t\t\t\t\t\t\t\tGame.currentGame.removeActiveScene();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}.start();\n\t\t\t\t\t}\n\t\t\t\t}));\n\t\t\t\tname.setWidth(dialog.getWidth() - 50);\n\t\t\t\tdialog.addComponent(name);\n\t\t\t\tGame.currentGame.addScene(dialog);\n\t\t\t}\n\t\t});\n\t\tadd(rename);\n\t\t\n\t\tImageButton kick = new ImageButton(width - 124, 36, 45, 45);\n\t\tkick.setTexture(\"/graphics/textures/ui/Logout.png\");\n\t\tkick.disabledColor = IGuiElement.gray;\n\t\tkick.setClickEvent(new IGuiEvent() {\n\t\t\t@Override\n\t\t\tpublic void trigger() {\n\t\t\t\tDialog dialog = new Dialog(Tr._(\"kick\"), Tr._(\"kickquestion\").replace(\"%player%\", p.getUsername()), new Action(Tr._(\"cancel\"), Dialog.CLOSE_EVENT),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew Action(Tr._(\"ok\"), new IGuiEvent() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void trigger() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGame.client.sendPacket(new Packet1Disconnect(p.getUsername(), \"mp.reason.kicked\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGame.currentGame.removeActiveScene();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}));\n\t\t\t\tGame.currentGame.addScene(dialog);\n\t\t\t}\n\t\t});\n\t\tadd(kick);\n\t\t\n\t\tint nw = 190;\n\t\tfloat ratio = TextButton.HEIGHT / (float) TextButton.WIDTH;\n\t\tfinal TextButton ready = new TextButton(width - 128 - nw / 2, 15, Tr._(\"ready\"));\n\t\tready.setWidth(nw);\n\t\tready.setHeight((int) (ratio * nw));\n\t\tready.setToggleMode(true);\n\t\tready.setClickEvent(new IGuiEvent() {\n\t\t\t@Override\n\t\t\tpublic void trigger() {\n\t\t\t\ttry {\n\t\t\t\t\tp.setReady(ready.isActive());\n\t\t\t\t\tGame.client.sendPacket(new Packet6Player(p));\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tadd(ready);\n\t\t\n\t\tColorLabel c = new ColorLabel(width - 400, 1, height - 20, p.getColor());\n\t\tc.grayOnDisable = false;\n\t\tadd(c);\n\t}", "public void setContent(String title, String[] buttonStrings, String labelText, String iconLocation) {\n\t\tresult = -1;\n\t\tsetTitle(title);\n\t\tif(!this.iconLocation.equals(iconLocation)){\n\t\t\tthis.iconLocation = iconLocation;\n\t\t\tURL url = this.getClass().getResource(iconLocation);\n\t\t\tImageIcon butIcon = new ImageIcon(url);\n\t\t\tlabel.setIcon(butIcon);\n\t\t}\n\n//\t\tif(numberOfButtons != buttonStrings.length) {\n\t\t\tcontrolPane.removeAll();\n\t\t\tnumberOfButtons = buttonStrings.length;\n\t\t\tif(numberOfButtons >= 1) {\n\t\t\t\tbutton1 = new JButton(buttonStrings[0]);\n\t\t\t\tbutton1.addActionListener(buttonListener);\n\t\t\t\tcontrolPane.add(button1);\n\t\t\t}\n\t\t\tif(numberOfButtons >= 2) {\n\t\t\t\tbutton2 = new JButton(buttonStrings[1]);\n\t\t\t\tbutton2.addActionListener(buttonListener);\n\t\t\t\tcontrolPane.add(button2);\n\t\t\t}\n\t\t\tif(numberOfButtons >= 3) {\n\t\t\t\tbutton3 = new JButton(buttonStrings[2]);\n\t\t\t\tbutton3.addActionListener(buttonListener);\n\t\t\t\tcontrolPane.add(button3);\n\t\t\t}\n//\t\t}\n\t\t// size it properly\n\t\tint maxWidth = 450;\n\t\tint length = labelText.length()*12+70;\n\t\tint extraLines = length/maxWidth;\n\t\tint height = 120+extraLines*20;\n\t\tsetBounds(200,200,Math.min(length, maxWidth), height);\n\t\t// set the label text\n\t\tlabelArea.setText(labelText);\n\t\trepaint(0l);\n\t\tvalidate();\n\t\t//pack();\n\t}", "private void initDialogView(View dialogView) {\n btnTidak = (Button) dialogView.findViewById(R.id.btnTidak);\n btnYa = (Button) dialogView.findViewById(R.id.btnYa);\n imgClosePopup = (ImageView) dialogView.findViewById(R.id.imgClosePopup);\n txtTitle = (TextView) dialogView.findViewById(R.id.txtTitle);\n iconTitle = (ImageView) dialogView.findViewById(R.id.iconTitle);\n }", "@Override\n public void onShow(DialogInterface dialogInterface) {\n dialog.getButton(DialogInterface.BUTTON_POSITIVE).setBackgroundColor(0xFF609000);\n dialog.getButton(DialogInterface.BUTTON_POSITIVE).setTextColor(Color.WHITE);\n // Change the negative button to red color with white text\n dialog.getButton(DialogInterface.BUTTON_NEGATIVE).setBackgroundColor(0xFFC00000);\n dialog.getButton(DialogInterface.BUTTON_NEGATIVE).setTextColor(Color.WHITE);\n }", "public PropertyCustomEditorPanel(Component client, JDialog dialog)\n {\n initComponents();\n\n this.dialog = dialog;\n\n panel_clientArea.add(client, BorderLayout.CENTER);\n }", "private void initComponents() {\n // Create the RGB and the HSB radio buttons.\n createRgbHsbButtons();\n\n \n \n ColorData initial = new ColorData(new RGB(255, 255, 255), 255);\n\n // Create the upper color wheel for the display.\n upperColorWheel = new ColorWheelComp(shell, this, upperWheelTitle);\n // upperColorWheel.setColor(colorArray.get(0));\n upperColorWheel.setColor(initial);\n\n // Create the color bar object that is displayed\n // in the middle of the dialog.\n colorBar = new ColorBarViewer(shell, this, sliderText, cmapParams);\n\n // Create the lower color wheel for the display.\n lowerColorWheel = new ColorWheelComp(shell, this, lowerWheelTitle);\n // lowerColorWheel.setColor(colorArray.get(colorArray.size() - 1));\n lowerColorWheel.setColor(initial);\n\n // Create the bottom control buttons.\n createBottomButtons();\n }", "public void CustomAlertSave2(String msg) {\n\t\tfinal Dialog dialog = new Dialog(context);\r\n\t\t// hide to default title for Dialog\r\n\t\tdialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\r\n\t\t// inflate the layout dialog_layout.xml and set it as contentView\r\n\t\tLayoutInflater inflater = (LayoutInflater) context\r\n\t\t\t\t.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\r\n\t\tView view = inflater.inflate(R.layout.dialog_layout, null, false);\r\n\t\tdialog.setCanceledOnTouchOutside(true);\r\n\t\tdialog.setContentView(view);\r\n\t\tdialog.getWindow().setBackgroundDrawable(new ColorDrawable(0));\r\n\t\tTextView txtTitle = (TextView) dialog\r\n\t\t\t\t.findViewById(R.id.txt_alert_message);\r\n\t\ttxtTitle.setText(msg);\r\n\r\n\t\tButton btn_ok = (Button) dialog.findViewById(R.id.btn_ok);\r\n\t\tbtn_ok.setOnClickListener(new android.view.View.OnClickListener() {\r\n\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tdialog.dismiss();\r\n\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\tdialog.show();\r\n\t}", "ColorSelectionDialog() {\n initComponents();\n }", "private void dialog() {\n\t\tGenericDialog gd = new GenericDialog(\"Bildart\");\n\t\t\n\t\tgd.addChoice(\"Bildtyp\", choices, choices[0]);\n\t\t\n\t\t\n\t\tgd.showDialog();\t// generiere Eingabefenster\n\t\t\n\t\tchoice = gd.getNextChoice(); // Auswahl uebernehmen\n\t\t\n\t\tif (gd.wasCanceled())\n\t\t\tSystem.exit(0);\n\t}", "@Override\n public void onCancel(DialogInterface dialogInterface) {\n try {\n InputManager.mTeamNum = AppUtils.StringToInt(et_overrideTeamNum.getText().toString());\n } catch (Exception e) {\n }\n\n //Sets team color to whatever is selected in override\n if (rb_red.isChecked()) {\n InputManager.mAllianceColor = \"red\";\n } else if (rb_blue.isChecked()) {\n InputManager.mAllianceColor = \"blue\";\n }\n\n //Saves data inputted in override\n InputManager.storeUserData();\n MainActivity.updateUserData();\n }", "private void init (){\n ///compoennetes\n // cuadros de texto\n txCodigo = new JTextField(10);\n txNombre = new JTextField(10);\n // etiquetas\n lbCodigo = new JLabel(\"codigo: \");\n lbNombre = new JLabel(\"nombre: \");\n // boton \n btAcpetar = new JButton(\"aceptar\");\n btAcpetar.setToolTipText(\"realizar insert\");\n btAcpetar.addActionListener(this);\n // paneles contenedores\n JPanel pCodigo = new JPanel();\n JPanel pNombre = new JPanel();\n // cambio de layout\n BoxLayout bx = new BoxLayout(this.getContentPane(), BoxLayout.PAGE_AXIS);\n this.setLayout(bx);\n // annadir a los paneles\n pCodigo.add(lbCodigo);\n pCodigo.add(txCodigo);\n pNombre.add(lbNombre);\n pNombre.add(txNombre);\n // annadir al dialogo\n add(pCodigo);\n add(pNombre);\n add(btAcpetar);\n }", "private void setComponents(String title,String category, String description, int image){\n // Settings values\n //txttitle.setText(title);\n txtdescription.setText(description);\n txtcategory.setText(category);\n //img.setImageResource(image);\n collapsingToolbarLayout.setBackgroundResource(image);\n collapsingToolbarLayout.setTitle(title);\n }", "public void alertDialogBasico() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\r\n // 2. Encadenar varios métodos setter para ajustar las características del diálogo\r\n builder.setMessage(R.string.dialog_message);\r\n\r\n\r\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n\r\n }\r\n });\r\n\r\n\r\n builder.show();\r\n\r\n }", "public void showCustomDialog() {\n ViewGroup viewGroup = root.findViewById(((ViewGroup)getView().getParent()).getId());\n\n //then we will inflate the custom alert dialog xml that we created\n final View dialogView = LayoutInflater.from(getContext()).inflate(R.layout.change_icon_dialogue_box, viewGroup, false);\n\n\n\n Button close=(Button)dialogView.findViewById(R.id.buttonOk);\n\n\n\n //Now we need an AlertDialog.Builder object\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n\n //setting the view of the builder to our custom view that we already inflated\n builder.setView(dialogView);\n\n //finally creating the alert dialog and displaying it\n final AlertDialog alertDialog = builder.create();\n alertDialog.show();\n close.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alertDialog.cancel();\n }\n });\n\n }", "@Override\n\tpublic void setDialogContent(AlertDialog dialog, int layoutId,\n\t\t\tString content, String id) {\n\t\t\n\t}", "@Override\n\tpublic void setDialogContent(AlertDialog dialog, int layoutId,\n\t\t\tString content, String id) {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n textField = new javax.swing.JTextField();\n buttonOK = new javax.swing.JButton();\n imageLabel = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Info\");\n setLocation(new java.awt.Point(1000, 560));\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n textField.setEditable(false);\n\n buttonOK.setText(\"OK\");\n buttonOK.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n buttonOKActionPerformed(evt);\n }\n });\n\n imageLabel.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\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(imageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(textField)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 123, Short.MAX_VALUE)\n .addComponent(buttonOK)\n .addGap(117, 117, 117))))\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.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(textField, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(buttonOK))\n .addComponent(imageLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\r\n\t protected void onPrepareDialog(int id, Dialog dialog) {\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t \tdialog.setTitle(\"Job Details\");\r\n\t \tButton myButton = new Button(this);\r\n\t \tmyButton.setText(\"Cancel\");\r\n\t \tmyButton.setBackgroundColor(Color.parseColor(\"#ff4c67\"));\r\n\t \tmyButton.setTextColor(Color.parseColor(\"#ffffff\"));\r\n\t \tRelativeLayout datlis = (RelativeLayout)screenDialog.findViewById(R.id.datalist01);\r\n\t \tLayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT);\r\n\t \tlp.addRule(RelativeLayout.BELOW, list.getId());\r\n\t \tdatlis.addView(myButton, lp);\r\n\t \tmyButton.setOnClickListener(dismissscreen);\r\n\t \t\r\n\t break;\r\n\t }\r\n\t }", "public TextHandler(ArrayList<Text> thisDialog){\r\n\t\tthis.thisDialog = thisDialog;\r\n\t\toptionSelection = null;\r\n\t\tdialogToDisplay=0;\r\n\t\tqueuedDialog=0;\r\n\t\tdone=false;\r\n\t\tfor (int i=0;i<thisDialog.size();i++){\r\n\t\t\tif (thisDialog.get(i).isOption()){\r\n\t\t\t\tOption tOption = (Option) thisDialog.get(i);\r\n\t\t\t\ttOption.parse(tOption.getValueTemp(), tOption.getOptionTemp(),50,750);\r\n\t\t\t}\r\n\t\t\tthisDialog.get(i).prepare(50,0,Text.BOTTOM,750);\t\r\n\t\t}\r\n\t}", "public EditDialog(Context context, MSDialog dialog)\n {\n super(context);\n \n this.ecu = ApplicationSettings.INSTANCE.getEcuDefinition();\n this.dialog = dialog;\n }" ]
[ "0.64659226", "0.6296893", "0.6255974", "0.6219193", "0.6148014", "0.6080608", "0.6077536", "0.60570955", "0.60235417", "0.6011956", "0.6000866", "0.5969911", "0.59626794", "0.5952224", "0.59514004", "0.5950285", "0.594453", "0.59416157", "0.5907237", "0.588258", "0.58681405", "0.58676004", "0.58561236", "0.58554167", "0.5840917", "0.5833899", "0.583275", "0.5809857", "0.57922906", "0.5791238", "0.57851696", "0.5776154", "0.5759885", "0.5759524", "0.5757615", "0.57360715", "0.5719881", "0.5698337", "0.5680683", "0.5678754", "0.56714153", "0.5665995", "0.56589514", "0.56515086", "0.5624851", "0.56236756", "0.5618895", "0.5607154", "0.5606585", "0.5604113", "0.5602406", "0.55976826", "0.5590017", "0.5587954", "0.5574146", "0.55707663", "0.5570669", "0.5569117", "0.55567014", "0.55465144", "0.55451655", "0.5544464", "0.55383056", "0.55349475", "0.5530609", "0.55283105", "0.55279684", "0.55251986", "0.5517851", "0.551317", "0.55106664", "0.5510291", "0.55095565", "0.5508782", "0.55071986", "0.55065304", "0.5499622", "0.54988337", "0.54976195", "0.5494229", "0.5494086", "0.5492236", "0.54916906", "0.54897726", "0.54857165", "0.5485332", "0.548497", "0.54792255", "0.5474857", "0.5472771", "0.5467318", "0.54599357", "0.5459679", "0.5455922", "0.5455389", "0.54534364", "0.54534364", "0.5450104", "0.544535", "0.5444977", "0.54396033" ]
0.0
-1
Created by Admin on 20170217.
public interface BoardBiz { public boolean writeArticle(BoardVO boardVO); public BoardVO getOneArticles(int boardId); public List<BoardVO> getAllArticles(BoardSearchVO boardSearchVO); public boolean removeArticle(int boardId); public boolean uploadArticle(BoardVO boardVO); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\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\n public void memoria() {\n \n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo4359a() {\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\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void init() {\n\n }", "private static void cajas() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n protected void initialize() \n {\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 void designBasement() {\n\t\t\r\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\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 }", "protected boolean func_70814_o() { return true; }", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "protected void mo6255a() {\n }", "@Override\n void init() {\n }", "public void mo55254a() {\n }", "Petunia() {\r\n\t\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n protected void init() {\n }", "private TMCourse() {\n\t}", "@Override\n public void init() {\n }", "public contrustor(){\r\n\t}", "public void mo6081a() {\n }", "@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 mo12930a() {\n }", "@Override\n\tpublic void create () {\n\n\t}", "private UsineJoueur() {}", "@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() {}", "public void autoDetails() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "public void mo1531a() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private void init() {\n\n\t}", "@Override\n\tprotected void initialize() {\n\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\r\n\tpublic void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "private Singletion3() {}", "@Override\n public int getSize() {\n return 1;\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\tpublic void create() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "private void getStatus() {\n\t\t\n\t}" ]
[ "0.61059177", "0.6066346", "0.57990044", "0.57201475", "0.57068264", "0.5687189", "0.56827945", "0.5673908", "0.566463", "0.5661844", "0.5616563", "0.5611126", "0.55865014", "0.55865014", "0.5583046", "0.55752426", "0.55714005", "0.5548726", "0.5545754", "0.5545754", "0.5545754", "0.5545754", "0.5545754", "0.5545754", "0.5545754", "0.55378085", "0.5519877", "0.55189115", "0.5499617", "0.5499335", "0.54987335", "0.5495688", "0.549334", "0.5490174", "0.5488151", "0.54775655", "0.5475419", "0.5475419", "0.54741466", "0.5465292", "0.54587305", "0.54512876", "0.5448871", "0.54479593", "0.54479593", "0.54479593", "0.54479593", "0.54479593", "0.54479593", "0.54434663", "0.5437133", "0.54177487", "0.54073346", "0.54024756", "0.539926", "0.5398856", "0.53924894", "0.53922236", "0.5390847", "0.5386545", "0.5385301", "0.5383134", "0.53776735", "0.53776735", "0.53776735", "0.53776735", "0.53776735", "0.53539443", "0.5353517", "0.5353343", "0.53522813", "0.53522813", "0.5347812", "0.534297", "0.5341047", "0.5341047", "0.5341047", "0.53355366", "0.5332078", "0.53313375", "0.5328156", "0.5326023", "0.5326023", "0.5326023", "0.53190917", "0.53169495", "0.53169495", "0.5305069", "0.5305069", "0.5303816", "0.5299322", "0.52992857", "0.52992857", "0.52992857", "0.5298069", "0.5293391", "0.52893806", "0.5282479", "0.5271533", "0.52699363", "0.52651066" ]
0.0
-1
C\u00F3digo de identifica\u00E7\u00E3o da compra
public CompraResponse idCompra(Long idCompra) { this.idCompra = idCompra; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public abstract java.lang.String getCod_tecnico();", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}", "@Override\r\n public String getUniCode()\r\n {\r\n if (getColor() == 'N')\r\n {\r\n setCode(\"\\u265B\");\r\n }\r\n else\r\n {\r\n setCode(\"\\u2655\");\r\n }\r\n return getCode();\r\n }", "public char getCouleur(){\t\n\t\treturn couleur;\n\t}", "String getCodiceFiscale();", "String getCognome();", "@Override\n public String getAgenciaCodCedenteFormatted() {\n return boleto.getAgencia() + \"/\" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\n }", "public String getAgenciaCodCedenteFormatted() {\r\n return boleto.getAgencia() + \" / \" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\r\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public java.lang.String getCodigo_pcom();", "public int getComuneNascitaCod() {\r\n return comuneNascitaCod;\r\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "public String tipoConta() {\n return \"Conta Comum\";\n }", "@AutoEscape\n\tpublic String getCodDistrito();", "public int getCxlangue() {\r\r\r\r\r\r\r\n return cxlangue;\r\r\r\r\r\r\r\n }", "@Override public String getCarne(){\n return \"salchicha y jamón \";\n }", "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "public String getCodice() {\n\t\treturn codice;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "public Integer getCedula() {return cedula;}", "public abstract java.lang.String getAcma_cierre();", "@Override\n\t@Field(offset=37, length=1, paddingChar=' ', align=Align.LEFT)\n\tpublic String getDvContaCedente() {\n\t\treturn super.getDvContaCedente();\n\t}", "public void cumplirAños(){\n this.setEdad(((byte)(this.getEdad()+1)));\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}", "@Override\n\tpublic String getCtarCode() {\n\t\treturn null;\n\t}", "public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }", "public int getCedula() {\n return cedula;\n }", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "String getCidade();", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "public int getCodPessoa() {\r\n\t\treturn this.codPessoa;\r\n\t}", "@java.lang.Override\n public com.google.protobuf.StringValue getChulaId() {\n return chulaId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : chulaId_;\n }", "public String ocurrencia() {\n String palabra = \"\";\n int retorno = 0;\n for (int i = 0; i < getCadena().length(); i++) {\n\n if ((getCadena().charAt(i) == ' ') || (i > getCadena().length() - 2)) {\n if (palabra.equals(getBuscar())) {\n retorno++;\n palabra = \"\";\n } else {\n palabra = \"\";\n }\n\n } else {\n palabra += getCadena().charAt(i);\n\n }\n }\n return (\"La cantida de ocurrencias son de:\" + '\\n' + retorno);\n }", "public java.lang.String getC8()\n {\n return this.c8;\n }", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "public abstract java.lang.String getCod_dpto();", "public String getCROFM_CODIGO(){\n\t\treturn this.myCrofm_codigo;\n\t}", "@AutoEscape\n\tpublic String getNguoiChuTri();", "protected UniqueInfo cpui() { return hpcpui(columnStShhnKnyMsId()); }", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "public String getCedula() {\r\n return cedula;\r\n }", "@AutoEscape\n\tpublic String getCodProvincia();", "public String getCodaComponent() {\n return codaComponent;\n }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" Corrente :\"+ super.getNumero();\n\t}", "public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }", "public String getCpe() {\n return cpe;\n }", "public java.lang.String getC660000021()\n {\n return this.c660000021;\n }", "public String getCodiceFiscale() {\n return codiceFiscale;\n }", "java.lang.String getPrenume();", "public String getCognome() {\r\n return cognome;\r\n }", "public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}", "public String saludoCastellano () {\n\t\treturn \"hola\";\n\t}", "public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}", "String getCE();", "String getCE();", "String getCE();", "String getCE();", "@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}", "public String darPlaca() {\n\t\treturn placa;\n\t}", "@Override\n\tpublic String getCodigoCarteira() {\n\t\treturn \"0\";\n\t}", "public String getvCodtupa() {\n return vCodtupa;\n }", "protected UniqueInfo cpui() { return hpcpui(columnCampCode()); }", "public String prenda() {\r\n\t\tif(this.getColorSecundario()==null)\r\n\t\t\treturn this.getTipo().tipo+\" de \"+this.getTela().toString() +\" de color \"+this.getColorPrimario().toString();\r\n\t\telse\r\n\t\t\treturn this.getTipo().tipo+\" de \"+this.getTela().toString() +\" de color \"+this.getColorPrimario()+\" y \"+this.getColorSecundario().toString();\r\n\r\n\t}", "public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }", "@java.lang.Override\n public com.google.protobuf.StringValueOrBuilder getChulaIdOrBuilder() {\n return getChulaId();\n }", "public String toString(){\n return \"+-----------------------+\\n\" +\n \"| Boleto para el metro |\\n\" +\n \"|derjere0ranfeore |\\n\" +\n \"+-----------------------+\\n\" ;\n }", "@Override\n\tpublic String getName() {\n\t\treturn \"Rotera 90\\u00b0 höger\";\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn \"Rotera 90\\u00b0 höger\";\n\t}", "public java.lang.String getC660000022()\n {\n return this.c660000022;\n }", "public String getLBR_BankAccount_Carteira_UU () \n\t{\n\t\treturn (String)get_Value(COLUMNNAME_LBR_BankAccount_Carteira_UU);\n\t}", "public String getCompoId() {\n\t return compoId;\r\n\t }", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "@Override\n\tpublic String getCouleur() {\n\t\treturn null;\n\t}", "java.lang.String getC3();", "private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public java.lang.String getCodiceUfficio() {\r\n return codiceUfficio;\r\n }", "public java.lang.String getCodiceEnte() {\r\n return codiceEnte;\r\n }", "public SpecialChar insertSpecialChar() {\n SpecialChar specialChar = new SpecialChar();\n specialChar.setId(4491);\n specialChar.setSpecialCharA(\"! ' , . / : ; ? ^ _ ` | \"\n + \" ̄ 、 。 · ‥ … ¨ 〃 ­ ― ∥ \ ∼ ´ ~ ˇ \" + \"˘ ˝ ˚ ˙ ¸ ˛ ¡ ¿ ː\");\n specialChar.setSpecialCharB(\"" ( ) [ ] { } ‘ ’ “ ” \"\n + \" 〔 〕 〈 〉 《 》 「 」 『 』\" + \" 【 】\");\n specialChar.setSpecialCharC(\"+ - < = > ± × ÷ ≠ ≤ ≥ ∞ ∴\"\n + \" ♂ ♀ ∠ ⊥ ⌒ ∂ ∇ ≡ ≒ ≪ ≫ √ ∽ ∝ \"\n + \"∵ ∫ ∬ ∈ ∋ ⊆ ⊇ ⊂ ⊃ ∪ ∩ ∧ ∨ ¬ ⇒ \" + \"⇔ ∀ ∃ ∮ ∑ ∏\");\n specialChar\n .setSpecialCharD(\"$ % ₩ F ′ ″ ℃ Å ¢ £ ¥ ¤ ℉ ‰ \"\n + \"€ ㎕ ㎖ ㎗ ℓ ㎘ ㏄ ㎣ ㎤ ㎥ ㎦ ㎙ ㎚ ㎛ \"\n + \"㎜ ㎝ ㎞ ㎟ ㎠ ㎡ ㎢ ㏊ ㎍ ㎎ ㎏ ㏏ ㎈ ㎉ \"\n + \"㏈ ㎧ ㎨ ㎰ ㎱ ㎲ ㎳ ㎴ ㎵ ㎶ ㎷ ㎸ ㎹ ㎀ ㎁ ㎂ ㎃ ㎄ ㎺ ㎻ ㎼ ㎽ ㎾ ㎿ ㎐ ㎑ ㎒ ㎓ ㎔ Ω ㏀ ㏁ ㎊ ㎋ ㎌ ㏖ ㏅ ㎭ ㎮ ㎯ ㏛ ㎩ ㎪ ㎫ ㎬ ㏝ ㏐ ㏓ ㏃ ㏉ ㏜ ㏆\");\n specialChar.setSpecialCharE(\"# & * @ § ※ ☆ ★ ○ ● ◎ ◇ ◆ □ ■ △ ▲\"\n + \" ▽ ▼ → ← ↑ ↓ ↔ 〓 ◁ ◀ ▷ ▶ ♤ ♠ ♡ ♥ ♧ ♣ ⊙ ◈ ▣ ◐\"\n + \" ◑ ▒ ▤ ▥ ▨ ▧ ▦ ▩ ♨ ☏ ☎ ☜ ☞ ¶ † \"\n + \"‡ ↕ ↗ ↙ ↖ ↘♭ ♩ ♪ ♬ ㉿ ㈜ № ㏇ ™ ㏂ ㏘ ℡ ® ª º\");\n\n session.save(specialChar);\n\n return specialChar;\n }", "int getCedula();", "public java.lang.String getCxcode() {\r\r\r\r\r\r\r\n return cxcode;\r\r\r\r\r\r\r\n }", "public void setComuneNascitaCod(int value) {\r\n this.comuneNascitaCod = value;\r\n }", "@Override\n public String generaCodigo() {\n return \"\";\n }", "static zzco m26833e() {\n return new zzco(\"Protocol message had invalid UTF-8.\");\n }", "public final String deu() {\n String str;\n AppMethodBeat.i(26738);\n String str2 = \"\";\n synchronized (this) {\n try {\n if (this.iPr == null || this.iPr.size() <= 0) {\n str = \"\";\n } else {\n int i = 0;\n while (i < this.iPr.size()) {\n com.tencent.mm.plugin.wenote.model.a.c cVar = (com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i);\n switch (cVar.getType()) {\n case -1:\n str = str2 + \"<hr/>\";\n break;\n case 1:\n i iVar = (i) cVar;\n if (!bo.isNullOrNil(iVar.content)) {\n str2 = str2 + iVar.content;\n if (i + 1 < this.iPr.size() && ((com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i + 1)).getType() == 1 && !bo.isNullOrNil(((i) this.iPr.get(i + 1)).content)) {\n str = str2 + \"<br/>\";\n break;\n }\n }\n str = str2 + \"<br/>\";\n break;\n case 2:\n str = str2 + dO(((f) cVar).uOo, 2);\n break;\n case 3:\n str = str2 + dO(((g) cVar).uOo, 3);\n break;\n case 4:\n l lVar = (l) cVar;\n str = str2 + dO(lVar.uOo, lVar.getType());\n break;\n case 5:\n str = str2 + dO(((d) cVar).uOo, 5);\n break;\n case 6:\n str = str2 + dO(((k) cVar).uOo, 6);\n break;\n case 20:\n str = str2 + dO(((com.tencent.mm.plugin.wenote.model.a.b) cVar).uOo, 20);\n break;\n default:\n str = str2;\n break;\n }\n i++;\n str2 = str;\n }\n str = str2.replaceAll(IOUtils.LINE_SEPARATOR_UNIX, \"<br/>\");\n AppMethodBeat.o(26738);\n }\n } finally {\n while (true) {\n AppMethodBeat.o(26738);\n }\n }\n }\n return str;\n }", "protected String elaboraHead() {\n String testo = VUOTA;\n String testoIncluso = VUOTA;\n\n // Avviso visibile solo in modifica\n testo += elaboraAvvisoScrittura();\n\n // Posiziona il TOC\n testoIncluso += elaboraTOC();\n\n // Posiziona il ritorno\n testoIncluso += elaboraRitorno();\n\n // Posizione il template di avviso\n testoIncluso += elaboraTemplateAvviso();\n\n // Ritorno ed avviso vanno (eventualmente) protetti con 'include'\n testo += elaboraInclude(testoIncluso);\n\n // Posiziona l'incipit della pagina\n testo += A_CAPO;\n testo += elaboraIncipit();\n\n // valore di ritorno\n return testo;\n }", "public String mo23261C() {\n return (String) this.f13965a.mo23249a(C7196pb.f13683Dd);\n }", "SpacesInvaders_recupererEspaceJeuDansChaineASCII createSpacesInvaders_recupererEspaceJeuDansChaineASCII();", "private static void ecrire (char car)\r\n\t{\n\t\tif (car >= ' ')\r\n\t\t{\r\n\t\t\tSystem.out.println (\"Caractere : \" + car );\r\n\t\t}\r\n\t\t// Sinon si c'est un caractere de controle, on affiche son code ascci\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println (\"Controle : code \" + (int) car);\r\n\t\t}\r\n\t}", "@Override\n\tpublic String getInforme() {\n\t\treturn \"INFORME COMERCIAL 3: REPORTE SEMANAL VENTAS\" + \"\\n\" + reporteSemanal.getInformeFinancieroEspecial();\n\t}", "public String toString(){\r\n\t\t\t\t\treturn \"перший в черзі і шлях вільний\";\r\n\t\t\t\t}", "@Override\npublic int getPosicao() {\n\treturn posicaoBaixoEscada;\n}", "public java.lang.String getCodeemetteur() {\r\n\t\treturn codeemetteur;\r\n\t}", "public java.lang.String getCodigo() {\n return codigo;\n }", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public String mo3900c() {\n return this.f771c;\n }", "public boolean isAgregaCC()\r\n/* 364: */ {\r\n/* 365:422 */ return this.agregaCC;\r\n/* 366: */ }" ]
[ "0.64556026", "0.64490473", "0.6383329", "0.6381195", "0.6378487", "0.6268662", "0.6214875", "0.62021065", "0.6182734", "0.6181848", "0.6165158", "0.61480796", "0.6140832", "0.611814", "0.60294837", "0.60229856", "0.59986603", "0.59897727", "0.5985455", "0.5978862", "0.5961086", "0.59592783", "0.5958806", "0.59114015", "0.58991057", "0.58853936", "0.5881707", "0.58677065", "0.58504647", "0.58235633", "0.5822141", "0.5820985", "0.5816443", "0.58147126", "0.5803863", "0.5793119", "0.5771142", "0.57595015", "0.57556313", "0.5750036", "0.5746848", "0.5744214", "0.5742998", "0.57353145", "0.5734709", "0.5716481", "0.57103693", "0.57099086", "0.5709691", "0.5699246", "0.5699193", "0.56927127", "0.56790876", "0.567703", "0.56743294", "0.567285", "0.566735", "0.56645155", "0.5662533", "0.5662533", "0.5662533", "0.5662533", "0.565478", "0.5653628", "0.5649002", "0.5645639", "0.5645008", "0.56425256", "0.56319755", "0.5626174", "0.56162006", "0.5612604", "0.5612604", "0.56066746", "0.5605802", "0.5593022", "0.5589704", "0.5589079", "0.5588208", "0.5586164", "0.55809873", "0.5579053", "0.55723953", "0.5571563", "0.55711925", "0.55689496", "0.556817", "0.5562731", "0.5557844", "0.55572027", "0.5549104", "0.5546749", "0.55449843", "0.5544947", "0.5541226", "0.5533254", "0.5528713", "0.5527415", "0.552434", "0.5522202", "0.55160224" ]
0.0
-1
Descri\u00E7\u00E3o do status da autoriza\u00E7\u00E3o da compra
public CompraResponse status(String status) { this.status = status; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "java.lang.String getStatus();", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public java.lang.CharSequence getStatus() {\n return status;\n }", "public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }", "public String getStatus()\r\n {\n return (\"1\".equals(getField(\"ApprovalStatus\")) && \"100\".equals(getField(\"HostRespCode\")) ? \"Approved\" : \"Declined\");\r\n }", "public String getStatus() { return status; }", "@AutoEscape\n public String getStatusName();", "public String getStatus(){\r\n\t\treturn status;\r\n\t}", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "String getStatus();", "public String geraStatus() {\r\n\t\tString statusComplemento = \"\";\r\n\t\tif (this.temProcesso() == false) {\r\n\t\t\treturn \"Nenhum processo\\n\";\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < this.escalonadores.size(); i++) {\r\n\t\t\t\tif (i > 0) {\r\n\t\t\t\t\tstatusComplemento += \" \";\r\n\t\t\t\t}\r\n\t\t\t\tstatusComplemento += i + 1 + \" - \";\r\n\t\t\t\tif (this.escalonadores.get(i).temProcesso()) {\r\n\t\t\t\t\tstatusComplemento += this.escalonadores.get(i).geraStatusComplemento();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstatusComplemento += \"\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn statusComplemento;\r\n\t}", "public String getStatus() {\n\t\t\n\t\tif(status.equals(\"receptor\")) {\n\t\t\treturn status.substring(0,1).toUpperCase().concat(status.substring(1));\n\t\t}\n\t\treturn status;\n\t}", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}", "public String getStatus()\n \t{\n \t\treturn m_strStatus;\n \t}", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "private String getStatusLabel(int status){\n switch (status){\n case Cliente_Firebase.STATUS_PROSPECTO:\n return \"Prospecto\";\n case Cliente_Firebase.STATUS_ENVERIFICACION:\n return \"En Verificación\";\n case Cliente_Firebase.STATUS_ACTIVO:\n return \"Activo\";\n }\n\n return \"\";\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus () {\r\n return status;\r\n }", "public char getStatus()\r\n\t{\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\n return status.toString();\n }", "public String getStatus() {\r\n if (status == null)\r\n status = cells.get(7).findElement(By.tagName(\"div\")).getText();\r\n return status;\r\n }", "public String getStatus() {\r\n return \"[\" + getStatusIcon() + \"]\";\r\n }", "public java.lang.String getStatus() {\r\n return status;\r\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus() {\n return this.status;\n }", "public String getStatus()\n {\n\n return status;\n }", "public String getStatusString() {\n return status.toString();\n }", "public String getDescripcionEstatusObjeto() {\r\n\t\treturn descripcionEstatusObjeto;\r\n\t}", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return status;\n }", "public java.lang.String getStatus() {\n return status;\n }", "public java.lang.String getStatus() {\n return status;\n }", "public String getStatus() {\n\t\tString result = getName() + \"\\n-----------------------------\\n\\n\";\n\t\tfor(int i = 0; i < lines.size(); i++) {\n\t\t\tresult = result + lines.get(i).getStatus() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String getSTATUS() {\r\n return STATUS;\r\n }", "public String status() {\n return statusEnum().toString();\n }", "public String getStatus() {\n return status;\n }", "public String getStatus() {\n return mBundle.getString(KEY_STATUS);\n }", "@Schema(example = \"completed\", required = true, description = \"Contract labeling status (completed, processing, failed, cancelled)\")\n public String getStatus() {\n return status;\n }", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\r\n\t\treturn status;\r\n\t}", "public String getStatus() {\n return this.Status;\n }", "public String getStatus() {\n return this.Status;\n }", "public java.lang.String getStatus () {\r\n\t\treturn status;\r\n\t}", "public char getStatus() {\n\t\treturn status;\n\t}", "public String getStatusDetails() { return statusDetails; }" ]
[ "0.718439", "0.718439", "0.718439", "0.718439", "0.7144182", "0.7113566", "0.6950783", "0.6877411", "0.6837111", "0.6825617", "0.6812419", "0.68050057", "0.68050057", "0.68050057", "0.68050057", "0.68050057", "0.6788303", "0.6768282", "0.6670603", "0.6670603", "0.6670603", "0.6664796", "0.6639218", "0.6615409", "0.6615409", "0.6605435", "0.66039187", "0.66039187", "0.66039187", "0.66039187", "0.66039187", "0.6601255", "0.6601255", "0.6601255", "0.65971255", "0.65919226", "0.65845597", "0.6584345", "0.6583123", "0.65802044", "0.65748274", "0.65748274", "0.65748274", "0.65748274", "0.65748274", "0.65748274", "0.65748274", "0.65724087", "0.656979", "0.6562264", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6556092", "0.6530819", "0.6530819", "0.652725", "0.650532", "0.650532", "0.650532", "0.650532", "0.650532", "0.64977473", "0.64976984", "0.64928454", "0.64883924", "0.6481015", "0.6481015", "0.6481015", "0.6481015", "0.6481015", "0.6475785", "0.6475785", "0.6471827", "0.64505816", "0.6445094" ]
0.0
-1
Valor total da compra
public CompraResponse valorTotalCompra(BigDecimal valorTotalCompra) { this.valorTotalCompra = valorTotalCompra; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BigDecimal getValorTotal() {\r\n \treturn valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN).subtract(valorDesconto).setScale(3, BigDecimal.ROUND_HALF_EVEN);\r\n }", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "public void calcularTotal() {\n double valor = 0;\n String servico = (String)consultaSelecionada.getSelectedItem().toString();\n switch(servico) {\n case \"Consulta\":\n valor += 100;\n break;\n case \"Limpeza\":\n valor += 130;\n break;\n case \"Clareamento\":\n valor += 450;\n break;\n case \"Aparelho\":\n valor += 100;\n break;\n case \"Raio-x\":\n valor += 80;\n break;\n case \"Cirurgia\":\n valor += 70;\n break;\n }\n Total.setText(String.valueOf(valor));\n }", "public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }", "@Override\r\n\tpublic int precioTotal() {\n\t\treturn this.precio;\r\n\t}", "public void calcPrecioTotal() {\n try {\n float result = precioUnidad * Float.parseFloat(unidades.getText().toString());\n prTotal.setText(String.valueOf(result) + \"€\");\n }catch (Exception e){\n prTotal.setText(\"0.0€\");\n }\n }", "public BigDecimal getValorTotal() {\n\t\treturn itens.stream()\n\t\t\t\t.map(ItemDieta::getValorTotal)\n\t\t\t\t.reduce(BigDecimal::add)\n\t\t\t\t.orElse(BigDecimal.ZERO);\n\t}", "public BigDecimal getValorTotal(){\r\n\t\r\n\t\t// percorre a lista de ItemVenda - stream especie de interator do java 8\r\n\t\treturn itens.stream()\r\n\t .map(ItemVenda::getValorTotal) // para cada um dos itens, obtem o valor total do item\t\r\n\t .reduce(BigDecimal::add) // soma todos os valores total \r\n\t .orElse(BigDecimal.ZERO); // caso não tenha nenhum item retorna zeo\r\n\t}", "public boolean calcularTotal() {\r\n double dou_debe = 0;\r\n double dou_haber = 0;\r\n for (int i = 0; i < tab_tabla2.getTotalFilas(); i++) {\r\n try {\r\n if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_debe)) {\r\n dou_debe += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n } else if (tab_tabla2.getValor(i, \"ide_cnlap\").equals(p_con_lugar_haber)) {\r\n dou_haber += Double.parseDouble(tab_tabla2.getValor(i, \"valor_cndcc\"));\r\n }\r\n } catch (Exception e) {\r\n }\r\n }\r\n eti_suma_debe.setValue(\"TOTAL DEBE : \" + utilitario.getFormatoNumero(dou_debe));\r\n eti_suma_haber.setValue(\"TOTAL HABER : \" + utilitario.getFormatoNumero(dou_haber));\r\n\r\n double dou_diferencia = Double.parseDouble(utilitario.getFormatoNumero(dou_debe)) - Double.parseDouble(utilitario.getFormatoNumero(dou_haber));\r\n eti_suma_diferencia.setValue(\"DIFERENCIA : \" + utilitario.getFormatoNumero(dou_diferencia));\r\n if (dou_diferencia != 0.0) {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold;color:red\");\r\n } else {\r\n eti_suma_diferencia.setStyle(\"font-size: 14px;font-weight: bold\");\r\n return true;\r\n }\r\n return false;\r\n }", "public Double darTiempoTotal(){\n\t\treturn tiempoComputacionalGrasp+tiempoComputacionalSetCovering;\n\t}", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "BigDecimal getTotal();", "BigDecimal getTotal();", "public int getSueldoTotal() {\n return sueldoTotal;\n }", "public void generarTotal(){\n\n\t\tfloat total = 0;\n\n\t\tfor (int con = 0; con < modelo.getRowCount(); con++) {\n\n\t\t\ttotal += (float) tabla.getValueAt(con, 3);\n\t\t\t\n\t\t}\n\n\t\tcampoTotal.setText(formato.format(total));\n\n\t\tlimpiarCampos();\n\n\t}", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "public double getTotal_Venta() {\n return total_Venta;\n }", "public BigDecimal getTotal() {\n return total;\n }", "public BigDecimal getTotal() {\n return total;\n }", "public void totalFacturaVenta(){\n BigDecimal totalVentaFactura = new BigDecimal(0);\n \n try{\n //Recorremos la lista de detalle y calculamos la Venta total de la factura\n for(Detallefactura det: listDetalle){\n //Sumamos a la variable 'totalVentaFactura'\n totalVentaFactura = totalVentaFactura.add(det.getTotal());\n } \n }catch(Exception e){\n e.printStackTrace();\n }\n \n //Setemos al objeto Factura el valor de la variable 'totalFacturaVenta'\n factura.setTotalVenta(totalVentaFactura);\n \n }", "public BigDecimal getValorTotalSemDesconto() {\r\n return valorUnitario.setScale(5, BigDecimal.ROUND_HALF_EVEN).multiply(quantidade.setScale(3, BigDecimal.ROUND_HALF_EVEN)).setScale(3, BigDecimal.ROUND_DOWN);\r\n }", "private void syncNumCopertiTotali() {\n int qPranzo = campoPranzo.getInt();\n int qCena = campoCena.getInt();\n campoTotale.setValore(qPranzo+qCena);\n }", "public void calcularTotalVentas(FormularioRegistrarCorte formularioRegistrarCorte) {\n Double suma = 0.00;\n try {\n for (int i = 0; i < formularioRegistrarCorte.getTablaEntradas().getRowCount(); i++) {\n suma = suma + (Double.valueOf(formularioRegistrarCorte.getTablaEntradas().getValueAt(i, 2).toString()));\n }\n formularioRegistrarCorte.getTxtTotalVentas().setText(new OperacionesUtiles().formatoDouble(suma));\n } catch (Exception e) {\n showMessageDialog(null, \"Ocurrio un error al intenetar calcular total entradas\");\n\n }\n\n }", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public int getTotalRecaudado()\n {\n return maquina1.getTotal() + maquina2.getTotal();\n }", "@Override\n public double getTotal() {\n return total;\n }", "public double getTotal(){\n return total;\n }", "public double getTotal (){ \r\n return total;\r\n }", "public float capacidadeTotal() {\r\n float toneladas = 0;\r\n\r\n for (int i = 0; i < numNavios; i++) {\r\n if (navios[i] instanceof Petroleiro) {\r\n Petroleiro petroleiro = (Petroleiro) navios[i];\r\n toneladas = toneladas + petroleiro.getCapacidadeCarga();\r\n } else if (navios[i] instanceof PortaContentores) {\r\n PortaContentores portaContentores = (PortaContentores) navios[i];\r\n toneladas = toneladas + portaContentores.getMaxContentores() * 10;\r\n }\r\n }\r\n return toneladas;\r\n }", "@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }", "public float getTotal(){\r\n\t\treturn Total;\r\n\t}", "public Double getInternalTotalComDesconto() {\r\n double preco, quantidade, desconto; \r\n double valor = 0, valorDescontado = 0;\r\n preco = (getPrecoUnitario() == null) ? 0 : getPrecoUnitario().doubleValue();\r\n quantidade = (getQuantidade() == null) ? 0 : getQuantidade().doubleValue();\r\n desconto = (getDesconto() == null) ? 0 : getDesconto().doubleValue();\r\n \r\n \tvalor = (preco * quantidade);\r\n \tvalorDescontado = (valor / 100) * desconto;\r\n return new Double(valor - valorDescontado);\r\n }", "double getTotal();", "public double getPrecoTotal() {\n\t\treturn this.precoTotal;\n\t}", "public static float getTotal() {\n return total;\r\n }", "public double getTotal() {\n return Total;\n }", "public Double getTotal() {\n return total;\n }", "public Double getTotal() {\n return total;\n }", "public Double getTotal() {\n return total;\n }", "public double getTotal() {\r\n\t\treturn total;\r\n\t}", "public double obtenerTotalCarrito() throws DBException {\r\n\t\tdouble precioTotal = 0;\r\n\t\tString sentSQL = \"SELECT SUM(precio) FROM carrito\";\r\n\t\ttry {\r\n\t\t\tStatement st = conexion.createStatement();\r\n\t\t\tResultSet rs = st.executeQuery(sentSQL);\r\n\t\t\tif(rs.next()) {\r\n\t\t\t\tprecioTotal = rs.getDouble(1);\r\n\t\t\t}\r\n\t\t\trs.close();\r\n\t\t\tst.close();\r\n\t\t\tLOG.log(Level.INFO,\"Precio total obtenido\");\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\tLOG.log(Level.WARNING,e.getMessage());\r\n\t\t\tthrow new DBException(\"No se ha podido ejecutar la query\");\r\n\t\t}\r\n\t\treturn precioTotal;\r\n\t}", "public Double getTotal();", "public double getTotal() {\n\t\treturn total;\n\t}", "public void prinRecaudacion()\n {\n System.out.println(\"La cantidad recaudada por la maquina1 es \" + maquina1.getTotal());\n System.out.println(\"La cantidad recaudada por la maquina2 es \" + maquina2.getTotal());\n System.out.println(\"La cantidad total es\" + ( maquina1.getTotal() + maquina2.getTotal()));\n}", "public float getTotal() {\n return this.total;\n }", "public double probabilidadTotal(){\n return probabilidadTotal;\n }", "public void total() {\n\t\t\n\t}", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "public float getValorTotal(int codProva) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"SELECT codigo, valorTotal FROM prova WHERE codigo=?\");\n\t\t\tps.setInt(1, codProva);\n\t\t\trs = ps.executeQuery();\n\t\t\n\t\t\treturn (rs.next()) ? rs.getFloat(2) : 0f;\n\t\t});\n\t}", "public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}", "public double getTotalElektroPokok() {\n return this.totalElektroPokok;\n }", "public int getTotal () {\n return total;\n }", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "private void funcaoTotalPedido() {\n\n ClassSale.paymentCoupon(codeCoupon);\n BigDecimal smallCash = PaymentCoupon.getSmallCash();\n\n jTextValueTotalCoupon.setText(v.format(PaymentCoupon.getTotalCoupon()));\n \n jTextSmallCash.setText(v.format(smallCash.setScale(2, BigDecimal.ROUND_HALF_UP)));\n //jTextValueTotalDiscontCoupon.setText(v.format(PagamentoPedido.getDesconto_pagamento()));\n\n if (smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() < 0) {\n valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();\n jTextCash.setText(\"0,00\");\n jTextValueDiscontCoupon.setText(\"0,00\");\n jTextCash.requestFocus(true);\n } else {\n\n if (last_cod_tipo_pagamento != null && smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue() > 0) {\n\n if (JOptionPane.showConfirmDialog(this, \"Não é permitido troco para pagamento com cartão.\\nDeseja emitir um contra vale?\", \"Mensagem\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, icon) == 0) {\n\n JOptionPane.showMessageDialog(this, \"Emitindo contra vale...\");\n\n fechouVenda = true;\n //BeanConsulta.setVenda_fechada(fechouVenda);\n this.dispose();\n\n } else {\n\n funcaoLimpaPag();\n }\n } else {\n \n \n valor_devido = smallCash.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); \n jButtonFinalizaCalculoPagameto.setEnabled(true);\n jButtonFinalizaCalculoPagameto.requestFocus(true);\n\n }\n }\n\n }", "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "public float getProductTotalMoney(){\n connect();\n float total = 0;\n String sql = \"SELECT SUM(subtotal) + (SUM(subtotal) * (SELECT iva FROM configuraciones)) FROM productos\";\n ResultSet result = null;\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n result = ps.executeQuery();\n //result = getQuery(sql);\n if(result != null){\n while(result.next()){\n total = result.getFloat(1);\n }\n }\n connect.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n }\n return total; \n }", "public Integer getCantidadTotal() {\n return cantidadTotal;\n }", "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "public int getTotal() {\n return total;\n }", "public double getTotalValue(){\r\n return this.quantity * this.price;\r\n }", "Integer total();", "public long getTotal() { return total; }", "public long getTotal() { return total; }", "public int precioTotalRepuestos() {\n int sumaTotal = 0;\n for (Dispositivo dispositivo : dispositivos) {\n sumaTotal += dispositivo.getPrecioRepuesto();\n }\n return sumaTotal;\n }", "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }", "public int total() {\n return _total;\n }", "public int getTotal() {\n return total;\n }", "public int getTotal() {\n return total;\n }", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "public double precioFinal(){\r\n \r\n double plus = 0;\r\n \r\n switch(consumoElectrico){\r\n case 'A':\r\n plus +=100;\r\n break;\r\n case 'B':\r\n plus += 80;\r\n break;\r\n case 'C':\r\n plus +=60;\r\n break;\r\n case 'D':\r\n plus +=50;\r\n break;\r\n case 'E':\r\n plus+=30;\r\n break;\r\n case 'F':\r\n plus+=10;\r\n break;\r\n \r\n }\r\n \r\n \r\n if(peso>=0 && peso<=19){\r\n plus+=10;\r\n }else if(peso >=20 && peso<= 49){\r\n plus+=50;\r\n }else if(peso >= 50 && peso<=79){\r\n plus+=80;\r\n }else if(peso>=80){\r\n plus+=100;\r\n }\r\n return precioBase+plus;\r\n }", "private Double calcularValorTotal(Aluguel aluguelPendente, Date dataDevolucao) {\n int quantFilmes = aluguelPendente.getFilmes().size();\n DateTime dateAluguel = new DateTime(aluguelPendente.getDataAluguel().getTime());\n DateTime dateDevolucao = new DateTime(dataDevolucao);\n int diferencaDias = Days.daysBetween(dateAluguel, dateDevolucao).getDays();\n int diasAtraso = diferencaDias - 2 - (quantFilmes - 1);\n Double multa = 1.2 * (diasAtraso > 0 ? diasAtraso : 0);\n Double valorTotal = aluguelPendente.getValor() + multa;\n return valorTotal;\n }", "public int getTotalAmount();", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "private int sumaCen(){\n int kasa = 0;\n for(Restauracja r :zamowioneDania){\n kasa+=r.getCena();\n }\n return kasa;\n }", "public double getTotalCartValue();", "public java.lang.Double getTotal () {\r\n\t\treturn total;\r\n\t}", "public long getTotal() {\n return total;\n }", "public long getTotal() {\n return total;\n }", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "public Long total() {\n return this.total;\n }", "public double getTotalElektroBunga() {\n return this.totalElektroBunga;\n }", "public BigInteger getTotal() {\n return total;\n }", "private static void calcularTotal(String[] campos) {\n\t\tif (campos.length == 1)\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos: \" + gestor.totalAtribuidos());\n\t\telse {\n\t\t\tint escalao = Integer.valueOf(campos[1]);\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos no escalao \" + escalao + \" : \" + gestor.atribuidosNoEscalao(escalao));\n\t\t}\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public int total() {\n return this.total;\n }", "public float montos(){\n\tDefaultTableModel modelo = vc.returnModelo();\r\n\tint numeroFilas=modelo.getRowCount();\r\n\tfloat monto=0;\r\n\t\tif(modelo.getRowCount()!=0){\r\n\t\t\r\n\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\r\n\t\t\t\tmonto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmonto=0;\r\n\t\t}\r\n\t\treturn monto;\r\n\t}", "public Integer total() {\n return this.total;\n }", "public BigDecimal calcularValorUtilizado(Emenda e) {\n\t\t\n\t\tBigDecimal valorUsado = new BigDecimal(0);\t\t\n\t\tList<IndicacaoEmenda> indicacoes = indicacaoEService.findByEmenda(e);\n\t\t\n\t\tfor (IndicacaoEmenda indicacao : indicacoes) {\n\t\t\tvalorUsado = valorUsado.add(indicacao.getValorDestinado());\n\t\t}\n\t\t\n\t\treturn valorUsado;\n\t}", "public int tiempoTotal() {\r\n\r\n\t\tint duracionTotal = 0;\r\n\t\tfor (int i = 0; i < misCanciones.size(); i++) {\r\n\t\t\tduracionTotal = duracionTotal + misCanciones.get(i).getDuracionS();\r\n\t\t}\r\n\t\t\r\n\t\treturn duracionTotal;\r\n\r\n\t}", "@Override\n\tpublic double totalSalario() {\n\t\treturn this.precio;\n\t}", "public double precioFinal() {\r\n double aumento = 0;\r\n switch (consumoEnergetico) {\r\n case 'A':\r\n aumento = 100;\r\n break;\r\n case 'B':\r\n aumento = 80;\r\n break;\r\n case 'C':\r\n aumento = 60;\r\n break;\r\n case 'D':\r\n aumento = 50;\r\n break;\r\n case 'E':\r\n aumento = 30;\r\n break;\r\n case 'F':\r\n aumento = 10; \r\n break;\r\n }\r\n if (peso >= 0 && peso <= 19) {\r\n aumento += 10;\r\n }else if ( peso >= 20 && peso <= 49) {\r\n aumento += 50;\r\n }else if ( peso >= 50 && peso <=79 ) {\r\n aumento += 80;\r\n }else if ( peso >= 80 ){\r\n aumento += 100;\r\n }\r\n \r\n double precioFinal = aumento + this.precioBase;\r\n return precioFinal;\r\n }", "public void calcular(View view) {\n int quilos = Integer.valueOf(editTextQuantidade.getText().toString());\n int total = (quilos *1000)/500;\n \n String message = \"Com \" + quilos + \"kg de chocolate da para fazer \" + total + \" ovos de 500g.\";\n textViewTotal.setText(message);\n }", "public Total getTotal() {\r\n\t\treturn total;\r\n\t}", "public int totalValue() {\r\n\t\tint total = 0;\r\n\t\tfor(Item item: items) {\r\n\t\t\ttotal = total + item.getValue();\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "public BigInteger getTotal()\n\t{\n\t\treturn total;\n\t}", "public int getTotal () {\n\t\treturn total;\n\t}", "public List viewTotalInscritosBD();", "@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=this.getCargaActual()*30+2*numEje;\n\t\treturn consumo;\n\t}" ]
[ "0.79681265", "0.77632415", "0.77335715", "0.7665347", "0.751985", "0.7513175", "0.75051934", "0.74870193", "0.7428996", "0.738061", "0.73689085", "0.7259795", "0.7259795", "0.7255906", "0.725438", "0.7247841", "0.72323775", "0.7223129", "0.7223129", "0.72093016", "0.7206422", "0.71862537", "0.7186123", "0.71856004", "0.712185", "0.7113589", "0.71130097", "0.7107991", "0.7101357", "0.70713246", "0.7063327", "0.70627064", "0.705389", "0.7049586", "0.7048836", "0.7033087", "0.70295584", "0.6987527", "0.6987527", "0.6987527", "0.69706744", "0.6968044", "0.69494575", "0.6943001", "0.6920724", "0.6889663", "0.6882534", "0.6870448", "0.68616056", "0.68501127", "0.6847448", "0.684568", "0.6829144", "0.6823756", "0.680888", "0.6799809", "0.67972136", "0.67921984", "0.67798173", "0.6778223", "0.67588747", "0.67554194", "0.67538154", "0.67538154", "0.6748652", "0.67387044", "0.67386633", "0.67328453", "0.6731434", "0.6731434", "0.6720313", "0.67199856", "0.6717296", "0.6709794", "0.67090505", "0.6704893", "0.6704682", "0.67039347", "0.6699918", "0.6699918", "0.66919667", "0.6685762", "0.6685625", "0.6673166", "0.6672513", "0.6664116", "0.6664116", "0.6663018", "0.6659711", "0.6634843", "0.6633844", "0.66317445", "0.66259396", "0.6625393", "0.6623559", "0.6622391", "0.6622351", "0.6604835", "0.6590587", "0.6583804", "0.6583367" ]
0.0
-1
Valor da parcela da compra
public CompraResponse valorParcela(BigDecimal valorParcela) { this.valorParcela = valorParcela; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getValorParcela() {\n return valorParcela;\n }", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "public double getPrecioCompra() {\n return precioCompra;\n }", "String getPrecio();", "public int getPrecio(){\n return precio;\n }", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public java.lang.String getValor();", "public int getValor() {\n return Valor;\n }", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public double getValorComercial() {\r\n return valorComercial;\r\n }", "public double getPreco(){\n return pagamento.getPreco();\n }", "public double getParidadCosto() {\r\n return paridadCosto;\r\n }", "public double getPreco();", "public double getPreco();", "Object getValor();", "public Double getPotencia(){\n return this.valor;\n }", "public int getValor() {\r\n return valor;\r\n }", "public int cuantosParrafos() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas estrofas quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}", "public int getValeurCourante() {\n\t\treturn this.valC;\n\t}", "public double getPercepcion(){\n return localPercepcion;\n }", "public int getValor() {\n return valor;\n }", "public abstract java.lang.String getAcma_valor();", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "public double getValorProduto() {\n return valorProduto;\n }", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "public int getValore() {\n return valore;\n }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public String getValor() {\n return valor;\n }", "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "public float getPrecio() {\r\n return precio;\r\n }", "public int getEgresosPorCompras(){\n return this.egresosPorCompras;\n }", "public double getPrecio() {\n return precio;\n }", "public int getPantallaActual() {\r\n return this.iPantallaActual;\r\n }", "public double getPrecioVenta() {\n return precioVenta;\n }", "double getPerimetro();", "public int getValor() {\n\t\treturn valor;\n\t}", "public java.lang.Double getValorComissao() {\n return valorComissao;\n }", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "public int promedio() {\r\n // calculo y redondeo del promedio\r\n promedio = Math.round(nota1B+nota2B);\r\n // paso de Double a Int\r\n return (int) promedio;\r\n }", "public int getProteksi(){\n\t\treturn (getTotal() - getPromo()) * protectionCost / 100;\n\t}", "public double calcularPortes() {\n\t\tif (this.pulgadas <= 40) {\n\t\t\tif (this.getPrecioBase() > 500)\n\t\t\t\treturn 0;\n\t\t\telse\n\t\t\t\treturn 35;\n\t\t} else\n\t\t\treturn 35 + (this.pulgadas - 40);\n\t}", "public String valorCromosoma() {\n\t return valueOf(getAltura(), getExtremidades(), getFuerza(), getTorax());\n\t }", "public String processamento(){\n \n List<com.profesorfalken.jsensors.model.components.Cpu> cpus = JSensors.get.components().cpus;\n if(cpus.isEmpty()) return \"40.0\";\n \n for (final com.profesorfalken.jsensors.model.components.Cpu cpu : cpus) {\n List<Load> loads = cpu.sensors.loads;\n for (final Load load : loads) {\n if(load.name.equals(\"Load CPU Total\"))\n return String.valueOf(load.value);\n }\n }\n return \"40.0\";\n }", "public double getPromedio() {\r\n return promedio;\r\n }", "public long getPlateau()\n {\n return plateau;\n }", "@Override\n public double obtenerVolumen(){\n return (1.0 / 3.0) * c.obtenerArea() * c.obtenerAltura();\n }", "public double getPreco() {\n\t\treturn preco;\n\t}", "public Double getValor() {\n return valor;\n }", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "public int getValor() {\n\t\treturn this.valor;\n\t}", "public float getVlValor() {\n return vlValor;\n }", "public double getPrecio() {\n\t\treturn precio;\n\t}", "@Column(name=\"ValorCota\")\n\tpublic BigDecimal getValorCota() {\n\t\treturn valorCota;\n\t}", "public static float mostrarCredito(){\n JOptionPane.showMessageDialog(null,\"Actualmente hay \"+Monedero.getCredito());\n return Monedero.getCredito();\n }", "public int getPesoV() \r\n\t\t{\r\n\t\t\treturn PesoV;\r\n\t\t}", "public int dameValor(C carta)\n\t{\n\t\tint n= carta.getNumero();\n\t\tif(n>=2 && n<=9)//el 10 no se usa\n\t\t\treturn n;\n\t\telse\n\t\t\treturn 10;\n\t\t\n\t}", "public double getCapacidadeCarga() {\n return capacidadeCarga;\n }", "public double promedioAlum(){\n setProm((getC1() + getC2() + getC3() + getC4()) / 4);\n return getProm();\n }", "public double getPreco() {\n\t\treturn this.preco;\n\t}", "public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }", "public int getPodbrojParcele() {\n return podbrojParcele;\n }", "public int getPrecio() {\n\t\treturn this.producto.getPrecio();\n\t}", "public Double getPrecio() {\n return precio;\n }", "public double obtValor() {\r\n\t\treturn v;\r\n\t}", "public void setValorParcela(double valorParcela) {\n this.valorParcela = valorParcela;\n }", "public int cima(){\n return VectorPila[cima];\n }", "public Float getPreco() { return this.preco; }", "public double getResultado() {\n\t\treturn resultado;\n\t}", "public Float getPrecio() {\r\n return precio;\r\n }", "public float perimetro() {\n return (lado * 2 + base);\r\n }", "public double portataMassicaFumi( ){\r\n\t\treturn portatamassica;\r\n\t}", "public float getPrixInstallationPiedsCarre() {\n return prixInstallationPiedsCarre;\n }", "public Number getPesocont()\n {\n return (Number)getAttributeInternal(PESOCONT);\n }", "@Override\r\n\tpublic int precioTotal() {\n\t\treturn this.precio;\r\n\t}", "public double obtenerPrecio() {\n return precio;\n }", "public int getPrecios()\r\n {\r\n for(int i = 0; i < motos.size(); i++)\r\n {\r\n precio_motos += motos.get(i).getCoste();\r\n }\r\n \r\n return precio_motos;\r\n }", "public java.math.BigInteger getCantidadCUVErrado(){\n return localCantidadCUVErrado;\n }", "public HTMLElement getElementValorEd() { return this.$element_ValorEd; }", "public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }", "public void obtenerValorDePiezaEnDolaresADolares() {\r\n\t\tPieza pieza = new Pieza(\"\",10,Moneda.DOLAR);\t\t\r\n\t\tdouble precio = pieza.getPrecioEn(Moneda.DOLAR);\r\n\t\tAssert.assertEquals(precio, 10);\r\n\t}", "public int MostrarUltimoValorIngresado() {\r\n return UltimoValorIngresado.informacion;\r\n }", "public float valorTotalItem()\r\n {\r\n float total = (produto.getValor() - (produto.getValor() * desconto)) * quantidade;\r\n return total;\r\n }", "public static Float getPrixTva() {\n return PRIX_TVA;\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "public double precioFinal(){\r\n \r\n double plus = 0;\r\n \r\n switch(consumoElectrico){\r\n case 'A':\r\n plus +=100;\r\n break;\r\n case 'B':\r\n plus += 80;\r\n break;\r\n case 'C':\r\n plus +=60;\r\n break;\r\n case 'D':\r\n plus +=50;\r\n break;\r\n case 'E':\r\n plus+=30;\r\n break;\r\n case 'F':\r\n plus+=10;\r\n break;\r\n \r\n }\r\n \r\n \r\n if(peso>=0 && peso<=19){\r\n plus+=10;\r\n }else if(peso >=20 && peso<= 49){\r\n plus+=50;\r\n }else if(peso >= 50 && peso<=79){\r\n plus+=80;\r\n }else if(peso>=80){\r\n plus+=100;\r\n }\r\n return precioBase+plus;\r\n }", "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "@Override\n\tpublic float getPrecio() {\n\t\treturn 60.2f;\n\t}", "public double getProcenatOtkazivanje() {\n return procenatOtkazivanje;\n }", "public String dameValor(String campo) {\n\t\t// TODO Auto-generated method stub\n\t\tString c=\"\";\n\t\n\t\tif (campo.equals(Constantes.ID_ISFICHA))\n\t\t{\n\t\t\tc=IDISFICHA;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS))\n\t\t{\n\t\t\tc=NOTAS;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_ANOTACIONES))\n\t\t{\n\t\t\tc=ANOTACIONES;\n\t\t}\n\t\telse if (campo.equals(Constantes.FICHA_NOTAS_EJERCICIOS))\n\t\t{\n\t\t\tc=NOTAS_EJERCICIOS;\n\t\t}\n\t\treturn c;\n\t}", "@Override public double getCosto(){\n double d = 190.00;\n return d;\n }", "public Valore getValore() {\n\t\treturn valore;\n\t}", "public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }", "public double obtenerPrecio() {\n\t\t\n\t\treturn this.precio;\n\t}", "public double precioFinal() {\r\n double aumento = 0;\r\n switch (consumoEnergetico) {\r\n case 'A':\r\n aumento = 100;\r\n break;\r\n case 'B':\r\n aumento = 80;\r\n break;\r\n case 'C':\r\n aumento = 60;\r\n break;\r\n case 'D':\r\n aumento = 50;\r\n break;\r\n case 'E':\r\n aumento = 30;\r\n break;\r\n case 'F':\r\n aumento = 10; \r\n break;\r\n }\r\n if (peso >= 0 && peso <= 19) {\r\n aumento += 10;\r\n }else if ( peso >= 20 && peso <= 49) {\r\n aumento += 50;\r\n }else if ( peso >= 50 && peso <=79 ) {\r\n aumento += 80;\r\n }else if ( peso >= 80 ){\r\n aumento += 100;\r\n }\r\n \r\n double precioFinal = aumento + this.precioBase;\r\n return precioFinal;\r\n }", "public Float getPuntuacion( )\n\t{\n\t\treturn puntuacion;\n\t}", "public synchronized int get() { \n return this.soma_pares; \n }", "public int getCelular() {\n return celular;\n }", "public float getVlrFinanciado() {\n return vlrFinanciado;\n }", "double getPValue();", "public double calculaValor() throws QuartoDesocupadoException{\n\t\tif(this.getEstadia() != null){\n\t\t\treturn this.getEstadia().calculaValor(this.tipo);\t\t\t\n\t\t}\n\t\tthrow new QuartoDesocupadoException(String.format(\"Quarto %s nao esta ocupado.\", this.getNumero()));\n\t}" ]
[ "0.75365615", "0.7184981", "0.7161502", "0.6916873", "0.6823716", "0.6822063", "0.6756665", "0.67094976", "0.6666254", "0.66499734", "0.6620307", "0.6609256", "0.6601565", "0.6601565", "0.6596508", "0.65569824", "0.6541321", "0.6539591", "0.6534653", "0.65314823", "0.6504008", "0.6478012", "0.6460201", "0.6456142", "0.64325637", "0.6427394", "0.6403238", "0.6391183", "0.63830537", "0.63446164", "0.63365334", "0.6326304", "0.63048846", "0.62919086", "0.62890565", "0.6282604", "0.6275769", "0.62677723", "0.6263963", "0.6254927", "0.6248693", "0.6241705", "0.623419", "0.62304", "0.622771", "0.6226724", "0.6218659", "0.62172586", "0.62148", "0.62094444", "0.62026113", "0.6200787", "0.61938065", "0.6193773", "0.6192884", "0.6191784", "0.6165358", "0.6156913", "0.61535686", "0.613982", "0.6135157", "0.61323947", "0.61284834", "0.61264926", "0.6124311", "0.6123136", "0.61182857", "0.6112055", "0.6108165", "0.61079717", "0.6104371", "0.6093834", "0.609383", "0.6087879", "0.6082642", "0.6079331", "0.607775", "0.60766864", "0.6068003", "0.6067831", "0.6065259", "0.60514504", "0.6044084", "0.604146", "0.6041306", "0.6040517", "0.60373026", "0.60245216", "0.60236204", "0.60202223", "0.601798", "0.601431", "0.601004", "0.6004484", "0.6004436", "0.5999421", "0.59988314", "0.59969133", "0.59928596", "0.598973" ]
0.6312011
32
Valor da primeira parcela da compra
public CompraResponse primeiraParcela(BigDecimal primeiraParcela) { this.primeiraParcela = primeiraParcela; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double getValorParcela() {\n return valorParcela;\n }", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "public double getPrecioCompra() {\n return precioCompra;\n }", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "double getPerimetro();", "public float perimetro() {\n return (lado * 2 + base);\r\n }", "long buscarPrimeiro();", "public double calcularPortes() {\n\t\tif (this.pulgadas <= 40) {\n\t\t\tif (this.getPrecioBase() > 500)\n\t\t\t\treturn 0;\n\t\t\telse\n\t\t\t\treturn 35;\n\t\t} else\n\t\t\treturn 35 + (this.pulgadas - 40);\n\t}", "public int promedio() {\r\n // calculo y redondeo del promedio\r\n promedio = Math.round(nota1B+nota2B);\r\n // paso de Double a Int\r\n return (int) promedio;\r\n }", "public int getProteksi(){\n\t\treturn (getTotal() - getPromo()) * protectionCost / 100;\n\t}", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "public int cuantosParrafos() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas estrofas quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}", "public int getPrecio(){\n return precio;\n }", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "public double promedioAlum(){\n setProm((getC1() + getC2() + getC3() + getC4()) / 4);\n return getProm();\n }", "public int dameValor(C carta)\n\t{\n\t\tint n= carta.getNumero();\n\t\tif(n>=2 && n<=9)//el 10 no se usa\n\t\t\treturn n;\n\t\telse\n\t\t\treturn 10;\n\t\t\n\t}", "public double getPercepcion(){\n return localPercepcion;\n }", "public double precioFinal() {\r\n double aumento = 0;\r\n switch (consumoEnergetico) {\r\n case 'A':\r\n aumento = 100;\r\n break;\r\n case 'B':\r\n aumento = 80;\r\n break;\r\n case 'C':\r\n aumento = 60;\r\n break;\r\n case 'D':\r\n aumento = 50;\r\n break;\r\n case 'E':\r\n aumento = 30;\r\n break;\r\n case 'F':\r\n aumento = 10; \r\n break;\r\n }\r\n if (peso >= 0 && peso <= 19) {\r\n aumento += 10;\r\n }else if ( peso >= 20 && peso <= 49) {\r\n aumento += 50;\r\n }else if ( peso >= 50 && peso <=79 ) {\r\n aumento += 80;\r\n }else if ( peso >= 80 ){\r\n aumento += 100;\r\n }\r\n \r\n double precioFinal = aumento + this.precioBase;\r\n return precioFinal;\r\n }", "public double getPreco();", "public double getPreco();", "public double calcularPerimetro() {\n\t\treturn 2 * (base + altura);\n\t}", "public int cima(){\n return VectorPila[cima];\n }", "public double precioFinal(){\r\n \r\n double plus = 0;\r\n \r\n switch(consumoElectrico){\r\n case 'A':\r\n plus +=100;\r\n break;\r\n case 'B':\r\n plus += 80;\r\n break;\r\n case 'C':\r\n plus +=60;\r\n break;\r\n case 'D':\r\n plus +=50;\r\n break;\r\n case 'E':\r\n plus+=30;\r\n break;\r\n case 'F':\r\n plus+=10;\r\n break;\r\n \r\n }\r\n \r\n \r\n if(peso>=0 && peso<=19){\r\n plus+=10;\r\n }else if(peso >=20 && peso<= 49){\r\n plus+=50;\r\n }else if(peso >= 50 && peso<=79){\r\n plus+=80;\r\n }else if(peso>=80){\r\n plus+=100;\r\n }\r\n return precioBase+plus;\r\n }", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "public double CalcoloPerimetro () {\r\n \treturn 4*(base);\r\n }", "@Override\r\n\tpublic double porcentajeDelComercio() {\n\t\treturn 0.25;\r\n\t}", "public double getPreco(){\n return pagamento.getPreco();\n }", "public java.math.BigInteger getCantidadCUVErrado(){\n return localCantidadCUVErrado;\n }", "public double getParidadCosto() {\r\n return paridadCosto;\r\n }", "@Override\n public double perimetro() {\n return 4 * this.lado;\n }", "public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }", "String getPrecio();", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}", "public abstract float perimetro();", "public int getValeurCourante() {\n\t\treturn this.valC;\n\t}", "public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }", "public double getValorComercial() {\r\n return valorComercial;\r\n }", "public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "public float calcularPerimetro(){\n return baseMayor+baseMenor+(medidaLado*2);\n }", "public int getPantallaActual() {\r\n return this.iPantallaActual;\r\n }", "@Override\n\tpublic double perimetro() {\n\t\treturn 0;\n\t}", "public int getValor() {\n return Valor;\n }", "public double portataMassicaFumi( ){\r\n\t\treturn portatamassica;\r\n\t}", "public float totalVentas() {\n float total = 0;\n for (int i = 0; i < posicionActual; i++) {\n total += getValorCompra(i); //Recorre el arreglo y suma toda la informacion el el arreglo de los valores en una variable que luego se retorna \n }\n return total;\n }", "public float getMinAlturaCM();", "private float compruebaPorcentajeBarra(float porcentajeBarra)\n {\n if(porcentajeBarra<0)\n porcentajeBarra=0;\n return porcentajeBarra;\n }", "private double determinanteCuadrada(){\n\t\tdouble deter = 1;\n\t\tdouble [][] matriz = this.clone().getComponentes();\n\t\t\t\t\n\t\tfor(int i=0;i<this.dimensionCol;i++){\n\t\t\tif(matriz[i][i]==0){\n\t\t\t\tif(this.intercambiarConRenglonNoNuloPorDebajo(matriz, i)==true){\n\t\t\t\t\tdeter *= (-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.llevarACeroPosicionesPorDebajo(matriz, i);\n\t\t\tdeter*=matriz[i][i];\n\t\t}\n\t\t\t\t\n\t\treturn deter;\n\t}", "public void precioFinal(){\r\n if(getConsumoEnergetico() == Letra.A){\r\n precioBase = 100+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.B)){\r\n precioBase = 80+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.C){\r\n precioBase = 60+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.D)){\r\n precioBase = 50+precioBase;\r\n }\r\n else if(getConsumoEnergetico() == Letra.E){\r\n precioBase = 30+precioBase;\r\n }\r\n else if((getConsumoEnergetico() == Letra.F)){\r\n precioBase = 10+precioBase;\r\n }\r\n else{\r\n aux=1;\r\n System.out.println(\"...No existe...\");\r\n }\r\n if (aux==0){\r\n peso();\r\n }\r\n \r\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "public int getPrecios()\r\n {\r\n for(int i = 0; i < motos.size(); i++)\r\n {\r\n precio_motos += motos.get(i).getCoste();\r\n }\r\n \r\n return precio_motos;\r\n }", "public double dlugoscOkregu() {\n\t\treturn 2 * Math.PI * promien;\n\t}", "@Override\n public double obtenerVolumen(){\n return (1.0 / 3.0) * c.obtenerArea() * c.obtenerAltura();\n }", "public float getPrecio() {\r\n return precio;\r\n }", "public Double calcularPrecio() {\n double adicion = 0.0;\n\n switch (tipoAlimento) {\n case 'N':\n // Producto Natural\n adicion += 40;\n break;\n\n case 'C':\n // Producto con Conservantes\n adicion += 20;\n break;\n\n default:\n break;\n }\n\n // El peso tambien afecta el precio final del producto\n if (peso >= 0 && peso <= 9) {\n adicion += 6;\n }\n if (peso > 9 && peso <= 16) {\n adicion += 8;\n }\n if (peso > 16) {\n adicion += 20;\n }\n\n return precioBase + adicion;\n }", "public double getNecrosisPercentage()\r\n \t{\r\n \t\treturn necrosisPercentage;\r\n \t}", "public double getPrecio() {\n return precio;\n }", "public double obtenerPrecio() {\n return precio;\n }", "@Override\r\n\tpublic int precioTotal() {\n\t\treturn this.precio;\r\n\t}", "public double obtenerPrecio() {\n\t\t\n\t\treturn this.precio;\n\t}", "public P primeiro() {\n\t\treturn this.primeiro;\n\t}", "public double getPromedio() {\r\n return promedio;\r\n }", "public String getPriInicio () {\n return PriInicio;\n }", "private void peso(){\r\n if(getPeso()>80){\r\n precioBase+=100;\r\n }\r\n else if ((getPeso()<=79)&&(getPeso()>=50)){\r\n precioBase+=80;\r\n }\r\n else if ((getPeso()<=49)&&(getPeso()>=20)){\r\n precioBase+=50;\r\n }\r\n else if ((getPeso()<=19)&&(getPeso()>=0)){\r\n precioBase+=10;\r\n }\r\n }", "public BigDecimal getPercentageProfitPLimit();", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "@Override\r\n\tpublic Double precio() {\n\t\treturn this.combo.precio() + 50;\r\n\t}", "public int produtosDiferentesComprados(){\r\n return this.faturacao.produtosDiferentesComprados();\r\n }", "public int getEgresosPorCompras(){\n return this.egresosPorCompras;\n }", "public int getNumPrimo()\n {\n return numPrimo;\n\n }", "public int getNumeroParcelas() {\n return numeroParcelas;\n }", "public double getPreco() {\n\t\treturn preco;\n\t}", "public Double getPotencia(){\n return this.valor;\n }", "public void obtenerValorDePiezaEnPesosAPesos() {\r\n\t\tdouble precio = this.pieza.getPrecioEn(Moneda.PESO);\r\n\t\tAssert.assertEquals(precio, 40);\r\n\t}", "private double calculaPerimetro(){\r\n double perimetro;\r\n perimetro=(float) ((2*(cir.getY()-cir.getX()))*Math.PI);\r\n return perimetro;\r\n }", "public double getPrecio() {\n\t\treturn precio;\n\t}", "public String processamento(){\n \n List<com.profesorfalken.jsensors.model.components.Cpu> cpus = JSensors.get.components().cpus;\n if(cpus.isEmpty()) return \"40.0\";\n \n for (final com.profesorfalken.jsensors.model.components.Cpu cpu : cpus) {\n List<Load> loads = cpu.sensors.loads;\n for (final Load load : loads) {\n if(load.name.equals(\"Load CPU Total\"))\n return String.valueOf(load.value);\n }\n }\n return \"40.0\";\n }", "public double ValidaValor(){\n\t return 0;\n }", "public int getPesoV() \r\n\t\t{\r\n\t\t\treturn PesoV;\r\n\t\t}", "double getPValue();", "public void obtenerValorDePiezaEnDolaresAPesos() {\r\n\t\tpieza = new Pieza(\"\",10,Moneda.DOLAR);\r\n\t\tdouble precio = this.pieza.getPrecioEn(Moneda.PESO);\r\n\t\tAssert.assertEquals(precio, 40);\r\n\t}", "public double getPER() {\n\t\tint nq = q0.length;\n double sum = 0.0;\n for (int i=0; i<nq; i++) sum += q0[i];\n\t\treturn Math.min(1.0, 0.5*(1.0-(sum/(double)nq))/initPER); // 0.5 * proba erreur\t\t\n\t}", "public double getNajvacsie() {\n\t\tif ((cislo1 >= cislo2) && (cislo1 >= cislo3)) {\n\t\t\tprve = cislo1;\n\t\t} else if ((cislo2 >= cislo1) && (cislo2 >= cislo3)) {\n\t\t\tprve = cislo2;\n\t\t} else if ((cislo3 >= cislo1) && (cislo3 >= cislo2)) {\n\t\t\tprve = cislo3;\n\t\t}\n\t\treturn prve;\n\n\t}", "@Override\n\tpublic float getPrecio() {\n\t\treturn 60.2f;\n\t}", "public int getValor() {\r\n return valor;\r\n }", "@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }", "public double getPreco() {\n\t\treturn this.preco;\n\t}", "public synchronized int get() { \n return this.soma_pares; \n }", "public float obtenNumeroDePuertas(){\r\n return this.numeroDePuertas;\r\n }", "public double getValorProduto() {\n return valorProduto;\n }", "public int getPrecio() {\n\t\treturn this.producto.getPrecio();\n\t}", "public java.lang.Double getValorComissao() {\n return valorComissao;\n }", "public double peso() {\n double peso = 0.0;\n for (Arista a : aristas())\n peso += a.peso();\n return peso;\n }", "public void obtenerValorDePiezaEnDolaresADolares() {\r\n\t\tPieza pieza = new Pieza(\"\",10,Moneda.DOLAR);\t\t\r\n\t\tdouble precio = pieza.getPrecioEn(Moneda.DOLAR);\r\n\t\tAssert.assertEquals(precio, 10);\r\n\t}", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "public int getValor() {\n return valor;\n }", "void verEnPantalla() {\r\n\t\tSystem.out.println( numEnPantalla );\r\n\t}", "@Override public double getCosto(){\n double d = 190.00;\n return d;\n }" ]
[ "0.72211516", "0.72024626", "0.7137679", "0.7072255", "0.7006321", "0.68478656", "0.682919", "0.6817113", "0.68043494", "0.6731107", "0.6728404", "0.6669519", "0.6634715", "0.66144526", "0.6614291", "0.6580637", "0.6574126", "0.65689486", "0.6561814", "0.65524065", "0.654978", "0.654978", "0.6526601", "0.6519198", "0.6517997", "0.6510591", "0.6491006", "0.64864254", "0.6476285", "0.647586", "0.64482087", "0.6446016", "0.64398295", "0.64253306", "0.6421449", "0.6414701", "0.6390108", "0.6388367", "0.637362", "0.63654464", "0.6334967", "0.63336676", "0.63259864", "0.6309207", "0.6302878", "0.63010484", "0.6294975", "0.628841", "0.6273597", "0.62155753", "0.6215021", "0.621407", "0.62139183", "0.621077", "0.6206456", "0.6195664", "0.6186959", "0.61839056", "0.6182063", "0.61756974", "0.6174031", "0.6168425", "0.61633193", "0.6155917", "0.61553305", "0.6152125", "0.6147183", "0.614631", "0.6145905", "0.61456746", "0.6140314", "0.61400056", "0.6130279", "0.61297077", "0.6129491", "0.6129383", "0.6129058", "0.6127183", "0.6109177", "0.61035365", "0.610004", "0.6098331", "0.60971034", "0.60968286", "0.6095597", "0.6093369", "0.608513", "0.6084845", "0.6079873", "0.6074451", "0.607388", "0.6065822", "0.60648644", "0.6061465", "0.6058574", "0.6043356", "0.6038059", "0.60357594", "0.6030469", "0.60254073", "0.6023244" ]
0.0
-1
N\u00FAmero de parcelas da compra
public CompraResponse numeroParcelas(Integer numeroParcelas) { this.numeroParcelas = numeroParcelas; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}", "public int getNumeroParcelas() {\n return numeroParcelas;\n }", "public void ParcoursSuffixe() {\r\n if (getGauche() != null) {\r\n getGauche().ParcoursSuffixe();\r\n }\r\n if (getDroite() != null) {\r\n getDroite().ParcoursSuffixe();\r\n }\r\n System.out.print(getElement() + \",\");\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public void ParcoursPrefixe() {\r\n System.out.print(getElement() + \",\");\r\n if (getGauche() != null) {\r\n getGauche().ParcoursPrefixe();\r\n }\r\n if (getDroite() != null) {\r\n getDroite().ParcoursPrefixe();\r\n }\r\n }", "public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}", "public int cuantosParrafos() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas estrofas quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "int getNombreColonnesPlateau();", "public String getCUSU_NOMBRES(){\n\t\treturn this.myCusu_nombres;\n\t}", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "public String getPrimoCampo(){\n return descrizione.split(\",\")[0];\n }", "java.lang.String getNume();", "java.lang.String getNume();", "java.lang.String getPrenume();", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "@Override\n\tpublic void muestraNombre() {\n\t\tSystem.out.println(\"Adivina un número par\");\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public void nommerHeros() {\n\t\tSystem.out.println(\"\\nComment voulez vous appeler votre personnage ?\");\n\t\tthis.nom = Clavier.entrerClavierString();\n\t\tSystem.out.println(\"\\n*********Bienvenue dans le labyrinthe \" + getNom()+\"*********\");\n\t}", "public String ocurrencia() {\n String palabra = \"\";\n int retorno = 0;\n for (int i = 0; i < getCadena().length(); i++) {\n\n if ((getCadena().charAt(i) == ' ') || (i > getCadena().length() - 2)) {\n if (palabra.equals(getBuscar())) {\n retorno++;\n palabra = \"\";\n } else {\n palabra = \"\";\n }\n\n } else {\n palabra += getCadena().charAt(i);\n\n }\n }\n return (\"La cantida de ocurrencias son de:\" + '\\n' + retorno);\n }", "protected String elaboraHead() {\n String testo = VUOTA;\n String testoIncluso = VUOTA;\n\n // Avviso visibile solo in modifica\n testo += elaboraAvvisoScrittura();\n\n // Posiziona il TOC\n testoIncluso += elaboraTOC();\n\n // Posiziona il ritorno\n testoIncluso += elaboraRitorno();\n\n // Posizione il template di avviso\n testoIncluso += elaboraTemplateAvviso();\n\n // Ritorno ed avviso vanno (eventualmente) protetti con 'include'\n testo += elaboraInclude(testoIncluso);\n\n // Posiziona l'incipit della pagina\n testo += A_CAPO;\n testo += elaboraIncipit();\n\n // valore di ritorno\n return testo;\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "void verEnPantalla() {\r\n\t\tSystem.out.println( numEnPantalla );\r\n\t}", "public java.lang.String getProformaNo () {\n\t\treturn proformaNo;\n\t}", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "public String[] nombres(){\n return partida.nombres();\n }", "public int contaPercorre() {\n\t\tint contaM = 0;\n\t\tCampusModel aux = inicio;\n\t\tString r = \" \";\n\t\twhile (aux != null) {\n\t\t\tr = r + \"\\n\" + aux.getNomeCampus();\n\t\t\taux = aux.getProx();\n\t\t\tcontaM++;\n\t\t}\n\t\treturn contaM;\n\t}", "@Transient\n\tpublic String getNumerosREcibos(){\n\t\tString numerosrecibos=\" \";\n\t\n\t\tfor (ReciboDocumentoFiscal recibo : documento.getRecibos()) {\n\t numerosrecibos= numerosrecibos+recibo.getRecibo().getControl()+\" / \";\t\t\n\t\t}\n\t\treturn numerosrecibos;\n\t}", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "@Override\n\tpublic long unidadesComida() {\n\t\treturn 3;\n\t}", "int getNombreLignesPlateau();", "public java.lang.String getCodigo_pcom();", "public String verDatos(){\n return \"Ataque: \"+ataque+\"\\nDefensa: \"+defensa+\"\\nPunteria: \"+punteria;\n }", "public Nodo(String molecula) throws Exception {\n valor = molecula;\n nodoIzq = nodoDer = null;\n if (valor.length() > 1) {\n conectorPrincipal = buscarConectorPrincipal(valor);\n System.out.println(\"conector principal\" + conectorPrincipal);\n if (conectorPrincipal == '0') {\n throw new Exception(\"La expresion no es FBF\");\n }\n generarArbol();\n } else {\n try {\n conectorPrincipal = valor.charAt(0);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Cadena De Caracteres Vacia\");\n }\n\n }\n }", "public TipoCaracteresException() {\n\t\tsuper(\"Los campos 'nombre' y ' apellido' solo pueden contener letras\");\n\t}", "public String getInscricaoPossuidor() {\n return inscricaoPossuidor;\n }", "public void setNumeroParcelas(int numeroParcelas) {\n this.numeroParcelas = numeroParcelas;\n }", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "PrimitivaComunicacion(String simbolo){\r\n this.simbolo = simbolo;\r\n }", "public String getCUSU_APELLIDOS(){\n\t\treturn this.myCusu_apellidos;\n\t}", "public String getApellidos() { return (this.apellidos == null) ? \"\" : this.apellidos; }", "public String darPista() {\r\n\t\tString msj = \"\";\r\n\t\tboolean fin = false;\r\n\t\tfor (int i = 0; i < casillas.length && !fin; i++) {\r\n\t\t\tfor (int j = 0; j < casillas[0].length && !fin; j++) {\t\t\r\n\t\t\t\tif(casillas[i][j].esMina() == false && casillas[i][j].darValor() > 0) {\r\n\t\t\t\t\tcasillas[i][j].destapar();\r\n\t\t\t\t\tmsj += i+\",\"+j;\r\n\t\t\t\t\tfin = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn msj;\r\n\t}", "public String[] verNumerosDeCuetas (){\r\n\t\tString[] cuentasPersona = new String[0];\r\n\t\tfor(int i =0;i<cuentas.length;i++){\r\n\t\t\tcuentasPersona=Arrays.copyOf(cuentasPersona, cuentasPersona.length+1);\r\n\t\t\tcuentasPersona[i]=cuentas[i].getNumeroCuenta();\r\n\t\t}\r\n\t\treturn cuentasPersona;\r\n\t}", "public String getvCodtupa() {\n return vCodtupa;\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}", "public int getComuneNascitaCod() {\r\n return comuneNascitaCod;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "String getCognome();", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public int getPodbrojParcele() {\n return podbrojParcele;\n }", "public void showPosicoes() {\n this.print(\"\\n\");\n for (int i = 0; i < listaJogadores.size(); i++) {\n // System.out.print(posicoes[i] + \"\\t\");\n }\n }", "public String getDescricaoCaminhao() {\n return getDescricaoVeiculo() + \"\\t\" + capacidadeCarga;\n }", "public String verDados() {\n\t\treturn super.verDados() + \"\\nSobremesa: \" + this.adicionais;\n\n\t}", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "@Column(name = \"C_PRIMER_NOMBRE\")\n public String getPrimerNombre() {\n return primerNombre;\n }", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "separador(){\r\n uno = null;\r\n dos = null;\r\n tres = null;\r\n cero = null;\r\n }", "public Parametros() {\r\n semilla = SEMILLA_DEFECTO;\r\n numeroPistas = NUMERO_PISTAS_DEFECTO;\r\n duracionSlot = DURACION_SLOT_DEFECTO;\r\n frecuencia = FRECUENCIA_DEFECTO;\r\n duracionMedia = DURACION_MEDIA_DEFECTO;\r\n duracionDesviacion = DURACION_DESVIACION_DEFECTO;\r\n duracionMinima = DURACION_MINIMA_DEFECTO;\r\n demoraMedia = DEMORA_MEDIA_DEFECTO;\r\n demoraDesviacion = DEMORA_DESVIACION_DEFECTO;\r\n }", "String getCodiceFiscale();", "public String getNombreFicheroAlumno(){\n\t\treturn \"Ev-Intermedia-Arboles-BST-Apellido1Apellido2Nombre-UOxxxx\";\n\t}", "public String getNombres() { return (this.nombres == null) ? \"\" : this.nombres; }", "public String getNombres() { return (this.nombres == null) ? \"\" : this.nombres; }", "public abstract java.lang.String getCod_tecnico();", "public String getCodigoDeBarras() {\n\t\treturn producto.getCodigoDeBarras();\n\t}", "public int compterAnimaux(){\r\n\t\treturn noms.size();\r\n\t}", "public String getNombreCompleto();", "public String primerTicketDisponible() {\n\t\tString ticketLibre = \"|L|\";\n\t\tString ticketLibrePosicion;\n\t\tfor (int i = 0; i < getNumeroAsientosFila(); i++) {\n\t\t\tfor (int j = 0; j < getNumeroAsientosColumna(); j++) {\n\t\t\t\tif (vagonVacio[i][j].equals(ticketLibre)) {\n\t\t\t\t\tticketLibrePosicion = Integer.toString(i) +\" \"+ Integer.toString(j);\n\t\t\t\t\treturn ticketLibrePosicion;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic String getInforme() {\n\t\treturn \"INFORME COMERCIAL 3: REPORTE SEMANAL VENTAS\" + \"\\n\" + reporteSemanal.getInformeFinancieroEspecial();\n\t}", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "String getPrimeiroNome();", "@Override\r\n\tpublic String falar() {\r\n\t\treturn \"[ \"+getNome()+\" ] Sou Um Professor\";\r\n\t}", "@Override\n\t@Field(offset=214, length=8, paddingChar=' ', align=Align.LEFT)\n\tpublic String getMotivoOcorrencia() {\n\t\treturn super.getMotivoOcorrencia();\n\t}", "@Test\n\tpublic void testLecturaNombre() {\n\t\tassertTrue(!esquemaReal.getNombrePatron().equals(\"\"));\n\t}", "protected String elaboraIncipitSpecifico() {\n return VUOTA;\n }", "public String getMarca()\n {\n return \"\\nDispositivo Marca \" + Marca; \n }", "public void setNombres(String p) { this.nombres = p; }", "public String getProblema() {\n return problema;\n }", "public int getEgresosPorCompras(){\n return this.egresosPorCompras;\n }", "public String getCodigoLivro() throws IOException {\r\n ArrayList<String> listLivros = livro.getListLivros();\r\n String codigo = null;\r\n for (int i = 0; i < listLivros.size(); i++) {\r\n if (listLivros.get(i).contains(jComboBoxLivros.getSelectedItem().toString())) {\r\n String[] temp = listLivros.get(i).split(\";\");\r\n codigo = temp[0];\r\n }\r\n }\r\n return codigo;\r\n }", "public static void mensajeInicioPrueba(String nombre_clase){\n \n System.out.println(\" --- INICIANDO PRUEBAS DE \"+nombre_clase+\".JAVA --- \");\n }", "public void printAnnuNom() \n {\n System.out.println(\"Annuaire de \"+nomAnnuaire);\n }", "public static void MostrarPerroSegunCodigo( Perro BaseDeDatosPerros[]){\n int codigo;\r\n System.out.println(\"Ingrese el codigo del perro del cual decea saber la informacion\");\r\n codigo=TecladoIn.readLineInt();\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(\"El nombre del Dueño es: \"+BaseDeDatosPerros[codigo].getNombreDuenio());\r\n System.out.println(\"El telefono del Dueño es :\"+BaseDeDatosPerros[codigo].getTelefonoDuenio());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }", "public static String obtenerTitulosParcelas(String key) {\n\t\tString archivoEncabezados = \"co/gov/ideamredd/recursos/encabezados\";\n\t\tResourceBundle encabezados = ResourceBundle.getBundle(archivoEncabezados);\n\t\ttry {\n\t\t\treturn encabezados.getString(key);\n\t\t}\n\t\tcatch (MissingResourceException e) {\n\t\t\treturn '!' + key + '!';\n\t\t}\n\t}", "@Override\r\n\tpublic final String getNombreRaza() {\r\n\t\treturn \"Orco\";\r\n\t}", "public String getPriInicio () {\n return PriInicio;\n }", "@Override\n\tpublic long getNumeroContrato() {\n\t\t// TODO Auto-generated method stub\n\t\treturn super.getNumeroContrato();\n\t}", "public String nombreTipoPago(){\n if (this.tipoPago == TipoPago.CONDONACION_PAGO_CONTADO) return \"Condonaci�n Pago Contado\";\n else if (this.tipoPago == TipoPago.CONVENIO_SIN_CONDONACION) return \"Convenio Sin Condonaci�n\";\n else return \"Convenio Con Condonaci�n\";\n }", "public String getPrenom() {\r\n return prenom;\r\n }", "protected String getTitoloPaginaMadre() {\n return VUOTA;\n }", "public Integer cantidadCompras(){\n\t\t// Implementar\n\t\treturn this.compras.size();\n\t}", "@Test\n public void nao_deve_aceitar_descricao_com_caracteres_especiais() {\n telefone.setDescricao(\"celular empresarial: (11)9####-####.\");\n assertFalse(isValid(telefone, \"A descrição não pode conter acentos, caracteres especiais e números.\", Find.class));\n }", "public String tipoConta() {\n return \"Conta Comum\";\n }", "public void imprimeDados() {\n System.out.println(\"Banco: \" + nome + \"\\tNumero do banco \" + numero);\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public void parler() {\n\t System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet\n\t System.out.println(\"Je suis un animal et j'ai \" + this.nombreDePatte + \" pattes\");\n\t }", "public String[] disponibilidad(){\n\t\tString[] devolucion = null;\n\t\tdevolucion = new String[almacen.length];\n\t\t\n\t\tfor (int i = 0; i < devolucion.length; i++) {\n\t\t\tif(almacen[i]!=null){\n\t\t\t\tdevolucion[i]=almacen[i].getEtiqueta();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn devolucion;\n\t}" ]
[ "0.64021695", "0.6318539", "0.62521183", "0.6211581", "0.61550057", "0.61229044", "0.61131597", "0.6072541", "0.6054417", "0.60436374", "0.6041947", "0.6038128", "0.6023903", "0.6023215", "0.59823817", "0.5941912", "0.5941912", "0.59108377", "0.5890333", "0.5864755", "0.58555865", "0.5844552", "0.5808007", "0.5807965", "0.5770963", "0.57387775", "0.5736321", "0.57254595", "0.57220453", "0.5697786", "0.5683797", "0.5676794", "0.5674361", "0.5657968", "0.5653005", "0.56528586", "0.564674", "0.56362396", "0.5631262", "0.5624794", "0.56139344", "0.56097615", "0.56094605", "0.5603787", "0.5603345", "0.55945563", "0.55941516", "0.55922335", "0.55852765", "0.55817574", "0.55814457", "0.5578951", "0.55786574", "0.55706394", "0.5558219", "0.5554234", "0.55493635", "0.55444634", "0.5540835", "0.5532644", "0.55139214", "0.5510413", "0.55026937", "0.55009586", "0.5495673", "0.5495673", "0.54912007", "0.5490658", "0.54888755", "0.54880315", "0.54856294", "0.54844344", "0.54780096", "0.5474498", "0.5468926", "0.545388", "0.5452662", "0.544935", "0.54391956", "0.5435468", "0.5421849", "0.5419737", "0.5417567", "0.5416087", "0.5414981", "0.5414171", "0.54110014", "0.5409231", "0.54042095", "0.54031855", "0.53933024", "0.5391769", "0.53901315", "0.5384271", "0.538209", "0.53807116", "0.53768015", "0.5375272", "0.53751224", "0.53744185" ]
0.5482202
72
N\u00FAmero de parcelas antecip\u00E1veis da compra
public CompraResponse numeroParcelasAntecipaveis(Integer numeroParcelasAntecipaveis) { this.numeroParcelasAntecipaveis = numeroParcelasAntecipaveis; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "void verEnPantalla() {\r\n\t\tSystem.out.println( numEnPantalla );\r\n\t}", "public int cuantosParrafos() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas estrofas quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}", "public int contaPercorre() {\n\t\tint contaM = 0;\n\t\tCampusModel aux = inicio;\n\t\tString r = \" \";\n\t\twhile (aux != null) {\n\t\t\tr = r + \"\\n\" + aux.getNomeCampus();\n\t\t\taux = aux.getProx();\n\t\t\tcontaM++;\n\t\t}\n\t\treturn contaM;\n\t}", "protected String elaboraHead() {\n String testo = VUOTA;\n String testoIncluso = VUOTA;\n\n // Avviso visibile solo in modifica\n testo += elaboraAvvisoScrittura();\n\n // Posiziona il TOC\n testoIncluso += elaboraTOC();\n\n // Posiziona il ritorno\n testoIncluso += elaboraRitorno();\n\n // Posizione il template di avviso\n testoIncluso += elaboraTemplateAvviso();\n\n // Ritorno ed avviso vanno (eventualmente) protetti con 'include'\n testo += elaboraInclude(testoIncluso);\n\n // Posiziona l'incipit della pagina\n testo += A_CAPO;\n testo += elaboraIncipit();\n\n // valore di ritorno\n return testo;\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public String verDatos(){\n return \"Ataque: \"+ataque+\"\\nDefensa: \"+defensa+\"\\nPunteria: \"+punteria;\n }", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "@Override\n\tpublic long unidadesComida() {\n\t\treturn 3;\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public String getInscricaoPossuidor() {\n return inscricaoPossuidor;\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}", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "public String getCUSU_NOMBRES(){\n\t\treturn this.myCusu_nombres;\n\t}", "public String getnAsignatura() {\r\n return nAsignatura;\r\n }", "public int getComuneNascitaCod() {\r\n return comuneNascitaCod;\r\n }", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "java.lang.String getNume();", "java.lang.String getNume();", "public String[] verNumerosDeCuetas (){\r\n\t\tString[] cuentasPersona = new String[0];\r\n\t\tfor(int i =0;i<cuentas.length;i++){\r\n\t\t\tcuentasPersona=Arrays.copyOf(cuentasPersona, cuentasPersona.length+1);\r\n\t\t\tcuentasPersona[i]=cuentas[i].getNumeroCuenta();\r\n\t\t}\r\n\t\treturn cuentasPersona;\r\n\t}", "public String getCUSU_APELLIDOS(){\n\t\treturn this.myCusu_apellidos;\n\t}", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public String verDados() {\n\t\treturn super.verDados() + \"\\nSobremesa: \" + this.adicionais;\n\n\t}", "protected String elaboraIncipitSpecifico() {\n return VUOTA;\n }", "private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "public int getEgresosPorCompras(){\n return this.egresosPorCompras;\n }", "@Override\n\tpublic void muestraNombre() {\n\t\tSystem.out.println(\"Adivina un número par\");\n\t}", "public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }", "public String ocurrencia() {\n String palabra = \"\";\n int retorno = 0;\n for (int i = 0; i < getCadena().length(); i++) {\n\n if ((getCadena().charAt(i) == ' ') || (i > getCadena().length() - 2)) {\n if (palabra.equals(getBuscar())) {\n retorno++;\n palabra = \"\";\n } else {\n palabra = \"\";\n }\n\n } else {\n palabra += getCadena().charAt(i);\n\n }\n }\n return (\"La cantida de ocurrencias son de:\" + '\\n' + retorno);\n }", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "public java.lang.String getProformaNo () {\n\t\treturn proformaNo;\n\t}", "@Override\n public String getAgenciaCodCedenteFormatted() {\n return boleto.getAgencia() + \"/\" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\n }", "int getNombreColonnesPlateau();", "public Number getPesocont()\n {\n return (Number)getAttributeInternal(PESOCONT);\n }", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "@Override\n\tpublic long getNumeroContrato() {\n\t\t// TODO Auto-generated method stub\n\t\treturn super.getNumeroContrato();\n\t}", "public int getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}", "public String getAgenciaCodCedenteFormatted() {\r\n return boleto.getAgencia() + \" / \" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\r\n }", "public Nodo(String molecula) throws Exception {\n valor = molecula;\n nodoIzq = nodoDer = null;\n if (valor.length() > 1) {\n conectorPrincipal = buscarConectorPrincipal(valor);\n System.out.println(\"conector principal\" + conectorPrincipal);\n if (conectorPrincipal == '0') {\n throw new Exception(\"La expresion no es FBF\");\n }\n generarArbol();\n } else {\n try {\n conectorPrincipal = valor.charAt(0);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Cadena De Caracteres Vacia\");\n }\n\n }\n }", "public Integer getAnnoCorso() {\r\n return this.annoCorso;\r\n }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public int getCedula() {\n return cedula;\n }", "@Override\n\tpublic String getInforme() {\n\t\treturn \"INFORME COMERCIAL 3: REPORTE SEMANAL VENTAS\" + \"\\n\" + reporteSemanal.getInformeFinancieroEspecial();\n\t}", "public double getNecrosisPercentage()\r\n \t{\r\n \t\treturn necrosisPercentage;\r\n \t}", "public int getNumeroParcelas() {\n return numeroParcelas;\n }", "public int getDatossolicitudBfmarcaPreaprobado() {\n return datossolicitudBfmarcaPreaprobado;\n }", "java.lang.String getPrenume();", "public Integer getCedula() {return cedula;}", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "public String agregarSintomasCovid(Empleado otroEmpleado){\n \n String text = \"\";\n \n if(otroEmpleado.getArrayCovid().isEmpty() == false){\n text +=\"Se recomienda que el empleado \" + otroEmpleado.getNombre() + \" se aisle de forma preventiva durante 14 dias\\n\"\n + \" Comuniquese en Bogotá: +57(1) 330 5041\\n | Celular: 192 |\\n Resto del país: 018000955590\";\n }\n return text;\n }", "public void carregarAno() {\n\t\tif (usuario.getOrganizacaoMilitar().toString().equals(\"AMAN\")){\n\t\t\tano.addAll(Arrays.asList(Ano.values()));\n\t\t}\n\t\telse if (usuario.getOrganizacaoMilitar().toString().equals(\"ECEME\")){\n\t\t\tano.addAll(Arrays.asList(Ano.values()));\n\t\t\tano.remove(Ano.TERCEIRO);\n\t\t\tano.remove(Ano.QUARTO);\n\t\t}\n\t\telse{\n\t\t\tcarregarRegistroDoPrimeiroAno();\n\t\t}\n\t}", "public String getNaturalCondOferta(String caso) {\n switch (caso) {\n case \"aumenta\":\n return \"Melhorando as condições naturais que afetam a produção daquele tipo de produto leva a menor dificuldade e investimento para compensar.\"\n + \"Com menor custo envolvendo a produção temos então uma maior oferta dela.\";\n case \"diminui\":\n return \"Com as condições naturais não sendo a favor para a produção de específico produto temos então aumento nos preços já que isso envolve\"\n + \"mais investimentos para compensar as dificuldades que o ambiente oferece, dessa modo fazendo com que o preco suba e oferta diminua\";\n }\n return null;\n }", "public String getDescricaoCaminhao() {\n return getDescricaoVeiculo() + \"\\t\" + capacidadeCarga;\n }", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "public String getPriInicio () {\n return PriInicio;\n }", "@Override\n\t@Field(offset=37, length=1, paddingChar=' ', align=Align.LEFT)\n\tpublic String getDvContaCedente() {\n\t\treturn super.getDvContaCedente();\n\t}", "public String tipoConta() {\n return \"Conta Comum\";\n }", "private String getIntroduzione(StrutturaDati _cell) {\n\t\tfor (StrutturaDati testo : _cell.getAttributi()) {\n\t\t\tif (testo.isText()) {\n\t\t\t\treturn testo.getNome().trim();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public java.lang.String getNrContrato() {\n return nrContrato;\n }", "public String darPista() {\r\n\t\tString msj = \"\";\r\n\t\tboolean fin = false;\r\n\t\tfor (int i = 0; i < casillas.length && !fin; i++) {\r\n\t\t\tfor (int j = 0; j < casillas[0].length && !fin; j++) {\t\t\r\n\t\t\t\tif(casillas[i][j].esMina() == false && casillas[i][j].darValor() > 0) {\r\n\t\t\t\t\tcasillas[i][j].destapar();\r\n\t\t\t\t\tmsj += i+\",\"+j;\r\n\t\t\t\t\tfin = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn msj;\r\n\t}", "private void carregaAvisosGerais() {\r\n\t\tif (codWcagEmag == WCAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.1\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.4\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"14.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"12.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"4.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"9.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"11.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.7\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\t// comentado por n�o ter achado equi\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\t// erroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO,\r\n\t\t\t// codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"13.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t} else if (codWcagEmag == EMAG) {\r\n\t\t\t/*\r\n\t\t\t * Mudan�as de idioma\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Ignorar arte ascii\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Utilizar a linguagem mais clara e simples poss�vel\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * navega��o de maneira coerente\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.21\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"1.24\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer mapa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"2.17\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Abreviaturas\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.2\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Fornecer atalho\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.3\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Prefer�ncias (por ex., por idioma ou por tipo de conte�do).\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.5\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * BreadCrumb\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.6\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * fun��es de pesquisa\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.8\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * front-loading\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.9\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Documentos compostos por mais de uma p�gina\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.10\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Complementar o texto com imagens, etc.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.11\", AVISO, codWcagEmag, \"\"));\r\n\t\t\t/*\r\n\t\t\t * Forne�a metadados.\r\n\t\t\t */\r\n\t\t\terroOuAviso.add(new ArmazenaErroOuAviso(\"3.14\", AVISO, codWcagEmag, \"\"));\r\n\t\t}\r\n\r\n\t}", "public java.lang.String getCodigo_pcom();", "public void nommerHeros() {\n\t\tSystem.out.println(\"\\nComment voulez vous appeler votre personnage ?\");\n\t\tthis.nom = Clavier.entrerClavierString();\n\t\tSystem.out.println(\"\\n*********Bienvenue dans le labyrinthe \" + getNom()+\"*********\");\n\t}", "public abstract java.lang.String getAcma_cierre();", "public abstract java.lang.String getCod_tecnico();", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "String getCognome();", "public void nace() {\n System.out.println(\"Ostia, acabo de nacer tío.\");\n }", "public String getMotEnCours() {\n\t\treturn null;\n\t}", "protected String getTitoloPaginaMadre() {\n return VUOTA;\n }", "public String getvCodtupa() {\n return vCodtupa;\n }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" Corrente :\"+ super.getNumero();\n\t}", "@Override\n\t@Field(offset=214, length=8, paddingChar=' ', align=Align.LEFT)\n\tpublic String getMotivoOcorrencia() {\n\t\treturn super.getMotivoOcorrencia();\n\t}", "String getCidade();", "public int getNumNudo() {\n return numNudo;\n }", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}", "public java.lang.String getProrrataAnualDefinitiva() {\r\n return prorrataAnualDefinitiva;\r\n }", "public Long getNumContaCorrente() {\n\t\treturn numContaCorrente;\n\t}", "public Conta (int numero, int agencia) {\n this.numero = numero;\n this.agencia = agencia;\n System.out.println(\"Seu número de agência e conta são, respectivamente: \" + getNumero() + \", \"\n + getAgencia() + \"e do tipo: \" + tipo() );\n }", "public void printAnnuNom() \n {\n System.out.println(\"Annuaire de \"+nomAnnuaire);\n }", "@Override\r\n\tpublic String falar() {\r\n\t\treturn \"[ \"+getNome()+\" ] Sou Um Professor\";\r\n\t}", "public Conta(String numero, String agencia) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = 0.0;\n }", "@Override\n\tpublic int sacameVida(ElementoPiedra a) {\n\t\treturn 20;\n\t}", "int getNombreLignesPlateau();", "public double getNajvacsie() {\n\t\tif ((cislo1 >= cislo2) && (cislo1 >= cislo3)) {\n\t\t\tprve = cislo1;\n\t\t} else if ((cislo2 >= cislo1) && (cislo2 >= cislo3)) {\n\t\t\tprve = cislo2;\n\t\t} else if ((cislo3 >= cislo1) && (cislo3 >= cislo2)) {\n\t\t\tprve = cislo3;\n\t\t}\n\t\treturn prve;\n\n\t}", "public String[] disponibilidad(){\n\t\tString[] devolucion = null;\n\t\tdevolucion = new String[almacen.length];\n\t\t\n\t\tfor (int i = 0; i < devolucion.length; i++) {\n\t\t\tif(almacen[i]!=null){\n\t\t\t\tdevolucion[i]=almacen[i].getEtiqueta();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn devolucion;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Apart N°\"+Nombre;\n\t}", "public int getNUMCOPIAS() {\n return numcopias;\n }", "public void imprimeDados() {\n System.out.println(\"Banco: \" + nome + \"\\tNumero do banco \" + numero);\n }", "public String primerTicketDisponible() {\n\t\tString ticketLibre = \"|L|\";\n\t\tString ticketLibrePosicion;\n\t\tfor (int i = 0; i < getNumeroAsientosFila(); i++) {\n\t\t\tfor (int j = 0; j < getNumeroAsientosColumna(); j++) {\n\t\t\t\tif (vagonVacio[i][j].equals(ticketLibre)) {\n\t\t\t\t\tticketLibrePosicion = Integer.toString(i) +\" \"+ Integer.toString(j);\n\t\t\t\t\treturn ticketLibrePosicion;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String imprime() {\r\n\t\tstatus = \"=== Central P2-CG ===\" + quebraLinha;\r\n\t\tfor (Usuario usuario : loja.getUsuarios()) {\r\n\t\t\tstatus+= usuario.getLogin()+ quebraLinha;\r\n\t\t\tstatus+= usuario.getNome() + quebraLinha;\r\n\t\t\tstatus+= \"Jogador \" + usuario.tipoJogador()\r\n\t\t\t\t\t+ \": \" + usuario.getPontos() + \" x2p\" + quebraLinha;\r\n\t\t\t\r\n\t\t\tstatus+= \"Lista de Jogos:\"+ quebraLinha;\r\n\t\t\tfor (Jogo jogo : usuario.getJogos()) {\r\n\t\t\t\tstatus+= \"+\" + jogo.getNome() + \" - \"\r\n\t\t\t\t\t\t+ jogo.getClass().getSimpleName() + \":\" + quebraLinha;\r\n\t\t\t\tstatus+= \"===> Jogou \" + jogo.getVezesjogadas()\r\n\t\t\t\t\t\t+ \" vez(es)\"+ quebraLinha;\r\n\t\t\t\tstatus+= \"===> Zerou \" + jogo.getZerajogo()\r\n\t\t\t\t\t\t+ \" vez(es)\"+ quebraLinha;\r\n\t\t\t\tstatus+= \"===> Maior Score \" + jogo.getScore()+ quebraLinha;\r\n\t\t\t\tstatus+= quebraLinha;\r\n\r\n\t\t\t}\r\n\t\t\tdesconto += usuario.getDesconto();\r\n\r\n\t\t\t\r\n\t\t}\r\n\t\tstatus+= \"Total de preco dos jogos: R$ \" + valorTotal + quebraLinha;\r\n\t\tstatus+= \"---------------------------------------------\"+quebraLinha;\r\n\t\tstatus+= \"Total arrecadado com vendas de jogos:\" + desconto + quebraLinha;\r\n\t\tstatus+= quebraLinha;\r\n\t\tdesconto = 0;\r\n\t\treturn status;\r\n\t}" ]
[ "0.6563144", "0.63566804", "0.6351534", "0.6329354", "0.6323355", "0.6318411", "0.6305072", "0.62837857", "0.62552714", "0.62434804", "0.62239176", "0.6209107", "0.6197611", "0.6160698", "0.615626", "0.6151415", "0.6133552", "0.6123952", "0.61225086", "0.6117968", "0.61160797", "0.60993195", "0.6092874", "0.6092874", "0.60863906", "0.6085667", "0.60663486", "0.6064742", "0.6063123", "0.60591465", "0.6053292", "0.60502535", "0.6049893", "0.604759", "0.604317", "0.6042067", "0.60205376", "0.5997639", "0.5991594", "0.5982574", "0.59823626", "0.5964941", "0.59597737", "0.59439874", "0.59343255", "0.59312534", "0.5914457", "0.59138966", "0.58973175", "0.5894541", "0.588606", "0.58803475", "0.58740777", "0.5860918", "0.5856966", "0.58524317", "0.58321905", "0.5829655", "0.5825569", "0.58250916", "0.5824572", "0.58168906", "0.5815103", "0.58010614", "0.5793278", "0.5785246", "0.5780774", "0.57778996", "0.5777578", "0.57774", "0.5775435", "0.577404", "0.5769592", "0.5764148", "0.57633716", "0.5747061", "0.57433486", "0.574215", "0.5741936", "0.5734604", "0.57316035", "0.57308733", "0.5729722", "0.57210314", "0.57202095", "0.57153094", "0.5713123", "0.57109946", "0.57094663", "0.57065684", "0.5704395", "0.56976515", "0.5689633", "0.5686246", "0.56861484", "0.56821764", "0.5681275", "0.5679738", "0.5679204", "0.5678065" ]
0.5863328
53
Nome do estabelecimento da compra
public CompraResponse nomeEstabelecimento(String nomeEstabelecimento) { this.nomeEstabelecimento = nomeEstabelecimento; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCognomeNome() {\n\t\treturn this.cognome + \" \" + this.nome;\n\t}", "@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}", "public String name() {\n return celestialName;\n }", "String getCName() {\n return nameTF.getText();\n }", "public String getNome(){\n return preferencias.getString(CHAVE_NOME, null);\n }", "public String getName() {\n\tif (num_comp == 0)\n\t return(\"\");\n\treturn(comp[num_comp-1]);\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "public String lerNome() {\n\t\treturn JOptionPane.showInputDialog(\"Digite seu Nome:\");\n\t\t// janela de entrada\n\t}", "@Override\n\t@Field(offset=149, length=30, paddingChar=' ', align=Align.RIGHT)\n\tpublic String getNomeSacado() {\n\t\treturn super.getNomeSacado();\n\t}", "public String getName() {\n\t\tInteger inicio = indices.elementAt(0);\n\t\tInteger fin = (indices.size() > 1 ? indices.elementAt(1) : contenido.length());\n\t\treturn contenido.substring(inicio, fin-1);\n\t}", "public String getNome() {\n\t\treturn this.disciplina;\n\t}", "String getUltimoNome();", "public String getName() {\n return \"\";\n }", "public String getName() {\n return \"\";\n }", "public Object getNome() {\n\t\treturn null;\n\t}", "String getName() ;", "public String nome() {\n\t\treturn this.nome;\n\t}", "public String getNomeCurso()\n\t{\n\t\t// Retorna o nome do Curso\n\t\treturn cursoNome;\n\t}", "public String getName() {\n return this.id + \", \" + this.nom + \" \" + this.prenom + \", \" + this.cin;\n }", "String getNome();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.74020696", "0.7236359", "0.72344804", "0.72280616", "0.72068906", "0.72013664", "0.71848106", "0.7145971", "0.7068963", "0.694807", "0.69336087", "0.692857", "0.69275683", "0.69275683", "0.6923829", "0.6921696", "0.68781227", "0.6874883", "0.68728983", "0.68632555", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.682424", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843", "0.68120843" ]
0.0
-1
Tipo de transa\u00E7\u00E3o da compra
public CompraResponse tipoOrigemTransacao(String tipoOrigemTransacao) { this.tipoOrigemTransacao = tipoOrigemTransacao; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String tipoConta() {\n return \"Conta Comum\";\n }", "public abstract java.lang.String getCod_tecnico();", "public String nombreTipoPago(){\n if (this.tipoPago == TipoPago.CONDONACION_PAGO_CONTADO) return \"Condonaci�n Pago Contado\";\n else if (this.tipoPago == TipoPago.CONVENIO_SIN_CONDONACION) return \"Convenio Sin Condonaci�n\";\n else return \"Convenio Con Condonaci�n\";\n }", "public String getTipo() {\n\t\treturn \"Berlina\";\r\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "private String parsearTipo (Tipo pTipo)\n\t{\n\t\tString rta = \"Cuidados intensivos\";\n\t\tif(pTipo==Tipo.CUIDADOS_INTERMEDIOS)\n\t\t{\n\t\t\trta= \"Cuidados intermedios\";\n\t\t}\n\t\telse if(pTipo == Tipo.PEDIATRIA)\n\t\t{\n\t\t\trta= \"Pediatría\";\n\t\t}\n\t\telse if(pTipo == Tipo.MATERNIDAD)\n\t\t{\n\t\t\trta= \"Maternidad\";\n\t\t}\n\t\telse if (pTipo == Tipo.GERIATRIA)\n\t\t{\n\t\t\trta= \"Geriatría\";\n\t\t}\n\t\telse if (pTipo == Tipo.OBSERVACION)\n\t\t{\n\t\t\trta = \"Observación\";\n\t\t}\n\t\treturn rta;\n\t}", "public char getName(){\n\t\treturn tipo;\n\t}", "public char getCouleur(){\t\n\t\treturn couleur;\n\t}", "@AutoEscape\n\tpublic String getTipoLocacion();", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "public String getCoueseTypeName() {\n return coueseTypeName;\n }", "protected int getType() {\n return MenuBrawable.CONVEX;\n }", "@Override public String getCarne(){\n return \"salchicha y jamón \";\n }", "String getCodiceFiscale();", "java.lang.String getPrenume();", "public static String saberTipo(Expediente c1) {\n\n\t\tif (c1 instanceof Multa_Trafico) {\n\t\t\treturn \"Eres multa de tráfico\";\n\t\t}\n\t\tif (c1 instanceof Multa_Covid) {\n\t\t\treturn \"Eres multa de Covid\";\n\t\t}\n\t\tif (c1 instanceof Multa) {\n\t\t\treturn \"Eres multa\";\n\t\t}\n\t\tif (c1 instanceof Expediente) {\n\t\t\treturn \"Eres Expediente\";\n\t\t}\n\n\t\treturn \"No lo sé\";\n\t}", "@Override\r\n public String toString() {\r\n return tipo;\r\n }", "@java.lang.Override\n public java.lang.String getTipo() {\n java.lang.Object ref = tipo_;\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 tipo_ = s;\n return s;\n }\n }", "public abstract java.lang.String getAcma_cierre();", "public char cambiarSexoAChar(@SuppressWarnings(\"rawtypes\") JComboBox campoTexto) {\n\t\tString sexo = campoTexto.getSelectedItem().toString();\n\t\tif (sexo == \"Hombre\") {\n\t\t\treturn 'V';\n\t\t} else\n\t\t\treturn 'M';\n\t}", "protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }", "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "static String transactionTypeString(char c) {\r\n\t\tif (c == 'W') return \"withdrawl\";\r\n\t\tif (c == 'D') return \"deposit\";\r\n\t\treturn (\"ERROR\");\r\n\t}", "@Override\r\n\tpublic void solicitarTipoTransaccion() {\n\t\tSystem.out.println(\"Escoger tipo de transaccion\");\r\n\t\t\r\n\t}", "@Override\r\n public String getUniCode()\r\n {\r\n if (getColor() == 'N')\r\n {\r\n setCode(\"\\u265B\");\r\n }\r\n else\r\n {\r\n setCode(\"\\u2655\");\r\n }\r\n return getCode();\r\n }", "public java.lang.String getTipo() {\n java.lang.Object ref = tipo_;\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 tipo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public void Tarifa(String tipoTarifa){\n Tarifa = tipoTarifa;\n Regular = \"R\";\n Comercial = \"C\";\n\n }", "String getCognome();", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn \"Rotera 90\\u00b0 höger\";\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn \"Rotera 90\\u00b0 höger\";\n\t}", "public String getTipo();", "public String getTipo();", "public PsicoderToGo() {\n translate_types.put(\"entero\", new ArrayList(Arrays.asList(\"int\", \"d\", \"0\")));\n translate_types.put(\"real\", new ArrayList(Arrays.asList(\"float64\", \"f\", \"0.0\")));\n translate_types.put(\"caracter\", new ArrayList(Arrays.asList(\"byte\", \"s\", \"\\\"\\\"\")));\n translate_types.put(\"booleano\", new ArrayList(Arrays.asList(\"bool\", \"b\", \"false\")));\n translate_types.put(\"cadena\", new ArrayList(Arrays.asList(\"string\", \"s\", \"\\\"\\\"\")));\n }", "@Override\n public String getGenericLabel() {\n return \"Počet sloupců v každé tabulce\";\n }", "String getTitolo();", "@Override\n\tpublic String toString() {\n\t\treturn \"Tạp Chí: \"+\" Tựa đề: \"+ tuaDe+\", Số Trang: \"+soTrang+\", Nhà xuất bản: \"+nxb+\", Số Bài Viết: \"+soBaiViet;\n\t}", "public void afficheType() {\n\t\tint type=triangleType();\n\t\tif(type==2) {\n\t\t\tSystem.out.println(\"C'est un triangle isocèle equilatérale\");\n\t\t}else if(type==1){\n\t\t\tSystem.out.println(\"C'est un triangle isocèle\");\n\t\t}else {\n\t\t\tSystem.out.println(\"C'est un triangle quelconque\");\t\n\t\t}\n\t}", "@AutoEscape\n\tpublic String getNguoiChuTri();", "@Override\n\tpublic String toString() {\n\t\treturn \"Báo: \"+\"\\t\"+\", Số Trang: \"+soTrang+\", Nhà xuất bản: \"+nxb;\n\t}", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "public String darTipoVehiculo() {\n\t\treturn tipoVehiculo;\n\t}", "public String saludoCastellano () {\n\t\treturn \"hola\";\n\t}", "public String getTipo() {\r\n return tipo;\r\n }", "public String getTipo() {\r\n return tipo;\r\n }", "public java.lang.String getTipo() {\n return tipo;\n }", "public java.lang.String getTipo() {\n return tipo;\n }", "public String getTipo(){\n\t\treturn this.tipo;\n\t}", "public abstract String getTrans();", "@Override\n\tpublic String getDescription() {\n\t\treturn \"Transfereix vida a l'enemic\";\n\t}", "public static Data<String> tueuseType(){\n\t\tData<String> res = new Data<String>();\n\t\tres.add(new Tuple<String, Integer>(\"Aberrations\", 5));\n\t\tres.add(new Tuple<String, Integer>(\"Animaux\", 4));\n\t\tres.add(new Tuple<String, Integer>(\"Créatures artificielles\", 7));\n\t\tres.add(new Tuple<String, Integer>(\"Dragons\", 6));\n\t\tres.add(new Tuple<String, Integer>(\"Fées\", 5));\n\t\tres.add(new Tuple<String, Integer>(\"Humanoïdes (choisir un sous-type)\", 33));\n\t\tres.add(new Tuple<String, Integer>(\"Créatures magiques\", 5));\n\t\tres.add(new Tuple<String, Integer>(\"Humanoïdes monstrueux\", 5));\n\t\tres.add(new Tuple<String, Integer>(\"Vases\", 2));\n\t\tres.add(new Tuple<String, Integer>(\"Extérieurs (choisir un sous-type)\", 16));\n\t\tres.add(new Tuple<String, Integer>(\"Plantes\", 2));\n\t\tres.add(new Tuple<String, Integer>(\"Morts-vivants\", 8));\n\t\tres.add(new Tuple<String, Integer>(\"Vermine\", 2));\n\n\t\treturn res;\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "java.lang.String getTranCode();", "@Override\n\tpublic void tipoComunicacao() {\n\t\tSystem.out.println(super.getNome() + \" se comunica miando.\");\n\t}", "public static String MaterialToString(Material tipo){\n \n switch(tipo){\n case CARBONO:\n return \"Bicicleta Feita de Carbono\";\n case ALUMINIO:\n return \"Bicicleta Feita de Aluminio\";\n default:\n return \"Material Invalido\";\n }\n }", "public String getTipo(){\r\n return tipo;\r\n }", "private char identifyTheTransactions(String transName){\n\t\tfor(String transactionKey: typeTransData.keySet()){\n\t\t\tif(transName.startsWith(transactionKey))\n\t\t\t\treturn typeTransData.get(transactionKey);\n\t\t}\t\n\t\treturn 'U'; //for Unknown\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getTipoBytes() {\n java.lang.Object ref = tipo_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n tipo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getTipoAnexoSRI()\r\n/* 612: */ {\r\n/* 613:676 */ this.tipoAnexoSRI = ParametrosSistema.getTipoAnexoSRI(AppUtil.getOrganizacion().getId());\r\n/* 614:677 */ return this.tipoAnexoSRI;\r\n/* 615: */ }", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "public String toString(){\n return \"+-----------------------+\\n\" +\n \"| Boleto para el metro |\\n\" +\n \"|derjere0ranfeore |\\n\" +\n \"+-----------------------+\\n\" ;\n }", "public void setTipoContingencia(String tipoContingencia) {\n this.tipoContingencia = tipoContingencia;\n }", "String getCidade();", "public String getTipo(){\n return tipo;\n }", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "@Override\n\tpublic String getCharacterRepresentation() {\n\t\treturn \"T\";\n\t}", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public char getSezione() {\r\n return this.sezione;\r\n }", "public void menuTipoActividad() {\n\t\tSystem.out.println(\"MENU TIPOS ACTIVIDAD\");\n\t\tSystem.out.println(\"1. LOW\");\n\t\tSystem.out.println(\"2. MEDIUM\");\n\t\tSystem.out.println(\"3. HIGH\");\n\t}", "@Override\r\n\tpublic final String getNombreRaza() {\r\n\t\treturn \"Orco\";\r\n\t}", "@Override\r\n\tpublic String getTipoPersona() {\n\t\treturn \"alumno del curso \" + curso + \" de \" + grupo + \" de \" + tipoEstudios ;\r\n\t\t\r\n\t}", "public static String TiposDeRaza(int razaPerro) {\n String tipoRaza;\r\n String[] razas = {\"Bulldog\", \"Husky siberiano\", \"Labrador\", \"Golden retriever\", \"Beagle\", \"Bóxer\", \"Dogo\", \"Gran danés\", \"Scooby-Doo\", \"Bolt\", \"Ovejero\", \"Pitbull\"};\r\n tipoRaza = razas[razaPerro];\r\n return tipoRaza;\r\n }", "@Override\n public boolean isUnicode()\n {\n return true;\n }", "public String getPassageiro2() {\r\n\r\n if (passageiro == null) {\r\n return \"Poltrona Vazia\";\r\n } else {\r\n return passageiro.getNome();\r\n }\r\n }", "private Acao.Tipo getTipo(String tipo) {\n if (tipo.contentEquals(DISPARO.getName())) {\n return DISPARO;\n }\n\n if (tipo.contentEquals(DESCONEXAO.getName())) {\n return DESCONEXAO;\n }\n\n return null;\n }", "public void seleccionarTipoComprobante() {\r\n if (com_tipo_comprobante.getValue() != null) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n } else {\r\n tab_tabla1.limpiar();\r\n tab_tabla2.limpiar();\r\n }\r\n tex_num_transaccion.setValue(null);\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales,tex_num_transaccion\");\r\n }", "public void tipoDatos() {\n\t\tint num = 10;\n\t\t// Texto STring\n\t\tString cadena = \"cadena\";\n\n\t\t// Decimale O flotante\n\t\tdouble decimal = 12.16;\n\t\tfloat fl = new Float(10);\n\t\t// Bolean\n\t\tboolean bl = true;\n\n\t\t// ARREGLOS\n\t\t// string\n\t\tString[] veString = new String[5];\n\t\tveString[0] = \"hola mundo\";\n\t\tveString[1] = \"hola mundo\";\n\t\tveString[2] = \"hola mundo\";\n\t\tveString[3] = \"hola mundo\";\n\t\tveString[4] = \"hola mundo\";\n\n\t\tint[] varNum = new int[] { 0, 1, 2, 3, 4, 5 };\n\n\t}", "protected String elaboraIncipitSpecifico() {\n return VUOTA;\n }", "@Override\n public String getAgenciaCodCedenteFormatted() {\n return boleto.getAgencia() + \"/\" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\n }", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public abstract java.lang.String getCod_dpto();", "public String getTipoEco() {\n return this.tipoEco;\n }", "public String getTipo() {\n\t\treturn tipo;\n\t}", "public String getTipo() {\n\t\treturn tipo;\n\t}", "public String getTipo() {\n\t\treturn tipo;\n\t}", "public String getTipo() {\n\t\treturn tipo;\n\t}", "public String getContrasena() {return contrasena;}", "public java.lang.String getCodigo_pcom();", "protected String getTitoloPaginaMadre() {\n return VUOTA;\n }", "public String toString(){\r\n\t\t\t\t\treturn \"перший в черзі і шлях вільний\";\r\n\t\t\t\t}", "@Override\n\tpublic String getTareas() {\n\t\treturn \"TAREA COMERCIAL 3: VENDE MUCHO TODOS LOS DÍAS\";\n\t}", "public char getSezione() {\r\n return this.sezione;\r\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}", "public String getTipo() {\n\t\treturn this.tipo;\n\t}", "public java.lang.String getTipoUfficio() {\r\n return tipoUfficio;\r\n }", "public java.lang.String getHora_hasta();" ]
[ "0.7039657", "0.6346791", "0.63023734", "0.6280707", "0.6174271", "0.6119852", "0.6110941", "0.61101556", "0.6104766", "0.5887331", "0.586697", "0.585145", "0.58411026", "0.5837301", "0.58120507", "0.580636", "0.579383", "0.5782808", "0.5774971", "0.5742276", "0.57295334", "0.5722756", "0.57208914", "0.5714906", "0.56882876", "0.5679848", "0.56708556", "0.56389827", "0.56320786", "0.5621317", "0.5609217", "0.559194", "0.5584419", "0.5584419", "0.558196", "0.558196", "0.5576128", "0.55744684", "0.5574171", "0.55727845", "0.55700123", "0.5564872", "0.5541745", "0.55403614", "0.5528929", "0.5527643", "0.5516266", "0.5516266", "0.5506674", "0.5506674", "0.5499076", "0.5480143", "0.54739183", "0.5472177", "0.54657537", "0.54517204", "0.54488647", "0.5442914", "0.54382557", "0.54301906", "0.5424454", "0.5419265", "0.54142815", "0.5403799", "0.540153", "0.54014623", "0.5399737", "0.53979826", "0.5396915", "0.53968686", "0.5395247", "0.53835624", "0.53798455", "0.5379184", "0.5373404", "0.53602463", "0.5356981", "0.5352551", "0.53500265", "0.53300387", "0.5322769", "0.53057754", "0.53028274", "0.53024536", "0.53014636", "0.52998227", "0.5294822", "0.5294822", "0.5294822", "0.5294822", "0.52922523", "0.529117", "0.52876157", "0.52849007", "0.52833", "0.52827436", "0.52821213", "0.5273775", "0.526923", "0.52685916" ]
0.5493641
51
Cidade onde a compra foi realizada
public CompraResponse cidade(String cidade) { this.cidade = cidade; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void atualizar() {\n\t\t\n\t\t \n\t\t String idstring = id.getText();\n\t\t UUID idlong = UUID.fromString(idstring);\n\t\t \n\t\t PedidoCompra PedidoCompra = new PedidoCompra();\n\t\t\tPedidoCompra.setId(idlong);\n\t\t\tPedidoCompra.setAtivo(true);\n//\t\t\tPedidoCompra.setNome(nome.getText());\n\t\t\tPedidoCompra.setStatus(StatusPedido.valueOf(status.getSelectionModel().getSelectedItem().name()));\n//\t\t\tPedidoCompra.setSaldoinicial(saldoinicial.getText());\n\t\t\tPedidoCompra.setData(new Date());\n\t\t\tPedidoCompra.setIspago(false);\n\t\t\tPedidoCompra.setData_criacao(new Date());\n//\t\t\tPedidoCompra.setFornecedor(fornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setFornecedor(cbfornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setTotal(PedidoCompra.CalcularTotal(PedidoCompra.getItems()));\n\t\t\tPedidoCompra.setTotalpago(PedidoCompra.CalculaTotalPago(PedidoCompra.getFormas()));\n\t\t\t\n\t\t\t\n\t\t\tgetservice().edit(PedidoCompra);\n\t\t\tupdateAlert(PedidoCompra);\n\t\t\tclearFields();\n\t\t\tdesligarLuz();\n\t\t\tloadEntityDetails();\n\t\t\tatualizar.setDisable(true);\n\t\t\tsalvar.setDisable(false);\n\t\t\t\n\t\t \n\t\t \n\t\tsuper.atualizar();\n\t}", "String getCidade();", "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 }", "public Compra(String fechaCompra, int valor, int cantidad) {\r\n this.fechaCompra = fechaCompra;\r\n this.valor = valor;\r\n this.cantidad = cantidad;\r\n }", "private prestarComputador obtenerComputador() {\n String d = dFormat.format(TXTFechaDeEntrega.getDate());\n prestarComputador elcomputador = new prestarComputador();\n elcomputador.setFechaDeEntrega(dFormat.format(TXTFechaDeEntrega.getDate()));\n elcomputador.setSerialComputadorDoy(TXTSerialEquipo.getText());\n elcomputador.setIdBibliotecario(TXTIdBibliotecario.getText());\n elcomputador.setIdUsuario(TXTIdUsuario.getText());\n elcomputador.setFechaDePrestamo(TXTFechaDePrestamo.getText());\n return elcomputador;\n }", "public Comida(String nombre, int calorias){\n super(\"Comida\");\n this.calorias = calorias;\n }", "public void seleccionarTipoComprobante() {\r\n if (com_tipo_comprobante.getValue() != null) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n } else {\r\n tab_tabla1.limpiar();\r\n tab_tabla2.limpiar();\r\n }\r\n tex_num_transaccion.setValue(null);\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales,tex_num_transaccion\");\r\n }", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "@Override public void realizarCobro(Persona persona){\n\tpersona.cuenta.retiro(120);\n }", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "private void creaAddebitiGiornoConto(Date data, int codConto) {\n /* variabili e costanti locali di lavoro */\n boolean continua;\n Filtro filtro;\n int[] interi;\n ArrayList<Integer> codici = null;\n Modulo modAddFisso;\n Modulo modConto;\n boolean chiuso;\n\n try { // prova ad eseguire il codice\n\n /* controllo se il conto e' aperto */\n modConto = Albergo.Moduli.Conto();\n chiuso = modConto.query().valoreBool(Conto.Cam.chiuso.get(), codConto);\n continua = (!chiuso);\n\n if (continua) {\n\n /* filtro che isola gli addebiti fissi da eseguire\n * per il giorno e il conto dati */\n filtro = this.getFiltroFissiGiornoConto(data, codConto);\n continua = filtro != null;\n\n /* crea elenco dei codici addebito fisso da elaborare */\n if (continua) {\n modAddFisso = Albergo.Moduli.AddebitoFisso();\n interi = modAddFisso.query().valoriChiave(filtro);\n codici = Lib.Array.creaLista(interi);\n }// fine del blocco if\n\n /* crea un addebito effettivo per ogni addebito fisso */\n if (codici != null) {\n for (int cod : codici) {\n this.creaSingoloAddebito(cod, data);\n } // fine del ciclo for-each\n }// fine del blocco if\n\n }// fine del blocco if\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "@Override\n public ComprobanteContable createComprobante(Aerolinea a, Boleto boleto, Cliente cliente, String tipo, NotaDebito nota) throws CRUDException {\n\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n buff.append(a.getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas\n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n comprobante.setIdCliente(cliente);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(tipo);\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n\n //ComprobanteContablePK numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n comprobante.setIdNumeroGestion(numero);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n return comprobante;\n }", "public void reversarComprobanteContabilidad() {\r\n String ide_cnccc = ser_comprobante.reversarComprobante(tab_tabla1.getValorSeleccionado(), null);\r\n if (guardarPantalla().isEmpty()) {\r\n utilitario.agregarMensaje(\"Se genero el Comprobante Num: \", ide_cnccc);\r\n }\r\n }", "public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }", "Compleja createCompleja();", "@Override\n public ComprobanteContable createComprobante(\n Aerolinea a, Boleto boleto, Cliente cliente, String tipo) throws CRUDException {\n Optional op;\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n buff.append(a.getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas\n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n comprobante.setIdCliente(cliente);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(tipo);\n\n //ComprobanteContablePK numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n comprobante.setIdNumeroGestion(numero);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n\n return comprobante;\n }", "public String getCidade() {\n\t\treturn cidade;\n\t}", "public int getCadastro() {\r\n\t\treturn cadastro;\r\n\t}", "public String recuperaVariedadByCultivoEdoAsigCA(){\n\t\tlstVariedad = iDAO.recuperaVariedadByInicilizacionEsquema(idInicializacionEsquema, idCultivo, idEstado);\n\t\treturn SUCCESS;\t\t\n\t}", "public void actualizarFechaComprobantes() {\r\n if (utilitario.isFechasValidas(cal_fecha_inicio.getFecha(), cal_fecha_fin.getFecha())) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n utilitario.addUpdate(\"tab_tabla1,tab_tabla2\");\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales\");\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Rango de fechas no válidas\", \"\");\r\n }\r\n\r\n }", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "public int idade() {\n\t\treturn 2020 - anoNascimento;\n\t}", "public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public Repartidor(String nombre, String apellido, String direccion, String telefono, String cedula) {\n super(nombre, apellido, direccion, telefono, cedula);\n this.disponible = true; //empieza siendo disponible luego cuando lo utilicemos pasara a no estarlo y asi...\n this.salario = 50; //establecemos un salario inicial de 50 al que luego le adicionaremos segun la cantidad de envios que haya realizado con exito \n }", "Compuesta createCompuesta();", "public Comida(String nombre){\n super(nombre);\n this.calorias = 10;\n }", "public void modificarCompraComic();", "private void AtulizaBanco(String cod, int matricula, double valor, int qte) {\n try {\n venda.Atualizar(cod, matricula, valor);\n Produto.ProdAtualizarQte(cod, qte);\n } catch (Exception ex) {\n Logger.getLogger(ViewCaixa.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void setFechaCompra() {\n LocalDate fecha=LocalDate.now();\n this.fechaCompra = fecha;\n }", "public String recuperaCultivoByVariedadAsigCA(){\n\t\tlstVariedad = iDAO.recuperaVariedadByInicilizacionEsquema(idInicializacionEsquema, idCultivo);\n\t\treturn SUCCESS;\t\t\n\t}", "public int getIdDetalleComponenteCosto()\r\n/* 58: */ {\r\n/* 59: 83 */ return this.idDetalleComponenteCosto;\r\n/* 60: */ }", "private void RealizarProtocoloDeCompraDeCasasEHoteis(int idLugar) throws Exception {\n Lugar lugar = this.tabuleiro.getLugarById(idLugar);\n\n int nivelDoTerreno = lugar.getNivel();\n if (nivelDoTerreno == 0) {\n int valorCasa = this.banco.comprarCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelUmaCasa(idLugar));\n lugar.addNumeroDeCasas();\n lugar.aumentarNivel();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorCasa);\n } else if (nivelDoTerreno == 1) {\n int valorCasa = this.banco.comprarCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelDuasCasas(idLugar));\n lugar.addNumeroDeCasas();\n lugar.aumentarNivel();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorCasa);\n } else if (nivelDoTerreno == 2) {\n int valorCasa = this.banco.comprarCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelTresCasas(idLugar));\n lugar.addNumeroDeCasas();\n lugar.aumentarNivel();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorCasa);\n } else if (nivelDoTerreno == 3) {\n int valorCasa = this.banco.comprarCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelQuatroCasas(idLugar));\n lugar.addNumeroDeCasas();\n lugar.aumentarNivel();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorCasa);\n } else if (nivelDoTerreno == 4) {\n int valorHotel = this.banco.comprarHotel(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelHotel(idLugar));\n lugar.aumentarNivel();\n lugar.addNumeroDeHoteis();\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNumeroDeCasas();\n this.banco.BancoReceber4Casas();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeHoteis();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).retirarDinheiro(valorHotel);\n } else if (nivelDoTerreno == 5) {\n throw new Exception(\"No further buildings on this property\");\n }\n\n if ((this.listaJogadores.get(jogadorAtual()).getQuantidadeDeCasas() > 0 ||\n this.listaJogadores.get(jogadorAtual()).getQuantidadeDeHoteis() > 0) &&\n this.sell == true) {\n this.listaJogadores.get(jogadorAtual()).adicionarComandoSell();\n }\n\n\n }", "protected void filtrarEstCid() {\r\n\t\tif (cmbx_cidade.getSelectedItem() != \"\" && cmbx_estado.getSelectedItem() != \"\") {\r\n\t\t\tStringBuilder filtracomando = new StringBuilder();\r\n\r\n\t\t\tfiltracomando\r\n\t\t\t\t\t.append(comando + \" WHERE ESTADO = '\" + Estado.validar(cmbx_estado.getSelectedItem().toString())\r\n\t\t\t\t\t\t\t+ \"' AND CIDADE = '\" + cmbx_cidade.getSelectedItem().toString() + \"'\");\r\n\t\t\tlistacliente = tabelaCliente.mostraRelatorio(filtracomando.toString());\r\n\r\n\t\t\ttablecliente.setModel(tabelaCliente);\r\n\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Escolha a Cidade e o Estado que deseja Filtrar\");\r\n\t\t}\r\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public Cargo atribuiCargoAoFuncionario() {\n int opcao = this.telaFuncionario.pedeOpcao();\n Cargo cargo = null;\n switch (opcao) {\n case 1:\n ControladorPrincipal.getInstance().controladorCargo.listaCargos();\n cargo = comparaCodigoComCargo();\n break;\n case 2:\n cargo = ControladorPrincipal.getInstance().controladorCargo.incluiCargo();\n break;\n default:\n this.telaFuncionario.opcaoInexistente();\n atribuiCargoAoFuncionario();\n break;\n }\n return cargo;\n }", "public String getCompoId() {\n\t return compoId;\r\n\t }", "public void registrarCompraIngrediente(String nombre, int cantidad, int precioCompra, int tipo) {\n //Complete\n }", "public Conta(String numero, String agencia) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = 0.0;\n }", "public void comprarCasasEHoteis(int idPropriedade) throws Exception {\n\n this.terminarAVez();\n\n if (this.build == true) {\n\n if (this.hipotecaAtiva && this.tabuleiro.getLugarById(idPropriedade).estaHipotecada()) {\n if(verificaSeTodosOsGruposTemHipoteca(listaJogadores.get(jogadorAtual())))\n throw new Exception(\"Unavailable command\");\n throw new Exception(\"Can't build on mortgaged properties\");\n }\n \n if (idPropriedade <= 0 || idPropriedade > 40) {\n throw new Exception(\"Place doesn't exist\");\n\n }\n if (!this.tabuleiro.getLugarById(idPropriedade).isPropriedade()) {\n throw new Exception(\"Can only build on properties\");\n\n }\n \n\n if (!this.tabuleiro.verificaSeGrupoAindaPodeTerConstrucoes(idPropriedade)) {\n this.listaJogadores.get(jogadorAtual()).getComandos().remove(\"build\");\n }\n\n \n if (this.listaJogadores.get(jogadorAtual()).getComandos().contains(\"build\")) {\n\n if (!this.listaJogadores.get(jogadorAtual()).getPropriedades().contains(this.tabuleiro.getLugarById(idPropriedade).getNome())) {\n throw new Exception(\"Player is not the owner of this property\");\n\n } else if (this.listaJogadores.get(jogadorAtual()).getPropriedades().contains(this.tabuleiro.getLugarById(idPropriedade).getNome()) && !this.listaJogadores.get(jogadorAtual()).verificaSeTemGrupo(idPropriedade)) {\n throw new Exception(\"Doesn't hold monopoly for this group\");\n }\n //Procedimento para compra de casas e hoteis\n if (this.tabuleiro.verificaSePodeConstruirNoTerreno(idPropriedade) == true) {\n if (hipotecaAtiva) {\n verificaSeGrupoTemHipoteca(idPropriedade);\n \n }\n RealizarProtocoloDeCompraDeCasasEHoteis(idPropriedade);\n if(hipotecaAtiva && !verificaSeTemLugarSemConstrucao(listaJogadores.get(jogadorAtual())))\n listaJogadores.get(jogadorAtual()).removerComandoMortgage();\n\n\n } else {\n throw new Exception(\"Uneven distribution of houses\");\n }\n\n\n } else {\n\n throw new Exception(\"Unavailable command\");\n\n\n }\n } else {\n throw new Exception(\"Build nao esta ativo\");\n }\n }", "public void buscarComprobantesEntreFechas(){\n listaComprobantes = this.getEjbFacadeComprobantes().buscarEntreFechasConEstadoSinRendicionExterna(desde,hasta);\n \n System.out.println(\"listaComprobantes cantidad >> \" + listaComprobantes.size());\n }", "public void crearCompraComic(CompraComicDTO compraComicDTO);", "public Conta(String numero, String agencia, Double saldo) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = saldo;\n }", "public void abrirCerradura(){\n cerradura.abrir();\r\n }", "public void enviarValoresCabecera(){\n }", "private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }", "public void setCedula(Integer cedula) {this.cedula = cedula;}", "public boolean efetuarCompra(int posicaoTabuleiro, Jogador jogador) throws Exception {\n if (this.posicaoCompravel(posicaoTabuleiro) && posicaoTabuleiro != 12 && posicaoTabuleiro != 28) {\n int preco = this.tabuleiro.getLugarPrecoCompra(posicaoTabuleiro);\n if (preco <= jogador.getDinheiro()) {\n this.print(\"\\tPossui dinheiro para a compra!\");\n jogador.retirarDinheiro(preco);\n this.Donos.put(posicaoTabuleiro, jogador.getNome());\n\n String nomeLugar = this.tabuleiro.getPlaceName(posicaoTabuleiro);\n jogador.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[jogadorAtual()]++;\n }\n return true;\n } else {\n this.print(\"\\tNão possui dinheiro para realizar a compra!\");\n return false;\n }\n\n }\n return false;\n\n }", "public void fecharConta() {\n\t\tcliente.setConta(new Conta());\r\n\t\tRepositorioCliente repositorioCliente = new FabricaRepositorio().getRepCliente();\r\n\t\trepositorioCliente.editar((ClienteIndividual)cliente);\r\n//\t\tGerenciadorContaImpl contaImpl = new GerenciadorContaImpl();\r\n//\t\ttry {\r\n//\t\t\tcontaImpl.fecharConta(cliente);\r\n//\t\t} catch (OperacaoInvalidaException e) {\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t}", "@Override\r\n public BoletoLocal onGerarBoleto(Contrato contrato, ConfiguracoesBoleto config) {\r\n int diaVencimento = contrato.getDiaVencimento();\r\n Calendar dataHj = Calendar.getInstance();\r\n\r\n //SE O DIA DO VENCIMENTO DO BOLETO FOR MENOR OU IGUAL\r\n // A DATA DE HJ GERA NORMAL, SE NÃO ELE GERA PRO PROXIMO MES\r\n if (dataHj.get(Calendar.DAY_OF_MONTH) <= diaVencimento) {\r\n\r\n } else {\r\n dataHj.add(Calendar.MONTH, 1);\r\n }\r\n\r\n dataHj.set(Calendar.DAY_OF_MONTH, diaVencimento);\r\n Calendar dataMaxima = Calendar.getInstance();\r\n dataMaxima.add(Calendar.DAY_OF_MONTH, 20);\r\n\r\n //SE A DATA FOR MAIOS QUE O MÁXIMO CONFIGURADO NÃO GERA NADA.\r\n if (dataHj.after(dataMaxima)) {\r\n System.out.println(\"data depois de 20 dias\");\r\n return null;\r\n }\r\n\r\n\r\n /*\r\n\t\t * INFORMANDO DADOS SOBRE O CEDENTE.\r\n */\r\n Cedente cedente = new Cedente(config.getBanco().getNomeBeneficiado(), config.getDocBeneficiado());\r\n\r\n /*\r\n\t\t * INFORMANDO DADOS SOBRE O SACADO.\r\n */\r\n Sacado sacado = new Sacado(contrato.getLocatario().getNome(), contrato.getLocatario().getDocumento());\r\n\r\n // Informando o endereço do sacado.\r\n org.jrimum.domkee.comum.pessoa.endereco.Endereco enderecoSac = new org.jrimum.domkee.comum.pessoa.endereco.Endereco();\r\n enderecoSac.setUF(UnidadeFederativa.valueOfSigla(contrato.getLocatario().getEndereco().getCodUf()));\r\n enderecoSac.setLocalidade(contrato.getLocatario().getEndereco().getCidade());\r\n enderecoSac.setCep(new CEP(contrato.getLocatario().getEndereco().getDesCep()));\r\n enderecoSac.setBairro(contrato.getLocatario().getEndereco().getDesBairro());\r\n enderecoSac.setLogradouro(contrato.getLocatario().getEndereco().getDesLogradouro());\r\n enderecoSac.setNumero(contrato.getLocatario().getEndereco().getDesNumero());\r\n sacado.addEndereco(enderecoSac);\r\n\r\n /*\r\n\t\t * INFORMANDO OS DADOS SOBRE O TÍTULO.\r\n */\r\n // Informando dados sobre a conta bancária do título.\r\n ContaBancaria contaBancaria = null;\r\n if (config.getBanco().getBanco() == BancosEnum.ITAU) {\r\n contaBancaria = new ContaBancaria(BancosSuportados.BANCO_ITAU.create());\r\n }\r\n\r\n if (contaBancaria == null) {\r\n System.out.println(\"Conta bancária não cadastrada\");\r\n return null;\r\n }\r\n\r\n contaBancaria.setNumeroDaConta(new NumeroDaConta(Integer.parseInt(config.getBanco().getContaNumero()), config.getBanco().getContaDigito()));\r\n contaBancaria.setCarteira(new Carteira(Integer.parseInt(config.getCarteira())));\r\n contaBancaria.setAgencia(new Agencia(Integer.parseInt(config.getBanco().getAgenciaNumero()), config.getBanco().getAgenciaDigito()));\r\n\r\n Titulo titulo = new Titulo(contaBancaria, sacado, cedente);\r\n titulo.setNumeroDoDocumento(config.getNumeroDocumento());\r\n titulo.setNossoNumero(config.getNossoNumero());\r\n titulo.setDigitoDoNossoNumero(config.getNossoNumeroDigito());\r\n titulo.setValor(contrato.getValor());\r\n titulo.setDataDoDocumento(new Date());\r\n\r\n titulo.setDataDoVencimento(dataHj.getTime());\r\n titulo.setTipoDeDocumento(TipoDeTitulo.DM_DUPLICATA_MERCANTIL);\r\n titulo.setAceite(Aceite.A);\r\n//\t\ttitulo.setDesconto(BigDecimal.ZERO);\r\n//\t\ttitulo.setDeducao(BigDecimal.ZERO);\r\n//\t\ttitulo.setMora(BigDecimal.ZERO);\r\n//\t\ttitulo.setAcrecimo(BigDecimal.ZERO);\r\n//\t\ttitulo.setValorCobrado(BigDecimal.ZERO);\r\n\r\n /*\r\n\t\t * INFORMANDO OS DADOS SOBRE O BOLETO.\r\n */\r\n Boleto boletoBank = new Boleto(titulo);\r\n\r\n boletoBank.setLocalPagamento(config.getLocalPagamento());\r\n boletoBank.setInstrucaoAoSacado(config.getInstrucaoSacado());\r\n boletoBank.setInstrucao1(config.getInstrucao1());\r\n boletoBank.setInstrucao2(config.getInstrucao2());\r\n boletoBank.setInstrucao3(config.getInstrucao3());\r\n boletoBank.setInstrucao4(config.getInstrucao4());\r\n boletoBank.setInstrucao5(config.getInstrucao5());\r\n boletoBank.setInstrucao6(config.getInstrucao6());\r\n boletoBank.setInstrucao7(config.getInstrucao7());\r\n boletoBank.setInstrucao8(config.getInstrucao8());\r\n\r\n /*\r\n\t\t * GERANDO O BOLETO BANCÁRIO.\r\n */\r\n // Instanciando um objeto \"BoletoViewer\", classe responsável pela\r\n // geração do boleto bancário.\r\n BoletoViewer boletoViewer = new BoletoViewer(boletoBank);\r\n\r\n // Alterado para pegar o path do sistema automático , gerando dentro\r\n // do projeto.\r\n // Gerando o arquivo. No caso o arquivo mencionado será salvo na mesma\r\n // pasta do projeto. Outros exemplos:\r\n // WINDOWS: boletoViewer.getAsPDF(\"C:/Temp/MeuBoleto.pdf\");\r\n // LINUX: boletoViewer.getAsPDF(\"/home/temp/MeuBoleto.pdf\");\r\n String pasta = \"/boletos\";\r\n\r\n String caminhoCompletoPasta = FacesUtil.getExternalContext().getRealPath(pasta) + \"/\";\r\n BoletoLocal boletoLocal = new BoletoLocal();\r\n contrato.getBoletos().add(boletoLocal);\r\n boletoLocal.setContrato(contrato);\r\n\r\n String nomeArquivoPDF = contrato.getLocatario().getNome().replace(\" \", \"_\") + boletoLocal.getMes() + boletoLocal.getAno() + \".pdf\";\r\n\r\n System.out.println(caminhoCompletoPasta + nomeArquivoPDF);\r\n File arquivoPdf = boletoViewer.getPdfAsFile(caminhoCompletoPasta + nomeArquivoPDF);\r\n\r\n boletoLocal.setPath(pasta + nomeArquivoPDF);\r\n\r\n super.save(boletoLocal);\r\n\r\n return boletoLocal;\r\n }", "private int creaSingoloAddebito(int cod, Date data) {\n /* variabili e costanti locali di lavoro */\n int nuovoRecord = 0;\n boolean continua;\n Dati dati;\n int codConto = 0;\n int codListino = 0;\n int quantita = 0;\n double prezzo = 0.0;\n Campo campoConto = null;\n Campo campoListino = null;\n Campo campoQuantita = null;\n Campo campoPrezzo = null;\n Campo campoData = null;\n Campo campoFissoConto = null;\n Campo campoFissoListino = null;\n Campo campoFissoQuantita = null;\n Campo campoFissoPrezzo = null;\n ArrayList<CampoValore> campi = null;\n Modulo modAddebito = null;\n Modulo modAddebitoFisso = null;\n\n try { // prova ad eseguire il codice\n\n modAddebito = Progetto.getModulo(Addebito.NOME_MODULO);\n modAddebitoFisso = Progetto.getModulo(AddebitoFisso.NOME_MODULO);\n\n /* carica tutti i dati dall'addebito fisso */\n dati = modAddebitoFisso.query().caricaRecord(cod);\n continua = dati != null;\n\n /* recupera i campi da leggere e da scrivere */\n if (continua) {\n\n /* campi del modulo Addebito Fisso (da leggere) */\n campoFissoConto = modAddebitoFisso.getCampo(Addebito.Cam.conto.get());\n campoFissoListino = modAddebitoFisso.getCampo(Addebito.Cam.listino.get());\n campoFissoQuantita = modAddebitoFisso.getCampo(Addebito.Cam.quantita.get());\n campoFissoPrezzo = modAddebitoFisso.getCampo(Addebito.Cam.prezzo.get());\n\n /* campi del modulo Addebito (da scrivere) */\n campoConto = modAddebito.getCampo(Addebito.Cam.conto.get());\n campoListino = modAddebito.getCampo(Addebito.Cam.listino.get());\n campoQuantita = modAddebito.getCampo(Addebito.Cam.quantita.get());\n campoPrezzo = modAddebito.getCampo(Addebito.Cam.prezzo.get());\n campoData = modAddebito.getCampo(Addebito.Cam.data.get());\n\n }// fine del blocco if\n\n /* legge i dati dal record di addebito fisso */\n if (continua) {\n codConto = dati.getIntAt(campoFissoConto);\n codListino = dati.getIntAt(campoFissoListino);\n quantita = dati.getIntAt(campoFissoQuantita);\n prezzo = (Double)dati.getValueAt(0, campoFissoPrezzo);\n dati.close();\n }// fine del blocco if\n\n /* crea un nuovo record in addebito */\n if (continua) {\n campi = new ArrayList<CampoValore>();\n campi.add(new CampoValore(campoConto, codConto));\n campi.add(new CampoValore(campoListino, codListino));\n campi.add(new CampoValore(campoQuantita, quantita));\n campi.add(new CampoValore(campoPrezzo, prezzo));\n campi.add(new CampoValore(campoData, data));\n nuovoRecord = modAddebito.query().nuovoRecord(campi);\n continua = nuovoRecord > 0;\n }// fine del blocco if\n\n /* aggiorna la data di sincronizzazione in addebito fisso */\n if (continua) {\n this.getModulo().query().registraRecordValore(cod, Cam.dataSincro.get(), data);\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return nuovoRecord;\n }", "teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCaz();", "teledon.network.protobuffprotocol.TeledonProtobufs.CazCaritabil getCaz();", "public void cargarPantalla() throws Exception {\n Long oidCabeceraMF = (Long)conectorParametroSesion(\"oidCabeceraMF\");\n\t\tthis.pagina(\"contenido_matriz_facturacion_consultar\");\n\n DTOOID dto = new DTOOID();\n dto.setOid(oidCabeceraMF);\n dto.setOidPais(UtilidadesSession.getPais(this));\n dto.setOidIdioma(UtilidadesSession.getIdioma(this));\n MareBusinessID id = new MareBusinessID(\"PRECargarPantallaConsultarMF\"); \n Vector parametros = new Vector();\n \t\tparametros.add(dto);\n parametros.add(id);\n \t\tDruidaConector conector = conectar(\"ConectorCargarPantallaConsultarMF\", parametros);\n if (oidCabeceraMF!=null)\n asignarAtributo(\"VAR\",\"varOidCabeceraMF\",\"valor\",oidCabeceraMF.toString());\n\t\t asignar(\"COMBO\", \"cbTiposOferta\", conector, \"dtoSalida.resultado_ROWSET\");\n\t\t///* [1]\n\n\n\n\t\ttraza(\" >>>>cargarEstrategia \");\n\t\t//this.pagina(\"contenido_catalogo_seleccion\"); \n\t\t \n\t\tComposerViewElementList cv = crearParametrosEntrada();\n\t\tConectorComposerView conectorV = new ConectorComposerView(cv, this.getRequest());\n\t\tconectorV.ejecucion();\n\t\ttraza(\" >>>Se ejecuto el conector \");\n\t\tDruidaConector resultados = conectorV.getConector();\n\t\tasignar(\"COMBO\", \"cbEstrategia\", resultados, \"PRECargarEstrategias\");\n\t\ttraza(\" >>>Se asignaron los valores \");\n\t\t// */ [1]\n\t\t\n\n }", "public Cargo comparaCodigoComCargo() {\n boolean cargoNaoEncontrado = true;\n Cargo cargo = null;\n\n while (cargoNaoEncontrado) {\n int codigo = pedeCodigo();\n cargo = ControladorPrincipal.getInstance().controladorCargo.encontraCargoPorCodigo(codigo);\n if (cargo != null) {\n cargoNaoEncontrado = false;\n } else {\n this.telaFuncionario.mensagemCargoNaoEncontrado();\n }\n }\n return cargo;\n }", "public void comportement() {\n\t\tif (compteurPas > 0) {\n seDeplacer(deplacementEnCours);\n compteurPas--;\n\n // sinon charge le prochain deplacement\n\t\t} else {\n\t\t // recalcul le chemin si la cible a bouge\n boolean cibleBouger = calculPosCible();\n if (cibleBouger)\n calculerChemin();\n\n if (suiteDeDeplacement.size() > 0) {\n deplacementEnCours = suiteDeDeplacement.pollFirst();\n compteurPas = Case.TAILLE / vitesse;\n // pour le sprite\n if (deplacementEnCours == 'E')\n direction = true;\n else if (deplacementEnCours == 'O')\n direction = false;\n }\n }\n\t\tattaque = attaquer();\n\t}", "public void reabrirContrato() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n } else {\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//hospede\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se o contrato já estpa aberto\n System.err.println(\"O contrado desse hospede já encontra-se aberto\");\n\n } else {//caso o contrato encontre-se fechado\n hospedesCadastrados.get(i).getContrato().setSituacao(true);\n System.err.println(\"Contrato reaberto, agora voce pode reusufruir de nossos servicos!\");\n }\n }\n }\n }\n }", "public String getCidade() {// Retorna o nome da cidade.\r\n\t\treturn cidade;\r\n\t}", "public void abrir(String name, String rfc, Double sueldo, Double aguinaldo2,// Ya esta hecho es el vizualizador\r\n\t\t\tDouble primav2, Double myH2, Double gF, Double sGMM2, Double hip, Double donat, Double subR,\r\n\t\t\tDouble transp, String NivelE, Double colegiatura2) {\r\n\t\tthis.nombre=name;//\r\n\t\tthis.RFC=rfc;//\r\n\t\tthis.SueldoM=sueldo;//\r\n\t\tthis.Aguinaldo=aguinaldo2;//\r\n\t\tthis.PrimaV=primav2;//\r\n\t\tthis.MyH=myH2;//\r\n\t\tthis.GatsosFun=gF;//\r\n\t\tthis.SGMM=sGMM2;//\r\n\t\tthis.Hipotecarios=hip;//\r\n\t\tthis.Donativos=donat;//\r\n\t\tthis.SubRetiro=subR;//\r\n\t\tthis.TransporteE=transp;//\r\n\t\tthis.NivelE=NivelE;//\r\n\t\tthis.Colegiatura=colegiatura2;//\r\n\t\t\r\n\t\tthis.calculo(this.nombre, this.RFC, this.SueldoM, this.Aguinaldo, this.PrimaV,this.MyH,this.GatsosFun,\r\n\t\t\t\tthis.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura);\r\n\t\t\r\n\t\tpr.Imprimir(this.nombre, this.RFC, this.SueldoM,this.IngresoA,this.Aguinaldo,this.PrimaV,this.MyH,this.GatsosFun,this.SGMM,this.Hipotecarios,this.Donativos,this.SubRetiro,this.TransporteE,this.NivelE,this.Colegiatura,this.AguinaldoE,this.AguinaldoG,this.PrimaVE,this.PrimaVG,this.TotalIngresosG,this.MaxDedColeg,this.TotalDedNoRetiro,this.DedPerm,this.MontoISR,this.CuotaFija,this.PorcExced,this.PagoEx,this.Total);\r\n\t\t\r\n\t}", "public int getCaixa() {\n\t\treturn controlador.getCaixa();\n\t}", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }", "public long getCedulaPersonaEnvia() {\r\n\t\treturn cedulaPersonaEnvia;\r\n\t}", "public void copiarComprobanteContabilidad() {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n TablaGenerica tab_cabecera = ser_comprobante.getCabeceraComprobante(tab_tabla1.getValorSeleccionado());\r\n TablaGenerica tab_detalle = ser_comprobante.getDetallesComprobante(tab_tabla1.getValorSeleccionado());\r\n tab_tabla1.insertar();\r\n tab_tabla1.setValor(\"IDE_MODU\", tab_cabecera.getValor(\"IDE_MODU\"));\r\n tab_tabla1.setValor(\"IDE_GEPER\", tab_cabecera.getValor(\"IDE_GEPER\"));\r\n tab_tabla1.setValor(\"OBSERVACION_CNCCC\", tab_cabecera.getValor(\"OBSERVACION_CNCCC\"));\r\n tab_tabla1.setValor(\"ide_cntcm\", tab_cabecera.getValor(\"ide_cntcm\"));\r\n for (int i = 0; i < tab_detalle.getTotalFilas(); i++) {\r\n tab_tabla2.insertar();\r\n tab_tabla2.setValor(\"IDE_CNLAP\", tab_detalle.getValor(i, \"IDE_CNLAP\"));\r\n tab_tabla2.setValor(\"IDE_CNDPC\", tab_detalle.getValor(i, \"IDE_CNDPC\"));\r\n tab_tabla2.setValor(\"VALOR_CNDCC\", tab_detalle.getValor(i, \"VALOR_CNDCC\"));\r\n tab_tabla2.setValor(\"OBSERVACION_CNDCC\", tab_detalle.getValor(i, \"OBSERVACION_CNDCC\"));\r\n }\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales\");\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No se puede copiar el comprobante de contabilidad\", \"El comprobante seleccionado no se encuentra grabado\");\r\n }\r\n }", "public void comprar() {\n\t\tSystem.out.println(\"Comprar \"+cantidad+\" de \"+itemName);\n\t}", "public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}", "public DetallesCompra(java.awt.Frame parent, boolean modal,int compra,float total1,String fecha1) {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(null);\n efectosTabla();\n llenarTabla(compra);\n ID.setText(\"\"+compra);\n total.setText(\"$\"+total1);\n fecha.setText(\"\"+fecha1);\n }", "public void cargaDatosInicialesSoloParaAdicionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n //Obtien Ajuste Fin\n //Activa formulario para automatico modifica \n if (selectedEntidad.getNivel() >= 3) {\n numeroEspaciadorAdicionar = 260;\n }\n\n if (selectedEntidad.getNivel() == 3) {\n swParAutomatico = false;\n numeroEspaciadorAdicionar = 230;\n }\n if (selectedEntidad.getNivel() == 2) {\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciadorAdicionar = 200;\n }\n if (selectedEntidad.getNivel() == 1) {\n swParAutomatico = true;\n numeroEspaciadorAdicionar = 130;\n cntParametroAutomaticoDeNivel2 = cntParametroAutomaticoService.obtieneObjetoDeParametroAutomatico(selectedEntidad);\n }\n\n mascaraNuevoOpcion = \"N\";\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n mascaraNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"N\");\n mascaraSubNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"S\");\n longitudNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"N\");\n longitudSubNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"S\");\n }", "Activite getActiviteCourante();", "private void cargarContrarreferencia() {\r\n\t\tif (admision_seleccionada != null\r\n\t\t\t\t&& !admision_seleccionada.getAtendida()) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTRAREFERENCIA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTRAREFERENCIA, parametros);\r\n\t\t}\r\n\r\n\t}", "public ComponenteCosto getComponenteCosto()\r\n/* 68: */ {\r\n/* 69: 91 */ return this.componenteCosto;\r\n/* 70: */ }", "public ControladorCombate(int tipo_simulacion,\r\n Entrenador entrenador1, Entrenador entrenador2, ControladorPrincipal cp){\r\n this.esLider = false;\r\n this.controlador_principal = cp;\r\n this.tipo_simulacion = tipo_simulacion;\r\n this.combate = new Combate();\r\n this.equipo1 = entrenador1.getPokemones();\r\n this.equipo2 = entrenador2.getPokemones();\r\n this.entrenador1 = entrenador1;\r\n this.entrenador2 = entrenador2;\r\n this.vc = new VistaCombate();\r\n this.va = new VistaAtaque();\r\n this.ve = new VistaEquipo();\r\n this.creg = new ControladorRegistros();\r\n String[] nombres1 = new String[6];\r\n String[] nombres2 = new String[6];\r\n for (int i = 0; i < 6; i++) {\r\n nombres1[i]=equipo1[i].getPseudonimo();\r\n nombres2[i]=equipo2[i].getPseudonimo(); \r\n }\r\n this.vpc = new VistaPreviaCombate(tipo_simulacion, entrenador1.getNombre(), entrenador2.getNombre());\r\n this.vpc.agregarListener(this);\r\n this.vpc.setjC_Equipo1(nombres1);\r\n this.vpc.setjC_Equipo2(nombres2);\r\n this.vpc.setVisible(true);\r\n this.termino = false;\r\n resetearEntrenadores();\r\n }", "private void RealizarProtocoloDeVendaDeCasasEHoteis(int idLugar) throws Exception {\n Lugar lugar = this.tabuleiro.getLugarById(idLugar);\n\n int nivelDoTerreno = lugar.getNivel();\n if (nivelDoTerreno == 0) {\n throw new Exception(\"Terreno nao possui casa\");\n } else if (nivelDoTerreno == 1) {\n int valorCasaVenda = this.banco.VenderCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelSemCasa(idLugar));\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNivel();\n this.banco.addCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addDinheiro(valorCasaVenda);\n if (this.listaJogadores.get(jogadorAtual()).getQuantidadeDeCasas() == 0 && this.listaJogadores.get(jogadorAtual()).getQuantidadeDeHoteis() == 0) {\n this.listaJogadores.get(jogadorAtual()).removerComandoSell();\n }\n } else if (nivelDoTerreno == 2) {\n int valorCasaVenda = this.banco.VenderCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelUmaCasa(idLugar));\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNivel();\n this.banco.addCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addDinheiro(valorCasaVenda);\n } else if (nivelDoTerreno == 3) {\n int valorCasaVenda = this.banco.VenderCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelDuasCasas(idLugar));\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNivel();\n this.banco.addCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addDinheiro(valorCasaVenda);\n\n } else if (nivelDoTerreno == 4) {\n int valorCasaVenda = this.banco.VenderCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelTresCasas(idLugar));\n lugar.diminuirNumeroDeCasas();\n lugar.diminuirNivel();\n this.banco.addCasas();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addDinheiro(valorCasaVenda);\n\n } else if (nivelDoTerreno == 5) {\n if (this.banco.getCasas() < 4) {\n throw new Exception(\"Not enough houses on the bank\");\n }\n int valorCasaVenda = this.banco.VenderCasa(idLugar);\n lugar.setPrecoAluguel(this.tabuleiro.getPrecoAluguelQuatroCasas(idLugar));\n this.banco.BancoPerder4Casas();\n lugar.addNumeroDeCasas();\n lugar.addNumeroDeCasas();\n lugar.addNumeroDeCasas();\n lugar.addNumeroDeCasas();\n lugar.diminuirNivel();\n this.banco.addHoteis();\n this.listaJogadores.get(jogadorAtual()).diminuirQuantidadeDeHoteis();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addQuantidadeDeCasas();\n this.listaJogadores.get(jogadorAtual()).addDinheiro(valorCasaVenda);\n\n }\n }", "@Override\n public void comprarUnidad(String nombreUnidad, int fila, int columna) {\n if(fila < 10 ){\n throw new NoSePuedeColocarUnidadEnSectorEnemigoException();\n }\n\n Unidad unidadComprada;\n unidadComprada = cuartel.getUnidad(nombreUnidad, this);\n unidadComprada.setAlianza(AZUL);\n tablero.colocarUnidad(unidadComprada, fila, columna);\n unidades.add(unidadComprada);\n }", "public void llenarCafetera() {\n\t\tthis.setCantidadActual(this.get_capacidadMaxima());\n\t}", "public int getEgresosPorCompras(){\n return this.egresosPorCompras;\n }", "public grupobbva.pe.com.EnlaceBBVA.Cabecera getCabecera() {\r\n return cabecera;\r\n }", "public String recuperaCultivoByEstadoAsigCA(){\n\t\tlstCultivo = iDAO.recuperaCultivoByInicilizacionEsquema(idInicializacionEsquema,idEstado);\n\t\t\n\t\treturn SUCCESS;\t\t\n\t}", "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 Cgg_res_oficial_seguimiento_usuario(){}", "public boolean isAgregaCC()\r\n/* 364: */ {\r\n/* 365:422 */ return this.agregaCC;\r\n/* 366: */ }", "String getCognome();", "public void abrirDialogoCustodio(){\n\t\tif(aut_empleado.getValor()!=null){\n\t\t\ttab_tarspaso_Custodio.limpiar();\n\t\t\ttab_tarspaso_Custodio.insertar();\n\t\t\t//tab_direccion.limpiar();\n\t\t//\ttab_direccion.insertar();\n\t\t\tdia_traspaso_custodio.dibujar();\n\t\t}\n\t\telse{\n\t\t\tutilitario.agregarMensaje(\"Inserte un Custodio\", \"\");\n\t\t}\n\n\t}", "public Corriente(int numero, long saldo, Persona titular, String tipoCuenta) {\r\n super(numero, saldo, titular, tipoCuenta);\r\n\r\n }", "public int getComienza() {\n\t\treturn comienza;\n\t}", "private String organizarCadena (Resultado res){\n String cadena = formatoCadenaTexto(res.getFuncion(),15) +\n formatoCadenaTexto(res.getAlgoritmo(),20) + \n res.getD() + \n \" \" + formatoDecimales(res.getPromedioIteracion(),1,6)+\n \" \" + formatoDecimales(res.getMejor_optimo(),10,10) + \n \" \" + formatoDecimales(res.getPeor_optimo(),10,10) + \n \" \" + formatoDecimales(res.getPromedioOptimos(), 10,10) + \n \" \" + formatoDecimales(res.getDesviacionOptimos(),10,15) + \n \" \" + formatoDecimales(res.getTiempoPromedio(), 3,1); \n return cadena;\n }", "private ControleurAcceuil(){ }", "public String tipoConta() {\n return \"Conta Comum\";\n }", "public abstract java.lang.String getCod_tecnico();", "public void codigo(String cadena, String codigo,int codigos,Reserva2 reserva,JDateChooser dateFechaIda,JDateChooser dateFechaVuelta,JTextField DineroFaltante) {\n\t\tcadena=codigo.split(\",\")[1];\n\t\tubicacion=codigo.split(\",\")[5];\n\t\tnombre=codigo.split(\",\")[3];\n\t\tprecio=codigo.split(\",\")[8];\n\t\tcodigos=Integer.parseInt(cadena);\n\t\tSystem.out.println(\"hola\");\n\t\tSystem.out.println(Modelo1.contador);\n\t\t\n\t\tif(Modelo1.contador==1) {\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigohotel(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==2) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigocasa(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigocasa());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t\t\n\t\t}\n\t\telse if(Modelo1.contador==3) {\n\t\t\t\n\t\t\totroprecio=Double.parseDouble(precio);\n\t\t\treserva.setUbicacion(ubicacion);\n\t\t\treserva.setCodigoapatamento(codigos);\n\t\t\treserva.setNombreAlojamiento(nombre);\n\t\t\tpreciofinal=metodos.preciototal(dateFechaIda, dateFechaVuelta, otroprecio);\n\t\t\treserva.setPrecio(preciofinal);\n\t\t\tSystem.out.println(reserva.getUbicacion());\n\t\t\tSystem.out.println(reserva.getCodigoapatamento());\n\t\t\tSystem.out.println(reserva.getNombreAlojamiento());\n\t\t\tSystem.out.println(reserva.getPrecio());\n\t\t\tDineroFaltante.setText(reserva.getPrecio()+\" \\u20ac\");\n\t\t\tModelo1.total_faltante = reserva.getPrecio();\n\t\t}\n\t\t\n\t}", "void adicionaComentario(Comentario comentario);", "String getCodiceFiscale();", "@Test\n public void testConfirmarCompra() {\n System.out.println(\"confirmarCompra\");\n ControleCompra instance = new ControleCompra();\n int id = 1;\n String nome = \"Adidas\";\n float total = 150;\n Fornecedor forn = fornecedor;\n Date d = new Date();\n Calendar cal = new GregorianCalendar();\n cal.setTime(d);\n Date dataCompra = d;\n Date dataRecebimento = d;\n instance.confirmarCompra(id, nome, total, forn, dataCompra, dataRecebimento);\n }", "public abstract java.lang.String getAcma_cierre();", "@Override\n public AsientoContable crearTotalCancelar(final Boleto b, final ComprobanteContable cc,\n final ContabilidadBoletaje conf, final Aerolinea a, final NotaDebitoTransaccion idTransaccion) {\n\n AsientoContable totalCancelar = new AsientoContable();\n\n totalCancelar.setGestion(cc.getGestion());\n //totalCancelar.setAsientoContablePK(new AsientoContablePK(0, cc.getGestion()));\n totalCancelar.setIdLibro(cc);\n totalCancelar.setGestion(cc.getGestion());\n totalCancelar.setFechaMovimiento(DateContable.getCurrentDate());\n totalCancelar.setEstado(ComprobanteContable.EMITIDO);\n //totalCancelar.setIdBoleto(b.getIdBoleto);\n totalCancelar.setIdBoleto(b);\n totalCancelar.setIdNotaTransaccion(idTransaccion);\n totalCancelar.setTipo(AsientoContable.Tipo.BOLETO);\n\n if (b.getTipoCupon().equals(Boleto.Cupon.INTERNACIONAL)) {\n totalCancelar.setMontoDebeExt(b.getTotalMontoCobrar());\n totalCancelar.setMontoDebeNac(b.getTotalMontoCobrar() != null\n ? b.getTotalMontoCobrar().multiply(b.getFactorCambiario().setScale(Contabilidad.VALOR_DECIMAL_2, BigDecimal.ROUND_DOWN))\n : null);\n totalCancelar.setIdPlanCuenta(conf.getIdTotalBoletoUs());\n totalCancelar.setMoneda(Moneda.EXTRANJERA);\n } else if (b.getTipoCupon().equals(Boleto.Cupon.NACIONAL)) {\n Double montoHaber = b.getTotalMontoCobrar() != null ? b.getTotalMontoCobrar().doubleValue() / b.getFactorCambiario().doubleValue() : 0.0f;\n totalCancelar.setMontoDebeExt(new BigDecimal(montoHaber).setScale(Contabilidad.VALOR_DECIMAL_2, BigDecimal.ROUND_DOWN));\n totalCancelar.setMontoDebeNac(b.getTotalMontoCobrar());\n totalCancelar.setIdPlanCuenta(conf.getIdTotalBoletoBs());\n totalCancelar.setMoneda(Moneda.NACIONAL);\n }\n\n return totalCancelar;\n }", "public String getAgenciaCodCedenteFormatted() {\r\n return boleto.getAgencia() + \" / \" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\r\n }", "public int getComuneNascitaCod() {\r\n return comuneNascitaCod;\r\n }", "int getIdRondaCancion(Cancion cancion,Date fecha) throws ExceptionDao;", "public int getIdCargaEmpleado()\r\n/* 103: */ {\r\n/* 104:185 */ return this.idCargaEmpleado;\r\n/* 105: */ }", "public void ListarVehiculosCiatCasaCiat() throws GWorkException {\r\n\t\ttry {\r\n\t\t\tDate dtFechaInicio;\r\n\t\t\tDate dtFechaFin;\r\n\t\t\tLong idPeriodo = 1L;\r\n\r\n\t\t\tdtFechaInicio = ManipulacionFechas\r\n\t\t\t\t\t.getMesAnterior(ManipulacionFechas.getFechaActual());\r\n\r\n\t\t\t// Integer mes = Integer.valueOf(ManipulacionFechas\r\n\t\t\t// .getMes(ManipulacionFechas.getFechaActual()));\r\n\t\t\tCalendar calendario = Calendar.getInstance();\r\n\r\n\t\t\tcalendario.setTime(dtFechaInicio);\r\n\t\t\tcalendario.set(Calendar.DAY_OF_MONTH, 5);\r\n\t\t\t// calendario.set(Calendar.MONTH, mes - 2);\r\n\r\n\t\t\tdtFechaInicio = calendario.getTime();\r\n\r\n\t\t\tdtFechaFin = ManipulacionFechas.getFechaActual();\r\n\t\t\tcalendario.setTime(dtFechaFin);\r\n\t\t\tcalendario.set(Calendar.DAY_OF_MONTH, 4);\r\n\r\n\t\t\tdtFechaFin = calendario.getTime();\r\n\r\n\t\t\tList<BillingAccountVO> vehiculos = listVehiclesFlatFileCiatCasaCiat(\r\n\t\t\t\t\tdtFechaInicio, dtFechaFin);\r\n\r\n\t\t\tReporteCobroCiatCasaCiat(vehiculos, idPeriodo);\r\n\t\t\tEntityManagerHelper.getEntityManager().getTransaction().begin();\r\n\t\t\tEntityManagerHelper.getEntityManager().getTransaction().commit();\r\n\t\t} catch (RuntimeException re) {\r\n\t\t\tlog.error(\"ListarVehiculosCiatCasaCiat\",re);\r\n\t\t\tthrow new GworkRuntimeException(\"[INFO] - \" + re.getMessage(), re);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(\"ListarVehiculosCiatCasaCiat\",e);\r\n\t\t\tthrow new GWorkException(\r\n\t\t\t\t\t\"No se pudo generar el comprobante [ERROR] - \"\r\n\t\t\t\t\t\t\t+ e.getMessage(), e);\r\n\r\n\t\t}\r\n\t}", "@Override\n public ComprobanteContable createAsientoDiarioBoleto(Boleto boleto) throws CRUDException {\n\n Optional op;\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n /*Aerolinea a = em.find(Aerolinea.class, boleto.getIdAerolinea().getIdAerolinea());\n if (a != null) {\n buff.append(a.getNumero());\n }*/\n buff.append(boleto.getIdAerolinea().getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas \n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n Cliente c = em.find(Cliente.class, boleto.getIdCliente().getIdCliente());\n op = Optional.ofNullable(c);\n\n if (!op.isPresent()) {\n throw new CRUDException(\"No se encontro un Cliente para el boleto\");\n }\n\n comprobante.setIdCliente(c);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(ComprobanteContable.Tipo.ASIENTO_DIARIO);\n\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), ComprobanteContable.Tipo.ASIENTO_DIARIO);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n comprobante.setIdNumeroGestion(numero);\n\n return comprobante;\n }" ]
[ "0.69353205", "0.672904", "0.66310537", "0.6629594", "0.65885794", "0.65489024", "0.6548749", "0.6541566", "0.6519273", "0.6511874", "0.64923954", "0.63738894", "0.6370393", "0.6356973", "0.63443285", "0.63440937", "0.6343593", "0.631843", "0.63040686", "0.629829", "0.62962043", "0.6282882", "0.62608266", "0.6253632", "0.6242118", "0.620537", "0.6200632", "0.61950797", "0.61944306", "0.6194211", "0.6186562", "0.61813396", "0.6180509", "0.6177059", "0.6169355", "0.616756", "0.61642545", "0.61625344", "0.6161147", "0.61494464", "0.61436033", "0.61369544", "0.61283743", "0.6125406", "0.61248684", "0.6119654", "0.6118992", "0.61165106", "0.6110988", "0.61106676", "0.6101746", "0.60992634", "0.6096242", "0.6096242", "0.60955876", "0.609391", "0.60922134", "0.60896087", "0.60869956", "0.60851127", "0.6082095", "0.60800916", "0.6077866", "0.6077796", "0.60736585", "0.6067606", "0.6067237", "0.6061465", "0.6061246", "0.60610735", "0.6043781", "0.6038105", "0.6033154", "0.60302955", "0.6028931", "0.6023797", "0.60194325", "0.6018628", "0.6013227", "0.60125726", "0.6009753", "0.6009421", "0.6002508", "0.5991853", "0.59913445", "0.5990988", "0.59902585", "0.5989642", "0.59868175", "0.59853077", "0.59776676", "0.59771895", "0.5975276", "0.59748435", "0.59619474", "0.59607375", "0.595795", "0.5955555", "0.59543455", "0.59513766", "0.5948212" ]
0.0
-1
Pa\u00EDs onde a compra foi realizada
public CompraResponse pais(String pais) { this.pais = pais; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "@Override\n\tpublic void encender() {\n\t\tSystem.out.println(\"Encendiendo Computadora\");\n\t\t\n\t}", "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "private static void benvenuto() {\n\t\tUtilityIO.header(MSG_BENVENUTO, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t\t\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "@Override\n\tpublic String hablar() {\n\t\treturn \"Hola, soy un Buitre y sť volar\";\n\t}", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "private static void saluti() {\n\t\tUtilityIO.header(MSG_CHIUSURA, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t}", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void cumplirAños(){\n this.setEdad(((byte)(this.getEdad()+1)));\n }", "public void TesteCompleto() {\n\n\n TectoySunmiPrint.getInstance().initPrinter();\n TectoySunmiPrint.getInstance().setSize(24);\n\n // Alinhamento do texto\n\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Alinhamento\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n\n // Formas de impressão\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Formas de Impressão\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n TectoySunmiPrint.getInstance().setSize(28);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printStyleBold(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleAntiWhite(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleDoubleHeight(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleDoubleWidth(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleInvert(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleItalic(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleStrikethRough(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().printStyleUnderLine(true);\n TectoySunmiPrint.getInstance().printText(\"TecToy Automação\\n\");\n TectoySunmiPrint.getInstance().printStyleReset();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printTextWithSize(\"TecToy Automação\\n\", 35);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printTextWithSize(\"TecToy Automação\\n\", 28);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printTextWithSize(\"TecToy Automação\\n\",50);\n // TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().setSize(24);\n\n\n // Impressão de BarCode\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Imprime BarCode\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printBarCode(\"7894900700046\", TectoySunmiPrint.BarCodeModels_EAN13, 162, 2,\n TectoySunmiPrint.BarCodeTextPosition_INFORME_UM_TEXTO);\n TectoySunmiPrint.getInstance().printAdvanceLines(2);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printBarCode(\"7894900700046\", TectoySunmiPrint.BarCodeModels_EAN13, 162, 2,\n TectoySunmiPrint.BarCodeTextPosition_ABAIXO_DO_CODIGO_DE_BARRAS);\n TectoySunmiPrint.getInstance().printAdvanceLines(2);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printBarCode(\"7894900700046\", TectoySunmiPrint.BarCodeModels_EAN13, 162, 2,\n TectoySunmiPrint.BarCodeTextPosition_ACIMA_DO_CODIGO_DE_BARRAS_BARCODE);\n TectoySunmiPrint.getInstance().printAdvanceLines(2);\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printBarCode(\"7894900700046\", TectoySunmiPrint.BarCodeModels_EAN13, 162, 2,\n TectoySunmiPrint.BarCodeTextPosition_ACIMA_E_ABAIXO_DO_CODIGO_DE_BARRAS);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().print3Line();\n // Impressão de BarCode\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Imprime QrCode\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printQr(\"www.tectoysunmi.com.br\", 8, 1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printQr(\"www.tectoysunmi.com.br\", 8, 1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printQr(\"www.tectoysunmi.com.br\", 8, 1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printDoubleQRCode(\"www.tectoysunmi.com.br\",\"tectoysunmi\", 7, 1);\n //TectoySunmiPrint.getInstance().feedPaper();\n\n\n // Impresão Imagem\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Imprime Imagem\\n\");\n TectoySunmiPrint.getInstance().printText(\"-------------------------------\\n\");\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inTargetDensity = 160;\n options.inDensity = 160;\n Bitmap bitmap1 = null;\n Bitmap bitmap = null;\n if (bitmap == null) {\n bitmap = BitmapFactory.decodeResource(getResources(), test, options);\n }\n if (bitmap1 == null) {\n bitmap1 = BitmapFactory.decodeResource(getResources(), test1, options);\n bitmap1 = scaleImage(bitmap1);\n }\n TectoySunmiPrint.getInstance().printBitmap(bitmap1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().print3Line();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_LEFT);\n TectoySunmiPrint.getInstance().printBitmap(bitmap1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().print3Line();\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_RIGTH);\n TectoySunmiPrint.getInstance().printBitmap(bitmap1);\n //TectoySunmiPrint.getInstance().feedPaper();\n TectoySunmiPrint.getInstance().print3Line();\n\n TectoySunmiPrint.getInstance().setAlign(TectoySunmiPrint.Alignment_CENTER);\n TectoySunmiPrint.getInstance().printText(\"Imprime Tabela\\n\");\n TectoySunmiPrint.getInstance().printText(\"--------------------------------\\n\");\n\n String[] prod = new String[3];\n int[] width = new int[3];\n int[] align = new int[3];\n\n width[0] = 100;\n width[1] = 50;\n width[2] = 50;\n\n align[0] = TectoySunmiPrint.Alignment_LEFT;\n align[1] = TectoySunmiPrint.Alignment_CENTER;\n align[2] = TectoySunmiPrint.Alignment_RIGTH;\n\n prod[0] = \"Produto 001\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 002\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 003\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 004\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 005\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n prod[0] = \"Produto 006\";\n prod[1] = \"10 und\";\n prod[2] = \"3,98\";\n TectoySunmiPrint.getInstance().printTable(prod, width, align);\n\n TectoySunmiPrint.getInstance().print3Line();\n TectoySunmiPrint.getInstance().openCashBox();\n TectoySunmiPrint.getInstance().cutpaper();\n\n }", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "protected String decrisToi(){\r\n return \"\\t\"+this.nomVille+\" est une ville de \"+this.nomPays+ \", elle comporte : \"+this.nbreHabitants+\" habitant(s) => elle est donc de catégorie : \"+this.categorie;\r\n }", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}", "@Override\n public String getAgenciaCodCedenteFormatted() {\n return boleto.getAgencia() + \"/\" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\n }", "public void comprar(){\r\n\t\tSystem.out.println(\"He comprado...\");\r\n\t}", "@Override\r\n\tpublic void 자기() {\n\t\tSystem.out.println(\"잠을 잔다\");\r\n\t}", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t\tSystem.out.println(\"Condicoes atuais: \" + temp + \"°C e \" + umid + \"% de umidade \" \r\n\t\t\t\t+ pressao + \" pressao\");\r\n\t\t\r\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public static void main(String[] args) {\n \n String palabaras[], palabraSelected=\"\";\n char juego[];\n char letra; \n char seguir; \n \n \n //puede volver a jugar.\n //con las palabras que no ha salido. Gastando palabras\n //en caso de no existir palabra terminar el juego e indicar el mensaje respectivo.\n\n\n do {\n aciertos=0; errores=0;\n bandera=false;\n\n palabaras= leerArchivo();\n \n if(palabaras.length==0){\n System.out.println(\"No se puede jugar porque no hay palabras\");\n break; \n }\n\n \n \n String nombre= palabaras[0].substring(0,18).trim().toUpperCase();\n\n String pa= String.format(\"%1$-20s\", \"walter\");\n System.out.println(pa.length());\n\n // escribirLineaArchivo(palabaras);\n \n //obtenerPalabra\n //random para obtener la palabara\n \n palabraSelected= obtenerPalabra(palabaras);\n //palabraSelected= palabraSelected.toUpperCase();\n \n //obtnerVectorJuego\n //instacia del venctor juego con el tamaño de la palabra seleccionada\n juego= obtenerVectorJuego(palabraSelected);\n \n /*//1 manera apata de llenar el vector juego con la palabra seleccinada\n for(int i=0; i<palabraSelected.length(); i++){\n \n juego[i]=palabraSelected.charAt(i);\n \n }\n */\n \n //segunda manera\n\n /* if(!palabraSelected.equals(\"fdd\")){\n\n\n }*/\n \n System.out.println(\"BIENVENIDO AL JUEGO DEL AHORCADO..\"); \n \n do {\n \n bandera=false;\n //imprimirJuego\n imprimirJuego(palabraSelected, juego);\n \n letra = solicitarLetra();\n \n //validarLetra\n validarLetra(letra, juego);\n \n //imprimirResultado\n imprimirResultado();\n \n \n } while (aciertos!=juego.length && errores!=7);\n \n \n //imprimirResultadoFinal\n imprimirResultadoFinal(juego, palabraSelected);\n\n\n\n System.out.println(\"Desea volver a jugar(S/N)? \"); \n seguir= scan.next().toUpperCase().charAt(0);\n \n eliminarPalabraArchivo(palabraSelected, palabaras);\n \n\n\n\n\n } while (seguir=='S');\n }", "@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}", "public void enfoncerRaz() {\n\t\tthis.valC = 0;\n\t\tthis.op = null;\n\t}", "public void jugar_con_el() {\n System.out.println(nombre + \" esta jugando contigo :D\");\n }", "private void atualizarTela() {\n\t\tif(this.primeiraJogada == true) {//SE FOR A PRIMEIRA JOGADA ELE MONTA O LABEL DOS NUMEROS APOS ESCOLHER A POSICAO PELA PRIMEIRA VEZ\r\n\t\t\tthis.primeiraJogada = false;\r\n\t\t\tthis.montarLabelNumeros();\r\n\t\t}\r\n\r\n\t\tthis.esconderBotao();\r\n\t\t\r\n\t\tthis.acabarJogo();\r\n\t}", "public final String deu() {\n String str;\n AppMethodBeat.i(26738);\n String str2 = \"\";\n synchronized (this) {\n try {\n if (this.iPr == null || this.iPr.size() <= 0) {\n str = \"\";\n } else {\n int i = 0;\n while (i < this.iPr.size()) {\n com.tencent.mm.plugin.wenote.model.a.c cVar = (com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i);\n switch (cVar.getType()) {\n case -1:\n str = str2 + \"<hr/>\";\n break;\n case 1:\n i iVar = (i) cVar;\n if (!bo.isNullOrNil(iVar.content)) {\n str2 = str2 + iVar.content;\n if (i + 1 < this.iPr.size() && ((com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i + 1)).getType() == 1 && !bo.isNullOrNil(((i) this.iPr.get(i + 1)).content)) {\n str = str2 + \"<br/>\";\n break;\n }\n }\n str = str2 + \"<br/>\";\n break;\n case 2:\n str = str2 + dO(((f) cVar).uOo, 2);\n break;\n case 3:\n str = str2 + dO(((g) cVar).uOo, 3);\n break;\n case 4:\n l lVar = (l) cVar;\n str = str2 + dO(lVar.uOo, lVar.getType());\n break;\n case 5:\n str = str2 + dO(((d) cVar).uOo, 5);\n break;\n case 6:\n str = str2 + dO(((k) cVar).uOo, 6);\n break;\n case 20:\n str = str2 + dO(((com.tencent.mm.plugin.wenote.model.a.b) cVar).uOo, 20);\n break;\n default:\n str = str2;\n break;\n }\n i++;\n str2 = str;\n }\n str = str2.replaceAll(IOUtils.LINE_SEPARATOR_UNIX, \"<br/>\");\n AppMethodBeat.o(26738);\n }\n } finally {\n while (true) {\n AppMethodBeat.o(26738);\n }\n }\n }\n return str;\n }", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "private static void cajas() {\n\t\t\n\t}", "public void RealizarDiagnostico() {\n\t\tSystem.out.println(\"realizar dicho diagnostico con los sintomas presentados por el paciente\");\r\n\t}", "public static void visualizarVueltaCompletado(float a){\n JOptionPane.showMessageDialog(null,\"Aqui tiene su vuelta \"+a+\" €\");\n }", "@Override\n\tpublic void teclaConfirmaDigitada() {\n\t\t\n\t}", "public void quemaRueda() {\n System.out.println(\"¡Huele a plástico quemado de tanto quemar ruedas!\");\n }", "public static String textInicial(){\n\t\treturn \"******** Joc del SENKU ********\\n\"\n\t\t\t\t+ \"Es tracta d'eliminar totes les fitxes 'X' del taulell menys una.\\n\"\n\t\t\t\t+ \"Per fer-ho qualsevol fitxa pot saltar una altra fitxa i col·locar/-se a una posició buida.\\n\"\n\t\t\t\t+ \"La fitxa saltada s'elimina del taulell.\\n\"\n\t\t\t\t+ \"Els moviments només poden ser horitzontals o verticals, mai diagonals.\\n\";\n\t}", "@Override\n\tpublic void happyWithMan() {\n\t\tSystem.out.println(\"ÕýÄÇɶĨ¡£¡£¡£\");\n\t}", "private String construyeCaracter(String palabra) throws IOException {\n\t\tToken aux = null;\n \t\twhile(!((aux = this.nextTokenWithWhites()).get_lexema().equals(\"'\"))) {\n \t\t\tif (aux.get_lexema().equals(\"fin\"))\n \t\t\t\treturn palabra;\n \t\t\tpalabra = palabra + aux.get_lexema();\n \t\t\t// Si vemos que el caracter se alarga mucho, paramos de leer\n \t\t\tif (palabra.length() > 4) {\n \t\t\t\treturn palabra;\n \t\t\t}\n \t\t}\n \t\tpalabra = palabra + aux.get_lexema();\n\t\treturn palabra;\n\t}", "public void imprimir(String Cadena)\n\t{\n\t\ttry\n\t\t{\n\t\t\tpagina = printjob.getGraphics();\n\t\t\tpagina.setFont(fuente);\n\t\t\tpagina.setColor(Color.black);\n \n\t\t\tpagina.drawString(Cadena, 60, 60);\n \n\t\t\tpagina.dispose();\n\t\t\tprintjob.end();\n\t\t}catch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"LA IMPRESION HA SIDO CANCELADA...\");\n JOptionPane.showMessageDialog(null, \"La impresión ha sido cancelada\");\n\t\t}\n\t}", "public void mostrarCompra() {\n }", "private void actualizaSugerencias() { \t \t\n\n \t// Pide un vector con las últimas N_SUGERENCIAS búsquedas\n \t// get_historial siempre devuelve un vector tamaño N_SUGERENCIAS\n \t// relleno con null si no las hay\n \tString[] historial = buscador.get_historial(N_SUGERENCIAS);\n \t\n \t// Establece el texto para cada botón...\n \tfor(int k=0; k < historial.length; k++) { \t\t \t\t\n \t\t\n \t\tString texto = historial[k]; \n \t\t// Si la entrada k está vacía..\n \t\tif ( texto == null) {\n \t\t\t// Rellena el botón con el valor por defecto\n \t\t\ttexto = DEF_SUGERENCIAS[k];\n \t\t\t// Y lo añade al historial para que haya concordancia\n \t\t\tbuscador.add_to_historial(texto);\n \t\t} \t\t\n \t\tb_sugerencias[k].setText(texto);\n \t} \t\n }", "@Override\n\tpublic void muestraNombre() {\n\t\tSystem.out.println(\"Adivina un número par\");\n\t}", "public void reversarComprobanteContabilidad() {\r\n String ide_cnccc = ser_comprobante.reversarComprobante(tab_tabla1.getValorSeleccionado(), null);\r\n if (guardarPantalla().isEmpty()) {\r\n utilitario.agregarMensaje(\"Se genero el Comprobante Num: \", ide_cnccc);\r\n }\r\n }", "public String verDatos(){\n return \"Ataque: \"+ataque+\"\\nDefensa: \"+defensa+\"\\nPunteria: \"+punteria;\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}", "public String saludoCastellano () {\n\t\treturn \"hola\";\n\t}", "public String getDescricaoCaminhao() {\n return getDescricaoVeiculo() + \"\\t\" + capacidadeCarga;\n }", "@Override\n\tpublic void bolumSoyle() {\n\t\tSystem.out.println(\"Benim Bölümüm Psi\");\n\t}", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "@Override public String getCarne(){\n return \"salchicha y jamón \";\n }", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "void desconto_final(){\n setDesconto_final(this.inss + this.irpf);\n System.out.println(\"desconto_total = R$ \" + arredondar(this.desconto_final));\n }", "private void reserveChambre() {\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(chambre.equals(this.chambresVides().get(0))) {\n\t\t\t\tchambre.setReserve(true);\n\t\t\t\tSystem.out.println(\"\\n---------------------------------------\\nVous avez bien réservé cette chambre: |\");\n\t\t\t\tSystem.out.println(chambre.toString());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private String elaboraRitorno() {\n String testo = VUOTA;\n String titoloPaginaMadre = getTitoloPaginaMadre();\n\n if (usaHeadRitorno) {\n if (text.isValid(titoloPaginaMadre)) {\n testo += \"Torna a|\" + titoloPaginaMadre;\n testo = LibWiki.setGraffe(testo);\n }// fine del blocco if\n }// fine del blocco if\n\n return testo;\n }", "public void primerTicketDisponibleEncontrado() {\n\t\tprimerTicketDisponible();\n\t\tint f; int c;\n\t\tString ticket = primerTicketDisponible();\n\t\tString[] dividir = ticket.split(\" \");\n\t\tString fila = dividir[0];\n\t\tString columna = dividir[1];\n\t\tSystem.out.println(fila);\n\t\tSystem.out.println(columna);\n\t\tf = Integer.parseInt(fila);\n\t\tc = Integer.parseInt(columna);\n\t\tactualizarPlazas(f, c);\n\t}", "public void duerme() {\n System.out.println(\"Duerme profundamentZzZzZz...\");\n }", "@Override\r\n public void prenderVehiculo() {\r\n System.out.println(\"___________________________________________________\");\r\n System.out.println(\"prender Jet\");\r\n }", "public void nace() {\n System.out.println(\"Ostia, acabo de nacer tío.\");\n }", "public String getAgenciaCodCedenteFormatted() {\r\n return boleto.getAgencia() + \" / \" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\r\n }", "public String editar()\r\n/* 441: */ {\r\n/* 442:445 */ return null;\r\n/* 443: */ }", "public String toString()\n {\n String textoADevolver = \"\";\n if (tareaCompletada)\n {\n textoADevolver += \"HECHA \";\n }\n textoADevolver += descripcion + \" (\" +prioridad+ \").\";\n return textoADevolver;\n }", "public StringBuffer evoluciona()\r\n\t{\r\n\t\tStringBuffer hechos = new StringBuffer(\"\");\r\n\t\t\r\n\t\t//Me creo una superficie de booleanos para saber si hay célula o no en una posición....\r\n\t\tboolean [][]supBool = this.supBooleana();\r\n\t\t//Recorrido de la superficie...\r\n\t\tfor(int i=0; i<this.casillas.getFila(); i++)\r\n\t\t{\r\n\t\t\tfor(int j=0; j<this.casillas.getCol(); j++)\r\n\t\t\t{\r\n\t\t\t\t//Si en esa posición hay célula...\r\n\t\t\t\tif(supBool[i][j] == true)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Ordeno ejecutarla, y la casilla a la que se ha movido, la pongo a false en la superficie booleana.\r\n\t\t\t\t\tCasilla c = this.superficie[i][j].ejecutaMovimiento(new Casilla(i,j), this, hechos);\r\n\t\t\t\t\tif(c!=null)supBool[c.getFila()][c.getCol()] = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Meto el tablero actualizado.\r\n\t\thechos.append(\"\\n\");\r\n\t\t\r\n\t\treturn hechos;\r\n\t}", "public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }", "public String darPlaca() {\n\t\treturn placa;\n\t}", "@Override\n protected String elaboraFooterCorrelate() {\n String text = CostBio.VUOTO;\n\n if (usaFooterCorrelate) {\n text += \"==Voci correlate==\";\n text += A_CAPO;\n text += LibWiki.setRigaQuadre(LibText.levaCoda(PATH_ANTRO, \"/\"));\n text += LibWiki.setRigaQuadre(PATH_ANTRO + \"Cognomi\");\n text += LibWiki.setRigaQuadre(PATH_ANTRO + \"Didascalie\");\n }// end of if cycle\n\n return text;\n }", "@Override\r\n\tpublic void 먹기() {\n\t\tSystem.out.println(\"다람쥐,도토리를 먹는다.\");\r\n\t}", "public void test() {\n\t\tSystem.out.println(\"Bฑปต๗ำรมห\");\r\n\t}", "public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }", "public abstract java.lang.String getAcma_cierre();", "@Override\n\tpublic void missiel() {\n\t\tSystem.out.println(\"미사일을 쏠 수 있습니다\");\n\n\t}", "public static void dormir(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n int restoDeMana; //variables locales a utilizar\n int restoDeVida;\n if(oro>=30){ //condicion de oro para recuperar vida y mana\n restoDeMana=10-puntosDeMana;\n puntosDeMana=puntosDeMana+restoDeMana;\n restoDeVida=150-puntosDeVida;\n puntosDeVida=puntosDeVida+restoDeVida;\n //descotando oro al jugador\n oro=oro-30;\n System.out.println(\"\\nrecuperacion satisfactoria\");\n }\n else{\n System.out.println(\"no cuentas con 'Oro' para recuperarte\");\n }\n }", "public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}", "public String accionemergencia(){\n\t\tString resp=\"\";\n\t\tif(puntosvida<=5 && acc!=1){\n\t\t\tpuntosvida=puntosvida+15;\n\t\t\tresp=\"\\nAccion de emergencia \"+ tipo +\"activada vida +15\";\n\t\t\tacc=1;\n\t\t}\n\t\treturn resp;\n\t}", "@Override\r\n\tpublic void frases() {\n\t\t\r\n\t\tthis.frase.add(\"Não há que ser forte. Há que ser flexível.\");\r\n this.frase.add(\"Gente todo dia arruma os cabelos, por que não o coração?\");\r\n this.frase.add(\"Há três coisas que jamais voltam; a flecha lançada, a palavra dita e a oportunidade perdida.\");\r\n this.frase.add(\"Melhor pensar alto do que não pensar nada.\");\r\n this.frase.add(\"A juventude não é uma época da vida, é um estado de espírito.\");\r\n this.frase.add(\" Podemos escolher o que semear, mas somos obrigados a colher o que plantamos.\");\r\n this.frase.add(\"Dê toda a atenção para a formação dos teus filhos, sobretudo por exemplos de tua própria vida.\");\r\n \r\n\t\t\r\n\t}", "public void Caracteristicas(){\n System.out.println(\"La resbaladilla tiene las siguientes caracteristicas: \");\r\n if (escaleras==true) {\r\n System.out.println(\"Tiene escaleras\");\r\n }else System.out.println(\"No tiene escaleras\");\r\n System.out.println(\"Esta hecho de \"+material);\r\n System.out.println(\"Tiene una altura de \"+altura);\r\n }", "public String estadoAlum() {\n String informacion = \"\";\n if (getProm() >= 60) {\n setCad(\"USTED APRUEBA CON TOTAL EXITO\");\n } else {\n if (getProm() <= 59) {\n setCad(\"REPROBADO\");\n }\n }\n return getCad();\n }", "public void addCuerpoInicio(String c)\n {\n cadenaCuerpo +=\"\\n\"+ c;\n }", "protected String elaboraHead() {\n String testo = VUOTA;\n String testoIncluso = VUOTA;\n\n // Avviso visibile solo in modifica\n testo += elaboraAvvisoScrittura();\n\n // Posiziona il TOC\n testoIncluso += elaboraTOC();\n\n // Posiziona il ritorno\n testoIncluso += elaboraRitorno();\n\n // Posizione il template di avviso\n testoIncluso += elaboraTemplateAvviso();\n\n // Ritorno ed avviso vanno (eventualmente) protetti con 'include'\n testo += elaboraInclude(testoIncluso);\n\n // Posiziona l'incipit della pagina\n testo += A_CAPO;\n testo += elaboraIncipit();\n\n // valore di ritorno\n return testo;\n }", "public String verDados() {\n\t\treturn super.verDados() + \"\\nSobremesa: \" + this.adicionais;\n\n\t}", "public String geraStatus() {\r\n\t\tString statusComplemento = \"\";\r\n\t\tif (this.temProcesso() == false) {\r\n\t\t\treturn \"Nenhum processo\\n\";\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < this.escalonadores.size(); i++) {\r\n\t\t\t\tif (i > 0) {\r\n\t\t\t\t\tstatusComplemento += \" \";\r\n\t\t\t\t}\r\n\t\t\t\tstatusComplemento += i + 1 + \" - \";\r\n\t\t\t\tif (this.escalonadores.get(i).temProcesso()) {\r\n\t\t\t\t\tstatusComplemento += this.escalonadores.get(i).geraStatusComplemento();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstatusComplemento += \"\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn statusComplemento;\r\n\t}", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "@Override\r\n\tpublic void doThing() {\n\t\tSystem.out.print(\"ÎäÆ÷ÊDZ¦½£,\");\r\n\t}", "@Override\n\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\n\t\t\tchar[] contraseņa;\n\t\t\tcontraseņa = contraseņa1.getPassword();\n\t\t\tif(contraseņa.length<8||contraseņa.length>12)\n\t\t\t{\n\t\t\t\tcontraseņa1.setBackground(Color.RED);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcontraseņa1.setBackground(Color.WHITE);\n\t\t\t}\n\t\t}", "public void visualizzaCampo(){\r\n\t\tInputOutput.stampaCampo(nome, descrizione, obbligatorio);\r\n\t}", "public void modificarCompraComic();", "public void atualizar() {\n System.out.println(\"Metodo atualizar chamado!\");\n setR1(0);\n setR2(0);\n setR3(0);\n setN(0);\n\n //context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Atualizado!\", \"\"));\n }", "public void completarTarea()\n {\n tareaCompletada = true;\n }", "private String organizarCadena (Resultado res){\n String cadena = formatoCadenaTexto(res.getFuncion(),15) +\n formatoCadenaTexto(res.getAlgoritmo(),20) + \n res.getD() + \n \" \" + formatoDecimales(res.getPromedioIteracion(),1,6)+\n \" \" + formatoDecimales(res.getMejor_optimo(),10,10) + \n \" \" + formatoDecimales(res.getPeor_optimo(),10,10) + \n \" \" + formatoDecimales(res.getPromedioOptimos(), 10,10) + \n \" \" + formatoDecimales(res.getDesviacionOptimos(),10,15) + \n \" \" + formatoDecimales(res.getTiempoPromedio(), 3,1); \n return cadena;\n }", "@Override\n public void comunicar() {\n System.out.println(\"miauuuu\");\n\n }", "public String getMarca()\n {\n return \"\\nDispositivo Marca \" + Marca; \n }", "public void pourCoffeeImp() {\n\t\tSystem.out.println(\"加奶咖啡\");\n\t}", "public static void ComprovarComensals(Variables var,TReserva reserva,bComprobadors comp){\r\n if(reserva.iComensalsR <= 11 && reserva.iComensalsR > 0){\r\n System.out.println(\"Ha reservat taula per a \"+ reserva.iComensalsR);\r\n comp.bReserva = false;\r\n }else{ \r\n System.out.println(\"\\033[31m\" + \"*Comensals erronis*\" + \"\\033[30m\");\r\n comp.bReserva = true;\r\n }\r\n }", "public void AtualizaPassageiro(String nome, String NovoCpf, String cpfPrimario) {\n\n\t\ttry {\n\n\t\t\t// Meu cpf é a chjave\n\t\t\t// setando nome\n\n\t\t\tstmt = con.prepareStatement(\" update Passageiro set nome= ? where cpf= ? \");\n\t\t\tstmt.setString(1, nome);\n\t\t\tstmt.setString(2, cpfPrimario);\n\t\t\tstmt.executeUpdate();\n\n\t\t\t// setando cpf\n\n\t\t\tstmt = con.prepareStatement(\" update Passageiro set cpf= ? where cpf= ? \");\n\t\t\tstmt.setString(1, NovoCpf);\n\t\t\tstmt.setString(2, cpfPrimario);\n\t\t\tstmt.executeUpdate();\n\n\t\t\tJOptionPane.showMessageDialog(null, \"Passageiro Alterado com sucesso!!\");\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\n\t\t\tSystem.out.println(\"Erro ao atualizar passageiro!\");\n\t\t\tJOptionPane.showMessageDialog(null, \"-Erro ao atualizar o passageiro \");\n\t\t\tJOptionPane.showMessageDialog(null, \"certifique se de inserir um CPF VALIDO(15 CARACTERES)\t \");\n\t\t}\n\n\t}", "String ponerMarcaCongelado(final boolean esCongelado) {\n return esCongelado ? Constantes.MARCA_CONGELADO : \"\";\n\n }", "@Override\r\n\tpublic void actionMisil() {\n\t\tSystem.out.println(\"미사일 있다.\");\r\n\t}", "protected String compString() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void trunOff() {\n\t\tSystem.out.println(\"켜다\");\r\n\t}" ]
[ "0.6829743", "0.6727305", "0.6366029", "0.6325177", "0.625733", "0.61790866", "0.6129719", "0.60200053", "0.59976834", "0.59750867", "0.5961692", "0.59587175", "0.59426624", "0.59067124", "0.588602", "0.58784246", "0.5840738", "0.57966906", "0.5793028", "0.5788126", "0.577979", "0.5766806", "0.57660186", "0.57488024", "0.57353413", "0.57290035", "0.57278436", "0.5711709", "0.57011825", "0.56975126", "0.5690058", "0.5688122", "0.56845355", "0.5679881", "0.56689495", "0.56068516", "0.55977225", "0.5583535", "0.55799705", "0.5555721", "0.55509824", "0.5546478", "0.55418074", "0.55412805", "0.55373293", "0.55364156", "0.5533147", "0.5532519", "0.5532345", "0.553103", "0.5524961", "0.55241585", "0.55080515", "0.549792", "0.5485707", "0.54807425", "0.5480554", "0.5475018", "0.5474738", "0.5472898", "0.5472623", "0.54715335", "0.5464097", "0.5462431", "0.5460489", "0.54595625", "0.5454275", "0.54531026", "0.5444809", "0.54432136", "0.5436823", "0.5433638", "0.5431037", "0.54294187", "0.5424315", "0.5422872", "0.5422537", "0.541955", "0.5417764", "0.5408863", "0.54072267", "0.54068744", "0.54014885", "0.5400077", "0.54000366", "0.5397316", "0.5396358", "0.53881586", "0.537778", "0.5374197", "0.5373332", "0.5372028", "0.5361203", "0.5358943", "0.535716", "0.5352841", "0.53507733", "0.53461736", "0.53459305", "0.5341937", "0.53416866" ]
0.0
-1
Coordenada latitudinal da localiza\u00E7\u00E3o da compra
public CompraResponse latitude(String latitude) { this.latitude = latitude; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getLatE6();", "int getLatE6();", "public int getLon();", "public Coord addressToCoord(String localisation);", "public int getLat();", "public String getLocation() {\n\t\treturn \"-12.9990189,-38.5140298\";\n\t}", "@AutoEscape\n\tpublic String getLatitud();", "private String latitudeConversion() {\n int lat = record[1];\n if (lat >= 0) {\n lat = lat & 255;\n }\n lat = (lat << 8) + (record[0] & 255);\n float flat = Float.parseFloat((\"\" + lat + \".\" + (((record[3] & 255) << 8) + (record[2] & 255))));\n int degs = (int) flat / 100;\n float min = flat - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "int getLongitude();", "long getLongitude();", "int getLngE6();", "int getLngE6();", "float latitude() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n return FastMath.HALF_PI;\n case SOUTH_4M:\n case SOUTH_16M:\n return -FastMath.HALF_PI;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * Stonehenge\n */\n return 51.1788f * FastMath.DEG_TO_RAD;\n }\n throw new IllegalStateException();\n }", "@Override\n public String getLon() {\n return lon;\n }", "double getLongitude();", "IntPoint getLocation();", "private String longitudeConversion() {\n int lon = record[5];\n if (lon >= 0) {\n lon = lon & 255;\n }\n lon = (lon << 8) + (record[4] & 255);\n float flon = Float.parseFloat(\"\" + lon + \".\" + (((record[7] & 255) << 8) + (record[6] & 255)));\n int degs = (int) flon / 100;\n float min = flon - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "double lat(long v) {\n return world.get(v).lat;\n }", "public int getLatE6() {\n return latE6_;\n }", "public int getLatE6() {\n return latE6_;\n }", "BigDecimal getWgs84Latitude();", "long getLatitude();", "public static void main (String[] args)\r\n {\n Coordenada utm = new Coordenada(new Datum(6378388D, 6356911.94612795),\r\n\t\t\t 481742, 4770800, 700, (byte)29, true);\r\n //System.out.println(\"lon=\"+utm.getLon()+\" lat=\"+utm.getLat());\r\n //System.out.println(utm.getGrados(utm.getLon())+\"¦ \"+utm.getMinutos(utm.getLon())+\"' \"+utm.getSegundos(utm.getLon())+\"\\\" \"+utm.getGrados(utm.getLat())+\"¦ \"+utm.getMinutos(utm.getLat())+\"' \"+utm.getSegundos(utm.getLat())+\"\\\"\");\r\n @SuppressWarnings(\"unused\")\r\n Coordenada res;\r\n res = utm.CambioDeDatum(new Datum(6378137D, 6356752.31424518));\r\n\r\n //System.out.println(\"Coordenadas en Datum destino: X=\"+res.X+\" Y=\"+res.Y);\r\n //System.out.println(\"lon=\"+res.getLon()+\" lat=\"+res.getLat());\r\n //System.out.println(res.getGrados(res.getLon())+\"¦ \"+res.getMinutos(res.getLon())+\"' \"+res.getSegundos(res.getLon())+\"\\\" \"+res.getGrados(res.getLat())+\"¦ \"+res.getMinutos(res.getLat())+\"' \"+res.getSegundos(res.getLat())+\"\\\"\");\r\n\t\t\t\t \r\n }", "static double geocentricToGeodetic(double geocentricLatitude) {\n return (Math.atan(Math.tan(geocentricLatitude) / (1.0 - E_ECC_SQUARED)));\n }", "long getCoordinates();", "long getCoordinates();", "public String getLat() {\n return lat;\n }", "int getLatitude();", "private void checkPointLon(){\n double glon = Double.parseDouble(point_lon);\n if(glon > 180.0){\n double glon360 = glon % 360.0;\n //west\n if(glon360 > 180.0){\n point_lon = Double.toString(glon360-360.0);\n //System.out.println(point_lon);\n //east\n }else{\n point_lon = Double.toString(glon360);\n //System.out.println(point_lon);\n }\n }\n if(glon < -180.0){\n double glon360 = glon % 360.0;\n //east\n if(glon360 < -180.0){\n point_lon = Double.toString(glon360+360.0);\n //west\n }else{\n point_lon = Double.toString(glon360);\n }\n }\n }", "public Coordinate getLocation();", "public Point getCarLocation() {\r\n\r\n SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\r\n builder.setTables(FTS_VIRTUAL_TABLE_CAR);\r\n builder.setProjectionMap(mColumnMapCar);\r\n\r\n Cursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(),\r\n null, null, null, null, null, null);\r\n\r\n if (cursor == null) {\r\n return null;\r\n } else if (!cursor.moveToFirst()) {\r\n cursor.close();\r\n return null;\r\n }\r\n\r\n String point_str = cursor.getString(1);\r\n\r\n point_str = point_str.trim();\r\n String[] coordinates = point_str.split(\",\");\r\n String lon = coordinates[0];\r\n String lat = coordinates[1];\r\n\r\n double flon = Float.valueOf(lon);\r\n double flat = Float.valueOf(lat);\r\n\r\n return (new Point(flon, flat));\r\n }", "public String coordToAddress(Coord loc);", "public static String convertPointToSector(Double lat, Double lon){\n if(lat > maxLat || lon > maxLon || lat < minLat || lon < minLon){\n return \"Coordinate non valide!\";\n }\n\n double number_lat = ((lat - minLat)/1.3);\n int integer_lat = (int)number_lat;\n double number_lon = ((lon - minLon)/1.075);\n int integer_lon = (int)number_lon+1;\n\n\n\n String id_lat = latID[integer_lat];\n\n String id_lon = Integer.toString(integer_lon);\n\n return id_lat+id_lon;\n\n }", "@Override\n public String getLat() {\n return lat;\n }", "public String getLocationString() {\n return getCenter().toString();\n }", "double getLatitude();", "Double getLatitude();", "Double getLatitude();", "public void displayCoordsInDegrees() {\n DecimalFormat formatter = new DecimalFormat(\"0.000\");\n\n String latFormat = formatter.format(posMarker.getPosition().latitude);\n String lonFormat = formatter.format(posMarker.getPosition().longitude);\n\n TextView latitude = (TextView) findViewById(R.id.image_latitude);\n TextView longitude = (TextView) findViewById(R.id.image_longitude);\n\n latitude.setText(latFormat); //Use posMarker location as field actually reflects marker position\n longitude.setText(lonFormat); //Use posMarker location as field actually reflects marker position\n }", "public int getLatE6() {\n return latE6_;\n }", "public int getLatE6() {\n return latE6_;\n }", "@Override\n\tpublic void getCoordinates() {\n\t\tSystem.out.println(\"Your Coordinates: 18.1124° N, 79.0193° E \");\n\t}", "public double getLon() {\n return lon;\n }", "public double getLon() {\n return lon;\n }", "Double getLongitude();", "Double getLongitude();", "BigDecimal getWgs84EndingLatitude();", "public String getLatitud() {\r\n return latitud;\r\n }", "public Point getLocation();", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "String getLocation();", "String getLocation();", "String getLocation();", "public float getLongitude() { return longitude; }", "public String getCoordsForLP() {\n String x = coords[0] < 0 ? \"neg\" + Math.abs(coords[0]) :\n Integer.toString(Math.abs(coords[0]));\n String y = coords[1] < 0 ? \"neg\" + Math.abs(coords[1]) :\n Integer.toString(Math.abs(coords[1]));\n return x + \"_\" + y;\n }", "@Min(-90)\n @Max(90)\n public double getLat() {\n return lat;\n }", "public static String getBiblioLat() {\n\t\treturn \"lat\";\n\t}", "public double getLat() {\n return lat;\n }", "public double getLat() {\n return lat;\n }", "public double getLat() {\n return lat;\n }", "private Point2D getCenterLatLon(){\n Point2D.Double result = new Point2D.Double();\n Point2D.Double screenCenter = new Point2D.Double();\n screenCenter.x = getWidth()/2; //contentpane width/height\n screenCenter.y = getHeight()/2;\n try{\n transform.inverseTransform(screenCenter,result); //transform to lat/lon using the current transform\n } catch (NoninvertibleTransformException e) {\n throw new RuntimeException(e);\n }\n return result;\n }", "private double convertCoord(double val) {\n return val - 50;\n }", "public void getLoco(double lat, double lon){\n cords.setText(lat + \" \"+lon);\n\n // String dress = getCompleteAddressString(lat,lon);\n\n // latt = lat;\n // longg = lon;\n\n //Toast.makeText(getContext(), add, Toast.LENGTH_SHORT).show();\n\n //LocationAddress locationAddress = new LocationAddress();\n //locationAddress.getAddressFromLocation(38.898748, -77.037684\n // , getContext(), new GeocoderHandler());\n\n //String add = getAddressString(lat,lon);\n //Toast.makeText(getContext(), add, Toast.LENGTH_LONG);\n //info.setText(add);\n\n check.setVisibility(View.VISIBLE);\n\n\n\n\n\n\n\n }", "public void makeLatLong(String address){\n try {\n JSONObject jsonObject = new JSONObject(address);\n JSONObject result = jsonObject.getJSONObject(\"result\");\n JSONArray addressMatches = result.getJSONArray(\"addressMatches\");\n JSONObject firstResult = addressMatches.getJSONObject(0);\n JSONObject coordinates = firstResult.getJSONObject(\"coordinates\");\n latitude = coordinates.getDouble(\"y\");\n longitude = coordinates.getDouble(\"x\");\n\n Log.i(\"CoY \", Double.toString(latitude));\n Log.i(\"CoX\", Double.toString(longitude));\n } catch (JSONException e) {\n Log.i(\"Error\", e.getMessage());\n e.printStackTrace();\n latitude = 39.7392;\n longitude = -104.9903;\n mainActivity.apiFailed(alarmName);\n }\n }", "public double getLat() {\r\n\t\treturn lat;\r\n\t}", "public static double CHtoWGSlat(double y, double x) {\n // Converts military to civil and to unit = 1000km\n // Auxiliary values (% Bern)\n double y_aux = (y - 600000) / 1000000;\n double x_aux = (x - 200000) / 1000000;\n\n // Process lat\n double lat = (16.9023892 + (3.238272 * x_aux))\n - (0.270978 * Math.pow(y_aux, 2))\n - (0.002528 * Math.pow(x_aux, 2))\n - (0.0447 * Math.pow(y_aux, 2) * x_aux)\n - (0.0140 * Math.pow(x_aux, 3));\n\n // Unit 10000\" to 1 \" and converts seconds to degrees (dec)\n lat = (lat * 100) / 36;\n\n return lat;\n }", "void mo5802a(LatLng latLng);", "public Coordonnees(double _latitude, double _longitude) {\r\n\t\tsuper();\r\n\t\tthis._latitude = _latitude;\r\n\t\tthis._longitude = _longitude;\r\n\t}", "public Vector getLocation();", "double lat(long v) {\n return adj.get(v).get(0).Lat;\n }", "double lat(long v) {\n return nodes.get(v).lat;\n }", "@Override\r\n\tpublic double getLon() {\n\t\treturn this.lon;\r\n\t}", "public double getLat() {\r\n\t\t\treturn lat;\r\n\t\t}", "private static int latToX(double lat) {\n return (int) ((lat - MIN_LAT) / (MAX_LAT - MIN_LAT) * 100 * 1000);\n }", "@Test\n public void testConvertPixelToCoord() throws Exception {\n System.out.println(\"convertPixelToCoord\");\n double x = 800;\n double y = 500;\n double lat = -71.320920;\n double lon = 46.759400;\n Utils instance = new Utils();\n Coordonnee result = instance.convertPixelToCoord(x, y);\n assertEquals(\"test latitude\",lat,result.getLat(),0);\n assertEquals(\"test longitude\",lon,result.getLon(),0);\n }", "public Double z() {\n return this.f917a.getAsDouble(\"CFG_LOCATION_LATITUDE\");\n }", "public String getlat() {\n\t\treturn lat;\n\t}", "BigDecimal getWgs84Longitude();", "public int getLocation()\r\n {\n }", "public Latitude(@NonNull byte[] values) {\n mLatitude = BLEUtils.createSInt32(values, 0);\n }", "public static String latitude(GeoPoint p) {\r\n\t\treturn Float.toString((float) p.getLatitudeE6() / (float) 1E6);\r\n\t}", "public LatLng m9053b() {\n return this.f7551b;\n }", "public Coordenada (Datum _d, double x, double y, double z,\r\n\t\t byte _zona, boolean _hemisferio_N)\r\n {\r\n d = _d;\r\n X = x;\r\n Y = y;\r\n Z = z; // Altura ortometrica, sobre NMMA\r\n zona = _zona;\r\n zona_ori = _zona;\r\n hemisferio_N = _hemisferio_N;\r\n GenerarCoordenadasGeograficas();\r\n }", "java.lang.String getLocation();", "public double getStartLon() {\n\t\treturn startLon;\n\t}", "public Coordonnees(String adresse, String ville, String telephone, String cp) {\r\n\t\tsuper();\r\n\t\tthis.adresse = adresse;\r\n\t\tthis.ville = ville;\r\n\t\tthis.telephone = telephone;\r\n\t\tthis.cp = cp;\r\n\t}", "public double getLon() {\r\n\t\t\treturn lon;\r\n\t\t}", "private String getCords() {\n return current.getLocString();\n\n }", "double lon(long v) {\n return world.get(v).lon;\n }", "public String getLocationString(){\n return \"(\" + x + \", \" + y + \")\";\n }", "public double getLatitude() {\n if (slat == GempakConstants.IMISSD) {\n return slat;\n }\n return slat / 100.;\n }", "public float getLongitude() {\n return longitude;\n }", "@Override\n \t\t\t\t\tpublic void onLocationChanged(Location location) {\n \t\t\t \tTextView latitudine = (TextView) findViewById(R.id.latitude_txt);\n \t\t\t \tTextView longitudine = (TextView) findViewById(R.id.longitude_txt);\n\n \t\t\t \tlatitudine.setText(\"La latitudine è: \"+String.valueOf(location.getLatitude()));\n \t\t\t \tlongitudine.setText(\"La longitudine è: \"+String.valueOf(location.getLongitude()));\n \t\t\t\t\t}", "static double geodeticToGeocentric(double geodeticLatitude) {\n return (Math.atan((1.0 - E_ECC_SQUARED) * Math.tan(geodeticLatitude)));\n }", "protodef.b_math.coord getCoordInfo();", "public static float getLocX(double lat) {\n\t\treturn (float) ((lat - Graph.CENTRE_LAT) * Graph.SCALE_LAT * Graph.zoom);\n\t}", "@Override\n public String updateLat() {\n return mylat;\n }", "@Test\n public void testConvertCoordToPixel() throws Exception {\n System.out.println(\"convertCoordToPixel\");\n double x = 800;\n double y = 500;\n double lat = -71.320920;\n double lon = 46.759400;\n Utils instance = new Utils();\n Coordonnee coord = new Coordonnee(-71.320920,46.759400);\n assertEquals(\"test latitude\",x,instance.convertCoordToPixel(coord).getLat(),0);\n assertEquals(\"test longitude\",y,instance.convertCoordToPixel(coord).getLon(),0);\n }", "@Override\r\n\tpublic double getLat() {\n\t\treturn this.lat;\r\n\t}", "public double getLongitude() {\n if (slon == GempakConstants.IMISSD) {\n return slon;\n }\n return slon / 100.;\n }", "@Override\n \t\t\t\t\tpublic void onLocationChanged(Location location) {\n \t\t\t \tTextView latitudine = (TextView) findViewById(R.id.latitude_txt);\n \t\t\t \tTextView longitudine = (TextView) findViewById(R.id.longitude_txt);\n\n \t\t\t \tlatitudine.setText(\"La latitudine è: \"+String.valueOf(location.getLatitude()));\n \t\t\t \tlongitudine.setText(\"La longitudine è: \"+String.valueOf(location.getLongitude()));\n \t\t\t\t\t\n \t\t\t\t\t}" ]
[ "0.67982197", "0.67982197", "0.6708172", "0.6704831", "0.6664325", "0.6615921", "0.6530306", "0.62944597", "0.62772727", "0.61449736", "0.614344", "0.614344", "0.6092108", "0.6037506", "0.6030154", "0.6018555", "0.60046303", "0.5995756", "0.5994753", "0.5994753", "0.59793204", "0.5973122", "0.59660554", "0.59570366", "0.5953428", "0.5953428", "0.5950671", "0.5944613", "0.5943802", "0.5931511", "0.5930469", "0.5928719", "0.59190696", "0.59147215", "0.5881164", "0.58697695", "0.5867608", "0.5867608", "0.58642393", "0.58610106", "0.58610106", "0.58576596", "0.5844939", "0.5844939", "0.58283687", "0.58283687", "0.58158123", "0.58136743", "0.5812899", "0.5811351", "0.5799114", "0.5799114", "0.5799114", "0.57812244", "0.57811457", "0.57794917", "0.5770272", "0.5765012", "0.5765012", "0.5765012", "0.5758863", "0.57567686", "0.57436913", "0.5727015", "0.5693127", "0.569047", "0.56902623", "0.5685198", "0.56772685", "0.56734276", "0.56667763", "0.5640375", "0.5634214", "0.5620589", "0.5614562", "0.5609729", "0.55927604", "0.55842716", "0.55813277", "0.5578477", "0.55605006", "0.5558804", "0.55514675", "0.55496126", "0.5547433", "0.5535745", "0.55342025", "0.5533355", "0.55272096", "0.5526544", "0.55255306", "0.5501318", "0.5499349", "0.5499341", "0.5499099", "0.5497448", "0.54951346", "0.54939014", "0.5492399", "0.54896957", "0.54873955" ]
0.0
-1
Coordenada longitudinal da localiza\u00E7\u00E3o da compra
public CompraResponse longitude(String longitude) { this.longitude = longitude; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getLon();", "int getLatE6();", "int getLatE6();", "private String longitudeConversion() {\n int lon = record[5];\n if (lon >= 0) {\n lon = lon & 255;\n }\n lon = (lon << 8) + (record[4] & 255);\n float flon = Float.parseFloat(\"\" + lon + \".\" + (((record[7] & 255) << 8) + (record[6] & 255)));\n int degs = (int) flon / 100;\n float min = flon - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "int getLngE6();", "int getLngE6();", "@AutoEscape\n\tpublic String getLongitud();", "public long getLocation() {\n long result = 0;\n byte[] md5sum = MD5.md5.get().digest(Utf8.toBytes(toString()));\n for (int i=0; i<8; ++i) {\n result |= (md5sum[i] & 0xFFl) << (8*i);\n }\n\n return result;\n }", "public String getCoordsForLP() {\n String x = coords[0] < 0 ? \"neg\" + Math.abs(coords[0]) :\n Integer.toString(Math.abs(coords[0]));\n String y = coords[1] < 0 ? \"neg\" + Math.abs(coords[1]) :\n Integer.toString(Math.abs(coords[1]));\n return x + \"_\" + y;\n }", "public String getLocation() {\n\t\treturn \"-12.9990189,-38.5140298\";\n\t}", "@Override\n public String getLon() {\n return lon;\n }", "long getCoordinates();", "long getCoordinates();", "public Coord addressToCoord(String localisation);", "int getLongitude();", "private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }", "long getLongitude();", "public int getLongueur()\n\t{\n\t\treturn longueur_;\n\t}", "long getUnknown72();", "private void checkPointLon(){\n double glon = Double.parseDouble(point_lon);\n if(glon > 180.0){\n double glon360 = glon % 360.0;\n //west\n if(glon360 > 180.0){\n point_lon = Double.toString(glon360-360.0);\n //System.out.println(point_lon);\n //east\n }else{\n point_lon = Double.toString(glon360);\n //System.out.println(point_lon);\n }\n }\n if(glon < -180.0){\n double glon360 = glon % 360.0;\n //east\n if(glon360 < -180.0){\n point_lon = Double.toString(glon360+360.0);\n //west\n }else{\n point_lon = Double.toString(glon360);\n }\n }\n }", "public static String decodeLocation(int val) {\n return \"\" + ((double) val / (double) 1E6);\n }", "public int getLongueur() {\n\t\treturn this.longueur;\n\t}", "@Override\r\n\tpublic double getLon() {\n\t\treturn this.lon;\r\n\t}", "public double getLon() {\n return lon;\n }", "public double getLon() {\n return lon;\n }", "public Point mo8782c() {\n return new Point(this.f1285a, (getHeight() - this.f1292h) - 10);\n }", "public int getLongitudDeCaracteres() {\n Integer a = new Integer(longitudDeCaracteres);\n if (a == null) {\n try {\n throw new ExcepcionPersonalizada(\n \"No definiste logitud de caracteres.\",\n this,\n \"getLongitudDeCaracteres\");\n } catch (ExcepcionPersonalizada ex) {\n Logger.getLogger(ParametrosDeCampo.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n return longitudDeCaracteres;\n }", "private String altitudeConversion() {\n int reading = ((record[9] & 255) << 8) + (record[8] & 255);\n if (reading == 60000) {\n return \" \";\n } else {\n return reading + \"\";\n }\n }", "private String getCords() {\n return current.getLocString();\n\n }", "public int getEncPosition() {\n //System.out.println(this.EncX.getRaw() + \"raw\");\n return (int) (1000 * this.EncX.getDistance());\n //return (int)(1000 * this.EncX.getRaw() / 8.6);\n \n }", "long mo1685a(C2369e c2369e);", "public double getLon() {\r\n\t\t\treturn lon;\r\n\t\t}", "public int getLatE6() {\n return latE6_;\n }", "public int getLatE6() {\n return latE6_;\n }", "public static void main (String[] args)\r\n {\n Coordenada utm = new Coordenada(new Datum(6378388D, 6356911.94612795),\r\n\t\t\t 481742, 4770800, 700, (byte)29, true);\r\n //System.out.println(\"lon=\"+utm.getLon()+\" lat=\"+utm.getLat());\r\n //System.out.println(utm.getGrados(utm.getLon())+\"¦ \"+utm.getMinutos(utm.getLon())+\"' \"+utm.getSegundos(utm.getLon())+\"\\\" \"+utm.getGrados(utm.getLat())+\"¦ \"+utm.getMinutos(utm.getLat())+\"' \"+utm.getSegundos(utm.getLat())+\"\\\"\");\r\n @SuppressWarnings(\"unused\")\r\n Coordenada res;\r\n res = utm.CambioDeDatum(new Datum(6378137D, 6356752.31424518));\r\n\r\n //System.out.println(\"Coordenadas en Datum destino: X=\"+res.X+\" Y=\"+res.Y);\r\n //System.out.println(\"lon=\"+res.getLon()+\" lat=\"+res.getLat());\r\n //System.out.println(res.getGrados(res.getLon())+\"¦ \"+res.getMinutos(res.getLon())+\"' \"+res.getSegundos(res.getLon())+\"\\\" \"+res.getGrados(res.getLat())+\"¦ \"+res.getMinutos(res.getLat())+\"' \"+res.getSegundos(res.getLat())+\"\\\"\");\r\n\t\t\t\t \r\n }", "private double convertCoord(double val) {\n return val - 50;\n }", "private String latitudeConversion() {\n int lat = record[1];\n if (lat >= 0) {\n lat = lat & 255;\n }\n lat = (lat << 8) + (record[0] & 255);\n float flat = Float.parseFloat((\"\" + lat + \".\" + (((record[3] & 255) << 8) + (record[2] & 255))));\n int degs = (int) flat / 100;\n float min = flat - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }", "public String GeneralFormForId_Coord() {\n return \"==================================================================================================================\" + \"\\n\" +\n \"city humidity description temprature coordination\" + \"\\n\" +\n \"==================================================================================================================\";\n\n }", "public String getLonguitud() {\r\n return longuitud;\r\n }", "public void setLongueur(int l) {\n\t\tthis.longueur = l;\n\t}", "public static void alturaArbol() {\n int angulo = 35;\n\n double anguloConvert = Math.toRadians(angulo);\n int x = 20;\n int y;\n y = (int) Math.round(x * Math.tan(anguloConvert));\n System.out.println(\"Altura del arbol: \" + y);\n }", "public String GetLcdInfo(){\r\n\t\t\tDisplayMetrics dm = new DisplayMetrics();\r\n\t\t\tgetWindowManager().getDefaultDisplay().getMetrics(dm);\r\n\t\t\tint screenWidth = dm.widthPixels;\r\n\t\t\tint screenHeigh = dm.heightPixels;\r\n\t\t\tString mlcd = screenWidth+\"x\"+ screenHeigh;\r\n\t\t\treturn mlcd;\r\n\t}", "String mo30285c(long j);", "public int getLongueur() {\n return longueur;\n }", "public int getLat();", "public int getLongueur() {\r\n return longueur;\r\n }", "public double getLongitude() {\n if (slon == GempakConstants.IMISSD) {\n return slon;\n }\n return slon / 100.;\n }", "public static int supplemental(char h, char l) {\n return (h - 0xD800) * 0x400 + (l - 0xDC00) + 0x10000;\n }", "double lon(long v) {\n return world.get(v).lon;\n }", "public String getLocationString() {\n return getCenter().toString();\n }", "public double getAbsPosition() {\n double distCM = ToFSerial.get() - startDist;\n //System.out.println(\"Dist in CM \" + distCM);\n\n double distIn = distCM * Constants.k_CMtoIn;\n //System.out.println(\"Dist in In \" + distIn);\n\n return (int) (1000 * distIn); \n\n }", "public final int mo91939E() {\n return C21085a.m71117a().mo56926b() + this.f94791al.getHeight() + this.mStatusView.getHeight();\n }", "String getLocationLabel();", "public int getLatE6() {\n return latE6_;\n }", "public int getLatE6() {\n return latE6_;\n }", "String getLawnPosition();", "public int getLngE6() {\n return lngE6_;\n }", "public int getLngE6() {\n return lngE6_;\n }", "public static String convertPointToSector(Double lat, Double lon){\n if(lat > maxLat || lon > maxLon || lat < minLat || lon < minLon){\n return \"Coordinate non valide!\";\n }\n\n double number_lat = ((lat - minLat)/1.3);\n int integer_lat = (int)number_lat;\n double number_lon = ((lon - minLon)/1.075);\n int integer_lon = (int)number_lon+1;\n\n\n\n String id_lat = latID[integer_lat];\n\n String id_lon = Integer.toString(integer_lon);\n\n return id_lat+id_lon;\n\n }", "public final String mo113281c() {\n return this.f93432d;\n }", "@AutoEscape\n\tpublic String getLatitud();", "public long getLUC() {\r\n/* 180 */ return this._LUC;\r\n/* */ }", "public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}", "public double getStartLon() {\n\t\treturn startLon;\n\t}", "public LatLng m9053b() {\n return this.f7551b;\n }", "public static String getBiblioLng() {\n\t\treturn \"lng\";\n\t}", "public String getGVCoordsForLabel() {\n StringBuilder coordsBuilder = new StringBuilder();\n\n coordsBuilder.append(\"X\");\n\n if (coords[0] < 0) {\n coordsBuilder.append(\"neg\");\n }\n\n coordsBuilder.append(Math.abs(coords[0])).append(\"Y\");\n\n if (coords[1] < 0) {\n coordsBuilder.append(\"neg\");\n }\n\n coordsBuilder.append(Math.abs(coords[1]));\n\n return coordsBuilder.toString();\n }", "String dCoord(int coord) {\n if (coord < 0)\n return (minimap.conf.netherpoints ? \"n\" : \"\") + \"-\" + Math.abs(coord + 1);\n else\n return (minimap.conf.netherpoints ? \"n\" : \"\") + \"+\" + coord;\n }", "public static String longitude(GeoPoint p) {\r\n\t\treturn Float.toString((float) p.getLongitudeE6() / (float) 1E6);\r\n\t}", "public static float larguraDaCena() {\n\t\treturn tamanho().width;\n\t}", "private static int lonToY(double lon) {\n return (int) ((lon - MIN_LON) / (MAX_LON - MIN_LON) * 100 * 1000);\n }", "public int getLattine() {\n\t\treturn nLattine;\n\t}", "String getLocation();", "String getLocation();", "String getLocation();", "private char hallarLetra() {\r\n\t\tchar[] letra= {'T','R','W','A','G','M','Y','F','P','D','X',\r\n\t\t\t\t\t'B','N','J','Z','S','Q','V','H','L','C','K','E'};\r\n\t\treturn letra[numeroDNI%23];\r\n\t}", "public Longitude get_long()\n {\n\treturn this._long;\n }", "private int separarCoordenadasCol(String[] pCasilla){\n\t\treturn Integer.parseInt(pCasilla[1]);\n\t}", "private Point2D getCenterLatLon(){\n Point2D.Double result = new Point2D.Double();\n Point2D.Double screenCenter = new Point2D.Double();\n screenCenter.x = getWidth()/2; //contentpane width/height\n screenCenter.y = getHeight()/2;\n try{\n transform.inverseTransform(screenCenter,result); //transform to lat/lon using the current transform\n } catch (NoninvertibleTransformException e) {\n throw new RuntimeException(e);\n }\n return result;\n }", "private long m18329a(long positionUs) {\n return m18341d(this.f16610d.mo25074b()) + positionUs;\n }", "protodef.b_math.coord getCoordInfo();", "@Override\n public String location() {\n return \"Vị trí sách giáo khoa\";\n }", "public String mo23326x() {\n return (String) this.f13965a.mo23249a(C7196pb.f13668Ad);\n }", "double getLongitude();", "RealLocalizable getPosition();", "public long length() {\n\tint nBits;\n\tlong x, y;\n\tlong length = 7 + Math.max(minBitsS(toFixed(getTranslateX())),\n\t\t\t\t minBitsS(toFixed(getTranslateY())));\n\tif (hasScale()) {\n\t length += 5 + Math.max(minBitsS(toFixed(getScaleX())),\n\t\t\t\t minBitsS(toFixed(getScaleY())));\n\t}\n\tif (hasRotate()) {\n\t length += 5 + Math.max(minBitsS(toFixed(getRotate1())),\n\t\t\t\t minBitsS(toFixed(getRotate2())));\n\t}\n\treturn length;\n }", "double lon(long v) {\n return adj.get(v).get(0).Lon;\n }", "long getY();", "public int getLngE6() {\n return lngE6_;\n }", "public int getLngE6() {\n return lngE6_;\n }", "long getMid();", "long getMid();", "public String getLocationNumber()\n\t{\n\t\tString locationNo = getContent().substring(OFF_ID27_LOCATION, OFF_ID27_LOCATION + LEN_ID27_LOCATION) ;\n\t\treturn (locationNo);\n\t}", "IntPoint getLocation();", "public int getLongitude() {\n return longitude;\n }", "public static float alturaDaCena() {\n\t\treturn tamanho().height;\n\t}", "@Override\n\tpublic void getCoordinates() {\n\t\tSystem.out.println(\"Your Coordinates: 18.1124° N, 79.0193° E \");\n\t}", "public void coFromInt(int coord) {\n int twist = 0;\n for(int j = 0; j < 7; j ++) {\n co[6 - j] = coord % 3;\n twist = (twist + coord % 3) % 3;\n coord /= 3;\n }\n co[7] = (3 - twist) % 3;\n }", "public void displayCoordsInDegrees() {\n DecimalFormat formatter = new DecimalFormat(\"0.000\");\n\n String latFormat = formatter.format(posMarker.getPosition().latitude);\n String lonFormat = formatter.format(posMarker.getPosition().longitude);\n\n TextView latitude = (TextView) findViewById(R.id.image_latitude);\n TextView longitude = (TextView) findViewById(R.id.image_longitude);\n\n latitude.setText(latFormat); //Use posMarker location as field actually reflects marker position\n longitude.setText(lonFormat); //Use posMarker location as field actually reflects marker position\n }", "public int getY(){\n\t\tif(!resetCoordinates()) return 10000;\n\t\treturn Math.round(robot.translation.get(1)/ AvesAblazeHardware.mmPerInch);\n\t}", "public final String mo113279a() {\n return this.f93430b;\n }" ]
[ "0.65970397", "0.65007186", "0.65007186", "0.64967084", "0.62018806", "0.62018806", "0.61911935", "0.6017345", "0.59504044", "0.59092104", "0.5871648", "0.5791394", "0.5791394", "0.57879484", "0.57865775", "0.57853764", "0.57456255", "0.5709335", "0.56959325", "0.56713754", "0.5604173", "0.5604011", "0.55927706", "0.5583569", "0.5583569", "0.55835575", "0.55424404", "0.553224", "0.5523461", "0.55234253", "0.5509855", "0.549716", "0.54912084", "0.54912084", "0.54864043", "0.5476124", "0.54668266", "0.5453826", "0.54464465", "0.54395276", "0.54373294", "0.5434979", "0.54323953", "0.5416818", "0.5415559", "0.54144734", "0.5404285", "0.53918844", "0.5390171", "0.5385793", "0.5375824", "0.5369957", "0.536708", "0.5340585", "0.5340585", "0.53388584", "0.5333547", "0.5333547", "0.5322123", "0.53189313", "0.531564", "0.5312617", "0.53113496", "0.5297172", "0.52859604", "0.52748436", "0.5267612", "0.52641296", "0.5262044", "0.52601033", "0.525642", "0.5252205", "0.5247958", "0.5247958", "0.5247958", "0.5238655", "0.52303195", "0.5229097", "0.5224154", "0.52239347", "0.5222275", "0.5212382", "0.52086616", "0.52051955", "0.520455", "0.52038604", "0.52013844", "0.52009916", "0.5197176", "0.5197176", "0.5196619", "0.5196619", "0.51948285", "0.5187696", "0.51870376", "0.51814646", "0.5174759", "0.51548713", "0.51434875", "0.5139227", "0.51355565" ]
0.0
-1
C\u00F3digo de Identifica\u00E7\u00E3o do Grupo MCC da compra
public CompraResponse idGrupoMCC(Long idGrupoMCC) { this.idGrupoMCC = idGrupoMCC; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMcc() {\n return mcc;\n }", "public CompraResponse descricaoGrupoMCC(String descricaoGrupoMCC) {\n this.descricaoGrupoMCC = descricaoGrupoMCC;\n return this;\n }", "public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}", "public int getCC() {\n\t\treturn CC;\n\t}", "public int getMcc() {\n return mcc_;\n }", "public int getMcc() {\n return mcc_;\n }", "public int getMcc() {\n return mcc_;\n }", "public int getMcc() {\n return mcc_;\n }", "public boolean isAgregaCC()\r\n/* 364: */ {\r\n/* 365:422 */ return this.agregaCC;\r\n/* 366: */ }", "@Override\r\n\tpublic int getcc() {\n\t\treturn 120;\r\n\t}", "public String getCROFM_CODIGO(){\n\t\treturn this.myCrofm_codigo;\n\t}", "int getMcc();", "int getMcc();", "public String getCGG_CVCTG_CODIGO(){\n\t\treturn this.myCgg_cvctg_codigo;\n\t}", "public int getCCN(){\n\t\treturn ccn;\n\t}", "public String getCVCTG_NOMBRE(){\n\t\treturn this.myCvctg_nombre;\n\t}", "public String getCVCTG_CODIGO(){\n\t\treturn this.myCvctg_codigo;\n\t}", "public String getCUSU_NOMBRES(){\n\t\treturn this.myCusu_nombres;\n\t}", "public String getDisplacementCC() {\r\n return displacementCC;\r\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}", "public void buscarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setDescripcionSeccion(\"Primaria\");\n \tgrado.setNumGrado(4);\n \tgrado.setDescripcionUltimoGrado(\"NO\");\n \tString respuesta = negocio.buscarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }", "private void fillcbGrupo() {\n\t\tcbGrupoContable.setNullSelectionAllowed(false);\n\t\tcbGrupoContable.setInputPrompt(\"Seleccione Grupo Contable\");\n\t\tfor (GruposContablesModel grupo : grupoimpl.getalls()) {\n\t\t\tcbGrupoContable.addItem(grupo.getGRC_Grupo_Contable());\n\t\t\tcbGrupoContable.setItemCaption(grupo.getGRC_Grupo_Contable(), grupo.getGRC_Nombre_Grupo_Contable());\n\t\t}\n\t}", "public String getNGAYCAP_CCHN()\n {\n return this.NGAYCAP_CCHN;\n }", "public String tipoConta() {\n return \"Conta Comum\";\n }", "private void setCC(int CC) {\n\t\tCMN.CC = CC;\n\t}", "@Override\n\tpublic void createccuntNum() {\n\t\t\n\t}", "public java.lang.String getCodigo_pcom();", "public Group getGroup_11() { return cGroup_11; }", "public void llenarComboGrado() {\t\n\t\tString respuesta = negocio.llenarComboGrado(\"\");\n\t\tSystem.out.println(respuesta);\t\n\t}", "public void llenarComboUltimoGrado() {\t\n \t\tString respuesta = negocio.llenarComboUltimoGrado(\"\");\n \t\tSystem.out.println(respuesta);\t\n \t}", "protected UniqueInfo cpui() { return hpcpui(columnStShhnKnyMsId()); }", "public void crearClase() {\r\n\t\tsetClase(3);\r\n\t\tsetTipoAtaque(3);\r\n\t\tsetArmadura(15);\r\n\t\tsetModopelea(0);\r\n\t}", "public Campo() {\r\n this.primoGrande = new BigInteger(\"20835161731609124123432674631212444\"\r\n + \"8251235562226470491514186331217050270460481\");\r\n this.limite = new BigInteger[2];\r\n System.out.println(\"Campo: \" + this.primoGrande);\r\n this.setDominio();\r\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}", "@Override\r\n public String toString() {\r\n return \"Mesa{\" + \"ubicacionSucursal=\" + ubicacionSucursal + \", numeroMesa=\" + numeroMesa + \", numeroPiso=\" + numeroPiso + '}';\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "public String getCpsm() {\n return cpsm;\n }", "public String getMarca()\n {\n return \"\\nDispositivo Marca \" + Marca; \n }", "public String getlbr_CNPJ();", "public String getlbr_CNPJ();", "public String getName() {\n\t\treturn \"CMN\";\n\t}", "public int getNumeroGiocatori() {\n return 0;\r\n }", "private boolean validarMezcla() {\n\t\tint grado = nodos.get(0).getGrado();\n\t\tboolean retorno = true;\n\t\tfor (Nodo n : nodos) {\n\t\t\tif (n.getGrado() != grado) {\n\t\t\t\tif (n.getGrado() < grado) {\n\t\t\t\t\tSystem.err.println(\"Error en la mezcla del grafo\");\n\t\t\t\t\tSystem.exit(4321);\n\t\t\t\t} else\n\t\t\t\t\tgrado = n.getGrado();\n\t\t\t}\n\t\t}\n\t\treturn retorno;\n\t}", "public void setCROSG_CODIGO(String inCrosg_codigo){\n\t\tthis.myCrosg_codigo = inCrosg_codigo;\n\t}", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "public List<String> getCc() {\n return cc;\n }", "public String getAgenciaCodCedenteFormatted() {\r\n return boleto.getAgencia() + \" / \" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\r\n }", "public int getComuneNascitaCod() {\r\n return comuneNascitaCod;\r\n }", "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }", "private static String formatGroup(GroupCard gc) {\n\t\tString res = \"\";\n\n\t\tGroupHeadGuest ghg = gc.getCapoGruppo();\n\t\tres += GroupHeadGuest.CODICE;\n\t\tres += DateUtils.format(gc.getDate());\n\t\tres += String.format(\"%02d\", gc.getPermanenza());\n\t\tres += padRight(ghg.getSurname().trim().toUpperCase(),50);\n\t\tres += padRight(ghg.getName().trim().toUpperCase(),30);\n\t\tres += ghg.getSex().equals(\"M\") ? 1 : 2;\n\t\tres += DateUtils.format(ghg.getBirthDate());\n\n\t\t//Setting luogo et other balles is a bit more 'na rottura\n\t\tres += formatPlaceOfBirth(ghg.getPlaceOfBirth());\n\n\t\tPlace cita = ghg.getCittadinanza(); //banana, box\n\t\tres += cita.getId();\n\n\t\tres += ghg.getDocumento().getDocType().getCode();\n\t\tres += padRight(ghg.getDocumento().getCodice(),20);\n\t\tres += ghg.getDocumento().getLuogoRilascio().getId();\n\t\t//Assert.assertEquals(168,res.length()); //if string lenght is 168 we are ok\n\t\tres += \"\\r\\n\";\n\n\t\tfor (GroupMemberGuest gmg : gc.getAltri()){\n\t\t\tres += formatGroupMember(gmg, gc.getDate(), gc.getPermanenza());\n\t\t\t//res += \"\\r\\n\";\n\t\t}\n\t\treturn res;\n\t}", "public String getNOICAP_CCHN()\n {\n return this.NOICAP_CCHN;\n }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" Corrente :\"+ super.getNumero();\n\t}", "public void setAgregaCC(boolean agregaCC)\r\n/* 369: */ {\r\n/* 370:426 */ this.agregaCC = agregaCC;\r\n/* 371: */ }", "public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "private String getConcerMan() {\n\t\tString concerman = \"\";\n\t\tif (mGuanzhuList.size()==1) {\n\t\t\treturn mGuanzhuList.get(0).getId();\n\t\t}\n\t\tif (mGuanzhuList.size()>1) {\n\t\t\tfor (int i = 0; i < mGuanzhuList.size(); i++) {\n\t\t\t\tCategory category = mGuanzhuList.get(i);\n\t\t\t\tif (i==0) {\n\t\t\t\t\tconcerman += category.getId() ;\t\n\t\t\t\t}else {\n\t\t\t\t\tconcerman += \"|\"+ category.getId();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn concerman;\n\t}", "String getCmt();", "@Override\n public String getAgenciaCodCedenteFormatted() {\n return boleto.getAgencia() + \"/\" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\n }", "public java.lang.String getCodigoGrupoRiesgoBuro() {\r\n return codigoGrupoRiesgoBuro;\r\n }", "Integer getChnlCde();", "@Override\r\n public String getUniCode()\r\n {\r\n if (getColor() == 'N')\r\n {\r\n setCode(\"\\u265B\");\r\n }\r\n else\r\n {\r\n setCode(\"\\u2655\");\r\n }\r\n return getCode();\r\n }", "public String getClGrpId() {\r\n return clGrpId;\r\n }", "@java.lang.Override\n public com.google.protobuf.StringValueOrBuilder getChulaIdOrBuilder() {\n return getChulaId();\n }", "public static List<String> getTacGrpGraphics()\n {\n return Arrays.asList(\n TacGrpSidc.TSK_DSTY,\n TacGrpSidc.TSK_ITDT,\n TacGrpSidc.TSK_NEUT,\n TacGrpSidc.C2GM_GNL_PNT_USW_UH2_DTM,\n TacGrpSidc.C2GM_GNL_PNT_USW_UH2_BCON,\n TacGrpSidc.C2GM_GNL_PNT_USW_UH2_LCON,\n TacGrpSidc.C2GM_GNL_PNT_USW_UH2_SNK,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_PTNCTR,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_DIFAR,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_LOFAR,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_CASS,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_DICASS,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_BT,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_ANM,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_VLAD,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_ATAC,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_RO,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_KGP,\n TacGrpSidc.C2GM_GNL_PNT_USW_SNBY_EXP,\n TacGrpSidc.C2GM_GNL_PNT_USW_SRH,\n TacGrpSidc.C2GM_GNL_PNT_USW_SRH_ARA,\n TacGrpSidc.C2GM_GNL_PNT_USW_SRH_DIPPSN,\n TacGrpSidc.C2GM_GNL_PNT_USW_SRH_CTR,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_NAVREF,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_SPLPNT,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_DLRP,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_PIM,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_MRSH,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_WAP,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_CRDRTB,\n TacGrpSidc.C2GM_GNL_PNT_REFPNT_PNTINR,\n TacGrpSidc.C2GM_GNL_PNT_WPN_AIMPNT,\n TacGrpSidc.C2GM_GNL_PNT_WPN_DRPPNT,\n TacGrpSidc.C2GM_GNL_PNT_WPN_ENTPNT,\n TacGrpSidc.C2GM_GNL_PNT_WPN_GRDZRO,\n TacGrpSidc.C2GM_GNL_PNT_WPN_MSLPNT,\n TacGrpSidc.C2GM_GNL_PNT_WPN_IMTPNT,\n TacGrpSidc.C2GM_GNL_PNT_WPN_PIPNT,\n TacGrpSidc.C2GM_GNL_PNT_FRMN,\n TacGrpSidc.C2GM_GNL_PNT_HBR,\n TacGrpSidc.C2GM_GNL_PNT_HBR_PNTQ,\n TacGrpSidc.C2GM_GNL_PNT_HBR_PNTA,\n TacGrpSidc.C2GM_GNL_PNT_HBR_PNTY,\n TacGrpSidc.C2GM_GNL_PNT_HBR_PNTX,\n TacGrpSidc.C2GM_GNL_PNT_RTE,\n TacGrpSidc.C2GM_GNL_PNT_RTE_RDV,\n TacGrpSidc.C2GM_GNL_PNT_RTE_DVSN,\n TacGrpSidc.C2GM_GNL_PNT_RTE_WAP,\n TacGrpSidc.C2GM_GNL_PNT_RTE_PIM,\n TacGrpSidc.C2GM_GNL_PNT_RTE_PNTR,\n TacGrpSidc.C2GM_GNL_PNT_ACTL,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_CAP,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ABNEW,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_TAK,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ASBWF,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ASBWR,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_SUWF,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_SUWR,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_MIWF,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_MIWR,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_SKEIP,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_TCN,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_TMC,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_RSC,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_RPH,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_UA,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_VTUA,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ORB,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ORBF8,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ORBRT,\n TacGrpSidc.C2GM_GNL_PNT_ACTL_ORBRD,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_CHKPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_CONPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_CRDPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_DCNPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_LNKUPT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_PSSPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_RAYPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_RELPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_STRPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_AMNPNT,\n TacGrpSidc.C2GM_GNL_PNT_ACTPNT_WAP,\n TacGrpSidc.C2GM_GNL_PNT_SCTL,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_USV,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_USV_RMV,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_USV_ASW,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_USV_SUW,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_USV_MIW,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_ASW,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_SUW,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_MIW,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_PKT,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_RDV,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_RSC,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_REP,\n TacGrpSidc.C2GM_GNL_PNT_SCTL_NCBTT,\n TacGrpSidc.C2GM_GNL_PNT_UCTL,\n TacGrpSidc.C2GM_GNL_PNT_UCTL_UUV,\n TacGrpSidc.C2GM_GNL_PNT_UCTL_UUV_ASW,\n TacGrpSidc.C2GM_GNL_PNT_UCTL_UUV_SUW,\n TacGrpSidc.C2GM_GNL_PNT_UCTL_UUV_MIW,\n TacGrpSidc.C2GM_GNL_PNT_UCTL_SBSTN,\n TacGrpSidc.C2GM_GNL_PNT_UCTL_SBSTN_ASW,\n TacGrpSidc.C2GM_DEF_PNT_TGTREF,\n TacGrpSidc.C2GM_DEF_PNT_OBSPST,\n TacGrpSidc.C2GM_DEF_PNT_OBSPST_CBTPST,\n TacGrpSidc.C2GM_DEF_PNT_OBSPST_RECON,\n TacGrpSidc.C2GM_DEF_PNT_OBSPST_FWDOP,\n TacGrpSidc.C2GM_DEF_PNT_OBSPST_SOP,\n TacGrpSidc.C2GM_DEF_PNT_OBSPST_CBRNOP,\n TacGrpSidc.C2GM_OFF_PNT_PNTD,\n TacGrpSidc.C2GM_AVN_PNT_DAPP,\n TacGrpSidc.MOBSU_OBST_ATO_TDTSM_FIXPFD,\n TacGrpSidc.MOBSU_OBST_ATO_TDTSM_MVB,\n TacGrpSidc.MOBSU_OBST_ATO_TDTSM_MVBPFD,\n TacGrpSidc.MOBSU_OBST_BBY,\n TacGrpSidc.MOBSU_OBST_MNE_USPMNE,\n TacGrpSidc.MOBSU_OBST_MNE_ATMNE,\n TacGrpSidc.MOBSU_OBST_MNE_ATMAHD,\n TacGrpSidc.MOBSU_OBST_MNE_ATMDIR,\n TacGrpSidc.MOBSU_OBST_MNE_APMNE,\n TacGrpSidc.MOBSU_OBST_MNE_WAMNE,\n TacGrpSidc.MOBSU_OBST_AVN_TWR_LOW,\n TacGrpSidc.MOBSU_OBST_AVN_TWR_HIGH,\n TacGrpSidc.MOBSU_OBSTBP_CSGSTE_ERP,\n TacGrpSidc.MOBSU_SU_ESTOF,\n TacGrpSidc.MOBSU_SU_FRT,\n TacGrpSidc.MOBSU_SU_SUFSHL,\n TacGrpSidc.MOBSU_SU_UGDSHL,\n TacGrpSidc.MOBSU_CBRN_NDGZ,\n TacGrpSidc.MOBSU_CBRN_FAOTP,\n TacGrpSidc.MOBSU_CBRN_REEVNT_BIO,\n TacGrpSidc.MOBSU_CBRN_REEVNT_CML,\n TacGrpSidc.MOBSU_CBRN_DECONP_USP,\n TacGrpSidc.MOBSU_CBRN_DECONP_ALTUSP,\n TacGrpSidc.MOBSU_CBRN_DECONP_TRP,\n TacGrpSidc.MOBSU_CBRN_DECONP_EQT,\n TacGrpSidc.MOBSU_CBRN_DECONP_EQTTRP,\n TacGrpSidc.MOBSU_CBRN_DECONP_OPDECN,\n TacGrpSidc.MOBSU_CBRN_DECONP_TRGH,\n TacGrpSidc.FSUPP_PNT_TGT_PTGT,\n TacGrpSidc.FSUPP_PNT_TGT_NUCTGT,\n TacGrpSidc.FSUPP_PNT_C2PNT_FSS,\n TacGrpSidc.FSUPP_PNT_C2PNT_SCP,\n TacGrpSidc.FSUPP_PNT_C2PNT_FP,\n TacGrpSidc.FSUPP_PNT_C2PNT_RP,\n TacGrpSidc.FSUPP_PNT_C2PNT_HP,\n TacGrpSidc.FSUPP_PNT_C2PNT_LP,\n TacGrpSidc.CSS_PNT_AEP,\n TacGrpSidc.CSS_PNT_CBNP,\n TacGrpSidc.CSS_PNT_CCP,\n TacGrpSidc.CSS_PNT_CVP,\n TacGrpSidc.CSS_PNT_DCP,\n TacGrpSidc.CSS_PNT_EPWCP,\n TacGrpSidc.CSS_PNT_LRP,\n TacGrpSidc.CSS_PNT_MCP,\n TacGrpSidc.CSS_PNT_RRRP,\n TacGrpSidc.CSS_PNT_ROM,\n TacGrpSidc.CSS_PNT_TCP,\n TacGrpSidc.CSS_PNT_TTP,\n TacGrpSidc.CSS_PNT_UMC,\n TacGrpSidc.CSS_PNT_SPT_GNL,\n TacGrpSidc.CSS_PNT_SPT_CLS1,\n TacGrpSidc.CSS_PNT_SPT_CLS2,\n TacGrpSidc.CSS_PNT_SPT_CLS3,\n TacGrpSidc.CSS_PNT_SPT_CLS4,\n TacGrpSidc.CSS_PNT_SPT_CLS5,\n TacGrpSidc.CSS_PNT_SPT_CLS6,\n TacGrpSidc.CSS_PNT_SPT_CLS7,\n TacGrpSidc.CSS_PNT_SPT_CLS8,\n TacGrpSidc.CSS_PNT_SPT_CLS9,\n TacGrpSidc.CSS_PNT_SPT_CLS10,\n TacGrpSidc.CSS_PNT_AP_ASP,\n TacGrpSidc.CSS_PNT_AP_ATP,\n TacGrpSidc.OTH_ER_DTHAC,\n TacGrpSidc.OTH_ER_PIW,\n TacGrpSidc.OTH_ER_DSTVES,\n TacGrpSidc.OTH_HAZ_SML,\n TacGrpSidc.OTH_HAZ_IB,\n TacGrpSidc.OTH_HAZ_OLRG,\n TacGrpSidc.OTH_SSUBSR_BTMRTN,\n TacGrpSidc.OTH_SSUBSR_BTMRTN_INS,\n TacGrpSidc.OTH_SSUBSR_BTMRTN_SBRSOO,\n TacGrpSidc.OTH_SSUBSR_BTMRTN_WRKND,\n TacGrpSidc.OTH_SSUBSR_BTMRTN_WRKD,\n TacGrpSidc.OTH_SSUBSR_MARLFE,\n TacGrpSidc.OTH_SSUBSR_SA,\n TacGrpSidc.OTH_FIX_ACU,\n TacGrpSidc.OTH_FIX_EM,\n TacGrpSidc.OTH_FIX_EOP);\n }", "String getCidr();", "public String getCommodityGs1Code() {\n return commodityGs1Code;\n }", "protected UniqueInfo cpui() { return hpcpui(columnCampCode()); }", "public static void mmcc() {\n\t}", "public void codifRLC()\n\t{\n\t\tList<Integer> result= new ArrayList<Integer>();\n\t\tint rgb=0;\n\t\tColor color;\n\t\tint r=0;\n\t\tint ant=-1;\n\t\tint acum=0;\n\t\tfor(int i=this.inicalto;i<=this.alto;i++) {\n\t\t\tfor(int j=this.inicancho;j<=this.ancho;j++)\n\t\t\t{\n\t\t\t\trgb = this.img.getRGB(j, i);\n\t\t\t\tcolor = new Color(rgb, true);\n\t\t\t\tr = color.getRed();\n\t\t\t\t\tif(ant==-1) {\n\t\t\t\t\t\tant=r;\n\t\t\t\t\t\tacum=1;\n\t\t\t\t\t}\n\t\t\t\t\t\tif(r==ant && acum<256)\n\t\t\t\t\t\t\tacum++;\n\t\t\t\t\t\t\tif(r!=ant){\n\t\t\t\t\t\t\t\tresult.add(ant);\n\t\t\t\t\t\t\t\tresult.add(acum);\n\t\t\t\t\t\t\t\tacum=1;\n\t\t\t\t\t\t\t\tant=r;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(acum==255){\n\t\t\t\t\t\t\t\t\tresult.add(ant);\n\t\t\t\t\t\t\t\t\tresult.add(acum);\n\t\t\t\t\t\t\t\t\tacum=1;\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tresult.add(ant);\n\t\tresult.add(acum);\n\t\t\n\t\tthis.CR=new CabeceraRLC(this.inicancho,this.inicalto,this.ancho,this.alto,img.TYPE_INT_RGB);\n\t\tthis.codResultRLC=result;\n\t\tthis.generarArchivoRLC(result);\n\t}", "public char getCouleur(){\t\n\t\treturn couleur;\n\t}", "public String addMembrosMesaVoto(int mesaVoto,int nCC1, int nCC2, int nCC3) throws RemoteException;", "public Group getGroup_15() { return cGroup_15; }", "public java.lang.Integer getCodMunicipioProductor() {\n\t\treturn codMunicipioProductor;\n\t}", "C15430g mo56154a();", "public void setComuneNascitaCod(int value) {\r\n this.comuneNascitaCod = value;\r\n }", "public void setCLMAILGROUP(java.lang.CharSequence value) {\n this.CL_MAIL_GROUP = value;\n }", "public char cambiarSexoAChar(@SuppressWarnings(\"rawtypes\") JComboBox campoTexto) {\n\t\tString sexo = campoTexto.getSelectedItem().toString();\n\t\tif (sexo == \"Hombre\") {\n\t\t\treturn 'V';\n\t\t} else\n\t\t\treturn 'M';\n\t}", "public String getMACCHN()\n {\n return this.MACCHN;\n }", "public int getGrado() {\n\t\treturn grado;\n\t}", "public String getMascara()\r\n/* 287: */ {\r\n/* 288:355 */ if (this.dimensionContable.getMascara() != null) {\r\n/* 289:356 */ if (this.dimensionContable.getDimensionPadre() != null) {\r\n/* 290:358 */ this.mascara = (this.dimensionContable.getDimensionPadre().getCodigo() + this.dimensionContable.getMascara().substring(this.dimensionContable.getDimensionPadre().getCodigo().length()));\r\n/* 291: */ } else {\r\n/* 292:360 */ this.mascara = this.dimensionContable.getMascara();\r\n/* 293: */ }\r\n/* 294: */ }\r\n/* 295:363 */ return this.mascara;\r\n/* 296: */ }", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "public String verMarcacion(){\n\t\t limpiar();\n\t\t\tString vista=\"pretty:misMarcacionesPretty\";\n\t //CODIGO\n\t return vista;\n\t\t}", "String getCidade();", "@Override\n\tpublic long getNumeroContrato() {\n\t\t// TODO Auto-generated method stub\n\t\treturn super.getNumeroContrato();\n\t}", "public int getCedula() {\n return cedula;\n }", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "int getRmsCyc();", "public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\n }", "public final String mo66001g() {\n String str = this.f152257b;\n return str.substring(Math.max(0, str.length() - 4));\n }", "@Override\n\tpublic String getCodigoCarteira() {\n\t\treturn \"0\";\n\t}", "public void setCodigoGrupoRiesgoBuro(java.lang.String codigoGrupoRiesgoBuro) {\r\n this.codigoGrupoRiesgoBuro = codigoGrupoRiesgoBuro;\r\n }", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public String ottieniListaCodiceBilancio(){\n\t\tInteger uid = sessionHandler.getParametro(BilSessionParameter.UID_CLASSE);\n\t\tcaricaListaCodiceBilancio(uid);\n\t\treturn SUCCESS;\n\t}", "public java.lang.CharSequence getCLMAILGROUP() {\n return CL_MAIL_GROUP;\n }", "public void validarCI(FacesContext context, UIComponent component, Object value) throws ValidatorException {\r\n //921999488001\r\n String ci=\"\";\r\n boolean t;\r\n ci = value.toString();\r\n \r\n if(ci.length() == 9){\r\n ci = \"0\"+ci;\r\n }\r\n \r\n if(ci.length() == 10){\r\n \r\n t = Validaciones.validacionCedula(ci);\r\n if (t) {\r\n //Codigo para autocompletar una empresa\r\n //emp.setNombre_empresa(\"funciono\");\r\n } else {\r\n FacesMessage msg = new FacesMessage(\"Cédula de Identidad no valida\");\r\n msg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\r\n throw new ValidatorException(msg);\r\n }\r\n }\r\n }", "public String getCGClassID() {\n return cgClassID;\n }", "public abstract String getCrcdReimbTypeCd();", "private void cargaComboBoxTipoGrano() {\n Session session = Conexion.getSessionFactory().getCurrentSession();\n Transaction tx = session.beginTransaction();\n\n Query query = session.createQuery(\"SELECT p FROM TipoGranoEntity p\");\n java.util.List<TipoGranoEntity> listaTipoGranoEntity = query.list();\n\n Vector<String> miVectorTipoLaboreo = new Vector<>();\n for (TipoGranoEntity tipoGrano : listaTipoGranoEntity) {\n miVectorTipoLaboreo.add(tipoGrano.getTgrNombre());\n cbxSemillas.addItem(tipoGrano);\n\n// cboCampania.setSelectedItem(null);\n }\n tx.rollback();\n }" ]
[ "0.6474315", "0.62262005", "0.61765933", "0.61505353", "0.6117291", "0.6117291", "0.6096046", "0.6096046", "0.6077498", "0.6063682", "0.59774977", "0.59731096", "0.59731096", "0.59684026", "0.59371674", "0.58874685", "0.58442086", "0.5765362", "0.5765035", "0.567793", "0.56574243", "0.5656257", "0.5581903", "0.55507", "0.5530132", "0.551824", "0.5504771", "0.547726", "0.54655653", "0.5458528", "0.54570764", "0.5450122", "0.5422658", "0.53992707", "0.5397587", "0.53892624", "0.53766006", "0.5374011", "0.5371917", "0.53472096", "0.53472096", "0.5318921", "0.531691", "0.53089017", "0.52962196", "0.52959746", "0.52922", "0.52881145", "0.5287931", "0.5285906", "0.52787596", "0.52500457", "0.52498347", "0.5241172", "0.5240773", "0.52396184", "0.52318656", "0.5231232", "0.52281296", "0.5225148", "0.5224728", "0.52237034", "0.52232885", "0.5213491", "0.5211151", "0.52092487", "0.5195762", "0.5195484", "0.5193714", "0.5189414", "0.5182038", "0.51789", "0.5175202", "0.51708055", "0.51705515", "0.51607573", "0.5158071", "0.51462066", "0.51428854", "0.51391", "0.51352644", "0.51350737", "0.5132886", "0.5132636", "0.51275283", "0.5121657", "0.51186556", "0.5117136", "0.5116744", "0.51155245", "0.51147175", "0.5112622", "0.51085013", "0.5104946", "0.50986505", "0.5089665", "0.5085904", "0.5084882", "0.50841945", "0.5081843" ]
0.60998434
6
Descri\u00E7\u00E3o do Grupo MCC da compra
public CompraResponse descricaoGrupoMCC(String descricaoGrupoMCC) { this.descricaoGrupoMCC = descricaoGrupoMCC; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getMcc() {\n return mcc;\n }", "public String getDescripcionGrupo() {\n\t\treturn descripcionGrupo;\n\t}", "public String getMarca()\n {\n return \"\\nDispositivo Marca \" + Marca; \n }", "public String getCVCTG_NOMBRE(){\n\t\treturn this.myCvctg_nombre;\n\t}", "public String getDescricaoCaminhao() {\n return getDescricaoVeiculo() + \"\\t\" + capacidadeCarga;\n }", "public String getCUSU_NOMBRES(){\n\t\treturn this.myCusu_nombres;\n\t}", "public String tipoConta() {\n return \"Conta Comum\";\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "public String getCROFM_CODIGO(){\n\t\treturn this.myCrofm_codigo;\n\t}", "public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}", "@Override\r\n\tpublic int getcc() {\n\t\treturn 120;\r\n\t}", "public String toString(){\n return \"+-----------------------+\\n\" +\n \"| Boleto para el metro |\\n\" +\n \"|derjere0ranfeore |\\n\" +\n \"+-----------------------+\\n\" ;\n }", "@Override\r\n\tpublic String obtenerDescripcion() {\n\t\treturn this.combo.obtenerDescripcion() + \"+ Porcion de Carne\";\r\n\t}", "public void buscarGrado() {\n \tGrado grado = new Grado();\n \tgrado.setDescripcionSeccion(\"Primaria\");\n \tgrado.setNumGrado(4);\n \tgrado.setDescripcionUltimoGrado(\"NO\");\n \tString respuesta = negocio.buscarGrado(\"\", grado);\n \tSystem.out.println(respuesta);\n }", "@Override\n protected String elaboraFooterCategorie() {\n String text = CostBio.VUOTO;\n\n text += A_CAPO;\n text += LibWiki.setRigaCat(\"Liste di persone per cognome| \");\n text += LibWiki.setRigaCat(\"Progetto Antroponimi|Cognomi\");\n\n return text;\n }", "public String getCedula() {\r\n return cedula;\r\n }", "public String getDisplacementCC() {\r\n return displacementCC;\r\n }", "public abstract java.lang.String getAcma_descripcion();", "public int getCC() {\n\t\treturn CC;\n\t}", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "private void fillcbGrupo() {\n\t\tcbGrupoContable.setNullSelectionAllowed(false);\n\t\tcbGrupoContable.setInputPrompt(\"Seleccione Grupo Contable\");\n\t\tfor (GruposContablesModel grupo : grupoimpl.getalls()) {\n\t\t\tcbGrupoContable.addItem(grupo.getGRC_Grupo_Contable());\n\t\t\tcbGrupoContable.setItemCaption(grupo.getGRC_Grupo_Contable(), grupo.getGRC_Nombre_Grupo_Contable());\n\t\t}\n\t}", "public java.lang.String getDescripcionGrupoRiesgoBuro() {\r\n return descripcionGrupoRiesgoBuro;\r\n }", "public int getMcc() {\n return mcc_;\n }", "public int getMcc() {\n return mcc_;\n }", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "public int getMcc() {\n return mcc_;\n }", "public int getMcc() {\n return mcc_;\n }", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "int getMcc();", "int getMcc();", "public String verMarcacion(){\n\t\t limpiar();\n\t\t\tString vista=\"pretty:misMarcacionesPretty\";\n\t //CODIGO\n\t return vista;\n\t\t}", "public String getCGG_CVCTG_CODIGO(){\n\t\treturn this.myCgg_cvctg_codigo;\n\t}", "public String getName() {\n\t\treturn \"CMN\";\n\t}", "public String getCedula() {\n\t\treturn cedula;\n\t}", "public Contribuinte()\n {\n this.nif = \"\";\n this.nome = \"\";\n this.morada = \"\"; \n }", "public String getCVCTG_CODIGO(){\n\t\treturn this.myCvctg_codigo;\n\t}", "public String nombreCanciones() {\r\n\t\t\r\n\t\tString titulo=\"\";\r\n\t\tfor(int i=0; i<misCanciones.size();i++) {\r\n\t\t\ttitulo=misCanciones.get(i).getTitulo();\r\n\t\t}\r\n\t\t\r\n\t\treturn titulo;\r\n\t\t\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tString description = \"Client n°\"+num+\" : [\"+super.toString()+\"]\";\n\t\tif(fournisseur) {\n\t\t\tdescription +=\"\\n\\t\\trole suplementaire : fournisseur\";\n\t\t}\n\t\treturn description;\n\t}", "@Override\n public String getAgenciaCodCedenteFormatted() {\n return boleto.getAgencia() + \"/\" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\n }", "private static String formatGroup(GroupCard gc) {\n\t\tString res = \"\";\n\n\t\tGroupHeadGuest ghg = gc.getCapoGruppo();\n\t\tres += GroupHeadGuest.CODICE;\n\t\tres += DateUtils.format(gc.getDate());\n\t\tres += String.format(\"%02d\", gc.getPermanenza());\n\t\tres += padRight(ghg.getSurname().trim().toUpperCase(),50);\n\t\tres += padRight(ghg.getName().trim().toUpperCase(),30);\n\t\tres += ghg.getSex().equals(\"M\") ? 1 : 2;\n\t\tres += DateUtils.format(ghg.getBirthDate());\n\n\t\t//Setting luogo et other balles is a bit more 'na rottura\n\t\tres += formatPlaceOfBirth(ghg.getPlaceOfBirth());\n\n\t\tPlace cita = ghg.getCittadinanza(); //banana, box\n\t\tres += cita.getId();\n\n\t\tres += ghg.getDocumento().getDocType().getCode();\n\t\tres += padRight(ghg.getDocumento().getCodice(),20);\n\t\tres += ghg.getDocumento().getLuogoRilascio().getId();\n\t\t//Assert.assertEquals(168,res.length()); //if string lenght is 168 we are ok\n\t\tres += \"\\r\\n\";\n\n\t\tfor (GroupMemberGuest gmg : gc.getAltri()){\n\t\t\tres += formatGroupMember(gmg, gc.getDate(), gc.getPermanenza());\n\t\t\t//res += \"\\r\\n\";\n\t\t}\n\t\treturn res;\n\t}", "@Override\r\n public String toString() {\r\n return \"Mesa{\" + \"ubicacionSucursal=\" + ubicacionSucursal + \", numeroMesa=\" + numeroMesa + \", numeroPiso=\" + numeroPiso + '}';\r\n }", "public CompraResponse idGrupoMCC(Long idGrupoMCC) {\n this.idGrupoMCC = idGrupoMCC;\n return this;\n }", "public String obtenirDesription() {\n String description = new String(\"\");\n switch (typePlancher) {\n case CERAMIQUE:\n description = CERAMIQUE_DESC;\n break;\n case TUILESDEVINYLE:\n description = TUILESDEVINYLE_DESC;\n break;\n case LINOLEUM:\n description = LINOLEUM_DESC;\n break;\n case BOISFRANC:\n description = BOISFRANC_DESC;\n break;\n case FLOTTANT:\n description = FLOTTANT_DESC;\n }\n return description;\n }", "public String visualizzaCampo(){\n\t\tString info= new String(\"Nome: \"+ nome +\"\\n\" +\"Descrizione: \" + descrizione+ \"\\n\"+ \"Obbligatoria: \" + obbligatorio +\"\\n\");\n\t\treturn info;\n\t}", "public String getAgenciaCodCedenteFormatted() {\r\n return boleto.getAgencia() + \" / \" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\r\n }", "public boolean isAgregaCC()\r\n/* 364: */ {\r\n/* 365:422 */ return this.agregaCC;\r\n/* 366: */ }", "public List<String> getCc() {\n return cc;\n }", "public void crearClase() {\r\n\t\tsetClase(3);\r\n\t\tsetTipoAtaque(3);\r\n\t\tsetArmadura(15);\r\n\t\tsetModopelea(0);\r\n\t}", "public String showInfoMedi(){\n\t\tString msg = \"\";\n\n\t\tmsg += \"NOMBRE DE LA MEDICINA: \"+name+\"\\n\";\n\t\tmsg += \"LA DOSIS: \"+dose+\"\\n\";\n\t\tmsg += \"COSTO POR DOSIS: \"+doseCost+\"\\n\";\n\t\tmsg += \"FRECUENCIA QUE ESTA DEBE SER APLICADA: \"+frecuency+\"\\n\";\n\n\t\treturn msg;\n\t}", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "@Override\r\n public String toString() {\n return this.descripcion;\r\n }", "@Override\n public String toString(){\n return Nombre + \", \" + Clave + \", de \" + horario + \", \" + Maestro;\n }", "@Override\n public String getInformacionInstruccion() {\n\treturn \"comando desconocido\";\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public Campo() {\r\n this.primoGrande = new BigInteger(\"20835161731609124123432674631212444\"\r\n + \"8251235562226470491514186331217050270460481\");\r\n this.limite = new BigInteger[2];\r\n System.out.println(\"Campo: \" + this.primoGrande);\r\n this.setDominio();\r\n }", "public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}", "public String MuestraAdministrativo() {\n\t\n\tString Muestra=\"\";\n\tMuestra+=MuestraDatosAdministrativos() +\"Tipo de credito especial: Computo\\n\"\n\t\t\t+ \"Monto solicitado: �\"+String.format(\"%.0f\",getMontoCredito())+\"\\n\"\n\t\t\t+ \"Equipo a Adquirir: \"+getDispositivo()+\"\\n\"\n\t\t\t\t+ \"Comercio de compra: \"+getComercio()+\"\\n\"\n\t\t\t\t\t+ \"Plazo fijo: \"+getPlazo()+\" meses.\" +\"\\n\" \n\t\t\t\t\t\t+ \"Interes fijo: \"+String.format(\"%.0f\",getInteres())+\"%\\n\"\n\t\t\t\t\t\t+ \"Cuota a pagar: �\"+String.format(\"%.0f\",getCuotaPagar())+\"\\n\\n\";\n\t\n\treturn Muestra;\n\t\n}", "@java.lang.Override\n public java.lang.String getNombreComercial() {\n java.lang.Object ref = nombreComercial_;\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 nombreComercial_ = s;\n return s;\n }\n }", "public int getCCN(){\n\t\treturn ccn;\n\t}", "public String getMotEnCours() {\n\t\treturn null;\n\t}", "public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}", "public void llenarComboGrado() {\t\n\t\tString respuesta = negocio.llenarComboGrado(\"\");\n\t\tSystem.out.println(respuesta);\t\n\t}", "public String getDescrizioneClassificatoreGSA() {\n\t\treturn getPrimaNota() != null && getPrimaNota().getClassificatoreGSA() != null\n\t\t\t\t? getPrimaNota().getClassificatoreGSA().getCodice() + \" - \" + getPrimaNota().getClassificatoreGSA().getDescrizione()\n\t\t\t\t: \"Nessun classificatore presente\"; \n\t}", "public String getDescricaoContrato() {\r\n\t\treturn descricaoContrato;\r\n\t}", "public String getRecapitoDesc() {\n\t\treturn this.recapitoDesc;\n\t}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getNombreComercialBytes() {\n java.lang.Object ref = nombreComercial_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n nombreComercial_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "public String getMarca() {\n return Marca;\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Juros=\" + juros*100 + \"% a.m.\\n \" + \r\n\t\t\t\t\"CartaoCredito=\" + cartaoCredito + \"\\n \" +\r\n\t\t\t\tsuper.toString();\r\n\t}", "public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}", "private String organizarCadena (Resultado res){\n String cadena = formatoCadenaTexto(res.getFuncion(),15) +\n formatoCadenaTexto(res.getAlgoritmo(),20) + \n res.getD() + \n \" \" + formatoDecimales(res.getPromedioIteracion(),1,6)+\n \" \" + formatoDecimales(res.getMejor_optimo(),10,10) + \n \" \" + formatoDecimales(res.getPeor_optimo(),10,10) + \n \" \" + formatoDecimales(res.getPromedioOptimos(), 10,10) + \n \" \" + formatoDecimales(res.getDesviacionOptimos(),10,15) + \n \" \" + formatoDecimales(res.getTiempoPromedio(), 3,1); \n return cadena;\n }", "public String getADD_STRING14_DESC() {\r\n return ADD_STRING14_DESC;\r\n }", "public String getADD_STRING14_DESC() {\r\n return ADD_STRING14_DESC;\r\n }", "@Override public String getMasa(){\n return \"gruesa \";\n }", "@Override\n public String getDescription() {\n return \"Mint currency\";\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" Corrente :\"+ super.getNumero();\n\t}", "@Override\n\tpublic String getCouleur() {\n\t\treturn null;\n\t}", "public com.google.protobuf.ByteString\n getNombreComercialBytes() {\n java.lang.Object ref = nombreComercial_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n nombreComercial_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getCreditsAsText()\n {\n return TextUtils.creditStyle( credits );\n }", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "@Override\n\tpublic String getDescription() {\n\t\treturn \"Transfereix vida a l'enemic\";\n\t}", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "public java.lang.String getNombreComercial() {\n java.lang.Object ref = nombreComercial_;\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 nombreComercial_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getCouleur() {\n return this.COULEUR;\n }", "public String getCouleur() {\n return this.COULEUR;\n }", "public String getGroupFormOrdem(){\r\n\t\t//return ( getMatricula() + getGroupDataHora() + getRuleFly() + getGroupFromOrgDest() + getAnac() );\r\n\t\t//return ( getMatricula() + getGroupDataHora() + getRuleFly() + getGroupFromOrgDest() );\r\n\t\treturn ( getGroupDataHora() + getMatricula() + getTipoIsencao() + getPartida() );\r\n\t}", "private static String formatFamily (FamilyCard fc) {\n\t\tString res = \"\";\n\n\t\tFamilyHeadGuest fhg = fc.getCapoFamiglia();\n\t\tres += FamilyHeadGuest.CODICE;\n\t\tres += DateUtils.format(fc.getDate());\n\t\tres += String.format(\"%02d\", fc.getPermanenza());\n\t\tres += padRight(fhg.getSurname().trim().toUpperCase(),50);\n\t\tres += padRight(fhg.getName().trim().toUpperCase(),30);\n\t\tres += fhg.getSex().equals(\"M\") ? 1 : 2;\n\t\tres += DateUtils.format(fhg.getBirthDate());\n\n\t\t//Setting luogo et other balles is a bit more 'na rottura\n\t\tres += formatPlaceOfBirth(fhg.getPlaceOfBirth());\n\n\t\tPlace cita = fhg.getCittadinanza(); //banana, box\n\t\tres += cita.getId();\n\n\t\tres += fhg.getDocumento().getDocType().getCode();\n\t\tres += padRight(fhg.getDocumento().getCodice(),20);\n\t\tres += fhg.getDocumento().getLuogoRilascio().getId();\n\t\t//Assert.assertEquals(168,res.length()); //if string lenght is 168 we are ok\n\t\tres += \"\\r\\n\";\n\n\t\tfor (FamilyMemberGuest fmg : fc.getFamiliari()){\n\t\t\tres += formatFamilyMember(fmg, fc.getDate(), fc.getPermanenza());\n\t\t\t//res += \"\\r\\n\";\n\t\t}\n\n\t\treturn res;\n\t}", "public String getTxt_marca() {\r\n\t\treturn txt_marca.getText();\r\n\t}", "public String toString2 () {\n\t\tString a = \"ChampionnatComplexe : [\";\n\t\ta = a + \" { ( \" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpA1 [i] +\" \" ;\n\t\t}\n\t\ta = a + \") ( \" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpA2 [i] +\" \" ;\n\t\t}\n\t\ta = a + \") } { ( \" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpB1 [i] +\" \" ;\n\t\t}\n\t\ta = a + \") ( \" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpB2 [i] +\" \" ;\n\t\t}\n\t\ta = a + \") } ] \\n\" ;\n\t\ta = a + \"\\tNote Equilibre:\\t\"+this.getNoteEquilibre()+\"\\n\" ;\n\t\ta = a + \"\\tNote Distance:\\t\"+this.getNoteDistance()+\"\\n\" ;\n\t\ta = a + \"\\tMoyenne pondérée:\\t\" +getNoteMoyennePondereeEqDist()+\" (coefDist=\"+opt.getPourcentageDistance()+\", coefEq=\"+(100-opt.getPourcentageDistance())+\")\\n\" ;\n\t\treturn a;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Chiclete Vendido: \" + maquinaDeChiclete.quantidadeDeChicletes + \" chicletes\"; \n\t}", "public char cambiarSexoAChar(@SuppressWarnings(\"rawtypes\") JComboBox campoTexto) {\n\t\tString sexo = campoTexto.getSelectedItem().toString();\n\t\tif (sexo == \"Hombre\") {\n\t\t\treturn 'V';\n\t\t} else\n\t\t\treturn 'M';\n\t}", "public String getlbr_CNPJ();", "public String getlbr_CNPJ();", "public void obtener_proximo_cpte(){\n\t\t_Data data=(_Data) _data;\n\t\tString cb=data.getProximoPGCorrecto();\n\t\t//Pago_frame _frame=(Pago_frame) this._frame;\n\t\tframe.get_txt_idPago().setText(cb);\n\t}", "String getCmt();", "public String getLBR_DocLine_ICMS_UU();", "com.microsoft.schemas.xrm._2011.contracts.Label getDescription();" ]
[ "0.63027173", "0.61097866", "0.6101632", "0.5943283", "0.5898993", "0.5865348", "0.58606124", "0.58261234", "0.5797838", "0.5796104", "0.57775474", "0.57532", "0.57203317", "0.57190776", "0.5701885", "0.56937456", "0.5673099", "0.5670472", "0.5660613", "0.5659542", "0.56273276", "0.5625368", "0.56111985", "0.5607866", "0.55939287", "0.55939287", "0.55841434", "0.556736", "0.556736", "0.5541893", "0.55399513", "0.55399513", "0.55263984", "0.55242246", "0.55151665", "0.5509475", "0.5507945", "0.5506065", "0.5504735", "0.54992926", "0.54940593", "0.5493773", "0.5489156", "0.54825675", "0.54748076", "0.54430294", "0.54427946", "0.5440493", "0.54279", "0.5419729", "0.54035884", "0.5394261", "0.5383036", "0.5365158", "0.5365008", "0.53642035", "0.53622997", "0.53436863", "0.5341111", "0.5339582", "0.5338725", "0.53323555", "0.53167033", "0.53154784", "0.5305982", "0.5305527", "0.52928823", "0.5286351", "0.52829325", "0.5282033", "0.52720094", "0.5271834", "0.52708995", "0.526773", "0.526773", "0.52652836", "0.52596915", "0.52514505", "0.5250784", "0.52475023", "0.5244928", "0.5243734", "0.5237764", "0.52302307", "0.5228105", "0.5226914", "0.5224912", "0.5224912", "0.5223716", "0.52168256", "0.5210482", "0.5204456", "0.5192043", "0.51816446", "0.5181296", "0.5181296", "0.5178364", "0.5175251", "0.51739323", "0.51738054" ]
0.70368433
0
C\u00F3digo de Identifica\u00E7\u00E3o da conta da compra
public CompraResponse idConta(Long idConta) { this.idConta = idConta; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract java.lang.String getCod_tecnico();", "public char getCouleur(){\t\n\t\treturn couleur;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}", "public String getAgenciaCodCedenteFormatted() {\r\n return boleto.getAgencia() + \" / \" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\r\n }", "@Override\n public String getAgenciaCodCedenteFormatted() {\n return boleto.getAgencia() + \"/\" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public String tipoConta() {\n return \"Conta Comum\";\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public java.lang.String getCodigo_pcom();", "String getCognome();", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "@Override\n\t@Field(offset=37, length=1, paddingChar=' ', align=Align.LEFT)\n\tpublic String getDvContaCedente() {\n\t\treturn super.getDvContaCedente();\n\t}", "String getCodiceFiscale();", "@Override\r\n public String getUniCode()\r\n {\r\n if (getColor() == 'N')\r\n {\r\n setCode(\"\\u265B\");\r\n }\r\n else\r\n {\r\n setCode(\"\\u2655\");\r\n }\r\n return getCode();\r\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "public int getComuneNascitaCod() {\r\n return comuneNascitaCod;\r\n }", "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "public Integer getCedula() {return cedula;}", "@AutoEscape\n\tpublic String getCodDistrito();", "String getCidade();", "public String getCodice() {\n\t\treturn codice;\n\t}", "public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}", "public int getCxlangue() {\r\r\r\r\r\r\r\n return cxlangue;\r\r\r\r\r\r\r\n }", "public String ocurrencia() {\n String palabra = \"\";\n int retorno = 0;\n for (int i = 0; i < getCadena().length(); i++) {\n\n if ((getCadena().charAt(i) == ' ') || (i > getCadena().length() - 2)) {\n if (palabra.equals(getBuscar())) {\n retorno++;\n palabra = \"\";\n } else {\n palabra = \"\";\n }\n\n } else {\n palabra += getCadena().charAt(i);\n\n }\n }\n return (\"La cantida de ocurrencias son de:\" + '\\n' + retorno);\n }", "public java.lang.String getC8()\n {\n return this.c8;\n }", "public String getCROFM_CODIGO(){\n\t\treturn this.myCrofm_codigo;\n\t}", "public String getCpe() {\n return cpe;\n }", "public String getCVCTG_CODIGO(){\n\t\treturn this.myCvctg_codigo;\n\t}", "public int getCedula() {\n return cedula;\n }", "public String getCodaComponent() {\n return codaComponent;\n }", "public java.lang.String getC660000021()\n {\n return this.c660000021;\n }", "@java.lang.Override\n public com.google.protobuf.StringValue getChulaId() {\n return chulaId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : chulaId_;\n }", "public abstract java.lang.String getAcma_cierre();", "@Override public String getCarne(){\n return \"salchicha y jamón \";\n }", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}", "public java.lang.String getCxcode() {\r\r\r\r\r\r\r\n return cxcode;\r\r\r\r\r\r\r\n }", "public String getCompoId() {\n\t return compoId;\r\n\t }", "public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }", "public String getCedula() {\r\n return cedula;\r\n }", "@Override\n\tpublic String getCtarCode() {\n\t\treturn null;\n\t}", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "String getCE();", "String getCE();", "String getCE();", "String getCE();", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "protected String usaVociCorrelate() {\n StringBuilder testo = new StringBuilder(VUOTA);\n String titolo = \"Voci correlate\";\n List<String> lista = listaCorrelate == null ? listaVociCorrelate() : listaCorrelate;\n String tag = \"*\";\n\n if (array.isValid(lista)) {\n testo.append(LibWiki.setParagrafo(titolo));\n testo.append(A_CAPO);\n for (String riga : lista) {\n testo.append(tag);\n testo.append(LibWiki.setQuadre(riga));\n testo.append(A_CAPO);\n }// end of for cycle\n testo.append(A_CAPO);\n }// end of if cycle\n\n return testo.toString();\n }", "@java.lang.Override\n public com.google.protobuf.StringValueOrBuilder getChulaIdOrBuilder() {\n return getChulaId();\n }", "@Override\n\tpublic String getCodigoCarteira() {\n\t\treturn \"0\";\n\t}", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "public boolean isAgregaCC()\r\n/* 364: */ {\r\n/* 365:422 */ return this.agregaCC;\r\n/* 366: */ }", "public String getCognome() {\r\n return cognome;\r\n }", "java.lang.String getC3();", "protected String getTableCompCode()\n\t\t{\n\t\t\treturn CompCode ;\n\t\t}", "@AutoEscape\n\tpublic String getNguoiChuTri();", "public java.lang.String getC660000022()\n {\n return this.c660000022;\n }", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "public String getvCodtmon() {\n return vCodtmon;\n }", "public String getDescricaoCaminhao() {\n return getDescricaoVeiculo() + \"\\t\" + capacidadeCarga;\n }", "public java.lang.String getC660000025()\n {\n return this.c660000025;\n }", "public String exibirContato(int posicao) {\n\t\treturn contatos[posicao].toString();\n\t}", "public abstract java.lang.String getCod_dpto();", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" Corrente :\"+ super.getNumero();\n\t}", "protected UniqueInfo cpui() { return hpcpui(columnStShhnKnyMsId()); }", "@AutoEscape\n\tpublic String getCodProvincia();", "int getCedula();", "java.lang.String getCit();", "public String getC() {\n return c;\n }", "public String getvCodtupa() {\n return vCodtupa;\n }", "public int getCodPessoa() {\r\n\t\treturn this.codPessoa;\r\n\t}", "public List<String> verCarrito(){\n\t\treturn this.compras;\n\t}", "Integer getChnlCde();", "public String getCodiceFiscale() {\n return codiceFiscale;\n }", "public String getCompCode() {\n return compCode;\n }", "private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void obtener_proximo_cpte(){\n\t\t_Data data=(_Data) _data;\n\t\tString cb=data.getProximoPGCorrecto();\n\t\t//Pago_frame _frame=(Pago_frame) this._frame;\n\t\tframe.get_txt_idPago().setText(cb);\n\t}", "@Override\n\tpublic String getCouleur() {\n\t\treturn null;\n\t}", "private static void ecrire (char car)\r\n\t{\n\t\tif (car >= ' ')\r\n\t\t{\r\n\t\t\tSystem.out.println (\"Caractere : \" + car );\r\n\t\t}\r\n\t\t// Sinon si c'est un caractere de controle, on affiche son code ascci\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println (\"Controle : code \" + (int) car);\r\n\t\t}\r\n\t}", "public String getLBR_BankAccount_Carteira_UU () \n\t{\n\t\treturn (String)get_Value(COLUMNNAME_LBR_BankAccount_Carteira_UU);\n\t}", "protected UniqueInfo cpui() { return hpcpui(columnCampCode()); }", "public int getCharno() {\n return charno;\n }", "private String cadenaABinario(String cadena){\n String cb = \"\";\n int longitud;\n for(int i = 0; i < cadena.length(); i++){\n cb += String.format(\"%8s\",Integer.toBinaryString(cadena.charAt(i)));\n }\n cb = formato(cb);\n return cb;\n }", "public String getCGG_CVCTG_CODIGO(){\n\t\treturn this.myCgg_cvctg_codigo;\n\t}", "@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}", "public java.lang.String getCodigo() {\n return codigo;\n }", "public SpecialChar insertSpecialChar() {\n SpecialChar specialChar = new SpecialChar();\n specialChar.setId(4491);\n specialChar.setSpecialCharA(\"! ' , . / : ; ? ^ _ ` | \"\n + \" ̄ 、 。 · ‥ … ¨ 〃 ­ ― ∥ \ ∼ ´ ~ ˇ \" + \"˘ ˝ ˚ ˙ ¸ ˛ ¡ ¿ ː\");\n specialChar.setSpecialCharB(\"" ( ) [ ] { } ‘ ’ “ ” \"\n + \" 〔 〕 〈 〉 《 》 「 」 『 』\" + \" 【 】\");\n specialChar.setSpecialCharC(\"+ - < = > ± × ÷ ≠ ≤ ≥ ∞ ∴\"\n + \" ♂ ♀ ∠ ⊥ ⌒ ∂ ∇ ≡ ≒ ≪ ≫ √ ∽ ∝ \"\n + \"∵ ∫ ∬ ∈ ∋ ⊆ ⊇ ⊂ ⊃ ∪ ∩ ∧ ∨ ¬ ⇒ \" + \"⇔ ∀ ∃ ∮ ∑ ∏\");\n specialChar\n .setSpecialCharD(\"$ % ₩ F ′ ″ ℃ Å ¢ £ ¥ ¤ ℉ ‰ \"\n + \"€ ㎕ ㎖ ㎗ ℓ ㎘ ㏄ ㎣ ㎤ ㎥ ㎦ ㎙ ㎚ ㎛ \"\n + \"㎜ ㎝ ㎞ ㎟ ㎠ ㎡ ㎢ ㏊ ㎍ ㎎ ㎏ ㏏ ㎈ ㎉ \"\n + \"㏈ ㎧ ㎨ ㎰ ㎱ ㎲ ㎳ ㎴ ㎵ ㎶ ㎷ ㎸ ㎹ ㎀ ㎁ ㎂ ㎃ ㎄ ㎺ ㎻ ㎼ ㎽ ㎾ ㎿ ㎐ ㎑ ㎒ ㎓ ㎔ Ω ㏀ ㏁ ㎊ ㎋ ㎌ ㏖ ㏅ ㎭ ㎮ ㎯ ㏛ ㎩ ㎪ ㎫ ㎬ ㏝ ㏐ ㏓ ㏃ ㏉ ㏜ ㏆\");\n specialChar.setSpecialCharE(\"# & * @ § ※ ☆ ★ ○ ● ◎ ◇ ◆ □ ■ △ ▲\"\n + \" ▽ ▼ → ← ↑ ↓ ↔ 〓 ◁ ◀ ▷ ▶ ♤ ♠ ♡ ♥ ♧ ♣ ⊙ ◈ ▣ ◐\"\n + \" ◑ ▒ ▤ ▥ ▨ ▧ ▦ ▩ ♨ ☏ ☎ ☜ ☞ ¶ † \"\n + \"‡ ↕ ↗ ↙ ↖ ↘♭ ♩ ♪ ♬ ㉿ ㈜ № ㏇ ™ ㏂ ㏘ ℡ ® ª º\");\n\n session.save(specialChar);\n\n return specialChar;\n }", "public java.lang.String getCodiceUfficio() {\r\n return codiceUfficio;\r\n }", "public String darPlaca() {\n\t\treturn placa;\n\t}", "public int getValeurCourante() {\n\t\treturn this.valC;\n\t}", "public String ottieniListaCodiceBilancio(){\n\t\tInteger uid = sessionHandler.getParametro(BilSessionParameter.UID_CLASSE);\n\t\tcaricaListaCodiceBilancio(uid);\n\t\treturn SUCCESS;\n\t}", "public String mo23261C() {\n return (String) this.f13965a.mo23249a(C7196pb.f13683Dd);\n }", "public int getComienza() {\n\t\treturn comienza;\n\t}", "@Override\n protected String elaboraFooterCorrelate() {\n String text = CostBio.VUOTO;\n\n if (usaFooterCorrelate) {\n text += \"==Voci correlate==\";\n text += A_CAPO;\n text += LibWiki.setRigaQuadre(LibText.levaCoda(PATH_ANTRO, \"/\"));\n text += LibWiki.setRigaQuadre(PATH_ANTRO + \"Cognomi\");\n text += LibWiki.setRigaQuadre(PATH_ANTRO + \"Didascalie\");\n }// end of if cycle\n\n return text;\n }", "public java.lang.String getCuentaCLABE() {\n return cuentaCLABE;\n }", "public String getContCD() {\n return contCD;\n }", "public String getCodigoLivro() throws IOException {\r\n ArrayList<String> listLivros = livro.getListLivros();\r\n String codigo = null;\r\n for (int i = 0; i < listLivros.size(); i++) {\r\n if (listLivros.get(i).contains(jComboBoxLivros.getSelectedItem().toString())) {\r\n String[] temp = listLivros.get(i).split(\";\");\r\n codigo = temp[0];\r\n }\r\n }\r\n return codigo;\r\n }", "public String getCif() {\n return cif;\n }", "public com.google.protobuf.StringValue getChulaId() {\n if (chulaIdBuilder_ == null) {\n return chulaId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : chulaId_;\n } else {\n return chulaIdBuilder_.getMessage();\n }\n }" ]
[ "0.63969725", "0.6376307", "0.63571244", "0.63548833", "0.6347409", "0.6330674", "0.6325336", "0.62742585", "0.62565786", "0.62332475", "0.6232758", "0.619583", "0.6181077", "0.6178182", "0.6157555", "0.6146203", "0.6116595", "0.6054182", "0.6047764", "0.60122323", "0.60040635", "0.59936047", "0.5985458", "0.59539413", "0.59445775", "0.5936718", "0.5933469", "0.5907022", "0.5896089", "0.5894883", "0.5891723", "0.5873988", "0.58731997", "0.5847784", "0.58417743", "0.5836844", "0.58314925", "0.58215237", "0.58197236", "0.5806847", "0.5805458", "0.58013165", "0.57968867", "0.57947785", "0.57947785", "0.57947785", "0.57947785", "0.57810384", "0.5774731", "0.5762622", "0.5753937", "0.57502437", "0.5743858", "0.5735675", "0.5734585", "0.5730599", "0.57300186", "0.57264364", "0.5724749", "0.57232356", "0.57210433", "0.5718223", "0.5705664", "0.57039815", "0.56930494", "0.5692662", "0.56914806", "0.5683618", "0.56806046", "0.5678532", "0.56768537", "0.5674712", "0.5669097", "0.56629246", "0.5657079", "0.5654688", "0.56478715", "0.56472087", "0.56407505", "0.5639253", "0.563839", "0.56350774", "0.5623164", "0.562184", "0.561937", "0.56118906", "0.56112975", "0.5599615", "0.5594354", "0.5583403", "0.5582426", "0.55811197", "0.55806863", "0.5579746", "0.55794394", "0.5579194", "0.5573944", "0.5569849", "0.55665696", "0.5558303", "0.5555284" ]
0.0
-1
C\u00F3digo de Identifica\u00E7\u00E3o do produto da compra
public CompraResponse idProduto(Long idProduto) { this.idProduto = idProduto; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getCodigo_pcom();", "public String getCodProd() {\n return this.codProd;\n }", "java.lang.String getProductCode();", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "@AutoEscape\n\tpublic String getCodDistrito();", "public String getCodigoDeBarras() {\n\t\treturn producto.getCodigoDeBarras();\n\t}", "public String tipoConta() {\n return \"Conta Comum\";\n }", "public abstract java.lang.String getCod_tecnico();", "public String getCompoId() {\n\t return compoId;\r\n\t }", "public String getIdProduto() {\r\n\t\treturn idProduto;\r\n\t}", "public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}", "java.lang.String getProductNumberCode();", "String getCognome();", "public String getPrecoProduto() {\r\n\t\treturn precoProduto;\r\n\t}", "public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}", "String getCidade();", "@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}", "public int getComuneNascitaCod() {\r\n return comuneNascitaCod;\r\n }", "public Integer getCedula() {return cedula;}", "public String toString(){\n return \"Codigo Produto: \"+this.idProduto+\n \"\\nNome do Produto \"+this.nomePro+\n \"\\nDescrição \"+this.descricao+\n \"\\nPreço: \"+this.preco;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "public String getProductCode() {\r\n/* 211 */ return this._productCode;\r\n/* */ }", "public String getCodaComponent() {\n return codaComponent;\n }", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "public void setCodigo_produto(int pCodigoProduto){\n this.codigoProduto = pCodigoProduto;\n }", "String getCodiceFiscale();", "public int getCodigo_producto() {\n return codigo_producto;\n }", "@AutoEscape\n\tpublic String getCodProvincia();", "public String getCurp(){\r\n return beneficiario[0].toString();\r\n }", "protected UniqueInfo cpui() { return hpcpui(columnStShhnKnyMsId()); }", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "public String getIdProcuratore() {\n return idProcuratore;\n }", "protected String getTableCompCode()\n\t\t{\n\t\t\treturn CompCode ;\n\t\t}", "@Override\n\tpublic String getCtarCode() {\n\t\treturn null;\n\t}", "public int getCedula() {\n return cedula;\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public String getQuantProduto() {\r\n\t\treturn quantProduto;\r\n\t}", "public int getComuneResidenzaCod() {\r\n return comuneResidenzaCod;\r\n }", "private String insertarCartaNaturalResources() {\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 5,\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 }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public String getCodice() {\n\t\treturn codice;\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 String menuProducto() {\n\n\t\tIcon icono = new ImageIcon(getClass().getResource(\"../img/producto.png\"));\n\n\t\tString[] opciones = { \"Mostrar todos los valores\", \"Borrar Producto\", \"Crear Producto\", \"Modificar Producto\",\n\t\t\t\t\"Buscar por nombre\", \"Buscar por clave\", \"Salir\" };\n\n\t\tString opcionElegida = (String) JOptionPane.showInputDialog(null, \"¿Que deseas realizar?\", \"Tabla Producto\",\n\t\t\t\tJOptionPane.QUESTION_MESSAGE, icono, opciones, opciones[0]);\n\n\t\treturn opcionElegida;\n\n\t}", "@Override\n\tpublic String toString(){\n\t\treturn \"Inf carta:\\n\"+numero+\"de \"+palo+\"\\nValor: \"+valor;\n\t}", "public String getCedula() {\r\n return cedula;\r\n }", "public String getIdProducto() {\n\t\treturn idProducto;\n\t}", "public static String retirarFormatacaoCEP(String codigo) {\r\n\r\n\t\tString retornoCEP = null;\r\n\r\n\t\tString parte1 = codigo.substring(0, 2);\r\n\t\tString parte2 = codigo.substring(3, 6);\r\n\t\tString parte3 = codigo.substring(7, 10);\r\n\r\n\t\tretornoCEP = parte1 + parte2 + parte3;\r\n\r\n\t\treturn retornoCEP;\r\n\t}", "public ST getProductServiceClarificationCodeValue() { \r\n\t\tST retVal = this.getTypedField(18, 0);\r\n\t\treturn retVal;\r\n }", "public IProduto getCodProd();", "public abstract java.lang.String getCod_dpto();", "private String insertarCartaNaturalHelp() {\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 2,\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 }", "protected String elaboraIncipitSpecifico() {\n return VUOTA;\n }", "public ST getProductServiceCodeDescription() { \r\n\t\tST retVal = this.getTypedField(9, 0);\r\n\t\treturn retVal;\r\n }", "public String getCpe() {\n return cpe;\n }", "public String getAgenciaCodCedenteFormatted() {\r\n return boleto.getAgencia() + \" / \" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\r\n }", "public String getCordno() {\n return cordno;\n }", "public String getCROFM_CODIGO(){\n\t\treturn this.myCrofm_codigo;\n\t}", "public String getCognome() {\r\n return cognome;\r\n }", "@Override\n public String generaCodigo() {\n return \"\";\n }", "public int getComienza() {\n\t\treturn comienza;\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "public String toString() {\n return \"\" + this.prodCode;\n }", "public final String deu() {\n String str;\n AppMethodBeat.i(26738);\n String str2 = \"\";\n synchronized (this) {\n try {\n if (this.iPr == null || this.iPr.size() <= 0) {\n str = \"\";\n } else {\n int i = 0;\n while (i < this.iPr.size()) {\n com.tencent.mm.plugin.wenote.model.a.c cVar = (com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i);\n switch (cVar.getType()) {\n case -1:\n str = str2 + \"<hr/>\";\n break;\n case 1:\n i iVar = (i) cVar;\n if (!bo.isNullOrNil(iVar.content)) {\n str2 = str2 + iVar.content;\n if (i + 1 < this.iPr.size() && ((com.tencent.mm.plugin.wenote.model.a.c) this.iPr.get(i + 1)).getType() == 1 && !bo.isNullOrNil(((i) this.iPr.get(i + 1)).content)) {\n str = str2 + \"<br/>\";\n break;\n }\n }\n str = str2 + \"<br/>\";\n break;\n case 2:\n str = str2 + dO(((f) cVar).uOo, 2);\n break;\n case 3:\n str = str2 + dO(((g) cVar).uOo, 3);\n break;\n case 4:\n l lVar = (l) cVar;\n str = str2 + dO(lVar.uOo, lVar.getType());\n break;\n case 5:\n str = str2 + dO(((d) cVar).uOo, 5);\n break;\n case 6:\n str = str2 + dO(((k) cVar).uOo, 6);\n break;\n case 20:\n str = str2 + dO(((com.tencent.mm.plugin.wenote.model.a.b) cVar).uOo, 20);\n break;\n default:\n str = str2;\n break;\n }\n i++;\n str2 = str;\n }\n str = str2.replaceAll(IOUtils.LINE_SEPARATOR_UNIX, \"<br/>\");\n AppMethodBeat.o(26738);\n }\n } finally {\n while (true) {\n AppMethodBeat.o(26738);\n }\n }\n }\n return str;\n }", "public String ocurrencia() {\n String palabra = \"\";\n int retorno = 0;\n for (int i = 0; i < getCadena().length(); i++) {\n\n if ((getCadena().charAt(i) == ' ') || (i > getCadena().length() - 2)) {\n if (palabra.equals(getBuscar())) {\n retorno++;\n palabra = \"\";\n } else {\n palabra = \"\";\n }\n\n } else {\n palabra += getCadena().charAt(i);\n\n }\n }\n return (\"La cantida de ocurrencias son de:\" + '\\n' + retorno);\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "private 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 java.lang.String getCodigo_agencia();", "@Override\n public String getAgenciaCodCedenteFormatted() {\n return boleto.getAgencia() + \"/\" + boleto.getContaCorrente() + \" \" + boleto.getDvContaCorrente();\n }", "public ComponenteCosto getComponenteCosto()\r\n/* 68: */ {\r\n/* 69: 91 */ return this.componenteCosto;\r\n/* 70: */ }", "public int getIdDetalleComponenteCosto()\r\n/* 58: */ {\r\n/* 59: 83 */ return this.idDetalleComponenteCosto;\r\n/* 60: */ }", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "public String getInventoryCod() {\n return (String)getAttributeInternal(INVENTORYCOD);\n }", "public String getAcsProduct() {\n return acsProduct;\n }", "public String darPlaca() {\n\t\treturn placa;\n\t}", "public void obtener_proximo_cpte(){\n\t\t_Data data=(_Data) _data;\n\t\tString cb=data.getProximoPGCorrecto();\n\t\t//Pago_frame _frame=(Pago_frame) this._frame;\n\t\tframe.get_txt_idPago().setText(cb);\n\t}", "public void generarCodigo(){\r\n this.setCodigo(\"c\"+this.getNombre().substring(0,3));\r\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}", "public String getProductID() {\n final byte[] data = new byte[12];\n mem.getBytes(16, data, 0, data.length);\n return new String(data).trim();\n }", "public java.lang.String getProformaNo () {\n\t\treturn proformaNo;\n\t}", "public String toString() {\n\t\treturn \"CURSO=\" + idC + \" ASISTEN un TOTAL de: \" +dniE+\" estudiantes\\n\";\n\t}", "public String prenda() {\r\n\t\tif(this.getColorSecundario()==null)\r\n\t\t\treturn this.getTipo().tipo+\" de \"+this.getTela().toString() +\" de color \"+this.getColorPrimario().toString();\r\n\t\telse\r\n\t\t\treturn this.getTipo().tipo+\" de \"+this.getTela().toString() +\" de color \"+this.getColorPrimario()+\" y \"+this.getColorSecundario().toString();\r\n\r\n\t}", "public String getvCodtupa() {\n return vCodtupa;\n }", "public String getComentario( )\n\t{\n\t\treturn comentario;\n\t}", "public String primerTicketDisponible() {\n\t\tString ticketLibre = \"|L|\";\n\t\tString ticketLibrePosicion;\n\t\tfor (int i = 0; i < getNumeroAsientosFila(); i++) {\n\t\t\tfor (int j = 0; j < getNumeroAsientosColumna(); j++) {\n\t\t\t\tif (vagonVacio[i][j].equals(ticketLibre)) {\n\t\t\t\t\tticketLibrePosicion = Integer.toString(i) +\" \"+ Integer.toString(j);\n\t\t\t\t\treturn ticketLibrePosicion;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getCedula() {\n\t\treturn cedula;\n\t}", "public String getCom() {\n\t\treturn null;\n\t}", "private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "x0401.oecdStandardAuditFileTaxPT1.SAFPTtextTypeMandatoryMax60Car xgetProductCode();", "public String getLBR_ProtestCode();", "public String getAgcProCertiNum() {\n\t\treturn agcProCertiNum;\n\t}", "@Override\n public String getInformacionInstruccion() {\n\treturn \"comando desconocido\";\n }", "public String getProductCode() {\n return this.productCode;\n }", "public int getId_cabecera_pedido() {\n return id_cabecera_pedido;\n }", "@Override\n\tpublic String getCodigoCarteira() {\n\t\treturn \"0\";\n\t}", "public java.lang.Integer getCodMunicipioProductor() {\n\t\treturn codMunicipioProductor;\n\t}", "public String getDescrizioneClassificatoreGSA() {\n\t\treturn getPrimaNota() != null && getPrimaNota().getClassificatoreGSA() != null\n\t\t\t\t? getPrimaNota().getClassificatoreGSA().getCodice() + \" - \" + getPrimaNota().getClassificatoreGSA().getDescrizione()\n\t\t\t\t: \"Nessun classificatore presente\"; \n\t}", "@Override\n\tpublic String gettenMonHoc() {\n\t\treturn \"Lâp trình front-end\";\n\t}", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "public String getNomeProduto() {\r\n\t\treturn nomeProduto;\r\n\t}", "public int getCodPessoa() {\r\n\t\treturn this.codPessoa;\r\n\t}" ]
[ "0.67192024", "0.65740925", "0.634121", "0.62895256", "0.6237657", "0.62179327", "0.61962", "0.6165165", "0.6151517", "0.6143727", "0.613203", "0.605992", "0.6056622", "0.6053899", "0.60493714", "0.6026498", "0.5978234", "0.59773594", "0.5963017", "0.5943082", "0.592975", "0.5921136", "0.589028", "0.58871114", "0.5881328", "0.58747154", "0.58518666", "0.5851667", "0.5846151", "0.5844259", "0.5837967", "0.5833449", "0.5832777", "0.5821734", "0.5819862", "0.5813676", "0.58112454", "0.5810106", "0.5793472", "0.5791602", "0.5786598", "0.57729584", "0.57718694", "0.5770528", "0.576237", "0.5756949", "0.57512695", "0.57408094", "0.57405347", "0.5737723", "0.5732342", "0.57315445", "0.5730822", "0.57293785", "0.57270664", "0.5715677", "0.5712448", "0.571126", "0.5710333", "0.57093686", "0.5700405", "0.56980765", "0.5693065", "0.56922734", "0.5690364", "0.5686486", "0.5677508", "0.567419", "0.56709784", "0.5659778", "0.56586975", "0.56545985", "0.56437993", "0.5643172", "0.56399953", "0.56395406", "0.56377095", "0.5633155", "0.56318927", "0.5629706", "0.5628254", "0.5622578", "0.56195205", "0.5618395", "0.5612365", "0.56118745", "0.56100565", "0.56072515", "0.5606457", "0.5602477", "0.56022114", "0.5600968", "0.55983907", "0.55940014", "0.5593605", "0.5588656", "0.55883616", "0.558647", "0.5578376", "0.55746484", "0.5571389" ]
0.0
-1
Descri\u00E7\u00E3o do produto da compra
public CompraResponse descricaoProduto(String descricaoProduto) { this.descricaoProduto = descricaoProduto; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String description () {\n\t\t\tSystem.out.println(treinador.getTreinador() + \" fugiu da batalha!!\");\r\n\t\t\tSystem.exit(0);\r\n\t\t\treturn treinador.getTreinador() + \" fugiu da batalha!!\";\r\n\t\t}", "public String dameDescripcion(){\n return \"Este empleado tiene un id = \"+getId()+\" con un sueldo de \"+getSueldo();\n }", "public String descriere(){\r\n\t\treturn \"Flori\";\r\n\t}", "public String getDescricaoCaminhao() {\n return getDescricaoVeiculo() + \"\\t\" + capacidadeCarga;\n }", "@Override\n\tpublic String getDescription() {\n\t\treturn \"Transfereix vida a l'enemic\";\n\t}", "public String obtenirDesription() {\n String description = new String(\"\");\n switch (typePlancher) {\n case CERAMIQUE:\n description = CERAMIQUE_DESC;\n break;\n case TUILESDEVINYLE:\n description = TUILESDEVINYLE_DESC;\n break;\n case LINOLEUM:\n description = LINOLEUM_DESC;\n break;\n case BOISFRANC:\n description = BOISFRANC_DESC;\n break;\n case FLOTTANT:\n description = FLOTTANT_DESC;\n }\n return description;\n }", "java.lang.String getProductDescription();", "@Override\n public String descripcion() {\n return \"Viaje incentivo que te envia la empresa \" + empresa;\n }", "@Override\r\n\tpublic String obtenerDescripcion() {\n\t\treturn this.combo.obtenerDescripcion() + \"+ Porcion de Carne\";\r\n\t}", "public String getDescricao() {\n\t\treturn null;\n\t}", "public String toString(){\n return \"Codigo Produto: \"+this.idProduto+\n \"\\nNome do Produto \"+this.nomePro+\n \"\\nDescrição \"+this.descricao+\n \"\\nPreço: \"+this.preco;\n }", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "public String getDescricao();", "@Override\r\n\tpublic String getDesc() {\n\t\treturn pizza.getDesc()+\" , RomaTomatoes(12.88)\";\r\n\t}", "public String getDescricao() {\n\t\treturn this.descricao;\n\t}", "public abstract java.lang.String getAcma_descripcion();", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public String visualizzaCampo(){\n\t\tString info= new String(\"Nome: \"+ nome +\"\\n\" +\"Descrizione: \" + descrizione+ \"\\n\"+ \"Obbligatoria: \" + obbligatorio +\"\\n\");\n\t\treturn info;\n\t}", "public String getDescricao() {\n\t\treturn descricao;\n\t}", "public String getDescricao() {\n\t\treturn descricao;\n\t}", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "java.lang.String getDescription();", "@Override\r\n public String toString() {\n return this.descripcion;\r\n }", "@Override\n public String descripcionProducto(String producto) {\n return null;\n }", "public String getDescrizione() {\r\n\t\treturn descrizione;\r\n\t}", "public String getRecapitoDesc() {\n\t\treturn this.recapitoDesc;\n\t}", "@Override\n\tpublic String getDescricao() {\n\t\treturn pasta.getDescricao() + \", Bacon\";\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public String getDescricao() {\n return descricao;\n }", "public String getDescricao() {\n return descricao;\n }", "public String getDescrizione() {\n\t\treturn descrizione;\n\t}", "@Override\n public String toString() {\n return getDescricao();\n }", "@AutoEscape\n\tpublic String getDescription();", "@AutoEscape\n\tpublic String getDescription();", "@AutoEscape\n\tpublic String getDescription();", "@AutoEscape\n\tpublic String getDescription();", "@Override\n public String getInformacionInstruccion() {\n\treturn \"comando desconocido\";\n }", "@Override\n\tpublic String desc() {\n\t\treturn \"我是一个煎饼 \";\n\t}", "java.lang.String getDesc();", "public java.lang.String getDescricao() {\r\n return descricao;\r\n }", "public String getDescripcion() {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getDescripcion() - start\");\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getDescripcion() - end\");\n\t\t}\n\t\treturn descripcion;\n\t}", "public String getCedula() {\r\n return cedula;\r\n }", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "@Override\n\tpublic String getDes() {\n\t\treturn medicalRecord.getDes() + \" \" + \"²ΔΑΟ·Ρ\";\n\t}", "@Override\n\tpublic String getDesc() {\n\t\treturn auto.getDesc() + AC_DESCRIPTION;\n\t}", "@Override\n\tpublic String getDescription() {\n\t\tString ret = Localization.SINGLETON.getElement(\"POTION_GETDESCRIPTION\");\n\t\tret = ret.replace(\"[[POTION_NAME]]\", this.name);\n\t\tret = ret.replace(\"[[POTION_ENERGY]]\", \"\" + ENERGY);\n\t\tret = ret.replace(\"[[POTION_STRENGTH]]\", \"\" + STRENGTH);\n\t\treturn ret;\n\t}", "@AutoEscape\n public String getDescription();", "@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}", "public String prenda() {\r\n\t\tif(this.getColorSecundario()==null)\r\n\t\t\treturn this.getTipo().tipo+\" de \"+this.getTela().toString() +\" de color \"+this.getColorPrimario().toString();\r\n\t\telse\r\n\t\t\treturn this.getTipo().tipo+\" de \"+this.getTela().toString() +\" de color \"+this.getColorPrimario()+\" y \"+this.getColorSecundario().toString();\r\n\r\n\t}", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "String getDescription();", "public String getProductDescription() {\r\n/* 221 */ return this._productDescription;\r\n/* */ }", "public String getDescripcion()\r\n/* 163: */ {\r\n/* 164:299 */ return this.descripcion;\r\n/* 165: */ }", "public java.lang.String getDescrizione() {\r\n return descrizione;\r\n }", "String getDescripcion();", "String getDescripcion();", "@Override\n\tpublic String getDescripcion() {\n\t\treturn \"Vino\";\n\t}" ]
[ "0.6962705", "0.6908473", "0.6792557", "0.6773595", "0.6762871", "0.6746696", "0.673133", "0.6657454", "0.6635675", "0.66349566", "0.66134495", "0.6563912", "0.6540965", "0.6529154", "0.6513829", "0.6479569", "0.64775914", "0.64599323", "0.64330757", "0.64330757", "0.64247984", "0.64247984", "0.64247984", "0.64247984", "0.64247984", "0.64247984", "0.64247984", "0.64247984", "0.64247984", "0.64185226", "0.6399361", "0.6382793", "0.63588154", "0.6352061", "0.6344005", "0.6339378", "0.6339378", "0.63374645", "0.63204205", "0.6318106", "0.6318106", "0.6318106", "0.6318106", "0.63133895", "0.6308183", "0.62869745", "0.6284179", "0.6282276", "0.6256586", "0.6247907", "0.6247436", "0.6245502", "0.6232353", "0.62239456", "0.62125564", "0.6212429", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.62074673", "0.6203403", "0.6202207", "0.62014514", "0.6201074", "0.6201074", "0.61947936" ]
0.6547052
12
N\u00FAmero do cart\u00E3o da compra
public CompraResponse cartao(String cartao) { this.cartao = cartao; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String toString(){\n\t\treturn \"Inf carta:\\n\"+numero+\"de \"+palo+\"\\nValor: \"+valor;\n\t}", "public String toString() {\n return \" Carta [numero=\" + numero + \", seme=\" + seme + \" ,valore= \"+valore+\" , punti= \"+punti+\"] \";\n }", "private String insertarCartaNaturalSign() {\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 2,\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 true,\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 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 }", "public int dameValor(C carta)\n\t{\n\t\tint n= carta.getNumero();\n\t\tif(n>=2 && n<=9)//el 10 no se usa\n\t\t\treturn n;\n\t\telse\n\t\t\treturn 10;\n\t\t\n\t}", "private String insertarCartaMysticalSign() {\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 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 false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n true,\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 }", "@Override\n\tpublic String crearTramaParaRepartirCarta() {\n\t\treturn null;\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 String ocurrencia() {\n String palabra = \"\";\n int retorno = 0;\n for (int i = 0; i < getCadena().length(); i++) {\n\n if ((getCadena().charAt(i) == ' ') || (i > getCadena().length() - 2)) {\n if (palabra.equals(getBuscar())) {\n retorno++;\n palabra = \"\";\n } else {\n palabra = \"\";\n }\n\n } else {\n palabra += getCadena().charAt(i);\n\n }\n }\n return (\"La cantida de ocurrencias son de:\" + '\\n' + retorno);\n }", "java.lang.String getNume();", "java.lang.String getNume();", "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 }", "private String insertarCartaNaturalHelp() {\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 2,\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 String insertarCartaBurningSign() {\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 false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n true,\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 String getQuantProduto() {\r\n\t\treturn quantProduto;\r\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 Carta (String palo, int numero){\n\t\tthis.palo = palo;\n\t\tthis.numero = numero;\n\n\t\tif(palo.equals(\"O\"))\n\t\t\tvalor = numero;\n\t\telse if(palo.equals(\"C\"))\n\t\t\tvalor = numero * 100;\n\t\telse if(palo.equals(\"E\"))\n\t\t\tvalor = numero * 10000;\n\t\telse if(palo.equals(\"B\"))\n\t\t\tvalor = numero * 1000000;\n\n\t}", "public int getComuneNascitaCod() {\r\n return comuneNascitaCod;\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 }", "private String insertarCartaNaturalResources() {\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 5,\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 Carta(int num,Seme se,int va,int pu){\n this.numero=num;\n this.seme=se;\n this.valore=va;\n this.punti=pu;\n }", "@Override\n\tpublic String getCodigoCarteira() {\n\t\treturn \"0\";\n\t}", "public int esMejorCarta(Carta c){\r\n return this.numero.compareTo(c.numero);\r\n }", "public String getCodProd() {\n return this.codProd;\n }", "public void setNumCopertiCena(int quanti) {\n campoCena.setValore(quanti);\n this.syncNumCopertiTotali(); \n }", "public String getNombreCarta(int fila, int col) {\n\t\treturn tablero[fila][col].getText();\n\t}", "private String insertarCartaHealingSign() {\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 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 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 true,\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 }", "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 Integer dameValorAlternativo(C carta)\n\t{\n\t\tif(carta.getNumero()==1)\n\t\t\treturn 11;\n\t\telse return null;\n\t}", "public String getCUSU_NOMBRES(){\n\t\treturn this.myCusu_nombres;\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Juros=\" + juros*100 + \"% a.m.\\n \" + \r\n\t\t\t\t\"CartaoCredito=\" + cartaoCredito + \"\\n \" +\r\n\t\t\t\tsuper.toString();\r\n\t}", "public int getCartasJugador() {\r\n\t\tint suma = this.escudoTorre.getValor() + this.escudoRey.getValor()\r\n\t\t\t\t+ this.escudoNobleza.getValor() + this.escudoRey.getValor();\r\n\t\treturn suma;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "public BigDecimal getnCodregpen() {\n return nCodregpen;\n }", "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 }", "public String getShoppingCartItemNumber(){\n WebDriverWait wait = new WebDriverWait(getWebDriver(), 10);\n WebElement shoppingCart = wait.until(ExpectedConditions.presenceOfElementLocated(By.id(\"gh-cart-n\")));\n return shoppingCart.getText();\n }", "public String toString() {\n\t\treturn \"CURSO=\" + idC + \" ASISTEN un TOTAL de: \" +dniE+\" estudiantes\\n\";\n\t}", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public String getCodigoDeBarras() {\n\t\treturn producto.getCodigoDeBarras();\n\t}", "public java.lang.String getCivNo () {\n\t\treturn civNo;\n\t}", "public String getInventoryCod() {\n return (String)getAttributeInternal(INVENTORYCOD);\n }", "public String getNaziv() {\r\n\t\treturn naziv;\r\n\t}", "public void assegnaCarta(Terreno tipo) {\n\t\tswitch (tipo) {\n\t\tcase AGRICOLO:\n\t\t\tnumAGRICOLI++;\n\t\t\treturn;\n\t\tcase ARIDO:\n\t\t\tnumARIDI++;\n\t\t\treturn;\n\t\tcase FIUME:\n\t\t\tnumFIUMI++;\n\t\t\treturn;\n\t\tcase FORESTA:\n\t\t\tnumFORESTE++;\n\t\t\treturn;\n\t\tcase MONTAGNA:\n\t\t\tnumMONTAGNE++;\n\t\t\treturn;\n\t\tcase PRATO:\n\t\t\tnumPRATI++;\n\t\t\treturn;\n\t\tdefault:\n\t\t\treturn;\n\t\t}\n\t}", "public String getCordno() {\n return cordno;\n }", "String getCodiceFiscale();", "public void pedirCantidadProducto(String codBarra){\n this.productoSeleccionado = codBarra;\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}", "public Carta(char s,int v)\r\n {\r\n valore = v;\r\n \r\n nome = \"\";\r\n \r\n codice = valore;\r\n \r\n Potenziale = new ConcurrentSkipListMap();\r\n \r\n ValoriPotenziale = new ConcurrentSkipListMap(); \r\n \r\n /*\r\n COME VIENE DETERMINATO IL CODICE DELL CARTA:\r\n \r\n Il codice della carta serve principalmente a reperirne\r\n l'immagine all'interno della cartella CardSkins e viene\r\n determinato nel seguente modo:\r\n \r\n - Valore + Seme;\r\n \r\n In modo che si presenti la seguente situazione:\r\n \r\n -Carte di coppe : Intervallo [0,10]\r\n -Carte di denari : Intervallo [11,20]\r\n -Carte di batoni : Intervallo [21,30]\r\n -Carte di spade : Intervallo [31,40]\r\n */\r\n switch(v)\r\n {\r\n case 1:\r\n nome += \"Asso di \";\r\n break;\r\n case 2:\r\n nome += \"Due di \";\r\n break;\r\n case 3:\r\n nome += \"Tre di \";\r\n break;\r\n case 4:\r\n nome += \"Quattro di \";\r\n break;\r\n case 5:\r\n nome += \"Cinque di \";\r\n break;\r\n case 6:\r\n nome += \"Sei di \";\r\n break;\r\n case 7:\r\n nome += \"Sette di \";\r\n break;\r\n case 8:\r\n nome += \"Fante di \";\r\n break;\r\n case 9:\r\n nome += \"Cavallo di \";\r\n break;\r\n case 10:\r\n nome += \"Re di \";\r\n break;\r\n default:\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n switch(s)\r\n {\r\n case 's':\r\n seme = \"spade\";\r\n codice += 30;\r\n break;\r\n case 'b':\r\n seme = \"bastoni\";\r\n codice += 20;\r\n break;\r\n case 'c':\r\n seme = \"coppe\";\r\n codice += 0;\r\n break;\r\n case 'd':\r\n seme = \"denari\";\r\n codice += 10;\r\n break;\r\n default:\r\n throw new IllegalArgumentException();\r\n }\r\n \r\n nome += seme;\r\n \r\n ThoughtProbability = 1.0;\r\n \r\n Weight = 1.0;\r\n \r\n IsMaxPrimiera = false;\r\n }", "public abstract java.lang.String getCod_tecnico();", "@Override\n\tpublic void printCart() {\n\n\t\tint nSize = cartList.size();\n\t\tint intSum = 0;\n\n\t\tSystem.out.println(\"===================================================\");\n\t\tSystem.out.println(\"구매자\\t 상품명 수량\\t 단가\\t 합계\");\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\n\t\tint i = 0;\n\t\tfor (i = 0; i < nSize; i++) {\n\t\t\tSystem.out.print(cartList.get(i).getUserName() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getProductName() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getQty() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getPrice() + \"\\t \");\n\t\t\tSystem.out.println(cartList.get(i).getTotal() + \"\\t\");\n\n\t\t\tintSum += cartList.get(i).getTotal();\n\t\t}\n\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\t\tSystem.out.printf(\"합계\\t%d가지\\t\\t\\t%d\\n\", i, intSum);\n\n\t}", "public String getCOD_ITEM() {\n return COD_ITEM;\n }", "public String getCodice() {\n\t\treturn codice;\n\t}", "public int getComienza() {\n\t\treturn comienza;\n\t}", "public java.lang.String getNume() {\n java.lang.Object ref = nume_;\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 nume_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getNume() {\n java.lang.Object ref = nume_;\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 nume_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getTxt_Nif() {\r\n\t\treturn cb_nifCliente.getSelectedItem().toString();\r\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public String getCodiceFiscale() {\n return codiceFiscale;\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public String getCurp(){\r\n return beneficiario[0].toString();\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" Corrente :\"+ super.getNumero();\n\t}", "public java.lang.String getNume() {\n java.lang.Object ref = nume_;\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 nume_ = s;\n return s;\n }\n }", "public java.lang.String getNume() {\n java.lang.Object ref = nume_;\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 nume_ = s;\n return s;\n }\n }", "public String getfirstVolumeDiscountQuantity()\n\t{\n\t\twaitForVisibility(firstVolumeDiscountQuantity);\n\t\treturn firstVolumeDiscountQuantity.getText();\n\t}", "@Test(expected = HardwareCartaoException.class)\n\tpublic void falhasDeCartao() {\n\t\tassertEquals(\"Falha no hardware de leitura de cartões\", hardwareMock.pegarNumeroDaContaCartao(null));\n\t}", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "public Carta(String face, String naipe) {\r\n this.face = face; // inicializa face da carta\r\n this.naipe = naipe; // inicializa naipe da carta\r\n }", "public String getNaziv() {\n\t\treturn naziv;\n\t}", "@Override\n\tpublic java.lang.String getNeedQuantity() {\n\t\treturn _lineaGastoCategoria.getNeedQuantity();\n\t}", "@AutoEscape\n\tpublic String getCodDistrito();", "public java.lang.String getProformaNo () {\n\t\treturn proformaNo;\n\t}", "public void usarCartao(String tipoCartao) throws Exception {\n terminarAVez();\n\n if (listaJogadoresNaPrisao.contains(listaJogadores.get(jogadorAtual()).getNome())) {\n this.listaJogadores.get(jogadorAtual()).gastarCartaoSaidaDePrisao(tipoCartao);\n this.processarJogada(2, 1, true);\n this.listaJogadores.get(jogadorAtual()).addDinheiro(50);\n if (tipoCartao.equals(\"chance\")) {\n this.cardChancePrisaoEmPosse = false;\n } else if (tipoCartao.equals(\"chest\")) {\n this.cardChestPrisaoEmPosse = false;\n }\n } else {\n throw new Exception(\"player is not on jail\");\n }\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 }", "@Override\r\n public String receita() {\n return \"Misturar os ingredientes; bater no liquidificador; colocar na máquina de waffle por 10m\";\r\n }", "public String getNumeroLicencia() {\n\t\treturn numeroLicencia;\n\t}", "public String getCUSU_CODIGO(){\n\t\treturn this.myCusu_codigo;\n\t}", "public void verCartasDelMazo(){\n for(Carta carta: cartasBaraja){\n System.out.println(carta);\n }\n }", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "public com.google.protobuf.ByteString\n getNumeBytes() {\n java.lang.Object ref = nume_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n nume_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getNumeBytes() {\n java.lang.Object ref = nume_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n nume_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Carta(int num,int palo){\r\n this.numero=Numeros.values()[num-1];\r\n this.palo=Palos.values()[palo-1];\r\n }", "public CartaoCashBack(String nomeTitular, String numCartao, int mesValidade, int anoValidade, int tipo) {\n\t\tsuper(nomeTitular, numCartao, mesValidade, anoValidade);\n\t\tthis.tipo = tipo;\n\t}", "public String dajPopis() {\n return super.dajPopis() + \"KUZLO \\nJedna tebou vybrata jednotka ziska 3-nasobnu silu\";\n }", "public java.lang.String getNrContrato() {\n return nrContrato;\n }", "public String getPrecoProduto() {\r\n\t\treturn precoProduto;\r\n\t}", "public void setComuneNascitaCod(int value) {\r\n this.comuneNascitaCod = value;\r\n }", "public Integer getCedula() {return cedula;}", "private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }", "public int getCoeficienteBernua()\n {\n return potenciaCV;\n }", "@Override\n\tpublic long getNumeroContrato() {\n\t\t// TODO Auto-generated method stub\n\t\treturn super.getNumeroContrato();\n\t}", "public String getMarca()\n {\n return \"\\nDispositivo Marca \" + Marca; \n }", "public String primerTicketDisponible() {\n\t\tString ticketLibre = \"|L|\";\n\t\tString ticketLibrePosicion;\n\t\tfor (int i = 0; i < getNumeroAsientosFila(); i++) {\n\t\t\tfor (int j = 0; j < getNumeroAsientosColumna(); j++) {\n\t\t\t\tif (vagonVacio[i][j].equals(ticketLibre)) {\n\t\t\t\t\tticketLibrePosicion = Integer.toString(i) +\" \"+ Integer.toString(j);\n\t\t\t\t\treturn ticketLibrePosicion;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public String getCpe() {\n return cpe;\n }", "public String getCartype() {\n return cartype;\n }", "public String getCartype() {\n return cartype;\n }", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}", "public void setQuantProduto(String quantProduto) {\r\n\t\tthis.quantProduto = quantProduto;\r\n\t}", "public java.lang.String getCodigo_pcom();", "public String getNpCod() {\n return (String)getAttributeInternal(NPCOD);\n }" ]
[ "0.6998448", "0.6544288", "0.640832", "0.63590634", "0.6287624", "0.6286044", "0.6283618", "0.6272145", "0.62603575", "0.6256074", "0.6256074", "0.62461996", "0.6198941", "0.61792755", "0.617699", "0.6102069", "0.60985166", "0.6038275", "0.60335517", "0.60318714", "0.60102427", "0.60042256", "0.5987906", "0.5984968", "0.5971713", "0.5966084", "0.5963911", "0.5935598", "0.59351254", "0.59322894", "0.5926078", "0.5923895", "0.59135324", "0.5908344", "0.59029955", "0.59014046", "0.58888924", "0.5858728", "0.5832426", "0.5826772", "0.582201", "0.5799752", "0.57901114", "0.5788024", "0.5763772", "0.5760973", "0.5757256", "0.5754501", "0.57520515", "0.5746648", "0.57364035", "0.5733487", "0.5716385", "0.5705674", "0.5705674", "0.5700079", "0.5700049", "0.5699069", "0.5698435", "0.56920344", "0.56818783", "0.567401", "0.567401", "0.5672318", "0.5670543", "0.5663518", "0.565991", "0.5657593", "0.5656996", "0.5648478", "0.56433004", "0.5640812", "0.562906", "0.56269825", "0.5616212", "0.56149894", "0.5598309", "0.55955446", "0.5591949", "0.5591949", "0.5587264", "0.5582107", "0.5572091", "0.55707735", "0.5566925", "0.55646586", "0.556353", "0.555727", "0.5555368", "0.5551685", "0.55490935", "0.5542787", "0.5541085", "0.55329806", "0.55329806", "0.5530896", "0.5523262", "0.5521696", "0.5518991", "0.5514131" ]
0.5768132
44
Nome do portador do cart\u00E3o da compra
public CompraResponse nomePortadorCartao(String nomePortadorCartao) { this.nomePortadorCartao = nomePortadorCartao; return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic String toString(){\n\t\treturn \"Inf carta:\\n\"+numero+\"de \"+palo+\"\\nValor: \"+valor;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}", "public String toString() {\n return \" Carta [numero=\" + numero + \", seme=\" + seme + \" ,valore= \"+valore+\" , punti= \"+punti+\"] \";\n }", "public String getNombreCarta(int fila, int col) {\n\t\treturn tablero[fila][col].getText();\n\t}", "String getCognome();", "@Override\n\tpublic String getName() {\n\t\treturn \"Rotera 90\\u00b0 höger\";\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn \"Rotera 90\\u00b0 höger\";\n\t}", "@Override public String getCarne(){\n return \"salchicha y jamón \";\n }", "@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn \"Macchina a stati finiti di nome \"+nome+\", nello stato \"+corrente.getNome()+\".\";\r\n\t}", "java.lang.String getPrenume();", "@Override\n public String toString() {\n return nome + placa;\n }", "private String symbol(Cardtype c) {\n if (c == Cardtype.HEARTS) {\n return \"\\u2665\";\n } else if (c == Cardtype.DIAMONDS) {\n return \"\\u2666\";\n } else if (c == Cardtype.SPADES) {\n return \"\\u2660\";\n } else if (c == Cardtype.CLUBS) {\n return \"\\u2663\";\n } else {\n return \"\";\n }\n }", "public String getCurp(){\r\n return beneficiario[0].toString();\r\n }", "@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"ContaCorrente Numero : \" + numero + \", Tipo : \" + tipo + \"\"\n\t\t\t\t+ \", Solde : R$ \" + solde + \"\\n\";\n\t}", "public String get卡名and類型Name() {\r\n return \"[\" + 卡名 + \"-\" + CardType.CARD_TYPE_NAME[類型] + \"] \";\r\n }", "public String getCODIGO() {\r\n return CODIGO;\r\n }", "public String getNome(){\n return preferencias.getString(CHAVE_NOME, null);\n }", "public String toString() {\n return this.getCipherName();\n }", "public String getName()\r\n/* 91: */ {\r\n/* 92:112 */ return k_() ? aL() : \"container.minecart\";\r\n/* 93: */ }", "String getCidade();", "public String getCognomeNome() {\n\t\treturn this.cognome + \" \" + this.nome;\n\t}", "@Override\n public String toString() {\n return String.format(\"Pizza %s, prezzo %f€\", this.gusto, this.prezzo);\n }", "public String toString(){\r\n String output = \"\";\r\n //Display the name \r\n output += this.name;\r\n //Turn the cost int in cents to a string in dollars\r\n String totalcost = DessertShoppe.cents2dollarsAndCents(getCost());\r\n //Print out a space between the name and where the cost needs to be\r\n for (int i = this.name.length(); i < DessertShoppe.RECEIPT_WIDTH - totalcost.length(); i++){\r\n output+=\" \";\r\n }\r\n //Print outt he cost string with the dollar sign\r\n output += totalcost;\r\n return output;\r\n \r\n }", "public String getMarca()\n {\n return \"\\nDispositivo Marca \" + Marca; \n }", "public String getNomeCurso()\n\t{\n\t\t// Retorna o nome do Curso\n\t\treturn cursoNome;\n\t}", "public String getCognome() {\r\n return cognome;\r\n }", "java.lang.String getNume();", "java.lang.String getNume();", "String getCName() {\n return nameTF.getText();\n }", "public String toString(){\n return \"+-----------------------+\\n\" +\n \"| Boleto para el metro |\\n\" +\n \"|derjere0ranfeore |\\n\" +\n \"+-----------------------+\\n\" ;\n }", "public String getNomeProduto() {\r\n\t\treturn nomeProduto;\r\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Juros=\" + juros*100 + \"% a.m.\\n \" + \r\n\t\t\t\t\"CartaoCredito=\" + cartaoCredito + \"\\n \" +\r\n\t\t\t\tsuper.toString();\r\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public String toString(){\n return \"Codigo Produto: \"+this.idProduto+\n \"\\nNome do Produto \"+this.nomePro+\n \"\\nDescrição \"+this.descricao+\n \"\\nPreço: \"+this.preco;\n }", "public String getName ( ) {\r\n\t\treturn \"TASS Mark IV Patches Catalog\";\r\n\t}", "public String getName ( ) {\r\n\t\treturn \"MSX Infrared Astrometric Catalog\";\r\n\t}", "@Override\r\n\tpublic String getName() {\n\t\treturn \"Vincent\";\r\n\t}", "public String getCordno() {\n return cordno;\n }", "@Override\n\t@Field(offset=149, length=30, paddingChar=' ', align=Align.RIGHT)\n\tpublic String getNomeSacado() {\n\t\treturn super.getNomeSacado();\n\t}", "@Override\r\n\tpublic String getNombrePrograma() {\n\t\treturn this.getObjectZulCode();\r\n\t}", "@Override\n public String toString() {\n\n //convert cents to dollars using cents2dollarsAndCents\n String output = DessertShoppe.cents2dollarsAndCents(this.getCost());\n //create string storing cost in a string \n String costLength = Integer.toString(this.getCost());\n //find spacing needed between name and cost in reciept by subtracting 30(total spaces) by \n //length of name and length of cost\n int spacing = 30 - super.getName().length() - costLength.length() - 1;\n //loop through an add a space each time up to \"spacing\" integer\n for (int i = 0; i < spacing; i++) {\n output = \" \" + output;\n }\n //return name of cookie along with cost along with the right format posting amount of pounds with cost per pound\n return this.weight + \" lbs. \" + \"@ $\" + DessertShoppe.cents2dollarsAndCents(this.pricePerLbs) + \" /lb.\\n\" + this.getName() + output;\n }", "public String tipoConta() {\n return \"Conta Comum\";\n }", "public String getCardName(){\n return type.getType() + \" of \" + suit.getSuit();\n }", "public String getDescricaoCaminhao() {\n return getDescricaoVeiculo() + \"\\t\" + capacidadeCarga;\n }", "String getNombreProducto();", "public String get_currency_name() {\n\t\treturn name;\r\n\t}", "@AutoEscape\n\tpublic String getNomDistrito();", "@Override\r\n\tpublic String toString() {\n\t\treturn this.nome;\r\n\t}", "private String symbol() {\n switch (this.suit) {\n case 1:\n return \"♣\";\n case 2:\n return \"♦\";\n case 3:\n return \"♥\";\n case 4:\n return \"♠\";\n default:\n throw new IllegalArgumentException(\"Invalid Suit\");\n }\n }", "public String darPlaca() {\n\t\treturn placa;\n\t}", "public String getName() {\n Boolean color = this.getColor();\n if (!color) {\n return \"bQ\";\n }\n return \"wQ\";\n }", "@AutoEscape\n\tpublic String getNomDepartamento();", "public String getCuisine(){\n return cuisine;\n }", "public char getName(){\n\t\treturn tipo;\n\t}", "public String getCpe() {\n return cpe;\n }", "public java.lang.String getNombreComercial() {\n java.lang.Object ref = nombreComercial_;\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 nombreComercial_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getCidade() {// Retorna o nome da cidade.\r\n\t\treturn cidade;\r\n\t}", "@Override\n\tpublic String getSymbolName()\n\t{\n\t\treturn getFormattedText();\n\t}", "@AutoEscape\n\tpublic String getCodDepartamento();", "java.lang.String getCit();", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "String getStockName();", "public String getNombre(){\r\n return beneficiario[1].toString();\r\n }", "public java.lang.String getPlazo() {\n return plazo;\n }", "public String getAPELLIDONombreDelAlumno() {\r\n\t\tString nombre = \"SUREDA José\";\r\n\t\treturn nombre;\r\n\t}", "public void printAnnuaireName() {\n\t\t\n\t}", "public java.lang.String getCodigo_pcom();", "@java.lang.Override\n public java.lang.String getNombreComercial() {\n java.lang.Object ref = nombreComercial_;\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 nombreComercial_ = s;\n return s;\n }\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Tạp Chí: \"+\" Tựa đề: \"+ tuaDe+\", Số Trang: \"+soTrang+\", Nhà xuất bản: \"+nxb+\", Số Bài Viết: \"+soBaiViet;\n\t}", "@AutoEscape\n\tpublic String getCodDistrito();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getNombreComercialBytes() {\n java.lang.Object ref = nombreComercial_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n nombreComercial_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getCodaComponent() {\n return codaComponent;\n }", "@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}", "@Override\n\tpublic String crearTramaParaRepartirCarta() {\n\t\treturn null;\n\t}", "public String getName() {\n\tif (num_comp == 0)\n\t return(\"\");\n\treturn(comp[num_comp-1]);\n }", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "public String getName(){\n\t\treturn Name; // Return the product's name\n\t}", "public String getShoppingCartAsString() {\n String result = \"\";\n for (Item item : cart.keySet()) {\n int count = cart.get(item);\n int price = count * item.getPriceInCents();\n result += count + \"x \" + item.getName() + \" = \" + price + \" cents\\n\";\n }\n return result;\n }", "@Override\n protected String elaboraFooterCategorie() {\n String text = CostBio.VUOTO;\n\n text += A_CAPO;\n text += LibWiki.setRigaCat(\"Liste di persone per cognome| \");\n text += LibWiki.setRigaCat(\"Progetto Antroponimi|Cognomi\");\n\n return text;\n }", "public String saludoCastellano () {\n\t\treturn \"hola\";\n\t}", "public String toString() {\n\t\treturn \"Półka \" + shelfName;\n\t}", "public String ocurrencia() {\n String palabra = \"\";\n int retorno = 0;\n for (int i = 0; i < getCadena().length(); i++) {\n\n if ((getCadena().charAt(i) == ' ') || (i > getCadena().length() - 2)) {\n if (palabra.equals(getBuscar())) {\n retorno++;\n palabra = \"\";\n } else {\n palabra = \"\";\n }\n\n } else {\n palabra += getCadena().charAt(i);\n\n }\n }\n return (\"La cantida de ocurrencias son de:\" + '\\n' + retorno);\n }", "public byte[] getName();", "public String getName() {\n\t\treturn \"CMN\";\n\t}", "public String toString()\n {\n \tNumberFormat fmt = NumberFormat.getCurrencyInstance();\n \tString item;\n \tif (name.length() >= 8)\n \t\titem = name + \"\\t\";\n \telse\n \t\titem = name + \"\\t\\t\";\n \treturn (item + \" \" + fmt.format(price) + \"\\t \" + quantity \n \t\t\t+ \"\\t\\t\" + fmt.format(price*quantity));\n }", "public String getComnoName() {\r\n return comnoName;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn super.toString() + \" Corrente :\"+ super.getNumero();\n\t}", "public static String name(){\n return \"10.Schneiderman.Lorenzo\"; \n }", "public String getCartItem() {\n\t\tMobileElement el = driver.findElement(By.xpath(\"//android.view.View[@resource-id='\" + cart + \"']\"));\n\t\tList<MobileElement> els = el.findElements(By.className(\"android.view.View\"));\n\t\treturn els.get(3).getText();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Chiclete Vendido: \" + maquinaDeChiclete.quantidadeDeChicletes + \" chicletes\"; \n\t}", "public String getProdDetailsName(){\n String prodName = productDetailsName.toString();\n return prodName;\n }", "private static String digitarNombre() {\n\t\tString nombre;\n\t\tSystem.out.println(\"Digite el nombre del socio: \");\n\t\tnombre = teclado.next();\n\t\treturn nombre;\n\t}", "@Override\r\n\tpublic String obtenerDescripcion() {\n\t\treturn this.combo.obtenerDescripcion() + \"+ Porcion de Carne\";\r\n\t}", "public String getCROSG_CODIGO(){\n\t\treturn this.myCrosg_codigo;\n\t}", "public String getQuantProduto() {\r\n\t\treturn quantProduto;\r\n\t}", "public String getCouseName() {\n return couseName;\n }", "public String toString() {\n\t\treturn \"[\"+this.produto + \"]\" + \"[\"+ this.preco + \"]\"+\"[\"+ this.quantidade+\"]\";\n\t\t\t\t\n\t}", "public String prenda() {\r\n\t\tif(this.getColorSecundario()==null)\r\n\t\t\treturn this.getTipo().tipo+\" de \"+this.getTela().toString() +\" de color \"+this.getColorPrimario().toString();\r\n\t\telse\r\n\t\t\treturn this.getTipo().tipo+\" de \"+this.getTela().toString() +\" de color \"+this.getColorPrimario()+\" y \"+this.getColorSecundario().toString();\r\n\r\n\t}" ]
[ "0.64428", "0.63909125", "0.63674676", "0.6185386", "0.61653644", "0.61539525", "0.61539525", "0.6107919", "0.60723025", "0.6033362", "0.59785324", "0.59378904", "0.5936626", "0.5918704", "0.59094495", "0.5909008", "0.5863605", "0.5853157", "0.5845815", "0.5839236", "0.582019", "0.5817706", "0.58085245", "0.5791093", "0.5778071", "0.5725789", "0.5715113", "0.57143676", "0.57143676", "0.5709945", "0.5696432", "0.56944335", "0.56939787", "0.5690384", "0.5687672", "0.5681461", "0.56813735", "0.5670086", "0.56666225", "0.56644714", "0.5654841", "0.5653387", "0.56260544", "0.5622223", "0.56010455", "0.5585228", "0.5583455", "0.5579242", "0.55673957", "0.55649835", "0.55597025", "0.5557478", "0.55489707", "0.5545536", "0.55345666", "0.5532876", "0.5531787", "0.5521347", "0.55047536", "0.5500422", "0.5495917", "0.54880977", "0.54869246", "0.5483773", "0.5479572", "0.54768056", "0.546349", "0.54591584", "0.545192", "0.54501235", "0.5446501", "0.54456586", "0.54451036", "0.54441583", "0.5440436", "0.54323924", "0.54234385", "0.5419206", "0.54187846", "0.5417932", "0.54109323", "0.5410035", "0.5407767", "0.5404261", "0.54037875", "0.5399157", "0.5398134", "0.53956115", "0.5393899", "0.53807837", "0.5378243", "0.5377803", "0.53777874", "0.5373656", "0.53696007", "0.53691417", "0.53664964", "0.5362178", "0.536147", "0.535536" ]
0.61729795
4
Convert the given object to string with each line indented by 4 spaces (except the first line).
private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPACES);\n }", "private String toIndentedString(Object o)\n/* */ {\n/* 128 */ if (o == null) {\n/* 129 */ return \"null\";\n/* */ }\n/* 131 */ return o.toString().replace(\"\\n\", \"\\n \");\n/* */ }", "private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }" ]
[ "0.78840077", "0.75487214", "0.74962974", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246", "0.74606246" ]
0.0
-1
Write a function that adds two numbers. You should not use + or any arithmetic operators.
@Test public void test1() { Assert.assertEquals(addBinary(2, 4), 6); Assert.assertEquals(addBinary(3, 6), 9); Assert.assertEquals(addBinary(23, 9), 32); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int addition(int a, int b){\n return a + b;\n }", "public double add(int a, int b){\r\n return a + b;\r\n }", "public int add(int a, int b) //add method take two int values and returns the sum\n {\n int sum = a + b;\n return sum;\n }", "public int addTwoNumbers(int a, int b) {\n return a + b;\n }", "public int addition(int a, int b){\r\n\t\treturn a+b;\r\n\t}", "public int addNum(int a, int b){\n return a+b;\n }", "public int addition(int a, int b){\r\n int result = a+b;\r\n return result;\r\n }", "public static int plus(int value1, int value2){\r\n return value1 + value2;\r\n }", "public int add(int a, int b) {\n return a + b;\n }", "public int add(int a, int b) {\n return a + b;\n }", "public static int add(int a, int b)\n\t{\n\t\treturn a + b;\n\t}", "public double add(double num1, double num2) {\n return num1 + num2;\n }", "@Override\n\tpublic int add(int a, int b) {\n\t\treturn a+b;\n\t}", "public static int Add(int a, int b){\n\t\t\treturn (a+b);\n\t\t\t\n\t\t}", "@Override\r\n\tpublic int add(int a,int b) {\n\t\treturn a+b;\r\n\t}", "public int add(int a, int b) {\n int sum = a+b;\n return sum;\n }", "public static double add(double a, double b){\r\n\t\treturn a+b;\r\n\t}", "int sum(int a, int b) {\n return a + b;\n }", "@Override\n\tpublic double add(double a, double b) {\n\t\treturn (a+b);\n\t}", "public static double add(double a, double b)\n\t{\n\t\treturn a + b;\n\t}", "public static int addInt(int a, int b){\r\n\t\treturn a+b;\r\n\t}", "public static int addNums(int a, int b) {\n int result = a + b;\n return(result);\n }", "@Override\r\n\tpublic int plus(int x, int y) {\n\t\treturn x + y;\r\n\t}", "public static int sum(int a, int b) {\n return a + b;\n }", "static int sum(int a, int b) {\n return a+b;\r\n }", "Double add(Double a, Double b);", "static int sum(int value1, int value2) {\n return value1 + value2;\n }", "@Override\n\t\t\tpublic Integer apply(Integer num1, Integer num2) {\n\t\t\t\treturn num1+num2;\n\t\t\t}", "public void add (int a , int b) {\n\t\tint c=a+b;\r\n\t\tSystem.out.println(\"Sum of numbers is : \" + c);\r\n\t}", "static void AddThemUP() { //defining a method to add 2 numbers\n int a = 4;\n int b = 5;\n\n System.out.println(\"The numbers add up to \" + (a + b));\n }", "public void add (double a , int b) {\n\t\tdouble c=a+b;\r\n\t\tSystem.out.println(\"Sum of numbers is : \" + c);\r\n\t}", "public int add(int number1, int number2)\n\t\tthrows CalculatorOperationException;", "public Integer add(Integer a, Integer b) {\n\t\treturn a + b;\n\t}", "public int sum(int a, int b) {\n\t\treturn a + b;\n\t}", "static long add(long a, long b){\n\t\treturn a+b;\n\t}", "void SumOfTwoNumbers()\n\t{\n\tSystem.out.println(\"sum is\"+(a+b));\n\t}", "static double add(double a, double b){\nreturn a+b;\n}", "public static int suma(int num1, int num2){\r\n\t\treturn num1+num2;\r\n\t}", "private void addTwoNumbers() {\n\t\t\n\t}", "public Integer add(Integer first, Integer second){\n return first + second;\n }", "public static String add(String num1, String num2) {\n\t\t// *** WRITE YOUR CODE HERE ***\n\t}", "void addition(int num1, int num2){\n System.out.println(\"Addition \"+(num1+num2));\n }", "static int soma2(int a, int b) {\n\t\tint s = a + b;\r\n\t\treturn s;\r\n\t}", "void add(int a, int b) {\n\n\t\tint sum = a + b;\n\t\tSystem.out.println(\"Sum of a+b is \" + sum);\n\n\t}", "@Override\r\n\tpublic int add(int a, int b) {\n\t\tSystem.out.println(a+b);\r\n\t\treturn a+b;\r\n\t}", "public double addition(double firstNumber, double secondNumber) {\n\t\tdouble returnValue = 0.0;\n\t\treturnValue = firstNumber + secondNumber;\n\t\treturn returnValue;\n\t}", "public static int sum (int a, int b) {\n\t\t\n\t\treturn a + b;\n\t}", "public static NumberP Addition(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Addition\n ); \t\n }", "public static int sum(int a,int b) {\n\t\tint c = a + b;\n\t\treturn c;\n\t}", "public static void add(int a,int b){ }", "public void add(double a, double b)\n\t{\n\t\tdouble c = a+b;\n\t\tSystem.out.println(\"Sum of numbers is \"+c);\n\t\t\n\t}", "@Override\n\tpublic int add(int num1, int num2) throws TException {\n\t\treturn num1+num2;\n\t}", "public static double Add(double x, double y) \n\t{\n\t\treturn x + y;\n\t\t\n\t}", "public static double add(int left, int right){\n return left + right;\n }", "public void add(double a, int b)\n\t{\n\t\tdouble sum = a+b;\t\t\t\t\n\t\tSystem.out.println(\"Sum of numbers is \"+sum);\n\t}", "void add(int a,int b){\r\n\t\tint c=a+b;\r\n\t\tSystem.out.println(\"Sum =\"+c);\r\n\t}", "void add(double a, double b) {\n\t\tdouble sum = a + b;\n\t\tSystem.out.println(\"Sum of a+b is \" + sum);\n\t}", "@Override\r\n\tprotected Integer add(Integer x1, Integer x2) {\n\t\treturn x2+x1;\r\n\t}", "public double add(double firstNumber, double secondNUmber){\n\t\treturn firstNumber + secondNUmber;\n\t}", "@Override\r\n\tpublic int calculate(int a, int b) {\n\t\treturn (a + b) * 2;\r\n\t}", "public static int addThem(int x, int y)\n {\n return x + y;\n }", "public double add(double x, double y) {\n\t\treturn x+y;\n\t}", "public static int Sum(int a, int b)\r\n\t{\n\tint sum=a+b;\r\n\treturn sum;\r\n\t}", "void add(int a,int b) {\r\n\t\tint c=a+b;\r\n\t\tSystem.out.print(c);\r\n\t}", "public static double sum(double a, double b) {\n return a + b;\n }", "public void add (int b , double a) {\n\t\tdouble c=a+b;\r\n\t\tSystem.out.println(\"Sum of numbers is : \" + c);\r\n\t}", "public void add() {\r\n\t\tint num1=5,num2=3,sum;\r\n\r\n\t\tsum=num1+num2;\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Adding two numbers\" + sum);\r\n\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic int plus(int left, int right) {\n\t\treturn left + right; \r\n\t\t//return 0;\r\n\t}", "public void add( int a, int b) {\n\t\t\n\t\t\n\tint c = a + b;\n\t\t\n\t\t\n\t\tSystem.out.println(c);\n\t}", "BaseNumber add(BaseNumber operand);", "public void add(int a, int b) {\n\n\t\tint sum = a + b;\n\t\tSystem.out.println(\"Sum = \" + sum);\n\n\t}", "public static int sum(int n1, int n2){\n return n1 + n2;\n }", "static int plus(int a, int b, int c) {\n return a + b + c;\n }", "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 Integer add();", "public static int suma (int x, int y){\n int s=x+y;\n return s;\n }", "public static void add(float a,int b){ }", "static int sumOfNumbers(int x, int y) {\n return x + y;\n }", "@Override\n\tpublic double add(double in1, double in2) {\n\t\treturn 0;\n\t}", "@Override\n\t\t\t\t\tpublic Integer call(Integer v1, Integer v2) throws Exception {\n\t\t\t\t\t\treturn v1+v2;\n\t\t\t\t\t}", "public static int returnAdd(int a,int b) {\n int c =a+b;\n System.out.println(\"My addition result is \" +c);\n return c; //will return the resultc\n }", "public int sum(int x, int y)\n\t{\n\t\treturn x+y;\n\t}", "int method01(int a, int b) {\n\n\t\ta = a + b;\n\t\treturn a;\n\t}", "public int suma(int numero1, int numero2){\n //Estas variables solo tienen el alcance de este metodo\n return numero1 + numero2;\n }", "public static int addTwo(int x) {\r\n return x + 2;\r\n }", "@Override\r\n\t\t\t\tpublic Integer call(Integer v1, Integer v2) throws Exception {\n\t\t\t\t\treturn v1+v2;\r\n\t\t\t\t}", "public T sum(T first, T second);", "void add(int i, int j) {\r\n\t\tnum1 = i;\r\n\t\tnum2 = j;\r\n\t\tresult = i+j;\r\n\t\t}", "@Override\n\tpublic int add(int x, int y) {\n\t\treturn x * y;\n\t}", "public static void add(int a,float b){ }", "@Override\r\n\tpublic double add() {\r\n\t\tdouble outcome = firstVariable + secondVariable;\r\n\t\treturn outcome;\r\n\t\r\n\t}", "@Override\n public Float plus(Float lhs, Float rhs) {\n\t\n\tfloat res = lhs + rhs;\n\treturn res;\t\n }", "public int sum(int x, int y) {\r\n\t\treturn (x+y);\r\n\t}", "public Integer call(Integer a, Integer b) throws Exception {\n\t\t\t\treturn a+b;\n\t\t\t}", "public static String plusInt(String num1, String num2){\n\t\tString result =\"\";\n\t\tif(null != num1 && !\"\".equals(num1) && null != num2 && !\"\".equals(num2)){\n\t\t\tresult = String.valueOf((Integer.parseInt(num1)+Integer.parseInt(num2)));\n\t\t}\n\t\treturn result;\n\t}", "public int sumDouble(int a, int b) {\n int sum = a + b;\n if (a == b){\n sum *= 2;\n }\n\n return sum; \n}", "@Override\n\tpublic int add(int a, int b) {\n\t\treturn super.add(a, b);\n\t}", "int sum(int a,int b) {\n\ta=32;\n\tb=42;\n\tint c= a+b;\n\treturn c;\n\t}", "public static void voidAdd(int a,int b) {\n int result =a+b;\n System.out.println(\"My addition result is \" +result);\n }", "public int getSum(int x, int y){\n return x+y;\n }", "@Override\r\n\tpublic int addNo(int a, int b) {\n\t\treturn a+b;\r\n\t}" ]
[ "0.84160197", "0.84116465", "0.8400245", "0.83914983", "0.8197814", "0.817089", "0.8137392", "0.8030488", "0.7969456", "0.7969456", "0.7927561", "0.79196113", "0.7894552", "0.78699994", "0.78612715", "0.78466785", "0.78136814", "0.7805613", "0.77735937", "0.77485836", "0.7681756", "0.7659825", "0.7613466", "0.760432", "0.76018524", "0.7598846", "0.7596823", "0.75940764", "0.7592665", "0.7575388", "0.7509856", "0.750899", "0.749398", "0.74898744", "0.7482989", "0.747421", "0.7469762", "0.7462534", "0.7456074", "0.74539065", "0.7442653", "0.743801", "0.7402878", "0.73807746", "0.7376557", "0.73605174", "0.73484004", "0.73399806", "0.7335879", "0.7334614", "0.73304456", "0.7320891", "0.73188704", "0.7314711", "0.7310597", "0.7309298", "0.7302634", "0.72988796", "0.72878194", "0.7286366", "0.7276958", "0.7270638", "0.72682816", "0.7244803", "0.7241817", "0.723957", "0.7222855", "0.7206647", "0.7198956", "0.71973556", "0.7192678", "0.7174128", "0.71416813", "0.7117038", "0.7106209", "0.7102322", "0.70842534", "0.7063512", "0.7051613", "0.7041344", "0.70406663", "0.7032132", "0.7025071", "0.70083654", "0.70067656", "0.70050824", "0.6998353", "0.6989703", "0.69889593", "0.69876117", "0.6980311", "0.6967376", "0.6952429", "0.6950798", "0.6948921", "0.69383067", "0.692749", "0.69186497", "0.6909182", "0.69003224", "0.6877148" ]
0.0
-1
if b=0 then the sum is a
private int addBinary(int a, int b) { if (b == 0) { return a; } // XOR is like doing a sum without carrying the remainders int sum = a ^ b; // AND shifted left is like getting just the remainders int carry = (a & b) << 1; return addBinary(sum, carry); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int sumIterative(int a, int b){\n int result = a;\n while (b != 0){\n if (b > 0){\n result++;\n b--;\n } else {\n result--;\n b++;\n }\n }\n return result;\n }", "public static int sum(int a, int b) {\n\t\tif (b <= 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn sum(a + 1, b - 1);\n\t\t}\n\t}", "public int getSum(int a, int b) {\n return b == 0 ? a : getSum(a ^ b, (a & b) << 1);\n }", "public int getSum(int a, int b) {\n\n while(b!=0){ //check till carry is not equal to zero\n int carry = a&b;\n a=a^b;\n b=carry<<1;\n }\n return a;\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 }", "public int getSum(int a, int b) {\n if(a == 0) {\n return b;\n }\n\n if(b == 0) {\n return a;\n }\n\n int carry = 0;\n\n while(b != 0) {\n\n // If both bits are 1, we set the bit to the left (<<1) to 1 -- this is the carry step\n carry = (a & b) << 1;\n\n // If both bits are 1, this will give us 0 (we will have a carry from the step above)\n // If only 1 bit is 1, this will give us 1 (there is nothing to carry)\n a = a ^ b;\n\n b = carry;\n }\n\n return a;\n }", "default int sumOfAll(int a, int b) {\n\t\t\treturn 0;\n\t\t}", "public int GetSum(int a, int b) {\n\t\tint result = 0;\r\n\t\tint number = 0;\r\n\t\t\r\n\t\t//If a is greater than b, I will loop through all the integers between them, starting by b and summing 1 in every step of the loop \r\n\t\tif (a > b) {\r\n\r\n\t\t\tfor (int x = b; x <= a; x++) {\r\n\t\t\t\t//The number variable will be the x step of the loop, starting from b\r\n\t\t\t\tnumber = x;\r\n\t\t\t\tresult += number;\r\n\t\t\t\tnumber++;\r\n\t\t\t}\r\n\t\t//It will be similar if a is greater than b, but starting counting from a\r\n\t\t} else if (a < b) {\r\n\t\t\tfor (int x = a; x <= b; x++) {\r\n\t\t\t\tnumber = x;\r\n\t\t\t\tresult += number;\r\n\t\t\t\tnumber++;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t//If the two values are similar, the method just return one of them, ie a:\r\n\t\telse {\r\n\t\t\tresult = a;\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t//Finally the method return the result.\r\n\t\treturn result;\r\n\r\n\t}", "public int getSumLoop(int a, int b) {\n while (b != 0) {\n int temp = a ^ b;\n b = (a & b) << 1;\n a = temp;\n }\n return a;\n }", "public int sum(int a, int b) {\n\t\treturn a + b;\n\t}", "public void sum(int a, int b)\n {\n int index = a + 1;\n int sum = 0;\n \n while (index < b) {\n sum += index;\n index++;\n }\n System.out.println(sum);\n }", "public static int getSum(int a, int b) {\n// Integer.toBinaryString(a) ^ Integer.toBinaryString(b);\n return a ^ b;\n }", "public int sumar(){\n return this.a+this.b;\n }", "public static int foo(int a, int b) {\n int i;\n\n //for(i = 0; i < c.length; i++ ) {\n // c[i] = 0;\n //}\n\n if(a < 0) { \n return a+b;\n } else {\n return 0;\n }\n }", "static int add(int a, int b){\n int carry = 0;\n int result = 0;\n int i;\n for(i=0; a>0||b>0; i++){\n int ba = a&1;\n int bb = b&1;\n result = result|((carry^ba^bb)<<i);\n carry = (ba&bb) | (bb&carry) | (carry&ba);\n a = a>>1;\n b = b>>1;\n }\n return result|(carry<<i);\n }", "public double getSuma(double a, double b) {\n return a * b;\r\n }", "private long calcSum(int a, int b) {\n return (new Long(a) + new Long(b));\n }", "public static int Sum(int a, int b)\r\n\t{\n\tint sum=a+b;\r\n\treturn sum;\r\n\t}", "public int addValue(boolean b) {\n return foldIn(b ? 0 : 1);\n }", "public int getSum(List<Integer> a){\n\n int sum = 0;\n\n for(int i = 0; i<a.size(); i++){\n if(a.get(i)<0){\n continue;\n } else{\n sum +=a.get(i);\n }\n }\n return sum;\n }", "public int sumDouble(int a, int b) {\n int sum = a + b;\n if (a == b){\n sum *= 2;\n }\n\n return sum; \n}", "public int sumDouble(int a, int b) {\n\t\t\n\t\tint i = 0;\n\t\t\n\t\tif (a != b)\n\t\t\ti = a + b;\n\t\telse\n\t\t\ti = (a + b) * 2;\n\t\t\n\t\treturn i;\n\n\t}", "public int sumTwo(int a, int b) {\n\t\twhile (b != 0) {\n\t\t\tint sum = a ^ b;\n\t\t\tint carry = (a & b) << 1;\n\t\t\ta = sum; \n\t\t\tb = carry; \n\t\t}\n\t\treturn a;\n\t}", "public static int sum (int a, int b) {\n\t\t\n\t\treturn a + b;\n\t}", "public double suma(double a, double b) {\n\t\treturn a+b;\n\t}", "public static int sum(int a,int b) {\n\t\tint c = a + b;\n\t\treturn c;\n\t}", "public static int sum(int a, int b) {\n return a + b;\n }", "@Override\r\n\tpublic int calculate(int a, int b) {\n\t\treturn (a + b) * 2;\r\n\t}", "public int sortaSum(int a, int b) {\n if (a + b >= 10 && a + b <= 19) {\n return 20;\n }\n\n return a + b;\n }", "static int sum(int a, int b) {\n return a+b;\r\n }", "public int calculate(int a,int b) {\n\t\treturn strategy.caculate(a, b);\n\t}", "private double calcG(int a, int b) {\n return a % 2 == 0 && b % 2 == 0 ? 20 : a % 2 == 1 && b % 2 == 1 ? 1 : 5;\n }", "int calculate() {\n return getSum() + b1;\n }", "static int[] Summe(int[] a, int[] b){\n int index = 0, i = a.length - 1;\n int[] c = new int [a.length + 1];\n Arrays.fill(c, 0);\n while (i >= 0){\n c[i+1] = (a[i] + b[i] + index) % 10;\n if ((a[i] + b[i] + index) > 9) index = 1;\n else index = 0;\n i -= 1;\n }\n if (index == 1) c[0] = 1;\n return c;\n }", "private int bresA(int a, int b, int d) { //A as in Axis\n int add = 0;\n err += b;\n if(2*err >= a) {\n add = d;\n err -= a;\n }\n return add;\n }", "public void getSum(int a, int b) {\n\t\tSystem.out.println( a + b);\n\t}", "int sum(int a, int b) {\n return a + b;\n }", "private static int sumOfAllMultiplesof3or5ForAandBelow (int a){\n\t\treturn (a==0)? 0 : sumOfAllMultiplesof3or5ForAandBelow(a-1) + ((isDivisibeby3or5(a))? a : 0) ;\n\t}", "public void jumlah(int b, double a) {\n\t\tSystem.out.println(\"Jumlah 2 angka (int+double) = \" + (a + b));\n\t}", "public int soma(int a, int b) {\n\t\t\treturn compute(a, b, OPER_SOMA);\n\t\t}", "public static int getSum(int b, int n1, int n2) {\n int carry = 0;\r\n int pos = 1;\r\n int num = 0;\r\n while (n1 != 0 || n2 != 0 || carry != 0) {\r\n int a = n1 % 10;\r\n int d = n2 % 10;\r\n int c = a + d + carry;\r\n \r\n // if (c >= b)\r\n // c = c % b;\r\n carry = c/ b;\r\n c=c%b;\r\n num = num + pos * (c);\r\n \r\n pos *= 10;\r\n n1 /= 10;\r\n n2 /= 10;\r\n }\r\n\r\n return num;\r\n }", "public static double sum(double a, double b) {\n return a + b;\n }", "@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}", "public static void sum(int a,int b) {\n\t\tSystem.out.println(a+b);\n\t}", "static int soma2(int a, int b) {\n\t\tint s = a + b;\r\n\t\treturn s;\r\n\t}", "public int loneSum(int a, int b, int c) {\n\t\tif (a == b && b == c)\n\t\t\treturn 0;\n\t\t// All are not equal to each other\n\t\tif (a != b && b != c && c != a)\n\t\t\treturn a + b + c;\n\t\t// two of them are equal\n\t\tif (a == b)\n\t\t\treturn c;\n\t\tif (b == c)\n\t\t\treturn a;\n\t\tif (a == c)\n\t\t\treturn b;\n\n\t\treturn 0;\n\t}", "public OVecR2 suma(OVecR2 b){\n //TODO: implementar\n return new OVecR2();\n }", "public static int sumRange(int a, int b) {\r\n int sum = 0;\r\n int big = 0;\r\n int small = 0;\r\n \r\n if (a > b) {\r\n big = a;\r\n small = b;\r\n } else {\r\n big = b;\r\n small = a;\r\n }\r\n for(int i = small; i <= big; i++) {\r\n //System.out.println( i );\r\n sum += i;\r\n }\r\n return sum;\r\n }", "private int activate(float sum) {\r\n if (sum > 0) {\r\n return 1;\r\n } else {\r\n return -1;\r\n }\r\n }", "public void add (int b , double a) {\n\t\tdouble c=a+b;\r\n\t\tSystem.out.println(\"Sum of numbers is : \" + c);\r\n\t}", "private long function(long a, long b) {\n if (a == UNIQUE) return b;\n else if (b == UNIQUE) return a;\n\n // return a + b; // sum over a range\n // return (a > b) ? a : b; // maximum value over a range\n return (a < b) ? a : b; // minimum value over a range\n // return a * b; // product over a range (watch out for overflow!)\n }", "int absoluteValuesSumMinimization(int[] a) {\n return a[(a.length-1)/2];\n }", "public String determineFormattedSumString(int a, int b);", "public static int twoNumbers(int a, int b) {\n if ( a == b) {\n return ((a+2)+(b+2));\n }\n else {\n return ((a+1)+(b+1));\n }\n\n }", "public static String addBinary(String a, String b) {\n \tint m = a.length();\n \tint n = b.length();\n \tint l = (m-n) > 0 ? m:n;\n \tint[] sum = new int[l+1];\n \tfor (int i=0;i<l;i++){\n \t\tint a_value = (i < m) ? a.charAt(m -1 - i) - '0': 0;\n \t\tint b_value = (i < n) ? b.charAt(n -1 - i) - '0': 0;\n \t\tint tmp = a_value + b_value;\n \t\tsum[l - i - 1] = (sum[l - i] + tmp)/2;\n \t\tsum[l - i] = (sum[l - i] + tmp )% 2;\n \t}\n \t\n \tString result = Arrays.toString(sum);\n \tStringBuilder sb = new StringBuilder();\n \tfor (int i=0;i<sum.length;i++){\n \t\tif (i==0 && sum[i] == 0) continue;\n \t\tsb.append(sum[i]);\n \t}\n\n \tSystem.out.println(\"result is \" + result);\n \tSystem.out.println(\"result is in String \" + sb);\n\n \t\n \treturn sb.toString();\n \n }", "public static double pow(double a, int b){\n if (a == 0.0) {\n if (b == 0) {\n throw new IllegalArgumentException(\"0^0 not supported\");\n } else {\n return +0;\n }\n }\n if (b == 0) {\n return 1.0;\n }\n\n // a,b <> 0\n double result = a;\n int n = Math.abs(b);\n for(int i = 2; i <= n; i++){\n result *= a;\n }\n \n if (b < 0) {\n result = 1/result;\n }\n return result;\n }", "public int sumarConRetorno() {\n return a + b;\n }", "public static double sumLogProb (double a, double b)\n\t{\n\t\tif (a == Double.NEGATIVE_INFINITY) {\n\t\t\tif (b == Double.NEGATIVE_INFINITY)\n\t\t\t\treturn Double.NEGATIVE_INFINITY;\n return b;\n\t\t}\n\t\telse if (b == Double.NEGATIVE_INFINITY)\n\t\t\treturn a;\n\t\telse if (a > b)\n\t\t\treturn a + Math.log (1 + Math.exp(b-a));\n\t\telse\n\t\t\treturn b + Math.log (1 + Math.exp(a-b));\n\t}", "private int calcula(int op,int a, int b){\n \n switch (op) {\n case 0: \n return a+b;\n case 1: \n return a-b;\n case 2: \n return a*b;\n case 3: \n return a/b;\n default: \n return 0;\n }\n \n }", "private Proof notMulZero(Expression a, Expression b) {\n Proof faxm7Gen = faxm7Gen(a);\n Proof axm2convertOnce = faxm2ConvertOnce(succ(b), faxm7Gen);\n Proof equalitySym = equalitySym(zero(), succ(b));\n Proof imTrans2 = implTrans(axm2convertOnce, equalitySym);\n Proof succNotZero = succIsNotZero(b);\n return contraTwice(imTrans2, succNotZero);\n }", "private int calculatePrice(int quantit,boolean b) {\n\n if(b==true)\n return quantit*10;\n else\n return quantit*5;\n }", "@External\n public BigInteger sumIH(BigInteger a, BigInteger b) {\n return null;\n }", "int sum(int a,int b) {\n\ta=32;\n\tb=42;\n\tint c= a+b;\n\treturn c;\n\t}", "double getSum();", "double getSum();", "static int calculate(int a, int b, String op) {\n switch (op) {\n case \"+\":\n return a + b;\n case \"-\":\n return a - b;\n case \"*\":\n return a * b;\n case \"/\":\n return a / b;\n default:\n break;\n }\n return 0;\n }", "public int m3(int a,int b){\r\n\t\tint c=a+b;\r\n\t\treturn c;\r\n\t}", "public static int boryaDiagnosis(int a, int b){\n\t\t Scanner in = new Scanner(System.in);\n\n a = 0;\n b = in.nextInt();\n\n for (int x = 0; x < b; ++x){\n \tint j = in.nextInt();\n \tint k = in.nextInt();\n\n while (j <= a){\n \tj += k;\n }\n a = j;\n }\n \treturn (a);\n }", "public static void sumAndPrint(int a, int b) {\n System.out.println( a + \" + \" + b + \" = \" + (a + b) );\n }", "public int add(int a, int b) {\n int sum = a+b;\n return sum;\n }", "public int soustraire(int a, int b){\r\n\t\treturn a-b;\r\n\t}", "public void jumlah(double a, int b) {\n\t\tSystem.out.println(\"Jumlah 2 angka (double+int) = \" + (a + b));\n\t}", "private int Sum0(int x) {\n int a = ROTR(2, x);\n int b = ROTR(13, x);\n int c = ROTR(22, x);\n int ret = a ^ b ^ c;\n return ret;\n }", "public void add (double a , int b) {\n\t\tdouble c=a+b;\r\n\t\tSystem.out.println(\"Sum of numbers is : \" + c);\r\n\t}", "public int suma(){\r\n return x+y;\r\n }", "public static int Add(int a, int b){\n\t\t\treturn (a+b);\n\t\t\t\n\t\t}", "public double add(int a, int b){\r\n return a + b;\r\n }", "int method01(int a, int b) {\n\n\t\ta = a + b;\n\t\treturn a;\n\t}", "public double resta(double a, double b) {\n\t\treturn a-b;\n\t}", "public int add(int a, int b) //add method take two int values and returns the sum\n {\n int sum = a + b;\n return sum;\n }", "private void addDefInt(double a, double b) {\n double eb, ea;\n this.addInt();\n eb = this.iaa * Math.pow(b, 4) + this.iba * Math.pow(b, 3) + this.ica * Math.pow(b, 2) + this.ida * b;\n ea = this.iaa * Math.pow(a, 4) + this.iba * Math.pow(a, 3) + this.ica * Math.pow(a, 2) + this.ida * a;\n this.adddefint = eb - ea;\n }", "int getSuma();", "public void add(double a, int b)\n\t{\n\t\tdouble sum = a+b;\t\t\t\t\n\t\tSystem.out.println(\"Sum of numbers is \"+sum);\n\t}", "public static int sum(int[] a) {\n int sum = 0;\n for (int i = 0; i < a.length; i = i + 1) {\n sum = sum + a[i];\n }\n return sum;\n }", "public int a(bzl ☃, bzg bzg1, int i, int j) {\r\n/* 13 */ if (i == -bzg1.a() && j == -bzg1.b() && bzg1.a() > -bzg1.c() && bzg1.a() <= 0 && bzg1.b() > -bzg1.d() && bzg1.b() <= 0) {\r\n/* 14 */ return 1;\r\n/* */ }\r\n/* */ \r\n/* 17 */ return (☃.a(10) == 0) ? 1 : bzy.c;\r\n/* */ }", "private long getChecksumForIntermediateValues(long a, long b) {\n return (long) (a + (b * Math.pow(2, 16)));\n }", "private static int paritySumFib(int a, int b, int parity, int n) {\n\t\tint sum = 0;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (fib(a,b,i) % 2 == parity) sum += fib(a,b,i);\n\t\t}\n\t\treturn sum;\n\t}", "public static double total(double a, double b, double c, double d) {\n \n double tot = 0;\n\n for (double w = 1; w <= a; w++) {\n for (double x = w; x <= b; x++) {\n double temp = c - x + 1;\n temp *= (c - 2*d + x - 2);\n temp /= 2;\n temp = 0 - temp;\n tot += temp;\n }\n }\n\n return tot;\n }", "public static double somar(double a, double b) {\n\t\treturn a + b;\r\n\t}", "public static int eval(NslInt0 a, int b) {\n return a.getint()*b;\n }", "@Override\r\n\tpublic int addNo(int a, int b) {\n\t\treturn a+b;\r\n\t}", "@Override\r\n\tpublic int add(int a,int b) {\n\t\treturn a+b;\r\n\t}", "private int[][] matrixSum(int[][] a, int[][]b) {\n\t\tint row = a.length;\n\t\tint col = a[0].length;\n\t\t// creat a matrix array to store sum of a and b\n\t\tint[][] sum = new int[row][col];\n\t\t\n\t\t// Add elements at the same position in a matrix array\n\t\tfor (int r = 0; r < row; r++) {\n\t\t\tfor (int c = 0; c < col; c++) {\n\t\t\t\tsum[r][c] = a[r][c] + b[r][c]; \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn sum;\n\t}", "@Override\r\n\tpublic int umul(int a,int b) {\n\t\treturn a/b;\r\n\t}", "static int getMoneySpent(int[] keyboards, int[] drives, int b) {\n int max = 0, sum = 0;\n for (int i = 0; i < keyboards.length; i++) {\n for (int j = 0; j < drives.length; j++) {\n sum = keyboards[i] + drives[j];\n\n if (sum >= max && sum <= b){\n max = sum;\n\n }\n }\n }\n\n if (max == 0) return -1;\n return max;\n\n }", "public double calculatePrice(double a, int b) {\n\t\treturn a * b;\r\n\t}", "public double defInt(double a, double b) {\n double fa, fb;\n fb = (this.a * (Math.log(1.0 / Math.pow(Math.cos(this.b * b + this.c), 2)))\n + this.d * (2 * this.b * b - PI)) / (2 * this.b);\n fa = (this.a * (Math.log(1.0 / Math.pow(Math.cos(this.b * a + this.c), 2)))\n + this.d * (2 * this.b * a - PI)) / (2 * this.b);\n return fb - fa;\n }", "public void doCalculation(int a ,int b , int c){\r\n\t \r\n\tint finalValue = variableNumber(a)-add(b,c);\r\n\t \r\n System.out.println(finalValue);\r\n\t \r\n\t}", "public static void sign(double a, double b) {\n\t\tif (a >= 0 && b >= 0 || a <= 0 && b <= 0) {\n\t\t\tSystem.out.println(\"+\");\n\t\t} else {\n\t\t\tSystem.out.println(\"-\");\n\t\t}\n\t}", "public static int mod(int a,int b) {\n\t\tif (b == 0) return 0;\n\t\tif (b<0) {\n\t\t\treturn -mod(-a,-b);\n\t\t} else if(a<0) {\n\t\t\twhile (Math.abs(a-b)>b)a+=b;\n\t\t\treturn a;\n\t\t} else {\n\t\t\twhile (a-b>=0) a-=b;\n\t\t\treturn a;\n\t\t}\n\t\t\n\t}" ]
[ "0.7634268", "0.73987776", "0.73502505", "0.7196741", "0.7115407", "0.69648755", "0.6925283", "0.6911211", "0.68881094", "0.6736592", "0.6707846", "0.6605175", "0.6584502", "0.6574174", "0.6572264", "0.6568178", "0.6555204", "0.65477574", "0.6532756", "0.6509189", "0.64940256", "0.6475603", "0.6469882", "0.64547247", "0.6422194", "0.64204454", "0.63678205", "0.63417816", "0.6266438", "0.6223652", "0.62062913", "0.6200742", "0.6197914", "0.618824", "0.61791646", "0.617257", "0.6148559", "0.6124773", "0.610626", "0.6055303", "0.6042375", "0.6008688", "0.6003386", "0.5984784", "0.5982561", "0.5959232", "0.59425884", "0.5920806", "0.5912851", "0.5908467", "0.5896493", "0.58919686", "0.5891011", "0.58856106", "0.58842194", "0.58757865", "0.5874703", "0.58685744", "0.58465", "0.58366376", "0.58352274", "0.58336353", "0.58288985", "0.582202", "0.582202", "0.57719105", "0.5771032", "0.57707375", "0.57690024", "0.5761866", "0.575759", "0.5734399", "0.5730383", "0.5693237", "0.56469", "0.5632108", "0.5629535", "0.562404", "0.56206566", "0.56190115", "0.56127566", "0.5612316", "0.56096876", "0.56081194", "0.5604703", "0.5603206", "0.5603205", "0.5595284", "0.5580725", "0.55747086", "0.5567843", "0.5565693", "0.5520054", "0.551558", "0.5514755", "0.5513111", "0.55119133", "0.5507222", "0.55070615", "0.5506961" ]
0.62413424
29
Write a method to shuffle a deck of cards. It must be a perfect shuffle in other words, each 52! permutations of the deck has to be equally likely. Assume that you are given a random number generator which is perfect.
@Test public void test2() { int[] deck = new int[] {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; shuffle(deck); String prepend = ""; for (int i : deck) { System.out.print(prepend + i); prepend = ", "; } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shuffleDeck() {\n\t\tint numberOfShuffles = (int) ( Math.random() * 4 + 1 ) ;\n\t\tCard temp;\n\t\t\n\t\tfor( int j = 0; j < numberOfShuffles; j++ ) {\n\t\t\tfor( int i = 0; i < deck.length; i++ ) {\n\t\t\t\tint randSwitchNum = (int) (Math.random() * 52);\n\t\t\t\ttemp = deck[i];\n\t\t\t\tdeck[i] = deck[randSwitchNum];\n\t\t\t\tdeck[randSwitchNum] = temp;\n\t\t\t}\n\t\t}\t\n\t}", "public void shuffle(){\r\n int randomPos;\r\n //for each card in the deck\r\n for(int i=0; i<52; i++){\r\n randomPos = getRandomPos(i);\r\n exchangeCards(i, randomPos);\r\n }\r\n topCardIndex = 0;\r\n\t}", "public void shuffle()\n\t{\n\t\tHashSet<Integer> usedRandoms = new HashSet<Integer>();\n\t\tthis.currentCard = 0;\n\t\tint i= 0;\n\t\twhile (i < deck.length)\n\t\t{\n\t\t\tint another = this.rand.nextInt(NUMBER_OF_CARDS);\n\t\t\tif(!usedRandoms.contains(another))\n\t\t\t{\n\t\t\t\tCard temp = this.deck[i];\n\t\t\t\tthis.deck[i] = this.deck[another];\n\t\t\t\tthis.deck[another] = temp;\n\t\t\t\ti++;\n\t\t\t\tusedRandoms.add(another);\n\t\t\t}\n\t\t}\n\t}", "public void shuffle(){\n Collections.shuffle(this.deckOfCards);\n }", "public void shuffle() {\n\t\tRandom randIndex = new Random();\n\t\tint size = cards.size();\n\t\t\n\t\tfor(int shuffles = 1; shuffles <= 20; ++shuffles)\n\t\t\tfor (int i = 0; i < size; i++) \n\t\t\t\tCollections.swap(cards, i, randIndex.nextInt(size));\n\t\t\n\t}", "public void shuffle() {\n\t\tfor (int i = deck.length - 1; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tCard temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcardsUsed = 0;\n\t}", "public void Shuffle() {\n int i = 0;\n while (i < 52) {\n int rando = (int) (5.0 * (Math.random()));\n Cards temp = deck[rando];\n deck[rando] = deck[i];\n deck[i] = temp;\n i++;\n }\n\n Arrays.stream(deck).forEach(c -> System.out.format(\"%s,\",c));\n }", "public void shuffle() {\n List<Card> shuffledCards = new ArrayList<>(52);\n while (cards.size() > 0) {\n int index = random.nextInt(cards.size());\n shuffledCards.add(cards.remove(index));\n }\n cards = shuffledCards;\n }", "public void shuffle(){ \n \n Collections.shuffle(cardDeck);\n /*Random rand = new Random();\n for(int i = 0 ; i < 110 ; i++){\n int firstCard = rand.nextInt(110);\n int secondCard = rand.nextInt(110);\n Collections.swap(cardDeck,firstCard,secondCard);\n }*/\n }", "public void spreadShuffle()\r\n {\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n List<Card> tempDeck = null;\r\n for (int i = 0; i < SHUFFLE_COUNT; i++) {\r\n while (cards.size() > 0)\r\n {\r\n shuffledDeck.add( drawRandom() );\r\n }\r\n tempDeck = cards;\r\n cards = shuffledDeck;\r\n tempDeck.clear();\r\n shuffledDeck = tempDeck;\r\n }\r\n }", "public void shuffleDeck() {\n for (int i = 0; i < TOTAL_NUMBER_OF_CARDS - 1; i++) {\n Random r = new Random();\n int x = r.nextInt(TOTAL_NUMBER_OF_CARDS);\n Card y = deck.get(x);\n deck.set(x, deck.get(i));\n deck.set(i, y);\n }\n }", "public static int[] shuffle(int[] deck){\n\t\tRandom rnd = new Random();\n\t for (int i = deck.length - 1; i > 0; i--)\n\t {\n\t int index = rnd.nextInt(i + 1);\n\t int a = deck[index];\n\t deck[index] = deck[i];\n\t deck[i] = a;\n\t }\n\t return deck;\n\t}", "void shuffleDeck() {\n\t\tfor(int index = 0; index < this.getNumberOfCards(); index++) {\n\t\t\tint randomNumber = index + (int)(Math.random() * (this.getNumberOfCards() - index));\n\t\t\tCard temp = this.cardsInDeck[randomNumber];\n\t\t\tthis.cardsInDeck[randomNumber] = this.cardsInDeck[index];\n\t\t\tthis.cardsInDeck[index] = temp;\n\t\t}\n\t}", "public void shuffle() {\n\t\tfor (int i = 51; i > 0; i--) {\n\t\t\tint rand = (int) (Math.random() * (i + 1));\n\t\t\tint temp = deck[i];\n\t\t\tdeck[i] = deck[rand];\n\t\t\tdeck[rand] = temp;\n\t\t}\n\t\tcurrentPosition = 0;\n\t}", "public void shuffle(){\r\n Collections.shuffle(cards);\r\n }", "public void shuffle(){\n\n // resetting the int counters\n nextCard = 0;\n nextDiscardedPlace = 0;\n discardPile = new PlayingCard[Constants.DECK_SIZE];\n\n PlayingCard temp = null;\n Random rand = new Random();\n\n for(int i = 0; i < MAX_SHUFFLE; i++) {\n int pos1 = rand.nextInt(Constants.DECK_SIZE);\n int pos2 = rand.nextInt(Constants.DECK_SIZE);\n\n temp = deck[pos1];\n deck[pos1] = deck[pos2];\n deck[pos2] = temp;\n }\n }", "private void shuffleOnceRandom(){\n\t\t//You need to have a copy of the deck before you shuffled it so you can reference\n\t\t//It when you are trying to replace the new values\n\t\tList<Card> beforeShuffle = ourDeck.makeCopy().getCurrentDeck();\n\t\t//The topIndex tells us where we are in reference to the top half of the deck\n\t\t//Same with bottom this helps us reference the original deck to get whatever\n\t\t//Card we need and the deckIndex helps us put it in the correct spot\n\t\tint topIndex = 0, bottomIndex = ourDeck.getSize() / 2, deckIndex = 0;\n\t\t//These ints help us keep track of how many cards are left in each half\n\t\tint remainingTop = ourDeck.getSize() / 2, remainingBot = ourDeck.getSize() / 2;\n\t\tboolean shouldLoop = true;\n\t\t//This is the shuffling loop\n\t\twhile(shouldLoop){\n\t\t\t//This means the number coming from the specific deck which in this method is random\n\t\t\tint numTop = generator.nextInt(RAND_BOUND), numBot = generator.nextInt(RAND_BOUND);\n\t\t\t//After we determine the random number of cards we're using we have to do some checks\n\t\t\t//This means we wanted more than there was less therefore the stack is out\n\t\t\t//This is the stopping condition for the loop\n\t\t\tif(numTop >= remainingTop){\n\t\t\t\tnumTop = remainingTop;\n\t\t\t\tnumBot = remainingBot;\n\t\t\t\tshouldLoop = false;\n\t\t\t}\n\t\t\t\t\n\t\t\tif(numBot >= remainingBot){\n\t\t\t\tnumTop = remainingTop;\n\t\t\t\tnumBot = remainingBot;\n\t\t\t\tshouldLoop = false;\n\t\t\t}\n\t\t\t//This is where I replace the newCard into ourDeck\n\t\t\t//I iterate for the number of times we take from the top or bottom\n\t\t\tfor(int i = 1; i <= numTop; i++){\t\n\t\t\t\tCard newCard = beforeShuffle.get(topIndex);\t//I get the card we want to move\n\t\t\t\tourDeck.setCard(newCard, deckIndex);\t\t//Then I move it to the new deckIndex\n\t\t\t\ttopIndex++;\tdeckIndex++;\n\t\t\t}\n\t\t\tfor(int i = 1; i <= numBot; i++){\n\t\t\t\tCard newCard = beforeShuffle.get(bottomIndex);\n\t\t\t\tourDeck.setCard(newCard, deckIndex);\n\t\t\t\tbottomIndex++;\tdeckIndex++;\n\t\t\t}\n\t\t\tremainingTop = remainingTop - numTop;\n\t\t\tremainingBot = remainingBot - numBot;\n\t\t}\n\t}", "public void Shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "public void shuffle();", "public void shuffle(){\n Collections.shuffle(Arrays.asList(this.deck));\n }", "public void shuffle() {\r\n for ( int i = deck.size()-1; i > 0; i-- ) {\r\n int rand = (int)(Math.random()*(i+1));\r\n SpoonsCard temp = deck.get(i);\r\n deck.set(i, deck.get(rand));\r\n deck.set(rand, temp);\r\n }\r\n cardsUsed = 0;\r\n }", "void shuffle();", "void shuffle();", "public void shuffleDeck() {\n\t\tCollections.shuffle(deck);\n\t}", "public static void shuffle(int[] deck){\n //temporary variable for swapping the values\n int storage = 0;\n //random integer\n int randomInt;\n for(int i = 0; i < deck.length; i++){\n //set the variable equal to a random integer every time\n randomInt = (int) (Math.random() * (deck.length));\n //store the original deck[i] in storage\n //swap deck[i] and deck[randomInt]\n storage = deck[i];\n deck[i] = deck[randomInt];\n deck[randomInt] = storage;\n }\n }", "public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t\t// : Shuffle with random seed each time, then we can save the seed\r\n\t\t// Collections.shuffle(cards, new Random(10));\r\n\t}", "@Override\n\tpublic void shuffleDeck() {\n\t\tfor(int i = 0; i < 1000000; i++) {\n\t\t\tint randomStelle1 = (int) (Math.random() * 32);\n\t\t\tint randomStelle2 = (int) (Math.random() * 32);\n\t\t\tPlayingCard copy = aktuellesDeck[randomStelle1];\n\t\t\taktuellesDeck[randomStelle1] = aktuellesDeck[randomStelle2];\n\t\t\taktuellesDeck[randomStelle2] = copy;\n\t\t}\n\t}", "public void shuffle(){\n //After shuffling dealing starts at deck[0] again\n currentCard = 0;\n //for each card , pick another random card and swap them\n for(int first = 0; first < deck.length; first++){\n int second = randomNumbers.nextInt(NUMBER_OF_CARDS);\n\n //Swap Method to swap current card with randomly selected card\n Card temp = deck[first];\n deck[first] = deck[second];\n deck[second] = temp;\n }\n }", "public void shuffle() {\r\n for (int i = 0; i < this.numCards; i++) {\r\n int spot = (int) (Math.random() * ((this.numCards - 1) - i + 1) + i);\r\n Card temp = cards[i];\r\n cards[i] = cards[spot];\r\n cards[spot] = temp;\r\n\r\n\r\n }\r\n }", "public void shuffle() {\n Collections.shuffle(deck);\n }", "public void shuffle() {\n Collections.shuffle(deck);\n }", "@Test\n public void testShuffleGood() {\n System.out.println(\"shuffleGood\");\n Deck deck = new Deck();\n boolean shuffled = false;\n deck.shuffle();\n //we take out one card from the deck\n Card lastCard = deck.nextCard();\n //we take out 58 more cards\n for (int i =0 ; i<57;i++)\n {\n deck.nextCard();\n }\n //we take out the last card from the deck\n Card firstCard = deck.nextCard();\n \n //if both cards = the same value they were before being shuffled, then test will fail.\n if (lastCard.getValue() != CardType.WILDCARD )\n shuffled = true;\n else if (firstCard.getValue()!=CardType.ZERO)\n shuffled = true;\n \n //if either of the cards are different, that means the deck was shuffled and the test will pass\n assertEquals(true, shuffled);\n }", "public void shuffle(int numShuffles)\n { \n Card tempCard;\n int switchOne, switchTwo;\n\n for (int i=0; i<numCards; i++){\n switchOne = rand.nextInt(numCards);\n switchTwo = rand.nextInt(numCards);\n\n tempCard = cardAry[switchOne];\n cardAry[switchOne] = cardAry[switchTwo];\n cardAry[switchTwo] = tempCard; \n }\n\n if(cardAry.length > 1 && cardAry.length <=5 && isSorted()==true)\n shuffle(2);\n }", "public void shuffle()\n\t{\n\t\tCollections.shuffle(card);\n\t}", "public void shuffle() {\r\n\t\tCollections.shuffle(cards);\r\n\t}", "public void shuffle() {\n for (int i = 0; i < this.cards.length ; i++ ) {\n double x = Math.floor(Math.random() * ((double)this.cards.length - (double)0)) + (double)0;\n Card temp = this.cards[i];\n this.cards[i]= this.cards[(int)x];\n this.cards[(int)x]= temp;\n }\n }", "public void shuffle() {\n\t\tCollections.shuffle(cards);\n\t}", "public void shuffleDeck() {\n\t\tCollections.shuffle(this.deck);\n\t}", "public Deck randomShuffle(){\n\t\tshuffleOnceRandom();\n\t\tshuffleOnceRandom();\n\t\treturn ourDeck;\n\t}", "public void shuffle() {\n\t\tfor (int i = 0; i < cards.size(); i++){\n\t\t\t//exchange card i with the random card from i to cards.size() - 1\n\t\t\tint j = Randoms.randomIntInRange(i, cards.size() - 1);\n\t\t\tT c1 = cards.get(i);\n\t\t\tT c2 = cards.get(j);\n\t\t\tcards.set(i, c2);\n\t\t\tcards.set(j, c1);\n\t\t}\n\t}", "public void shuffle()\r\n\t{\r\n\t\tRandom rand = ThreadLocalRandom.current();\r\n\t\t\r\n\t\tfor (int i = topCard; i > 0; i--)\r\n\t\t{\r\n\t\t\tint index = rand.nextInt(i + 1);\r\n\t\t\tString temp = cards[index];\r\n\t\t\tcards[index] = cards[i];\r\n\t\t\tcards[i] = temp;\r\n\t\t}\r\n\t}", "public static int[] createShuffledDeck(){\n //create a deck\n int[] deck = new int[52];\n //make each item their respective index + 1 to avoid repetition\n for(int i = 0; i < deck.length; i++){\n deck[i] = i+1;\n }\n //shuffle deck\n shuffle(deck);\n return deck;\n }", "public void shuffle() {\n\t\tRandom random = new Random();\n\t\tint dealtCards = this.dealtCards.get();\n\t\tfor (int i = dealtCards; i < Deck.DECK_SIZE; i++) {\n\t\t\t// Obtain random position for available cards.\n\t\t\tint randomNumber = dealtCards + random.nextInt((Deck.DECK_SIZE - dealtCards));\n Card tempCard = cards.get(i);\n // Swap cards position.\n cards.set(i, cards.get(randomNumber));\n cards.set(randomNumber, tempCard);\n }\n\t}", "public void hinduShuffle()\r\n {\r\n List<Card> cut = new ArrayList<Card>();\r\n List<Card> cut2 = new ArrayList<Card>();\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n int cutPoint = 0;\r\n int cutPoint2 = 0;\r\n for (int x = 0; x < SHUFFLE_COUNT; x++) {\r\n cutPoint = rand.nextInt( cards.size()-1 );\r\n cutPoint2 = rand.nextInt( cards.size() - cutPoint ) + cutPoint;\r\n for (int i = 0; i < cutPoint; i++) {\r\n cut.add(draw());\r\n }\r\n for (int i = cutPoint2; i < cards.size(); i++) {\r\n cut2.add(draw());\r\n }\r\n for (int i = 0; i < cut.size(); i++) {\r\n shuffledDeck.add(cut.remove(0));\r\n }\r\n for (int i = 0; i < cards.size(); i++) {\r\n shuffledDeck.add(cards.remove(0));\r\n }\r\n for (int i = 0; i < cut2.size(); i++) {\r\n shuffledDeck.add(cut2.remove(0));\r\n }\r\n cut = cards;\r\n cut.clear();\r\n cut2.clear();\r\n cards = shuffledDeck;\r\n }\r\n }", "public void shuffle() {\n Random rand = new Random();\n for(int i = 0; i < deck.length; i++) {\n // get random index past current index\n int randomVal = i + rand.nextInt(deck.length - i);\n // swaps randomly selected card with card at index i\n Card swap = deck[randomVal];\n deck[randomVal] = deck[i];\n deck[i] = swap;\n }\n }", "Vector<Card> shuffleDeck(Vector<Card> cards)\n\t{\n\t Collections.shuffle(cards);\n\t return cards;\n\t}", "public Card[] shuffleDeck(Card[] deck, int decks) {\n Random rnd = new Random();\n Card temp;\n\n int numCards = 52 * decks;\n\n if (decks < 1)\n numCards = 52;\n\n //Iterate through the deck\n for (int i = 0; i < numCards; i++) {\n //Get a random index\n int random = rnd.nextInt(52);\n\n //Swap the current card with the random index\n temp = deck[random];\n deck[random] = deck[i];\n deck[i] = temp;\n }\n\n //Return the shuffled deck\n return deck;\n }", "public void shufflePerfectly() {\n\n ArrayList<Card> topDeck = new ArrayList<Card>(), botDeck = new ArrayList<Card>();\n for (int i = cards.size()-1; i >= 0; i--) {\n Card shuffleCard = null;\n try {\n shuffleCard = cards.get(i);\n }\n catch (Exception e) {\n // If card does not exist\n }\n if (shuffleCard != null) {\n if (i >= cards.size() / 2) {\n topDeck.add(shuffleCard);\n }\n else {\n botDeck.add(shuffleCard);\n }\n }\n }\n int len;\n boolean equalStacks = false;\n Card extraCard = null;\n\n if (topDeck.size() == botDeck.size()) {\n equalStacks = true;\n len = topDeck.size();\n }\n else {\n if (topDeck.size()>botDeck.size()) {\n len = botDeck.size();\n extraCard = topDeck.get(topDeck.size()-1);\n }\n else {\n len = topDeck.size();\n extraCard = botDeck.get(botDeck.size()-1);\n }\n }\n\n ArrayList<Card> shuffledDeck = new ArrayList<Card>();\n\n for (int i = len-1; i >= 0; i--) {\n // Shuffle the cards\n shuffledDeck.add(botDeck.get(i));\n shuffledDeck.add(topDeck.get(i));\n\n }\n if (!equalStacks) {\n shuffledDeck.add(extraCard);\n }\n\n ArrayList<Card> newDeck = new ArrayList<Card>();\n\n for (int i = 0; i < shuffledDeck.size(); i++) {\n newDeck.add(shuffledDeck.get(i));\n }\n cards = newDeck;\n }", "protected void shuffle(List<Card> deck) {\n Collections.shuffle(deck);\n }", "public void shuffle() {\n\t\t\t/*\n\t\t\t * This is very different from the sort method because:\n\t\t\t * @ we decant the cards into an array list;\n\t\t\t * @ we use a library function to do the work;\n\t\t\t * The implementation you write for the sort method should\n\t\t\t * have *neither* of these characteristics.\n\t\t\t */\n\t\t\tList<Card> cards = new ArrayList<Card>();\n\t\t\twhile (!isEmpty()) {\n\t\t\t\tcards.add(draw());\n\t\t\t}\n\t\t\tCollections.shuffle(cards);\n\t\t\tfor (Card c: cards) {\n\t\t\t\tadd(c);\n\t\t\t}\n\t\t}", "public void shuffle()\r\n {\r\n // We will start from the last element and swap the cards one by one. We actually\r\n // don't need to swap the last element.\r\n for (int i = valid - 1; i > 0; i --) { \r\n \r\n // By using Math.random, we will get a random integer from 0 to i\r\n int j = (int) ( (i+1) * Math.random()); \r\n \r\n // Swapping with the help of temp instance of Card Class.\r\n Card temp = cards[i]; \r\n cards[i] = cards[j]; \r\n cards[j] = temp; \r\n } \r\n // Prints the random array \r\n }", "public void shuffleCards() {\n Collections.shuffle(suspectCards);\n Collections.shuffle(weaponCards);\n Collections.shuffle(roomCards);\n\n }", "public void shuffle() {\n deck.clear();\n deck.addAll(allCards);\n Collections.shuffle(deck, new Random(System.nanoTime()));\n }", "private void shuffleDeck()\r\n {\n cardList = new ArrayList<Card>(deck);\r\n // shuffle the deck of cards using the ArrayList\r\n Collections.shuffle(getCardList());\r\n // convert it back to a HashSet\r\n deck = new HashSet<Card>(getCardList());\r\n }", "private void shuffleAndGiveCards() {\n\n List<Card> tmpDeck= new ArrayList<Card>(deck); \n Collections.shuffle(tmpDeck, shuffleRng);\n \n for (int i=0; i<players.size(); ++i) {\n int startIndex= Jass.HAND_SIZE*i; //So for player 0 the startIndex will be 0, for player2 9, etc...\n int endIndex = Jass.HAND_SIZE*(i+1); //So for player 1 the endIndex will be 9, for player2 18, etc...\n\n CardSet hand= CardSet.of(tmpDeck.subList(startIndex, endIndex));\n PlayerId player = PlayerId.ALL.get(i);\n\n players.get(player).updateHand(hand);\n handsOfCards.put(player, hand); \n }\n }", "public void shuffle() {\n\n\tcardsLeft = cards.length;\n\tfor (int i=cards.length-1; i>=0; --i) {\n\n\t int r = (int)(Math.random()*(i+1)); // pick a random pos <= i\n\n\t Card t = cards[i];\n\t cards[i] = cards[r];\n\t cards[r] = t;\n\n\t}\n }", "@Test\n public void reshuffle() {\n for(int i=0;i<10;i++){\n Shoe s = new Shoe(i);\n\n //draw a part of the cards\n for(int j=0;j<i*30;j++){\n s.drawCard();\n }\n\n s.reshuffle();\n Assert.assertEquals(i*Deck.getNumCardsInDeck(),s.getShoe().size());//checks if amount of cards is correct\n //shuffle is allready tested\n }\n\n System.out.println(\"reshuffle() is working fine\");\n }", "public boolean shuffleNeeded();", "public void shuffle()\r\n {\r\n Collections.shuffle(cards);\r\n top = NUMCARDS - 1;\r\n }", "void shuffle() {\r\n cards.addAll(dealtCards);\r\n dealtCards.removeAll(dealtCards);\r\n Collections.shuffle(cards);\r\n System.out.println(\"Shuffled cards\" + cards);\r\n }", "public void RandomizeTheDeck() {\r\n ArrayList<ArrayList<Card>> alalCopy = new ArrayList<>();\r\n int i, iRand;\r\n Random rand = new Random();\r\n \r\n // remove deck to the copy\r\n for( i=0; i<104; i++) {\r\n alalCopy.add( alalSets.get(i) );\r\n }\r\n alalSets.clear();\r\n \r\n // randomly copy them back as copy size gets smaller\r\n for( i=104; i>0; i-- ) {\r\n iRand = (int)rand.nextInt(i);\r\n alalSets.add( alalCopy.remove(iRand) );\r\n }\r\n }", "public void RefillDeck(boolean shuffle)\n\t{\n\t\tDeck newDeck = ((shuffle) ? new Deck(true) : new Deck(false));\n\t\t\n\t\tfor(int x=cardNumber; x < 52; x++)\n\t\t{\n\t\t\tthis.card[cardNumber] = newDeck.nextCard();\n\t\t\tthis.cardNumber++;\n\t\t}\n\t}", "private void shuffleCards(final ICard[] myCards) {\r\n ICard tmp;\r\n int rand;\r\n for (int i = ZERO; i < myCards.length; i++) {\r\n rand = rmd.nextInt(myCards.length);\r\n tmp = myCards[i];\r\n myCards[i] = myCards[rand];\r\n myCards[rand] = tmp;\r\n }\r\n }", "@Test\n void shuffleTest() {\n CardDeck deck = new CardDeck(testCardTexts);\n int[] occurences = new int[testCardTexts.length];\n int numberOfCards = testCardTexts.length;\n int numberOfDraws = 10000;\n\n for (int i = 0; i < numberOfDraws ; i++) {\n //Shuffles deck\n deck.shuffle();\n\n //Draws upper card and gets id - increments occurence\n occurences[deck.draw().getId()]++;\n }\n\n for (int i = 0; i < testCardTexts.length; i++) {\n assertTrue(occurences[i]<(numberOfDraws/numberOfCards)+50 && occurences[i]> (numberOfDraws/numberOfCards)-50);\n }\n\n }", "public int Shuffle_Distribute(int numberOfPlayers)\n\t{\n\t\t//put 52 cards in a list and shuffle them\n\t\tArrayList<String> pokerToUse = new ArrayList<String>(Arrays.asList(pokerCards));\n\t\tCollections.shuffle(pokerToUse);\n\t\t//based on how many people play\n\t\tint whoStarts=0;\n\t\tswitch(numberOfPlayers)\n\t\t{\n\t\t\t\n\t\t\tcase 2:\n\t\t\t\tuser1card = new ArrayList<String>();\n\t\t\t\tuser2card = new ArrayList<String>();\n\t\t\t\t//give 13 cards to each player\n\t\t\t\tfor(int i=0;i<13;i++)\n\t\t\t\t{\n\t\t\t\t\t//give a random card to the first player\n\t\t\t\t\tint idx1 = new Random().nextInt(pokerToUse.size());\n\t\t\t\t\tString random1 = pokerToUse.get(idx1);\n\t\t\t\t\tpokerToUse.remove(idx1);\n\t\t\t\t\tuser1card.add(random1);\n\t\t\t\t\t//give a random card to the second player\n\t\t\t\t\tint idx2 = new Random().nextInt(pokerToUse.size());\n\t\t\t\t\tString random2 = pokerToUse.get(idx2);\n\t\t\t\t\tpokerToUse.remove(idx2);\n\t\t\t\t\tuser2card.add(random2);\n\t\t\t\t}\t\n\t\t\t\tboolean findWhoStarts = false;\n\t\t\t\tint cardNumber=4;\n\t\t\t\twhile(findWhoStarts==false)\n\t\t\t\t{\n\t\t\t\t\tString card = new StringBuilder(\"h\").append(Integer.toString(cardNumber)).toString();\n\t\t\t\t\tif(user1card.contains(card))\n\t\t\t\t\t{\n\t\t\t\t\t\tfindWhoStarts=true;\n\t\t\t\t\t\twhoStarts=1;\n\t\t\t\t\t}\n\t\t\t\t\telse if(user2card.contains(card))\n\t\t\t\t\t{\n\t\t\t\t\t\tfindWhoStarts=true;\n\t\t\t\t\t\twhoStarts=2;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfindWhoStarts=false;\n\t\t\t\t\t\tcardNumber++;\n\t\t\t\t\t\t//it's rarely possible no one has a heart car. If it happesn, re shuffle \n\t\t\t\t\t\tif (cardNumber==14)\n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\twhoStarts=99;//error needs reshuffle\n\t\t\t\t\t\t\tbreak;\n\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\t\n\t\t\t\tbreak;\t\t\t\t\n\t\t\tdefault:\n\t\t\t\twhoStarts=0;\n\t\t\t\tbreak;\n\t\t\n\t\t}\t\n\t\treturn whoStarts;\n\t}", "public static void shuffle(Card[] cards) {\n for (int i = 0; i < cards.length - 1; i++) {\n int j = i + (int)((cards.length - i) * Math.random());\n swap(i, j, cards);\n }\n }", "private void createShuffleAndAddCards() {\n //Creating all 108 cards and saving them into an arraylist\n ArrayList<Card> cards = new ArrayList<>();\n String[] colors = {\"red\", \"blue\", \"yellow\", \"green\"};\n for (String color : colors) {\n for (int i = 1; i < 10; i++) {\n for (int j = 0; j < 2; j++) {\n cards.add(new Card(\"Numeric\", color, i));\n }\n }\n cards.add(new Card(\"Numeric\", color, 0));\n for (int i = 0; i < 2; i++) {\n cards.add(new Card(\"Skip\", color, 20));\n cards.add(new Card(\"Draw2\", color, 20));\n cards.add(new Card(\"Reverse\", color, 20));\n }\n }\n for (int i = 0; i < 4; i++) {\n cards.add(new Card(\"WildDraw4\", \"none\", 50));\n cards.add(new Card(\"WildColorChanger\", \"none\", 50));\n }\n //shuffling cards and adding them into the storageCards main list\n Collections.shuffle(cards);\n for (Card card : cards) {\n storageCards.add(card);\n }\n cards.clear();\n }", "public void shuffle() {\n //Beginning with the top card, decrement i until i is 0.\n for (int i = this.topCard - 1; i >= 0; i--) {\n Card tmpCard = this.cards[i]; //Store the card at i, since it will be overwritten.\n //Choose a random card position from within the deck.\n int randomPosition = (int) (Math.random() * (this.topCard - 1));\n //Take the card from the random position and store it in the ith position.\n this.cards[i] = this.cards[randomPosition];\n //Take the card from the ith position, and put it into the randomly chosen position.\n this.cards[randomPosition] = tmpCard;\n //The cards have now been swapped.\n }\n }", "public void zipShuffle() {\r\n List<Card> half = new ArrayList<Card>();\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n List<Card> tempDeck = null;\r\n for (int x = 0; x < SHUFFLE_COUNT; x++) {\r\n int h = cards.size()/2;\r\n for (int i = 0; i < h; i++) {\r\n half.add(draw());\r\n }\r\n int j = 0;\r\n while ((half.size() + cards.size()) > 0) {\r\n if (half.size() > 0 && cards.size() > 0) {\r\n if (j % 2 == 0) {\r\n shuffledDeck.add(half.remove(0));\r\n } else {\r\n shuffledDeck.add(draw());\r\n }\r\n } else if (half.size() > 0) {\r\n shuffledDeck.add(half.remove(0));\r\n } else if (cards.size() > 0) {\r\n shuffledDeck.add(draw());\r\n }\r\n j++;\r\n }\r\n tempDeck = cards;\r\n cards = shuffledDeck;\r\n half.clear();\r\n shuffledDeck = tempDeck;\r\n shuffledDeck.clear();\r\n }\r\n }", "@Override\r\n public void dealerShuffleDeck(){\r\n this.dealer.shuffleDecks();\r\n }", "public void shuffle() {\n for (int i = size - 1; i > 0; i--) {\n swap(i, (int)(Math.random() * (i + 1)));\n }\n }", "public abstract void shuffled();", "public static void perfectShuffle(int[] values) {\r\n\t\tint[] shuffled = new int[values.length]; //placeholder array\r\n\t\tint k = 0; //placeholder variables\r\n\t\tint i = 0;\r\n\t\tint halfDeck; //initialozes half the deck\r\n\t\t\r\n\t\tif(values.length % 2 == 0) //if the deck is even, split at the halfway point\r\n\t\t{\r\n\t\t\thalfDeck = values.length / 2;\r\n\t\t}\r\n\t\telse //if the deck is odd, split at halfway point\r\n\t\t{\r\n\t\t\thalfDeck = (values.length + 1) / 2;\r\n\t\t}\r\n\t\t\r\n\t\twhile(i < halfDeck) //while in the first half of the deck\r\n\t\t{\r\n\t\t\tshuffled[k] = values[i]; //assigns i in values to k in shuffled\r\n\t\t\tk = k + 2; //increments location by two, leaving an empty space\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t\tk = 1; //sets placeholder to 1, to fill odd positions\r\n\t\ti = halfDeck; //sets i placeholder to the halfway point of the deck\r\n\t\twhile(i < values.length) //while in the second half\r\n\t\t{\r\n\t\t\tshuffled[k] = values[i]; //assigns i in values to k in shuffled\r\n\t\t\tk = k + 2;//increments location by two, filling the empty spaces\r\n\t\t\ti++; //increments counter\r\n\t\t}\r\n\t\t\r\n\t\tfor( int j = 0; j < values.length; j++) //copies all elements from shuffled to original array\r\n\t\t{\r\n\t\t\tvalues[j] = shuffled[j];\r\n\t\t}\r\n\t}", "public void shuffle() {\n\t\t\n\t\tRandom random = new Random();\n\t\tint position;\n\t\t\n\t\tfor(int i = 0; i < 200 * dimension; i++) {\n\t\t\tposition = random.nextInt(numTiles - 1);\n\t\t\tif(isValidMove(position)) {\n\t\t\t\tmakeMove(position);\n\t\t\t}\n\t\t}\n\t\t\n\t\tnumMoves = 0;\n\t}", "public static void shuffleCards(String totalCards[]) throws Exception {\n\t\tRandom random = new Random();\n\n\t\tfor (int i = 0; i < totalCards.length; i++) {\n\t\t\tint randomIndex = i + random.nextInt(totalCards.length - i);\n\n\t\t\tString temp = totalCards[randomIndex];\n\t\t\ttotalCards[randomIndex] = totalCards[i];\n\t\t\ttotalCards[i] = temp;\n\t\t}\n\n\t\tString shuffleCards[][] = new String[4][13];\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 13; j++) {\n\t\t\t\tif (count == totalCards.length)\n\t\t\t\t\tbreak;\n\n\t\t\t\tshuffleCards[i][j] = totalCards[count];\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tdistributePlayers(shuffleCards);\n\t}", "@Override\n public void shuffle() {\n System.out.println(\"shuffling the shoe...\");\n Collections.shuffle(this.cards);\n }", "public void setChanceCardShuffle() {\n ChanceCardShuffle = true;\n }", "public static int[] shuffleDeterministic(int n){\n\t\tRandom r = new Random(52);\n\t\tSet<Integer> s = new HashSet<Integer>();\n\t\tint shuffle[] = new int[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\twhile(true){\n\t\t\t\tint v = r.nextInt();\n\t\t\t\tint cardId=Math.abs(v%n);\n\t\t\t\tif (s.contains(cardId)){\n\t\t\t\t\tSystem.out.println(\"wasted\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\ts.add(cardId);\n\t\t\t\t\tshuffle[i]=cardId;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shuffle;\n\t}", "@Test\n public void testShuffle() {\n System.out.println(\"shuffle\");\n Deck instance = new Deck();\n instance.shuffle(); \n }", "public ArrayList<PrizeCard> scramble() {\n java.util.Random rand1 = new java.util.Random();\n ArrayList<PrizeCard> scrambled = new ArrayList<PrizeCard>();\n scrambled = prizeCards;\n /* write your code here */\n\n\n\n for (int i = 0; i < 40; i++) {\n if (i % 10 == 0) {\n int rand = rand1.nextInt(39 / 10) * 10;\n PrizeCard temp = prizeCards.get(i);\n scrambled.set(i, prizeCards.get(rand));\n scrambled.set(rand, temp);\n } else if (i % 2 == 0) {\n int rand = rand1.nextInt(39 / 2) * 2;\n PrizeCard temp = prizeCards.get(i);\n scrambled.set(i, prizeCards.get(rand));\n scrambled.set(rand, temp);\n } else {\n int rand = (rand1.nextInt(38 / 2) * 2) + 1;\n PrizeCard temp = prizeCards.get(i);\n scrambled.set(i, prizeCards.get(rand));\n scrambled.set(rand, temp);\n }\n }\n\n return scrambled;\n }", "void makeDeck() {\n\t\t// start with an array of 1..28 for easy shuffling\n\t\tint[] cardValues = new int[28];\n\t\t// assign values from 1 to 28\n\t\tfor (int i=0; i < cardValues.length; i++) {\n\t\t\tcardValues[i] = i+1;\n\t\t}\n\n\t\t// shuffle the cards\n\t\tRandom randgen = new Random();\n\t\tfor (int i = 0; i < cardValues.length; i++) {\n\t\t\tint other = randgen.nextInt(28);\n\t\t\tint temp = cardValues[i];\n\t\t\tcardValues[i] = cardValues[other];\n\t\t\tcardValues[other] = temp;\n\t\t}\n\n\t\t// create a circular linked list from this deck and make deckRear point to its last node\n\t\tCardNode cn = new CardNode();\n\t\tcn.cardValue = cardValues[0];\n\t\tcn.next = cn;\n\t\tdeckRear = cn;\n\t\tfor (int i=1; i < cardValues.length; i++) {\n\t\t\tcn = new CardNode();\n\t\t\tcn.cardValue = cardValues[i];\n\t\t\tcn.next = deckRear.next;\n\t\t\tdeckRear.next = cn;\n\t\t\tdeckRear = cn;\n\t\t}\n\t}", "public Deck(boolean shuffle) {\n\t\t//52 cards\n\t\tthis.cardNumber = 52;\n\t\t//Total slots of 52 ARRAY\n\t\tthis.card = new Card[this.cardNumber];\n\t\t\n\t\t//location of the card\n\t\tint cardLocation= 0;\n\t\t\n\t\t// each suit\n\t\tfor(int suit = 0; suit < 4; suit++)\n\t\t{\n\t\t\t//each number in the deck\n\t\t\tfor(int num = 1; num <=13; num++)\n\t\t\t{\n\t\t\t\t// add a new card to the deck \n\t\t\t\tthis.card[cardLocation] = new Card(Suit.values()[suit],num);\n\t\t\t\tcardLocation++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Shuffling done\n\t\tif(shuffle == true)\n\t\t{\n\t\t\tthis.shuffle();\n\t\t}\n\t}", "public static void shuffle(int data[]) {\n\n }", "public static void main(String args[]){\n\t\tint [] shuffle = ShuffleDeckOfCards.shuffleD(52);\n\t\tfor(int i=0;i<52;i++){\n\t\t\tSystem.out.println(shuffle[i]);\t\t\t\n\t\t}\n\t\t\n\t}", "public int[] shuffle() {\n int[] result = reset();\n\n Random rand = new Random();\n for (int i = 0; i < result.length; i++) {\n int j = rand.nextInt(result.length - i) + i;\n int tmp = result[i];\n result[i] = result[j];\n result[j] = tmp;\n }\n return result;\n }", "private ArrayList<Card> getDeckCards(){\n\t\t\t\tArrayList<Card> getdeck = new ArrayList<>();\r\n\t\t\t\t// deck = new ArrayList(52);\r\n\r\n\t\t\t\t// create cards in the deck (0-51)\r\n\t\t\t\tfor (int i = 0; i <= 10; i++) {\r\n\t\t\t\t\tgetdeck.add(new Card(i));\r\n\t\t\t\t}\r\n\t\t\t\t//Collections.shuffle(getdeck);\r\n\t\t\t\t// shuffle the cards\r\n\t\t\t\tfor (int i = 0; i <= getdeck.size()-1; i++) {\r\n\t\t\t\t\tint newindex = (int) (Math.random() * 51);\r\n\t\t\t\t\tCard temp = getdeck.get(i);\r\n\t\t\t\t\tgetdeck.set(i, getdeck.get(newindex));\r\n\t\t\t\t\tgetdeck.set(newindex, temp);\r\n\t\t\t\t}\r\n\t\t\t\t//TODO delete println\r\n\t\t\t\t// print shuffled deck\r\n\t\t\t\tfor (int i = 0; i <= getdeck.size()-1; i++) {\r\n\t\t\t\t\tSystem.out.println(getdeck.get(i).getCardNbr());\r\n\t\t\t\t}\r\n\t\t\t\treturn getdeck;\r\n\t}", "public Deck() {\n\t\trand = new Random();\n\t\trand.setSeed(System.currentTimeMillis());\n\t\twhile(deck.size()<52){\n\t\t\tint suit = rand.nextInt(4);\n\t\t\tint rank = rand.nextInt(13);\n\t\t\tString card = this.rank[rank] +\" of \" + this.suit[suit];\n\t\t\tdeck.add(card);\n\t\t}\n\t}", "private static boolean isShuffleWorking(Deck deck,Card newCard,Card newCard2){\n\t\tdeck.shuffle();\n\t\tboolean isCorrect=true;\n\t\tif(newCard.getSuit().equals(newCard2.getSuit()) &&\n\t\t\t\tnewCard.getRank()==newCard2.getRank()){\n\t\t\t\t\tisCorrect=false;\n\t\t\t\t\treturn isCorrect;\n\t\t}\n\t\tfor(int i=0;i<53;i++){\n\t\t\tdeck.getOneCard();\n\t\t}\n\t\tif(deck.nUsed!=1){\n\t\t\tisCorrect=false;\n\t\t}\n\t\treturn isCorrect;\n\t}", "private static void scrambleArray(int[] a, boolean randomize) {\n\t\tfor (int k = 0; k < a.length; k++)\n\t\t\ta[k] = k;\n\t\tif (randomize) // use unpredictable random shuffle\n\t\t{\n\t\t\tRandom gen = new Random();\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, gen.nextInt(a.length));\n\t\t\t}\n\t\t} else // use repeatable math formula for shuffle\n\t\t{\n\t\t\tint cell = (int) (a.length * 3.14159) % a.length;\n\t\t\tfor (int k = 0; k < a.length; k++) {\n\t\t\t\tswap(a, k, cell);\n\t\t\t\tcell = (int) (cell * 3.14159) % a.length;\n\t\t\t}\n\t\t}\n\n\t}", "Deque<PokerCard> getShuffledHalfDeck();", "public void shuffle(Random rng, boolean gather) {\n if (gather) {\n gather();\n }\n Collections.shuffle(getCards(), rng);\n }", "public void generateDeck() {\n\t\tList<String> valueList = Arrays.asList(\"Ace\", \"2\", \"3\",\"4\", \"5\", \"6\",\"7\", \"8\", \"9\",\"10\", \"Jack\", \"Queen\",\"King\");\n\t\tList<String> suitList = Arrays.asList(\"Diamonds\", \"Spades\", \"Clubs\", \"Hearts\");\n\t\tvalues.addAll(valueList);\n\t\tsuits.addAll(suitList);\n\t\t\n\t\t//adding card objects to deckOfCards arraylist\n\t\tint i = 1;\n\t\twhile(i<=52){\n Card card = new Card(values.get(random.nextInt(13)), suits.get(random.nextInt(4)));\n if (!deckOfCards.contains(card)) {\n deckOfCards.add(card);\n i++;\n }else{\n\n }\n }\n\t}", "public void shuffle() {\n\t\tCollections.shuffle(inds);\n\t}", "public static void cardsSolution() throws Exception {\n\t\tString suits[] = { \"Clubs\", \"Diamonds\", \"Hearts\", \"Spades\" };\n\n\t\tString ranks[] = { \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"10\", \"Jack\", \"Queen\", \"King\", \"Ace\" };\n\n\t\tString totalCards[] = new String[52];\n\n\t\tString check[][] = new String[4][13];\n\t\tint count = 0;\n\t\tfor (int i = 0; i < suits.length; i++) {\n\t\t\tfor (int j = 0; j < ranks.length; j++) {\n\t\t\t\tcheck[i][j] = suits[i] + \"-\" + ranks[j];\n\t\t\t\ttotalCards[count] = check[i][j];\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\tshuffleCards(totalCards);\n\t}", "public static void main(String[] args) {\r\n\r\n CardDeck deck = new CardDeck();\r\n System.out.println(deck.dealHand(5)); // <- print 5 cards 3 times\r\n System.out.println(deck.dealHand(5));\r\n System.out.println(deck.dealHand(5));\r\n System.out.println(deck.dealHand(50)); // <- only 39 cards should be printed here\r\n System.out.println(deck.dealHand(50)); // <- and empty list should be printed\r\n deck.shuffle();\r\n System.out.println(deck.dealHand(5)); // <- another 5 cards\r\n\r\n }", "public void shuffle()\r\n/* 18: */ {\r\n/* 19:41 */ for (int i = 0; i < this.pop.size(); i++)\r\n/* 20: */ {\r\n/* 21:43 */ Cluster c = (Cluster)this.pop.elementAt(i);\r\n/* 22:44 */ g.setClusters(c.getClusterVector());\r\n/* 23:45 */ g.shuffleClusters();\r\n/* 24:46 */ c.setClusterVector(g.getClusters());\r\n/* 25:47 */ c.setConverged(false);\r\n/* 26: */ }\r\n/* 27: */ }", "public void cards() {\n\t\t\n\n\t\tboolean[] randomCards = new boolean[52];\n\n\t\t// choose 4 random distinct cards from the deck\n\t\tint count = 0;\n\t\tint card1 = 0;\n\t\tint card2 = 0;\n\t\tint card3 = 0;\n\t\tint card4 = 0;\n\n\t\twhile (count < 4) {// Display only four cards\n\n\t\t\tcard1 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\t\t\tcard2 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\t\t\tcard3 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\t\t\tcard4 = ((int) (Math.random() * 12) + 1) + 1;// Ignore zero\n\n\t\t\tif ((randomCards[card1] = !randomCards[card2]) && (randomCards[card1] = !randomCards[card3])\n\t\t\t\t\t&& (randomCards[card1] = !randomCards[card4]) && (randomCards[card2] = !randomCards[card3])\n\t\t\t\t\t&& (randomCards[card2] = !randomCards[card4]) && (randomCards[card3] = !randomCards[card4])) {\n\n\t\t\t\tString[] cards = { \"clubs\", \"diamonds\", \"hearts\", \"spades\" };\n\n\t\t\t\tString name1 = cards[(int) (Math.random() * cards.length)];\n\t\t\t\tString name2 = cards[(int) (Math.random() * cards.length)];\n\t\t\t\tString name3 = cards[(int) (Math.random() * cards.length)];\n\t\t\t\tString name4 = cards[(int) (Math.random() * cards.length)];\n\n\t\t\t\tImage image1 = new Image(\"png/\" + (card1) + \"_of_\" + name1 + \".png\");\n\t\t\t\tImage image2 = new Image(\"png/\" + (card2) + \"_of_\" + name2 + \".png\");\n\t\t\t\tImage image3 = new Image(\"png/\" + (card3) + \"_of_\" + name3 + \".png\");\n\t\t\t\tImage image4 = new Image(\"png/\" + (card4) + \"_of_\" + name4 + \".png\");\n\n\t\t\t\timgCard1.setImage(image1);\n\t\t\t\timgCard2.setImage(image2);\n\t\t\t\timgCard3.setImage(image3);\n\t\t\t\timgCard4.setImage(image4);\n\n\t\t\t\tcount++;\n\n\t\t\t}\n\n\t\t}\n\n\t\tString cardOneValue = Integer.toString(card1);\n\t\tString cardTwoValue = Integer.toString(card2);\n\t\tString cardThreeValue = Integer.toString(card3);\n\t\tString cardFourValue = Integer.toString(card4);\n\t\tSystem.out.println(cardOneValue + \" - \" + cardTwoValue + \" - \" + cardThreeValue + \" - \" + cardFourValue);\n\t\tsetText.setText(cardOneValue +\" \"+ cardTwoValue +\" \"+ cardThreeValue +\" \"+ cardFourValue);\n\t\t\n\t\tint solution = 0; \n\t\tif(solution!=24) {\n\t\tfor(int limit = 0; limit < 25; limit++) {\n\t\t\n\t\t\t\tSystem.out.println(\"No\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(solution);\n\t\t\n\t}", "public static SuggestHand shuffleAndAssignCards(\r\n ArrayList< Player > players )\r\n {\r\n int counter = 0; // Iterator pointer to keep track of the\r\n // cards\r\n SuggestHand solutionCards = null;\r\n\r\n /*\r\n * Grab all the names and types of each card Had to do some list\r\n * manipulation to get the enums into a modifiable list.\r\n */\r\n List< WeaponType > weaponEnums = new ArrayList< WeaponType >(\r\n Arrays.asList( WeaponCard.WeaponType.values() ) );\r\n List< CharacterName > characterEnums = new ArrayList< CharacterName >(\r\n Arrays.asList( CharacterCard.CharacterName.values() ) );\r\n List< RoomName > roomEnums = new ArrayList< RoomName >(\r\n Arrays.asList( RoomCard.RoomName.values() ) );\r\n\r\n //System.out.println( characterEnums.size() );\r\n\r\n // Card equivalents of the enums\r\n ArrayList< CharacterCard > characters = new ArrayList< CharacterCard >();\r\n ArrayList< RoomCard > rooms = new ArrayList< RoomCard >() ;\r\n ArrayList< WeaponCard > weapons = new ArrayList< WeaponCard >();\r\n\r\n for( CharacterName c : characterEnums )\r\n {\r\n characters.add( new CharacterCard( c ) );\r\n }\r\n\r\n for( RoomName r : roomEnums )\r\n {\r\n rooms.add( new RoomCard( r ) );\r\n }\r\n\r\n for( WeaponType w : weaponEnums )\r\n {\r\n weapons.add( new WeaponCard( w ) );\r\n }\r\n\r\n // Shuffle the ArrayLists\r\n Collections.shuffle( weapons );\r\n Collections.shuffle( characters );\r\n Collections.shuffle( rooms );\r\n\r\n //System.out.println( characters.get( 0 ).getCharacterName() );\r\n\r\n // Remove the top card from each card type and store as solution cards\r\n try\r\n {\r\n solutionCards = new SuggestHand( characters.remove( 0 ), rooms.remove( 0 ), weapons.remove( 0 ) );\r\n\r\n } catch( Exception e )\r\n {\r\n System.out.println( \"Error generating solution cards.\" );\r\n e.printStackTrace();\r\n System.exit( 0 );\r\n }\r\n\r\n // Combine all cards into one larger deck\r\n List< Card > deck = new ArrayList< Card >();\r\n deck.addAll( characters );\r\n\r\n deck.addAll( rooms );\r\n\r\n deck.addAll( weapons );\r\n\r\n\r\n // Shuffle the deck and assign to each player sequentially\r\n Collections.shuffle( deck );\r\n\r\n\r\n /*\r\n * Loops through the cards and players, assigning the cards to players\r\n * one by one.\r\n */\r\n for( Card card : deck )\r\n {\r\n players.get( counter % players.size() ).setCard( card );\r\n counter++;\r\n }\r\n\r\n // DEBUG Print statements to show the cards for each player\r\n// for( Player p : players )\r\n// {\r\n// System.out.println( p.PlayerNumber+ \" \" + p.getHand().toString() );\r\n// }\r\n\r\n // Return the three cards to be used as the solution cards.\r\n return solutionCards;\r\n\r\n }", "private void shufflePositions() {\r\n\r\n // Inizializzo con il progressivo delle posizioni\r\n for (int i = 0; i < shufflePositions.length; i++) {\r\n shufflePositions[i] = i;\r\n }\r\n\r\n int lastIndex ;\r\n int tempIndex = 0;\r\n int tempVal = 0;\r\n\r\n// // Tecnica 1 - Knuth (gli indici da scambiare sono scelti dall'inizio in un insieme decrescente in cardinalità)\r\n// int lastIndex = shufflePositions.length;\r\n// for (int i = 0; i < shufflePositions.length-1; i++) {\r\n// tempIndex = i+secureRandom.nextInt(lastIndex); // Randomizzo le posizioni del random buffer da cui prendo i valori casuali\r\n// tempVal=shufflePositions[tempIndex];\r\n// shufflePositions[tempIndex]=shufflePositions[i];\r\n// shufflePositions[i] = tempVal; \r\n// lastIndex--;\r\n// } \r\n \r\n //Tecnica 2 - Knuth GAB Modification (gli indici casuali sono scelti dal fondo in un insieme decrescente in cardinalità)\r\n lastIndex = shufflePositions.length-1;\r\n for (int i = 0; i < shufflePositions.length - 1; i++) {\r\n tempIndex = secureRandom.nextInt(lastIndex); // Randomizzo le posizioni del random buffer da cui prendo i valori casuali\r\n tempVal = shufflePositions[tempIndex];\r\n shufflePositions[tempIndex] = shufflePositions[lastIndex];\r\n shufflePositions[lastIndex] = tempVal;\r\n lastIndex--;\r\n }\r\n \r\n// // Tecnica 3 - Algoritmo standard delle collections\r\n// Integer[]tempArray = new Integer[MaxBufferLength];\r\n// for (int i=0;i<MaxBufferLength;i++){\r\n// tempArray[i]=i;\r\n// \r\n// }\r\n// List<Integer> tempList = Arrays.asList(tempArray);\r\n//\r\n// Collections.shuffle(tempList, secureRandom);\r\n// tempArray= (Integer[]) tempList.toArray();\r\n// for (int i=0;i<shufflePositions.length;i++){\r\n// shufflePositions[i]=tempArray[i];\r\n// }\r\n }", "public void splitShuffle(int count)\r\n {\r\n LinkedList<Card> tempDeck = new LinkedList<Card>();\r\n List<Card> shuffledDeck = new ArrayList<Card>();\r\n List<Card> tempDeck2 = null;\r\n tempDeck.addFirst(draw());\r\n int i = 0;\r\n for (int x = 0; x < count; x++) {\r\n while (cards.size() > 0) {\r\n if (i % 2 == 0) {\r\n tempDeck.addFirst(draw());\r\n } else {\r\n tempDeck.addLast(draw());\r\n }\r\n i++;\r\n }\r\n for (int j = 0; j < tempDeck.size(); j++) {\r\n shuffledDeck.add(tempDeck.removeFirst());\r\n }\r\n tempDeck2 = cards;\r\n cards = shuffledDeck;\r\n shuffledDeck = tempDeck2;\r\n shuffledDeck.clear();\r\n tempDeck.clear();\r\n }\r\n }" ]
[ "0.7768375", "0.7670008", "0.76519775", "0.7522559", "0.75176567", "0.74803835", "0.74605113", "0.7456114", "0.7415795", "0.7410126", "0.73962903", "0.73732543", "0.73723394", "0.7352342", "0.7305582", "0.7299701", "0.7252209", "0.7243845", "0.72364956", "0.7206127", "0.71995246", "0.71817994", "0.71817994", "0.7177219", "0.71746886", "0.71695536", "0.7162193", "0.7158006", "0.71557736", "0.7139738", "0.7139738", "0.7111871", "0.71108145", "0.70965225", "0.70912725", "0.7028623", "0.70222014", "0.6988385", "0.69760907", "0.69691205", "0.69610053", "0.69585574", "0.69533366", "0.69525135", "0.6949473", "0.6935457", "0.69162077", "0.68955433", "0.688834", "0.68685865", "0.6864157", "0.68552554", "0.6828248", "0.6824317", "0.6815365", "0.68081325", "0.68013525", "0.6792791", "0.67430156", "0.6742837", "0.66821027", "0.66574484", "0.6654661", "0.6654149", "0.66305494", "0.6630483", "0.6607277", "0.65795267", "0.65624315", "0.6483189", "0.6466436", "0.6462638", "0.6440439", "0.64377594", "0.64065135", "0.64058065", "0.63787806", "0.63533163", "0.6264089", "0.6234393", "0.62049097", "0.6203242", "0.6181202", "0.61675483", "0.61662364", "0.61586535", "0.6140452", "0.6131477", "0.6122789", "0.60954887", "0.6089783", "0.60863376", "0.6049017", "0.6048382", "0.6047994", "0.60476", "0.604505", "0.6035189", "0.60349876", "0.60338706" ]
0.6066401
92